Automatic Activation, Hotplug and UDEV, Configuration
Post Reply
dgthanhan
Posts: 2
Joined: 20 May 2010, 17:59

Huawei E1750 on Fedora 12 not switched

Post by dgthanhan » 20 May 2010, 18:10

Hello,

I have been struggling with this issue and found no solution. Please help.

I have a Huawei E1750 HSPA USB Stick which works perfectly on Windows and Ubuntu 10.04 (usb_modeswitch 1.1.0)

I tried to get it work on my laptop running Fedora 12.

I have tried installing usb_modeswitch from the official repo and from source (the latest 1.1.2) but can't get it worked.

My 12d1:1146 (in /etc/usb_modeswitch.d/):

Code: Select all

DefaultVendor= 0x12d1
DefaultProduct=0x1446

TargetVendor=  0x12d1
TargetProductList="1001,1406,140c,141b,14ac"

CheckSuccess=20

MessageContent="55534243123456780000000000000011060000000000000000000000000000"
/var/log/message When plugging in the USB

Code: Select all

May 20 22:52:25 an kernel: usb 1-1: new high speed USB device using ehci_hcd and address 8
May 20 22:52:25 an kernel: usb 1-1: New USB device found, idVendor=12d1, idProduct=1446
May 20 22:52:25 an kernel: usb 1-1: New USB device strings: Mfr=3, Product=2, SerialNumber=0
May 20 22:52:25 an kernel: usb 1-1: Product: HUAWEI Mobile
May 20 22:52:25 an kernel: usb 1-1: Manufacturer: HUAWEI Technology
May 20 22:52:25 an kernel: usb 1-1: configuration #1 chosen from 1 choice
May 20 22:52:25 an kernel: scsi14 : SCSI emulation for USB Mass Storage devices
May 20 22:52:25 an kernel: scsi15 : SCSI emulation for USB Mass Storage devices
May 20 22:52:27 an usb_modeswitch: switching 12d1:1446 (HUAWEI Technology: HUAWEI Mobile)
May 20 22:52:30 an kernel: scsi 15:0:0:0: Direct-Access     HUAWEI   SD Storage       2.31 PQ: 0 ANSI: 2
May 20 22:52:30 an kernel: sd 15:0:0:0: Attached scsi generic sg1 type 0
May 20 22:52:30 an kernel: sd 15:0:0:0: [sdb] Attached SCSI removable disk
usb_modeswitch log:

Code: Select all

USB_ModeSwitch log from Thu May 20 22:52:26 ICT 2010

Using global config file: /etc/usb_modeswitch.conf
raw args from udev: /1-1:1.0
Bus ID for device not given by udev.
 Trying to determine it from kernel name (1-1:1.0) ...
USB dir exists: /sys/bus/usb/devices/1-1
Warning: USB attribute "serial" not found.
----------------
USB values from sysfs:
  manufacturer	HUAWEI Technology
  product	HUAWEI Mobile
  serial	
----------------
SCSI attributes not needed, moving on
checking config: /etc/usb_modeswitch.d/12d1:1446
! matched, now switching
 (running command: /usr/sbin/usb_modeswitch -I -W -c /etc/usb_modeswitch.d/12d1:1446)

verbose output of usb_modeswitch:
--------------------------------
usb_set_debug: Setting debugging level to 15 (on)
usb_os_find_busses: Found 004
usb_os_find_busses: Found 003
usb_os_find_busses: Found 002
usb_os_find_busses: Found 001
usb_os_find_devices: Found 001 on 004
usb_os_find_devices: Found 002 on 003
skipped 1 class/vendor specific interface descriptors
usb_os_find_devices: Found 001 on 003
error obtaining child information: Inappropriate ioctl for device
usb_os_find_devices: Found 001 on 002
usb_os_find_devices: Found 008 on 001
usb_os_find_devices: Found 001 on 001
error obtaining child information: Inappropriate ioctl for device
USB error: could not get bound driver: No data available
Reading config file: /etc/usb_modeswitch.d/12d1:1446

 * usb-modeswitch: handle USB devices with multiple modes
 * Version 1.1.2alpha (C) Josua Dietze 2010
 * Based on libusb0 (0.1.12 and above)

 ! PLEASE REPORT NEW CONFIGURATIONS !

DefaultVendor=  0x12d1
DefaultProduct= 0x1446
TargetVendor=   0x12d1
TargetProduct=  not set
TargetProductList=1001,1406,140c,141b,14ac
TargetClass=    not set

DetachStorageOnly=0
HuaweiMode=0
SierraMode=0
SonyMode=0
GCTMode=0
MessageEndpoint= not set
MessageContent="55534243123456780000000000000011060000000000000000000000000000"
NeedResponse=0
ResponseEndpoint= not set
Interface=0x00

InquireDevice disabled
Success check enabled, max. wait time 20 seconds
System integration mode enabled


Looking for target devices ...
  searching devices, found USB ID 1d6b:0001
  searching devices, found USB ID 192f:0116
  searching devices, found USB ID 1d6b:0001
  searching devices, found USB ID 1d6b:0001
  searching devices, found USB ID 12d1:1446
   found matching vendor ID
  searching devices, found USB ID 1d6b:0002
 No devices in target mode or class found
Looking for default devices ...
  searching devices, found USB ID 1d6b:0001
  searching devices, found USB ID 192f:0116
  searching devices, found USB ID 1d6b:0001
  searching devices, found USB ID 1d6b:0001
  searching devices, found USB ID 12d1:1446
   found matching vendor ID
   found matching product ID
   adding device
  searching devices, found USB ID 1d6b:0002
 Found devices in default mode or class (1)
Accessing device 008 on bus 001 ...

USB description data (for identification)
-------------------------
Manufacturer: HUAWEI Technology
     Product: HUAWEI Mobile
  Serial No.: not provided
-------------------------
Looking for active driver ...
 No driver found. Either detached before or never attached
Setting up communication with interface 0 ...
Using endpoint 0x01 for message sending ...
Trying to send message 1 to endpoint 0x01 ...
 Sending the message returned error -110. Trying to continue

Checking for mode switch (max. 20 times, once per second) ...
 Waiting for original device to vanish ...
 Waiting for original device to vanish ...
 Waiting for original device to vanish ...
 Waiting for original device to vanish ...
 Waiting for original device to vanish ...
 Waiting for original device to vanish ...
 Waiting for original device to vanish ...
 Waiting for original device to vanish ...
 Waiting for original device to vanish ...
 Waiting for original device to vanish ...
 Waiting for original device to vanish ...
 Waiting for original device to vanish ...
 Waiting for original device to vanish ...
 Waiting for original device to vanish ...
 Waiting for original device to vanish ...
 Waiting for original device to vanish ...
 Waiting for original device to vanish ...
 Waiting for original device to vanish ...
 Waiting for original device to vanish ...
 Waiting for original device to vanish ...
 Original device still present after the timeout

Mode switch most likely failed. Bye.

fail:
--------------------------------
(end of usb_modeswitch output)


All done, exiting
Could someone please help!

Many thanks

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

Post by Josh » 20 May 2010, 19:33

There may be a wrong rule for this ID in
/lib/udev/rules.d/61-option-modem-modeswitch.rules

If you find it, disable it by putting a comment sign ('#') in front of it.

dgthanhan
Posts: 2
Joined: 20 May 2010, 17:59

Post by dgthanhan » 20 May 2010, 19:57

Josh wrote:There may be a wrong rule for this ID in
/lib/udev/rules.d/61-option-modem-modeswitch.rules

If you find it, disable it by putting a comment sign ('#') in front of it.
Found it!
After commenting the line out. It works damn well and I'm posting this message using 3G!

Thank you very much for your help and your great work on usb_modeswitch.

/an

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

Post by Josh » 20 May 2010, 22:31

Thanks for the thanks 8)

These wrong rules will hopefully go away in the future. They are not longer part of the udev development tree, but it takes a while for distributions to pick up.


Post Reply