Other Parts Discussed in Thread: CC2640, , BLE-STACK
Hi,
I am trying to use the 'hcitool scan' and 'hcitool lescan' on my BLE device to scan nearby devices, using CC2540 on a Linux (kernel version: 3.14.77) based system using Openwrt (version: OpenWrt Chaos Calmer V1.0.0). After testing the device, the broadcast feature seems to be working fine and I can scan my device on an android phone but the scan feature seems to have some issue.
The current status of the BLE device is:
hci0: Type: BR/EDR Bus: UART
BD Address: FC:69:47:75:D5:19 ACL MTU: 27:12 SCO MTU: 0:0
UP RUNNING
RX bytes:468 acl:0 sco:0 events:30 errors:0
TX bytes:340 acl:0 sco:0 commands:32 errors:0
While trying to scan for other devices gives following result:
root@OpenWrt:~# hcitool scan
Scanning ...
Inquiry failed: Operation not supported
root@OpenWrt:~# hcitool lescan
Set scan parameters failed: Connection timed out
And, attempting to lescan prompts the device to show: Bluetooth: hci0 command 0x200b tx timeout
Is there any specific feature that needs to be enabled to support the scanning of other devices? Or do we need to increase the scan window? If so, could you tell me how?