I’ve recently dug my Photon out of storage and I’ve been trying to get it back up and running. I have it connected to the internet, but I haven’t for the life of me been able to get it to connect to the cloud.
The basic error I am getting is I get the green led, then the blinking cyan led, then 1 orange or 1 red blink, and then it starts over. According to Status LED and Device Modes - Photon | Troubleshooting | Particle, this is caused by the keys being out of sync/corrupted. To fix this, I tried running both particle keys server; particle keys doctor, and when that didn’t work, I totally reset my device to scratch and updated the firmware with particle update; particle doctor (I accepted every option for doctor).
The device was successfully able to start connecting to the cloud and provided the key, so it’s not a firewall issue (plus you tested the hotspot).
However, it does not complete the key exchange process. From the cloud debug log, I noticed this:
0000015101 [app] INFO: Antenna: external
Do you have an external antenna connected to the SMA connector? If not, you will need to flash firmware by USB to restore the internal or automatic antenna mode, because once set to external it won’t ever switch back.Clearing credentials doesn’t reset the antenna setting.
Did you get any errors during particle keys doctor? In particular, a permissions error? Just making sure, though there aren’t key errors in the cloud side logs so I don’t think it’s actually a keys error.
It is set to external antenna on purpose. I had the provided particle antenna attached as part of my troubleshooting process. That didn’t make a difference, so I’ve switched it back to the internal antenna.
Here is the output of particle keys doctor:
$ particle keys doctor 3f002b000647373034353237
New Key Created!
Saved!
attempting to add a new public key for device 3f002b000647373034353237
submitting public key succeeded!
Okay! New keys in place, your device should restart.
Also, here is a new cloud-debug log after running that command and switching to the internal antenna.
Could you copy and paste the output from particle keys server? Error -240 is a protocol error. The weird part is there are no keys errors being logged on the server side. That usually only happens if the public server key or the server address on the device is wrong. That’s only reset by particle keys server. I know you said that you did it already, but the symptoms you’re experiencing are strange. The only other time it happens is with a captive portal, but since it still happens with your hotspot, that’s not the cause.