Click here to Skip to main content
15,887,351 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I want to make a code which send data to another server via serial communications.
But only sending is accepted but no receiving any other data or error messages from counter part.

So I - sending part application - must assume whether the sending is ok or not.

How and what kind of these sending error kinds of results.
And if possible, let me inform about another possible check algorithm or protocol.

Thank you in advance.

What I have tried:

Last 1 week, I have considered this protocol but failed.
Posted
Updated 12-Apr-17 21:11pm

1 solution

If you have a uni direction communication you can't detect such errors. All you can do on the sending side is checking for interface errors when writing to the device. But such will usually not happen with serial interfaces when the device has been opened successfully.

But you may use hardware handshaking which uses additional lines of the serial interface (RTS, CTS, DTR). This allwos at least to detect if the other site is present and can receive data.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900