Hi,

I wish to develop a usb-hid device driver. I have the following
questions:

1) Should it be developed using WDF or WDM?

2) I am referring to the HID standard class. Is it enough as a
document to refer all the APIs that can be used for the above purpose?

3) I've downloaded the latest(as on May 06, 2008) DDK from microsoft.
Does it have any example codes that mention about USB-HID device
driver?

Please note that I am referring the following resources:

1) USB Complete
-Jan Axelson

2) Making USB Device Drivers Easier Using the HID Class
-Stuart Allman

3) Device Class Def for HIDs.pdf

I am particularly looking for the example code to do this.

Regards,
Embedded Boy

Re: USB-HID device driver by Embedded

Embedded
Tue May 06 08:34:33 CDT 2008

On May 6, 3:29 pm, Embedded Boy <embd....@gmail.com> wrote:
> Hi,
>
> I wish to develop a usb-hid device driver. I have the following
> questions:
>
> 1) Should it be developed using WDF or WDM?
>
> 2) I am referring to the HID standard class. Is it enough as a
> document to refer all the APIs that can be used for the above purpose?
>
> 3) I've downloaded the latest(as on May 06, 2008) DDK from microsoft.
> Does it have any example codes that mention about USB-HID device
> driver?
>
> Please note that I am referring the following resources:
>
> 1) USB Complete
> -Jan Axelson
>
> 2) Making USB Device Drivers Easier Using the HID Class
> -Stuart Allman
>
> 3) Device Class Def for HIDs.pdf
>
> I am particularly looking for the example code to do this.
>
> Regards,
> Embedded Boy

Let me be little more specific.

I wish to write an application which can communicate with and USB-HID
device connected to the host. Actually, the device is a microchip
Explorer16 board that will be connected to the host pc using usb
interface.

My understanding is:
- The windows OS already has USB-HID driver.
- This application will basically be calling certain APIs/
functions(specified in the Device Class Def for HIDs.pdf) to send data/
request and receive data/reply.
- I will also need to check the microchip board's data sheet to check
how it will communicate in such a scenario, with the host.

Please confirm whether my assumptions are correct or not and do share
with me if you see there is something to suggest.

And ofcourse, do respond to both the posts(above one and current one).

Thanks in advance :)

Regards,
Embedded Boy

Re: USB-HID device driver by Doron

Doron
Tue May 06 12:12:36 CDT 2008

you do not need to write a driver at all, this can be done entirely in user
mode using the HID apis in HID.dll (HidD_xxx).

d

--
Please do not send e-mail directly to this alias. this alias is for
newsgroup purposes only.
This posting is provided "AS IS" with no warranties, and confers no rights.


"Embedded Boy" <embd.boy@gmail.com> wrote in message
news:4f7b91bf-ae40-4d66-bb87-00347c586b5f@p39g2000prm.googlegroups.com...
> On May 6, 3:29 pm, Embedded Boy <embd....@gmail.com> wrote:
>> Hi,
>>
>> I wish to develop a usb-hid device driver. I have the following
>> questions:
>>
>> 1) Should it be developed using WDF or WDM?
>>
>> 2) I am referring to the HID standard class. Is it enough as a
>> document to refer all the APIs that can be used for the above purpose?
>>
>> 3) I've downloaded the latest(as on May 06, 2008) DDK from microsoft.
>> Does it have any example codes that mention about USB-HID device
>> driver?
>>
>> Please note that I am referring the following resources:
>>
>> 1) USB Complete
>> -Jan Axelson
>>
>> 2) Making USB Device Drivers Easier Using the HID Class
>> -Stuart Allman
>>
>> 3) Device Class Def for HIDs.pdf
>>
>> I am particularly looking for the example code to do this.
>>
>> Regards,
>> Embedded Boy
>
> Let me be little more specific.
>
> I wish to write an application which can communicate with and USB-HID
> device connected to the host. Actually, the device is a microchip
> Explorer16 board that will be connected to the host pc using usb
> interface.
>
> My understanding is:
> - The windows OS already has USB-HID driver.
> - This application will basically be calling certain APIs/
> functions(specified in the Device Class Def for HIDs.pdf) to send data/
> request and receive data/reply.
> - I will also need to check the microchip board's data sheet to check
> how it will communicate in such a scenario, with the host.
>
> Please confirm whether my assumptions are correct or not and do share
> with me if you see there is something to suggest.
>
> And ofcourse, do respond to both the posts(above one and current one).
>
> Thanks in advance :)
>
> Regards,
> Embedded Boy


Re: USB-HID device driver by Embedded

Embedded
Wed May 07 09:38:10 CDT 2008

