Automatic Activation, Hotplug and UDEV, Configuration
Post Reply
gandhig
Posts: 6
Joined: 27 Apr 2014, 17:08

Huawei E1550 HSDPA modem switching issue in Lubuntu 14.04

Post by gandhig » 27 Apr 2014, 17:17

The subject modem was working properly in Ubuntu 10.04.3 LTS. I'm unable to properly set it up in Lubuntu 14.04. I have the latest version 2.1.1 installed along with the latest data package. I have listed the syslog and usb_modeswitch logs below

Syslog:

Code: Select all

Apr 27 18:57:09 sathish-VT8601 kernel: [  805.632096] usb 3-2: new full-speed USB device number 2 using uhci_hcd
Apr 27 18:57:09 sathish-VT8601 kernel: [  805.775040] usb 3-2: not running at top speed; connect to a high speed hub
Apr 27 18:57:09 sathish-VT8601 kernel: [  805.794046] usb 3-2: New USB device found, idVendor=12d1, idProduct=1446
Apr 27 18:57:09 sathish-VT8601 kernel: [  805.794067] usb 3-2: New USB device strings: Mfr=3, Product=2, SerialNumber=0
Apr 27 18:57:09 sathish-VT8601 kernel: [  805.794076] usb 3-2: Product: HUAWEI Mobile
Apr 27 18:57:09 sathish-VT8601 kernel: [  805.794084] usb 3-2: Manufacturer: HUAWEI Technology
Apr 27 18:57:09 sathish-VT8601 mtp-probe: checking bus 3, device 2: "/sys/devices/pci0000:00/0000:00:07.3/usb3/3-2"
Apr 27 18:57:09 sathish-VT8601 mtp-probe: bus: 3, device: 2 was not an MTP device
Apr 27 18:57:09 sathish-VT8601 kernel: [  806.126921] usb-storage 3-2:1.0: USB Mass Storage device detected
Apr 27 18:57:09 sathish-VT8601 kernel: [  806.163932] scsi2 : usb-storage 3-2:1.0
Apr 27 18:57:09 sathish-VT8601 kernel: [  806.165738] usb-storage 3-2:1.1: USB Mass Storage device detected
Apr 27 18:57:09 sathish-VT8601 kernel: [  806.170420] scsi3 : usb-storage 3-2:1.1
Apr 27 18:57:09 sathish-VT8601 kernel: [  806.170794] usbcore: registered new interface driver usb-storage
Apr 27 18:57:10 sathish-VT8601 kernel: [  807.169846] scsi 2:0:0:0: CD-ROM            HUAWEI   Mass Storage     2.31 PQ: 0 ANSI: 2
Apr 27 18:57:10 sathish-VT8601 kernel: [  807.177980] scsi 3:0:0:0: Direct-Access     HUAWEI   MMC Storage      2.31 PQ: 0 ANSI: 2
Apr 27 18:57:10 sathish-VT8601 kernel: [  807.188798] sr1: scsi-1 drive
Apr 27 18:57:10 sathish-VT8601 kernel: [  807.189353] sr 2:0:0:0: Attached scsi CD-ROM sr1
Apr 27 18:57:10 sathish-VT8601 kernel: [  807.189786] sr 2:0:0:0: Attached scsi generic sg2 type 5
Apr 27 18:57:10 sathish-VT8601 kernel: [  807.190718] sd 3:0:0:0: Attached scsi generic sg3 type 0
Apr 27 18:57:10 sathish-VT8601 kernel: [  807.205850] sd 3:0:0:0: [sdb] Attached SCSI removable disk
Apr 27 18:57:11 sathish-VT8601 usb_modeswitch: switch device 12d1:1446 on 003/002
Apr 27 18:57:11 sathish-VT8601 kernel: [  807.689850] usb 3-2: USB disconnect, device number 2
Apr 27 18:57:11 sathish-VT8601 kernel: [  807.692318] scsi 3:0:0:0: rejecting I/O to offline device
Apr 27 18:57:11 sathish-VT8601 kernel: [  807.692339] scsi 3:0:0:0: killing request
Apr 27 18:57:16 sathish-VT8601 kernel: [  812.496097] usb 3-2: new full-speed USB device number 3 using uhci_hcd
Apr 27 18:57:16 sathish-VT8601 kernel: [  812.639060] usb 3-2: not running at top speed; connect to a high speed hub
Apr 27 18:57:16 sathish-VT8601 kernel: [  812.661066] usb 3-2: New USB device found, idVendor=12d1, idProduct=14ac
Apr 27 18:57:16 sathish-VT8601 kernel: [  812.661086] usb 3-2: New USB device strings: Mfr=4, Product=3, SerialNumber=0
Apr 27 18:57:16 sathish-VT8601 kernel: [  812.661095] usb 3-2: Product: HUAWEI Mobile
Apr 27 18:57:16 sathish-VT8601 kernel: [  812.661103] usb 3-2: Manufacturer: HUAWEI Technology
Apr 27 18:57:16 sathish-VT8601 kernel: [  812.670231] usb-storage 3-2:1.5: USB Mass Storage device detected
Apr 27 18:57:16 sathish-VT8601 kernel: [  812.671297] scsi4 : usb-storage 3-2:1.5
Apr 27 18:57:16 sathish-VT8601 kernel: [  812.671838] usb-storage 3-2:1.6: USB Mass Storage device detected
Apr 27 18:57:16 sathish-VT8601 kernel: [  812.673124] scsi5 : usb-storage 3-2:1.6
Apr 27 18:57:16 sathish-VT8601 mtp-probe: checking bus 3, device 3: "/sys/devices/pci0000:00/0000:00:07.3/usb3/3-2"
Apr 27 18:57:16 sathish-VT8601 mtp-probe: bus: 3, device: 3 was not an MTP device
Apr 27 18:57:16 sathish-VT8601 kernel: [  812.962693] usbcore: registered new interface driver cdc_wdm
Apr 27 18:57:16 sathish-VT8601 kernel: [  812.974255] usbcore: registered new interface driver usbserial
Apr 27 18:57:16 sathish-VT8601 kernel: [  812.990139] usbcore: registered new interface driver usbserial_generic
Apr 27 18:57:16 sathish-VT8601 kernel: [  812.999501] usbserial: USB Serial support registered for generic
Apr 27 18:57:16 sathish-VT8601 kernel: [  813.142106] usbcore: registered new interface driver option
Apr 27 18:57:16 sathish-VT8601 kernel: [  813.164343] usbserial: USB Serial support registered for GSM modem (1-port)
Apr 27 18:57:16 sathish-VT8601 kernel: [  813.193748] qmi_wwan 3-2:1.1: cdc-wdm0: USB WDM device
Apr 27 18:57:16 sathish-VT8601 kernel: [  813.195078] qmi_wwan 3-2:1.1 wwan0: register 'qmi_wwan' at usb-0000:00:07.3-2, WWAN/QMI device, 0a:71:1c:07:c9:50
Apr 27 18:57:16 sathish-VT8601 kernel: [  813.195735] option 3-2:1.0: GSM modem (1-port) converter detected
Apr 27 18:57:16 sathish-VT8601 kernel: [  813.196934] usb 3-2: GSM modem (1-port) converter now attached to ttyUSB0
Apr 27 18:57:16 sathish-VT8601 kernel: [  813.197263] option 3-2:1.3: GSM modem (1-port) converter detected
Apr 27 18:57:16 sathish-VT8601 kernel: [  813.197927] usb 3-2: GSM modem (1-port) converter now attached to ttyUSB1
Apr 27 18:57:16 sathish-VT8601 kernel: [  813.198029] usbcore: registered new interface driver qmi_wwan
Apr 27 18:57:16 sathish-VT8601 kernel: [  813.198214] option 3-2:1.4: GSM modem (1-port) converter detected
Apr 27 18:57:16 sathish-VT8601 kernel: [  813.203834] usb 3-2: GSM modem (1-port) converter now attached to ttyUSB2
Apr 27 18:57:17 sathish-VT8601 NetworkManager[729]:    SCPlugin-Ifupdown: devices added (path: /sys/devices/pci0000:00/0000:00:07.3/usb3/3-2/3-2:1.1/net/wwan0, iface: wwan0)
Apr 27 18:57:17 sathish-VT8601 NetworkManager[729]:    SCPlugin-Ifupdown: device added (path: /sys/devices/pci0000:00/0000:00:07.3/usb3/3-2/3-2:1.1/net/wwan0, iface: wwan0): no ifupdown configuration found.
Apr 27 18:57:17 sathish-VT8601 ModemManager[602]: [/dev/cdc-wdm0] Checking version info (10 retries)...
Apr 27 18:57:17 sathish-VT8601 usb_modeswitch: switched to 12d1:ffffffff on 003/002
Apr 27 18:57:17 sathish-VT8601 ModemManager[602]: <warn>  (ttyUSB2): port attributes not fully set
Apr 27 18:57:17 sathish-VT8601 ModemManager[602]: <warn>  (ttyUSB0): port attributes not fully set
Apr 27 18:57:17 sathish-VT8601 ModemManager[602]: <warn>  (ttyUSB1): port attributes not fully set
Apr 27 18:57:17 sathish-VT8601 kernel: [  813.676833] scsi 4:0:0:0: CD-ROM            HUAWEI   Mass Storage     2.31 PQ: 0 ANSI: 2
Apr 27 18:57:17 sathish-VT8601 kernel: [  813.685000] scsi 5:0:0:0: Direct-Access     HUAWEI   MMC Storage      2.31 PQ: 0 ANSI: 2
Apr 27 18:57:17 sathish-VT8601 kernel: [  813.697291] sr1: scsi-1 drive
Apr 27 18:57:17 sathish-VT8601 kernel: [  813.697810] sr 4:0:0:0: Attached scsi CD-ROM sr1
Apr 27 18:57:17 sathish-VT8601 kernel: [  813.698336] sr 4:0:0:0: Attached scsi generic sg2 type 5
Apr 27 18:57:17 sathish-VT8601 kernel: [  813.699162] sd 5:0:0:0: Attached scsi generic sg3 type 0
Apr 27 18:57:17 sathish-VT8601 kernel: [  813.709929] sd 5:0:0:0: [sdb] Attached SCSI removable disk
Apr 27 18:57:18 sathish-VT8601 usb_modeswitch[2156]: usb_modeswitch: switched to 12d1:14ac on 3/3
Apr 27 18:57:18 sathish-VT8601 ModemManager[602]: [/dev/cdc-wdm0] QMI Device supports 5 services:
Apr 27 18:57:18 sathish-VT8601 ModemManager[602]: [/dev/cdc-wdm0]    ctl (1.2)
Apr 27 18:57:18 sathish-VT8601 ModemManager[602]: [/dev/cdc-wdm0]    wds (1.3)
Apr 27 18:57:18 sathish-VT8601 ModemManager[602]: [/dev/cdc-wdm0]    dms (1.2)
Apr 27 18:57:18 sathish-VT8601 ModemManager[602]: [/dev/cdc-wdm0]    nas (1.0)
Apr 27 18:57:18 sathish-VT8601 ModemManager[602]: [/dev/cdc-wdm0]    cat (0.0)
Apr 27 18:57:19 sathish-VT8601 usb_modeswitch[2156]: usb_modeswitch: add device ID 12d1:14ac to driver option
Apr 27 18:57:19 sathish-VT8601 usb_modeswitch[2156]: usb_modeswitch: please report the device ID to the Linux USB developers!
Apr 27 18:57:20 sathish-VT8601 ModemManager[602]: <warn>  (ttyUSB2): port attributes not fully set
Apr 27 18:57:20 sathish-VT8601 ModemManager[602]: <warn>  (ttyUSB1): port attributes not fully set
Apr 27 18:57:30 sathish-VT8601 ModemManager[602]: <info>  Creating modem with plugin 'Huawei' and '5' ports
Apr 27 18:57:30 sathish-VT8601 ModemManager[602]: <info>  Modem for device at '/sys/devices/pci0000:00/0000:00:07.3/usb3/3-2' successfully created
Apr 27 18:57:30 sathish-VT8601 ModemManager[602]: [/dev/cdc-wdm0] Checking version info (10 retries)...
Apr 27 18:57:30 sathish-VT8601 ModemManager[602]: [/dev/cdc-wdm0] QMI Device supports 5 services:
Apr 27 18:57:30 sathish-VT8601 ModemManager[602]: [/dev/cdc-wdm0]    ctl (1.2)
Apr 27 18:57:30 sathish-VT8601 ModemManager[602]: [/dev/cdc-wdm0]    wds (1.3)
Apr 27 18:57:30 sathish-VT8601 ModemManager[602]: [/dev/cdc-wdm0]    dms (1.2)
Apr 27 18:57:30 sathish-VT8601 ModemManager[602]: [/dev/cdc-wdm0]    nas (1.0)
Apr 27 18:57:30 sathish-VT8601 ModemManager[602]: [/dev/cdc-wdm0]    cat (0.0)
Apr 27 18:57:30 sathish-VT8601 ModemManager[602]: [/dev/cdc-wdm0] Setting network port data format...
Apr 27 18:57:30 sathish-VT8601 ModemManager[602]: [/dev/cdc-wdm0] Checking version info (10 retries)...
Apr 27 18:57:30 sathish-VT8601 ModemManager[602]: [/dev/cdc-wdm0] QMI Device supports 5 services:
Apr 27 18:57:30 sathish-VT8601 ModemManager[602]: [/dev/cdc-wdm0]    ctl (1.2)
Apr 27 18:57:30 sathish-VT8601 ModemManager[602]: [/dev/cdc-wdm0]    wds (1.3)
Apr 27 18:57:30 sathish-VT8601 ModemManager[602]: [/dev/cdc-wdm0]    dms (1.2)
Apr 27 18:57:30 sathish-VT8601 ModemManager[602]: [/dev/cdc-wdm0]    nas (1.0)
Apr 27 18:57:30 sathish-VT8601 ModemManager[602]: [/dev/cdc-wdm0]    cat (0.0)
Apr 27 18:57:30 sathish-VT8601 ModemManager[602]: [/dev/cdc-wdm0] Allocating new client ID...
Apr 27 18:57:30 sathish-VT8601 ModemManager[602]: [/dev/cdc-wdm0] Registered 'dms' (version 1.2) client with ID '1'
Apr 27 18:57:30 sathish-VT8601 ModemManager[602]: [/dev/cdc-wdm0] Allocating new client ID...
Apr 27 18:57:30 sathish-VT8601 ModemManager[602]: [/dev/cdc-wdm0] Registered 'nas' (version 1.0) client with ID '1'
Apr 27 18:57:30 sathish-VT8601 ModemManager[602]: <warn>  (ttyUSB2): port attributes not fully set
Apr 27 18:57:31 sathish-VT8601 ModemManager[602]: <warn>  couldn't load Supported Bands: 'QMI operation failed: Cannot send message: QMI service 'dms' version '1.3' required, got version '1.2''
Apr 27 18:57:31 sathish-VT8601 ModemManager[602]: <warn>  couldn't load Power State: 'Unhandled power state: 'unknown' (255)'
Apr 27 18:57:31 sathish-VT8601 ModemManager[602]: <warn>  couldn't load SIM identifier: 'QMI operation failed: Cannot send message: QMI service 'dms' version '1.3' required, got version '1.2''
Apr 27 18:57:31 sathish-VT8601 ModemManager[602]: <warn>  couldn't load IMSI: 'QMI operation failed: Cannot send message: QMI service 'dms' version '1.3' required, got version '1.2''
Apr 27 18:57:31 sathish-VT8601 ModemManager[602]: <warn>  couldn't load list of Own Numbers: 'Couldn't get MSISDN: QMI protocol error (16): 'NotProvisioned''
Apr 27 18:57:31 sathish-VT8601 ModemManager[602]: <warn>  couldn't load current allowed/preferred modes: 'Loading current modes is not supported by this device'
Apr 27 18:57:31 sathish-VT8601 ModemManager[602]: <warn>  couldn't load current Bands: 'QMI operation failed: Cannot send message: QMI service 'nas' version '1.1' required, got version '1.0''
Apr 27 18:57:31 sathish-VT8601 ModemManager[602]: <info>  Modem: state changed (unknown -> disabled)
Apr 27 18:57:31 sathish-VT8601 NetworkManager[729]: <warn> (cdc-wdm0): failed to look up interface index
Apr 27 18:57:31 sathish-VT8601 NetworkManager[729]: <info> (cdc-wdm0): new Broadband device (driver: 'qmi_wwan, option1' ifindex: 0)
Apr 27 18:57:31 sathish-VT8601 NetworkManager[729]: <info> (cdc-wdm0): exported as /org/freedesktop/NetworkManager/Devices/1
Apr 27 18:57:31 sathish-VT8601 NetworkManager[729]: <info> (cdc-wdm0): device state change: unmanaged -> unavailable (reason 'managed') [10 20 2]
Apr 27 18:57:31 sathish-VT8601 NetworkManager[729]: <info> (cdc-wdm0): deactivating device (reason 'managed') [2]
Apr 27 18:57:31 sathish-VT8601 NetworkManager[729]: <info> NetworkManager state is now DISCONNECTED
Apr 27 18:57:31 sathish-VT8601 NetworkManager[729]: <info> (cdc-wdm0): device state change: unavailable -> disconnected (reason 'none') [20 30 0]
usb_modeswitch log:

