Dragion yun shield ip address - arduino

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.

Related

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.

Arduino Nano - "avrdude: ser_open():system can't open device "\\.\COM1": the system cannot find the file specified"

I am working with an Arduino Nano.
avrdude: ser_open(): system can't open device "\.\COM1": the system cannot find the file specified
This error appears just after uploading the program on the Arduino board. I have checked my port in my device manager. It says COM11 and in the Arduino software as well COM11 is selected.
I have the Arduino Nano board selected in my Arduino software. Also, there mustn't be any specification error while downloading the software file. Is there anything that I am missing?
This is how I solved the problem. In Device Manager you will find the Arduino COM port.
Go to the Advanced properties of the port
Set the COM port number to COM1.
Then replug the USB.
Instead of changing the COM port in Device manager, if you're using the Arduino software, I had to set the port in Tools > Port menu.
My issue was due to what physical USB female port I plugged the Arduino cable into on my D-Link DUB-H7 (USB hub) on Windows 10. I had my Arduino plugged into one of the two ports way on the right (in the image below). The USB cable fit, and it powers the Arduino fine, but the Arduino wasn't seeing the port for some reason.
Windows does not recognize these two ports. Any of the other ports are fair game. In my case, the Tools > Port menu was grayed out. In this scenario, the "Ports" section in the object explorer was hidden. So to show the hidden devices, I chose View > show hidden. COM1 was what showed up originally. When I changed it to COM3, it didn't work.
There are many places where the COM port can be configured.
Windows > Control Panel > Device Manager > Ports > right click Arduino > Properties > Port Settings > Advanced > COM Port Number: [choose port]
Windows > Start Menu > Arduino > Tools > Ports > [choose port]
Windows > Start Menu > Arduino > File > Preferences > # very bottom, there is a label named "More preferences can be edited directly in the file".
C:\Users{user name}\AppData\Local\Arduino15\preferences.txt
target_package = arduino
target_platform = avr
board = uno
software=ARDUINO
# Warn when data segment uses greater than this percentage
build.warn_data_percentage = 75
programmer = arduino:avrispmkii
upload.using = bootloader
upload.verify = true
serial.port=COM3
serial.databits=8
serial.stopbits=1
serial.parity=N
serial.debug_rate=9600
# I18 Preferences
# default chosen language (none for none)
editor.languages.current =
The user preferences.txt overrides this one:
C:\Users{user name}\Desktop\avrdude.conf
... search for "com" ... "com1" is the default
I was having this same issue this morning. When I checked my Device Manager, it showed COM4 properly, and when I checked in the Arduino IDE COM4 just wasn't an option. Only COM1 was listed.
I tried unplugging and plugging my Arduino in and out a couple more times and eventually COM4 showed up again in the IDE. I didn't have to change any settings.
Hopefully that helps somebody.
Changing the port in Device Manager works for me. I was also able to fix it by finding the port that Arduino was using and then select it from the Adruion IDE from tools menu Tools>Port>Com Port
First, open Device Manager by searching for it in the Windows search bar.
Then, click ports and right click the port the Arduino is connected to. Then, go to Port settings → Advanced. Next, select any port that is not in use and is not the port the Arduino is currently connected to. Then click OK and unplug + replug your Arduino. This works most of the time with any Arduino board.
My solution: TOOLS > Processor > "old bootloader"

Implementing I2C slave with FT201XB via USB

I've been trying to test a FT201XQ USB-I2C breakout board: UMFT201XB-01, so I can connect it to a master device such as an Arduino and sniff what that device is sending through I2C.
To see the output of the slave device I have successfully configured a Virtual COM PORT by installing the D2XX drivers provided by ftdchip.com. I can open the serial port through puTTY and everything seems fine in that regard.
Then, i've loaded the "master_writer" example on my Arduino, which sends 1 byte at a time to an address (0x22 is specified in the UM201XB-01 datasheet as the default address).
Nothing seems to happen in the COM port that i've earlier opened. Do I need to configure/program the FTDI device in some way? In that case, how can I do it, in a general way?
UMFT201XB-01 board http://www.ftdichip.com/Support/Documents/DataSheets/Modules/DS_UMFT201_220_230XB.pdf
Thank you in advance, and sorry if this is a "noob" question : P

Arduino wifi shield cannot find IP address

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.

Arduino 3G shield

I have an Arduino UNO and a 3G shield ( http://imall.iteadstudio.com/development-platform/arduino/im121026002.html ). To connect to the internet I had only to configure the APN once which the SIM provider gave me and write the PIN number via AT commands in the setup() function, that's all.
I have some questions:
1) the internet key which the SIM belongs to comes with a software you have to use to connect to the internet: each time you want to connect you press CONNECT and when you are finished you press DISCONNECT. The 3G shield on the contrary needs only APN and PIN and that's it: am I forgetting anything? The module works, therfore I don't think so: what's your experience?
2) the internet key software needs to be configured with a "Dial Number" too, which I don't know what's for. The 3G shield works without any "Dial Number": any idea why?
3) sometimes while surfing the internet with the internet key, you loose the connection (maybe the provider kicks you off). In that case you have to click connect and you are in again. If something like that happens with Arduino+3G what do I have to do? I tried resetting the 3G module via the reset pin, but the module cannot register any more into the network.
Thank you in advance
1.) It sounds as though the 3G shield is set up to automatically connect to the internet when it is powered on, and the setup function does this.
Depending upon the design of the software supplied with your internet key, you may be able to configure it to do the same thing, so that you wouldn't have to press Connect/Disconnect each time.
2.) The 3G shield probably uses a default dial number like 99**1#.
3.)If the connection is lost due to external factors, e.g. the network dropping the connection, then the 3G shield probably tries to re-connect automatically. If the connection is lost because of a problem in the shield, then powering it off and on again will probably do the trick, but you will have to enter the PIN again of course.
At a guess, the reset button may lock the SIM again, and that's why it appears to lose the network. It sounds as though you would have to run the setup function again, to unlock the SIM and connect to the network.

Resources