This is what I receive as error message from
sudo systemctl start firmwared.service
I have a source installation of Olympe on a 20.04.4 generic aarch64 image.
Olympe SDK working fine.
What can be wrong?
This is what I receive as error message from
sudo systemctl start firmwared.service
I have a source installation of Olympe on a 20.04.4 generic aarch64 image.
Olympe SDK working fine.
What can be wrong?
Trivial reason: I didn’t install sphinx.
Now I’m having sphinx up and running on an Ubuntu 18.04 laptop. I can reach the dashboard from my client computer, but I can’t connect the drone.
The sphinx box has two interfaces: Wifi and eth
// Wifi
wlp2s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.188.99 netmask 255.255.255.0 broadcast 192.168.188.255
inet6 fd00::1cc:ab06:2e06:ffc9 prefixlen 64 scopeid 0x0
inet6 fe80::d62:cf77:f118:cd14 prefixlen 64 scopeid 0x20
inet6 fd00::e6e1:be32:25e6:6fcf prefixlen 64 scopeid 0x0
ether 74:e5:f9:18:e8:2c txqueuelen 1000 (Ethernet)
RX packets 7350 bytes 8520360 (8.5 MB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 2692 bytes 652358 (652.3 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
// ETH
enx00e04c6801e5: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.188.73 netmask 255.255.255.0 broadcast 192.168.188.255
inet6 fd00::498d:1a08:8021:143e prefixlen 64 scopeid 0x0
inet6 fd00::2e0:4cff:fe68:1e5 prefixlen 64 scopeid 0x0
inet6 fe80::2e0:4cff:fe68:1e5 prefixlen 64 scopeid 0x20
ether 00:e0:4c:68:01:e5 txqueuelen 1000 (Ethernet)
RX packets 69 bytes 18585 (18.5 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 106 bytes 17480 (17.4 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
I made a “stolen interface” mapping entry from wlp2s0 to eth0 and noticed to have a new eth0 interface after start of the simulator, but it also doesn’t work w/o it, like:
sphinx /opt/parrot-sphinx/usr/share/sphinx/drones/anafi4k.drone::stolen_interface=""
However, I was supposing to be able to reach 192.168.188.73 from my drone script, but the output is always:
2022-06-06 07:15:19,071 [ERROR] olympe.drone - connect - '192.168.188.73 connection timed out
Is there anything I can investigate on the simulator side? As said, I’m reaching the dashboard at 192.168.188.73:9002, there is also no firewall applied.
Hmm. I started the simulator with “–log-level=dbg” and found this
[Msg] Drone anafi4k[f877673d4da8a69891b58964f21840d15218fb6d] loaded
[Dbg] [Machine.cc:1641] CreateCommandLineboxinit cmdline = LD_PRELOAD=librt.so:libc.so.6:libpthread.so.0:libstdc++.so.6 /sbin/boxinit ro.boot.console=/pts/3 ro.hardware=anafi4k ro.debuggable=0 ro.revision=0 ro.debug_ipaddr=10.202.0.1 wifid.bridge=0 ro.simulator.kernel.version=5.4.0-113-generic ro.simulator.kernel.build=#127~18.04.1-Ubuntu_SMP_Wed_May_18_15:40:23_UTC_2022 ro.simulator.host.arch=x86_64 ro.simulator.host.ip0=192.168.188.99 ro.simulator.host.mac0=74:e5:f9:18:e8:2c ro.simulator.host.ip1=172.17.0.1 ro.simulator.host.mac1=02:42:df:43:fa:4f ro.simulator.host.ip2=192.168.188.73 ro.simulator.host.mac2=00:e0:4c:68:01:e5 ro.simulator.gpu.hardware=UHD_Graphics_620 ro.simulator.gpu.driver=driver=i915_latency=0 ro.simulator.gpu.nvidia.info=__UNDEFINED__ ro.simulator.host.name=ubuntu ro.simulator.os.version=Ubuntu_18.04.6_LTS ro.simulator.sphinx.version=1.8 ro.with-front-cam=1 ro.simple-front-cam=1 ro.gimbald=1 ro.storage.sphinx_pattern=__undefined__ persist.product.pro=0 ro.flir=-1
ro.simulator.host.ip0=192.168.188.99 ro.simulator.host.mac0=74:e5:f9:18:e8:2c
ro.simulator.host.ip1=172.17.0.1 ro.simulator.host.mac1=02:42:df:43:fa:4f
ro.simulator.host.ip2=192.168.188.73 ro.simulator.host.mac2=00:e0:4c:68:01:e5
First is the Wifi, second is Docker, third is ETH. Is the simulator listening to the wrong interface?
Again some misunderstanding on my side I guess:
I didn’t find that fd_blabla
interface after all this and learned from the troubleshoot section, that I have to disable my NetworkManager service in this case. Worked after that. Had thad interface.
Still not clear, how to reach the simulator from outside. I suspect I would have to have a direct link between both machines and a fixed IP configuration on the client side to make this work. Or I need to run the scripts on the same machine on which the simulator runs (?).
At least it reacts on that machine:
decades@ubuntu:~$ telnet 10.202.0.1 44445
Trying 10.202.0.1...
Connected to 10.202.0.1.
Escape character is '^]'.
{ "model.id": "0x0914", "serial": "000000000000000000", "name": "ANAFI-0000000", "port": 44444 }^C
Having now all on the same machine (SDK and simulator) and it works.
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.