MIT License

项目介绍

SpektrumRC/SRXL2 是一个托管在 GitHub 上的开源项目,主要使用 C 编写,采用 MIT License 许可证,目前获得 62 个 Star、14 次 Fork。

仓库全名
SpektrumRC/SRXL2
开源许可证
MIT License
Star 数
62
Fork 数
14
未关闭 Issue
2

README 摘要

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,…

完整内容见 GitHub 原始 README 或本页 。

常见问题

SRXL2 用什么语言开发?

主要使用 C 编写,采用 MIT License 许可证,目前有 62 个 Star。

SRXL2 可以免费商用吗?

仓库采用 MIT License 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 SRXL2 的源码?

可以直接克隆仓库:git clone https://github.com/SpektrumRC/SRXL2.git,默认分支为 master;安装与运行步骤见仓库 README。

SRXL2 最近还在维护吗?

仓库最近一次更新为 2023年8月24日,当前有 2 个未关闭 Issue;Star 数为 62,可作为社区活跃度的参考。

关于

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

描述取自 GitHub 官方 API,中文内容由 GitRead 中文社区 编辑团队整理。

简要分析

热度分
99
价值分
42
活跃状态
活跃

语言占比

C

README

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

评论

暂无评论