Тема: Мегафон М21-4(Huawey E3131) не подключает.

Доброго дня!
Столкнулся со следующей проблемой - не подключается интернет на USB модеме 3131. При попытке подключения с Сетевого центра никакой реакции. При попытке подключения с wvdial пишет --> Invalid dial command.

Модем определяется как 12d1:15ca

Подскажите - что я не так делаю?

Вывод lsusb

+ открыть спойлер

[root@localhost archangel]# lsusb
Bus 005 Device 002: ID 12d1:1506 Huawei Technologies Co., Ltd. Modem/Networkcard
Bus 005 Device 005: ID 04e8:6863 Samsung Electronics Co., Ltd GT-I9500 [Galaxy S4] / GT-I9250 [Galaxy Nexus] (network tethering)
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 002: ID 0458:003a KYE Systems Corp. (Mouse Systems) NetScroll+ Mini Traveler / Genius NetScroll 120
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

Вывод dmesg | grep usb
[root@localhost archangel]# dmesg | grep usb

+ открыть спойлер

[    3.851931] usbcore: registered new interface driver usbfs
[    3.851963] usbcore: registered new interface driver hub
[    3.854091] usbcore: registered new device driver usb
[    3.874989] usb usb1: New USB device found, idVendor=1d6b, idProduct=0001
[    3.874995] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.875000] usb usb1: Product: UHCI Host Controller
[    3.875027] usb usb1: Manufacturer: Linux 3.12.21-desktop-2.mga4 uhci_hcd
[    3.875032] usb usb1: SerialNumber: 0000:00:1d.0
[    3.880841] usb usb2: New USB device found, idVendor=1d6b, idProduct=0001
[    3.880851] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.880856] usb usb2: Product: UHCI Host Controller
[    3.880861] usb usb2: Manufacturer: Linux 3.12.21-desktop-2.mga4 uhci_hcd
[    3.880866] usb usb2: SerialNumber: 0000:00:1d.1
[    3.884805] usb usb3: New USB device found, idVendor=1d6b, idProduct=0001
[    3.884814] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.884819] usb usb3: Product: UHCI Host Controller
[    3.884824] usb usb3: Manufacturer: Linux 3.12.21-desktop-2.mga4 uhci_hcd
[    3.884828] usb usb3: SerialNumber: 0000:00:1d.2
[    3.894436] usb usb4: New USB device found, idVendor=1d6b, idProduct=0001
[    3.894445] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.894450] usb usb4: Product: UHCI Host Controller
[    3.894456] usb usb4: Manufacturer: Linux 3.12.21-desktop-2.mga4 uhci_hcd
[    3.894461] usb usb4: SerialNumber: 0000:00:1d.3
[    3.926177] usb usb5: New USB device found, idVendor=1d6b, idProduct=0002
[    3.926184] usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.926189] usb usb5: Product: EHCI Host Controller
[    3.926193] usb usb5: Manufacturer: Linux 3.12.21-desktop-2.mga4 ehci_hcd
[    3.926197] usb usb5: SerialNumber: 0000:00:1d.7
[    4.229063] usb 5-2: new high-speed USB device number 2 using ehci-pci
[    4.344669] usb 5-2: New USB device found, idVendor=12d1, idProduct=1506
[    4.344676] usb 5-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    4.344680] usb 5-2: Product: HUAWEI Mobile
[    4.344683] usb 5-2: Manufacturer: HUAWEI
[    4.830053] usb 2-1: new low-speed USB device number 2 using uhci_hcd
[    4.992074] usb 2-1: New USB device found, idVendor=0458, idProduct=003a
[    4.992081] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    4.992087] usb 2-1: Product: Optical Mouse
[    4.992090] usb 2-1: Manufacturer: Genius
[    7.950422] usbcore: registered new interface driver usbhid
[    7.950429] usbhid: USB HID core driver
[    7.956591] input: Genius Optical Mouse as /devices/pci0000:00/0000:00:1d.1/usb2/2-1/2-1:1.0/input/input7
[    7.956857] hid-generic 0003:0458:003A.0001: input,hidraw0: USB HID v1.10 Mouse [Genius Optical Mouse] on usb-0000:00:1d.1-1/input0
[    8.003672] usb-storage 5-2:1.4: USB Mass Storage device detected
[    8.005614] scsi2 : usb-storage 5-2:1.4
[    8.005925] usb-storage 5-2:1.5: USB Mass Storage device detected
[    8.006426] scsi3 : usb-storage 5-2:1.5
[    8.007369] usbcore: registered new interface driver usb-storage
[    8.362014] usb 5-2: MAC-Address: 3e:27:3f:b1:46:9d
[    8.362298] cdc_ncm 5-2:1.1 wwan0: register 'cdc_ncm' at usb-0000:00:1d.7-2, Mobile Broadband Network Device, 3e:27:3f:b1:46:9d
[    8.362348] usbcore: registered new interface driver cdc_ncm
[    8.390529] usbcore: registered new interface driver usbserial
[    8.390572] usbcore: registered new interface driver usbserial_generic
[    8.390600] usbserial: USB Serial support registered for generic
[    8.407665] usbcore: registered new interface driver option
[    8.408152] usbserial: USB Serial support registered for GSM modem (1-port)
[    8.408760] usb 5-2: GSM modem (1-port) converter now attached to ttyUSB0
[    8.408966] usb 5-2: GSM modem (1-port) converter now attached to ttyUSB1
[    8.409965] usb 5-2: GSM modem (1-port) converter now attached to ttyUSB2
[   16.391660] usbcore: registered new interface driver cdc_ether
[   16.396753] usbcore: registered new interface driver rndis_host
[  205.689045] usb 5-1: new high-speed USB device number 4 using ehci-pci
[  205.805208] usb 5-1: New USB device found, idVendor=04e8, idProduct=6860
[  205.805214] usb 5-1: New USB device strings: Mfr=2, Product=3, SerialNumber=4
[  205.805218] usb 5-1: Product: SAMSUNG_Android
[  205.805222] usb 5-1: Manufacturer: SAMSUNG
[  205.805225] usb 5-1: SerialNumber: 4df7852d7dafcf93
[  217.452177] usb 5-1: USB disconnect, device number 4
[  217.739044] usb 5-1: new high-speed USB device number 5 using ehci-pci
[  217.854461] usb 5-1: New USB device found, idVendor=04e8, idProduct=6863
[  217.854467] usb 5-1: New USB device strings: Mfr=2, Product=3, SerialNumber=4
[  217.854471] usb 5-1: Product: SAMSUNG_Android
[  217.854474] usb 5-1: Manufacturer: SAMSUNG
[  217.854478] usb 5-1: SerialNumber: 4df7852d7dafcf93
[  217.857152] rndis_host 5-1:1.0 usb0: register 'rndis_host' at usb-0000:00:1d.7-1, RNDIS device, 02:53:30:61:66:65
[  217.882271] systemd-udevd[4251]: renamed network interface usb0 to enp0s29f7u1

Вывод ls -l /dev/ttyUSB

+ открыть спойлер

[root@localhost archangel]# ls -l /dev/ttyUSB*
crw-rw---- 1 root dialout 188, 0 окт 16 21:34 /dev/ttyUSB0
crw-rw---- 1 root dialout 188, 1 окт 16 21:09 /dev/ttyUSB1
crw-rw---- 1 root dialout 188, 2 окт 16 21:33 /dev/ttyUSB2

Файл /usr/share/usb_modeswitch/12d1:15ca

+ открыть спойлер

# HUAWEI ModemNname (DNA)

DefaultVendor=0x12d1
DefaultProduct=0x15ca

MessageContent="55534243123456780000000000000a11062000000000000100000000000000"

Файл /etc/usb_modeswitch.conf

+ открыть спойлер

