rerwin wrote:darwinev0lved,
Thanks for your straightforward how-to for you modem and provider. I am taken by your mention that ubuntu figures out the APN. I have a hunch how it might do that, and I think we can do that at least manually. There is a command to display the APN stored in the phone/modem's memory. I have provided the command in wvdial.conf as a comment that a user can edit to remove the "#":
Try doing that before running pupdial (because it overwrites during its operation), then try to connect. The APN should appear in the pupdial log of the connection. I am open to ideas on using that info to make pupdial smarter.
Assuming the APN is in the modem, you might try changing the phone number to *99***1# (I think that's the right number of asterisks). That says to use the first number in the internal list of APNs. If yours is second in the list, use "2" instead of "1".
Idea: How about pupdial activating the Init8 line for a connection if no APN is entered? Your experimentation with Init8 would move that idea along. Thanks.
Richard
Hi Richard, I'm happy to try to help. Emphasis should probably be on the 'try'
OK. I deleted wvdial.conf, then ran wvdialshell (hope this is right, I'm really only a linux user).
wvdial.conf then looked like this
[Dialer Defaults]
Modem = /dev/ttyUSB0
Baud = 9600
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ISDN = 0
Modem Type = Analog Modem
; Phone = <Target Phone Number>
; Username = <Your Login Name>
; Password = <Your Password>
So I added the Init8 = AT+CGDCONT? line
Ran PupDial. Used the *99***1# phone number and wap for user and password again. Left the APN blank.
PupDial connected just fine.
Save pupdial.log to see if that would help
--> 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: ATDT*99***1#
--> Waiting for carrier.
ATDT*99***1#
CONNECT
--> Carrier detected. Starting PPP immediately.
--> Starting pppd at Fri Oct 16 11:04:47 2009
--> pid of pppd: 22494
So it doesn't look like the APN does appear in the pupdial.log
However, my wvdial.conf does have this line in it
[Dialer isp1apn]
Init5 = AT+CGDCONT=1,"IP",""
is that what's doing the trick?
Happy to try something else if that would help.
Regards,
Jon