用命令调试蓝牙遇到的问题,求高手指点

来源:互联网 发布:纠正跑调的软件 编辑:程序博客网 时间:2024/06/03 17:54

最近调试开发板的蓝牙模块,使用NOKIA手机可以与开发板进行通信,而所有的android手机均不能配对,下面是调试的log,恳求高手指点。下面以中兴U880手机为例:

shell@android:/ # hciconfig -a

hci0:   Type: BR/EDR  Bus: USB
        BD Address: E0:B2:F1:7D:E4:D3  ACL MTU: 820:8  SCO MTU: 255:16
        UP RUNNING PSCAN 
        RX bytes:25009 acl:0 sco:0 events:395 errors:0
        TX bytes:5450 acl:0 sco:0 commands:284 errors:0
        Features: 0xff 0xfb 0xff 0xfe 0xdb 0xff 0x7b 0x87
        Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3 
        Link policy: RSWITCH HOLD SNIFF PARK 
        Link mode: SLAVE ACCEPT 
        Name: 'kreed'
        Class: 0x080000
        Service Classes: Capturing
        Device Class: Miscellaneous, 
        HCI Version: 4.0 (0x6)  Revision: 0xc2d
        LMP Version: 4.0 (0x6)  Subversion: 0xf4e9
        Manufacturer: Realtek Semiconductor Corporation (93)
shell@android:/ # hciconfig hci0 up
shell@android:/ # hcitool scan
Scanning ...
        40:8B:F6:8B:76:D3       TCL DTV BCM20702A1
        00:08:CA:93:DA:50       ZTE-T U880
shell@android:/ # l2ping 00:08:CA:93:DA:50
Can't connect: Permission denied
shell@android:/ # rfcomm bind /dev/rfcomm0   00:08:CA:93:DA:50 1
shell@android:/ # rfcomm -a
rfcomm0: 00:08:CA:93:DA:50 channel 1 clean 
shell@android:/ # rfcomm conn /dev/rfcomm0   00:08:CA:93:DA:50 10
Can't connect RFCOMM socket: Permission denied
0 0
原创粉丝点击