Microdds not working with Microhard modem
-
I installed a Microhard modem (192.168.168.200) and connected a Wi-Fi dongle to the USB port on the modem. I used MicroDDS through Wi-Fi and the Microhard modem.
One day, I tried to use MicroDDS without the Wi-Fi dongle connected, but systemctl start voxl-microdds-agent did not work. When I reconnected the Wi-Fi dongle to the Microhard modem, MicroDDS worked.
Then I removed the dongle and ransystemctl restart voxl-microdds-agent, and it worked.However, when I restart the whole system and try to run it again without the Wi-Fi dongle, it does not work.
Do you have any ideas on how to resolve this?
-
@voxltester said in Microdds not working with Microhard modem:
Do you have any ideas on how to resolve this?
There might be a dependency in the service file - I would recommend taking a look at the file in /etc/systemd/system/voxl-microdds-agent.service and see if there are any dependencies on having WLAN devices plugged in - I am under the impression there is not that dependency, but there is a conflict on which interface you want the dds to start on - so ideally you can add in which interface you wish to leverage into the service file.
Zach
-
@Zachary-Lowell-0
Thank you for the reply.I have
starling2-max (D0012):/etc/systemd/system$ cat voxl-microdds-agent.service [Unit] Description=voxl-microdds-agent SourcePath=/usr/bin/MicroXRCEAgent After=network.target After=multi-user.target [Service] User=root Type=simple ExecStart=/usr/bin/MicroXRCEAgent udp4 -p 8888 [Install] WantedBy=multi-user.targetWithout wifi dongle connection on the Microhard,
ifconfigshows the following.
(usb0 has some ip address, but it is not connected to the internet.)starling2-max (D0012):~$ ifconfig bond0: flags=5123<UP,BROADCAST,MASTER,MULTICAST> mtu 1500 ether 86:ee:9c:db:b7:95 txqueuelen 1000 (Ethernet) RX packets 0 bytes 0 (0.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 0 bytes 0 (0.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 docker0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500 inet 172.17.0.1 netmask 255.255.0.0 broadcast 172.17.255.255 ether 02:42:c4:45:1a:c1 txqueuelen 0 (Ethernet) RX packets 0 bytes 0 (0.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 0 bytes 0 (0.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 dummy0: flags=195<UP,BROADCAST,RUNNING,NOARP> mtu 1500 inet6 fe80::132b:a2c8:d911:3f45 prefixlen 64 scopeid 0x20<link> ether ca:65:d5:16:98:25 txqueuelen 1000 (Ethernet) RX packets 0 bytes 0 (0.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 12 bytes 3016 (3.0 KB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 192.168.168.200 netmask 255.255.255.0 broadcast 192.168.168.255 ether de:d6:13:4b:a9:2b txqueuelen 1000 (Ethernet) RX packets 547 bytes 45029 (45.0 KB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 16318 bytes 1421239 (1.4 MB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536 inet 127.0.0.1 netmask 255.0.0.0 inet6 ::1 prefixlen 128 scopeid 0x10<host> loop txqueuelen 1000 (Local Loopback) RX packets 103585 bytes 10271086 (10.2 MB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 103585 bytes 10271086 (10.2 MB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 usb0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 192.168.168.129 netmask 255.255.255.0 broadcast 192.168.168.255 inet6 fe80::98ff:2cbd:5466:7523 prefixlen 64 scopeid 0x20<link> ether fe:94:fc:bb:e7:35 txqueuelen 1000 (Ethernet) RX packets 45 bytes 3314 (3.3 KB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 16125 bytes 1971107 (1.9 MB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0With wifi dongle connection, it shows,
starling2-max (D0012):~$ ifconfig bond0: flags=5123<UP,BROADCAST,MASTER,MULTICAST> mtu 1500 ether 86:ee:9c:db:b7:95 txqueuelen 1000 (Ethernet) RX packets 0 bytes 0 (0.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 0 bytes 0 (0.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 docker0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500 inet 172.17.0.1 netmask 255.255.0.0 broadcast 172.17.255.255 ether 02:42:c4:45:1a:c1 txqueuelen 0 (Ethernet) RX packets 0 bytes 0 (0.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 0 bytes 0 (0.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 dummy0: flags=195<UP,BROADCAST,RUNNING,NOARP> mtu 1500 inet6 fe80::132b:a2c8:d911:3f45 prefixlen 64 scopeid 0x20<link> ether ca:65:d5:16:98:25 txqueuelen 1000 (Ethernet) RX packets 0 bytes 0 (0.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 14 bytes 3700 (3.7 KB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 192.168.168.200 netmask 255.255.255.0 broadcast 192.168.168.255 ether de:d6:13:4b:a9:2b txqueuelen 1000 (Ethernet) RX packets 817 bytes 70121 (70.1 KB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 27316 bytes 2378842 (2.3 MB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536 inet 127.0.0.1 netmask 255.0.0.0 inet6 ::1 prefixlen 128 scopeid 0x10<host> loop txqueuelen 1000 (Local Loopback) RX packets 173906 bytes 17693833 (17.6 MB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 173906 bytes 17693833 (17.6 MB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 usb0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 192.168.168.129 netmask 255.255.255.0 broadcast 192.168.168.255 inet6 fe80::98ff:2cbd:5466:7523 prefixlen 64 scopeid 0x20<link> ether fe:94:fc:bb:e7:35 txqueuelen 1000 (Ethernet) RX packets 56 bytes 9514 (9.5 KB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 27087 bytes 3316350 (3.3 MB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 2312 inet 192.168.1.37 netmask 255.255.255.0 broadcast 192.168.1.255 inet6 2600:382:7e14:bcce:2402:aa6e:a4c1:5dcf prefixlen 64 scopeid 0x0<global> inet6 2600:382:7e14:bcce:c2b4:933b:c203:7fa2 prefixlen 64 scopeid 0x0<global> inet6 fe80::9b2b:25cd:8cd9:5cec prefixlen 64 scopeid 0x20<link> ether 00:c0:ca:b5:ab:91 txqueuelen 1000 (Ethernet) RX packets 2166 bytes 1162499 (1.1 MB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 69 bytes 15194 (15.1 KB) TX errors 0 dropped 6 overruns 0 carrier 0 collisions 0I’m not sure what I did, but I think
wlan0should be assigned to the Microhard instead ofeth0.
Or maybe the Microhard should remain on eth0, andwlan0should also come up with its own IP address, even if it’s not used for internet access...This is because when the Wi-Fi dongle is connected, wlan0 comes up and MicroDDS starts working....
-
Before factory reset, I am wondering if you have any comment...