Automatic Activation, Hotplug and UDEV, Configuration
Post Reply
matkor
Posts: 2
Joined: 13 Oct 2010, 13:19

Huawei E175 and Config file missing for 12d1:1446! Exiting

Post by matkor » 13 Oct 2010, 15:40

Hi !
I packaged and installed recent:
usb-modeswitch-1.1.4-0.1.i686
usb-modeswitch-data-20100826-0.9.noarch

and after insertion of Huawei E175 I see error in logs[1], while manual switch seems to work [2].

So:
1) What I am doing wrong (how can I make insertion of dongle automaticly showing
usb 1-4: GSM modem (1-port) converter now attached to ttyUSB0) ?

2) Is it possible to package usb-modeswitch such way (without any editing of config files), so it automaticly detects currently inserted usb device being gsm modem and runs apropriate "switch" procedure, without need of generating /etc/usb_modeswitch.conf ?

TIA for any hints, big thanks for that greate software and regards,
MMK


[1]:
USB_ModeSwitch log from Wed Oct 13 15:26:14 CEST 2010

Using global config file: /etc/usb_modeswitch.conf
raw args from udev: /1-4:1.0
Bus ID for device not given by udev.
Trying to determine it from kernel name (1-4:1.0) ...
USB dir exists: /sys/bus/usb/devices/1-4
Warning: USB attribute "serial" not found.
----------------
USB values from sysfs:
manufacturer HUAWEI Technology
product HUAWEI Mobile
serial
----------------
Aargh! Config file missing for 12d1:1446! Exiting


Device is (Huawei E175 :
Bus 001 Device 031: ID 12d1:1446 Huawei Technologies Co., Ltd.


[2]:
[root@laptop-hp ~]# usb_modeswitch --verbose --config-file /etc/usb_modeswitch.conf
Reading config file: /etc/usb_modeswitch.conf
* usb_modeswitch: handle USB devices with multiple modes
* Version 1.1.4 (C) Josua Dietze 2010
* Based on libusb0 (0.1.12 and above)

! PLEASE REPORT NEW CONFIGURATIONS !

DefaultVendor= 0x12d1
DefaultProduct= 0x1446
TargetVendor= 0x12d1
TargetProduct= 0x1001
TargetClass= not set
TargetProductList=""

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

InquireDevice enabled (default)
Success check disabled
System integration mode disabled


Looking for target devices ...
searching devices, found USB ID 1d6b:0002
searching devices, found USB ID 12d1:1446
found matching vendor ID
searching devices, found USB ID 1d6b:0001
searching devices, found USB ID 046d:c312
searching devices, found USB ID 03f0:171d
searching devices, found USB ID 1d6b:0001
searching devices, found USB ID 04f3:0210
No devices in target mode or class found
Looking for default devices ...
searching devices, found USB ID 1d6b:0002
searching devices, found USB ID 12d1:1446
found matching vendor ID
found matching product ID
adding device
searching devices, found USB ID 1d6b:0001
searching devices, found USB ID 046d:c312
searching devices, found USB ID 03f0:171d
searching devices, found USB ID 1d6b:0001
searching devices, found USB ID 04f3:0210
Found devices in default mode or class (1)
Accessing device 031 on bus 001 ...
Using endpoints 0x01 (out) and 0x81 (in)
Using endpoints 0x01 (out) and 0x81 (in)
Inquiring device details; driver will be detached ...
Looking for active driver ...
OK, driver found ("dummy")
OK, driver "dummy" detached

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

USB description data (for identification)
-------------------------
Manufacturer: HUAWEI Technology
Product: HUAWEI Mobile
Serial No.: not provided
-------------------------
Setting up communication with interface 0 ...
Using endpoint 0x01 for message sending ...
Trying to send message 1 to endpoint 0x01 ...
OK, message successfully sent
Resetting response endpoint 0x81
libusb:error [op_clear_halt] clear_halt failed error -1 errno 71
Error resetting endpoint: -34
Resetting message endpoint 0x01
Error resetting endpoint: -6
Device is gone, skipping any further commands
-> Run lsusb to note any changes. Bye.

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

Post by Josh » 13 Oct 2010, 20:15

Hmm, something is probably missing in your installation.

Check if you have a folder "/etc/usb_modeswitch.d" with lots of little config files in it. One should be named "12d1:1446".

matkor
Posts: 2
Joined: 13 Oct 2010, 13:19

Post by matkor » 13 Oct 2010, 22:03

Josh wrote:Hmm, something is probably missing in your installation.
Check if you have a folder "/etc/usb_modeswitch.d" with lots of little config files in it. One should be named "12d1:1446".
Great point !
I was not doing:
%{__make} db-install

Now everything works excellent !
Big thanks !

Post Reply