Posts: 3
Threads: 1
Joined: Oct 2016
Reputation:
0
Hi,
I am trying to update the firmware of my NDIR vAir - CO2 Monitor to the latest version.
However I get the following error:
vAir found on : COM3
received:vAir CO2 Monitor: v1.9.3
Visit 'vair-monitor.com' for configuration details
sending: proxy
received:proxy
ESP Proxy
received:ò=>IÐÿþ
vAir - WiFi Module v1.6.1
ready
Waiting for auto-connect
received:IP address: 192.168.1.102 in 4033 ms
GOT IP
sending: otah
received:Starting Web update, mode 1
received:HTTP_UPDATE_FAILED
>
Tried it a couple of times.
Any idea what's going wrong?
Kind regards,
Peter
Posts: 3
Threads: 1
Joined: Oct 2016
Reputation:
0
Hi Vladimir,
Ok. Tried to follow the steps you described, however at step3 I get the following error:
D:\Downloads\fw>"c:\Program Files (x86)\Python\python.exe" espota.py --i 192.168.1.102 -f latestVairGit.bin -d -r
22:11:27 [DEBUG]: Options: {'esp_ip': '192.168.1.102', 'auth': '', 'esp_port': 8266, 'progress': True, 'spiffs': False, 'debug': True, 'image': 'latestVairGit.bin'}
22:11:27 [INFO]: Starting on 0.0.0.0:25080
22:11:27 [INFO]: Upload size: 310128
22:11:27 [INFO]: Sending invitation to: 192.168.1.102
Traceback (most recent call last):
File "espota.py", line 302, in <module>
sys.exit(main(sys.argv))
File "espota.py", line 297, in main
return serve(options.esp_ip, options.esp_port, options.auth, options.image,
command)
File "espota.py", line 91, in serve
sent = sock2.sendto(message, remote_address)
TypeError: a bytes-like object is required, not 'str'
Any idea what's going wrong here?
Regards,
Peter
Posts: 327
Threads: 19
Joined: Aug 2016
Reputation:
6
hmm.. which python version are you using, maybe it indeed does matter, at least such a suggestion did i found in one forum, can you try with 2.7.x? i have 2.7.8
Posts: 3
Threads: 1
Joined: Oct 2016
Reputation:
0
10-10-2016, 09:14 PM
(This post was last modified: 10-10-2016, 09:18 PM by Peter de Vries.)
I was using 3.5.x. So now I tried with 2.7.8 and looks better, however, now it seems I got a connection, but after a short while the connection is aborted:
D:\Downloads\fw>espota.py -i 192.168.1.102 -f latestVairGit.bin -d -r
23:10:48 [DEBUG]: Options: {'esp_ip': '192.168.1.102', 'image': 'latestVairGit.bin', 'auth': '', 'esp_port': 8266, 'spiffs': False, 'debug': True, 'progress': True}
23:10:48 [INFO]: Starting on 0.0.0.0:24071
23:10:48 [INFO]: Upload size: 310128
23:10:48 [INFO]: Sending invitation to: 192.168.1.102
23:10:48 [INFO]: Waiting for device...
23:10:58 [ERROR]: No response from device
In the vThings app I see the following response when starting the upload, but after a couple of seconds in ends with an error.
received:Start
Progress: 0%
received:Error[2]: Connect Failed
Error[4]: End Failed
Never mind... firewall was blocking communication on port 8266. After temporary disabling my firewall I was able to upload the firmware