I'm having a hard time finding any mention of this device connected to a linux box in google, and I can't get it to work myself. any help would be appreciated.
With a default usb_modeswitch except for the logging option and with options usb-storage delay_use=10
this is what I get.
Code: Select all
Use global config file: /etc/usb_modeswitch.conf
Started via systemd
Adjust delay for USB storage devices ...
Current value is higher or equal to -1620437934. Leave it alone
Raw args from udev: 2-2:1.0
Bus ID for device not given by udev.
Trying to determine it from kernel name (2-2:1.0) ...
Use top device dir /sys/bus/usb/devices/2-2
USB dir exists: /sys/bus/usb/devices/2-2
Warning: USB attribute "serial" not readable.
SCSI dir exists: /sys/bus/usb/devices/2-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/2-2/2-2:1.0
----------------
USB values from sysfs:
idVendor 12d1
idProduct 1c20
manufacturer HUAWEI_MOBILE
product HUAWEI_MOBILE
serial (null)
bNumConfigurations 1
bConfigurationValue 1
devnum 2
busnum 2
----------------
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:1c20*
Searching overriding entries named: /etc/usb_modeswitch.d/12d1:1c20*
SCSI attributes not needed, move on.
Aargh! Config file missing for 12d1:#linux! Exiting.Code: Select all
Bus 002 Device 002: ID 12d1:1c20 Huawei Technologies Co., Ltd. R205 Mobile WiFi (Charging)
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.10
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x12d1 Huawei Technologies Co., Ltd.
idProduct 0x1c20 R205 Mobile WiFi (Charging)
bcdDevice 1.02
iManufacturer 1 HUAWEI_MOBILE
iProduct 2 HUAWEI_MOBILE
iSerial 0
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 32
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0x80
(Bus Powered)
MaxPower 2mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 8 Mass Storage
bInterfaceSubClass 6 SCSI
bInterfaceProtocol 80 Bulk-Only
iInterface 4 Mass Storage
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x01 EP 1 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 1
Binary Object Store Descriptor:
bLength 5
bDescriptorType 15
wTotalLength 22
bNumDeviceCaps 2
USB 2.0 Extension Device Capability:
bLength 7
bDescriptorType 16
bDevCapabilityType 2
bmAttributes 0x00000002
Link Power Management (LPM) Supported
SuperSpeed USB Device Capability:
bLength 10
bDescriptorType 16
bDevCapabilityType 3
bmAttributes 0x00
wSpeedsSupported 0x000f
Device can operate at Low Speed (1Mbps)
Device can operate at Full Speed (12Mbps)
Device can operate at High Speed (480Mbps)
Device can operate at SuperSpeed (5Gbps)
bFunctionalitySupport 1
Lowest fully-functional device speed is Full Speed (12Mbps)
bU1DevExitLat 1 micro seconds
bU2DevExitLat 500 micro seconds
Device Status: 0x0001
Self PoweredDefaultVendor= 0x12d1
DefaultProduct= 0x1c20
HuaweiNewMode=1
#MessageContent="55534243123456780000000000000011062000000100000000000000000000"
I played around with a few variations, now i get
Code: Select all
Bus 002 Device 002: ID 12d1:1c20 Huawei Technologies Co., Ltd. R205 Mobile WiFi (Charging)
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.10
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x12d1 Huawei Technologies Co., Ltd.
idProduct 0x1c20 R205 Mobile WiFi (Charging)
bcdDevice 1.02
iManufacturer 1 HUAWEI_MOBILE
iProduct 2 HUAWEI_MOBILE
iSerial 0
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 32
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0x80
(Bus Powered)
MaxPower 2mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 8 Mass Storage
bInterfaceSubClass 6 SCSI
bInterfaceProtocol 80 Bulk-Only
iInterface 4 Mass Storage
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x01 EP 1 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 1
Binary Object Store Descriptor:
bLength 5
bDescriptorType 15
wTotalLength 22
bNumDeviceCaps 2
USB 2.0 Extension Device Capability:
bLength 7
bDescriptorType 16
bDevCapabilityType 2
bmAttributes 0x00000002
Link Power Management (LPM) Supported
SuperSpeed USB Device Capability:
bLength 10
bDescriptorType 16
bDevCapabilityType 3
bmAttributes 0x00
wSpeedsSupported 0x000f
Device can operate at Low Speed (1Mbps)
Device can operate at Full Speed (12Mbps)
Device can operate at High Speed (480Mbps)
Device can operate at SuperSpeed (5Gbps)
bFunctionalitySupport 1
Lowest fully-functional device speed is Full Speed (12Mbps)
bU1DevExitLat 1 micro seconds
bU2DevExitLat 500 micro seconds
Device Status: 0x0001
Self PoweredCode: Select all
Started via systemd
Adjust delay for USB storage devices ...
Current value is higher or equal to -1896503246. Leave it alone
Raw args from udev: 2-2:1.0
Bus ID for device not given by udev.
Trying to determine it from kernel name (2-2:1.0) ...
Use top device dir /sys/bus/usb/devices/2-2
USB dir exists: /sys/bus/usb/devices/2-2
Warning: USB attribute "serial" not readable.
SCSI dir exists: /sys/bus/usb/devices/2-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/2-2/2-2:1.0
----------------
USB values from sysfs:
idVendor 12d1
idProduct 1c20
manufacturer HUAWEI_MOBILE
product HUAWEI_MOBILE
serial (null)
bNumConfigurations 1
bConfigurationValue 1
devnum 2
busnum 2
----------------
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:1c20*
Searching overriding entries named: /etc/usb_modeswitch.d/12d1:1c20*
SCSI attributes not needed, move on.
Use overriden config 12d1:1c20 from collection /etc/usb_modeswitch.d
Driver module is "option", ID path is /sys/bus/usb-serial/drivers/option1
! matched, now switching
Unbinding driver
Command to be run:
/usr/sbin/usb_modeswitch -W -D -s 20 -c /etc/usb_modeswitch.d/12d1:1c20 -u -1 -b 2 -g 2 -v 12d1 -p 1c20 2>&1
Verbose debug output of usb_modeswitch and libusb follows
(Note that some USB errors are expected in the process)
--------------------------------
Read config file: /etc/usb_modeswitch.d/12d1:1c20
* usb_modeswitch: handle USB devices with multiple modes
* Version 2.2.5 (C) Josua Dietze 2015
* Based on libusb1/libusbx
! PLEASE REPORT NEW CONFIGURATIONS !
DefaultVendor= 0x12d1
DefaultProduct= 0x1c20
HuaweiNewMode=1
NeedResponse=0
Success check enabled, max. wait time 20 seconds
System integration mode enabled
Use given bus/device number: 002/002 ...
Note: No target parameter given; success check limited
Look for default devices ...
bus/device number matched
found USB ID 12d1:1c20
vendor ID matched
product ID matched
Found devices in default mode (1)
Use interface number 0
se endpoints 0x01 (out) and 0x81 (in)
USB description data (for identification)
-------------------------
Manufacturer: HUAWEI_MOBILE
Product: HUAWEI_MOBILE
Serial No.: not provided
-------------------------
Using standard Huawei switching message
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
Reset message endpoint 0x01
ok:busdev
--------------------------------
(end of usb_modeswitch output)
Check success of mode switch for max. 20 seconds ... Read attributes ...
USB dir exists: /sys/bus/usb/devices/2-2
Warning: USB attribute "serial" not readable.
All attributes matched
Mode switching was successful, found 12d1:1c20 (HUAWEI_MOBILE: 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
Try to load module "option"
Module was loaded successfully: 0
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● ModemManager.service - Modem Manager
Loaded: loaded (/lib/systemd/system/ModemManager.service; enabled; vendor preset: enabled)
Active: active (running) since Thu 2015-12-10 23:16:05 AEDT; 6min ago
Main PID: 588 (ModemManager)
CGroup: /system.slice/ModemManager.service
└─588 /usr/sbin/ModemManager
Dec 10 23:15:56 kkcanberra-OptiPlex-780 systemd[1]: Starting Modem Manager...
Dec 10 23:15:58 kkcanberra-OptiPlex-780 ModemManager[588]: <info> ModemManager (version 1.4.10) starting in system bus...
Dec 10 23:16:05 kkcanberra-OptiPlex-780 systemd[1]: Started Modem Manager.
Dec 10 23:16:07 kkcanberra-OptiPlex-780 ModemManager[588]: <info> Couldn't find support for device at '/sys/devices/pci0000:00/0000:00:19.0': not supported by any plugin
Dec 10 23:16:23 kkcanberra-OptiPlex-780 ModemManager[588]: <info> Creating modem with plugin 'Generic' and '1' ports
Dec 10 23:16:23 kkcanberra-OptiPlex-780 ModemManager[588]: <warn> Could not grab port (tty/ttyS4): 'Cannot add port 'tty/ttyS4', unhandled serial type'
Dec 10 23:16:23 kkcanberra-OptiPlex-780 ModemManager[588]: <warn> Couldn't create modem for device at '/sys/devices/pci0000:00/0000:00:03.3': Failed to find primary AT port