Hi,
Could someone please comment on whether or not the teensy usb driver in Win7/10 does a CRC check on the validity of data transmitted to/from a Teensy 3.6 via USB serial. I suspect it does not as sometimes when transferring data (typically transferring relatively small image files to/from an sd card on the Teensy 3.6) in an electrically noisy environment I find that some files are perfect while other files get corrupted. It seems to be pretty random in most of the time it works fine but sometimes you get the odd file that gets corrupted but re-sending the same file work okay. I'm getting around the problem by sending a checksum value after I send a file, checking against what was received by the Teensy 3.6 and then re-sending if they don't match. However, I'd like to try and get to the bottom of this as I also send many other custom commands via serial for which I have corresponding code on the Teensy 3.6 but don't do a checksum on all chars sent.
I'd like to implement a CRC check on all data packets sent/received, could anyone tell me if this can be done in a relatively easy manner for all data that is transferred in/out.
Any info much appreciated. Thanks.
Could someone please comment on whether or not the teensy usb driver in Win7/10 does a CRC check on the validity of data transmitted to/from a Teensy 3.6 via USB serial. I suspect it does not as sometimes when transferring data (typically transferring relatively small image files to/from an sd card on the Teensy 3.6) in an electrically noisy environment I find that some files are perfect while other files get corrupted. It seems to be pretty random in most of the time it works fine but sometimes you get the odd file that gets corrupted but re-sending the same file work okay. I'm getting around the problem by sending a checksum value after I send a file, checking against what was received by the Teensy 3.6 and then re-sending if they don't match. However, I'd like to try and get to the bottom of this as I also send many other custom commands via serial for which I have corresponding code on the Teensy 3.6 but don't do a checksum on all chars sent.
I'd like to implement a CRC check on all data packets sent/received, could anyone tell me if this can be done in a relatively easy manner for all data that is transferred in/out.
Any info much appreciated. Thanks.