Error: "BAD_DATA {invalid MAVLink CRC in msgID 42000 0xc139 should be 0x8d4d, [...]" in personal implementation in MAVLink

35 views
Skip to first unread message

frank rossi

unread,
Jul 30, 2025, 6:41:27 AMJul 30
to MAVLink
For university purposes, I am working on project about implementig confidenziality in MAVLink.

For this project, I have created my own custom dialect .xml:
xml.png

I followed this guide for generated the personalized MAVLink dialect in pyhton.

After generetad the dialect, I used it. Below the script used:
  • script gcs.py:
    gcs.png
  • script drone.py:
    drone.png
The issue I find is the apparance of the following error message (output of the gcs.py script):
outputgcs.png

I am also including the output of the other script:
outputdrone.png

How can I fix this problem? Thanks for the replies.


Hamish Willee

unread,
Aug 7, 2025, 1:47:49 AMAug 7
to MAVLink
The message means what it says, that the calculated CRC_EXTRA (https://mavlink.io/en/guide/serialization.html#crc_extra) does not match what the recipient expected. This happens if your message definition does not match on both ends of the connection - i.e. you changed the name or type of a field, or added an extra field, or whatever.
It is unlikely to be directly caused by signing.

Assuming you're working with ArduPilot, I'd be asking specific question on their discussion boards.
Reply all
Reply to author
Forward
0 new messages