I am interested in having my Wyze cameras running at a vacant property that does not have internet access. I want to access the cameras with my phone/tablet Wyze app while I am not there. Since I do not have wifi/internet access at the property I considered using my Pixel 2 Wifi hotspot. Basically have the Wyze Base Station connect to the hotspot. After several attempts I have never been successful connecting the Wyze Base Station to the phone hotspot. I have questioned Wyze support and was told that it is not possible.
I decided to configure an RPi as an Access Point to behave as a traditional Wifi router and connect the phone to it as the internet source.
I have searched this forum for anyone using an RPi WAP with USB tethered Phone. I have not found anyone documenting this solution.
I am connecting the phone’s USB to the OTG USB port of the RPi.
Think RPi = traditional wifi home router, phone = cable modem.
So there are 2 things that need enabling/configuring.
- The USB tethering feature of the phone
- The Raspberry Pi
Raspberry Pi setup
I followed these instructions.
I had replaced one of the steps in these instructions.
Replace this step
sudo iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
sudo iptables -t nat -A POSTROUTING -o usb0 -j MASQUERADE
USB Tethering setup
There are various ways to enable USB tethering on an android phone. This due to the various software versions. This video works with my phone.
If you are having issues with the USB tether acting flaky try these instructions to maybe correct the behavior.
After both are configured plug them together.
Get a command promt to the RPi via SSH and key in ifconfig. usb0 should have an IP assigned to it. Below is the output of my command. This indicates that you set things up successfully.
pi@raspberrypi:~ $ ifconfig lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536 inet 127.0.0.1 netmask 255.0.0.0 inet6 ::1 prefixlen 128 scopeid 0x10<host> loop txqueuelen 1000 (Local Loopback) RX packets 3562 bytes 240755 (235.1 KiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 3562 bytes 240755 (235.1 KiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 usb0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 192.168.63.160 netmask 255.255.255.0 broadcast 192.168.63.255 inet6 fe80::acfb:1896:125d:52ed prefixlen 64 scopeid 0x20<link> ether 06:fe:72:e5:2e:17 txqueuelen 1000 (Ethernet) RX packets 81 bytes 5893 (5.7 KiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 99 bytes 13744 (13.4 KiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 192.168.4.1 netmask 255.255.255.0 broadcast 192.168.4.255 inet6 fe80::dad6:760:685d:988d prefixlen 64 scopeid 0x20<link> ether e4:5f:01:5d:3d:21 txqueuelen 1000 (Ethernet) RX packets 68345 bytes 36455819 (34.7 MiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 34371 bytes 7113560 (6.7 MiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 pi@raspberrypi:~ $
This is what I am working with
1 x Raspberry Pi Zero 2 W
1 x Pixel 2 Android phone
2 x Micro USB cables plugged into Raspberry Pi.
- One is used as the power source
- One is connecting to the phone thru the female adaptor.
1 x female to female usb adaptor.
- This connects the phone cable to the micro usb cable of the Raspberry Pi.
1 x phone usb cable.
- One end plugs into the phone the other plugs into the female adaptor. This is the cable that came with the phone.
1 x Wyze Base Station FW ver. 188.8.131.52
2 x Wyze Cam Outdoor FW ver. 184.108.40.206
1 x Wyze Cam v3 FW ver. 220.127.116.11