• Willkommen im Linux Club - dem deutschsprachigen Supportforum für GNU/Linux. Registriere dich kostenlos, um alle Inhalte zu sehen und Fragen zu stellen.

Huawei E220, OpenSUSE 11.1 Modem hat mit CD-Rom getauscht

BdMdesigN

Member
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)
 

spoensche

Moderator
Teammitglied
Wenn du das Modem an einen Hub angeschlossen hast, dann änder dies mal und schliess das Modem mal direkt an einen freien USB- Port an.

Poste mal, ob es nach der Anleitung von deinem Link funktioniert, wenn du dies ausprobiert hast.
 
OP
BdMdesigN

BdMdesigN

Member
Moin Moin,

Sooooo wieder mit SuSE unterwegens. Nein das Modem war/ist nicht an eine Hub angeschloßen

Habe, nach der Anleitung des Links oben im ersten Post von mir, das Progrämmchen huaweiAktBbo erstellt und ausgeführt.
Udev Regeln erstellt mit derm dazugehöhrigen Datei. UMTSmon verweigerte denoch den Dienst. Es ließ sich diesmal starten zeige mIr auch Me**** Mo*** als Netz an, versuchte sich einzuwählen und ppp bricht mit diesen fehlern ab:

Using interface ppp0
Connect: ppp0 <--> /dev/ttyUSB1
Terminating on signal 15
Connection terminated.
Receive serial link is not 8-bit clean:
Problem: all had bit 7 set to 0
Modem hangup

Ok dachte ich probieren wir mal das Modem, Yast aufgerufen, Modem bearbeitet, beim Porvieder die Nummer von *99# in *99***2# geändert und die Prozecdur beändet. Kinternet gestartet, versucht zu verbinden was dannn auch geklappt hatte. Verbindung blieb stabiel, nun traute ich mich mal die Verbindung zu Prüfen:
Bei dem Namensserver kommt nun:

Namensserver: OK
Nameserver: 127.0.01 :D

Nagut die spiele kenn ich ja noch von 2001 und Hanse***, wenn dort die DNS S. abgeraucht waren.
Ok ich bekomme über Kinternet ne Stabiele Verbindung mit Localen DNS-Server ein hoch auf Linux :D

Das eigendliche Problem ist denoch net gelöst. Werde mich mal, wenn ich die nötige ruhe dazu habe mich weiter mit dem problem zubeschäftigen

# tail -f /var/log/messages:

Siehe oben, es hat sich nichts daran geändert nur 2 ttyUSB Schnittstellen und einmal das Sch :zensur: Emu CD-Rom

Was mich nur stutzig macht ist das :

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)

Jemand ne Idee?

MfG

Euer Peter
 
OP
BdMdesigN

BdMdesigN

Member
Moin Moin,

Also folgende Situation ist noch vorhanden:

Alle Einwahlprogramme brechen beim Versuch sich einzu wählen ab.
Nur das Netzwerk Moden mit Kinternet werkel mit Localen DNS.
Werd mal nach dem WE alles durchtesten

MfG

Peter
 

spoensche

Moderator
Teammitglied
Hast du bei der Modemkonfiguration auch den Punkt /etc/resolv.conf automatisch ändern gesetzt? Das Problem mit dem Local DNS kannst du beseitigen, in dem du den DNS- Server deines Providers manuell einträgst.
 
OP
BdMdesigN

BdMdesigN

Member
Jap hab ich, Habe sie auch noch mal per eingetragen, aber er nimmt immer noch den localen.

Hatte auch den Punkt (ist Standart Aktiv) DNS automatisch abrufen als Aktiv gesetzt.
Nur dann hatte ich kein Dial of Demand

Hab mal nen Screenie gemacht.

modem.png


MfG

Peter
 

spoensche

Moderator
Teammitglied
Aus dem Bild wird man nicht schlau, weil die Hälfte der rechten Site fehlt.

Poste doch mal die Ausgabe von:

Code:
cat /etc/[resolv.conf/code]
 
OP
BdMdesigN

BdMdesigN

Member
Moin, :)

linux-xh7o:/srv/vhosts/pitbull # cat /etc/resolv.conf
### /etc/resolv.conf file autogenerated by netconfig!
#
# Before you change this file manually, consider to define the
# static DNS configuration using the following variables in the
# /etc/sysconfig/network/config file:
# NETCONFIG_DNS_STATIC_SEARCHLIST
# NETCONFIG_DNS_STATIC_SERVERS
# NETCONFIG_DNS_FORWARDER
# or disable DNS configuration updates via netconfig by setting:
# NETCONFIG_DNS_POLICY=''
#
# See also the netconfig(8) manual page and other documentation.
#
# Note: Manual change of this file disables netconfig too, but
# may get lost when this file contains comments or empty lines
# only, the netconfig settings are same with settings in this
# file and in case of a "netconfig update -f" call.
#
### Please remove (at least) this line when you modify the file!
search www.suse.de www.suse.com
nameserver 127.0.0.1
nameserver 212.23.97.2
nameserver 212.23.97.3


Da stehen sie drin. Nimmt aber den 127.0.0.1
 

spoensche

Moderator
Teammitglied
Du musst den Eintrag
Code:
nameserver 127.0.0.1
auskommentieren (# am Anfang der Zeile). Was hast du den bei der Modemkonfiguration bezüglich DNS mit Yast festgelegt?
 
OP
BdMdesigN

BdMdesigN

Member
Moin spoensche,

Ich hab bei der Modemkofig in Yast zu erst dise Variante gehabt:

Wählverbindug Aus
Während Verbindung DNS ändern An
DNS Automatisch abrufen An
Automatische Wiedeverbindung An

Jetzt, damit Dial of Demand funktioniert (klapt wunderbar):

Wählverbindug An
Während Verbindung DNS ändern An
DNS Automatisch abrufen Aus
Automatische Wiedeverbindung An

DNS1: 212.23.97.2 DNS2: 212.23.97.3

Im DNS selber:

Steht nur der Locale drinn. Ändre ich mal.


MfG


Peter
 
OP
BdMdesigN

BdMdesigN

Member
Moin Moin,

So eben trat der tausch wieder auf.
Kein Carrier found.
Utmsmon und Vodafone zeigen jedoch ein Netz an.
Hab dann noch mal huaweiAktBbo ausgeführt, kinternet gestartet und hat sich ohne probs eingewählt.

Wiegesagt das Problem tritt erst seit dem 10.08.09, ca 23:00 auf. Vorher kommte ich ohne Probleme surfen.

MfG

Peter
 
Oben