Reliance USB Data Card (Huawei) on Ubuntu HowTo
August 18, 2007 at 10:08 am | In ubuntu | 26 CommentsTags: data card, hardware, howto, huwai, installation, linux, open source, reliance, SysAdmin, technology, tutorial, ubuntu, usb modem
This is a quick and dirty howto to setup huawei usb data card with reliance connection on ubuntu 7.7 (Fiesty Fawn)
For Ubuntu LTS 8.4 “hardy heron” users, please refer to my latest post here.
1. Connect the reliance usb modem and check if its been recognized by the kernel.
$ cat /proc/bus/usb/devices
you’ll see something like this.
T: Bus=02 Lev=01 Prnt=01 Port=05 Cnt=02 Dev#= 4 Spd=12 MxCh= 0
D: Ver= 1.01 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=16 #Cfgs= 1
P: Vendor=12d1 ProdID=1001 Rev= 0.00
S: Manufacturer=Huawei Technologies
S: Product=Huawei Mobile
S: SerialNumber=HUAWEI EC3X1
C:* #Ifs= 2 Cfg#= 1 Atr=e0 MxPwr=100mA
I: If#= 0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=pl2303
E: Ad=81(I) Atr=03(Int.) MxPS= 16 Ivl=128ms
E: Ad=8a(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms
E: Ad=0b(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms
I: If#= 1 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=pl2303
E: Ad=83(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms
E: Ad=06(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms
2. Modprobe the driver
$ modprobe usbserial vendor=0×12d1 product=0×1001
verify dmesg
$ dmesg
[ 2315.412106] usbcore: registered new interface driver usbserial
[ 2315.412508] drivers/usb/serial/usb-serial.c: USB Serial support registered for generic
[ 2315.461938] usbcore: registered new interface driver usbserial_generic
[ 2315.461945] drivers/usb/serial/usb-serial.c: USB Serial Driver core
[ 2315.480382] drivers/usb/serial/usb-serial.c: USB Serial support registered for pl2303
[ 2315.480414] pl2303 2-6:1.0: pl2303 converter detected
[ 2315.480608] usb 2-6: pl2303 converter now attached to ttyUSB0
[ 2315.480620] pl2303 2-6:1.1: pl2303 converter detected
[ 2315.480691] usb 2-6: pl2303 converter now attached to ttyUSB1
3. Edit /etc/wvdial.conf add the entries provided in the sample file.
or replace the original one with it if there is nothing setup.
It will create a connection called “cdma”
Add the following lines to /etc/wvdial.conf
#/etc/wvdial.conf
[Modem0]
Modem = /dev/ttyUSB0
Baud = 115200
SetVolume = 0
Dial Command = ATDT
Init1 = ATZ
FlowControl = Hardware (CRTSCTS)[Dialer cdma]
Username = <replace this with your number>Password =<replace this with your number>
Phone = #777
Stupid Mode = 1
Inherits = Modem0The following things automate recognizing and adding your card everytime you plug it in.
5. Edit/add this file /etc/hotplug/usb/datacard.usermap with following contents
# /etc/hotplug/usb/datacard.usermap
# Huawei EC321 CDMA data card
datacard 0×0003 0×12d1 0×1001
6. Edit/Add /etc/hotplug/usb/datacard . make it executable (chmod +x) . Add the following lines to it.
#!/bin/bash
#This script goes to ” /etc/hotplug/usb/datacard “
# used to run modprobe when the usb cable is connectedSED=/bin/sed
if [ "$ACTION" = "add" ] && [ -f "$DEVICE" ]
then
VENDOR=”`echo “$PRODUCT” | $SED “s/^\(.*\)\/.*\/.*$/\1/”`”;
PRODUCT_ID=”`echo “$PRODUCT” | $SED “s/^.*\/\(.*\)\/.*$/\1/”`”;
modprobe usbserial “vendor=0x$VENDOR” “product=0x$PRODUCT_ID”
fi
7. you are all set. Open a command prompt and type the following to connect,
$ wvdial cdma
26 Comments »
RSS feed for comments on this post. TrackBack URI
Leave a comment
Blog at WordPress.com. | Theme: Pool by Borja Fernandez.
Entries and comments feeds.


i would like to inform your users, there is a gui tool in ubuntu for connecting.
goto synaptic and install gnome-ppp . you might have to put in the modem device manually.
Also once you have found the vendor id and device id, you can simply add the following to /etc/modules
usbserial vendor=0×19d2 product=0xfffd
the above is for the usb Zte MG880 modem from Reliance. Your vendor id and device id may differ. The usb modem should automatically be detected in subsequent boots
Comment by binoy — March 29, 2008 #
its vry helping thankx
Comment by manpreet — April 8, 2008 #
thanx for info
Comment by Gaurav — June 1, 2008 #
hai tech geeks
Where can i get the huawei software for reliance data card pl guide me
regards
svsreddy
Comment by svsreddy — June 13, 2008 #
svsreddy,
there is no software available for huwai data card that comes with reliance connection. Thats the reason for this howto. If you are looking for windows drivers/softwares, go to this link
http://www.rcom.co.in/webapp/Communications/rcom/Netconnect/netconnect_carddownload.jsp
Comment by Gourav Shah — June 13, 2008 #
how to setup Reliance data card in Ubuntu/linux:
————————————————-
FIRST connect ur usb Reliance huwai data card to ur system(Laptop/Desktop)
Step1) make entry in /etc/wvdial.conf as below
cat /etc/wvdial.conf
[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Modem Type = Analog Modem
ISDN = 0
New PPPD = yes
Phone = #777
Modem = /dev/ttyUSB0
Username = **********
Password = **********
Baud = 460800
stupid mode = 1
step2) now run “wvdial /etc/wvdial.conf” as root from command prompt
Your output should be like below:
–> WvDial: Internet dialer version 1.56
–> Warning: section [Dialer /etc/wvdial.conf] does not exist in wvdial.conf.
–> Cannot get information for serial port.
–> Initializing modem.
–> Sending: ATZ
ATZ
OK
–> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
OK
–> Modem initialized.
–> Sending: ATDT#777
–> Waiting for carrier.
ATDT#777
CONNECT 230400
–> Carrier detected. Starting PPP immediately.
–> Starting pppd at Mon Jun 23 23:24:47 2008
–> Pid of pppd: 6799
–> Using interface ppp0
–> pppd: �[08][06][08]�[10][06][08]
–> pppd: �[08][06][08]�[10][06][08]
–> pppd: �[08][06][08]�[10][06][08]
–> pppd: �[08][06][08]�[10][06][08]
–> local IP address 220.226.59.180
–> pppd: �[08][06][08]�[10][06][08]
–> remote IP address 220.224.135.112
–> pppd: �[08][06][08]�[10][06][08]
–> primary DNS address 202.138.103.100
–> pppd: �[08][06][08]�[10][06][08]
–> secondary DNS address 202.138.96.2
–> pppd: �[08][06][08]�[10][06][08]
step4) now you should able to connect to web
Happy Browsing…
Comment by Manas Kumar Nayak — June 23, 2008 #
[...] try these tips- Just another Blog: How to get Reliance ZTE MG880 working with Ubuntu Linux 7.04 Reliance USB Data Card (Huawei) on Ubuntu HowTo FreedomYug [...]
Pingback by Problem: Reliance usb Modem on LINUX - India Broadband Forum — July 16, 2008 #
I am trying to use Reliance ZTE CDMA 1X Modem MG880 with Ubuntu 8.04.
I tried steps as given below. (I am new to Ubuntu) Please help me to make this work.
santo@santo-notebook:~$ cat/proc/bus/usb/devices
bash: cat/proc/bus/usb/devices: No such file or directory
So I tried sudo gedit /etc/init.d/mountdevsubfs.sh
and made changes like
# Magic to make /proc/bus/usb work
mkdir -p /dev/bus/usb/.usbfs
domount usbfs “” /dev/bus/usb/.usbfs -obusmode=0700,devmode=0600,listmode=0644
ln -s .usbfs/devices /dev/bus/usb/devices
mount –rbind /dev/bus/usb /proc/bus/usb
santo@santo-notebook:~$ sudo /etc/init.d/mountdevsubfs.sh start
sudo: unable to resolve host santo-notebook
/etc/init.d/mountdevsubfs.sh: 67: -obusmode=0700,devmode=0600,listmode=0644: not found
ln:
creating symbolic link `/dev/bus/usb/devices’: File exists
After this I restarted my HP notebook.
santo@santo-notebook:~$ cat/proc/bus/usb/devices
bash: cat/proc/bus/usb/devices: No such file or directory
santo@santo-notebook:~$ sudo wvdialconf
sudo: unable to resolve host santo-notebook
Editing `/etc/wvdial.conf’.
Scanning your serial ports for a modem.
Modem Port Scan: S0 S1 S2 S3
Sorry, no modem was detected! Is it in use by another program?
Did you configure it properly with setserial?
Please read the FAQ at http://open.nit.ca/wiki/?WvDial
If you still have problems, send mail to…..
santo@santo-notebook:~$
When I tried lsusb command it is listed as Bus xxx Device 013: ID 19d2:fffd
I even checked in Administration > Network as given here http://ubuntuforums.org/showthread.php?p=4929133#post4929133
It looks like the USB modem is not even getting detected by Ubuntu 8.04. The same modem works in Vista.
Please help me to resolve this.
Thank you
Santosh
Comment by Santosh — August 15, 2008 #
Santosh,
have you tried the following command already, if not please do so.
sudo modprobe usbserial vendor=0×19d2 product=0xfffd
Once done, run this to verify usbserial is been actually loaded
sudo lsmod | grep usbserial
Once you do that, positively drivers for your device would have been loaded. it would be great if you could run the following commands after you do above steps and paste the outpur here,
dmesg | tail
lsusb
thanks,
gourav
Comment by Gourav Shah — August 15, 2008 #
Hi,
Its great, it tooks only 10 minutes to go through your instructions and configure the same on my laptop. Its working without any error.
Thank you..
–vino
essentia
Comment by vino — September 15, 2008 #
Hi there, When i type the cat … command the out put is “No such file or directory
Please help me to connect to the internet
Thanks in advance
If there is any detail you would like to know from my side please do so
Comment by Manish K — October 7, 2008 #
Hi
I’m new to Ubuntu and I tried to use Reliance Data card Model:EC325 for my internet connection. I followed the steps above.
the thing is i got a message stating that i dont have the previlages to edit the wvdial.config but i dont have any other user in unix there is only one user to it. user name is naveen. it didnt work.
can u plz tel me how can i use internet on ubuntu using reliance data card.
Comment by Naveen Kumar — November 11, 2008 #
I am using ubuntu7.10
I am unable to do cat cat /proc/bus/usb/devices
it gives no such file or derectory.
I even inserted pen drive to check any entry. but same error.
can anyone suggest me for this
Comment by Reshma — November 11, 2008 #
Naveen,
refer to the following doc
https://help.ubuntu.com/community/RootSudo
you could type in the same command prefixed with sudo if it denies you permission otherwise.
e.g.
instead of vi wvdial.conf
use
sudo vi wvdial.conf
Comment by Gourav Shah — November 11, 2008 #
Reshma,
try running ‘lsusb’ instead of listing /proc/bus/usb/devices
Comment by Gourav Shah — November 11, 2008 #
Hi Gourav !
I try to install a Huawei modem EC325 on Ubuntu 7.1
I begin by : lsusb.
The Result is :
Bus 003 Device 001: ID 0000:0000
Bus 005 Device 004: ID eb1a:2761 eMPIA Technology,
Bus 005 Device 003: ID 0951:1606 Kingston
Bus 005 Device 001: ID 0000:0000
Bus 004 Device 001: ID 0000:0000
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 003: ID 12d1:1001
Bus 001 Device 001: ID 0000:0000
I continue by editing wvdial.conf; with sudo vi wvdial.conf
But after to have edited it with the command “wvdial /etc/wvdial.conf”,
the result is :
WvDial: Internet dialer version 1.56
WvDial: Warning: section [Dialer /etc/wvdial.conf] does not exist in vDial
: Cannot open /dev/modem: No such file or directory
WvDial: Cannot open /dev/modem: No such file or directory
WvDial: Cannot open /dev/modem: No such file or directory
Can you help me, please ?
Comment by Roman — November 21, 2008 #
It’s ok, i have advanced. You can erase my last comment.
Now, i have this problem.
Following the 6th comment, I wrote wvdial.conf
When I do : wvdial/etc/wvdial.conf, the result is :
rom@rom-laptop:~$ wvdial /etc/wvdial.conf
WvDial:
WvDial: Internet dialer version 1.56
WvDial:
Warning: section [Dialer /etc/wvdial.conf] does not exist in wvdial.conf.
WvModem: Cannot get information for serial port.
WvDial: Initializing modem.
WvDial: Sending: ATZ
WvDial Modem: ATZ
WvDial Modem: OK
WvDial:
Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
WvDial Modem: ATQ0 V1 E1 S0=0 &C1 &D2
+FCLASS=0
WvDial Modem: OK
WvDial: Modem initialized.
WvDial:
Sending: ATDT#777
WvDial: Waiting for carrier.
WvDial Modem:
ATDT#777
WvDial Modem: CONNECT 230400
WvDial: Carrier detected.
Waiting for prompt.
WvDial: Don’t know what to do!
Starting pppd and hoping for the best.
WvDial:
Starting pppd at Sat Nov 22 14:29:16 2008
WvDial: Warning:
Could not modify /etc/ppp/pap-secrets: Permission denied
WvDial: –>
PAP (Password Authentication Protocol) may be flaky.
WvDial: Warning:
Could not modify /etc/ppp/chap-secrets: Permission denied
WvDial: –>
CHAP (Challenge Handshake) may be flaky.
WvDial: Pid of pppd: 6937
WvDial:
Using interface ppp0
WvDial: pppd: ��[06][08]��[06][08]
WvDial:
pppd: ��[06][08]��[06][08]
WvDial: pppd: ��[06][08]��[06][08]
WvDial: pppd:
��[06][08]��[06][08]
WvDial: Disconnecting at Sat Nov 22 14:29:26 2008
WvDial:
The PPP daemon has died: Authentication error.
WvDial:
We failed to authenticate ourselves to the peer.
WvDial:
Maybe bad account or password? (exit code = 19)
WvDial:
man pppd explains pppd error codes in more detail.
WvDial:
I guess that’s it for now, exiting
WvDial:
The PPP daemon has died. (exit code = 19)
Is it a problem from my account registration ? or from anywhere else ?
Comment by roman — November 22, 2008 #
her is the problem,
————
WvDial: Warning:
Could not modify /etc/ppp/pap-secrets: Permission denied
WvDial: –>
PAP (Password Authentication Protocol) may be flaky.
WvDial: Warning:
Could not modify /etc/ppp/chap-secrets: Permission denied
WvDial: –>
——————-
/etc/ppp/chap-secrets and /etc/ppp/pap-secrets do not have permission to be written by anyone except root. you could verify it using ‘ls -l /etc/ppp ‘
what you need to do is to run wvdial with root permissions, preferably using sudo,
e.g.
sudo wvdial /etc/wvdial.conf
alternately, you could change permissions of these files using chmod and make it writable by other users, which is dangerous though. if you do this, you should revert back permissions once you dial wvdial for the first time.
this can be done as,
1. sudo su
2. chmod a+rw /etc/ppp/pap-secrets
chmod a+rw /etc/ppp/chap-secrets
3. wvdial /etc/wvdial.conf
4.
chmod a-rw /etc/ppp/pap-secrets
chmod u+rw /etc/ppp/pap-secrets
Comment by Gourav Shah — November 22, 2008 #
Gourav, it’s allright ! Now, working without any problem.
Can I put the speed up ?
Bauds, are they link to the speed ?
I wrote Bauds : 115200
Can I write : 460800
230400, is it my real speed ?
Comment by Roman — December 4, 2008 #
Roman,
115200 is alright. that is the connection speed used for negotiations, but you wont actually get that speed. the actual bandwidth that you’ll get with this connection will be much lower than 115Kbps. even if you change those parameters, you wont see much difference.
if you want to check your bandwidth, use this tool http://www.speakeasy.net/speedtest . It would give you an accurate information on download and upload speeds. You could ofcourse try bumping the connection speed to the above numbers, and let me know if that really boosts your speed
, chances of which are rare in my opinion.
Comment by Gourav Shah — December 4, 2008 #
Hi Gourav and Roman,
I got a very similar authentication problem that I cannot find a way out. There is no problem connecting to the provider using the same account from XP. Any ideas are welcome and appreciated.
The output follows:
root@ubuntu:/usr/sbin# wvdial
–> WvDial: Internet dialer version 1.60
–> Cannot get information for serial port.
–> Initializing modem.
–> Sending: ATZ
ATZ
OK
–> Sending: ATQ0 V1 E1 S0=0 &C1 &D2
ATQ0 V1 E1 S0=0 &C1 &D2
OK
–> Modem initialized.
–> Sending: ATDT
–> Waiting for carrier.
ATDT
CONNECT 64000/115200 PPP
–> Carrier detected. Waiting for prompt.
~[7f]}#@!}!m} }5}#}%B#}%}%}&o[19])A}”}&} } } } .)~
–> PPP negotiation detected.
–> Starting pppd at Tue Dec 9 11:46:46 2008
–> Pid of pppd: 12404
–> Using interface ppp0
–> pppd: ��� ��
–> pppd: ��� ��
–> pppd: ��� ��
–> pppd: ��� ��
–> pppd: ��� ��
–> Disconnecting at Tue Dec 9 11:46:55 2008
–> The PPP daemon has died: Authentication error.
–> We failed to authenticate ourselves to the peer.
–> Maybe bad account or password? (exit code = 19)
–> man pppd explains pppd error codes in more detail.
–> I guess that’s it for now, exiting
–> The PPP daemon has died. (exit code = 19)
Comment by Nikos — December 9, 2008 #
exit code = 19 indicates the issue with authentication.
check /etc/ppp/pap-secrets and /etc/ppp/chap-secrets files and make sure they are properly configured with your username, password etc.
Comment by Gourav Shah — December 9, 2008 #
[...] to setup & Configure Reliance Datacard USB Internet in UBUNTU Linux? This should work. Reliance USB Data Card (Huawei) on Ubuntu HowTo FreedomYug __________________ [...]
Pingback by How to setup & Configure Reliance Datacard USB Internet in UBUNTU Linux? - Open Source & Linux — December 10, 2008 #
Hi Gourav. Merry christmas and happy new year.
I have used Internet many hours, days; without problems. But now, I can not connect anymore.
PPP daemon has died = A modem hang up the phone (exit code = 16). Var/log/messages = warning: secret file /etc/ppp/papsecrets has world and/or group access. Please, can u help me to reconnect ?
Comment by Roman — December 29, 2008 #
Hi Gourav after 15 days, I have always the same problem. I have done what u tall me about permissions. sudo su, chmod a- …, u+ … ;
they’re rw for user only for pap-secrets. But I can not connect. A modem hang up the phone exit code = 16. plz, can u help me ?
Comment by roman — January 13, 2009 #
Gourav,
Trying to get AnyData Adm-100c modem to work on Ubuntu 8.04 and getting :
“The PPP daemon has died: A modem hung up the phone (exit code = 16)”
Am stuck for past 3 days.. Has anyone got this working??
Tks,
Comment by sandhu — January 23, 2009 #