USB CDC Communications for Dummies!


Closed Thread
Results 1 to 40 of 105

Hybrid View

  1. #1
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924

    Default Re: USB CDC Communications for Dummies!

    Just curious about post 57. What helped?
    Dave
    Always wear safety glasses while programming.

  2. #2
    Join Date
    Aug 2010
    Location
    Maryland, USA
    Posts
    869

    Default Re: USB CDC Communications for Dummies!


    I ment post 54!

    Sorry for the confusion
    -Bert

    The glass is not half full or half empty, Its twice as big as needed for the job!

    http://foamcasualty.com/ - Warbird R/C scratch building with foam!

  3. #3
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924

    Default Re: USB CDC Communications for Dummies!

    Back to your question about speed....
    I think it runs at USB speeds....

    Universal Serial Bus Features:
    • USB V2.0 Compliant
    • Low Speed (1.5 Mb/s) and Full Speed (12 Mb/s)
    Dave
    Always wear safety glasses while programming.

  4. #4
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,160

    Default Re: USB CDC Communications for Dummies!

    Just tech notes about USB speeds:

    The original USB 1.0 specification, which was introduced in January 1996, defined data transfer rates of 1.5 Mbit/s "Low Speed" and 12 Mbit/s "Full Speed". The first widely used version of USB was 1.1, which was released in September 1998. The 12 Mbit/s data rate was intended for higher-speed devices such as disk drives, and the lower 1.5 Mbit/s rate for low data rate devices such as joysticks.

    The USB 2.0 specification was released in April 2000 and was standardized by the USB Implementers Forum (USB-IF) at the end of 2001. Hewlett-Packard, Intel, Lucent Technologies (now Alcatel-Lucent), NEC and Philips jointly led the initiative to develop a higher data transfer rate, with the resulting specification achieving 480 Mbit/s, a fortyfold increase over the original USB 1.1 specification.

    The USB 3.0 specification was published on 12 November 2008. Its main goals were to increase the data transfer rate (up to 5Gbps), to decrease power consumption, to increase power output, and to be backwards-compatible with USB 2.0. USB 3.0 includes a new, higher speed bus called SuperSpeed in parallel with the USB 2.0 bus. For this reason, the new version is also called SuperSpeed. The first USB 3.0 equipped devices were presented in January 2010.
    http://en.wikipedia.org/wiki/Universal_Serial_Bus

  5. #5
    Join Date
    Dec 2005
    Posts
    1,073

    Default Re: USB CDC Communications for Dummies!

    I don't know whether I'm too dumb or not dumb enough to grasp all the intricacies of CDC but, if I understand it, there are virtual serial port drivers for interfacing on the PC side. When these are used, there's likely to be a slight speed hit as the data needs to be 'translated' from its RS232-ish form before transmitting and the reverse is true when receiving.

    This may not be noticed for normal communications but can be readily apparent when doing something like a firmware download which usuall includes short bits of data and CRC which is ACKed or NAKed from the embedded device. Of course, the faster the version of USB, the less this is a big factor.
    Last edited by dhouston; - 30th May 2011 at 23:16.

  6. #6
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898

    Default Re: USB CDC Communications for Dummies!

    For CDC, baudrate is a meaningless parameter. You can set hyperterminal/vbSerialPort a whatsoever baudrate, the usb engine will emulate a serial communication as fast as it can
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  7. #7
    Join Date
    Dec 2005
    Posts
    1,073

    Default Re: USB CDC Communications for Dummies!

    Quote Originally Posted by mister_e View Post
    For CDC, baudrate is a meaningless parameter. You can set hyperterminal/vbSerialPort a whatsoever baudrate, the usb engine will emulate a serial communication as fast as it can
    I'm not talking about transmission speed and I agree that baudrate has little meaning in this context. However, I have had a lot of experience downloading firmware files which might be as big as 64KB and there is a very noticeable difference between sending them via Serial->USB->Serial vs. sending them Serial->Serial with the latter being much faster as a result of the translation that must occur (on both ends). CDC should only need to translate on the PC end but I suspect there will be a significant speed hit never-the-less on certain applications.

Similar Threads

  1. Simple USB Comms Problem
    By awmt102 in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 6th January 2010, 20:17
  2. One USB keyboard to Two USB Ports
    By picnaut in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 11th June 2009, 00:04
  3. USB CDC help..
    By jchandir in forum USB
    Replies: 6
    Last Post: - 22nd November 2008, 21:23
  4. Replies: 4
    Last Post: - 5th November 2008, 16:21
  5. USB PIC without USB Connection
    By Tissy in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 26th December 2005, 17:39

Members who have read this thread : 2

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts