Skip to main content
JPark.16
Visitor II
October 26, 2020
Question

How can I change MTU value on my BLUENRG-M2 module

  • October 26, 2020
  • 3 replies
  • 1388 views

I want to change the MTU value.

As far as I checked through the manual, the mtu value is confirmed through aci_gatt_exchange_config().

I want to change the MTU value set at this time.

It seems that it can be set when the stack is initialized, but there is no BlueNRG_Stack_Initialization_t variable in the example code.

I tried changing the ATT_MTU value in bluenrg1_gatt_server.h but it didn't work.

Any help would be greatly appreciated.

    This topic has been closed for replies.

    3 replies

    Winfred LU
    ST Employee
    October 27, 2020

    Take the DK 3.2.1 DTM project for example,

    BlueNRG_Stack_Initialization() is called in DTM_StackInit(), located at DTM_boot.c line 591.

    MTU can be modified in BlueNRG_Stack_Init_params, located at DTM_config.h line 160.

    DKopp.2
    Associate III
    April 12, 2023

    I have run into the same problem. I cannot find BlueNRG_Stack_Init_params. I'm using a X-NUCLEO-IDB05A2 evaluation kit with Nucleo-F303ZE STM evaluation board. Ive downloaded the software pack X-CUBE-BLE1 1.6.2.4. I dont have a config.h file where I have update parameters.

    Any Help will be appreciated.

    Winfred LU
    ST Employee
    April 21, 2023

    BlueNRG-MS does not support data length extension.

    Even though, i think it is possible to have a larger ATT MTU. The frames will be fragmented.

    ATT_MTU is define in bluenrg_gatt_server.h

    I didn't go deep into this. Not sure if modifying this is enough. But it would be a good start.