+ All Categories
Home > Documents > How to configure BSNL/MTNL 3G data card in Ubuntu Linux ? Configuration of BSNL/MTNL 3G Datacards in...

How to configure BSNL/MTNL 3G data card in Ubuntu Linux ? Configuration of BSNL/MTNL 3G Datacards in...

Date post: 21-Feb-2023
Category:
Upload: independent
View: 0 times
Download: 0 times
Share this document with a friend
49
How to configure BSNL/MTNL 3G data card in Ubuntu Linux ? Configuration of BSNL/MTNL 3G Datacards in Ubuntu Linux BSNL/MTNL 3G data card USB models: Micromax MMX 300G Micromax E156G Huawei E156 (3.6Mbps) Huawei E176 (7.2Mbps) Huawei 210 SimU6T SimU9T Teracom LW272 Details to help configure 3G Data Card For BSNL Frequency – 2100 Mhz A variant of 3G called as 3.5G or HSDPA Speed 3.6Mpbs, 7.2Mbps apn name or acesspoint name – bsnlnet (Other values like username just nothing) For MTNL Frequency – 2100 Mhz A variant of 3G called as 3.5G or HSDPA Speed 3.6Mpbs, 7.2Mbps APN name or accesspoint name for prepaid – mtnl.net APN name or accesspoint name for postpaid – mtnl.net user name: <leave blank> password: <leave blank> 3G/HSDPA Data Card using wvdial in Ubuntu 9.10 For BSNL Select Applications, Accessories, Terminal sudo <space> wvdialconf <enter>
Transcript

How to configure BSNL/MTNL 3G datacard in Ubuntu Linux ?Configuration of BSNL/MTNL 3G Datacards  in Ubuntu Linux

BSNL/MTNL 3G data card USB models: Micromax MMX 300G Micromax E156G Huawei E156 (3.6Mbps) Huawei E176 (7.2Mbps) Huawei 210 SimU6T SimU9T Teracom LW272

Details to help configure 3G Data CardFor BSNLFrequency – 2100 MhzA variant of 3G called as 3.5G or HSDPASpeed 3.6Mpbs, 7.2Mbpsapn name or acesspoint name – bsnlnet (Other values like username just nothing)For MTNLFrequency – 2100 MhzA variant of 3G called as 3.5G or HSDPASpeed 3.6Mpbs, 7.2MbpsAPN name or accesspoint name for prepaid  – mtnl.netAPN name or accesspoint name for postpaid  – mtnl.netuser name: <leave blank>password: <leave blank> 

3G/HSDPA  Data Card using wvdial in Ubuntu 9.10For BSNLSelect Applications, Accessories, Terminalsudo <space> wvdialconf <enter> 

Found a modem on /dev/ttyUSB0Modem configuration written to /etc/wvdial.conf. 

sudo <space> gedit <space> /etc/wvdial.conf <enter>[Dialer Defaults]Modem Type = Analog ModemPhone = *99#ISDN = 0Baud = 460800Username = ” ”Password = ” “Modem = /dev/ttyUSB0Init1 = ATZInit2 = at+cgdcont=1,”ip”,”bsnlnet”Stupid Mode = 1Run the following command to connect to Internetsudo <space> wvdial <enter>For MTNLSelect Applications, Accessories, Terminalsudo <space> wvdialconf <enter> 

Found a modem on /dev/ttyUSB0Modem configuration written to /etc/wvdial.conf. 

sudo <space> gedit <space> /etc/wvdial.conf <enter>[Dialer Defaults]Modem Type = Analog ModemPhone = *99#ISDN = 0Baud = 460800Username =mtnlPassword = mtnl123Modem = /dev/ttyUSB0Init1 = ATZInit2 = at+cgdcont=1,”ip”,”mtnl.net”Stupid Mode = 1

Run the following command to connect to Internetsudo <space> wvdial <enter> 

Huawei E1550 3g modem not switching to modem mode automatically in Ubuntu 10.04 –  Solutionsudo <space> gedit <space> /etc/udev/rules.d/15-huawei-e1550.rulesPaste the below lines into the file. These lines tell udev that when this device is plugged in it should be switched to modemmode.SUBSYSTEM==”usb”,SYSFS{idProduct}==”1446″,SYSFS{idVendor}==”12d1″,RUN+=”/lib/udev/modem-modeswitch –vendor 0x12d1 –product 0x1446 –type option-zerocd” 

Select File, save. Close all. Restart computer and configure using Network Manager. 

How to connect MTNL 3G or any usb data card on LinuxOk So I Bought a MTNL 3G dongle and was struggling to connect to the 3g network.

Tried everything usb mode switch, installed the software that came along with the client, network manager but no luck.

Finally thanks to manager I got the solution. If you have installed the software that comes with the dongle remove it.

Thats it then try to connect and its works successfully.

The software blocks the port which needs to be connected on and hence I was stuck.

Looking forward to enjoying my unlimited connection.

If the above still does not work then you need to type the code below

 

lsusbAfter connecting the datacard type the command above you will get an output as below

Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hubBus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hubBus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hubBus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hubBus 004 Device 003: ID 0a5c:2145 Broadcom Corp. Bluetooth with Enhanced Data Rate IIBus 004 Device 002: ID 08ff:2810 AuthenTec, Inc. AES2810Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hubBus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hubBus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hubBus 001 Device 004: ID 230d:0003Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hubHere the number after ID is your Vendor id and your product id respectively. If you are not sure which is yours then remove your datacard run lsusb copy the output and then compare it with the outputyou got with datacard.

After you have got that, you will need to install usb_modeswitch as follows

sudo apt-get install usb-modeswitchOnce done type the following command

sudo usb_modeswitch -v 230d -p 0003 -u 3Where -v and -p we got from lsubs earlier.

and thats it you can either connect it from Network manager or with wvdial

sudo wvdialconfsudo wvdialYou need to edit /etc/wvdialconf with your apn, username and password.

Step-by-Step Guide for Configuring USB Modem on UbuntuBy Chethan S  Voice & Data October 28, 201254 comments

