通过Android上的Wi-Fi Direct进行客户端/对等通信 [英] Client/Peer communication with Wi-Fi Direct on Android

查看:452
本文介绍了通过Android上的Wi-Fi Direct进行客户端/对等通信的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有三个Android设备:A,B和C.它们通过Wi-Fi Direct连接(假设B是组所有者).我只有两个问题:

I have three Android devices: A, B, and C. They are connected via Wi-Fi Direct (assuming B is the group owner). I just have two questions:

  1. B可以作为客户端连接到另一个Wi-Fi Direct组吗?
  2. A或C是否可以作为客户端连接到另一个Wi-Fi Direct组?

推荐答案

两天前我已经测试了您的问题.

I've tested your issues 2 days ago.

  1. 只有当D不是某个组的所有者时,B才能连接到设备D,因此D将作为客户端加入B的组.

  1. B can connect to device D only if D isn't the owner of some group, and therefore D will be joined to B's group as a client.

当A/C作为客户端连接到B时,当他们尝试向某个设备D发送连接请求时,该请求将转发给组所有者B以接受连接并添加D到小组. (当D在B AND A/C范围内时,对此场景进行了测试). 如果D不在B的范围内,但在A/C的范围内,则A/C的请求将被取消,并且A/C与B的连接将断开.

When A/C are connected to B as clients, when they'll try to send a connection request to some device D, the request will be forwarded to the group owner B to accept the connection and to also add D to the group. (This scenario was tested when D was in the range of B AND A/C). When D isn't in the range of B but is in the range of A/C, the request of A/C will be canceled and the connection of A/C with B will disconnect.

这就是我们试图了解Wi-Fi Direct行为时遇到的情况.

That's the scenario we were facing when trying to understand the behavior of Wi-Fi Direct.

希望我能帮助您. 如果有人对其进行了测试并且知道其他内容,我将不胜感激.

Hope that I helped you. If someone tests it and knows something else, I would appreciate to know it.

这篇关于通过Android上的Wi-Fi Direct进行客户端/对等通信的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