Topics

Beacon scanning limitation using hci_uart #ble #nrf52480 #uart #hci #ninja

Mayank
 

Hello All,

I have one question regarding the ability of zephyr's hci_uart sample app.
I am using this application on nrf52840_pca10056 for scanning the ble beacons.

Scenario is i can see "hci0" interface UP RUNNING. and my custom application starts scanning beacons continuously (Here I'm using bluez's api).
Here, as i am in continuous scanning/receiving mode, I can see that when I'm using "hciconfig" command to show hci interface, there Rx bytes keep on increasing.

$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:247820 acl:0 sco:0 events:1643 errors:0
        TX bytes:295 acl:0 sco:0 commands:40 errors:0

--> Now, After few times (5-10 minutes) Rx bytes count becomes so high and may be because of that the beacon scanning stops entirely.

Is there any limitation of beacon scanning? (I want more no of samples per second of ble beacon and thats why i'm using hci0 interface for continuous scanning).

NOTE: After scanning for every 10 seconds, I'm able to flush the UART buffer successfuly.

Thanks,
Mayank