MAVLink Lua Dissector not working as expected.

243 views
Skip to first unread message

Noshin Sabuwala

unread,
Oct 13, 2022, 7:14:05 AM10/13/22
to MAVLink
Dear Sir,
I have included Lua Script for MAVLink common.xml in wireshark plugins, however it appears as Unparsable Payload in wireshark. I am attaching lua script as wll as the wireshark screenshot. Please help me resolve this and get the display of mavlink payload as appears in https://mavlink.io/en/guide/wireshark.html
Looking forward to your response.
Regards,
Noshin Sabuwala

MAVLink Wireshark Unparsable Payload.PNG
mavlink_2_common.lua

Hamish Willee

unread,
Oct 13, 2022, 6:27:05 PM10/13/22
to MAVLink
Are any of the messages being displayed?

What flight stack are you using? How did you build the lua plugin (what command)

Michael Oborne

unread,
Oct 14, 2022, 12:49:20 AM10/14/22
to mav...@googlegroups.com
just a guess from the screenshot, the udp packet in question is not a mavlink packet.. its some other random network traffic on your virtual machine

--
Sie erhalten diese Nachricht, weil Sie in Google Groups E-Mails von der Gruppe "MAVLink" abonniert haben.
Wenn Sie sich von dieser Gruppe abmelden und keine E-Mails mehr von dieser Gruppe erhalten möchten, senden Sie eine E-Mail an mavlink+u...@googlegroups.com.
Wenn Sie diese Diskussion im Web verfolgen möchten, rufen Sie https://groups.google.com/d/msgid/mavlink/dd3b2cca-02c0-4378-9cc6-5c14d3083ea0n%40googlegroups.com auf.

Noshin Sabuwala

unread,
Oct 15, 2022, 2:53:22 AM10/15/22
to MAVLink
Sir,
I have tried lua plugins available on internet and have also created lua script using common.xml file. Every time same output is seen. Attaching my common.xml file with the mail.

common.xml

Noshin Sabuwala

unread,
Oct 15, 2022, 2:55:58 AM10/15/22
to MAVLink
SIr,
In that case may I please ask you to guide me through which port I should be listening to for mavlink communications. I am attaching a capture depicting all open ports. Softwares I am using:
Ardupilot for autopilot
QGroundControl as GCS
Gazebo simulator.
Ports.PNG

Hamish Willee

unread,
Oct 19, 2022, 4:46:42 AM10/19/22
to MAVLink
I don't use ubuntu but it looks like the only port with data is  gzserver - which presumably might not be getting any mavlink traffic?
Do you ever see data on the other ports? YOu want to look at the same port as QGC does on ardupilot - which I expect is 14550

But no point if you aren't getting any data between ardupilot and QGC on that port.

Hamish Willee

unread,
Oct 19, 2022, 6:02:05 PM10/19/22
to MAVLink
Maybe helpful, see this video of intercepting traffic using Wireshark between WSL and QGC on Windows  https://youtu.be/qfDGdgIAU5g?t=1525 - the point I'm trying to show is that you can see when data is flowing on the interface here, and you should also see it from QGC connecting and getting information.

Noshin Sabuwala

unread,
Dec 19, 2022, 3:23:40 AM12/19/22
to MAVLink
Sir, 
Kindly send screenshot of wireshark showing how does a mavlink packet look. 

Thanks and Regards.

Hamish Willee

unread,
Dec 20, 2022, 5:56:37 PM12/20/22
to MAVLink
Reply all
Reply to author
Forward
0 new messages