Closed ArneJoris closed 3 years ago
@ArneJoris Please provide any Kconfig changes in your hci_usb sample's prj.conf file.
The KConfig for the central is:
CONFIG_UART_INTERRUPT_DRIVEN=y
CONFIG_SERIAL=y
CONFIG_TINYCRYPT=y
CONFIG_TINYCRYPT_SHA256=y
CONFIG_TINYCRYPT_AES=y
CONFIG_MCUBOOT_BOOTUTIL_LIB=y
CONFIG_SOC_SERIES_NRF52X=y
CONFIG_SOC_NRF52840_QIAA=y
CONFIG_NFCT_PINS_AS_GPIOS=y
CONFIG_ARM_MPU=y
CONFIG_HW_STACK_PROTECTION=y
CONFIG_CONSOLE=y
CONFIG_ENTROPY_NRF5_THR_THRESHOLD=4
CONFIG_ENTROPY_NRF5_ISR_THRESHOLD=12
CONFIG_USB=y
# CONFIG_BT_PERIPHERAL is not set
CONFIG_BT_BROADCASTER=y
CONFIG_BT_EXT_ADV=y
CONFIG_BT_EXT_ADV_MAX_ADV_SET=2
CONFIG_BT_BUF_EVT_RX_SIZE=68
CONFIG_BT_BUF_EVT_DISCARDABLE_SIZE=43
CONFIG_BT_BUF_CMD_TX_SIZE=65
CONFIG_BT_CTLR_TX_PWR_PLUS_8=y
# CONFIG_BT_CTLR_PRIVACY is not set
# CONFIG_BT_CTLR_PHY_2M is not set
CONFIG_BT_CTLR_ADV_EXT=y
CONFIG_BT_CTLR_SET_HOST_FEATURE=y
CONFIG_BT_CTLR_SETTINGS=y
CONFIG_BT_CTLR_VERSION_SETTINGS=y
CONFIG_BT_CTLR_ADVANCED_FEATURES=y
CONFIG_BT_CTLR_ADV_DATA_BUF_MAX=2
CONFIG_BT_CTRL_ADV_ADI_IN_SCAN_RSP=y
CONFIG_BT_CTLR_SCAN_AUX_SET=2
CONFIG_BT_CTLR_CONN_RSSI_EVENT=y
CONFIG_BT_CTLR_ADV_INDICATION=y
CONFIG_BT_CTLR_SCAN_REQ_RSSI=y
CONFIG_USB_DEVICE_BLUETOOTH=y
CONFIG_SETTINGS=y
I can work around the problem by setting CONFIG_BT_BUF_EVT_RX_SIZE=255.
HCI fragmentation of advertising reports is not implemented. This is something to be consider after chaining support is completed.
Closing since fragmentation of advertising reports is not supported. Please open an enhancement instead if you'd like that implemented.
Describe the bug When receiving an AUX_ADV_IND advertisement with 60 bytes of extended advertising data, zephyr issues only a single LE Extended Advertising Report meta event, with the first 42 bytes of the data and a data status of 'Incomplete, more data to come'.
No further LE Extended Advertising Report meta events are sent and the last 18 bytes of advertising data are never communicated to the host.
To Reproduce Both peripheral and central are using nRF52840 usb dongles (Board: nrf52840dongle_nrf52840) with zephyr 2.6 firmware, running the hci_usb sample.
Peripheral:
Central:
Expected behavior Bluetooth core specification v5.2 says in 7.7.65.13 LE Extended Advertising Report event (page 2402):
The expected behavior is for another LE Extended Advertising Report meta event to be issued with the remaining 18 bytes of advertising data and a data status of 'complete'.
Impact All advertising payload is needed to communicate the peripheral's state to the central; not having the last 18 bytes is a showstopper for my project.
Logs and console output
On central, run 'btmon -T' to see LE meta events:
A bluetooth sniffer sees the entire advertising payload:
Environment (please complete the following information):