Linux Read From Serial Port Command Line

4/16/2018by

I have a serial port device that I would like to test using linux command line. I am able to use stty and echo for sending commands to serial port, but when device. From windows I can communicate with a serial port device using. Writing to serial port from linux command line. From another post to read from the port.

Linux Read From Serial Port

/ This is for anything regarding the command line, in any operating system. All questions (including dumb ones), tips, and interesting programs/console applications you've found or made yourself are welcome. Most submissions will probably be Linux/Unix related, so it would be appropriate if Windows or whatever submissions have the tag [windows] in the title to prevent confusion. / ------------------------------- ^__^ (OO) _______ (__) ) / ----w commandline@reddit ~ $ _. I'm trying to capture serial port data and pass it to a bash command, i can use either a script or a 1 liner, doesnt matter much. Sony Pcg 6n2m Manual here. Basically what i'm doing is: I have a scale that can only output serial data, you need to connect with the following settings: baud 9600, 7 databits, non flow control, I can connect in any hyperterminal like picocom or minicom, and it works fine. However for the scale to return data it needs me to input the letter 'W', then it outputs weight, does anyone know of a way to just have a command where I can query the scale on the com port, send it the letter W and echo the result?

Linux Read From Serial Port Command Line
Comments are closed.