mirko / SonOTA

Flashing Itead Sonoff devices with custom firmware via original OTA mechanism
GNU General Public License v2.0
721 stars 103 forks source link

Sonoff Basic R1 1.5.5 not flashing. #189

Open GAZ082 opened 2 months ago

GAZ082 commented 2 months ago

I'm puzzled. Been reviewing old issues here, nothing seem to work. This device SHOULD work as according to eWelink is 1.5.5. No idea what to test. I'm working with a WIFI dongle and a OpenWRT powered router.

One interesting thing is, after a few seconds of being connected to the ITEA network, the device quits the pairing mode (usually, lasts for about a minute or so).

Please also drag and drop the generated debug_########.log file onto the issue so it is attached.

2024-09-10 13:03:14,266: INFO: Using the following configuration:
2024-09-10 13:03:14,266: INFO:  Server IP Address: 192.168.2.231
2024-09-10 13:03:14,266: INFO:  WiFi SSID: OpenWRT24
2024-09-10 13:03:14,266: INFO:  WiFi Password: ***************
2024-09-10 13:03:14,266: INFO: Platform: linux
2024-09-10 13:03:14,269: INFO: ** Now connect via WiFi to your Sonoff device.
2024-09-10 13:03:14,269: INFO: ** Please change into the ITEAD WiFi network (ITEAD-100001XXXX). The default password is 12345678.
2024-09-10 13:03:14,269: INFO: To reset the Sonoff to defaults, press the button for 7 seconds and the light will start flashing rapidly.
2024-09-10 13:03:14,269: INFO: ** This application should be kept running and will wait until connected to the Sonoff...
2024-09-10 13:03:28,294: DEBUG: Current IPs: ['10.10.7.2', '192.168.2.222', '192.168.2.100', '192.168.100.1', '172.17.0.1']
2024-09-10 13:03:28,295: DEBUG: ~~ Connection attempt
2024-09-10 13:03:28,295: DEBUG: >> HTTP GET /10.10.7.1/device
2024-09-10 13:03:28,315: DEBUG: << {
2024-09-10 13:03:28,316: DEBUG:     "deviceid": "1000150889",
2024-09-10 13:03:28,316: DEBUG:     "apikey": "e041d8a3-bf49-4818-9de7-f8bd5e6c7c85",
2024-09-10 13:03:28,316: DEBUG:     "accept": "post"
2024-09-10 13:03:28,316: DEBUG: }
2024-09-10 13:03:28,317: DEBUG: >> HTTP POST /10.10.7.1/ap
2024-09-10 13:03:28,317: DEBUG: >> {
2024-09-10 13:03:28,317: DEBUG:     "version": 4,
2024-09-10 13:03:28,317: DEBUG:     "ssid": "OpenWRT24",
2024-09-10 13:03:28,317: DEBUG:     "password": "***************",
2024-09-10 13:03:28,317: DEBUG:     "serverName": "192.168.2.231",
2024-09-10 13:03:28,317: DEBUG:     "port": 8443
2024-09-10 13:03:28,317: DEBUG: }
2024-09-10 13:03:28,480: DEBUG: << {
2024-09-10 13:03:28,481: DEBUG:     "error": 0
2024-09-10 13:03:28,481: DEBUG: }
2024-09-10 13:03:28,481: INFO: ~~ Provisioning completed
2024-09-10 13:03:28,481: INFO: Starting stage2...
2024-09-10 13:03:28,485: INFO: ** The IP address of <serve_host> (192.168.2.231) is not assigned to any interface on this machine.
2024-09-10 13:03:28,485: INFO: ** Please change WiFi network to OpenWRT24 and make sure 192.168.2.231 is being assigned to your WiFi interface.
2024-09-10 13:03:28,486: INFO: ** This application should be kept running and will wait until connected to the WiFi...
2024-09-10 13:03:46,509: DEBUG: Current IPs: ['192.168.2.100', '192.168.2.222', '192.168.100.1', '172.17.0.1']
2024-09-10 13:03:48,512: DEBUG: Current IPs: ['192.168.2.231', '192.168.2.222', '192.168.2.100', '192.168.100.1', '172.17.0.1']
2024-09-10 13:03:48,512: INFO: ~~ Starting web server (HTTP port: 8080, HTTPS port 8443)
2024-09-10 13:03:48,513: DEBUG: Using selector: EpollSelector
2024-09-10 13:03:48,518: INFO: ~~ Waiting for device to connect
2024-09-10 13:03:48,520: INFO: *** IMPORTANT! ***
2024-09-10 13:03:48,520: 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.
2024-09-10 13:03:48,520: INFO: ** ONLY disconnect when the new "FinalStage" SSID is visible as an available WiFi network.
2024-09-10 13:03:48,520: INFO: This server should automatically be allocated the IP address: 192.168.4.2.
2024-09-10 13:03:48,521: 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.
2024-09-10 13:04:09,393: INFO: Quitting.