On May 6, 10:12 pm, "Doron Holan [MSFT]" <dor...@online.microsoft.com>
wrote:
> you do not need to write a driver at all, this can be done entirely in user
> mode using the HID apis in HID.dll (HidD_xxx).
>
> d
>
> --
> Please do not send e-mail directly to this alias. this alias is for
> newsgroup purposes only.
> This posting is provided "AS IS" with no warranties, and confers no rights.
>
> "Embedded Boy" <embd....@gmail.com> wrote in message
>
> news:4f7b91bf-ae40-4d66-bb87-00347c586b5f@p39g2000prm.googlegroups.com...
>
> > On May 6, 3:29 pm, Embedded Boy <embd....@gmail.com> wrote:
> >> Hi,
>
> >> I wish to develop a usb-hid device driver. I have the following
> >> questions:
>
> >> 1) Should it be developed using WDF or WDM?
>
> >> 2) I am referring to the HID standard class. Is it enough as a
> >> document to refer all the APIs that can be used for the above purpose?
>
> >> 3) I've downloaded the latest(as on May 06, 2008) DDK from microsoft.
> >> Does it have any example codes that mention about USB-HID device
> >> driver?
>
> >> Please note that I am referring the following resources:
>
> >> 1) USB Complete
> >> -Jan Axelson
>
> >> 2) Making USB Device Drivers Easier Using the HID Class
> >> -Stuart Allman
>
> >> 3) Device Class Def for HIDs.pdf
>
> >> I am particularly looking for the example code to do this.
>
> >> Regards,
> >> Embedded Boy
>
> > Let me be little more specific.
>
> > I wish to write an application which can communicate with and USB-HID
> > device connected to the host. Actually, the device is a microchip
> > Explorer16 board that will be connected to the host pc using usb
> > interface.
>
> > My understanding is:
> > - The windows OS already has USB-HID driver.
> > - This application will basically be calling certain APIs/
> > functions(specified in the Device Class Def for HIDs.pdf) to send data/
> > request and receive data/reply.
> > - I will also need to check the microchip board's data sheet to check
> > how it will communicate in such a scenario, with the host.
>
> > Please confirm whether my assumptions are correct or not and do share
> > with me if you see there is something to suggest.
>
> > And ofcourse, do respond to both the posts(above one and current one).
>
> > Thanks in advance :)
>
> > Regards,
> > Embedded Boy

Thanks.

I am currently referring to the "hclient" demo source code located
under the hid folder in the WDK demo source code. This seems to
provide enough information.

I guess that should resolve the issue. Any comments?

Regards,
Embedded Boy

Re: USB-HID device driver by Doron

Doron
Wed May 07 15:36:49 CDT 2008

hclient is a fine place to start

--
Please do not send e-mail directly to this alias. this alias is for
newsgroup purposes only.
This posting is provided "AS IS" with no warranties, and confers no rights.


"Embedded Boy" <embd.boy@gmail.com> wrote in message
news:4f5f9aa0-a245-432f-a789-457e5eef4088@z16g2000prn.googlegroups.com...
> On May 6, 10:12 pm, "Doron Holan [MSFT]" <dor...@online.microsoft.com>
> wrote:
>> you do not need to write a driver at all, this can be done entirely in
>> user
>> mode using the HID apis in HID.dll (HidD_xxx).
>>
>> d
>>
>> --
>> Please do not send e-mail directly to this alias. this alias is for
>> newsgroup purposes only.
>> This posting is provided "AS IS" with no warranties, and confers no
>> rights.
>>
>> "Embedded Boy" <embd....@gmail.com> wrote in message
>>
>> news:4f7b91bf-ae40-4d66-bb87-00347c586b5f@p39g2000prm.googlegroups.com...
>>
>> > On May 6, 3:29 pm, Embedded Boy <embd....@gmail.com> wrote:
>> >> Hi,
>>
>> >> I wish to develop a usb-hid device driver. I have the following
>> >> questions:
>>
>> >> 1) Should it be developed using WDF or WDM?
>>
>> >> 2) I am referring to the HID standard class. Is it enough as a
>> >> document to refer all the APIs that can be used for the above purpose?
>>
>> >> 3) I've downloaded the latest(as on May 06, 2008) DDK from microsoft.
>> >> Does it have any example codes that mention about USB-HID device
>> >> driver?
>>
>> >> Please note that I am referring the following resources:
>>
>> >> 1) USB Complete
>> >> -Jan Axelson
>>
>> >> 2) Making USB Device Drivers Easier Using the HID Class
>> >> -Stuart Allman
>>
>> >> 3) Device Class Def for HIDs.pdf
>>
>> >> I am particularly looking for the example code to do this.
>>
>> >> Regards,
>> >> Embedded Boy
>>
>> > Let me be little more specific.
>>
>> > I wish to write an application which can communicate with and USB-HID
>> > device connected to the host. Actually, the device is a microchip
>> > Explorer16 board that will be connected to the host pc using usb
>> > interface.
>>
>> > My understanding is:
>> > - The windows OS already has USB-HID driver.
>> > - This application will basically be calling certain APIs/
>> > functions(specified in the Device Class Def for HIDs.pdf) to send data/
>> > request and receive data/reply.
>> > - I will also need to check the microchip board's data sheet to check
>> > how it will communicate in such a scenario, with the host.
>>
>> > Please confirm whether my assumptions are correct or not and do share
>> > with me if you see there is something to suggest.
>>
>> > And ofcourse, do respond to both the posts(above one and current one).
>>
>> > Thanks in advance :)
>>
>> > Regards,
>> > Embedded Boy
>
> Thanks.
>
> I am currently referring to the "hclient" demo source code located
> under the hid folder in the WDK demo source code. This seems to
> provide enough information.
>
> I guess that should resolve the issue. Any comments?
>
> Regards,
> Embedded Boy