hcitool lescan stops scanning beacons #ble #nrf52480 #uart #hci


Mayank
 

Hi Community,

I have one custom board on which I'm having Nordic's nrf52840_pca10056 chip on which i have flashed zephyr's 'hci_uart' sample application for the beacon scanning purpose.
"hci_uart" app is build with hardware flow control enable (Tx, Rx, RTS, CTS).

I'm using below commands to create the hci interface.
1) btattach -B /dev/ttymxc0 -S 1000000
2) hciconfig hci0 up

root@board-imx6ull:~# hciconfig
hci0:   Type: Primary  Bus: UART
        BD Address: 00:00:00:00:00:00  ACL MTU: 27:7  SCO MTU: 0:0
        UP RUNNING
        RX bytes:504 acl:0 sco:0 events:38 errors:0
        TX bytes:278 acl:0 sco:0 commands:38 errors:0

--> Here, hci interface is now UP RUNNING you can see above.
Now, when i use "hcitool lescan --duplicates" command to scan the beacons, it starts scanning immediately but after 3-4 minutes it stops scanning, even though all the beacons in surrounding are still present and advertising.

Tried without '--duplicate' switch but same issue is there.

Q1: Is there any issue in zephyr's hci_uart application or what?
NOTE : My actual use case is to scan the BLE beacons continuously.

Thanks,
Mayank

Join devel@lists.zephyrproject.org to automatically receive all group messages.