logo elektroda
logo elektroda
X
logo elektroda

[Solved] OpenbekenIOT: OTA Firmware Updates with BIN File - Alternatives to Serial Adaptor Use

dogs4tose 2043 10
ADVERTISEMENT
  • #1 20595891
    dogs4tose
    Level 3  
    I am brand new to openbeken. I've managed to flash a device & all is working fine.

    I see OTA firmware updates are available, but only for rbl files. If I wanted to try out an alternate firmware on my device (such as a firmware contained in a bin file for example) is there a way that this can be done OTA? Or do I have to go back to connecting a serial adaptor to my device?
  • ADVERTISEMENT
  • #2 20595906
    p.kaczmarek2
    Moderator Smart Home
    The RBL mechanism only allows you to update the app partition, this will leave some other sections (like OBK config) unchanged.
    If you want to restore full 2MB backup, you have to use UART approach.
    Here's a tool that can make and restore backup automatically:
    https://github.com/openshwprojects/BK7231GUIFlashTool
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #3 20595910
    dogs4tose
    Level 3  
    Thanks so much for your response. I've had a quick play with that utility. What I'm looking to do though, is flash firmware from an alternate project (Tasmota) to evaluate that now I've had a look at Openbeken, so I can compare/contrast the two.

    I was hoping I might be able to OTA flash Tasmota using the Openbeken OTA functionality but it sounds like that's not possible?
  • ADVERTISEMENT
  • #4 20595916
    p.kaczmarek2
    Moderator Smart Home
    I am sorry to say but all those ESP firmware will not work on BK7231 chips. You have to use firmware that was written and compiled for BK7231 platform, just like OpenBeken.

    Here you can watch some OpenBeken tutorials that may help you kickstart your experience:
    https://www.youtube.com/@elektrodacom
    Helpful post? Buy me a coffee.
  • #5 20595931
    dogs4tose
    Level 3  
    Ah.... ok. That's fine. I already have the device talking to my MQTT server so the flavor of firmware is not such a big deal.

    Thanks again for your input. Much appreciated
  • Helpful post
    #6 20595932
    p.kaczmarek2
    Moderator Smart Home
    If you need some kind of feature for OBK, just let me know, I can help.
    Helpful post? Buy me a coffee.
  • #7 20595960
    dogs4tose
    Level 3  
    Thanks for being so helpful. My ultimate aim is to implement a timer that switches off the power outlets at a particular time, then switches them back on again at a later time on a daily basis. Any suggestions or pointers would be wonderful.
  • Helpful post
    #8 20595967
    p.kaczmarek2
    Moderator Smart Home
    Well, have you read our docs?
    https://github.com/openshwprojects/OpenBK7231T_App/blob/main/docs/README.md
    There is addClockEvent command....
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #9 20595994
    dogs4tose
    Level 3  
    Thank you. That's exactly what I need.

    When I got out of bed this morning I didn't know that BK7231 devices even existed (I have a lot of ESP32 devices). Now I have one with open firmware installed & am close to a solution. Thanks again for your help. You've saved me a lot of research & head-scratching and I really appreciate your help :-)
  • Helpful post
    #10 20596001
    p.kaczmarek2
    Moderator Smart Home
    We have currently more than 300 BK7231 devices documented on our forums:
    https://openbekeniot.github.io/webapp/devicesList.html
    Helpful post? Buy me a coffee.
  • #11 20596010
    dogs4tose
    Level 3  
    Solved with the generous assistance of the moderator.

Topic summary

The discussion revolves around the limitations of OTA firmware updates for OpenBeken on BK7231 devices, specifically addressing the inability to flash alternate firmware (like Tasmota) using BIN files via OTA. Users are informed that the RBL mechanism only updates the app partition, necessitating a UART connection for full firmware restoration. The conversation also touches on implementing features such as timers for power outlets, with references to documentation and tools available for OpenBeken users. The community provides support and resources to assist in the transition from ESP32 to BK7231 devices.
Summary generated by the language model.
ADVERTISEMENT