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

Mesh: problems during provisioning

Board: PCA10040

Chip: NRF52832

SD132

SDK 15.2.0

SDK Mesh 3.1

I have added the light switch server example into my own app. I tried to run the quick demo, with 1 provisioner, 1 client, 3 example servers, and my own app. What i see is that there's often one server node that keeps failing to be provisioned. This time it's the one with my own app, and i enabled provioning logging:

<t:      52691>, prov_bearer_adv.c,  400, PB-ADV: context at 0x20006D4C added to bearer
<t:     323524>, prov_bearer_adv.c,  849, PB-ADV: Link opened.
<t:     325598>, prov_bearer_adv.c,  798, Received ACK for [ppdu1]
<t:     460162>, prov_bearer_adv.c,  739, Received start segment while already in RX mode.
<t:     599240>, prov_bearer_adv.c,  400, PB-ADV: context at 0x20006D4C added to bearer
<t:     599244>, prov_bearer_adv.c,  904, PB-ADV: Link closed.
<t:     656437>, prov_bearer_adv.c,  849, PB-ADV: Link opened.
<t:     724685>, prov_bearer_adv.c,  798, Received ACK for [ppdu1]
<t:     798715>, prov_bearer_adv.c,  798, Received ACK for [ppdu3]
<t:     799752>, prov_bearer_adv.c,  400, PB-ADV: context at 0x20006D4C added to bearer
<t:     799756>, prov_bearer_adv.c,  904, PB-ADV: Link closed.
<t:     844036>, prov_bearer_adv.c,  849, PB-ADV: Link opened.
<t:     912585>, prov_bearer_adv.c,  798, Received ACK for [ppdu1]
<t:     981925>, prov_bearer_adv.c,  739, Received start segment while already in RX mode.
<t:    1054041>, prov_bearer_adv.c,  400, PB-ADV: context at 0x20006D4C added to bearer
<t:    1054045>, prov_bearer_adv.c,  904, PB-ADV: Link closed.

Maybe related, at some point the mesh crashed every time at: bearer_event_handler(), NRF_MESH_ASSERT(p_seq->event_pending);

After i erased the flash and started over, the crash was gone though..

*edit*

The crash is back, i have some more logs:

<t:      53670>, prov_bearer_adv.c,  400, PB-ADV: context at 0x20007514 added to bearer
<t:     438726>, prov_bearer_adv.c,  849, PB-ADV: Link opened.
<t:     441656>, prov_bearer_adv.c,  734, Got the next segment before an ACK for our own (1, 1)
<t:     505696>, prov_bearer_adv.c,  955, TX RETRY: [ppdu1]
<t:     507237>, prov_bearer_adv.c,  734, Got the next segment before an ACK for our own (1, 1)
<t:     571887>, prov_bearer_adv.c,  955, TX RETRY: [ppdu1]
<t:     572823>, prov_bearer_adv.c,  798, Received ACK for [ppdu1]
<t:     710024>, prov_bearer_adv.c,  739, Received start segment while already in RX mode.
<t:     777157>, prov_bearer_adv.c,  739, Received start segment while already in RX mode.
<t:     845014>, prov_bearer_adv.c,  739, Received start segment while already in RX mode.
<t:     850921>, prov_bearer_adv.c,  798, Received ACK for [ppdu3]
<t:     851357>, prov_bearer_adv.c,  400, PB-ADV: context at 0x20007514 added to bearer
<t:     851361>, prov_bearer_adv.c,  904, PB-ADV: Link closed.
<error> app: Fatal error

Related