1993eg1 wrote: ↑
Sat Apr 06, 2019 11:37 pm
My question is can I use USB gadget and WiFi at the same time?
Yes, I've done it many times, and it doesn't require anything special. Properly configuring USB Ethernet Gadget mode and including a valid wpa_supplicant.conf file should just work. So either something is wrong with the way you have enabled Gadget mode, or something is wrong with your wpa_supplicant.conf file.
You could try the Raspbian Lite image I have pre-configured for USB Ethernet Gadget mode.
Click to download, 2018-11-13-raspbian-stretch-lite-Pi0USB.zip
It's the default Raspbian Stretch Lite image with Pi0(W) USB Ethernet Gadget mode and SSH enabled. Just write it you your SD card with Etcher
, add your pre-confgiured wpa_supplicant.conf, and DO NOT modify anything else.
- Put the card in your Pi0 or Pi0W
- Connect a normal micro USB data cable to the USB data port of the Pi0 (the one closest to HDMI)
- Do not connect anything to the power port (the one closest to the outer edge)
- Connect the other end of the micro USB cable to your main PC and the Pi0 should start to boot
- Note that the first boot can take awhile, so give it a couple of minutes before you try to SSH in
It should boot up in USB Ethernet Gadget mode, and you can SSH into: firstname.lastname@example.org
(or pi@raspberrypi). You should also see it on your local WiFi network with an IP address you can SSH into.
If you are using an older version of Windows, or haven't installed the latest Windows 10 updates, then mDNS/Zeroconf may not be supported and resolving raspberrrypi.local will fail. Install Apple's Bonjour printer service (or update Windows 10) to add mDNS/Zeroconf support. For a cleaner install (minus extra Apple nonsense you don't need) extract BonjourPSSetup.exe to a folder and just install Bonjour64.msi (or Bonjour.msi for 32-bit).
If it doesn't work, check Device Manager to see what driver (if any) was installed.
If you don't see this USB Ethernet/RNDIS Gadget driver under Network adapters,
then something is wrong with your Windows system (it's installing the wrong driver), and you can try this driver (all the details match the driver installed in my Win10 system). Other hardware - Acer USB Ethernet/RNDIS Gadget
If you DO see that driver but it has a problem, right click on it and uninstall it, then click on scan for hardware changes in the Action menu. If that doesn't fix it you can try the driver linked above.
This image was tested and confirmed working on a Pi0W with my Windows 10 notebook, another Raspberry Pi running Raspbian, and also my Chromebook.
My mind is like a browser. 27 tabs are open, 9 aren't responding,
lots of pop-ups...and where is that annoying music coming from?