p.kaczmarek2 wrote:Did this device support AP mode pairing for the app?
no AP ever showed however many different ways I reset or pushed button with factory firmware.
I'll try that demo with AP code change
Czy wolisz polską wersję strony elektroda?
Nie, dziękuję Przekieruj mnie tamdivadiow wrote:I am no further forward with a working OTA demo.
p.kaczmarek2 wrote:Here is the function with better printfs:
divadiow wrote:http server is serving opl1000_ota.bin file download for any other device on subnet but not the DW2 yet.
LOG_I(TAG, "ota_prepare fail\r\n");
LOG_E(TAG, "http client recv response error, ret = %d \r\n", ret);
p.kaczmarek2 wrote:Now I see you've got OTA working, is that correct
p.kaczmarek2 wrote:what about creating AP?
divadiow wrote:ah, is this the same USON package @DeDaMrAz has just encountered here
TL;DR: For under 30 PLN, the Sonoff DW2-Wi-Fi is a cheap door sensor for reverse engineers, and the thread’s key result is that "A2 SDK works" on the module marked A2. The flash was dumped, UART flashing worked, and OTA updates worked only after correct Opulinks packaging with an OTA loader. [#21196691]
Why it matters: This FAQ helps hardware hackers and OpenBeken users decide whether the DW2 is worth buying, dumping, compiling for, and eventually de-clouding.
| Option | Radio / setup | Firmware status from thread | Practical takeaway |
|---|---|---|---|
| Sonoff DW1 | RF433 MHz | Older design referenced by sellers | Different product family, not the Wi-Fi teardown target |
| Sonoff DW2-Wi-Fi | Wi-Fi + BLE setup flow | Flash dumped, UART flashing and OTA confirmed | Best current OPL1000-family test target in the thread |
| OPL1000 A2 SDK | Matches A2-marked module | Boots and connects in tests | Use this SDK path first |
| OPL1000 A3 SDK | Different family mapping | Did not boot on this hardware | Avoid for DW2 A2 modules |
Key insight: The breakthrough was not just compiling code. The breakthrough was proving the DW2 can boot custom A2 builds, accept UART flashes, and alternate between MW_OTA [0] and MW_OTA [1] once the OTA image is packaged correctly. [#21196691]