简体   繁体   English

Android 2.X设备可以连接到Android 4.0 Wifi Direct AP吗?

[英]Can Android 2.X devices connect to an Android 4.0 Wifi Direct AP?

I'll explain the problem I'm trying to solve first. 我将首先解释我要解决的问题。 I have two Adobe AIR applications that can be deployed to Android (Receiver App and Broadcaster App). 我有两个可以部署到Android的Adobe AIR应用程序(Receiver App和Broadcaster App)。 The Receiver App sits on one Android device and waits for any Android devices running the Broadcaster App (on the local network). Receiver App位于一台Android设备上,并等待任何运行Broadcaster App的Android设备(在本地网络上)。 This is all currently working and I can have the devices talking over a local WiFi connection with no problem. 目前所有这些都可以使用,我可以让设备通过本地WiFi连接正常通讯。

The issue is I need to be able to do this without an external router/AP. 问题是我需要能够在没有外部路由器/ AP的情况下执行此操作。 I was able to setup a third Android device as a Wireless AP and have two other Android devices communicate over the WiFi connection just fine. 我能够将第三个Android设备设置为无线AP,并让其他两个Android设备通过WiFi连接进行通信。 However, the device setting up the Wireless AP connection is not able to join the network. 但是,设置无线AP连接的设备无法加入网络。

After searching google and stackoverflow I came up with a few solutions. 搜索谷歌和stackoverflow后,我想出了一些解决方案。

(1) Set up an Ad-Hoc network using a rooted Android device and running Barnacle. (1)使用扎根的Android设备并运行Barnacle来建立Ad-Hoc网络。 I was able to try this and set up an Ad-Hoc network successfully between two devices but they were not able to establish a connection in the Adobe AIR apps (using Adobe P2P support). 我可以尝试在两个设备之间成功建立Ad-Hoc网络,但是他们无法在Adobe AIR应用程序中建立连接(使用Adobe P2P支持)。

(2) If I can get my hands on the new Android 4.0 Galaxy Nexus I understand I'll have access to WiFi-Direct. (2)如果可以使用新的Android 4.0 Galaxy Nexus,我知道我可以使用WiFi-Direct。 I'm curious if this will solve my problem. 我很好奇这是否可以解决我的问题。 Can I set up AND join a Wireless AP using the Galaxy Nexus, and connect to the Wireless AP from my older 2.X devices? 我是否可以使用Galaxy Nexus设置并加入无线AP,并可以从较早的2.X设备连接到无线AP? Reading this makes me believe I can, but I wanted to know if anyone can confirm. 这篇文章使我相信我可以,但是我想知道是否有人可以确认。

PS I am using NetConnection/NetGroup/NetStreams on the Adobe AIR side over a serverless rtmfp connection. PS我在无服务器rtmfp连接上的Adobe AIR端上使用NetConnection / NetGroup / NetStreams。

Thanks. 谢谢。

Sean, this may not answer your question, but I've used rtmfp for serverless p2p also (of the kind described in this blogpost by Tom Krcha) and have a couple data points for you: 肖恩,这可能无法回答您的问题,但是我也将rtmfp用于无服务器p2p(在Tom Krcha的博文中描述的那种),并为您提供了一些数据点:

  • Many HTC devices and other smartphones have a multicast issue that prevents them from communicating in this way. 许多HTC设备和其他智能手机都存在多播问题,无法通过这种方式进行通信。 Google 'htc multicast' and read about it on this blog . Google的“ htc组播”,并在此博客上阅读有关内容。 Interestingly, these devices can work in such a group as long as there are non-impaired devices also, because they can transmit multicast, just not receive it. 有趣的是,这些设备可以在这样的组中工作,只要还存在未受损的设备,因为它们可以传输多播,而不会接收多播。 So the other devices initiate the group and all can participate. 因此,其他设备发起了该小组,所有人都可以参加。 But the impaired devices can't initiate the group by themselves. 但是有缺陷的设备无法自行发起群组。

  • I had no trouble communicating between a range of devices, from Android to iOS to desktop, so I assume you should be fine across versions of Android. 在从Android到iOS到台式机的各种设备之间进行通讯时,我没有遇到任何麻烦,因此我认为您在所有版本的Android上都应该没问题。

  • I have a rooted phone that I run an app called 'wireless tether' to create a hotspot / wifi access point, and when two other devices connect to that hotspot, they can communicate with each other using this method, but they cannot communicate with the phone that is creating the hotspot network. 我有一部有根手机,可以运行一个名为“无线系绳”的应用程序来创建热点/ WiFi接入点,当另外两个设备连接到该热点时,它们可以使用此方法相互通信,但无法与正在创建热点网络的手机。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM