All of lore.kernel.org
 help / color / mirror / Atom feed
* bluetoothd crashes when connecting to XiaoMi RC
@ 2015-11-22  0:21 boyiliao
  2015-11-22  0:49 ` boyiliao
  0 siblings, 1 reply; 5+ messages in thread
From: boyiliao @ 2015-11-22  0:21 UTC (permalink / raw)
  To: linux-bluetooth, Majordomo

[-- Attachment #1: Type: text/plain, Size: 391 bytes --]

Hi,

I am using bluez 5.35 on Raspberry pi (kernel 4.1.6).

I try to using XiaoMi BLE remote control on Raspberry pi , I found when 
gatt.c gatt_read_char() function call gattrib.c g_attrib_ref () will cause 
bluetoothd crashed, because I think it acess a wrong address 
"attrib/gattrib.c:g_attrib_ref() 0x1c9210: g_attrib_ref=808464433"

the attachment is the bluetoothd log


BR,
Patrick 

[-- Attachment #2: bluez_XiMi_log.txt --]
[-- Type: text/plain, Size: 54481 bytes --]

bluetoothd[7711]: src/device.c:device_bonding_failed() status 14
bluetoothd[7711]: src/adapter.c:resume_discovery()
bluetoothd[7711]: src/device.c:btd_device_set_temporary() temporary 1
bluetoothd[7711]: src/device.c:device_remove() Removing device /org/bluez/hci0/dev_5C_31_3E_60_1F_1A
bluetoothd[7711]: src/service.c:change_state() 0x1bb288: device 5C:31:3E:60:1F:1A profile deviceinfo state changed: disconnected -> unavailable (0)
bluetoothd[7711]: attrib/gattrib.c:g_attrib_unref() 0x1c0e90: g_attrib_unref=2
bluetoothd[7711]: src/service.c:btd_service_unref() 0x1bb288: ref=0
bluetoothd[7711]: src/service.c:change_state() 0x1bc638: device 5C:31:3E:60:1F:1A profile Scan Parameters Client Driver state changed: disconnected -> unavailable (0)
bluetoothd[7711]: attrib/gattrib.c:g_attrib_unref() 0x1c0e90: g_attrib_unref=1
bluetoothd[7711]: src/service.c:btd_service_unref() 0x1bc638: ref=0
bluetoothd[7711]: src/service.c:change_state() 0x1bc690: device 5C:31:3E:60:1F:1A profile gap-profile state changed: disconnected -> unavailable (0)
bluetoothd[7711]: profiles/gap/gas.c:gap_driver_remove() GAP profile remove (5C:31:3E:60:1F:1A)
bluetoothd[7711]: src/service.c:btd_service_unref() 0x1bc690: ref=0
bluetoothd[7711]: src/service.c:change_state() 0x1bc710: device 5C:31:3E:60:1F:1A profile input-hog state changed: disconnected -> unavailable (0)
bluetoothd[7711]: profiles/input/hog.c:hog_remove() path /org/bluez/hci0/dev_5C_31_3E_60_1F_1A
bluetoothd[7711]: attrib/gattrib.c:g_attrib_unref() 0x1c0e90: g_attrib_unref=0
bluetoothd[7711]: src/service.c:btd_service_unref() 0x1bc710: ref=0
bluetoothd[7711]: src/device.c:btd_device_unref() Freeing device /org/bluez/hci0/dev_5C_31_3E_60_1F_1A
bluetoothd[7711]: src/device.c:device_free() 0x1badf8
bluetoothd[7711]: src/adapter.c:remove_whitelist_complete() 5C:31:3E:60:1F:1A removed from kernel whitelist
bluetoothd[7711]: src/adapter.c:start_discovery() sender :1.25
bluetoothd[7711]: src/adapter.c:update_discovery_filter()
bluetoothd[7711]: src/adapter.c:discovery_filter_to_mgmt_cp()
bluetoothd[7711]: src/adapter.c:trigger_start_discovery()
bluetoothd[7711]: src/adapter.c:cancel_passive_scanning()
bluetoothd[7711]: src/adapter.c:start_discovery_timeout()
bluetoothd[7711]: src/adapter.c:start_discovery_timeout() adapter->current_discovery_filter == 0
bluetoothd[7711]: src/adapter.c:start_discovery_complete() status 0x00
bluetoothd[7711]: src/adapter.c:discovering_callback() hci0 type 7 discovering 1 method 0
bluetoothd[7711]: src/adapter.c:device_found_callback() hci0 addr 5C:31:3E:60:1F:1A, rssi -65 flags 0x0000 eir_len 39
bluetoothd[7711]: src/device.c:device_create() dst 5C:31:3E:60:1F:1A
bluetoothd[7711]: src/device.c:device_new() address 5C:31:3E:60:1F:1A
bluetoothd[7711]: src/device.c:device_new() Creating device /org/bluez/hci0/dev_5C_31_3E_60_1F_1A
bluetoothd[7711]: src/device.c:device_set_legacy() legacy 0
bluetoothd[7711]: src/device.c:device_set_rssi_with_delta() rssi -65
bluetoothd[7711]: src/device.c:device_set_tx_power() tx_power 0
bluetoothd[7711]: src/adapter.c:device_found_callback() hci0 addr 5C:31:3E:60:1F:1A, rssi -66 flags 0x0000 eir_len 39
bluetoothd[7711]: src/device.c:device_set_legacy() legacy 0
bluetoothd[7711]: src/adapter.c:device_found_callback() hci0 addr 5C:31:3E:60:1F:1A, rssi -66 flags 0x0000 eir_len 39
bluetoothd[7711]: src/device.c:device_set_legacy() legacy 0
bluetoothd[7711]: src/adapter.c:device_found_callback() hci0 addr 5C:31:3E:60:1F:1A, rssi -59 flags 0x0000 eir_len 39
bluetoothd[7711]: src/device.c:device_set_legacy() legacy 0
bluetoothd[7711]: src/adapter.c:device_found_callback() hci0 addr 5C:31:3E:60:1F:1A, rssi -62 flags 0x0000 eir_len 39
bluetoothd[7711]: src/device.c:device_set_legacy() legacy 0
bluetoothd[7711]: src/adapter.c:device_found_callback() hci0 addr 5C:31:3E:60:1F:1A, rssi -64 flags 0x0000 eir_len 39
bluetoothd[7711]: src/device.c:device_set_legacy() legacy 0
bluetoothd[7711]: src/adapter.c:device_found_callback() hci0 addr 5C:31:3E:60:1F:1A, rssi -59 flags 0x0000 eir_len 39
bluetoothd[7711]: src/device.c:device_set_legacy() legacy 0
bluetoothd[7711]: src/adapter.c:device_found_callback() hci0 addr 5C:31:3E:60:1F:1A, rssi -59 flags 0x0000 eir_len 39
bluetoothd[7711]: src/device.c:device_set_legacy() legacy 0
bluetoothd[7711]: src/adapter.c:device_found_callback() hci0 addr E0:CE:C3:10:D4:08, rssi -74 flags 0x0000 eir_len 23
bluetoothd[7711]: src/device.c:device_create() dst E0:CE:C3:10:D4:08
bluetoothd[7711]: src/device.c:device_new() address E0:CE:C3:10:D4:08
bluetoothd[7711]: src/device.c:device_new() Creating device /org/bluez/hci0/dev_E0_CE_C3_10_D4_08
bluetoothd[7711]: src/device.c:device_set_legacy() legacy 0
bluetoothd[7711]: src/device.c:device_set_rssi_with_delta() rssi -74
bluetoothd[7711]: src/device.c:device_set_tx_power() tx_power 4
bluetoothd[7711]: src/device.c:device_set_class() /org/bluez/hci0/dev_E0_CE_C3_10_D4_08 0x02010C
bluetoothd[7711]: src/adapter.c:device_found_callback() hci0 addr 00:15:00:84:D0:77, rssi -49 flags 0x0000 eir_len 23
bluetoothd[7711]: src/device.c:device_create() dst 00:15:00:84:D0:77
bluetoothd[7711]: src/device.c:device_new() address 00:15:00:84:D0:77
bluetoothd[7711]: src/device.c:device_new() Creating device /org/bluez/hci0/dev_00_15_00_84_D0_77
bluetoothd[7711]: src/device.c:device_set_legacy() legacy 0
bluetoothd[7711]: src/device.c:device_set_rssi_with_delta() rssi -49
bluetoothd[7711]: src/device.c:device_set_tx_power() tx_power 4
bluetoothd[7711]: src/device.c:device_set_class() /org/bluez/hci0/dev_00_15_00_84_D0_77 0x3E010C
bluetoothd[7711]: src/adapter.c:device_found_callback() hci0 addr 5C:31:3E:60:1F:1A, rssi -59 flags 0x0000 eir_len 39
bluetoothd[7711]: src/device.c:device_set_legacy() legacy 0
bluetoothd[7711]: src/adapter.c:device_found_callback() hci0 addr E0:CE:C3:10:D4:08, rssi -67 flags 0x0000 eir_len 23
bluetoothd[7711]: src/device.c:device_set_legacy() legacy 0
bluetoothd[7711]: src/adapter.c:device_found_callback() hci0 addr 5C:31:3E:60:1F:1A, rssi -66 flags 0x0000 eir_len 39
bluetoothd[7711]: src/device.c:device_set_legacy() legacy 0
bluetoothd[7711]: src/adapter.c:device_found_callback() hci0 addr 5C:31:3E:60:1F:1A, rssi -62 flags 0x0000 eir_len 39
bluetoothd[7711]: src/device.c:device_set_legacy() legacy 0
bluetoothd[7711]: src/adapter.c:device_found_callback() hci0 addr 5C:31:3E:60:1F:1A, rssi -59 flags 0x0000 eir_len 39
bluetoothd[7711]: src/device.c:device_set_legacy() legacy 0
bluetoothd[7711]: src/adapter.c:device_found_callback() hci0 addr 5C:31:3E:60:1F:1A, rssi -62 flags 0x0000 eir_len 39
bluetoothd[7711]: src/device.c:device_set_legacy() legacy 0
bluetoothd[7711]: src/adapter.c:device_found_callback() hci0 addr 5C:31:3E:60:1F:1A, rssi -62 flags 0x0000 eir_len 39
bluetoothd[7711]: src/device.c:device_set_legacy() legacy 0
bluetoothd[7711]: src/adapter.c:device_found_callback() hci0 addr 5C:31:3E:60:1F:1A, rssi -59 flags 0x0000 eir_len 39
bluetoothd[7711]: src/device.c:device_set_legacy() legacy 0
bluetoothd[7711]: src/adapter.c:device_found_callback() hci0 addr 5C:31:3E:60:1F:1A, rssi -62 flags 0x0000 eir_len 39
bluetoothd[7711]: src/device.c:device_set_legacy() legacy 0
bluetoothd[7711]: src/adapter.c:device_found_callback() hci0 addr 5C:31:3E:60:1F:1A, rssi -66 flags 0x0000 eir_len 39
bluetoothd[7711]: src/device.c:device_set_legacy() legacy 0
bluetoothd[7711]: src/adapter.c:device_found_callback() hci0 addr 5C:31:3E:60:1F:1A, rssi -66 flags 0x0000 eir_len 39
bluetoothd[7711]: src/device.c:device_set_legacy() legacy 0
bluetoothd[7711]: src/adapter.c:device_found_callback() hci0 addr 5C:31:3E:60:1F:1A, rssi -59 flags 0x0000 eir_len 39
bluetoothd[7711]: src/device.c:device_set_legacy() legacy 0
bluetoothd[7711]: src/adapter.c:device_found_callback() hci0 addr 5C:31:3E:60:1F:1A, rssi -66 flags 0x0000 eir_len 39
bluetoothd[7711]: src/device.c:device_set_legacy() legacy 0
bluetoothd[7711]: src/adapter.c:device_found_callback() hci0 addr 5C:31:3E:60:1F:1A, rssi -59 flags 0x0000 eir_len 39
bluetoothd[7711]: src/device.c:device_set_legacy() legacy 0
bluetoothd[7711]: src/adapter.c:device_found_callback() hci0 addr 5C:31:3E:60:1F:1A, rssi -66 flags 0x0000 eir_len 39
bluetoothd[7711]: src/device.c:device_set_legacy() legacy 0
bluetoothd[7711]: src/adapter.c:device_found_callback() hci0 addr 5C:31:3E:60:1F:1A, rssi -59 flags 0x0000 eir_len 39
bluetoothd[7711]: src/device.c:device_set_legacy() legacy 0
bluetoothd[7711]: src/adapter.c:device_found_callback() hci0 addr 5C:31:3E:60:1F:1A, rssi -59 flags 0x0000 eir_len 39
bluetoothd[7711]: src/device.c:device_set_legacy() legacy 0
bluetoothd[7711]: src/adapter.c:device_found_callback() hci0 addr 5C:31:3E:60:1F:1A, rssi -59 flags 0x0000 eir_len 39
bluetoothd[7711]: src/device.c:device_set_legacy() legacy 0
bluetoothd[7711]: src/adapter.c:device_found_callback() hci0 addr 5C:31:3E:60:1F:1A, rssi -62 flags 0x0000 eir_len 39
bluetoothd[7711]: src/device.c:device_set_legacy() legacy 0
bluetoothd[7711]: src/adapter.c:device_found_callback() hci0 addr 5C:31:3E:60:1F:1A, rssi -62 flags 0x0000 eir_len 39
bluetoothd[7711]: src/device.c:device_set_legacy() legacy 0
bluetoothd[7711]: src/adapter.c:device_found_callback() hci0 addr 5C:31:3E:60:1F:1A, rssi -67 flags 0x0000 eir_len 39
bluetoothd[7711]: src/device.c:device_set_legacy() legacy 0
bluetoothd[7711]: src/adapter.c:device_found_callback() hci0 addr E0:CE:C3:10:D4:08, rssi -68 flags 0x0000 eir_len 23
bluetoothd[7711]: src/device.c:device_set_legacy() legacy 0
bluetoothd[7711]: src/adapter.c:device_found_callback() hci0 addr 5C:31:3E:60:1F:1A, rssi -65 flags 0x0000 eir_len 39
bluetoothd[7711]: src/device.c:device_set_legacy() legacy 0
bluetoothd[7711]: src/adapter.c:device_found_callback() hci0 addr 5C:31:3E:60:1F:1A, rssi -53 flags 0x0000 eir_len 39
bluetoothd[7711]: src/device.c:device_set_legacy() legacy 0
bluetoothd[7711]: src/device.c:device_set_rssi_with_delta() rssi -53 delta 12
bluetoothd[7711]: src/adapter.c:device_found_callback() hci0 addr 5C:31:3E:60:1F:1A, rssi -50 flags 0x0000 eir_len 39
bluetoothd[7711]: src/device.c:device_set_legacy() legacy 0
bluetoothd[7711]: src/adapter.c:device_found_callback() hci0 addr 5C:31:3E:60:1F:1A, rssi -57 flags 0x0000 eir_len 39
bluetoothd[7711]: src/device.c:device_set_legacy() legacy 0
bluetoothd[7711]: src/adapter.c:device_found_callback() hci0 addr 5C:31:3E:60:1F:1A, rssi -50 flags 0x0000 eir_len 39
bluetoothd[7711]: src/device.c:device_set_legacy() legacy 0
bluetoothd[7711]: src/adapter.c:device_found_callback() hci0 addr 5C:31:3E:60:1F:1A, rssi -53 flags 0x0000 eir_len 39
bluetoothd[7711]: src/device.c:device_set_legacy() legacy 0
bluetoothd[7711]: src/adapter.c:device_found_callback() hci0 addr 5C:31:3E:60:1F:1A, rssi -52 flags 0x0000 eir_len 39
bluetoothd[7711]: src/device.c:device_set_legacy() legacy 0
bluetoothd[7711]: src/adapter.c:device_found_callback() hci0 addr 5C:31:3E:60:1F:1A, rssi -45 flags 0x0000 eir_len 39
bluetoothd[7711]: src/device.c:device_set_legacy() legacy 0
bluetoothd[7711]: src/device.c:device_set_rssi_with_delta() rssi -45 delta 8
bluetoothd[7711]: src/adapter.c:device_found_callback() hci0 addr 5C:31:3E:60:1F:1A, rssi -63 flags 0x0000 eir_len 39
bluetoothd[7711]: src/device.c:device_set_legacy() legacy 0
bluetoothd[7711]: src/device.c:device_set_rssi_with_delta() rssi -63 delta 18
bluetoothd[7711]: src/adapter.c:device_found_callback() hci0 addr 5C:31:3E:60:1F:1A, rssi -53 flags 0x0000 eir_len 39
bluetoothd[7711]: src/device.c:device_set_legacy() legacy 0
bluetoothd[7711]: src/device.c:device_set_rssi_with_delta() rssi -53 delta 10
bluetoothd[7711]: src/adapter.c:device_found_callback() hci0 addr 5C:31:3E:60:1F:1A, rssi -51 flags 0x0000 eir_len 39
bluetoothd[7711]: src/device.c:device_set_legacy() legacy 0
bluetoothd[7711]: src/adapter.c:device_found_callback() hci0 addr 48:5D:60:21:82:7F, rssi -74 flags 0x0000 eir_len 38
bluetoothd[7711]: src/device.c:device_create() dst 48:5D:60:21:82:7F
bluetoothd[7711]: src/device.c:device_new() address 48:5D:60:21:82:7F
bluetoothd[7711]: src/device.c:device_new() Creating device /org/bluez/hci0/dev_48_5D_60_21_82_7F
bluetoothd[7711]: src/device.c:device_set_legacy() legacy 0
bluetoothd[7711]: src/device.c:device_set_rssi_with_delta() rssi -74
bluetoothd[7711]: src/device.c:device_set_tx_power() tx_power 4
bluetoothd[7711]: src/device.c:device_set_class() /org/bluez/hci0/dev_48_5D_60_21_82_7F 0x6E0100
bluetoothd[7711]: src/adapter.c:device_found_callback() hci0 addr 5C:31:3E:60:1F:1A, rssi -53 flags 0x0000 eir_len 39
bluetoothd[7711]: src/device.c:device_set_legacy() legacy 0
bluetoothd[7711]: src/adapter.c:device_found_callback() hci0 addr 5C:31:3E:60:1F:1A, rssi -61 flags 0x0000 eir_len 39
bluetoothd[7711]: src/device.c:device_set_legacy() legacy 0
bluetoothd[7711]: src/device.c:device_set_rssi_with_delta() rssi -61 delta 8
bluetoothd[7711]: src/adapter.c:device_found_callback() hci0 addr 5C:31:3E:60:1F:1A, rssi -52 flags 0x0000 eir_len 39
bluetoothd[7711]: src/device.c:device_set_legacy() legacy 0
bluetoothd[7711]: src/device.c:device_set_rssi_with_delta() rssi -52 delta 9
bluetoothd[7711]: src/adapter.c:device_found_callback() hci0 addr E0:91:53:4D:16:84, rssi -83 flags 0x0000 eir_len 23
bluetoothd[7711]: src/device.c:device_create() dst E0:91:53:4D:16:84
bluetoothd[7711]: src/device.c:device_new() address E0:91:53:4D:16:84
bluetoothd[7711]: src/device.c:device_new() Creating device /org/bluez/hci0/dev_E0_91_53_4D_16_84
bluetoothd[7711]: src/device.c:device_set_legacy() legacy 0
bluetoothd[7711]: src/device.c:device_set_rssi_with_delta() rssi -83
bluetoothd[7711]: src/device.c:device_set_tx_power() tx_power 4
bluetoothd[7711]: src/device.c:device_set_class() /org/bluez/hci0/dev_E0_91_53_4D_16_84 0x7E010C
bluetoothd[7711]: src/adapter.c:device_found_callback() hci0 addr 5C:31:3E:60:1F:1A, rssi -52 flags 0x0000 eir_len 39
bluetoothd[7711]: src/device.c:device_set_legacy() legacy 0
bluetoothd[7711]: src/adapter.c:device_found_callback() hci0 addr 5C:31:3E:60:1F:1A, rssi -52 flags 0x0000 eir_len 39
bluetoothd[7711]: src/device.c:device_set_legacy() legacy 0
bluetoothd[7711]: src/adapter.c:device_found_callback() hci0 addr 5C:31:3E:60:1F:1A, rssi -60 flags 0x0000 eir_len 39
bluetoothd[7711]: src/device.c:device_set_legacy() legacy 0
bluetoothd[7711]: src/device.c:device_set_rssi_with_delta() rssi -60 delta 8
bluetoothd[7711]: src/adapter.c:device_found_callback() hci0 addr 5C:31:3E:60:1F:1A, rssi -51 flags 0x0000 eir_len 39
bluetoothd[7711]: src/device.c:device_set_legacy() legacy 0
bluetoothd[7711]: src/device.c:device_set_rssi_with_delta() rssi -51 delta 9
bluetoothd[7711]: src/adapter.c:device_found_callback() hci0 addr 5C:31:3E:60:1F:1A, rssi -52 flags 0x0000 eir_len 39
bluetoothd[7711]: src/device.c:device_set_legacy() legacy 0
bluetoothd[7711]: src/adapter.c:device_found_callback() hci0 addr 5C:31:3E:60:1F:1A, rssi -66 flags 0x0000 eir_len 39
bluetoothd[7711]: src/device.c:device_set_legacy() legacy 0
bluetoothd[7711]: src/device.c:device_set_rssi_with_delta() rssi -66 delta 15
bluetoothd[7711]: src/adapter.c:device_found_callback() hci0 addr 5C:31:3E:60:1F:1A, rssi -53 flags 0x0000 eir_len 39
bluetoothd[7711]: src/device.c:device_set_legacy() legacy 0
bluetoothd[7711]: src/device.c:device_set_rssi_with_delta() rssi -53 delta 13
bluetoothd[7711]: src/adapter.c:device_found_callback() hci0 addr 5C:31:3E:60:1F:1A, rssi -53 flags 0x0000 eir_len 39
bluetoothd[7711]: src/device.c:device_set_legacy() legacy 0
bluetoothd[7711]: src/adapter.c:device_found_callback() hci0 addr 5C:31:3E:60:1F:1A, rssi -58 flags 0x0000 eir_len 39
bluetoothd[7711]: src/device.c:device_set_legacy() legacy 0
bluetoothd[7711]: src/adapter.c:device_found_callback() hci0 addr 00:15:00:84:D0:77, rssi -43 flags 0x0000 eir_len 23
bluetoothd[7711]: src/device.c:device_set_legacy() legacy 0
bluetoothd[7711]: src/adapter.c:device_found_callback() hci0 addr 00:15:00:84:D0:77, rssi -46 flags 0x0000 eir_len 23
bluetoothd[7711]: src/device.c:device_set_legacy() legacy 0
bluetoothd[7711]: src/adapter.c:device_found_callback() hci0 addr 5C:31:3E:60:1F:1A, rssi -57 flags 0x0000 eir_len 39
bluetoothd[7711]: src/device.c:device_set_legacy() legacy 0
bluetoothd[7711]: src/adapter.c:device_found_callback() hci0 addr 5C:31:3E:60:1F:1A, rssi -58 flags 0x0000 eir_len 39
bluetoothd[7711]: src/device.c:device_set_legacy() legacy 0
bluetoothd[7711]: src/adapter.c:device_found_callback() hci0 addr 5C:31:3E:60:1F:1A, rssi -57 flags 0x0000 eir_len 39
bluetoothd[7711]: src/device.c:device_set_legacy() legacy 0
bluetoothd[7711]: src/adapter.c:device_found_callback() hci0 addr 5C:31:3E:60:1F:1A, rssi -57 flags 0x0000 eir_len 39
bluetoothd[7711]: src/device.c:device_set_legacy() legacy 0
bluetoothd[7711]: src/adapter.c:device_found_callback() hci0 addr 5C:31:3E:60:1F:1A, rssi -59 flags 0x0000 eir_len 39
bluetoothd[7711]: src/device.c:device_set_legacy() legacy 0
bluetoothd[7711]: src/adapter.c:device_found_callback() hci0 addr 5C:31:3E:60:1F:1A, rssi -59 flags 0x0000 eir_len 39
bluetoothd[7711]: src/device.c:device_set_legacy() legacy 0
bluetoothd[7711]: src/adapter.c:stop_discovery() sender :1.25
bluetoothd[7711]: src/adapter.c:discovery_destroy() owner :1.25
bluetoothd[7711]: src/device.c:device_set_rssi_with_delta() rssi 0
bluetoothd[7711]: src/device.c:device_set_tx_power() tx_power 127
bluetoothd[7711]: src/device.c:device_set_rssi_with_delta() rssi 0
bluetoothd[7711]: src/device.c:device_set_tx_power() tx_power 127
bluetoothd[7711]: src/device.c:device_set_rssi_with_delta() rssi 0
bluetoothd[7711]: src/device.c:device_set_tx_power() tx_power 127
bluetoothd[7711]: src/device.c:device_set_rssi_with_delta() rssi 0
bluetoothd[7711]: src/device.c:device_set_tx_power() tx_power 127
bluetoothd[7711]: src/device.c:device_set_rssi_with_delta() rssi 0
bluetoothd[7711]: src/device.c:device_set_tx_power() tx_power 127
bluetoothd[7711]: src/adapter.c:device_found_callback() hci0 addr 00:15:00:84:D0:77, rssi -39 flags 0x0000 eir_len 23
bluetoothd[7711]: src/adapter.c:device_found_callback() hci0 addr 5C:31:3E:60:1F:1A, rssi -59 flags 0x0000 eir_len 39
bluetoothd[7711]: src/adapter.c:device_found_callback() hci0 addr 20:16:D8:69:86:C2, rssi -81 flags 0x0001 eir_len 5
bluetoothd[7711]: src/adapter.c:discovering_callback() hci0 type 7 discovering 0 method 0
bluetoothd[7711]: src/adapter.c:trigger_passive_scanning()
bluetoothd[7711]: src/adapter.c:stop_discovery_complete() status 0x00
bluetoothd[7711]: src/adapter.c:trigger_passive_scanning()
bluetoothd[7711]: src/device.c:btd_device_set_temporary() temporary 0
bluetoothd[7711]: src/device.c:device_connect_le() Connection attempt to: 5C:31:3E:60:1F:1A
bluetoothd[7711]: src/adapter.c:connected_callback() hci0 device 5C:31:3E:60:1F:1A connected eir_len 0
bluetoothd[7711]: attrib/gattrib.c:g_attrib_ref() 0x1c60f0: g_attrib_ref=1
bluetoothd[7711]: src/device.c:gatt_debug() MTU exchange complete, with MTU: 23
bluetoothd[7711]: src/device.c:gatt_debug() Primary services found: 9
bluetoothd[7711]: src/device.c:gatt_debug() start: 0x0001, end: 0x000b, uuid: 00001800-0000-1000-8000-00805f9b34fb
bluetoothd[7711]: src/device.c:gatt_debug() start: 0x000c, end: 0x000f, uuid: 00001801-0000-1000-8000-00805f9b34fb
bluetoothd[7711]: src/device.c:gatt_debug() start: 0x0010, end: 0x0016, uuid: 0000180a-0000-1000-8000-00805f9b34fb
bluetoothd[7711]: src/device.c:gatt_debug() start: 0x0017, end: 0x001b, uuid: 0000180f-0000-1000-8000-00805f9b34fb
bluetoothd[7711]: src/device.c:gatt_debug() start: 0x001c, end: 0x0021, uuid: 00001813-0000-1000-8000-00805f9b34fb
bluetoothd[7711]: src/device.c:gatt_debug() start: 0x0022, end: 0x0070, uuid: 00001812-0000-1000-8000-00805f9b34fb
bluetoothd[7711]: src/device.c:gatt_debug() start: 0x0071, end: 0x0073, uuid: 00001803-0000-1000-8000-00805f9b34fb
bluetoothd[7711]: src/device.c:gatt_debug() start: 0x0074, end: 0x0076, uuid: 00001802-0000-1000-8000-00805f9b34fb
bluetoothd[7711]: src/device.c:gatt_debug() start: 0x0077, end: 0xffff, uuid: 00001804-0000-1000-8000-00805f9b34fb
bluetoothd[7711]: src/device.c:gatt_debug() Secondary service discovery failed. ATT ECODE: 0x10
bluetoothd[7711]: src/adapter.c:new_irk_callback() hci0 new IRK for 5C:31:3E:60:1F:1A RPA 00:00:00:00:00:00
bluetoothd[7711]: src/adapter.c:new_csrk_callback() hci0 new CSRK for 5C:31:3E:60:1F:1A type 1
bluetoothd[7711]: src/adapter.c:new_csrk_callback() hci0 new CSRK for 5C:31:3E:60:1F:1A type 0
bluetoothd[7711]: src/adapter.c:new_long_term_key_callback() hci0 new LTK for 5C:31:3E:60:1F:1A type 0 enc_size 16
bluetoothd[7711]: src/device.c:device_set_bonded()
bluetoothd[7711]: src/device.c:device_bonding_complete() bonding (nil) status 0x00
bluetoothd[7711]: src/adapter.c:resume_discovery()
bluetoothd[7711]: src/adapter.c:new_long_term_key_callback() hci0 new LTK for 5C:31:3E:60:1F:1A type 0 enc_size 16
bluetoothd[7711]: src/device.c:device_set_bonded()
bluetoothd[7711]: src/device.c:device_bonding_complete() bonding (nil) status 0x00
bluetoothd[7711]: src/adapter.c:resume_discovery()
bluetoothd[7711]: src/device.c:gatt_debug() Included services found: 1
bluetoothd[7711]: src/device.c:gatt_debug() handle: 0x0023, start: 0x0017, end: 0x001b,uuid: 0000180f-0000-1000-8000-0080
bluetoothd[7711]: src/device.c:gatt_debug() Characteristics found: 5
bluetoothd[7711]: src/device.c:gatt_debug() start: 0x0002, end: 0x0003, value: 0x0003, props: 0x02, uuid: 00002a00-0000-1
bluetoothd[7711]: src/device.c:gatt_debug() start: 0x0004, end: 0x0005, value: 0x0005, props: 0x02, uuid: 00002a01-0000-1
bluetoothd[7711]: src/device.c:gatt_debug() start: 0x0006, end: 0x0007, value: 0x0007, props: 0x0a, uuid: 00002a02-0000-1
bluetoothd[7711]: src/device.c:gatt_debug() start: 0x0008, end: 0x0009, value: 0x0009, props: 0x08, uuid: 00002a03-0000-1
bluetoothd[7711]: src/device.c:gatt_debug() start: 0x000a, end: 0x000b, value: 0x000b, props: 0x02, uuid: 00002a04-0000-1
bluetoothd[7711]: src/device.c:gatt_debug() Characteristics found: 1
bluetoothd[7711]: src/device.c:gatt_debug() start: 0x000d, end: 0x000f, value: 0x000e, props: 0x20, uuid: 00002a05-0000-1
bluetoothd[7711]: src/device.c:gatt_debug() Descriptors found: 1
bluetoothd[7711]: src/device.c:gatt_debug() handle: 0x000f, uuid: 00002902-0000-1000-8000-00805f9b34fb
bluetoothd[7711]: src/device.c:gatt_debug() Characteristics found: 3
bluetoothd[7711]: src/device.c:gatt_debug() start: 0x0011, end: 0x0012, value: 0x0012, props: 0x02, uuid: 00002a25-0000-1
bluetoothd[7711]: src/device.c:gatt_debug() start: 0x0013, end: 0x0014, value: 0x0014, props: 0x02, uuid: 00002a28-0000-1
bluetoothd[7711]: src/device.c:gatt_debug() start: 0x0015, end: 0x0016, value: 0x0016, props: 0x02, uuid: 00002a50-0000-1
bluetoothd[7711]: src/device.c:gatt_debug() Characteristics found: 1
bluetoothd[7711]: src/device.c:gatt_debug() start: 0x0018, end: 0x001b, value: 0x0019, props: 0x12, uuid: 00002a19-0000-1
bluetoothd[7711]: src/device.c:gatt_debug() Descriptors found: 2
bluetoothd[7711]: src/device.c:gatt_debug() handle: 0x001a, uuid: 00002902-0000-1000-8000-00805f9b34fb
bluetoothd[7711]: src/device.c:gatt_debug() handle: 0x001b, uuid: 00002908-0000-1000-8000-00805f9b34fb
bluetoothd[7711]: src/device.c:gatt_debug() Characteristics found: 2
bluetoothd[7711]: src/device.c:gatt_debug() start: 0x001d, end: 0x001e, value: 0x001e, props: 0x04, uuid: 00002a4f-0000-1
bluetoothd[7711]: src/device.c:gatt_debug() start: 0x001f, end: 0x0021, value: 0x0020, props: 0x10, uuid: 00002a31-0000-1
bluetoothd[7711]: src/device.c:gatt_debug() Descriptors found: 1
bluetoothd[7711]: src/device.c:gatt_debug() handle: 0x0021, uuid: 00002902-0000-1000-8000-00805f9b34fb
bluetoothd[7711]: src/adapter.c:new_conn_param() hci0 5C:31:3E:60:1F:1A (1) min 0x0010 max 0x0010 latency 0x012b timeout 0x0c1c
bluetoothd[7711]: src/device.c:gatt_debug() Characteristics found: 26
bluetoothd[7711]: src/device.c:gatt_debug() start: 0x0024, end: 0x0025, value: 0x0025, props: 0x02, uuid: 00002a4a-0000-1
bluetoothd[7711]: src/device.c:gatt_debug() start: 0x0026, end: 0x0027, value: 0x0027, props: 0x04, uuid: 00002a4c-0000-1
bluetoothd[7711]: src/device.c:gatt_debug() start: 0x0028, end: 0x0029, value: 0x0029, props: 0x06, uuid: 00002a4e-0000-1
bluetoothd[7711]: src/device.c:gatt_debug() start: 0x002a, end: 0x002c, value: 0x002b, props: 0x02, uuid: 00002a4b-0000-1
bluetoothd[7711]: src/device.c:gatt_debug() start: 0x002d, end: 0x0030, value: 0x002e, props: 0x12, uuid: 00002a4d-0000-1
bluetoothd[7711]: src/device.c:gatt_debug() start: 0x0031, end: 0x0034, value: 0x0032, props: 0x12, uuid: 00002a4d-0000-1
bluetoothd[7711]: src/device.c:gatt_debug() start: 0x0035, end: 0x0038, value: 0x0036, props: 0x12, uuid: 00002a4d-0000-1
bluetoothd[7711]: src/device.c:gatt_debug() start: 0x0039, end: 0x003b, value: 0x003a, props: 0x0e, uuid: 00002a4d-0000-1
bluetoothd[7711]: src/device.c:gatt_debug() start: 0x003c, end: 0x003e, value: 0x003d, props: 0x12, uuid: 00002a22-0000-1
bluetoothd[7711]: src/device.c:gatt_debug() start: 0x003f, end: 0x0040, value: 0x0040, props: 0x0a, uuid: 00002a32-0000-1
bluetoothd[7711]: src/device.c:gatt_debug() start: 0x0041, end: 0x0043, value: 0x0042, props: 0x12, uuid: 00002a33-0000-1
bluetoothd[7711]: src/device.c:gatt_debug() start: 0x0044, end: 0x0046, value: 0x0045, props: 0x0a, uuid: 00002a4d-0000-1
bluetoothd[7711]: src/device.c:gatt_debug() start: 0x0047, end: 0x0049, value: 0x0048, props: 0x0a, uuid: 00002a4d-0000-1
bluetoothd[7711]: src/device.c:gatt_debug() start: 0x004a, end: 0x004c, value: 0x004b, props: 0x0a, uuid: 00002a4d-0000-1
bluetoothd[7711]: src/device.c:gatt_debug() start: 0x004d, end: 0x004f, value: 0x004e, props: 0x0a, uuid: 00002a4d-0000-1
bluetoothd[7711]: src/device.c:gatt_debug() start: 0x0050, end: 0x0052, value: 0x0051, props: 0x0a, uuid: 00002a4d-0000-1
bluetoothd[7711]: src/device.c:gatt_debug() start: 0x0053, end: 0x0055, value: 0x0054, props: 0x0a, uuid: 00002a4d-0000-1
bluetoothd[7711]: src/device.c:gatt_debug() start: 0x0056, end: 0x0058, value: 0x0057, props: 0x0a, uuid: 00002a4d-0000-1
bluetoothd[7711]: src/device.c:gatt_debug() start: 0x0059, end: 0x005b, value: 0x005a, props: 0x0a, uuid: 00002a4d-0000-1
bluetoothd[7711]: src/device.c:gatt_debug() start: 0x005c, end: 0x005e, value: 0x005d, props: 0x0a, uuid: 00002a4d-0000-1
bluetoothd[7711]: src/device.c:gatt_debug() start: 0x005f, end: 0x0061, value: 0x0060, props: 0x0a, uuid: 00002a4d-0000-1
bluetoothd[7711]: src/device.c:gatt_debug() start: 0x0062, end: 0x0064, value: 0x0063, props: 0x0a, uuid: 00002a4d-0000-1
bluetoothd[7711]: src/device.c:gatt_debug() start: 0x0065, end: 0x0067, value: 0x0066, props: 0x0a, uuid: 00002a4d-0000-1
bluetoothd[7711]: src/device.c:gatt_debug() start: 0x0068, end: 0x006a, value: 0x0069, props: 0x0a, uuid: 00002a4d-0000-1
bluetoothd[7711]: src/device.c:gatt_debug() start: 0x006b, end: 0x006d, value: 0x006c, props: 0x0a, uuid: 00002a4d-0000-1
bluetoothd[7711]: src/device.c:gatt_debug() start: 0x006e, end: 0x0070, value: 0x006f, props: 0x0a, uuid: 00002a4d-0000-1
bluetoothd[7711]: src/device.c:gatt_debug() Descriptors found: 1
bluetoothd[7711]: src/device.c:gatt_debug() handle: 0x002c, uuid: 00002907-0000-1000-8000-00805f9b34fb
bluetoothd[7711]: src/device.c:gatt_debug() Descriptors found: 2
bluetoothd[7711]: src/device.c:gatt_debug() handle: 0x002f, uuid: 00002902-0000-1000-8000-00805f9b34fb
bluetoothd[7711]: src/device.c:gatt_debug() handle: 0x0030, uuid: 00002908-0000-1000-8000-00805f9b34fb
bluetoothd[7711]: src/device.c:gatt_debug() Descriptors found: 2
bluetoothd[7711]: src/device.c:gatt_debug() handle: 0x0033, uuid: 00002902-0000-1000-8000-00805f9b34fb
bluetoothd[7711]: src/device.c:gatt_debug() handle: 0x0034, uuid: 00002908-0000-1000-8000-00805f9b34fb
bluetoothd[7711]: src/device.c:gatt_debug() Descriptors found: 2
bluetoothd[7711]: src/device.c:gatt_debug() handle: 0x0037, uuid: 00002902-0000-1000-8000-00805f9b34fb
bluetoothd[7711]: src/device.c:gatt_debug() handle: 0x0038, uuid: 00002908-0000-1000-8000-00805f9b34fb
bluetoothd[7711]: src/device.c:gatt_debug() Descriptors found: 1
bluetoothd[7711]: src/device.c:gatt_debug() handle: 0x003b, uuid: 00002908-0000-1000-8000-00805f9b34fb
bluetoothd[7711]: src/device.c:gatt_debug() Descriptors found: 1
bluetoothd[7711]: src/device.c:gatt_debug() handle: 0x003e, uuid: 00002902-0000-1000-8000-00805f9b34fb
bluetoothd[7711]: src/device.c:gatt_debug() Descriptors found: 1
bluetoothd[7711]: src/device.c:gatt_debug() handle: 0x0043, uuid: 00002902-0000-1000-8000-00805f9b34fb
bluetoothd[7711]: src/device.c:gatt_debug() Descriptors found: 1
bluetoothd[7711]: src/device.c:gatt_debug() handle: 0x0046, uuid: 00002908-0000-1000-8000-00805f9b34fb
bluetoothd[7711]: src/device.c:gatt_debug() Descriptors found: 1
bluetoothd[7711]: src/device.c:gatt_debug() handle: 0x0049, uuid: 00002908-0000-1000-8000-00805f9b34fb
bluetoothd[7711]: src/device.c:gatt_debug() Descriptors found: 1
bluetoothd[7711]: src/device.c:gatt_debug() handle: 0x004c, uuid: 00002908-0000-1000-8000-00805f9b34fb
bluetoothd[7711]: src/device.c:gatt_debug() Descriptors found: 1
bluetoothd[7711]: src/device.c:gatt_debug() handle: 0x004f, uuid: 00002908-0000-1000-8000-00805f9b34fb
bluetoothd[7711]: src/device.c:gatt_debug() Descriptors found: 1
bluetoothd[7711]: src/device.c:gatt_debug() handle: 0x0052, uuid: 00002908-0000-1000-8000-00805f9b34fb
bluetoothd[7711]: src/device.c:gatt_debug() Descriptors found: 1
bluetoothd[7711]: src/device.c:gatt_debug() handle: 0x0055, uuid: 00002908-0000-1000-8000-00805f9b34fb
bluetoothd[7711]: src/device.c:gatt_debug() Descriptors found: 1
bluetoothd[7711]: src/device.c:gatt_debug() handle: 0x0058, uuid: 00002908-0000-1000-8000-00805f9b34fb
bluetoothd[7711]: src/device.c:gatt_debug() Descriptors found: 1
bluetoothd[7711]: src/device.c:gatt_debug() handle: 0x005b, uuid: 00002908-0000-1000-8000-00805f9b34fb
bluetoothd[7711]: src/device.c:gatt_debug() Descriptors found: 1
bluetoothd[7711]: src/device.c:gatt_debug() handle: 0x005e, uuid: 00002908-0000-1000-8000-00805f9b34fb
bluetoothd[7711]: src/device.c:gatt_debug() Descriptors found: 1
bluetoothd[7711]: src/device.c:gatt_debug() handle: 0x0061, uuid: 00002908-0000-1000-8000-00805f9b34fb
bluetoothd[7711]: src/device.c:gatt_debug() Descriptors found: 1
bluetoothd[7711]: src/device.c:gatt_debug() handle: 0x0064, uuid: 00002908-0000-1000-8000-00805f9b34fb
bluetoothd[7711]: src/device.c:gatt_debug() Descriptors found: 1
bluetoothd[7711]: src/device.c:gatt_debug() handle: 0x0067, uuid: 00002908-0000-1000-8000-00805f9b34fb
bluetoothd[7711]: src/device.c:gatt_debug() Descriptors found: 1
bluetoothd[7711]: src/device.c:gatt_debug() handle: 0x006a, uuid: 00002908-0000-1000-8000-00805f9b34fb
bluetoothd[7711]: src/device.c:gatt_debug() Descriptors found: 1
bluetoothd[7711]: src/device.c:gatt_debug() handle: 0x006d, uuid: 00002908-0000-1000-8000-00805f9b34fb
bluetoothd[7711]: src/device.c:gatt_debug() Descriptors found: 1
bluetoothd[7711]: src/device.c:gatt_debug() handle: 0x0070, uuid: 00002908-0000-1000-8000-00805f9b34fb
bluetoothd[7711]: src/device.c:gatt_debug() Characteristics found: 1
bluetoothd[7711]: src/device.c:gatt_debug() start: 0x0072, end: 0x0073, value: 0x0073, props: 0x0a, uuid: 00002a06-0000-1
bluetoothd[7711]: src/device.c:gatt_debug() Characteristics found: 1
bluetoothd[7711]: src/device.c:gatt_debug() start: 0x0075, end: 0x0076, value: 0x0076, props: 0x04, uuid: 00002a06-0000-1
bluetoothd[7711]: src/device.c:gatt_debug() Characteristics found: 1
bluetoothd[7711]: src/device.c:gatt_debug() start: 0x0078, end: 0xffff, value: 0x0079, props: 0x12, uuid: 00002a07-0000-1
bluetoothd[7711]: src/device.c:gatt_debug() Descriptors found: 1
bluetoothd[7711]: src/device.c:gatt_debug() handle: 0x007a, uuid: 00002902-0000-1000-8000-00805f9b34fb
bluetoothd[7711]: src/device.c:gatt_client_ready_cb() status: success, error: 10
bluetoothd[7711]: src/device.c:update_gatt_uuids() UUID Added: 00001800-0000-1000-8000-00805f9b34fb
bluetoothd[7711]: src/device.c:update_gatt_uuids() UUID Added: 00001801-0000-1000-8000-00805f9b34fb
bluetoothd[7711]: src/device.c:update_gatt_uuids() UUID Added: 0000180a-0000-1000-8000-00805f9b34fb
bluetoothd[7711]: src/device.c:update_gatt_uuids() UUID Added: 0000180f-0000-1000-8000-00805f9b34fb
bluetoothd[7711]: src/device.c:update_gatt_uuids() UUID Added: 00001813-0000-1000-8000-00805f9b34fb
bluetoothd[7711]: src/device.c:update_gatt_uuids() UUID Added: 00001812-0000-1000-8000-00805f9b34fb
bluetoothd[7711]: src/device.c:update_gatt_uuids() UUID Added: 00001803-0000-1000-8000-00805f9b34fb
bluetoothd[7711]: src/device.c:update_gatt_uuids() UUID Added: 00001802-0000-1000-8000-00805f9b34fb
bluetoothd[7711]: src/device.c:update_gatt_uuids() UUID Added: 00001804-0000-1000-8000-00805f9b34fb
bluetoothd[7711]: profiles/gap/gas.c:gap_driver_probe() GAP profile probe (5C:31:3E:60:1F:1A)
bluetoothd[7711]: src/service.c:change_state() 0x1cbfe0: device 5C:31:3E:60:1F:1A profile gap-profile state changed: unavailable -> disconnected (0)
bluetoothd[7711]: src/device.c:btd_device_add_attio_callback() 0x1bc6d8 registered ATT connection callback
bluetoothd[7711]: src/device.c:device_set_auto_connect() 5C:31:3E:60:1F:1A auto connect: 1
bluetoothd[7711]: src/device.c:device_set_auto_connect() Already connected
bluetoothd[7711]: src/service.c:change_state() 0x1cc060: device 5C:31:3E:60:1F:1A profile deviceinfo state changed: unavailable -> disconnected (0)
bluetoothd[7711]: profiles/scanparam/scan.c:scan_param_probe() Probing Scan Parameters
bluetoothd[7711]: src/device.c:btd_device_add_attio_callback() 0x1bc6d8 registered ATT connection callback
bluetoothd[7711]: src/device.c:device_set_auto_connect() 5C:31:3E:60:1F:1A auto connect: 1
bluetoothd[7711]: src/service.c:change_state() 0x1cc228: device 5C:31:3E:60:1F:1A profile Scan Parameters Client Driver state changed: unavailable -> disconnected (0)
bluetoothd[7711]: profiles/input/hog.c:hog_probe() path /org/bluez/hci0/dev_5C_31_3E_60_1F_1A
bluetoothd[7711]: src/device.c:btd_device_add_attio_callback() 0x1bc6d8 registered ATT connection callback
bluetoothd[7711]: src/device.c:device_set_auto_connect() 5C:31:3E:60:1F:1A auto connect: 1
bluetoothd[7711]: src/service.c:change_state() 0x1cc300: device 5C:31:3E:60:1F:1A profile input-hog state changed: unavailable -> disconnected (0)
bluetoothd[7711]: src/device.c:device_svc_resolved() /org/bluez/hci0/dev_5C_31_3E_60_1F_1A err 0
bluetoothd[7711]: profiles/gap/gas.c:gap_driver_accept() GAP profile accept (5C:31:3E:60:1F:1A)
bluetoothd[7711]: profiles/gap/gas.c:handle_characteristic() Unsupported characteristic: 00002a02-0000-1000-8000-00805f9b34fb
bluetoothd[7711]: profiles/gap/gas.c:handle_characteristic() Unsupported characteristic: 00002a03-0000-1000-8000-00805f9b34fb
bluetoothd[7711]: profiles/gap/gas.c:handle_characteristic() Unsupported characteristic: 00002a04-0000-1000-8000-00805f9b34fb
bluetoothd[7711]: src/service.c:change_state() 0x1cbfe0: device 5C:31:3E:60:1F:1A profile gap-profile state changed: disconnected -> connecting (0)
bluetoothd[7711]: src/service.c:change_state() 0x1cc060: device 5C:31:3E:60:1F:1A profile deviceinfo state changed: disconnected -> connecting (0)
bluetoothd[7711]: src/service.c:change_state() 0x1cc228: device 5C:31:3E:60:1F:1A profile Scan Parameters Client Driver state changed: disconnected -> connecting (0)
bluetoothd[7711]: src/service.c:change_state() 0x1cc300: device 5C:31:3E:60:1F:1A profile input-hog state changed: disconnected -> connecting (0)
bluetoothd[7711]: src/gatt-client.c:btd_gatt_client_ready() GATT client ready
bluetoothd[7711]: src/gatt-client.c:btd_gatt_client_ready() Exporting services
bluetoothd[7711]: src/gatt-client.c:create_services() Exporting objects for GATT services: 5C:31:3E:60:1F:1A
bluetoothd[7711]: Unable to register GATT service with handle 0x000c for device 5C:31:3E:60:1F:1A:
bluetoothd[7711]: Unable to register GATT service with handle 0x0017 for device 5C:31:3E:60:1F:1A:
bluetoothd[7711]: Unable to register GATT service with handle 0x0071 for device 5C:31:3E:60:1F:1A:
bluetoothd[7711]: Unable to register GATT service with handle 0x0074 for device 5C:31:3E:60:1F:1A:
bluetoothd[7711]: Unable to register GATT service with handle 0x0077 for device 5C:31:3E:60:1F:1A:
bluetoothd[7711]: src/adapter.c:add_device_complete() 5C:31:3E:60:1F:1A (1) added to kernel connect list
bluetoothd[7711]: src/device.c:notify_attios()
bluetoothd[7711]: src/device.c:attio_connected()
bluetoothd[7711]: attrib/gattrib.c:g_attrib_ref() 0x1c60f0: g_attrib_ref=2
bluetoothd[7711]: attrib/gattrib.c:g_attrib_ref() 0x1c60f0: g_attrib_ref=3
bluetoothd[7711]: src/device.c:attio_connected()
bluetoothd[7711]: attrib/gattrib.c:g_attrib_ref() 0x1c60f0: g_attrib_ref=4
bluetoothd[7711]: attrib/gattrib.c:g_attrib_ref() 0x1c60f0: g_attrib_ref=5
bluetoothd[7711]: attrib/gattrib.c:g_attrib_ref() 0x1c60f0: g_attrib_ref=6
bluetoothd[7711]: src/device.c:attio_connected()
bluetoothd[7711]: profiles/input/hog.c:attio_connected_cb() HoG connected
bluetoothd[7711]: attrib/gattrib.c:g_attrib_ref() 0x1c60f0: g_attrib_ref=7
bluetoothd[7711]: attrib/gattrib.c:g_attrib_ref() 0x1c60f0: g_attrib_ref=8
bluetoothd[7711]: src/device.c:notify_attios()
bluetoothd[7711]: src/device.c:notify_attios()
bluetoothd[7711]: src/device.c:gatt_debug() Registered handler for "Service Changed": 1
bluetoothd[7711]: profiles/gap/gas.c:read_device_name_cb() GAP Device Name: XiaoMi RC
bluetoothd[7711]: src/device.c:btd_device_device_set_name() /org/bluez/hci0/dev_5C_31_3E_60_1F_1A XiaoMi RC
bluetoothd[7711]: profiles/gap/gas.c:read_appearance_cb() GAP Appearance: 0x03c0
bluetoothd[7711]: attrib/gattrib.c:g_attrib_ref() 0x1c60f0: g_attrib_ref=9
bluetoothd[7711]: attrib/gattrib.c:g_attrib_unref() 0x1c60f0: g_attrib_unref=8
bluetoothd[7711]: attrib/gattrib.c:g_attrib_unref() 0x1c60f0: g_attrib_unref=7
bluetoothd[7711]: profiles/scanparam/scan.c:iwin_discovered_cb() Scan Interval Window handle: 0x001e
bluetoothd[7711]: attrib/gattrib.c:g_attrib_unref() 0x1c60f0: g_attrib_unref=6
bluetoothd[7711]: profiles/scanparam/scan.c:refresh_discovered_cb() Scan Refresh handle: 0x0020
bluetoothd[7711]: attrib/gattrib.c:g_attrib_ref() 0x1c60f0: g_attrib_ref=7
bluetoothd[7711]: attrib/gattrib.c:g_attrib_unref() 0x1c60f0: g_attrib_unref=6
bluetoothd[7711]: attrib/gattrib.c:g_attrib_unref() 0x1c60f0: g_attrib_unref=5
bluetoothd[7711]: profiles/scanparam/scan.c:ccc_written_cb() Scan Refresh: notification enabled
bluetoothd[7711]: profiles/input/hog.c:char_discovered_cb() 0x0024 UUID: 00002a4a-0000-1000-8000-00805f9b34fb properties: 02
bluetoothd[7711]: profiles/input/hog.c:char_discovered_cb() 0x0026 UUID: 00002a4c-0000-1000-8000-00805f9b34fb properties: 04
bluetoothd[7711]: profiles/input/hog.c:char_discovered_cb() 0x0028 UUID: 00002a4e-0000-1000-8000-00805f9b34fb properties: 06
bluetoothd[7711]: profiles/input/hog.c:char_discovered_cb() 0x002a UUID: 00002a4b-0000-1000-8000-00805f9b34fb properties: 02
bluetoothd[7711]: attrib/gattrib.c:g_attrib_ref() 0x1c60f0: g_attrib_ref=6
bluetoothd[7711]: attrib/gattrib.c:g_attrib_ref() 0x1c60f0: g_attrib_ref=7
bluetoothd[7711]: profiles/input/hog.c:char_discovered_cb() 0x002d UUID: 00002a4d-0000-1000-8000-00805f9b34fb properties: 12
bluetoothd[7711]: attrib/gattrib.c:g_attrib_ref() 0x1c60f0: g_attrib_ref=8
bluetoothd[7711]: profiles/input/hog.c:char_discovered_cb() 0x0031 UUID: 00002a4d-0000-1000-8000-00805f9b34fb properties: 12
bluetoothd[7711]: attrib/gattrib.c:g_attrib_ref() 0x1c60f0: g_attrib_ref=9
bluetoothd[7711]: profiles/input/hog.c:char_discovered_cb() 0x0035 UUID: 00002a4d-0000-1000-8000-00805f9b34fb properties: 12
bluetoothd[7711]: attrib/gattrib.c:g_attrib_ref() 0x1c60f0: g_attrib_ref=10
bluetoothd[7711]: profiles/input/hog.c:char_discovered_cb() 0x0039 UUID: 00002a4d-0000-1000-8000-00805f9b34fb properties: 0e
bluetoothd[7711]: attrib/gattrib.c:g_attrib_ref() 0x1c60f0: g_attrib_ref=11
bluetoothd[7711]: profiles/input/hog.c:char_discovered_cb() 0x003c UUID: 00002a22-0000-1000-8000-00805f9b34fb properties: 12
bluetoothd[7711]: profiles/input/hog.c:char_discovered_cb() 0x003f UUID: 00002a32-0000-1000-8000-00805f9b34fb properties: 0a
bluetoothd[7711]: profiles/input/hog.c:char_discovered_cb() 0x0041 UUID: 00002a33-0000-1000-8000-00805f9b34fb properties: 12
bluetoothd[7711]: profiles/input/hog.c:char_discovered_cb() 0x0044 UUID: 00002a4d-0000-1000-8000-00805f9b34fb properties: 0a
bluetoothd[7711]: attrib/gattrib.c:g_attrib_ref() 0x1c60f0: g_attrib_ref=12
bluetoothd[7711]: profiles/input/hog.c:char_discovered_cb() 0x0047 UUID: 00002a4d-0000-1000-8000-00805f9b34fb properties: 0a
bluetoothd[7711]: attrib/gattrib.c:g_attrib_ref() 0x1c60f0: g_attrib_ref=13
bluetoothd[7711]: profiles/input/hog.c:char_discovered_cb() 0x004a UUID: 00002a4d-0000-1000-8000-00805f9b34fb properties: 0a
bluetoothd[7711]: attrib/gattrib.c:g_attrib_ref() 0x1c60f0: g_attrib_ref=14
bluetoothd[7711]: profiles/input/hog.c:char_discovered_cb() 0x004d UUID: 00002a4d-0000-1000-8000-00805f9b34fb properties: 0a
bluetoothd[7711]: attrib/gattrib.c:g_attrib_ref() 0x1c60f0: g_attrib_ref=15
bluetoothd[7711]: profiles/input/hog.c:char_discovered_cb() 0x0050 UUID: 00002a4d-0000-1000-8000-00805f9b34fb properties: 0a
bluetoothd[7711]: attrib/gattrib.c:g_attrib_ref() 0x1c60f0: g_attrib_ref=16
bluetoothd[7711]: profiles/input/hog.c:char_discovered_cb() 0x0053 UUID: 00002a4d-0000-1000-8000-00805f9b34fb properties: 0a
bluetoothd[7711]: attrib/gattrib.c:g_attrib_ref() 0x1c60f0: g_attrib_ref=17
bluetoothd[7711]: profiles/input/hog.c:char_discovered_cb() 0x0056 UUID: 00002a4d-0000-1000-8000-00805f9b34fb properties: 0a
bluetoothd[7711]: attrib/gattrib.c:g_attrib_ref() 0x1c60f0: g_attrib_ref=18
bluetoothd[7711]: profiles/input/hog.c:char_discovered_cb() 0x0059 UUID: 00002a4d-0000-1000-8000-00805f9b34fb properties: 0a
bluetoothd[7711]: attrib/gattrib.c:g_attrib_ref() 0x1c60f0: g_attrib_ref=19
bluetoothd[7711]: profiles/input/hog.c:char_discovered_cb() 0x005c UUID: 00002a4d-0000-1000-8000-00805f9b34fb properties: 0a
bluetoothd[7711]: attrib/gattrib.c:g_attrib_ref() 0x1c60f0: g_attrib_ref=20
bluetoothd[7711]: profiles/input/hog.c:char_discovered_cb() 0x005f UUID: 00002a4d-0000-1000-8000-00805f9b34fb properties: 0a
bluetoothd[7711]: attrib/gattrib.c:g_attrib_ref() 0x1c60f0: g_attrib_ref=21
bluetoothd[7711]: profiles/input/hog.c:char_discovered_cb() 0x0062 UUID: 00002a4d-0000-1000-8000-00805f9b34fb properties: 0a
bluetoothd[7711]: attrib/gattrib.c:g_attrib_ref() 0x1c60f0: g_attrib_ref=22
bluetoothd[7711]: profiles/input/hog.c:char_discovered_cb() 0x0065 UUID: 00002a4d-0000-1000-8000-00805f9b34fb properties: 0a
bluetoothd[7711]: attrib/gattrib.c:g_attrib_ref() 0x1c60f0: g_attrib_ref=23
bluetoothd[7711]: profiles/input/hog.c:char_discovered_cb() 0x0068 UUID: 00002a4d-0000-1000-8000-00805f9b34fb properties: 0a
bluetoothd[7711]: attrib/gattrib.c:g_attrib_ref() 0x1c60f0: g_attrib_ref=24
bluetoothd[7711]: profiles/input/hog.c:char_discovered_cb() 0x006b UUID: 00002a4d-0000-1000-8000-00805f9b34fb properties: 0a
bluetoothd[7711]: attrib/gattrib.c:g_attrib_ref() 0x1c60f0: g_attrib_ref=25
bluetoothd[7711]: profiles/input/hog.c:char_discovered_cb() 0x006e UUID: 00002a4d-0000-1000-8000-00805f9b34fb properties: 0a
bluetoothd[7711]: attrib/gattrib.c:g_attrib_ref() 0x1c60f0: g_attrib_ref=26
bluetoothd[7711]: attrib/gattrib.c:g_attrib_ref() 0x1c60f0: g_attrib_ref=27
bluetoothd[7711]: attrib/gattrib.c:g_attrib_ref() 0x1c60f0: g_attrib_ref=28
bluetoothd[7711]: attrib/gattrib.c:g_attrib_unref() 0x1c60f0: g_attrib_unref=27
bluetoothd[7711]: attrib/gattrib.c:g_attrib_ref() 0x1c60f0: g_attrib_ref=28
bluetoothd[7711]: attrib/gattrib.c:g_attrib_unref() 0x1c60f0: g_attrib_unref=27
bluetoothd[7711]: attrib/gattrib.c:g_attrib_ref() 0x1c60f0: g_attrib_ref=28
bluetoothd[7711]: attrib/gattrib.c:g_attrib_unref() 0x1c60f0: g_attrib_unref=27
bluetoothd[7711]: attrib/gattrib.c:g_attrib_ref() 0x1c60f0: g_attrib_ref=28
bluetoothd[7711]: attrib/gattrib.c:g_attrib_unref() 0x1c60f0: g_attrib_unref=27
bluetoothd[7711]: attrib/gattrib.c:g_attrib_ref() 0x1c60f0: g_attrib_ref=28
bluetoothd[7711]: attrib/gattrib.c:g_attrib_unref() 0x1c60f0: g_attrib_unref=27
bluetoothd[7711]: attrib/gattrib.c:g_attrib_ref() 0x1c60f0: g_attrib_ref=28
bluetoothd[7711]: attrib/gattrib.c:g_attrib_unref() 0x1c60f0: g_attrib_unref=27
bluetoothd[7711]: attrib/gattrib.c:g_attrib_ref() 0x1c60f0: g_attrib_ref=28
bluetoothd[7711]: attrib/gattrib.c:g_attrib_unref() 0x1c60f0: g_attrib_unref=27
bluetoothd[7711]: attrib/gattrib.c:g_attrib_ref() 0x1c60f0: g_attrib_ref=28
bluetoothd[7711]: attrib/gattrib.c:g_attrib_unref() 0x1c60f0: g_attrib_unref=27
bluetoothd[7711]: attrib/gattrib.c:g_attrib_ref() 0x1c60f0: g_attrib_ref=28
bluetoothd[7711]: attrib/gattrib.c:g_attrib_unref() 0x1c60f0: g_attrib_unref=27
bluetoothd[7711]: attrib/gattrib.c:g_attrib_ref() 0x1c60f0: g_attrib_ref=28
bluetoothd[7711]: attrib/gattrib.c:g_attrib_unref() 0x1c60f0: g_attrib_unref=27
bluetoothd[7711]: attrib/gattrib.c:g_attrib_ref() 0x1c60f0: g_attrib_ref=28
bluetoothd[7711]: attrib/gattrib.c:g_attrib_unref() 0x1c60f0: g_attrib_unref=27
bluetoothd[7711]: attrib/gattrib.c:g_attrib_ref() 0x1c60f0: g_attrib_ref=28
bluetoothd[7711]: attrib/gattrib.c:g_attrib_unref() 0x1c60f0: g_attrib_unref=27
bluetoothd[7711]: attrib/gattrib.c:g_attrib_ref() 0x1c60f0: g_attrib_ref=28
bluetoothd[7711]: attrib/gattrib.c:g_attrib_unref() 0x1c60f0: g_attrib_unref=27
bluetoothd[7711]: attrib/gattrib.c:g_attrib_ref() 0x1c60f0: g_attrib_ref=28
bluetoothd[7711]: attrib/gattrib.c:g_attrib_unref() 0x1c60f0: g_attrib_unref=27
bluetoothd[7711]: attrib/gattrib.c:g_attrib_ref() 0x1c60f0: g_attrib_ref=28
bluetoothd[7711]: attrib/gattrib.c:g_attrib_unref() 0x1c60f0: g_attrib_unref=27
bluetoothd[7711]: attrib/gattrib.c:g_attrib_ref() 0x1c60f0: g_attrib_ref=28
bluetoothd[7711]: attrib/gattrib.c:g_attrib_unref() 0x1c60f0: g_attrib_unref=27
bluetoothd[7711]: attrib/gattrib.c:g_attrib_ref() 0x1c60f0: g_attrib_ref=28
bluetoothd[7711]: attrib/gattrib.c:g_attrib_unref() 0x1c60f0: g_attrib_unref=27
bluetoothd[7711]: attrib/gattrib.c:g_attrib_ref() 0x1c60f0: g_attrib_ref=28
bluetoothd[7711]: attrib/gattrib.c:g_attrib_unref() 0x1c60f0: g_attrib_unref=27
bluetoothd[7711]: attrib/gattrib.c:g_attrib_ref() 0x1c60f0: g_attrib_ref=28
bluetoothd[7711]: attrib/gattrib.c:g_attrib_unref() 0x1c60f0: g_attrib_unref=27
bluetoothd[7711]: attrib/gattrib.c:g_attrib_ref() 0x1c60f0: g_attrib_ref=28
bluetoothd[7711]: attrib/gattrib.c:g_attrib_unref() 0x1c60f0: g_attrib_unref=27
bluetoothd[7711]: attrib/gattrib.c:g_attrib_ref() 0x1c60f0: g_attrib_ref=28
bluetoothd[7711]: attrib/gattrib.c:g_attrib_unref() 0x1c60f0: g_attrib_unref=27
bluetoothd[7711]: profiles/input/hog.c:proto_mode_read_cb() HoG device 0x0022 is operating in Report Protocol Mode
bluetoothd[7711]: attrib/gattrib.c:g_attrib_unref() 0x1c60f0: g_attrib_unref=26
bluetoothd[7711]: profiles/input/hog.c:info_read_cb() bcdHID: 0x0111 bCountryCode: 0x00 Flags: 0x01
bluetoothd[7711]: attrib/gattrib.c:g_attrib_unref() 0x1c60f0: g_attrib_unref=25
bluetoothd[7711]: profiles/input/hog.c:external_report_reference_cb() External report reference read, external report characteristic UUID: 0x2a19
bluetoothd[7711]: attrib/gattrib.c:g_attrib_ref() 0x1c60f0: g_attrib_ref=26
bluetoothd[7711]: attrib/gattrib.c:g_attrib_unref() 0x1c60f0: g_attrib_unref=25
bluetoothd[7711]: profiles/input/hog.c:report_reference_cb() Report ID: 0x01 Report type: 0x01
bluetoothd[7711]: attrib/gattrib.c:g_attrib_unref() 0x1c60f0: g_attrib_unref=24
bluetoothd[7711]: profiles/input/hog.c:report_reference_cb() Report ID: 0x02 Report type: 0x01
bluetoothd[7711]: attrib/gattrib.c:g_attrib_unref() 0x1c60f0: g_attrib_unref=23
bluetoothd[7711]: profiles/input/hog.c:report_reference_cb() Report ID: 0x03 Report type: 0x01
bluetoothd[7711]: attrib/gattrib.c:g_attrib_unref() 0x1c60f0: g_attrib_unref=22
bluetoothd[7711]: profiles/input/hog.c:report_reference_cb() Report ID: 0x00 Report type: 0x02
bluetoothd[7711]: attrib/gattrib.c:g_attrib_unref() 0x1c60f0: g_attrib_unref=21
bluetoothd[7711]: profiles/input/hog.c:report_reference_cb() Report ID: 0xe0 Report type: 0x03
bluetoothd[7711]: attrib/gattrib.c:g_attrib_unref() 0x1c60f0: g_attrib_unref=20
bluetoothd[7711]: profiles/input/hog.c:report_reference_cb() Report ID: 0xe1 Report type: 0x03
bluetoothd[7711]: attrib/gattrib.c:g_attrib_unref() 0x1c60f0: g_attrib_unref=19
bluetoothd[7711]: profiles/input/hog.c:report_reference_cb() Report ID: 0xe2 Report type: 0x03
bluetoothd[7711]: attrib/gattrib.c:g_attrib_unref() 0x1c60f0: g_attrib_unref=18
bluetoothd[7711]: profiles/input/hog.c:report_reference_cb() Report ID: 0xe3 Report type: 0x03
bluetoothd[7711]: attrib/gattrib.c:g_attrib_unref() 0x1c60f0: g_attrib_unref=17
bluetoothd[7711]: profiles/input/hog.c:report_reference_cb() Report ID: 0xe4 Report type: 0x03
bluetoothd[7711]: attrib/gattrib.c:g_attrib_unref() 0x1c60f0: g_attrib_unref=16
bluetoothd[7711]: profiles/input/hog.c:report_reference_cb() Report ID: 0xe5 Report type: 0x03
bluetoothd[7711]: attrib/gattrib.c:g_attrib_unref() 0x1c60f0: g_attrib_unref=15
bluetoothd[7711]: profiles/input/hog.c:report_reference_cb() Report ID: 0xe6 Report type: 0x03
bluetoothd[7711]: attrib/gattrib.c:g_attrib_unref() 0x1c60f0: g_attrib_unref=14
bluetoothd[7711]: profiles/input/hog.c:report_reference_cb() Report ID: 0xe7 Report type: 0x03
bluetoothd[7711]: attrib/gattrib.c:g_attrib_unref() 0x1c60f0: g_attrib_unref=13
bluetoothd[7711]: profiles/input/hog.c:report_reference_cb() Report ID: 0xe8 Report type: 0x03
bluetoothd[7711]: attrib/gattrib.c:g_attrib_unref() 0x1c60f0: g_attrib_unref=12
bluetoothd[7711]: profiles/input/hog.c:report_reference_cb() Report ID: 0xe9 Report type: 0x03
bluetoothd[7711]: attrib/gattrib.c:g_attrib_unref() 0x1c60f0: g_attrib_unref=11
bluetoothd[7711]: profiles/input/hog.c:report_reference_cb() Report ID: 0xea Report type: 0x03
bluetoothd[7711]: attrib/gattrib.c:g_attrib_unref() 0x1c60f0: g_attrib_unref=10
bluetoothd[7711]: profiles/input/hog.c:report_reference_cb() Report ID: 0xeb Report type: 0x03
bluetoothd[7711]: attrib/gattrib.c:g_attrib_unref() 0x1c60f0: g_attrib_unref=9
bluetoothd[7711]: profiles/input/hog.c:report_reference_cb() Report ID: 0xec Report type: 0x03
bluetoothd[7711]: attrib/gattrib.c:g_attrib_unref() 0x1c60f0: g_attrib_unref=8
bluetoothd[7711]: profiles/input/hog.c:report_reference_cb() Report ID: 0xed Report type: 0x03
bluetoothd[7711]: attrib/gattrib.c:g_attrib_unref() 0x1c60f0: g_attrib_unref=7
bluetoothd[7711]: profiles/input/hog.c:report_reference_cb() Report ID: 0xee Report type: 0x03
bluetoothd[7711]: attrib/gattrib.c:g_attrib_unref() 0x1c60f0: g_attrib_unref=6
bluetoothd[7711]: profiles/input/hog.c:report_map_read_cb() Report MAP:
bluetoothd[7711]: profiles/input/hog.c:report_map_read_cb() 	 05 01
bluetoothd[7711]: profiles/input/hog.c:report_map_read_cb() 	 09 06
bluetoothd[7711]: profiles/input/hog.c:report_map_read_cb() 	 a1 01
bluetoothd[7711]: profiles/input/hog.c:report_map_read_cb() 	 85 02
bluetoothd[7711]: profiles/input/hog.c:report_map_read_cb() 	 05 07
bluetoothd[7711]: profiles/input/hog.c:report_map_read_cb() 	 19 e0
bluetoothd[7711]: profiles/input/hog.c:report_map_read_cb() 	 29 e7
bluetoothd[7711]: profiles/input/hog.c:report_map_read_cb() 	 15 00
bluetoothd[7711]: profiles/input/hog.c:report_map_read_cb() 	 25 01
bluetoothd[7711]: profiles/input/hog.c:report_map_read_cb() 	 75 01
bluetoothd[7711]: profiles/input/hog.c:report_map_read_cb() 	 95 08
bluetoothd[7711]: profiles/input/hog.c:report_map_read_cb() 	 81 02
bluetoothd[7711]: profiles/input/hog.c:report_map_read_cb() 	 95 01
bluetoothd[7711]: profiles/input/hog.c:report_map_read_cb() 	 75 08
bluetoothd[7711]: profiles/input/hog.c:report_map_read_cb() 	 81 01
bluetoothd[7711]: profiles/input/hog.c:report_map_read_cb() 	 95 05
bluetoothd[7711]: profiles/input/hog.c:report_map_read_cb() 	 75 01
bluetoothd[7711]: profiles/input/hog.c:report_map_read_cb() 	 05 08
bluetoothd[7711]: profiles/input/hog.c:report_map_read_cb() 	 19 01
bluetoothd[7711]: profiles/input/hog.c:report_map_read_cb() 	 29 05
bluetoothd[7711]: profiles/input/hog.c:report_map_read_cb() 	 91 02
bluetoothd[7711]: profiles/input/hog.c:report_map_read_cb() 	 95 01
bluetoothd[7711]: profiles/input/hog.c:report_map_read_cb() 	 75 03
bluetoothd[7711]: profiles/input/hog.c:report_map_read_cb() 	 91 01
bluetoothd[7711]: profiles/input/hog.c:report_map_read_cb() 	 95 06
bluetoothd[7711]: profiles/input/hog.c:report_map_read_cb() 	 75 08
bluetoothd[7711]: profiles/input/hog.c:report_map_read_cb() 	 15 00
bluetoothd[7711]: profiles/input/hog.c:report_map_read_cb() 	 25 fe
bluetoothd[7711]: profiles/input/hog.c:report_map_read_cb() 	 05 07
bluetoothd[7711]: profiles/input/hog.c:report_map_read_cb() 	 19 00
bluetoothd[7711]: profiles/input/hog.c:report_map_read_cb() 	 29 fe
bluetoothd[7711]: profiles/input/hog.c:report_map_read_cb() 	 81 00
bluetoothd[7711]: profiles/input/hog.c:report_map_read_cb() 	 c0
bluetoothd[7711]: profiles/input/hog.c:report_map_read_cb() DIS information: vendor_src=0x1, vendor=0x2717, product=0x3200, version=0x110
bluetoothd[7711]: attrib/gattrib.c:g_attrib_unref() 0x1c60f0: g_attrib_unref=5
bluetoothd[7711]: profiles/input/hog.c:report_ccc_written_cb() Report 0x002d CCC written: notifications enabled
bluetoothd[7711]: profiles/input/hog.c:report_ccc_written_cb() Report 0x0031 CCC written: notifications enabled
bluetoothd[7711]: Report 0x0035 CCC write failed: Attribute can't be written
bluetoothd[7711]: profiles/input/hog.c:external_service_char_cb() 0x0018 UUID: 00002a19-0000-1000-8000-00805f9b34fb properties: 12
bluetoothd[7711]: attrib/gattrib.c:g_attrib_ref() 0x1c60f0: g_attrib_ref=6
bluetoothd[7711]: attrib/gattrib.c:g_attrib_unref() 0x1c60f0: g_attrib_unref=5
bluetoothd[7711]: attrib/gattrib.c:g_attrib_ref() 0x1c60f0: g_attrib_ref=6
bluetoothd[7711]: attrib/gattrib.c:g_attrib_ref() 0x1c9210: g_attrib_ref=808464433
Segmentation fault

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: bluetoothd crashes when connecting to XiaoMi RC
  2015-11-22  0:21 bluetoothd crashes when connecting to XiaoMi RC boyiliao
@ 2015-11-22  0:49 ` boyiliao
  2015-11-23 11:59   ` Luiz Augusto von Dentz
  0 siblings, 1 reply; 5+ messages in thread
From: boyiliao @ 2015-11-22  0:49 UTC (permalink / raw)
  To: linux-bluetooth

Hi,

The below is my workaroung right new, but in "g_attrib_ref" function should 
be another way to fix this crash.

guint gatt_read_char(GAttrib *attrib, uint16_t handle, GAttribResultFunc 
func,
                            gpointer user_data)
{
    uint8_t *buf;
    size_t buflen;
    guint16 plen;
    guint id;
    struct read_long_data *long_read;

    long_read = g_try_new0(struct read_long_data, 1);

    if (long_read == NULL)
        return 0;
        printf("call from here %d\n",__LINE__);
    long_read->attrib = g_attrib_ref(attrib);
+        if(long_read->attrib == NULL)
+            return 0;
    long_read->func = func;




GAttrib *g_attrib_ref(GAttrib *attrib)
{
    if (!attrib)
        return NULL;

+        if(attrib->ref_count > 30)
+       {
+            return NULL;
+        }
    __sync_fetch_and_add(&attrib->ref_count, 1);

    DBG("%p: g_attrib_ref=%d ", attrib, attrib->ref_count);

    return attrib;
}

BR,
Patirck

-----原始郵件----- 
From: boyiliao@yahoo.com.tw
Sent: Sunday, November 22, 2015 8:21 AM
To: linux-bluetooth@vger.kernel.org ; Majordomo@vger.kernel.org
Subject: bluetoothd crashes when connecting to XiaoMi RC

Hi,

I am using bluez 5.35 on Raspberry pi (kernel 4.1.6).

I try to using XiaoMi BLE remote control on Raspberry pi , I found when
gatt.c gatt_read_char() function call gattrib.c g_attrib_ref () will cause
bluetoothd crashed, because I think it acess a wrong address
"attrib/gattrib.c:g_attrib_ref() 0x1c9210: g_attrib_ref=808464433"

the attachment is the bluetoothd log


BR,
Patrick 


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: bluetoothd crashes when connecting to XiaoMi RC
  2015-11-22  0:49 ` boyiliao