# Configuration for the usb_modeswitch package, a mode switching tool for
# USB devices providing multiple states or modes
#
# Evaluated by the wrapper script /usr/sbin/usb_modeswitch_dispatcher
#
# To enable an option, set it to "1", "yes" or "true" (case doesn't matter)
# Everything else counts as "disable"


# Disable automatic mode switching globally (e.g. to access the original
# install storage)

DisableSwitching=0


# Enable logging (results in a extensive report file in /var/log, named
# "usb_modeswitch_<interface-name>" and probably others

EnableLogging=0


# Optional increase of "delay_use" for the usb-storage driver; there are hints
# that a recent kernel default change to 1 sec. may lead to problems, particu-
# larly with USB 3.0 ports. Set this to at least 3 (seconds) in that case.
# Does nothing if the current system value is same or higher

SetStorageDelay=3

Файл /usr/lib/udev/rules.d/40-usb_modeswitch.rules

+ открыть спойлер

# Part of usb-modeswitch-data, version 20130807
#
# Recommended use with USB_ModeSwitch >= 1.2.5, works with versions >= 1.0.3
# (New style, interface class check moved to dispatcher)
#
ACTION!="add|change", GOTO="modeswitch_rules_end"

# 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"

# Adds the device ID to the "option" driver after a warm boot
# 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}"


# Don't continue on "change" event, prevent trigger by changed configuration
ACTION!="add", GOTO="modeswitch_rules_end"



# HP LaserJet Professional P1102
ATTR{idVendor}=="03f0", ATTR{idProduct}=="002a", RUN+="usb_modeswitch '%b/%k'"

# Quanta 1K3 LTE
ATTR{idVendor}=="0408", ATTR{idProduct}=="ea25", RUN+="usb_modeswitch '%b/%k'"

# Yota Router (Quanta 1QDLZZZ0ST2)
ATTR{idVendor}=="0408", ATTR{idProduct}=="f000", RUN+="usb_modeswitch '%b/%k'"

# Nokia CS-10
ATTR{idVendor}=="0421", ATTR{idProduct}=="060c", RUN+="usb_modeswitch '%b/%k'"

# Nokia CS-15
ATTR{idVendor}=="0421", ATTR{idProduct}=="0610", RUN+="usb_modeswitch '%b/%k'"

# Nokia CS-12
ATTR{idVendor}=="0421", ATTR{idProduct}=="0618", RUN+="usb_modeswitch '%b/%k'"

# Nokia CS-11
ATTR{idVendor}=="0421", ATTR{idProduct}=="061d", RUN+="usb_modeswitch '%b/%k'"

# Nokia CS-17
ATTR{idVendor}=="0421", ATTR{idProduct}=="0622", RUN+="usb_modeswitch '%b/%k'"

# Nokia CS-18
ATTR{idVendor}=="0421", ATTR{idProduct}=="0627", RUN+="usb_modeswitch '%b/%k'"

# Nokia CS-19
ATTR{idVendor}=="0421", ATTR{idProduct}=="062c", RUN+="usb_modeswitch '%b/%k'"

# Nokia CS-7M-01
ATTR{idVendor}=="0421", ATTR{idProduct}=="0632", RUN+="usb_modeswitch '%b/%k'"

# Nokia CS-21M-02
ATTR{idVendor}=="0421", ATTR{idProduct}=="0637", RUN+="usb_modeswitch '%b/%k'"

# Vodafone MD950 (Wisue Technology), Vodafone MD950 (Wisue Technology), Philips (?)
ATTR{idVendor}=="0471", ATTR{idProduct}=="1210", RUN+="usb_modeswitch '%b/%k'"

# Philips TalkTalk (NXP Semiconductors "Dragonfly")
ATTR{idVendor}=="0471", ATTR{idProduct}=="1237", RUN+="usb_modeswitch '%b/%k'"

# Kyocera W06K CDMA modem
ATTR{idVendor}=="0482", ATTR{idProduct}=="024d", RUN+="usb_modeswitch '%b/%k'"

# I-O Data WMX2-U Wimax
ATTR{idVendor}=="04bb", ATTR{idProduct}=="bccd", RUN+="usb_modeswitch '%b/%k'"

# Alcatel-Lucent T930S
ATTR{idVendor}=="04cc", ATTR{idProduct}=="225c", RUN+="usb_modeswitch '%b/%k'"

# Samsung GT-B1110
ATTR{idVendor}=="04e8", ATTR{idProduct}=="680c", RUN+="usb_modeswitch '%b/%k'"

# Samsung GT-B3730
ATTR{idVendor}=="04e8", ATTR{idProduct}=="689a", RUN+="usb_modeswitch '%b/%k'"

# Samsung U209, Samsung U209
ATTR{idVendor}=="04e8", ATTR{idProduct}=="f000", RUN+="usb_modeswitch '%b/%k'"

# AVM Fritz!Wlan USB Stick N
ATTR{idVendor}=="057c", ATTR{idProduct}=="84ff", RUN+="usb_modeswitch '%b/%k'"

# Axesstel Modems (w/ initial idProduct 0x0010)
ATTR{idVendor}=="05c6", ATTR{idProduct}=="0010", RUN+="usb_modeswitch '%b/%k'"

# Prolink P2000 CDMA, Samsung SGH-Z810, older Option devices, Vertex Wireless 100 Series, AnyDATA devices, Bless UC165, Option GlobeTrotter GX0201, Celot K-300, Celot CT-680, StrongRising Modem
ATTR{idVendor}=="05c6", ATTR{idProduct}=="1000", RUN+="usb_modeswitch '%b/%k'"

# HSDPA USB modem from dealextreme
ATTR{idVendor}=="05c6", ATTR{idProduct}=="2000", RUN+="usb_modeswitch '%b/%k'"

# D-Link DWM-162-U5, Micromax MMX 300c
ATTR{idVendor}=="05c6", ATTR{idProduct}=="2001", RUN+="usb_modeswitch '%b/%k'"

# AnyDATA APE-540H
ATTR{idVendor}=="05c6", ATTR{idProduct}=="6503", RUN+="usb_modeswitch '%b/%k'"

# Siptune LM-75 ("LinuxModem")
ATTR{idVendor}=="05c6", ATTR{idProduct}=="f000", RUN+="usb_modeswitch '%b/%k'"

# Qtronix EVDO 3G Modem (for TianYi)
ATTR{idVendor}=="05c7", ATTR{idProduct}=="1000", RUN+="usb_modeswitch '%b/%k'"

# InfoCert Business Key (SmartCard/Reader emulation)
ATTR{idVendor}=="072f", ATTR{idProduct}=="100d", RUN+="usb_modeswitch '%b/%k'"

# D-Link DWM-156 HSUPA 3.75G USB Modem
ATTR{idVendor}=="07d1", ATTR{idProduct}=="a800", RUN+="usb_modeswitch '%b/%k'"

# D-Link DWM-156 HSUPA 3.75G USB Modem
ATTR{idVendor}=="07d1", ATTR{idProduct}=="a804", RUN+="usb_modeswitch '%b/%k'"

# Dymo LabelManager
ATTR{idVendor}=="0922", ATTR{idProduct}=="1001", RUN+="usb_modeswitch '%b/%k'"

# Toshiba G450
ATTR{idVendor}=="0930", ATTR{idProduct}=="0d46", RUN+="usb_modeswitch '%b/%k'"

# Zydas ZD1211RW WLAN USB, Sphairon HomeLink 1202 (Variant 1)
ATTR{idVendor}=="0ace", ATTR{idProduct}=="2011", RUN+="usb_modeswitch '%b/%k'"

# Zydas ZD1211RW WLAN USB, Sphairon HomeLink 1202 (Variant 2)
ATTR{idVendor}=="0ace", ATTR{idProduct}=="20ff", RUN+="usb_modeswitch '%b/%k'"

