NRF Connect SDK v 1.9.1 ASSERTION FAIL hci_core LTE_BLE_gateway

I am developing for a Thingy91 and NRF9160 DK

NCS v 1.9.1

I am using the LTE_BLE_Gateway sample using the NRF9160 as the Host and talking over HCI to the NRF52840 as a BLE slave device

It was working well when i was scanning for beacons but then i introduced the ability to advertise as a peripheral and receive connections from other devices. and then i started to see

ASSERTION FAIL [buf->len >= sizeof(*hdr)] @ WEST_TOPDIR/zephyr/subsys/bluetooth/host/hci_core.c:437

Sometimes i can run it for 10 minutes without seeing this error other times it happens within a few seconds. It always seems to occur whenever i receive a connection..

After receiving the Connected Event

I have been looking throughout the forum and it seems like this is a common issue but none of the solutions help. they are also very old posts

Here is the trailing end end of the log from my device after running for about 10 minutes 

Saved Detection type: 2 mac: E1:BF:2C:03:B8:C6 counter: 26387 rssi: -78 time: 2022-04-03 22:19:38
Saved Detection type: 2 mac: C9:A2:96:5C:D1:B3 counter: 174745 rssi: -78 time: 2022-04-03 22:19:38
Saved Detection type: 2 mac: CD:B0:C7:C1:36:5A counter: 174743 rssi: -73 time: 2022-04-03 22:19:38
Saved Detection type: 2 mac: E7:BD:A6:8B:1B:89 counter: 174738 rssi: -65 time: 2022-04-03 22:19:38
Saved Detection type: 2 mac: FD:DD:81:EC:AE:3C counter: 174880 rssi: -58 time: 2022-04-03 22:19:38
Saved Detection type: 2 mac: DD:85:D3:60:E0:2E counter: 174735 rssi: -72 time: 2022-04-03 22:19:38
Saved Detection type: 2 mac: E5:8B:A7:A9:E3:EA counter: 124343 rssi: -58 time: 2022-04-03 22:19:39
Saved Detection type: 2 mac: C9:A2:96:5C:D1:B3 counter: 174745 rssi: -68 time: 2022-04-03 22:19:39
Saved Detection type: 2 mac: CD:B0:C7:C1:36:5A counter: 174743 rssi: -66 time: 2022-04-03 22:19:39
Saved Detection type: 2 mac: E7:BD:A6:8B:1B:89 counter: 174738 rssi: -61 time: 2022-04-03 22:19:39
Received Log: Device Connected
Received Log: Received write over preliminary char
Received Log: Received data over core service count: 60 legacy: 0
Failed to Parse Advert Counter
Saved Detection type: 1 mac: D0:C5:32:E0:95:0D counter: 0 rssi: -60 time: 2022-04-03 22:19:39
Received Log: Device Disconnected
Saved Detection type: 2 mac: FD:DD:81:EC:AE:3C counter: 174880 rssi: -59 time: 2022-04-03 22:19:39
Received Log: Device Connected
Received Log: ASSERTION FAIL [buf->len >= sizeof(*hdr)] @ WEST_TOPDIR/zephyr/subsys/bluetooth/host/hci_core.c:437

I have made a little console app that receives data over UART and saves to a local db and prints logs.

it is receiving data from Beacon "Detection type 2" and Central tags are also connecting "Detection Type 1"

However you can see in the log that i have received a lot of beacon reads fine and one of the Central tags are fine but then another connects and we get that error.

Parents
  • Hello, 

    It was working well when i was scanning for beacons but then i introduced the ability to advertise as a peripheral

    What exactly did you introduce before you saw this issue?

    From the output you have this line:

    Failed to Parse Advert Counter

    Are you able to share your project? Have you edited nrf\samples\nrf9160\lte_ble_gateway alone, or did you also edit nrf\samples\bluetooth\hci_lpuart? 

    Kind regards,
    Øyvind

Reply
  • Hello, 

    It was working well when i was scanning for beacons but then i introduced the ability to advertise as a peripheral

    What exactly did you introduce before you saw this issue?

    From the output you have this line:

    Failed to Parse Advert Counter

    Are you able to share your project? Have you edited nrf\samples\nrf9160\lte_ble_gateway alone, or did you also edit nrf\samples\bluetooth\hci_lpuart? 

    Kind regards,
    Øyvind

Children
No Data
Related