Given the speed and virus-free environment offered by Linuxdistributions, many users are switching to Linux from Windowsthese days. Out of the several Linux variants available to auser, Ubuntu has seen wide adoption rates in India.Soon after installing any operating system a user’s firstactivity would be to configure internet connection! Though wired(ethernet) and wireless (Wi-Fi) connections work fine with firsttry, configuring a USB modem can be tricky at times on Linux.This post will throw some light on different ways to configure aUSB modem. The instructions are generic and will hold good fordifferent USB modems (like those provided by MTS, TATA Photonetc.).Also the steps will be similar for other Linux distributions likeMint, OpenSUSE etc.Using Ubuntu ‘Network Connections’

This is by far the simplest way to configure a USB modem toconnect to internet. No additional drivers or software arenecessary.1. Plug your USB Modem into an USB port. The LED light startsblinking and in a while once your modem is recognized you will beable to see an option – New Mobile Broadband (CDMA)connection/New Mobile Broadband (GSM) connection on clicking theNetwork icon just besides the sound icon on top panel.2. Once you click that, you will see this screen which will showyour device name. Click ‘Continue’ on the dialog.

3. In the next screen select country as ‘India’. This will helpUbuntu list Indian service providers in the next screen.

4. In the ‘Choose your Provider’ screen select your serviceprovider. In case it is not listed (BSNL EVDO is not listed)

enter it manually in the space provided. In case of EDGE/GPRS/3Gconnection the service providers list will be long.

5. The choose your billing plan screen appears only when using aEDGE/GPRS/3G connection. If you are configuring a 3G modem, sayBSNL you will be required to select proper zone (Eg.OldSouthZoneA…) to use proper APN settings.6. The last screen is to confirm all the settings and apply them.Click Apply here.7. Once you click Apply you will be presented with a dialog toenter authentication credentials and minimal configurationsettings. Important parameters are to be entered under ‘MobileBroadband’ tab. The dialing number would be #777 for CDMAconnections. It will be set by default. For GSM connections itwould be *99#. The username and passwords should be filledappropriately. Typically for BSNL EVDO it would be a 10 digitnumber.You may want to select ‘Connect automatically’ as this would helpthe connection to reconnect in case of disconnection.

Using Linux version of dialer by Modem vendorSometimes the CD which comes along with the modem will have Linuxversion (.deb package for Debian based distributions like Ubuntu,Mint etc.) of the dialer software. In such cases you just need toinstall it and use it.Using wvdialMost new Ubuntu versions detect a modem in few seconds. Only ifit does not happen follow this procedure. In older Ubuntuversions I had faced the issue where my device was not recognizedby Ubuntu network manager. In such situations wvdial can come torescue. Wvdial package does not come preinstalled and will haveto be installed separately (Not sure about just released Ubuntu12.10 though). You may have to used an ethernet connection todownload the packages and install automatically via UbuntuSoftware Center or download .deb files manually and get it in aUSB stick. If wvdial is brought this way, you will also have toget .deb files of dependent packages. There will be atleast 3-4dependencies which need to installed prior to installing wvdial.

The following instructions are for BSNL’s Capitel CDMA modem butothers would be similar.Once you are done installing wvdial, you will have to editwvdial.conf file to enter necessary details. In a terminal typegksudo gedit /etc/wvdial.confThe file contents should look like this after edits:[Dialer Defaults]Modem = /dev/ttyUSB3Init1 = ATZInit2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0Stupid Mode = 1Modem Type = Analog ModemPhone = #777New PPPD = yesISDN = 0Username = 9180****** (your username)Password = 9180****** (your password)Baud = 9600Once you save the file, run the following commands. (You willhave to run these two commands every time you connect tointernet. I assume that you boot your PC, log in, plug in themodem, wait for a while and run the commands)sudo wvdialconfsudo wvdialOnce you run the second command the modem tries to connect andonce connection is successful, you will be shown the IP and DNSaddresses. If you close the terminal window, the connection willstop working. So let it remain minimized. To disconnect use Ctrl+ C with terminal window in focus. To use terminal for otherpurposes, you can use a new tab.

For advanced usersAdvanced users can append & to sudo wvdial to send the process tobackground and get it back with fg command. The limitation hereis you will not be able to see if the connection is successful ornot without going to browser. Other options include using screencommand, disown etc.Did you face any issues while configuring your USB modem withUbuntu or any other Linux distribution? If yes, how did you solveit? Let us know through comments.

Try these instructions I found on Ubuntu forums -

-> Open your network manager go to manage connection.-> Open the mobile broadband and add a new connection.-> If it detects installed CDMA device or Huawei EC156 follow the instruction given by the network manager.-> Mark it to connect automatically in the mobile broadband edit options.-> Reboot your system and see it is connected automatically.

How to connect Tata photon +(Huawei EC156) to ubuntu natty

Please ensure that you have installed the following packages* usb-modeswitch-data* usb-modeswitch

Connect the device and see whether it is detected automatically in the networkmanagerif not do the following things..Open the terminal.TypeCode:

sudo nautilus

A new window will be opened for root.Go to filesystems ----/etc/usb_modeswitch.d

.Create a new config file named 12d1:1505

.Cut and Paste the following Code:

DefaultVendor= 0x12d1 DefaultProduct=0x1505

MessageContent="55534243123456780000000000000011062000000100000000000000000000"

.Save the file

.Go to terminal 

.Go to the path by the code Code:

cd /etc/usb_modeswitch.d

.Type the commandCode:

sudo usb_modeswitch -I -W -c 12d1\:1505

.It may connect automatically..

.Just wait for one minute

.The default network manager may detect your device and follow the instructions by itmark it to connect automatically in the mobile broadband edit options.If not open your network mannager go to manage connectionopen the mobile broadband and add a new connectionif it detects installed CDMA device or Huawei EC156 follow the instruction given by the network managermark it to connect automatically in the mobile broadband edit options.Rebbot your system and see it is connected automatically .If not you have to type the two codes mentioned above all the times when you connect your deviceIt will be very diffficult to type the codes all the time....so go for the following steps to run that commands automattically

