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

Hardware Troubleshooting in Linux => Other Devices => Topic started by: christopher_1 on April 15, 2005, 04:42:25 PM

Title: Help me to connect to internet using LG LSP 340E
Post by: christopher_1 on April 15, 2005, 04:42:25 PM
Hi,

I am using a TataIndicom LG LDP 340 E phone, I want to connect to the net in Linux, but I am unsuccessful, I use red hat Linux version 2.4.20-6, I tried some of the methods given in the web. The following are the results I got from those steps:
Method1:
I ran the following commands from root.
# !/bin/bash
echo "user internet password internet" > $HOME/.ppprc
pppd /dev/ttyS0 115200 debug usepeerdns defaultroute noauth connect '/usr/sbin/chat -v "" at+crm=1 OK "atdt#777" CONNECT' mtu 264

It gets connected, I can infer that from my phone display because the timer starts and I get T 9.6 R 9.6, but when I try to browse I get the following message” www.yahoo.com could not be found. Please check the name and try again.”

I can get disconnected with this script.

# !/bin/bash
killall -9 pppd


Method 2:
I created a file with the name wvdial.conf in etc directory. The following are the contents of the file:
[Modem0]
Modem=/dev/ttyS0
Baud=115200
SetVolume=0
Dial Command = ATDT
init1=ATZ
init2=AT+CRM=1
FlowControl= Hardware (CRTSCTS)
[Dialer reliance]
Username= internet
Password= internet
Phone=#777
Stupid Mode= 1
Inherits = Modem0

After creating this file I ran wvdial from the root and this is what I got.

[root@localhost root]# wvdial tata
--> WvDial: Internet dialer version 1.53
--> Warning: section [Dialer tata] does not exist in wvdial.conf.
--> Cannot open /dev/modem: No such file or directory
--> Cannot open /dev/modem: No such file or directory
--> Cannot open /dev/modem: No such file or directory

Please help me to fix this problem, I am able to connect to the net in all windows versions like 98,2000,XP etc .

Regards,
Christopher.
Title: Help me to connect to internet using LG LSP 340E
Post by: gauravbajaj on April 16, 2005, 05:09:01 AM
Hi
This is not a big issue, I have connected with this ph previously many times..
I know what u r missing...

Okk after Connected to internet .. Check ur ip-address..., If it gets ip-address automatically it means that u r connected...

& plzz make entry in /etc/resolv.conf file of ur DNS servers manually.......
as In this Connection there is a problem that it cant make entry in /etc/resolv.cnf file...

& if u dont know ur DNS addresses then go to windows & check the DNS addresses there, as when u conncted to windowz using this phone.. it takes DNS addresses automatically but in Linux it cant....
So after  saw ur DNS addresses entries in Windowz make it in Linux  
in /etc/resolv.conf file(THIS IS THE STEP U MISSED I THINK)

After that ur Internet  will work....

Enjoy

Gaurav










