Mobile Broadband Connection via NetworkManager

Did you ever try connecting your mobile device via NetworkManager? I always failed to get connected with connection terminated error message as shown below:

pppd[4701]: Modem hangup
pppd[4701]: Connect time 0.1 minutes.
pppd[4701]: Sent 53 bytes, received 128 bytes.
kernel: [  396.968140] usb 5-1: USB disconnect, address 3
kernel: [  396.970792] option 5-1:1.0: device disconnected
kernel: [  396.971327] option1 ttyUSB1: GSM modem (1-port) converter now disconnected from ttyUSB1
kernel: [  396.973079] option 5-1:1.1: device disconnected
kernel: [  396.973448] option1 ttyUSB2: GSM modem (1-port) converter now disconnected from ttyUSB2
kernel: [  396.973471] option 5-1:1.2: device disconnected
pppd[4701]: Connection terminated.
pppd[4701]: Exit.

Today I thought of giving it an another try and succeeded to fix the issue.. Here is what I have done with the Mobile Broadband connection.

1) Right click on NetworkManager and select “Edit connections” to get following dialouge box. Once you’re there click on “Mobile Broadband” tab

ubuntu_network_connections

2)If you’ve already configured the connection, Choose the connection name, click on Edit. Otherwise, setup a new connection (When ever you connect your mobile devices automatically Ubuntu detects such devices and prepares itself to create a connection).

3) Now, time to apply the trick.. In PPP settings tab, disable “Use Point-Point Encryption (MPPE)” as follows.

PPP_Settings

4) Click on apply

5) Now close the windows, click on Network button on the screen, ensure that you’r mobile device is connected, select the Mobile broadband connection to get connected.

Mobile_Broad_Band_Connection

Neat isn’t it?

No more wvdial and terminal on desktop while browsing net.I have tried this with Reliance Broadband+. Same thing should work with other mobile devices also. Give it a try.

Enjoy!


Motoming A1200: Connecting to Airtel GPRS on Ubuntu

504_master-black-fn185k-50m

At last I’m successfully connected to net via my Motorola Motoming A1200 using Airtel GPRS connection  on Ubuntu (I’m using Ubuntu Jaunty Jackalope ie 9.04 Alpha).

Here is a quick run through for setting up GPRS connection on Ubuntu:

First configure pppd default ip address to which you want the GPRS connection to be binded. This can be done by editing /etc/ppp/options file. Add the following line to it via vi or other file editing tool.

/etc/ppp/options:

:192.168.0.254

Now, make the required changes to /etc/wvdial.conf as mentioned below.

PS: You can get this file generated by connecting the phone via usb and then running sudo wvdialconf /etc/wvdial.conf on console. Ensure that USB mode is set to “Modem

[Dialer Defaults]
Init1 = ATZ
Init2 = AT&FE0V1&C1S0=0
Init3 = AT+CGDCONT=1,”IP”,”airtelgprs.com”
Modem Type = USB Modem
ISDN = 0
Phone = *99***2#
New PPPD = yes
Modem = /dev/ttyACM0
Username = airtel
Password = airtel
Baud = 460800
Idle Seconds = 3000
Auto DNS = 1
Stupid Mode = 1
Dial Command = ATD
Ask Password = 0
FlowControl = NOFLOW

Once all this is done, you’re ready to get online by typing the following command.

sudo wvdial

Now, start browsing the net. Let me know if you get to face any other trouble.

Here is the output:

techfiz:~# wvdial
–> WvDial: Internet dialer version 1.60
–> Cannot get information for serial port.
–> Initializing modem.
–> Sending: ATZ
ATZ
OK
–> Sending: AT&FE0V1&C1S0=0
AT&FE0V1&C1S0=0
OK
–> Sending: AT+CGDCONT=1,”IP”,”airtelgprs.com”
OK
–> Modem initialized.
–> Idle Seconds = 3000, disabling automatic reconnect.
–> Sending: ATD*99***2#
–> Waiting for carrier.
CONNECT
–> Carrier detected.  Starting PPP immediately.
–> Starting pppd at Wed Feb 25 14:01:47 2009
–> Pid of pppd: 8595
–> Using interface ppp0
–> pppd: [08][18]�[08]
–> pppd: [08][18]�[08]
–> pppd: [08][18]�[08]
–> pppd: [08][18]�[08]
–> pppd: [08][18]�[08]
–> pppd: [08][18]�[08]
–> local  IP address 117.97.93.18
–> pppd: [08][18]�[08]
–> remote IP address 192.168.0.254
–> pppd: [08][18]�[08]
–> primary   DNS address 202.56.250.5
–> pppd: [08][18]�[08]
–> secondary DNS address 202.56.250.6
–> pppd: [08][18]�[08]

Thanks to Dirk Hohndel for pointing me to the right direction.


Nexus with BSNL

Lucky me to be able to work with my BSNL broad band connection  without any issues today. Hopefully they have fixed this persisting connection issue permanently. Otherwise I will have to think about playing around with my Airtel GPRS and Ubuntu to get going online. (It’s on To-Do at the moment)


Reliance Huawei EC-121 USB Datacard on Ubuntu

Just now I configured Huawei EC-121 USB Datacard provided by Reliance on Ubuntu like my BSNL EvDO card using wvdial. It works!

I think its time for Reliance to put up a page for Gnu/Linux  users on their hand book.

img_2128

Here are the steps for configuring the card:

To configure wvdial with new modem run the following command in Terminal

#wvdialconf /etc/wvdial.conf

Your /etc/wvdial.conf will have the following entries.

# cat /etc/wvdial.conf

[Dialer Defaults]
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Modem Type = Analog Modem
; Phone =
ISDN = 0
; Username =
Init1 = ATZ
; Password =
Modem = /dev/ttyUSB0
Baud = 460800

Change the target phone no. to #777 and Username and password need to be set to the Reliance 10 digit  number.

And you require an another magical line added to this file. i.e.

Stupid Mode = 1

Once this is done run the following command to get connected.

# wvdial

Enjoy working with Reliance Datacard…

You might want to read my other articles related to USB Datacards:


Configuring PPPoE on Ubuntu for BSNL ADSL

Today I got a chance to test whether we could authenticate PPPoE via Ubuntu. I found that PPPoE configuration to be quite simple via frontend tool pppoeconf. I used to use wvdial command for dial-up configuration.

Provide the information required by the program, it will ask for your username and passsword. So type in your BSNL username, password and click OK. Accept the default values suggested by the program for rest of the settings. You will also be asked to start PPPoeConf connection during the system boot up or you can also do it manually by using pon command. To connect to internet type the command pon dsl-provider and to disconnect type in poff.