B.Goode wrote: ↑
Sun Sep 08, 2019 1:13 pm
TheNightWatch wrote: ↑
Sun Sep 08, 2019 12:53 pm
B.Goode wrote: ↑
Sun Sep 08, 2019 12:44 pm
I understand the article, but could it be used to connect a pi 1 to the pi 0 ap?
'Ethernet gadget' mode via the usb connector requires a usb cable. It will not give a path to the Access Point function on the RPiZero.
To access the WiFi access point on your RPiZero you will need a device with a wlan/WiFi interface, either built-in or via an external usb dongle. (I don't recall whether there is any version of the Raspberry Pi Model 1 that has built-in WiFi.)
I have to disagree here though this is partly theoretical and not step by step instructions.
An ethernet over USB link between a "standard" Pi and a zeroW requires the zeroW to be run as a USB slave device running the g_ether module.
Once setup what the OS on each end actually sees is a network interface, usually called usb0 (unless you have more than one). These can be used the same as any other network interfaces. It doesn't matter which is the USB host and which is the USB device. Yes, I've tested this, though not with running an AP.
So, try this:
- Set up USB gadget and g_ether on the zeroW.
- Install bridgeutils and create a network bridge containging only the USB interface. Any static IP configurqation previously done to the WiFi interface needs to be moved to the bridge.
- Configure your AP software to bridge using the bridge interface created above.
- Connect to the other Pi. It should "just work" and its usb0 interface should get its config from your AP's dhcp server.
The zeroW's usb0 interface will be present as long as the g_ether module is loaded regardless of whether anything is connected to the other end of the USB port/cable.
MAC addresses will be randomly generated (and different) for each end of the USB link. This is likely to only be a problem if your dhcp server assigns fixed IP addressed according to the client's MAC address.
Attempts to contact me outside of thes forums will be ignored unless signed in triplicate, sent in, sent back, queried, lost, found, subjected to public enquiry, lost again, and finally buried in soft peat for three months and recycled as firelighters