it's my first question over here. I'm wondering if I could use more than one USB Gadget like in that Tutorial just that I use g_ether and the mass storage. Thanks in advance!
2 Answers
Look into g_multi
gadget, which supports multiple functions in one configuration:
- a CDC Ethernet (ECM) link
- a CDC ACM (serial port) link
- a USB Mass Storage device
If you want to connect your Pi to Windows, read the docs describing how to get the right drivers installed for each function.
Yes, You can by buying a USB Hub and plugging it into the Raspberry Pi Zero (I would recommend 2.0 and over).
-
3You should probably also recommend that the op buys a powered hub because of the low max power output of the Pi zero May 30, 2016 at 17:50
-
watch out about compatibility of raspberry pi zero and usb hubs that seems not simply to be related to the hub being a powered one but specifically on chipset compatibility like many users are reporting. have a look at this list that has been created so far: elinux.org/RPi_Powered_USB_Hubs even though only one at the top seems to be specific for the zero.– tentJun 23, 2016 at 13:32
-
the official hub has a micro USB connector for the pi zero and has the option to use external power.– JakeJun 15, 2020 at 13:54
-
This answer completely fails to address the question, which is about the USB Composite Gadget drivers, not about plugging more devices in downstream ports. Oct 8, 2021 at 11:18