This repo is a fork of OpenTX that adds a PC-based Frsky receiver flashing tool that uses OpenTX's S.Port telemetry algorithms. The main purpose of this tool is to provide a way to flash Frsky receivers on Linux (Frsky's proprietary flashing software is only available on Windows). This is mainly useful for people who don't have access to an Frsky transmitter for flashing.
Use at your own risk! This tool has been tested just once to flash an Frsky XM receiver. It worked, and didn't brick the receiver! But with only one test I can't guarantee the same results for anyone else.
The flashing hardware I used was an FTDI 1232 breakout board, with the jumper set to 5 volts. The TX and RX lines must be inverted - to do this, I used https://github.com/eswierk/ft232r_prog. Finally, a diode needs to be added to convert the full duplex TX/RX pins to the half duplex S.Port pin. See the last page of https://www.multirotorparts.nl/downloads/frsky_smart_port_upgrade.pdf for instructions and a schematic.
The tool is in tools/rx_flash. In that directory, run build.sh to build it. This will produce an
executable, rx_flash. It takes two arguments: first, the serial port device, and second, the file
to flash. For example:
$ ./rx_flash /dev/ttyUSB0 ~/Downloads/XM170323/XMFCC170323_RSSI16.frkAlso note that the receiver only listens for update packets for a short time after powering on. Therefore, I powered it separately from the FTDI board so that I could power it up and then immediately start the update tool.
The ongoing development on 2.2.x is done in this branch.
Refer to the OpenTX wiki for information about setting up the tool chains for building OpenTX and OpenTX Companion as well as other development related issues.
Useful links:
- OpenTX Main Site http://www.open-tx.org/
- OpenTx University http://open-txu.org/
- OpenTX User Manual https://www.gitbook.com/book/opentx/opentx-taranis-manual/details
- OpenTX Lua Reference Guide https://www.gitbook.com/book/opentx/opentx-lua-reference-guide/details