Files
DIY-Multiprotocol-TX-Module/Lua_scripts/README.md
T
Raphael CoefficandRaphael Coeffic 2a13543cdc Futaba: T-FHSS Surface, SR and Air sub protocols (#1213)
* Futaba: T-FHSS Surface, SR and Air sub protocols

New sub protocols of Futaba (21) next to SFHSS, on the CC2500:

- TFHSS: T-FHSS Surface (R334SBS...). 384 kbps MSK, 3 ms frames,
  CH1-4 every frame and CH5-8 in turn, bind packets on channel 1,
  failsafe, telemetry.
- TFH-SR: T-FHSS SR, 1.2 ms frames, no telemetry.
- TF-Air: T-FHSS Air (R3008SB...). 128 kbps 2-FSK, 15 ms frames, 16
  channels, link with the receiver's ID, telemetry. No failsafe frames
  (the receiver's own).

From the R334SBS receiver and T18SZ transmitter firmware, checked
against captures of a 4PM Plus (Surface, SR) and a T6K (Air) shared on
issue #507.

Telemetry (FUTABA_FW_TELEMETRY): the link frame (A1 = receiver voltage,
RSSI = its link quality) and a new MULTI_TELEMETRY_FUTABA (0x13) frame
with the S.BUS2 sensor slots as the receiver sends them, for the radio
to decode (Multiprotocol.h).

Tested against a CC2652/CC2755 receiver of the packets, not on real
Futaba receivers yet. Size: +3.0 KB on the STM32 builds, Futaba alone
on the ATmega328p 14.9 KB.

* Futaba: T-FHSS on STM32 only

T-FHSS adds 3.9 KB on the ATmega328p, and the CC2500 release build
(all its CC2500 protocols) no longer fits. FUTABA_TFHSS (Validate.h)
enables the T-FHSS sub protocols on STM32 boards only; on the ATmega
Futaba is S-FHSS alone, as before (same build size as master).

* Futaba: no T-FHSS on the 64KB STM32

The CC2500 64KB release build was 1 KB over with T-FHSS (+3.1 KB).
FUTABA_TFHSS now needs a 128KB STM32 (not MCU_STM32F103C8, as the
surface protocols in Validate.h). All release recipes build: 64KB as
master (53200 bytes), 4-in-1 117940, T18 118856.

* Futaba: T-FHSS bind hops the list and waits for the reply

The R334SBS scans the 16-channel list in its link mode, answers a bind
packet on that channel (type 24 / 25, keyed as its telemetry) and only
stores the bind after packets with byte 1 bit 7. The 4PM Plus sets bit 7
once it has heard the reply and binds 9.1 s without one. So the bind
now hops the list at 3 ms per packet (channel 1 every 48 ms, as
captured), listens on the same channel, then sends 240 packets with
bit 7; 9.6 s at most.

* Futaba: T-FHSS binds at the normal power

The bind (Surface, SR) and the Air link now use the radio's power
setting (low / high, range), not CC2500_BIND_POWER. The R334SBS takes a
bind packet only above about -79 dBm (its RSSI check); at bind power
the packets were 41 dB below the servo frames. The 4PM Plus binds 33 dB
down from a higher level, the T6K links at full power. Checked on the
bench with a 4-in-1 answering as the receiver (Surface and Air).

* Futaba: T-FHSS Air picks slot channels as the T18SZ

Slots 0..5 and 8 carry their own channel or the alternate (ch11..16,
ch10), chosen as the T18SZ does: a channel moved = more than 3 us from
the value last sent, age = frames since sent. Own moved: the alternate
if it moved too and is 2 frames old, or is 64 old. Own still: the
alternate if it moved (unless own is 64 old), else the older one, own
on a tie. Was: the halves in turn, so moving sticks went out every
other frame.

* Futaba: T-FHSS bind reply on the next list channel

The R334SBS hops before it replies to a bind packet, as it does for its
telemetry: the module now listens on the next list channel after each
bind packet, not on the same one. A 4PM Plus bind followed over the
list: no reply on the bind packet's channel, and byte 7 of the bind
packet is the channel it is sent on (the receiver echoes it), not 01.
Bench (4-in-1 answering as the receiver): normal and SR link.

* Futaba: T-FHSS Surface keys with the receiver's ID

The last 4 key bytes of T-FHSS Surface are the receiver's own ID (its
serial number), not a number of the TX: the receiver keeps only the TX
ID from the bind. The module sent its own, so the R334SBS bound but
decoded no servo packet. The ID now comes from the receiver's bind
reply and is stored per RX number (TFHSS_EEPROM_OFFSET 1527, 4 bytes
per model, end 1783). Bench (4-in-1 answering as the receiver with its
own ID): bind, servo packets OK, again after a restart without bind.

* Futaba: T-FHSS Surface reads the reply before the next packet

The reply comes 1.9 ms after the TX packet's start, the read was 2.5 ms
after the callback: on the MPM v2 replies were taken up to 1.5 ms only.
Now the next frame's packet is built, the reply read, then the packet
sent.

* Futaba: S.BUS2 sensors Lua tool

S.BUS2 sensors don't tell their type on the bus: the radio shows each
slot with data (telemetry type 19) as a raw sensor. The tool turns a
slot into a typed sensor the radio decodes (SBS-01T/TE, RPM, voltage,
current), with an ESCape32 preset. Uses model.setSensor() and
model.deleteSensor() when the radio has them (EdgeTX/edgetx#8105),
else setTelemetryValue() with "Discover new sensors" on.

---------

Co-authored-by: Raphael Coeffic <1050031+raphaelcoeffic@users.noreply.github.com>
2026-11-21 16:04:09 +01:00

6.5 KiB

Multiprotocol TX Module OpenTX LUA scripts

If you like this project and want to support further development please consider making a donation.

Donate €5
€5
Donate €10
€10
Donate €10
€15
Donate €25
€25
Donate
Other

MultiConfig

Enables to modify on a Multi module the Global ID, Cyrf ID or format the EEPROM.

Matching the ID of 2 Multi modules enable them to control the same receivers without rebinding. Be carefull the 2 modules should not be used at the same time unless you know what you are doing.

Notes:

  • Supported from Multi v1.3.2.85 or above and OpenTX 2.3.12 or above
  • The Multi module to be configured must be active, if there is a second Multi module in the radio it must be off
  • Located on the radio SD card under \SCRIPTS\TOOLS

MultiCconfig

MultiChannelsUpdater

Automatically name the channels based on the loaded Multi protocol and sub protocol including the module channel order convention.

Need OpenTX 2.3.9 or above. Located on the radio SD card under \SCRIPTS\TOOLS. This script needs MultiChan.txt to be present in the same folder.

MultiChannelsUpdater

MultiLOLI

Script to set the channels function (switch, servo, pwm, ppm, sbus) on a LOLI RX

MultiLOLIconfig

Futaba S.BUS2 sensors

Sets up the S.BUS2 sensors of a Futaba receiver bound with the Futaba protocol (T-FHSS sub protocols). S.BUS2 sensors don't tell their type on the bus: the radio shows each slot with data as a raw sensor "S1", "S2"... and this tool turns it into a typed sensor that the radio decodes: temperature (SBS-01T, SBS-01TE), RPM (SBS-01RM), voltage (SBS-01V, 2 slots) and current (SBS-01C, 3 slots: current, voltage, capacity). A preset sets up an ESCape32 ESC (its telemetry ID 1 to 4).

Needs a radio firmware with the Multi Futaba telemetry. With model.setSensor() the sensors are created directly and the raw ones replaced; without it, "Discover new sensors" must be on and the raw sensors are deleted by hand. Located on the radio SD card under \SCRIPTS\TOOLS.

Graupner HoTT

Enable text configuration of the HoTT RX and sensors: Vario, GPS, ESC, GAM and EAM.

Need OpenTX 2.3.9 or above. Located on the radio SD card under \SCRIPTS\TOOLS.

Notes:

  • Menu/MDL/Model is used to cycle through the detected sensors.
  • It's normal to lose the telemetry feed while using the text mode configuration. Telemetry will resume properly if the script is exited by doing a short press on the exit button.

Text mode video

Graupner HoTT Model Locator

This is the Graupner HoTT adapted version of the Model Locator script using RSSI.

The OpenTX sensor "RSSI" is populated by the individual OpenTX telemetry protocol implementations and returns a value from 0..100 (percent) originating from the early FrSky implementation. It turns out that FrSky did not really provide a genuine signal strength indicator in units of dbm but a link quality indicator in 0..100%. With Graupner HoTT the link quality indicator is not a good basis for the model locator as it is very non-linear and doesn't change much with distance. Using the Graupner HoTT telemetry sensor "Rssi" which is a true signal strength indicator serves the purpose of locating a model much better as it varies much more with distance.

DSM Tools for EdgeTX and OpenTx

Collection of EdgeTx/OpenTX Tools to use with Spektrum Receivers including forward programming. Extract the color or black&white zip version at the root of your SD card.

Frank is maintaining these awesome tools, check out his repository. Feel free to ask questions or open issues there.

DSM PID Flight log gain parameters for Blade micros

Lua telemetry script from feathering on RCGroups to facilitate setting the Gain Parameters on the Blade 150S FBL. It doesn't use Forward Programming but instead it just reads telemetry data from the Multi-module and displays it on a telemetry display.

It is very similar to the Telemetry Based Text Generator functionality on Spektrum transmitters where one doesn't need to rely on the angle of the swashplate to determine selection/value.