@ 2015-11-23 11:59   ` Luiz Augusto von Dentz
       [not found]     ` <484556914.3688034.1448353597364.JavaMail.yahoo@mail.yahoo.com>
  0 siblings, 1 reply; 5+ messages in thread
From: Luiz Augusto von Dentz @ 2015-11-23 11:59 UTC (permalink / raw)
  To: boyiliao; +Cc: linux-bluetooth

Hi Patrick,

On Sun, Nov 22, 2015 at 2:49 AM,  <boyiliao@yahoo.com.tw> wrote:
> Hi,
>
> The below is my workaroung right new, but in "g_attrib_ref" function should
> be another way to fix this crash.
>
> guint gatt_read_char(GAttrib *attrib, uint16_t handle, GAttribResultFunc
> func,
>                            gpointer user_data)
> {
>    uint8_t *buf;
>    size_t buflen;
>    guint16 plen;
>    guint id;
>    struct read_long_data *long_read;
>
>    long_read = g_try_new0(struct read_long_data, 1);
>
>    if (long_read == NULL)
>        return 0;
>        printf("call from here %d\n",__LINE__);
>    long_read->attrib = g_attrib_ref(attrib);
> +        if(long_read->attrib == NULL)
> +            return 0;
>    long_read->func = func;
>
>
>
>
> GAttrib *g_attrib_ref(GAttrib *attrib)
> {
>    if (!attrib)
>        return NULL;
>
> +        if(attrib->ref_count > 30)
> +       {
> +            return NULL;
> +        }
>    __sync_fetch_and_add(&attrib->ref_count, 1);
>
>    DBG("%p: g_attrib_ref=%d ", attrib, attrib->ref_count);
>
>    return attrib;
> }
>
> BR,
> Patirck
>
> -----原始郵件----- From: boyiliao@yahoo.com.tw
> Sent: Sunday, November 22, 2015 8:21 AM
> To: linux-bluetooth@vger.kernel.org ; Majordomo@vger.kernel.org
> Subject: bluetoothd crashes when connecting to XiaoMi RC
>
>
> Hi,
>
> I am using bluez 5.35 on Raspberry pi (kernel 4.1.6).
>
> I try to using XiaoMi BLE remote control on Raspberry pi , I found when
> gatt.c gatt_read_char() function call gattrib.c g_attrib_ref () will cause
> bluetoothd crashed, because I think it acess a wrong address
> "attrib/gattrib.c:g_attrib_ref() 0x1c9210: g_attrib_ref=808464433"
>
> the attachment is the bluetoothd log

bluetoothd[7711]: attrib/gattrib.c:g_attrib_ref() 0x1c60f0: g_attrib_ref=6
bluetoothd[7711]: attrib/gattrib.c:g_attrib_ref() 0x1c9210:
g_attrib_ref=808464433

Looks like the correct is 0x1c60f0 not 0x1c9210, this is really weird
since it seems to be all the same instance which would mean something
is corrupting the memory in between references. Can you try running
with upstream? Btw it is probably a good idea to run with valgrind so
we can get a backtrace of the problem.


-- 
Luiz Augusto von Dentz

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: bluetoothd crashes when connecting to XiaoMi RC
       [not found]     ` <484556914.3688034.1448353597364.JavaMail.yahoo@mail.yahoo.com>
@ 2015-11-24  9:01       ` Luiz Augusto von Dentz
       [not found]         ` <1309850050.3963844.1448363624231.JavaMail.yahoo@mail.yahoo.com>
  0 siblings, 1 reply; 5+ messages in thread
From: Luiz Augusto von Dentz @ 2015-11-24  9:01 UTC (permalink / raw)
  To: 柏懿 廖; +Cc: linux-bluetooth

Hi Patrick,

On Tue, Nov 24, 2015 at 10:26 AM, 柏懿 廖 <boyiliao@yahoo.com.tw> wrote:
> Hi Luiz Augusto von Dentz,
>
> blcause i used valgrind on raspberri pi, but it couldn't work.
>
>
> bluetoothd[18044]: src/adapter.c:adapter_init() sending read version command
> bluetoothd[18044]: Starting SDP server
> bluetoothd[18044]: src/sdpd-service.c:register_device_id() Adding device id
> record for 0002:1d6b:0246:0520
> disInstr(arm): unhandled instruction: 0xF1010200
>                  cond=15(0xF) 27:20=16(0x10) 4:4=0 3:0=0(0x0)
> ==18044== valgrind: Unrecognised instruction at address 0x4843588.
> ==18044==    at 0x4843588: ??? (in
> /usr/lib/arm-linux-gnueabihf/libcofi_rpi.so)
> ==18044== Your program just tried to execute an instruction that Valgrind
> ==18044== did not recognise.  There are two possible reasons for this.
> ==18044== 1. Your program has a bug and erroneously jumped to a non-code
> ==18044==    location.  If you are running Memcheck and you just saw a
> ==18044==    warning about a bad jump, it's probably your program's fault.
> ==18044== 2. The instruction is legitimate but Valgrind doesn't handle it,
> ==18044==    i.e. it's Valgrind's fault.  If you think this is the case or
> ==18044==    you are not sure, please let us know and we'll try to fix it.
> ==18044== Either way, Valgrind will now raise a SIGILL signal which will
> ==18044== probably kill your program.
> ==18044==
> ==18044== Process terminating with default action of signal 4 (SIGILL)
> ==18044==  Illegal opcode at address 0x4843588
> ==18044==    at 0x4843588: ??? (in
> /usr/lib/arm-linux-gnueabihf/libcofi_rpi.so)
> ==18044==
> ==18044== HEAP SUMMARY:
> ==18044==     in use at exit: 27,453 bytes in 423 blocks
> ==18044==   total heap usage: 2,115 allocs, 1,692 frees, 188,303 bytes
> allocated
> ==18044==
> ==18044== LEAK SUMMARY:
> ==18044==    definitely lost: 0 bytes in 0 blocks
> ==18044==    indirectly lost: 0 bytes in 0 blocks
> ==18044==      possibly lost: 0 bytes in 0 blocks
> ==18044==    still reachable: 27,453 bytes in 423 blocks
> ==18044==         suppressed: 0 bytes in 0 blocks
> ==18044== Reachable blocks (those to which a pointer was found) are not
> shown.
> ==18044== To see them, rerun with: --leak-check=full --show-reachable=yes
> ==18044==
> ==18044== For counts of detected and suppressed errors, rerun with: -v
> ==18044== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 27 from 6)
> Illegal instruction

No top-posting in the mailing list please.

> 1. Do you have another way or tool to trace the  "Segmentation fault" ?

gdb would be another option, in the other hand you may want to try to
reproduce the problem with your laptop/desktop where valgrind is
probably more stable.

> 2. what's the meaning of  "ry running  with upstream ?"

Run using git master branch, if you can't compile for rpi you can use
a laptop/desktop as I suggested above, there have been a couple of
changes to HoG plugin that may or may not help in this case.

-- 
Luiz Augusto von Dentz

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: bluetoothd crashes when connecting to XiaoMi RC
       [not found]         ` <1309850050.3963844.1448363624231.JavaMail.yahoo@mail.yahoo.com>
@ 2015-11-24 11:46           ` Luiz Augusto von Dentz
  0 siblings, 0 replies; 5+ messages in thread
From: Luiz Augusto von Dentz @ 2015-11-24 11:46 UTC (permalink / raw)
  To: 柏懿 廖; +Cc: linux-bluetooth

Hi,

On Tue, Nov 24, 2015 at 1:13 PM, 柏懿 廖 <boyiliao@yahoo.com.tw> wrote:
> Hi Luiz Augusto von Dentz,
>
>
>
> Luiz Augusto von Dentz <luiz.dentz@gmail.com> 於 2015/11/24 (週二) 5:01 PM 寫道﹕
>
>
> Hi Patrick,
>
> On Tue, Nov 24, 2015 at 10:26 AM, 柏懿 廖 <boyiliao@yahoo.com.tw> wrote:
>> Hi Luiz Augusto von Dentz,
>>
>> blcause i used valgrind on raspberri pi, but it couldn't work.
>>
>>
>> bluetoothd[18044]: src/adapter.c:adapter_init() sending read version
>> command
>> bluetoothd[18044]: Starting SDP server
>> bluetoothd[18044]: src/sdpd-service.c:register_device_id() Adding device
>> id
>> record for 0002:1d6b:0246:0520
>> disInstr(arm): unhandled instruction: 0xF1010200
>>                  cond=15(0xF) 27:20=16(0x10) 4:4=0 3:0=0(0x0)
>> ==18044== valgrind: Unrecognised instruction at address 0x4843588.
>> ==18044==    at 0x4843588: ??? (in
>> /usr/lib/arm-linux-gnueabihf/libcofi_rpi.so)
>> ==18044== Your program just tried to execute an instruction that Valgrind
>> ==18044== did not recognise.  There are two possible reasons for this.
>> ==18044== 1. Your program has a bug and erroneously jumped to a non-code
>> ==18044==    location.  If you are running Memcheck and you just saw a
>> ==18044==    warning about a bad jump, it's probably your program's fault.
>> ==18044== 2. The instruction is legitimate but Valgrind doesn't handle it,
>> ==18044==    i.e. it's Valgrind's fault.  If you think this is the case or
>> ==18044==    you are not sure, please let us know and we'll try to fix it.
>> ==18044== Either way, Valgrind will now raise a SIGILL signal which will
>> ==18044== probably kill your program.
>> ==18044==
>> ==18044== Process terminating with default action of signal 4 (SIGILL)
>> ==18044==  Illegal opcode at address 0x4843588
>> ==18044==    at 0x4843588: ??? (in
>> /usr/lib/arm-linux-gnueabihf/libcofi_rpi.so)
>> ==18044==
>> ==18044== HEAP SUMMARY:
>> ==18044==    in use at exit: 27,453 bytes in 423 blocks
>> ==18044==  total heap usage: 2,115 allocs, 1,692 frees, 188,303 bytes
>> allocated
>> ==18044==
>> ==18044== LEAK SUMMARY:
>> ==18044==    definitely lost: 0 bytes in 0 blocks
>> ==18044==    indirectly lost: 0 bytes in 0 blocks
>> ==18044==      possibly lost: 0 bytes in 0 blocks
>> ==18044==    still reachable: 27,453 bytes in 423 blocks
>> ==18044==        suppressed: 0 bytes in 0 blocks
>> ==18044== Reachable blocks (those to which a pointer was found) are not
>> shown.
>> ==18044== To see them, rerun with: --leak-check=full --show-reachable=yes
>> ==18044==
>> ==18044== For counts of detected and suppressed errors, rerun with: -v
>> ==18044== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 27 from 6)
>> Illegal instruction
>
> No top-posting in the mailing list please.
>
>> 1. Do you have another way or tool to trace the  "Segmentation fault" ?
>
> gdb would be another option, in the other hand you may want to try to
> reproduce the problem with your laptop/desktop where valgrind is
> probably more stable.
>
>> 2. what's the meaning of  "ry running  with upstream ?"
>
> Run using git master branch, if you can't compile for rpi you can use
> a laptop/desktop as I suggested above, there have been a couple of
> changes to HoG plugin that may or may not help in this case.
>
>
> --
> Luiz Augusto von Dentz
> --
>
>
> i found when running to  hog.c  discover_descriptor_cb function ( ) function
> case "GATT_EXTERNAL_REPORT_REFERENCE" attrib address the memory address will
> be different.
>
> Sorry i didn't have linux x86 to reproduce, i used gdb to trace .
> the message is in the belowm is it enough?
>
>
>>>GATT_REPORT_REFERENCE
>>> discover_descriptor_cb - 249 attrib = 0xca348
>>> gatt_read_char - 861 call g_attrib_ref  attrib = 0xca348
> bluetoothd[19608]: attrib/gattrib.c:g_attrib_ref() 0xca348: g_attrib_ref=6
>>> discover_descriptor_cb - 239 user_data = 0xbe320
>
>  >>GATT_CLIENT_CHARAC_CFG_UUID
>>> discover_descriptor_cb - 241 enable_report_notifications = 0xbe320
>>> gatt_write_char - 967 attrib = 0xca348
>>> buf = >> buf = 0xa >> buf = 0x1b >> buf = 0x0 >> buf = 0x1
>>> discover_descriptor_cb - 256 user_data = 0xbe320
>
>  >>> GATT_EXTERNAL_REPORT_REFERENCE
>>> discover_descriptor_cb - 258 attrib = 0xc2ad0
>>> gatt_read_char - 861 call g_attrib_ref  attrib = 0xc2ad0
> bluetoothd[19608]: attrib/gattrib.c:g_attrib_ref() 0xc2ad0:
> g_attrib_ref=808464433
>
> Program received signal SIGSEGV, Segmentation fault.
> bt_att_get_mtu (att=0x39316132) at src/shared/att.c:1078
> 1078        return att->mtu;
> (gdb) bt
> #0  bt_att_get_mtu (att=0x39316132) at src/shared/att.c:1078
> #1  0x000373f4 in g_attrib_get_buffer (attrib=0xc2ad0, len=0xbefff484) at
> attrib/gattrib.c:448
> #2  0x0003669c in gatt_read_char (attrib=<optimized out>, handle=<optimized
> out>, func=0x32524 <external_report_reference_cb>, user_data=0xbe320) at
> attrib/gatt.c:873
> #3  0x00031a60 in discover_descriptor_cb (status=<optimized out>,
> descs=<optimized out>, user_data=0xbe320) at profiles/input/hog.c:259
> #4  0x000357c8 in desc_discovered_cb (status=<optimized out>,
> ipdu=<optimized out>, iplen=<optimized out>, user_data=0xc2720) at
> attrib/gatt.c:1142
> #5  0x00036e3c in attrib_callback_result (opcode=<optimized out>,
> pdu=0xb9189, length=<optimized out>, user_data=0xc37e8) at
> attrib/gattrib.c:284
> #6  0x0007df28 in handle_rsp (pdu_len=9, pdu=0xb9189 "\001o",
> opcode=<optimized out>, att=0xc0180) at src/shared/att.c:680
> #7  can_read_data (io=<optimized out>, user_data=0xc0180) at
> src/shared/att.c:852
> #8  0x00085d7c in watch_callback (user_data=<optimized out>,
> channel=<optimized out>, cond=<optimized out>) at src/shared/io-glib.c:170
> #9  watch_callback (channel=<optimized out>, cond=<optimized out>,
> user_data=<optimized out>) at src/shared/io-glib.c:158
> #10 0xb6f5eed4 in ?? () from /lib/arm-linux-gnueabihf/libglib-2.0.so.0
> #11 0xb6f5eed4 in ?? () from /lib/arm-linux-gnueabihf/libglib-2.0.so.0
> Backtrace stopped: previous frame identical to this frame (corrupt stack?)
> (gdb)

It is probably fixed by the following patch:

commit 47a337152d342a37e3021dab0b18487b185e8b76
Author: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date:   Fri Jun 27 21:08:58 2014 +0300

    android/hog: Fix using the same callback for different descriptors

    External Report and Report descriptors take different user_data so have
    different callbacks to avoid possible crash if a discover happen to find
    the descriptors of unexpect type.

This was merged into profiles/input/hog-lib.c which is one of the
reasons I was asking you to use the upstream version.


-- 
Luiz Augusto von Dentz

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-11-24 11:46 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-22  0:21 bluetoothd crashes when connecting to XiaoMi RC boyiliao
2015-11-22  0:49 ` boyiliao
2015-11-23 11:59   ` Luiz Augusto von Dentz
     [not found]     ` <484556914.3688034.1448353597364.JavaMail.yahoo@mail.yahoo.com>
2015-11-24  9:01       ` Luiz Augusto von Dentz
     [not found]         ` <1309850050.3963844.1448363624231.JavaMail.yahoo@mail.yahoo.com>
2015-11-24 11:46           ` Luiz Augusto von Dentz

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.