RE: Incoming Connections & Number of Rings

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: allan grossman [mvp] (allan_grossman_at_hotmail.com)
Date: 03/02/04


Date: Tue, 2 Mar 2004 09:43:14 -0800

Sure ;-)

There are a couple of things you can do - one would be to
write the string to the modem's nonvolatile RAM. It's
easy to issue commands through either hyperterminal or
from a command prompt - if I'm just writing to modem
registers I prefer using a command prompt. The syntax is:

echo [modem command] > COMx

where x is the com port where the modem resides. Batch
files work just fine for stuff like this - and I'm not a
programmer so I really can't answer your question about
programming.

Let's assume your modem is on COM1 for a minute. To set
autoanswer to the fourth ring you'd issue this from a
command prompt -

echo ats0=4 > com1

but please note that while modem commands are not case-
sensitive they cannot be mixed-case. Either all upper-
or all lowercase, please.

The autoanswer we set above would remain in effect until
something like a terminal program or Windows Dial-Up
Networking issued a modem reset command. If you wanted
to write the command to the modem's NVRAM so it became
the default, you'd do it like this, hitting the enter key
after each line:

echo ats0=4 > com1

echo at&w > com1

The &w command instructs the modem to write its current
configuration to NVRAM and it becomes the default when an
the modem is powered up or issued a reset command (atz).

If you wanted to turn off autoanswer you'd do the

echo ats0=0 > com1

thing again, and if you wanted you could write that
string to modem memory.

So - issuing modem commands from a batch file is entirely
possible - as a matter of fact I use a technique similar
to that to keep unauthorized macnines from logging on to
our domain from a dialup connection - our login script
interrogates a dialup machine to insure it's supposed to
be on the network and if not, the login script issues
modem hangup commands to about eight COM ports just to
help us keep unaccredited machines off the network.

I know I've been a bit wordy but what you're asking is
completely doable.

Hope this helps -

>-----Original Message-----
>Great, thanks - I'll try that.
>
>Now for the million dollar follow-up bonus question...
Is there a way to change this programmatically - a WinAPI
dll or even a .BAT file?
>.
>



Relevant Pages

  • RE: Sierra Wireless (MC8780) HSDPA speed issue
    ... I have solved the modem hangup issues when using the AT control device ... The problem appears to be the AT&C1 command. ... Three devices appear, ttyUSB0, ttyUSB1, ttyUSB2. ... I have successfully reached average download speeds above 400KB/s. ...
    (Linux-Kernel)
  • trace ip
    ... Ascend digital modem box, his last attack I logged he tried 15 or so ... easy to see from the out side or make the security really LAX on that comp. ... It is all command ...
    (microsoft.public.security)
  • Re: problems with wvdial
    ... AT is a command prefix - assuming that is the modem ... The question - more or less - is, "Why is pppd sending ... to authenticate if it can't identify a specific secret to use. ...
    (comp.os.linux.networking)
  • Re: trace ip
    ... > How can I trace someone trying to hack my ascend digital vpn modem? ... > authentication and is being logged into our RAD logs. ... > to c:\) So it will look like this in command ... Anyway I am not too worried about security ...
    (microsoft.public.security)
  • Re: Modem genius wanted
    ... You really need an AT command set, and to read the thing end to end! ... From my old modem manual ... ... ATV1 Result codes as words <- You probably want this ... Dialling is blind, regardless of dial tone. ...
    (sci.electronics.design)