mirko / SonOTA

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

Sonoff 1Ch 5V #142

Closed kajmaj closed 5 years ago

kajmaj commented 5 years ago

After some time I wanted to flash new sonoff via SonOTA but flashing failed. It did not start even first stage. Device Sonoff 1CH 5V with FW 1.8.1. What confuses me are additional APs ( 10.10.7.2, 169.254.150.152 ) I've never seen before

Debug info:

2018-08-21 09:37:23,782: DEBUG: Current IPs: ['192.168.1.157', '169.254.150.152']
2018-08-21 09:37:45,734: INFO: Using the following configuration:
2018-08-21 09:37:45,738: INFO:  Server IP Address: 192.168.1.157
2018-08-21 09:37:45,739: INFO:  WiFi SSID: XXXXXX
2018-08-21 09:37:45,740: INFO:  WiFi Password: ********
2018-08-21 09:37:45,741: INFO: Platform: win32
2018-08-21 09:37:45,804: INFO: ** Now connect via WiFi to your Sonoff device.
2018-08-21 09:37:45,806: INFO: ** Please change into the ITEAD WiFi network (ITEAD-100001XXXX). The default password is 12345678.
2018-08-21 09:37:45,807: INFO: To reset the Sonoff to defaults, press the button for 7 seconds and the light will start flashing rapidly.
2018-08-21 09:37:45,890: INFO: ** This application should be kept running and will wait until connected to the Sonoff...
2018-08-21 09:38:23,541: DEBUG: Current IPs: ['10.10.7.2', '169.254.150.152']
2018-08-21 09:38:23,577: DEBUG: ~~ Connection attempt
2018-08-21 09:38:23,578: DEBUG: >> HTTP GET /10.10.7.1/device
2018-08-21 09:38:23,656: DEBUG: << {
2018-08-21 09:38:23,657: DEBUG:     "deviceid": "100040b143",
2018-08-21 09:38:23,660: DEBUG:     "apikey": "3411503b-523a-4149-aa92-533581e26193",
2018-08-21 09:38:23,664: DEBUG:     "accept": "post"
2018-08-21 09:38:23,665: DEBUG: }
2018-08-21 09:38:23,666: DEBUG: >> HTTP POST /10.10.7.1/ap
2018-08-21 09:38:23,667: DEBUG: >> {
2018-08-21 09:38:23,668: DEBUG:     "serverName": "192.168.1.157",
2018-08-21 09:38:23,669: DEBUG:     "version": 4,
2018-08-21 09:38:23,670: DEBUG:     "password": "********",
2018-08-21 09:38:23,671: DEBUG:     "ssid": "XXXXXX",
2018-08-21 09:38:23,672: DEBUG:     "port": 8443
2018-08-21 09:38:23,673: DEBUG: }
2018-08-21 09:38:23,980: DEBUG: << {
2018-08-21 09:38:23,982: DEBUG:     "error": 0
2018-08-21 09:38:23,988: DEBUG: }
2018-08-21 09:38:23,991: INFO: ~~ Provisioning completed
2018-08-21 09:38:23,994: INFO: Starting stage2...
2018-08-21 09:38:24,108: INFO: ** The IP address of <serve_host> (192.168.1.157) is not assigned to any interface on this machine.
2018-08-21 09:38:24,108: INFO: ** Please change WiFi network to XXXXXX and make sure 192.168.1.157 is being assigned to your WiFi interface.
2018-08-21 09:38:24,116: INFO: ** This application should be kept running and will wait until connected to the WiFi...
2018-08-21 09:38:36,814: DEBUG: Current IPs: ['192.168.1.157', '169.254.150.152']
2018-08-21 09:38:36,814: INFO: ~~ Starting web server (HTTP port: 8080, HTTPS port 8443)
2018-08-21 09:38:36,820: INFO: ~~ Waiting for device to connect
2018-08-21 09:38:36,858: INFO: *** IMPORTANT! ***
2018-08-21 09:38:36,859: 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.
2018-08-21 09:38:36,859: INFO: ** ONLY disconnect when the new "FinalStage" SSID is visible as an available WiFi network.
2018-08-21 09:38:36,864: INFO: This server should automatically be allocated the IP address: 192.168.4.2.
2018-08-21 09:38:36,865: 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.
2018-08-21 09:39:38,338: INFO: *** IMPORTANT! ***
2018-08-21 09:39:38,339: 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.
2018-08-21 09:39:38,344: INFO: ** ONLY disconnect when the new "FinalStage" SSID is visible as an available WiFi network.
2018-08-21 09:39:38,345: INFO: This server should automatically be allocated the IP address: 192.168.4.2.
2018-08-21 09:39:38,346: 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.
sillyfrog commented 5 years ago

Please see the README on the home page