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

Dongle in server mode with connect needs 100-400 ms to answer Read or Write response

Using a Peripheral set in Central mode and write then read data back in the Dongle nRF5240 set in Server Mode.

Once connected and exchange MTU (extended) I write and then read my data. The read response or the write response are very long up to 400 ms for the read response.

Sending 1 byte or 240 bytes does not make any differences.

Why is this delay for?

My Interval connection is set to the minimum 7.5 ms.

Are this timing correct? Can I made then shorter?

Thank for helping.

Jean-Marc

Parents Reply
  • Thank you everybody for your answers. You made me pinpoint the interval connection. But as I wrote I already set this to my central.

    Anyway I still do not know why this happen but I interfaced with another server on Linux and used the "btmon" (I do not know how to setup the sniffer with my dongle).

    I noticed on btmon that the connection interval  reported was not what I had setup on my code, neither from my central neither from my slave.

    So I send the command for a "LE Remote Connection Parameter Request" and finally this updated the connection interval as set by my code.

    No idea why BLE is acting like this.

    Also used now notify as suggested but cannot set it to the dongle to notify :-(

Children
Related