Hi all
We are using USB Serial to communicate with a PC.
Everything is working FINE and we have no issues, unless for a little thing...
When 2 bytes are sent, the first is 0x0 and the second is 0x1, only the first byte is received on the PC. Every once & a while the second byte occurs in the datastream (I have a extreme fast PC). This is (me concerning) because FC7 does not check whether the last USB-TX is completed before introducing a new TX (which finally fails to send).
Of course we could add a delay between the first sendbyte & the second one... but this is surely not the best way to learn students some basic 'good programming practices'.
Is there a (good) way to check if the USB-module is 'clear -to-send' a new byte, so we are sure that the next TX will be transmitted correctly?
Thanks in advance for all contributions.
USB Serial
Moderator: Benj
- faveremario
- Posts: 28
- Joined: Sat Jun 02, 2012 6:08 pm
- Has thanked: 8 times
- Been thanked: 13 times
- Contact:
USB Serial
- Attachments
-
- Capture.PNG
- (32.33 KiB) Downloaded 1271 times
-
- TestUSBSerial.fcfx
- (8.36 KiB) Downloaded 211 times