Core won't connect to wifi anymore

I used the local cloud feature for a while without any problems and I’m now trying to use the particle cloud again (api.particle.io). So I reset to factory settings and re-applied the CC3000 and tinker firmeware (from particle-cli).

The core won’t connect to my local wifi anymore – it continues blinking green even after giving it valid credentials.

I’ve already reset the network settings (rapid blue flash), reset to factory and tried every combination of firmware (cc3000, deep update, tinker, voodoo).

Perhaps I have to upload the particle cloud’s public key? But I don’t know if that will interfere with connecting to a router.

EDIT: Maybe worth mentioning, the spark server is no more, and the IP previously programmed in the core is no longer available.

Use particle-cli and run particle flash --usb cc3000

Whoops, sorry I did use particle-cli to do all that I listed.

I’ve done some experiments tweaking the firmware (https://github.com/spark/firmware) and it looks like the HCI_EVNT_WLAN_UNSOL_DHCP never happens.

Instead, it is always HCI_EVNT_WLAN_UNSOL_DISCONNECT in the callback function WLAN_Async_Callback()

Here’s the state dump at the start of all my WLAN loops:

AsyncEvent 0x8002
WLAN_MANUAL_CONNECT=0
WLAN_DELETE_PROFILES=0
WLAN_SMART_CONFIG_START=0
WLAN_SMART_CONFIG_STOP=0
WLAN_SMART_CONFIG_FINISHED=1
WLAN_SERIAL_CONFIG_DONE=1
WLAN_CONNECTED=0
WLAN_DHCP=0
WLAN_CAN_SHUTDOWN=0
SPARK_WLAN_RESET=0
SPARK_WLAN_SLEEP=0
SPARK_WLAN_STARTED=1
SPARK_CLOUD_CONNECT=1
SPARK_CLOUD_SOCKETED=0
SPARK_CLOUD_CONNECTED=0
SPARK_FLASH_UPDATE=0
SPARK_LED_FADE=0

Any idea on why this happens, or rather why HCI_EVNT_WLAN_UNSOL_DHCP doesn’t happen?

I would check your router logs and see if you are getting a DHCP address for the Core. I would bet that you are not.

Can you try a different router or a phone hot-spot?

Thanks for the quick response!

Just tried it with another router with unsecured wireless and my hotspot, still the same results :fearful:

I tried to connect with WLAN_MANUAL_CONNECT set to 1, but wlan_connect() returns -2