logo elektroda
logo elektroda
X
logo elektroda

Flashing OpenBeken/OBK firmware to ESP8266/ESP8285 devices

divadiow 2235 60
ADVERTISEMENT
  • Helpful post
    #61 21703172
    max4elektroda
    Level 21  
    @Tilator do you know incidentally how multiple sensors on one device are handled? So we can follow this for the other driver, too?
    If not, I can try to check the code ...

    Added after 16 [minutes]:

    No need to check - found it:

    https://tasmota.github.io/docs/DS18x20/#multiple-sensors

    {"Time":"2021-01-02T09:09:44","DS18B20-1":{"Id":"00000566CC39","Temperature":13.3},"DS18B20-2":{"Id":"0000059352D4","Temperature":1.2},"DS18B20-3":{"Id":"000005937C90","Temperature":22.5},"TempUnit":"C"}

    Sadly it doesn't use the human readable name but the ID...

    Added after 2 [hours] 12 [minutes]:

    Opened PR#1811 for the multiple DS1820 sensors.
    There is one "plain" Tasmota version, adding "-<id>" to the sensor and an Id to identify the sensor (middle 48 bits from ROM address in reverse order).

    Flashing OpenBeken/OBK firmware to ESP8266/ESP8285 devices

    Included is a (commented out) version which additionally adds a "Name": field in JSON:

    Flashing OpenBeken/OBK firmware to ESP8266/ESP8285 devices

    (both images are with "wrong" index number, which is now corrected - Tasmota will start index with "-1" not with "-0")
  • ADVERTISEMENT

Topic summary

The discussion centers on flashing a 2MB OpenBeken/OBK firmware onto a 4MB ESP8266 board. Initial boot logs confirm successful recognition of the 4MB flash size with a detailed partition table including OTA data, WiFi NVS, two OTA app partitions, and an LFS partition. Users report smooth flashing and stable WiFi connectivity without resets after manual reboot. GPIO2 functionality is confirmed. Subsequent updates include added PWM and UART support, with UART implemented via a task-based polling method to avoid crashes seen with interrupt-driven approaches. PWM operates inverted but functional, with PWM_n also working as expected. OTA updates remain non-functional despite passing image checks. Adjustments to QuickTick timer handling and stack size were necessary to prevent crashes. Disabling PWM on GPIO0 resolved bootloop issues. Overall, the firmware demonstrates improved hardware compatibility and peripheral support on the 4MB ESP8266 platform.
Summary generated by the language model.
ADVERTISEMENT