Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
968 Views

How to read data ttyS0 or ttyGS0

Hi,

 

 

I would like to know how to read ttyS0, can perform writes from linux console with conmando:

 

 

echo "Hello" > / dev/ttyS0

 

 

but can not read. I tried with the command:

 

 

cat / dev/ttyS0

 

 

but it did not work.

 

 

Could help me?
0 Kudos
1 Reply
Highlighted
Employee

Re: How to read data ttyS0 or ttyGS0

Greetings yarias

 

 

I know you can use cat /dev/ttyGS0 and it works, a way to test it is to open the IDE and to send something from the serial monitor, you should be able to the see the data you sent from the IDE in the Linux console.

 

Regards

 

JPMontero_Intel