New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Initial release of USB gadget mode #6
Conversation
Any way I could help test this? |
Hi @EnDeRWiGiN, I think yes, but you need to update your code on SD card. Here are steps that you need to follow:
mv mobro-raspberrypi mobro-raspberrypi_old
mv display-drivers display-drivers_old
cd /home/modbros
git clone https://github.com/stanoba/mobro-raspberrypi.git
cd mobro-raspberrypi
chmod +x install.sh
sudo ./install.sh Note: This step is better to do on RPI3 or RPI4 as Zero could be quite slow. After installation you can put SD card back to Zero.
|
Okay, so I followed your instruction and was able to do steps 1-3 smoothly. There was a problem once I tried to connect over USB. I was getting a "USB could not be deciphered" problem. Knowing that it might be a config problem I checked the config.txt file and cmdline.txt. The config file was correct and had "dtoverlay=dwc2" but the cmdline.txt file did not have "modules-load=dwc2,g_ether" after rootwait. I added this and was able to proceed. I was able to do steps 4-8 but afterward, the PI did not see the server even though I could go to the configurator and SSH into it. I was able to set the network to private and ran the configuration multiple times but I could not get the Pi to see the modbros Client. I tried the static IP of the computer on that network adapter and the normal Network name but it could not find the client. I ended up removing all the firewall rules and reinstalling modbros and I got it to work! (I have a feeling I messed up the firewall rules while tried to get other things working) TLDR:
|
Thanks for putting in the work to implement this feature @stanoba 👍 I'll have a look at all of it once i find time to do so. Also we will need to update all of those Waveshare configuration files.. :/ |
Hi, every time I follow this guide I get the exact same log and Windows cant recognice my raspberry with conected USB, althoug modbros app finds it and it works through wifi, not USB. |
@Ezero03 Did you make sure the config.txt file and the cmdline.txt file had correct lines to enable the USB port to become a network adapter? Did you try the items in my post:
|
This PR should cover issue #1
Main changes:
Serial
number instead of MAC addressNote: USB Gadget is compatible with Raspberry Pi 0, 0W, A, A+, and 4 only. (Pi B, B+, 2, 3, 3A+, and 3B+ lack the required pin for OTG)