Hello everyone,
I am trying to connect to my physical anafi drone from my laptop but it seems that the drone is not responding to the CurrentDateTime command, but it is being detected and a connection is established as shown in the logs.
Any help would be appreciated
Here is the script I am trying to run:
import olympe
import time
from olympe.messages.ardrone3.Piloting import TakeOff, moveBy, Landing
from olympe.messages.ardrone3.PilotingState import FlyingStateChanged
olympe.log.update_config({"loggers": {"olympe": {"level": "DEBUG"}}})
DRONE_IP = "192.168.42.1"
if __name__ == "__main__":
drone = olympe.Drone(DRONE_IP)
drone.connect()
drone.disconnect()
2021-10-21 00:41:38,090 [INFO] olympe.backend - _create_pomp_loop - Creating pomp loop
2021-10-21 00:41:38,092 [INFO] olympe.backend - _do_create - device callbacks have been added to arsdk_ctrl
2021-10-21 00:41:38,093 [DEBUG] olympe.backend - _do_create - New net backend has been created
2021-10-21 00:41:38,093 [DEBUG] olympe.backend - _do_create - Set backend socket callback OK
2021-10-21 00:41:38,095 [INFO] olympe.backend - create_timer - Creating pomp timer
2021-10-21 00:41:38,095 [INFO] olympe.scheduler - _create_pomp_loop - Creating pomp loop
2021-10-21 00:41:38,448 [INFO] olympe.backend - create_timer - Creating pomp timer
2021-10-21 00:41:38,450 [DEBUG] olympe.backend - _do_start - Net discovery object has been created
2021-10-21 00:41:38,450 [DEBUG] olympe.backend - _socket_cb - backend_pointer <olympe_deps.LP_struct_arsdkctrl_backend_net object at 0x7f8b22e8ae18> socket_fd 15 socket_kind 0 userdate_pointer None
2021-10-21 00:41:38,451 [DEBUG] olympe.backend - _do_start - Net discovery has been started
2021-10-21 00:41:38,468 [INFO] olympe.backend - _device_added_cb - New device has been detected: 'ANAFI-F023445'
2021-10-21 00:41:38,471 [DEBUG] olympe.backend - _socket_cb - backend_pointer <olympe_deps.LP_struct_arsdkctrl_backend_net object at 0x7f8b22e94510> socket_fd 18 socket_kind 2 userdate_pointer None
2021-10-21 00:41:38,471 [DEBUG] olympe.backend - _socket_cb - backend_pointer <olympe_deps.LP_struct_arsdkctrl_backend_net object at 0x7f8b22e94510> socket_fd 19 socket_kind 1 userdate_pointer None
2021-10-21 00:41:38,472 [INFO] olympe.drone - _connecting_cb - Connecting to device: ANAFI-F023445
2021-10-21 00:41:38,472 [INFO] olympe.drone - _connection_impl - Connection in progress...
2021-10-21 00:41:38,494 [INFO] olympe.drone.ANAFI-F023445 - _connected_cb - Connected to device: ANAFI-F023445
2021-10-21 00:41:38,496 [INFO] olympe.drone.ANAFI-F023445 - _connected_cb - {'json': {'c2d_port': 2233,
'c2d_update_port': 51,
'c2d_user_port': 21,
'proto_v': 3,
'qos_mode': 0,
'status': 0}}
2021-10-21 00:41:38,499 [INFO] olympe.media.ANAFI-F023445 - _create_pomp_loop - Creating pomp loop
2021-10-21 00:41:38,506 [INFO] olympe.drone.ANAFI-F023445 - _create_command_interface - Command interface has been created: itf=None
2021-10-21 00:41:38,509 [INFO] olympe.pdraw.ANAFI-F023445 - _create_pomp_loop - Creating pomp loop
2021-10-21 00:41:38,510 [INFO] olympe.pdraw.ANAFI-F023445 - _create_pomp_loop - Creating pomp loop
2021-10-21 00:41:38,516 [DEBUG] olympe.drone.ANAFI-F023445 - _send_command_impl - Command common.Common.CurrentDateTime has been encoded
2021-10-21 00:41:38,517 [DEBUG] olympe.drone.ANAFI-F023445 - _cmd_itf_send_status_cb - Command send status: common.Common.CurrentDateTime ARSDK_CMD_ITF_SEND_STATUS_SENT, done: False
2021-10-21 00:41:38,518 [INFO] olympe.drone.ANAFI-F023445 - _send_command_impl - common.Common.CurrentDateTime('20211021T004138-0700',) has been sent to the device
2021-10-21 00:41:38,520 [DEBUG] olympe.drone.ANAFI-F023445 - _send_command_impl - Command common.Common.AllStates has been encoded
2021-10-21 00:41:38,520 [INFO] olympe.drone.ANAFI-F023445 - _send_command_impl - common.Common.AllStates() has been sent to the device
2021-10-21 00:41:38,668 [DEBUG] olympe.drone.ANAFI-F023445 - _cmd_itf_send_status_cb - Command send status: common.Common.CurrentDateTime ARSDK_CMD_ITF_SEND_STATUS_SENT, done: False
2021-10-21 00:41:38,823 [DEBUG] olympe.drone.ANAFI-F023445 - _cmd_itf_send_status_cb - Command send status: common.Common.CurrentDateTime ARSDK_CMD_ITF_SEND_STATUS_SENT, done: False
2021-10-21 00:41:38,975 [DEBUG] olympe.drone.ANAFI-F023445 - _cmd_itf_send_status_cb - Command send status: common.Common.CurrentDateTime ARSDK_CMD_ITF_SEND_STATUS_SENT, done: False
2021-10-21 00:41:39,031 [WARNING] olympe.drone.ANAFI-F023445 - _on_sync_done - Time synchronization failed for b'192.168.42.1'
2021-10-21 00:41:39,127 [DEBUG] olympe.drone.ANAFI-F023445 - _cmd_itf_send_status_cb - Command send status: common.Common.CurrentDateTime ARSDK_CMD_ITF_SEND_STATUS_SENT, done: False
2021-10-21 00:41:39,279 [DEBUG] olympe.drone.ANAFI-F023445 - _cmd_itf_send_status_cb - Command send status: common.Common.CurrentDateTime ARSDK_CMD_ITF_SEND_STATUS_SENT, done: False
2021-10-21 00:41:39,431 [DEBUG] olympe.drone.ANAFI-F023445 - _cmd_itf_send_status_cb - Command send status: common.Common.CurrentDateTime ARSDK_CMD_ITF_SEND_STATUS_SENT, done: False
2021-10-21 00:41:39,583 [DEBUG] olympe.drone.ANAFI-F023445 - _cmd_itf_send_status_cb - Command send status: common.Common.CurrentDateTime ARSDK_CMD_ITF_SEND_STATUS_SENT, done: False
2021-10-21 00:41:39,735 [DEBUG] olympe.drone.ANAFI-F023445 - _cmd_itf_send_status_cb - Command send status: common.Common.CurrentDateTime ARSDK_CMD_ITF_SEND_STATUS_SENT, done: False
2021-10-21 00:41:39,886 [DEBUG] olympe.drone.ANAFI-F023445 - _cmd_itf_send_status_cb - Command send status: common.Common.CurrentDateTime ARSDK_CMD_ITF_SEND_STATUS_SENT, done: False
2021-10-21 00:41:40,039 [DEBUG] olympe.drone.ANAFI-F023445 - _cmd_itf_send_status_cb - Command send status: common.Common.CurrentDateTime ARSDK_CMD_ITF_SEND_STATUS_SENT, done: False
2021-10-21 00:41:40,191 [DEBUG] olympe.drone.ANAFI-F023445 - _cmd_itf_send_status_cb - Command send status: common.Common.CurrentDateTime ARSDK_CMD_ITF_SEND_STATUS_SENT, done: False
2021-10-21 00:41:40,343 [DEBUG] olympe.drone.ANAFI-F023445 - _cmd_itf_send_status_cb - Command send status: common.Common.CurrentDateTime ARSDK_CMD_ITF_SEND_STATUS_SENT, done: False
2021-10-21 00:41:40,495 [DEBUG] olympe.drone.ANAFI-F023445 - _cmd_itf_send_status_cb - Command send status: common.Common.CurrentDateTime ARSDK_CMD_ITF_SEND_STATUS_SENT, done: False
2021-10-21 00:41:40,648 [DEBUG] olympe.drone.ANAFI-F023445 - _cmd_itf_send_status_cb - Command send status: common.Common.CurrentDateTime ARSDK_CMD_ITF_SEND_STATUS_SENT, done: False
2021-10-21 00:41:40,799 [DEBUG] olympe.drone.ANAFI-F023445 - _cmd_itf_send_status_cb - Command send status: common.Common.CurrentDateTime ARSDK_CMD_ITF_SEND_STATUS_SENT, done: False
2021-10-21 00:41:40,951 [DEBUG] olympe.drone.ANAFI-F023445 - _cmd_itf_send_status_cb - Command send status: common.Common.CurrentDateTime ARSDK_CMD_ITF_SEND_STATUS_SENT, done: False
2021-10-21 00:41:41,103 [DEBUG] olympe.drone.ANAFI-F023445 - _cmd_itf_send_status_cb - Command send status: common.Common.CurrentDateTime ARSDK_CMD_ITF_SEND_STATUS_SENT, done: False
2021-10-21 00:41:41,256 [DEBUG] olympe.drone.ANAFI-F023445 - _cmd_itf_send_status_cb - Command send status: common.Common.CurrentDateTime ARSDK_CMD_ITF_SEND_STATUS_SENT, done: False
2021-10-21 00:41:41,408 [DEBUG] olympe.drone.ANAFI-F023445 - _cmd_itf_send_status_cb - Command send status: common.Common.CurrentDateTime ARSDK_CMD_ITF_SEND_STATUS_SENT, done: False
2021-10-21 00:41:41,560 [DEBUG] olympe.drone.ANAFI-F023445 - _cmd_itf_send_status_cb - Command send status: common.Common.CurrentDateTime ARSDK_CMD_ITF_SEND_STATUS_SENT, done: False
2021-10-21 00:41:41,712 [DEBUG] olympe.drone.ANAFI-F023445 - _cmd_itf_send_status_cb - Command send status: common.Common.CurrentDateTime ARSDK_CMD_ITF_SEND_STATUS_SENT, done: False
2021-10-21 00:41:41,864 [DEBUG] olympe.drone.ANAFI-F023445 - _cmd_itf_send_status_cb - Command send status: common.Common.CurrentDateTime ARSDK_CMD_ITF_SEND_STATUS_SENT, done: False
2021-10-21 00:41:42,015 [DEBUG] olympe.drone.ANAFI-F023445 - _cmd_itf_send_status_cb - Command send status: common.Common.CurrentDateTime ARSDK_CMD_ITF_SEND_STATUS_SENT, done: False
2021-10-21 00:41:42,168 [DEBUG] olympe.drone.ANAFI-F023445 - _cmd_itf_send_status_cb - Command send status: common.Common.CurrentDateTime ARSDK_CMD_ITF_SEND_STATUS_SENT, done: False
2021-10-21 00:41:42,319 [DEBUG] olympe.drone.ANAFI-F023445 - _cmd_itf_send_status_cb - Command send status: common.Common.CurrentDateTime ARSDK_CMD_ITF_SEND_STATUS_SENT, done: False
2021-10-21 00:41:42,471 [DEBUG] olympe.drone.ANAFI-F023445 - _cmd_itf_send_status_cb - Command send status: common.Common.CurrentDateTime ARSDK_CMD_ITF_SEND_STATUS_SENT, done: False
2021-10-21 00:41:42,623 [DEBUG] olympe.drone.ANAFI-F023445 - _cmd_itf_send_status_cb - Command send status: common.Common.CurrentDateTime ARSDK_CMD_ITF_SEND_STATUS_SENT, done: False
2021-10-21 00:41:42,776 [DEBUG] olympe.drone.ANAFI-F023445 - _cmd_itf_send_status_cb - Command send status: common.Common.CurrentDateTime ARSDK_CMD_ITF_SEND_STATUS_SENT, done: False
2021-10-21 00:41:42,928 [DEBUG] olympe.drone.ANAFI-F023445 - _cmd_itf_send_status_cb - Command send status: common.Common.CurrentDateTime ARSDK_CMD_ITF_SEND_STATUS_SENT, done: False
2021-10-21 00:41:43,080 [DEBUG] olympe.drone.ANAFI-F023445 - _cmd_itf_send_status_cb - Command send status: common.Common.CurrentDateTime ARSDK_CMD_ITF_SEND_STATUS_SENT, done: False
2021-10-21 00:41:43,232 [DEBUG] olympe.drone.ANAFI-F023445 - _cmd_itf_send_status_cb - Command send status: common.Common.CurrentDateTime ARSDK_CMD_ITF_SEND_STATUS_SENT, done: False
2021-10-21 00:41:43,383 [DEBUG] olympe.drone.ANAFI-F023445 - _cmd_itf_send_status_cb - Command send status: common.Common.CurrentDateTime ARSDK_CMD_ITF_SEND_STATUS_SENT, done: False
2021-10-21 00:41:43,535 [DEBUG] olympe.drone.ANAFI-F023445 - _cmd_itf_send_status_cb - Command send status: common.Common.CurrentDateTime ARSDK_CMD_ITF_SEND_STATUS_SENT, done: False
2021-10-21 00:41:43,688 [DEBUG] olympe.drone.ANAFI-F023445 - _cmd_itf_send_status_cb - Command send status: common.Common.CurrentDateTime ARSDK_CMD_ITF_SEND_STATUS_SENT, done: False
2021-10-21 00:41:43,839 [DEBUG] olympe.drone.ANAFI-F023445 - _cmd_itf_send_status_cb - Command send status: common.Common.CurrentDateTime ARSDK_CMD_ITF_SEND_STATUS_SENT, done: False
2021-10-21 00:41:43,991 [DEBUG] olympe.drone.ANAFI-F023445 - _cmd_itf_send_status_cb - Command send status: common.Common.CurrentDateTime ARSDK_CMD_ITF_SEND_STATUS_SENT, done: False
2021-10-21 00:41:44,144 [DEBUG] olympe.drone.ANAFI-F023445 - _cmd_itf_send_status_cb - Command send status: common.Common.CurrentDateTime ARSDK_CMD_ITF_SEND_STATUS_SENT, done: False
2021-10-21 00:41:44,296 [DEBUG] olympe.drone.ANAFI-F023445 - _cmd_itf_send_status_cb - Command send status: common.Common.CurrentDateTime ARSDK_CMD_ITF_SEND_STATUS_SENT, done: False
2021-10-21 00:41:44,447 [DEBUG] olympe.drone.ANAFI-F023445 - _cmd_itf_send_status_cb - Command send status: common.Common.CurrentDateTime ARSDK_CMD_ITF_SEND_STATUS_SENT, done: False
2021-10-21 00:41:44,599 [DEBUG] olympe.drone.ANAFI-F023445 - _cmd_itf_send_status_cb - Command send status: common.Common.CurrentDateTime ARSDK_CMD_ITF_SEND_STATUS_SENT, done: False
2021-10-21 00:41:44,751 [DEBUG] olympe.drone.ANAFI-F023445 - _cmd_itf_send_status_cb - Command send status: common.Common.CurrentDateTime ARSDK_CMD_ITF_SEND_STATUS_SENT, done: False
2021-10-21 00:41:44,903 [DEBUG] olympe.drone.ANAFI-F023445 - _cmd_itf_send_status_cb - Command send status: common.Common.CurrentDateTime ARSDK_CMD_ITF_SEND_STATUS_SENT, done: False
2021-10-21 00:41:45,055 [DEBUG] olympe.drone.ANAFI-F023445 - _cmd_itf_send_status_cb - Command send status: common.Common.CurrentDateTime ARSDK_CMD_ITF_SEND_STATUS_SENT, done: False
2021-10-21 00:41:45,207 [DEBUG] olympe.drone.ANAFI-F023445 - _cmd_itf_send_status_cb - Command send status: common.Common.CurrentDateTime ARSDK_CMD_ITF_SEND_STATUS_SENT, done: False
2021-10-21 00:41:45,359 [DEBUG] olympe.drone.ANAFI-F023445 - _cmd_itf_send_status_cb - Command send status: common.Common.CurrentDateTime ARSDK_CMD_ITF_SEND_STATUS_SENT, done: False
2021-10-21 00:41:45,511 [DEBUG] olympe.drone.ANAFI-F023445 - _cmd_itf_send_status_cb - Command send status: common.Common.CurrentDateTime ARSDK_CMD_ITF_SEND_STATUS_SENT, done: False
2021-10-21 00:41:45,664 [DEBUG] olympe.drone.ANAFI-F023445 - _cmd_itf_send_status_cb - Command send status: common.Common.CurrentDateTime ARSDK_CMD_ITF_SEND_STATUS_SENT, done: False
2021-10-21 00:41:45,816 [DEBUG] olympe.drone.ANAFI-F023445 - _cmd_itf_send_status_cb - Command send status: common.Common.CurrentDateTime ARSDK_CMD_ITF_SEND_STATUS_SENT, done: False
2021-10-21 00:41:45,968 [DEBUG] olympe.drone.ANAFI-F023445 - _cmd_itf_send_status_cb - Command send status: common.Common.CurrentDateTime ARSDK_CMD_ITF_SEND_STATUS_SENT, done: False
2021-10-21 00:41:46,120 [DEBUG] olympe.drone.ANAFI-F023445 - _cmd_itf_send_status_cb - Command send status: common.Common.CurrentDateTime ARSDK_CMD_ITF_SEND_STATUS_SENT, done: False
2021-10-21 00:41:46,271 [DEBUG] olympe.drone.ANAFI-F023445 - _cmd_itf_send_status_cb - Command send status: common.Common.CurrentDateTime ARSDK_CMD_ITF_SEND_STATUS_SENT, done: False
2021-10-21 00:41:46,423 [DEBUG] olympe.drone.ANAFI-F023445 - _cmd_itf_send_status_cb - Command send status: common.Common.CurrentDateTime ARSDK_CMD_ITF_SEND_STATUS_SENT, done: False
2021-10-21 00:41:46,494 [INFO] olympe.drone.ANAFI-F023445 - _link_status_cb - Link status: 0
2021-10-21 00:41:46,495 [DEBUG] olympe.drone.ANAFI-F023445 - _cmd_itf_send_status_cb - Command send status: common.Common.CurrentDateTime ARSDK_CMD_ITF_SEND_STATUS_CANCELED, done: True
2021-10-21 00:41:46,496 [ERROR] olympe.drone.ANAFI-F023445 - _cmd_itf_send_status_cb - Command send status cancel/timeout: common.Common.CurrentDateTime ARSDK_CMD_ITF_SEND_STATUS_CANCELED, done: True
2021-10-21 00:41:46,496 [DEBUG] olympe.drone.ANAFI-F023445 - _cmd_itf_send_status_cb - Command send status: common.Common.AllStates ARSDK_CMD_ITF_SEND_STATUS_CANCELED, done: True
2021-10-21 00:41:46,498 [ERROR] olympe.drone.ANAFI-F023445 - _cmd_itf_send_status_cb - Command send status cancel/timeout: common.Common.AllStates ARSDK_CMD_ITF_SEND_STATUS_CANCELED, done: True
2021-10-21 00:41:46,498 [INFO] olympe.drone.ANAFI-F023445 - _disconnected_cb - Disconnected from device: ANAFI-F023445
2021-10-21 00:41:46,499 [DEBUG] olympe.drone.ANAFI-F023445 - _dispose_cmd_cb - Dispose callback
2021-10-21 00:41:46,502 [DEBUG] olympe.backend - _do_stop - Discovery has been stopped
2021-10-21 00:41:46,503 [DEBUG] olympe.backend - _do_stop - Discovery object has been destroyed
2021-10-21 00:41:46,512 [INFO] olympe.media.ANAFI-F023445 - _shutdown - olympe.media shutdown
2021-10-21 00:41:46,513 [INFO] olympe.media.ANAFI-F023445 - _destroy_pomp_loop - Pomp loop has been destroyed
2021-10-21 00:41:46,520 [ERROR] olympe.drone.ANAFI-F023445 - _send_command - message common.Common.AllStates not sent: common.Common.AllStates has been sent but hasn't been acknowledged
2021-10-21 00:41:46,520 [ERROR] olympe.drone.ANAFI-F023445 - _send_states_settings_cmd - Unable get device state/settings: common.Common.AllStates for b'192.168.42.1'
2021-10-21 00:41:46,531 [DEBUG] olympe.backend - _do_stop - No discovery instance to be stopped
2021-10-21 00:41:46,540 [INFO] olympe.scheduler - _destroy_pomp_loop - Pomp loop has been destroyed
2021-10-21 00:41:46,540 [DEBUG] olympe.backend - _destroy - Destroying backend...
2021-10-21 00:41:46,540 [DEBUG] olympe.backend - _destroy - Net backend has been destroyed
2021-10-21 00:41:46,541 [INFO] olympe.backend - _destroy - Manager has been destroyed
2021-10-21 00:41:46,541 [INFO] olympe.backend - destroy_timer - Pomp loop timer has been destroyed
2021-10-21 00:41:46,542 [INFO] olympe.backend - destroy_timer - Pomp loop timer has been destroyed
2021-10-21 00:41:46,543 [INFO] olympe.backend - _destroy_pomp_loop - Pomp loop has been destroyed
2021-10-21 00:41:46,577 [INFO] olympe.pdraw.ANAFI-F023445 - _destroy_pomp_loop - Pomp loop has been destroyed
2021-10-21 00:41:46,577 [INFO] olympe.pdraw.ANAFI-F023445 - _stop - pdraw callbacks thread loop stopped
2021-10-21 00:41:46,679 [INFO] olympe.pdraw.ANAFI-F023445 - _destroy_pomp_loop - Pomp loop has been destroyed