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

Quick connection parameters update

Hello everyone,

I'm currently trying to change the connection parameters to be quick(100ms 0 slave latency) on a button press and after a timer timeout I go back to the low connection parameters.

I'm also sending a notification to an android application at the same time and then send back 2 characteristic ( LED toggle and a string for a LCD) .

It's working but it take quite a long time (10s) for my application to change the connection parameters so the 2 characteristic are not sent at quick connection parameters the first time but if I press a second time it's then updated and send it quickly.

Do you guys know a workaround this problem ?

Parents
  • Hi,

    The Bluetooth spec says that the master should allow a minimum of 6 connection events before the new connection parameters are applied. This could easily amount to 10s, depending on the old connection interval.

    You could try using a short connection interval and increasing slave latency to send the notifications more quickly. This would also conserve power.

    BR

  • In the Log window in the Master Control Panel their is nothing . It's like the call is not done.

    [08:44:27.8]Received Connection Parameter Update Request

    [08:44:27.8]ConnectionParameterUpdateResponse sent with ACCEPTED response

    [08:44:27.8]Connection Parameters Update sent. ConnInterval:100.0ms, SlaveLatency:0, SupervisionTimeout:600.0ms

    [08:44:28.3]Received a HandleValueNotification on handle 000E with value 01

    [08:44:28.7]Received a HandleValueNotification on handle 000E with value 00

    [08:44:38.4] Received Connection Parameter Update Request

    [08:44:38.4] ConnectionParameterUpdateResponse sent with ACCEPTED response

    [08:44:38.4] Connection Parameters Update sent. ConnInterval:100.0ms, SlaveLatency:0, SupervisionTimeout:600.0ms

    [08:44:56.5]Received a HandleValueNotification on handle 000E with value 01

    [08:44:56.9] Received a HandleValueNotification on handle 000E with value 00

Reply
  • In the Log window in the Master Control Panel their is nothing . It's like the call is not done.

    [08:44:27.8]Received Connection Parameter Update Request

    [08:44:27.8]ConnectionParameterUpdateResponse sent with ACCEPTED response

    [08:44:27.8]Connection Parameters Update sent. ConnInterval:100.0ms, SlaveLatency:0, SupervisionTimeout:600.0ms

    [08:44:28.3]Received a HandleValueNotification on handle 000E with value 01

    [08:44:28.7]Received a HandleValueNotification on handle 000E with value 00

    [08:44:38.4] Received Connection Parameter Update Request

    [08:44:38.4] ConnectionParameterUpdateResponse sent with ACCEPTED response

    [08:44:38.4] Connection Parameters Update sent. ConnInterval:100.0ms, SlaveLatency:0, SupervisionTimeout:600.0ms

    [08:44:56.5]Received a HandleValueNotification on handle 000E with value 01

    [08:44:56.9] Received a HandleValueNotification on handle 000E with value 00

Children
No Data
Related