Corrupted Particle Keys

I came across this issue that can be fairly easily reproduced but need advice on how to migrate it. Anytime my Boron runs on batteries, the battery completely drains and the device shutsdown the particle keys get corrupted. After that I need to use the Particle doctor commends to put new keys on the device. With that said is there a way to power down the device once it reaches low battery levels but as soon as “grid power” is restored via the USB connection boot up the device.

Hi! I am amazed you can reproduce this- it’s an extremely rare known issue.

Luckily, there’s an easy fix. When System.batteryCharge() is less than 5% SoC put the device into shipping mode(follow the instructions here). It will turn back on when VIN or VUSB are applied.

3 Likes

I thought the shipping mode was only available on TrackerOne - this is perfect. Thank you!

Happy to help! Let me know if you run into any issues