STEPSScript to run the modeswitch command in bootsteps1.Open the gedit2.Type the two commands which you want to run in two separate lines.3.save the file with the extension .sh on the disk where ever you want and make this file as executable in the properties4.Then right click on the desktop5 Create launcher

6.Set type as Run in terminal7.Give your desired name8.Give the path of file with the extension .sh in the command box9.Hit ok

Open the launcher.....enter the password if required

You can change your icon in the properties of the new launcher file

Connect your device when ever required and click the new icon on the desktopHit the password.....enjoy...

1. Install wvdial package

Open terminal,( Ctrl+ Alt+ T) and type the following commandsudo apt-get install wvdial

2. Install gnome-ppp

3. sudo apt-get install gnome-ppp4. Open gnome-ppp from the terminal.

5. sudo gnome-ppp6. You have to enter your reliance 10-digit mobile number in the Username

& your password. Select #777 if you are a Reliance Netconnect Broadband+ user. Then press the Setup button below.

7. In the Setup window below, click the “Detect” button to identify the device ID of the USB port in which you have inserted your USB modem. The tool would automatically detect the Device, Type and Speed of yourUSB modem. Once it has deteced, please the “Close” button below.

Once this is done click on Connect!!!

How to install Huawei E173 Usb Modem in Ubuntu 10.04/12.04 LTS

Instructions how to install the Huawei E173 Usb Modem Data Card 3G 7.2Mbps on Ubuntu 10.04/12.04 LTS

Step 1: Download Driver/MobilePartnerDownload the driver from the following link to your download folder and extract it:

http://www.umunthu.net/downloads/linux.zipStep 2: Install Driver/MobilePartnerRun Terminal and go to the download foldercd DownloadsGo into the extracted folder Linuxcd LinuxRun the installation scriptsudo bash installif you get the messages "The Linux NDIS driver is installed successfully." and"Finished, press any key to exit" everything went fine.

_____________________________________________________________________________________________

Connecting ubuntu 12.04.2 to internet using D-link dwm 156 3G/3.75G usb modem

I decided to post this myself because most of the guides and tutorials regarding this including many videos in YouTube doesn’tseems to work. and i found out that many people are also having the same problem with connecting this specific usb modem to Ubuntu 12.04.1,12.04.2, including Kubuntu, Edubuntu and many versions of Ubuntu.

The problem can be solved in the following 7 steps. I am taking into assumption that you have the Ubuntu OS installed and u have

the dwm156 d-link modem with a Internet plan activated Sim inserted.

You can also jump directly to Step3 after downloading the required fies from ( downoad)STEP 1: To find the value of X in the word “srX”.

Unplug the usb modem from PC and open terminal( CTRL + ALT + T). Then type mount/dev/sr (do not press enter but just click tab twice). you can see an option sr0, etc:Then plug in the modem and type in terminal /dev/sr (do not pressenter but just click tab twice). you can see an option sr0, sr1,etc: The newly added value is the required one. For me it wassr2.STEP2: Mount the usb modem as a CD drive.

Do not unplug the modem. Go to terminal and type sudo mount /dev/sr2   /cdrom . Enter superuser password when prompted.STEP3: Extract the .deb driver file of 32bit or 64 bit OS. Mine is 32 bit.

Once it is done you can open cdrom from nautilus or from file system/cdrom. U will see 2 .deb files of which one is 3g_modem_connect_DWM156_i386.deb, copy it to home folder.In terminal type ls and confirm u see the .deb file there. Doubleclicking the .deb file might not always work. So use the terminalinstall method.

Go to home folder rename the deb file to a smaller shorter name something like dlink.deb

STEP4: Install the file using terminal commands.

In terminal type sudo dpkg -i dlink.deb

If u see the above picture u have successfully installed the .debdriver fileSTEP5: Switching mode using manufacture id and vendor id numbers.

In terminal type usb(press tab twice)u will see

You need usb_modeswitch to be visible there. If it is visible thengood. Type lsusb and see the following section

Bus xxx Device xxx: ID 2001:a80b D-Link Corp. The number 2001 is manufacturer id and a80b is vender id(before mode switching). If u see this then type in terminalusb_modeswitch -v2001 -pa80b and press enter, then it will switch mode from normal mode to data card mode

so u will see

Type lsusb in terminalBus xxx Device xxx: ID 2001:7d00 D-Link Corp. Here also 2001 is manufacturer id and 7d00 is modem vendor id(mode switching is success)STEP5.1: In case step 5 fails, then download this file and paste it to /etc . This file contains the message needed to be send to dwm156 A6 hardware to internally switch the mode. In case u cant past it directly into /etc folder the make a new file by typingsudo nano /etc/usbmode.conf  and paste the content of the above file there and save it using the CTRL+X command . And then type in terminal usb_modeswitch -c /etc/usbmode.conf . It should helpSTEP6: Connecting to Internet

click add u will see

Click continue select country and other settings (mine is india/bsnl/bsnlnet)

Click the icon u see below in top right corner

STEP 7: In the dropdown enable(tick mark) mobile broadband and then click bsnl/cellone/3g ,it will connect automatically and show indication its connected

Repeat step 7 next time you want to connect again. The above details have been collected from many different sources and experimented by me and found working. However due to different hardware /software configurations, the above given methods might only work for 8/10 people who try this. In case it is not working post your error status here and hopefully someone will help to fix it…RelatedConnect raspberry pi to a 3g network automatically during its bootIn "Debian"Headless use of Raspberry pi on Windows / UbuntuIn "Debian"Installing OpenELEC mediacenter(xmbc) for raspberry pi using Ubuntu PCIn "Debian"

This entry was posted in Linux OS, Networking, Tech, Ubuntu and tagged 32 bit, computer, connectivity, d-link, dlink,dwm 156, internet, linux, mode-switch, modem, software, technology, Ubuntu, ubuntu 12.04, usb. Bookmark thepermalink.

← Android app for malayalam christian songs   24/7 Headless use of Raspberry pi on Windows /   Ubuntu  →

48 Responses to Connecting ubuntu 12.04.2 to internet using D-link dwm 156 3G/3.75G usb modem

1. Aakash pushp says:July 13, 2013 at 1:26 am

