fpv-wtf / msp-osd

MSP DisplayPort OSD
GNU General Public License v3.0
218 stars 33 forks source link

OSD freezing #102

Open klavifon opened 1 year ago

klavifon commented 1 year ago

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 commented 1 year ago

What flight controller software are you using?

klavifon commented 1 year ago

At that time I was using Betaflight 4.3.2 (latest official release).

On Sat, 21 Jan 2023 at 17:07, Brian Ledbetter @.***> wrote:

What flight controller software are you using?

— Reply to this email directly, view it on GitHub https://github.com/fpv-wtf/msp-osd/issues/102#issuecomment-1399279747, or unsubscribe https://github.com/notifications/unsubscribe-auth/AM54K4YGCDELTBXO2IBZUCTWTQCT3ANCNFSM6AAAAAAT3O62SI . You are receiving this because you authored the thread.Message ID: @.***>

-- Aleš Ogrin

bri3d commented 1 year ago

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

klavifon commented 1 year ago

Thanks for the reply. Can I ask you what you mean by compress_osd? Some cli based option? Thanks

On Sun, 22 Jan 2023 at 18:34, Brian Ledbetter @.***> wrote:

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

— Reply to this email directly, view it on GitHub https://github.com/fpv-wtf/msp-osd/issues/102#issuecomment-1399554626, or unsubscribe https://github.com/notifications/unsubscribe-auth/AM54K45G636W2NB2M3OOBADWTVVSDANCNFSM6AAAAAAT3O62SI . You are receiving this because you authored the thread.Message ID: @.***>

-- Aleš Ogrin

bri3d commented 1 year ago

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

And in the main README

klavifon commented 1 year ago

So if I understand correctly I have to paste “package-config set msp-osd compress_osd true package-config apply msp-osd” in CLI on to the DJI Vista vtx using WTFOS configurator? Sorry for the stupid questions as I am just an ordinary man who likes to fly 😊

On Sun, 22 Jan 2023 at 19:37, Brian Ledbetter @.***> wrote:

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

And in the main README

— Reply to this email directly, view it on GitHub https://github.com/fpv-wtf/msp-osd/issues/102#issuecomment-1399570259, or unsubscribe https://github.com/notifications/unsubscribe-auth/AM54K43IQQK2EF3RHTKG6VLWTV46LANCNFSM6AAAAAAT3O62SI . You are receiving this because you authored the thread.Message ID: @.***>

-- Aleš Ogrin

BogieGirl commented 1 year ago

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 commented 1 year ago

Any progress with this issue?

bri3d commented 1 year ago

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

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.