Yun wifi standalone, without any external router

Dear Yunner,
is it possible to use Yun as router itself?
The target is:
An android device connects directly to Yun, and dialogue from/to Yun without any other routers?
How to do that?
Please, use simple terminology as I'm a beginner of Yun
Thank you very much,
Francesco

The Yun runs OpenWRT, which is a router oriented version of Linux. The Yun is already a basic router.

The default out-of-the-box operating mode of the Yun is to act as a WiFi hotspot. When in this mode, any other WiFi device (computer, phone, tablet, etc) can connect to the Yun and access its configuration web pages, your own custom web pages, or any other network resources.

How to do it? There are many ways. Some more detail on just what you want to accomplish may narrow down the discussion to the point where you should get some useful advice.

Thanks ShapeShifter,
The idea behind that is to control by an Android device the functionality of Arduino.
For example write 1 or 0 to a output port of Arduino; or read an input port and communicate teh value to Android.
I like use Yun Wifi (not xbee) in external environment, that means there is not internet connection and/or even external router.
For this reason I need to use the functionality of OpenWRT or even Bridge (I really don't know here) to let Yun becomes a hotspot or master router.
The Android device will connect to it and communicate to Yun directly.
Of course I will need a Java program in Android device too, this will be the second phase of my work. Needing to study it too :slight_smile:

Well, as I said, the default out-of-the-box WiFi configuration for the Yun is to act as a WiFi hotspot. You can connect to that hotspot using a computer or Android device. No external network is required - the Yun is creating the network and acting as hotspot and router.

Android does not support Bonjour or mDNS. So that means you won't be able to access your Yun using a name like arduino.local, you will have to use an IP address.

That handles the network connection, now for the software. Take a look at the Bridge and TemperatureWebPanel examples for a couple different ways to do it. (There are many other techniques, as well.)

ShapeShifter:
::::SNIP::::

Android does not support Bonjour or mDNS. So that means you won't be able to access your Yun using a name like arduino.local, you will have to use an IP address.

::::SNIP::::

@ ShapeShifter & mainfra,

This tool may help:

Google: android zeroconf

ZeroConf Browser
https://play.google.com/store/apps/details?id=com.melloware.zeroconf&hl=en
ZeroConf Browser allows users to browse the network for available Bonjour/Rendezvous/ZeroConf multicast DNS (aka mDNS) services, including applications providing network services that register with mDNS. It is a useful tool for debugging ZeroConf problems and to discover what services are visible to your Android device.

Jesse

jessemonroy650:
ZeroConf Browser
https://play.google.com/store/apps/details?id=com.melloware.zeroconf&hl=en

How does this work? From the sparse description and the screen shots, it looks like it just lists the services and their addresses, along with a bunch of other information. To access the service, you have to copy the address and paste it into a browser?

I have a project (not on Arduino) that acts as a hotspot and advertises itself using mDNS. Using an iOS device, we can access its web server using the device.local name. But on an Android device we have to use the IP address. The whole point to implementing the interface as a web server was so that our customer's customers wouldn't have to load an app to access the device. Now, are you saying they have to load the app, run it to find the address, then copy/paste the address? Seems like it's easier to just directly type in the address in the first place (the address is known since it's statically configured, seeing as it is the hotspot/router.)

I can see where a developer or IT person may want this. But how is this an improvement for the casual user?

ShapeShifter:
::::SNIP::::

I can see where a developer or IT person may want this. But how is this an improvement for the casual user?

ShapeShifter,
I can't speak for the author of that APP, but it appears to me that that's all it was meant for.
By applying the Google search: android zeroconf I can see there is a library. I would assume it is meant for Android only, and from the age (Feb, 2010), I would further assume it DOES NOT support Android 4.X. Then again I did not follow the link, and it was on source forge, not github.

For those that see interest, the links are provided.

Jesse

jessemonroy650:
and from the age (Feb, 2010), I would further assume it DOES NOT support Android 4.X.

Looks like you're correct. By following some links from that page, I quickly landed here: Use network service discovery  |  Connectivity  |  Android Developers. It appears that the "library" is now built-in as of 4.1. However, it's not a client per se: it's a library that lets developers include the ability to send or listen for mDNS packets. It appears that Android still does not have the native ability to receive mDNS info on its own which would allow you to just type the name of a node providing web services into a browser address bar. Pity, there are a lot of people who would like that. It seems that Android users still have to load some kind of app to have the ability to do something that is taken for granted on other systems?