while switching it to data mode(mode switching) the command did not work.sir,please help.Reply

o lawrence Mayalil says:July 17, 2013 at 3:29 am

Do u face the mode switch problem even now??i have added a new method to do usb modeswitch, refeer to step 5.1Reply

2. tetsu says:July 25, 2013 at 2:01 pm

I’m using Kubuntu 13.04 .When I tried plugging the usb in, kubuntu didn’t recognise it (nothing showed up in dolphin sidebar).At step 1, /dev/sr (and clicked tab twice) did not return anything.Here is the terminal output:

tetsu@lap:~$ lsusbBus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching HubBus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching HubBus 003 Device 002: ID 09da:c10a A4 Tech Co., LtdBus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hubBus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hubBus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hubBus 001 Device 004: ID 2001:a706 D-Link Corp.Bus 001 Device 003: ID 04f2:b302 Chicony Electronics Co., Ltdtetsu@lap:~$ usb_modeswitch -v2001 -pa706

Looking for default devices …found matching product IDadding deviceFound device in default mode, class or configuration (1)Accessing device 000 on bus 001 …Getting the current device configuration …Error getting the current configuration (error -1). Assuming configuration 1.Using first interface: 0x00Using endpoints 0x01 (out) and 0x81 (in)Inquiring device details; driver will be detached …Looking for active driver …No driver found. Either detached before or never attachedCould not claim interface (error -1). Skipping device inquiryError: could not get description string “manufacturer”Error: could not get description string “product”Error: could not get description string “serial number”

USB description data (for identification)————————-Manufacturer:Product:Serial No.:————————-Warning: no switching method given.-> Run lsusb to note any changes. Bye.

tetsu@lap:~$ usb_modeswitch -c /etc/usbmode.conf

Looking for target devices …No devices in target mode or class foundLooking for default devices …No devices in default mode found. Nothing to do. Bye.

Thanks for your help!Reply

o lawrence Mayalil says:July 25, 2013 at 11:06 pm

product 0*a706 is not dlink dwm 156 A6 hardware, so the before switch or after switch product id is different.do u see anything like /dev/ttyACM0 or /dev/ttyUSB1 or /dev/ttyUSB2 or /dev/ttyUSB3 when u connect the modem alone to kubuntu?if yes, the modem has been switched already and -P= a706. and if no, the modem has not been switched and -p=a706.have u edited the usbmode.conf file and replaced a80b/7d00 with a706 depending on the above findings? and if modem has been switched already try using wvdial or sakis3g script. its even efficient and light weight that normal network-manager(ubuntu 12.04)Reply

Uma says:August 5, 2014 at 4:22 pm

i face the same problem please help me its not working

3. seovikrama2z says:August 25, 2013 at 12:08 am

Pretty good post. I just stumbled upon your blog and wanted to say that I have really enjoyed reading your blog post.

d-link

Reply

o lorentz says:August 25, 2013 at 12:13 am

Thanks. And glad you liked it. Looking forward to learn more fromyou..Reply

4. Abhinav says:August 30, 2013 at 8:56 pm

Great tutorial !!! In my system (Ubuntu Ultimate 12.04 32bit) just a small tweak was needed in step 5 (Switching mode using manufacture id and vendor id numbers), the command needs to be executed as super-user iesudo usb_modeswitch -v2001 -pa80band usb-modem worked like a charm.Reply

o lorentz says:August 30, 2013 at 9:06 pm

thats true.. sudo might do the job correctly..Reply

5. Anonymous says:September 11, 2013 at 12:40 pm

Hi Lawrence,Tried all the steps in your tutorial, not able to get it to work (my device is rev A7). Could you pls guide.. ThxReply

6. Anonymous says:September 11, 2013 at 4:41 pm

Steps that I tried:1. Installed the deb file after mounting the modem as a cd drive,restarted system2. When I do lsusb, I get output:Bus 002 Device 005: ID 2001:7d01 D-Link Corp.3. When I do sudo usb_modeswitch -v2001 -p7d01, I get:Looking for default devices …found matching product IDadding deviceFound device in default mode, class or configuration (1)Accessing device 005 on bus 002 …Getting the current device configuration …OK, got current device configuration (1)Using first interface: 0x00Error: message endpoint not given or found. Aborting.4. When I go to network connections and try to add a connection in mobile broadband, my modem name is not listed. It says “Createa connection for this mobile broadband device: Any device”5. My device model number is Dlink DWM-156 (14.4Mbps), hardware version A7, firmware version 7.0.1INHope you could help me out here.. thxReply

o lorentz says:September 12, 2013 at 10:08 am

Whats product id before and after switching… the message to be sent for switching might be different for v7Reply

7. Anonymous says:September 12, 2013 at 4:11 pm

Hi LorentzThe first time I connected the adapter to my computer, and did lsusb, the output was:

Bus 002 Device xxx: ID 2001:a706 D-Link Corp.After I mode-switched, and tried lsusb, the output was:Bus 002 Device xxx: ID 2001:7d01 D-Link Corp.Since then, this output has been constant (7d01)If its of any help, I’ve put a SD card in the adapter, and when Iplug it in, I am able to access the contents of the memory card.Reply

o lorentz says:September 13, 2013 at 12:41 am

So mode switch is success.. so search for /dev/usbTTY0 or 1 or 2 etc.. if it exist.. install wvdial or gnome-ppp and use it..better than ubunty default gnome-network-manager..gnome-ppp for gui based configuration…its works on top of wvdial. Wvdial alone is terminal based control.. might wok..will post new steps in coming blogsReply

rajendra says:December 25, 2013 at 11:45 am

I have followed the above steps. But the device is not identifiedin the network connections. The out put of the terminal is poste.

Out put of lsusb:Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hubBus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hubBus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hubBus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hubBus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hubBus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hubBus 001 Device 006: ID 2001:7d01 D-Link Corp.Bus 001 Device 003: ID 04f2:b044 Chicony Electronics Co., Ltd Acer CrystalEye Webcam

