AnsweredAssumed Answered

Cannot connect to BT HID devices

Question asked by frédéric on Apr 1, 2014

I am using Android 4.2.2 on a imx6q board, and the BT chipset is from TiWi (wl1271)

 

I can pair/connect via bluetooth to phone, computer, tablet, speaker, etc, no problem.

 

But for HID devices like keyboard or mouse, pairing works, but it cannot connect, I have this logcat:

 

D/BluetoothAdapterService(1098262784)( 3131): getState(): mAdapterProperties: com.android.bluetooth.btservice.AdapterProperties@41764228

D/BluetoothAdapterService(1098262784)( 3131): getState(): mAdapterProperties: com.android.bluetooth.btservice.AdapterProperties@41764228

D/BluetoothInputDevice( 2913): connect(00:07:61:D8:A0:C0)

D/BluetoothAdapterService(1098262784)( 3131): getState(): mAdapterProperties: com.android.bluetooth.btservice.AdapterProperties@41764228

W/bt-btif ( 3131): btif_hh_upstreams_evt: BTA_HH_OPN_EVT: handle=0, status =6

D/HidService( 3131): Connection state 00:07:61:D8:A0:C0: 0->1

W/HidService( 3131): no state change: 1

D/HidService( 3131): Connection state 00:07:61:D8:A0:C0: 1->0

D/BluetoothAdapterService(1098262784)( 3131): getState(): mAdapterProperties: com.android.bluetooth.btservice.AdapterProperties@41764228

W/audio_hw_primary( 2369): card 1, port 0 device 0x2

W/audio_hw_primary( 2369): rate 44100, channel 2 period_size 0x300

D/BluetoothAdapterProperties( 3131): CONNECTION_STATE_CHANGE: 00:07:61:D8:A0:C0: 0 -> 1

D/BluetoothAdapterService(1098262784)( 3131): getState(): mAdapterProperties: com.android.bluetooth.btservice.AdapterProperties@41764228

D/CachedBluetoothDevice( 2913): Command sent successfully:CONNECT Address:00:07:61:D8:A0:C0 Profile:HID

D/BluetoothAdapterProperties( 3131): CONNECTION_STATE_CHANGE: 00:07:61:D8:A0:C0: 1 -> 0

D/BluetoothAdapterService(1098262784)( 3131): getState(): mAdapterProperties: com.android.bluetooth.btservice.AdapterProperties@41764228

D/BluetoothAdapterService(1098262784)( 3131): Get Bonded Devices being called

D/BluetoothAdapterService(1098262784)( 3131): getState(): mAdapterProperties: com.android.bluetooth.btservice.AdapterProperties@41764228

D/BluetoothAdapterService(1098262784)( 3131): Get Bonded Devices being called

D/CachedBluetoothDevice( 2913): onProfileStateChanged: profile HID newProfileState 1

D/BluetoothAdapterService(1098262784)( 3131): getState(): mAdapterProperties: com.android.bluetooth.btservice.AdapterProperties@41764228

I/LocalBluetoothProfileManager( 2913): Failed to connect HID device

D/CachedBluetoothDevice( 2913): onProfileStateChanged: profile HID newProfileState 0

D/BluetoothAdapterService(1098262784)( 3131): getState(): mAdapterProperties: com.android.bluetooth.btservice.AdapterProperties@41764228

D/BluetoothAdapterService(1098262784)( 3131): getState(): mAdapterProperties: com.android.bluetooth.btservice.AdapterProperties@41764228

 

I tried 3 mice, none of them works with my board, but they all works with my phone/pc, so it is a software/config problem

 

any clues?

Outcomes