logo elektroda
logo elektroda
X
logo elektroda

LN882H firmware SSDP support missing for Alexa discovery—any way to enable or add it?

rustynail1 33 6
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 21421870
    rustynail1
    Level 4  
    I bought and flashed a switch with onboard an LN882H chip.
    It works perfectly, and in order to be found by Alexa, as found in the forum, it's needed command 'startDriver SSDP'.
    But it seems SSDP isn't implemented in LN882H compilation, or am I wrong somewhere else?
    Running it from 'Execute custom command' return:

    Info:MAIN:Driver SSDP is not known in this build.
    Info:MAIN:Available drivers:
    Info:MAIN:NTP
    Info:MAIN:, BL0937
    Info:MAIN:, DGR
    Info:MAIN:, Wemo
    Info:MAIN:, Hue
    Info:MAIN:, SM2135
    Info:MAIN:, BP5758D
    Info:MAIN:, BP1658CJ
    Info:MAIN:, SM2235
    Info:MAIN:, DS1820
    OK

    Wemo is builded so it seems, in order to use Alexa, only SSDP is lost.




    ----
    Wydzielono z tematu: [BK7231T] My HTTP server, configurator, MQTT support from Home Assistant
    przez p.kaczmarek2 dnia 03 Sie 2025 12:41
  • ADVERTISEMENT
  • #2 21421961
    p.kaczmarek2
    Moderator Smart Home
    Sure, I can enable SSDP for you on LN882H. I just pushed a commit, but let me check if it builds correctly first... you should see a release if everything goes ok.




    ----
    Wydzielono z tematu: [BK7231T] My HTTP server, configurator, MQTT support from Home Assistant
    przez p.kaczmarek2 dnia 03 Sie 2025 12:41
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #3 21422071
    rustynail1
    Level 4  
    Thanks a lot.
    Just to notice, same built for LN882H, in the main page the report:
    incomplete boots: 3 (might change to 0 if you wait to 30 sec)!
    seems doesn't reset, in more device the count is 1.

    And just for a project i have, is it possible to configure two gpio to read and write UART?
    My aim is to do in openbeken someting someting like:
    https://esphome.io/components/micronova




    ----
    Wydzielono z tematu: [BK7231T] My HTTP server, configurator, MQTT support from Home Assistant
    przez p.kaczmarek2 dnia 03 Sie 2025 12:41
  • ADVERTISEMENT
  • #4 21422088
    p.kaczmarek2
    Moderator Smart Home
    Sure, you can make a custom driver for OBK very easily, here's guide:
    https://www.elektroda.com/rtvforum/topic4056286.html
    You can do builds online, you don't have to even have toolchain setup. You can also use PROTA tool to automatically update to latest PR build.
    https://www.elektroda.com/rtvforum/topic4093378.html

    I can try to help with your driver more or less, and later we can integrate your work into main releases (but disabled by default in obk_config.h)




    ----
    Wydzielono z tematu: [BK7231T] My HTTP server, configurator, MQTT support from Home Assistant
    przez p.kaczmarek2 dnia 03 Sie 2025 12:41
    Helpful post? Buy me a coffee.
  • #5 21422167
    rustynail1
    Level 4  
    I thought it cold be done by scripting a file in lfs, assuming would be usable RXTX gpios as logs on uart_tx and flash on uart_rx with uartInituart SendHex
    My c is very poor but I'll give it a try, after the interface make up and some test by pc and uart dongle.
    Thank you again.




    ----
    Wydzielono z tematu: [BK7231T] My HTTP server, configurator, MQTT support from Home Assistant
    przez p.kaczmarek2 dnia 03 Sie 2025 12:41
  • #6 21442703
    rustynail1
    Level 4  
    Hello, on chip ln882h built command

    SendGet http://192.168.5.1/cgi-bin/tlg-adm-msg.cgi?TXT_STR=testo

    results is
    Error:CMD:cmd SendGet NOT found (args http://192.168.5.1/cgi-bin/tlg-adm-msg.cgi?TXT_STR=testo)
    Unknown command

    Also SendPost results in an error.
    Playing with uart

    uartInit 11500
    uartSendASCII test
    uartSendHEX a9

    They doesn't work, but reading the building code, it seems to me they should be working.




    ----
    Wydzielono z tematu: [BK7231T] My HTTP server, configurator, MQTT support from Home Assistant
    przez p.kaczmarek2 dnia 03 Sie 2025 12:41
  • ADVERTISEMENT
  • #7 21624594
    p.kaczmarek2
    Moderator Smart Home
    Send GET/POST can be enabled in obk_config.h , then you need to do online build.

    See online building system: https://www.elektroda.com/rtvforum/topic4033833.html
    Check related commit - SendGET and SendPOST fixed on all platforms: https://github.com/openshwprojects/OpenBK7231...mmit/217dd1e3e1175e4975a247b1577fe4c5f91f46cb
    Helpful post? Buy me a coffee.

Topic summary

The LN882H chip used in a flashed switch lacks SSDP (Simple Service Discovery Protocol) support in its current firmware build, preventing Alexa discovery via the 'startDriver SSDP' command, which returns an error indicating the driver is unknown. A developer confirmed enabling SSDP support on LN882H and pushed a commit pending build verification. Users discussed additional features such as configuring GPIO pins for UART communication and enabling HTTP SendGET/SendPOST commands, which are disabled by default but can be activated via obk_config.h and rebuilt using an online build system. Guidance was provided for creating custom drivers and using tools like PROTA for updating builds. UART commands like uartInit, uartSendASCII, and uartSendHEX were tested but initially non-functional, suggesting further configuration or build adjustments are needed.
Summary generated by the language model.
ADVERTISEMENT