uwe_lueck
>
texmap
>
aaoe1550
— reload —
Seit Sommer 2011 verwende ich Ubuntu statt Linpus Linux. Problem und Lösung werden auf Deutsch in wiki.ubuntuusers.de/USB_ModeSwitch
(nicht nur für Ubuntu) beschrieben.
Warning: The author of USB_ModeSwitch has suggested to remove this page (which originally was written 2010-09-28), because it does not make use of progress that the program has made. However, I like “minimalist” approaches, using the program in its most basic way, and preparing my netbook for the single dongle I am using, not for all of them.
– U.L., 2012-09-07
[ sum | Linux
| Linux-var | for E1550
Linpus limits
| Huawei dialer
| open
| sum install
sources listed (acks)
| contact
| no warranty
| remark ]
What is more special here is using the Linux software that Acer provides for their Aspire One A110 notebook and Huawei connection devices, in particular for running the E1550 HSDPA Stick (German label) for mobile broadband (“3G”; see sections on Linpus etc.).
The next sections may be somewhat “narrative,” sometimes my own adventure story; a soberer summary will follow them.
USB_ModeSwitch needs some data about connection devices. They may be placed in the configuration file
/etc/usb_modeswitch.conf
udev rules are plain text files in the directory
/etc/udev/rules.d/with a file name extension
.rules
.
The file name typically starts with a two-digit number that seems to
determine the order of applying the rules.
(See David Drake’s manual
on writing udev rules. They refer to vendor and product codes that you
may obtain from www.linux-usb.org
. 1446 missing!?)
This is not quite easy for Linux newbies. Changes must be made by the
root user
(sudo
or su
, for synonym ‘superuser’),
for installing packages as well as for
creating/modifying text files in /etc/
and
/etc/udev/rules.d/
.
For the text files, you learn here what command line text editors such as Vim, Pico, or Emacs (called from the “terminal” or text shell) are good for. The Lynx Wiki, e.g., recommends
vi /etc/udev/rules.d/15-huawei-e1550.rulesAlternatively, you can compose/edit the files with a “usual” (more graphical) text editor in
/mnt/home/
or a subdirectory
thereof as a “usual user” and then copy them to the /etc/
subdirectories and change their rights (chmod
)
as “root” in the terminal.
(More clearly: copy files owned by “root” and render them
writeable for other users temporarily.)
A detailed step-by-step guide (what you type and what you see) being somewhat general (“generic”) as it is (was?) intended in the present section can be found for Slackware 13 here. It does deal with Huawei E1550, to be sure, but somewhat explains how to generalize the procedure to other devices.
The USB_ModeSwitch homepage provides a step-by-step guide “general” in this respect indeed, and it may be more clear in technical respect as is the present page. However, it leaves the user a little alone regarding some details. Also, on my machine things don’t work exactly as described there (same holds for all other guides I found).
Sakis3G is a procedure (a script also using USB_ModeSwitch) intended to provide a “really” simple installation of the dongle. For another Acer Aspire One and Huawei E1550 indeed, you find a success story for Sakis3G in this user forum. (I preferred a minimalistic approach instead.)
I seem to have understood too late (and perhaps still not properly) that the 2.6 Linux kernel currently does support many dongles, and USB_ModeSwitch only is needed for a few, very recent products.
udev-extras
and call a program modem-modeswitch for switching.
Yet this has changed quite recently (September 2010) according to the
Lynx Blog
to the effect that now USB_ModeSwitch works with Ubuntu as well
and thus is another option for running dongles under Ubuntu.
USB_ModeSwitch seems to migrate slowly into Linux
distributions —Debian, Ubuntu,
Fedora (“partially”);
so you may be able to install it by calling your package manager.
With Fedora, e.g.
(after ‘$ su
’,
‘#
’ represents the “super/root user” prompt):
# yum install usb_modeswitchIf your package manager is unable to install the package, you can at least download it from the USB_ModeSwitch homepage and after unpacking and moving into the new directory run—as
su
—the command line
# make install(But don’t follow me blindly, read there!)
As to newbies again, the extension of the downloaded
usb-modeswitch-1.1.4.tar.bz2
(note that the underscore is replaced by a ‘-
’)
was not familiar to me, I had to learn
(from the German
www.linux-fuer-alle.de
;
cf. Wikipedia tar
and bzip2, or the
List of archive formats)
# tar xfvj usb-modeswitch-1.1.4.tar.bz2
Another Linux variant is discussed below …
12d1
,
the product code for E1150 is 1446
.
I am using the following udev rule
in the file /etc/udev/rules.d/15-huawei-e1550.rules
.
SUBSYSTEM==“usb”, SYSFS{idProduct}==“1446”, SYSFS{idVendor}==“12d1”, RUN+=“/usr/sbin/usb_modeswitch -c /etc/usb_modeswitch.conf” # UL 2010/09/05The
RUN
content differs from anything I found elsewhere,
it’s mainly inspired by the message from usb_modeswitch --help
.
The date 2010/09/05 of creating the file may be essential to explain
this: perhaps the command line syntax of usb_modeswitch is
changing rapidly!? Actually the USB_ModeSwitch version used here
is 1.1.4, dating from 2010/08/17.
My /etc/usb_modeswitch.conf
contains
DefaultVendor = 0x12d1 DefaultProduct = 0x1446 MessageEndPoint = “0x01” MessageContent = “55534243000000000000000000000011060000000000000000000000000000”This at last is what I found in the guides from Lynx Wiki, wiki.archlinux.de (German), and Slackware. The last one adds the interesting lines
;DetachStorageOnly=1 ;HuaweiMode=1that, however, I don’t understand, and I couldn’t note a difference in behavior when I tried it.
It is not sane to type the MessageContent
line above,
you should paste it, as the Lynx Wiki says.
I still need to find out how this is done with Vim.
fedora-release
, redhat-release
,
system-release
in /etc/
.
This release has
Yum
as the primary package manager, to be called by yum
from the terminal.
Yum has a graphical front-end
Pirut
(from Fedora Core 5 to Fedora 8, according to
previous Wikipedia article).
Continuing the Linux story above:
The package usb_modeswitch
is not available on my machine with
Pirut or Yum,
cf. Fedora package database
(not quite sure what this means, an RPM search like
this one
indicates that there are packages for Fedora 11 and upwards,
may be in development stage).
So I downloaded the package manually from its
homepage
and tried the advertised “manual”
make install
—I learn that
make
is not available on my AAO. I try the GNU C compiler
(gcc
) directly—neither installed.
However, gcc
and make
are available as Fedora 8 packages
with Pirut/Yum (of course).
make install
though didn’t work immediately;
as indicated at the
USB_ModeSwitch homepage,
I also had to install libusb-devel
—well available
with Pirut again … and then it worked, great!
While I am an amateur, just reporting my discoveries with a single combination of products (netbook, dongle, software), this professional/German blog discusses alternative solutions and as well may add something to my suggestions of the present page—search for heading ‘Linpux Lite (Acer Aspire One)’. In particular, Vodafone’s Betavine datacard software for Linux is recommended there (in case software offered by Acer doesn’t work at your AAO).
MobilePartner
in their names,
some dating from 2009/02/02, some from 2008/10/18, both much
after I purchased the machine
(apparently live-updates I didn’t notice in detail;
however I remember some heavy load from one update including
DataCard software;
cf. huawei081126.sh
under ‘Applications’ on
Acer’s
support site).
Moreover, in the ‘Connect’ Menu (German “Verbinden”), i.e., when I click on the triangle in the blue, upper left field of that Linpus desktop, a green icon (other icons are in shades of blue) labeled ‘Mobile Partner’ appears (it hadn’t been there when I watched that menu the first times). Click it, and a well-designed GUI slowly (first with some as well well-designed ‘Initializing …’ message windows) pops up. ‘Help’ (“Hilfe”) → ‘Info Mobile Partner’ shows
Mobile Partner 11.200.02.00.03Fine! It includes phone calling, maintaining phone numbers, text messages, settings for PINs, statistics, diagnostics. By menu ‘Extras’ → “Options” you can set up a profile. I bought my E1550 and SIM card from BASE (E-Plus). I learnt the set-up from this UMPX forum (FunGo77’s entry from ‘6. Februar 2009’) and created a profile ‘BASE’:
C 2004-2008 HUAWEI Technologies Co., Ltd.
APN: statisch [static]Now each time I want to connect to the web, I plug the dongle in, I click on the green ‘Mobile Partner’ icon, a window with ‘BASE’ on the left and ‘Verbinden’ (“connect”) appears, I click on the latter, another notification window appears, with a button for “Abbrechen” (“quit”), first its text is gray, when it turns black, I can surf. (The larger window stays “locked”, cannot be accessed for getting, e.g., some info until the connection is cut by ‘Abbrechen’.)
APN: internet.eplus.de [not very international]
Zugriffsnummer [access number]: *99#
Benutzer [user]: eplus
Passwort [password]: umts
Authentifizierungsprotokoll [authentication protocol]: PAP
By chance, I even found a usermanual_de.pdf
in
/usr/local/MobilePartner/usermanual/
.
3G_option0025v2.sh
from Acer support page—no difference noted.
Should “Verbindungsmanager” (taskbar, settings) show new item?
10-huawei-startMobilePartner.rules
” for “AutoRun”!? Shell script huawei_autostart
seems to assume a wrong directory structure.
However, I did many tries, not all worked. I am here “guessing” (doing my best!) what would have been the easiest way. Please be careful; in trying, save vital files; I CANNOT GUARANTEE for anything!
Examples of omitted steps:
usb-modeswitch-data
.)
yum
s below,
I actually used Yum’s GUI front-end Pirut (I think).
lsusb
(as root) to watch whether mode was
switched. I omit it here because it is not vital for installing
mode switching.
Sorry, I do not want to uninstall everything in order to check whether my proposal below works (maybe I will later). Please tell me what happens on your installation, cf. below.
Also, this is what should have worked 2010/09/05, USB_ModeSwitch and recommendations on its homepage may have changed in the meantime! (However, the homepage was the same 2010/09/18.)
/mnt/home/Desktop/
).
/mnt/home/
? Then always omit ‘/Desktop
’ below.
Alt-F T
’ or ‘Alt-D T
’,
depending on language).
$
’ and ‘#
’,
they represent prompts you should see):
$ mkdir E1550; cd E1550 $ firefox http://www.draisberghof.de/usb_modeswitch/#download—or just move to
http://www.draisberghof.de/usb_modeswitch/#download
in some browser some way.
/mnt/home/Desktop/E1550/
$ tar xfvj usb-modeswitch-1.1.4.tar.bz2 $ cd usb-modeswitch-1.1.4 $ su password: # yum install gcc # yum install make # yum install libusb-devel # make install # cd .. # cp /etc/usb_modeswitch.conf ./ # chmod u+w usb_modeswitch.conf
/mnt/home/Desktop/E1550/
usb_modeswitch.conf
with mousepad (or just open it with some editor)./mnt/home/Desktop/E1550/usb_modeswitch.conf(Keep the Terminal open!)
DefaultVendor = 0x12d1 DefaultProduct = 0x1446 MessageEndPoint = “0x01” MessageContent = “55534243000000000000000000000011060000000000000000000000000000”to the end of that
usb_modeswitch.conf
, and save it.
15-huawei-e1550.rulesin the same directory (e.g., via Thunar’s “File” menu →
D
,
or ‘Alt-F D
’ or ‘Alt-D D
’,
or via mousepad’s ‘Open’,
or even using vim
in the Terminal)
and open it.
SUBSYSTEM==“usb”, SYSFS{idProduct}==“1446”, SYSFS{idVendor}==“12d1”, RUN+=“/usr/sbin/usb_modeswitch -c /etc/usb_modeswitch.conf”into this
15-huawei-e1550.rules
and save it.
chmod
)
and enter
# cp usb_modeswitch.conf /etc/ # cp 15-huawei-e1550.rules /etc/udev/rules.d/
chmod u-w
’?
#
exit
root mode,
unless you want to watch what happens
at #
lsusb
or something else …)
internet.eplus.de
,
access number *99#
, user eplus
, password umts
,
authentication protocol PAP
.
blog.lynxworks.eu/2009/08/huawei-e1550-on-ubuntu
(Lynx Blog on E1550 with Ubuntu)
wiki.lynxworks.eu/misc/e1550
(Lynx Wiki on E1550 under
Ubuntu,
Fedora,
Arch Linux)
gborn.blogger.de/stories/1245657/
(G. Born on UMTS with Linux netbooks, German)
wiki.archlinux.de/title/Surfstick_einrichten/e1550
(German Arch Linux Wiki on E1550)
www.aspireoneuser.com/forum/viewtopic.php?f=42&t=20712&p=115819#p115819
(Aspire One user forum:
“GOT MY HUAWEI E1550 WORKING on my Linpus AAO (model: ZG5) using the Sakis3G ’shell script’.”)
www.draisberghof.de/usb_modeswitch/
(general advice about USB_ModeSwitch)
www.linuxquestions.org/linux/answers/networking/huawei_e_1550_3g_broadband_dongle_three_uk_slackware_13_how
(Linux questions: E1550 under Slackware 13)
www.linux-fuer-alle.de/doc_show.php?docid=76
(German “Linux für alle” on archive formats)
www.linux-usb.org
(USB support for Linux)
www.umpx.de/netbooks/acer-aspire-one/1755-huawei-e169-auf-dem-150l-linpus-lite/
(German;
profile set-up with Huawei Mobile Partner for E169
and others with Linpus; valuable contributions by “GBorn,”
“FunGo77,” “Frog,” “Polarbär”)
This is a list of homepages of (most relevant) software mentioned on the present page:
www.betavine.net/bvportal/resources/datacards
support.acer-euro.com/drivers/notebook/as_one_110.html
www.sakis3g.org
umtsmon.sourceforge.net
www.draisberghof.de/usb_modeswitch/
alumnit.ca/wiki/index.php?page=WvDial
Last generated 2013-05-15 © Uwe Lück