Re: Modem ping: "chat -v -s '' 'ATZ' < /dev/modem > /dev/modem" fails?

From: Alan Connor (zzzzzz_at_xxx.yyy)
Date: 06/26/04


Date: Sat, 26 Jun 2004 04:45:08 GMT

On Sat, 26 Jun 2004 02:59:23 GMT, Victor Martin <noUCE@NoWhereOnThe.net> wrote:
>
>
> Minicom's default init is:
>
> ~^M~AT S7=45 S0=0 L1 V1 X4 &c1 E1 Q0^M
>
> Reset string is:
>
> ^M~ATZ^M~
>
> but it seems I'm still stuck with having to launch an
> interactive program (minicom) every time my modem acts
> up and no longer accepts commands on the command line
> such as:
>
> echo 'ATZ' > /dev/modem
> or
> chat -V -s '' 'ATZ' 'OK' '' < /dev/modem > /dev/modem
>
> If only I can do whatever minicom does on the command line,
> but putting that init string in an echo or chat command
> as above doesn't seem to work.

echo -e allows you to send those ^M (as \r) and other
non-printing control chars. Man echo. They are critical.

Be aware, too, that bash has its own internal echo, and
that will be used unless you specify /bin/echo. Man bash,
man builtins, help echo.

You need to reset the modem, too, after you are done with the
session, don't you? That's what minicom does.

AC



Relevant Pages

  • Re: Modem ping: "chat -v -s ATZ < /dev/modem > /dev/modem" fails?
    ... Minicom's default init is: ... Reset string is: ... If only I can do whatever minicom does on the command line, ...
    (comp.os.linux.misc)
  • Re: Installing modem.
    ... Instead, try minicom. ... > bash: setserial command not found. ... > It would appear that there is a package I dont have installed. ... apt-get install setserial ...
    (Debian-User)
  • Re: Installing modem.
    ... Hoyt Bailey wrote: ... > present ckicked on same and transfered it to floppy. ... When I clicked on the logout symbol I returned to command line. ... Not finding any info on minicom just means that it's not installed. ...
    (Debian-User)
  • Re: Modem + Network in Xircom cards, and maybe others
    ... : "ATI11" command with minicom (WinXP works fine wth this): ...
    (freebsd-current)
  • Re: Phone dialer for Linux
    ... to control the DTR line on the modem to allow it to remain off-hook?) ... You might try it manually using minicom just to see how/if it works. ... which places the modem back in command mode. ... proceeding to its modem handshake mode. ...
    (Debian-User)