Android 蓝牙微微网广播数据

标签 android bluetooth broadcast

我对 Android 中的 Piconet 有一些疑问:

  1. 是否可以使用蓝牙 Android API 将一个从站发送的数据广播到 Piconet 中的所有(主站和从站)?如果可能的话,它是如何运作的?是先到master再到所有slave,还是slave直接联系其他slave?

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

  3. 如果master宕机了,它能自动委托(delegate)给其他slave吗?

仅供引用,我在 Android 手机上同时使用主站和从站。

最佳答案

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?

在微微网中,您有一个主设备和 7 个 Activity 从设备,蓝牙广播从主设备到所有从设备 - 在 Android 中,没有 API 供应用程序使用广播功能。 从站只能直接与主站对话。它是一个星形拓扑,Master 与 Slave 通信,Slave 与 Master 通信。

Can one device connect to two or more different piconet?

是的 - 你可以在一个微微网中成为主站,在其他微微网中成为从站 或者不同微微网中的从站

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

没有

关于Android 蓝牙微微网广播数据,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6891386/

相关文章:

c - Linux 示例中的 BLE 桥接模式

python - 是否可以在不连接网络的情况下通过 wifi 发送 UDP 广播?

android - 如何在不同的类之间共享相同的构造函数,也就是在接口(interface)中定义构造函数?

Android AudioRecord 哪些设置来记录通话

android - 旋转后的 Searchview - 按钮转到 "3 dots"

android - 创建自定义样式会导致应用程序崩溃

蓝牙 UUID 发现

c# - Windows 中的蓝牙 AVRCP 命令会触发哪些事件

android - 权限拒绝 : not allowed to send broadcast android. intent.action.HEADSET_PLUG

c# - .NET 选项将视频文件流式传输为网络摄像头图像