Automatic Activation, Hotplug and UDEV, Configuration
Post Reply
Brett
Posts: 16777215
Joined: 21 Jul 2012, 03:37
Location: none
Contact:

huawie e173 centos5.8

Post by Brett » 21 Jul 2012, 03:59

Hi guys im desperatly trying to get my huawei e173 to work on my centos 5.8 box im very lost and cand seem to find the modem after its detected. here are my commands and the output i got from them.. hope someone can help

Code: Select all

Protocol spec without prior Class and Subclass spec at line 4297
Bus 002 Device 001: ID 0000:0000  
Bus 001 Device 003: ID 12d1:1c0b Huawei Technologies Co., Ltd. 
Bus 001 Device 001: ID 0000:0000  
Bus 003 Device 001: ID 0000:0000  
Bus 004 Device 001: ID 0000:0000  
Bus 005 Device 001: ID 0000:0000  
Bus 005 Device 002: ID 045e:006a Microsoft Corp. Wireless Optical Mouse (IntelliPoint)
[root@mybox ~]# 
[root@mybox ~]# usb_modeswitch -c /etc/usb_modeswitch.conf

Looking for target devices ...
 No devices in target mode or class found
Looking for default devices ...
   found matching product ID
   adding device
 Found device in default mode, class or configuration (1)
Accessing device 003 on bus 001 ...
Getting the current device configuration ...
 OK, got current device configuration (1)
Using first interface: 0x00
Using endpoints 0x0f (out) and 0x8f (in)
Inquiring device details; driver will be detached ...
Looking for active driver ...
 OK, driver found ("usb-storage")
 OK, driver "usb-storage" detached

SCSI inquiry data (for identification)
-------------------------
  Vendor String: HUAWEI  
   Model String: Mass Storage    
Revision String: 2.31
-------------------------

USB description data (for identification)
-------------------------
Manufacturer: HUAWEI
     Product: HUAWEI Mobile
  Serial No.: not provided
-------------------------
Setting up communication with interface 0
Using endpoint 0x0f for message sending ...
Trying to send message 1 to endpoint 0x0f ...
 OK, message successfully sent
Resetting response endpoint 0x8f
Resetting message endpoint 0x0f
 Could not reset endpoint (probably harmless): -71
 Device is gone, skipping any further commands

Checking for mode switch (max. 20 times, once per second) ...
 Searching for target devices ...
 Searching for target devices ...
 Searching for target devices ...
 Searching for target devices ...
 Searching for target devices ...
 Searching for target devices ...
 Searching for target devices ...
   found matching product ID
   adding device

Found target device, now opening
 Found correct target device

Mode switch succeeded. Bye.

[root@mybox ~]# 
[root@mybox ~]# dmesg
Linux version 2.6.18-308.el5 (mockbuild@builder10.centos.org) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-52)) #1 SMP Tue Feb 21 20:05:41 EST 2012

[mod edit: deleted lots of non-relevant lines]

usb 1-2: new high speed USB device using ehci_hcd and address 3
usb 1-2: configuration #1 chosen from 1 choice
scsi2 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 3
usb-storage: waiting for device to settle before scanning
scsi3 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 3
usb-storage: waiting for device to settle before scanning
  Vendor: HUAWEI    Model: Mass Storage      Rev: 2.31
  Type:   CD-ROM                             ANSI SCSI revision: 02
  Vendor: HUAWEI    Model: SD Storage        Rev: 2.31
  Type:   Direct-Access                      ANSI SCSI revision: 02
usb-storage: device scan complete
sd 3:0:0:0: Attached scsi removable disk sda
usb-storage: device scan complete
scsi 2:0:0:0: Attached scsi generic sg0 type 5
sd 3:0:0:0: Attached scsi generic sg1 type 0
sr0: scsi-1 drive
sr 2:0:0:0: Attached scsi CD-ROM sr0
ISO 9660 Extensions: Microsoft Joliet Level 1
ISOFS: changing to secondary root
atkbd.c: Unknown key released (translated set 2, code 0x81 on isa0060/serio0).
atkbd.c: Use 'setkeycodes e001 <keycode>' to make it known.
atkbd.c: Unknown key released (translated set 2, code 0x81 on isa0060/serio0).
atkbd.c: Use 'setkeycodes e001 <keycode>' to make it known.
atkbd.c: Unknown key released (translated set 2, code 0x81 on isa0060/serio0).
atkbd.c: Use 'setkeycodes e001 <keycode>' to make it known.
usb 1-2: usbfs: process 3571 (usb_modeswitch) did not claim interface 0 before use
scsi 2:0:0:0: rejecting I/O to dead device
usb 1-2: USB disconnect, address 3
usb 1-2: new high speed USB device using ehci_hcd and address 4
usb 1-2: configuration #1 chosen from 1 choice
scsi4 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 4
usb-storage: waiting for device to settle before scanning
scsi5 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 4
usb-storage: waiting for device to settle before scanning
  Vendor: HUAWEI    Model: Mass Storage      Rev: 2.31
  Type:   CD-ROM                             ANSI SCSI revision: 02
  Vendor: HUAWEI    Model: SD Storage        Rev: 2.31
  Type:   Direct-Access                      ANSI SCSI revision: 02