# Option iCon 711
ATTR{idVendor}=="0af0", ATTR{idProduct}=="4007", RUN+="usb_modeswitch '%b/%k'"

# Option HSO device
ATTR{idVendor}=="0af0", ATTR{idProduct}=="6711", RUN+="usb_modeswitch '%b/%k'"

# Option HSO device
ATTR{idVendor}=="0af0", ATTR{idProduct}=="6731", RUN+="usb_modeswitch '%b/%k'"

# Option HSO device
ATTR{idVendor}=="0af0", ATTR{idProduct}=="6751", RUN+="usb_modeswitch '%b/%k'"

# Option HSO device
ATTR{idVendor}=="0af0", ATTR{idProduct}=="6771", RUN+="usb_modeswitch '%b/%k'"

# Option HSO device
ATTR{idVendor}=="0af0", ATTR{idProduct}=="6791", RUN+="usb_modeswitch '%b/%k'"

# Option HSO device
ATTR{idVendor}=="0af0", ATTR{idProduct}=="6811", RUN+="usb_modeswitch '%b/%k'"

# Option HSO device
ATTR{idVendor}=="0af0", ATTR{idProduct}=="6911", RUN+="usb_modeswitch '%b/%k'"

# Option HSO device
ATTR{idVendor}=="0af0", ATTR{idProduct}=="6951", RUN+="usb_modeswitch '%b/%k'"

# Option HSO device
ATTR{idVendor}=="0af0", ATTR{idProduct}=="6971", RUN+="usb_modeswitch '%b/%k'"

# Option HSO device
ATTR{idVendor}=="0af0", ATTR{idProduct}=="7011", RUN+="usb_modeswitch '%b/%k'"

# Option HSO device
ATTR{idVendor}=="0af0", ATTR{idProduct}=="7031", RUN+="usb_modeswitch '%b/%k'"

# Option HSO device
ATTR{idVendor}=="0af0", ATTR{idProduct}=="7051", RUN+="usb_modeswitch '%b/%k'"

# Option HSO device
ATTR{idVendor}=="0af0", ATTR{idProduct}=="7071", RUN+="usb_modeswitch '%b/%k'"

# Option HSO device
ATTR{idVendor}=="0af0", ATTR{idProduct}=="7111", RUN+="usb_modeswitch '%b/%k'"

# Option HSO device
ATTR{idVendor}=="0af0", ATTR{idProduct}=="7211", RUN+="usb_modeswitch '%b/%k'"

# Option HSO device
ATTR{idVendor}=="0af0", ATTR{idProduct}=="7251", RUN+="usb_modeswitch '%b/%k'"

# Option HSO device
ATTR{idVendor}=="0af0", ATTR{idProduct}=="7271", RUN+="usb_modeswitch '%b/%k'"

# Option HSO device
ATTR{idVendor}=="0af0", ATTR{idProduct}=="7301", RUN+="usb_modeswitch '%b/%k'"

# Option HSO device
ATTR{idVendor}=="0af0", ATTR{idProduct}=="7311", RUN+="usb_modeswitch '%b/%k'"

# Option HSO device
ATTR{idVendor}=="0af0", ATTR{idProduct}=="7361", RUN+="usb_modeswitch '%b/%k'"

# Option HSO device
ATTR{idVendor}=="0af0", ATTR{idProduct}=="7381", RUN+="usb_modeswitch '%b/%k'"

# Option HSO device
ATTR{idVendor}=="0af0", ATTR{idProduct}=="7401", RUN+="usb_modeswitch '%b/%k'"

# Option HSO device
ATTR{idVendor}=="0af0", ATTR{idProduct}=="7501", RUN+="usb_modeswitch '%b/%k'"

# Option HSO device
ATTR{idVendor}=="0af0", ATTR{idProduct}=="7601", RUN+="usb_modeswitch '%b/%k'"

# Option HSO device
ATTR{idVendor}=="0af0", ATTR{idProduct}=="7701", RUN+="usb_modeswitch '%b/%k'"

# Option HSO device
ATTR{idVendor}=="0af0", ATTR{idProduct}=="7706", RUN+="usb_modeswitch '%b/%k'"

# Option HSO device
ATTR{idVendor}=="0af0", ATTR{idProduct}=="7801", RUN+="usb_modeswitch '%b/%k'"

# Option HSO device
ATTR{idVendor}=="0af0", ATTR{idProduct}=="7901", RUN+="usb_modeswitch '%b/%k'"

# Option HSO device
ATTR{idVendor}=="0af0", ATTR{idProduct}=="7a01", RUN+="usb_modeswitch '%b/%k'"

# Option iCon 461
ATTR{idVendor}=="0af0", ATTR{idProduct}=="7a05", RUN+="usb_modeswitch '%b/%k'"

# Option Globetrotter (Variant)
ATTR{idVendor}=="0af0", ATTR{idProduct}=="8006", RUN+="usb_modeswitch '%b/%k'"

# Option HSO device
ATTR{idVendor}=="0af0", ATTR{idProduct}=="8200", RUN+="usb_modeswitch '%b/%k'"

# Option HSO device
ATTR{idVendor}=="0af0", ATTR{idProduct}=="8201", RUN+="usb_modeswitch '%b/%k'"

# Option HSO device
ATTR{idVendor}=="0af0", ATTR{idProduct}=="8300", RUN+="usb_modeswitch '%b/%k'"

# Option HSO device
ATTR{idVendor}=="0af0", ATTR{idProduct}=="8302", RUN+="usb_modeswitch '%b/%k'"

# Option HSO device
ATTR{idVendor}=="0af0", ATTR{idProduct}=="8304", RUN+="usb_modeswitch '%b/%k'"

# Option HSO device
ATTR{idVendor}=="0af0", ATTR{idProduct}=="8400", RUN+="usb_modeswitch '%b/%k'"

# Option HSO device
ATTR{idVendor}=="0af0", ATTR{idProduct}=="8600", RUN+="usb_modeswitch '%b/%k'"

# Option GI0643 (aka XYFI)
ATTR{idVendor}=="0af0", ATTR{idProduct}=="8700", RUN+="usb_modeswitch '%b/%k'"

# Option HSO device
ATTR{idVendor}=="0af0", ATTR{idProduct}=="8800", RUN+="usb_modeswitch '%b/%k'"

# Option HSO device
ATTR{idVendor}=="0af0", ATTR{idProduct}=="8900", RUN+="usb_modeswitch '%b/%k'"

# Option HSO device
ATTR{idVendor}=="0af0", ATTR{idProduct}=="9000", RUN+="usb_modeswitch '%b/%k'"

# Option HSO device
ATTR{idVendor}=="0af0", ATTR{idProduct}=="9200", RUN+="usb_modeswitch '%b/%k'"

# Option HSO device
ATTR{idVendor}=="0af0", ATTR{idProduct}=="c031", RUN+="usb_modeswitch '%b/%k'"

# Option HSO device
ATTR{idVendor}=="0af0", ATTR{idProduct}=="c100", RUN+="usb_modeswitch '%b/%k'"

# Option GlobeTrotter GI1515
ATTR{idVendor}=="0af0", ATTR{idProduct}=="d001", RUN+="usb_modeswitch '%b/%k'"

# Option HSO device
ATTR{idVendor}=="0af0", ATTR{idProduct}=="d013", RUN+="usb_modeswitch '%b/%k'"

# Option HSO device
ATTR{idVendor}=="0af0", ATTR{idProduct}=="d031", RUN+="usb_modeswitch '%b/%k'"

# Option HSO device
ATTR{idVendor}=="0af0", ATTR{idProduct}=="d033", RUN+="usb_modeswitch '%b/%k'"

# Option HSO device
ATTR{idVendor}=="0af0", ATTR{idProduct}=="d035", RUN+="usb_modeswitch '%b/%k'"

