Android Bluetooth Piconet Broadcast data

杀马特。学长 韩版系。学妹 提交于 2019-12-04 14:33:36

问题


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.


回答1:


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



来源:https://stackoverflow.com/questions/6891386/android-bluetooth-piconet-broadcast-data

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!