From 13ae0222a8f9a4ec4df60659383510914dbf13c5 Mon Sep 17 00:00:00 2001 From: Fedor Kozhevnikov Date: Thu, 14 Jul 2011 10:25:57 -0400 Subject: [PATCH] usb_modeswitch: data package 2011-07-14 --- .../usbmodeswitch/data/40-usb_modeswitch.rules | 35 ++++++-- release/src/router/usbmodeswitch/data/ChangeLog | 6 ++ release/src/router/usbmodeswitch/data/Makefile | 3 +- release/src/router/usbmodeswitch/data/README | 15 ++-- .../usbmodeswitch/data/usb_modeswitch.d/0af0:7a05 | 12 +++ .../usbmodeswitch/data/usb_modeswitch.d/0df7:0800 | 8 +- .../usbmodeswitch/data/usb_modeswitch.d/12d1:14c4 | 13 +++ .../usbmodeswitch/data/usb_modeswitch.d/12d1:14d1 | 13 +++ .../usbmodeswitch/data/usb_modeswitch.d/12d1:1505 | 13 +++ .../usbmodeswitch/data/usb_modeswitch.d/19d2:bccd | 14 ++++ .../usbmodeswitch/data/usb_modeswitch.d/1c9e:9800 | 12 +++ .../usbmodeswitch/data/usb_modeswitch.d/2020:f00e | 13 +++ .../src/router/usbmodeswitch/device_reference.txt | 93 +++++++++++++++++++++- 13 files changed, 231 insertions(+), 19 deletions(-) create mode 100644 release/src/router/usbmodeswitch/data/usb_modeswitch.d/0af0:7a05 create mode 100644 release/src/router/usbmodeswitch/data/usb_modeswitch.d/12d1:14c4 create mode 100644 release/src/router/usbmodeswitch/data/usb_modeswitch.d/12d1:14d1 create mode 100644 release/src/router/usbmodeswitch/data/usb_modeswitch.d/12d1:1505 create mode 100644 release/src/router/usbmodeswitch/data/usb_modeswitch.d/19d2:bccd create mode 100644 release/src/router/usbmodeswitch/data/usb_modeswitch.d/1c9e:9800 create mode 100644 release/src/router/usbmodeswitch/data/usb_modeswitch.d/2020:f00e diff --git a/release/src/router/usbmodeswitch/data/40-usb_modeswitch.rules b/release/src/router/usbmodeswitch/data/40-usb_modeswitch.rules index c0215bfa6f..0333af57d6 100644 --- a/release/src/router/usbmodeswitch/data/40-usb_modeswitch.rules +++ b/release/src/router/usbmodeswitch/data/40-usb_modeswitch.rules @@ -1,19 +1,19 @@ -# Part of usb-modeswitch-data, version 20110619 +# Part of usb-modeswitch-data, version 20110714 # # This file is intended for USB_ModeSwitch version >= 1.1.2 # but will not break anything if used with versions >= 1.0.3 # ACTION!="add", GOTO="modeswitch_rules_end" -# This adds a symlink "gsmmodem[n]" to ttyUSB ports with interrupt transfer; -# will work only with wrapper from 1.1.4 and above (otherwise ignored, -# non-fatal) +# This adds a symlink "gsmmodem[n]" to the lowest ttyUSB port with interrupt +# transfer; checked against a list of known modems, or else no action KERNEL=="ttyUSB*", ATTRS{bNumConfigurations}=="*", PROGRAM="usb_modeswitch --symlink-name %p %s{idVendor} %s{idProduct} %E{PRODUCT}", SYMLINK="%c" SUBSYSTEM!="usb", GOTO="modeswitch_rules_end" # This adds the device ID to the "option" driver after a warm boot -# in cases when the device is yet unknown to the driver +# in cases when the device is yet unknown to the driver; checked +# against a list of known modems, or else no action ATTR{bInterfaceClass}=="ff", ATTR{bInterfaceNumber}=="00", ATTRS{bNumConfigurations}=="*", RUN+="usb_modeswitch --driver-bind %p %s{idVendor} %s{idProduct} %E{PRODUCT}" # Most known install partitions are on interface 0, one on 5, one on 9 @@ -61,7 +61,7 @@ ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="f000", RUN+="usb_modeswitch '%b/%k'" # AVM Fritz!Wlan USB Stick N ATTRS{idVendor}=="057c", ATTRS{idProduct}=="84ff", RUN+="usb_modeswitch '%b/%k'" -# Quirky Option devices, Prolink P2000 CDMA, Samsung SGH-Z810, Older Option devices, Vertex Wireless 100 Series, AnyDATA devices, Bless UC165, Option GlobeTrotter GX0201 +# Prolink P2000 CDMA, Samsung SGH-Z810, older Option devices, Vertex Wireless 100 Series, AnyDATA devices, Bless UC165 ATTRS{idVendor}=="05c6", ATTRS{idProduct}=="1000", RUN+="usb_modeswitch '%b/%k'" # HSDPA USB modem from dealextreme @@ -175,6 +175,9 @@ ATTRS{idVendor}=="0af0", ATTRS{idProduct}=="7801", RUN+="usb_modeswitch '%b/%k'" # Option HSO device ATTRS{idVendor}=="0af0", ATTRS{idProduct}=="7901", RUN+="usb_modeswitch '%b/%k'" +# Option iCon 461 +ATTRS{idVendor}=="0af0", ATTRS{idProduct}=="7a05", RUN+="usb_modeswitch '%b/%k'" + # Option HSO device ATTRS{idVendor}=="0af0", ATTRS{idProduct}=="8200", RUN+="usb_modeswitch '%b/%k'" @@ -340,9 +343,18 @@ ATTRS{idVendor}=="12d1", ATTRS{idProduct}=="14b5", RUN+="usb_modeswitch '%b/%k'" # Vodafone (Huawei) K4605 ATTRS{idVendor}=="12d1", ATTRS{idProduct}=="14c1", RUN+="usb_modeswitch '%b/%k'" +# Vodafone/Huawei K3771 +ATTRS{idVendor}=="12d1", ATTRS{idProduct}=="14c4", RUN+="usb_modeswitch '%b/%k'" + +# Vodafone/Huawei K3770 +ATTRS{idVendor}=="12d1", ATTRS{idProduct}=="14d1", RUN+="usb_modeswitch '%b/%k'" + # T-Mobile NL (Huawei E352) ATTRS{idVendor}=="12d1", ATTRS{idProduct}=="14fe", RUN+="usb_modeswitch '%b/%k'" +# Huawei EC156 +ATTRS{idVendor}=="12d1", ATTRS{idProduct}=="1505", RUN+="usb_modeswitch '%b/%k'" + # Huawei K3765 ATTRS{idVendor}=="12d1", ATTRS{idProduct}=="1520", RUN+="usb_modeswitch '%b/%k'" @@ -391,7 +403,7 @@ ATTRS{idVendor}=="148f", ATTRS{idProduct}=="2578", RUN+="usb_modeswitch '%b/%k'" # C-motech CHU-628S ATTRS{idVendor}=="16d8", ATTRS{idProduct}=="6281", RUN+="usb_modeswitch '%b/%k'" -# C-motech D-50 (aka "CDU-680"), C-motech D-50 (aka "CDU-680") +# C-motech D-50 (aka "CDU-680") ATTRS{idVendor}=="16d8", ATTRS{idProduct}=="6803", RUN+="usb_modeswitch '%b/%k'" # C-motech CHU-629S @@ -466,6 +478,9 @@ ATTRS{idVendor}=="19d2", ATTRS{idProduct}=="1224", RUN+="usb_modeswitch '%b/%k'" # ZTE devices ATTRS{idVendor}=="19d2", ATTRS{idProduct}=="2000", RUN+="usb_modeswitch '%b/%k'" +# ZTE AX226 WiMax +ATTRS{idVendor}=="19d2", ATTRS{idProduct}=="bccd", RUN+="usb_modeswitch '%b/%k'" + # ZTE "ffe" devices 1 (e.g. Cricket A605) ATTRS{idVendor}=="19d2", ATTRS{idProduct}=="ffe6", RUN+="usb_modeswitch '%b/%k'" @@ -496,6 +511,9 @@ ATTRS{idVendor}=="1c9e", ATTRS{idProduct}=="6061", RUN+="usb_modeswitch '%b/%k'" # MyWave SW006 Sport Phone/Modem Combination ATTRS{idVendor}=="1c9e", ATTRS{idProduct}=="9200", RUN+="usb_modeswitch '%b/%k'" +# Longcheer SU9800 +ATTRS{idVendor}=="1c9e", ATTRS{idProduct}=="9800", RUN+="usb_modeswitch '%b/%k'" + # BSNL Capitel ATTRS{idVendor}=="1c9e", ATTRS{idProduct}=="9e00", RUN+="usb_modeswitch '%b/%k'" @@ -532,6 +550,9 @@ ATTRS{idVendor}=="1fac", ATTRS{idProduct}=="0130", RUN+="usb_modeswitch '%b/%k'" # Haier CE 100 ATTRS{idVendor}=="201e", ATTRS{idProduct}=="2009", RUN+="usb_modeswitch '%b/%k'" +# SpeedUp SU-8000U +ATTRS{idVendor}=="2020", ATTRS{idProduct}=="f00e", RUN+="usb_modeswitch '%b/%k'" + # Linktop LW272/LW273 (BSNL Teracom) ATTRS{idVendor}=="230d", ATTRS{idProduct}=="0001", RUN+="usb_modeswitch '%b/%k'" diff --git a/release/src/router/usbmodeswitch/data/ChangeLog b/release/src/router/usbmodeswitch/data/ChangeLog index 346ad58878..592df3e629 100644 --- a/release/src/router/usbmodeswitch/data/ChangeLog +++ b/release/src/router/usbmodeswitch/data/ChangeLog @@ -1,3 +1,9 @@ +20110714: + Added device: SpeedUp SU-8000U; corrected garbled configs for latest + Huawei devices +20110705: + Added devices: Huawei EC156, Huawei K3770, Huawei K3771, Option iCon 461, + Longcheer SU9800, ZTE AX226 (WiMax) 20110619: Added devices: Huawei E352, Huawei U8220, Huawei E173, D-Link DWM-156 (Variant), Cricket A605, ZTE K3806-Z, ZTE MF190 (two Variants), ZTE MF192, diff --git a/release/src/router/usbmodeswitch/data/Makefile b/release/src/router/usbmodeswitch/data/Makefile index 97ab2bd396..1bc5480d3a 100644 --- a/release/src/router/usbmodeswitch/data/Makefile +++ b/release/src/router/usbmodeswitch/data/Makefile @@ -1,5 +1,5 @@ PROG = usb-modeswitch-data -VERS = 20110619 +VERS = 20110714 RM = /bin/rm -f PREFIX = $(DESTDIR)/usr ETCDIR = $(DESTDIR)/etc @@ -29,7 +29,6 @@ db-install-packed: install --mode=644 -t $(PREFIX)/share/usb_modeswitch ./configPack.tar.gz rm -f ./configPack.tar.gz - rules-reload: if [ -f $(ETCDIR)/issue ]; then \ UDEVADM=`which udevadm 2>/dev/null`; \ diff --git a/release/src/router/usbmodeswitch/data/README b/release/src/router/usbmodeswitch/data/README index af9cf529dc..24f7f8a2c2 100644 --- a/release/src/router/usbmodeswitch/data/README +++ b/release/src/router/usbmodeswitch/data/README @@ -25,11 +25,14 @@ Tasks initiated by the rules file: - adding symlink "gsmmodem" to appropriate connection port (out of 2-5 ports provided by some devices); this is only a help for handling and - NOT needed for switching to work + NOT needed for switching to work. + This action will be done for known modems only (at least switched once + on this system) -- reloading the driver after warm boot when the device is still in modem - state and the device ID is not yet known to the driver; this is not - needed if the device is plugged during normal system operation +- loading and binding the "option" driver if the device arrives in modem + state (not CDC/ACM!) and the device ID is not yet known to the driver. + This action will be done for known modems only (at least switched once + on this system) Explanation about config file names: @@ -100,7 +103,7 @@ Notes about specific devices: there are no working Linux drivers available yet. Efforts are underway. Stand by or search for "staging drivers". -- 05c6:2000 (unnamed HSDPA modem from dealextreme): unusually long switching +- 05c6:2000 (unnamed HSDPA modem from "dealextreme"): unusually long switching time, even with MS Windoze - 30 to 40 seconds. Don't be alarmed. - 0471:1210 (Philips chipset): had to be split after variants with different @@ -127,4 +130,4 @@ Or find it as the file COPYING in this folder. -Last revised: 2011-02-26, Josua Dietze +Last revised: 2011-07-14, Josua Dietze diff --git a/release/src/router/usbmodeswitch/data/usb_modeswitch.d/0af0:7a05 b/release/src/router/usbmodeswitch/data/usb_modeswitch.d/0af0:7a05 new file mode 100644 index 0000000000..e27b54f87c --- /dev/null +++ b/release/src/router/usbmodeswitch/data/usb_modeswitch.d/0af0:7a05 @@ -0,0 +1,12 @@ +######################################################## +# Option iCon 461 + +DefaultVendor= 0x0af0 +DefaultProduct=0x7a05 + +TargetClass=0xff + +MessageContent="55534243123456780000000000000601000000000000000000000000000000" + +CheckSuccess=20 + diff --git a/release/src/router/usbmodeswitch/data/usb_modeswitch.d/0df7:0800 b/release/src/router/usbmodeswitch/data/usb_modeswitch.d/0df7:0800 index 879a7a7c62..4f5495732b 100644 --- a/release/src/router/usbmodeswitch/data/usb_modeswitch.d/0df7:0800 +++ b/release/src/router/usbmodeswitch/data/usb_modeswitch.d/0df7:0800 @@ -1,11 +1,13 @@ ####################################################### -# Mobile Action ("Smart Cable", will vanish) +# Mobile Action ("Smart Cable") DefaultVendor= 0x0df7 DefaultProduct=0x0800 -TargetClass=0xf0 +TargetClass=0xff MobileActionMode=1 - NoDriverLoading=1 + +CheckSuccess=20 + diff --git a/release/src/router/usbmodeswitch/data/usb_modeswitch.d/12d1:14c4 b/release/src/router/usbmodeswitch/data/usb_modeswitch.d/12d1:14c4 new file mode 100644 index 0000000000..2689d187e5 --- /dev/null +++ b/release/src/router/usbmodeswitch/data/usb_modeswitch.d/12d1:14c4 @@ -0,0 +1,13 @@ +######################################################## +# Vodafone/Huawei K3771 + +DefaultVendor= 0x12d1 +DefaultProduct=0x14c4 + +TargetVendor= 0x12d1 +TargetProduct= 0x14ca + +MessageContent="55534243123456780000000000000011062000000100000000000000000000" + +CheckSuccess=20 + diff --git a/release/src/router/usbmodeswitch/data/usb_modeswitch.d/12d1:14d1 b/release/src/router/usbmodeswitch/data/usb_modeswitch.d/12d1:14d1 new file mode 100644 index 0000000000..cdccb3dac8 --- /dev/null +++ b/release/src/router/usbmodeswitch/data/usb_modeswitch.d/12d1:14d1 @@ -0,0 +1,13 @@ +######################################################## +# Vodafone/Huawei K3770 + +DefaultVendor= 0x12d1 +DefaultProduct=0x14d1 + +TargetVendor= 0x12d1 +TargetProduct= 0x14c9 + +MessageContent="55534243123456780000000000000011062000000100000000000000000000" + +CheckSuccess=20 + diff --git a/release/src/router/usbmodeswitch/data/usb_modeswitch.d/12d1:1505 b/release/src/router/usbmodeswitch/data/usb_modeswitch.d/12d1:1505 new file mode 100644 index 0000000000..5d578648f6 --- /dev/null +++ b/release/src/router/usbmodeswitch/data/usb_modeswitch.d/12d1:1505 @@ -0,0 +1,13 @@ +######################################################## +# Huawei EC156 + +DefaultVendor= 0x12d1 +DefaultProduct=0x1505 + +TargetVendor= 0x12d1 +TargetProduct= 0x140b + +MessageContent="55534243123456780000000000000011062000000100000000000000000000" + +CheckSuccess=20 + diff --git a/release/src/router/usbmodeswitch/data/usb_modeswitch.d/19d2:bccd b/release/src/router/usbmodeswitch/data/usb_modeswitch.d/19d2:bccd new file mode 100644 index 0000000000..c323024c6c --- /dev/null +++ b/release/src/router/usbmodeswitch/data/usb_modeswitch.d/19d2:bccd @@ -0,0 +1,14 @@ +######################################################## +# ZTE AX226 WiMax + +DefaultVendor= 0x19d2 +DefaultProduct=0xbccd + +TargetVendor= 0x19d2 +TargetProduct= 0x0172 + +MessageContent="555342431234567824000000800006bc626563240000000000000000000000" +NoDriverLoading=1 + +CheckSuccess=20 + diff --git a/release/src/router/usbmodeswitch/data/usb_modeswitch.d/1c9e:9800 b/release/src/router/usbmodeswitch/data/usb_modeswitch.d/1c9e:9800 new file mode 100644 index 0000000000..5b7aaaf466 --- /dev/null +++ b/release/src/router/usbmodeswitch/data/usb_modeswitch.d/1c9e:9800 @@ -0,0 +1,12 @@ +######################################################## +# Longcheer SU9800 + +DefaultVendor= 0x1c9e +DefaultProduct=0x9800 + +TargetClass=0xff + +MessageContent="55534243123456788000000080000606f50402527000000000000000000000" + +CheckSuccess=20 + diff --git a/release/src/router/usbmodeswitch/data/usb_modeswitch.d/2020:f00e b/release/src/router/usbmodeswitch/data/usb_modeswitch.d/2020:f00e new file mode 100644 index 0000000000..07e575da34 --- /dev/null +++ b/release/src/router/usbmodeswitch/data/usb_modeswitch.d/2020:f00e @@ -0,0 +1,13 @@ +########################################### +# SpeedUp SU-8000U + +DefaultVendor= 0x2020 +DefaultProduct=0xf00e + +TargetVendor= 0x2020 +TargetProduct= 0x1005 + +MessageContent="5553424312345678000000000000061b000000020000000000000000000000" + +CheckSuccess=20 + diff --git a/release/src/router/usbmodeswitch/device_reference.txt b/release/src/router/usbmodeswitch/device_reference.txt index d9a7bad8f1..095ff5dce4 100755 --- a/release/src/router/usbmodeswitch/device_reference.txt +++ b/release/src/router/usbmodeswitch/device_reference.txt @@ -1,7 +1,7 @@ # # Device and Configuration Reference (UTF-8 encoding used) # -# Last modified: 2011-06-19 +# Last modified: 2011-07-14 # # Collection of configurations for usb_modeswitch, a mode switching # tool for controlling flip flop (multiple mode) USB devices @@ -2495,4 +2495,95 @@ MobileActionMode=1 NoDriverLoading=1 + +######################################################## +# Vodafone/Huawei K3770 +# +# Contributor: Alex Chiang + +DefaultVendor= 0x12d1 +DefaultProduct=0x14d1 + +TargetVendor= 0x12d1 +TargetProduct= 0x14c9 + +MessageContent="55534243123456780000000000000011062000000100000000000000000000" + + +######################################################## +# Vodafone/Huawei K3771 +# +# Contributor: Ben Knight + +DefaultVendor= 0x12d1 +DefaultProduct=0x14c4 + +TargetVendor= 0x12d1 +TargetProduct= 0x14ca + +MessageContent="55534243123456780000000000000011062000000100000000000000000000" + + +######################################################## +# Option iCon 461 +# +# Contributor: Samit Basu + +DefaultVendor= 0x0af0 +DefaultProduct= 0x7a05 + +TargetClass= 0xff + +MessageContent="55534243123456780000000000000601000000000000000000000000000000" + +######################################################## +# ZTE AX226 WiMax +# +# may be supported by the Beceem driver + +DefaultVendor= 0x19d2 +DefaultProduct=0xbccd + +TargetVendor= 0x19d2 +TargetProduct= 0x0172 + +MessageContent="555342431234567824000000800006bc626563240000000000000000000000" + +NoDriverLoading=1 + + +######################################################## +# Huawei EC156 + +DefaultVendor= 0x12d1 +DefaultProduct=0x1505 + +TargetVendor= 0x12d1 +TargetProduct= 0x140b + +MessageContent="55534243123456780000000000000011062000000100000000000000000000" + + +######################################################## +# Longcheer SU9800 + +DefaultVendor= 0x1c9e +DefaultProduct=0x9800 + +TargetClass=0xff + +MessageContent="55534243123456788000000080000606f50402527000000000000000000000" + +########################################### +# SpeedUp SU-8000U + +DefaultVendor= 0x2020 +DefaultProduct=0xf00e + +TargetVendor= 0x2020 +TargetProduct= 0x1005 + +MessageContent="5553424312345678000000000000061b000000020000000000000000000000" + + ####################################################### -- 2.11.4.GIT