Huawei E1752 mobiel internet op Linux (Ubuntu/debian)

Mobistar verkoopt met hun "Internet Everywhere" abonnementen een goedkoop en degelijk alternatief voor de occassionele gebruiker van mobiel internet (5 euro per maand + 1 euro per dag gebruik en 1 GB inbegrepen). Je krijgt/koopt hierbij standaard een Huawei E1752 USB modem. In tegenstelling tot de eerdere Option en Huawei USB devices zijn deze echter niet meer zo straight forward te gebruiken op Linux. De modems zijn nu modem en USB mass storage device (voor de Windows driver) en Linux ziet standaard de usb mass storage in plaats van de modem. Dit kan je nakijken met lsusb:

# lsusb
Bus 002 Device 007: ID 12d1:1446 Huawei Technologies Co., Ltd.

Je kan de modem echter activeren met usb-modeswitch

apt-get install usb-modeswitch

en voeg onderstaande lijnen toe in /etc/usb_modeswitch.conf

########################################################
# Huawei E1752
#
# Contributor:

DefaultVendor= 0x12d1
DefaultProduct= 0x1446

TargetVendor= 0x12d1
TargetProdct= 0x1001

MessageEndpoint= 0x01

MessageContent= "55534243000000000000000000000011060000000000000000000000000000"

(bron)

Voer als root usb_modeswitch uit:

# usb_modeswitch 

 * usb_modeswitch: tool for controlling "flip flop" mode USB devices
 * Version 1.0.2 (C) Josua Dietze 2009
 * Works with libusb 0.1.12 and probably other versions

Looking for default devices ...
 Found default devices (1)
Accessing device 007 on bus 002 ...
Using 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

Received inquiry data (detailed identification)
-------------------------
  Vendor String: ɸI����
 Product String:
Revision String:
-------------------------

Device description data (identification)
-------------------------
Manufacturer: HUAWEI Technology
     Product: HUAWEI Mobile
  Serial No.: not provided
-------------------------
Setting up communication with interface 0 ...
Trying to send the message to endpoint 0x01 ...
 OK, message successfully sent
Device is gone, skipping further steps ...
-> Run lsusb to note any changes. Bye.

root@flaptop:~# lsusb
Bus 002 Device 008: ID 12d1:1001 Huawei Technologies Co., Ltd. E620 USB Modem

Je kan nu via netwerk-manager: edit connections een nieuwe mobiele connectie toevoegen. Kies het device, daarna Belgium, Mobistar en "Internet Everywhere". Normaal zijn alle settings goed en moet je alleen de PIN invoeren bij de gedetailleerde gegevens. Daarna manueel verbinden en voila...

Ironisch: als Windows niet zo een ingewikkeld systeem was, zou dit mass storage voor de drivers niet nodig zijn en zou dit device zoals voordien "plug & play" werken op Linux.

PS: bovenstaande zal analoog werken met de Proximus Vodaphone USB modems en vele Option modellen, mits je het juiste device in /etc/usb_modeswitch.conf uncomment.

Reboot first

Thanks for the guideline Luc.
I've tried this out on Ubuntu Karmic and it also worked.
My steps where a bit different.

First i created a new internet everywhere Mobile connection with the Network Manager:
Right Click the Network Manager Icon
Choose "Edit Connections"
Choose the Tab "Mobile Broadband"
Click "Add" Button
Click "Forward" Button
Choose Belgium > Mobistar > Internet Everywhere
Fill in your personal PIN
Leave all other settings.

NEXT : USB_MODESWITCH
Following your guidelines to installed usb_modeswitch and provide the correct configuration settings.
Trying
/> sudo usb_modswitch at that moment did not succeed.
The process stalled on
Looking for active driver ...
No driver found. Either detached before or never attached

I had to reboot my system first to make that command work correctly.

Thanks again for usefull tip

HUAWEI E1752 failed

Tried this with my HUAWEI E1752 on :
Linux 12334444 2.6.28-17-generic #58-Ubuntu SMP Tue Dec 1 18:57:07 UTC 2009 i686 GNU/Linux on a Dell notebook. No luck:
# tail -f /var/loog/messages&
# usb_modeswitch ; ls /dev/*USB*

Looking for target devices ...
No devices in target mode or class found
Looking for default devices ...
Found default devices (1)
Accessing device 008 on bus 002 ...
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

Received inquiry data (detailed identification)
-------------------------
Vendor String: HUAWEI
Model String: Mass Storage
Revision String: 2.31
-------------------------

Device description data (identification)
-------------------------
Manufacturer: HUAWEI Technology
Product: HUAWEI Mobile
Serial No.: not provided
-------------------------
Setting up communication with interface 0 ...
Trying to send the message to endpoint 0x01 ...
OK, message successfully sent
Device is gone, skipping any further commands

Checking for mode switch (max. 5 times, once per second) ...
Dec 8 11:38:52 AMS-L0769 kernel: [92410.313818] usb 2-1: usbfs: process 6225 (usb_modeswitch) did not claim interface 0 before use
Dec 8 11:38:52 AMS-L0769 kernel: [92410.314645] usb 2-1: USB disconnect, address 8
Original device is gone already, not checking
Searching for target devices ...
Searching for target devices ...
Searching for target devices ...
Searching for target devices ...
Searching for target devices ...
No new devices in target mode or class found

Mode switch has failed. Bye.

ls: cannot access *USB*: No such file or directory
root@AMS-L0769:/dev# usb_modeswitch ; ls *USDec 8 11:39:00 AMS-L0769 kernel: [92418.548186] usb 2-1: new high speed USB device using ehci_hcd and address 9
Dec 8 11:39:00 AMS-L0769 kernel: [92418.684737] usb 2-1: configuration #1 chosen from 1 choice
Dec 8 11:39:00 AMS-L0769 kernel: [92418.692136] scsi11 : SCSI emulation for USB Mass Storage devices
Dec 8 11:39:00 AMS-L0769 kernel: [92418.697432] scsi12 : SCSI emulation for USB Mass Storage devices

root@AMS-L0769:/dev# Dec 8 11:39:05 AMS-L0769 kernel: [92423.694125] scsi 11:0:0:0: CD-ROM HUAWEI Mass Storage 2.31 PQ: 0 ANSI: 2
Dec 8 11:39:05 AMS-L0769 kernel: [92423.700560] sr1: scsi-1 drive
Dec 8 11:39:05 AMS-L0769 kernel: [92423.702416] sr 11:0:0:0: Attached scsi generic sg2 type 5
Dec 8 11:39:05 AMS-L0769 kernel: [92423.705396] scsi 12:0:0:0: Direct-Access HUAWEI SD Storage 2.31 PQ: 0 ANSI: 2
Dec 8 11:39:05 AMS-L0769 kernel: [92423.709469] sd 12:0:0:0: [sdb] Attached SCSI removable disk
Dec 8 11:39:05 AMS-L0769 kernel: [92423.709594] sd 12:0:0:0: Attached scsi generic sg3 type 0

Solved

problem solved: It was Nautilus : after the usb device is plugged, the umount the mounted file system and then run usb_modeswitch.
Obvious really :)

Additional info: Acer Aspire

Additional info:

Acer Aspire One
Linpus Linux Lite v1.0.11.E

Huawei E 1752

Error

Bash: apt-get : command not found

Re: Additional info: Acer Aspire

> Bash: apt-get : command not found
Linpus Lite is Synaptic based, not apt-get/dpkg so the command will never be there. Since Linpus Lite is Fedora based then you could use rpms, and therefore run yum instead of apt-get (if yum is installed). I suggest that you learn about the various Linux package managers afore you continue:
http://en.wikipedia.org/wiki/Synaptic_Package_Manager

Problems with apt-get install usb-modeswitch

I'm not able to execute the apt-get install usb-modeswitch. I already tried some info on the net but without success.

Could you please give me more details of executing this install of a Huawei E1752 on an Acer Aspire One

Which distribution and

Which distribution and version? What's the error?

Some progress but ...

I was able to change the usb_modeswitch.conf

after checking lsusb the result is now

Bus 001 Device 002: ID 12d1:1001 Huawei E620 3G Modem

In the netwerk manager I'm not able to create a mobile network
Only possibilities are LAN, WLAN, PPPoE, WLAN + PPPoE, without the option Mobistar Internet Everywhere.

Some additional info
Acer Aspire One
Linpus Linux Lite v1.0.11.E
Huawei E 1752

I don't know your distro, but

I don't know your distro, but maybe the network manager version is too old?

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
  • Web page addresses and e-mail addresses turn into links automatically.

More information about formatting options

sfy39587f04