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

example peripheral_uart in nrf connect SDK v1.5.0 , i use nrf5340_DK test this example with a bluetooth APP in a phone ,the largest bytes of nrf5340_dk kit can send to app is 20 a time, how can i increase data number ?

in prj.conf, i  add below:

CONFIG_BT_USER_DATA_LEN_UPDATE=y
CONFIG_BT_CTLR_TX_BUFFER_SIZE=251
CONFIG_BT_CTLR_DATA_LENGTH_MAX=251

in att_internal.h , change # define  BT_ATT_DEFAULT_LE_MTU  23   into  # define  BT_ATT_DEFAULT_LE_MTU  43 

in gap.h , change # define  BT_GAP_DATA_LEN_DEFAULT  0x1b   into  # define  # define  BT_GAP_DATA_LEN_DEFAULT  0x2e

build/debug go ,have no result ,the large numble of bluetooth of nrf5340-dk can send to app of phone is 20 bytes  ,is there any has this experiment and have resolution?

Parents
  • Hi,

     

    in att_internal.h , change # define  BT_ATT_DEFAULT_LE_MTU  23   into  # define  BT_ATT_DEFAULT_LE_MTU  43 

    in gap.h , change # define  BT_GAP_DATA_LEN_DEFAULT  0x1b   into  # define  # define  BT_GAP_DATA_LEN_DEFAULT  0x2e

     You should not modify these files.

    Instead, create a hci_rpmsg.conf in a child_image folder, and set these configs:

    CONFIG_BT_CTLR_TX_BUFFER_SIZE=251
    CONFIG_BT_CTLR_DATA_LENGTH_MAX=251
    CONFIG_BT_RX_BUF_LEN=255
    
    CONFIG_BT_MAX_CONN=2

    E.g. as done for the throughput sample.

Reply
  • Hi,

     

    in att_internal.h , change # define  BT_ATT_DEFAULT_LE_MTU  23   into  # define  BT_ATT_DEFAULT_LE_MTU  43 

    in gap.h , change # define  BT_GAP_DATA_LEN_DEFAULT  0x1b   into  # define  # define  BT_GAP_DATA_LEN_DEFAULT  0x2e

     You should not modify these files.

    Instead, create a hci_rpmsg.conf in a child_image folder, and set these configs:

    CONFIG_BT_CTLR_TX_BUFFER_SIZE=251
    CONFIG_BT_CTLR_DATA_LENGTH_MAX=251
    CONFIG_BT_RX_BUF_LEN=255
    
    CONFIG_BT_MAX_CONN=2

    E.g. as done for the throughput sample.

Children
No Data
Related