A typical type of internet connection

Asked by passionguy

My friend has installed Ubuntu recently & he was impressed by it very much than me. He was not able 2 keep Ubuntu as he cannot configure his internet connection. His internet connection is thru an CDMA phone. It is connected by means of an Serial port(computer side) & USB(phone side). It also requires an software provided by ISP to connect to the internet. I believe there is a solution to configure this type of Internet connection.

I need ur help friends & also thank u in advance

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:

This question was reopened

Revision history for this message
Matt Jones (workhorsy) said :
#1

what is the model of phone?

The new ubuntu 8.10 can use many cdma modems out-of-the box. If you click on "network manager" near the top right of the gnome panel, you can see a list of networks. When you plug in your cdma device it may be listed there. You just have to select it and it should connect.

But I need more info on the phone to really solve your problem.

Revision history for this message
passionguy (fayazahmedj) said :
#2

I will provide the information as soon as possible.....Is the manufacturer & model name enough??

Revision history for this message
Matt Jones (workhorsy) said :
#3

That should be enough. Then we can look up to see if it works with Network Manager or wvdial.

Revision history for this message
passionguy (fayazahmedj) said :
#4

Welll it is an LG LSP340 phone....

Revision history for this message
passionguy (fayazahmedj) said :
#5

Welll it is an LG LSP340 phone....

Revision history for this message
Matt Jones (workhorsy) said :
#6

I don't think you mentioned the version of ubuntu you are on. The gui method below should work on 8.10. While the terminal method should work on 8.04 and 8.10.

The easiest thing to do would be to connect the phone to the ubuntu machine via usb. Then Network Manager should add it to the list of devices. Network Manager is the small icon on the top right panel that manages all network connections. Left click it, and you may see the CDMA device listed there, as well as any wifi, and wired networks. It may take a few seconds for the device to register.

If that does not work, the next easiest way to get it to work is to use wvdial.

1. After the phone is connected by the usb cable, we can look at the dmesg log to see if any events related to usb or CDMA were added. Run this command:
$dmesg | grep -i ttyUSB

2. If there was nothing, look for all the usb activity to see if it is listed there:
$dmesg | grep -i cdma

3. Those should show that the device was recognized by the system. Now make sure your user is in the group that allows for dialing the modem by running this command with the correct user name. You will need to log out and back in to have any changes take effect:
$sudo usermod -a -G dip user_name

4. Next try to automatically configure wvdial to use the device:
$sudo wvdialconf

5. Look at the generated config file to see what is in it:
$gksudo gedit /etc/wvdial.conf

6. I'm not sure how it will look for your cdma phone, but for my cdma cards and gsm usb devices it looks similar to this:

[Dialer Defaults]
Modem = /dev/ttyUSB0
Baud = 460800
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0
&C1 &D2 + FCLASS=0
ISDN = 0
Modem Type = USB Modem
Phone = #777
Username = ''
Password = ''
Carrier Check = no
Stupid Mode = yes

7. Now try toying around with some of those values and see if it works. You can run the wvdial like this:
$wvdial

If that does not work, I found this tutorial on how to do it with raw pppd:
http://www.ibiblio.org/pub/Linux/docs/HOWTO/other-formats/pdf/Reliance-HOWTO.pdf

If neither of those things works, maybe someone else will chime in with another way.

Revision history for this message
Matt Jones (workhorsy) said :
#7

Also note that with many of these gsm/cdma devices, you will need to activate it before it can be used. I have not seen any way to do this without the proprietary software that runs on windows.

Revision history for this message
passionguy (fayazahmedj) said :
#8

I lost my internet connection 4 a couple of days thats y i was late in replying u. My friend is using Gutsy & I wanna know whether the methods u suggested supports it.

I need a week 2 reply as i have 2 try this in my friends house. If it works i m sure he will use Ubuntu

Thanks a lot....

Revision history for this message
Matt Jones (workhorsy) said :
#9

That makes it much more difficult, as versions of Ubuntu prior to Hardy 8.04 did not automatically load the kernel modules for many usb serial devices. And they also did not have the newer airprime, which would make the connection speed slower on most usb modems.

If you are using a version of Ubuntu before Hardy 8.04, and want to use wvdial, you have to manually load the usbserial device. In order to do that, you would need a vendor id, and product id for that specific device. I looked around, and I could not find that info for your phone(or much info on it at all).

If you are using a version of Ubuntu before Intrepid 8.10, you won't have much luck with using Network Manager with usb modems. You may be able to use KPPP(has a GUI) with this, but I have never gotten that to work. Also, I don't think KPPP is installed by default in Ubuntu. So you would need a way to download that and its dependencies.

So basically this is how each release makes it easier to use CDMA/GSM modems:
6.04 to 7.10: Pretty much the same.
8.04: Automatically loads usb modules for most devices. And uses the new faster airprime.
8.10: Added support for loading these devices with the Network Manager GUI.

Sorry I can't be of much help with this. It is really hard for me to try and figure this out without having the phone on hand. Plus, this could all not work at all, because I have not seen much info on using those types of phones with linux.

Maybe someone else can chime in from here, to help with loading the usbserial module. You would load it like this:
sudo modprobe usbserial vendor=[vendor_id] product=[product_id]

The vendor_id and product_id would be a 4 hexedeciaml number that matches that device. For example, when I was running Gutsy and I had to load the module manually for my Novatel U720, it looked like this:
sudo modprobe usbserial vendor=0x1410 product=0x2110

Sorry I can not give you a definitive answer. Maybe someone else knows, or has a better approach. Or maybe you could upgrade/reinstall to a newer version of Ubuntu. Or maybe your friend should just stick to using Windows with this device, since this is getting a bit complicated and hypothetical.

Revision history for this message
passionguy (fayazahmedj) said :
#10

I think i can go 4 ur suggestion of upgrading Ubuntu.

Well the modem is connected by means of an Serial port(computer side) & ethernet(phone side). Can Ubuntu detect this kind of modem or i can go 4 a different cable.

Thanks a lot 4 ur help.....

Revision history for this message
passionguy (fayazahmedj) said :
#11

I think its my turn to try the steps which are provided on the link....
Thanks again

Revision history for this message
passionguy (fayazahmedj) said :
#12

I like 2 know whether Gutsy provides PPP support or i have 2 go 4 Hardy or Intrepid.

Revision history for this message
Matt Jones (workhorsy) said :
#13

wvdial should be able to use modems that are connected via usb and serial ports.

According to the ubuntu package search, Gutsy has ppp:

http://packages.ubuntu.com/search?suite=default&section=all&arch=any&searchon=names&keywords=ppp

Can you help with this problem?

Provide an answer of your own, or ask passionguy for more information if necessary.

To post a message you must log in.