LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-09-2003, 06:37 AM   #16
linuxfond
Member
 
Registered: Jan 2003
Location: Belgium
Distribution: Mandrake 9.2
Posts: 475

Rep: Reputation: 30

you are totally right! great! but, how hell do I use setserial? after all I am not sure this is the problem, because kppp does find the modem on ttyS0.
 
Old 04-09-2003, 10:21 AM   #17
Thetargos
Senior Member
 
Registered: Mar 2003
Location: Mexico City
Distribution: Fedora, Ubuntu & Mint
Posts: 1,679

Rep: Reputation: 45
Ok, are you sure you are running the command as root? also sometimes a command won't work *unless* you specify the complete path (in this case #/bin/setserial ttyS0) set serial will probe the device connected to the serial port to make sure the OS can communicate with it. Yes kppp will tell you so, because it is not respondig, thus it hangs waiting for the device to respond (which might as well never happen), in other words, it fools itself. Setserial, besides probing, will tell you in response the the properties of the device you are having problems with as well as setting (I am not quite sure about this) the propper communication with it? Dunno, but it can be of a great help to check it out!.

Also, do you need any special drivers for this modem under Windows? or is it recognized as a generic 56 kbps modem and you can use it right away?

Last edited by Thetargos; 04-09-2003 at 10:22 AM.
 
Old 04-09-2003, 11:51 AM   #18
linuxfond
Member
 
Registered: Jan 2003
Location: Belgium
Distribution: Mandrake 9.2
Posts: 475

Rep: Reputation: 30
Thanks!

So, I run:
#setserial /dev/ttyS0

I get shell response:
/dev/ttyS0, UART: 16550A, Port: 0x03f8, IRQ: 4

I assume all is fine.

Next step I run:
#wvdialconfig /etc/wvdial.conf

I get shell response:
ttyS0(*1): ATQO V1 E1 -- failed with 2400 baud, next try: 4800 baud
ttyS0(*1): ATQO V1 E1 -- failed with 4800 baud, next try: 9600 baud
ttyS0(*1): ATQO V1 E1 -- failed with 9600 baud, next try: 19200 baud
ttyS0(*1): ATQO V1 E1 -- failed with 19200 baud, next try: 115200 baud
ttyS0(*1): ATQO 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?

 
Old 04-09-2003, 12:27 PM   #19
Thetargos
Senior Member
 
Registered: Mar 2003
Location: Mexico City
Distribution: Fedora, Ubuntu & Mint
Posts: 1,679

Rep: Reputation: 45
I think you have to manually set the baud rate... that is where wvdial fails, no? to do so run:

#setserial baud_base 115200 /dev/ttyS0

or if you want to see what options you can set with setserial run:

#setserial -bv /dev/ttyS0

Last edited by Thetargos; 04-09-2003 at 12:29 PM.
 
Old 04-09-2003, 02:02 PM   #20
linuxfond
Member
 
Registered: Jan 2003
Location: Belgium
Distribution: Mandrake 9.2
Posts: 475

Rep: Reputation: 30
Thanks, I am afraid the things are going out of the control.

I run:
# setserial baud_base 115200 /dev/ttyS0
and get:
baud_base: No such file or directory

I run:
#setserial /dev/ttyS0 baud_base 115200
and get:
#

I assume, something had been done and run:
#wvdialconf etc etc etc....

and I get again all the same problem.

OK. I visited wvdial website. They tell I need to install wvstreams before installing wvdial.

MDK comes with both wvdial and wvstreams, but the package names are very different from what is available from wvdial website.

I think however that the packages in MDK should be all right. Anyway, I tried to install the packages from wvdial, and there were errors errors errors on make... So, it was never installed.
I use what caem with mdk.

Thanks again.
 
Old 04-09-2003, 02:07 PM   #21
Thetargos
Senior Member
 
Registered: Mar 2003
Location: Mexico City
Distribution: Fedora, Ubuntu & Mint
Posts: 1,679

Rep: Reputation: 45
Funny thing is that setserial does "see" it (well if there's a device connected it'll see it), strange thing is that according to setserial's man page (you can also check it out: #man setserial) setting the baud_rate to 115200 would do something (besides it is the default setting!)
 
Old 04-09-2003, 02:35 PM   #22
linuxfond
Member
 
Registered: Jan 2003
Location: Belgium
Distribution: Mandrake 9.2
Posts: 475

Rep: Reputation: 30
115200 is the default setting:

I run:
#setserial -G /dev/ttyS0
I get:
/dev/ttyS0 uart 11650A port 0x03f8 irq 4 baud_base 115200 spd_normal skip_test

I have read man pages, but it gave no hint.
 
Old 04-09-2003, 02:56 PM   #23
Thetargos
Senior Member
 
Registered: Mar 2003
Location: Mexico City
Distribution: Fedora, Ubuntu & Mint
Posts: 1,679

Rep: Reputation: 45
At this point... I as well tear appart and start to cry, jut like you... Believe, I know how frustrated you are... I've been there myself.
 
Old 04-09-2003, 02:59 PM   #24
linuxfond
Member
 
Registered: Jan 2003
Location: Belgium
Distribution: Mandrake 9.2
Posts: 475

Rep: Reputation: 30
It has been very kind of you to try to help. I am sure somebody else will find your comments very helpful. In my case there are apparently problems that I am not aware of. Many thanks!
 
Old 04-09-2003, 03:13 PM   #25
Thetargos
Senior Member
 
Registered: Mar 2003
Location: Mexico City
Distribution: Fedora, Ubuntu & Mint
Posts: 1,679

Rep: Reputation: 45
I tried my best... Thanks for your comforting... I'll check the arguments to pass to setserial to see if I can figure out what is wrong. Aslo you can check an updated version of wvdial in rpmfind. Do a search, and then give the argument 'Mandrake' to the search string under the system filter. it may be the program is outdated and does not know how to configure your modem... this is my last resource (besides looking into it myself).

Best of luck!
 
Old 04-09-2003, 04:18 PM   #26
Vlad_M
Member
 
Registered: Aug 2002
Location: Cape Town, South Africa
Distribution: Red Hat 8.0 (Home), Red Hat 8.0 (Work)
Posts: 388

Rep: Reputation: 30
Ok, I don't think that this will help you but here is what used to happen to me, I also almost threw the modem out of the window because of this, and then solved it by pure chance...

Modem - USR Sportster 56K external. Linux - any distro, all behaved the same. At the time I also had Windows XP dual booting on the machine (you'll see later why I mention this).

Install everything, go into KDE, start kppp. Modem recognised, queried correctly, and all is dandy. Set all the options for my ISP, dial, look at the log window - initializing modem (ATZ) - the modem would hang like that forever. I tried all kind of different init strings, none worked. What's more, the modem would 'lock' after this (and I don't mean the lock file, I mean it would 'hang') and the only way to 'unlock' it was to go into XP, and dial out which would somehow reset the modem. Now I am not a total noob, so I tried to ATF the modem in linux, and all other kinds of things, including of course setserial and nothing worked.

Then I tried wvdial, it simply reckognised the modem, and connected to the ISP with no problems. I didn't have to do ANYTHING.

So, the caveat here is that there are clearly some weird things happening in Linux with certain modems. I got lucky, and I was hoping that you would too, so that is why I suggested you use wvdial. It's really shitty that it didn't work for you but don't give up, believe me it is us (you and us that are trying to help you) that are missing something and not the fault of linux. So don't get discouraged, and don't turn your back on linux because of this. Yet.

Cheers,

Vlad.
 
Old 04-10-2003, 02:30 AM   #27
linuxfond
Member
 
Registered: Jan 2003
Location: Belgium
Distribution: Mandrake 9.2
Posts: 475

Rep: Reputation: 30
I have no doubts about Linux, but only about my own skills. Many thanks to all of you!
 
Old 04-10-2003, 12:08 PM   #28
php
Member
 
Registered: Jun 2001
Location: USA
Distribution: Slackware
Posts: 827

Original Poster
Rep: Reputation: 30
I have a weird problem now pertaining to connecting through a modem on ttys0.. i installed slack 9 and used dhcp with a crossover cable to my win2k box for internet on the slack box.. interface eth0 for this, the problem im having is when i wany to use ppp0 with the modem attached, it dials, connects, and thats it, it can't send/receive packets.. something must be messed in the routing?
 
Old 05-01-2003, 04:47 PM   #29
north49er
Member
 
Registered: Apr 2003
Location: 60.47'N lat
Distribution: fedora 15 x86_64
Posts: 156

Rep: Reputation: 18
The following example works for me:
# setserial /dev/ttyS3 uart 16550A port 0x0108 irq 10

Of course, you change the ports, addresses and irq's to suit your needs. If it works, edit /etc/rc.d/rc.local and place the setserial as above so you don't need to keep typing it in everytime you reboot. Hope it helps.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
connecting internet in redhat 9 linux1880 Linux - Networking 1 10-04-2005 09:46 AM
Problems connecting to internet using Slackware Dead_Linux_User Linux - Networking 11 09-14-2004 06:22 PM
WAG511 on Slackware 10.0 not connecting to internet donk Linux - Wireless Networking 5 07-19-2004 08:30 AM
Connecting to the Internet in Slackware 9.1 rfsatxeng Linux - Newbie 2 01-10-2004 10:13 AM
connecting to internet, with redhat 8.0 neon Linux - Newbie 12 10-16-2003 03:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:58 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