Cannot connect to SkyController3 from Docker container

I tried to connect to physical drone by using olympe inside docker container (ubuntu 20.04.6).
To pare the drone and SkyController3, I saw the sample below for my reference.

https://developer.parrot.com/docs/olympe/userguide/advanced/physical_drone.html#wi-fi-pairing-of-a-skycontroller-and-a-drone

But when I launch SkyController(“192.168.53.1”) in the interactive window it ended up with error below. On the other hand, when I tried the same thing from host machine (not docker) it worked.

Environment is below:

  • OS of docker image : ubuntu 20.04.6
  • olympe : 7.6.1
  • python : 3.8.10
  • SkyController3 firmware ver. : 1.8.1
  • docker image name:tag : parrot:v3

My docker-compose.yml is:

version: '1'
services:
  anafi-gateway:
    restart: always
    image: 'parrot:v3'
    container_name: 'parrot'
    working_dir: '/root/'
    tty: true
    volumes:
      - ./opt:/root/opt
    network_mode: 'host'

And the error message is:

# python3
Python 3.8.10 (default, Mar 13 2023, 10:26:41) 
[GCC 9.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import olympe
>>> olympe.__version__
'7.6.1'
>>> sc=olympe.SkyController("192.168.53.1")
2023-05-02 11:48:16,697 [INFO] 	olympe.backend - _create_pomp_loop - Creating pomp loop
2023-05-02 11:48:16,699 [INFO] 	olympe.backend - _do_create - device callbacks have been added to arsdk_ctrl
2023-05-02 11:48:16,701 [INFO] 	olympe.scheduler - _create_pomp_loop - Creating pomp loop
2023-05-02 11:48:16,713 [INFO] 	olympe.media - _create_pomp_loop - Creating pomp loop
2023-05-02 11:48:16,716 [INFO] 	olympe.cellular - _create_pomp_loop - Creating pomp loop
>>> 2023-05-02 11:48:18,709 [INFO] 	olympe.backend - _retry_connect - CtrlBackendMuxIp failed to connect to 192.168.53.1
2023-05-02 11:48:21,710 [ERROR] 	olympe.backend - aconnect - Failed to connect to 192.168.53.1:4321: -16
2023-05-02 11:48:21,710 [INFO] 	olympe.backend - _retry_connect - CtrlBackendMuxIp failed to connect to 192.168.53.1

This topic was automatically closed after 30 days. New replies are no longer allowed.