本文介绍了指定在Android的一个关键环节没有配对的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想,以确定是否有一种方法在机器人与已经存在的远程蓝牙设备实例特定链路密钥关联。

I am trying to determine if there is a way in android to associate a specific link key with an already existing remote bluetooth device instance.

基本上我想要做的就是创建一个非发现的蓝牙设备的连接,而不需要通过配对或重新配对程序。

Essentially what I want to do is create a connection with a non-discoverable bluetooth device without going through the pairing or re-pairing procedure.

我不能够建立与设备的链路密钥在一个标准的配对过程,因为我有一个自定义的专有配对机制的工作。我想preFER来完成这个任务,而无需使用原生code,但如果我有那么我会的。

I am not able to establish the link key with the device in a standard pairing procedure because I am working with a custom proprietary pairing mechanism. I would prefer to accomplish this task without using native code, but if I have to then I will.

推荐答案

没有公开的API机制与设备的链路密钥而不需要通过配对过程联系起来。

there is no public api mechanism to associate a link key with a device without going through the pairing process.

在配对这种关联被自动创建(又名合)一次设备保税然后再连接将重新使用生成previously的链路密钥。

After pairing this association is automatically created (aka bonding) once devices are bonded then further connection will re-use the link key that was generated previously.

即使设备是不可发现你还是应该能够连接键/与之配对,如果你知道设备的蓝牙地址。

even if device is non-discoverable you should still be able to connect bond / pair with it, if you know the device bluetooth address.

通过改变底层的Andr​​oid的bluez code和挂钩喂pre-生成的链接键等内部/私人机构在理论上是可能的,这将是一个困难的项目和一个自定义的解决方案。这是假设您有链接键养活/副。注意 - 链接密钥是两个设备的设备地址中除了器件时钟等功能蓝牙

internal / private mechanism by changing the underlying android bluez code, and hooking up to feed a pre-generated link key etc is theoretically possible and it will be a difficult project and a custom solution.that is assuming that you have the link keys to feed / associate. note - link key is a function of the device address of both devices in addition to device clock etc.bluetooth

这篇关于指定在Android的一个关键环节没有配对的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-27 05:35