This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Scan / Connection Request

Team,

I received the following customer inquiry and hope you can help:

The BLE – WiFi bridge project I’m working on will need to control up to 64 nodes, not concurrently though. So I built the system to have a message queue from the server and if a message is pending for a node, when it sees an advertisement from the node, I stop the scanning service, and call sd_ble_gap_connect. When this is called, and I’m waiting for the connection, of course, I don’t receive any advertisements until I start the scanner service again.

Do I need to cancel the connection request before I can start scanning again? I want to allow time for the connection to take place, but I don’t want to miss too many advertisements from the other nodes.

I’ve thought about using the white list feature, and when an advert comes in for a device I want to connect to, then setting the white list, but I assume I would need to stop and start the scanning service to update the white list, is this accurate? Would this be a better approach? I only have a few hundred milliseconds to send out the connection request, so am trying to avoid any latency.

Team...any feedback/guidance you can share is appreciated.  Thanks.

Gene

Parents Reply Children
No Data
Related