@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.target
Without wifi dongle connection on the Microhard, ifconfig shows 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 0
With 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 0
I’m not sure what I did, but I think wlan0 should be assigned to the Microhard instead of eth0.
Or maybe the Microhard should remain on eth0, and wlan0 should 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....