# Particle does not attempt to connect to wifi

**URL:** <https://community.particle.io/t/particle-does-not-attempt-to-connect-to-wifi/13371>\
**Category:** Troubleshooting\
**Created:** [July 17, 2015, 4:31am UTC](https://community.particle.io/t/particle-does-not-attempt-to-connect-to-wifi/13371 "2015-07-17T04:31:51Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![jetuser](https://avatars.discourse-cdn.com/v4/letter/j/5daacb/32.png) [@jetuser](https://community.particle.io/u/jetuser)\
**Post date:** [July 17, 2015, 4:31am UTC](https://community.particle.io/t/particle-does-not-attempt-to-connect-to-wifi/13371/1 "2015-07-17T04:31:51Z")

</div>

I’ve tried to use the tinker app as well as setup over usb but both of these attempts fail. Once the wifi details are specified via the usb setup it connects me back to my old wifi- the particle never attempts to connect to wifi (the led never starts blinking green).

I did update the firmware to 0.4.3 but to no avail. Any other suggestions?

---

<div class="post-metadata">

**Author:** ![jetuser](https://avatars.discourse-cdn.com/v4/letter/j/5daacb/32.png) [@jetuser](https://community.particle.io/u/jetuser)\
**Post date:** [July 17, 2015, 4:47am UTC](https://community.particle.io/t/particle-does-not-attempt-to-connect-to-wifi/13371/2 "2015-07-17T04:47:28Z")

</div>

I was able to get wifi set up via particle serial wifi, but the light is now blinking cyan and never hits the slow blink stage.

Additionally particle serial mac or particle serial identify is giving me an error.

---

<div class="post-metadata">

**Author:** ![kennethlimcp](https://avatars.discourse-cdn.com/v4/letter/k/c0e974/32.png) [@kennethlimcp](https://community.particle.io/u/kennethlimcp)\
**Post date:** [July 17, 2015, 9:12am UTC](https://community.particle.io/t/particle-does-not-attempt-to-connect-to-wifi/13371/3 "2015-07-17T09:12:47Z")

</div>

Are you using the latest particle CLI?

---

<div class="post-metadata">

**Author:** ![jetuser](https://avatars.discourse-cdn.com/v4/letter/j/5daacb/32.png) [@jetuser](https://community.particle.io/u/jetuser)\
**Post date:** [July 17, 2015, 5:19pm UTC](https://community.particle.io/t/particle-does-not-attempt-to-connect-to-wifi/13371/4 "2015-07-17T17:19:36Z")

</div>

Fairly sure I updated at one point last night. I’ll double check to be sure.

---

<div class="post-metadata">

**Author:** ![jetuser](https://avatars.discourse-cdn.com/v4/letter/j/5daacb/32.png) [@jetuser](https://community.particle.io/u/jetuser)\
**Post date:** [July 18, 2015, 1:15am UTC](https://community.particle.io/t/particle-does-not-attempt-to-connect-to-wifi/13371/5 "2015-07-18T01:15:30Z")

</div>

Yeah particle-cli is up to date, no further luck getting the particle to work. It may be a DOA one?

---

<div class="post-metadata">

**Author:** ![kennethlimcp](https://avatars.discourse-cdn.com/v4/letter/k/c0e974/32.png) [@kennethlimcp](https://community.particle.io/u/kennethlimcp)\
**Post date:** [July 18, 2015, 1:48am UTC](https://community.particle.io/t/particle-does-not-attempt-to-connect-to-wifi/13371/6 "2015-07-18T01:48:01Z")

</div>

Are you able to see the **Photon** listed as a COM port in the device manager when it is in **listening mode?**

---

<div class="post-metadata">

**Author:** ![jetuser](https://avatars.discourse-cdn.com/v4/letter/j/5daacb/32.png) [@jetuser](https://community.particle.io/u/jetuser)\
**Post date:** [July 18, 2015, 2:13am UTC](https://community.particle.io/t/particle-does-not-attempt-to-connect-to-wifi/13371/7 "2015-07-18T02:13:57Z")

</div>

I’m running on a mac. particle serial list does show the photon mounted on /dev

---

<div class="post-metadata">

**Author:** ![jetuser](https://avatars.discourse-cdn.com/v4/letter/j/5daacb/32.png) [@jetuser](https://community.particle.io/u/jetuser)\
**Post date:** [July 18, 2015, 5:17am UTC](https://community.particle.io/t/particle-does-not-attempt-to-connect-to-wifi/13371/8 "2015-07-18T05:17:15Z")

</div>

Additionally i set up an unsecured wifi point in case that was causing issues, but that does not solve my issue.

---

<div class="post-metadata">

**Author:** ![kennethlimcp](https://avatars.discourse-cdn.com/v4/letter/k/c0e974/32.png) [@kennethlimcp](https://community.particle.io/u/kennethlimcp)\
**Post date:** [July 19, 2015, 1:45am UTC](https://community.particle.io/t/particle-does-not-attempt-to-connect-to-wifi/13371/9 "2015-07-19T01:45:00Z")

</div>

Why does `particle serial wifi` say? Make sure the Photon is in Listening mode.

---

<div class="post-metadata">

**Author:** ![jetuser](https://avatars.discourse-cdn.com/v4/letter/j/5daacb/32.png) [@jetuser](https://community.particle.io/u/jetuser)\
**Post date:** [July 19, 2015, 2:02am UTC](https://community.particle.io/t/particle-does-not-attempt-to-connect-to-wifi/13371/10 "2015-07-19T02:02:09Z")

</div>

> Ares:~ Trinity$ 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:   
> ? Should I try to auto-detect the wireless security type? Yes  
> ? Wi-Fi Password:   
> Attempting to configure Wi-Fi on /dev/cu.usbmodem1411  
> I said: w  
> Serial said: SSID:  
> I said:

> Serial said:   
> Security 0=unsecured, 1=WEP, 2=WPA, 3=WPA2:  
> I said: 3

> Serial said: 3  
> Password:  
> I said:

> Serial said:   
> Thanks! Wait while I save those credentials...

> Done! Your device should now restart.

After this i just get blinking cyan, no breathing. I also tried this on an unsecured network with the same deal.

---

<div class="post-metadata">

**Author:** ![kennethlimcp](https://avatars.discourse-cdn.com/v4/letter/k/c0e974/32.png) [@kennethlimcp](https://community.particle.io/u/kennethlimcp)\
**Post date:** [July 19, 2015, 2:05am UTC](https://community.particle.io/t/particle-does-not-attempt-to-connect-to-wifi/13371/11 "2015-07-19T02:05:09Z")

</div>

Are the SSID credentials correct when you checked?

@mdma should be able to guide you on this

---

<div class="post-metadata">

**Author:** ![jetuser](https://avatars.discourse-cdn.com/v4/letter/j/5daacb/32.png) [@jetuser](https://community.particle.io/u/jetuser)\
**Post date:** [July 19, 2015, 2:17am UTC](https://community.particle.io/t/particle-does-not-attempt-to-connect-to-wifi/13371/12 "2015-07-19T02:17:02Z")

</div>

I am 100% positive they were inputted correctly.

---

<div class="post-metadata">

**Author:** ![mdma](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/mdma/32/1924_2.png) [@mdma](https://community.particle.io/u/mdma)\
**Post date:** [July 19, 2015, 6:27am UTC](https://community.particle.io/t/particle-does-not-attempt-to-connect-to-wifi/13371/13 "2015-07-19T06:27:34Z")

</div>

Blinking cyan means it has connected to WiFi, but cannot connect to the cloud.

Please check that your router has DNS correctly configured (so that [device.spark.io](http://device.spark.io) can be resolved) and that port 5683 is open for outgoing traffic.

---

<div class="post-metadata">

**Author:** ![jetuser](https://avatars.discourse-cdn.com/v4/letter/j/5daacb/32.png) [@jetuser](https://community.particle.io/u/jetuser)\
**Post date:** [July 19, 2015, 7:23am UTC](https://community.particle.io/t/particle-does-not-attempt-to-connect-to-wifi/13371/14 "2015-07-19T07:23:50Z")

</div>

I did a nslookup and the [device.spark.io](http://device.spark.io) address did resolve. I also messed around in my router and set the cube as the default DMZ device but that didn’t seem to help it get past blinking cyan. Is there any sort of logging to see what the issue is?

---

<div class="post-metadata">

**Author:** ![mdma](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/mdma/32/1924_2.png) [@mdma](https://community.particle.io/u/mdma)\
**Post date:** [July 19, 2015, 7:32am UTC](https://community.particle.io/t/particle-does-not-attempt-to-connect-to-wifi/13371/15 "2015-07-19T07:32:11Z")

</div>

To get some logging, you’ll need to use the local build system and compile with [debugging enabled.](https://github.com/spark/firmware/blob/develop/docs/debugging.md) To be honest, I’m not sure that wil help much - there’s not a lot happening - it resolves the name [device.spark.io](http://device.spark.io), and then tries to connect with TCP/IP to the resolved IP address on port 5683 - once that happens the LED will start to blink cyan quickly.

---

<div class="post-metadata">

**Author:** ![jetuser](https://avatars.discourse-cdn.com/v4/letter/j/5daacb/32.png) [@jetuser](https://community.particle.io/u/jetuser)\
**Post date:** [July 19, 2015, 4:39pm UTC](https://community.particle.io/t/particle-does-not-attempt-to-connect-to-wifi/13371/16 "2015-07-19T16:39:53Z")

</div>

Looks like there’s a build error in the latest version of /latest that prevents the debug mode from working:

```
In file included from ../services/inc/debug.h:1:0,
                 from ./inc/socket_hal.h:34,
                 from src/photon/socket_hal.cpp:26:
src/photon/socket_hal.cpp: In function 'int read_packet_and_dispose(tcp_packet_t&, void*, int, wiced_tcp_socket_t*, int)':
src/photon/socket_hal.cpp:643:53: error: 'sd' was not declared in this scope
             DEBUG("Socket %d receive fail %d", (int)sd, int(result));
                                                     ^
../services/inc/service_debug.h:98:138: note: in definition of macro 'DEBUG'
 #define DEBUG(fmt, ...) do { if ( __LOG_LEVEL_TEST(DEBUG_LEVEL)) {log_print_(DEBUG_LEVEL,__LINE __,__ PRETTY_FUNCTION __,_FILE_PATH,fmt,##__ VA_ARGS__);}}while(0)
                                                                                                                                          ^
src/photon/socket_hal.cpp:657:56: error: 'sd' was not declared in this scope
         DEBUG("Socket %d receive bytes %d of %d", (int)sd, int(bytes_read), int(available));
                                                        ^
../services/inc/service_debug.h:98:138: note: in definition of macro 'DEBUG'
 #define DEBUG(fmt, ...) do { if ( __LOG_LEVEL_TEST(DEBUG_LEVEL)) {log_print_(DEBUG_LEVEL,__LINE __,__ PRETTY_FUNCTION __,_FILE_PATH,fmt,##__ VA_ARGS__);}}while(0)
                                                                                                                                          ^
make[2]: *** [../build/target/hal/platform-6-m/./src/photon/socket_hal.o] Error 1
make[1]: *** [hal] Error 2
make: *** [/Users/Trinity/GitHub/firmware/modules/photon/system-part1/makefile] Error 2

```

Beyond that. I’m not sure what else to say- DMZ mode should allow full access to the internet bypassing any firewall. I did recently switch routers when while I was waiting for my photon upgrade so I’m unsure why it would suddenly start having issues now. One other thing I did notice, the photon doesn’t seem to respond well to static allocation requests from the router. I tried to assign it a fixed ip via the router but it would not respect it and kept getting a different ip.

---

<div class="post-metadata">

**Author:** ![mdma](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/mdma/32/1924_2.png) [@mdma](https://community.particle.io/u/mdma)\
**Post date:** [July 19, 2015, 4:44pm UTC](https://community.particle.io/t/particle-does-not-attempt-to-connect-to-wifi/13371/17 "2015-07-19T16:44:01Z")

</div>

The debug build was fixed after the 0.4.3 release and is in the develop branch. But I really don’t think it will help you, there isn’t much output that can help troubleshoot.

---

<div class="post-metadata">

**Author:** ![mdma](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/mdma/32/1924_2.png) [@mdma](https://community.particle.io/u/mdma)\
**Post date:** [July 19, 2015, 4:47pm UTC](https://community.particle.io/t/particle-does-not-attempt-to-connect-to-wifi/13371/18 "2015-07-19T16:47:06Z")

</div>

> [@jetuser](#):
>
> One other thing I did notice, the photon doesn't seem to respond well to static allocation requests from the router. I tried to assign it a fixed ip via the router but it would not respect it and kept getting a different ip.

I don't believe that's technically possible that the photon can make up it's own IP and ignore the one allocated - that sounds pretty unlikely. 😄 DHCP is used either way if the router allocates the same IP or a varying IP, so I'm inclined to believe there is some issue with your router setup if your seeing the photon get a different IP to what your expecting.

---

<div class="post-metadata">

**Author:** ![jetuser](https://avatars.discourse-cdn.com/v4/letter/j/5daacb/32.png) [@jetuser](https://community.particle.io/u/jetuser)\
**Post date:** [July 19, 2015, 4:58pm UTC](https://community.particle.io/t/particle-does-not-attempt-to-connect-to-wifi/13371/19 "2015-07-19T16:58:57Z")

</div>

I’ll mess around more with the router to see if something funny is going on, but i doubt this since DMZ mode didn’t work on the cube.

On a possibly related note, does it mean anything when the cyan blinks rapidly followed by what i think is an orange led blink (it’s really quick) and does this a couple of times before it settles into blinking cyan?

---

<div class="post-metadata">

**Author:** ![mdma](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/mdma/32/1924_2.png) [@mdma](https://community.particle.io/u/mdma)\
**Post date:** [July 19, 2015, 5:05pm UTC](https://community.particle.io/t/particle-does-not-attempt-to-connect-to-wifi/13371/20 "2015-07-19T17:05:06Z")

</div>

When cyan blinks rapidly then it has a connection to the cloud. When it blinks orange, that means you may need to reflash keys to the device.

> [@Photon setup flashing cyan with a "quick red burst" (now orange burst) \[Solved\]](https://community.particle.io/t/photon-setup-flashing-cyan-with-a-quick-red-burst/12118/19):
>
> Sorry for the late follow up. Had a few people with this issue, so now I see the pattern and the solution. NB! only do this if the device has NEVER connected to the cloud before and has the intermittent red blink while fast flashing blue. If the device has previously connected to the cloud successfully then the problem lies elsewhere and these steps are not required. Using particle, first generate a new key: particle keys new Then put the device in DFU mode and flash this new key dfu-util …

and

> [@Photon setup flashing cyan with a "quick red burst" (now orange burst) \[Solved\]](https://community.particle.io/t/photon-setup-flashing-cyan-with-a-quick-red-burst/12118/23):
>
> @Hootie81, try to reflash the Particle cloud keys in DFU mode with: Download the server public key from [https://s3.amazonaws.com/spark-website/cloud\_public.der](https://s3.amazonaws.com/spark-website/cloud_public.der) dfu-util -d 2b04:d006 -a 1 -s 2082 -D cloud\_public.der

[Next page](https://community.particle.io/t/particle-does-not-attempt-to-connect-to-wifi/13371.md?page=2)
