Sometimes your Photon can get into an unexpected state and it won’t behave the way you expect. This can often be diagnosed by different LED states. Please read on for a description of those states, and what to do to resolve your issue!
We expect that many of these issues will be resolved in upcoming releases, but for now here his some info.
###Step One: Firmware Update
First try to update your Photon to our newest firmware:
If you do not have a Mac/Apple computer then you should not read the instructions below for a firmware upgrade. These are specifically for users who have MAC machines.
For Windows If you have a Windows machine, please follow these instructions.
Since your device is offline, I recommend using our dfu-util method. If you want more info on this, the local DFU-UTIL method is roughly explained here.
To upgrade your Photon, follow the instructions below:
-
Download the proper firmware binaries for the Photon linked below:
-
Install dfu-util on your Mac using:
brew install dfu-util
If you don’t have brew or homebrew installed, install it here: http://brew.sh/ -
Put photon into DFU MODE, instructions here.
-
Flash part1:
dfu-util -d 2b04:d006 -a 0 -s 0x8020000 -D system-part1-0.4.6-photon.bin
-
Flash part2, unit should still be blinking yellow:
dfu-util -d 2b04:d006 -a 0 -s 0x8060000:leave -D system-part2-0.4.6-photon.bin
-
Wait… Your device should eventually restart and start blinking blue, breathing cyan, or flashing green – all dependent on if you’ve setup the device before.
###Step Two: Public Key Reset
Sometimes, a firmware upgrade will not be enough to solve your Photon’s problem. If your are still having an issue, and particularly if your photon is flashing cyan and sometimes orange/red without connecting, It’s time to try resetting the public key.
-
If you haven’t ever claimed the device before:
You will need dfu-util. Install it, then download the this file.
Use the command line to navigate to that file.
Run the following command:
dfu-util -d 2b04:d006 -a 1 -s 2082 -D cloud_public.der
This should reset your public key. -
If you claimed the device previously:
You need the CLI. Once it is installed, run:
particle keys server cloud_public.der
particle keys new photon
particle keys load photon.der
particle keys send photon.pub.pem
This should reset your public key.