Particle serial wifi getting stuck

I’m trying to run

particle serial wifi

to setup a new wifi network. I can’t seem to setup a new wifi network. I can see the new wifi network. But the command line gets stuck after I say yes(or no) at:

    $ particle serial wifi
    ? Should I scan for nearby Wi-Fi networks? Yes
    ? Select the Wi-Fi network with which you wish to connect your device: Emory
    ? Should I try to auto-detect the wireless security type? No

^C

Is anyone facing this issue?
I have a particle Photon and I’m working on OS X.

1 Like

I had the same problem. Followed the same steps you mentioned but instead of asking it to search for wifi, entered them manually

particle serial wifi
? Should I scan for nearby Wi-Fi networks? No
? SSID:
? Security Type: WPA2
? Wi-Fi Password:

And it worked!

I have the same problem. The suggested solution doesn’t work either, cos if I say no when it asks to scan the network. It gets stuck there.

I am also having the same problem. What is the SSID name you’re trying to connect to? I would think that spaces or maybe dashes might be an issue. Troubleshooting here…

I tried both those methods. Didn’t work. I’m not sure how to fix it. I ended up resetting the device and starting over by setting up a new device.

Keeps getting stuck when I hit “n” for scan nearby wifi?

or If I say “y”. I can see the networks and select one. But after I select one. it just hangs there.

Same problem here…

Can confirm, I’m also seeing the same issue.

Which version are you guys using?

Which version of what specifically? Node? The Particle package?

CLI version

I’m on particle-cli@1.8.22.

That’s strange. Let’s first try to get you up and running, and then figure out what’s wrong? You can configure your credentials using a serial program like Putty of coolterm. There are some docs about that over here. Alternatively, you could try this website from a wifi-enabled device.
Are you sure you’ve installed the proper drivers for the device?

I am also experiencing the same issue in Windows 10 Home version 1511.

I actually got it to work once I put my photon in listening mode. If it wasnt in listening mode then the commands would get stuck. To put it in listening mode, just simply hold the setup button until it starts flashing blue.

2 Likes

For particle serial wifi you’d indeed have to be in listening mode. As the name might suggest, it uses the Serial connection, which is what Listening mode will open.
That said, I’ve seen the above mentioned issues as well, while being in listening mode. In my experience there’s user code interfering, which can be circumvented if you go into Safe Mode prior to going into Listening mode. That’ll ensure no user firmware can mess with the progress and allow the device to connect in ‘peace’. That often worked just fine for me :smile:

1 Like

same problem, why wasn’t this addressed yet?

It was, by updating CLI and suggesting a way to deal with it, since there are more factors on the users side than on the device side.

What version node, npm, CLI are you running on what OS?

OS X el cap
Node 6

Latest version of cli

It worked after like a dozen attempts but photon still doesn’t connect to wifi

And you have ticked off all the other usual causes:

  • no 5GHz WiFi
  • no channel > 11
  • WEP network need special passkey treatment
  • no Enterprise network
  • no captive portal
  • not selected a non-present external antenna
  • not set for static IP
  • solid clean power supply
  • no hidden SSID
  • your device is in Listening Mode

Have you tried via coolterm?

3 Likes

I freshly downloaded the photonsetup.html
Power-cycle the photon. Put it in setup mode.
Then ran the
particle serial wi-fi
and entered SSID, securityType and WiFi password manually.
And that made it go through without getting stuck.