Go Down

Topic: Yun WiFi connection (Read 3450 times) previous topic - next topic

juansolana

Hi, I was wondering if is possible to configure the arduino yun to connect to several wifi's automatically without having to configure it for one in specific. Let's say I have WiFi A, B and C, and if I reach any of those wifi's my arduino will connect to it automatically.

Also, is there a way to prevent the yun from loosing it's connection to a wifi? I find myself sometimes working with the arduino and when I'm not using the arduino after a while it stop responding to the command I send over the internet, I hope I made myself clear enough.

Thanks in advance!

Sea2605

I have the same issue... wifi loses connection from time to time... is there a way to restart the yun (or wifi) via python script  or sketch or something, when the internet connection drops?

currently I'm running a script which pings google.com to see wether internet is up or not... but I can't figure out the restarting....

in /etc/rc.local there is the line "wifi-live-or-reset", which works at boot...but how to (or should we) run that with python?! is there a better solution?

sonnyyu

#2
Mar 06, 2014, 02:50 am Last Edit: Mar 06, 2014, 02:53 am by sonnyyu Reason: 1
What you ask is multiwan, that mean Yun connect to internet via more than one ISP.
To make it work:

  • multiwan

  • second radio (usb  wifi adaptor)

  • luci-app-multiwan ( user friendly, will work without it, by hand)



Linino is missing luci-app-multiwan.

Code: [Select]
opkg  update
opkg install multiwan


http://wiki.openwrt.org/doc/uci/multiwan



Sea2605

sonnyyu,
Is it possible to use multiwan for making the yun portable?!
I mean, if I start it at home it shall automatically connect to my home-wifi...
if I'm at the office (first floor) it shall connect to the office-wifi-Router 1...
if I'm at the office (third floor) it shall connect to the office-wifi-Router 2 (same ISP)...

Is this somehow possible?

Can you give us an example how to make it work with mutliwan?

sonnyyu

Not mutliwan , mutliwan is for multiple ISP (Internet service provider).

Multiple-AP/Router roaming will do the trick.

At office, setup office-wifi-Router 1 and office-wifi-Router 2 with same SSID  and use the same encryption ( method/password)  but different channel,  use application Wifi Analyzer to find out best channel.

http://forum.arduino.cc/index.php?topic=188101.msg1580622#msg1580622

Same does at home but no different channel requirement.

jessemonroy650

You should check this post out, they have given a complete code how to connect to Wifi SSID automatically. Here's the link: http://www.theengineeringprojects.com/2016/02/automatically-connect-with-wifi-ssid-using-arduino-yun.html
@theenggprojects,
it's an interesting project, but the Yun already connects - unless it cannot find the AP. That article might be best if advertised that way.

Jesse

Go Up