I have same version of bluez/bluetooth related package installed on CentOS 6.4 x86_64 server
problem is I able to pair, but not connected, I tried on different phone, different bluetooth dongle. all same. below are list of what I have tested. Asterisk testing just as reference, as I don’t even able to get phone connect to server just with bluez or related command.
Hardware:
server : DELL Optiplex 790 (Intel i5 CPU, 4G memory)
bluetooth dongle:
hciconfig -a
hci0: Type: BR/EDR Bus: USB
BD Address: 00:15:AA:AA:AA:AA ACL MTU: 339:8 SCO MTU: 128:2
UP RUNNING PSCAN
RX bytes:26858 acl:246 sco:0 events:639 errors:0
TX bytes:12305 acl:256 sco:0 commands:203 errors:0
Features: 0xff 0x3e 0x85 0x30 0x18 0x18 0x00 0x00
Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
Link policy: RSWITCH HOLD SNIFF PARK
Link mode: SLAVE ACCEPT
Name: ''
Class: 0x000104
Service Classes: Unspecified
Device Class: Computer, Desktop workstation
HCI Version: 2.0 (0x3) Revision: 0xc5c
LMP Version: 2.0 (0x3) Subversion: 0xc5c
Manufacturer: Cambridge Silicon Radio (10)
hci1: Type: BR/EDR Bus: USB
BD Address: 00:0A:3A:82:07:9B ACL MTU: 1021:8 SCO MTU: 64:1
UP RUNNING PSCAN
RX bytes:111096 acl:153 sco:0 events:10041 errors:0
TX bytes:84344 acl:146 sco:0 commands:4974 errors:0
Features: 0xff 0xff 0x8f 0xfe 0x9b 0xff 0x79 0x83
Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
Link policy: RSWITCH HOLD SNIFF PARK
Link mode: SLAVE ACCEPT
Name: 'My PBX’
Class: 0x4a0100
Service Classes: Networking, Capturing, Telephony
Device Class: Computer, Uncategorized
HCI Version: 2.1 (0x4) Revision: 0x5183
LMP Version: 2.1 (0x4) Subversion: 0x420e
Manufacturer: Broadcom Corporation (15)
Phone:
iPhone 3GS: iOS 5.1.1
Virgin Android: adr2045, android 2.3.5, kernel 2.6.35.7-perf; hardware ver: VM9F_4A
Software
# rpm -qa | grep blue
bluez-libs-devel-4.66-1.el6.x86_64
bluez-compat-4.66-1.el6.x86_64
bluez-4.66-1.el6.x86_64
gnome-bluetooth-libs-2.28.6-8.el6.x86_64
gnome-bluetooth-2.28.6-8.el6.x86_64
pulseaudio-module-bluetooth-0.9.21-14.el6_3.x86_64
bluez-libs-4.66-1.el6.x86_64
cat /etc/redhat-release
CentOS release 6.4 (Final)
uname -a
Linux localhost.localdomain 2.6.32-358.6.1.el6.x86_64 #1 SMP Tue Apr 23 19:29:00 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
localhost*CLI> core show version
Asterisk 11.3.0 built by root @ localhost.localdomain on a x86_64 running Linux on 2013-05-14 14:56:11 UTC
below are testing
#hcitool dev
Devices:
hci0 00:15:83:15:A3:10
hci1 00:0A:3A:82:07:9B
hcitool scan
Scanning …
<iphone_bluetooth_address> 3GS
<android_bluetooth_address> JukeB
#./simple-agent.py hci0 <iphone_bluetooth_address>
RequestPinCode (/org/bluez/1423/hci1/dev_xx_xx_xx_xx_xx_xx)
Enter PIN Code: 0000
Release
New device (/org/bluez/1423/hci1/dev_xx_xx_xx_xx_xx_xx)
once I enter PIN code “0000” on server, and press enter, phone will have pop up screen ask pin, I type “0000” then press pair button, phone will say “Not connected”,during the prior, got below messages
tail -f /var/log/messages
May 23 07:35:18 localhost bluetoothd[1416]: link_key_request (sba=00:15:83:15:A3:10, dba=28:CF:DA:8B:D1:03)
May 23 07:35:18 localhost bluetoothd[1416]: pin_code_request (sba=00:15:83:15:A3:10, dba=28:CF:DA:8B:D1:03)
May 23 07:35:35 localhost bluetoothd[1416]: link_key_notify (sba=00:15:83:15:A3:10, dba=28:CF:DA:8B:D1:03, type=0)
May 23 07:35:35 localhost dbus-daemon: [system] Rejected send message, 1 matched rules; type=“method_return”, sender=":1.64" (uid=0 pid=3284 comm="/usr/bin/python) interface="(unset)" member="(unset)" error name="(unset)" requested_reply=0 destination=":1.1" (uid=0 pid=1410 comm="/usr/sbin/bluetoothd))
then if I force phone connected the server. will get below message on phone
’connection unsuccessful, “computer” is not supported.'
and on server got below messages
localhost kernel: l2cap_recv_acldata: Unexpected continuation frame (len 0)
then goto Asterisk.
localhost*CLI> module load chan_mobile
Loaded chan_mobile
localhost*CLI> mobile search
Address Name Usable Type Port
<iphone_bt_address> 3GS Yes Phone 8
edit /etc/asterisk/chan_mobile.conf
[adapter]
;bt adp hci0
id=blue
address=00:15:83:15:A3:10
[adapter]
;bt adp hci1
id=yellow
address=00:0A:3A:82:07:9B
[iPhone]
address=<iphone_bt_address>
port=8
context=incoming-mobile
adapter=yellow
then back to asterisk console, run below test.
localhost*CLI> mobile show devices
ID Address Group Adapter Connected State SMS
iPhone <iphone_bt_address> 0 blue No None Yes
did all test on other android phone, and other iPhone 4GS, all same issue.