LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 06-01-2014, 05:32 PM   #1
chiller
LQ Newbie
 
Registered: Sep 2012
Posts: 14

Rep: Reputation: Disabled
Unable to configure Huawei 3G E3531 Datacard in Ubuntu 14.04


I installed ubuntu 14.04.I purchased the dongle Huawei 3G E3531 & it runs fine in windows.But when i configured in ubuntu using network connections it doesn't connect.
Please provide step by step procedure to configure this modem in Ubuntu 14.04.
 
Old 06-03-2014, 10:20 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,678

Rep: Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971
Quote:
Originally Posted by chiller View Post
I installed ubuntu 14.04.I purchased the dongle Huawei 3G E3531 & it runs fine in windows.But when i configured in ubuntu using network connections it doesn't connect.
Please provide step by step procedure to configure this modem in Ubuntu 14.04.
This isn't the place to come for "step-by-step" how-to's. There have been many, MANY answers to questions almost identical to this, which you can easily find with a search on LQ, or via Google.

The Huawei devices need to be 'flipped' from CD-ROM/block storage devices, to modems, before they can be used. Install the usb_modeswitch program through your software manager, and run it. Then configure and use the device.
 
Old 06-03-2014, 11:33 AM   #3
chiller
LQ Newbie
 
Registered: Sep 2012
Posts: 14

Original Poster
Rep: Reputation: Disabled
I think here many of them are experts.It is better to hear from them directly.When read different threads i don't know which method to follow.Also i am completely new to linux.Kindly suggest required steps.
 
Old 06-03-2014, 01:00 PM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,678

Rep: Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971
Quote:
Originally Posted by chiller View Post
I think here many of them are experts.It is better to hear from them directly.When read different threads i don't know which method to follow.
Pick one and try it. If it doesn't work, try another.
Quote:
Also i am completely new to linux.
...yet you installed Ubuntu and have been registered here for TWO YEARS at this point. Hardly 'new.
Quote:
Kindly suggest required steps.
Go back an re-read my original reply, and do what it told you. I gave you 'required steps'. Follow them.
 
Old 06-03-2014, 04:04 PM   #5
thorkelljarl
Senior Member
 
Registered: Jun 2008
Posts: 1,820

Rep: Reputation: 229Reputation: 229Reputation: 229
You need information...

The modem is converted from a CD device to a modem with the program USB_ModeSwitch, which you should have in your Ubuntu installation. Check that this is the case. If USB_ModeSwitch is working the device should be switched automatically at plug-in.

You need to use the Internet to find the ID for the modem. As an example, for my Huawei E1752 the ID is 12d1:1446. The internet tells me the ID changes to 12d1:1001 when switched.

Then you need to plug in the modem and run the command "lsusb" to see how the device is identified. Even if the modem is switching, there may be other reasons you're not connecting.

The place to go for information and help is the Draisberghof site and their forum.

http://www.draisberghof.de/usb_modeswitch/

TBOne is right, there are many threads on this topic, and he gets tired of answering the same questions over and over. Help comes to those who help themselves.

Last edited by thorkelljarl; 06-05-2014 at 03:01 PM.
 
1 members found this post helpful.
Old 06-04-2014, 03:31 AM   #6
chiller
LQ Newbie
 
Registered: Sep 2012
Posts: 14

Original Poster
Rep: Reputation: Disabled
I tried following
lsusb -v -d 12d1:1506

Bus 001 Device 002: ID 12d1:1506 Huawei Technologies Co., Ltd. E398 LTE/UMTS/GSM Modem/Networkcard
Couldn't open device, some information will be missing
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 2 Communications
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x12d1 Huawei Technologies Co., Ltd.
idProduct 0x1506 E398 LTE/UMTS/GSM Modem/Networkcard
bcdDevice 1.02
iManufacturer 1
iProduct 2
iSerial 0
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 237
bNumInterfaces 6
bConfigurationValue 1
iConfiguration 0
bmAttributes 0x80
(Bus Powered)
MaxPower 500mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 3
bInterfaceClass 255 Vendor Specific Class
bInterfaceSubClass 3
bInterfaceProtocol 1
iInterface 0
** UNRECOGNIZED: 05 24 00 10 01
** UNRECOGNIZED: 04 24 02 02
** UNRECOGNIZED: 05 24 01 00 00
** UNRECOGNIZED: 05 24 06 00 00
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x83 EP 3 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 5
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x82 EP 2 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x02 EP 2 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 1
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 255 Vendor Specific Class
bInterfaceSubClass 3
bInterfaceProtocol 22
iInterface 5
** UNRECOGNIZED: 05 24 00 10 01
** UNRECOGNIZED: 06 24 1a 00 01 1f
** UNRECOGNIZED: 0c 24 1b 00 01 00 04 10 14 dc 05 20
** UNRECOGNIZED: 0d 24 0f 07 0f 00 00 00 ea 05 03 00 01
** UNRECOGNIZED: 05 24 06 01 01
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x85 EP 5 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0010 1x 16 bytes
bInterval 9
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 1
bAlternateSetting 1
bNumEndpoints 3
bInterfaceClass 255 Vendor Specific Class
bInterfaceSubClass 3
bInterfaceProtocol 22
iInterface 6
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x85 EP 5 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0010 1x 16 bytes
bInterval 9
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x84 EP 4 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x03 EP 3 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 2
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 255 Vendor Specific Class
bInterfaceSubClass 3
bInterfaceProtocol 3
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x86 EP 6 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x04 EP 4 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 3
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 255 Vendor Specific Class
bInterfaceSubClass 3
bInterfaceProtocol 2
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x87 EP 7 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x05 EP 5 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 4
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 8 Mass Storage
bInterfaceSubClass 6 SCSI
bInterfaceProtocol 80 Bulk-Only
iInterface 4
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x88 EP 8 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x06 EP 6 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 1
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 5
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 8 Mass Storage
bInterfaceSubClass 6 SCSI
bInterfaceProtocol 80 Bulk-Only
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x89 EP 9 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x07 EP 7 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 1

---------- Post added 06-04-14 at 03:31 AM ----------

Then this
sudo usb_modeswitch -W -I -v 12d1 -p 1506 -M 55534243123456780000000000000011062000000101000100000000000000
Take all parameters from the command line


* usb_modeswitch: handle USB devices with multiple modes
* Version 2.1.1 (C) Josua Dietze 2014
* Based on libusb1/libusbx

! PLEASE REPORT NEW CONFIGURATIONS !

DefaultVendor= 0x12d1
DefaultProduct= 0x1506
MessageContent="55534243123456780000000000000011062000000101000100000000000000"
NeedResponse=0

InquireDevice=1

Look for default devices ...
found USB ID 12d1:1506
vendor ID matched
product ID matched
found USB ID 1d6b:0002
found USB ID 0e0f:0002
found USB ID 0e0f:0003
found USB ID 1d6b:0001
Found devices in default mode (1)
Access device 002 on bus 001
Current configuration number is 1
Use interface number 0
Use endpoints 0x02 (out) and 0x82 (in)
Error: can't use storage command in MessageContent with interface 0;
interface class is 2, expected 8. Abort
 
Old 06-04-2014, 03:33 AM   #7
chiller
LQ Newbie
 
Registered: Sep 2012
Posts: 14

Original Poster
Rep: Reputation: Disabled
Finally unable to connect to internet.
 
Old 06-04-2014, 04:19 AM   #8
kedarp
Member
 
Registered: Jul 2012
Distribution: Ubuntu
Posts: 198
Blog Entries: 3

Rep: Reputation: 23
When I had a dongle, it got mounted as CD-ROM. When I installed the software from the CD-ROM, I was
able to connect to internet beacuse it got detected as a modem.

I think you are missing the driver for your modem i.e. it is not installed. Please check if there is
an installer for Linux when the dongle is mounted. If it does not get mounted, reply so.

What usb_modeswitch does that it switches your dongle mode to modem so that you can dialup. But may be
it is not working because the driver is missing.
 
Old 06-04-2014, 07:05 AM   #9
chiller
LQ Newbie
 
Registered: Sep 2012
Posts: 14

Original Poster
Rep: Reputation: Disabled
I installed driver.
 
Old 06-04-2014, 09:16 AM   #10
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,678

Rep: Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971
Quote:
Originally Posted by chiller View Post
Finally unable to connect to internet.
...and....
Quote:
Originally Posted by chiller
I tried following lsusb -v -d 12d1:1506
...and....
Quote:
Originally Posted by chiller View Post
I installed driver.
Did you read and understand what you were told in the VERY FIRST REPLY????.

AGAIN: You need to load the usb_modeswitch program. After you load it, RUN IT. Then, your device will be a modem, and you will be able to use whatever network manager you want to configure your connection. Simple.

usb_modeswitch is in your software manager. Run it, search for it, and click INSTALL. That's it.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to configure Idea 3G datacard in RHEL6 Priya5145 Linux - Networking 4 04-22-2014 10:28 AM
Unable to configure mouse buttons 8, 9, and 10 on Ubuntu 11.04. Logitech M705 BobTheTwit Linux - Hardware 2 08-04-2011 12:02 PM
How to Configure Wireless Network EVDO Datacard over Puppy Linux? yugal13 Linux - Newbie 1 01-21-2011 04:44 AM
how to configure huawei e169 in damn small 1100man Linux - Newbie 0 05-06-2009 04:16 PM
Ubuntu: Unable to Install/Configure Nvidia Driver kramer2718 Linux - Desktop 3 10-07-2008 03:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 11:07 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration