public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
* [Bluez-devel] HID initiated connections and input service
@ 2007-06-15 16:44 Bastien Nocera
  2007-06-16  7:05 ` Marcel Holtmann
  2007-06-16  7:25 ` Marcel Holtmann
  0 siblings, 2 replies; 17+ messages in thread
From: Bastien Nocera @ 2007-06-15 16:44 UTC (permalink / raw)
  To: BlueZ Hackers

Heya,

(As promised to Claudio)

2(3) HID devices I own have the same problem with BlueZ when using the
input service. Both use HID initiated connections, rather than the Host
initiated connection use case you would see when addind a Bluetooth
mouse to a laptop for example.

* First device: Logitech MX5000 mouse/keyboard combo

When not switched into HCI mode, the device works as a normal USB HID.
On boot, hid2hci is run, and the 2 devices (mouse and keyboard) try to
connect to bluetooth dongle (ex-USB wireless dongle).
There's no bluetooth-applet, or other services, and the requests are
dropped to the floor, and I end up with a Bluetooth HCI device, and no
keyboard or mouse (unplug/replug "fixes" the problem though).

Could we integrate hid2hci into the input service, so that it would only
be started when a session is available? I'm not sure how to handle the
pairing without a keyboard or mouse though...

* Second device: Sixaxis PS3 Bluetooth joypad

Again, 2 connections modes. Firstly, there's no pairing, the joypad
knows about the computer when one runs sixpair when the pad is connected
via USB, as per:
http://www.pabr.org/sixlinux/sixlinux.en.html
(Marcel talked about integrating this with udev, which should be pretty
straight forward)

Once disconnected from USB, and turned on, the device will try to
connect to the computer. bluetooth-applet will request auth, and ask us
whether we want to allow the connection. But as the device was never
discovered/setup using CreateDevice, the get_store_device_info in
input/server.c will fail.

You can't use CreateDevice with the device, as it's either connecting to
our computer, or off, and connection requests will fail.

Any idea on how to handle those type of devices using the Input Service
and giving good user experience?

Cheers

-- 
Bastien Nocera <hadess@hadess.net> 


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

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

end of thread, other threads:[~2007-06-18 22:40 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-15 16:44 [Bluez-devel] HID initiated connections and input service Bastien Nocera
2007-06-16  7:05 ` Marcel Holtmann
2007-06-16 16:35   ` Bastien Nocera
2007-06-16 19:35     ` Marcel Holtmann
2007-06-17 20:25       ` Bastien Nocera
2007-06-18 13:06         ` Bastien Nocera
2007-06-18 14:00           ` Pascal
2007-06-18 14:36             ` Bastien Nocera
2007-06-18 16:00               ` Bastien Nocera
2007-06-18 17:30                 ` Pascal
2007-06-18 19:23                   ` Bastien Nocera
2007-06-18 20:16                     ` Pascal
2007-06-18 22:40                       ` Bastien Nocera
2007-06-16  7:25 ` Marcel Holtmann
2007-06-16 16:44   ` Bastien Nocera
2007-06-16 19:24     ` Marcel Holtmann
2007-06-18 16:08       ` Bastien Nocera

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox