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 Children
  • Oh! OK this sounds a good verification. But I did not install any SDK for the dongle. I am just using the dongle as is with Connect to help me develop another product. I still have to figure out where to install this. Will do it.

  • Check out out getting started guide.

    I really recommend you to use the nRF52840 DK if you intend to do some development with the nRF52840 chip, as the dongle doesn't have a programming chip, so it is not possible to debug.

    Also, if you intend to transfer a lot of data, you should look into notifications. It is quite common in all of our examples.

    Best regards,

    Edvin

  • 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 :-(

  • Hello,

    If you are new to BLE, I suggest that you look into one of our examples to begin with. And if you only have the dongle, this example can be a good place to start.

    You can use the nRF Connect for Mobile to trigger notifications on the service, and play around with it.

    But I can't stress enough that for development purposes, a DK is a lot easier to work with, as it provides debug possibilities, which the dongle does not have. The dongle is intended as a development companion, which you can use with nRF Connect, to connect to the device that you are actually developing on.

  • Thank you Edwin for your answer.

    I am not really new to BLE but rather for the use of Nordic.

    Do you mean that I can run the linked example with the dongle nRF52840? 

Related