2006-09-15 17:08:16

by Jean-Jacques BRUCKER

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

Thx to answer me so fast, sorry that in the precedent patch i forget to
clean fakehid.c. This is done in this patch. As, I have see in the cvs you
should have a J3 Keyboard too... :-)
About my Nokia, I know the applet but i don't have take the time to
analyse source codes.

Gonna retry to suscribe list with webform at home.



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





Marcel Holtmann <[email protected]>

15/09/2006 18:34
Remis le : 15/09/2006 18:33


Pour : Jean-Jacques BRUCKER <[email protected]>
cc : [email protected]
Objet : Re: bluez : new bluetooth keyboard supported by hidd.



Hi Jean-Jacques,

> I have recently bought a bluetooth "Smart Keyboard" for my Nokia 770.
> But this keyboard, doesn't have a sdp server and was not supported by
> bluez-tools.
>
> (Here are the caracteristics of my keyboard:
> bd addr : 00:0A:3A:2E:7B:AC
> name : KEYBOARD
> CoD (Class of Device/Service) : 0x001f00
> )
>
> So i have make some change in your source code to support him.
> Here is my patch and the patched tar.gz (with my makefiles, and i have
> verify that files wasn't modified recently on CVS).
>
> As you will see i have created a new file devices.h and i have
> suggested an architecture to manage different peripherals.

I have put a file fakehid.txt in the CVS with the characteristics of
this keyboard and also the presenter device.

> As I work for Sagem Communication, this keyboard now will work on our
> Sagem Linux phone (in developpement).

Make sure to send me one for testing ;)

> (I Gonna make it work now on my Nokia 770, but I don't know how to do
> it yet, as it use dbus... and i am asking me if that was really
> necessary, and if hidd is used on the Nokia 770...).

The Nokia 770 has no supported HID support. However you can install an
applet that gives you keyboard support. This however runs hidd and so it
should not be a big problem to integrate it.

> I notice the hidd deamon may need some minor improvement now, like
> forking and doing a "search device" on a signal event. Or reading a
> configuration file that contains knows devices and connect them on
> other signal... (or using dbus... ?). (just thinking... trying to
> share ideas...).

The hidd needs D-Bus support and a small redesign. However at the moment
we are just finishing the D-Bus support in hcid and its sdpd integration
and so it might take some time before we start looking at hidd. However
feel free to propose something.

> PS: I don't have a "secure" mail server to suscribe myself to
> bluez-devel mail list. So could you please add one of my email to the
> bluez-devel mail list ?
> (personnal email: [email protected], professionnal email:
> [email protected], should be the one in sender field of
> this email).

No idea what this means. Nobody needs a secure mail server to subscribe
to bluez-devel. Simply use the webform to subscribe.

> PS2: Any comments about my patche are welcome...

It needs a little bit nicer and cleaner integration work, but it seem a
good step forward to make this keyboard work under Linux.

Regards

Marcel







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


Attachments:
hidd_enhance2.patch.bz2 (4.12 kB)

2006-09-16 23:18:56

by Marcel Holtmann

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

Hi Jean-Jacques,

> OK, thx. Gonna use it monday morning, but it seems that the do_search
> option(function) won't find the device.

I overlooked that part. Fixed now.

> Note: You dislike my doxygen comments ? ;-)
> Being serious I still ask me why people (like you) in low-level free softwares
> still don't use tools/comments like doxygen to make their code more easily
> understandable for others.

I don't even looked that deeply at your patch. I took your key mapping
table and then implemented it.

And btw. the left space bar is not working.

> For exemple doxygen comments could have make me understand the fakehid
> variable before to send you my patch...

A lot of stuff could have made it easier, but most projects don't even
document internal functions at all. Feel free to blame the author, oh
wait a second that is me, so no blame allowed ;)

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

2006-09-16 15:07:56

by Jean-Jacques Brucker

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

OK, thx. Gonna use it monday morning, but it seems that the do_search=20
option(function) won't find the device.

Note: You dislike my doxygen comments ? ;-)
Being serious I still ask me why people (like you) in low-level free softwa=
res=20
still don't use tools/comments like doxygen to make their code more easily=
=20
understandable for others.

For exemple doxygen comments could have make me understand the fakehid=20
variable before to send you my patch...=20

Cordialement,=20
Jean-Jacques.


Le Samedi 16 Septembre 2006 14:12, Marcel Holtmann a =E9crit=A0:
> Hi Jean-Jacques,
>
> > Thx to answer me so fast, sorry that in the precedent patch i forget
> > to clean fakehid.c. This is done in this patch. As, I have see in the
> > cvs you should have a J3 Keyboard too... :-)
>
> a slight modified version is now committed to the CVS.
>
> > About my Nokia, I know the applet but i don't have take the time to
> > analyse source codes.
>
> The hidd needs to be D-Bus enabled.
>
> 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=3Dlnk&kid=3D120709&bid=3D263057&dat=
=3D121642
> _______________________________________________
> Bluez-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/bluez-devel

2006-09-16 12:12:14

by Marcel Holtmann

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

Hi Jean-Jacques,

> Thx to answer me so fast, sorry that in the precedent patch i forget
> to clean fakehid.c. This is done in this patch. As, I have see in the
> cvs you should have a J3 Keyboard too... :-)

a slight modified version is now committed to the CVS.

> About my Nokia, I know the applet but i don't have take the time to
> analyse source codes.

The hidd needs to be D-Bus enabled.

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