USB CDC Communications for Dummies!


Closed Thread
Results 1 to 40 of 105

Hybrid View

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

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

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

    Default Re: USB CDC Communications for Dummies!

    True that. CDC is really handy for older software unable to deal with USB, somehow easier to program on both side... but to me, IN 20XX... it still sucks.

    I know your arguments... but ...Pure USB for me... all the way.
    Steve

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

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

    Default Re: USB CDC Communications for Dummies!

    Steve, when do we get the pure USB for dummies? Both ends, PiC and PC??
    -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!

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

    Default Re: USB CDC Communications for Dummies!

    USBDemo was a kickstart for many. Time changed, PBP work tad different now, mcHID.dll/MCSP/EasyHid = somehow a dead duck, VB6 is a long time outdated thing, seems Jan Axelson code examples are not for everyone... so yeah I think it's about time.

    I know how, I know something rock solid. Keyword: be patient...

    (Still, there's LOAD of ressource/ready to go components/lib over the net on the PC side)
    Steve

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

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

    Default Re: USB CDC Communications for Dummies!

    and I quote:

    AAwwww come on guy, don't be lazy
    After spending my weekend searching and reading. I have come to the conclusion there is in fact - tons of examples and ready stuff all over the net. But does this help if one doesn't know where to start? Even bought Jan's book to help me. And it did. Now I assume my weekends work would amount to 30 minuites for someone able to write a picmulticalc. So a quick VB express (cuz it free to all) example passing a byte or 2 back and forth. Nothing more then that as it will overwhelm those who don't get it. ( read as ME ME ME)
    -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!

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

    Default Re: USB CDC Communications for Dummies!

    Quote Originally Posted by cncmachineguy View Post
    After spending my weekend searching and reading. I have come to the conclusion there is in fact - tons of examples and ready stuff all over the net. But does this help if one doesn't know where to start? Even bought Jan's book to help me. And it did. Now I assume my weekends work would amount to 30 minuites for someone able to write a picmulticalc. So a quick VB express (cuz it free to all) example passing a byte or 2 back and forth. Nothing more then that as it will overwhelm those who don't get it. ( read as ME ME ME)
    Everyone must start somewhere. Been there done that. I'm not more clever than anybody, but maybe I put more time & effort. I never found a magic potion to know everything and how to do things in a snap.
    1) have a project
    2) find information, read, digest them
    3) try something
    4) wash & rinse 'till it works

    You CAN'T learn VB (or else) in a day. It take months, years. I learnt the hard way too. The more you do, the more you develop tricks....the easier it gets.

    Don't give up!
    Steve

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

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

    Default Re: USB CDC Communications for Dummies!

    Quote Originally Posted by mister_e View Post
    Keyword: be patient...
    Ahh, you mean like waiting for the long-promised Tibbo EM500/GA1000 firmware. I'm down with that.

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

    Default Re: USB CDC Communications for Dummies!

    Quote Originally Posted by dhouston View Post
    Ahh, you mean like waiting for the long-promised Tibbo EM500/GA1000 firmware. I'm down with that.
    OH Really? Weird, It's the really first time I hear you about this long-promised Tibbo EM500/GA1000 firmware.

    Ham Mucus
    Steve

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

  10. #10
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,115

    Default Re: USB CDC Communications for Dummies!

    Quote Originally Posted by mister_e View Post
    I know how, I know something rock solid. Keyword: be patient...
    Hi Steve. Any news about this promised demo?

    Ioannis

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