← Back to team overview

touch-packages team mailing list archive

[Bug 799351] Re: 12d1:1003: NM does not connect mobile broadband; sakis3g and wvdial can connect -- Huawei E156G

 

** Changed in: usb-modeswitch-data (Ubuntu)
       Status: Incomplete => Invalid

** Changed in: usb-modeswitch (Ubuntu)
       Status: Incomplete => Invalid

** Changed in: network-manager (Ubuntu)
       Status: Incomplete => Invalid

** Changed in: linux (Ubuntu)
       Status: Incomplete => Invalid

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to network-manager in Ubuntu.
https://bugs.launchpad.net/bugs/799351

Title:
  12d1:1003: NM does not connect mobile broadband; sakis3g and wvdial
  can connect -- Huawei E156G

Status in linux package in Ubuntu:
  Invalid
Status in network-manager package in Ubuntu:
  Invalid
Status in usb-modeswitch package in Ubuntu:
  Invalid
Status in usb-modeswitch-data package in Ubuntu:
  Invalid

Bug description:
  Problem: 
  On my system Network-Manager (version 0.8) cannot establish connection with my Mobile-Broadband modem. 
  sakis3g (version 0.2.0e; http://www.sakis3g.org/)and wvdial are able to do it. 
  Windows version of mwconn (ixconn; version 0.4; http://www.mwconn.com) connects without problems. 

  I have : 
  * uname -a
    Linux martin-laptop 2.6.32-32-generic #62-Ubuntu SMP Wed Apr 20 21:54:21 UTC 2011 i686 GNU/Linux
    with latest updates.
  * GSM-Modem: Huawei E156G (now unlocked, in the past Three Austria)
  * SIM Card from Yess (www.yess.at) 

  In the past I used the modem with a three sim card without problems. The new sim card was working 
  with the delivered modem (Huawei E170) after I have deleted all Mobile Broadband connections and 
  created a new one. 

  I dont know what modem-manager and network-manager are doing in background, but 
  I have expected that any sim card is working with an unlocked supported modem. 

  Below my gathered information. Maybe somebody finds something.

  -------------------------------------------------------------------------------

  After reboot with connected modem:

  Try to connect with network manager (Click on entry below  Mobile
  Broadband)

  cat /var/log/syslog:

  Jun 18 20:41:31 martin-laptop NetworkManager: <info>  Activation (ttyUSB0) starting connection 'Yesss Default'
  Jun 18 20:41:31 martin-laptop NetworkManager: <info>  (ttyUSB0): device state change: 3 -> 4 (reason 0)
  Jun 18 20:41:31 martin-laptop NetworkManager: <info>  Activation (ttyUSB0) Stage 1 of 5 (Device Prepare) scheduled...
  Jun 18 20:41:31 martin-laptop NetworkManager: <info>  Activation (ttyUSB0) Stage 1 of 5 (Device Prepare) started...
  Jun 18 20:41:31 martin-laptop NetworkManager: <info>  (ttyUSB0): device state change: 4 -> 6 (reason 0)
  Jun 18 20:41:31 martin-laptop NetworkManager: <info>  Activation (ttyUSB0) Stage 1 of 5 (Device Prepare) complete.
  Jun 18 20:41:31 martin-laptop NetworkManager: <info>  Activation (ttyUSB0) Stage 1 of 5 (Device Prepare) scheduled...
  Jun 18 20:41:31 martin-laptop NetworkManager: <info>  Activation (ttyUSB0) Stage 1 of 5 (Device Prepare) started...
  Jun 18 20:41:31 martin-laptop NetworkManager: <info>  (ttyUSB0): device state change: 6 -> 4 (reason 0)
  Jun 18 20:41:31 martin-laptop NetworkManager: <info>  Activation (ttyUSB0) Stage 1 of 5 (Device Prepare) complete.
  Jun 18 20:41:31 martin-laptop modem-manager: (ttyUSB0) opening serial device...
  Jun 18 20:41:31 martin-laptop modem-manager: Modem /org/freedesktop/ModemManager/Modems/0: state changed (disabled -> enabling)
  Jun 18 20:41:31 martin-laptop modem-manager: Got failure code 11: SIM PIN required
  Jun 18 20:41:31 martin-laptop modem-manager: Modem /org/freedesktop/ModemManager/Modems/0: state changed (enabling -> enabled)
  Jun 18 20:41:33 martin-laptop modem-manager: Registration state changed: 2
  Jun 18 20:41:33 martin-laptop modem-manager: Modem /org/freedesktop/ModemManager/Modems/0: state changed (enabled -> searching)
  Jun 18 20:41:46 martin-laptop modem-manager: Registration state changed: 0
  Jun 18 20:41:46 martin-laptop modem-manager: Modem /org/freedesktop/ModemManager/Modems/0: state changed (searching -> enabled)

  Try to send PIN with sakis3g. 
  Get error because modem is occupied by modem-manager (/dev/ttyUSB0: Device or resource busy).
  Kill process (modem-manager)and send then PIN with sakis3g. 
  I try network-manager again: 

  Jun 18 20:54:42 martin-laptop NetworkManager: <info>  (ttyUSB0): device state change: 3 -> 4 (reason 0)
  Jun 18 20:54:42 martin-laptop NetworkManager: <info>  Activation (ttyUSB0) Stage 1 of 5 (Device Prepare) scheduled...
  Jun 18 20:54:42 martin-laptop NetworkManager: <info>  Activation (ttyUSB0) Stage 1 of 5 (Device Prepare) started...
  Jun 18 20:54:42 martin-laptop NetworkManager: <info>  (ttyUSB0): device state change: 4 -> 6 (reason 0)
  Jun 18 20:54:42 martin-laptop NetworkManager: <info>  Activation (ttyUSB0) Stage 1 of 5 (Device Prepare) complete.
  Jun 18 20:54:42 martin-laptop NetworkManager: <info>  Activation (ttyUSB0) Stage 1 of 5 (Device Prepare) scheduled...
  Jun 18 20:54:42 martin-laptop NetworkManager: <info>  Activation (ttyUSB0) Stage 1 of 5 (Device Prepare) started...
  Jun 18 20:54:42 martin-laptop NetworkManager: <info>  (ttyUSB0): device state change: 6 -> 4 (reason 0)
  Jun 18 20:54:42 martin-laptop NetworkManager: <info>  Activation (ttyUSB0) Stage 1 of 5 (Device Prepare) complete.
  Jun 18 20:54:42 martin-laptop modem-manager: (ttyUSB0) opening serial device...
  Jun 18 20:54:42 martin-laptop modem-manager: Modem /org/freedesktop/ModemManager/Modems/0: state changed (disabled -> enabling)
  Jun 18 20:54:43 martin-laptop modem-manager: Modem /org/freedesktop/ModemManager/Modems/0: state changed (enabling -> enabled)
  Jun 18 20:55:01 martin-laptop wpa_supplicant[1100]: WPS-AP-AVAILABLE 
  Jun 18 20:55:43 martin-laptop NetworkManager: <WARN>  stage1_prepare_done(): GSM modem connection failed: (32) Network timeout
  Jun 18 20:55:43 martin-laptop NetworkManager: <info>  (ttyUSB0): device state change: 4 -> 9 (reason 1)
  Jun 18 20:55:43 martin-laptop NetworkManager: <info>  Marking connection 'Yesss Default' invalid.
  Jun 18 20:55:43 martin-laptop NetworkManager: <info>  Activation (ttyUSB0) failed.
  Jun 18 20:55:43 martin-laptop NetworkManager: <info>  (ttyUSB0): device state change: 9 -> 3 (reason 0)
  Jun 18 20:55:43 martin-laptop NetworkManager: <info>  (ttyUSB0): deactivating device (reason: 0).

  If I send pin with:
  sudo rmmod usb-storage
  sudo modprobe usbserial vendor=12d1 product=1003
  echo "AT+CPIN=0000" > /dev/ttyUSB0

  then I get the same timout.

  
  sudo /usr/sbin/usb_modeswitch -c /etc/usb_modeswitch.d/12d1:1003

  Looking for target devices ...
   Found devices in target mode or class (1)
  Looking for default devices ...
   Found default devices (1)
   All devices in target class mode. Nothing to do. Bye.

  sudo su
  rmmod usbserial && modprobe usbserial vendor=0x12d1 product=0x1003
  echo "usbserial vendor=0x12d1 product=0x1003" >>/etc/modules
  echo "AT+CPIN=0000" > /dev/ttyUSB0

  connect with network-manager:

  Jun 18 21:20:30 martin-laptop NetworkManager: <info>  Activation (ttyUSB0) Stage 1 of 5 (Device Prepare) started...
  Jun 18 21:20:30 martin-laptop NetworkManager: <info>  (ttyUSB0): device state change: 6 -> 4 (reason 0)
  Jun 18 21:20:30 martin-laptop NetworkManager: <info>  Activation (ttyUSB0) Stage 1 of 5 (Device Prepare) complete.
  Jun 18 21:20:30 martin-laptop modem-manager: Got failure code 100: Unknown error
  Jun 18 21:20:30 martin-laptop NetworkManager: <WARN>  stage1_prepare_done(): GSM modem connection failed: (32) Unknown error
  Jun 18 21:20:30 martin-laptop NetworkManager: <info>  (ttyUSB0): device state change: 4 -> 9 (reason 1)

  sudo usb_modeswitch -v 12d1 -p 1003 -H l  option-zerocd

  Looking for default devices ...
   Found default devices (1)
  Accessing device 009 on bus 001 ...
  Using endpoints 0x01 (out) and 0x82 (in)
  Not a storage device, skipping SCSI inquiry

  USB description data (for identification)
  -------------------------
  Manufacturer: HUAWEI Technology
       Product: HUAWEI Mobile
    Serial No.: not provided
  -------------------------
  Sending Huawei control message ...
   OK, Huawei control message sent
  -> Run lsusb to note any changes. Bye.

  ls -la /dev/ttyUSB*
  crw-rw---- 1 root dialout 188, 0 2011-06-18 21:24 /dev/ttyUSB0
  crw-rw---- 1 root dialout 188, 1 2011-06-18 21:22 /dev/ttyUSB1
  crw-rw---- 1 root dialout 188, 2 2011-06-18 21:23 /dev/ttyUSB2
  crw-rw---- 1 root dialout 188, 3 2011-06-18 21:23 /dev/ttyUSB3

  usb-devices

  T:  Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  9 Spd=480 MxCh= 0
  D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
  P:  Vendor=12d1 ProdID=1003 Rev=00.00
  S:  Manufacturer=HUAWEI Technology
  S:  Product=HUAWEI Mobile
  C:  #Ifs= 4 Cfg#= 1 Atr=e0 MxPwr=500mA
  I:  If#= 0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=usbserial_generic
  I:  If#= 1 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=usbserial_generic
  I:  If#= 2 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usbserial_generic
  I:  If#= 3 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usbserial_generic

  nm-tool

  - Device: ttyUSB0 --------------------------------------------------------------
    Type:              Mobile Broadband (GSM)
    Driver:            generic
    State:             disconnected
    Default:           no

    Capabilities:

  
  cat /etc/usb_modeswitch.d/12d1:1003
  ########################################################
  # Huawei E220, E230, E270, E870

  DefaultVendor= 0x12d1
  DefaultProduct=0x1003

  TargetClass=0xff

  CheckSuccess=20

  HuaweiMode=1

  
  kill modem-manger again... 

  tr -s "\n" < /dev/ttyUSB0
  echo -e "ATZ\r" > /dev/ttyUSB0
  echo -e "AT+CREG?\r" > /dev/ttyUSB0
  echo -e "AT+CGDCONT?\r" > /dev/ttyUSB0
  echo -e "AT+COPS?\r" > /dev/ttyUSB0
  echo -e "AT+COPS=0,2\r" > /dev/ttyUSB0
  echo -e "AT+COPS?\r" > /dev/ttyUSB0
  echo -e "ATI\r" > /dev/ttyUSB0
  echo -e "AT+CPIN?\r" > /dev/ttyUSB0
  echo -e "AT+CSQ?\r" > /dev/ttyUSB0
  echo -e "ATD*99#\r" > /dev/ttyUSB0

  result:

  OK
  AT+CREG?
  +CREG: 0,0

  OK
  AT+CGDCONT?
  +CGDCONT: 1,"IP","web.yesss.at","0.0.0.0",0,0
  +CGDCONT: 2,"IP","web.yess.at","0.0.0.0",0,0
  +CGDCONT: 3,"IP","drei.at","0.0.0.0",0,0

  OK
  AT+COPS?
  +COPS: 0,0,"one",2

  OK
  AT+COPS=0,2
  OK
  AT+COPS?
  +COPS: 0,2,"23205",2

  OK
  ATI
  Manufacturer: huawei
  Model: E156G
  Revision: 11.608.05.00.156
  IMEI: <deleted>
  +GCAP: +CGSM,+DS,+ES

  OK
  AT+CPIN?
  +CPIN: READY

  OK
  AT+CSQ?
  ERROR
  ATD*99#
  CONNECT

  -------------------------------

  cat /etc/wvdial.conf

  [Dialer Defaults]
  Init1 = ATZ
  Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
  Modem Type = Analog Modem
  Stupid Mode = 1
  SetVolume = 0
  Baud = 460800
  Dial Command = ATDT
  Dial Attempts = 3
  Modem = /dev/ttyUSB0
  ISDN = 0
  FlowControl = NOFLOW

  [Dialer yess]
  Init3 = at+cgdcont=1,"IP","web.yesss.at"
  New PPPD = yes
  Modem = /dev/ttyUSB0
  Password = pass
  Username = user
  Phone = *99***1#

  sudo wvdial connects without problems, if the pin is already set.
  The output is:

  --> WvDial: Internet dialer version 1.60
  --> Cannot get information for serial port.
  --> Initializing modem.
  --> Sending: ATZ
  ATZ
  OK
  --> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
  ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
  OK
  --> Sending: at+cgdcont=1,"IP","web.yesss.at"
  at+cgdcont=1,"IP","web.yesss.at"
  OK
  --> Modem initialized.
  --> Sending: ATDT*99***1#
  --> Waiting for carrier.
  ATDT*99***1#
  CONNECT
  --> Carrier detected.  Starting PPP immediately.
  --> Starting pppd at Sun Jun 19 12:15:11 2011
  --> Pid of pppd: 13823
  --> Using interface ppp0
  --> pppd: 04[18]
  --> pppd: 04[18]
  --> pppd: 04[18]
  --> pppd: 04[18]
  --> pppd: 04[18]
  --> pppd: 04[18]
  --> local  IP address 10.101.240.249
  --> pppd: 04[18]
  --> remote IP address 10.64.64.64
  --> pppd: 04[18]
  --> primary   DNS address 194.24.128.100
  --> pppd: 04[18]
  --> secondary DNS address 81.3.216.100
  --> pppd: 04[18]

  ---------------------------------------------
  sakis3g connnects without problems. 

  The first time I had to set default gateway:
  sudo route add default gw 10.64.64.64

  and disable in firefox "offline mode based on networkmanager":
  about:config
  toolkit.networkmanager.disable

  ixconn works under windows XP, but with ubunutu I get: 
  Modem type: Huawei
  Modem not responding.
  End.

  Observation: 
  After playing around with network-manager, ixconn, ... wvdial is not working:
  sudo wvdial yess
  --> WvDial: Internet dialer version 1.60
  --> Cannot get information for serial port.
  --> Initializing modem.
  --> Sending: ATZ
  ATZ
  OK
  --> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
  ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
  AT+GCAP
  ERROR
  --> Bad init string.
  --> Cannot get information for serial port.
  --> Initializing modem.
  --> Sending: ATZ
  ATZ
  OK
  --> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
  OK
  --> Sending: at+cgdcont=1,"IP","web.yesss.at"
  at+cgdcont=1,"IP","web.yesss.at"
  ERROR
  --> Bad init string.
  --> Cannot get information for serial port.
  --> Initializing modem.
  --> Sending: ATZ
  OK
  --> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
  ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
  OK
  --> Sending: at+cgdcont=1,"IP","web.yesss.at"
  at+cgdcont=1,"IP","web.yesss.at"
  ERROR
  --> Bad init string.
  martin@martin-laptop:~/DREI$ 

  => It seems it is very easy to bring the modem into an invalid state. 
  --- 
  AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.24.
  ApportVersion: 2.0.1-0ubuntu12
  Architecture: i386
  AudioDevicesInUse:
   USER        PID ACCESS COMMAND
   /dev/snd/controlC0:  martin     1622 F.... pulseaudio
  Card0.Amixer.info:
   Card hw:0 'Intel'/'HDA Intel at 0xd2500000 irq 46'
     Mixer name	: 'Realtek ALC883'
     Components	: 'HDA:10ec0883,10250000,00100002 HDA:14f12bfa,1025007f,00090000'
     Controls      : 24
     Simple ctrls  : 14
  DistroRelease: Ubuntu 12.04
  HibernationDevice: RESUME=UUID=6eb4dce0-2696-44f0-bead-a90ba06406ac
  IfupdownConfig:
   auto lo
   iface lo inet loopback
  InstallationMedia: Ubuntu 12.04.1 LTS "Precise Pangolin" - Release i386 (20120817.3)
  IpRoute:
   default via 10.64.64.64 dev ppp0  proto static 
   10.64.64.64 dev ppp0  proto kernel  scope link  src 10.174.116.197 
   169.254.0.0/16 dev ppp0  scope link  metric 1000
  MachineType: Acer Aspire 5650
  NetworkManager.state:
   [main]
   NetworkingEnabled=true
   WirelessEnabled=false
   WWANEnabled=true
   WimaxEnabled=true
  Package: usb-modeswitch-data
  PackageArchitecture: i386
  PccardctlIdent:
   Socket 0:
     no product info available
  PccardctlStatus:
   Socket 0:
     no card
  ProcEnviron:
   TERM=xterm
   PATH=(custom, no user)
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  ProcFB: 0 nouveaufb
  ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.2.0-29-generic-pae root=UUID=dfe9ea77-1b1d-4c3d-afbe-a9ba679e8063 ro quiet splash vt.handoff=7
  ProcVersionSignature: Ubuntu 3.2.0-29.46-generic-pae 3.2.24
  RelatedPackageVersions:
   linux-restricted-modules-3.2.0-29-generic-pae N/A
   linux-backports-modules-3.2.0-29-generic-pae  N/A
   linux-firmware                                1.79
  Tags:  precise running-unity precise running-unity
  Uname: Linux 3.2.0-29-generic-pae i686
  UpgradeStatus: No upgrade log present (probably fresh install)
  UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo
  WifiSyslog:
   
  dmi.bios.date: 01/20/2006
  dmi.bios.vendor: Acer
  dmi.bios.version: V1.60
  dmi.board.name: Grapevine
  dmi.board.vendor: Acer
  dmi.board.version: N/A
  dmi.chassis.asset.tag: ��������������������
  dmi.chassis.type: 10
  dmi.chassis.vendor: Acer
  dmi.chassis.version: N/A
  dmi.modalias: dmi:bvnAcer:bvrV1.60:bd01/20/2006:svnAcer:pnAspire5650:pvrV1.60:rvnAcer:rnGrapevine:rvrN/A:cvnAcer:ct10:cvrN/A:
  dmi.product.name: Aspire 5650
  dmi.product.version: V1.60
  dmi.sys.vendor: Acer
  nmcli-con:
   NAME                      UUID                                   TYPE              TIMESTAMP    TIMESTAMP-REAL                     AUTOCONNECT   READONLY   DBUS-PATH                                 
   Wired connection 1        79bbee32-f627-4815-9d29-4332217ed12b   802-3-ethernet    1357471132   Sun 06 Jan 2013 12:18:52 PM CET    yes           no         /org/freedesktop/NetworkManager/Settings/2
   Yesss Default 1           807a6c1b-beb8-48f9-95cd-b5f249925385   gsm               1357471189   Sun 06 Jan 2013 12:19:49 PM CET    yes           no         /org/freedesktop/NetworkManager/Settings/1
   Drei (3) Default 1        4d5756de-b8a2-427c-ac80-5e6c386eae5c   gsm               0            never                              yes           no         /org/freedesktop/NetworkManager/Settings/0
  nmcli-dev:
   DEVICE     TYPE              STATE         DBUS-PATH                                  
   ttyUSB1    gsm               connected     /org/freedesktop/NetworkManager/Devices/2  
   wlan0      802-11-wireless   unavailable   /org/freedesktop/NetworkManager/Devices/1  
   eth0       802-3-ethernet    unavailable   /org/freedesktop/NetworkManager/Devices/0
  nmcli-nm:
   RUNNING         VERSION    STATE           NET-ENABLED   WIFI-HARDWARE   WIFI       WWAN-HARDWARE   WWAN      
   running         0.9.4.0    connected       enabled       enabled         disabled   enabled         enabled

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/799351/+subscriptions