Advertisements

Archive for April 9th, 2019

Wyze V2 Cameras: Xiaomi-Dafang Hacks, Round 2

Another attempt at replacing the Wyze camera firmware went much more smoothly, producing a pair of small cameras with better network manners:

Wyze Camera hacks - Cam 1 overhead workbench
Wyze Camera hacks – Cam 1 overhead workbench

That’s a VLC screen capture from the RTSP stream; obviously, I must up my clutter control game.

I formatted a 32 GB MicroSD card with a 512 MB partition, which may not be strictly necessary, copied the MicroSD CFW bootloader (as demo.bin, sheesh), and it installed without drama.

I resized the partition to 32 GB, installed the firmware (per the FAQ) into the root directory, tweaked the configuration files to match my situation, popped it in the camera, plugged the power cable, and It Just Worked™.

Herewith, a checklist of config directory files requiring tweakage:

  • wpa_supplicant – WiFi SSID and password
  • timezone.conf – America/New_York for us
  • osd.conf – can be tweaked through the Web interface
  • staticip.conf – 192.168.1.11x, as you like
  • resolve.confpihole or router IP, as needed
  • defaultgw.conf – router IP
  • rtspserver.conf – different ports for additional cameras

It would be possible to have the pihole’s DHCP server assign a fixed IP address to each camera, based on its MAC address, but this way the camera knows who it is right from the start and what it’s supposed to be doing.

The router isn’t bright enough to route different port numbers on its Internet side to different LAN IP addresses with the same port address, so each camera must stream from a different port number. I don’t plan many world-available video streams, but a friend does enjoy watching the birds during feeder season.

With the RTSP stream up & running, I flashed the U-Boot bootloader (again, minus drama) and tweaked its uEnv.txt configuration file:

  • Change the memory layout to allow 1920×1080 video
  • ethaddr – set to match hardware MAC address
  • gateway – router IP
  • ipaddr – match the staticip.conf value
  • serverip – router IP (unclear what this does)

The cameras now produce no objectionable network activity, dramatically down from the Wyze firmware’s desperate attempts to contact various servers, every five minutes, around the clock. I have no way of tracking connections made with direct dotted-quad IP addresses, rather than through the pihole, but … this is a distinct improvement.

Advertisements

11 Comments