A message for Linux.com registered users: We are in the process of making changes to the Linux forums. Starting Monday, 8/13/18 at 6:00 PM PT, you will be unable to access the forums. They will re-launch as soon as possible on Wednesday, 8/15/18 with new features and improved functionality. Thank you for your patience and stay tuned for the new improved forums.

August 18, 2009

Serial port communication

Forums: 

Hi everybody,

I would like to send some text or command to the serial port (to the some HW) and read answer back. It works in terminal. I did probe it in minicom app. But when I would like to probe it in command line, it doesn't work.

Sending ...
echo "...." > /dev/ttyS0
It works ...

Reading ...
cat /dev/ttyS0
It doesn't work ..

Can you help me, please? Thnx for all info.

Rene

Click Here!