Android Wifi 直接多连接 ad-hoc

Android Wifi direct multiple connection ad-hoc(Android Wifi 直接多连接 ad-hoc)

本文介绍了Android Wifi 直接多连接 ad-hoc的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试在许多 Android 设备之间创建一个 ad-hoc 网络,但我找不到相关文档.

I try to create an ad-hoc network between many Android devices, but I can't find documentation to do that.

我认为 Wifi direct 可以满足我的需求,但是否可以在一台设备上进行多个连接?我看到我们可以做一个充当接入点的设备并与许多设备通信,但是我们可以从一个客户端设备通信到两个接入点设备吗?

I thought Wifi direct could work for what I want, but is it possible to have multiple connection on one device ? I saw that we could do a device acting like an access point and communicate with many devices, but can we communicate from one client device to two access point devices ?

例如,我有 3 个设备:A -> B -> C

I have for example 3 devices: A -> B -> C

A"设备需要与C"设备通信,但距离太远,所以我希望 A&B 之间有 ad-hoc wifi 直接连接,B&C 之间有 ad-hoc wifi 直接连接,所以A 可以与 C 通信.它还应该与 3 个以上的设备一起使用.

The "A" device need to communicate with "C" device but he's too far away, so I want to have ad-hoc wifi direct connection between A&B and ad-hoc wifi direct connection between B&C, so A can communicate with C. It should also work with more than 3 devices.

谢谢!

推荐答案

Android 目前不支持 ad-hoc WiFi -- 抱歉!

Android does not have support for ad-hoc WiFi at this time -- sorry!

更新(2019):Android 已经支持 WiFi Direct 有一段时间了,这个答案还没有更新.

Update (2019): Android has supported WiFi Direct for a while, and this answer has not been updated.

你的方案会奏效.只要 B(组所有者)在 A 和 C 的范围内,A 就可以与 C 连接.

Your scenario would work. A would be able to connect with C as long as B (the group owner) is within range of both A and C.

有关更多信息,请参阅 Android 的开发者文档:

See Android's developer documentation for more info:

https://developer.android.com/guide/topics/connectivity/wifip2p

这篇关于Android Wifi 直接多连接 ad-hoc的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本文标题为:Android Wifi 直接多连接 ad-hoc

基础教程推荐