linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] User channel issue
@ 2015-05-05 13:55 Szymon Janc
  2015-05-05 13:55 ` [PATCH] tools: Add initial User Channel tester Szymon Janc
  0 siblings, 1 reply; 3+ messages in thread
From: Szymon Janc @ 2015-05-05 13:55 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Szymon Janc

Hi,

While working with User Channel I've noticed that it is not possible to
bind to it from 'Index Added' callback. Returned error was EBUSY which
indicates that device is powered on (although mgmt settings show not powered).

The root cause is HCI_AUTO_OFF which keeps transport powered for seconds
after device is plugged.

I'm not quite sure how to fix this properly in kernel. Attached is an initial
version of tester that shows the bug (first test).

Userspace can workaournd the problem by toggling power on/off before
opening user channel (third test) or simply waiting >2 seconds before
opening it.

Comments are welcome.

Szymon Janc (1):
  tools: Add initial User Channel tester

 .gitignore                 |   1 +
 Makefile.tools             |  11 +-
 tools/userchannel-tester.c | 333 +++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 344 insertions(+), 1 deletion(-)
 create mode 100644 tools/userchannel-tester.c

-- 
1.9.3


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

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

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-05 13:55 [PATCH] User channel issue Szymon Janc
2015-05-05 13:55 ` [PATCH] tools: Add initial User Channel tester Szymon Janc
2015-05-18 20:08   ` Szymon Janc

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).