REL 1.0
Page 53 of 69
iWave Systems Technologies Pvt. Ltd.
iW-RainboW-G15D Linux User Manual
5.2.3
Bluetooth Test
This section explains how to test the USB Bluetooth in the iW-RainboW-G15M platform.
Connect the USB Bluetooth module and execute below command to check the Bluetooth interface.
root@iWave-G15~$hciconfig
hci0: Type: USB
BD Address: 00:15:83:15:A1:B9 ACL MTU: 672:4 SCO MTU: 48:1
UP RUNNING PSCAN ISCAN
RX bytes:4430 acl:60 sco:0 events:145 errors:0
TX bytes:3834 acl:62 sco:0 commands:54 errors:0
To enable the interface, execute the below command
root@iWave-G15~$hciconfig hci0 up piscan
To check the initialized or enabled Bluetooth devices, execute the below command.
root@iWave-G15~$hcitool dev
Devices:
hci0 00:15:83:15:A1:B9
Scan the surrounding devices addresses and names, execute the below command.
root@iWave-G15~$hcitool scan
Scanning ...
XX:XX:XX:XX:XX:XX XXXX
XX:XX:XX:XX:XX:XX XXXX
Get surrounding devices addresses and classes by executing below command.
root@iWave-G15~$hcitool inq
Inquiring ...
XX:XX:XX:XX:XX:XX clock offset: 0x6354 class: 0x5a0204
To get the info about a scanned device, execute the below command.
root@iWave-G15~$hcitool info <MAC address>
Requesting information ...
BD Address: XX:XX:XX:XX:XX:XX
Device Name: XXXXX
LMP Version: (0x4) LMP Subversion: 0x12e9
Manufacturer: XXXXXXXXXXXXXXXXXXXXXXXXX
Features: 0xff 0xff 0x8f 0xfe 0x9b 0xff 0x59 0x83
<3-slot packets> <5-slot packets> <encryption> <slot offset>
<3-slot EDR eSCO> <extended inquiry> <extended features>
Extended features: 1 pages
Pinging the scanned devices, execute the below command.
root@iWave-G15~$l2ping <device MAC address>
Ping: XX:XX:XX:XX:XX:XX from 00:15:83:15:A1:B9 (data size 44) ...
44 bytes from XX:XX:XX:XX:XX:XX id 0 time 9.69ms
44 bytes from XX:XX:XX:XX:XX:XX id 1 time 19.66ms