My Photon was working fine and still communicates fine over USB, but Wifi is not working. If the device is put into Safe Mode the LED flashes 3 x cyan, then 5 x fast cyan, then 1 brief red, then back to flashing cyan again. It repeats this loop sequence approx every 10-12 seconds. No breathing magenta.
To try to fix the problem, I erased the Wifi credentials, then used my Android phone to get things going again. This improved things from flashing blue to flashing cyan (as above).
Firmware on the device is 0.6.1
The application I’m running on the Photon has the Wifi switched off using:
Part of the code should allow me to switch the Wifi on again when “back at base” - this code worked last week, but not this week! I have not changed any code.
The flash of red in Safe Mode suggests something serious. Any ideas?
I did all that - both flash and keys were successful. Still the same problem - flashing cyan interrupted every 10-12 seconds with a flash of red. Of course, my code is no longer running! I have always updated my code through Wifi - sorry to be a plonker, but how do I flash my code to the Photon through USB?
It looks to me as if something hardware has failed with Wifi, but in this particular instance I can live without Wifi as long as I can get my code on to the Photon through USB. Help greatly appreciated!
@gotopcs, you CAN use the web IDE to download the bin file which you can flash via USB. Simply click on the “cloud” icon on the RHS of the app name to download the bin.
Flashed my code via USB. It ran OK.
Re-flashed tinker to see if Wifi would work again. No. Still flashing cyan with a single red flash every 10 seconds. Do I have a hardware fault?
Flashed my code again (which is not dependent on Wifi) and that still runs OK. It is used to log voltage data with the result stored in an external EEPROM. After returning to base, the data is downloaded to the PC via a USB link.
I’d still like the Wifi to connect to the cloud though! I have a second Photon (much older) which connects through my router to the cloud no bother at all. It just sits there breathing cyan like it’s supposed to, so no troubles with the router.
Went into DFU mode (blinking yellow) after connecting via USB. Typed in the first command and received:
Found DFU device 2b04:d006
Found DFU device 2b04:d006
Error creating keys… Error: Command failed: openssl genrsa -out 360043000747353138383138_rsa_new.pem 1024
’openssl’ is not recognized as an internal or external command, operable program or batch file.
Make sure your device is in DFU mode (blinking yellow), and that your computer is online.
Computer is definitely online, Particle is not as Wifi module? has failed. How to get a fix? What next? Service ticket?
The second (server) command seemed to execute successfully ending with:
Okay! New keys in place, your device will not restart.
So, pressed reset and tried to enter safe mode. Same problem - flashing cyan with occasional flashes of red.
Thanks for the help so far.
Re-installed WindowsCLI - an error occurred and openssl path was not set up. Error flashed past so no idea what it was. Anyhow, I edited the path manually and openssl now runs in the doctor command successfully. Ran the server command as well. Also successful. Tried to enter safe mode. Several flashes of cyan then breathing magenta.
I read the FAQ on breathing cyan. Re-installed the firmware successfully. Tried safe mode again - flashing cyan then breathing magenta.
Tried again - now flashing cyan continuously with an occasional red flash
But it wasn’t consistent with breathing magenta. And now it won’t do it at all. Is there a simple way I can go back to “factory fresh” and build from there?
When the photon reboots after “update” and flashing tinker, I’d expect it to flash green then cyan, then breath cyan. It does not. It flashes green three times, then cyan 3 times, the a couple of very fast cyan followed by a red. It does the cyan-red sequence many times, the number of medium speed cyan flashes gradually increases to about 20 before the fast flashes and the red flash, then the cycle goes round again.
Back to basics. I put the Photon into listening mode, then used my phone to set it up. This seemed to be successful according to the phone app. I pressed reset - white, then green flashes, then cyan flashes followed by red, same sequence as above.
I understand the fast cyan flashes are the cloud handshake which presumably is failing. Have I lost the access key perhaps?
Well, dang my dingleberries! As soon as I posted the last cry for help, I went through the particle keys server, then particle keys doctor sequence (the reverse of what you’d said earlier in this thread) and glory be! Breathing cyan. Yippee! Thanks for your help and patience - I am now up and running again.