Quick USB CRC5 question


Closed Thread
Results 1 to 3 of 3
  1. #1

    Question Quick USB CRC5 question

    Hi! I'm trying to spend some time learning a bit about usb, and have been reading the cdc example...as well as some pages on the usb standard...

    Now I have one question regarding the cdc example/virtual com ports:

    Does the USB interface do CRC5 automatically?...
    ...and could one therefore omit using checksums on the virtual "serial" data trasmitted/received between pic and pc...

    (unfortunately, I havent gotten around to reading Jan Alexson book)

  2. #2
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959

    Default

    USB uses CRC5 for Token packets, and CRC16 for Data packets.
    Upon error, a resend request tells the host/slave to send it again.

    By the time it gets to one end or the other, you're pretty much guaranteed it's valid data.

    DT

  3. #3

    Smile

    Thanks! That's nice to know...

Similar Threads

  1. USB CDC Communications for Dummies!
    By Squibcakes in forum USB
    Replies: 104
    Last Post: - 15th January 2014, 13:43
  2. Simple USB Comms Problem
    By awmt102 in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 6th January 2010, 20:17
  3. Loaded USB question + Hey Squib
    By Steve_88 in forum USB
    Replies: 5
    Last Post: - 16th October 2007, 22:53
  4. USB PIC without USB Connection
    By Tissy in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 26th December 2005, 17:39
  5. Interrupt Quick Question
    By shawn in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 25th January 2005, 05:51

Members who have read this thread : 1

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