Code: Select all


USB_ModeSwitch log from Sun Apr 27 18:57:09 2014

Use global config file: /etc/usb_modeswitch.conf


Started via upstart
Raw args from udev: /3-2

Bus ID for device not given by udev.
 Trying to determine it from kernel name (3-2) ...
Use top device dir /sys/bus/usb/devices/3-2

USB dir exists: /sys/bus/usb/devices/3-2
Warning: USB attribute "serial" not readable.

SCSI dir exists: /sys/bus/usb/devices/3-2
Warning: SCSI attribute "vendor" not readable.
Warning: SCSI attribute "model" not readable.
Warning: SCSI attribute "rev" not readable.
Use interface /sys/bus/usb/devices/3-2/3-2:1.0
----------------
USB values from sysfs:
  idVendor	12d1
  idProduct	1446
  manufacturer	HUAWEI Technology
  product	HUAWEI Mobile
  serial	(null)
  bNumConfigurations	1
----------------
bNumConfigurations is 1 - don't check for active configuration
Found packed config collection /usr/share/usb_modeswitch/configPack.tar.gz
Searching entries named: /usr/share/usb_modeswitch/12d1:1446*
Searching overriding entries named: /etc/usb_modeswitch.d/12d1:1446*
SCSI attributes not needed, move on.

