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

发布于 2024-12-25 16:50:39 字数 839 浏览 3 评论 0原文

我将首先解释我要解决的问题。我有两个可以部署到 Android 的 Adob​​e AIR 应用程序(Receiver App 和 Broadcaster App)。接收器应用程序位于一台 Android 设备上,并等待任何运行广播器应用程序(在本地网络上)的 Android 设备。目前这一切都正常工作,我可以让设备通过本地 WiFi 连接进行通信,没有任何问题。

问题是我需要能够在没有外部路由器/AP 的情况下执行此操作。我能够将第三个 Android 设备设置为无线 AP,并让另外两个 Android 设备通过 WiFi 连接进行通信。但是,建立无线 AP 连接的设备无法加入网络。

在搜索谷歌和 stackoverflow 之后,我想出了一些解决方案。

(1) 使用已取得 root 权限并运行 Barnacle 的 Android 设备设置 Ad-Hoc 网络。我能够尝试此操作并在两个设备之间成功设置 Ad-Hoc 网络,但它们无法在 Adob​​e AIR 应用程序中建立连接(使用 Adob​​e P2P 支持)。

(2) 如果我能拿到新的 Android 4.0 Galaxy Nexus,我知道我将可以使用 WiFi-Direct。我很好奇这是否能解决我的问题。我是否可以使用 Galaxy Nexus 设置并加入无线 AP,然后从旧的 2.X 设备连接到无线 AP?阅读这个让我相信我可以,但我想知道如果有人可以确认的话。

PS 我在 Adob​​e AIR 端通过无服务器 rtmfp 连接使用 NetConnection/NetGroup/NetStreams。

谢谢。

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). The Receiver App sits on one Android device and waits for any Android devices running the Broadcaster App (on the local network). This is all currently working and I can have the devices talking over a local WiFi connection with no problem.

The issue is I need to be able to do this without an external router/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. However, the device setting up the Wireless AP connection is not able to join the network.

After searching google and stackoverflow I came up with a few solutions.

(1) Set up an Ad-Hoc network using a rooted Android device and running Barnacle. 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).

(2) If I can get my hands on the new Android 4.0 Galaxy Nexus I understand I'll have access to 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? Reading this makes me believe I can, but I wanted to know if anyone can confirm.

P.S. I am using NetConnection/NetGroup/NetStreams on the Adobe AIR side over a serverless rtmfp connection.

Thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

若无相欠,怎会相见 2025-01-01 16:50:39

Sean,这可能无法回答您的问题,但我也使用 rtmfp 进行无服务器 p2p(this 中描述的类型) Tom Krcha 的博客文章),并为您提供了一些数据点:

  • 许多 HTC 设备和其他智能手机都存在多播问题,导致它们无法以这种方式进行通信。 Google“htc 多播”并在此博客上阅读相关内容。有趣的是,只要还有未受损的设备,这些设备就可以在这样的组中工作,因为它们可以传输多播,只是不能接收。因此其他设备发起该组并且所有人都可以参与。但受损设备无法自行发起群组。

  • 我在从 Android 到 iOS 再到桌面的一系列设备之间进行通信时没有遇到任何问题,因此我认为您应该可以在

  • 我有一部已root的手机,我运行一个名为“无线系绳”的应用程序来创建热点/wifi接入点,当其他两个设备连接到该热点时,它们可以使用此方法相互通信,但它们不能与正在创建热点网络的手机通信。

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:

  • Many HTC devices and other smartphones have a multicast issue that prevents them from communicating in this way. Google 'htc multicast' and read about it on this blog. 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.

  • 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文