(
Title: Help me to connect to internet using LG LSP 340E
Post by: christopher_1 on April 17, 2005, 06:28:54 AM
Hi,
Thanks for your timely help, yes the problem was with DNS server,i got the settings from windows and now it is working fine.
Regards,
Christopher.
Title: Help me to connect to internet using LG LSP 340E
Post by: ZeCougar on April 26, 2005, 05:41:15 AM
hi,

I am having a problem with the Tata walky phone conecting to the net.

I'm using the second approach (WvDial). Most of the time it does not dial. but even when it does dial i get the following error

"pppd returned with an exit code of 10".

I checked the man pages for this exit code and it means that "pppd was unable to find another server that acceptd IP protocol".


Weird ?

Any ideas what next ?

Please let me have my eyes (internet) back !!!

Cheers,
Abhinav
Title: how to connect to the net using TATA LG lsp340E
Post by: christopher_1 on June 23, 2005, 10:04:07 AM
Dear Abhinav,

Please try the following procedure:
1. create a script file called upnet.sh (used for connecting)with the following contents

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

2. create another script file called downnet.sh(used for disconnecting) with the following contents

# !/bin/bash
killall -9 pppd
3. now you have to specify the dns server name in the file called resolv.conf which you have to create in the /etc directory.

if you dont know the dns server name you can follow this:
if you have windows OS, connect to the net , open a commond prompt and type ipconfig /all it gives ur primary DNS and secondary DNS note it down.

In the linux platform open the resolv.conf file and type
nameserver=the  primary DNS no u got in windows
nameserver=the  secondary DNS no u got in windows

NOW U CAN RUN upnet.sh TO CONNECT TO THE NET.

Regards,
Christopher.
Title: Re: Help me to connect to internet using LG LSP 340E
Post by: rahul_patel on November 09, 2005, 07:39:09 AM
Quote from: "christopher_1"
Hi,

I am using a TataIndicom LG LDP 340 E phone, I want to connect to the net in Linux, but I am unsuccessful, I use fedora core 4, I tried some of the methods given in the web. The following are the results I got from those steps:
Method1:
I ran the following commands from root.
# !/bin/bash
echo "user internet password internet" > $HOME/.ppprc
pppd /dev/ttyS0 115200 debug usepeerdns defaultroute noauth connect '/usr/sbin/chat -v "" at+crm=1 OK "atdt#777" CONNECT' mtu 264

It gets connected, I can infer that from my phone display because the timer starts and I get T 9.6 R 9.6, but when I try to browse I get the following message” www.yahoo.com could not be found. Please check the name and try again.”

I can get disconnected with this script.

# !/bin/bash
killall -9 pppd


Method 2:
I created a file with the name wvdial.conf in etc directory. The following are the contents of the file:
[Modem0]
Modem=/dev/ttyS0
Baud=115200
SetVolume=0
Dial Command = ATDT
init1=ATZ
init2=AT+CRM=1
FlowControl= Hardware (CRTSCTS)
[Dialer reliance]
Username= internet
Password= internet
Phone=#777
Stupid Mode= 1
Inherits = Modem0

After creating this file I ran wvdial from the root and this is what I got.

[root@localhost root]# wvdial tata
--> WvDial: Internet dialer version 1.53
--> Warning: section [Dialer tata] does not exist in wvdial.conf.
--> Cannot open /dev/modem: No such file or directory
--> Cannot open /dev/modem: No such file or directory
--> Cannot open /dev/modem: No such file or directory

Please help me to fix this problem, I am able to connect to the net in all windows versions like 98,2000,XP etc .

Regards,
Christopher.
Title: Help me to connect to internet using LG LSP 340E
Post by: gauravbajaj on November 09, 2005, 09:21:17 AM
Hi rahul
I have already given solution in my above post...

OK i will tell u again:

 After Connected to internet .. Check ur ip-address..., If it gets ip-address automatically it means that u r connected...
 
 & plzz make entry in /etc/resolv.conf file of ur DNS servers manually.......
 as In this Connection there is a problem that it cant make entry in /etc/resolv.conf file...
 
 & if u dont know ur DNS addresses then go to windows & check the DNS addresses there, as when u conncted to windowz using this phone.. it takes DNS addresses automatically but in Linux it cant....
 So after saw ur DNS addresses entries in Windowz make it in Linux
 in /etc/resolv.conf file(THIS IS THE STEP U MISSED I THINK)
 
 After that ur Internet will work....
 
 Enjoy
 
 Gaurav
Title: If your Tata Wlaky LG LST 350E (if I remember the model corr
Post by: 13lackhat on May 28, 2006, 05:28:52 PM
If your Tata Wlaky LG LST 350E (if I remember the model correctly) is connected to a USB port then the device is /dev/ttyACMx where x is a number (zero onwards) to which the phone is connected. (Try all if you are not sure!) I personally use the rconnect-0.5 script to connect my phone on Fedora Core 4. I you want to use that search for it over the internet and download it.

PS:Don't forget to edit the file /etc/resolv.conf as described in the above posts.
Title: tata indiacom
Post by: sherifmayika on October 18, 2006, 04:38:12 AM
my modem is trying to connect but fails plese help.


[root@localhost ~]# wvdial TATA
--> WvDial: Internet dialer version 1.54.0
--> 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@localhost ~]#
Title: Help me to connect to internet using LG LSP 340E
Post by: Ricky on October 18, 2006, 09:58:28 AM
Have you set up right baud rate in the phone ?

BTW, see this if that doesn't works..

--->  internet on my linux FC5 reliance lg350 USB (http://www.linuxsolved.com/forums/index.php?topic=2084.0)
Title: you mean the speed?
Post by: sherifmayika on October 18, 2006, 10:10:42 AM
two things I have set in phone are cable type and modem speed
Title: Help me to connect to internet using LG LSP 340E
Post by: Ricky on October 18, 2006, 10:17:22 AM
You try using rconnect script , may be that can help you straight !
Title: in my win2k it is working
Post by: sherifmayika on October 18, 2006, 10:20:23 AM
in my win2k it is working
Title: install rconnect
Post by: sherifmayika on October 18, 2006, 04:47:20 PM
I have rconnect-cmdline-1.0. but I dont understand how to install it even after reading the readme

any help
Title: Help me to connect to internet using LG LSP 340E
Post by: Ricky on October 18, 2006, 07:47:00 PM
You have to all from commands.
Read it again and carefully, you will get the idea.
Title: where to run commands
Post by: sherifmayika on October 19, 2006, 02:58:09 AM
Where  will I run sh. install. sh ?
Is it at terminal or at run command at start menu?

I tried at both place no result, I also tried to run the install srcipt , no luck.

I will ty again what is your openion?


sherif
Title: Help me to connect to internet using LG LSP 340E
Post by: Ricky on October 19, 2006, 07:35:22 AM
goto terminal and then navigate to to the directory where install.sh is located, run it from there itself.
Title: Rconnect sript is superb for TATA indicom both for usb and s
Post by: sherifmayika on October 20, 2006, 12:01:23 PM
those who are not able to download this may contact me

sherifmayika@gmail.com
Title: Internet is connected but unable to access website
Post by: sherifmayika on October 25, 2006, 03:38:36 PM
hi all,
first thanks for giving adivices on connecting to internet.

now i am able to connect internet using r coonect and kppp but no access to any web sites
I have frirewalls off


please help

sherif
Title: Help me to connect to internet using LG LSP 340E
Post by: Ricky on October 26, 2006, 07:36:55 AM
open /etc/resolv.conf and add lines

Code: [Select]

nameserver  xxx.xxx.xxx.xxx
nameserver  yyy.yyy.yyy.yyy


Here xxx.xxx.xxx.xxx and yyy.yyy.yyy.yyy means name server of your ISP, you can find it while you are connected in windows , if its windows XP then you find them by typing following at command prompt in XP.

ipconfig /all

It will also list available DNS server for your ppp0 !
Title: solved
Post by: sherifmayika on October 26, 2006, 08:42:09 AM
Thanks ricky

it solved. i had to correct DNS entries
Title: i m not able to connect!!!!!!!!!!!
Post by: ccsenasa on February 01, 2007, 08:29:57 PM
even after trying all the methods in this forum im not able to use internet on linux thro tataindicom lsp 340e.. plz help me..
It gets connected, I can infer that from my phone display because the timer starts and I get T 9.6 R 9.6, but when I try to browse I get the following message” www.yahoo.com could not be found. Please check the name and try again.”

i hav edited /etc/resolv.conf but still i recieve the above message.


regards,
satish
Title: Help me to connect to internet using LG LSP 340E
Post by: Ricky on February 02, 2007, 04:13:14 PM
You post output of following here when you are connected :
Code: [Select]
ipconfig ppp0

Also plz make sure you have properly followed :
Connecting CDMA phone in linux for internet (http://www.linuxsolved.com/forums/ftopic612.html)

Kindly, tally again your configuration.

Regards!