I am trying to control transmit power level of a Bluetooth module (PAN1326B) with imx.6 connected over UART using hciconfigtool.
The exact command that i am using is as hciconfig hci0 inqtpl <level>
.After executing the command if I check the module power level using hciconfig hci0 inqtpl
, it shows the same value as it was before running the command (Transmit Power level 12). Is there anything wrong in the way the level is being changed. Are there any other ways to change transmit power level of a BT module with linux hosts over hci.
My BT module is a class 1 device and has transmit power level control available.
The code used to enable Bluetooth module is
root@apalis-imx6:~# hciattach /dev/ttymxc1 texas
Found a Texas Instruments' chip!
Firmware file : /lib/firmware/ti-connectivity/TIInit_6.7.16.bts
Loaded BTS script version 1
texas: changing baud rate to 115200, flow control to 1
[ 1582.117152] Bluetooth: HCI UART driver ver 2.2
[ 1582.121638] Bluetooth: HCILL protocol initialized
[ 1582.443282] Bluetooth: RFCOMM TTY layer initialized
[ 1582.448298] Bluetooth: RFCOMM socket layer initialized
[ 1582.453543] Bluetooth: RFCOMM ver 1.11
Device setup complete
root@apalis-imx6:~# bluetoothctl -a
[NEW] Controller B0:B4:48:6C:8F:43 apalis-imx6 [default]
Agent registered
[bluetooth]# default-agent on
Default agent request successful