Tool/software:
hi Expert,
Can I use BLUEZ hcitool to set and read the tx power with hci command to BLE_controller example project?
There is BLE specific HCI commands below for read and set tx power as below. Can it support in BLE_controller example project?
BT Commands for LE |
OGF |
OCF |
Opcode |
Read Transmit Power Level |
3 |
45 |
0x0C2D |
Vendor Specific Command |
OGF |
CSG |
CMD |
Opcode |
HCI_EXT_SetTxPowerCmd |
63 |
0 |
1 |
0xFC01 |
HCI_EXT_SetMaxDtmTxPowerCmd |
63 |
0 |
17 |
0xFC11 |
How can I send the hcitool command? Below is correct?
root@OpenWrt:/tmp# hcitool -i hci0 cmd 0x03 0x002D
< HCI Command: ogf 0x03, ocf 0x002d, plen 0
> HCI Event: 0x0e plen 7
01 2D 0C 00 02 02 00
root@OpenWrt:/tmp#
root@OpenWrt:/tmp# hcitool -i hci0 cmd 0x3F 0x0011 0x00 0x02
< HCI Command: ogf 0x3f, ocf 0x0011, plen 2
00 02
> HCI Event: 0x0e plen 4
01 11 FC 01
root@OpenWrt:/tmp#
root@OpenWrt:/tmp#
root@OpenWrt:/tmp#
root@OpenWrt:/tmp# hcitool -i hci0 cmd 0x03 0x002D
< HCI Command: ogf 0x03, ocf 0x002d, plen 0
> HCI Event: 0x0e plen 7
01 2D 0C 00 00 02 00
BR,
frank