# Option HSO device
ATTR{idVendor}=="0af0", ATTR{idProduct}=="d055", RUN+="usb_modeswitch '%b/%k'"

# Option HSO device
ATTR{idVendor}=="0af0", ATTR{idProduct}=="d057", RUN+="usb_modeswitch '%b/%k'"

# Option HSO device
ATTR{idVendor}=="0af0", ATTR{idProduct}=="d058", RUN+="usb_modeswitch '%b/%k'"

# Option HSO device
ATTR{idVendor}=="0af0", ATTR{idProduct}=="d155", RUN+="usb_modeswitch '%b/%k'"

# Option HSO device
ATTR{idVendor}=="0af0", ATTR{idProduct}=="d157", RUN+="usb_modeswitch '%b/%k'"

# Option HSO device
ATTR{idVendor}=="0af0", ATTR{idProduct}=="d255", RUN+="usb_modeswitch '%b/%k'"

# Option HSO device
ATTR{idVendor}=="0af0", ATTR{idProduct}=="d257", RUN+="usb_modeswitch '%b/%k'"

# Option HSO device
ATTR{idVendor}=="0af0", ATTR{idProduct}=="d357", RUN+="usb_modeswitch '%b/%k'"

# Olivetti Olicard 100 and others
ATTR{idVendor}=="0b3c", ATTR{idProduct}=="c700", RUN+="usb_modeswitch '%b/%k'"

# Olivetti Olicard 145, 155
ATTR{idVendor}=="0b3c", ATTR{idProduct}=="f000", RUN+="usb_modeswitch '%b/%k'"

# Atheros Wireless / Netgear WNDA3200
ATTR{idVendor}=="0cf3", ATTR{idProduct}=="20ff", RUN+="usb_modeswitch '%b/%k'"

# Kobil mIdentity 3G (1)
ATTR{idVendor}=="0d46", ATTR{idProduct}=="45a1", RUN+="usb_modeswitch '%b/%k'"

# Kobil mIdentity 3G (2)
ATTR{idVendor}=="0d46", ATTR{idProduct}=="45a5", RUN+="usb_modeswitch '%b/%k'"

# Mobile Action ("Smart Cable")
ATTR{idVendor}=="0df7", ATTR{idProduct}=="0800", RUN+="usb_modeswitch '%b/%k'"

# MediaTek MT6276M, MediaTek MT6276M
ATTR{idVendor}=="0e8d", ATTR{idProduct}=="0002", RUN+="usb_modeswitch '%b/%k'"

# MediaTek Wimax USB Card
ATTR{idVendor}=="0e8d", ATTR{idProduct}=="7109", RUN+="usb_modeswitch '%b/%k'"

# BlackBerry Q10 and Z10
ATTR{idVendor}=="0fca", ATTR{idProduct}=="8020", RUN+="usb_modeswitch '%b/%k'"

# Sony Ericsson MD300
ATTR{idVendor}=="0fce", ATTR{idProduct}=="d0cf", RUN+="usb_modeswitch '%b/%k'"

# Sony Ericsson MD400
ATTR{idVendor}=="0fce", ATTR{idProduct}=="d0e1", RUN+="usb_modeswitch '%b/%k'"

# Sony Ericsson MD400G
ATTR{idVendor}=="0fce", ATTR{idProduct}=="d103", RUN+="usb_modeswitch '%b/%k'"

# GW D301 (Advinne AMC)
ATTR{idVendor}=="0fd1", ATTR{idProduct}=="1000", RUN+="usb_modeswitch '%b/%k'"

# LG LDU-1900D EV-DO (Rev. A)
ATTR{idVendor}=="1004", ATTR{idProduct}=="1000", RUN+="usb_modeswitch '%b/%k'"

# LG HDM-2100 (EVDO Rev.A USB modem)
ATTR{idVendor}=="1004", ATTR{idProduct}=="607f", RUN+="usb_modeswitch '%b/%k'"

# LG L-05A
ATTR{idVendor}=="1004", ATTR{idProduct}=="613a", RUN+="usb_modeswitch '%b/%k'"

# LG LUU-2100TI (aka AT&T USBConnect Turbo)
ATTR{idVendor}=="1004", ATTR{idProduct}=="613f", RUN+="usb_modeswitch '%b/%k'"

# LG L-07A
ATTR{idVendor}=="1004", ATTR{idProduct}=="614e", RUN+="usb_modeswitch '%b/%k'"

# LG LUU-2110TI
ATTR{idVendor}=="1004", ATTR{idProduct}=="6156", RUN+="usb_modeswitch '%b/%k'"

# LG AD600
ATTR{idVendor}=="1004", ATTR{idProduct}=="6190", RUN+="usb_modeswitch '%b/%k'"

# LG VL600
ATTR{idVendor}=="1004", ATTR{idProduct}=="61aa", RUN+="usb_modeswitch '%b/%k'"

# LG L-02C LTE
ATTR{idVendor}=="1004", ATTR{idProduct}=="61dd", RUN+="usb_modeswitch '%b/%k'"

# LG SD711
ATTR{idVendor}=="1004", ATTR{idProduct}=="61e7", RUN+="usb_modeswitch '%b/%k'"

# LG L-08C (NTT docomo)
ATTR{idVendor}=="1004", ATTR{idProduct}=="61eb", RUN+="usb_modeswitch '%b/%k'"

# LG L-03D LTE/3G
ATTR{idVendor}=="1004", ATTR{idProduct}=="6327", RUN+="usb_modeswitch '%b/%k'"

# Huawei E630
ATTR{idVendor}=="1033", ATTR{idProduct}=="0035", RUN+="usb_modeswitch '%b/%k'"

# UTStarcom UM175 (distributor "Alltel")
ATTR{idVendor}=="106c", ATTR{idProduct}=="3b03", RUN+="usb_modeswitch '%b/%k'"

# Pantech / UTStarcom UMW190 (Verizon)
ATTR{idVendor}=="106c", ATTR{idProduct}=="3b05", RUN+="usb_modeswitch '%b/%k'"

# UTStarcom UM185E (distributor "Alltel")
ATTR{idVendor}=="106c", ATTR{idProduct}=="3b06", RUN+="usb_modeswitch '%b/%k'"

# Pantech UML290
ATTR{idVendor}=="106c", ATTR{idProduct}=="3b11", RUN+="usb_modeswitch '%b/%k'"

# Option Beemo / Pantech P4200 LTE
ATTR{idVendor}=="106c", ATTR{idProduct}=="3b14", RUN+="usb_modeswitch '%b/%k'"

# Sagem F@ST 9520-35-GLR
ATTR{idVendor}=="1076", ATTR{idProduct}=="7f40", RUN+="usb_modeswitch '%b/%k'"

# Hisense E910 EVDO Phone
ATTR{idVendor}=="109b", ATTR{idProduct}=="f009", RUN+="usb_modeswitch '%b/%k'"

# Pantech LTE Modem
ATTR{idVendor}=="10a9", ATTR{idProduct}=="6080", RUN+="usb_modeswitch '%b/%k'"

# Sierra devices (specific driver)
ATTR{idVendor}=="1199", ATTR{idProduct}=="0fff", RUN+="usb_modeswitch '%b/%k'"

# Digicom 8E4455 (and all Pirelli devices - EXPERIMENTAL)
ATTR{idVendor}=="1266", ATTR{idProduct}=="1000", RUN+="usb_modeswitch '%b/%k'"

# Huawei E169
ATTR{idVendor}=="12d1", ATTR{idProduct}=="1001", RUN+="usb_modeswitch '%b/%k'"

# Huawei E220, E230, E270, E870
ATTR{idVendor}=="12d1", ATTR{idProduct}=="1003", RUN+="usb_modeswitch '%b/%k'"

# Huawei V725 Phone (aka Vodafone 725)
ATTR{idVendor}=="12d1", ATTR{idProduct}=="1009", RUN+="usb_modeswitch '%b/%k'"

