bash - Pipe One Serial Port to Another in Linux -


i looking means pipe 1 serial ports data (regardless of data type) serial port. in case trying take in data 1 serial port , output through radio connected serial port in real time.

i know ports using , have looked program called socat, should able handle there no examples of how , have not been able figure out how it.

has been able use socat or bash scipt/some other method accomplish in linux??

i running ubuntu 14.04.

assuming serial port reading /dev/ttys0, , other writing (where radio connected) /dev/ttys1 shall do:

cat /dev/ttys0 > /dev/ttys1 

or

dd if=/dev/ttys0 of=/dev/ttys1 bs=1 

of course before should set serial ports' parameters using stty command.


Comments

Popular posts from this blog

javascript - Karma not able to start PhantomJS on Windows - Error: spawn UNKNOWN -

Nuget pack csproj using nuspec -

c# - Display ASPX Popup control in RowDeleteing Event (ASPX Gridview) -