Saturday, February 21, 2015

Adafruit CC3000 has a bug getting DNS server

We identified a bug with Adafruit CC3000 WiFi module. The module does not update DNS server entry from DHCP server properly.

Following is the result with my home WiFi AP.
IP Addr: 192.168.25.23
Netmask: 255.255.255.0
Gateway: 192.168.25.1
DHCPsrv: 192.168.25.1
DNSserv: 192.168.1.1

Following is the result with my iPhone WiFi tethering
IP Addr: 172.20.10.11
Netmask: 255.255.255.240
Gateway: 172.20.10.1
DHCPsrv: 172.20.10.1
DNSserv: 192.168.1.1

Adafruit support team said there seems to be a glitch in the firmware to save DNS server entry for some time.

The following seems to be the workaround.

cc3000.setDHCP();
while (!cc3000.connectToAP(ssid, passwd, WLAN_SECURITY)) {
Serial.println(F("Connection Failed!"));
}

Link to the bug reporting post : https://forums.adafruit.com/viewtopic.php?f=22&t=52616

No comments:

Post a Comment