How do I connect to the device in CE 4.1? I will need to
receive the the IN packets and send OUT packets.
-Tom
In any case, you connect a device in exactly the same way you do on a PC;
plug it into one of the USB ports. Most (all?) CE devices with USB host
functionality ship with a HID driver.
A HID-compliant device must also be USB-compliant. The data getting
transferred correctly is a necessary but insufficient test. Setup and
response times, for example, must be within spec.
- Jeff.
"Tom Unsicker" <tuns...@coinco.com> wrote in message
news:01cb01c36366$397d1aa0$a501...@phx.gbl...
With a PC, I can obtain the device path through the normal
SetupDi function calls. To my knowledge, these function
calls are not available on a CE platform. I am looking
for guidance on the following questions.
1. What is the best way to parse through the active device
list to find my HID device?
2. Once I find the device, how do I setup the system to
send and receive data?
Regards
-Tom
--
Steve Schrock
Windows CE Device Drivers
This posting is provided "AS IS" with no warranties, and confers no rights.
"Tom Unsicker" <tuns...@coinco.com> wrote in message
news:01fe01c3636c$9140d9b0$a601...@phx.gbl...
If our device is the only device connected to USB, is there
any way an application can receive the data sent by the
device using only the default HID driver?
>-----Original Message-----
>For 4.1, you will need to either modify the sample USB HID
driver so that it
>supports your device, or write a complete USB client
driver that is keyed on
>your device and product ID. There is no good way in 4.1 to
do this in an
>easier way through APIs.
>
>--
>Steve Schrock
>Windows CE Device Drivers
>
>This posting is provided "AS IS" with no warranties, and
confers no rights.
>
>"Tom Unsicker" <tuns...@coinco.com> wrote in message
>news:01fe01c3636c$9140d9b0$a601...@phx.gbl...
>.
>
This task would be much easier in 4.2, since the HID drivers are already
abstracted from the USB driver.
--
Steve Schrock
Windows CE Device Drivers
This posting is provided "AS IS" with no warranties, and confers no rights.
"Tom" <tuns...@coinco.com> wrote in message
news:096101c363f7$5b876e20$a301...@phx.gbl...
I would still need to modify the existing driver or create
a class driver in 4.2, correct?
What is a good example to look at for creating a class
driver, if necessary?
Is platform builder still recommended, or would it be
enough removed that other tools such as eVC++ may be used?
Best regards,
Tom Unsicker
You could use the USB HID driver as an example, of course, but it can be
confusing. The USB printer class driver is much simpler, and in fact, that
is what I used as a template when I re-wrote the USB HID driver for 4.2.
You should be using Platform Builder to debug device drivers.
--
Steve Schrock
Windows CE Device Drivers
This posting is provided "AS IS" with no warranties, and confers no rights.
"Tom Unsicker" <tuns...@coinco.com> wrote in message
news:0af801c365a5$d80325c0$a501...@phx.gbl...
The benefit for building compliant devices is that they *can* work in a
sufficiently powerful and flexible environment, not that they *will* work
with zero additional effort.
You might not need to write a whole new driver and you certainly don't need
to write a new HID-class driver. Just make your driver load for only the
VID/PID of your device and let USBHID keep getting loaded for other HID
devices.
- Jeff.
"Tom" <tuns...@coinco.com> wrote in message
news:096101c363f7$5b876e20$a301...@phx.gbl...