Connect Mobile broadband using pppconfig

Her am trying to connect a docomo EVDO Install pppconfig first.

sudo apt-get install pppconfig

Then issue this command

sudo pppconfig docomo

 

select “Create a Connection named docomo” and select “Ok”

1

select “Dynamic DNS” and select “Ok”

2

select “PAP” and select “Ok”

3

give username as “Internet” and select “Ok”

4

give password as “Internet” and select “Ok”

5

pppconfig will give speed of your modem as 115200, use this default

6

Select “Tone” and select “Ok”

7

give phone number as #777

8

Next step will be giving the modem name, I’m going to use /dev/ttyUSB0

9

Finally select “Finished Write files and return to main menu”, two files will be created, only will be ‘/etc/ppp/peers/docomo’ and another one is ‘/etc/chatscripts/docomo’
select “Quit”

10

 

 

Now to connect try these commands

pon docomo

it will start pppd and try to connect, but it will not throw any information in your terminal, you need to watch the activities through ‘tail -f /var/log/syslog’. If everything goes fine, it will establish ppp connection to Docomo.

To stop the pppd  connection

poff docomo

 

Happy Hacking 🙂

 

 

How to connect Micromax 3G mobile internet modem in Ubuntu 12.04

Last day i configured a Micromax 3G mobile internet modem…This is how i fixed it…The output of lsusb was like this

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub 
Bus 001 Device 003: ID 03f0:5307 Hewlett-Packard 
Bus 001 Device 008: ID 1c9e:9605 OMEGA TECHNOLOGY 
Bus 001 Device 006: ID 5986:0364 Acer, Inc

Create a config file

gksudo gedit /etc/usb_modeswitch.d/1c9e:9605

Paste this code in that config file

DefaultVendor = 0x1c9e 
DefaultProduct = 0x9605 
TargetVendor = 0x1c9e 
TargetProduct = 0x9605 MessageContent="55534243123456788000000080000606f50402527000000000000000000000"

Save and exit then

sudo modprobe usbserial vendor=0x1c9e product=0x9605 
sudo usb_modeswitch -c /etc/usb_modeswitch.d/1c9e\:9605

This will fix the issue….
You need to run this code always so you can add this to /etc/rc.local…Insert the below code just before exit 0 so that it will be part of your startup programs

sleep 10
 modprobe usbserial vendor=0x1c9e product=0x9605
 usb_modeswitch -c /etc/usb_modeswitch.d/1c9e\:9605
 sleep 20
 nmcli nm wwan on
 sleep 10
 nmcli con up id "your connection name here"

After restarting connect the device and wait for 10 seconds to get the device detected…

Configure Reliance Netconnect/BSNL EVDO on Ubuntu 10.04

Firstly we need to install these packages usb-modswitch, usb-modswitch-data

Open up Terminal,and type the following

 $sudo apt-get install -yq usb-modeswitch usb-modeswitch-data wvdial

Then we need to edit wvdial.conf file,type this in the Terminal

$sudo gedit /etc/wvdial.conf

Type the following in the file opened,be sure to add your phone number

[Modem0]
Modem = /dev/ttyUSB0
Baud = 115200
SetVolume = 0
Dial Command = ATDT
Init1 = ATZ
FlowControl = Hardware (CRTSCTS)
[Dialer netconnect]
Username = your device phone number
Password = password usually the device phone number
Phone = #777
Stupid Mode = 1
Inherits = Modem0

close the editor and reboot the system,now to connect you need to type

 $sudo wvdial netconnect
sudo modprobe usbserial vendor=0x19d2 product=0xfffd