Linux蓝牙系统(3)
来源:互联网 发布:js中let的用法 编辑:程序博客网 时间:2024/06/03 20:08
NET: Registered protocol family 31
Bluetooth: HCI device and connection manager initialized
Bluetooth: HCI socket layer initialized
Bluetooth: L2CAP ver 2.8
Bluetooth: L2CAP socket layer initialized
Bluetooth: RFCOMM socket layer initialized
Bluetooth: RFCOMM TTY layer initialized
Bluetooth: RFCOMM ver 1.8
Bluetooth: HIDP (Human Interface Emulation) ver 1.1
eth1: no IPv6 routers present
usb 1-1: new full speed USB device using uhci_hcd and address 2
usb 1-1: configuration #1 chosen from 1 choice
usb 1-2: new full speed USB device using uhci_hcd and address 3
Bluetooth: HCI USB driver ver 2.9
usb 1-2: configuration #1 chosen from 1 choice
hub 1-2:1.0: USB hub found
hub 1-2:1.0: 7 ports detected
usbcore: registered new driver hci_usb
hci_scodata_packet: hci0 SCO packet for unknown connection handle 20480
hci_scodata_packet: hci0 SCO packet for unknown connection handle 43088
hci_acldata_packet: hci0 ACL packet for unknown connection handle 0
hci_acldata_packet: hci0 ACL packet for unknown connection handle 0
hci_scodata_packet: hci0 SCO packet for unknown connection handle 20480
hci_scodata_packet: hci0 SCO packet for unknown connection handle 43088
hci_scodata_packet: hci0 SCO packet for unknown
hci_scodata_packet: hci0 SCO packet for unknown connection handle 53248
usb 1-1: USB disconnect, address 2
usb 1-1: new full speed USB device using uhci_hcd and address 4
usb 1-1: configuration #1 chosen from 1 choice
/usr/sbin/hciconfig : configure Bluetooth devices
/usr/bin/sdptool : control and interrogate SDP servers
Bus 001 Device 004: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)
Bus 001 Device 003: ID 0e0f:0002
Bus 001 Device 001: ID 0000:0000
Bus 002 Device 001: ID 0000:0000
[root@huisen ~]# hciconfig
hci0: Type: USB
BD Address: 00:1F:81:00:01:1C ACL MTU: 1021:4 SCO MTU: 180:1
UP RUNNING PSCAN
RX bytes:632 acl:0 sco:0 events:17 errors:0
TX bytes:313 acl:0 sco:0 commands:16 errors:0
hcid.conf rfcomm.conf
# HCId options
options {
# Automatically initialize new devices
autoinit yes;
# Security Manager mode
# none - Security manager disabled
# auto - Use local PIN for incoming connections
# user - Always ask user for a PIN
#
security user;
# Pairing mode
# none - Pairing disabled
# multi - Allow pairing with already paired devices
# once - Pair once and deny successive attempts
pairing multi;
# Default PIN code for incoming connections
passkey "BlueZ";
}
service bluetooth start
hcitool scan
Scanning ...
00:21:19:A4:E0:F1 Meizu M8
bind no;
device 00:21:19:A4:E0:F1;
channel 1;
comment "Meizu M8";
}
chmod 666 /dev/rfcomm0
三.关于蓝牙配置文件
-------------------------------------------
蓝牙的配置文件主要是 /etc/bluetooth目录下的hcid.conf和rfcomm.conf.
options {
# Automatically initialize new devices
autoinit yes;
security user;
这里的security 是表示配对的认证模式,user表示由用户输入密码。这个需要在后面用
pin_helper 指明用哪一个程序输入密码,这程序可以是图形界面程序,或者是字符界面程序。
常见的pin_helper有
/usr/bin/bluez-pin : bluez自带的pin输入界面
kbluepin
passkey 配置项指明请求联接的设备的pin码。当采用auto模式时,将采用这个密码来联接.
- Linux蓝牙系统(3)
- Linux蓝牙系统(3) Linux 命令
- Linux蓝牙系统(3) Linux 命令
- 蓝牙系统
- linux kvm 虚拟系统中蓝牙设备的添加
- Linux系统上低功耗蓝牙遥控器开发项目笔记
- 在linux系统上,利用蓝牙透传模块解析蓝牙协议。
- Android蓝牙系统
- Android蓝牙系统
- Android蓝牙系统
- Android蓝牙系统
- Android中的蓝牙系统
- 蓝牙core系统体系结构
- Android系统去除蓝牙
- 系统的蓝牙教程
- 蓝牙系统结构
- 蓝牙通信系统
- Android系统 蓝牙模块
- JSP内置对象
- jap的知识点总结
- Java国际化,获取java支持的语言和国家列表
- 胡言乱语
- 0点0分0秒的 ,其实是当天的第一秒,例如 20130303-000000 是 20130303 当天最小的时间,还比 20130303-000000 小1秒
- Linux蓝牙系统(3)
- C# http post请求
- 记录Java多线程的同步问题---synchronized关键字的使用
- Android绘制抗锯齿的两种方法
- C语言中offsetof宏的应用
- VC获取其它程序窗口焦点方法 AttachThreadInput的用法
- linux下mmap内存映射的使用
- C#模拟用户操作域上服务器的文件
- 深入理解面向discuz的插件开发