# Huawei U7510 / U7517
ATTR{idVendor}=="12d1", ATTR{idProduct}=="101e", RUN+="usb_modeswitch '%b/%k'"

# Huawei U8220, T-Mobile Pulse (Android smartphone)
ATTR{idVendor}=="12d1", ATTR{idProduct}=="1030", RUN+="usb_modeswitch '%b/%k'"

# Huawei U8110 / Joy, Vodafone 845 (Android smartphone), for Android SDK
ATTR{idVendor}=="12d1", ATTR{idProduct}=="1031", RUN+="usb_modeswitch '%b/%k'"

# Huawei E180
ATTR{idVendor}=="12d1", ATTR{idProduct}=="1414", RUN+="usb_modeswitch '%b/%k'"

# Huawei, newer modems
ATTR{idVendor}=="12d1", ATTR{idProduct}=="1446", RUN+="usb_modeswitch '%b/%k'"

# Huawei E352
ATTR{idVendor}=="12d1", ATTR{idProduct}=="1449", RUN+="usb_modeswitch '%b/%k'"

# Vodafone (Huawei) K3806
ATTR{idVendor}=="12d1", ATTR{idProduct}=="14ad", RUN+="usb_modeswitch '%b/%k'"

# Huawei E173 (Viettel 3G)
ATTR{idVendor}=="12d1", ATTR{idProduct}=="14b5", RUN+="usb_modeswitch '%b/%k'"

# Vodafone (Huawei) K4511
ATTR{idVendor}=="12d1", ATTR{idProduct}=="14b7", RUN+="usb_modeswitch '%b/%k'"

# Huawei E173u-2, E177
ATTR{idVendor}=="12d1", ATTR{idProduct}=="14ba", RUN+="usb_modeswitch '%b/%k'"

# Vodafone (Huawei) K4605
ATTR{idVendor}=="12d1", ATTR{idProduct}=="14c1", RUN+="usb_modeswitch '%b/%k'"

# K5005 Vodafone/Huawei
ATTR{idVendor}=="12d1", ATTR{idProduct}=="14c3", RUN+="usb_modeswitch '%b/%k'"

# Vodafone/Huawei K3771
ATTR{idVendor}=="12d1", ATTR{idProduct}=="14c4", RUN+="usb_modeswitch '%b/%k'"

# Vodafone (Huawei) K4510
ATTR{idVendor}=="12d1", ATTR{idProduct}=="14c5", RUN+="usb_modeswitch '%b/%k'"

# Vodafone / Huawei K3770
ATTR{idVendor}=="12d1", ATTR{idProduct}=="14d1", RUN+="usb_modeswitch '%b/%k'"

# T-Mobile NL (Huawei E352)
ATTR{idVendor}=="12d1", ATTR{idProduct}=="14fe", RUN+="usb_modeswitch '%b/%k'"

# Huawei EC156, Huawei E372u-8
ATTR{idVendor}=="12d1", ATTR{idProduct}=="1505", RUN+="usb_modeswitch '%b/%k'"

# Huawei E392u-12, E3131 (Variant)
ATTR{idVendor}=="12d1", ATTR{idProduct}=="151a", RUN+="usb_modeswitch '%b/%k'"

# Huawei K3765
ATTR{idVendor}=="12d1", ATTR{idProduct}=="1520", RUN+="usb_modeswitch '%b/%k'"

# Huawei K4505
ATTR{idVendor}=="12d1", ATTR{idProduct}=="1521", RUN+="usb_modeswitch '%b/%k'"

# Huawei R201
ATTR{idVendor}=="12d1", ATTR{idProduct}=="1523", RUN+="usb_modeswitch '%b/%k'"

# Vodafone / Huawei K3772
ATTR{idVendor}=="12d1", ATTR{idProduct}=="1526", RUN+="usb_modeswitch '%b/%k'"

# Huawei E1553
ATTR{idVendor}=="12d1", ATTR{idProduct}=="1553", RUN+="usb_modeswitch '%b/%k'"

# Huawei E173
ATTR{idVendor}=="12d1", ATTR{idProduct}=="1557", RUN+="usb_modeswitch '%b/%k'"

# Huawei E171
ATTR{idVendor}=="12d1", ATTR{idProduct}=="155b", RUN+="usb_modeswitch '%b/%k'"

# Huawei E3276s-151 and E3251
ATTR{idVendor}=="12d1", ATTR{idProduct}=="156a", RUN+="usb_modeswitch '%b/%k'"

# Huawei U2800 Phone
ATTR{idVendor}=="12d1", ATTR{idProduct}=="1805", RUN+="usb_modeswitch '%b/%k'"

# Huawei E173s
ATTR{idVendor}=="12d1", ATTR{idProduct}=="1c0b", RUN+="usb_modeswitch '%b/%k'"

# Huawei GP02 (E587 Variant)
ATTR{idVendor}=="12d1", ATTR{idProduct}=="1c1b", RUN+="usb_modeswitch '%b/%k'"

# Huawei E173 (Moviestar)
ATTR{idVendor}=="12d1", ATTR{idProduct}=="1c24", RUN+="usb_modeswitch '%b/%k'"

# Huawei ET302
ATTR{idVendor}=="12d1", ATTR{idProduct}=="1d50", RUN+="usb_modeswitch '%b/%k'"

# Huawei ET8282, Huawei ET127
ATTR{idVendor}=="12d1", ATTR{idProduct}=="1da1", RUN+="usb_modeswitch '%b/%k'"

# Huawei E353 (3.se)
ATTR{idVendor}=="12d1", ATTR{idProduct}=="1f01", RUN+="usb_modeswitch '%b/%k'"

# KDDI (Huawei) HWD12 LTE
ATTR{idVendor}=="12d1", ATTR{idProduct}=="1f03", RUN+="usb_modeswitch '%b/%k'"

# Vodafone / Huawei K3773
ATTR{idVendor}=="12d1", ATTR{idProduct}=="1f11", RUN+="usb_modeswitch '%b/%k'"

# Huawei K4305
ATTR{idVendor}=="12d1", ATTR{idProduct}=="1f15", RUN+="usb_modeswitch '%b/%k'"

# Huawei BM358 WiMAX
ATTR{idVendor}=="12d1", ATTR{idProduct}=="380b", RUN+="usb_modeswitch '%b/%k'"

# Cisco AM10 "Valet Connector"
ATTR{idVendor}=="1307", ATTR{idProduct}=="1169", RUN+="usb_modeswitch '%b/%k'"

# Novatel Wireless devices
ATTR{idVendor}=="1410", ATTR{idProduct}=="5010", RUN+="usb_modeswitch '%b/%k'"

# Novatel MC990D
ATTR{idVendor}=="1410", ATTR{idProduct}=="5020", RUN+="usb_modeswitch '%b/%k'"

# Novatel MC996D
ATTR{idVendor}=="1410", ATTR{idProduct}=="5023", RUN+="usb_modeswitch '%b/%k'"

# Novatel U760
ATTR{idVendor}=="1410", ATTR{idProduct}=="5030", RUN+="usb_modeswitch '%b/%k'"

# Novatel MC760 3G
ATTR{idVendor}=="1410", ATTR{idProduct}=="5031", RUN+="usb_modeswitch '%b/%k'"

# Novatel Generic MiFi 2352 / Vodafone MiFi 2352
ATTR{idVendor}=="1410", ATTR{idProduct}=="5041", RUN+="usb_modeswitch '%b/%k'"

# Novatel Wireless MC545 HSPA, U679 LTE
ATTR{idVendor}=="1410", ATTR{idProduct}=="5059", RUN+="usb_modeswitch '%b/%k'"

# Novatel Generic MiFi 2372 / Vodafone MiFi 2372
ATTR{idVendor}=="1410", ATTR{idProduct}=="7001", RUN+="usb_modeswitch '%b/%k'"

# Sequans SQN1210/SQN1220 (generic chipsets)
ATTR{idVendor}=="148e", ATTR{idProduct}=="a000", RUN+="usb_modeswitch '%b/%k'"

# Motorola 802.11 bg WLAN (TER/GUSB3-E)
ATTR{idVendor}=="148f", ATTR{idProduct}=="2578", RUN+="usb_modeswitch '%b/%k'"

# China TeleCom CBP7.0
ATTR{idVendor}=="15eb", ATTR{idProduct}=="7153", RUN+="usb_modeswitch '%b/%k'"

# C-motech CHU-628S
ATTR{idVendor}=="16d8", ATTR{idProduct}=="6281", RUN+="usb_modeswitch '%b/%k'"

# C-motech D-50 (aka "CDU-680", "CNU-680")
ATTR{idVendor}=="16d8", ATTR{idProduct}=="6803", RUN+="usb_modeswitch '%b/%k'"

# C-motech CDU-685a
ATTR{idVendor}=="16d8", ATTR{idProduct}=="6804", RUN+="usb_modeswitch '%b/%k'"

# C-motech CHU-629S
ATTR{idVendor}=="16d8", ATTR{idProduct}=="700a", RUN+="usb_modeswitch '%b/%k'"

# C-motech CHU-629S (Variant)
ATTR{idVendor}=="16d8", ATTR{idProduct}=="700b", RUN+="usb_modeswitch '%b/%k'"

# C-motech CGU-628 (aka "Franklin Wireless CGU-628A" aka "4G Systems XS Stick W12")
ATTR{idVendor}=="16d8", ATTR{idProduct}=="f000", RUN+="usb_modeswitch '%b/%k'"

# Axesstel MU130
ATTR{idVendor}=="1726", ATTR{idProduct}=="f00e", RUN+="usb_modeswitch '%b/%k'"

# JOA Telecom LM-700r
ATTR{idVendor}=="198a", ATTR{idProduct}=="0003", RUN+="usb_modeswitch '%b/%k'"

# Beceem BCSM250
ATTR{idVendor}=="198f", ATTR{idProduct}=="bccd", RUN+="usb_modeswitch '%b/%k'"

# ZTE MU351
ATTR{idVendor}=="19d2", ATTR{idProduct}=="0003", RUN+="usb_modeswitch '%b/%k'"

# Vodafone/ZTE K3806-Z
ATTR{idVendor}=="19d2", ATTR{idProduct}=="0013", RUN+="usb_modeswitch '%b/%k'"

# ZTE AC581
ATTR{idVendor}=="19d2", ATTR{idProduct}=="0026", RUN+="usb_modeswitch '%b/%k'"

# ZTE MF637
ATTR{idVendor}=="19d2", ATTR{idProduct}=="0031", RUN+="usb_modeswitch '%b/%k'"

# Vodafone (ZTE) K2525
ATTR{idVendor}=="19d2", ATTR{idProduct}=="0040", RUN+="usb_modeswitch '%b/%k'"

# ZTE MF110 (Variant)
ATTR{idVendor}=="19d2", ATTR{idProduct}=="0053", RUN+="usb_modeswitch '%b/%k'"

# ZTE MF110 (Variant), ZTE MF110 (Variant)
ATTR{idVendor}=="19d2", ATTR{idProduct}=="0083", RUN+="usb_modeswitch '%b/%k'"

# Vodafone (ZTE) K4505-Z
ATTR{idVendor}=="19d2", ATTR{idProduct}=="0101", RUN+="usb_modeswitch '%b/%k'"

# ZTE MF112
ATTR{idVendor}=="19d2", ATTR{idProduct}=="0103", RUN+="usb_modeswitch '%b/%k'"

# ZTE MF637 (Variant for Orange France)
ATTR{idVendor}=="19d2", ATTR{idProduct}=="0110", RUN+="usb_modeswitch '%b/%k'"

# ZTE MF651
ATTR{idVendor}=="19d2", ATTR{idProduct}=="0115", RUN+="usb_modeswitch '%b/%k'"

# ZTE MF652 (Variant)
ATTR{idVendor}=="19d2", ATTR{idProduct}=="0146", RUN+="usb_modeswitch '%b/%k'"

# ZTE MF190 (Variant)
ATTR{idVendor}=="19d2", ATTR{idProduct}=="0149", RUN+="usb_modeswitch '%b/%k'"

# ZTE MF656A, MF668A, MF669
ATTR{idVendor}=="19d2", ATTR{idProduct}=="0150", RUN+="usb_modeswitch '%b/%k'"

# ZTE MF190 (Variant) and others
ATTR{idVendor}=="19d2", ATTR{idProduct}=="0154", RUN+="usb_modeswitch '%b/%k'"

# ZTE MF820 4G LTE
ATTR{idVendor}=="19d2", ATTR{idProduct}=="0166", RUN+="usb_modeswitch '%b/%k'"

# ZTE A371B
ATTR{idVendor}=="19d2", ATTR{idProduct}=="0169", RUN+="usb_modeswitch '%b/%k'"

# Onda MT8205 LTE
ATTR{idVendor}=="19d2", ATTR{idProduct}=="0266", RUN+="usb_modeswitch '%b/%k'"

# ZTE MF821D
ATTR{idVendor}=="19d2", ATTR{idProduct}=="0325", RUN+="usb_modeswitch '%b/%k'"

# Vodafone (ZTE) K3805-Z
ATTR{idVendor}=="19d2", ATTR{idProduct}=="1001", RUN+="usb_modeswitch '%b/%k'"

# Vodafone (ZTE) K3570-Z
ATTR{idVendor}=="19d2", ATTR{idProduct}=="1007", RUN+="usb_modeswitch '%b/%k'"

# Vodafone (ZTE) K3571-Z
ATTR{idVendor}=="19d2", ATTR{idProduct}=="1009", RUN+="usb_modeswitch '%b/%k'"

# Vodafone (ZTE) K3806-Z
ATTR{idVendor}=="19d2", ATTR{idProduct}=="1013", RUN+="usb_modeswitch '%b/%k'"

# Vodafone K5006Z (MF821)
ATTR{idVendor}=="19d2", ATTR{idProduct}=="1017", RUN+="usb_modeswitch '%b/%k'"

# Vodafone (ZTE) K4510-Z
ATTR{idVendor}=="19d2", ATTR{idProduct}=="1171", RUN+="usb_modeswitch '%b/%k'"

# Vodafone / ZTE K3770-Z
ATTR{idVendor}=="19d2", ATTR{idProduct}=="1175", RUN+="usb_modeswitch '%b/%k'"

# Vodafone (ZTE) K3772-Z
ATTR{idVendor}=="19d2", ATTR{idProduct}=="1179", RUN+="usb_modeswitch '%b/%k'"

# ZTE MF691 (T-Mobile Rocket 2.0)
ATTR{idVendor}=="19d2", ATTR{idProduct}=="1201", RUN+="usb_modeswitch '%b/%k'"

# ZTE MF192+
ATTR{idVendor}=="19d2", ATTR{idProduct}=="1216", RUN+="usb_modeswitch '%b/%k'"

# ZTE MF190
ATTR{idVendor}=="19d2", ATTR{idProduct}=="1224", RUN+="usb_modeswitch '%b/%k'"

# ZTE MF680
ATTR{idVendor}=="19d2", ATTR{idProduct}=="1227", RUN+="usb_modeswitch '%b/%k'"

# ZTE MF192 (yet annother variant)
ATTR{idVendor}=="19d2", ATTR{idProduct}=="1514", RUN+="usb_modeswitch '%b/%k'"

# ZTE MF192 (Variant)
ATTR{idVendor}=="19d2", ATTR{idProduct}=="1517", RUN+="usb_modeswitch '%b/%k'"