out put of: usb_modeswitch -v2001 -p7d01Looking for default devices …found matching product IDadding deviceFound device in default mode, class or configuration (1)Accessing device 006 on bus 001 …Getting the current device configuration …OK, got current device configuration (1)Using first interface: 0x00Error: message endpoint not given or found. Aborting.

then i installed wvdial and gnome-ppp as mentioned in the discussion.The out put of: wvdialconf

Editing `/etc/wvdial.conf’.Scanning your serial ports for a modem.Modem Port Scan: S0 S1 S2 S3 S4 S5 S6 S7Modem Port Scan: S8 S9 S10 S11 S12 S13 S14 S15Modem Port Scan: S16 S17 S18 S19 S20 S21 S22 S23Modem Port Scan: S24 S25 S26 S27 S28 S29 S30 S31ttyUSB0: Device or resource busyModem Port Scan: USB0WvModem: Cannot get information for serial port.ttyUSB1: ATQ0 V1 E1 — OKttyUSB1: ATQ0 V1 E1 Z — OKttyUSB1: ATQ0 V1 E1 S0=0 — OKttyUSB1: ATQ0 V1 E1 S0=0 &C1 — OKttyUSB1: ATQ0 V1 E1 S0=0 &C1 &D2 — OKttyUSB1: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 — OKttyUSB1: Modem Identifier: ATI — MTK2ttyUSB1: Speed 9600: AT — OKttyUSB1: Max speed is 9600; that should be safe.ttyUSB1: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 — OKWvModem: Cannot get information for serial port.ttyUSB2: ATQ0 V1 E1 — failed with 2400 baud, next try: 9600 baud

ttyUSB2: ATQ0 V1 E1 — failed with 9600 baud, next try: 9600 baudttyUSB2: ATQ0 V1 E1 — and failed too at 115200, giving up.WvModem: Cannot get information for serial port.ttyUSB3: ATQ0 V1 E1 — failed with 2400 baud, next try: 9600 baudttyUSB3: ATQ0 V1 E1 — failed with 9600 baud, next try: 9600 baudttyUSB3: ATQ0 V1 E1 — and failed too at 115200, giving up.Found a modem on /dev/ttyUSB1.Modem configuration written to /etc/wvdial.conf.ttyUSB1: Speed 9600; init “ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0″

The configuration mentioned in /etc/wvdial.conf is[Dialer Defaults]Init1 = ATZInit2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0Modem Type = Analog Modem; Phone =ISDN = 0; Password =New PPPD = yes; Username =Modem = /dev/ttyUSB1Baud = 9600

Thank you.

8. Anonymous says:September 13, 2013 at 12:59 pm

Hi LorentzttyUSB0,1,2,3 are there. Installed wvdial, its asking for phone number, username and password. I have Aircel prepaid SIM in the dongle. Could you give me the steps how to configure?Reply

o lorentz says:September 13, 2013 at 2:27 pm

Does wvdial dectect the modem?? If so dialingnumber is *99# .username and password ” ” . Just put space. Don’t leave blank. Single space will do..Apn is aircelgprsReply

9. Anonymous says:September 14, 2013 at 8:42 am

Hi LorentzPut dialing number as *99#, and single space for username and password in wvdial configuration file. When I run sudo wvdial, I get these msgs:

–> WvDial: Internet dialer version 1.61–> Cannot get information for serial port.–> Initializing modem.–> Sending: ATZATZOK–> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0V1 E1 S0=0 &C1 &D2 +FCLASS=0OK–> Modem initialized.–> Configuration does not specify a valid phone number.–> Configuration does not specify a valid login name.–> Configuration does not specify a valid password.

And in wvdial, where to specify apn name?Reply

o lorentz says:September 14, 2013 at 8:56 am

Did u edit the /etc/wvdial.conf ? And save it successfully.. to save type ctrl+z and y .. once all these details are saved it

will connect. Install te latest version of usb-modeswitch. And recheck for the .conf file if data entered is correct.. also sendme a screen shot of the .conf file to my email. The username and password field should be and empty single space without “” or []..it just username:Password:Reply

10. Anonymous says:September 15, 2013 at 12:30 am

Hi LorentzI have emailed you wvdial config file screenshot. Installed latest version of usb-modeswitch, restarted system and tried. I am getting same error with wvdial:OK–> Modem initialized.–> Configuration does not specify a valid phone number.–> Configuration does not specify a valid login name.–> Configuration does not specify a valid password.Reply

o lorentz says:September 15, 2013 at 6:56 am

Kindly remove the ; symbol before all last 3 lines. And try it again.Reply

11. Anonymous says:September 15, 2013 at 5:04 pm

Hi LorentzRemoved the ; symbol at the start of each line. But still I get the msg:–> Configuration does not specify a valid login name.

–> Configuration does not specify a valid password.Looks like it is accepting the phone number now. I have put single space for username and password.Reply

12. Aneesh says:October 4, 2013 at 11:16 pm

HI,

When I connect DWM-156 my device not showing in /dev/. I can see that two folders there(shm and snd). Can you help me on this.Reply

o lorentz says:October 5, 2013 at 7:49 am

Lsusb output please? Whats hardware version of your product?Reply

Aneesh says:October 6, 2013 at 6:58 pm

Hi,

I am using Dell Inspiron 15-3521. Here is my lsusb stats.

Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching HubBus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching HubBus 003 Device 002: ID 046d:c045 Logitech, Inc. Optical MouseBus 003 Device 008: ID 2001:a80b D-Link Corp.Bus 003 Device 003: ID 1a2c:0023Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hubBus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hubBus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hubBus 001 Device 003: ID 0cf3:0036 Atheros Communications, Inc.Bus 001 Device 004: ID 0c45:64ad Microdia

lorentz says:October 6, 2013 at 7:01 pm

Ok type the sudo mode-switch command mentioned..It will change from a80b to modem mode

lorentz says:October 18, 2013 at 8:25 am

Did u try the sudo usb-modeswitch command?? Try it after updatingmode switch to latest version..

13. iniyan says:October 10, 2013 at 1:26 pm

In case step 5 fails, then download this file and paste it to /etc . This file contains the message needed to be send to dwm 156 A6 hardware to internally switch the mode. In case u cant past it directly into /etc folder the make a new file by typing

sudo nano /etc/usbmode.conf and paste the content of the above file there and save it using the CTRL+X command . And then type in terminal usb_modeswitch -c /etc/usbmode.conf . It should help can u explain these steps… how to create / etcReply

o lorentz says:October 10, 2013 at 1:33 pm

I do not understand the problem clearly.can u pls rediscribe itReply

o lorentz says:October 12, 2013 at 1:29 am

/etc is a folder in root directory / of linux. Type cd /etc in terminalReply

14. padam says:October 28, 2013 at 12:25 pm

Hi lorentz ,I have tried all the methods given here nothing works for me.my model is DWM-156 (A7).

I downloaded your driver file from box and followed the steps andit dint work. Then I installed the drives provided by device by coping it from windows machine and followed the steps but it dintwork. Please let me know how can I proceed now.

lsusb beforeBus 003 Device 010: ID 2001:a706 D-Link Corp.and afterBus 003 Device 010: ID 2001:a706 D-Link Corp.

Following if the syslog:Oct 28 12:22:51 dhana-HP-Pavilion-Sleekbook-15-PC modem-manager[16523]: (ttyUSB1) closing serial port…Oct 28 12:22:51 dhana-HP-Pavilion-Sleekbook-15-PC modem-manager[16523]: (ttyUSB1) serial port closedOct 28 12:22:51 dhana-HP-Pavilion-Sleekbook-15-PC modem-manager[16523]: (ttyUSB1) opening serial port…Oct 28 12:22:51 dhana-HP-Pavilion-Sleekbook-15-PC modem-manager[16523]: (ttyUSB2) closing serial port…Oct 28 12:22:51 dhana-HP-Pavilion-Sleekbook-15-PC modem-manager[16523]: (ttyUSB2) serial port closed

Oct 28 12:22:51 dhana-HP-Pavilion-Sleekbook-15-PC modem-manager[16523]: (ttyUSB2) opening serial port…Oct 28 12:22:51 dhana-HP-Pavilion-Sleekbook-15-PC modem-manager[16523]: (ttyUSB3) closing serial port…Oct 28 12:22:51 dhana-HP-Pavilion-Sleekbook-15-PC modem-manager[16523]: (ttyUSB3) serial port closedOct 28 12:22:51 dhana-HP-Pavilion-Sleekbook-15-PC modem-manager[16523]: (ttyUSB3) opening serial port…Oct 28 12:22:51 dhana-HP-Pavilion-Sleekbook-15-PC chat[16604]: expect (OK)Oct 28 12:22:51 dhana-HP-Pavilion-Sleekbook-15-PC chat[16604]: ^MOct 28 12:22:51 dhana-HP-Pavilion-Sleekbook-15-PC chat[16604]: AT+CGDCONT=1,”IP”,”airtelgprs.com”^M^MOct 28 12:22:51 dhana-HP-Pavilion-Sleekbook-15-PC chat[16604]: OKOct 28 12:22:51 dhana-HP-Pavilion-Sleekbook-15-PC chat[16604]: — got itOct 28 12:22:51 dhana-HP-Pavilion-Sleekbook-15-PC chat[16604]: send (ATD*99***1#^M)Oct 28 12:22:51 dhana-HP-Pavilion-Sleekbook-15-PC chat[16604]: timeout set to 22 secondsOct 28 12:22:51 dhana-HP-Pavilion-Sleekbook-15-PC chat[16604]: expect (CONNECT)Oct 28 12:22:51 dhana-HP-Pavilion-Sleekbook-15-PC chat[16604]: ^MOct 28 12:22:51 dhana-HP-Pavilion-Sleekbook-15-PC chat[16604]: ATD*99***1#^M^MOct 28 12:22:51 dhana-HP-Pavilion-Sleekbook-15-PC chat[16604]: CONNECTOct 28 12:22:51 dhana-HP-Pavilion-Sleekbook-15-PC chat[16604]: — got itOct 28 12:22:51 dhana-HP-Pavilion-Sleekbook-15-PC chat[16604]: send (^M)Oct 28 12:22:51 dhana-HP-Pavilion-Sleekbook-15-PC pppd[16598]: Script /usr/sbin/chat -v -f /etc/3g_modem_connection/3g finished (pid 16603), status = 0x0Oct 28 12:22:51 dhana-HP-Pavilion-Sleekbook-15-PC pppd[16598]: Serial connection established.

Oct 28 12:22:51 dhana-HP-Pavilion-Sleekbook-15-PC pppd[16598]: using channel 3Oct 28 12:22:51 dhana-HP-Pavilion-Sleekbook-15-PC pppd[16598]: Using interface ppp0Oct 28 12:22:51 dhana-HP-Pavilion-Sleekbook-15-PC pppd[16598]: Connect: ppp0 /dev/ttyUSB0Oct 28 12:22:51 dhana-HP-Pavilion-Sleekbook-15-PC NetworkManager[1126]: SCPlugin-Ifupdown: devices added (path: /sys/devices/virtual/net/ppp0, iface: ppp0)Oct 28 12:22:51 dhana-HP-Pavilion-Sleekbook-15-PC NetworkManager[1126]: SCPlugin-Ifupdown: device added (path: /sys/devices/virtual/net/ppp0, iface: ppp0): no ifupdown configuration found.Oct 28 12:22:52 dhana-HP-Pavilion-Sleekbook-15-PC pppd[16598]: rcvd [LCP ConfReq id=0x1 ]Oct 28 12:22:52 dhana-HP-Pavilion-Sleekbook-15-PC pppd[16598]: sent [LCP ConfReq id=0x1 ]Oct 28 12:22:52 dhana-HP-Pavilion-Sleekbook-15-PC pppd[16598]: sent [LCP ConfAck id=0x1 ]Oct 28 12:22:52 dhana-HP-Pavilion-Sleekbook-15-PC pppd[16598]: rcvd [LCP ConfNak id=0x1 ]Oct 28 12:22:52 dhana-HP-Pavilion-Sleekbook-15-PC pppd[16598]: sent [LCP ConfReq id=0x2 ]Oct 28 12:22:52 dhana-HP-Pavilion-Sleekbook-15-PC pppd[16598]: rcvd [LCP ConfAck id=0x2 ]Oct 28 12:22:52 dhana-HP-Pavilion-Sleekbook-15-PC pppd[16598]: sent [LCP EchoReq id=0x0 magic=0x46c0df59]Oct 28 12:22:52 dhana-HP-Pavilion-Sleekbook-15-PC pppd[16598]: sent [PAP AuthReq id=0x1 user="" password=]Oct 28 12:22:52 dhana-HP-Pavilion-Sleekbook-15-PC pppd[16598]: rcvd [LCP EchoRep id=0x0 magic=0x0]Oct 28 12:22:52 dhana-HP-Pavilion-Sleekbook-15-PC pppd[16598]: rcvd [PAP AuthAck id=0x1 ""]Oct 28 12:22:52 dhana-HP-Pavilion-Sleekbook-15-PC pppd[16598]: PAP authentication succeededOct 28 12:22:52 dhana-HP-Pavilion-Sleekbook-15-PC pppd[16598]:

sent [CCP ConfReq id=0x1 ]Oct 28 12:22:52 dhana-HP-Pavilion-Sleekbook-15-PC pppd[16598]: sent [IPCP ConfReq id=0x1 ]Oct 28 12:22:52 dhana-HP-Pavilion-Sleekbook-15-PC pppd[16598]: rcvd [IPCP ConfReq id=0x1]Oct 28 12:22:52 dhana-HP-Pavilion-Sleekbook-15-PC pppd[16598]: sent [IPCP ConfNak id=0x1 ]Oct 28 12:22:52 dhana-HP-Pavilion-Sleekbook-15-PC pppd[16598]: rcvd [LCP ProtRej id=0x0 80 fd 01 01 00 0f 1a 04 78 00 18 04 78 00 15 03 2f]Oct 28 12:22:52 dhana-HP-Pavilion-Sleekbook-15-PC pppd[16598]: Protocol-Reject for ‘Compression Control Protocol’ (0x80fd) receivedOct 28 12:22:52 dhana-HP-Pavilion-Sleekbook-15-PC pppd[16598]: rcvd [IPCP ConfRej id=0x1 ]Oct 28 12:22:52 dhana-HP-Pavilion-Sleekbook-15-PC pppd[16598]: sent [IPCP ConfReq id=0x2 ]Oct 28 12:22:52 dhana-HP-Pavilion-Sleekbook-15-PC pppd[16598]: rcvd [IPCP ConfReq id=0x2 ]Oct 28 12:22:52 dhana-HP-Pavilion-Sleekbook-15-PC pppd[16598]: sent [IPCP ConfRej id=0x2 ]Oct 28 12:22:52 dhana-HP-Pavilion-Sleekbook-15-PC pppd[16598]: rcvd [IPCP ConfRej id=0x2]Oct 28 12:22:52 dhana-HP-Pavilion-Sleekbook-15-PC pppd[16598]: sent [IPCP ConfReq id=0x3 ]Oct 28 12:22:52 dhana-HP-Pavilion-Sleekbook-15-PC pppd[16598]: rcvd [IPCP ConfReq id=0x3]Oct 28 12:22:52 dhana-HP-Pavilion-Sleekbook-15-PC pppd[16598]: sent [IPCP ConfAck id=0x3]Oct 28 12:22:52 dhana-HP-Pavilion-Sleekbook-15-PC pppd[16598]: rcvd [IPCP ConfRej id=0x3]Oct 28 12:22:52 dhana-HP-Pavilion-Sleekbook-15-PC pppd[16598]: sent [IPCP ConfReq id=0x4 ]Reply

o lorentz says:October 28, 2013 at 12:46 pm

Dude i contacted the dlink.. the a7 hardware is designed primarlyfor the windows 8 os.. and the mode switc message has changed..Reply

o lorentz says:October 28, 2013 at 12:46 pm

U might have to contact dlink directly for support.. as they keepchanging the directions as each version progresses..Reply

15. Preet says:December 6, 2013 at 12:57 pm

hi lorentz,i tried step 5.1.. the modem has still not switched mode :(i have a D-link DWM 156 and I did exactly what u said ..cotents of lsusbpreet@ubuntu:~$ lsusbBus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching HubBus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching HubBus 003 Device 002: ID 8644:800bBus 003 Device 009: ID 2001:a80b D-Link Corp.Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hubBus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hubBus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hubBus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hubBus 001 Device 003: ID 8087:07da Intel Corp.Bus 001 Device 004: ID 0bda:0129 Realtek Semiconductor Corp.Bus 001 Device 005: ID 0c45:64ad Microdia

modeswitch command:

preet@ubuntu:~$ sudo usb_modeswitch -v2001 -pa80b

Looking for default devices …found matching product IDadding deviceFound device in default mode, class or configuration (1)Accessing device 009 on bus 003 …Getting the current device configuration …OK, got current device configuration (1)Using first interface: 0x00Using endpoints 0x01 (out) and 0x81 (in)Inquiring device details; driver will be detached …Looking for active driver …OK, driver found (“usbfs”)OK, driver “usbfs” detached

SCSI inquiry data (for identification)————————-Vendor String: HSPA USBModel String: SCSI CD-ROMRevision String: 6229————————-

USB description data (for identification)————————-Manufacturer: D-Link,IncProduct: D-Link DWM-156Serial No.: 532274404902270————————-Warning: no switching method given.-> Run lsusb to note any changes. Bye.

preet@ubuntu:~$ lsusbBus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate

Matching HubBus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching HubBus 003 Device 002: ID 8644:800bBus 003 Device 009: ID 2001:a80b D-Link Corp.Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hubBus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hubBus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hubBus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hubBus 001 Device 003: ID 8087:07da Intel Corp.Bus 001 Device 004: ID 0bda:0129 Realtek Semiconductor Corp.Bus 001 Device 005: ID 0c45:64ad Microdiapreet@ubuntu:~$

the mode dosn’t switch :(initially the mode switch command..usb_modeswitch -v2001 -pa80bdid not work ..it said that there was no info for manufacturer and product idthats when i did the step 5.1and it seem to look fine .. but there were no changes in lsusbso i checked the contents of usbmode.conf and that looked fine..

please helpReply

o Preet says:December 6, 2013 at 1:05 pm

and if i try running this command again

preet@ubuntu:~$ sudo usb_modeswitch -c /etc/usbmode.conf

Looking for target devices …No devices in target mode or class foundLooking for default devices …

found matching product IDadding deviceFound device in default mode, class or configuration (1)Accessing device 009 on bus 003 …Getting the current device configuration …OK, got current device configuration (1)Using first interface: 0x00Using endpoints 0x01 (out) and 0x81 (in)Inquiring device details; driver will be detached …Looking for active driver …No driver found. Either detached before or never attached^Z[3]+ Stopped sudo usb_modeswitch -c /etc/usbmode.confReply

Preet says:December 6, 2013 at 1:11 pm

preet@ubuntu:~$ usb_modeswitch -c/etc/usbmode.conf

Looking for target devices …No devices in target mode or class foundLooking for default devices …found matching product IDadding deviceFound device in default mode, class or configuration (1)Accessing device 000 on bus 003 …Getting the current device configuration …Error getting the current configuration (error -1). Assuming configuration 1.Using first interface: 0x00Using endpoints 0x01 (out) and 0x81 (in)Inquiring device details; driver will be detached …Looking for active driver …No driver found. Either detached before or never attachedCould not claim interface (error -1). Skipping device inquiry

Error: could not get description string “manufacturer”Error: could not get description string “product”Error: could not get description string “serial number”

USB description data (for identification)————————-Manufacturer:Product:Serial No.:————————-Looking for active driver …No driver found. Either detached before or never attachedSetting up communication with interface 0Could not claim interface (error -1). Skipping message sending-> Run lsusb to note any changes. Bye.

preet@ubuntu:~$

this is what happened when i tried again

Preet says:December 6, 2013 at 1:12 pm

i tried again .. and got a different output this time

preet@ubuntu:~$ usb_modeswitch -c/etc/usbmode.conf

Looking for target devices …No devices in target mode or class foundLooking for default devices …found matching product IDadding deviceFound device in default mode, class or configuration (1)Accessing device 000 on bus 003 …Getting the current device configuration …Error getting the current configuration (error -1). Assuming

configuration 1.Using first interface: 0x00Using endpoints 0x01 (out) and 0x81 (in)Inquiring device details; driver will be detached …Looking for active driver …No driver found. Either detached before or never attachedCould not claim interface (error -1). Skipping device inquiryError: could not get description string “manufacturer”Error: could not get description string “product”Error: could not get description string “serial number”

USB description data (for identification)————————-Manufacturer:Product:Serial No.:————————-Looking for active driver …No driver found. Either detached before or never attachedSetting up communication with interface 0Could not claim interface (error -1). Skipping message sending-> Run lsusb to note any changes. Bye.

preet@ubuntu:~$

16. milanonline says:February 12, 2014 at 12:15 am

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 ~ $ lsusbBus 001 Device 003: ID 2001:a706 D-Link Corp. #notice the productIDBus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hubBus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hubBus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hubBus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hubmeelogs@meelogs-desktop ~ $ sudo 3g_3g_connect.sh 3g_modem_switchmeelogs@meelogs-desktop ~ $ sudo 3g_modem_switch -v2001 pa706No 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 foundLooking for default devices …found matching product IDadding deviceFound 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: 0×00Using endpoints 0×01 (out) and 0×81 (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 USBModel String: SCSI CD-ROMRevision String: 6225————————-

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

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

lo Link encap:Local Loopbackinet addr:127.0.0.1 Mask:255.0.0.0inet6 addr: ::1/128 Scope:HostUP LOOPBACK RUNNING MTU:65536 Metric:1RX packets:31 errors:0 dropped:0 overruns:0 frame:0TX packets:31 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:0RX bytes:3244 (3.2 KB) TX bytes:3244 (3.2 KB)

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

meelogs@meelogs-desktop ~ $ ping google.comPING 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 ms64 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 6982msrtt min/avg/max/mdev = 240.521/299.948/378.119/57.719 msmeelogs@meelogs-desktop ~ $

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

http://milanonline.wordpress.com/2014/02/11/using-usb-adapter-d-link-156-in-linux/Reply

o lorentz says:March 2, 2014 at 11:38 pm

thanks for the guide on connecting the dlink modem to ubuntu. have u any idea how to connect this to raspberry pi, all my trials fails.. thats the problemReply

milanonlinux says:March 10, 2014 at 11:53 pm

Did you check with other OS..This link may help with supported OSraspberrypi.org/downloads

17. Anonymous says:February 16, 2014 at 10:51 pm

Hi! Your guide works great, but ony problem is when i remove the device and reconnect it the mode goes back to the initial one (Ubuntu 12.0.4). So it has be switched by typing the command eachtime. Can you suggest a way to make an executacle file which can work on the .conf file and do the switching just by a click.Reply

18. milanonlinux says:March 10, 2014 at 11:56 pm

just make a script!Reply

19. Raja Gopala Chary says:April 1, 2014 at 3:24 am

Thank you somuch…. It worked for meReply

20. Anonymous says:July 6, 2014 at 11:58 pm

the whole thing worked for me till step 6 but not after dat.Suggest any option for ubuntu 12.04Reply

21. hassan says:July 7, 2014 at 6:17 am

Hi,step 5 when I type usb and press tab twice ,I can see usb_modeswitchI try STEP5.1 but when I type usb_modeswitch -c /etc/usbmode.confthen there was an error said that permission deniedplease help me dearthanksReply

o hassan says:July 7, 2014 at 6:19 am

sorry i meant i can not see usb_modeswitch !!!Reply

22. angankeyen says:July 14, 2014 at 8:23 am

how about connect this modem in 14.04Reply

o lorentz says:November 11, 2014 at 11:56 am

Have you found solution for your problem. If so please so reply your solution in hereReply


Recommended