Extract config 12d1:1446 from collection /usr/share/usb_modeswitch/configPack.tar.gz
config: TargetVendor set to 12d1
config: TargetProduct set to 1001,1406,140b,140c,1412,141b,1432,1433,1436,14ac,1506,150c,1511
Driver module is "option", ID path is /sys/bus/usb-serial/drivers/option1
! matched, now switching
Command to be run:
/usr/sbin/usb_modeswitch -W -D -s 20 -c /run/usb_modeswitch/current_cfg -u -1   -v 12d1 -p 1446 2>&1

Verbose debug output of usb_modeswitch and libusb follows
(Note that some USB errors are expected in the process)
--------------------------------

Read config file: /run/usb_modeswitch/current_cfg

 * 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= 0x1446
TargetVendor=   0x12d1
TargetProductList="1001,1406,140b,140c,1412,141b,1432,1433,1436,14ac,1506,150c,1511"
MessageContent="55534243123456780000000000000011062000000101000100000000000000"
NeedResponse=0
Success check enabled, max. wait time 20 seconds
System integration mode enabled

Look for target devices ...
  found USB ID 1d6b:0002
  found USB ID 1d6b:0001
  found USB ID 1d6b:0001
  found USB ID 12d1:1446
   vendor ID matched
  found USB ID 1d6b:0001
  found USB ID 1d6b:0001
 No devices in target mode or class found
