Linux 命令行如何在没有 pin 的情况下接受蓝牙设备的配对 [英] Linux command line howto accept pairing for bluetooth device without pin
问题描述
有没有办法在不需要 pin 的情况下在 linux 中配对设备(出于测试目的,所以我需要在没有人为交互的情况下完成,假设您具有 root 访问权限)?
bluez-simple-agent 似乎需要一个 pin,除了一些简单的设备,比如鼠标.
尝试在/etc/bluetooth/hcid.conf 中将 security 设置为 none
http://linux.die.net/man/5/hcid.conf>
这可能仅适用于 HCI 设备(鼠标、键盘、太空球等).如果您有不同类型的设备,则可能需要更改不同但相似的设置.
Is there a way to pair a device in linux without requiring a pin(for testing purposes so I need it to be done w/out human interaction, assuming you have root access)?
bluez-simple-agent seems to require a pin except with some simple devices such as mice.
Try setting security to none in /etc/bluetooth/hcid.conf
http://linux.die.net/man/5/hcid.conf
This will probably only work for HCI devices (mouse, keyboard, spaceball, etc.). If you have a different kind of device, there's probably a different but similar setting to change.
这篇关于Linux 命令行如何在没有 pin 的情况下接受蓝牙设备的配对的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!