Skip to content
HC-06 serial bluetooth tools
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

HC-06 serial bluetooth setup tool

usage: [-h] [-r RATE] [-p {N,O,E}] [--set-rate SET_RATE]
                   [--set-pin SET_PIN] [--set-name SET_NAME]
                   [--set-parity {N,O,E}] [-v]

positional arguments:
  device_port           Serial configuration device port name 'COM3' for
                        Windows and '/dev/ttyUSB0' for Linux

optional arguments:
  -h, --help            show this help message and exit
  -r RATE, --rate RATE  Serial port configuration bit-rate, empty for auto-
  -p {N,O,E}, --parity {N,O,E}
                        Serial port configuration parity, empty for auto-scan
  --set-rate SET_RATE   Set new data bit-rate [1 .. C] or [1200 .. 1382400]
  --set-pin SET_PIN     Set pairing PIN code
  --set-name SET_NAME   Set device name
  --set-parity {N,O,E}  Set parity bit [N = None, O = Odd, E = Even]
  -v, --verbose         Set verbosity on

This script automatically tries to detect device serial communication bit-rate and parity. 
If you provide hints about parity or bit-rate with '-p' and '-r' options, detection will be faster.

Linux platforms:
  $ ./ /dev/ttyUSB0 --set-rate 115200 --set-pin 1234 --set-name BTS00 --set-parity N

Windows platforms:
  $ python COM1 --set-rate 115200 --set-pin 1234 --set-name BTS00 --set-parity N
You can’t perform that action at this time.