Need help to integrate LPN to Sensor code

Hi,

Mesh SDK: v5

Using nRF 528232

I am trying to implement a low power node feature on an existing PIR sensor code. I have added all the necessary functions and macros from the infocenter guide and the LPN example from the mesh SDK. The blockage I am facing is that the initiate_friendship() function should get called after provisioning is complete, but when I use the function mesh_stack_is_device_provisioned(), it only returns TRUE when provisioning is at 80%(before default TTL is sent in nrf Mesh app) and the initiation of friendship does not take place.

I want to know if there is any way to call initiate_friendship() function after the provision is 100% complete

Any help would be great.

Thanks,

Rohan

Parents
  • Hi,

    When including a new device into the network, the full process is usually two steps: First the provisioning (which includes the device into the network) and second the configuration of the device and its models.

    Is the issue here that the mesh_stack_is_device_provisioned() call returns true before the provisioning part of the process is finished? If so, this looks like a bug in the library that we should investigate further.

    Or is the issue that you also need to wait for some configuration, before it is safe to call initiate_friendship()? What is it then that stops friendships from being established? You can always set the needed TTL values in compile time configs instead, so it is not required to change them from the smart phone after provisioning.

    Regards,
    Terje

Reply
  • Hi,

    When including a new device into the network, the full process is usually two steps: First the provisioning (which includes the device into the network) and second the configuration of the device and its models.

    Is the issue here that the mesh_stack_is_device_provisioned() call returns true before the provisioning part of the process is finished? If so, this looks like a bug in the library that we should investigate further.

    Or is the issue that you also need to wait for some configuration, before it is safe to call initiate_friendship()? What is it then that stops friendships from being established? You can always set the needed TTL values in compile time configs instead, so it is not required to change them from the smart phone after provisioning.

    Regards,
    Terje

Children
No Data
Related