sd 5:0:0:0: Attached scsi removable disk sda
sd 5:0:0:0: Attached scsi generic sg0 type 0
usb-storage: device scan complete
sr0: scsi-1 drive
sr 4:0:0:0: Attached scsi CD-ROM sr0
sr 4:0:0:0: Attached scsi generic sg1 type 5
usb-storage: device scan complete
ISO 9660 Extensions: Microsoft Joliet Level 1
ISOFS: changing to secondary root
atkbd.c: Unknown key released (translated set 2, code 0x81 on isa0060/serio0).
atkbd.c: Use 'setkeycodes e001 <keycode>' to make it known.
atkbd.c: Unknown key released (translated set 2, code 0x81 on isa0060/serio0).
atkbd.c: Use 'setkeycodes e001 <keycode>' to make it known.
[root@mybox ~]# 
also this when try to active ate in network eth1

Code: Select all

Component: system-config-network
Version: 1.3.99.21
Summary: TB3c0e7198 GUI_functions.py:466:gui_run_dialog:AttributeError: 'NoneType' object has no attribute 'connect'

Traceback (most recent call last):
  File "/usr/share/system-config-network/netconfpkg/gui/maindialog.py", line 757, in on_activateButton_clicked
    self.activateButtonFunc[self.active_page](button)
  File "/usr/share/system-config-network/netconfpkg/gui/maindialog.py", line 974, in on_deviceActivateButton_clicked
    (status, txt) = dev.activate(dialog = self.dialog)
  File "/usr/share/system-config-network/netconfpkg/NCDevice.py", line 423, in activate
    dialog = dialog )
  File "/usr/share/system-config-network/netconfpkg/NC_functions.py", line 577, in generic_run_dialog
    dialog = dialog)
  File "/usr/share/system-config-network/netconfpkg/gui/GUI_functions.py", line 466, in gui_run_dialog
    dlg.connect( "delete-event", __on_Dialog_close )
AttributeError: 'NoneType' object has no attribute 'connect'

Local variables in innermost frame:
xml: <glade.XML object (PyGladeXML) at 0x8ac39dc>
stdin: 0
dlg: None
string: <module 'string' from '/usr/lib/python2.4/string.pyc'>
img: None
title: system-config-network:

Network device activating...
root: /
gtk: <module 'gtk' from '/usr/lib/python2.4/site-packages/gtk-2.0/gtk/__init__.pyc'>
command: /sbin/ifup
CancelException: netconfpkg.gui.GUI_functions.CancelException
label: Activating network device eth1, please wait...
catchfd: (1, 2)
searchPath: 0
argv: ['/sbin/ifup', 'eth1', 'up']
closefd: -1
dialog: <gnome.ui.App object (GnomeApp) at 0x8892e3c>
swindow: None
os: <module 'os' from '/usr/lib/python2.4/os.pyc'>
lbl: None
select: <module 'select' from '/usr/lib/python2.4/lib-dynload/selectmodule.so'>
errlabel: Cannot activate network device eth1!
Please Guys im so lost really need to be pointed in the right direction

Josh
Site Admin
Posts: 6593
Joined: 03 Nov 2007, 00:30

Post by Josh » 21 Jul 2012, 19:00

I recommend installing both usb-modeswitch and usb-modeswitch-data from the source packages available from here. Some backward compatibility is built in, but your system is very dated.

First try if it works out-of-the-box when plugging your modem in. Don't run anything manually and don't put device configuration into /etc/usb_modeswitch.conf. It's now a global configuration file.

If nothing happens at all, enable usb_modeswitch's logging as described on the main doc page, paragraph "Troubleshooting".


Post Reply