Connection via Wvdial with Nokia N80

Hey all

I’ve been struggling with this for the last day or so but just couldn’t find a solution.

The problem is that I want to connect to the internet with my Nokia N80 via wvdial witht the usb cable. I’m using opensuse 11.0 with kde 3.5. But this doesn’t work I get a exit code = 16 error. How I did the config.
Step 1:
linux-gv89:/ # wvdialconf create
Editing `create’.

Scanning your serial ports for a modem.

Modem Port Scan<*1>: S0 S1 S2 S3
ttyS4<Info>: No such device or address
Modem Port Scan<*1>: S4
ttyS5<Info>: No such device or address
Modem Port Scan<*1>: S5
ttyS6<Info>: No such device or address
Modem Port Scan<*1>: S6
ttyS7<Info>: No such device or address
Modem Port Scan<*1>: S7
WvModem<*1>: Cannot get information for serial port.
ttyACM0<*1>: ATQ0 V1 E1 – OK
ttyACM0<*1>: ATQ0 V1 E1 Z – OK
ttyACM0<*1>: ATQ0 V1 E1 S0=0 – OK
ttyACM0<*1>: ATQ0 V1 E1 S0=0 &C1 – OK
ttyACM0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 – OK
ttyACM0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 – OK
ttyACM0<*1>: Modem Identifier: ATI – Nokia
ttyACM0<*1>: Speed 4800: AT – OK
ttyACM0<*1>: Speed 9600: AT – OK
ttyACM0<*1>: Speed 19200: AT – OK
ttyACM0<*1>: Speed 38400: AT – OK
ttyACM0<*1>: Speed 57600: AT – OK
ttyACM0<*1>: Speed 115200: AT – OK
ttyACM0<*1>: Speed 230400: AT – OK
ttyACM0<*1>: Speed 460800: AT – OK
ttyACM0<*1>: Max speed is 460800; that should be safe.
ttyACM0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 – OK

Found an USB modem on /dev/ttyACM0.
create<Warn>: Can’t open ‘create’ for reading: No such file or directory
create<Warn>: …starting with blank configuration.
Modem configuration written to create.
ttyACM0<Info>: Speed 460800; init “ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0”

Now my wvdial.conf is as follows:
[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
New PPPD = yes
Modem = /dev/ttyACM0
Baud = 115200
Username =mtn
Password =mtn
Phone = *99#
ISDN=0
Idle Seconds = 300
carrier check = 0
Stupid Mode = 1
ISDN = 0
Auto DNS = 1

When I dial I get the following response:
linux-gv89:/etc # wvdial
→ WvDial: Internet dialer version 1.60
→ Cannot get information for serial port.
→ Initializing modem.
→ 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.
→ Idle Seconds = 300, disabling automatic reconnect.
→ Sending: ATDT99#
→ Waiting for carrier.
ATDT
99#
CONNECT
~[7f]}#@!}!} } }2}#}$@#}!}$}%}"}&} }*} } g}%~
→ Carrier detected. Starting PPP immediately.
→ Starting pppd at Mon Aug 17 14:13:18 2009
→ Pid of pppd: 3602
→ Using interface ppp0
→ pppd: �[7f]
→ pppd: �[7f]
→ pppd: �[7f]
→ pppd: �[7f]
→ pppd: �[7f]
→ pppd: �[7f]
→ Disconnecting at Mon Aug 17 14:13:21 2009
→ The PPP daemon has died: A modem hung up the phone (exit code = 16)
→ man pppd explains pppd error codes in more detail.
→ Try again and look into /var/log/messages and the wvdial and pppd man pages for more information.

The content of the messages file is:
Aug 17 14:13:18 linux-gv89 pppd[3602]: Plugin passwordfd.so loaded.
Aug 17 14:13:18 linux-gv89 pppd[3602]: pppd 2.4.4 started by root, uid 0
Aug 17 14:13:18 linux-gv89 pppd[3602]: Using interface ppp0
Aug 17 14:13:18 linux-gv89 pppd[3602]: Connect: ppp0 <–> /dev/ttyACM0
Aug 17 14:13:18 linux-gv89 pppd[3602]: PAP authentication succeeded
Aug 17 14:13:18 linux-gv89 pppd[3602]: LCP terminated by peer
Aug 17 14:13:20 linux-gv89 pppd[3602]: Connection terminated.
Aug 17 14:13:20 linux-gv89 pppd[3602]: Modem hangup
Aug 17 14:13:20 linux-gv89 pppd[3602]: Exit.
Aug 17 14:13:22 linux-gv89 syslog-ng[1879]: STATS: dropped 0

I have been searching for the correct configuration but could not find one that solved my problem.

Any help in this regard will be appreciated.

BTW: I get the same exit code when I use kppp.

Hi
A couple of things, add to your /etc/ppp/peers/<your_config> the
following options;

debug debug debug
dump

Yes three debug, it will provide a bit more detail, the dump option
will provide where options are coming from then read through
the /etc/ppp/options file to see the comments on what they do.


Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 11.2 Milestone 5 (i586) Kernel 2.6.31-rc5-git3-2-desktop
up 18:45, 2 users, load average: 0.10, 0.07, 0.01
ASUS eeePC 1000HE ATOM N280 1.66GHz | GPU Mobile 945GM/GMS/GME

Derberos wrote:

> The problem is that I want to connect to the internet with my Nokia N80
> via wvdial witht the usb cable. I’m using opensuse 11.0 with kde 3.5.
> But this doesn’t work I get a exit code = 16 error. How I did the
> config.

Have you tried to establish a connection by disabling the cell phone PIN
number request, first?

Greetings,


Camaleón

Thanks for the speedy replies. I did what malcolmlewis said and what new I can see is no qouted text in ‘rcvd [LCP ConfReq id=0x1]’.

Now other thing I can connect to the internet with my phone. Then I have been able to connect to the internet with this phone in the past. The truth is that I connected on Saterday with gnome. Don’t know if there is a difference between gnome and kde is this respect. To my knowledge the two wvdial.conf files are the same. I didn’t do anything funny. I just edited the wvdial.conf file and I was up and running.

Any ideas?

The phone doesn’t have a pin.

Hi
So your saying it’s working now, or only works in the gnome DE?

Just try running the command from the CLI then, pppd
call /etc/ppp/peers/<name of the file>


Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 11.2 Milestone 5 (i586) Kernel 2.6.31-rc5-git3-2-desktop
up 21:30, 2 users, load average: 0.07, 0.07, 0.02
ASUS eeePC 1000HE ATOM N280 1.66GHz | GPU Mobile 945GM/GMS/GME

Hey malcolmlewis

Thank you for your help and speedy replies.

My previous post wasn’t that clear.

Under the Gnome DE the phone connected to the internet via wvdial.

At the moment it isn’t working. At the moment I’m using only KDE. Did a clean install this weekend.

With opera-mini, on the phone, can I access the internet as well as with Nokia PC-Suit.

The previous post from you you said I sould run pppd call /etc/ppp/peers/wvdial. I did that and all I see in the terminal is a bunch of characters.

Hope you can help…

Hey

Just want to post the solution. Hope it helps someone in the future ;).

The wvdial.conf looks as follows:


[Dialer Defaults]
Modem = /dev/ttyACM0
ISDN = off
Modem Type = Analog Modem
Baud = 460800
Init = ATZ
Init2 = AT+CGDCONT=1,"IP","internet"
Init3 = 
Init4 = 
Init5 = 
Init6 = 
Init7 = 
Init8 = 
Init9 = 
Phone = ATDP*99***1#
Phone1 = *99#
Phone2 = 
Phone3 = 
Phone4 = 
Dial Prefix = 
Dial Attempts = 1
Dial Command = ATM0L0DP
Ask Password = off
Password = gprs
Username = gprs
Auto Reconnect = off
Abort on Busy = off
Carrier Check = on
Check Def Route = on
Abort on 
No Dialtone = on
Stupid Mode = off
Idle Seconds = 0
Auto DNS = on
;Minimize = off
;Dock = on
;Do NOT edit this file by hand!

This works rotfl! for me. Some funny dial commands but thats a story for another day.

Thanks malcolmlewis you really helped alot.
Cheers all!