-
-
Notifications
You must be signed in to change notification settings - Fork 530
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not able to list logs for download if high number of logs #2162
Comments
Feels like MAVLink messages from MAVSDK don't reach the mRo, though MAVLink messages from the mRo do reach MAVSDK. Could it be that you have an issue there? |
Thanks for the reply. That might be, is there any way I can troubleshoot this? |
You can try to send other commands to the autopilot (e.g. arm, or set a parameter, etc) and confirm that none of them work (if my intuition is correct, they will just time out because they never reach the autopilot). You can also use wireshark to see what happens on the network interface between mavsdk and mRo. If you want, you can also try to describe your network topology here, so that if there is something obviously wrong we can maybe help 😊. |
Interestingly, with the pip package mavsdk 1.4.9 I am able to set parameters using the upload_params script. |
Is the mRo running the same version of PX4 as the Pixhawk? Does the mRo support logs? Like can QGC list and download logs, for instance? |
Yes to both.
|
Maybe there is a bug then. Can you check what happens with MAVLink on the mRo side when MAVSDK requests the logs? |
Can you please be more specific? Should I check a specific topic? |
I would look at the MAVLink messages being used by the |
Looking at this file, the output is as follows:
This behavior is the same on both the Pixhawk and the mRo, but after 3. on the Pixhawk we can see the logs, whereas it just hangs when requesting from the mRo |
It is weird that it was working with QGC and not with MAVSDK, if that was an sdcard issue 🤔 |
Could be an issue on the PX4 side as well, not sure. If you want I can send you the SD-card contents (by email) so you can debug it further. |
I can see that QGC triggers LOG_REQUEST_LIST two times. The second time it requests the range 50-167. MAVSDK first triggers LOG_REQUEST_END, then LOG_REQUEST list in the range 0-167. Maybe MAVSDK simply requests too much data at a time? It could also be that list_timeout gets called too quickly: MAVSDK/src/mavsdk/plugins/log_files/log_files_impl.cpp Lines 100 to 102 in b29239d
|
Oh right, maybe there is some tuning to do there. The message definition doesn't say anything about a limit for LOG_REQUEST_LIST, so I would assume that the autopilot should do it in a way that works...
Hmm I don't know, if I understand the code correctly, the timeout is refreshed everytime a LOG_ENTRY is received, and even then there is some retry logic... Would be nice to check what PX4 does when it receives LOG_REQUEST_LIST and if it could be a problem if too many entries are requested... |
You could try to increase the timeout: |
Unfortunately this did not help. Have you been able to reproduce this issue on your side?
|
Is PX4 having an issue when there are "too many" logs? If that's the case, shouldn't that be fixed on the PX4 side? |
Any updates on this issue? |
No, sorry, it's on my long todo list of things I ought to look into. Consider GitHub sponsoring if this is important and urgent for you. |
Actually, it might have been fixed in the meantime: #2234 Try again with v2.4.0. See also: mavlink/MAVSDK-Python#662 |
I'm closing this. Comment if this is not fixed in the meantime. |
The
logfile_download
example works fine on the Pixhawk 4, but not on the mRo Control Zero H7 OEM.This is the output:
Any idea why it doesn't work on the mRo?
Edit: Seems to be an issue with the log contents, not the mRo
The text was updated successfully, but these errors were encountered: