2006-09-18 07:46:42

by Jean-Jacques BRUCKER

[permalink] [raw]
Subject: Réf. : Re: Réf. : Re: bluez : new bluetooth keyboard supported by hidd.

About the left space : it work but I have assigned it to Alt key. At the
end we need a special kmap file to be able to use all features of this
keybord, ( mine is an azerty keyboard), in this keymap file (or using
xmodmap with X) we could reassign left space button to space event and Alt
gr button to Alt and Alt gr event !

I have assigned this button to Alt because I missed him (to switch
between console for exemple), And to not loose a special keypress on the
keyboard. (it already have a few keys... only 63 !).

At the end my patch suggested an architecture to manage different
peripherals. The code in is actual state will become a big mess if the
number of differents peripheral to manage increase.

Good morning !

- - - - - - -
Cordialement,
Jean-Jacques.


" Ce courriel et les documents qui y sont attaches peuvent contenir des informations confidentielles. Si vous n'etes pas le destinataire escompte, merci d'en informer l'expediteur imm?diatement et de detruire ce courriel ainsi que tous les documents attaches de votre systeme informatique. Toute divulgation, distribution ou copie du pr?sent courriel et des documents attaches sans autorisation prealable de son emetteur est interdite."

" This e-mail and any attached documents may contain confidential or proprietary information. If you are not the intended recipient, please advise the sender immediately and delete this e-mail and all attached documents from your computer system. Any unauthorised disclosure, distribution or copying hereof is prohibited."


2006-09-18 08:04:32

by Marcel Holtmann

[permalink] [raw]
Subject: Re: [Bluez-devel] Réf. : Re: Réf. : Re: bluez : new bluetooth keyboard supported by hidd.

Hi Jean-Jacques,

> About the left space : it work but I have assigned it to Alt key. At
> the end we need a special kmap file to be able to use all features of
> this keybord, ( mine is an azerty keyboard), in this keymap file (or
> using xmodmap with X) we could reassign left space button to space
> event and Alt gr button to Alt and Alt gr event !
>
> I have assigned this button to Alt because I missed him (to switch
> between console for exemple), And to not loose a special keypress on
> the keyboard. (it already have a few keys... only 63 !).

the actual keyboard layout maybe needs a re-thinking. I leave this to
actual users of it.

> At the end my patch suggested an architecture to manage different
> peripherals. The code in is actual state will become a big mess if the
> number of differents peripheral to manage increase.

No it wasn't an architecture. It still was a hack. The decoding routine
for the keyboard was still named epox_decode(). A clean architecture
would have used a callback table or something similar. You can't design
an architecture if you don't have enough facts about the devices you are
trying to cover. Everything that is based on the Serial Port Profile and
which uses a proprietary protocol on top of RFCOMM is a problem and all
of them are basically unique.

I prefer the less intrusive approach and this was to use the class of
device and/or service name for detecting the (at the moment) two
different devices. I would pick the OUI part of the BD_ADDR only if I
have no other choice and trusting the remote name is also not a good
idea, because some input devices allow to change it.

And besides the Laserkey keyboard, I don't expect any other kind of
Bluetooth input device. The HID is a standard and if you buy a CSR chip,
you basically get the HID support for free. They did all the work for
running HID on the chip.

Regards

Marcel



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel