2 posts / 0 new
Last post
GGQ_in
Offline
Last seen:5 months 2 weeks ago
加入:2019-07-23 04:41
I want to make the MTU bigger. What should I do?

Two DA14580 devices are master slave relationships,I want to change MTU to 53 or 153, should I use gattm_set_max_mtu() to change before the connection and negotiate after the connection is successfully?

I used them to try, but after sending the data, the device suddenly got stuck:

gattm_set_max_mtu(53);
tu = gattm_get_max_mtu();

gattc_set_mtu(connection_idx,tu);
get_mtu = gattc_get_mtu (connection_idx);
app_prf_enable(param->conhdl);

Device:
CYibin
Offline
Last seen:6 months 4 weeks ago
工作人员
加入:2017-12-14 02:48
Hi

Hi

What all user should do to change the value of mtu is just to modify the variable: max_mtu in user_config.h file, for example:

static const struct gapm_configuration user_gapm_conf = { /// Device Role: Central, Peripheral, Observer or Broadcaster .role = GAP_PERIPHERAL_SLV, /// Maximal MTU .max_mtu = 30,
Note that the mtu exchange operation should be supported by Master as well.