LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 03-16-2005, 12:41 PM   #1
Fredmukjimjim
LQ Newbie
 
Registered: Mar 2005
Location: Boston, UK
Distribution: Mandrake 10
Posts: 4

Rep: Reputation: 0
wvdial connection problems


Hi everyone,

I have compiled and installed the modules for my PCTel HSP PCI V90 56K Flex WinModem, and am trying to connect using wvdial.

This is the resultant output from the terminal wvdial uses.......

--> WvDial: Internet dialer version 1.53

--> 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.

--> Sending: ATDT147008089933031

--> Waiting for carrier.

ATDT147008089933031

--> Timed out while dialing. Trying again.

--> Sending: ATDT147008089933031

--> Waiting for carrier.

ATDT147008089933031

and on and on like this.......

I am also including the result of lsmod, just in case this shows I have not got a module I ought to have, in order for my connection to be up.

Module Size Used by Tainted: PF
udf 86048 0 (autoclean)
sg 26572 0 (autoclean) (unused)
sr_mod 14744 0 (autoclean) (unused)
sd_mod 10700 0 (autoclean) (unused)
scsi_mod 53364 3 (autoclean) [sg sr_mod sd_mod]
ptserial 40292 0
pctel 1211872 0 [udf ptserial]
agpgart 17840 9 (autoclean)
powervr 489024 40
snd-pcm-oss 37732 0 (unused)
snd-mixer-oss 11640 0 [snd-pcm-oss]
snd-emu10k1 58196 0
snd-rawmidi 12640 0 [snd-emu10k1]
snd-pcm 54080 0 [snd-pcm-oss snd-emu10k1]
snd-timer 13256 0 [snd-pcm]
snd-util-mem 1264 0 [snd-emu10k1]
snd-hwdep 4576 0 [snd-emu10k1]
snd-page-alloc 4364 0 [snd-emu10k1 snd-pcm]
snd-ac97-codec 32480 0 [snd-emu10k1]
snd-seq-device 3824 0 [snd-emu10k1 snd-rawmidi]
snd 27364 0 [snd-pcm-oss snd-mixer-oss snd-emu10k1 snd-rawmidi snd-pcm snd-timer snd-util-mem snd-hwdep snd-ac97-codec snd-seq-device]
soundcore 3588 0 [snd]
af_packet 12872 0 (autoclean)
ide-floppy 12668 0 (autoclean)
ide-cd 30240 0 (autoclean)
cdrom 27328 0 (autoclean) [sr_mod ide-cd]
floppy 48572 0
keybdev 1888 0 (unused)
mousedev 4052 1
hid 18180 0 (unused)
input 3392 0 [keybdev mousedev hid]
nls_iso8859-15 3324 4 (autoclean)
nls_cp850 3548 4 (autoclean)
vfat 9708 4 (autoclean)
fat 30744 0 (autoclean) [vfat]
supermount 11872 3 (autoclean)
printer 6912 0
usb-uhci 21676 0 (unused)
usbcore 57440 1 [hid printer usb-uhci]
rtc 6428 0 (autoclean)


wvdial.conf has been set up by doing

wvdialconf /etc/wvdial.conf

and then editing in username etc. I am trying to connect to Tiscali in the UK, so country code = 6, I think. Anymore info needed in order to help, I will gladly provide. Thanks in advance.
 
Old 03-17-2005, 11:25 PM   #2
maxfacta
Member
 
Registered: Aug 2004
Location: Perth, Australia
Distribution: Debian @ home + work :)
Posts: 66

Rep: Reputation: 22
Did wvdialconf end up with something like "Found and configured modem on /dev/(whatever)" ?

It would be helpful to post your wvdial.conf file.
 
Old 03-18-2005, 01:22 AM   #3
Fredmukjimjim
LQ Newbie
 
Registered: Mar 2005
Location: Boston, UK
Distribution: Mandrake 10
Posts: 4

Original Poster
Rep: Reputation: 0
some more info...

Thanx for your reply maxfacta.

Heres the output from wvdialconf /etc/wvdial.conf

Scanning your serial ports for a modem.

Port Scan<*1>: Scanning ttyS15 first, /dev/modem is a link to it.
ttyS15<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 4800 baud
ttyS15<*1>: ATQ0 V1 E1 -- failed with 4800 baud, next try: 9600 baud
ttyS15<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 19200 baud
ttyS15<*1>: ATQ0 V1 E1 -- failed with 19200 baud, next try: 115200 baud
ttyS15<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
ttyS0<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 4800 baud
ttyS0<*1>: ATQ0 V1 E1 -- failed with 4800 baud, next try: 9600 baud
ttyS0<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 19200 baud
ttyS0<*1>: ATQ0 V1 E1 -- failed with 19200 baud, next try: 115200 baud
ttyS0<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
ttyS1<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 4800 baud
ttyS1<*1>: ATQ0 V1 E1 -- failed with 4800 baud, next try: 9600 baud
ttyS1<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 19200 baud
ttyS1<*1>: ATQ0 V1 E1 -- failed with 19200 baud, next try: 115200 baud
ttyS1<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.


Sorry, no modem was detected! Is it in use by another program?
Did you configure it properly with setserial?

Please read the FAQ at http://open.nit.ca/wvdial/

If you still have problems, send mail to wvdial-list@lists.nit.ca.

I run a script at /etc/rc.d/init.d/pctel with this in:
#!/bin/sh
mknod /dev/ttyS15 c 62 79
chgrp uucp /dev/ttyS15
chmod 666 /dev/ttyS15
ln -s /dev/ttyS15 /dev/modem
insmod -f pctel country_code=6
insmod -f ptserial

and setserial -g /dev/ttyS15 gives

/dev/ttyS15, UART: 16650, Port: 0xd400, IRQ: 11

Hope this is useful, and thanx again.
 
Old 03-18-2005, 09:36 AM   #4
Fredmukjimjim
LQ Newbie
 
Registered: Mar 2005
Location: Boston, UK
Distribution: Mandrake 10
Posts: 4

Original Poster
Rep: Reputation: 0
hit and miss modem

my last post showed wvdial not getting any response from my modem. I have tweaked a bit, and recompiled pctel.o and ptserial.o. They are now loaded from a pctel script thus:

open a terminal within X, su, and /etc/rc.d/init.d/pctel

#!/bin/sh
mknod /dev/ttyS15 c 62 79
chgrp uucp /dev/ttyS15
chmod 666 /dev/ttyS15
ln -s /dev/ttyS15 /dev/modem
insmod -f pctel country_code=6
insmod -f ptserial
wvdial

this is the resultant output, minus the warnings about tainted modules pctel.o and ptserial.o

[root@localhost anyone]# /etc/rc.d/init.d/pctel
--> WvDial: Internet dialer version 1.53
--> 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.
--> Sending: ATDT147008089933031
--> Waiting for carrier.
ATDT147008089933031

And this is where it stays, initialising the modem over and over again.....

When I listened at the phone, I heard "The number you have dialled has not been recognised, please hang up and try again." However, when I dial this number direct into the phone handset I hear all the usual clicks n whistles. Sometimes the line is dead and silent. Here is my wvdial.conf:

[Dialer Defaults]
Modem = /dev/modem
Baud = 115200,N,8,1
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ISDN = 0
Modem Type = Analog Modem
Phone = 147008089933031
Username = XXXXXXXX@tiscali.co.uk
Password = XXXXXX
Stupid Mode = 1

I should say I dual boot with Windoze98, and use the same ISP, number,password etc, and connect fine. I also tried using init strings from my Win98 modem log, but not sure I got them in right via kppp. This is that log:

03-16-2005 20:27:36.97 - V.90 K56Flex HSP PCI Modem in use.
03-16-2005 20:27:36.98 - Modem type: V.90 K56Flex HSP PCI Modem
03-16-2005 20:27:36.98 - Modem inf path: MDMCHIPV.INF
03-16-2005 20:27:36.98 - Modem inf section: Modem2
03-16-2005 20:27:39.48 - 115200,N,8,1
03-16-2005 20:27:39.70 - 115200,N,8,1
03-16-2005 20:27:39.70 - Initializing modem.
03-16-2005 20:27:39.70 - Send: AT<cr>
03-16-2005 20:27:39.70 - Recv: AT<cr>
03-16-2005 20:27:39.70 - Recv: <cr><lf>OK<cr><lf>
03-16-2005 20:27:39.70 - Interpreted response: Ok
03-16-2005 20:27:39.70 - Send: AT&FE0&C1&D2&K3V1W3S0=0<cr>
03-16-2005 20:27:39.71 - Recv: AT&FE0&C1&D2&K3V1W3S0=0<cr>
03-16-2005 20:27:39.71 - Recv: <cr><lf>OK<cr><lf>
03-16-2005 20:27:39.71 - Interpreted response: Ok
03-16-2005 20:27:39.71 - Send: ATS7=60S30=0M1\N3%C3&K3B0N1X4<cr>
03-16-2005 20:27:39.72 - Recv: <cr><lf>OK<cr><lf>
03-16-2005 20:27:39.72 - Interpreted response: Ok
03-16-2005 20:27:39.72 - Dialing.
03-16-2005 20:27:39.72 - Send: ATDT###############<cr>
03-16-2005 20:28:07.80 - Recv: <cr><lf>CONNECT 45333/PROTOCOL: LAPM/COMPRESSI
03-16-2005 20:28:07.80 - Interpreted response: Connect
03-16-2005 20:28:07.80 - Connection established at 45333bps.
03-16-2005 20:28:07.80 - Error-control on.
03-16-2005 20:28:07.80 - Data compression on.
03-16-2005 20:45:29.96 - Hanging up the modem.
03-16-2005 20:45:29.96 - Hardware hangup by lowering DTR.
03-16-2005 20:45:31.36 - Recv: <cr><lf>OK<cr><lf>
03-16-2005 20:45:31.36 - Interpreted response: Ok
03-16-2005 20:45:31.36 - Send: ATH<cr>
03-16-2005 20:45:31.36 - Recv: <cr><lf>OK<cr><lf>
03-16-2005 20:45:31.36 - Interpreted response: Ok
03-16-2005 20:45:31.57 - 115200,N,8,1
03-16-2005 20:45:31.63 - Session Statistics:
03-16-2005 20:45:31.63 - Reads : 3795257 bytes
03-16-2005 20:45:31.63 - Writes: 280543 bytes
03-16-2005 20:45:31.63 - V.90 K56Flex HSP PCI Modem closed.

Anyone got any bright ideas? Please?

Thanx
 
Old 03-19-2005, 02:48 AM   #5
maxfacta
Member
 
Registered: Aug 2004
Location: Perth, Australia
Distribution: Debian @ home + work :)
Posts: 66

Rep: Reputation: 22
Can we assume that the kppp connection was successful, given the nearly 20 minute interval between the logging of the connection and disconection? In that case, the problem clearly lies with the wvdial configuration and not the modem driver.

One thing I have found necessary in the wvdial.conf file is

New PPPD = true

although it would not seem that adding this parameter will solve your problem; wvdial has not managed to CONNECT yet. The voice recording seems to indicate the number has not been dialled correctly - perhaps it's a speed issue? I would try adding a comma at the start of your dialup number - this forces a pause between the ATDT and the dialing of the number.

Phone = ,147008089933031

You can add multiple commas to extend the length of the pause.
Good luck!
 
Old 03-19-2005, 12:52 PM   #6
Fredmukjimjim
LQ Newbie
 
Registered: Mar 2005
Location: Boston, UK
Distribution: Mandrake 10
Posts: 4

Original Poster
Rep: Reputation: 0
re wvdial.....

Thanks for your help maxfacta, I am now able to send you this from my linux box

The commas did the trick. I am very grateful.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Hostname Unknown - using wvdial/dialup connection Sader Linux - Networking 3 07-09-2005 04:37 AM
WVDial problems... TehSnarf Linux - Newbie 2 12-04-2004 11:25 AM
problems with wvdial daste Linux - Software 1 01-17-2004 01:00 AM
Permanent Dialup Connection Using Wvdial sombra_tommy LinuxQuestions.org Member Success Stories 0 08-25-2003 10:10 AM
wvdial problems jISV Linux - General 11 04-14-2002 10:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 07:40 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration