Re: [opensuse] USB Modem, wvdial not redialing



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



Relevant Pages

  • Re: [SLE] (Revisited) Works in Windoze, NOT in SuSE!?!?!?!?!?!?
    ... > modem will be initialised with is to put the string in yourself. ... <serious snip> ... and verified to the modem manufacturers list of commands. ... may be appropriate to eliminate disconnect due to line noise and idle time, ...
    (SuSE)
  • Re: netfilter, iptable ...
    ... I have a script which contains iptables's commands and which works fine ... The problem stops if I comment four lines of the script. ... one modem "freebox" it's the modem provided by my ISP free.fr ... # dmesg -n 1 ...
    (Debian-User)
  • netfilter, iptable ...
    ... I have a script which contains iptables's commands and which works fine ... but I encounter a problem with the log: ... The problem stops if I comment four lines of the script. ... one modem "freebox" it's the modem provided by my ISP free.fr ...
    (Debian-User)
  • =?ISO-8859-1?Q?New_System_Command_Script_Facility?=
    ... I'm currently finished writing a new replacement command script processor ... (at least that RACF thinks so, and better support for non-RACF sites). ... The IF-type commands now have ELSE processing ... non-scroll highlighted console message and BEEP until a specific JOB or TASK ...
    (bit.listserv.ibm-main)
  • Re: Command Line Interface
    ... >> should accept system commands only for an administrator. ... >> how should I supress the bash shell and launch my custom CLI ... > The script could run in a restricted shell and offer a menu of ... account, and either 1) change account password, 2) ...
    (comp.os.linux.misc)

Loading