Connection with Central and Peripheral using different MTU size

Hi,

My device works as a central and peripheral both but not at a same time as of now. According to my use case, I have the following connection scenario.

  1. It should connect (as a peripheral) with phone app (as a central) and work for data exchange with 240bytes MTU
  2. It should connect (as a central) with beacon (as a peripheral) and work for data exchange with 20 (BLE4) and 240bytes (BLE5) MTU according to beacon type.

I just want to know what type of changes I should make in SDK so that it fulfills both above scenarios.

Regards,

Bipin Patel

Parents
  • The change of MTU size has been discussed in this forum, like this thread  The link of the thread will help you answer the first point where you need to change the MTU size for one connection.

    Not sure what you mean by connecting to the beacon? Beacons do not connect to anything, but if you want to connect to different peripheral with different MTU sizes, then it should not be a problem. In BLE, you can connect to different peripheral with different MTU sizes, given that the MTU size is smaller or equal to the maximum MTU size the controller can handle.

    I would recommend you to go through this sample to understand how we fine tune the connection with MTU size and other connection parameters to get maximum throughput. Even though your goal is not focusing on  max throughput, the sample will give you some understanding on how to change the MTU size atleast.

Reply
  • The change of MTU size has been discussed in this forum, like this thread  The link of the thread will help you answer the first point where you need to change the MTU size for one connection.

    Not sure what you mean by connecting to the beacon? Beacons do not connect to anything, but if you want to connect to different peripheral with different MTU sizes, then it should not be a problem. In BLE, you can connect to different peripheral with different MTU sizes, given that the MTU size is smaller or equal to the maximum MTU size the controller can handle.

    I would recommend you to go through this sample to understand how we fine tune the connection with MTU size and other connection parameters to get maximum throughput. Even though your goal is not focusing on  max throughput, the sample will give you some understanding on how to change the MTU size atleast.

Children
Related