/dev/ttyUSB0 and PPP

Harold Hallikainen harold at hallikainen.com
Sat Feb 25 23:24:46 UTC 2006


> On Thu, 2006-02-23 at 20:56 -0800, Harold Hallikainen wrote:
> <snip>
>> >
>> > Try changing the "Modem = /dev/ttyUSB0" to "MODEM = /dev/ttyUSB0" and
>> > see.  Shell variables are case sensitive.  Since the error message is
>> > bitching about "$MODEM", my guess is that it's looking for "MODEM = "
>> > and not "Modem = ".
>> >
>> > And if that fixes it, send a Bugzilla report about it.  That's nasty!
>>
>> Well, that didn't fix it! Here's a the config file:
>>
>> [Modem0]
>> MODEM = /dev/ttyUSB0
>> Baud = 19200
>> SetVolume = 0
>> Dial Command = ATDT
>> Init1 = ATZ
>> Init3 = ATM0
>> Modem = /dev/modem
>> FlowControl = CRTSCTS
>>
>> [Dialer home]
>> Area Code = 805
>> Username = ******
>> Password = **********
>> Phone = *** ****
>> Dial Prefix = 1
>> Stupid Mode = 1
>> Init1 = ATZ
>> Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
>> Inherits = Modem0
>> [Dialer home0]
>> Init1 = ATZ
>> Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
>> Inherits = Modem0
>>
>> And here's what comes out the log:
>>
>> Feb 23 20:00:48 hhlaptop pppd[4049]: Starting link
>> Feb 23 20:00:49 hhlaptop wvdial[4610]: WvDial: Internet dialer version
>> 1.54.0
>> Feb 23 20:00:49 hhlaptop wvdial[4610]: Initializing modem.
>> Feb 23 20:00:49 hhlaptop wvdial[4610]: Sending: ATZ
>> Feb 23 20:00:54 hhlaptop wvdial[4610]: Sending: ATQ0
>> Feb 23 20:00:54 hhlaptop wvdial[4610]: ATQ0
>> Feb 23 20:00:54 hhlaptop wvdial[4610]: OK
>> Feb 23 20:00:54 hhlaptop wvdial[4610]: Re-Sending: ATZ
>> Feb 23 20:00:54 hhlaptop wvdial[4610]: ATZ
>> Feb 23 20:00:54 hhlaptop wvdial[4610]: OK
>> Feb 23 20:01:00 hhlaptop wvdial[4610]: stdin not read/write and $MODEM
>> not set
>> Feb 23 20:01:00 hhlaptop pppd[4049]: Connect script failed
>>
>>
>> So... I guess it's time for me to spend the weekend on Google! I'll also
>> check the linux networking newsgroup. THANKS Rick!
>
> Hmmm.  Well, there's one more thing to try...
>
> 	$ MODEM=/dev/ttyUSB0;export MODEM
>
> and try it again.
>
> (this is weird!)
>


Well... Weird it is. Now and then it would dial out, most of the time it
would not. It would say active in the network configuration window even
when it was not connected. Very difficult to figure out! Anyway, one my
books makes mention of kppp, which happens to be on this laptop. The book
says you can use kppp or the internet configuration wizard, then goes on
to describe the wizard and never mentions kppp again. So, I tried kppp. It
works great! It had trouble dealing wity ttyUSB0, but works fine on
/dev/modem. This email is being sent from my laptop through my cellphone
calling my server at home. It works!!!!!! Now I can use this machine more
on my hour bus commute!

Thanks Rick, and everyone!

Harold
-- 
FCC Rules Updated Daily at http://www.hallikainen.com




More information about the Redhat-install-list mailing list