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: The Sonoff DW2-WiFi draws ≤40 µA at idle and successfully flashed a 160 kB OTA image; “We haven’t touched OPL1000 yet due to its very low popularity” [Elektroda, p.kaczmarek2, post #20938882]
Why it matters: clear electrical limits and tool-chain notes save hours when hacking this rare Wi-Fi door sensor.
• Stand-by current: ≤40 µA; transmit current ≤15 mA [Elektroda, p.kaczmarek2, post #20767159] • MCU: Opulink OPL1000 A2 with 128 kB SRAM + on-board 128/256 kB flash [Opulink DS] • External SPI flash: 8 Mbit TH25Q80UA or P25Q80H [Elektroda, #20767159; #21405013] • Confirmed OTA payload size: ~118–160 kB per slot [Elektroda, divadiow, post #21196691] • Street price: <30 PLN / ~7 USD per sensor [Elektroda, 20767159]