using USB Adapter D-link 156 in Linux


First install 3g_modem_connect_D300_i386.deb which is inside usb adapter to pc.Just mount usb adapter as a CD drive or copy using Windows 7 OS

meelogs@meelogs-desktop ~ $ lsusb
Bus 001 Device 003: ID 2001:a706 D-Link Corp.        #notice the product ID 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
meelogs@meelogs-desktop ~ $ sudo 3g_
3g_connect.sh 3g_modem_switch
meelogs@meelogs-desktop ~ $ sudo 3g_modem_switch -v2001 pa706
No default vendor/product ID given. Aborting.         #if this fails as it happened here type next line(tab completion)

meelogs@meelogs-desktop ~ $ sudo 3g_modem_switch -c /etc/3g_modem_connection/switch_2001_7d01.conf

Looking for target devices …
No devices in target mode or class found
Looking for default devices …
found matching product ID
adding device
Found device in default mode, class or configuration (1)
Accessing device 003 on bus 001 …
Getting the current device configuration …
OK, got current device configuration (1)
Using first interface: 0x00
Using endpoints 0x01 (out) and 0x81 (in)
Inquiring device details; driver will be detached …
Looking for active driver …
OK, driver found (“usb-storage”)
OK, driver “usb-storage” detached

SCSI inquiry data (for identification)
————————-
Vendor String: HSPA USB
Model String: SCSI CD-ROM
Revision String: 6225
————————-

USB description data (for identification)
————————-
Manufacturer: D-Link,Inc
Product: D-Link DWM-156
Serial No.: 536591501550760
————————-
Setting up communication with interface 0
Using endpoint 0x01 for message sending …
Trying to send message 1 to endpoint 0x01 …
OK, message successfully sent
Resetting response endpoint 0x81
Resetting message endpoint 0x01
-> Run lsusb to note any changes. Bye.

meelogs@meelogs-desktop ~ $ lsusb
Bus 001 Device 004: ID 2001:7d01 D-Link Corp.            #on successful mode switcting ie from normal data card to 3G Modem
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
meelogs@meelogs-desktop ~ $ ifconfig
eth0 Link encap:Ethernet HWaddr 00:e0:4c:36:25:f9
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:31 errors:0 dropped:0 overruns:0 frame:0
TX packets:31 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:3244 (3.2 KB) TX bytes:3244 (3.2 KB)

ppp0 Link encap:Point-to-Point Protocol
inet addr:223.187.3.58 P-t-P:10.64.64.64 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:90 errors:0 dropped:0 overruns:0 frame:0
TX packets:92 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:774 (774.0 B) TX bytes:2200 (2.2 KB)

meelogs@meelogs-desktop ~ $ ping google.com
PING google.com (74.125.236.163) 56(84) bytes of data.
64 bytes from maa03s16-in-f3.1e100.net (74.125.236.163): icmp_req=1 ttl=55 time=281 ms
64 bytes from maa03s16-in-f3.1e100.net (74.125.236.163): icmp_req=2 ttl=55 time=378 ms
^C64 bytes from maa03s16-in-f3.1e100.net (74.125.236.163): icmp_req=3 ttl=55 time=240 ms

— google.com ping statistics —
3 packets transmitted, 3 received, 0% packet loss, time 6982ms
rtt min/avg/max/mdev = 240.521/299.948/378.119/57.719 ms
meelogs@meelogs-desktop ~ $

next time simply plug in and wait for a few seconds untill green led blinks for a few second.

Extra:

You can use gsm-ussd_0.4.0-25_all.deb(google it) to use USSD option in linux

 

******************update on 28-Fen-2014————

to dial if auto dial fail in above case

meelogs@meelogs ~ $ sudo pppd call 3g
[sudo] password for meelogs:

About these ads

Hello,I am milankantony.I can say that I am a responsible and hard-working .I am a blogger, entrepreneur and overall thinker. I graduated with a Bachelor's Degree in Information Technology and Chemistry .

Posted in Linux

Leave a Reply

Please log in using one of these methods to post your comment:

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

Cause

Enter your email address to follow this blog and receive notifications of new posts by email.

Join 2 other followers

Profile on Slideshare
View milankantony's profile on slideshare
February 2014
M T W T F S S
« Jul   Jul »
 12
3456789
10111213141516
17181920212223
2425262728  
  • 5,640 visitors
free counters

Error: Twitter did not respond. Please wait a few minutes and refresh this page.

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: