Arduino wifi shield cannot find IP address - arduino

Hi i'm trying to access my wifi shield's ip address on the browser but I keep getting Oops! Google Chrome could not connect to "IP ADDRESS".
Things I've done:
1.)Updated firmware on wifi shield using this link http://ohmyfarads.com/2013/11/11/updating-firmware-on-arduino-wifi-shield-for-dummies/
2.) uploaded the wifi WPA sketch from arduino site. My connection is WPA2
3.) I switched between arduino IDE 1.02 and 1.05 but no luck with either
4.) I'm using an arduino uno board that is attached to wifi shield
Help? Thanks!

This might be caused by incorrect router setup. Things you should look at:
1.You may have to first add device mac address to router list and assign it to the specific IP address you want to have.
2.The second option is that router may give his own address to this device by DHCP.
Remember that you have to choose nonroutable IP address for your shield. IP also has to be in your home address range. The simplest way to check that is:
1.Manu Start
2.Launch and type (or type in search) cmd
3.In console type "ipconfig"
Your local IP is in IPv4 .......... 192.168.x.x (most likely)
(in this case shield should have address like (192.168.x.y).
For more information about IP [look here][1]
You can also use Netscan tool to find out if shield is in your LAN.
I hope it will be helpful.

Related

how to get esp32 ip address ,which is being connected to local network

I need to know the IP address of ESP32 on the local network(without printing ip on serial monitor ). The idea is to do mDNS or UDP broadcast to send the IP to the android application. The app will then use that IP to do the communication. Is there someone who has already done it?
Maybe a bit late, but nevertheless:
The function called "tcpip_adapter_get_ip_info" can be used to obtain your interface IP address, netmask and gateway. You can pass in TCPIP_ADAPTERE_IF_STA to get the information you desire.
#include <tcpip_adapter.h>
tcpip_adapter_ip_info_t ipInfo;
char str[256];
tcpip_adapter_get_ip_info(TCPIP_ADAPTER_IF_STA, &ipInfo);
sprintf(str, "%x", ipInfo.ip.addr);
Note that it is also given in the event handler:
case SYSTEM_EVENT_STA_GOT_IP:
eprintf(eLOG_EVENTQ,"IP: %s\r\n",
ip4addr_ntoa(&event>event_info.got_ip.ip_info.ip));
If you're looking to identify your ESP32 easily on the local network, you can simply use the mDNS service.
This will make your ESP32 accessible via user friendly hostname.
Example: myesp32.local

Serial Ethernet Board for PIC16F887

I have microcontroller pic16f887 and serial ethernet board. When start browser i have problem - the message is this site can't be reached and i can show the content in browser. What may be the problem???? I use HTTPServerExample
http://www.mikroe.com/add-on-boards/communication/serial-ethernet/
Is the IP address configured correct? Wireshark is a very nice tool you can run on your PC to track the TCP/IP traffic and try to detect what goes wrong.

Dragion yun shield ip address

I just got an arduino yun shield by dragino.
I plugged into my computer usb with an Arduino uno following the instructions of the wiki and powering it from 5v > vin.
After a while the wifi network popped up, so I entered it.
Went to http://192.168.240.1/ where I found the website / settings panel and added a password and connected to my own wifi network.
Now I have no idea how to get back to that website, what ip adress to use, or even how to reset those settings so it makes its own wifi network.
I can connect to the Arduino yun through the Arduino program, but I got this error after just trying to do a blinking light. It does not show me the IP for it.
I have also tried connecting it to the wall outlet but it didn't create a network.
Is there anyway to completely reset the board?
It seems as if the shield was set to connect to your WiFi which in turn was set to get an IP address from your WiFi Router. If you want to find out what IP Address was assigned to the shield by the WiFi Router then you can go about it in two ways:
Log onto your WiFi Router and see if it contains a DHCP clients
list. If the shield was assigned an IP from that router then it will be in that list as well.
Use software like SoftPerfect Network Scanner (https://www.softperfect.com/products/networkscanner/) to scan for all hosts on your network. You can then see which IPs were assigned to the hosts. One of them will most probably be the shield.
According to the shield's user manual you can reset to factory settings:
5.7 How to reset the Yun Shield? Yun Shield has a toggle button which can be used for reset. When the system of Yun Shield is
running, user can press the toggle button to reset the device.  If
pressing the toggle button and release after 5 seconds , it will
reset the WiFi setting and other settings will be kept.  If
pressing the toggle button and release after 30 second s , it will
reset ALL the setting to factory default.
There are many options.
If you haven't changed the name of your Yun it's likely to have the default hostname: arduino.local, therefore, if the device has connected properly, you should be able to access it in the browser as http://arduino.local
This should work on OSX. On Windows you will need to use the Bonjour Service for this (which should come with iTunes for Windows). On Linux you can use avahi.
Another option is to ask your Yun what it's IP address is using an Arduino sketch and the USB cable. You can find some handy examples in Arduino > File > Examples > Bridge
I recommend checking out sketches like :
WiFiStatus
YunSerialTerminal
ShellCommands
Either of these should allow you to get see useful info in Serial Monitor.
For example, if you send the ifconfig command via Serial Monitor.
Also, as Blurry Sterk already mentioned, you have the WiFi reset button which can reset the Wifi settings to default. By the way, with the default settings, the WiFi Access Point network name is
Arduino Yun-XXXXXXXXXXXX", where the twelve 'X' are the MAC address of your Yún
(according to the Arduino docs).
write it down (or at least the first 3 parts). You can see devices on your network along with the mac addresses using the arp command.
On Windows:
arp -a
On OSX:
arp -a -x -l
You can find the Yun's mac address in the list, and the IP from there.

Arduino yun wifi network not appearing in my available network on windows 8

I'm connecting my Arduino Yún to my laptop via USB cable and as I read in Arduino documentation:
When you first power on the Yún, it will create a WiFi network called
ArduinoYun-XXXXXXXXXXXX. Connect your computer to this network.
But in my case nothing appears and I didn't found anything related to this on the web.
I'm running Windows 8.1 on my laptop.
Any idea how I can solve this problem?
It sounds as if something is wrong with the wifi configuration on the Yún. Has it previously been configured? Try resetting the wifi by pressing the "Wifi RST" button for more than five seconds (but less than 30).
More info here.
The question you asked is already answered by #mellbratt. You have successfully configured Yun and connected it to the network (configuration of WiFi by providing SSID and security key in web panel). The thing you have to do now, is to find what IP your Yun device is assigned on that network. You can use tools like Angry IP Scanner to scan the network and find your IP if you cannot access it from myusername.local. Using that IP you can access the web panel.

Setting Arduino Wi-Fi shield to a static IP address

What would be an example of how to set the Arduino to have a static IP address?
I am looking for a function similar to the statement below from the Ethernet Library.
Ethernet.begin(MACadr, IPaddr);
I using a Wi-Fi shield.
Sorry, this is not possible. The reference for this claim is here.
Basically, all the DHCP stuff (the code that assigns the dynamic IP address) is baked-in to the firmware for the WiFi shield, and this code is not open, so you cannot update it.
"WiFi.config() allows you to configure a static IP address as well as change the DNS, gateway, and subnet addresses on the WiFi shield."
You can read more about this here:
http://arduino.cc/en/Reference/WiFiConfig
What I did in my situation was to set a Reservation on my router for this MAC address. This makes the code simple. For some reason, the MAC address that my WiFi shield was supposed to use isn't what it actually uses. I was able to look at the DHCP table on the router and find the MAC address it was using and create a reservation and we are good to go...

Resources