|
Prev: Number of IRPS
Next: Registry question ..
From: Embedded Boy on 6 May 2008 06:29 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
From: Embedded Boy on 6 May 2008 09:34 On May 6, 3:29 pm, Embedded Boy <embd....(a)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
From: Doron Holan [MSFT] on 6 May 2008 13:12 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(a)gmail.com> wrote in message news:4f7b91bf-ae40-4d66-bb87-00347c586b5f(a)p39g2000prm.googlegroups.com... > On May 6, 3:29 pm, Embedded Boy <embd....(a)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
From: Embedded Boy on 7 May 2008 10:38 On May 6, 10:12 pm, "Doron Holan [MSFT]" <dor...(a)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....(a)gmail.com> wrote in message > > news:4f7b91bf-ae40-4d66-bb87-00347c586b5f(a)p39g2000prm.googlegroups.com... > > > On May 6, 3:29 pm, Embedded Boy <embd....(a)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
From: Doron Holan [MSFT] on 7 May 2008 16:36 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(a)gmail.com> wrote in message news:4f5f9aa0-a245-432f-a789-457e5eef4088(a)z16g2000prn.googlegroups.com... > On May 6, 10:12 pm, "Doron Holan [MSFT]" <dor...(a)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....(a)gmail.com> wrote in message >> >> news:4f7b91bf-ae40-4d66-bb87-00347c586b5f(a)p39g2000prm.googlegroups.com... >> >> > On May 6, 3:29 pm, Embedded Boy <embd....(a)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
|
Pages: 1 Prev: Number of IRPS Next: Registry question .. |