Re: USB device class is CDC class - which device driver to write.
- From: chris.aseltine@xxxxxxxxx
- Date: Wed, 12 Mar 2008 08:35:59 -0700 (PDT)
On Mar 12, 9:34 am, SenseShankar
<SenseShan...@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
"Usbser.sys will operate at the native speed of your device and the USB
stack. Baud rate, etc. settings are sent via control requests to Endpoint 0"
- If i understand it right, above thing you quoted is something how it
happens between 'Driver<-->H/w Device'.
Well, mostly. I'm saying if you call, say, SetCommState() on the COM
port created by usbser.sys, this will result in a series of serial
IOCTLs being sent to the driver. The driver, in turn, will translate
them into endpoint zero control requests sent to the device. In other
words, you won't get much in the way of endpoint zero requests without
interaction from userspace.
-Can you just breifly explain how exactly, from my application I should be
interacting with the device/Driver ?
(For example, In current existing scenario i wrote a serial class to write
&Read on to the port handle with specific baud(19200) rate given by my
protocol MODBUS - packet format.etc.)
Well, if you use usbser.sys, one of the advantages is that (in theory)
you can use exactly the same approach -- ReadFile()/WriteFile() plus
the existing set of serial API's.
- Will the usage of 'usbser.sys-CDC ACM' will still install the driver as a
'virtual COM port' OR Is there any other way to get it installed ? My concern
of questioning being - trying to make it(driver) work optimally and by
following the standards.
You basically have two choices: "Modem" class (which you don't want,
since your device is not a modem) or "Ports" ("virtual COM port")
class.
The class installer for each one will reserve you a COM port on the
system, while "Modem" class will additionally install your device as a
"modem" on the system, which again I don't think you want.
.
- Follow-Ups:
- Re: USB device class is CDC class - which device driver to write.
- From: SenseShankar
- Re: USB device class is CDC class - which device driver to write.
- From: SenseShankar
- Re: USB device class is CDC class - which device driver to write.
- References:
- Re: USB device class is CDC class - which device driver to write.
- From: chris . aseltine
- Re: USB device class is CDC class - which device driver to write.
- From: SenseShankar
- Re: USB device class is CDC class - which device driver to write.
- From: chris . aseltine
- Re: USB device class is CDC class - which device driver to write.
- From: SenseShankar
- Re: USB device class is CDC class - which device driver to write.
- From: chris . aseltine
- Re: USB device class is CDC class - which device driver to write.
- From: SenseShankar
- Re: USB device class is CDC class - which device driver to write.
- Prev by Date: Re: IA64 bit driver
- Next by Date: Re: Problem with USB High Speed Hub
- Previous by thread: Re: USB device class is CDC class - which device driver to write.
- Next by thread: Re: USB device class is CDC class - which device driver to write.
- Index(es):
Relevant Pages
|