Skip to content

Library code and documentation for the Spektrum SRXL2 bi-directional serial protocol

License

Notifications You must be signed in to change notification settings

SpektrumRC/SRXL2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SRXL2

SRXL2 is a bi-directional serial communications protocol now used in Spektrum™ receivers. Using a standard UART in half-duplex mode, this protocol defines a standard way for the receiver to send Channel Data digitally to Smart ESCs, Flight Controllers, and other devices on the SRXL2 bus. Through a handshaking mechanism, these devices can report how often they should be polled for their Telemetry data, and can inform the master whether they support communications at 400k baud or the default of 115.2k. This enables much more responsive Telemetry data, customized to individual needs.

This open-source library code is the same code used in Spektrum™ receivers, and is provided here to allow the community to more easily innovate and create third-party SRXL2 compatible devices.

Getting Started

Check out the Examples folder for a simplified app example to get you familiar with the basics. For a more in-depth reference, check out the SRXL2 Specs. In there, you will find the approved electrical connector pinouts, details on how the Device ID and handshaking scheme works, and packet details.

The Source folder contains the C11-compatible library code that can be dropped into your project, and the example spm_srxl_config.h file gives you a starting point to configure and customize the required callback functions to interface with your own UART routines. You'll also find options to use hardware-accelerated CRC calculations if you are using compatible STM32 F3/F7 hardware.

Known Supported Platforms

Betaflight

Currently compiled in our own fork of betaflight until the changes are merged to the trunk. The latest release can be found here
https://github.com/SpektrumRC/betaflight/releases

MSH Brain2

MSH Brain2 supports SRXL2 with version 3.2.050
https://www.helifreak.com/7806137-post13.html

FlightOne

Currently supported in FalcoX alpha (Not yet in FlightOne) since version 10.0.4.1269
https://flightone.com/alpha

This however currently only includes support for channel data. The following features are still not yet supported
-RSSI
-VTX commands from Spektrum transmitter menu
-Telemetry/Textgen

About

Library code and documentation for the Spektrum SRXL2 bi-directional serial protocol

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages