Help with script issue involving serial device
Colin Law
clanlaw at gmail.com
Thu Jun 23 07:44:24 UTC 2022
On Thu, 23 Jun 2022 at 00:45, Dave Stevens <geek at uniserve.com> wrote:
>
> stty raw -R /dev/ttyUSB0 9600 cs8 -cstopb -parenb -ixon -ixoff
>
> so the sequence was, run stty then the three line script and all is
> good. The difficulty arose as soon as I inserted the stty command into
> the script as the new line 1. Then the script fails to run. If I back
> up to running the stty command standalone first then the three liner
> works with no problems.
Try inserting
sleep 1
after the stty command. Though I will be a bit surprised if it helps;
What error are you getting? Is it the same error that you originally
got without the stty command?
Colin
More information about the ubuntu-users
mailing list