This document outlines a two-way communication protocol between a remote device and host. It defines the hardware, serial communication settings, frame structure, and data types exchanged. Frames are 10 bytes headed by 0xFF and contain fields for header bytes, analog values, thresholds, link quality, and user data bytes. The protocol provides error-free communication and bi-directional exchange of sensor readings, settings, and custom user payloads.
This document outlines a two-way communication protocol between a remote device and host. It defines the hardware, serial communication settings, frame structure, and data types exchanged. Frames are 10 bytes headed by 0xFF and contain fields for header bytes, analog values, thresholds, link quality, and user data bytes. The protocol provides error-free communication and bi-directional exchange of sensor readings, settings, and custom user payloads.
To help user develop his or her own program to fully make use of FrSky’s dual-way system.
2. Hardware defination
2.1. remote end
Port 1: 0~3.3V voltage, value: 0x00~0xff.
Port 2: 0~3.3V voltage, value: 0x00~0xff. Port 3: RS232 RX pin. Serial COM setting: 4800bps, 8bit, No parity, 1 stop bit.
2.2. host end
Serial COM setting: 4800bps, 8bit, No parity, 1 stop bit.
Build in error free protocol, there is no need for error correction by user.
3. Frame protocol
Ten bytes frame headed with 0xff.
3.1. Host end
Input for setting alarm threshold
HEAD1 HEAD2 Threshold Greater Alarm level 5 bytes Answerred with value 1:greater than 0: greatest 00 0: less than 1: middle 2: lowest 0xFF 0xFC Analog 1 1/0 The same frame 0xFF 0xFB Analog 1 1/0 The same frame 0xFF 0xFA Analog 2 1/0 The same frame 0xFF 0xF9 Analog 2 1/0 The same frame Input for request all available threshold setting 0xFF 0xF8 00 00 00 5bytes All threshold 00 setting frame Output for reply to alarm threshold and user data HEAD1 HEAD2 Threshold Greater Alarm level 5 bytes Value for 1:greater than 0: greatest 00 0: less than 1: middle 2: lowest 0xFF 0xFC Analog 1 1/0 0xFF 0xFB Analog 1 1/0 0xFF 0xFA Analog 2 1/0 0xFF 0xF9 Analog 2 1/0 Output for remote voltage and link quality HEAD1 HEAD2 Analoge Analog value Link quality 5 bytes notes value for for 00 0xFF 0xFE port 1 port 2 Link quality Value from Remote end User data HEAD1 HEAD2 Length of Not used User bytes User notes valid bytes bytes in frame 0xFF 0xFD Length of Not used byte1 byte2 to User data valid bytes byte6