timsanr
Member level 1
Hi,
I need programming advice. I suppose you met that problem and there are some typical solutions.
I have device which can interpret some commands and then do some related operation. I communicate with it via FTDI USB circuit. My problem is that receiving loop detects if incoming byte is e.g x"55" and if it is true, device sends hex data to PC. But it is also possible send data to device and it can contain x"55" values so device makes bad interpretation and starts to send data to PC.
What is a typical approach in such communication to avoid described situation? I can of course reprogram PC and device software.
It may seem to be stupid question but now I don't know how to do it the best way.
Regards
Tim
I need programming advice. I suppose you met that problem and there are some typical solutions.
I have device which can interpret some commands and then do some related operation. I communicate with it via FTDI USB circuit. My problem is that receiving loop detects if incoming byte is e.g x"55" and if it is true, device sends hex data to PC. But it is also possible send data to device and it can contain x"55" values so device makes bad interpretation and starts to send data to PC.
What is a typical approach in such communication to avoid described situation? I can of course reprogram PC and device software.
It may seem to be stupid question but now I don't know how to do it the best way.
Regards
Tim