Softivation

Mission Planner won't fetch parameters

Mission Planner connects but the parameter list doesn't download. See why it stalls on telemetry, the names that changed with ArduPilot 4.7, and how to measure your own link.

Furkan IŞIKAY 7 min read

You plugged in the cable, Mission Planner connected, and the artificial horizon at the top of the screen is moving. But the bar at the bottom left is stuck on parameters. After a while it either starts over from zero or creeps along one by one, very slowly.

A connection being established doesn't mean the list will download. These are two different jobs, and they get stuck in different places.

The list actually downloads through two different paths

The current Mission Planner first tries to fetch parameters as a file. If the autopilot supports file transfer, a single packed file is downloaded and the job ends there. The text you see on screen says this too.

If that path fails, the program falls back to the old method and requests the parameters one by one, in separate packets. For nearly 1,400 parameters, that means nearly 1,400 packets. If you're waiting minutes on screen, the program has most likely fallen onto this second path.

In the diagram you see the three stages from left to right. The sneaky one is the third stage on the right: if a few parameters are missing when the list is almost done, the program starts requesting the missing ones one at a time and sends each request one second apart. If fifty parameters are missing, you wait fifty more seconds.

How the parameter list downloads over the link

Mission Planner first asks for the list as a file. If that fails, it asks for the whole list, the autopilot sends the parameter packets in order, sending stops when the radio buffer fills, and the indexes that were lost are then requested one by one at one-second intervals.
Where to look: the red crosses and the 1 s gaps on the right. Every packet lost on the link comes back as an extra one-second wait at the end of the list.

It downloads over USB but not over telemetry

This is the most common picture. The link's capacity is usually enough. The problem is in how the autopilot shares out that capacity.

The autopilot doesn't use the whole link to send parameters; it reserves part of it and leaves the rest to telemetry. If there's no flow control between it and the radio, sending is throttled even more. There's no such restriction on the USB side, which is why the same autopilot downloads in seconds over a cable and in minutes over telemetry.

If you want to think in numbers: going by the bandwidth share in the ArduPilot source code, the ceiling on a 57600 baud link is about 46.7 parameters per second. A list of 1369 parameters takes about 29 seconds at that rate. If you're waiting minutes on screen, the link is running far below this ceiling.

The radio reporting its own buffer state also comes into play. If the radio says "my buffer is full," the autopilot stops sending parameters entirely. The yellow band in the diagram is that moment. A radio that never reports gets stuck less than one that reports badly. Counterintuitive, but the reason is simple: the autopilot ignores a stale report and acts on a fresh, low one.

Example: On competition day you're connecting by telemetry in the ground station tent. The bar crawls for minutes, and at the end of the list a few parameters complete one by one. If the list downloads in seconds when you connect the same vehicle by USB cable, the autopilot is fine, and the link is next: compare the two radios' Air Speed and Net ID settings, and check whether flow control is on.

How to measure your own link

Don't guess, look at the number. The code below prints how many parameters the autopilot reports, how many arrived, and which index numbers never arrived. If the missing count is above zero, the difference is directly the link's loss.

Python
from pymavlink import mavutil
import time

m = mavutil.mavlink_connection('tcp:127.0.0.1:5760')
m.wait_heartbeat()

gelen = {}
m.mav.param_request_list_send(m.target_system, m.target_component)
t0 = time.time()
son = t0
bildirilen = None

while time.time() - son < 6:
    msg = m.recv_match(type='PARAM_VALUE', blocking=True, timeout=1)
    if msg is None:
        continue
    son = time.time()
    bildirilen = msg.param_count
    gelen[msg.param_index] = msg.param_id

eksik = [i for i in range(bildirilen) if i not in gelen]

print("reported :", bildirilen)
print("received index :", len(gelen))
print("missing :", len(eksik))
print("sure        : %.1f s" % (son - t0))

If you run it over a lossless link on ArduCopter 4.7.0, you get this output:

Output
reported : 1369
received index : 1369
missing : 0
sure        : 56.0 s

On a lossless link, all 1369 parameters come down in a single request and no index number is left missing. So there's no structural problem in the protocol; the source of the stall in the field is the link. When you measure this number on your own setup, the difference gives you the size of the loss.

You changed the parameter and nothing happened

The most common advice on forums for this problem is to increase the parameter stream rate. The advice itself makes sense, but the names written are old.

In ArduPilot 4.7, the names of the stream rate parameters changed. When you write the old name, the program doesn't give you an error. Because that parameter isn't in the list, silently nothing happens. People then write "I tried it, it didn't work," when what they tried was never applied.

If you're not sure of a parameter's name, don't write it from memory. Download the full list and search by pattern. In 4.7, none of the old names show up in the list.

The most common mistake is miscounting the channel number. The numbering in parameter names starts with USB. Most people who want to set the telemetry port change number one and end up configuring USB, and nothing changes on telemetry.

Error Messages and Their Meanings

The texts below are strings that appear verbatim in the Mission Planner source code. Which one you see on screen narrows down where the problem is.

Getting Params.. (sysid

The program is using the old method, requesting parameters one by one. The file path either wasn't tried or failed. If you see this text, you've entered the long path.

Checking for Param MAVFTP

The program is trying the file path. Getting through here quickly and the list filling up is a good sign. If it stays stuck here for a long time, file transfer can't be handled by the link.

Timeout on read - GetParam

A single parameter was requested and its reply didn't come. This shows up in the stage that collects the missing ones one by one. On its own it isn't counted as a fault; it shows the link is lossy.

Timeout on read - setParam

This time a write request went unanswered. You think you changed the value, but it may not have changed on the autopilot. Read it back after writing to confirm.

No Heartbeat Packets Received

The link isn't talking at all. At this point, drop the parameters and go back to the cable and the baud rate. If TX isn't going to the other side as RX, the link stays silent.

What changes in the field

The output above is the reference for a lossless link. You can only measure the radio range, the antenna direction, interference in the environment and whether flow control is on in your own setup.

In practice, follow this order: first try USB. If it downloads over USB, the autopilot is fine and the link is next. Then make sure the two radios' Air Speed and Net ID settings are exactly the same. If it still stalls after those match, look at the cable. Some forum cases end at a cold solder joint or a reversed connector.

Which course covers this topic

In the course that covers the parameter screen, where each setting lives, and route planning from start to finish, this topic gets depth too: at what threshold the firmware cuts off sending, at what rate the program asks for the list from scratch, and how you classify it in a minute when you have a log in hand.

See the course: Mission Planner from Scratch

Was this article helpful?

Free resourcePixhawk and ArduPilot error message glossaryThe 5 messages in this article and similar ones are in the glossary: what they mean, why they appear, what to check first.

Learn this topic from start to finish

Season plan: all six courses for 9 months, ₺790 a month. ₺390 a month for high school and university students, ₺351 the first month with your member code. You can stop in any month you like. Start the Season plan · I'm a student