All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alexey Pavlyuk <alexey.pavlyuk@ontarget-group.com>
To: linux-bluetooth@vger.kernel.org
Subject: Bluez 5.29 BLE connection issue
Date: Fri, 27 Mar 2015 17:07:22 +0300	[thread overview]
Message-ID: <5515641A.4020907@ontarget-group.com> (raw)

Hi, can you help me with bluetooth connection issue?
I'm developing server which should work on BeagleBone Black device and 
connected with Android application by bluetooth LE or Classic. The 
server use Bluez library and set LE advertisement data, parameters and 
enable advertising. Than it create L2CAP socket and waits for connection.
Debian 7.5 system ("wheezy") is installed on BeagleBone. I removed old 
bluez version than installed bluez-5.29 from source and run "bluetoothd 
--compat -d -n".
After that I cannot connect from Android to the server using BLE protocol.
Here is debug log:

Mar 27 12:27:22 beaglebone bluetoothd[601]: bluetoothd[601]: 
src/adapter.c:connected_callback() hci0 device X:X:X:X:X:X connected 
eir_len 0
Mar 27 12:27:22 beaglebone bluetoothd[601]: bluetoothd[601]: 
src/gatt-database.c:connect_cb() New incoming LE ATT connection
Mar 27 12:27:22 beaglebone bluetoothd[601]: 
src/adapter.c:connected_callback() hci0 device X:X:X:X:X:X connected 
eir_len 0
Mar 27 12:27:22 beaglebone bluetoothd[601]: 
src/gatt-database.c:connect_cb() New incoming LE ATT connection
Mar 27 12:27:22 beaglebone bluetoothd[601]: 
attrib/gattrib.c:g_attrib_ref() 0x8dd20: g_attrib_ref=1
Mar 27 12:27:22 beaglebone bluetoothd[601]: 
src/adapter.c:adapter_connect_list_remove() device 
/org/bluez/hci0/dev_X_X_X_X_X_X is not on the list, ignoring
Mar 27 12:27:22 beaglebone bluetoothd[601]: bluetoothd[601]: 
attrib/gattrib.c:g_attrib_ref() 0x8dd20: g_attrib_ref=1
Mar 27 12:27:22 beaglebone bluetoothd[601]: bluetoothd[601]: 
src/adapter.c:adapter_connect_list_remove() device 
/org/bluez/hci0/dev_X_X_X_X_X_X is not on the list, ignoring
Mar 27 12:27:22 beaglebone bluetoothd[601]: bluetoothd[601]: 
src/adapter.c:dev_disconnected() Device X:X:X:X:X:X disconnected, reason 3
Mar 27 12:27:22 beaglebone bluetoothd[601]: bluetoothd[601]: 
src/adapter.c:adapter_remove_connection()
Mar 27 12:27:22 beaglebone bluetoothd[601]: bluetoothd[601]: 
plugins/policy.c:disconnect_cb() reason 3
Mar 27 12:27:22 beaglebone bluetoothd[601]: bluetoothd[601]: 
src/adapter.c:bonding_attempt_complete() hci0 bdaddr X:X:X:X:X:X type 1 
status 0xe
Mar 27 12:27:22 beaglebone bluetoothd[601]: bluetoothd[601]: 
src/device.c:device_bonding_complete() bonding (nil) status 0x0e
Mar 27 12:27:22 beaglebone bluetoothd[601]: bluetoothd[601]: 
src/device.c:device_bonding_failed() status 14
Mar 27 12:27:22 beaglebone bluetoothd[601]: bluetoothd[601]: 
src/adapter.c:resume_discovery()
Mar 27 12:27:22 beaglebone bluetoothd[601]: bluetoothd[601]: 
src/device.c:att_disconnected_cb()
Mar 27 12:27:22 beaglebone bluetoothd[601]: bluetoothd[601]: 
src/device.c:att_disconnected_cb() Connection reset by peer (104)
Mar 27 12:27:22 beaglebone bluetoothd[601]: bluetoothd[601]: 
src/device.c:att_disconnected_cb() Automatic connection disabled
Mar 27 12:27:22 beaglebone bluetoothd[601]: bluetoothd[601]: 
attrib/gattrib.c:g_attrib_unref() 0x8dd20: g_attrib_unref=0
Mar 27 12:27:22 beaglebone bluetoothd[601]: 
src/adapter.c:dev_disconnected() Device X:X:X:X:X:X disconnected, reason 3
Mar 27 12:27:22 beaglebone bluetoothd[601]: 
src/adapter.c:adapter_remove_connection()
Mar 27 12:27:22 beaglebone bluetoothd[601]: 
plugins/policy.c:disconnect_cb() reason 3
Mar 27 12:27:22 beaglebone bluetoothd[601]: 
src/adapter.c:bonding_attempt_complete() hci0 bdaddr X:X:X:X:X:X type 1 
status 0xe
Mar 27 12:27:22 beaglebone bluetoothd[601]: 
src/device.c:device_bonding_complete() bonding (nil) status 0x0e
Mar 27 12:27:22 beaglebone bluetoothd[601]: 
src/device.c:device_bonding_failed() status 14
Mar 27 12:27:22 beaglebone bluetoothd[601]: src/adapter.c:resume_discovery()
Mar 27 12:27:22 beaglebone bluetoothd[601]: 
src/device.c:att_disconnected_cb()
Mar 27 12:27:22 beaglebone bluetoothd[601]: 
src/device.c:att_disconnected_cb() Connection reset by peer (104)
Mar 27 12:27:22 beaglebone bluetoothd[601]: 
src/device.c:att_disconnected_cb() Automatic connection disabled
Mar 27 12:27:22 beaglebone bluetoothd[601]: 
attrib/gattrib.c:g_attrib_unref() 0x8dd20: g_attrib_unref=0

When I stop bluetoothd, BLE connection is working. But I need SDP server 
for Classic Bluetooth connection.
Also all is working well with Bluez-4.99 library and the daemon.

Bluetooth dongle on 'Broadcom BCM20702' chipset is used.

Thank you,
Alexey

             reply	other threads:[~2015-03-27 14:07 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-27 14:07 Alexey Pavlyuk [this message]
2015-03-27 14:52 ` Bluez 5.29 BLE connection issue Luiz Augusto von Dentz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5515641A.4020907@ontarget-group.com \
    --to=alexey.pavlyuk@ontarget-group.com \
    --cc=linux-bluetooth@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.