Re: [opensuse] USB Modem, wvdial not redialing
- From: Aaron Kulkis <akulkis00@xxxxxxxxxx>
- Date: Sat, 02 Feb 2008 16:19:35 -0500
umesh b wrote:
On 2/3/08, Carlos E. R. <robin.listas@xxxxxxxxxxxxxx> wrote:-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Wvdial connects the first time, and fails on the second one.
Thats right.. Modem connects the first time. i can connect to the
internet. then i disconnect by issuing CTRL+C at the wvdial terminal.
If i again try invoking wvdial, then the problem happens(see my traces
in the original mail). I need this as mostly the telco is
disconnecting connection randomly due to high traffic or maybe
straight forward problems in their equipment. If the modem would
connect the second time, then i could enable the autoreconnect option
and let the downloads continue without human intervention. Othetwise
modem wont connect the second time.
You need to reset the modem.
These commands can ALL be executed by simply running
the cat command, such as is shown here:
cat > /dev/ttyxx #Substitute the device name for ttyxx)
ATZ # reset the modem to default state]
ATH0 # go on hook (hang up)]
ATH1 # o off hook]
ATDT 1234567 # dial 123-4567 using touch-tone (DTMF)]
^D # Ctrl-D to end cat command
Once you get everything worked out as to what you need
to do before running wvdial again, you can put it into
a script, like this
You could save this script "redial" and then make it executable.
You can call it as either:
$ redial # use default tty device.
or
$ redial /dev/ttyS0 # overrides default tty device]]
#!/bin/bash
# Shell script to reset modem
# and then run wvdial again
MODEM=/dev/ttyxx # Modem's device here
if [["$1" != "" ]] # test for cmd line argument
then
MODEM = $1 # set modem to cmd line arg.
fi
cat > $MODEM << end_of_commands
ATZ
ATH0
ATH1
end_of_commands
wvdial
# End of script.
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx
- References:
- Re: [opensuse] USB Modem, wvdial not redialing
- From: Aaron Kulkis
- Re: [opensuse] USB Modem, wvdial not redialing
- From: Carlos E. R.
- Re: [opensuse] USB Modem, wvdial not redialing
- From: Aaron Kulkis
- Re: [opensuse] USB Modem, wvdial not redialing
- From: Carlos E. R.
- Re: [opensuse] USB Modem, wvdial not redialing
- From: umesh b
- Re: [opensuse] USB Modem, wvdial not redialing
- Prev by Date: Re: [opensuse] Howto Backup and Save Working kernel and config before YOU kernel update?
- Next by Date: Re: [opensuse] Howto Backup and Save Working kernel and config before YOU kernel update?
- Previous by thread: Re: [opensuse] USB Modem, wvdial not redialing
- Next by thread: Re: [opensuse] USB Modem, wvdial not redialing
- Index(es):
Relevant Pages
|
Loading