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

Mesh Stack throws NRF_MESH_EVT_SAR_FAILED when LPN replies to a publication set message via friend node

The stock LPN client for Mesh SDK v4.0.0 throws NRF_MESH_EVT_SAR_FAILED when replying to a publication set message via a friend node.

All code, reproduction data and log output is here: https://github.com/siriobalmelli/nrf_mesh_4.0.0_lpn_SAR

I also tried to implement the suggested answer from this thread:

https://devzone.nordicsemi.com/f/nordic-q-a/51486/mesh-sar-time-out 

... this did not work, see this commit:

https://github.com/siriobalmelli/nrf_mesh_4.0.0_lpn_SAR/commit/71b4037cf40857351eaf23773783b9314b43bda7

Thank you.

Parents Reply
  • Hi,

    It seems like your mobile is still connected to the LPN via GATT even after LPN has established the friendship (Note that, after the provisioning and configuration, the mobile remains connected to the node, unless you disconnect it explicitly). There is a known issue with LPN that when LPN is in friendship with Friend Node, a connected GATT device receives packets encrypted with the wrong encryption key. Therefore, the response to the Model Publication Set is not understood by the mobile app, and hence it fails.

    Try to configure the LPN node via Friend node. Disconnect the mobile app from LPN, and explicitly connect to Friend proxy node. Then try configuring the LPN node via Friend node. This should work.

Children
Related