Re: [PATCH] Add heartrate monitoring LE device to auto connect list.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Damjan,

On Fri, Feb 01, 2013, Damjan Cvetko wrote:
> Generally the latest code works, but not always. Every so often the
> reconnect would not happen. Here a snip from output when the
> reconnection does not happen (or fails somehow):
> 
> bluetoothd[4628]: src/attrib-server.c:channel_handler() op 0x1b
> bluetoothd[4628]: src/adapter.c:dev_disconnected() Device 00:22:D0:00:00:64 disconnected, reason 0
> bluetoothd[4628]: src/adapter.c:adapter_remove_connection()
> bluetoothd[4628]: src/device.c:device_bonding_complete() bonding (nil) status 0x0e
> bluetoothd[4628]: src/device.c:device_bonding_failed() status 14
> bluetoothd[4628]: src/adapter.c:resume_discovery()
> bluetoothd[4628]: attrib/gattrib.c:g_attrib_unref() 0x1f9eda8: ref=4
> bluetoothd[4628]: profiles/heartrate/heartrate.c:attio_disconnected_cb()
> bluetoothd[4628]: attrib/gattrib.c:g_attrib_unref() 0x1f9eda8: ref=3
> bluetoothd[4628]: attrib/gattrib.c:g_attrib_unref() 0x1f9eda8: ref=2
> bluetoothd[4628]: g_attrib_unregister: invalid id
> bluetoothd[4628]: attrib/gattrib.c:g_attrib_unref() 0x1f9eda8: ref=1
> bluetoothd[4628]: src/adapter.c:adapter_connect_list_add() /org/bluez/hci0/dev_00_22_D0_00_00_64 added to BlueZ 5.1's connect_list
> bluetoothd[4628]: src/adapter.c:trigger_passive_scanning()
> bluetoothd[4628]: attrib/gattrib.c:g_attrib_unref() 0x1f9eda8: ref=0
> bluetoothd[4628]: src/adapter.c:passive_scanning_complete() status 0x00
> bluetoothd[4628]: src/adapter.c:discovering_callback() hci0 type 6 discovering 1
> bluetoothd[4628]: src/adapter.c:device_found_callback() hci0 addr 00:22:D0:00:00:64, rssi -91 flags 0x0000 eir_len 17
> bluetoothd[4628]: src/device.c:device_set_legacy() legacy 0
> bluetoothd[4628]: src/adapter.c:stop_passive_scanning()
> bluetoothd[4628]: src/device.c:device_connect_le() Connection attempt to: 00:22:D0:00:00:64
> bluetoothd[4628]: src/adapter.c:discovering_callback() hci0 type 6 discovering 0
> bluetoothd[4628]: src/adapter.c:connected_callback() hci0 device 00:22:D0:00:00:64 connected eir_len 0
> bluetoothd[4628]: src/adapter.c:dev_disconnected() Device 00:22:D0:00:00:64 disconnected, reason 0
> bluetoothd[4628]: src/adapter.c:adapter_remove_connection()
> bluetoothd[4628]: src/device.c:device_bonding_complete() bonding (nil) status 0x0e
> bluetoothd[4628]: src/device.c:device_bonding_failed() status 14
> bluetoothd[4628]: src/adapter.c:resume_discovery()
> bluetoothd[4628]: src/device.c:att_connect_cb() connect error: Function not implemented (38)

It's hard to say exactly why the connection is failing here without the
HCI logs. Could you run btmon simultaneously and let me know the output.
Also please update to latest bluez.git since there might be some fixes
that you have missed.

Johan
--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux