Re: Modem ping: "chat -v -s '' 'ATZ' < /dev/modem > /dev/modem" fails?
From: Alan Connor (zzzzzz_at_xxx.yyy)
Date: 06/26/04
- Next message: Charles Sullivan: "Re: What encoding for archival movies???"
- Previous message: Kandy: "Re: Pop3 and W2K3 Authentication"
- In reply to: Victor Martin: "Re: Modem ping: "chat -v -s '' 'ATZ' < /dev/modem > /dev/modem" fails?"
- Next in thread: Victor Martin: "Re: Modem ping: "chat -v -s '' 'ATZ' < /dev/modem > /dev/modem" fails?"
- Reply: Victor Martin: "Re: Modem ping: "chat -v -s '' 'ATZ' < /dev/modem > /dev/modem" fails?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: Charles Sullivan: "Re: What encoding for archival movies???"
- Previous message: Kandy: "Re: Pop3 and W2K3 Authentication"
- In reply to: Victor Martin: "Re: Modem ping: "chat -v -s '' 'ATZ' < /dev/modem > /dev/modem" fails?"
- Next in thread: Victor Martin: "Re: Modem ping: "chat -v -s '' 'ATZ' < /dev/modem > /dev/modem" fails?"
- Reply: Victor Martin: "Re: Modem ping: "chat -v -s '' 'ATZ' < /dev/modem > /dev/modem" fails?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|