Hello guest, if you read this it means you are not registered. Click here to register in a few simple steps, you will enjoy all features of our Forum.
This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Betaflight Bi-Directional Serial Receiver Protocol Bug
#1
The following was posted by Tony Cake on the ImmersionRC Hub a few days ago. It looks like this bug has existed in Betaflight pretty much forever. It only affects single-wire bi-directional serial protocols. The fix has already been merged into the Betaflight 4.2.6 release (the pull request is HERE), so if anyone is running one of the affected serial receiver protocols, they will probably want to install that new release as soon as it gets published.

Tony Cake Wrote:Bit of news from the Betaflight side. This past week a fairly serious bug was fixed in the core of the Betaflight serial drivers which potentially affects any single-wire (bidirectional) Rx protocol (including GHST, SRXL-2, and possibly also FPort, and others). Basically any protocol that wires the Rx to the FC using a UART Tx wire, instead of Rx, on F7, F3, G4, H7 based FCs.

The bug manifested itself by causing dropped packets between the Rx and FC, which were not actually dropped on the RF link between Tx and Rx.

Noisy systems, with wiring between Rx and FC which happened to pass close to the inductor of a switching regulator, could experience the problem. This describes most builds unfortunately.

For the technically inquisitive, the bug was caused by a piece of code which erroneously enabled pulldowns for all Bidirectional UARTs. With non-inverted receivers pulling the same line up, the result was a tug of war which would cause the UART line to sit at half of the supply voltage, and be extremely susceptible to noise.
The bug appears to have been introduced back in 2016, so it has been around for a good while.

If you are experiencing higher than expected packet loss, or failsafes, with any single-wire Rx (GHST included) and don't mind testing a development build of Betaflight, it is certainly worth installing.

Many thanks to Alex Kubrak, Gary Kent for relentlessly hounding me, and tracking down every lost packet, until this was discovered.
Reply
Login to remove this ad | Register Here
#2
I was wondering if this is the reason I was getting limited telemetry with the Jumper R1F.
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  Announcement Betaflight 4.5.0 *** FINAL RELEASE *** Now Available SnowLeopardFPV 1 248 28-Apr-2024, 05:50 PM
Last Post: SnowLeopardFPV
  Announcement Betaflight 4.5.0 Release Candidate 4 Now Available SnowLeopardFPV 8 2,382 15-Apr-2024, 06:50 PM
Last Post: SnowLeopardFPV
Exclamation Betaflight Configurator - HELP iFly4rotors 10 446 04-Apr-2024, 12:08 AM
Last Post: Pathfinder075
  problems binding receiver on mobula 6 2024 whattheheck345 13 437 30-Mar-2024, 12:32 AM
Last Post: whattheheck345
  Betaflight Configurator Windows - Bluetooth Connection norseman73 1 180 17-Mar-2024, 02:55 PM
Last Post: SnowLeopardFPV


Login to remove this ad | Register Here