# ZTE MF652
ATTR{idVendor}=="19d2", ATTR{idProduct}=="1520", RUN+="usb_modeswitch '%b/%k'"

# ZTE MF591 TMobile
ATTR{idVendor}=="19d2", ATTR{idProduct}=="1523", RUN+="usb_modeswitch '%b/%k'"

# ZTE MF196
ATTR{idVendor}=="19d2", ATTR{idProduct}=="1528", RUN+="usb_modeswitch '%b/%k'"

# ZTE MF190J
ATTR{idVendor}=="19d2", ATTR{idProduct}=="1542", RUN+="usb_modeswitch '%b/%k'"

# ZTE devices
ATTR{idVendor}=="19d2", ATTR{idProduct}=="2000", RUN+="usb_modeswitch '%b/%k'"

# ZTE AX226 WiMax
ATTR{idVendor}=="19d2", ATTR{idProduct}=="bccd", RUN+="usb_modeswitch '%b/%k'"

# ZTE AC682 (a.k.a. SmartFren Connex)
ATTR{idVendor}=="19d2", ATTR{idProduct}=="ffde", RUN+="usb_modeswitch '%b/%k'"

# ZTE "ffe" devices 1 (e.g. Cricket A605)
ATTR{idVendor}=="19d2", ATTR{idProduct}=="ffe6", RUN+="usb_modeswitch '%b/%k'"

# ZTE "fff" devices 1
ATTR{idVendor}=="19d2", ATTR{idProduct}=="fff5", RUN+="usb_modeswitch '%b/%k'"

# ZTE "fff" devices 2
ATTR{idVendor}=="19d2", ATTR{idProduct}=="fff6", RUN+="usb_modeswitch '%b/%k'"

# BandRich BandLuxe C100, C120, C170, C270, C3xx, C508
ATTR{idVendor}=="1a8d", ATTR{idProduct}=="1000", RUN+="usb_modeswitch '%b/%k'"

# BandRich BandLuxe C339
ATTR{idVendor}=="1a8d", ATTR{idProduct}=="2000", RUN+="usb_modeswitch '%b/%k'"

# Hummer DTM5731, Aircard 901
ATTR{idVendor}=="1ab7", ATTR{idProduct}=="5700", RUN+="usb_modeswitch '%b/%k'"

# EpiValley SEC-7089 (featured by Alegro and Starcomms / iZAP)
ATTR{idVendor}=="1b7d", ATTR{idProduct}=="0700", RUN+="usb_modeswitch '%b/%k'"

# ETCOM E300
ATTR{idVendor}=="1bbb", ATTR{idProduct}=="000f", RUN+="usb_modeswitch '%b/%k'"

# Alcatel OT-X080C
ATTR{idVendor}=="1bbb", ATTR{idProduct}=="00ca", RUN+="usb_modeswitch '%b/%k'"

# Alcatel X200/X200L/X060S, Archos G9 3G Key
ATTR{idVendor}=="1bbb", ATTR{idProduct}=="f000", RUN+="usb_modeswitch '%b/%k'"

# Alcatel OT-X220D, L100V
ATTR{idVendor}=="1bbb", ATTR{idProduct}=="f017", RUN+="usb_modeswitch '%b/%k'"

# Alcatel OT X220L
ATTR{idVendor}=="1bbb", ATTR{idProduct}=="f052", RUN+="usb_modeswitch '%b/%k'"

# Alcatel One Touch X020
ATTR{idVendor}=="1c9e", ATTR{idProduct}=="1001", RUN+="usb_modeswitch '%b/%k'"

# Vibe 3G Modem
ATTR{idVendor}=="1c9e", ATTR{idProduct}=="6061", RUN+="usb_modeswitch '%b/%k'"

# MyWave SW006 Sport Phone/Modem Combination
ATTR{idVendor}=="1c9e", ATTR{idProduct}=="9200", RUN+="usb_modeswitch '%b/%k'"

# Longcheer SU9800
ATTR{idVendor}=="1c9e", ATTR{idProduct}=="9800", RUN+="usb_modeswitch '%b/%k'"

# Telewell TW-3G HSPA+
ATTR{idVendor}=="1c9e", ATTR{idProduct}=="98ff", RUN+="usb_modeswitch '%b/%k'"

# BSNL Capitel
ATTR{idVendor}=="1c9e", ATTR{idProduct}=="9e00", RUN+="usb_modeswitch '%b/%k'"

# Explay Slim
ATTR{idVendor}=="1c9e", ATTR{idProduct}=="9e08", RUN+="usb_modeswitch '%b/%k'"

# MobiData MBD-200HU and others
ATTR{idVendor}=="1c9e", ATTR{idProduct}=="f000", RUN+="usb_modeswitch '%b/%k'"

# Qisda H21 Flying Beetle
ATTR{idVendor}=="1da5", ATTR{idProduct}=="f000", RUN+="usb_modeswitch '%b/%k'"

# Solomon S3Gm-660
ATTR{idVendor}=="1dd6", ATTR{idProduct}=="1000", RUN+="usb_modeswitch '%b/%k'"

# Philips PicoPix 1020 Projector
ATTR{idVendor}=="1de1", ATTR{idProduct}=="1101", RUN+="usb_modeswitch '%b/%k'"

# Option iCON 210, PROLiNK PHS100, Hyundai MB-810, A-Link 3GU
ATTR{idVendor}=="1e0e", ATTR{idProduct}=="f000", RUN+="usb_modeswitch '%b/%k'"

# 3GO 3GO11 HSUPA
ATTR{idVendor}=="1e89", ATTR{idProduct}=="f000", RUN+="usb_modeswitch '%b/%k'"

# AirPlus MCD-800
ATTR{idVendor}=="1edf", ATTR{idProduct}=="6003", RUN+="usb_modeswitch '%b/%k'"

# Onda MW833UP
ATTR{idVendor}=="1ee8", ATTR{idProduct}=="0009", RUN+="usb_modeswitch '%b/%k'"

# Onda MW833UP
ATTR{idVendor}=="1ee8", ATTR{idProduct}=="0013", RUN+="usb_modeswitch '%b/%k'"

# Onda MW836UP-K
ATTR{idVendor}=="1ee8", ATTR{idProduct}=="0040", RUN+="usb_modeswitch '%b/%k'"

# Onda MDC655
ATTR{idVendor}=="1ee8", ATTR{idProduct}=="004a", RUN+="usb_modeswitch '%b/%k'"

# Onda MW875UP
ATTR{idVendor}=="1ee8", ATTR{idProduct}=="0054", RUN+="usb_modeswitch '%b/%k'"

# Onda MSA 14.4 (TIM Brasil)
ATTR{idVendor}=="1ee8", ATTR{idProduct}=="0060", RUN+="usb_modeswitch '%b/%k'"

# Onda TM201 14.4 (TIM Italy)
ATTR{idVendor}=="1ee8", ATTR{idProduct}=="0063", RUN+="usb_modeswitch '%b/%k'"

# Onda WM301
ATTR{idVendor}=="1ee8", ATTR{idProduct}=="0068", RUN+="usb_modeswitch '%b/%k'"

# Cricket A600
ATTR{idVendor}=="1f28", ATTR{idProduct}=="0021", RUN+="usb_modeswitch '%b/%k'"

# Franklin Wireless U210 (Variant)
ATTR{idVendor}=="1fac", ATTR{idProduct}=="0032", RUN+="usb_modeswitch '%b/%k'"

# Franklin Wireless U210
ATTR{idVendor}=="1fac", ATTR{idProduct}=="0130", RUN+="usb_modeswitch '%b/%k'"

# Franklin Wireless U600
ATTR{idVendor}=="1fac", ATTR{idProduct}=="0150", RUN+="usb_modeswitch '%b/%k'"

