Can BLE peripheral mode trigger the disconnection or refuse to connect?

北战南征 提交于 2019-12-25 06:05:28

问题


Here's our situation. We have a machine vending machine run in peripheral mode and mobile runs in central mode. When the mobile is close to the vending machine, it triggers the connection and start to communicate. But as far as I know, the peripheral mode can only connect to one device at a time just considering bluetooh 4.0, so if there's someone who wants to make a trick stands around our vending machine and connects to it all the time, no one else can connect the vending machine. Am I right?

My question is

  1. How to avoid this situation. Is it possible for the vending machine to refuse the connection or to trigger the disconnection when it founds that the connection is invalid (triggered by other app)?

  2. I have heard something like multipoint bluetooth. So how much can the multi be, can it be like 100 so that it may solve the problem.

  3. I found a similar situation in paypal beacon. https://devblog.paypal.com/how-does-paypal-beacon-work/ it says the beacon is running in peripheral mode. I am wondering how do they avoid these invalid connections.


回答1:


Since, the central device(mobile device) initiating connection, it will act as Master and the other end device(vending machine) will act as slave.

According to Bluetooth 4.1 specification, a slave can have multiple masters. So, more than one mobile device can connect to the single LE device.



来源:https://stackoverflow.com/questions/25235379/can-ble-peripheral-mode-trigger-the-disconnection-or-refuse-to-connect

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