I am using Ubuntu 6.06 and have a Suntel CDMA phone and I seeked for a way of configuring it as a modem in Ubuntu. So I came across an email sent to LUG (Linux User Group - http://www.lug.lk) by Sudirikku Mohanjith <moha@mohanjith.net>. He, using a Lanka Bell CDMA phone, has found a solution. So following is a combination of Sudirikku Mohanjith and mine experience.
NOTE: The majority of credit of the beneficiaries should go to Sudirikku Mohanjith.
So let's start. According to my knowledge both Suntel and Lanka Bell CDMA phones (perhaps all CDMAs) use HUAEWI ETS1000 Series Fixed Wireless Terminal with the TI USB 3410 cable (mine is a serial to USB cable and I don't know whether there are serial to serials too. However here we assume a serial to usb cable). The problem is with this cable and not with the HUAEWI terminal.
SYSTEM REQUIREMENTS
Linux with kernel above 2.6.
(Check it by command in console uname -a)
(Personally Tested on FC6, should work on any Linux Distribution)
STEP 1
Plug in the Serial to USB cable.
Now in console type command dmesg -c search for the following lines.
ti_usb_3410_5052 1-1:2.0 : TI USB 3410 1 port adapter converter detected
usb 1-1: TI USB 3410 1 port adapter converter now attached to /dev/ttyUSB0
If you see ttyUSB0 in the kernel message then also your modem is detected and you are ready to start, now just jump to STEP 2 and proceed.
If the lines are as follows, you have to do a little bit of coding.
ti_usb_3410_5052 1-1:1.0: TI USB 3410 1 port adapter converter detected
ti_usb_3410_5052: probe of 1-1:1.0 failed with error -5
Now we have to make a rule file in /etc/udev/rules.d/ named 026_ti_usb_3410.rules
In console login as root or use sudo to create the file.
cd /etc/udev/rules.d/
sudo vi 026_ti_usb_3410.rules
In Ubuntu you will be asked for your password. (I don'y know whether it is the same in FC also)
Anyway in FC (or in other distros) type
su
then will be asked for your password.
Here you can use a preferred text editor rather than vi.
Now paste the following lines to the file created.
#TI USB 3410
SUBSYSTEM=="usb_device" ACTION=="add" SYSFS{idVendor}=="0451",SYSFS{idProduct}=="3410" \
SYSFS{bNumConfigurations}=="2" \
SYSFS{bConfigurationValue}=="1" \
RUN+="/bin/sh -c 'echo 2 > /sys%p/device/bConfigurationValue'"
Save and exit.
Now once again plug out your USB/Serial cable and then plug in.
Again type dmesg -c in console.
Check the kernel message and find the following line.
ti_usb_3410_5052 1-1:2.0: TI USB 3410 1 port adapter converter detected
usb 1-1: TI USB 3410 1 port adapter converter now attached to /dev/ttyUSB0
CONGRATULATIONS you have succeeded in STEP 1.
STEP 2
This is about creating a dialup script using wvdial
Now edit your /etc/wvdial.conf
cd /etc
sudo vi wvdial.conf
Following is a sample of a wvdial.conf file
[Dialer ptcl]
Modem = /dev/ttyUSB0
Baud = 230400
Phone = #777
Init1 = ATZ
Stupid Mode = 1
Dial Command = ATDT
Username = YourUsername
Password = YourPassword
PPPD Options = crtcts multilink usepeerdns lock defaultroute
Important Note: Stupid Mode should be set to 1 otherwise the hash sign # with Dialing phone number will not be treated by wvdial.
This file replaced YourUsername and YourPassword with appropriate username and password, works well with Ubuntu and FC6.
PROBLEM
(Sudirikku Mohanjith has experienced this problem in FC6. But I didn't. So I hope that all Ubuntu users can jump to STEP 3).
When you will connect to ptcl with wvdial ptcl command as a root , it will not browse any page and will disconnect.
You have to set the nameserver in the /etc/resolv.conf .You can get the nameserver IPs from the terminal window when wvdial is trying to connect to your ISP.
Put those two nameserver in /etc/reslov.conf.
Now again as a root in console wvdial ptcl.
STEP 3
Just type
wvdial ptcl
NOTE: In FC6 this command should be executed as root.
So we have come to the conclusion. Try this and post your experiences also regarding this matter.
Finally I would like to end this with the ending as on Sudirikku Mohanjith's email (some more added).
FINALLY YOU ARE DONE.
ENJOY LINUX WITH HUAWEI Suntel and Lanka Bell.
Cheers.
Thursday, March 01, 2007
Subscribe to:
Post Comments (Atom)

11 comments:
Thanks for your great help.However I use a Citylink phone.
Help more to move with fc6. Please Include futher steps to set nameServer. Thanks a lot.
Its a good info not only for you all but for me too.
When I try to activate my usb modem Huawei E220 in Ubuntu was great pain but with communuity forum I could do it.Where as the same config. in Fedora 5 drew blank.Since i could not remember that I have done in root or not.From your written up,I should give a try with su - command in FC5.
Once again,thanks a lot for keep knowing everyone.
for guys who need detialed step-by-step guide refer:
http://installing-huawei-cdma-modem-in-linux.blogspot.com/
For any one having trouble in Fedora have a look at http://blog.mohanjith.net
I am using a SLT citylink phone.
I did as u said. first I failed.
But then I set Baud value in the wvdial.conf file into 115200.
Then I succeeded.
Thank you so much for your great help.
-Nayanajith
Thanks for the info.
I could sucessfully configure Ubuntu 7.03 for my Suntell ETS2251 phone, but I could not configure Fedora 8 sucessfully. It gave
ti_usb_3410_5052: probe of 1-1:1.0 failed with error -5
over n over again.
I tried this on ubuntu 8.14 (xubuntu) and dmseg -c command is not working.. it says the command is not permited.. wht can i do..please let me know
@ Gayan
try with
sudo dmesg -c
Now(ubuntu 8.10) this is method is not working.
It gives a error.
What will happent if we dont have serial - usb phone. I mean if we have usb-usb phone?
This method is not cofigurable.
-Nayanajith
Post a Comment