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

in \connect SDK\v1.5.0\nrf\samples\bluetooth\peripheral_uart,data number is limited 20 bytes, more than 20bytes BLE will part data in two or more packs to send or receive

in \connect SDK\v1.5.0\nrf\samples\bluetooth\peripheral_uart,data number is limited 20 bytes, more than 20bytes BLE will part data in two or more packs to send or receive .how can i chang to data number to more bytes. for example , i want to send 200 bytes through COM  in one time and BLE receive 200bytes i one time , relatively HOW to send 200bytes data in one time  through BLE ,not separate 200bytes data in many pack to send

Parents
  • Einar Thorsrud:

    thank you very much!!!

    today i delete code below:

     struct bt_conn_le_data_len_param data_len_param;
    data_len_param.tx_max_len = 80; // byte
     data_len_param.tx_max_time = 3750; // us
    err = bt_conn_le_data_len_update(current_conn, &data_len_param);

    also can increase ble send data number .maybe only change two or one prj.conf , using  app that connected with nrf5340dk through ble .in app there is a configuration of MTU on menu or dialoge

Reply
  • Einar Thorsrud:

    thank you very much!!!

    today i delete code below:

     struct bt_conn_le_data_len_param data_len_param;
    data_len_param.tx_max_len = 80; // byte
     data_len_param.tx_max_time = 3750; // us
    err = bt_conn_le_data_len_update(current_conn, &data_len_param);

    also can increase ble send data number .maybe only change two or one prj.conf , using  app that connected with nrf5340dk through ble .in app there is a configuration of MTU on menu or dialoge

Children
Related