Look for default devices ...
  found USB ID 1d6b:0002
  found USB ID 1d6b:0001
  found USB ID 1d6b:0001
  found USB ID 12d1:1446
   vendor ID matched
   product ID matched
  found USB ID 1d6b:0001
  found USB ID 1d6b:0001
 Found devices in default mode (1)
Access device 002 on bus 003
Use interface number 0
Use endpoints 0x01 (out) and 0x81 (in)

USB description data (for identification)
-------------------------
Manufacturer: HUAWEI Technology
     Product: HUAWEI Mobile
  Serial No.: not provided
-------------------------
Looking for active driver ...
 OK, driver detached
Set up interface 0
Use endpoint 0x01 for message sending ...
Trying to send message 1 to endpoint 0x01 ...
 OK, message successfully sent
Reset response endpoint 0x81
 Could not reset endpoint (probably harmless): -99
Reset message endpoint 0x01
 Could not reset endpoint (probably harmless): -99

Check for mode switch (max. 20 times, once per second) ...
 Search for target devices ...
  found USB ID 1d6b:0002
  found USB ID 1d6b:0001
  found USB ID 1d6b:0001
  found USB ID 1d6b:0001
  found USB ID 1d6b:0001
 Search for target devices ...
  found USB ID 1d6b:0002
  found USB ID 1d6b:0001
  found USB ID 1d6b:0001
  found USB ID 1d6b:0001
  found USB ID 1d6b:0001
 Search for target devices ...
  found USB ID 1d6b:0002
  found USB ID 1d6b:0001
  found USB ID 1d6b:0001
  found USB ID 1d6b:0001
  found USB ID 1d6b:0001
 Search for target devices ...
  found USB ID 1d6b:0002
  found USB ID 1d6b:0001
  found USB ID 1d6b:0001
  found USB ID 1d6b:0001
  found USB ID 1d6b:0001
 Search for target devices ...
  found USB ID 1d6b:0002
  found USB ID 1d6b:0001
  found USB ID 1d6b:0001
  found USB ID 1d6b:0001
  found USB ID 1d6b:0001
 Search for target devices ...
  found USB ID 12d1:14ac
   vendor ID matched
   product ID matched
  found USB ID 1d6b:0002
  found USB ID 1d6b:0001
  found USB ID 1d6b:0001
  found USB ID 1d6b:0001
  found USB ID 1d6b:0001

Found target device, open it

Found target device 003 on bus 003

Target device description data
-------------------------
Manufacturer: HUAWEI Technology
     Product: HUAWEI Mobile
  Serial No.: not provided
-------------------------
 Found correct target device

Mode switch succeeded. Bye!

ok:no_data
--------------------------------
(end of usb_modeswitch output)
Check success of mode switch for max. 20 seconds ... Read attributes ...
USB dir exists: /sys/bus/usb/devices/3-2
Warning: USB attribute "serial" not readable.
 All attributes matched
Mode switching was successful, found 12d1:14ac (HUAWEI Technology: HUAWEI Mobile)Now check for bound driver ...
 no driver has bound to interface 0 yet
Device not in "bind_list" yet, bind it now
Module loader is /sbin/modprobe
Module is active already
Try to add ID to driver "option"
 ID added to driver; check for new devices in /dev
 driver binding failed
Check for AVOID_RESET_QUIRK kernel attribute
 AVOID_RESET_QUIRK activated

All done, exit
Can someone help me please?

LOM
Posts: 1404
Joined: 11 Jul 2012, 15:14
Location: Koh Samui, TH

Re: Huawei E1550 HSDPA modem switching issue in Lubuntu 14.0

Post by LOM » 28 Apr 2014, 08:43

gandhig wrote:The subject modem was working properly in Ubuntu 10.04.3 LTS. I'm unable to properly set it up in Lubuntu 14.04. I have the latest version 2.1.1 installed along with the latest data package. I have listed the syslog and usb_modeswitch logs below

Syslog:

Code: Select all

Apr 27 18:57:09 sathish-VT8601 kernel: [  805.794046] usb 3-2: New USB device found, idVendor=12d1, idProduct=1446
.
.
Apr 27 18:57:11 sathish-VT8601 usb_modeswitch: switch device 12d1:1446 on 003/002
Apr 27 18:57:11 sathish-VT8601 kernel: [  807.689850] usb 3-2: USB disconnect, device number 2
.
.
Apr 27 18:57:16 sathish-VT8601 kernel: [  812.661066] usb 3-2: New USB device found, idVendor=12d1, idProduct=14ac
[/quote]

