Photon unable to connect to WiFi After loading first app

Hello,

Just getting started her but I seem to have forced my photon permanently offline.

I had successfully claimed the device using iPhone app and then loaded my first app from the web IDE. After that it showed the solid cyan/teal light but the dash showed the device as offline.

I ran the wifi troubleshooting
https://support.particle.io/hc/en-us/articles/1260800692169

$ ./particle serial wifi
? Should I scan for nearby Wi-Fi networks? Yes
? Uh oh, no networks found. Try again? Yes
? Uh oh, no networks found. Try again? Yes
? Uh oh, no networks found. Try again? Yes
? Uh oh, no networks found. Try again? Yes
? Uh oh, no networks found. Try again? Yes
? Uh oh, no networks found. Try again? No
? SSID JD
? Wi-Fi Password ****
Done! Your device should now restart.

i tried the wifi doctor

$ ./particle doctor
The Device Doctor will put your device back into a healthy state
It will:

  • Upgrade system firmware
  • Flash the default Tinker app
  • Reset the device and server keys
  • Clear the Wi-Fi settings

The Doctor will operate on your Photon connected over USB

PLEASE DISCONNECT ALL OTHER DEVICES BEFORE PROCEEDING

You'll be asked to put your device in DFU mode several times to reset different settings.

Updating system firmware

Put the device in DFU mode
Tap RESET/RST while holding MODE/SETUP until the device blinks yellow.
? Select Continue when ready Continue

Your device is ready for a system update.
This process should take about 30 seconds. Here it goes!

! System firmware update successfully completed!

Your device should now restart automatically.

Flashing the Device Doctor app

This app allows changing more settings on your device

Put the device in DFU mode
Tap RESET/RST while holding MODE/SETUP until the device blinks yellow.
? Select Continue when ready Continue

Select antenna

? Select the antenna to use to connect to Wi-Fi Internal
Serial err: Error: Error: Device or resource busy, cannot open /dev/ttyACM0
Serial problems, please reconnect the device.
The Doctor didn't complete successfully.

Please visit our community forums for help with this error:
https://community.particle.io/

After this I have a pulsing blue light

I even unclaimed the device and tried to re-claim it with app but it fails.

Any advice on next steps?
Thanks,
Devan

That never helps solve any issue.

That's not surprising as any solid colour usually indicates a deadlock.

Pulsing (or breathing) blue would indicate the WiFi module is on but not connecting/connected.
Blinking blue would suggest you cleared the WiFi credentials and the device expects you to provide a new set.

You can try put the device in Safe Mode and flash a different code.

If you show us which code you flashed before we may be able to see where the deadlock comes from.

1 Like

Thanks for the feedback. Still learning the tools I’m afraid. Is there a good way to share something from the web IDE?

It basically a mash of this:

and this:

Ideally I’d like to just restore the photon back to factory defaults. Is there a stock image I can download and program via USB to restart at claiming the device (I could not figure out how to download images from web IDE)?

Alternatively I suppose I should learn how to debug the device and it wasn’t really clear to me if the wifi logging shown in the link was visible over wifi?

You can use the SHARE THIS REVISION feature of Web IDE to create a snapshot of your project and gives you a link to post here
image

You can put the device in DFU Mode and use particle flash --usb tinker -y to flash the original project via CLI. While you're at it you can also run particle update -y to flash the latest default Device OS version.

It wouldn't be too practical to rely on WiFi when you want to debug WiFi problems. The logs will be sent via USB to an attached serial terminal program. particle serial monitor --follow would be a convenient way to view these logs.

But that would have been outlined here already :wink:

Thanks again for your help, here's the project I loaded...

particle flash --usb tinker -y didn't seem to be doing anything but it looks like this web tool was able to get me back:
https://docs.particle.io/tools/device-programming/device-restore-usb/

$ ./particle flash --usb tinker

Flash success!

I had followed the WiFi Troubleshooting but the serial monitor doesn't seem to have any output.

The good news is I seem to see the device back online after using the web tool linked above.

thanks again

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.