Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5359

General discussion • [RPI4B] BLE scanning while receiving BLE NOTIFY data from a device

$
0
0
Hi,

I have a RPI4B with 2 USB BLE v5.1 dongles (hci0 and hci1).
OS is "Linux raspberrypi 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr 3 17:24:16 BST 2023 aarch64 GNU/Linux".

I am using the Bluepy library to build my Python application.
In my application, it will connect to 2 BLE devices. Thus, the RPI4B will perform BLE scanning while connected to a BLE device.
My problem is that I found that the RPI4B took about 6.5 seconds to receive 10K NOTIFY data.
However, if I disabled the BLE scanning function after connecting to a BLE device, the RPI4B only took about 1.2 seconds to receive 10K NOTIFY data.

I would like to know if there is any solution to separate the BLE scanning function and the BLE data receiving function into 2 separate resources.

Thanks!
Terry

Statistics: Posted by terrychan — Fri Dec 22, 2023 6:07 am



Viewing all articles
Browse latest Browse all 5359

Trending Articles