Reference Manual

Redpine Signals, Inc. Proprietary and Confidential Page 106
RS9116 n-Link Linux and Android
Technical Reference Manual
Version 2.0
23 Bluetooth hcitool and hciconfig Usage
The hcitool and hciconfig commands are used to control and configure parameters for the Bluetooth interface. The HCI
commands explained here are the most frequently used commands. For other HCI commands please refer to the
Bluetooth specification, Volume 2 Part E, Chapter7 from www.bluetooth.org.
Reset
Description
This command is used to issue a soft reset to the Bluetooth module
Default Value
-
Input Parameters
None
Output Parameter
None
Reset Required
No.
Usage
hcitool -i <hciX> cmd 0x03 0x03
Read Local Version Information
Description
This command is used to read the local version information
Default Value
-
Input Parameters
None
Output Parameter
HCI version
HCI revision
LMP version
Manufacturer name
LMP subversion
Reset Required
No.
Usage
hcitool -i <hciX> cmd 0x04 0x01
Read Local Supported Commands
Description
This command is used to read the local controller supported HCI commands.
Default Value
-
Input Parameters
None
Output Parameter
List of supported commands (64 bytes of bit field)
Reset Required
No.
Usage
hcitool -i <hciX> cmd 0x04 0x02
Get Local BD Address
Description
This command is used to get the local BD Address
Default Value
-
Input Parameters
None
Output Parameter
6 Byte BD Address
Reset Required
No.
Usage
hcitool -i <hciX> cmd 0x04 0x09
Start Inquiry
Description
This command is used to start the Inquiry process
Default Value
Input Parameters
LAP (3 Bytes): (0x9E8B00 0x9E8B3F)
Inquiry duration: (0x01 to 0x30 -> 1.28 to 61.44 Seconds)
Number of responses: (0x01 0xFF)