public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
From: "Fritz Code" <codefritz@googlemail.com>
To: "BlueZ users" <bluez-users@lists.sourceforge.net>
Subject: Re: [Bluez-users] hidd and hidp
Date: Wed, 11 Jun 2008 11:33:25 +0200	[thread overview]
Message-ID: <3e9cdced0806110233w2252f8f4od7a49ea09676079b@mail.gmail.com> (raw)
In-Reply-To: <1213176225.1593.8.camel@pcmik05.zmk.uni-kl.de>

Thanks for your help so far.
I will take a look in detail concerning the functionality of hidp and
its real prerequisites.
The thing is, I can only use Kernel 2.4.21.
It might be ok to port the module hidp to kernel 2.4 but if it also
uses a generic HID Impl. of 2.6 which is total different to the one in
2.4 it might be too much work..
However, I've also tried bthid of Peter Klausler, it worked fine so
far, but if the Keyboard goes in idle-mode and tries to reconnect,
bthid crashes with a segmentation fault. So there seems to be a bug in
the listen mode of bthid.

So I will still focus both strategies... we will see which one is better...
1. porting hipd, hidd to Kernel 2.4!
2. debugging bthid!

Any help, hints are welcome...

thanks,
Fritz



On 6/11/08, Thomas Ilnseher <illth@gmx.de> wrote:
>
> Am Mittwoch, den 11.06.2008, 09:10 +0200 schrieb Fritz Code:
>> Hi!
>>
>> is it right that the two components hidd (the daemon) and the kernel
>> module hidp (found in net/bluetooth/) work together in order to
>> provide support for Bluetooth Keyboards and other HID devices?
>> As far as I know hidd has been replaced, if yes with what?
>> And which role plays the Input service which is also an own folder in
>> the bluez-utils?
> I dunno.
>>
>> Anyway, the two components hidd and hidp provide HID support?
>> I took a look at hidd and hidp and found out that hidd listends for
>> incoming connections, if it gets one it forwards this connection to
>> the kernel
>> modules hidp which adds it to its handlers. From there the kernel
>> module serves the connection and uses the well known input function
>> input_event to get the scancodes into the input system of linux.
> I spent some time debugging my bluetooth mouse. (I was using the
> 2.6.25.4 kernel).
>
> The hid traffic is done inside the kernel. I know there is some
> input_event codepath in hidp, but for my mouse, this codepath was NOT
> taken. there is an alternative codepath that forwards such bluetooth
> frames after some mangling to the generic hid driver, which parses the
> events, and uses register_event.
>
> Therefore you need the generic hid implementation of the kernel, too.
> in 2.6.25.4, and possibly earlier 2.6er kernels, there is a generic hid
> driver core, that is used by the usb_hid driver and hidp. The generic
> core does the nasty stuff like parsing the usage tables, etc ...
>>
>> So for a basic support of keyboards I only need hidd and hidp
>> running?
> i suspect that you need hcid as a prerequisite for hidd.
> I found out that if you do a 'hidd --search', nothing is forked. might
> be wrong thou.
>
>
>>
>> Thanks...
>>
>>
>>
>> --
>> Regards,
>> --Codefritz
>>
>>
>>
>> -------------------------------------------------------------------------
>> Check out the new SourceForge.net Marketplace.
>> It's the best place to buy or sell services for
>> just about anything Open Source.
>> http://sourceforge.net/services/buy/index.php
>> _______________________________________________ Bluez-users mailing list
>> Bluez-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/bluez-users
> --
> Thomas Ilnseher <illth@gmx.de>
>
>
> -------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://sourceforge.net/services/buy/index.php
> _______________________________________________
> Bluez-users mailing list
> Bluez-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bluez-users
>


-- 
Regards,
--Codefritz

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

  reply	other threads:[~2008-06-11  9:33 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-11  7:10 [Bluez-users] hidd and hidp Fritz Code
2008-06-11  9:23 ` Thomas Ilnseher
2008-06-11  9:33   ` Fritz Code [this message]
2008-06-11 12:50     ` Thomas Ilnseher
2008-06-11 18:11       ` Fritz Code

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3e9cdced0806110233w2252f8f4od7a49ea09676079b@mail.gmail.com \
    --to=codefritz@googlemail.com \
    --cc=bluez-users@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox