Hi,

I am trying to establish a TCP connection with UgCS and send Mavlink messages acting like ardupilot. 

I am currently connected on port 5762 and sending a heartbeat message, a  vehicle is being added to UgCS but I never get any downlink or uplink connection. I looked on the vsm logs and this is the output:

2018-02-27 12:02:38.826 - <INF> 4 [mavlink_vehicle_manager.cpp:455] New connection [127.0.0.1:5762:0].
2018-02-27 12:02:38.826 - <INF> 4 [mavlink_vehicle_manager.cpp:207] Creating vehicle: [ArduPilot:0] Mavlink ID: 0, Type: 1
2018-02-27 12:02:38.826 - <INF> 4 [ardupilot_vehicle.cpp:3273] [ArduPlane:0] Autoheading is on.
2018-02-27 12:02:38.832 - <DBG> 2 [cucs_processor.cpp:253] Device 1020 registered with ucs 260A0C77
2018-02-27 12:02:41.825 - <DBG> 10 [ardupilot_vehicle.cpp:467] [ArduPlane:0] Mission download failed: Timeout while getting item count
2018-02-27 12:02:43.825 - <INF> 10 [mavlink_vehicle.cpp:516] [ArduPlane:0] Heartbeat lost. Vehicle disconnected.

I am thinking UgCS is expecting a certain mavlink message after it connects but I haven't been able to find any documentation. Does anyone know what message sequence does UgCS expects or why am I getting the timeout error? 

Thank you

Views: 391

Replies to This Discussion

Hi Ligia,

UgCS is trying to download route from vehicle on connect. See MISSION_REQUEST_LIST and MISSION_COUNT mavlink messages. You can respond with 0 count on that.

Hope that helps,

Artūrs

Hi Artūrs

Thank you for the quick response. Is there any documentation with all the messages that UgCS expects from ardupilot via Mavlink and their order/frequency?

Thank you.

Artūrs said:

Hi Ligia,

UgCS is trying to download route from vehicle on connect. See MISSION_REQUEST_LIST and MISSION_COUNT mavlink messages. You can respond with 0 count on that.

Hope that helps,

Artūrs

RSS

© 2019   Created by Chris Anderson.   Powered by

Badges  |  Report an Issue  |  Terms of Service