AllJoyn using hotspot?

asked 2014-05-15 18:01:41 -0700

riko642 gravatar image

updated 2014-05-16 13:32:19 -0700

Is it possible to connect two devices using wifi but without the condition to be connected to the wifi router? I know that there is a bluetooth option and a 3G option, but is it also possible to connect two devices using a wifi hotspot. To be honest I don't really know how the hotspot works, but as far as I understand it, it can be started on the one device, and the other(s) can connect to it. Is AllJoyn able to manage such a connection?

EDIT: Is AllJoyn able to configure and start the hot spot function on a device?

Thank you very much for any answer in advance.

edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted

answered 2014-05-16 12:08:47 -0700

stevek gravatar image

While the AllJoyn protocol is designed to be agnostic of the underlying networking technology, for IP based networks, its communications is limited to the devices that are on the same local subnet.

I am going to assume when you say "wifi hotspot", you are referring to public WiFi hotspots like what you would find in a coffee shop. Most public WiFi hotspots use a feature called IP isolation. This feature will prevent AllJoyn from talking to other AllJoyn devices that are connected to the same WiFi hotspot. The purpose of IP isolation is to prevent one device on the WiFi network to see traffic to/from all other devices on that same WiFi network. For people doing online banking from the coffee shop, IP isolation is a good thing. Unfortunately, it does prevent AllJoyn using that WiFi network.

If a public WiFi hotspot does not use the IP isolation feature, then it may be possible to use AllJoyn between devices on that network. Care should be taken though since other users AllJoyn devices could talk to yours and if they have malicious intent, may be able to cause problems.

Now if you have configured one of your devices as a WiFi AP, your other devices should be able to connect to that device and at the very least communicate with the device that is configured as an AP. Android devices call this "Soft AP" while iOS devices call this "Personal Hotspot". Another possible term for this feature that I've seen in the past is "WiFi Tethering".

edit flag offensive delete publish link more


Thanks for your answer, I meant by "wifi hotspot" turing a mobile phone into an access point (it's called hotspot in my mobile phone) I have recently managed to test it and it works, however the question is: Can be AllJoyn used to configure and start this "hotspot" or "access point" function on a smartphone?

riko642 ( 2014-05-16 13:20:57 -0700 )edit

That would be a different question, but the answer would be no. AllJoyn is a communication protocol. Enabling/disabling hotspot mode on a phone is a phone configuration issue.

stevek ( 2014-05-16 15:41:43 -0700 )edit

answered 2014-05-16 11:00:49 -0700

bspencer gravatar image

updated 2014-05-16 12:25:25 -0700

AllJoyn is transport agnostic as a software, but depending on the system it is running on there are limitations to what can be used. For instance on Android and iOS it is just over Wi-Fi (IP transports) at this time, but is possible and has been shown in the past over other transports. That being said, a Wi-Fi hot spot as a feature of a mobile device is just turning a device into an Access Point. So yes AllJoyn will work when mobile turns into an AP via the settings for hot spot, Wi-Fi tethering, or whatever the mobile os calls the feature of turning the device into an AP.

edit flag offensive delete publish link more


Thanks for your answer. Is it also possible to actually switch the hotspot on a device on using AllJoyn? (or any unity asset?)

riko642 ( 2014-05-16 13:16:33 -0700 )edit

answered 2014-05-23 00:56:49 -0700

arkatufus gravatar image

Yes, you can use the tether/access point feature on android devices with AllJoyn, its just another WiFi access point from AllJoyn perspective (tested using Samsung Spica, really old model). No, you can't turn on tethering/access point programatically (short answer).

(long answer) Google would not release a public API to the tethering feature, but you could hackishly access the internal API using reflection, but beware, the internal API may vary from one OS release to another, making code maintenance a nightmare on the long run. You might want to look into the new WiFi Direct API, I think its available on Android version 14 and above (jellybean, I think)

edit flag offensive delete publish link more
Login/Signup to Answer

Question Tools

1 follower


Asked: 2014-05-15 18:01:41 -0700

Seen: 2,537 times

Last updated: May 23 '14