結果,我改id 1406為 1401 好像也沒有成功帶起E5830 3G網卡
vi /etc/usb_modesswitch.conf
########################################################
#Huawei E5830 (HSPA+ modem)
DefaultVendor= 0x12d1
DefaultProduct= 0x1446
TargetVendor= 0x12d1
TargetProduct= 0x1401
TargetProductList="1001,1406,140c,14ac"
CheckSuccess=20
MessageContent="55534243123456780000000000000011060000000000000000000000000000"
/lib/udev/rules.d/40-usb_modeswitch.rules
# Huawei K3765
ATTRS{idVendor}=="12d1", ATTRS{idProduct}=="1520", RUN+="usb_modeswitch '%b/%k'"
# Huawei K4505
ATTRS{idVendor}=="12d1", ATTRS{idProduct}=="1521", RUN+="usb_modeswitch '%b/%k'"
# Huawei R201
ATTRS{idVendor}=="12d1", ATTRS{idProduct}=="1523", RUN+="usb_modeswitch '%b/%k'"
# Huawei E173
ATTRS{idVendor}=="12d1", ATTRS{idProduct}=="1557", RUN+="usb_modeswitch '%b/%k'"
新增:
# Huawei E5830
ATTRS{idVendor}=="12d1", ATTRS{idProduct}=="1401", RUN+="usb_modeswitch '%b/%k'"
# usb_modeswitch -v 0x12d1 -p 0x1401 -d
Looking for default devices ...
Found devices in default mode or class (1)
Accessing device 013 on bus 001 ...
Using endpoints 0x01 (out) and 0x81 (in)
Using endpoints 0x01 (out) and 0x81 (in)
Not a storage device, skipping SCSI inquiry
USB description data (for identification)
-------------------------
Manufacturer: Huawei Incorporated
Product: HUAWEI Mobile Connect
Serial No.: 1234567890ABCDEF
-------------------------
Only detaching storage driver for switching ...
Looking for active driver ...
No driver found. Either detached before or never attached
-> Run lsusb to note any changes. Bye.
#dmesg
usb 1-4: USB disconnect, address 14
option: option_instat_callback: error -108
option: option_instat_callback: error -108
option1 ttyUSB0: GSM modem (1-port) converter now disconnected from ttyUSB0
option 1-4:1.0: device disconnected
option1 ttyUSB1: GSM modem (1-port) converter now disconnected from ttyUSB1
option 1-4:1.2: device disconnected
option1 ttyUSB2: GSM modem (1-port) converter now disconnected from ttyUSB2
option 1-4:1.3: device disconnected
scsi 15:0:0:0: rejecting I/O to dead device
usb 1-4: new high speed USB device using ehci_hcd and address 15
usb 1-4: New USB device found, idVendor=12d1, idProduct=1401
usb 1-4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb 1-4: Product: HUAWEI Mobile Connect
usb 1-4: Manufacturer: Huawei Incorporated
usb 1-4: SerialNumber: 1234567890ABCDEF
usb 1-4: configuration #1 chosen from 1 choice
option 1-4:1.0: GSM modem (1-port) converter detected
usb 1-4: GSM modem (1-port) converter now attached to ttyUSB0
scsi16 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 15
usb-storage: waiting for device to settle before scanning
option 1-4:1.2: GSM modem (1-port) converter detected
usb 1-4: GSM modem (1-port) converter now attached to ttyUSB1
option 1-4:1.3: GSM modem (1-port) converter detected
usb 1-4: GSM modem (1-port) converter now attached to ttyUSB2
[ 此帖被kazaya在2012-01-17 16:55重新编辑 ]