Not able to set model publication state after reboot in sensor server model

Hi, 

I am using nrf sdk for mesh v5.0.0 and we are building our application on top of sensor_server example. I am provisioning the nrf52832(which is acting as sensor server) using an ESP32, which is acting as a provisioner. And I am also able to set the model publication state after provisioning how many ever times I do it. But when I reboot the sensor server node, I am not able to set the model publication state even once and a timeout occurs in the provisioner side which sets the model publication state using a configuration client model. What am I missing here? Any help on this would be great. Thanks

Parents
  • Hi. 

    I am not able to set the model publication state even once and a timeout occurs in the provisioner side

    Do you have any more information about this timeout? Do you see an error code or something similar that could help locate the root cause?

    Br, 
    Joakim

  • The cause of the timeout was that the provisioner was not able to get acknowledgment back from the sensor server node on successfully setting the model publication state in time before the timeout timer expired in the provisioner side. 

    PS: the sensor server node and the provisioner are located at close proximity with each other.

  • Thanks.

    harid said:
    But why does it raise a concern for you that

    It doesn't raise a concern. I'm just trying to get a picture of your setup.

    You can read more about the Provisioner example in our SDK here.

    ________________

    So, we need to find out why you get a timeout when trying to provision the device.

    Have you tried provisioning the node another way?

    Could you try to provision the device using our smartphone application, nRF Mesh?

    That way we can try to narrow the problem down to either the provisioner or the provisionee.

    Thanks,
    Joakim

  • I am not facing any issue with the nrf mesh app!! With the nrf mesh app! Its working perfectly as expected! Even the model configuration. 
    I am facing an issue in periodic publishing of data. When I try to set the publish period in nrf devices as 5 seconds using ESP32 as my provisioner, the server node publishes data within 3 seconds. If I set it as 10 seconds, its publishing data in 7 seconds. But am not facing this issue when I try to do the same using nrf mesh app. Setting a publish period should be the same across all devices regardless of which microcontroller I am using right? 

    I am following the ble mesh documentation in order to set the model publication state. 

  • Hi. 

    Thanks. I think I was a little confused about what the real issue was. 

    harid said:
    But am not facing this issue when I try to do the same using nrf mesh app.

    Well. Then we can safely assume that the problem lies with the provisioner. 

    Could you add some more information about the provisioner you are using? Have you developed this using our Mesh SDK? If yes, I strongly suggest that you take a look at the provisioner example we have in the SDK and how it's done there. 

    harid said:
    Setting a publish period should be the same across all devices regardless of which microcontroller I am using right? 

    Yes, you should be able to provision and configure the device as long as your provisioner is following the specification. 

    Br, 
    Joakim

  • I misread the endianness in the mesh specification. I assumed it to be big endianness but it should have been in little endian. Now I am able to set the desired publish period

  • Glad to hear that you figured it out!

    Thanks for sharing the solution.

    Br,
    Joakim

Reply Children
No Data
Related