Commit Graph
3 Commits
Author SHA1 Message Date
Raphael CoefficandRaphael Coeffic aa916c2852 FrSkyA and T-FHSS smaller: the 5-in-1 AIR builds fit again (#1217)
* FrSkyA: smaller (no memmove, one setup reply handler)

The 5-in-1 AIR firmwares (T18, T-Lite) were still too large after #1216.
- The S.Port data moved by one byte with a loop: memmove alone pulled
  200 bytes of libc in.
- Register and bind replies through one handler, the mode giving the
  frame type and the channel.
-312 bytes.

* Futaba: T-FHSS smaller in AIR builds, bind power via CC2500_SetPower()

- AIR builds: the Surface key layout, register table and telemetry rate
  limit left out (Surface and SR aren't there since #1216).
- The bind (link) at the normal power through CC2500_SetPower() with
  the bind flag cleared for the call, instead of a copy of it.
-200 bytes in AIR builds.

---------

Co-authored-by: Raphael Coeffic <1050031+raphaelcoeffic@users.noreply.github.com>
2026-11-21 16:59:10 +01:00
Raphael CoefficandRaphael Coeffic 56c286c379 FrSkyA: 9 S.Port bytes per receiver reply (#1215)
An ACCESS receiver sends one S.Port frame per reply, without its CRC:
7E + 8 bytes, count 9. The count was cut to 8 like a D16 one, so every
frame lost its last byte and never reached the radio (sensors such as
a vario stale or missing; RSSI and RX voltage, from the reply header,
fine). Up to 9 bytes now; proces_sport_data() takes the 8 bytes after
7E and the frame to the radio gets its CRC as before.

Co-authored-by: Raphael Coeffic <1050031+raphaelcoeffic@users.noreply.github.com>
2026-11-21 16:31:25 +01:00
fc6814b705 FrSkyA: FrSky ACCESS on the CC2500 (#1214)
* FrSky X: S.Port frames to the receiver stored at payload[i-start-2]

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).

* FrSkyA: FrSky ACCESS on the CC2500

New protocol 112, subtypes 16ch, 8ch (FCC) and EU16ch, EU8ch (only the
region flag differs: ACCESS uses the same channels, hops and timing in
both). Reversed from the ISRM and RX6R firmwares and captures of an X9
Lite with an RX6R; same CC2500 PHY as Mike's UNI ACCESS.

- register (channel 0) and bind (channel 239) in the same bind
- 16 or 8 channels every 7 ms, D16 channel packing, extended limits
- failsafe: one channel per frame in its slot, as the ISRM
- telemetry: RSSI / RxBatt and the S.Port stream as D16, S.Port packets
  from the radio sent to the receiver (SportQueue(), split out of the
  serial input for FrSkyX/X2/R9)
- receiver settings and hardware info (PXX2 messages 5 and 6) between
  the receiver and a Lua script, MULTI telemetry type 18 ("Pipe") and
  serial frames of 2 to 7 extra bytes
- not on the atmega328p nor in the 64KB CC2500 release (size)

Tested with an RX6R (ACCESS 2.1.8) and an Archer Plus SR10+ (1.0.10,
3.0.3): bind, channels, failsafe (S.Bus output), telemetry, receiver
settings and the SR10+ stabilizer settings over S.Port.

Needs FrSkyX_seq_sport() fixed (#1203): its resends overflowed and
froze the hopping at the first S.Port packet.

* Lua: FrSky ACCESS RX, receiver options for FrSkyA

The receiver options page of an ACCESS module for a receiver bound
with FrSkyA: name and versions, fast PWM, telemetry and 25mW,
S.Port/F.Port/F.Port2, S.Bus 24, PWM on CH5/CH6, the channel or port
mode of each output. Rows follow the capabilities the receiver
reports. Uses the Multi Lua pipe (multiBuffer "Pipe").

* FrSkyA Lua: receiver IDs 81 to 85

Names for the newer ACCESS receivers (SR6BL15A, SR6Lite, R6Lite,
RS-Lite, R2SIM), so an R6Lite shows by name instead of "ID 83".

---------

Co-authored-by: Raphael Coeffic <1050031+raphaelcoeffic@users.noreply.github.com>
Co-authored-by: pascallanger <pascal_langer@yahoo.fr>
2026-11-21 16:07:16 +01:00