scripted modem commands

Home Forums MultiConnect OCG scripted modem commands

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #2553
    Bryan Banz
    Participant

    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.

    #3131
    Jesse Gilles
    Blocked

    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.

    #3132
    Bryan Banz
    Participant

    Perfect!

    Turns out I was missing the r.

    Thanks Jesse!

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.