本文介绍了可以BLE外设模式触发断开或拒绝连接?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

下面是我们的处境。我们有一台机器自动售货机外设模式和中心模式的移动运行运行。当移动接近自动售货机,它触发连接,并开始通信。但据我所知,周围模式只能同时连接到一台设备只考虑蓝牙技术4.0,因此,如果有一个人谁愿意让一个绝招代表围绕我们的自动售货机,并连接到这一切的时候,没有人可以连接在自动售货机。我说得对不对?

我的问题是


  1. 如何避免这种情况。是否有可能自动售货机拒绝连接,或者当它开创了连接无效(由其他应用程序触发)来触发断线?


  2. 我听说过类似的多点蓝牙。因此,有多少能多可以,可以把它像100这样它可能会解决这个问题。


  3. 我发现了贝宝信标类似的情况。 它说,信标在周围模式下运行。我想知道他们如何避免这些无效的连接。



解决方案

一直以来,中央设备(移动设备)发起的连接,它将作为法师和其他终端设备(自动售票机)将充当奴隶。

据蓝牙4.1规范,从可以有多个主人。
因此,一个以上的移动设备可连接到单个LE设备

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.

解决方案

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.

这篇关于可以BLE外设模式触发断开或拒绝连接?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-20 07:05