Currently browsing tag

Huawei

Connecting to net using Huawei EC325 on Linux

Huawei E325 Data Modem
Couple of years back I had taken a internet connection from Tata Indicom (CDMA Wireless). I purchased the Huawei EC325 modem which uses a USB cable to connect to the PC. My inital reaction was since it was a USB connection and was using a custom software to connect to the net, it would not be possible to connect to the net in Linux using this modem.

After full two months, I finally gave up my laziness and did a quick search. I tried out the first solution offered and it worked out in the first try itself, how often does that happen. It took me a total of 10 mins including searching, restarting and configuring to get connected to the net in Linux.

Here is the procedure to get Huawei EC325 Data Modem in Linux:-

  1. Open a terminal window.
  2. Log in as root, i.e. type “su -” sans the quotes and enter the root password.
  3. Then use vi to edit/create the following file “/etc/wvdial.conf”.
  4. Enter the following text into it.
    [Modem0]
    Modem=/dev/ttyUSB0
    Baud=115200
    SetVolume=0
    Dial Command = ATDT
    init1=ATZ
    init2=AT+CRM=1
    FlowControl= Hardware (CRTSCTS)
    [Dialer tata]
    Username= internet
    Password= internet
    Phone=#777
    Stupid Mode= 1
    Inherits = Modem0
  5. In the above change the Modem=/dev/ttyUSB0 to what ever your device name is, you should be able to see it while the OS is booting, else give the “dmesg” command and search in that.
  6. Final step is give the command “wvdial tata”, and if everything is proper you should now be connected to the net.
  7. Press “Ctrl+c” when you want to disconnect.

I have tried this on SuSE 10.1 and it should work on any latest release of any Linux system. Also I had this system configured for net access for BSNL dataone service before, so am not absolutely sure if you have to do any DNS settings or not. But it should work regardless of it.

Great to be back into the Linux world again. :-)