Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 3 of 3

Thread: USB Serial data integrity

  1. #1
    Junior Member
    Join Date
    Oct 2012
    Posts
    2

    USB Serial data integrity

    Hello,

    This may seem like a silly question, but I wanted to sanity check my thinking on this. I am currently playing with porting firmware for running a RepRap 3D printer to Teensy 3.0, in which the PC host software uses the USB Serial to send commands to the firmware. Currently, the data contains line numbers and a checksum to ensure data integrity over historically potentially noisy serial lines.

    Since the USB Serial channel only presents itself as a Serial port, but is actually a proper USB channel, am I correct in thinking this error checking is redundant? In all tests to date, I've yet to find any communication errors using the USB Serial to send data to Teensy 3.0.

    Thank for any advice on this.

  2. #2
    Administrator Paul's Avatar
    Join Date
    Oct 2012
    Posts
    332
    Yes, USB has error checking on every packet (with automatic retransmit) and end-to-end flow control on every endpoint, so the error checking within the serial data is redundant. But it probably adds only minimal overhead.

  3. #3
    Junior Member
    Join Date
    Oct 2012
    Posts
    2
    Thanks Paul!

Posting Permissions

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