Commit Graph
27 Commits
Author SHA1 Message Date
Raphael CoefficandRaphael Coeffic 1056d13dad S.Port: no broken packets when the radio pushes too fast, no stalls after a full buffer (#1224)
* S.Port: drop a radio packet when the downlink buffer is full

SportQueue() wrote the stuffed packet without checking for room: a radio
pushing faster than the RF link drains (8 bytes per frame) wrapped the
64-byte SportData ring over the bytes not sent yet, and the receivers got
broken S.Port frames. Now the whole new packet is dropped when it doesn't
fit (stuffed length 9 + 1 per 7D/7E byte). The buffer low flag is set as
before, and also on a drop.

* S.Port: report the downlink buffer state once, also when it has room

The buffer low flag was cleared silently, so the radio only learnt at
the next periodic status (up to 500 ms) and held its packets with the
buffer empty: 442 B/s instead of ~1150 B/s with the flag honoured (4-in-1
and MPM v2 benches). Send the status as soon as the flag clears. While
the flag is set, the status is no longer forced again on every packet:
only when the flag gets set, the periodic status repeats it.

---------

Co-authored-by: Raphael Coeffic <1050031+raphaelcoeffic@users.noreply.github.com>
2026-12-04 17:20:35 +01:00
Raphael Coeffic 9baaede9f5 FrSky X: S.Port frames to the receiver stored at payload[i-start-2] (#1203)
FrSkyX_seq_sport() (SPORT_SEND) stored the outgoing bytes at
payload[i-start+2], i.e. payload[4] to payload[11] for the 8 bytes of
an LBT packet: up to 4 bytes past each frame's 8-byte payload (into the
next frame's count and payload, past the array for frame 3). The
retransmits sent payload[i] and payload[i-start+2], bytes from beyond
the frame. All three now use payload[i-start-2] (0 to 7).
2026-11-21 16:01:35 +01:00
Pascal Langer 3b8b2ef376 Protocol init function modified 2021-02-09 18:23:33 +01:00
Pascal Langer 7676398aab Fix OMP protocol 2021-01-25 11:33:30 +01:00
Pascal Langer 69c95ca153 Fix compilation issues when Telem is disabled 2020-07-22 15:27:06 +02:00
Pascal Langer f502ba3659 FrSkyX Cloned: 8 channels option 2020-07-21 01:40:14 +02:00
Pascal Langer 5ab00b9d18 FrSkyX: TXQly is the percentage of telemetry received packets (100...0%) 2020-07-05 00:28:43 +02:00
Pascal Langer fbd5d7cf48 FrSky R9: telemetry TX to RX attempt 2020-07-04 22:43:19 +02:00
Pascal Langer 84132678cc FrSkyR9: TQLY = percentage of telemetry frames per second 2020-07-04 18:40:29 +02:00
Pascal Langer 49d993f613 FrSkyR9: fix independant compilation issue 2020-07-04 11:48:26 +02:00
Pascal Langer d5f819dd59 FrSkyR9: initial telemetry support 2020-07-03 19:51:11 +02:00
Pascal Langer 374b46966c FrSkyX: small change 2020-06-05 22:22:13 +02:00
Pascal Langer e70708b133 FrSkyX: push more parts to common 2020-05-23 22:39:26 +02:00
Pascal Langer b21e8030b3 Fix independant protocols build 2020-04-15 01:30:06 +02:00
Pascal Langer 1c02cb46f5 FrSky Clone mode
Check documentation for full details: https://github.com/pascallanger/DIY-Multiprotocol-TX-Module/blob/master/Protocols_Details.md#FRSKY_RX---55
2020-04-13 22:10:58 +02:00
Pascal Langer 7e5cd9819a New protocol FrSkyL: LR12
Model: L9R RX
2 sub protocols: LR12 and LR12_6CH
2020-04-11 20:09:32 +02:00
Pascal Langer cde77a88fd FrSkyRX: added sub_protocol, documentation and more 2020-04-10 19:32:50 +02:00
E1yot 08a555f187 Initial Version of CloneMode (#342)
* Initial Version

* Bugfix and change of the handling of the RX Num.

If RX Num is 63, write a finetune value of 127 to the EEPROM.
A real finetune value of 127 means, the frequency of module is out of range and
the module should be replaced. This way the clone mode should not get unwanted
active by a module with a frequency drift arround 63.
2020-04-10 19:01:01 +02:00
Pascal Langer dfd3386319 FrSkyX v2.1: initial support
Rewrite of the FrSkyX code to support both v1 and v2.1.0 with FCC and LBT.
FrSky v1 accessible as usual
FrSky v2.1.0 accessible through the protocol 64=FrSkyX2 with the same subprotocols as v1
The LBT feature is now fully implemented on the TX and turned on for both v1 LBT and v2.1.0 LBT.
For v2.1.0, to access the bind functions Telem=on/off, CH1-8/9-16 and bidirectional SPort (SxR setup for example), you need to update OpenTX to the latest 2.3.8 nightly (not available yet).
2020-03-29 18:44:03 +02:00
Tomer Abramovich 77bf17967d initial working version of R9M, 8 CH and BINDING support only 2020-01-21 17:42:33 +02:00
pascallanger e6cab65560 Fix paranthesis... 2020-01-21 10:29:11 +01:00
pascallanger cc115323e1 Prep for FrSky X v2 2020-01-20 23:52:17 +01:00
pascallanger 9b499ab7d1 Fix (?) protocol issues 2019-10-31 23:33:10 +01:00
pascallanger 9f1bdc901c FrSkyX LBT: implement LBT instead of transmitting all the time
Needs to be activated using FRSKYX_LBT for now.
2019-10-27 13:20:53 +01:00
goebish 6a83cb5577 Frsky rx fixes (#289)
* Restore previous cc2500 register init

* Fix failsafe packets locks

* Fix D8 checksum check
2019-10-17 16:59:08 +02:00
goebish a234ccbd05 Protocol FrSkyD (D8) receiver (#283)
* Rename FrSkyX Rx to FrSky Rx

* Rename protocol

* Add D8 receiver sub protocol
2019-10-12 19:50:11 +02:00
pascallanger 821732bba9 Initial S.Port send
!!! No retransmit for now !!!
2019-09-30 17:35:12 +02:00