English 中文(简体)
USB Serial cable with CDC support
原标题:

I bought a USB to Serial cable which claims to be CDC compliant.

But the bInterfaceClass value in interface descriptor is 0xFF(which is vendor specific). I was expecting it to be 0x02 (Communications and CDC control).

In the device manager, i found that the drivers being loaded are ser2pl.sys and serenum.sys. I had learnt usbser.sys is the windows CDC driver, but it was not loaded for my cable.

I am pretty much new to this CDC, so i have following questions

1.Does this indicate that the cable is not CDC compliant 2.Can i make this cable CDC compliant (since CDC is a driver functionality), by loading usbser.sys. If yes how?

问题回答
  1. I don t know for sure but thats indication that cable will not necessary follow CDC
  2. I don t think you can make it compliant but if you want to use usbser.sys as driver for that cable you should provide inf file which should load usbser.sys if your cable is connected, check the driver VID PID etc probably this should help http://www.mjmwired.net/kernel/Documentation/usb/gadget_serial.txt (search for usbser.sys and look for .inf file, and modyfi it accordingly.

ser2pl.sys suggests a Prolific PL2303 device. They are not CDC compliant and they cannot be made to work with the CDC driver. OTOH they are working on Windows, Linux and OS X and are probably the most compatible chips on the market.

CDC was not used by cable vendors because it was really poorly implemented in Windows XP and IIRC it was not available at all in 9x/Me. It is nice that the driver finally work as it should in Windows 7 (dunno about Vista).





相关问题
Configuration of Java Developer s Notebook

For Java Platform, i use Eclipse Galileo IDE, Jboss Tools plugin, SpringSource IDE, MyEclipse IDE, Tomcat as Service, Mysql as Service, Oracle Sql Developer Client, Netbeans, Aptana Studio, also ...

deviceID format for PS/2 mouse

I would like to know the DeviceID and PNPDeviceID format for PS/2 Mouse. On my system Device ID for PS/2 mouse is ACPIPNP0F134&1F1D307&0. So is the format is ACPIPNPxxxx{something} or some ...

Java Hardware Interrupt Handling

I would like to know if it is possible to automatically invoke a Java method when a hardware interrupt is raised.

Determine VRAM size on windows

I need to determine roughly how much VRAM a system s graphics card has. I know all the reasons why I shouldn t but I do. It doesn t need to be perfect (some cards lie etc.) but I need a ballpark. On ...

Relation between USB and PCI

I m bit confused by the following statement in linux device drivers book. http://www.linuxdriver.co.il/ldd3/ 13.2. USB and Sysfs To help understand what this long device path means, we describe ...

Do bitwise operations distribute over addition?

I m looking at an algorithm I m trying to optimize, and it s basically a lot of bit twiddling, followed by some additions in a tight feedback. If I could use carry-save addition for the adders, it ...

热门标签