Home        Store        Learn        Blog

Can't Connect to Mavlink

I’m trying to get the pymavlink connection up and running using the instructions found here.

I’ve followed everything (I think) correctly and have my surface computer connected to the pi and the pi connected to the pixhawk. I can open up QGroundControl and see the connection being made properly and can even open up the companion web app on

I’m now trying to pull some data using the pymavlink instructions, but it doesn’t seem to be working properly. I’m running the default one without QGroundControl open, and it doesn’t seem to print out anything. If I force it to print out an error it gives me, “print(master.recv_match().to_dict()) AttributeError: ‘NoneType’ object has no attribute ‘to_dict’”

Here’s the script I’m running:

import time
from pymavlink import mavutil
master = mavutil.mavlink_connection('udpin:')
# Get some information !
while True:

Any help would be super appreciated!

Hi @tdoe,

That’s odd. Can you check that your IP is really ?
Alternatively, try using udpin: in the code.

I double checked that my ip address is correct, and it is:
And that’s the only adapter I have enabled, so none other even show up. I am doing this on a windows machine if that changes anything, but I thought it was all web socket based which would mean it wouldn’t matter.

I also tried, and that didn’t do anything different.