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

It takes too long (around 5s) for APP to connect an unprovisioned device.

Hi Nordic Mesh experts,

I'm testing for the BLE mesh using light_switch example based on nrf5 sdk for mesh and nRF Mesh APP.  

From the printed info on the APP during connection to device, there are three stages, connecting..., discovering services..., initializing.... It totally takes around 5 seconds.  I am trying to understand the process. Are there any tutorials? 

Why does the connection process take so much time? 

If it is possible, what can we do at device or APP to decrease the time?

Any idea will be appreciated. 

Parents
  • Hi,

    The "connecting" stage is the time needed for setting up a BLE connection with the device. The "discovering services" is for reading the entries in the GATT table, and "initializing" is for starting to use the GATT provisioning bearer. In total it may take close to five seconds, and typically it should take the same amount of time as for setting up a connection with a normal BLE device using the same parameters.

    Is there any particular step that lasts longer than what you would expect? The "connecting" state depends on the scan parameters of the phone and on the advertising parameters of the device. The "discovering services" and "initializing" states depend on connection parameters, which are decided by the phone.

    Regards,
    Terje

Reply
  • Hi,

    The "connecting" stage is the time needed for setting up a BLE connection with the device. The "discovering services" is for reading the entries in the GATT table, and "initializing" is for starting to use the GATT provisioning bearer. In total it may take close to five seconds, and typically it should take the same amount of time as for setting up a connection with a normal BLE device using the same parameters.

    Is there any particular step that lasts longer than what you would expect? The "connecting" state depends on the scan parameters of the phone and on the advertising parameters of the device. The "discovering services" and "initializing" states depend on connection parameters, which are decided by the phone.

    Regards,
    Terje

Children
No Data
Related