linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Problems with incoming connection request on Nexus 4
@ 2015-07-29  2:10 Florian Grandel
  2015-07-29 13:51 ` Marcel Holtmann
  0 siblings, 1 reply; 12+ messages in thread
From: Florian Grandel @ 2015-07-29  2:10 UTC (permalink / raw)
  To: Marcel Holtmann, Szymon Janc; +Cc: BlueZ development

Hi Marcel and Szymon,

I'm currently testing my code on my Nexus 4 device. Multi-Advertising 
works nicely but I can't get the device to accept incoming connection 
requests while in peripheral mode. I'm using Nordic's nRF Master Control 
app on my Samsung S4 in the central role for testing.

Here some sample debug output. When launching the connection request I get:

07-29 03:14:36.816  16843-16843/? I/bluetoothd﹕
mgmt_if: > 0b 00 00 00 1e 00 05 46 ab c2 01 94 00 00 00 00
.......F........

07-29 03:14:36.816  16843-16843/? I/bluetoothd﹕
mgmt_if:   00 11 00 0b 09 66 67 2d 73 61 6d 73 75 6e 67 04
.....fg-samsung.

07-29 03:14:36.816  16843-16843/? I/bluetoothd﹕
mgmt_if:   0d 0c 02 5a
...Z

07-29 03:14:36.816  16843-16843/? I/bluetoothd﹕
mgmt_if: [0x0000] event 0x000b

07-29 03:14:36.816  16843-16843/? D/bluetoothd﹕
external/bluetooth/bluez/android/bluetooth.c:mgmt_device_connected_event() 
94:01:C2:AB:46:05 type 0

07-29 03:14:36.829  16817-16875/com.android.bluetooth D/BlueZ﹕ 
external/bluetooth/bluez/android/hal-bluetooth.c:handle_acl_state_changed() 
state 0

07-29 03:14:37.100  16843-16843/? D/bluetoothd﹕ 
external/bluetooth/bluez/android/gatt.c:connect_confirm()

07-29 03:14:37.100  16843-16843/? D/bluetoothd﹕ 
external/bluetooth/bluez/android/gatt.c:device_set_state() gatt: Device 
94:01:C2:AB:46:05 state changed DISCONNECTED -> CONNECT READY


And then after the timeout:

07-29 03:15:07.083  16843-16843/? D/bluetoothd﹕ 
external/bluetooth/bluez/android/gatt.c:connect_cb()

07-29 03:15:07.083  16843-16843/? E/bluetoothd﹕ gatt: connection failed 
HUP or ERR on socket: Connection reset by peer (104)

07-29 03:15:07.083  16843-16843/? D/bluetoothd﹕ 
external/bluetooth/bluez/android/gatt.c:device_set_state() gatt: Device 
94:01:C2:AB:46:05 state changed CONNECT READY -> DISCONNECTED


Symptoms:
- The connection request times out.
- bt_io_accept() is being called but the accept_cb (=connect_cb) only 
gets called when the request times out.
- the device is stuck in the CONNECT READY state and never reaches the 
CONNECTED state


Any ideas how I could analyze/solve that problem? I'm stuck on this for 
many hours already...

Thanks!

Florian

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

end of thread, other threads:[~2015-08-05  1:32 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-29  2:10 Problems with incoming connection request on Nexus 4 Florian Grandel
2015-07-29 13:51 ` Marcel Holtmann
2015-07-30 12:21   ` Florian Grandel
2015-07-30 12:25     ` Marcel Holtmann
2015-07-30 13:11       ` Florian Grandel
2015-07-30 16:00         ` Marcel Holtmann
2015-07-30 16:22           ` Adam Moore
2015-07-31 19:47           ` Lukasz Rymanowski
2015-07-31 22:41             ` Adam Moore
2015-08-01 18:54               ` Florian Grandel
2015-08-05  0:07                 ` Adam Moore
2015-08-05  1:32                   ` Marcel Holtmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).