Quote:
Originally Posted by
Meow613
What is absolutely confusing to me is that I had a C program and a PHP script that ran perfectly from both the command line and a as a script, then suddenly stopped running.
I bet the terminal settings on /dev/ttyS0 changed. They are global... If you change it, it stays changed until something else changes it (or the computer reboots). Terminal settings can do a
lot, not just baud rate but things like "should I force you to wait until there's an entire line?", "how many seconds until I give up, or wait forever?" and "should I strip out or translate carriage returns, or give them to you raw?"
That's probably why it works in minicom and not your shell, too. minicom knows how to set up the terminal. And why I want the printout from
stty -g -F /dev/ttyS0 while minicom is running -- if we can get its "working" settings maybe we can steal them.