Tuesday, July 24, 2007

Reliance ZTE MC315+ on Ubuntu Feisty 7.04 also on BOSS 2.0 (debian sid/testing, kernel 2.6.21-1-486, gnome 2.18)

Finally, It Works !! :-)

I struggled a lot to make it work on my Ubuntu on IBM LEVONO 3000 N100 Model 0768.

No Sucess :(

it used to stop at ;

--> WvDial: Internet dialer version 1.56
--> Initializing modem.
--> Sending: ATZ
--> Sending: ATQ0
--> Re-Sending: ATZ
--> Modem not responding.

But finally it WORKED !! Thanks to Manoj.

Here's HOW:

1. Now my dmesg says (after inserting a card in pcmcia slot);

[ 2713.564000] pccard: PCMCIA card inserted into slot 0
[ 2713.564000] pcmcia: registering new device pcmcia0.0
[ 2713.612000] ttyS3: detected caps 00000700 should be 00000100
[ 2713.612000] 0.0: ttyS3 at I/O 0x2e8 (irq = 3) is a 16C950/954

2. /etc/wvdial.conf is ;

[Dialer Defaults]
Modem = /dev/ttyS3
Baud = 57600
SetVolume = 0
Dial-AT-OK ATDT Command =
Init1 = ATZ
FlowControl = Hardware (CRTSCTS)
Phone = #777
Username = xxxxxxxxxx
Password = xxxxxxxxxx
New PPPD = yes
Carrier Check = no
Stupid Mode = 1

3. As a root:

setserial /dev/ttyS3 baud_base 460800
wvdial

--> WvDial: Internet dialer version 1.56
--> Initializing modem.
--> Sending: ATZ
--> Sending: ATQ0
--> Re-Sending: ATZ
Caught signal 2: Attempting to exit gracefully...
--> Modem not responding.
root@alka-laptop:/home/alka# setserial /dev/ttyS3 baud_base 460800
root@alka-laptop:/home/alka# wvdial
--> WvDial: Internet dialer version 1.56
--> Initializing modem.
--> Sending: ATZ
+ZIND:8
--> Sending: ATQ0
ATQ0
OK
--> Re-Sending: ATZ
ATZ
OK
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Modem initialized.
--> Sending: ATDT#777
--> Waiting for carrier.
ATDT#777
CONNECT
--> Carrier detected. Starting PPP immediately.
--> Starting pppd at Tue Jul 24 16:17:04 2007
--> Pid of pppd: 7947
--> Using interface ppp0
--> pppd: X[04][06][08]H [06][08]
--> pppd: X[04][06][08]H [06][08]
--> pppd: X[04][06][08]H [06][08]
--> pppd: X[04][06][08]H [06][08]
--> pppd: X[04][06][08]H [06][08]
--> local IP address 220.224.34.198
--> pppd: X[04][06][08]H [06][08]
--> remote IP address 220.224.134.72
--> pppd: X[04][06][08]H [06][08]
--> primary DNS address 202.138.97.193
--> pppd: X[04][06][08]H [06][08]
--> secondary DNS address 202.138.96.2
--> pppd: X[04][06][08]H [06][08]


4. /var/log/message Says:

Jul 24 15:39:17 priti-laptop pppd[6706]: pppd 2.4.4 started by root, uid 0
Jul 24 15:39:17 priti-laptop pppd[6706]: Using interface ppp0
Jul 24 15:39:17 priti-laptop pppd[6706]: Connect: ppp0 <--> /dev/ttyS3
Jul 24 15:39:19 priti-laptop pppd[6392]: Device ttyS3 is locked by pid 6705
Jul 24 15:39:20 priti-laptop pppd[6392]: Device ttyS3 is locked by pid 6705
Jul 24 15:39:21 priti-laptop pppd[6706]: PAP authentication succeeded
Jul 24 15:39:21 priti-laptop pppd[6706]: local IP address 220.224.34.198
Jul 24 15:39:21 priti-laptop pppd[6706]: remote IP address 20.224.134.72
Jul 24 15:39:21 priti-laptop pppd[6706]: primary DNS address 202.138.97.193
Jul 24 15:39:21 priti-laptop pppd[6706]: secondary DNS address 202.138.96.2

5. Once all set look into /etc/resolv.conf which normally in ubuntu gets generated automatically by NetworkManager

nameserver 202.138.97.193
nameserver 202.138.96.2

# Note: If not, edit it manually, add primary and secondary DNS with reference to point 3 above.

6. root@priti-laptop:# nslookup google.co.in
Server: 202.138.97.193
Address: 202.138.97.193#53

Non-authoritative answer:
Name: google.co.in
Address: 72.14.207.104
Name: google.co.in
Address: 72.14.235.104
Name: google.co.in
Address: 72.14.203.104


# Note: i) With the value of baud 57600 in /etc/wvdial.conf, keep changes the value of baud_base as "n*baud " with `setserial` where n is 2,4,8,16

ex. baud=57600, baud_base=115200,230400,460800 ....

for baud_base 460800 or 921600 modem will start responding but may vary OS to OS.


ii) One can play with UART and baud_base together, if above doesn't work.


iii) Troubleshoot with Reliance ZTE CDMA 1X MG880 ?

Labels:

13 Comments:

Anonymous Anonymous said...

Thanks Priti. This info is gonna come quite handy.

BTW, am marking your blog on my http://del.icio.us/peeyush thing. I hope you won't mind that.

4:10 AM  
Blogger andys2cool said...

Thanks so much Preeti and Manoj. I was struggling to get this to work for a long time.

10:02 AM  
Blogger andys2cool said...

thanks so much Preeti and Manoj. I was struggling with this for a long time.

10:05 AM  
Blogger technolog said...

@ Andy, good to see that it worked for you as well :-)

10:43 AM  
Anonymous Anonymous said...

hello,
you seem to be missing some stuff, I was able to play with baud rate and get it responding, but still upon initialization status shows "cannot determine COM port"

can you elobrate more clearly.

however it does the handshaking but disconnects syaing "we failed to validate with peer" Iam using the correct phone number for my user/pass combination.

thanks,
mohit

10:26 AM  
Blogger technolog said...

What dmesg &/or wvdial is saying? Would you post it here? May be I could say something after seeing that :-)

It known to be worked for many laptops, still I would be happy to understand issues with your laptop. Which model you are working on BTW?

10:58 PM  
Blogger aggy said...

Thnks Priti, I have tried steps given by you to configure IBM laptop R52 and reliance ZTE MC315 PCMCIA card, following is the snapscreen.

agnelo@aggylaptop:~$ su
Password:
root@aggylaptop:/home/agnelo# wvdial
--> WvDial: Internet dialer version 1.60
--> Initializing modem.
--> Sending: ATZ
--> Sending: ATQ0
ATQ0
OK
--> Re-Sending: ATZ
ATZ
OK
--> Initializing modem.
--> Sending: ATZ
--> Sending: ATQ0
ATQ0
OK
--> Re-Sending: ATZ
ATZ
OK
--> Initializing modem.
--> Sending: ATZ
--> Sending: ATQ0
ATQ0
OK
--> Re-Sending: ATZ
ATZ
OK
root@aggylaptop:/home/agnelo# gnome-ppp
WVCONF: /root/.wvdial.conf
GNOME PPP: STDOUT: Editing `/dev/null'.
GNOME PPP: STDOUT:
GNOME PPP: STDOUT: Scanning your serial ports for a modem.
GNOME PPP: STDOUT:
GNOME PPP: STDERR: ttyS0<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
GNOME PPP: STDERR: ttyS0<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 115200 baud
GNOME PPP: STDERR: ttyS0<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
GNOME PPP: STDERR: Modem Port Scan<*1>: S1 S2
GNOME PPP: STDERR: ttyS3<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
GNOME PPP: STDERR: ttyS3<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 115200 baud
GNOME PPP: STDERR: ttyS3<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
GNOME PPP: STDOUT:
GNOME PPP: STDOUT:
GNOME PPP: STDOUT: Sorry, no modem was detected! Is it in use by another program?
GNOME PPP: STDOUT: Did you configure it properly with setserial?
GNOME PPP: STDOUT:
GNOME PPP: STDOUT: Please read the FAQ at http://open.nit.ca/wiki/?WvDial
GNOME PPP: STDOUT:
GNOME PPP: STDOUT:
Please help, I am new with Ubuntu 8.04.

6:18 AM  
Blogger technolog said...

@agnelo,

It seems your modem has not been detected properly, follow step number 1. (as mentioned below)

1. dmesg says (after inserting a card in pcmcia slot);

[ 2713.564000] pccard: PCMCIA card inserted into slot 0
[ 2713.564000] pcmcia: registering new device pcmcia0.0
[ 2713.612000] ttyS3: detected caps 00000700 should be 00000100
[ 2713.612000] 0.0: ttyS3 at I/O 0x2e8 (irq = 3) is a 16C950/954

See where your modem gets detected (viz. ttyS0, ttyS1, ttyS2, etc) then do changes accordingly in wvdial.conf. It should work. If not, you may have to play with baud speed as mentioned in my post (last part).

Hope this helps.

Cheers !

8:46 PM  
Blogger aggy said...

thanks Preeti,

I have set following config
1) setserial /dev/ttyS3 /dev/ttyS3, UART: 16950/954, Port: 0x02e8, IRQ: 4

2) sudo setserial /dev/ttyS3 baud_base 230400

3)nameserver 202.138.97.193
nameserver 202.138.96.2
### BEGIN INFO
#
# Modified_by: NetworkManager
# Process: /usr/bin/NetworkManager
# Process_id: 4918
#
### END INFO

[Dialer Reliance]
Modem = /dev/ttyS3
Baud = 57600
SetVolume = 0
Dial-AT-OK ATDT Command =
Init1 = ATZ
FlowControl = Hardware (CRTSCTS)
Phone = #777
Username = 9324135228
Password = 9324135228
New PPPD = yes
Carrier Check = no
Stupid Mode = yes


pppd 2.4.4 started by root, uid 0
Jan 2 16:13:45 aggylaptop pppd[10518]: Using interface ppp0
Jan 2 16:13:45 aggylaptop pppd[10518]: Connect: ppp0 <--> /dev/ttyS3
Jan 2 16:13:45 aggylaptop pppd[10518]: Warning - secret file /etc/ppp/pap-secrets has world and/or group access
Jan 2 16:13:49 aggylaptop pppd[10518]: Warning - secret file /etc/ppp/pap-secrets has world and/or group access
Jan 2 16:13:49 aggylaptop pppd[10518]: PAP authentication succeeded
Jan 2 16:13:49 aggylaptop pppd[10518]: local IP address 123.239.192.235
Jan 2 16:13:49 aggylaptop pppd[10518]: remote IP address 220.224.134.98
Jan 2 16:13:49 aggylaptop pppd[10518]: primary DNS address 202.138.97.193
Jan 2 16:13:49 aggylaptop pppd[10518]: secondary DNS address 202.138.96.2

I am able to resolve hostnames but not able to browse via mozilla browser , i have kept connection as detect automatic

also sometimes connection does`nt take place .

Now how do i retain above settings evrytime i wnat to browse i.e dialup ?
and how to ensure that i can browse ?

thanks appreciated..

2:48 AM  
Blogger technolog said...

@agnelo,

Plz. check whether you could communicate (use ping command thro' your command line) with DNS & gateway IPs, if no then check both the IPs with your service provider. Also check your proxy settings with browser.

With wvdial.conf you can always retain your internet setting. In fact while connecting to internet via ur wireless modem that's the only file which gets referred anyways.

Connection not taking place is something to do with network problem as it happens with our cellphone network connection as well, getting congestion tone or n/w unreachable many times :-)

Good luck :-)

10:24 PM  
Anonymous Anonymous said...

Thanks Priti,

Your post is really good. I am also struggling with the same card on My T60 Laptop.
Dmesg detected modem on the same parameters but still it does not work.
I have tried this on OpneSuse 11, Debian 4,Fedora 10 and macosx also. all distros are giving the same problem.

Is there someone who can help little bit more.

Thanks

Samod Babu

7:58 PM  
Blogger technolog said...

@ Anonymous,

Make it sure that wvdial.conf have the same port (viz. Modem = /dev/ttyS3) on which your modem is been detected (viz. in this case ttyS3).

If it's already been taken care of, you'll need to play with baud speed, refer to last part of my post for that.

All the best !

9:46 AM  
Blogger Unknown said...

Thanks macha
You helped me to recoment Ubuntu to my customers
-Sandeep
sandeep@fcoos.net

3:32 AM  

Post a Comment

<< Home