-
-
Notifications
You must be signed in to change notification settings - Fork 192
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
Ethernet Gadget mode on RPi Zero #216
Comments
As you correctly identified, Ethernet Gadget mode (see https://learn.adafruit.com/turning-your-raspberry-pi-zero-into-a-usb-gadget/ethernet-gadget) ist currently not supported by RaspberryMatic. In fact, you are the first one requesting it. :) Thus, I will flag this as a feature request but give it somewhat low priority, I am afraid. |
Hi and thanks a ton for that quick reply! I fully understand, that this feature is flagged as "low priority", because nobody else requested it before. Nevertheless I think it will by a very valuable feature, as it opens up a broad range of possible system setups. I could imagine, that there are other people but me out there, who use the RPi (Zero) exclusively for Raspberrymatic, because the RF module is only supported on that platform, while having their main home automation system on another platform. In this case, the wiring setup would be simplified. In case of the RPi Zero, it would be even more valuable, because there were people (in the past), who had problems with the initial WiFi network setup, because they had no SSH access because the network credentials were not configured, yet. No network, no SSH, no SSH, no way to edit network... Long story made short: I understand and accept, that this feature is low prioritized. But maybe it is worth to have a look at how complicated it is to implement it. I have no idea about that. So if you say "no", then it is a "no" :) . Thank you anyway! |
Just in case, that you decide not to implement the gadget mode: Greetings |
@Jojo-A, have you had any success with this by now? I'm also quite interested in this feature. |
I just got this to work, but it's slightly involved: RaspberryMatic setup
Host setupIn my use case, I use the pi zero on another home automation linux computer. I wanted the pi zero to be bridged to my home network like any other devices (and thus get an IP from my router's dhcp server). For this, I created a network bridge using netplan and udev:
As far as adding official support to RaspberryMatic for this, I can imagine that it's easy to add dwc2.dtbo to the RaspberryMatic image. Except for the udev rule, the other changes are only active if the user sets |
Thanks for all these hints and suggestions. Feel free to pack all that into a proper PullRequest and propose it for integration as I would love to integrate gadget mode in one of the next releases. |
Thanks to @fhirschmann USB Ethernet Gadget mode is now available for the Pi Zero (W). Coming up with next upcoming RaspberryMatic release... |
Hi. As @fhirschmann nicely implemented USB ethernet gadget mode now in RaspberryMatic I would like to ask anyone interested to test it in the latest release candidate version of RaspberryMatic. You can download the rpi0 version from here: https://cloud.light-speed.de/s/xby5d4B7YFRCxyH Any feedback is highly appreciated. If no issues are found this version will then be released during the next week. |
Awesome! I'm happy to test this out, but I'm currently abroad and unable to test it for the next three weeks. |
Hi,
the ethernet gadget mode seems to be not working properly.
Usecase:
Raspberrymatic is running on a Raspberry Pi Zero, while main home autoamtion system is running on another system (host).
To simplify the setup, I'd like to connect the RPiZ to the host via USB to provide both power and share the network/internet connection of the host to the RPiZ. In this scenario, the RpiZ needs to be detected as a USB network device by the host.
I modified the config.txt file to load the corresponding device tree overlay, as well as the boot command to load the corresponding driver modules according to various tutorials.
After these changes, the RPi should show up as a USB ethernet device, when plugged in into another host system. But it doesn't.
Problem: I can not debug this by myself, because the RPiZ has only one USB port, which needs to be used exclusively for ethernet (via USB). So I can not connect any input devices without cutting the (planned) network connection. But without network connection (via USB), I can not trace down the cause of the problem :( .
Greetings
The text was updated successfully, but these errors were encountered: