Use this forum to chat about hardware specific topics for the ESP8266 (peripherals, memory, clocks, JTAG, programming)

User avatar
By Sum~guy
#88692 I downloaded and ran the pre-compiled version - Sonota.exe - but it's for 64-bit windoze (I'm running Win-7 32 bit). Someone in the sonota github forum created a 32-bit version and I grabbed it. I ran it 18 times (using various command-line arguments). It creates a log file each time. A couple times the switch got into a mode where it was clicking on and off the relay (10 seconds on, 10 off).

Sonota has 2 phases or stages, but I don't think I ever got to stage 2 (where the device is supposed to appear with SSID FinalStage. But it did work enough to the point where my local Lan SSID and PW was conveyed to the switch (it now powers on and is able to connect to my lan).

I did have my windoze firewall (incoming and outgoing) turned off during these sessions. My laptop had a constant wired connection to my lan (192.168.2.45) and a variable connection to either the lan (192.168.2.100) or the switch (10.10.7.2) depending on which AP I pointed it to. When the switch was able to connect to my lan it's IP was always 192.168.2.104.

Here is a portion of a typical log file:

--------------
2020-09-05 21:08:20,287: DEBUG: }
2020-09-05 21:08:20,785: DEBUG: << {
2020-09-05 21:08:20,787: DEBUG: "error": 0
2020-09-05 21:08:20,789: DEBUG: }
2020-09-05 21:08:20,791: INFO: ~~ Provisioning completed
2020-09-05 21:08:20,793: INFO: Starting stage2...
2020-09-05 21:08:20,939: INFO: ~~ Starting web server (HTTP port: 8080, HTTPS port 8443)
2020-09-05 21:08:20,957: INFO: ~~ Waiting for device to connect
*
2020-09-05 21:08:21,092: INFO: *** IMPORTANT! ***
2020-09-05 21:08:21,093: INFO: ** AFTER the first download is COMPLETE, with in a minute or so you should connect to the new SSID "FinalStage" to finish the process.
2020-09-05 21:08:21,095: INFO: ** ONLY disconnect when the new "FinalStage" SSID is visible as an available WiFi network.
2020-09-05 21:08:21,097: INFO: This server should automatically be allocated the IP address: 192.168.4.2.
2020-09-05 21:08:21,099: INFO: If you have successfully connected to "FinalStage" and this is not the IP Address you were allocated, please ensure no other device has connected, and reboot your Sonoff.
2020-09-05 21:08:37,613: DEBUG: Current IPs: ['192.168.2.100', '192.168.2.45']
2020-09-05 21:09:23,133: INFO: *** IMPORTANT! ***
*
---------------

The part of the log between * and * end up repeating or looping continuously, I usually close the command window after 6 to 10 of these loops.

During some of these sessions, one of the above lines was different - it was:

-----------
2020-09-05 22:26:15,038: DEBUG: Current IPs: ['10.10.7.2', '192.168.2.45']
-----------

I believe that line is telling me what IP the switch was being told to connect to to download new firmware.

One thing I don't know is - what size binary was compiled in the sonota.exe / sonota32.exe program and if it is compatible with my 1 mb ESP chip (or was it compiled for the 4mb flash). This board does have an ATMEL608 chip - I don't know if it's used by the ESP or by the mystery MOBU W6-1014 chip. I'm guessing the ATMEL608 is a flash ram but can't find any info about it on the web.

The board also has an unmarked 8-pin chip close to a 6.7158 mhz oscillator - I'm wondering if that is possibly for 433 mhz radio remote-control ?

So bottom line:

The Sonota wiki page lists comments regarding various Sonoff Touch and T1 switches (I believe what I have is one of these switches, which come with either 1, 2 or 3 touch-sensitive switches). The comments for those say various things, as some firmware versions work or don't. A couple comments stand out:

"no issues except it took a while (20mins at least) for the FinalStage SSID to appear"

and

"OK but without option ("-s" doesn't work). no lines when finished"

The -s option is a "slow-speed" option, and if it is used then possibly it does take a long time to flash - longer than I've waited for. So maybe I'll try that again.

Otherwise:

- Sonota/Sonota32 does have some compatible functionality when run against this probable Sonoff clone T1 wall switch

- Sonota/Sonota32 interacts with the switch to the point of getting it to connect to my local lan, but the second stage of operation does not happen.