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, Thanks for your suggestion. currently i am using k_msleep() between starting advertising and stopping it. 

    As you know in my project, i am following the same flow as below.

    The node wakes up, takes an ADC reading of temperature and battery value, stores it in the NVS. Then depending on the following conditions, the node will publish the reading. Below are the conditions for publishing data:

    1. If it hasn't published for 5 minutes.

    2. if there is significant change in the temperature or battery reading.

    Else the node doesn't publish and the power is cut off just after ADC reading.

    This same flow was implemented on ble mesh before, It took around 182ms and consumed 7mA

    Now, that this same flow is implemented on ble protocol, It takes 573ms and consumes 8.2mA

    From what you said, BLE was supposed to consume less current and time. Can you help in reducing this time and current.

    Let me know if you need anything else.

    Thanks in advance

    Aditya Nerpagar

  • Can you see what the measurement looks like if you exclude the first large spike? Please zoom in on the x axis so that it is cut out. I would just like to see what the graph looks like without the 300mA spike.

  • What exactly are you measuring the current on? Is it only the nRF52832, or do you power other external components as well, either directly from the nRF, or from the circuit that you are measuring on? I would expect an advertising application to look a bit different. It should have a lower base current. 

    Best regards,

    Edvin

  • 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

Reply Children
Related