Hello,
Recently I’ve tried to connect Raspberry Pi Zero to my RB962UiGS (hap ac). The mini computer (rPi) has only one micro usb interface connected directly to it’s cpu which gives the possibility to configure it as usb host/otg. The rPi uses dwc2 overlay to control the otg/host functionality and g_ether for the usb interface communication, there are other possibilities as well like g_serial and g_multi. When using g_ether and when connected to PC, the PC detects it as RNDIS/Ethernet Gadget and you can assign address, share internet connection to it and so on. When connected to RB using the same g_ether module it only shows it in the /system resource usb again as RNDIS/Ethernet Gadget. Reading about RouterOS usb support I’ve decided to change the configuration a little bit using g_multi and configfs(linux virtual filesystem used to configure g_multi and others alike). I’ve configured the rPi to use cdc_ecm using g_multi and configfs and there you go - RouterOS detected it as LTE interface, but sadly there is not much you can do with it since it’s not actual LTE. Then I’ve decided using the same configuration to add static ip address to rPi’s usb0 interface and dnsmasq for dhcp server with the idea to set dhcp client on the lte interface on RouterOS side, but I hit another wall - now the lte interface is gone, RouterOS still detects it in /system resource usb.
So my question is: Is there any way I can connect raspberry pi using usb and why lte interface was gone after adding dhcp server on the rPi side?
tl;dr:
raspberry pi with g_multi module and configfs cdc_emc configuration → routeros lte interface (what can be done with it since its no real lte interface)?
raspberry pi with g_multi module and configfs cdc_emc configuration and dhcp server and static address → routeros NO lte interface (any reason why?)
raspberry pi using usb interface – routeros how?
I’m just facing the same problem with my RPi Zero W… it is recognized as RNDIS/Ethernet Gadget on my router but I’m forced to use wireless to connect them.
monitoring for both the RPi and router via mobile app.
So it’s an 40€ HD camera you just plug into USB port of your router on some remote location that uploads images to the cloud and also warns you if something stops working. I believe it is worth adding to the list of working USB ethernet devices…
Hi, I am planning on adding a Pi Zero to run a Pi-hole server. And the plan is to connect the raspberry data port into the hAP Ac USB port. So, does rb assign an ip address to the usb device? This post is the only post contains both hAP AC and a Pi-Zero. And what will be the Putty command for the connected usb device?
Is it possible to know how did you manage to have the pi detected by the routeros using g_ether module? With a RB951G 2HnD i wasn’t able even to let the usb recognise it. Is it possible to know how this need to be done ?
I am thinking of getting a Pi 3 B+. It has an ethernet port, can I simply connect ether4 directly to the pi-device for example or is the preferred method via USB?
I thought the USB was to attach a keyboard or something?
First, add this line at the end of your Pi zero’s /boot/config.txt to enable usb peripheral mode: dtoverlay=dwc2,dr_mode=peripheral
Then insert the following code before the final “exit 0” in your /etc/rc.local and reboot:
this worked great! I assigned the IP address on the lte1 as well as usb0 (on a new subnet) and can reach usb0 from my main bridge subnet with no problem.
It would be easier if I could make the lte1 interface part of the main bridge. Then usb0 on Pi could simply get the IP from the dhcp server running on the mikrotik,
However I could not figure out how to do that. lte1 is not on the list of ports to add to the bridge. I read about the passthrough but not sure if it’s applicable in this case.
Hi All, I have followed this guide: https://www.ctrl-alt-del.cc/2020/01/mikrotik-pi-zero-pi-hole-advertising.html but the pizero is not recognized by the Mikrotik which is RB951G-2HnD. Unfortunately, the raspberry is without Wi-Fi. While connected to PC I manage to SSH to it, install pihole & etc. Can someone help with an advice?