<commit_before>HK-T6Av2
========
Serial protocol desciption between computer and HK-T6Av2 RC remote

In this directory you will find a program to configure your Hobby King
remote control from Linux. Further down in this document the full
protocol specification is written down as sniffed from the wire by me.

Usage:
```
 python hkctrl.py [-h] [-t TTY] [-b BAUDRATE] [-u FILE | -d FILE]
 
 HK-T6A V2 configuration tool
 
 optional arguments:
   -h, --help            show this help message and exit
   -t TTY, --tty TTY     Serial port. Default /dev/ttyUSB0
   -b BAUDRATE, --baud BAUDRATE
                         Transmitter baudrate. Default 115200
   -u FILE, --upload FILE
                         Load config in to transmitter and exit. Make sure
                         transmitter is switched on prior to running program.
   -d FILE, --download FILE
                         Dump config from transmitter and exit. Make sure
                         transmitter is switched on prior to running program.
```
With the -d and -u options you can backup/restore tranmitter settings.
Without those arguments the program will launch a GUI. (I expect
backup/restore to work on MS Windows as well.)

# HK-T6Av2 Protocol
The serial port of the transmitter is set at 115200 baud. I've seen 4
messages so far. Pot-state message, parameter request, parameter dump,
and parameter set.
<commit_msg>documentation changes after user feedback<commit_after>HK-T6Av2
========
Serial protocol desciption between computer and HK-T6Av2 RC remote

In this directory you will find a program to configure your Hobby King
remote control from Linux. Further down in this document the full
protocol specification is written down as sniffed from the wire by me.

Usage:
```
 python hkctrl.py [-h] [-t TTY] [-b BAUDRATE] [-u FILE | -d FILE]
 
 HK-T6A V2 configuration tool
 
 optional arguments:
   -h, --help            show this help message and exit
   -t TTY, --tty TTY     Serial port. Default /dev/ttyUSB0
   -b BAUDRATE, --baud BAUDRATE
                         Transmitter baudrate. Default 115200
   -u FILE, --upload FILE
                         Load config in to transmitter and exit. Make sure
                         transmitter is switched on prior to running program.
   -d FILE, --download FILE
                         Dump config from transmitter and exit. Make sure
                         transmitter is switched on prior to running program.
```
With the -d and -u options you can backup/restore tranmitter settings.
Without those arguments the program will launch a GUI. (I expect
backup/restore to work on MS Windows as well.) Requirements: python,
python-serial.

The software might work for:
* HobbyKing HK-T6A (tested by me)
* FlySky FS-CT6A, FS-CT6B
* Turborix TBXT6
* Exceed RC (tested by copterrichie)
* Storm ST-06TX
* CopterX CX-CT6A, CX-CT6B
* Jamara FCX 6

# HK-T6Av2 Protocol
The serial port of the transmitter is set at 115200 baud. I've seen 4
messages so far. Pot-state message, parameter request, parameter dump,
and parameter set.

{'fraction_non_alphanumeric': 0.064283371597245, 'fraction_numerical': 0.017382748442112166, 'mean_word_length': 2.554778554778555, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3033399', 'n_tokens_mistral': 893, 'n_tokens_neox': 805, 'n_words': 409}