Re: USB - Newbie questions



ralph.mason@xxxxxxxxx wrote:

I am doing a redesign of a product using an AVR and a bunch of other components to use a single AT91SAM7S256.

Is there a USB driver that I can easily use with this chip to create the virtual comport (our device can pretend to be a modem)

There is a standard USB 'modem' device interface specification. See the CDC class here... <http://www.usb.org/developers/devclass_docs#approved>

If you write firmware for this device that conforms to this interface, then you won't need a driver at all... caveat follows...

Is it possible to have two virtual serial ports over the single USB connection without creating all kinds of new software. Multiple virtual comports would be very useful to us.

In theory, yes, you can have multiple virtual serial ports over a single USB connection. Practically, you're limited only by the number of endpoints that the chip supports. (Actually, some clever programming and you could in theory layer as many as you want over one or more endpoints, but that's not what you're after).


Some time back I succesfully implemented a CDC port on an EZUSB as a proof-of-concept for a product I was developing for a customer. I could talk serial with Hyperterm with no driver what-so-ever.

However, the windows side of things was a bit flaky and prone to crashing. You are also limited to a *single* function device - the CDC can have *no* other endpoints on the connection - or windows won't talk to it at all! Again, not what you're after.

If you really need multiple serial ports, then I'd imagine you're looking at writing a driver.

FWIW I read plenty of posts at the time complaining about the flaky nature of CDC support under windows. I wasn't overly concerned as it wasn't a requirement for production.

Having said all this, IIRC this was WinXP SP1. I have no idea whether or not this is still an issue in later versions of windows.

Of course, none of these issues apply under Linux. ;)

Regards,
Mark
.



Relevant Pages

  • Re: [ANNOUNCE] RNDIS Gadget Driver
    ... Windows does not like it. ... > and the erratum I found also talks about better CDC ACM conformance. ... Handelsregister: Amtsgericht Hildesheim, HRA 2686 ... send the line "unsubscribe linux-kernel" in ...
    (Linux-Kernel)
  • Re: FT2322R an einem USB-Hub Trust HU-5540 - =?iso-8859-1?Q?=DCbertragunjgsfehle
    ... Der usbser.sys Treiber ist keine wirklich saubere Lösung. ... Windows erkennt im Gegensatz zu allen anderen zeitgemässen ... dass es sich um ein CDC Gerät ... nicht-WHQL-zertifiziert Warnung dazu. ...
    (de.sci.electronics)
  • Re: USB newbie: many questions (driver, class, etc.)
    ... that we could use Communication class (CDC) with Data ... windows creates a virtual COM port on its own (using ... but Windows 2000 Pro ... > GPS does not, but almost every single GPS application does. ...
    (microsoft.public.development.device.drivers)
  • Re: Cartes du Ciel
    ... > but the last time I installed CdC, the set up file had the old style setup ... > that shows something being decomparessed or something, bar fills up, image ... > and now these ram hog windows machines) that I've a level above total know ... download the base package cdcbase.exe it is a self-install ...
    (sci.astro.amateur)

Loading