Use Reliance Netconnect datacard with Ubuntu Linux

Today, got a Reliance Netconnect datacard. Trying to connect it with linux.

Googled for it and got more results. Here adding my experiences.

Here is a mini-how-to, as I did.

1. Connect the datacard to usb port.

2. Install wvdial
    sudo apt-get install wvdial

3. configure wvdial
   sudo wvdialconf

It could not find any modem in the usb port and threw the following error.

shrinivasan@shrinivasan-laptop:$ sudo wvdialconf
Editing `/etc/wvdial.conf’.

Scanning your serial ports for a modem.

Modem Port Scan<*1>: 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 <wvdial-list@lists.nit.ca>.

4. check for whether the usb card is detected using ‘lsusb’

shrinivasan@shrinivasan-laptop:$ lsusb
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 002: ID 046d:c016 Logitech, Inc. M-UV69a/HP M-UV96 Optical Wheel Mouse
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 010: ID 19d2:fffd ONDA Communication S.p.A.
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 003: ID 147e:2016 Upek Biometric Touchchip/Touchstrip Fingerprint Sensor
Bus 003 Device 002: ID 0a5c:2110 Broadcom Corp. Bluetooth Controller
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

So it is detected in my laptop as

Bus 005 Device 010: ID 19d2:fffd ONDA Communication S.p.A.

Here, vendor = 19d2 and product = fffd

5. The kernel module for the usb data card is not loaded by default. so, we need to load the module manually. Now load the kernel module for the usb card, using following command.

sudo modprobe usbserial vendor=0x19d2 product=0xfffd

Thats all. Now, let us check whether wvdial can recognize the data card now.

6. shrinivasan@shrinivasan-laptop:$ sudo wvdialconf
Editing `/etc/wvdial.conf’.

Scanning your serial ports for a modem.

Modem Port Scan<*1>: S0   S1   S2   S3  
WvModem<*1>: Cannot get information for serial port.
ttyUSB0<*1>: ATQ0 V1 E1 — OK
ttyUSB0<*1>: ATQ0 V1 E1 Z — OK
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 — OK
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 — OK
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 — OK
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 — OK
ttyUSB0<*1>: Modem Identifier: ATI — ZTEiT, Incorporated
ttyUSB0<*1>: Speed 9600: AT — OK
ttyUSB0<*1>: Max speed is 9600; that should be safe.
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 — OK
WvModem<*1>: Cannot get information for serial port.
ttyUSB1<*1>: ATQ0 V1 E1 — failed with 2400 baud, next try: 9600 baud
ttyUSB1<*1>: ATQ0 V1 E1 — failed with 9600 baud, next try: 9600 baud
ttyUSB1<*1>: ATQ0 V1 E1 — and failed too at 115200, giving up.
WvModem<*1>: Cannot get information for serial port.
ttyUSB2<*1>: ATQ0 V1 E1 — failed with 2400 baud, next try: 9600 baud
ttyUSB2<*1>: ATQ0 V1 E1 — failed with 9600 baud, next try: 9600 baud
ttyUSB2<*1>: ATQ0 V1 E1 — and failed too at 115200, giving up.

Found a modem on /dev/ttyUSB0.
Modem configuration written to /etc/wvdial.conf.
ttyUSB0<Info>: Speed 9600; init “ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0”

7. Cool. The data card is recognized.🙂

Now, let us configure the file /etc/wvdial.conf with the authentication details.

shrinivasan@shrinivasan-laptop:$ sudo vim /etc/wvdial.conf

