Skip to content
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

OSD freezing #102

Open
klavifon opened this issue Jan 14, 2023 · 9 comments
Open

OSD freezing #102

klavifon opened this issue Jan 14, 2023 · 9 comments

Comments

@klavifon
Copy link

Hello,

I have an issue where OSD freezes when video signal becomes weak. Sometimes the OSD comes back (by that I mean it starts updating its values) and sometimes it just stays frozen. I have to disarm and unplug the quad and then it comes back. I don't know the exact number of mbps but it happens when video link is pretty weak. I'm kind of desperate because I really need an OSD elements on my long range quad and I very much rely on elements like home arrow and distance from home etc...
What could be the problem?
Thanks,
Ales

@bri3d
Copy link
Collaborator

bri3d commented Jan 21, 2023

What flight controller software are you using?

@klavifon
Copy link
Author

klavifon commented Jan 21, 2023 via email

@bri3d
Copy link
Collaborator

bri3d commented Jan 22, 2023

Interesting, thanks for the report. Were you using compress_osd? If not, you should try it out.

@klavifon
Copy link
Author

klavifon commented Jan 22, 2023 via email

@bri3d
Copy link
Collaborator

bri3d commented Jan 22, 2023

Documentation here: https://github.com/fpv-wtf/msp-osd/releases/tag/v0.7.0

And in the main README

@klavifon
Copy link
Author

klavifon commented Jan 22, 2023 via email

@BogieGirl
Copy link

Hi
I have been complaining about this issue for a long time. I spoke with some of the developers....
at first I thought it was an INAV issue but then they came with INAV 6.0 RC3 that handles the OSD refresh as Ardopilot does, I also enabled the compress_osd feature and I work with WTFOS latest MSP versions.
Yesterday I was 2km away flying with my wingman ( he has Ardupilot) and both of us encountered a video jamming situation, both of us lost video for 5 seconds. he recovered fine and I had my OSD freeze again so I had to land.
after landing, I reset the airunit ONLY and the freezing OSD recovered.

@BogieGirl
Copy link

Any progress with this issue?

@bri3d
Copy link
Collaborator

bri3d commented Jul 31, 2023

There are multiple possible ways in which the OSD can freeze:

  • The DJI IP link fails to deliver UDP packets from the air side to the ground side
  • The flight controller stops delivering MSP DisplayPort updates
  • Some bug or issue in the msp-osd code causes it to hang or crash

If the link "unfreezes", that's a sign of the first issue, the DJI IP link stopped delivering packets. We can't do a lot about this as we can't really reach into the link parameters themselves. There might be a few things to do to try to "unstick" it, which could still be experimented with. Lowering the refresh rate could help a little.

If the link stays frozen and rebooting the Air Unit / Vista does not fix it, that was an FC issue. Some Flight Controllers have serious issues with task scheduling and buffer management their UART tasks will crash when exposed to a large amount of MSP data while trying to send DisplayPort. This needs to be debugged and fixed at the Flight Controller level.

If rebooting the Air Unit and not the FC fixes the issue, then this could be an msp-osd bug. Blackbox logs from this situation may help me some, but these issues could prove difficult to debug and a better logging strategy is likely needed to figure them out end to end.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants