Yun Network set up Issues

Hello,

I have been struggling to get my Yun on my home network. I have found similar start-up guides about the internet that describe how to do this but I am not making any progress. Here is what I have done so far:

  • I plug in my Yun (I have tried both connecting it to my laptop and powering it with a wall charger).
  • I find after a few seconds that I have a wireless Arduino Network that I am able to connect my laptop.
  • I connect to the Arduino Network
  • I type Arduino.Local into my browser (Chrome and Explorer) - Webpage is unavailable
  • I type 192.168.240.1 into my browser (Chrome and Explorer) - The login page appears
  • I type in the default password arduino
  • The statistics screen appears.
  • I click the configure link.
  • The configuration page appears.
  • I select my wifi network and type in my key. I also change the password.
  • when the settings are applied the Yun resets and I am asked to connect to my home network
  • I connect to my network
  • I type arduino.local into my browser - the webpage is not available
  • I type 192.168.240.1 - the webpage is not available
  • I reconnect to the arduino network and type in 192.168.240.1 the login screen appears.
  • My new password does not work. The default password does work.

It does not appear that any of the settings have been saved.
If I reset the board the same thing happens.
The board does accept sketches via usb.

Any ideas of what I am doing wrong? How can I make this work?

Thank you!

zimme272:
::::SNIP::::
Any ideas of what I am doing wrong? How can I make this work?

@zimme272,
your issue is quite common. So much so, that part of my answer is canned. The likely root cause of your problem is a weak network connection, or a failed network connection. In my house, the AT&T U-Verse fails, this because the box ignores the protocol, but my laptop works just fine. I expect this to be the norm in many cases (for the Yun) , but I can't say for sure. In the worst possible case, you'll have to use a cellphone as a hotspot to confirm if this is the case for you.

NOW back to your problem. First, since you are familiar with some of the steps, I'm going to add additional comments to assist you.

The Arduino Yun has a script that puts it back into default SSID and AP mode, when it cannot find the AP you have set it for (like your home wifi). You can disable that reset feature, but you'll need to ssh/login first to the Linux part of the Yun.

On the part with arduino.local, you need to have Bounjour Service working on your machine (its already working on the Yun). It is also known as ZeroConf Service

Next, you may have already watch this video, but it's worth watching again. Pay attention to the part with the sketches.
Getting started with Arduino Yún - tutorial (6:53)

Then, read these short instructions. We (the volunteer support group) already know these steps by heart, so be familiar with the different reboot methods, and especially the 30+ second wifi reset.
Resetting the processors (AR9331, WiFi, and 32U4)
http://arduino.cc/en/Guide/ArduinoYun#toc6

Then start over, plug your Yun into the USB, run this sketch, and hit the ''Wifi Reset button'' (for 5-10 seconds).
http://arduino.cc/en/Tutorial/YunSerialTerminal

The YunSerialTerminal provides a simplified console access to the Linux part of the Yun. It works via the USB port (the one that powers the Yun - the microUSB). From there you'll be able to run a few commands to give us a better idea of problems.

Also, be ready with this sketch YunWiFiStatus. This sketch will help us see the status of your home AP. The sketch prints the wifi status to the console every 5 seconds or so. This sketch might seem familiar since it was in that first video link (above).

Let us know how it goes.
Post results from the YunSerialTerminal, if you are still having problems.
Please use markup when posting results. (See attached image.)

Jesse

arduino_markup.png

UPDATE:

First, let me say thank you very much Jesse for the quick response! It gave me a lot of things to try.

I ran the Yunwifistatus and it worked while I was connected directly to the Yun AP but it seemed to stall once I tried to connect to my home network.

I installed the Bonjour software but I have not been able to get it open and running.

I am able to load the YunSerialTerminal but I have not been able to successfully send commands through the terminal.

I noticed that the Yun considers my home network to have 100% signal strength (on the configuration screen) so I don't think strength is the issue but you may be right that the router may ignore protocol.

The Yun has not been successfully saving my configurations and I thought that it may be due to the unit resetting after not connecting to my wifi but I did an experiment to see if it would save any settings and it does not seem to be. I changed only the password without trying to connect to my wifi then saved the changes. I would expect to need to use the new password to login but that is not the case. the default password is still required.

I am assuming that you will need more information to be able to assist so let me know what is required and I will get it ASAP. Thank you for your patience!

zimme272:
::::SNIP::::

I am assuming that you will need more information to be able to assist so let me know what is required and I will get it ASAP. Thank you for your patience!

@zimme272,
Okay you've done a lot of the hard work need. At this point, it appears you've taken care of any issues that the Yun might have.

From what I see, it appears only one thing left. Your home wifi is rejecting the connection from the Yun. This seems to case since the Yun is NOT saving any information. And the reason the Yun is not saving any data is because it has nothing to save.

The best way to test this is to take your Yun to some other place and try to connect to another wifi. Starbucks, McDonalds or any public place with wifi will usually do. If you have cell phone that works as a hotspot, then you can try that too.

Sorry can't be more help tonight. have headache.
Jesse

I remember when I first set mine up I had problems with the wifi channel number, I cant recall the symptoms exactly but it turns out it has to be channel 11 or less.

Might be worth checking.

You can also try to update the Yun to the latest image. Maybe something is corrupted in your system and it can fix the problem.

mikeruss:
I remember when I first set mine up I had problems with the wifi channel number, I cant recall the symptoms exactly but it turns out it has to be channel 11 or less.

Might be worth checking.

@mikeruss,
it looks like you are getting some wifi interference, as well. If you have an Android phone, go to Google Play and get Wifi Analyzer

If you don't have a Android, iPhone has similar programs available. They are even available for tablets.

I think you'll be shocked to see all the wifi channels around you. It will let you see all the wifi AP (Access Points) around you. You can also take snapshots of the traffic for analyses.

Lastly for reference, here is a link to Wikipedia with a list of wifi channels available.

Let me know how it's going,
Jesse

i already use wifi analyzer and was on the channel with the least interference. Yun couldnt find my home network on any channel higher than 11 while our smartphones worked OK, Yun worked fine on 11.

I found the solution with a bit of googling, somebody else had the same problem. It might of course be router related.

Hi
i am facing same problem #mikeruss would you please share solution

go to your router admin screen and find where the Wifi channel is set. If it is greater than 11 change to 1-11.

Help
please i am facing same problem

mikeruss:
i already use wifi analyzer and was on the channel with the least interference. Yun couldnt find my home network on any channel higher than 11 while our smartphones worked OK, Yun worked fine on 11.

I found the solution with a bit of googling, somebody else had the same problem. It might of course be router related.

@mikeruss,
I'm not clear. Is your issue solved? If not, I have a few more steps.

Jesse

Jesse, yes, sorry about the confusion, I was trying to help the OP

First i would like Thanks to you both for quick response, it worked but it just connected to my network but not show IP in IDE so that why i am still unable to remotely program my arduino ?

muzamil110:
First i would like Thanks to you both for quick response, it worked but it just connected to my network but not show IP in IDE so that why i am still unable to remotely program my arduino ?

@muzamil110,
please start a new thread and please give all the details to your problem. Start over in the new message. As most people have not read this thread.

TIA
Jesse

Hi

@jessemonroy650 my yun is not showing ip in IDE where it is connected to network do you have any solution

muzamil110:
Hi
@jessemonroy650 my yun is not showing ip in IDE where it is connected to network do you have any solution

Yes, please start a new thread.
Jesse

mikeruss:
Jesse, yes, sorry about the confusion, I was trying to help the OP

@mikeruss,
okay no problems, just want to make sure you get connected.

I'm sorry that I had not said this before, have you upgrade your Yun?
There is a sticky at the top of the forum have you follow the upgrade instructions?
There are wifi connection problems with the older software.

Also, the Bonjour software is for your computers so you can type http://arduino.local. The software is already part of the Yun. I just want to be clear on that part.

If you have upgraded then:

  • Connect the microUSB to your Yun and the other end of the USB on your computer.
  • Start up the YunSerialTerminal (File->Examples->Bridge->YunSerialTerminal)
  • Reboot your Yun
  • After some time, you should see something like this
[   38.080000] Backport generated by backports.git backports-20140320-37-g5c33da0
[   38.250000] cfg80211: Calling CRDA to update world regulatory domain
[   38.260000] cfg80211: World regulatory domain updated:
[   38.260000] cfg80211:  DFS Master region: unset
[   38.260000] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
[   38.260000] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[   38.270000] cfg80211:   (2457000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[   38.270000] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm), (N/A)
[   38.280000] cfg80211:   (5170000 KHz - 5250000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
[   38.280000] cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
[   38.280000] cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm), (N/A)
[   39.240000] ieee80211 phy0: Atheros AR9330 Rev:1 mem=0xb8100000, irq=2
[   39.250000] cfg80211: Calling CRDA for country: US
[   39.250000] cfg80211: Regulatory domain changed to country: US
[   39.250000] cfg80211:  DFS Master region: FCC
[   39.250000] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
[   39.260000] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 3000 mBm), (N/A)
[   39.260000] cfg80211:   (5170000 KHz - 5250000 KHz @ 80000 KHz), (N/A, 1700 mBm), (N/A)
[   39.270000] cfg80211:   (5250000 KHz - 5330000 KHz @ 80000 KHz), (N/A, 2300 mBm), (0 s)
[   39.270000] cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 3000 mBm), (N/A)
[   39.270000] cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 4000 mBm), (N/A)
[   39.700000] NTFS driver 2.1.30 [Flags: R/O MODULE].
  • Next type in to the ''YunSerialTerminal'' '''ifconfig'''
  • You should see something like this.