I can't see any usb_modeswitch problem here, the dongle does switch from 12d1:1446 to 12d1:14ac as it should do.

gandhig
Posts: 6
Joined: 27 Apr 2014, 17:08

Re: Huawei E1550 HSDPA modem switching issue in Lubuntu 14.0

Post by gandhig » 28 Apr 2014, 13:26

Thanks for the reply.

It does switch to modem mode but I guess, not in a proper way to get listed as a device in the 'network connections' for setting up a mobile broadband connection. I will attach the syslog for the same device, mode-switching in Ubuntu 10.04 later today. IIRC there were no warnings or driver binding problems in 10.04. Unfortunately no usb_modeswitch logs are available for the old version for comparison.

LOM
Posts: 1404
Joined: 11 Jul 2012, 15:14
Location: Koh Samui, TH

Re: Huawei E1550 HSDPA modem switching issue in Lubuntu 14.0

Post by LOM » 28 Apr 2014, 14:53

Your dmesg clearly shows the option driver attaching to interfaces 0 ,3, and 4 creating /dev/ttyUSB0..2 , and qmi_wwan + cdc_wdm attaching to interfaces 1 and 2.

usb_modeswitch will tell the system to load the serial drivers if they are not loaded before, it is a system call/request and usb_modeswitch has no control over how long time it takes for the system to service the request. It has done what it should do, switched the dongle and requested driver loading.

What kind of USB port is the dongle connected to?
The E1550 is a USB 2.0 device so should not had used the USB 1.1 uhci driver.

gandhig
Posts: 6
Joined: 27 Apr 2014, 17:08

Re: Huawei E1550 HSDPA modem switching issue in Lubuntu 14.0

Post by gandhig » 28 Apr 2014, 19:55

Sorry my knowledge is limited. Then, whether the problem lies with the modem manager or kernel? BTW, the PC I'm trying is very old and doesn't have USB2.0 only 1.1. Anyway I tried it with a PCI USB2.0 card, stil the issue persists. I have attached the system log of 10.04(Live USB) where the modem gets listed in the 'network connections' and connect to internet.

Code: Select all

