Re: payload 251 byte with beacon sample


Chettimada, Vinayak Kariappa <vinayak.kariappa.chettimada@...>
 

Hi Swapnil,

Legacy advertising channels do not support 251 byte PDUs.

The configuration CONFIG_BT_CTLR_DATA_LENGTH=y, you are setting is only valid for data connections. The beacon sample is only a broadcaster hence the Kconfig warns about the feature being disabled due to connection support dependency.

If you are looking for broadcasting 251 byte PDUs, LE advertising extensions feature is not yet supported in the Zephyr upstream master repository.

Regards,
Vinayak

From: users@lists.zephyrproject.org [mailto:users@lists.zephyrproject.org] On Behalf Of swapnil
Sent: Tuesday, April 24, 2018 12:33 PM
To: users@lists.zephyrproject.org
Subject: [Zephyr-users] payload 251 byte with beacon sample

HELLO, 
i am new to zephyr.  and trying to send a message with 251 byte payload. how can I set the controller.? 
 
i am using following configuration:

CONFIG_BT=y

CONFIG_BT_CTLR = y

CONFIG_BT_DEBUG_LOG=y

CONFIG_BT_DEVICE_NAME="Test beacon"

CONFIG_HAS_SEGGER_RTT=y

CONFIG_RTT_CONSOLE=y

CONFIG_UART_CONSOLE=n

CONFIG_BT_DEBUG_MONITOR=y

CONFIG_BT_DEBUG_HCI_CORE=y

CONFIG_BT_CTLR_ADV_EXT=y

CONFIG_BT_BROADCASTER=y

CONFIG_BT_DEBUG_HCI_DRIVER=y

CONFIG_BT_CTLR_DATA_LENGTH=y


CONFIG_BT_CTLR_DATA_LENGTH_MAX=251

CONFIG_BT_CTLR_TX_BUFFER_SIZE=251

CONFIG_BT_CONN = y

CONFIG_BT_LL_SW = y

BT_CTLR_DATA_LENGTH_MAX = y

CONFIG_BT_HCI = y

CONFIG_SOC_SERIES_NRF52X = y

CONFIG_BT_CTLR_ADVANCED_FEATURES = y

 

 


but it throws following warnings:

 

/home/swap/zephyr/samples/bluetooth/beacon/prj.conf:15: warning: attempt to assign the value " y" to the undefined symbol SOC_SERIES_NRF52X 
 
/home/swap/zephyr/samples/bluetooth/beacon/prj.conf:17: warning: attempt to assign the value " y" to the undefined symbol BT_CTLR_ADVANCED_FEATURES 
 
/home/swap/zephyr/samples/bluetooth/beacon/prj.conf:20: warning: attempt to assign the value " y" to the undefined symbol BT_CONN 
 
/home/swap/zephyr/samples/bluetooth/beacon/prj.conf:21: warning: attempt to assign the value " y" to the undefined symbol BT_LL_SW 
 
/home/swap/zephyr/samples/bluetooth/beacon/prj.conf:23: warning: attempt to assign the value " y" to the undefined symbol BT_HCI 
Parsing Kconfig tree in /home/swap/zephyr/Kconfig
Using /home/swap/zephyr/boards/arm/nrf52840_pca10056/nrf52840_pca10056_defconfig as base
Merging /home/swap/zephyr/samples/bluetooth/beacon/prj.conf
 
warning: BT_CTLR_DATA_LENGTH was assigned the value "y" but got the value "n" -- check dependencies
 
warning: BT_CTLR_DATA_LENGTH_MAX was assigned the value "251" but got the value "" -- check dependencies
 
what could be the correct configurations to enable 251 byte payload?
 
Thank you in advance,
 
regards,
swapnil

Join users@lists.zephyrproject.org to automatically receive all group messages.