Click here to Skip to main content
15,894,460 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
how to check no response is coming from serial port in C#
Posted

You can use the DataReceived event for the serial port:
_serialPort.DataReceived += new SerialDataReceivedEventHandler(sp_DataReceived);

Just add this event handler and check if a response if comming back in a meaningful time.
 
Share this answer
 
hiii,
To check responce you need to use acknowledgement in communication.
hope this article will help you.

Improving the Performance of Serial Ports Using C#[^]
 
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