Hi,

I am trying to get a generic BT headset with only HSP/HFP working with
my android froyo device running kernel 2.6.32. The FS is based off
rowboat android repository.

I am able to pair with the headset, but the headset does not get
connected and I see rfcomm error in logcat.
The rfcomm error appears only for the headset.
But, I am able to pair a mobile phone with the device and transfer
files to and fro without any problem.

I'm not able to tell where the problem could be. Any help will be
appreciated.

Thanks and Regards,
Vishveshwar

Here is the relevant snippet from logcat:
E/BluetoothEventLoop.cpp(  924): event_filter: Received signal
org.bluez.Adapter:DeviceCreated from /org/bluez/1264/hci0
D/BluetoothService(  924): 00:EF:81:63:97:0C bond state 10 -> 11 (0)
E/BluetoothEventLoop.cpp(  924): event_filter: Received signal
org.bluez.Adapter:PropertyChanged from /org/bluez/1264/hci0
V/BluetoothEventRedirector( 1252): Received
android.bluetooth.device.action.BOND_STATE_CHANGED
E/BluetoothEventLoop.cpp(  924): event_filter: Received signal
org.bluez.Device:PropertyChanged from /org/bluez/1264/hci0/
dev_00_EF_81_63_97_0C
I/BluetoothEventLoop.cpp(  924): agent_event_filter: Received method
org.bluez.Agent:RequestPinCode
I/BluetoothEventLoop.cpp(  924): agent_event_filter: Received method
org.bluez.Agent:Release
E/BluetoothEventLoop.cpp(  924): event_filter: Received signal
org.bluez.Device:PropertyChanged from /org/bluez/1264/hci0/
dev_00_EF_81_63_97_0C
D/BluetoothService(  924): 00:EF:81:63:97:0C bond state 11 -> 12 (0)
V/BluetoothEventRedirector( 1252): Received
android.bluetooth.device.action.BOND_STATE_CHANGED
D/BT HSHFP( 1025): Saved priority 00:EF:81:63:97:0C = 100
W/BackupManagerService(  924): dataChanged but no participant
pkg='com.android.providers.settings' uid=1001
E/BluetoothEventLoop.cpp(  924): event_filter: Received signal
org.bluez.Device:PropertyChanged from /org/bluez/1264/hci0/
dev_00_EF_81_63_97_0C
D/BluetoothService(  924): updateDeviceServiceChannelCache(00:EF:
81:63:97:0C)
D/BluetoothService(  924):      uuid(system):
0000111e-0000-1000-8000-00805f9b34fb 3
D/BluetoothService(  924):      uuid(system):
00001108-0000-1000-8000-00805f9b34fb 2
V/BluetoothEventRedirector( 1252): Received
android.bleutooth.device.action.UUID
D/CachedBluetoothDevice( 1252): []
D/CachedBluetoothDevice( 1252): Adding: CONNECT Address:00:EF:
81:63:97:0C Profile:HEADSET TimeSent:not yet
D/CachedBluetoothDevice( 1252): processCommands:[CONNECT Address:00:EF:
81:63:97:0C Profile:HEADSET TimeSent:not yet]
D/BT HSHFP( 1025): Headset state 0 -> 1, result = 1
D/BT HSHFP( 1025): Saved priority 00:EF:81:63:97:0C = 1000
W/BackupManagerService(  924): dataChanged but no participant
pkg='com.android.providers.settings' uid=1001
D/BT HSHFP( 1025): SDP UUID: TYPE_HANDSFREE
I/BT HSHFP( 1025): Created RFCOMM socket fd 36.
I/BT HSHFP( 1025): async connect is in progress (Operation now in
progress)
D/CachedBluetoothDevice( 1252): Command sent successfully:CONNECT
Address:00:EF:81:63:97:0C Profile:HEADSET TimeSent:00:03:17
V/BluetoothEventRedirector( 1252): Received
android.bluetooth.headset.action.STATE_CHANGED
D/CachedBluetoothDevice( 1252): onProfileStateChanged:[CONNECT Address:
00:EF:81:63:97:0C Profile:HEADSET TimeSent:00:03:17]
E/BT HSHFP( 1025): RFCOMM async connect() error: Unknown error: 0 (0),
nr = 1
I/BT HSHFP( 1025): Created RFCOMM socket fd 36.
E/BT HSHFP( 1025): async connect error: Device or resource busy (16)
I/BT HSHFP( 1025): Failed to re-open RFCOMM socket!
I/BT HSHFP( 1025): Trying to connect to rfcomm socket again after 1
sec
D/dalvikvm( 1252): GC_FOR_MALLOC freed 9517 objects / 608648 bytes in
45ms
I/BT HSHFP( 1025): Created RFCOMM socket fd 36.
I/BT HSHFP( 1025): async connect is in progress (Operation now in
progress)
E/BT HSHFP( 1025): RFCOMM async connect() error: Unknown error: 0 (0),
nr = 1
I/BT HSHFP( 1025): Created RFCOMM socket fd 36.
E/BT HSHFP( 1025): async connect error: Device or resource busy (16)
I/BT HSHFP( 1025): Failed to re-open RFCOMM socket!
D/BT HSHFP( 1025): RFCOMM connection attempt took 1286 ms
W/BT HSHFP( 1025): headset.waitForAsyncConnect() error: -16
D/BT HSHFP( 1025): Rfcomm error
D/BT HSHFP( 1025): Headset state 1 -> 0, result = 0
V/BluetoothEventRedirector( 1252): Received
android.bluetooth.headset.action.STATE_CHANGED
I/BluetoothEventRedirector( 1252): Failed to connect BT headset
D/CachedBluetoothDevice( 1252): onProfileStateChanged:[CONNECT Address:
00:EF:81:63:97:0C Profile:HEADSET TimeSent:00:03:17]
D/CachedBluetoothDevice( 1252): processCommands:[]
E/BluetoothEventLoop.cpp(  924): event_filter: Received signal
org.bluez.Device:PropertyChanged from /org/bluez/1264/hci0/
dev_00_EF_81_63_97_0C

-- 
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting

Reply via email to