sparkfun / SFE_CC3000_Library

Arduino library for the TI CC3000 WiFi module
Other
31 stars 11 forks source link

Cannot connect even though I can find SSIDs #18

Open dolanmiu opened 8 years ago

dolanmiu commented 8 years ago

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 commented 8 years ago

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

dolanmiu commented 8 years ago

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 commented 8 years ago

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.