Commit ddb7b145 authored by Frederic Danis's avatar Frederic Danis


Signed-off-by: Frederic Danis's avatarFrédéric Danis <>
parent 83b3c7d1
......@@ -7,3 +7,39 @@ cmake -H. -Bbuild -DCMAKE_INSTALL_PREFIX:PATH=/tmp/foo
cd build
This will build `` library and `btcsrtest` application to exercise libbtcsr and BlueZ functions related to RSSI, Tx Power, Link Quality and AFH.
## Test app
$ ./btcsrtest -h
btcsrtest [options] <command> [command parameters]
--help Display help
-i dev HCI device
csr-get-max-tx Get Maximun TX Power of CSR chipset
csr-set-max-tx Set Maximun TX Power of CSR chipset
csr-warmreset Warm reset of CSR chipset
conn-info Get connection information
set-afh Set AFH Host Channel Classification map
For more information on the usage of each command use:
btcsrtest <command> --help
HCI device to use is in same form as in _hciconfig_.</br>
`csr-*` commands are CSR specific.</br>
`conn-info` only does not need to be run as root.
`csr-get-max-tx` and `warmreset` do not take arguments.</br>
`csr-set-max-tx` takes the value to apply expressed in dBm.</br>
`conn-info` takes the remote device Bluetooth MAC address as parameter.</br>
`set-afh` takes 10 bytes representing the _AFH Host Channel Classification_ map to apply.</br>
For example, to request second HCI device to set _AFH Host Channel Classification_ map with channels 0-23 and 47-78:
$ ./btcsrtest -i hci1 set-afh 0xff 0xff 0xff 0x00 0x00 0x80 0xff 0xff 0xff 0x7f
......@@ -353,7 +353,6 @@ static void usage(void)
int i;
printf("btcsrtest - HCI commands\n");
"\tbtcsrtest [options] <command> [command parameters]\n");
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment