|
我用的是RedHat9(kernel 2.4.24),已经把bluetooth相关选项都编进了内核,也装上了bluez-lib :help s和bluez-utils.想通过串口连接一块bluecore CSR模块..可是出现了问题!!!
#lsmod
Module Size Used by Not tainted
hci_uart 13132 4
l2cap 19468 1 (autoclean)
bluez 36676 7 (autoclean) [hci_uart l2cap]
....
#hcid
#hciconfig -a
hci0: Type: UART
BD Address: 00:00:00:00:00:00 ACL MTU: 0:0 SCO MTU: 0:0
DOWN
RX bytes:30600 acl:0 sco:0 events:0 errors:30600
TX bytes:28 acl:0 sco:0 commands:7 errors:0
Features: 0x00 0x00 0x00 0x00
Packet type: DM1 DH1 HV1
Link policy:
Link mode: SLAVE ACCEPT
#hciconfig hci0 up
Can't init device hci0. Connection timed out(110)
#hciattach /dev/ttyS0 csr 57600 noflow
Failed to write init command (GET_BUILD_ID): Success
Can't initialize device: Illegal seek
# hciconfig hci0 down
# hciattach /dev/ttyS0 any 57600 noflow
Can't set device: Device or resource busy
Can't initialize device: Illegal seek
这是为什么啊???
难道是CSR不支持bluez???
还是bluez 的哪个配置文件有问题??
注:在windows下用串口调试助手成功.线路没问题. |
|