Czy wolisz polską wersję strony elektroda?
Nie, dziękuję Przekieruj mnie tamdivadiow wrote:won't XR809 build also need an OTA flash type file build?
Quote:jyd ota http http://192.168.1.133:8000/upload/xr_system.img
insmod wrote:From what i understood in the SDK code, the same binary that is used for UART is used for OTA.
insmod wrote:Xradios update test
LFS for all, Easyflash for all, OTA for all (XR809 not working, XR872 no image generated yet), Pins for all, berry for XR806.
Implemented PWM, ADC (including VBAT), UART, watchdog in APP, delay_us, RSSI and ip addresses, remaining heap size.
Fixed MAC for XR806.
https://github.com/NonPIayerCharacter/OpenBK7231T_App/actions/runs/15826444795
insmod wrote:Disabled XR809 OTA (was unable to get http working, even in main (not obk) thread). LFS format works, but OTA flash erase doesn't.
flash_erase_wrap
TL;DR: For modders of the P06 XR3 PIR sensor, OTA is not ready yet: only 3 XR3 devices had been seen, and the maintainer said, "you will need to do some soldering." Use UART flashing, not OTA, if you want a reliable first flash on this rare XR809-based board. [#21088959]
Why it matters: This thread separates the rare XR3/XR809 P06 variant from the more common CBU+TuyaMCU version, so you can choose the right OpenBeken workflow before opening the case.
| Variant | OTA status | Flashing method | Practical modding note |
|---|---|---|---|
| XR3 / XR809 P06 | Not working yet | Manual flashing by soldering | Rare board; forum guide exists |
| CBU + TuyaMCU P06 | Different path | TuyaMCU-aware conversion | May be easier to repurpose if USB-powered |
Key insight: The P06 with XR3/XR809 is flashable, but not over OTA yet. Treat it as a UART-first device until XR809 HTTP OTA is debugged end to end.
ERR_MEM, while free heap in the same session is reported around 65,480–68,136 bytes. [#21587457]XR809_RequestOTAHTTP() to call cmd_ota_http_exec(), added debug prints, and still could not determine what breaks. The failure can happen during image download, verify-data retrieval, image verification, or the reboot handoff. That means the feature is partially implemented, not production-ready. [#21131447]autoexec.bat. On the XR809 log, the device reports lfs is absent, then failed to get file autoexec.bat. That means the flashed build booted, but its local file storage was missing or uninitialized, so script-based startup actions could not run. [#21587457]ERR_MEM publish failures. In the same session, free heap moved around 65,480–68,136 bytes, so the system was alive but not yet cleanly configured. These are bring-up symptoms, not proof of a bad flash. [#21587457]XR809_RequestOTAHTTP() triggers cmd_ota_http_exec() in the main loop. From there, the SDK tries to fetch the image, read verification data, verify the image, and reboot. If any stage fails, OTA stops before activation. [#21131447].img file for both UART and OTA on XR809-family devices. In June 2025, one poster suggested that the XR872 example implied a shared image, and another replied that the SDK code appeared to use the same binary for UART and OTA. That makes .img the working assumption for XR809 too, although OTA itself was still not functioning. [#21586375]XR809_RequestOTAHTTP() sets the request string and flag. 2. Trace cmd_ota_http_exec() through ota_get_image(), ota_get_verify_data(), and ota_verify_image(). 3. Check whether ota_reboot() is ever reached after a successful verify. The maintainer already added printf() tracing and commented out lines, so the next useful work is narrowing the first failing function, not rewriting the whole flow. [#21131447]