[英]How is the bluetooth low energy pairing method chosen Android
I am a little confused as to what level the Android or peripheral device requests the bluetooth low energy pair request type. 对于Android或外围设备要求蓝牙低功耗对请求类型的级别,我有些困惑。 Is this in the application layer when I initiate the connection via
device.connectGatt(context, false, gattCallback)
or would this be the job of the peripheral to suggest the type? 当我通过
device.connectGatt(context, false, gattCallback)
发起连接时,这是在应用程序层中吗?还是这是外围设备的工作来建议类型?
How can someone choose between Just Works
, Numeric Comparison
, Passkey Entry
and Out of Band
? 有人如何在
Just Works
, Numeric Comparison
, Passkey Entry
和Out of Band
?
Both devices exchange their IOCapabilities at the beginning of the pairing process. 配对过程开始时,两个设备都交换其IOCapabilities。 The initiator send a IOCapabilityRequest and the responding device answers with a IOCapabilityResponse.
发起方发送IOCapabilityRequest,响应设备使用IOCapabilityResponse进行应答。
As the name says, the IO Capabilites contain data about what the device can show to the user. 顾名思义,IO Capabilites包含有关设备可以向用户显示的内容的数据。 This can be one of "Display Only", "Display Yes/No", "Keyboard Only", "NoInputNoOutput", "KeyboardDisplay".
这可以是“仅显示”,“显示是/否”,“仅键盘”,“ NoInputNoOutput”,“ KeyboardDisplay”之一。
According to what both devices can do, they chose the method, see here: 根据两种设备的功能,他们选择了方法,请参见此处:
https://blog.bluetooth.com/bluetooth-pairing-part-4 https://blog.bluetooth.com/bluetooth-pairing-part-4
and 和
https://blog.bluetooth.com/bluetooth-pairing-passkey-entry https://blog.bluetooth.com/bluetooth-pairing-passkey-entry
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.