Should be dead simple - read/write serial port from bash
Hi, I can only use bash for this and although there are many C examples just need the basics of reading & writing to a serial port, its controlling a modem.
I'm trying things like this
echo ATD555667676; > /dev/ttyS1
read LINE < /dev/ttyS1
but its not sending it (minicom is fine, its not a hardware problem).
Basically I just need the read and write commands, I want to do things like "Send AT", wait for "OK", "Dial number" when recieved, if "BUSY" then blah blah...
Thanks in advance