Apr 28 17:10:22 ubuntu kernel: [ 2838.812085] usb 1-3: new high speed USB device using ehci_hcd and address 5
Apr 28 17:10:22 ubuntu kernel: [ 2838.957963] usb 1-3: configuration #1 chosen from 1 choice
Apr 28 17:10:22 ubuntu kernel: [ 2838.967188] scsi5 : SCSI emulation for USB Mass Storage devices
Apr 28 17:10:22 ubuntu kernel: [ 2838.980779] usb-storage: device found at 5
Apr 28 17:10:22 ubuntu kernel: [ 2838.980791] usb-storage: waiting for device to settle before scanning
Apr 28 17:10:22 ubuntu kernel: [ 2838.993136] scsi6 : SCSI emulation for USB Mass Storage devices
Apr 28 17:10:22 ubuntu kernel: [ 2839.004412] usb-storage: device found at 5
Apr 28 17:10:22 ubuntu kernel: [ 2839.004424] usb-storage: waiting for device to settle before scanning
Apr 28 17:10:24 ubuntu usb-modeswitch: switching 12d1:1446 (HUAWEI Technology: HUAWEI Mobile)
Apr 28 17:10:24 ubuntu kernel: [ 2840.627158] usb 1-3: USB disconnect, address 5
Apr 28 17:10:29 ubuntu kernel: [ 2845.756081] usb 1-3: new high speed USB device using ehci_hcd and address 6
Apr 28 17:10:29 ubuntu kernel: [ 2845.901487] usb 1-3: configuration #1 chosen from 1 choice
Apr 28 17:10:29 ubuntu kernel: [ 2845.944445] scsi7 : SCSI emulation for USB Mass Storage devices
Apr 28 17:10:29 ubuntu kernel: [ 2845.952008] usb-storage: device found at 6
Apr 28 17:10:29 ubuntu kernel: [ 2845.952139] usb-storage: waiting for device to settle before scanning
Apr 28 17:10:29 ubuntu kernel: [ 2845.970609] scsi8 : SCSI emulation for USB Mass Storage devices
Apr 28 17:10:29 ubuntu kernel: [ 2845.984138] usb-storage: device found at 6
Apr 28 17:10:29 ubuntu kernel: [ 2845.984152] usb-storage: waiting for device to settle before scanning
Apr 28 17:10:30 ubuntu kernel: [ 2846.244733] usbcore: registered new interface driver usbserial
Apr 28 17:10:30 ubuntu kernel: [ 2846.247866] USB Serial support registered for generic
Apr 28 17:10:30 ubuntu kernel: [ 2846.252148] usbcore: registered new interface driver usbserial_generic
Apr 28 17:10:30 ubuntu kernel: [ 2846.252164] usbserial: USB Serial Driver core
Apr 28 17:10:30 ubuntu kernel: [ 2846.392961] USB Serial support registered for GSM modem (1-port)
Apr 28 17:10:30 ubuntu kernel: [ 2846.395847] option 1-3:1.0: GSM modem (1-port) converter detected
Apr 28 17:10:30 ubuntu kernel: [ 2846.403560] usb 1-3: GSM modem (1-port) converter now attached to ttyUSB0
Apr 28 17:10:30 ubuntu kernel: [ 2846.405745] option 1-3:1.1: GSM modem (1-port) converter detected
Apr 28 17:10:30 ubuntu kernel: [ 2846.411191] usb 1-3: GSM modem (1-port) converter now attached to ttyUSB1
Apr 28 17:10:30 ubuntu kernel: [ 2846.411313] option 1-3:1.2: GSM modem (1-port) converter detected
Apr 28 17:10:30 ubuntu kernel: [ 2846.417207] usb 1-3: GSM modem (1-port) converter now attached to ttyUSB2
Apr 28 17:10:30 ubuntu kernel: [ 2846.417348] option 1-3:1.3: GSM modem (1-port) converter detected
Apr 28 17:10:30 ubuntu kernel: [ 2846.419222] usb 1-3: GSM modem (1-port) converter now attached to ttyUSB3
Apr 28 17:10:30 ubuntu kernel: [ 2846.419424] usbcore: registered new interface driver option
Apr 28 17:10:30 ubuntu kernel: [ 2846.419432] option: v0.7.2:USB Driver for GSM modems
Apr 28 17:10:30 ubuntu modem-manager: (Huawei): (ttyUSB2) deferring support check
Apr 28 17:10:30 ubuntu modem-manager: (Huawei): (ttyUSB1) deferring support check
Apr 28 17:10:30 ubuntu modem-manager: (Huawei): (ttyUSB3) deferring support check
Apr 28 17:10:30 ubuntu modem-manager: (ttyUSB0) opening serial device...
Apr 28 17:10:30 ubuntu modem-manager: (ttyUSB0): probe requested by plugin 'Huawei'
Apr 28 17:10:30 ubuntu usb-modeswitch: switched to 12d1:14ac (HUAWEI Technology: HUAWEI Mobile)
Apr 28 17:10:33 ubuntu modem-manager: (ttyUSB2): re-checking support...
Apr 28 17:10:33 ubuntu modem-manager: (Huawei): (ttyUSB2) deferring support check
Apr 28 17:10:33 ubuntu modem-manager: (ttyUSB1): re-checking support...
Apr 28 17:10:33 ubuntu modem-manager: (Huawei): (ttyUSB1) deferring support check
Apr 28 17:10:33 ubuntu modem-manager: (ttyUSB3): re-checking support...
Apr 28 17:10:33 ubuntu modem-manager: (Huawei): (ttyUSB3) deferring support check
Apr 28 17:10:34 ubuntu kernel: [ 2850.953558] usb-storage: device scan complete
Apr 28 17:10:34 ubuntu kernel: [ 2850.955569] scsi 7:0:0:0: CD-ROM            HUAWEI   Mass Storage     2.31 PQ: 0 ANSI: 2
Apr 28 17:10:34 ubuntu kernel: [ 2850.983809] sr2: scsi-1 drive
Apr 28 17:10:34 ubuntu kernel: [ 2850.991491] sr 7:0:0:0: Attached scsi CD-ROM sr2
Apr 28 17:10:34 ubuntu kernel: [ 2850.992359] sr 7:0:0:0: Attached scsi generic sg3 type 5
Apr 28 17:10:34 ubuntu kernel: [ 2851.012227] usb-storage: device scan complete
Apr 28 17:10:34 ubuntu kernel: [ 2851.015557] scsi 8:0:0:0: Direct-Access     HUAWEI   MMC Storage      2.31 PQ: 0 ANSI: 2
Apr 28 17:10:34 ubuntu kernel: [ 2851.029121] sd 8:0:0:0: Attached scsi generic sg4 type 0
Apr 28 17:10:34 ubuntu kernel: [ 2851.057867] sd 8:0:0:0: [sdc] Attached SCSI removable disk
Apr 28 17:10:35 ubuntu modem-manager: (ttyUSB0) closing serial device...
Apr 28 17:10:35 ubuntu modem-manager: (Huawei): GSM modem /sys/devices/pci0000:00/0000:00:0a.2/usb1/1-3 claimed port ttyUSB0
Apr 28 17:10:35 ubuntu modem-manager: Added modem /sys/devices/pci0000:00/0000:00:0a.2/usb1/1-3
Apr 28 17:10:35 ubuntu modem-manager: Exported modem /sys/devices/pci0000:00/0000:00:0a.2/usb1/1-3 as /org/freedesktop/ModemManager/Modems/0
Apr 28 17:10:36 ubuntu NetworkManager: <info>  (ttyUSB0): new GSM device (driver: 'option1')
Apr 28 17:10:36 ubuntu NetworkManager: <info>  (ttyUSB0): exported as /org/freedesktop/NetworkManager/Devices/1
Apr 28 17:10:36 ubuntu NetworkManager: <info>  (ttyUSB0): now managed
Apr 28 17:10:36 ubuntu NetworkManager: <info>  (ttyUSB0): device state change: 1 -> 2 (reason 2)
Apr 28 17:10:36 ubuntu NetworkManager: <info>  (ttyUSB0): deactivating device (reason: 2).
Apr 28 17:10:36 ubuntu NetworkManager: <info>  (ttyUSB0): device state change: 2 -> 3 (reason 0)
Apr 28 17:10:36 ubuntu modem-manager: (ttyUSB2): re-checking support...
Apr 28 17:10:36 ubuntu modem-manager: (ttyUSB2) opening serial device...
Apr 28 17:10:36 ubuntu modem-manager: (ttyUSB1): re-checking support...
Apr 28 17:10:36 ubuntu modem-manager: (ttyUSB1) opening serial device...
Apr 28 17:10:36 ubuntu modem-manager: (ttyUSB3): re-checking support...
Apr 28 17:10:36 ubuntu modem-manager: (ttyUSB3) opening serial device...
Apr 28 17:10:40 ubuntu modem-manager: (ttyUSB3) closing serial device...
Apr 28 17:10:40 ubuntu modem-manager: (Huawei): GSM modem /sys/devices/pci0000:00/0000:00:0a.2/usb1/1-3 claimed port ttyUSB3
Apr 28 17:10:41 ubuntu modem-manager: (ttyUSB2) closing serial device...
Apr 28 17:10:41 ubuntu modem-manager: (ttyUSB1) closing serial device...
Apr 28 17:10:41 ubuntu modem-manager: (ttyUSB2) opening serial device...
Apr 28 17:10:41 ubuntu modem-manager: (ttyUSB2): probe requested by plugin 'Generic'
Apr 28 17:10:41 ubuntu modem-manager: (ttyUSB1) opening serial device...
Apr 28 17:10:41 ubuntu modem-manager: (ttyUSB1): probe requested by plugin 'Generic'
Apr 28 17:10:46 ubuntu kernel: [ 2862.955454] ISO 9660 Extensions: Microsoft Joliet Level 3
Apr 28 17:10:46 ubuntu kernel: [ 2862.958595] ISOFS: changing to secondary root
Apr 28 17:10:54 ubuntu modem-manager: (ttyUSB2) closing serial device...
Apr 28 17:10:55 ubuntu modem-manager: (ttyUSB1) closing serial device...

LOM
Posts: 1404
Joined: 11 Jul 2012, 15:14
Location: Koh Samui, TH

Re: Huawei E1550 HSDPA modem switching issue in Lubuntu 14.0

Post by LOM » 29 Apr 2014, 04:37

Ubuntu 10.04 is using an old kernel and old drivers which for your dongle only had ppp dialup support over serial port, later kernels has direct ethernet support through the qmi_wwan and cdc_wdm drivers which creates a wwan0 ethernet data device and a cdc-wdm0 device for commands.

Check if there is a NetworkManager update for your lubuntu 14.04 and update to kernel 3.14 if you are on 3.13.
If it still doesn't work then file a bug report for the lubuntu maintainers.

gandhig
Posts: 6
Joined: 27 Apr 2014, 17:08

Re: Huawei E1550 HSDPA modem switching issue in Lubuntu 14.0

Post by gandhig » 29 Apr 2014, 08:39

Ok, thanks a lot. I will try that later today and revert back.

gandhig
Posts: 6
Joined: 27 Apr 2014, 17:08

Re: Huawei E1550 HSDPA modem switching issue in Lubuntu 14.0

Post by gandhig » 01 May 2014, 20:44

Even after updrading kernel from 3.13 to 3.14 also, the modem is not getting listed in the network connections. The network manager is also the latest version (0.9.8.8.0) for trusty. One thing is the E1550 model is listed as 'supported' in the Network Manager Gnome wiki which has the version as 0.9.8.10. It is available for archlinux distro, but I don't know whether upgrading will really help. I guess I will file a bug report.

gandhig
Posts: 6
Joined: 27 Apr 2014, 17:08

Re: Huawei E1550 HSDPA modem switching issue in Lubuntu 14.0

Post by gandhig » 11 May 2014, 16:30

Just wanted to update that I'm able to connect using wvdial, but not through Network Manager. When I run the 'nm-tool' command, I get the following:

NetworkManager Tool

State: disconnected

- Device: cdc-wdm0 -------------------------------------------------------------
Type: Mobile Broadband (GSM)
Driver: option1, qmi_wwan
State: disconnected
Default: no

Capabilities:

But I don't understand why it is not getting reflected in the 'network connections'. Anyway wvdial will do for now.

Post Reply