Moin Moin meine Lieben,
Hab seit dem 10.08.09, ca 23:00 folgendes Problem
Habe gegoogelt und hier gesucht und da sind so sachen gefallen, wie das das maodem gerne mal mit dem CD-Rom tauscht.
Hab bis um 04:00 heute morge mal diverse Beiträge von hier durchprobiert und nicht zum gewünschten ergebnis gekommen.
KDE3 meldet beim einstecken keine neuen Geräte, kann damit leben weiß ja was gesteckt ist.
Werde heute abend diesen mal probieren: http://linux.frankenberger.at/Huawei_E220.html.
Nun zum Problem, anscheinen haben im laufenden Betrieb das Modem und das Emu CD-Rom die Plätze getauscht, warum weiß ich nicht.
hier mal paar Infos:
# lsusb
Bus 004 Device 006: ID 12d1:1003 Huawei Technologies Co., Ltd. E220 HSDPA Modem / E270 HSDPA/HSUPA Modem
Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 003: ID 0a81:0101 Chesen Electronics Corp. Keyboard
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 003: ID 046d:c046 Logitech, Inc. RX1000 Laser Mouse
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
# tail -f /var/log/messages
Aug 12 02:16:00 linux kernel: usb 4-6: USB disconnect, address 8
Aug 12 02:16:00 linux kernel: option1 ttyUSB0: GSM modem (1-port) converter now disconnected from ttyUSB0
Aug 12 02:16:00 linux kernel: option 4-6:1.0: device disconnected
Aug 12 02:16:00 linux kernel: option1 ttyUSB1: GSM modem (1-port) converter now disconnected from ttyUSB1
Aug 12 02:16:00 linux kernel: option 4-6:1.1: device disconnected
Aug 12 02:16:06 linux kernel: usb 4-6: new high speed USB device using ehci_hcd and address 9
Aug 12 02:16:06 linux kernel: usb 4-6: configuration #1 chosen from 1 choice
Aug 12 02:16:06 linux kernel: scsi20 : SCSI emulation for USB Mass Storage devices
Aug 12 02:16:06 linux kernel: usb 4-6: New USB device found, idVendor=12d1, idProduct=1003
Aug 12 02:16:06 linux kernel: usb 4-6: New USB device strings: Mfr=3, Product=2, SerialNumber=0
Aug 12 02:16:06 linux kernel: usb 4-6: Product: HUAWEI Mobile
Aug 12 02:16:06 linux kernel: usb 4-6: Manufacturer: HUAWEI Technology
Aug 12 02:16:06 linux kernel: usb 4-6: USB disconnect, address 9
Aug 12 02:16:06 linux kernel: usb-storage: device found at 9
Aug 12 02:16:06 linux kernel: usb-storage: waiting for device to settle before scanning
Aug 12 02:16:06 linux kernel: usbcore: deregistering interface driver option
Aug 12 02:16:06 linux kernel: usbserial: USB Serial deregistering driver GSM modem (1-port)
Aug 12 02:16:06 linux kernel: usbcore: deregistering interface driver usbserial_generic
Aug 12 02:16:06 linux kernel: usbserial: USB Serial deregistering driver generic
Aug 12 02:16:06 linux kernel: usbcore: deregistering interface driver usbserial
Aug 12 02:16:06 linux kernel: usbcore: registered new interface driver usbserial
Aug 12 02:16:06 linux kernel: usbserial: USB Serial support registered for generic
Aug 12 02:16:06 linux kernel: usbcore: registered new interface driver usbserial_generic
Aug 12 02:16:06 linux kernel: usbserial: USB Serial Driver core
Aug 12 02:16:06 linux kernel: usbserial: USB Serial support registered for GSM modem (1-port)
Aug 12 02:16:06 linux kernel: usbcore: registered new interface driver option
Aug 12 02:16:06 linux kernel: option: USB Driver for GSM modems: v0.7.2
Aug 12 02:16:13 linux kernel: usb 4-6: new high speed USB device using ehci_hcd and address 10
Aug 12 02:16:14 linux kernel: usb 4-6: configuration #1 chosen from 1 choice
Aug 12 02:16:14 linux kernel: usb-storage: probe of 4-6:1.0 failed with error -5
Aug 12 02:16:14 linux kernel: option 4-6:1.0: GSM modem (1-port) converter detected
Aug 12 02:16:14 linux kernel: usb 4-6: GSM modem (1-port) converter now attached to ttyUSB0
Aug 12 02:16:14 linux kernel: usb-storage: probe of 4-6:1.1 failed with error -5
Aug 12 02:16:14 linux kernel: option 4-6:1.1: GSM modem (1-port) converter detected
Aug 12 02:16:14 linux kernel: usb 4-6: GSM modem (1-port) converter now attached to ttyUSB1
Aug 12 02:16:18 linux kernel: scsi23 : SCSI emulation for USB Mass Storage devices
Aug 12 02:16:18 linux kernel: usb-storage: device found at 10
Aug 12 02:16:18 linux kernel: usb-storage: waiting for device to settle before scanning
Aug 12 02:16:20 linux kernel: scsi 23:0:0:0: CD-ROM HUAWEI Mass Storage 2.31 PQ: 0 ANSI: 2
Aug 12 02:16:22 linux kernel: scsi24 : SCSI emulation for USB Mass Storage devices
Aug 12 02:16:22 linux kernel: usb 4-6: New USB device found, idVendor=12d1, idProduct=1003
Aug 12 02:16:22 linux kernel: usb 4-6: New USB device strings: Mfr=3, Product=2, SerialNumber=0
Aug 12 02:16:22 linux kernel: usb 4-6: Product: HUAWEI Mobile
Aug 12 02:16:22 linux kernel: usb 4-6: Manufacturer: HUAWEI Technology
Aug 12 02:16:22 linux kernel: sr2: scsi-1 drive <<------
Aug 12 02:16:22 linux kernel: sr 23:0:0:0: Attached scsi CD-ROM sr2 <<---------
Aug 12 02:16:22 linux kernel: sr 23:0:0:0: Attached scsi generic sg6 type 5
Aug 12 02:16:22 linux kernel: usb-storage: device scan complete
Aug 12 02:16:22 linux kernel: usb-storage: device found at 10
Aug 12 02:16:22 linux kernel: usb-storage: waiting for device to settle before scanning
Aug 12 00:16:22 linux udevd-event[27175]: exec of program '/lib/udev/' failed
Aug 12 00:16:22 linux udevd-event[27177]: exec of program '/lib/udev/' failed
Aug 12 00:16:22 linux udevd-event[27179]: exec of program '/lib/udev/' failed
Aug 12 00:16:22 linux udevd-event[27187]: exec of program '/lib/udev/' failed
Aug 12 02:16:23 linux kernel: scsi 24:0:0:0: Direct-Access HUAWEI MMC Storage 2.31 PQ: 0 ANSI: 2
Aug 12 02:16:23 linux kernel: sd 24:0:0:0: [sdf] 1961984 512-byte hardware sectors: (1.00GB/958MiB)
Aug 12 02:16:23 linux kernel: sd 24:0:0:0: [sdf] Write Protect is off
Aug 12 02:16:23 linux kernel: sd 24:0:0:0: [sdf] Mode Sense: 0f 0e 00 00
Aug 12 02:16:23 linux kernel: sd 24:0:0:0: [sdf] Assuming drive cache: write through
Aug 12 02:16:23 linux kernel: sd 24:0:0:0: [sdf] 1961984 512-byte hardware sectors: (1.00GB/958MiB)
Aug 12 02:16:23 linux kernel: sd 24:0:0:0: [sdf] Write Protect is off
Aug 12 02:16:23 linux kernel: sd 24:0:0:0: [sdf] Mode Sense: 0f 0e 00 00
Aug 12 02:16:23 linux kernel: sd 24:0:0:0: [sdf] Assuming drive cache: write through
Aug 12 02:16:23 linux kernel: sdf: sdf1
Aug 12 02:16:23 linux kernel: sd 24:0:0:0: [sdf] Attached SCSI removable disk
Aug 12 02:16:23 linux kernel: sd 24:0:0:0: Attached scsi generic sg7 type 0
Aug 12 02:16:23 linux kernel: usb-storage: device scan complete
Aug 12 02:30:49 linux pppd[29258]: pppd 2.4.5 started by pitbull, uid 1000
Aug 12 02:30:49 linux pppd[29258]: Failed to open /dev/ttyUSB0: Permission denied
Aug 12 02:30:49 linux pppd[29258]: Exit.
USB_ModeSwitch.conf:
########################################################
# Huawei E220 (aka "Vodafone EasyBox II", aka "T-Mobile wnw Box Micro")
# Huawei E270
# Huawei E870
# and probably most other Huawei devices (just adapt product ID)
#
# Two options: 1. removal of "usb-storage" 2. the special control
# message found by Miroslav Bobovsky
#
# Contributor: Hans Kurent, Denis Sutter
DefaultVendor= 0x12d1
DefaultProduct= 0x1003
# choose one of these:
;DetachStorageOnly=1
HuaweiMode=1
########################################################
Aug 12 03:14:20 linux smpppd[31620]: smpppd version 1.59_SVN31 started
Aug 12 03:14:25 linux ifup: modem0 name: AT Modem
Aug 12 03:14:25 linux ifup: modem0 Startmode is 'manual'
Aug 12 03:14:25 linux SuSEfirewall2: Setting up rules from /etc/sysconfig/SuSEfirewall2 ...
Aug 12 03:14:25 linux SuSEfirewall2: using default zone 'ext' for interface eth_unknown_0
Aug 12 03:14:26 linux SuSEfirewall2: batch committing...
Aug 12 03:14:26 linux SuSEfirewall2: Firewall rules successfully set
Aug 12 03:14:33 linux pppd[32532]: Plugin passwordfd.so loaded.
Aug 12 03:14:33 linux pppd[32532]: pppd 2.4.5 started by root, uid 0
Aug 12 03:14:35 linux pppd[32532]: Script /usr/bin/wvdial --chat --no-syslog --config /var/run/smpppd/chat-modem0.conf smpppd finished (pid 32533), status = 0x0
Aug 12 03:14:35 linux pppd[32532]: Serial connection established.
Aug 12 03:14:35 linux kernel: ppp0 renamed to modem0 by pppd [32532]
Aug 12 03:14:35 linux pppd[32532]: Renamed interface ppp0 to modem0
Aug 12 03:14:35 linux pppd[32532]: Using interface modem0
Aug 12 03:14:35 linux pppd[32532]: Connect: modem0 <--> /dev/ttyUSB0
Aug 12 03:14:36 linux pppd[32532]: CHAP authentication succeeded
Aug 12 03:14:36 linux pppd[32532]: CHAP authentication succeeded
Aug 12 03:14:36 linux kernel: PPP BSD Compression module registered
Aug 12 03:14:36 linux kernel: PPP Deflate Compression module registered
Aug 12 03:14:54 linux syslog-ng[6911]: Log statistics; dropped='pipe(/dev/xconsole)=0', dropped='pipe(/dev/tty10)=0', processed='center(queued)=2482', processed='center(received)=1238', processed='destination(newsnotice)=0', processed='destination(acpid)=5', processed='destination(firewall)=0', processed='destination(null)=5', processed='destination(mail)=110', processed='destination(mailinfo)=110', processed='destination(console)=365', processed='destination(newserr)=0', processed='destination(newscrit)=0', processed='destination(messages)=1118', processed='destination(mailwarn)=0', processed='destination(localmessages)=36', processed='destination(netmgm)=0', processed='destination(mailerr)=0', processed='destination(xconsole)=365', processed='destination(warn)=368', processed='source(src)=1238'
Aug 12 03:15:07 linux pppd[32532]: Hangup (SIGHUP)
Aug 12 03:15:07 linux pppd[32532]: Modem hangup
Aug 12 03:15:07 linux pppd[32532]: Connection terminated.
Aug 12 03:15:08 linux pppd[32532]: Exit.
Aug 12 03:16:33 linux pppd[436]: Plugin passwordfd.so loaded.
Aug 12 03:16:33 linux pppd[436]: pppd 2.4.5 started by root, uid 0
Aug 12 03:16:35 linux pppd[436]: Script /usr/bin/wvdial --chat --no-syslog --config /var/run/smpppd/chat-modem0.conf smpppd finished (pid 437), status = 0x0
Aug 12 03:16:35 linux pppd[436]: Serial connection established.
Aug 12 03:16:35 linux kernel: ppp0 renamed to modem0 by pppd [436]
Aug 12 03:16:35 linux pppd[436]: Renamed interface ppp0 to modem0
Aug 12 03:16:35 linux pppd[436]: Using interface modem0
Aug 12 03:16:35 linux pppd[436]: Connect: modem0 <--> /dev/ttyUSB0
Aug 12 03:16:36 linux pppd[436]: CHAP authentication succeeded
Aug 12 03:16:36 linux pppd[436]: CHAP authentication succeeded
Aug 12 03:16:37 linux pppd[436]: Hangup (SIGHUP)
Aug 12 03:16:37 linux pppd[436]: Modem hangup
Aug 12 03:16:37 linux pppd[436]: Connection terminated.
Aug 12 03:16:38 linux pppd[436]: Exit.
Aug 12 03:17:37 linux smpppd[31621]: terminating on signal 15
Aug 12 03:17:40 linux SuSEfirewall2: Setting up rules from /etc/sysconfig/SuSEfirewall2 ...
Aug 12 03:17:40 linux SuSEfirewall2: using default zone 'ext' for interface eth_unknown_0
Aug 12 03:17:41 linux SuSEfirewall2: batch committing...
Aug 12 03:17:41 linux SuSEfirewall2: Firewall rules successfully set
Meine K-Internet Überwachung:
SuSE Meta pppd (smpppd-ifcfg), Version 1.59_SVN31 on linux.
Status is: disconnected
trying to connect to smpppd
connect to smpppd
Status is: disconnected
Status is: connecting
pppd[0]: Plugin passwordfd.so loaded.
pppd[0]: --> WvDial: Internet dialer version 1.60
pppd[0]: --> Initializing modem.
pppd[0]: --> Sending: ATZ
pppd[0]: ATZ
pppd[0]: OK
pppd[0]: --> Sending: AT Q0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
pppd[0]: AT Q0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
pppd[0]: OK
pppd[0]: --> Sending: ATM0
pppd[0]: ATM0
pppd[0]: OK
pppd[0]: --> Modem initialized.
pppd[0]: --> Sending: ATDT*99#
pppd[0]: --> Waiting for carrier.
pppd[0]: ATDT*99#
pppd[0]: CONNECT
pppd[0]: --> Carrier detected. Chatmode finished.
pppd[0]: Script /usr/bin/wvdial --chat --no-syslog --config /var/run/smpppd/chat-modem0.conf smpppd finished (pid 32533), status = 0x0
pppd[0]: Serial connection established.
pppd[0]: Renamed interface ppp0 to modem0
pppd[0]: Using interface modem0
Status is: connecting
pppd[0]: Connect: modem0 <--> /dev/ttyUSB0
pppd[0]: CHAP authentication succeeded
pppd[0]: CHAP authentication succeeded
pppd[0]: Hangup (SIGHUP)
pppd[0]: Modem hangup
pppd[0]: Connection terminated.
Status is: disconnected
pppd[0] died: A modem hung up the phone (exit code 16)
Wie kann sowas passieren?
Wenn man nur Surft und nix am system macht?
Zitat:
Vorbereitung: lsusb gibt uns als USB Vendor/Device ID (beim E220) 12d1:1003 aus, was wir uns merken sollten
(Die vendorID und die productID wechseln bei verschiedenen Modellen und/oder Revisionsnummern. Hier gibt es eine Liste.)
Um unser Modem in den richtigen Modus zu bringen, gibt es ein Programm von Miroslav Bobovsky,
welches man auf seiner Seite (oder von hier: huaweiAktBbo.c) downloaden kann.
Um es zu kompilieren muss libusb-dev auf dem System installiert sein.
Kompiliere das Programm nun mit: cc huaweiAktBbo.c -lusb -o huaweiAktBbo, kopiere es danach nach /sbin/huaweiAktBbo und rufe es mit root-Rechten auf.
Wenn sich unser Gerät dann im Modem-Status befindet, sollten drei serielle USB-Geräte aktiv sein:
/dev/ttyUSB0, /dev/ttyUSB1, /dev/ttyUSB2 (tail -f /var/log/messages gibt uns Auskunft darüber, ob alle USB-Geräte da sind
)
Um das Modem nun nutzen zu können, müssen wir noch das usbserial-Modul laden, dabei übergeben wir die vendor-ID (vendor=0x12d1) und die product-ID (product=0x1003).
modprobe usbserial vendor=0x12d1 product=0x1003
Zitat Ende.
Hat schon jemand das Progrämmchen huaweiAktBbo getestet, oder einen anderen Lösungsvorschlag?
Udev Rules nicht angelegt sind nur die 50-vmc-huaweiE220 da.
Für Rat und Schlag wäre ich sehr dankbar.
Mit freundlichen Grüßen
Euer Peter (BdMdesigN)
Hab seit dem 10.08.09, ca 23:00 folgendes Problem
Habe gegoogelt und hier gesucht und da sind so sachen gefallen, wie das das maodem gerne mal mit dem CD-Rom tauscht.
Hab bis um 04:00 heute morge mal diverse Beiträge von hier durchprobiert und nicht zum gewünschten ergebnis gekommen.
KDE3 meldet beim einstecken keine neuen Geräte, kann damit leben weiß ja was gesteckt ist.
Werde heute abend diesen mal probieren: http://linux.frankenberger.at/Huawei_E220.html.
Nun zum Problem, anscheinen haben im laufenden Betrieb das Modem und das Emu CD-Rom die Plätze getauscht, warum weiß ich nicht.
hier mal paar Infos:
# lsusb
Bus 004 Device 006: ID 12d1:1003 Huawei Technologies Co., Ltd. E220 HSDPA Modem / E270 HSDPA/HSUPA Modem
Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 003: ID 0a81:0101 Chesen Electronics Corp. Keyboard
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 003: ID 046d:c046 Logitech, Inc. RX1000 Laser Mouse
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
# tail -f /var/log/messages
Aug 12 02:16:00 linux kernel: usb 4-6: USB disconnect, address 8
Aug 12 02:16:00 linux kernel: option1 ttyUSB0: GSM modem (1-port) converter now disconnected from ttyUSB0
Aug 12 02:16:00 linux kernel: option 4-6:1.0: device disconnected
Aug 12 02:16:00 linux kernel: option1 ttyUSB1: GSM modem (1-port) converter now disconnected from ttyUSB1
Aug 12 02:16:00 linux kernel: option 4-6:1.1: device disconnected
Aug 12 02:16:06 linux kernel: usb 4-6: new high speed USB device using ehci_hcd and address 9
Aug 12 02:16:06 linux kernel: usb 4-6: configuration #1 chosen from 1 choice
Aug 12 02:16:06 linux kernel: scsi20 : SCSI emulation for USB Mass Storage devices
Aug 12 02:16:06 linux kernel: usb 4-6: New USB device found, idVendor=12d1, idProduct=1003
Aug 12 02:16:06 linux kernel: usb 4-6: New USB device strings: Mfr=3, Product=2, SerialNumber=0
Aug 12 02:16:06 linux kernel: usb 4-6: Product: HUAWEI Mobile
Aug 12 02:16:06 linux kernel: usb 4-6: Manufacturer: HUAWEI Technology
Aug 12 02:16:06 linux kernel: usb 4-6: USB disconnect, address 9
Aug 12 02:16:06 linux kernel: usb-storage: device found at 9
Aug 12 02:16:06 linux kernel: usb-storage: waiting for device to settle before scanning
Aug 12 02:16:06 linux kernel: usbcore: deregistering interface driver option
Aug 12 02:16:06 linux kernel: usbserial: USB Serial deregistering driver GSM modem (1-port)
Aug 12 02:16:06 linux kernel: usbcore: deregistering interface driver usbserial_generic
Aug 12 02:16:06 linux kernel: usbserial: USB Serial deregistering driver generic
Aug 12 02:16:06 linux kernel: usbcore: deregistering interface driver usbserial
Aug 12 02:16:06 linux kernel: usbcore: registered new interface driver usbserial
Aug 12 02:16:06 linux kernel: usbserial: USB Serial support registered for generic
Aug 12 02:16:06 linux kernel: usbcore: registered new interface driver usbserial_generic
Aug 12 02:16:06 linux kernel: usbserial: USB Serial Driver core
Aug 12 02:16:06 linux kernel: usbserial: USB Serial support registered for GSM modem (1-port)
Aug 12 02:16:06 linux kernel: usbcore: registered new interface driver option
Aug 12 02:16:06 linux kernel: option: USB Driver for GSM modems: v0.7.2
Aug 12 02:16:13 linux kernel: usb 4-6: new high speed USB device using ehci_hcd and address 10
Aug 12 02:16:14 linux kernel: usb 4-6: configuration #1 chosen from 1 choice
Aug 12 02:16:14 linux kernel: usb-storage: probe of 4-6:1.0 failed with error -5
Aug 12 02:16:14 linux kernel: option 4-6:1.0: GSM modem (1-port) converter detected
Aug 12 02:16:14 linux kernel: usb 4-6: GSM modem (1-port) converter now attached to ttyUSB0
Aug 12 02:16:14 linux kernel: usb-storage: probe of 4-6:1.1 failed with error -5
Aug 12 02:16:14 linux kernel: option 4-6:1.1: GSM modem (1-port) converter detected
Aug 12 02:16:14 linux kernel: usb 4-6: GSM modem (1-port) converter now attached to ttyUSB1
Aug 12 02:16:18 linux kernel: scsi23 : SCSI emulation for USB Mass Storage devices
Aug 12 02:16:18 linux kernel: usb-storage: device found at 10
Aug 12 02:16:18 linux kernel: usb-storage: waiting for device to settle before scanning
Aug 12 02:16:20 linux kernel: scsi 23:0:0:0: CD-ROM HUAWEI Mass Storage 2.31 PQ: 0 ANSI: 2
Aug 12 02:16:22 linux kernel: scsi24 : SCSI emulation for USB Mass Storage devices
Aug 12 02:16:22 linux kernel: usb 4-6: New USB device found, idVendor=12d1, idProduct=1003
Aug 12 02:16:22 linux kernel: usb 4-6: New USB device strings: Mfr=3, Product=2, SerialNumber=0
Aug 12 02:16:22 linux kernel: usb 4-6: Product: HUAWEI Mobile
Aug 12 02:16:22 linux kernel: usb 4-6: Manufacturer: HUAWEI Technology
Aug 12 02:16:22 linux kernel: sr2: scsi-1 drive <<------
Aug 12 02:16:22 linux kernel: sr 23:0:0:0: Attached scsi CD-ROM sr2 <<---------
Aug 12 02:16:22 linux kernel: sr 23:0:0:0: Attached scsi generic sg6 type 5
Aug 12 02:16:22 linux kernel: usb-storage: device scan complete
Aug 12 02:16:22 linux kernel: usb-storage: device found at 10
Aug 12 02:16:22 linux kernel: usb-storage: waiting for device to settle before scanning
Aug 12 00:16:22 linux udevd-event[27175]: exec of program '/lib/udev/' failed
Aug 12 00:16:22 linux udevd-event[27177]: exec of program '/lib/udev/' failed
Aug 12 00:16:22 linux udevd-event[27179]: exec of program '/lib/udev/' failed
Aug 12 00:16:22 linux udevd-event[27187]: exec of program '/lib/udev/' failed
Aug 12 02:16:23 linux kernel: scsi 24:0:0:0: Direct-Access HUAWEI MMC Storage 2.31 PQ: 0 ANSI: 2
Aug 12 02:16:23 linux kernel: sd 24:0:0:0: [sdf] 1961984 512-byte hardware sectors: (1.00GB/958MiB)
Aug 12 02:16:23 linux kernel: sd 24:0:0:0: [sdf] Write Protect is off
Aug 12 02:16:23 linux kernel: sd 24:0:0:0: [sdf] Mode Sense: 0f 0e 00 00
Aug 12 02:16:23 linux kernel: sd 24:0:0:0: [sdf] Assuming drive cache: write through
Aug 12 02:16:23 linux kernel: sd 24:0:0:0: [sdf] 1961984 512-byte hardware sectors: (1.00GB/958MiB)
Aug 12 02:16:23 linux kernel: sd 24:0:0:0: [sdf] Write Protect is off
Aug 12 02:16:23 linux kernel: sd 24:0:0:0: [sdf] Mode Sense: 0f 0e 00 00
Aug 12 02:16:23 linux kernel: sd 24:0:0:0: [sdf] Assuming drive cache: write through
Aug 12 02:16:23 linux kernel: sdf: sdf1
Aug 12 02:16:23 linux kernel: sd 24:0:0:0: [sdf] Attached SCSI removable disk
Aug 12 02:16:23 linux kernel: sd 24:0:0:0: Attached scsi generic sg7 type 0
Aug 12 02:16:23 linux kernel: usb-storage: device scan complete
Aug 12 02:30:49 linux pppd[29258]: pppd 2.4.5 started by pitbull, uid 1000
Aug 12 02:30:49 linux pppd[29258]: Failed to open /dev/ttyUSB0: Permission denied
Aug 12 02:30:49 linux pppd[29258]: Exit.
USB_ModeSwitch.conf:
########################################################
# Huawei E220 (aka "Vodafone EasyBox II", aka "T-Mobile wnw Box Micro")
# Huawei E270
# Huawei E870
# and probably most other Huawei devices (just adapt product ID)
#
# Two options: 1. removal of "usb-storage" 2. the special control
# message found by Miroslav Bobovsky
#
# Contributor: Hans Kurent, Denis Sutter
DefaultVendor= 0x12d1
DefaultProduct= 0x1003
# choose one of these:
;DetachStorageOnly=1
HuaweiMode=1
########################################################
Aug 12 03:14:20 linux smpppd[31620]: smpppd version 1.59_SVN31 started
Aug 12 03:14:25 linux ifup: modem0 name: AT Modem
Aug 12 03:14:25 linux ifup: modem0 Startmode is 'manual'
Aug 12 03:14:25 linux SuSEfirewall2: Setting up rules from /etc/sysconfig/SuSEfirewall2 ...
Aug 12 03:14:25 linux SuSEfirewall2: using default zone 'ext' for interface eth_unknown_0
Aug 12 03:14:26 linux SuSEfirewall2: batch committing...
Aug 12 03:14:26 linux SuSEfirewall2: Firewall rules successfully set
Aug 12 03:14:33 linux pppd[32532]: Plugin passwordfd.so loaded.
Aug 12 03:14:33 linux pppd[32532]: pppd 2.4.5 started by root, uid 0
Aug 12 03:14:35 linux pppd[32532]: Script /usr/bin/wvdial --chat --no-syslog --config /var/run/smpppd/chat-modem0.conf smpppd finished (pid 32533), status = 0x0
Aug 12 03:14:35 linux pppd[32532]: Serial connection established.
Aug 12 03:14:35 linux kernel: ppp0 renamed to modem0 by pppd [32532]
Aug 12 03:14:35 linux pppd[32532]: Renamed interface ppp0 to modem0
Aug 12 03:14:35 linux pppd[32532]: Using interface modem0
Aug 12 03:14:35 linux pppd[32532]: Connect: modem0 <--> /dev/ttyUSB0
Aug 12 03:14:36 linux pppd[32532]: CHAP authentication succeeded
Aug 12 03:14:36 linux pppd[32532]: CHAP authentication succeeded
Aug 12 03:14:36 linux kernel: PPP BSD Compression module registered
Aug 12 03:14:36 linux kernel: PPP Deflate Compression module registered
Aug 12 03:14:54 linux syslog-ng[6911]: Log statistics; dropped='pipe(/dev/xconsole)=0', dropped='pipe(/dev/tty10)=0', processed='center(queued)=2482', processed='center(received)=1238', processed='destination(newsnotice)=0', processed='destination(acpid)=5', processed='destination(firewall)=0', processed='destination(null)=5', processed='destination(mail)=110', processed='destination(mailinfo)=110', processed='destination(console)=365', processed='destination(newserr)=0', processed='destination(newscrit)=0', processed='destination(messages)=1118', processed='destination(mailwarn)=0', processed='destination(localmessages)=36', processed='destination(netmgm)=0', processed='destination(mailerr)=0', processed='destination(xconsole)=365', processed='destination(warn)=368', processed='source(src)=1238'
Aug 12 03:15:07 linux pppd[32532]: Hangup (SIGHUP)
Aug 12 03:15:07 linux pppd[32532]: Modem hangup
Aug 12 03:15:07 linux pppd[32532]: Connection terminated.
Aug 12 03:15:08 linux pppd[32532]: Exit.
Aug 12 03:16:33 linux pppd[436]: Plugin passwordfd.so loaded.
Aug 12 03:16:33 linux pppd[436]: pppd 2.4.5 started by root, uid 0
Aug 12 03:16:35 linux pppd[436]: Script /usr/bin/wvdial --chat --no-syslog --config /var/run/smpppd/chat-modem0.conf smpppd finished (pid 437), status = 0x0
Aug 12 03:16:35 linux pppd[436]: Serial connection established.
Aug 12 03:16:35 linux kernel: ppp0 renamed to modem0 by pppd [436]
Aug 12 03:16:35 linux pppd[436]: Renamed interface ppp0 to modem0
Aug 12 03:16:35 linux pppd[436]: Using interface modem0
Aug 12 03:16:35 linux pppd[436]: Connect: modem0 <--> /dev/ttyUSB0
Aug 12 03:16:36 linux pppd[436]: CHAP authentication succeeded
Aug 12 03:16:36 linux pppd[436]: CHAP authentication succeeded
Aug 12 03:16:37 linux pppd[436]: Hangup (SIGHUP)
Aug 12 03:16:37 linux pppd[436]: Modem hangup
Aug 12 03:16:37 linux pppd[436]: Connection terminated.
Aug 12 03:16:38 linux pppd[436]: Exit.
Aug 12 03:17:37 linux smpppd[31621]: terminating on signal 15
Aug 12 03:17:40 linux SuSEfirewall2: Setting up rules from /etc/sysconfig/SuSEfirewall2 ...
Aug 12 03:17:40 linux SuSEfirewall2: using default zone 'ext' for interface eth_unknown_0
Aug 12 03:17:41 linux SuSEfirewall2: batch committing...
Aug 12 03:17:41 linux SuSEfirewall2: Firewall rules successfully set
Meine K-Internet Überwachung:
SuSE Meta pppd (smpppd-ifcfg), Version 1.59_SVN31 on linux.
Status is: disconnected
trying to connect to smpppd
connect to smpppd
Status is: disconnected
Status is: connecting
pppd[0]: Plugin passwordfd.so loaded.
pppd[0]: --> WvDial: Internet dialer version 1.60
pppd[0]: --> Initializing modem.
pppd[0]: --> Sending: ATZ
pppd[0]: ATZ
pppd[0]: OK
pppd[0]: --> Sending: AT Q0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
pppd[0]: AT Q0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
pppd[0]: OK
pppd[0]: --> Sending: ATM0
pppd[0]: ATM0
pppd[0]: OK
pppd[0]: --> Modem initialized.
pppd[0]: --> Sending: ATDT*99#
pppd[0]: --> Waiting for carrier.
pppd[0]: ATDT*99#
pppd[0]: CONNECT
pppd[0]: --> Carrier detected. Chatmode finished.
pppd[0]: Script /usr/bin/wvdial --chat --no-syslog --config /var/run/smpppd/chat-modem0.conf smpppd finished (pid 32533), status = 0x0
pppd[0]: Serial connection established.
pppd[0]: Renamed interface ppp0 to modem0
pppd[0]: Using interface modem0
Status is: connecting
pppd[0]: Connect: modem0 <--> /dev/ttyUSB0
pppd[0]: CHAP authentication succeeded
pppd[0]: CHAP authentication succeeded
pppd[0]: Hangup (SIGHUP)
pppd[0]: Modem hangup
pppd[0]: Connection terminated.
Status is: disconnected
pppd[0] died: A modem hung up the phone (exit code 16)
Wie kann sowas passieren?
Wenn man nur Surft und nix am system macht?
Zitat:
Vorbereitung: lsusb gibt uns als USB Vendor/Device ID (beim E220) 12d1:1003 aus, was wir uns merken sollten
(Die vendorID und die productID wechseln bei verschiedenen Modellen und/oder Revisionsnummern. Hier gibt es eine Liste.)
Um unser Modem in den richtigen Modus zu bringen, gibt es ein Programm von Miroslav Bobovsky,
welches man auf seiner Seite (oder von hier: huaweiAktBbo.c) downloaden kann.
Um es zu kompilieren muss libusb-dev auf dem System installiert sein.
Kompiliere das Programm nun mit: cc huaweiAktBbo.c -lusb -o huaweiAktBbo, kopiere es danach nach /sbin/huaweiAktBbo und rufe es mit root-Rechten auf.
Wenn sich unser Gerät dann im Modem-Status befindet, sollten drei serielle USB-Geräte aktiv sein:
/dev/ttyUSB0, /dev/ttyUSB1, /dev/ttyUSB2 (tail -f /var/log/messages gibt uns Auskunft darüber, ob alle USB-Geräte da sind
Um das Modem nun nutzen zu können, müssen wir noch das usbserial-Modul laden, dabei übergeben wir die vendor-ID (vendor=0x12d1) und die product-ID (product=0x1003).
modprobe usbserial vendor=0x12d1 product=0x1003
Zitat Ende.
Hat schon jemand das Progrämmchen huaweiAktBbo getestet, oder einen anderen Lösungsvorschlag?
Udev Rules nicht angelegt sind nur die 50-vmc-huaweiE220 da.
Für Rat und Schlag wäre ich sehr dankbar.
Mit freundlichen Grüßen
Euer Peter (BdMdesigN)