locked
HID device side RRS feed

  • Question

  • Hi All,

    I want to add or port HID driver device side in WinCE6.0 with iMX223 processor.

    As I searched in the net and understood that Microsoft HID driver is host-side, not device-side.

    Please provide any information related to it.

    Thanks in advance.

    With Thanks

    nadini

    Monday, March 4, 2013 4:45 AM

All replies

  • you mean your device want to act as a HID device to host (example PC),Yes. you don't have device side HID driver. There are sample functional client drivers are available in Wince 6.0.

    examples, UFNPRN (\WINCE600\PUBLIC\COMMON\OAK\DRIVERS\USBFN\CLASS\UFNPRN) - USB Functional client driver for Printer. you can take this as a sample to write a HID functional client driver.


    Vinoth.R

    www.e-consystems.com

    http://vinoth-vinothblog.blogspot.com

    Monday, March 4, 2013 5:32 AM
  • Dear Vinoth,

    Thanks for the quick reply.

    I will try the same.

    With Regards

    Nadini

    Monday, March 4, 2013 5:36 AM
  • Hi Vinoth,

    Just for my knowledge I am asking you the following question,

    While searching the information about the USB client HID driver I came across the following folder,

    C:\WINCE600\PUBLIC\COMMON\OAK\DRIVERS\USB\CLASS\HID\HIDCLASS\

    Which contains two sub folders,

    1.MDD.

    2.USBPDD.

    This refers to which driver.

    Weather it could be used for USB Client Device for HID??

    I got this doubt because in the file

    C:\WINCE600\PUBLIC\COMMON\OAK\DRIVERS\USB\CLASS\HID\HIDCLASS\USBPDD\usbhid.cpp

    I have seen the line " USB Client Driver for Human Interface Device (HID) Class." in comments.

    Please correct me if my understanding is wrong.

    With Thanks

    Nadini

    Monday, March 4, 2013 1:33 PM
  • Hi All,

    I have understood that the HID device I need to port it from the reference code for example,

    UFNPRN (\WINCE600\PUBLIC\COMMON\OAK\DRIVERS\USBFN\CLASS\UFNPRN)

    To modify/use this code I need to Clone it from public to my platform folder.

    To achieve this I have referred the following link,

    http://geekswithblogs.net/BruceEitman/archive/2008/07/02/platform-builder-clone-public-code.aspx

    When I will run Build command to the new ported folder the following set of errors I am getting,

    BUILD: [00:0000000119:PROGC ] Building COMPILE Pass in C:\WINCE600\PLATFORM\CALYPSOFS\SRC\DRIVERS\PRNLocal\UFNPRN\ directory.
    BUILD: [01:0000000129:PROGC ] Compiling .\usbfnprn.cpp
    BUILD: [01:0000000132:ERRORE] C:\WINCE600\public\common\oak\inc\CMthread.h(118) : error C2220: warning treated as error - no 'object' file generated
    BUILD: [01:0000000133:WARNN ] C:\WINCE600\public\common\oak\inc\CMthread.h(118) : warning C4245: '=' : conversion from 'int' to 'DWORD', signed/unsigned mismatch
    BUILD: [01:0000000134:WARNN ] c:\wince600\platform\calypsofs\src\drivers\prnlocal\ufnprn\usbfnprn.h(97) : warning C4512: 'CUsbFuncTransfer' : assignment operator could not be generated
    BUILD: [01:0000000136:WARNN ] c:\wince600\platform\calypsofs\src\drivers\prnlocal\ufnprn\usbfnprn.h(151) : warning C4512: 'CUsbFuncPipe' : assignment operator could not be generated
    BUILD: [01:0000000138:WARNN ] c:\wince600\platform\calypsofs\src\drivers\prnlocal\ufnprn\usbfnprn.h(114) : warning C4100: 'pTransfer' : unreferenced formal parameter
    BUILD: [01:0000000139:WARNN ] c:\wince600\platform\calypsofs\src\drivers\prnlocal\ufnprn\usbfnprn.h(160) : warning C4512: 'CUsbFuncPrinterOut' : assignment operator could not be generated
    BUILD: [01:0000000141:WARNN ] c:\wince600\platform\calypsofs\src\drivers\prnlocal\ufnprn\usbfnprn.h(169) : warning C4512: 'CUsbFuncPrinterIn' : assignment operator could not be generated
    BUILD: [01:0000000143:WARNN ] c:\wince600\platform\calypsofs\src\drivers\prnlocal\ufnprn\usbfnprn.h(220) : warning C4100: 'udr' : unreferenced formal parameter
    BUILD: [01:0000000144:WARNN ] C:\WINCE600\PLATFORM\CALYPSOFS\SRC\DRIVERS\PRNLocal\UFNPRN\.\usbfnprn.cpp(88) : warning C4100: 'lpReserved' : unreferenced formal parameter
    BUILD: [01:0000000145:WARNN ] C:\WINCE600\PLATFORM\CALYPSOFS\SRC\DRIVERS\PRNLocal\UFNPRN\.\usbfnprn.cpp(282) : warning C4189: 'fRet' : local variable is initialized but not referenced
    BUILD: [01:0000000146:WARNN ] C:\WINCE600\PLATFORM\CALYPSOFS\SRC\DRIVERS\PRNLocal\UFNPRN\.\usbfnprn.cpp(1173) : warning C4100: 'udr' : unreferenced formal parameter
    BUILD: [01:0000000147:WARNN ] C:\WINCE600\PLATFORM\CALYPSOFS\SRC\DRIVERS\PRNLocal\UFNPRN\.\usbfnprn.cpp(1182) : warning C4100: 'udr' : unreferenced formal parameter
    BUILD: [01:0000000148:WARNN ] C:\WINCE600\PLATFORM\CALYPSOFS\SRC\DRIVERS\PRNLocal\UFNPRN\.\usbfnprn.cpp(1195) : warning C4100: 'udr' : unreferenced formal parameter
    Build for Windows CE (Release 601) (Built on Aug 17 2006 15:18:52)
    File names: Build.log Build.wrn Build.err Build.dat

    Any idea why I am getting these errors??

    Advance thanks for the help.

    With Thanks

    nadini

    Tuesday, March 5, 2013 12:48 PM