我无法连接到我的Arduino WiFi shield服务器,但我可以ping它。

3
我可以成功地 ping 通 Arduino WiFi shield 的 IP,但是当我尝试通过 Chrome 连接它时,会显示 "Oops! Google Chrome 无法连接到 [IP here]"。
以下是我的详细信息:
- 我正在使用官方 Arduino 网站上的以下示例 - http://arduino.cc/en/Tutorial/WiFiWebServer - 我刚刚按照这个教程更新了固件 - http://www.dfrobot.com/community/how-to-upgrade-arduino-wifi-shield-firmware-on-windows.html - 我的网络采用 WPA2 安全协议。 - 我的 Arduino IDE 目前是最新版本(1.0.5)
3个回答

4

浏览了许多天的互联网后,我终于找到了解决方案(位于此处):

Arduino IDE版本应该从1.0.5降级到1.0.2。

卸载您的较新版本并重新安装1.0.2版本,如果必要,请重新安装设备驱动程序,并使用较旧版本的Arduino IDE上传代码。

我希望这能帮助其他遇到同样问题的人。


是的。非常感谢。真是太痛苦了。 - Aaron Smentkowski
有没有深入的教程,介绍如何更新Wifishield上的固件?Arduino网站上的那个教程很难理解。 - user1424508
嗨,@user1424508,请尝试使用此链接:http://www.dfrobot.com/community/how-to-upgrade-arduino-wifi-shield-firmware-on-windows.html - LKB
实际上,这个教程对我来说是最好的(我正在使用Mac)http://ohmyfarads.com/2013/11/11/updating-firmware-on-arduino-wifi-shield-for-dummies/comment-page-1/#comment-23 - user1424508
我和你LBran一样遇到了同样的问题,我尝试将版本降级到1.02,但对我来说并没有起作用。我的问题在stackoverflow上:http://stackoverflow.com/questions/22825835/arduino-wifi-shield-cannot-find-ip-address - user1424508

0

你好,我遇到了同样的问题,不得不升级我的WiFi Shield,并从Arduino下载最新版本(1.0.6),之后你会发现你可以在局域网内访问你的WiFi Shield。

这个例子使用了静态IP,可能会有用。

祝好

#include <SPI.h>
#include <WiFi.h>

// the IP address for the shield:
IPAddress ip(192, 168, 1, 200);    

char ssid[] = "xxxxxxxx";    // your network SSID (name) 
char pass[] = "xxxxxxxx";    // your network password (use for WPA, or use as key for WEP)

int status = WL_IDLE_STATUS;

void setup()
{  
  // Initialize serial and wait for port to open:
  Serial.begin(9600); 
  while (!Serial) {
    ; // wait for serial port to connect. Needed for Leonardo only
  }

  // check for the presence of the shield:
  if (WiFi.status() == WL_NO_SHIELD) {
    Serial.println("WiFi shield not present"); 
    while(true);  // don't continue
  } 

  WiFi.config(ip);

  // attempt to connect to Wifi network:
  while ( status != WL_CONNECTED) { 
    Serial.print("Attempting to connect to SSID: ");
    Serial.println(ssid);
    // Connect to WPA/WPA2 network. Change this line if using open or WEP network:    
    status = WiFi.begin(ssid, pass);

    // wait 10 seconds for connection:
    delay(10000);
  }

  // print your WiFi shield's IP address:
  Serial.print("IP Address: ");
  Serial.println(WiFi.localIP()); 
}

void loop () {}

0

你必须从这里https://github.com/arduino/wifishield下载最新的Wifi库,并替换你现有的库……在我的情况下,在更新了Arduino 1.0.5固件后,一切运行正常。


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接