简体   繁体   English

蓝牙配对无密码

[英]Bluetooth pairing without pin code

I am a newbie working on bluetooth, and I would like to get some advice regarding the pairing process. 我是从事蓝牙技术的新手,我想获取有关配对过程的一些建议。 I have googled this but I did not find much information ... 我已经用谷歌搜索过,但没有找到太多信息...

My goal is simple: I want to do a pairing to a headset without entering a pin. 我的目标很简单:我想在不输入图钉的情况下与耳机配对。 I have an android (nexus S running Android 4.1.2) and an iphone (3GS running ios 6.1.3). 我有一个android(运行Android 4.1.2的nexus S)和一个iphone(运行ios 6.1.3的3GS)。 If I connect to a device like a Jabra BT3030 (bluetooth headset), the pairing is performed without asking me any pin code. 如果我连接到Jabra BT3030(蓝牙耳机)之类的设备,则配对时无需询问任何PIN码。 Now I want to do the same from an Ubuntu (with BlueZ 4.6), ie I fake a bluetooth headset by enable only the correct service and so on. 现在,我想在Ubuntu(带有BlueZ 4.6)中执行相同的操作,即我通过仅启用正确的服务来伪造蓝牙耳机,依此类推。 I disabled the authentication. 我禁用了身份验证。 When I pair my iphone to this device, no pin code is required (as expected), but when I connect from my Android device, it still asks me for a pin code, whereas I would expect to have the same behavior than with the Jabra. 当我将iPhone与该设备配对时,不需要密码(如预期的那样),但是当我从Android设备连接时,它仍然会要求我输入密码,而我希望它的行为与Jabra相同。

Would you have any idea of what I am missing here? 您对我在这里想念的东西有任何想法吗?

Thanks in advance, 提前致谢,

Best regards, 最好的祝福,

Guillaume 纪尧姆

Android Uses UUID for pairing and connection for two devices...for two devices conneting, one device should send request and one should accept and for both UUID should be same... Android使用UUID进行两台设备的配对和连接...对于两台设备进行联网,一台设备应发送请求,一台设备应接受请求,并且两个UUID都应相同...

Like also used bluetooth there I need to intall my android app to both the devices then only I can pair the two devices...because only that app is knowing the UUID. 就像还使用过的蓝牙一样,我需要将我的android应用安装到这两个设备上,然后才能将两个设备配对...因为只有该应用知道UUID。 and for iPhone it may be different so if from the native code of iOS u can know the UUID ur android device can be paired through app... 对于iPhone而言可能有所不同,因此,如果从iOS的本机代码中您可以知道可以通过应用程序配对UUID ur android设备...

The Standard password for a Jabra BT3030 is 0000. Many other bluetooth devices have a standard password. Jabra BT3030的标准密码为0000。许多其他蓝牙设备都有标准密码。 For the Case a system only accepts devices with passwords, and u cant enter a pasword on a device without keys :D 对于Case,系统仅接受带有密码的设备,并且您不能在没有密钥的设备上输入密码:D

Maybe the solution is implementing the standard passwords for mutliple devices and use them instead f forcing a connection without password. 可能的解决方案是为多设备设备实施标准密码,并使用它们代替没有密码的强制连接。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM