Skip to content

Latest commit

 

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

send_tty

A bash script for sending a string to a serial (rs232) port and waiting for a response.

Use it like this:

./send_tty.sh "my-command" /dev/ttyPS0

This will send the text "my-command" to /dev/ttyPS0, wait for a response, and then output the response to stdout. The response must be terminated by an EOL character.

Some more info and a discussion can be found here.

TODO: Add timeout arg.

TODO: Add arg to specify end of response character.

TODO: Add option to specify response length rather than end of response character.

About

A bash script for sending a string to a serial port and waiting for a response.

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages