Discussion:
Changing the AT command for modem volume
(too old to reply)
Cyril Spiro
2008-09-02 19:32:20 UTC
Permalink
Any help is appreciated. We use a modem that can have the volume turned on
and off by the AT command. Is it possible to adjust the AT command to be
M0? This would turn off the volume.



Thanks,

spiroc
Don Russell
2008-09-02 20:15:53 UTC
Permalink
Post by Cyril Spiro
Any help is appreciated. We use a modem that can have the volume turned
on and off by the AT command. Is it possible to adjust the AT command to be
M0? This would turn off the volume.
You can set your modem init string in mgetty.config. You don't have to
change mgetty for this.

Add M0 yourself to the init strings. You willl have to restart msgetty to
get it to read the config file again. (maybe experiment to see if you can
just send it a "hup", many programs will re-read their config files when
they receive a hup signal. (See man kill)
Don Russell
2008-09-02 22:53:23 UTC
Permalink
On Tue, Sep 2, 2008 at 3:37 PM, Consultant, MDWS <
Thanks for the response, Don.
Currently there is no active init string in the mgetty.config file. There
# init-chat "" \d\d\d+++\d\d\dAT&Fs2=255 OK ATN3S0=0S13.2=1 OK
Is this the line you were referring to? If so, do I use it as is except
that I add M0 between the AT and &?
Yes, the easiest is to just add the new command/response pair at the end of
that string... ATM0 OK
Be sure to leave a space before the AT...
Basically, that string is a list of command/response pairs each separated by
a space.
You will also need to remove the # char from the front of the line...
otherwise it is treated as a comment.
When I make such changes, I leave the original line as-is, and copy it to
the next line and make my changes to it. That way I alwasy have the original
to refer back to, and it (usually) reflects the defaults if not explicitly
specified.

.
If it matters, I use the ttyS0 port. Sorry to be such a novice. You're
clarification is appreciated.
It doesn't matter which port you use.
Consultant, MDWS
2008-09-02 22:37:08 UTC
Permalink
This is a multi-part message in MIME format.

------=_NextPart_000_00F0_01C90D2A.EA167E60
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Thanks for the response, Don.

=20

Currently there is no active init string in the mgetty.config file. =
There
is one that is commented under the port ttyS2 settings. It reads:

# init-chat "" \d\d\d+++\d\d\dAT&Fs2=3D255 OK ATN3S0=3D0S13.2=3D1 OK

=20

Is this the line you were referring to? If so, do I use it as is except
that I add M0 between the AT and &?

=20

If it matters, I use the ttyS0 port. Sorry to be such a novice. You're
clarification is appreciated.

=20

spiroc

=20

-----Original Message-----
From: Don Russell [mailto:***@gmail.com]=20
Sent: Tuesday, September 02, 2008 4:16 PM
To: ***@muc.de
Subject: Re: Changing the AT command for modem volume

=20

On Tue, Sep 2, 2008 at 12:32 PM, Cyril Spiro <***@tampabay.rr.com> =
wrote:

Any help is appreciated. We use a modem that can have the volume turned =
on
and off by the AT command. Is it possible to adjust the AT command to =
be
M0? This would turn off the volume.


You can set your modem init string in mgetty.config. You don't have to
change mgetty for this.

Add M0 yourself to the init strings. You willl have to restart msgetty =
to
get it to read the config file again. (maybe experiment to see if you =
can
just send it a "hup", many programs will re-read their config files when
they receive a hup signal. (See man kill)


------=_NextPart_000_00F0_01C90D2A.EA167E60
Content-Type: text/html;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html>

<head>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">


<meta name=3DGenerator content=3D"Microsoft Word 10 (filtered)">

<style>
<!--
/* Font Definitions */
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:blue;
text-decoration:underline;}
p.MsoAutoSig, li.MsoAutoSig, div.MsoAutoSig
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";}
p
{margin-right:0in;
margin-left:0in;
font-size:12.0pt;
font-family:"Times New Roman";}
span.EmailStyle18
{font-family:Arial;
color:navy;}
@page Section1
{size:8.5in 11.0in;
margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
{page:Section1;}
-->
</style>

</head>

<body lang=3DEN-US link=3Dblue vlink=3Dblue>

<div class=3DSection1>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>Thanks for the response, =
Don.</span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>&nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>Currently there is no active init =
string
in the mgetty.config file.&nbsp; There is one that is commented under =
the port
ttyS2 settings.&nbsp; It reads:</span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'># init-chat &#8220;&#8221;
\d\d\d+++\d\d\dAT&amp;Fs2=3D255 OK ATN3S0=3D0S13.2=3D1 =
OK</span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>&nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>Is this the line you were referring
to?&nbsp; If so, do I use it as is except that I add M0 between the AT =
and
&amp;?</span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>&nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>If it matters, I use the ttyS0 =
port.&nbsp;
Sorry to be such a novice.&nbsp; You&#8217;re clarification is =
appreciated.</span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>&nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>spiroc</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 =
face=3DTahoma><span
style=3D'font-size:10.0pt;font-family:Tahoma'>&nbsp;</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 =
face=3DTahoma><span
style=3D'font-size:10.0pt;font-family:Tahoma'>-----Original =
Message-----<br>
<b><span style=3D'font-weight:bold'>From:</span></b> Don Russell
[mailto:***@gmail.com] <br>
<b><span style=3D'font-weight:bold'>Sent:</span></b> </span></font><font =
size=3D2 face=3DTahoma><span =
style=3D'font-size:10.0pt;font-family:Tahoma'>Tuesday,
September 02, 2008</span></font><font size=3D2 face=3DTahoma><span
style=3D'font-size:10.0pt;font-family:Tahoma'> </span></font><font
size=3D2 face=3DTahoma><span =
style=3D'font-size:10.0pt;font-family:Tahoma'>4:16 PM</span></font><font
size=3D2 face=3DTahoma><span =
style=3D'font-size:10.0pt;font-family:Tahoma'><br>
<b><span style=3D'font-weight:bold'>To:</span></b> ***@muc.de<br>
<b><span style=3D'font-weight:bold'>Subject:</span></b> Re: Changing the =
AT
command for modem volume</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D3 =
face=3D"Times New Roman"><span
style=3D'font-size:12.0pt'>&nbsp;</span></font></p>

<div>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D3 =
face=3D"Times New Roman"><span
style=3D'font-size:12.0pt'>On Tue, Sep 2, 2008 at 12:32 PM, Cyril Spiro =
&lt;<a
href=3D"mailto:***@tampabay.rr.com">***@tampabay.rr.com</a>&gt; =
wrote:</span></font></p>

<div>

<blockquote style=3D'border:none;border-left:solid #CCCCCC =
1.0pt;padding:0in 0in 0in 6.0pt;
margin-left:4.8pt;margin-right:0in'>

<div link=3Dblue vlink=3Dpurple>

<div>

<p style=3D'margin-left:.5in'><font size=3D2 face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial'>Any help is appreciated.&nbsp; We use a modem =
that
can have the volume turned on and off by the AT command.&nbsp; Is it =
possible
to adjust the AT command to be M0?&nbsp; This would turn off the =
volume.</span></font></p>

</div>

</div>

</blockquote>

</div>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D3 =
face=3D"Times New Roman"><span
style=3D'font-size:12.0pt'><br>
You can set your modem init string in mgetty.config. You don't have to =
change
mgetty for this.<br>
<br>
Add M0 yourself to the init strings. You willl have to restart msgetty =
to get
it to read the config file again. (maybe experiment to see if you can =
just send
it a &quot;hup&quot;, many programs will re-read their config files when =
they
receive a hup signal. (See man kill)</span></font></p>

</div>

</div>

</body>

</html>

------=_NextPart_000_00F0_01C90D2A.EA167E60--
Wouter van Marle
2008-09-03 06:11:51 UTC
Permalink
This works fine for me in the mgetty.conf file:

init-chat "" +++\d\d\dATZ OK ATM0 OK


Wouter.
Post by Cyril Spiro
Any help is appreciated. We use a modem that can have the volume
turned on and off by the AT command. Is it possible to adjust the AT
command to be M0? This would turn off the volume.
Thanks,
spiroc
--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
Gert Doering
2008-09-03 06:43:26 UTC
Permalink
Hi,
Post by Wouter van Marle
init-chat "" +++\d\d\dATZ OK ATM0 OK
... if you have setup your modem profile properly and saved with AT&W.

I strongly recommend to always put ATS0=0 there, to make sure that the
modem is not in auto-answer mode (which might happen to be saved to
NVRAM).

init-chat "" +++\d\d\dATZ OK ATS0=0M0 OK

gert
--
USENET is *not* the non-clickable part of WWW!
//www.muc.de/~gert/
Gert Doering - Munich, Germany ***@greenie.muc.de
fax: +49-89-35655025 ***@net.informatik.tu-muenchen.de

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
Cyril Spiro
2008-09-04 15:51:17 UTC
Permalink
Thank you all for your recommendations. Based on that input and other
research I found that MultiTech Modems have a specified string which they
like. It is AT&FE0V1M0&C1&D2S0=0.

Placing that string after modem-init for sendfax.config and after init-chat
"" for mgetty.config did the trick and the modem is quiet.

Thanks, again.

spiroc

-----Original Message-----
From: Gert Doering [mailto:***@greenie.muc.de]
Sent: Wednesday, September 03, 2008 2:43 AM
To: Wouter van Marle
Cc: Cyril Spiro; ***@muc.de
Subject: Re: Changing the AT command for modem volume

Hi,
Post by Wouter van Marle
init-chat "" +++\d\d\dATZ OK ATM0 OK
... if you have setup your modem profile properly and saved with AT&W.

I strongly recommend to always put ATS0=0 there, to make sure that the
modem is not in auto-answer mode (which might happen to be saved to
NVRAM).

init-chat "" +++\d\d\dATZ OK ATS0=0M0 OK

gert
--
USENET is *not* the non-clickable part of WWW!

//www.muc.de/~gert/
Gert Doering - Munich, Germany
***@greenie.muc.de
fax: +49-89-35655025
***@net.informatik.tu-muenchen.de


--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
Loading...