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

Sonota.exe 2.6.0 close itself #161

Open blazkom opened 5 years ago

blazkom commented 5 years ago

When i start sonota.exe I input wifi and password of my home network. then i connect PC to wifi of sonoff but then sonota.exe close itself after 2-5 seconds. Maybe sonota.exe is not compatible with FW 2.6.0?

Klangen82 commented 5 years ago

Same for me:/ Will never start the flash process or the sonata.exe will close itself.

eloo commented 5 years ago

For me the same. And i see the following output before it stops.

...Current IPs: ['10.10.7.2']
~~ Connection attempt
>> HTTP GET /10.10.7.1/device
<< {
    "deviceid": "****",
    "accept": "post",
    "apikey": "********"
}
>> HTTP POST /10.10.7.1/ap
>> {
    "serverName": "192.168.178.24",
    "password": "***************",
    "version": 4,
    "ssid": "***",
    "port": 8443
}
Traceback (most recent call last):
  File "sonota.py", line 734, in <module>
  File "sonota.py", line 729, in main
  File "sonota.py", line 612, in stage1
  File "httplib2\__init__.py", line 1322, in request
  File "httplib2\__init__.py", line 1072, in _request
  File "httplib2\__init__.py", line 1025, in _conn_request
  File "http\client.py", line 1198, in getresponse
  File "http\client.py", line 297, in begin
  File "http\client.py", line 258, in _read_status
  File "socket.py", line 576, in readinto
socket.timeout: timed out
[7380] Failed to execute script sonota
[7380] LOADER: OK.
[7380] LOADER: Cleaning up Python interpreter.
[7356] LOADER: Back to parent (RC: -1)
[7356] LOADER: Doing cleanup
[7356] LOADER: Freeing archive status for E:\Downloads\sonota.exe

any ideas?

Klangen82 commented 5 years ago

I missed this:

image

So I guess this is a know issue...

https://github.com/mirko/SonOTA

mgabor3141 commented 4 years ago

I'm getting the same error, but I'm only on 1.6.0; I would think that this version should still work.

Log:

        Server IP Address: 192.168.0.38
        WiFi SSID: mgnet_home
        WiFi Password: ******************
Platform: win32
** Now connect via WiFi to your Sonoff device.
** Please change into the ITEAD WiFi network (ITEAD-100001XXXX). The default password is 12345678.
To reset the Sonoff to defaults, press the button for 7 seconds and the light will start flashing rapidly.
** This application should be kept running and will wait until connected to the Sonoff...
.....................Current IPs: ['10.10.7.2']
~~ Connection attempt
>> HTTP GET /10.10.7.1/device
<< {
    "apikey": "e657c395-c1f5-43df-824a-f4f1fde041d2",
    "deviceid": "1000373102",
    "accept": "post"
}
>> HTTP POST /10.10.7.1/ap
>> {
    "port": 8443,
    "serverName": "192.168.0.38",
    "version": 4,
    "ssid": "mgnet_home",
    "password": "******************"
}
Traceback (most recent call last):
  File "sonota.py", line 734, in <module>
  File "sonota.py", line 729, in main
  File "sonota.py", line 612, in stage1
  File "httplib2\__init__.py", line 1322, in request
  File "httplib2\__init__.py", line 1072, in _request
  File "httplib2\__init__.py", line 1025, in _conn_request
  File "http\client.py", line 1198, in getresponse
  File "http\client.py", line 297, in begin
  File "http\client.py", line 258, in _read_status
  File "socket.py", line 576, in readinto
socket.timeout: timed out
[15064] Failed to execute script sonota
[15064] LOADER: OK.
[15064] LOADER: Cleaning up Python interpreter.
[11224] LOADER: Back to parent (RC: -1)
[11224] LOADER: Doing cleanup