nrf5340 data length extension

hello, i'm using nrf connect sdk version 2.3, and nrf5340dk board.

1. i want ble data length extension, so i am using this function after connected call back ,in central uart example project

but le_data_length_updated print that log:

it looks like data length not updated, so i have question for update data length

how can i set 251 byte ble data length

this is my prj.conf

central uart prj.conf

central uart child_image/rpc_host.conf

peripheral uart prj.conf

peripheral uart project no child_image/rpc_host.conf

Parents
  • Hello,

    From your console output it seems as though you manage to perform the MTU size update procedure successfully at least, but the logs indeed indicate that it has not been updated to the requested values.

    Could you show more of your application? Is the code you have provided here the only additions/modifications you've made to the default Central/peripheral UART example?

    Best regards,
    Karl

  • hello karl

    this is my applications.

    some codes and configs added, because my project is developing.

    2465.central_uart.zip 

    1325.peripheral_uart.zip

  • Hi,

    Do you use a nRF5340 DK as both a central and peripheral? If so, you need to configure both the application on the app core and the hci_rpmsg on the net core to support data length extension. From what I can see you have not doen this for the peripheral code. Other than that, the configurations you use seems good. You can refer to the configuration under 12. Configure the application to enable data length extension in Exercise 2 in the Bluetooth fundamentals course on the DevAcademy for more details (note that you need to click on "nRF5340 DK" to see the configurations relevant for that).

  • thanks, Einar i have a question for peripheral project.

    peripheral project do not have hci_rpmsg by default.

    if i add hci_rpmsg, how bind it to project?

  • Hi,

    Are you sure? If you are building for the application core(?) you will automatically get the hci_rpmsg as a child image for the network core. This is the Bluetooth controller, and without it, nothing related to Bluetooth or using the radio will work.

  • in central project child_image/rpc_host.conf exist. but peripheral project do not have child_image directory and rpc_host.conf.

Reply Children