nrf5340 in extended mode

hello Sirs

How can I put nrf5340-sdk in to extended mode to transfer 250 bytes of data over BLE radio?

the sample code I am using is Peripheral-uart example code.

Parents
  • Hello,

    I suggest you have a look at the sample found in:

    NCS\nrf\samples\bluetooth\throughput,

    And look at the configurations in the prj.conf file. 

    I am not sure exactly which ones that you need, but I guess you can start by trying to include this chunk:

    CONFIG_BT_BUF_ACL_RX_SIZE=251
    CONFIG_BT_GATT_CLIENT=y
    CONFIG_BT_ATT_PREPARE_COUNT=2
    CONFIG_BT_CONN_TX_MAX=10
    CONFIG_BT_L2CAP_TX_BUF_COUNT=10
    CONFIG_BT_L2CAP_TX_MTU=247
    CONFIG_BT_L2CAP_DYNAMIC_CHANNEL=y
    CONFIG_BT_CTLR_PHY_2M=y
    CONFIG_BT_CTLR_RX_BUFFERS=2
    CONFIG_BT_BUF_ACL_TX_COUNT=10
    CONFIG_BT_BUF_ACL_TX_SIZE=251
    CONFIG_BT_CTLR_DATA_LENGTH_MAX=251
    You don't necessarily need the 2M PHY, and the dynamic channel, and some of the others, but I am not sure if you want to send 250 bytes in order to increase throughput, or if you just want to send long packets.
    Best regards,
    Edvin
  • Hello again

    I added the above code in the prj.conf file but it had no effect.

    Actually I have changed CONFIG_BT_NUS_UART_BUFFER_SIZE from 32 to 256 in autoconf.h and I could send

    up to 62 bytes over BLE radio. Any further bytes won't be sent. In this situation fewer bytes can also be sent but 

    by adding only one byte to 62 you cant receive any byte. 

Reply Children
Related