-
I'm looking to get some help getting a single cable USB Direct connection to work. I've been trying to follow the guide here: However I think I'm lacking the knowledge around the different types of networking configs (interfaces, dhcpcd.conf, systemd-networkd) with different distros of Linux. I'm using Linux Mint on a x64 and I see there's a /etc/network/interfaces but no dnsmasq.conf on the PC host. Are there there dependencies I need to install? When I turn on USB-Direct, the camera still connects by wifi and I see the usb0 is in a DOWN state. Any help or guidance on what I should read up on is greatly appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 29 replies
-
if the camera is still connecting with wifi, what's your wz_mini.conf look like, specifically are you using bonding or something like that? here's my base config on my cameras:
basically the only variation is the with that config, the camera should be set for usb direct. just to emphasize because this was an immensely annoying problem the usb mini to A cable that comes with the wyze camera does not support data, so it won't work. (I had a bunch of other mini to A cables lying around and only 1 worked - so I bought a bunch). Assuming the camera is correctly configured, then it should show up in on my RPI,
Without doing any settings on your linux system, the ip address should be a random private assign ip. **That IP address is for the linux computer -- not the usb direct camera **, because each usb camera sets up a small network. To recap:
|
Beta Was this translation helpful? Give feedback.
-
I. In terms of USB direct then you've got the same sort of setup I do
So far I've been primarily working with 3. By running,
on my mac, I can access all of the cameras because now they know to route over the RPI. Solution 3 only works on a device-by-device basis though and non-rooted android doesn't provide access to route tables. For 2, I've got it queued up for the next time the upstream router reboots, so hopefully that will give all of my devices access to the cameras directly. For 1, I'm confident it is possible but I haven't figured it out yet. I think the basic setup would be (1) turn off dhcp assigning that faces the usb-directs and (2) bridge the internet-facing interface with all of the usb-directs so that they all go to the main network and get their dhcp there. I've also done a bit for 4 (proxy) with all 5 cameras visible on a page web page on the RPI from any local device which updates the image every second -- it's not RTSP but it's something. |
Beta Was this translation helpful? Give feedback.
-
I managed to get bridging to work, and with the GUI of all things. My main mistake was not rebooting the camera, as the IP pull is on the camera side (even if I restart the network service on the linux host, the wyze camera still holds on to the old IP). For those in the future looking to set this up, on the wyze camera just turn on usb-direct and connect to linux host. On the linux host, create a bridge between eth0 (or whatever your ethernet interface is to the local network) and the wyze camera network interface (could be usb0 or in my case was enx------). Make sure it set to Automatic DHCP if you want it pull an IP from router. In Linux mint GUI this duplicates the interfaces, so I had to remove the old 'wired connection' network (which generated a local 10.42.x network in my case). Reboot camera and I saw it pulled an IP via DHCP from my router. Next step is to see if bonding with a wifi fallback will work, which i assume it should since now I have a local network IP, but I might have to set up the USB direct mac address to be the same as the wifi adapter? Will have to test... edit actually how would bonding work in this scenario? looking at the interfaces on the camera with usb-direct on, it looks like it already uses wlan0. Would i set up wlan0 as the primary, and wlanold as the secondary? Many thanks your help @virmaior ! |
Beta Was this translation helpful? Give feedback.
I managed to get bridging to work, and with the GUI of all things.
My main mistake was not rebooting the camera, as the IP pull is on the camera side (even if I restart the network service on the linux host, the wyze camera still holds on to the old IP).
For those in the future looking to set this up, on the wyze camera just turn on usb-direct and connect to linux host. On the linux host, create a bridge between eth0 (or whatever your ethernet interface is to the local network) and the wyze camera network interface (could be usb0 or in my case was enx------). Make sure it set to Automatic DHCP if you want it pull an IP from router.
In Linux mint GUI this duplicates the interfaces, so I ha…