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

Service discovery and connection delay

Hello,

I'm trying to connect as fast as possible two devices (central : 52832 S132v5 and peripheral : 51422 S130v2), for a given advertisement interval. The central will always be connected to the same kind of peripherals, all identicals.

Regarding this, I have two questions :

  • about service discovery : given that the central knows the device he is connected too (always the same kind, with the same service), can I without expecting problems, store in advance in the central the characteristics handles I will use and hence skipping service discovery? Bonding allows to skip service discovery after the first connection for a given device but if I store the handles in advance, I won't ever need discovery for any of the devices.

  • about connection delay : the central scans for peripherals to connect to (recognised using adv data). Once the central receives an advertisement a connection request is sent (sd_ble_gap_connect) but the connection is established on the next peripheral advertisement. I guess the central waits for the receive window of the peripheral on the next advertisement. So if the advertisement period is 2s, the min delay to establish a connexion is 2s. Is there any way we can establish a connection on the first advertisement the central receives?

Thanks for your help,

Guillaume

Parents Reply Children
No Data
Related