Re: USB device class is CDC class - which device driver to write.



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.
.



Relevant Pages

  • Re: Sql server 2005 Endpoints? An error (0x80070005) occurred while attempting to register the endpo
    ... I verified that port 80 is free with netstat and here is your output. ... Cannot find the object "myEndPoint" because it does not exist or you do ... register endpoint 'MyEndpoint' on the specified URL. ...
    (microsoft.public.sqlserver.connect)
  • Re: ISDN phone lines
    ... > (An endpoint with both is smart enough to route incoming calls to POTS vs. ... > data port.) ... Do most of the ISDN phone "systems" have this ability? ...
    (sci.electronics.design)
  • Re: ISDN phone lines
    ... > (An endpoint with both is smart enough to route incoming calls to POTS vs. ... > data port.) ... Do most of the ISDN phone "systems" have this ability? ...
    (sci.electronics.basics)
  • Re: Flaw in RPC Endpoint Mapper - NT 4.0 FIX
    ... > Microsoft follows supposedly open DCE specifications for RPC and some ... > port for endpoint on the network interface. ... However I understand that Microsoft cannot ... we don't use the Endpoint mapper. ...
    (microsoft.public.security)

Quantcast