JS doesn't send acknowledgement


#1

Product: [Jumping Sumo/Jumping Race/Jumping Night]
Product version: [X.X.X]
SDK version: [3.12.0]
Use of libARController: [YES] (Only for ARSDK)
SDK platform: [/Unix/]
Reproductible with the official app: [Not tried]

Hello everyone,

I’ve developed a code that discovers my drone, then sets up a device controller. I’ve set up all the required callbacks also.
The compilation went well. After that I connected my compter running Ubuntu to the wifi ad-hoc connection of the Jumping sumo.
However it seems that when I execute my code, the device controller I have set up tries to send UDP data to the drone (trying to set the CurrentDate according to the parrot protocols http://developer.parrot.com/docs/bebop/ARSDK_Protocols.pdf), along with an acknowledgement request, but never receives such an acknowledgement from the drone.
Some help would be really appreciated :slight_smile: Please find the output I have on the terminal:

init done
opengl support available
[INF] DRONE CONTROLLER | 10:19:37:591 | connect:59 - ---- Jumping Sumo Path Recorder ----
[INF] DRONE CONTROLLER | 10:19:37:591 | connect:61 - - init discovey m_device …
[INF] DRONE CONTROLLER | 10:19:37:591 | connect:68 - - ARDISCOVERY_Device_InitWifi …
[INF] DRONE CONTROLLER | 10:19:37:659 | connect:99 - - Suppression du discoveryDevice …
[INF] DRONE CONTROLLER | 10:19:37:659 | connect:142 - Connection …
[INF] DRONE CONTROLLER | 10:19:37:659 | stateChanged:306 - Changement d’état…
[INF] ARCONTROLLER_Network | 10:19:37:660 | ARCONTROLLER_Network_GetAvailableSocketPort:110 - d2c_port port: 51063
[INF] ARCONTROLLER_Stream2 | 10:19:37:660 | ARCONTROLLER_Stream2_Open_Socket:124 - udp local port stream: 49524
[INF] ARCONTROLLER_Stream2 | 10:19:37:660 | ARCONTROLLER_Stream2_Open_Socket:124 - udp local port control: 43920
[ERR] ARNETWORK_Sender | 10:19:38:324 | ARNETWORK_Sender_ProcessBufferToSend:405 - [0x7f11242c06f0] Timeout waiting for ack in buffer 11
[ERR] ARNETWORK_Sender | 10:19:38:324 | ARNETWORK_Sender_ProcessBufferToSend:421 - [0x7f11242c06f0] Will retry sending data of buffer 11
[ERR] ARNETWORK_Sender | 10:19:38:825 | ARNETWORK_Sender_ProcessBufferToSend:405 - [0x7f11242c06f0] Timeout waiting for ack in buffer 11
[ERR] ARNETWORK_Sender | 10:19:38:825 | ARNETWORK_Sender_ProcessBufferToSend:421 - [0x7f11242c06f0] Will retry sending data of buffer 11
[ERR] ARNETWORK_Sender | 10:19:39:325 | ARNETWORK_Sender_ProcessBufferToSend:405 - [0x7f11242c06f0] Timeout waiting for ack in buffer 11
[ERR] ARNETWORK_Sender | 10:19:39:325 | ARNETWORK_Sender_ProcessBufferToSend:421 - [0x7f11242c06f0] Will retry sending data of buffer 11
[ERR] ARNETWORK_Sender | 10:19:39:825 | ARNETWORK_Sender_ProcessBufferToSend:405 - [0x7f11242c06f0] Timeout waiting for ack in buffer 11
[WNG] ARNETWORK_Sender | 10:19:39:825 | ARNETWORK_Sender_TimeOutCallback:655 - [0x7f11242c06f0] Did timeout sending command : project = 0 | class = 4 | command = 1 - 0

after that the program tries to send data again several times, then considers that the connection is lost and ultimately the device controller is deleted.

Thanks in advance for all indications or advice.


#2

Just solved the problem by disabling the firewall, which was apparently blocking the communication ports.

sudo ufw disable did the trick.