Other Parts Discussed in Thread: WL1837
We integrated this WL1837 BT on to IMx6 based board over UART with LInux as OS. Its working fine in Normal Mode.
Now we need to test this BT part of WL1837 in "Test Mode" for operations like below from IMX6 Linux. Linux driver is hci_uart and running Bluez stack on top of this driver.
1. Switching the BT device between BLE and BT classic?
2. Changing the Tx power Levels using available commands like hcitool, hciconfig etc or any other tools from TI?
3. Changing Frequencies / Channel etc?
4. Continous TX/RX tests
I tried below commands..
1. Putting device into PICAN working fine..
2. TX power Level setting:
root@imx6: # hciconfig hci0 up
root@imx6: # hciconfig hci0 inqtpl
hci0: Type: Primary Bus: UART
BD Address: 78:04:73:B2:AD:CE ACL MTU: 1021:6 SCO MTU: 180:4
Inquiry transmit power level: 14
root@imx6: # hciconfig hci0 inqtpl 12
root@imx6: # hciconfig hci0 inqtpl
hci0: Type: Primary Bus: UART
BD Address: 78:04:73:B2:AD:CE ACL MTU: 1021:6 SCO MTU: 180:4
Inquiry transmit power level: 14
Dump:-
< HCI Command: Read Inquiry Response Transmit Power Level (0x03|0x0058) plen 0
HCI Event: Command Complete (0x0e) plen 5
Read Inquiry Response Transmit Power Level (0x03|0x0058) ncmd 1
status 0x00 level 14
< HCI Command: Write Inquiry Transmit Power Level (0x03|0x0059) plen 1
level 12
HCI Event: Command Complete (0x0e) plen 4
Write Inquiry Transmit Power Level (0x03|0x0059) ncmd 1
status 0x00
< HCI Command: Read Inquiry Response Transmit Power Level (0x03|0x0058) plen 0
HCI Event: Command Complete (0x0e) plen 5
Read Inquiry Response Transmit Power Level (0x03|0x0058) ncmd 1
status 0x00 level 14
3. Putting hci0 into PISCAN
root@imx6: hcitool cmd 0x03 0x01a 0x03
< HCI Command: ogf 0x03, ocf 0x001a, plen 1
03
> HCI Event: 0x0e plen 4
01 1A 0C 00
hcitool cmd 3f 1ca
< HCI Command: ogf 0x3f, ocf 0x01ca, plen 0
> HCI Event: 0x0e plen 4
01 CA FD 11
Cont_tx o/put
4. Continous TX : But dont know whether these commands worked fine or not?
hcitool cmd 0x03 0x001a 0x00
hcitool cmd 0x3f 0x01fb 0x01 0xff 0x00 0x00 0x00 0x00 0x01
hcitool cmd 0x3f 0x01ca 0x62 0x09 0x01 0x00 0x07 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
( ./cont_tx.sh
< HCI Command: ogf 0x03, ocf 0x001a, plen 1
00
> HCI Event: 0x0e plen 4
01 1A 0C 00
< HCI Command: ogf 0x3f, ocf 0x01fb, plen 7
01 FF 00 00 00 00 01
> HCI Event: 0x0e plen 4
01 FB FD 00
< HCI Command: ogf 0x3f, ocf 0x01ca, plen 13
62 09 01 00 07 00 00 00 00 00 00 00 00
> HCI Event: 0x0e plen 4
01 CA FD 00 )
5. Continous RX / TX
hcitool cmd 0x3f 0x01fb 0x01 0xff 0x00 0x00 0x00 0x00 0x01
hcitool cmd 0x3f 0x01cc 0x00 0x03 0x62 0x09 0xff 0xff 0x05 0x00 0x1b 0x00 0x07 0x01 0xff 0x01
6. BT SIG RF Testmode: We see only ISCAN PSCAN got enabled for this commands.Is this what happends?
hcitool cmd 0x06 0x03
hcitool cmd 0x03 0x05 0x02 0x00 0x03
hcitool cmd 0x03 0x1a 0x03
7. BLE testing: Transmitter Test. Dont know whether this works or not?
hcitool cmd 0x3f 0x01fb 0x01 0xff 0x00 0x00 0x00 0x80 0x00 //disable RF Calibration
hcitool cmd 0x08 0x001e 0x00 0x00 0x00
hcitool cmd 0x08 0x001f
** How to verify or conclude or get any understanding that above parameters are correct for hcitool.?
Is there any easy way or direct linux commands to test my wl1837 BT module for compliance?