I’ve a Problem connecting my Photon to Wifi/Cloud. I tried by the iPhone app, as well as the terminal.
My device was claimed to another account, but my classmate said, the already unclaimed it.
turn into listening mode (blue)
$ particle setup
result: photon is blinking green
productname: mac os x
productversion: 10.11.6
buildversion: 15g1004
Output:
setup is easy! let's get started...
it appears as though you are already logged in as xxxxx@xxxxx.com
> ? would you like to log in with a different account? no
> ! protip: hold the mode/setup button on your device until it blinks blue!
> ! protip: please make sure you are connected to the internet.
i have detected a photon connected via usb.
> ? would you like to continue with this one? yes
> ! the photon supports secure wi-fi setup. we'll try that first.
> ! protip: wireless setup of photons works like a wizard!
> ! protip: we will automagically change the wi-fi network to which your computer is connected.
> ! protip: you will lose your connection to the internet periodically.
> ? found "photon-c6km". would you like to perform setup on this one now? yes
> ! protip: you will need to know the password for your wi-fi network (if any) to proceed.
> ! protip: you can press ctrl + c to quit setup at any time.
obtained magical secure claim code.
hey! we successfully connected to photon-c6km
now to configure our precious photon-c6km
> ! protip: if you want to skip scanning>
> <or your network is configured as a
> ! protip: non-broadcast network>
> <please enter manual mode to proceed...
> ? would you like to manually enter your wi-fi network configuration? yes
> ? please enter the ssid of your wi-fi network: NameOfNetwork
> ? please select the security used by your wi-fi network: wpa2
> ? please enter your wi-fi network password: ****
here's what we're going to send to the photon:
wi-fi network: NameOfNetwork
security: wpa2
password: ****
> ? would you like to continue with the information shown above? yes
obtaining device information...
setting up device id 3xxxxxxx8
requesting public key from the device...
setting the magical cloud claim code...
telling the photon to apply your wi-fi configuration...
the photon will now attempt to connect to your wi-fi network...
configuration complete! you've just won the internet!
> ? would you like to return this computer to the wireless network you just configured? yes
> ! it doesn't look like your photon has made it to the cloud yet.
> ? what would you like to do? check again to see if the photon has connected
> ! it doesn't look like your photon has made it to the cloud yet.>
Sure not, particle serial wifi is meant to be executed in Listening Mode.
BTW, have you wiped all the previous WiFi credentials via holding SETUP 10+ seconds till rapid blue blinking?
Do you mean you have already tried a serial terminal program too (e.g. PuTTY, coolterm) with the w command?
You can copy this code to a text file, name it something.ino, put it in an empty folder, navigate to this folder in your terminal and run
particle compile photon something.ino
this should provide you with a .bin file to flash via
particle flash --usb whatever.bin
Or you could copy that code to Particle Build Web IDE compile it there and download the binary via the icon next to the app name.
Then flash as shown above.
OK, that’s a good sign that the device is functional.
I’d now try to claim it manually while connected to that hotspot.
For that you’d need to get the device ID from it (which you already should have from your previsous trials without success ;-))
But getting it via particle serial identify (in Listening blinking blue mode) should bring it up again.
Then take this device ID into this command (while breathing cyan)
particle device add <yourDeviceID>
after that you should also see the device in Build.
Once that’s done, we can try to track down the reason why your home WiFi won’t accept the device.