[Pkg-utopia-maintainers] Bug#534335: network-manager: serious hanshake issues with Huawei E220 USB 3G modem until PIN is entered might be important, it certainly is for me

Cyrille Chépélov cyrille at chepelov.org
Tue Jun 23 18:04:20 UTC 2009


Package: network-manager
Version: 0.7.1-1
Severity: normal


The Huawei E220 USB 3G (HSDPA) modem accepts to do very little until the SIM
PIN is entered. Meanwhile, it replies "+CME ERROR: SIM PIN ..." on any
command. This is not expected by Network Manager's modem init code; NM tries
various init strings, always falling in timeout, then eventually gives up
(making the modem unusable). Sometimes, for reasons I don't understand, one
of the init strings causes the modem to spit out another "OK", which lets NM
proceed and provide the PIN. Once this happened, the modem is happy forever
(or a power loss happens, whichever is first).

It is also possible that debian/patches/04-struct_termios.patch introduces some
subtle shift of semantics and that in fact the modem intended to send both
+CME ERROR and OK aftwerwards.

The patch attached here adds "+CME ERROR" as a valid handshake terminator on
most exchanges; this considerably speeds up and improves the robustness of
the E220's startup. I'm not positive it's the best strategy, but it Works
For Me(tm) and might help someone else.

	-- Cyrille


-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (800, 'testing'), (600, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.30-1-686 (SMP w/2 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages network-manager depends on:
ii  adduser      3.110                       add and remove users and groups
ii  dbus         1.2.12-1                    simple interprocess messaging syst
ii  dhcp3-client 3.1.1-6                     DHCP client
ii  hal          0.5.12~git20090406.46dc48-2 Hardware Abstraction Layer
ii  ifupdown     0.6.8+nmu1                  high level tools to configure netw
ii  libc6        2.9-13                      GNU C Library: Shared libraries
ii  libdbus-1-3  1.2.12-1                    simple interprocess messaging syst
ii  libdbus-glib 0.80-4                      simple interprocess messaging syst
ii  libgcrypt11  1.4.4-2                     LGPL Crypto library - runtime libr
ii  libglib2.0-0 2.20.0-2                    The GLib library of C routines
ii  libgnutls26  2.6.6-1                     the GNU TLS library - runtime libr
ii  libgpg-error 1.6-1                       library for common error values an
ii  libhal1      0.5.12~git20090406.46dc48-2 Hardware Abstraction Layer - share
ii  libnl1       1.1-5                       library for dealing with netlink s
ii  libnm-glib0  0.7.1-1                     network management framework (GLib
ii  libnm-util1  0.7.1-1                     network management framework (shar
ii  libpolkit-db 0.9-3                       library for accessing PolicyKit vi
ii  libpolkit2   0.9-3                       library for accessing PolicyKit
ii  libtasn1-3   1.8-1                       Manage ASN.1 structures (runtime)
ii  libudev0     0.141-1                     libudev shared library
ii  libuuid1     1.41.3-1                    universally unique id library
ii  lsb-base     3.2-22                      Linux Standard Base 3.2 init scrip
ii  wpasupplican 0.6.9-2                     client support for WPA and WPA2 (I
ii  zlib1g       1:1.2.3.3.dfsg-13           compression library - runtime

Versions of packages network-manager recommends:
ii  dnsmasq-base               2.47-3        A small caching DNS proxy and DHCP
ii  iptables                   1.4.3.2-2     administration tools for packet fi
ii  network-manager-gnome      0.7.1-1       network management framework (GNOM
ii  policykit                  0.9-3         framework for managing administrat
ii  ppp                        2.4.4rel-10.1 Point-to-Point Protocol (PPP) - da

Versions of packages network-manager suggests:
ii  avahi-autoipd                 0.6.25-1   Avahi IPv4LL network address confi

-- no debconf information
-------------- next part --------------
A non-text attachment was scrubbed...
Name: n-m.recognize_cme_error.diff
Type: text/x-diff
Size: 4906 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-utopia-maintainers/attachments/20090623/49a3e9ed/attachment.diff>


More information about the Pkg-utopia-maintainers mailing list