wsanders
Posts: 8
Joined: Thu Nov 14, 2013 2:06 am

Any wvdial experts here?

Sun Dec 22, 2013 7:13 pm

wvdial is broken, it sends an ATDT command instead of my username:

Code: Select all

# wvdial
--> WvDial: Internet dialer version 1.61
--> Cannot set information for serial port.
--> Initializing modem.
--> Sending: ATZ
ATZ
--> Sending: ATQ0
ATQ0
OK
--> Re-Sending: ATZ
ATZ
OK
--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
OK
--> Modem initialized.
--> Sending: ATDT9540163
--> Waiting for carrier.
ATDT9540163
CONNECT 9600/ARQ
User Access Verification
Username: 
--> Carrier detected.  Waiting for prompt.
--> Connected, but carrier signal lost!  Retrying...
--> Sending: ATDT9540163
--> Waiting for carrier.
Username: 
Username: ATDT9540163
Password: 
% Password:  timeout expired!
/etc/wvdial.conf:

Code: Select all

[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Modem Type = Analog Modem
; Phone = 9259540265
ISDN = 0
New PPPD = yes
Phone = 9540163
Modem = /dev/ttyUSB0
Username = [email protected][my isp]
Password = xxxxxxxxxxxxxxxxx
Baud = 460800
"Stupid mode" has no effect. I suspect it is confused by the prompts from the device. Here is a successful login with cu:

Code: Select all

# cu -l /dev/ttyUSB0 
Connected.
TZ
OK
ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
OK
ATDT9540163
CONNECT 9600/ARQ

User Access Verification

Username: [email protected][my isp] 
Password: 
Entering PPP mode.
Async interface address is unnumbered (FastEthernet0)
Your IP address is 0.0.0.0. MTU is 1500 bytes
{starts spewing PPP packets}  
It doesn't look like i can manually log in with wvdial. Next step is setting up ppp manually. I did this once upon a time, about 11 years ago ... any ideas?

Once I have this figured out the Pi will make a nice dialup-to-Wifi access point.
Thanks, w

wsanders
Posts: 8
Joined: Thu Nov 14, 2013 2:06 am

Update: Any wvdial experts here?

Sun Dec 22, 2013 9:02 pm

Update: I can get vwdial to authenticate by setting "Carrier Check = off". Pppd starts with the following parameters:

Code: Select all

root      4586  4585  0 21:00 pts/0    00:00:00 /usr/sbin/pppd 460800 modem crtscts defaultroute usehostname -detach user [email protected] noipdefault call wvdial usepeerdns idle 0 logfd 6
But ppp0 nevers gets set up and wvdial hangs up after 15 or 20 seconds. Pppd starts fine from the command line with the above params, ppp0 gets set up, but of course it's connected to the command line and not ttyUSB0. It's some kind of problem with wvdial not handing off its connection to pppd.

Giving up for now, if anyone has gotten dialup to work with a Pi please post here!

Thanks,
w

User avatar
DougieLawson
Posts: 37654
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Any wvdial experts here?

Mon Dec 23, 2013 12:06 am

How did you create the wvdial.conf?

There's a script that's supposed to make it easy by detecting your modem and what it needs to work with it.
wvdialconf /etc/wvdial.conf

The trouble you'll have is that dial-up networking is something most folks stopped using about ten years (and more) ago.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

wsanders
Posts: 8
Joined: Thu Nov 14, 2013 2:06 am

Re: Any wvdial experts here?

Mon Dec 23, 2013 2:13 am

vwdial.conf was created by wvdialconf. I gave up and made a pppd chatscript that works, and I connect directly with "pppd ttyUSB0":
/etc/ppp/chatscript:

Code: Select all

REPORT          CONNECT
TIMEOUT         3
ABORT           NO\sDIALTONE
ABORT           BUSY
ABORT           NO\sANSWER
''              ATZ\n
''              ATZ\n
TIMEOUT         30
OK              'ATQ0 V1 E0 S0=0 &C1 &D2 +FCLASS=0'
OK              ATDT9540265
CONNECT         ''
sername:        [email protected]
assword:        xxxxxxxxxxxx
/etc/ppp/options:

Code: Select all

defaultroute
connect "/usr/sbin/chat -e -v -f /etc/ppp/chatscript"
debug
noipdefault
ipcp-accept-remote
ipcp-accept-local
nodetach
usepeerdns
mru 1024
mtu 1024
This connects OK but the ppp connection is abysmally slow. Ping latency is >600 msec to the "internet" and only 1 or 2 tcp packets get through per second. I am connecting at only 9600 bps so I should be getting at least double that :-)

The Pi access point works great when the upstream connection is Ethernet. But for ppp, until I can connect at a faster speed (either with a different modem or a different AP) I'm putting this on hold....

Johann Oosthuizen
Posts: 1
Joined: Sat Dec 28, 2013 4:07 pm

Re: Any wvdial experts here?

Sat Dec 28, 2013 4:11 pm

A little sad to hear about your struggles.
I am trying to make a wifi router for our holiday home which has no electricity but it has a telephone line, I will be powering the PI with a little solar powered battery/
Dail-up is the most cost effective solution in a place where you dont want to be on the computer too much anyway.
Will let you know if I make some good headway.

cyanarnofsky
Posts: 70
Joined: Tue Jul 31, 2012 11:33 pm

Re: Any wvdial experts here?

Tue Jul 01, 2014 6:56 pm

Hitting the same wall. Wvdial and PPP work great together getting my 3G modem online but the connection speed is horrid. I am at a constant like 32KB/sec for speed with a medium signal. Full signal I barely get up to 100KB/sec. Looked at my RAM/CPU usage when SSH in through the modem, plenty of RAM and CPU usage never goes above 32%. Bottleneck does seem to be at PPP.

weado
Posts: 5
Joined: Tue Aug 06, 2019 9:27 pm

Re: Any wvdial experts here?

Wed Sep 11, 2019 9:17 pm

If your problem is the same like me, it's very simple :
When you plug your modem, sometime, you have 2 or more USB interface mounted.

You just change your USB interface, and it's OK... For me mainly ;)

Return to “Advanced users”