安卓蓝牙Piconet广播数据[英] Android Bluetooth Piconet Broadcast data

本文是小编为大家收集整理的关于安卓蓝牙Piconet广播数据的处理/解决方法,可以参考本文帮助大家快速定位并解决问题,中文翻译不准确的可切换到English标签页查看源文。

问题描述

我对Android中的微微网有一些问题:

  1. 是可以使用蓝牙Android API来广播,以广播到微微网中的所有(主设备和从站)发送的数据?如果有可能,它是如何工作的?它是第一个然后到所有从站的主站点,还是直接联系其他从奴隶?

  2. 一个设备可以连接到两个或更多不同的微微网?

  3. 如果主设备关闭,它可以自动委托给其他从站?

fyi,我正在使用Android手机上的主站和从站.

推荐答案

是否可以使用蓝牙Android API来广播由一个从站发送的数据,并且将收到数据集中的所有(Master和Slave)中的数据?如果有可能,它是如何运作的?它首先向主人提供给主,然后给所有从属,或者直接从另一个奴隶联系到另一个奴隶?

在微微网中,您有一个主站和7个活动从站,蓝牙广播工作表单掌握到所有从站 - 在Android中没有API用于应用程序使用广播功能. 奴隶可以只直接与主人交谈.它是一个明星拓扑主人与奴隶和奴隶交谈到掌握.

一个设备可以连接到两个或更多不同的微微网?

是 - 你可以在其他微微网/s中掌握一个微微网和奴隶 或在不同的微微网中的奴隶/s

如果主设备关闭,它可以自动委托给其他从属奴隶吗?

本文地址:https://www.itbaoku.cn/post/102684.html

问题描述

I have some questions regarding Piconet in Android:

  1. Is it possible with the Bluetooth Android API to broadcast data that was sent by one slave to all (master and slaves) in the Piconet? If it is possible, how does it work? Does it go to the master first and then to all slaves, or does the slave directly contact other slaves?

  2. Can one device connect to two or more different Piconets?

  3. If the master is down, can it delegate automatically to other slaves?

FYI, I'm using both master and slave on an Android mobile phone.

推荐答案

Is it possible with bluetooth android API to broadcast data that was sent by one slave and the data will be received to all (master and slave) in the piconet? If it is possible, how does it works? It goes to the master first and then gives to all slave, or slave directly one by one contact another slave?

in a piconet you have one master and unto 7 active slaves, Bluetooth broadcast works form Master to all slaves - In android there are no APIs for applications to use the broadcast feature. Slaves can directly talk to only the master. It is a star topology Master talking to slaves and slaves to Master.

Can one device connect to two or more different piconet?

Yes - You can me Master in one piconet and slave in other piconet/s Or Slave/s in different piconet/s

If the master is down, can it delegates automatically to other slave?

No