# Franklin Wireless U600
ATTR{idVendor}=="1fac", ATTR{idProduct}=="0151", RUN+="usb_modeswitch '%b/%k'"

# D-Link DWM-156 (Variant)
ATTR{idVendor}=="2001", ATTR{idProduct}=="a706", RUN+="usb_modeswitch '%b/%k'"

# D-Link DWM-156 (Variant)
ATTR{idVendor}=="2001", ATTR{idProduct}=="a707", RUN+="usb_modeswitch '%b/%k'"

# D-Link DWM-156 (Variant)
ATTR{idVendor}=="2001", ATTR{idProduct}=="a708", RUN+="usb_modeswitch '%b/%k'"

# D-Link DWR-510
ATTR{idVendor}=="2001", ATTR{idProduct}=="a805", RUN+="usb_modeswitch '%b/%k'"

# D-Link DWM-156 (Variant)
ATTR{idVendor}=="2001", ATTR{idProduct}=="a80b", RUN+="usb_modeswitch '%b/%k'"

# Haier CE682 (EVDO)
ATTR{idVendor}=="201e", ATTR{idProduct}=="1023", RUN+="usb_modeswitch '%b/%k'"

# Haier CE 100
ATTR{idVendor}=="201e", ATTR{idProduct}=="2009", RUN+="usb_modeswitch '%b/%k'"

# Mediatek MT6229
ATTR{idVendor}=="2020", ATTR{idProduct}=="0002", RUN+="usb_modeswitch '%b/%k'"

# SpeedUp SU-8000U
ATTR{idVendor}=="2020", ATTR{idProduct}=="f00e", RUN+="usb_modeswitch '%b/%k'"

# Changhong CH690
ATTR{idVendor}=="2077", ATTR{idProduct}=="1000", RUN+="usb_modeswitch '%b/%k'"

# Telenet 3G dongle (T&W WU160)
ATTR{idVendor}=="2077", ATTR{idProduct}=="f000", RUN+="usb_modeswitch '%b/%k'"

# StrongRising (China Telcom), Air FlexiNet
ATTR{idVendor}=="21f5", ATTR{idProduct}=="1000", RUN+="usb_modeswitch '%b/%k'"

# WeTelecom WM-D200
ATTR{idVendor}=="22de", ATTR{idProduct}=="6801", RUN+="usb_modeswitch '%b/%k'"

# WeTelecom WM-D300
ATTR{idVendor}=="22de", ATTR{idProduct}=="6803", RUN+="usb_modeswitch '%b/%k'"

# Tata Photon+
ATTR{idVendor}=="22f4", ATTR{idProduct}=="0021", RUN+="usb_modeswitch '%b/%k'"

# Linktop LW272/LW273 (BSNL Teracom)
ATTR{idVendor}=="230d", ATTR{idProduct}=="0001", RUN+="usb_modeswitch '%b/%k'"

# Visiontek 82GH 3G
ATTR{idVendor}=="230d", ATTR{idProduct}=="0007", RUN+="usb_modeswitch '%b/%k'"

# Linktop LW272/LW273
ATTR{idVendor}=="230d", ATTR{idProduct}=="0101", RUN+="usb_modeswitch '%b/%k'"

# Teracom LW272
ATTR{idVendor}=="230d", ATTR{idProduct}=="0103", RUN+="usb_modeswitch '%b/%k'"

# TP-Link MA180
ATTR{idVendor}=="2357", ATTR{idProduct}=="0200", RUN+="usb_modeswitch '%b/%k'"

# TP-Link MA260
ATTR{idVendor}=="2357", ATTR{idProduct}=="f000", RUN+="usb_modeswitch '%b/%k'"

# Exiss Mobile E-190 series (made by C-motech)
ATTR{idVendor}=="8888", ATTR{idProduct}=="6500", RUN+="usb_modeswitch '%b/%k'"

# Huawei E353
ATTRS{idVendor}=="12d1", ATTRS{idProduct}=="15сa", RUN+="usb_modeswitch '%b/%k'"


LABEL="modeswitch_rules_end"

Файл /etc/wvdial.conf

+ открыть спойлер

[Dialer megafon]
Auto Reconnect = on
Init1 = ATZ
Init2 = AT+CGDCONT=1,"IP","internet"
Modem = /dev/ttyUSB0
Phone = *99#
Baud = 460800
Username = gdata
Password = gdata
Abort on Busy = on
Stupid Mode = on

При попытке подключения выдает слудующее -

+ открыть спойлер

[root@localhost archangel]# wvdial megafon
--> WvDial: Internet dialer version 1.61
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: AT+CGDCONT=1,"IP","internet"
AT+CGDCONT=1,"IP","internet"
OK
--> Modem initialized.
--> Sending: ATDT*99#
--> Waiting for carrier.
ATDT*99#
ERROR
--> Invalid dial command.
--> Disconnecting at Thu Oct 16 21:46:51 2014
[root@localhost archangel]#

Заранее спасибо за помощь!

2

Re: Мегафон М21-4(Huawey E3131) не подключает.

У меня huawei e171, изначально от MTS, затем я его разлочил и использовал некоторое время sim карту от Мегафон, вот мой конфиг от wvdial:

[Dialer megafon]

Modem = /dev/ttyUSB0
ISDN = off
Modem Type = USB Modem
Baud = 9600
Init1= ATZ
Init2= ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Init3 = AT^SYSCFG=14,2,3fffffff,0,1

Ask Password = off
Auto Reconnect = on
Auto DNS = off
Abort on Busy = off
Carrier Check = no
Check Def Route = on
Abort on No Dialtone = on
Stupid Mode = on
Idle Seconds = 0
Init4 = AT+CGDCONT=1,"IP","internet"    
Username = \n
Password = \n
Phone = *99#

Имя и пароль gdata не нужны.

Если не получится через wvdial, то можете попробовать настроить через NetworkManager.

3

Re: Мегафон М21-4(Huawey E3131) не подключает.

Archangel089, Вашу конкретную модель не знаю, врать не буду. Но по практике Хуавей легко определяется как ТЕЛЕФОННЫЙ МОДЕМ. С соответствующими настройками в менеджере.

4

Re: Мегафон М21-4(Huawey E3131) не подключает.

При таком конфиге пишет некоректный параметр.

+ открыть спойлер

--> WvDial: Internet dialer version 1.61
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
+CME ERROR: Incorrect parameters
--> Bad init string.
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
+CME ERROR: Incorrect parameters
--> Bad init string.
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
+CME ERROR: Incorrect parameters
--> Bad init string.

А NetworkManager просто не хочет подключать. Нажимаю подключиться - пару секунд висит "Пожалйста подождите" и отваливается.

5

Re: Мегафон М21-4(Huawey E3131) не подключает.

Archangel089 пишет

При таком конфиге пишет некоректный параметр.

Уберите эти строки:

Init2= ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Init3 = AT^SYSCFG=14,2,3fffffff,0,1
Archangel089 пишет

А NetworkManager просто не хочет подключать.

Попробуйте вместо gdata оставить пустую строку или ввести \n. На ноутбуке настраивал подключение к Мегафон посредством NetworkManager, по умолчанию он предлагает как раз gdata в качестве имени пользователя и пароля, я их убрал и сейчас уже не помню, возможно поставил \n, попробуйте и так и так.

6

Re: Мегафон М21-4(Huawey E3131) не подключает.

stranger, После всех операций определяется как Проводная сеть HUAWEI HUAWEI Mobile. Но всё равно не конектит ac
Да и при настройке почему то не предложил ввести номер дозвона...

7

Re: Мегафон М21-4(Huawey E3131) не подключает.

kostik87, Спасибо!!!! \n помогло! Интерфейс поднялся!

8

Re: Мегафон М21-4(Huawey E3131) не подключает.

Archangel089 пишет

Спасибо!!!! \n помогло! Интерфейс поднялся!

Archangel089, пожалуйста.