Sending serial command in bash script

Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Damonc

Thread Starter
Joined
May 9, 2001
Messages
659
First Name
Damon
Hi,

I've been using minicom to manually start a GPS device, however I'd like to be able to script it to happen when ubuntu boots.

I know you can use scripts with minicom, however there doesn't appear to be a way to exit it at the end. I've seen others have recommended screen, or stty, but I'm not able to find any resources on how you'd connect them to /dev/ttyS0 and send the command.

suggestions welcome :)
 
Joined
May 28, 2018
Messages
154
Use the echo command.
Code:
https://askubuntu.com/questions/411108/how-to-write-characters-to-serial-port
 
Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 807,865 other people just like you!

Latest posts

Staff online

Top