Problems with CC3000 Wifi Shield

Adafruit Ethernet, Motor, Proto, Wave, Datalogger, GPS Shields - etc!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
garyvdg
 
Posts: 91
Joined: Thu Jul 25, 2013 12:37 pm

Problems with CC3000 Wifi Shield

Post by garyvdg »

I am attempting to use the Adafruit CC3000 wifi shield on an Arduino UNO but do not have complete success with using the example sketches that came with the CC3000 library -- using a fresh version of the library.

The setup seems to be able to connect to my home network OK, but does not appear to be able to go beyond that. For example, the output below is from running the buildtest sketch.
Hello, CC3000!

RX Buffer : 131 bytes
TX Buffer : 131 bytes
Free RAM: 1161

Initialising the CC3000 ...
Firmware V. : 1.24
MAC Address : 0x08 0x00 0x28 0x59 0x84 0xA0
Networks found: 3
================================================
SSID Name : SmartRG7912
RSSI : 83
Security Mode: 3


================================================

Deleting old connection profiles

Attempting to connect to SmartRG7912
Connected!
Request DHCP

IP Addr: 192.168.1.17
Netmask: 255.255.255.0
Gateway: 192.168.1.1
DHCPsrv: 192.168.1.1
DNSserv: 192.168.2.1
http://www.adafruit.com ->
After this, it just sits there with no further response to the serial monitor.

The second example output below is from using the InternetTime sketch.
Attempting to connect to SmartRG7912
Connected!
Request DHCP

IP Addr: 192.168.1.17
Netmask: 255.255.255.0
Gateway: 192.168.1.1
DHCPsrv: 192.168.1.1
DNSserv: 192.168.2.1
Locating time server...
Attempting connection...
connected!
Issuing request...
Awaiting response...error
Current UNIX time: 32 (seconds since 1/1/1970 UTC)
Locating time server...
Attempting connection...
connected!
Issuing request...
Awaiting response...error
Current UNIX time: 63 (seconds since 1/1/1970 UTC)
the printout that says, "Attempting connection..., connected!, Issuing request..." suggests that the device is making connection to the Internet, but then the same response error keeps popping up every 31 seconds.

Could it be that the services the CC300 is attempting to connect to services that no longer exist? Otherwise, what could be the cause of the inability to successfully run the examples?

Thanks.

User avatar
Franklin97355
 
Posts: 23939
Joined: Mon Apr 21, 2008 2:33 pm

Re: Problems with CC3000 Wifi Shield

Post by Franklin97355 »

Code: Select all

IP Addr: 192.168.1.17
Netmask: 255.255.255.0
Gateway: 192.168.1.1
DHCPsrv: 192.168.1.1
DNSserv: 192.168.2.1
For some reason the DNS server is on another part of the network and probably not accessable to the CC3000. Try assigning the network statically and see if that helps. https://learn.adafruit.com/adafruit-cc3000-wifi/faq#faq

User avatar
JohnzBallad
 
Posts: 3
Joined: Sun Nov 06, 2016 4:20 pm

Re: Problems with CC3000 Wifi Shield

Post by JohnzBallad »

I'm with the same issue.

Image

User avatar
Franklin97355
 
Posts: 23939
Joined: Mon Apr 21, 2008 2:33 pm

Re: Problems with CC3000 Wifi Shield

Post by Franklin97355 »

For some reason the DNS server is on another part of the network and probably not accessable to the CC3000. Try assigning the network statically and see if that helps. https://learn.adafruit.com/adafruit-cc3000-wifi/faq#faq

User avatar
JohnzBallad
 
Posts: 3
Joined: Sun Nov 06, 2016 4:20 pm

Re: Problems with CC3000 Wifi Shield

Post by JohnzBallad »

franklin97355 wrote:For some reason the DNS server is on another part of the network and probably not accessable to the CC3000. Try assigning the network statically and see if that helps. https://learn.adafruit.com/adafruit-cc3000-wifi/faq#faq
Doing that right now. At least trying. It seens that my router doesn't have this option.

User avatar
JohnzBallad
 
Posts: 3
Joined: Sun Nov 06, 2016 4:20 pm

Re: Problems with CC3000 Wifi Shield

Post by JohnzBallad »

Now that I'm connecting with a STATIC IP Address is working fine, well... most of it.
Seens like I can't get an answer from dweet.io, for example.

Using this kind of code to receive the answer.

Code: Select all

// Lendo a resposta do Host
  Serial.println(F("Reading answer..."));
  while (www.connected()) {
    Serial.println ("Esta connected.");
    while (www.available()) {
      Serial.println("Esta disponivel.");
      char c = www.read();
      Serial.print(c);
    } 
  }
  Serial.println(F(""));
But 'www' is not avaiable. Because of that, I can't get the answer.
Any ideas?

You can check my full code, right here: https://github.com/JohnzBallad/johnzbal ... owithdweet

User avatar
adafruit_support_mike
 
Posts: 67485
Joined: Thu Feb 11, 2010 2:51 pm

Re: Problems with CC3000 Wifi Shield

Post by adafruit_support_mike »

That would be a DNS failure. It's the system that converts human-readable names like 'www.adafruit.com' to IP addresses.

Check to make sure the CC3000 has an IP address for a DNS server, and make sure the server at that address really does DNS lookups.

User avatar
herge
 
Posts: 30
Joined: Sat Feb 11, 2017 1:52 pm

Re: Problems with CC3000 Wifi Shield

Post by herge »

Hi, I am new here and I am sorry if this is not the right place to ask question. If that's the case kindly show me where/who to ask?

I am trying to set up the Adafruit WiFi module CC3000 using Arduino UNO R3 + IDE
I practically follow the instruction step by step as outlined in this link: https://learn.adafruit.com/wifi-weather ... ino-cc3000
- I installed Install the Arduino IDE 1.6.12
- I connected DHT11 to the Arduino UNO : OK I can read temperature + humidity on Serial Monitor – - then I connected the CC3000 to Arduino UNO
- I updated the SSID and PASSWORD accordingly into “buildtest” sketch from ADAFRUIT_CC3000_LIBRARY examples,
- after flashing = OK, it starts and indicates in the Serial Monitor :

Hello, CC3000!

RX Buffer : 131 bytes
TX Buffer : 131 bytes
Free RAM: 1161

Initialising the CC3000 ...

…then it seems program stops... ???

"Started AP/SSID scan" is not coming out as it is written on page https://learn.adafruit.com/wifi-weather ... ity-sensor

Could you please let me know the causes ? I need your kindly help.

THANK you very much in advance

René

User avatar
Franklin97355
 
Posts: 23939
Joined: Mon Apr 21, 2008 2:33 pm

Re: Problems with CC3000 Wifi Shield

Post by Franklin97355 »

Try it without any other devices connected and post a picture of your connections between the module and the Uno. Pictures 800x600 work well.

User avatar
herge
 
Posts: 30
Joined: Sat Feb 11, 2017 1:52 pm

Re: Problems with CC3000 Wifi Shield

Post by herge »

Thank you for your quick reply
Here are the pictures

René
Attachments
20170212_190129_small.jpg
20170212_190129_small.jpg (316.41 KiB) Viewed 332 times

User avatar
herge
 
Posts: 30
Joined: Sat Feb 11, 2017 1:52 pm

Re: Problems with CC3000 Wifi Shield

Post by herge »

hello Franklin

could you please give me an answer ? or a link that can help me ?
Thanks a lot

User avatar
Franklin97355
 
Posts: 23939
Joined: Mon Apr 21, 2008 2:33 pm

Re: Problems with CC3000 Wifi Shield

Post by Franklin97355 »

I can't tell for sure from the photo angle but check out this Soldering Guide and try making your solders more uniform. Let me know if that helps. Also what are you trying to connect to (router make and model)

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino Shields from Adafruit”