NRF node (sensor server) loses provisioning automatically

I'm using NCS V2.2.0 with the UBLOX module (nrf52832). I changed the example of the sensor server. UBLOX module's power turns off, then turns back on extetrnally(through a separate IC) for my application. The module was automatically unprovisioned after five hours of flawless operation.

I am not able to debug why this is happening, and am not sure how to prevent it.

Can someone help me figure out the problem or even bypass it?

Let me know if you need anything else.

Thanks

Parents
  • Hello,

    For how long does the separate IC turn your device off? And how often?

    When the device is unprovisioned, does the log from the nRF say anything when the application starts up again?

    Best regards,

    Edvin

  • Hey Edvin, Sorry for late reply

    The IC is supposed to turn the device on after every 30 secs. The power is cut off when BLE mesh model is done publishing data(using a GPIO to indicate that publishing is done).  The device got unprovisioned after a few hours(about 5 hours).

    The device was in the cycle of publishing and sleeping of 30 seconds for around 5 hours.

    Unfortunately, i am unable to get logs from device, as when we power the module from debugger, the power doesn't get cut off. The power cuts off only when module is powered through a battery. And that's why is it becoming difficult to debug this problem. Can you recommend me a way to get logs from the module?

  • Hey,

    The nRF52832 has 2 components attached to it, one is the temperature sensor and other is the power cutting ic(also some capacitors and resistors and one led). This is my complete circuit.

    I am using ADC read for temperature and battery reading.

    Sincerely

    Aditya Nerpagar

  • In that case, it is difficult to say what power consumption that is drawn by the nRF. You would need to run it on a separate device (perhaps a DK), and compare the current consumption with your two approaches.

    BR,

    Edvin

  • Hey, i checked it with a DK, Power consumption is very low, i can see 996uA current, I've set publish interval to be 50msecs.

  • That looks more correct. It looks like you still have an offset. 

    For current measurement purposes, try to disable the UART (typically used for logging). Add CONFIG_SERIAL=n in your prj.conf.

    This is what I see with a 50ms advertising interval:

    Best regards,

    Edvin

  • Hey Edvin,

    I am facing an issue in combining the advertiser and observer sample. I am able to advertise from one node and receive on other node.

    But when i add the observer to advertiser, the program stops working(I have added debug statements, these statements are not getting printed.....hence i think the program stops working until i press reset).

    After publishing, I start the observer( bt_le_scan_start()) and then i stop scanning(bt_le_scan_stop()) after few mili-seconds. Then the device goes into the normal sleep mode. When the device wakes up and starts this loop again, the program stops working(after publishing, while re-starting scanner)

    I am not sure what the issue is, as i am not getting any error message from scan start or stop.

    Do let me know if you need anything else.

    Thanks in advance

    Sincerely

    Aditya Nerpagar

Reply
  • Hey Edvin,

    I am facing an issue in combining the advertiser and observer sample. I am able to advertise from one node and receive on other node.

    But when i add the observer to advertiser, the program stops working(I have added debug statements, these statements are not getting printed.....hence i think the program stops working until i press reset).

    After publishing, I start the observer( bt_le_scan_start()) and then i stop scanning(bt_le_scan_stop()) after few mili-seconds. Then the device goes into the normal sleep mode. When the device wakes up and starts this loop again, the program stops working(after publishing, while re-starting scanner)

    I am not sure what the issue is, as i am not getting any error message from scan start or stop.

    Do let me know if you need anything else.

    Thanks in advance

    Sincerely

    Aditya Nerpagar

Children
Related