[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Modem Type = Analog Modem
Baud = 9600
New PPPD = yes
Modem = /dev/ttyUSB0
ISDN = 0
; Phone = <Target Phone Number>
; Password = <Your Password>
; Username = <Your Login Name>

Username = 9xxxxxxxxx
Password = 9xxxxxxxxx
Phone = #777
Stupid Mode = 1

In the username and password section, give your reliance card no.

8. Now, connect to Internet using the command “wvdial”.

shrinivasan@shrinivasan-laptop:$ sudo 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 +FCLASS=0
ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
OK
–> Modem initialized.
–> Sending: ATDT#777
–> Waiting for carrier.
ATDT#777
CONNECT
–> Carrier detected.  Starting PPP immediately.
–> Starting pppd at Thu Nov  5 15:45:26 2009
–> Pid of pppd: 3205
–> Using interface ppp0
–> pppd: 0$P
–> pppd: 0$P
–> pppd: 0$P
–> pppd: 0$P
–> pppd: 0$P
–> local  IP address 115.184.194.33
–> pppd: 0$P
–> remote IP address 220.224.141.145
–> pppd: 0$P
–> primary   DNS address 202.138.103.100
–> pppd: 0$P
–> secondary DNS address 202.138.96.2
–> pppd: 0$P

Wow. You are connected to net.

9. check it using

$ ifconfig ppp0

ppp0      Link encap:Point-to-Point Protocol 
          inet addr:115.184.194.33  P-t-P:220.224.141.145  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1
          RX packets:4 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3
          RX bytes:114 (114.0 B)  TX bytes:87 (87.0 B)

10. Now, you can browse Internet using the browser.

This will work until  you reboot the machine.

11. Let us create a small shell script to connect Internet easily.

vim net.sh

#!/bin/bash
modprobe usbserial vendor=0x19d2 product=0xfffd
wvdial

12. Now to connect Internet

sudo bash net.sh

This command will load the kernel module for the usb card and conect you to Internet.

🙂

39 thoughts on “Use Reliance Netconnect datacard with Ubuntu Linux

  1. Hey, this allows us to connect to internet but within seconds crashes all system, nothing works, system doesnt respond.
    I had to remove battery to recover.

  2. Not sure why you are loading the module from a shell script. A better way would be to add the module usbserial to /etc/modules and create a new file /etc/modprobe.d/usbserial.conf to specify the options of the module.

  3. Onkar, better not to use any scripts just unmount sd storage/cd drive and run gnome-ppp.
    I hope they fix this mess soon in updates, its causing many people issues – cant connect to internet.

  4. Hi All,

    up to step five its working fine

    when I gave the command
    sudo wvdial

    Its checking only the serial port and not the /dev/ttyUSB*

    And says

    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 .

    Help me
    Thanks in Advance

  5. hi sir, Madam

    i have 1 data card but i m not connect my data card in my pc so plz
    reply me how to connect my data card in vertual pc in operating system ubbuntoo

  6. Hi, i am sagar, i am using reliance data card 1x and os is redhat linux-5, and i am not able to connect internet in linux so plz can u help me that how can i access internet in linux throgh reliance data card 1x zte diler.

    plz if have u answer than help me and kindly send me solution in my email id. my email id is below……..

    uma_sagar05@yahoo.com

  7. I got the following error:

    root@shashikant-laptop:/home/mahesh# modprobe usbserial vendor=0×19d2 product=0xfffd
    FATAL: Error inserting usbserial (/lib/modules/2.6.31-20-generic/kernel/drivers/usb/serial/usbserial.ko): Invalid argument

    I am using ubuntu 9.10 amd64.

    kindly someone may reply…..

  8. -laptop:~$ sudo apt-get install wvdial

    Reading package lists… Done
    Building dependency tree
    Reading state information… Done
    The following extra packages will be installed:
    libuniconf4.6 libwvstreams4.6-base
    libwvstreams4.6-extras
    The following NEW packages will be installed:
    libuniconf4.6 libwvstreams4.6-base
    libwvstreams4.6-extras wvdial
    0 upgraded, 4 newly installed, 0 to remove and 117 not upgraded.
    Need to get 1,107kB of archives.
    After this operation, 2,859kB of additional disk space will be used.
    Do you want to continue [Y/n]? y
    Err http://in.archive.ubuntu.com/ubuntu/ lucid/main libwvstreams4.6-base 4.6.1-1
    Could not resolve ‘in.archive.ubuntu.com’
    Err http://in.archive.ubuntu.com/ubuntu/ lucid/main libwvstreams4.6-extras 4.6.1-1
    Could not resolve ‘in.archive.ubuntu.com’
    Err http://in.archive.ubuntu.com/ubuntu/ lucid/main libuniconf4.6 4.6.1-1
    Could not resolve ‘in.archive.ubuntu.com’
    Err http://in.archive.ubuntu.com/ubuntu/ lucid/main wvdial 1.60.3
    Could not resolve ‘in.archive.ubuntu.com’
    Failed to fetch http://in.archive.ubuntu.com/ubuntu/pool/main/w/wvstreams/libwvstreams4.6-base_4.6.1-1_i386.deb Could not resolve ‘in.archive.ubuntu.com’
    Failed to fetch http://in.archive.ubuntu.com/ubuntu/pool/main/w/wvstreams/libwvstreams4.6-extras_4.6.1-1_i386.deb Could not resolve ‘in.archive.ubuntu.com’
    Failed to fetch http://in.archive.ubuntu.com/ubuntu/pool/main/w/wvstreams/libuniconf4.6_4.6.1-1_i386.deb Could not resolve ‘in.archive.ubuntu.com’
    Failed to fetch http://in.archive.ubuntu.com/ubuntu/pool/main/w/wvdial/wvdial_1.60.3_i386.deb Could not resolve ‘in.archive.ubuntu.com’
    E: Unable to fetch some archives, maybe run apt-get update or try with –fix-missing?
    -laptop:~$ apt-get update
    E: Could not open lock file /var/lib/apt/lists/lock – open (13: Permission denied)
    E: Unable to lock the list directory

    giving this statemt, what to do .

  9. topnotch@topnotch-laptop:~$ sudo apt-get update
    [sudo] password for topnotch:
    Hit http://in.archive.ubuntu.com lucid Release.gpg
    Ign http://in.archive.ubuntu.com/ubuntu/ lucid/main Translation-en_IN
    Ign http://in.archive.ubuntu.com/ubuntu/ lucid/restricted Translation-en_IN
    Ign http://in.archive.ubuntu.com/ubuntu/ lucid/universe Translation-en_IN
    Ign http://in.archive.ubuntu.com/ubuntu/ lucid/multiverse Translation-en_IN
    Hit http://in.archive.ubuntu.com lucid-updates Release.gpg
    Ign http://in.archive.ubuntu.com/ubuntu/ lucid-updates/main Translation-en_IN
    Ign http://in.archive.ubuntu.com/ubuntu/ lucid-updates/restricted Translation-en_IN
    Hit http://security.ubuntu.com lucid-security Release.gpg
    Ign http://security.ubuntu.com/ubuntu/ lucid-security/main Translation-en_IN
    Ign http://security.ubuntu.com/ubuntu/ lucid-security/restricted Translation-en_IN
    Ign http://security.ubuntu.com/ubuntu/ lucid-security/universe Translation-en_IN
    Ign http://security.ubuntu.com/ubuntu/ lucid-security/multiverse Translation-en_IN
    Hit http://security.ubuntu.com lucid-security Release
    Ign http://in.archive.ubuntu.com/ubuntu/ lucid-updates/universe Translation-en_IN
    Ign http://in.archive.ubuntu.com/ubuntu/ lucid-updates/multiverse Translation-en_IN
    Hit http://in.archive.ubuntu.com lucid Release
    Hit http://security.ubuntu.com lucid-security/main Packages
    Hit http://in.archive.ubuntu.com lucid-updates Release
    Hit http://security.ubuntu.com lucid-security/restricted Packages
    Hit http://security.ubuntu.com lucid-security/main Sources
    Hit http://security.ubuntu.com lucid-security/restricted Sources
    Hit http://security.ubuntu.com lucid-security/universe Packages
    Hit http://in.archive.ubuntu.com lucid/main Packages
    Hit http://in.archive.ubuntu.com lucid/restricted Packages
    Hit http://in.archive.ubuntu.com lucid/main Sources
    Hit http://in.archive.ubuntu.com lucid/restricted Sources
    Hit http://security.ubuntu.com lucid-security/universe Sources
    Hit http://security.ubuntu.com lucid-security/multiverse Packages
    Hit http://security.ubuntu.com lucid-security/multiverse Sources
    Hit http://in.archive.ubuntu.com lucid/universe Packages
    Hit http://in.archive.ubuntu.com lucid/universe Sources
    Hit http://in.archive.ubuntu.com lucid/multiverse Packages
    Hit http://in.archive.ubuntu.com lucid/multiverse Sources
    Hit http://in.archive.ubuntu.com lucid-updates/main Packages
    Hit http://in.archive.ubuntu.com lucid-updates/restricted Packages
    Hit http://in.archive.ubuntu.com lucid-updates/main Sources
    Hit http://in.archive.ubuntu.com lucid-updates/restricted Sources
    Hit http://in.archive.ubuntu.com lucid-updates/universe Packages
    Hit http://in.archive.ubuntu.com lucid-updates/universe Sources
    Hit http://in.archive.ubuntu.com lucid-updates/multiverse Packages
    Hit http://in.archive.ubuntu.com lucid-updates/multiverse Sources
    E: Could not get lock /var/lib/dpkg/lock – open (11: Resource temporarily unavailable)
    E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
    topnotch@topnotch-laptop:~$ sudo apt-get install wvdial
    E: Could not get lock /var/lib/dpkg/lock – open (11: Resource temporarily unavailable)
    E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
    topnotch@topnotch-laptop:~$

  10. hi all , i use RHEL 6.3 workstation , and try to access internet with reliance netconnect ( the blue modem ) , i couldn’t connect to internet with this crap data card . I tried all of the steps mentioned above , i couldn’t connect yet . COuld you help me please

  11. Awesome. This works for MTS Blaze as well. Its better to use the above wvdial method than the default modem-manager on fc16

  12. Hi ,
    I am new in ubuntu.. Plz help me.. While i am going through the 1st step i am getting the error..

    dipin@Dipin-Ubuntu:~$ sudo apt-get install wvdial
    [sudo] password for dipin:
    Reading package lists… Done
    Building dependency tree
    Reading state information… Done
    Package wvdial is not available, but is referred to by another package.
    This may mean that the package is missing, has been obsoleted, or
    is only available from another source

    E: Package ‘wvdial’ has no installation candidate

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s