Skip to content
This repository has been archived by the owner on Mar 15, 2019. It is now read-only.

Cannot connect even though I can find SSIDs #18

Open
dolanmiu opened this issue Jul 22, 2016 · 3 comments
Open

Cannot connect even though I can find SSIDs #18

dolanmiu opened this issue Jul 22, 2016 · 3 comments

Comments

@dolanmiu
Copy link

dolanmiu commented Jul 22, 2016

I bought a CC3000 Wifi Shield from Sparkfun and attached it to my Arduino Uno board. The first thing I tested the board with was the board test example with SparkFun CC3000 - Board Test:

CC3000 initialization complete
Firmware version: 1.24
MAC address: 70:FF:76:01:30:1E
Finished board test

Then I scanned the networks with SparkFun CC3000 - Scan Test:

CC3000 initialization complete

Scanning APs. Waiting for scan to complete.

Access Points found:
SSID: VM48062-2G 
MAC address: 20:AA:4B:08:AA:CC 
RSSI: 58 
Security: WPA2

Finished scan test

I set the SSID and the password and tried to connect with SparkFun CC3000 - Connection Test

CC3000 initialization complete
Connecting to: VM48062-2G
Error: Could not connect to AP
Error: Could not obtain connection details
Error: Could not disconnect from network Finished connection test

My constants are:

// Constants
char ap_ssid[] = "VM48062-2G";                  // SSID of network
char ap_password[] = "kk****nc";          // Password of network
unsigned int ap_security = WLAN_SEC_WPA2; // Security of network

I definitely typed the SSID and Password correct and tried multiple combinations. Even tried turning off all security and connecting directly. I can see all the SSIDs but cannot connect!

@ShawnHymel
Copy link
Contributor

I find that many WiFi routers do not play nicely with the CC3000. A few things you can try:

  • If you have access to another WiFi network, try that to see if your CC3000 connects.
  • Try Adafruit's library (https://github.com/adafruit/Adafruit_CC3000_Library). It is more actively maintained and up to date. Note that you'll have to change a few pin numbers in their examples.
  • If those fail, I recommend contacting SparkFun's Tech Support, and they'll be able to more closely assist you

@dolanmiu
Copy link
Author

For me, the Adafruit's one doesn't work at all, it goes into an infinite while loop because it cannot connect! I changed the pins from 3 to 2, and 7 to 5 as mentioned before

I will try to contact SparkFun tech support

If that doesn't work, then I think I will need to switch over to the Raspberry Pi as I feel the Arduino is a little edgy with this kind of thing.
I read on forums where the Arduino Wifi only stays connected for 30mins to 1 hour and needs to reset before being able to connect again.

Raspberry Pi 3 has built in reliable Wifi

What do you think?

@ShawnHymel
Copy link
Contributor

Sorry to hear that. As I mentioned, the CC3000 just doesn't seem to want to work with some WiFi networks. The RPi is definitely a good bet. If you'd like to stick with Arduino, the ESP8266 (and variant boards, like The Thing) seem to work well and on more networks than the CC3000.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants