Linux Forums - Linux Help,Advice & support community:LinuxSolved.com

Network Troublshooting => General Networking Support in Linux => Topic started by: mimoh_mi on January 03, 2006, 08:39:37 AM

Title: RE: LSP-3000 CDMA connection problem head way
Post by: mimoh_mi on January 03, 2006, 08:39:37 AM
please can somebody help me out.
I just bought a starcomms LG CDMA LSP-3000 phone,
setting up my internet connection on XP wasn't a problem.
After creating this wvdial.conf file, my modem was detected.

[Modem0]
Modem = /dev/ttyS0
Baud = 115200
SetVolume = 4
Dial Command = ATDT
Init1 = ATZ
FlowControl = CRTSCTS
[Dialer starcomms]
Username = 18502784@startcomms.com
Password = 18502784
Phone = #777
Stupid Mode = 1
Inherits = Modem0

[root@localhost root]# wvdial starcomms
--> WvDial: Internet dialer version 1.53
--> Initializing modem.
--> Sending: ATZ
--> Sending: ATQ0
ATQ0
OK
--> Re-Sending: ATZ
ATZ
OK
--> Initializing modem.
--> Sending: ATZ
--> Sending: ATQ0
ATQ0
OK
this is my resolv.conf
search starcomms.com
nameserver 196.3.60.2
nameserver 196.3.60.3

ppprc
# !/bin/bash
echo "user xxxxx  password xxxxx" > $HOME/.ppprc
pppd /dev/ttyS0 115200 debug  usepeerdns defaultroute noauth connect '/usr/sbin/chat -v "" at+crm=1 OK "atdt#777" CONNECT' mtu 264

when i ran the script,
the phone LCD indicates
calling ppp date
T 9.6 R9.6
and cut off

Running  tail -s 3 -f /var/log/messages
Jan  3 09:16:28 localhost pppd[3483]: pppd 2.4.1 started by root, uid 0
Jan  3 09:16:29 localhost chat[3484]: send (at+crm=1^M)
Jan  3 09:16:30 localhost chat[3484]: expect (OK)
Jan  3 09:16:30 localhost chat[3484]: at+crm=1^M^M
Jan  3 09:16:30 localhost chat[3484]: OK
Jan  3 09:16:30 localhost chat[3484]:  -- got it
Jan  3 09:16:30 localhost chat[3484]: send (atdt#777^M)
Jan  3 09:16:30 localhost chat[3484]: expect (CONNECT)
Jan  3 09:16:30 localhost chat[3484]: ^M
Jan  3 09:16:30 localhost chat[3484]: atdt#777^M^M
Jan  3 09:16:30 localhost chat[3484]: CONNECT
Jan  3 09:16:30 localhost chat[3484]:  -- got it
Jan  3 09:16:30 localhost pppd[3483]: Serial connection established.
Jan  3 09:16:30 localhost pppd[3483]: Using interface ppp0
Jan  3 09:16:30 localhost pppd[3483]: Connect: ppp0 <--> /dev/ttyS0
Jan  3 09:16:30 localhost /etc/hotplug/net.agent: assuming ppp0 is already up
Jan  3 09:16:37 localhost pppd[3483]: Remote message: Illegal user or password.
Jan  3 09:16:37 localhost pppd[3483]: CHAP authentication failed
Jan  3 09:16:37 localhost pppd[3483]: Connection terminated.
Jan  3 09:16:37 localhost pppd[3483]: Hangup (SIGHUP)
Jan  3 09:16:37 localhost pppd[3483]: Exit.

But i still can not connect to the net. But the interface is activated.
Please, i would really appreciate any assistant cause i hate using
anything Microsoft, am a Java developer and a linux frick.
Title: RE: LSP-3000 CDMA connection problem head way
Post by: Ricky on January 05, 2006, 05:51:46 PM
u posted in other post that u have solved it already uself !~!
Title: re: Connection with CDMA LSP 3000
Post by: stevepop on November 01, 2006, 08:28:55 AM
Please I am having the same problem. Was the issue resolved?
I will appreciate if someone can help me out.

Thank you!
Title: RE: LSP-3000 CDMA connection problem head way
Post by: Ricky on November 01, 2006, 01:06:35 PM
Here in this, he is having problem of incorrect username and password ?
What is your problem exactly ?
Title: RE: LSP-3000 CDMA connection problem head way
Post by: stevepop on November 01, 2006, 09:59:04 PM
I used his steps but /var/log/messages keep giving me the message;
Remote message: Illegal user or password.
Title: RE: LSP-3000 CDMA connection problem head way
Post by: Ricky on November 07, 2006, 01:54:28 PM
so .. are you providing correct username and password ?
Title: RE: LSP-3000 CDMA connection problem head way
Post by: stevepop on November 08, 2006, 08:44:59 PM
Yes, the username and password is correct. i think the problem is the chap authentication. How can i change the authentication to PAP? Or is there something I am not doing right?
Title: RE: LSP-3000 CDMA connection problem head way
Post by: Ricky on November 09, 2006, 06:49:02 AM
Do you have "Stupid Mode=1" in your configuration file ?

Also tell us what is inside your
1./etc/ppp/chap-secrets
2./etc/ppp/pap-secrets
Title: RE: LSP-3000 CDMA connection problem head way
Post by: stevepop on November 09, 2006, 12:24:59 PM
I have Stupid Mode = 1 in my wvdial.conf file

The following is what is in my chap-secrets
# Secrets for authentication using CHAP
# client        server  secret                  IP addresses
####### redhat-config-network will overwrite this part!!! (begin) ##########
"18914814@starcomms.com"        "starcomms"     "18914814"
"18914814@starcomms.com"        *       "18914814"
####### redhat-config-network will overwrite this part!!! (end) ############

And my pap-secrets contains the following;

# Secrets for authentication using PAP
# client        server  secret                  IP addresses
####### redhat-config-network will overwrite this part!!! (begin) ##########
"18914814@starcomms.com"        "starcomms"     "18914814"
"18914814@starcomms.com"        *       "18914814"
####### redhat-config-network will overwrite this part!!! (end) ############

Thank you
Title: RE: LSP-3000 CDMA connection problem head way
Post by: Ricky on November 09, 2006, 04:48:07 PM
Stupid Mode = 1
configure wvdial to automatically choose right CHAP or PAP method so I think we don't need to do anything for that.

Now I am still wondering that where is the problem.

For time being you should see this link..

grox.net/doc/linux/howto-OLD-VERSIONS/PPP-HOWTO-html/PPP-HOWTO-13.html
Title: RE: LSP-3000 CDMA connection problem head way
Post by: mimoh_mi on November 17, 2006, 04:04:42 AM
@stevepop
Ok, since you are running Redhat, follow the steps on this link. The link I sent to you as private message is for getting starcomms running on Ubuntu. So here is the one for Redhat, any problem post it.
http://www.linuxsolved.com/forums/ftopic1717.html
Title: RE: LSP-3000 CDMA connection problem head way
Post by: stevepop on November 17, 2006, 08:50:48 PM
Hi mimoh_mi,

I followed the steps in the link you gave. I connect but get disconnected after a few seconds.

I got the following when I executed tail -n5 /var/log/messages;
Nov 17 21:29:50 mobilepraise pppd[3285]: Connect: ppp0 <--> /dev/ttyS0
Nov 17 21:29:57 mobilepraise pppd[3285]: CHAP authentication failed: Illegal user or password.
Nov 17 21:29:58 mobilepraise pppd[3285]: Connection terminated.
Nov 17 21:29:58 mobilepraise pppd[3285]: Hangup (SIGHUP)
Nov 17 21:29:58 mobilepraise pppd[3285]: Exit.

Please let me know how you were able to solve this problem in redhat.
Thanks.
Title: RE: LSP-3000 CDMA connection problem head way
Post by: mimoh_mi on November 18, 2006, 03:23:32 AM
@stevepop
Ok, try capital letter S. As in Starcomms.com instead
of starcomms. Had that problem, when I was connecting
my Ubuntu box. Your pass word should be xxxxx@Starcomms.com.
Also, i noticed that CHAP autentication doesn't work with
starcomm, but PAP works. Just capitalise the S first and
let me know how far.
Title: RE: LSP-3000 CDMA connection problem head way
Post by: stevepop on November 18, 2006, 09:53:46 PM
@mimoh_mi

I did as you said and added upper case S as Starcomms.com but still get the same error message.

See what I have below;

My /var/log/message
Nov 18 21:33:18 mobilepraise pppd[3128]: Connect: ppp0 <--> /dev/ttyS0
Nov 18 21:33:24 mobilepraise pppd[3128]: CHAP authentication failed: Illegal user or password.
Nov 18 21:33:25 mobilepraise pppd[3128]: Connection terminated.
Nov 18 21:33:25 mobilepraise pppd[3128]: Hangup (SIGHUP)
Nov 18 21:33:25 mobilepraise pppd[3128]: Exit.
[root@mobilepraise ~]# tail -n10 /var/log/messages
Nov 18 21:39:00 mobilepraise chat[4501]: ^M
Nov 18 21:39:00 mobilepraise chat[4501]: CONNECT
Nov 18 21:39:00 mobilepraise chat[4501]:  -- got it
Nov 18 21:39:00 mobilepraise pppd[4500]: Serial connection established.
Nov 18 21:39:00 mobilepraise pppd[4500]: Using interface ppp0
Nov 18 21:39:00 mobilepraise pppd[4500]: Connect: ppp0 <--> /dev/ttyS0
Nov 18 21:39:06 mobilepraise pppd[4500]: CHAP authentication failed: Illegal user or password.
Nov 18 21:39:06 mobilepraise pppd[4500]: Connection terminated.
Nov 18 21:39:06 mobilepraise pppd[4500]: Hangup (SIGHUP)
Nov 18 21:39:06 mobilepraise pppd[4500]: Exit.

My wvdial.conf
[Modem0]
Modem = /dev/ttyS0
Baud = 115200
SetVolume = 4
Dial Command = ATDT
Init1 = ATZi
Init2 = AT+CRM=1;$LGPKT=3
Init3 = ATM1L4
FlowControl = CRTSCTS
[Dialer starcomms]
Username = 18914814@Starcomms.com
Password = 18914814
Phone = #777
Stupid Mode = 1
Inherits = Modem0
Title: RE: LSP-3000 CDMA connection problem head way
Post by: mimoh_mi on November 21, 2006, 01:11:02 AM
@stevepop
The problem seem to be from the CHAP authentication, starcomms does not support it. So try editing your
/etc/sysconfig/network-scripts/ifcfg-ppp0

DEVICE=ppp0
NAME=starcomms(put your connection name)
MODEMPORT=/dev/ttyS0
LINESPEED=115200
PAPNAME=your Login Name Here
ONBOOT=no
DEFROUTE=yes
DEMAND=yes
IDLETIMEOUT=600

Remember to back up a copy before you edit it. If you still have problems, pls post, as the best way to learn is by doing it over n over again.
Title: RE: LSP-3000 CDMA connection problem head way
Post by: stevepop on November 21, 2006, 10:13:03 PM
@mimoh_mi

What I have is /etc/sysconfig/network-scripts/iccfg-starcomms and not /etc/sysconfig/network-scripts/ifcfg-ppp0. Anyway I made a backup of it and edited as your advised but I still have the same problem, 'Chap Authentication Failed - Illegal User and Password'


I want you to know that I really appreciate your follow up on this issue. I am determined to get this problem solved with your help.
Title: RE: LSP-3000 CDMA connection problem head way
Post by: mimoh_mi on November 21, 2006, 11:38:52 PM
@stevepop
Ok, thanks for the comment. I had actaully abandon my
redhat for ubuntu. But for you, I will have to go back for a moment. Promise to solve this problem by weekend.
But, after the last step in my last post, try capitalising the S in starcomms. The problem is from the authentication. You are still using CHAP instead of PAP.
If you have the KDE kppp, try using it I know there is a place that it allow you to choose the authentication type, choose PAP and not PAP/CHAP.
Title: RE: LSP-3000 CDMA connection problem head way
Post by: stevepop on November 26, 2006, 11:03:20 PM
@ mimoh_mi,

Were you able to help me with the dialup problem? When I could not get it working on my Redhat box on my laptop, I decided to install Ubuntu on my Desktop to try out the Ubuntu steps you gave.  I could not even get Ubuntu to recognize my modem. When i ran wvdialconf wvdial.conf, i got the following;

steve@ubuntu:~$ sudo wvdialconf wvdial.conf
Scanning your serial ports for a modem.

ttyS0<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyS0<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 115200 baud
ttyS0<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
Port Scan<*1>: S1   S2   S3   S4   S5   S6   S7   S8
Port Scan<*1>: S9   S10  S11  S12  S13  S14  S15  S16
Port Scan<*1>: S17  S18  S19  S20  S21  S22  S23  S24
Port Scan<*1>: S25  S26  S27  S28  S29  S30  S31  S32
Port Scan<*1>: S33  S34  S35  S36  S37  S38  S39  S40
Port Scan<*1>: S41  S42  S43  S44  S45  S46  S47  S48
Port Scan<*1>: S49  S50  S51  S52  S53


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

So once again, I am stuck. At least with Redhat am able to communicate with the modem but with ubuntu, no dice.

By the way, I am using a serial cable not USB

Look forward to hearing from you