HclX / WyzeUpdater

A tool to push arbitrary update to wyze devices.
MIT License
53 stars 7 forks source link

Camera downloads the file but doesn't apply the update #5

Closed Yura80 closed 3 years ago

Yura80 commented 3 years ago

When I'm trying to update my camera with this tool, everything seems to work as expected, but camera doesn't reboot and stays silent. Reported version number stays the same after a manual reboot and there is no telnet access. I tried it several times with the provided camera_telnet.bin, as well as with unmodified official demo_V2_RTSP_4.28.4.41.bin

$ sudo ./wyze_updater.py --user '*****' --password '*****' update -d XXXXXXXXXXXX -f firmwares/camera_telnet.bin -p 82
INFO:root:Trying saved credentials from .tokens.
INFO:root:Checking device, mac=XXXXXXXXXXXX 

Device type:      Camera (WYZEC1-JZ)
Device name:      Front Door
Firmware version: 4.9.6.199
IP Address:       10.0.0.51

Pushing firmware to this device? [y/N]:y
INFO:root:Serving firmware file 'firmwares/camera_telnet.bin' as 'http://10.0.0.2:82/firmware.bin', md5=43205cf9e8a58b915728fb2f579b8ab7
10.0.0.51 - - [22/Oct/2020 20:57:26] "GET /firmware.bin HTTP/1.1" 200 -
Press Ctrl+C when all the updates are done...
..........................................................................................................^C
INFO:root:Stopping http server...

$ ./wyze_updater.py --user '*****' --password '*****' list
INFO:root:Trying saved credentials from .tokens.

Device Type:       Camera (WYZEC1-JZ)
Device MAC:        XXXXXXXXXXXX 
Firmware Version:  4.9.6.199
Device Name:       Front Door

$ telnet 10.0.0.51
Trying 10.0.0.51...
telnet: Unable to connect to remote host: Connection refused
Yura80 commented 3 years ago

Got it to work right after creating the issue. Apparently, it doesn't like non-standard http ports. It went through as soon as I changed the port to 80.

akivacp commented 3 years ago

I tried to install the RTSP software remotely using this method, but it doesn't work for me. the periods go on for long periods, but the camera does not update.

~/WyzeUpdater/$ sudo ./wyze_updater.py update -f firmwares/demo_4.28.4.51.bin -d xxxxxxxxxxxx
INFO:root:Trying saved credentials from .tokens.
INFO:root:Checking device, mac=xxxxxxxxxxxx

Device type:      Camera (WYZEC1-JZ)
Device name:      Wyze Cam
Firmware version: 4.9.6.238
IP Address:       192.168.x.x

Pushing firmware to this device? [y/N]:y
INFO:root:Serving firmware file 'firmwares/demo_4.28.4.51.bin' as 'http://192.168.x.x/firmware.bin', md5=xxxxxxxxxxxxxxxxxxxxxxx
192.168.x.x - - [15/Feb/2021 10:50:55] "GET /firmware.bin HTTP/1.1" 200 -
Press Ctrl+C when all the updates are done...
................................................................................................