logo elektroda
logo elektroda
X
logo elektroda

OpenLN882H upgrade from 1.17.506 to 1.17.515 makes LSPA9 Smart Plug unresponsive

silvestro_gatto 3630 66
ADVERTISEMENT
  • #61 21020825
    p.kaczmarek2
    Moderator Smart Home
    Nice, since you'r at it, maybe also change ntp_eventsTime type to time_t?
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #62 21021083
    max4elektroda
    Level 20  
    O.k., I added a second version of drv_ntp_events.c.
    No more casting for "gmtime", but now for the calculations ;-)

    Please note, since I don't use NTP, I could only test, if it compiles...
  • ADVERTISEMENT
  • #63 21021118
    p.kaczmarek2
    Moderator Smart Home
    The W800 does not compile:
    
    ./bin/build/w800/lib/libuser.a(json_interface.o): In function `$t':
    (.text.JSON_ProcessCommandReply+0x916): undefined reference to `NTP_IsTimeSynced'
    ./bin/build/w800/lib/libuser.a(json_interface.o): In function `$t':
    (.text.JSON_ProcessCommandReply+0x916): relocation truncated to fit: R_CKCORE_PCREL_IMM26BY2 against undefined symbol `NTP_IsTimeSynced'
    

    I guess this may be because you need to respect OBK_DISABLE_ALL_DRIVERS define which, if enabled, means that NTP_IsTimeSynced is not present in the build.
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #64 21021199
    max4elektroda
    Level 20  
    I will fix it tomorrow, thanks for the advice!
  • ADVERTISEMENT
  • #65 21021966
    max4elektroda
    Level 20  

    Uploaded fixed version, it compiles now for all platforms.
  • #66 21021980
    p.kaczmarek2
    Moderator Smart Home
    Nice, but I am not sure about the if conditional for StartupUTC - what happens with Tasmota control if that field is missing from JSON?
    Maybe change if to work in such a way that if value negative would be to happen, then plug 0 so it prints 1970-01-01 etc etc? So just a clamp, but still add JSON key.
    Helpful post? Buy me a coffee.
  • #67 21022036
    max4elektroda
    Level 20  
    Sure, fair point. Just changed this code once more.

    I was already asking myself why there are so many "fake entries" in this code (always reporting fixed strings but actual values ...) ;-)

Topic summary

The discussion revolves around the Elivo LSPA9 Smart Plug, which became unresponsive after an upgrade from OpenLN882H version 1.17.506 to 1.17.515. Users reported that the device initially functioned well with energy monitoring but encountered issues post-update, including slow web interface access and eventual unresponsiveness. Serial logs indicated recurring hardware errors. Various users suggested testing intermediate firmware versions to identify the problematic update, leading to the discovery that version 1.17.513 caused the issues. A workaround was proposed by disabling certain drivers, and a fix was implemented in subsequent versions, restoring functionality and stability to the device. The final resolution involved modifying the handling of time synchronization to prevent the device from freezing.
Summary generated by the language model.
ADVERTISEMENT