More than 20 bytes through BLE

Hi, I read others cases obout the problem to send more than 20 bytes trhough BLE and add on my prj.conf the next three lines:

#GATT_CLIENT needed for requesting ATT_MTU update
CONFIG_BT_GATT_CLIENT=y
#PHY update needed for updating PHY request
CONFIG_BT_USER_PHY_UPDATE=y
#For data length update
CONFIG_BT_USER_DATA_LEN_UPDATE=y

This is the entire prj.conf:

# Drivers selection

CONFIG_LOG=n
CONFIG_SERIAL=y
CONFIG_BOOT_BANNER=n

CONFIG_PINCTRL=y
CONFIG_GPIO=y
CONFIG_ADC=y
CONFIG_ADC_ASYNC=y
CONFIG_ADC_NRFX_SAADC=y


CONFIG_I2C=y
CONFIG_NRFX_TWIM1=y
CONFIG_FLASH=y
CONFIG_SPI=y
CONFIG_SOC_NRF52832_ALLOW_SPIM_DESPITE_PAN_58=y
CONFIG_NRFX_SPIM0=y
CONFIG_NRFX_SPIM2=y

CONFIG_FLASH_PAGE_LAYOUT=y
CONFIG_MPU_ALLOW_FLASH_WRITE=y
CONFIG_SOC_FLASH_NRF_EMULATE_ONE_BYTE_WRITE_ACCESS=y

CONFIG_REBOOT=y


# Stacks and heaps   
# This configuration reserve 20K of RAM to HEAP, this project only has 64K 
# and all the code is the 98% of the RAM so we can not declare so much heap
CONFIG_HEAP_MEM_POOL_SIZE= 8000
#CONFIG_HEAP_MEM_POOL_SIZE= 6144
CONFIG_MAIN_STACK_SIZE=1024
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=4096
#CONFIG_NET_TX_STACK_SIZE=512
#ONFIG_NET_RX_STACK_SIZE=512
# CONFIG_NET_MGMT_EVENT_STACK_SIZE=2048

# BLE configuration
CONFIG_BT=y
CONFIG_SETTINGS=y
CONFIG_BT_PERIPHERAL=y
CONFIG_BT_GATT_DYNAMIC_DB=y
CONFIG_BT_DEVICE_NAME="BLE Device"
#GATT_CLIENT needed for requesting ATT_MTU update
CONFIG_BT_GATT_CLIENT=y
#PHY update needed for updating PHY request
CONFIG_BT_USER_PHY_UPDATE=y
#For data length update
CONFIG_BT_USER_DATA_LEN_UPDATE=y
CONFIG_BT_L2CAP_TX_MTU=247
CONFIG_BT_BUF_ACL_TX_SIZE=251
CONFIG_BT_BUF_ACL_RX_SIZE=251

# Debug configuration
CONFIG_DEBUG=y
CONFIG_DEBUG_OPTIMIZATIONS=n
CONFIG_DEBUG_THREAD_INFO=y

Butr when I try to send more than 20 bytes doesn´t receibe anithing.

Could any say me that other parameters could I chech?

I use nRf52832 SDK: 2.5.0

Thanks in advance.

Regards

Parents Reply Children
No Data
Related