scripted modem commands
- This topic has 2 replies, 2 voices, and was last updated 13 years, 7 months ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.
Home › Forums › MultiConnect OCG › scripted modem commands
Is there an easy way to send an AT command to the modem from the command line and read the response?
I’ve attempted to pipe a command to microcom but haven’t had any luck.
You should be able to use microcom, but the AT commands have to end with a CR. You will probably also want to tell microcom to exit if stdin and the output are idle for a while (-t option, specified in ms).
Example:
echo -e “atir” | microcom -t 100 /dev/ttyS1
Hope that helps.
Perfect!
Turns out I was missing the r.
Thanks Jesse!