root@Arduino:/# ifconfig
eth1      Link encap:Ethernet  HWaddr 90:A2:DA:F8:0A:22  
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:4 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:336 errors:0 dropped:0 overruns:0 frame:0
          TX packets:336 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:22848 (22.3 KiB)  TX bytes:22848 (22.3 KiB)

wlan0     Link encap:Ethernet  HWaddr 90:A2:DA:F8:0A:22  
          inet addr:192.168.240.1  Bcast:192.168.240.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:16 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:3263 (3.1 KiB)
  • NOTE, the IP number for wlan0 is just what you expect 192.168.240.1, and your Yun should respond to http://arudino.local/ in the web browser

NOW you are going to try to connect to your home network.

  • Now go to web control panel and switch to your local home network (copy and paste the password just to be sure it is the correct password)
  • In the YunSerialTerminal, type reboot
  • After sometime, you should see something like this
[   50.420000] cfg80211: Calling CRDA to update world regulatory domain
[   50.430000] cfg80211: Invalid regulatory domain detected:
[   50.430000] cfg80211: Regulatory domain: 00
[   50.430000] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
[   50.430000] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[   50.440000] cfg80211:   (2457000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[   50.440000] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm), (N/A)
[   50.450000] cfg80211:   (5170000 KHz - 5250000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
[   50.450000] cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
[   50.450000] cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm), (N/A)
[   50.460000] cfg80211: Calling CRDA to update world regulatory domain
[   50.460000] cfg80211: World regulatory domain updated:
[   50.460000] cfg80211:  DFS Master region: unset
[   50.460000] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
[   50.470000] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[   50.470000] cfg80211:   (2457000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[   50.480000] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm), (N/A)
[   50.480000] cfg80211:   (5170000 KHz - 5250000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
[   50.480000] cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
[   50.490000] cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm), (N/A)
[   53.590000] cfg80211: Calling CRDA to update world regulatory domain
[   53.590000] cfg80211: World regulatory domain updated:
[   53.590000] cfg80211:  DFS Master region: unset
[   53.590000] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
[   53.600000] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[   53.600000] cfg80211:   (2457000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[   53.600000] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm), (N/A)
[   53.610000] cfg80211:   (5170000 KHz - 5250000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
[   53.610000] cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
[   53.610000] cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm), (N/A)
[   54.330000] wlan0: authenticate with 94:62:69:d7:10:00
[   54.330000] wlan0: send auth to 94:62:69:d7:10:00 (try 1/3)
[   54.340000] wlan0: authenticated
[   54.380000] wlan0: associate with 94:62:69:d7:10:00 (try 1/3)
[   54.380000] wlan0: RX AssocResp from 94:62:69:d7:10:00 (capab=0x411 status=0 aid=5)
[   54.380000] wlan0: associated
  • NOTE: it says [   54.340000] wlan0: authenticated
  • and [   54.380000] wlan0: associated

NOTE: the authenticate should take from 2 seconds to 2 minutes.
If it continues to authenticate, but never associated,
then the problem is definitely your home router.

Now, it may be a change in the protocol, and OpenWrt and Arduino have not caught up. Or it may be some other problem. However, as you have connected before and you say you see a strong signal from the AP I'm baffled.

If hope, I've been clear as this is the last thing we can try over the message board.

Jesse

muzamil110:
Hi
i am facing same problem #mikeruss would you please share solution

Please start a new thread and describe in detail what the problem is.

Sorry for the long delay hobbies take a back seat to life...

Three Updates:

I can change the password of my Yun only through the advanced configuration. If I use the front page it does not keep the password and the default password remains.

I have no problem watching the start up procedure with YunSerialTerminal but I have no idea how to do anything with it after that! I don't know how to "press Enter" as is requested in the Serial Monitor.

I have updated the Yun (I cant remember what version is on there now though - what ever was current a couple weeks ago)

Thank you!