Go Down

Topic: Yun Network set up Issues (Read 5492 times) previous topic - next topic

zimme272

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!

jessemonroy650

#1
Feb 13, 2015, 10:29 am Last Edit: Feb 13, 2015, 10:40 am by jessemonroy650
::::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)
https://www.youtube.com/watch?v=9-hPhWHWnvs

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

zimme272

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!

jessemonroy650

::::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

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.

Angelo9999

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.

http://arduino.cc/en/Tutorial/YunSysupgrade
https://github.com/sngl

jessemonroy650

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

https://play.google.com/store/apps/details?id=com.farproc.wifi.analyzer&hl=en

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

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.

muzamil110

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

mikeruss

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

muzamil110

Help
please i am facing same problem

jessemonroy650

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

mikeruss

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

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 ?

jessemonroy650

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

Go Up