How can you test communication on a COM/Serial port?

Posted by Andy on Super User See other posts from Super User or by Andy
Published on 2012-09-11T14:12:27Z Indexed on 2012/09/11 15:41 UTC
Read the original article Hit count: 345

Filed under:
|
|

We have a OHAUAS Weighting scales with a COM port. if we connect this to a PC we should be able to get the weight on the computer by sending a command to it.

Is there a way to test this? i tried the command line echo "LP" > com1 but this does nothing. A small C# application that listens to this port seems to be continuously receive Hexadecimal numbers (2 digits then an enter), however sending a command through this application doesn't give readable results.

When i do listen on the port though, the echo "LP" > com1 command gives an unavaible error, so sending the command works in cmd.

Does anyone have any knowledge on a simple way to test a send and receive on a com port?

© Super User or respective owner

Related posts about command-line

Related posts about serial-port