One day my weather station Photon went offline. Bringing it inside and connecting it to USB power, I found that no lights were on. Pressing Reset just turns on the D7 blue LED dim. Pressing Setup does nothing. I unplugged it, held down Reset, powered up again and this time was able to get to DFU mode (quick flashing yellow).
C:\Program Files\dfu-util>particle update -v
Updating photon 390024001447353136383631 to latest Device OS version
The access token was not found
UnauthorizedError: The access token was not found
at _checkToken (C:\snapshot\particle-cli\src\cmd\api.js:302:26)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async ApiCache.getDeviceOsVersions (C:\snapshot\particle-cli\src\lib\api-cache.js:12:28)
at async Object.downloadDeviceOsVersionBinaries (C:\snapshot\particle-cli\src\lib\device-os-version-util.js:22:27)
at async UpdateCommand.updateDevice (C:\snapshot\particle-cli\src\cmd\update.js:35:28)
at async CLI.runCommand (C:\snapshot\particle-cli\src\app\cli.js:148:4)
at async CLI.run (C:\snapshot\particle-cli\src\app\cli.js:177:11)
A web search for that error turned up nothing. If I do particle token list, I do get some tokens back. Not sure what other information I should provide.
Ah ha. We got further this time, but there's still something it's not happy about:
C:\Program Files\dfu-util>particle login
? Please enter your email address mxxxx@xxxxxx.com
? Please enter your password [hidden]
> Successfully completed login!
C:\Program Files\dfu-util>particle update -v
Updating photon 390........631 to latest Device OS version
Downloaded Device OS latest
[███████████████████░░░░░░] 76% | Flash failed.
Unable to reconnect to the device. Try again or run particle update to repair the device
Error: Unable to reconnect to the device. Try again or run particle update to repair the device
at Object.reopenInNormalMode (C:\snapshot\particle-cli\src\cmd\usb-util.js:325:8)
at runNextTicks (node:internal/process/task_queues:61:5)
at processTimers (node:internal/timers:499:9)
at async prepareDeviceForFlash (C:\snapshot\particle-cli\src\lib\flash-helper.js:97:14)
at async flashFiles (C:\snapshot\particle-cli\src\lib\flash-helper.js:25:13)
at async UpdateCommand.updateDevice (C:\snapshot\particle-cli\src\cmd\update.js:45:3)
at async CLI.runCommand (C:\snapshot\particle-cli\src\app\cli.js:148:4)
at async CLI.run (C:\snapshot\particle-cli\src\app\cli.js:177:11)
This is accompanied by three red flashes followed by one short D7 blue flash, repeating. As soon as it hit 76% I got the "USB disconnected" WIndows ding. I followed their "try it again" recommandation and got the same result. Doing particle update without the "-v" also fails the same way.
Well we're making negative progress here. Although the Photon is flashing yellow, now it won't connect to USB at all. I tried it on two different PC's. Barring any further suggestions, I'm afraid this one is done. Is there a drop-in replacement for the Photon? I really don't feel like having to rewrite my weather code for a different device.
It does seem likely that it's a hardware failure. There is no drop-in replacement for the Photon 1 unfortunately. Though they're no longer sold in the Particle store or large distributors, you may be able to find one in old stock or used still.
Hey, sad to hear the device seems lost.
There's this migration guide to a Photon 2 in case you do not find a photon:
I have spare photons around and I was about to offer them (just for the shipping), but I do not think is economically the best option. There are few in Ebay, at double the Photon 2's price.
I case you feel ok to try a Photon 2 and hit any issues, post in the community and we will be able to help sort things out.
Thanks for the suggestions. The Photon 2 would be nice with all its extra capabilities but it's not going to work with my weather station without changing a bunch of sensors. It's more work than I want to get into. I managed to score two NOS Photons on Ebay for $35. Ah well, I tried.