mf636 orange free na 9.04 nie żyje

Karty graficzne, dźwiękowe, tv, monitory etc.
q_nerk
Piegowaty Guziec
Piegowaty Guziec
Posty: 2
Rejestracja: 04 lip 2008, 13:44
Płeć: Mężczyzna
Wersja Ubuntu: 7.10
Środowisko graficzne: GNOME

mf636 orange free na 9.04 nie żyje

Post autor: q_nerk »

Próbując zainstalować ten modem na ubuntu przebrnąłem przez wszystkie manuale jak:
http://blog.sirmacik.net/2009/07/modem- ... e-pod.html
oraz viewtopic.php?p=642851 i parę innych

mój usb_modswitch.conf:

Kod: Zaznacz cały

# ZTE MF628+ (tested version from Telia / Sweden)
#ZTE MF626
ZTE MF636 (aka "Telstra / BigPond 7.2 Mobile Card")
#
# Contributor: Joakim Wennergren

#######################################################
ONDA MT503HS (most likely a ZTE model)
#
# Contributor: Lucio Asnaghi a.k.a. kRAkEn/gORe

DefaultVendor= 0x19d2
DefaultProduct= 0x0033

TargetVendor= 0x19d2
TargetProduct= 0x0002

# only for reference
MessageEndpoint=0x01

MessageContent="55534243b0c8dc812000000080000a85010101180101010101000000000000"

# only for reference
# MessageEndpoint=0x01

#MessageContent="55534243123456782000000080000c85010101180101010101000000000000"
# only for reference and 0.x versions
MessageEndpoint=0x01
# MessageContent # 1
#MessageContent="55534243123456782000000080000c8501 0101180101010101 000000000000"
# jeśli nie "chwyci" na MessageContent # 1, to po kilku próbach haszujemy go i odhaszowujemy MessageContent # 2
# MessageContent # 2
# MessageContent="5553424312345678000000000000061b00 0000030000000000 000000000000" 
# if that command doesn't work, try the other ("eject")
#;MessageContent="5553424312345678000000000000061b000000030000000000000000000000"

#ZTE MF636
# Contributor: Joakim Wennergren


#DefaultVendor= 0x19d2
#DefaultProduct= 0x2000

#TargetVendor= 0x19d2
#TargetProduct= 0x0031

#MessageEndpoint=0x01
#MessageContent="55534243123456782000000080000c85010101180101010101000000000000"
lsusb bez wpiętego modemu:

Kod: Zaznacz cały

Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 002: ID 045e:0040 Microsoft Corp. Wheel Mouse Optical
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 002: ID 03f0:171d Hewlett-Packard Wireless (Bluetooth + WLAN) Interface [Integrated Module]
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
i po wpiętym modemie:

Kod: Zaznacz cały

Bus 002 Device 010: ID 19d2:0033  
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 002: ID 045e:0040 Microsoft Corp. Wheel Mouse Optical
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 002: ID 03f0:171d Hewlett-Packard Wireless (Bluetooth + WLAN) Interface [Integrated Module]
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
wvdial.conf:

Kod: Zaznacz cały

[Dialer Defaults]
Modem = /dev/ttyUSB0
Baud = 9600
Dial Command = ATDT
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Init3 = AT+CGDCONT=1,"IP","internet"
Phone = *99#
Username = "internet"
Password = "internet"
Stupid Mode = yes
po wpisaniu: /usr/sbin/usb_modeswitch -W -c /etc/usb_modeswitch.conf

Kod: Zaznacz cały

 * usb_modeswitch: tool for controlling "flip flop" mode USB devices
 * Version 1.0.2 (C) Josua Dietze 2009
 * Works with libusb 0.1.12 and probably other versions

Reading config file: /etc/usb_modeswitch.conf
DefaultVendor=  0x19d2
DefaultProduct= 0x0033
TargetVendor=   0x19d2
TargetProduct=  0x0002
TargetClass=    not set

DetachStorageOnly=0
HuaweiMode=0
SierraMode=0
SonyMode=0
MessageEndpoint=0x01
MessageContent="55534243b0c8dc812000000080000a85010101180101010101000000000000"
NeedResponse=0
ResponseEndpoint= not set
Interface=0x00

InquireDevice enabled (default)
Success check disabled

usb_set_debug: Setting debugging level to 15 (on)
usb_os_find_busses: Found 002
usb_os_find_busses: Found 006
usb_os_find_busses: Found 005
usb_os_find_busses: Found 004
usb_os_find_busses: Found 001
usb_os_find_busses: Found 003
usb_os_find_devices: Found 010 on 002
usb_os_find_devices: Found 001 on 002
error obtaining child information: Inappropriate ioctl for device
usb_os_find_devices: Found 001 on 006
usb_os_find_devices: Found 001 on 005
usb_os_find_devices: Found 002 on 004
skipped 1 class/vendor specific interface descriptors
usb_os_find_devices: Found 001 on 004
error obtaining child information: Inappropriate ioctl for device
usb_os_find_devices: Found 001 on 001
usb_os_find_devices: Found 002 on 003
skipped 1 class/vendor specific interface descriptors
usb_os_find_devices: Found 001 on 003
error obtaining child information: Inappropriate ioctl for device

Looking for target devices ...
 No devices in target mode or class found
Looking for default devices ...
 Found default devices (1)
Accessing device 010 on bus 002 ...
Using endpoints 0x01 (out) and 0x81 (in)
Inquiring device details; driver will be detached ...
Looking for active driver ...
 OK, driver found ("usb-storage")
 OK, driver "usb-storage" detached

Received inquiry data (detailed identification)
-------------------------
  Vendor String: ZTE     
 Product String: USB SCSI CD-ROM 
Revision String: 2.31
-------------------------

Device description data (identification)
-------------------------
Manufacturer: ZTE,Incorporated
     Product: ZTE CDMA Technologies MSM
  Serial No.: 1234567890ABCDEF
-------------------------
Setting up communication with interface 0 ...
Trying to send the message to endpoint 0x01 ...
 OK, message successfully sent
-> Run lsusb to note any changes. Bye.
po wpisaniu komendy wvdial:

Kod: Zaznacz cały

--> WvDial: Internet dialer version 1.60
--> Cannot open /dev/ttyUSB0: No such file or directory
--> Cannot open /dev/ttyUSB0: No such file or directory
--> Cannot open /dev/ttyUSB0: No such file or directory
a po odpaleniu skrytpu z tego bloga:

Kod: Zaznacz cały

Switching modem mode...

 * usb_modeswitch: tool for controlling "flip flop" mode USB devices
 * Version 1.0.2 (C) Josua Dietze 2009
 * Works with libusb 0.1.12 and probably other versions

Looking for target devices ...
 No devices in target mode or class found
Looking for default devices ...
 Found default devices (1)
Accessing device 011 on bus 002 ...
Using endpoints 0x01 (out) and 0x81 (in)
Not a storage device, skipping SCSI inquiry

Device description data (identification)
-------------------------
Manufacturer: ZTE,Incorporated
     Product: ZTE CDMA Technologies MSM
  Serial No.: 1234567890ABCDEF
-------------------------
Looking for active driver ...
 No driver found. Either detached before or never attached
Setting up communication with interface 0 ...
Trying to send the message to endpoint 0x01 ...
 OK, message successfully sent
-> Run lsusb to note any changes. Bye.

Loading kernel module...
Done!
Waiting for modem...
Connecting with modem...
Trying list of devices
Unable to locate default devices, try the -d option.
Connecting...
--> WvDial: Internet dialer version 1.60
--> Cannot open /dev/ttyUSB0: No such file or directory
--> Cannot open /dev/ttyUSB0: No such file or directory
--> Cannot open /dev/ttyUSB0: No such file or directory
Szczerze mówiąc już zgłupiałem i nie mam pomyslu co robić dalej.

Pozdrawiam
Awatar użytkownika
mario_7
Administrator
Administrator
Posty: 8599
Rejestracja: 30 sie 2006, 13:11
Płeć: Mężczyzna
Wersja Ubuntu: 20.04
Środowisko graficzne: GNOME
Architektura: x86_64

Odp: mf636 orange free na 9.04 nie żyje

Post autor: mario_7 »

Cannot open /dev/ttyUSB0: No such file or directory
Czy aby na pewno modem jest widziany w systemie pod taką nazwa urządzenia?
Sprawdzić to możesz np w logu po wykonaniu polecenia

Kod: Zaznacz cały

dmesg
aby przefiltrować wyniki dla słowa usb:

Kod: Zaznacz cały

dmesg | grep -i usb
miotelka
Piegowaty Guziec
Piegowaty Guziec
Posty: 9
Rejestracja: 01 lip 2010, 15:12
Płeć: Kobieta
Wersja Ubuntu: 11.10
Środowisko graficzne: GNOME
Architektura: x86

Re: mf636 orange free na 9.04 nie żyje

Post autor: miotelka »

U mnie wszystko śmiga jak trzeba.

Zainstalowałam, tak jak jest to wymienione tu : http://blog.sirmacik.net/2009/07/modem- ... e-pod.html po kolei:

usb_modeswitch
comgt
wvdial
oraz ppp (u mnie nie było pppd ;P)

ale następnie nie wykonywałam żadnych manewrów w terminalu, zamiast tego:

1. Przechodzę do katalogu /etc i tam tworzę plik "usb_modeswitch.conf" o zawartości:
# Configuration for the usb-modeswitch package, a mode switching tool for
# USB devices providing multiple states or modes
#
# This file is evaluated by the wrapper script "usb_modeswitch" in /lib/udev
# To enable an option, set it to "1", "yes" or "true" (case doesn't matter)


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

EnableLogging=0
2. W tym samym katalogu (/etc) tworzę plik "wvdial.conf" o zawartości:
[Dialer Defaults]
Modem = /dev/ttyUSB3
# u mnie /dev/ttyUSB3 okazało się być tą właściwą ścieżką do połączenia z modemem
#/dev/ttyUSB1 i inne nei dawały odpowiednich rezultatów. Aby sprawdzić dostępne ścieżki
#u siebie wykonaj po podłączeniu modemu (wykonanie komend usb_modeswitch
#i modprobe jako root) wykonaj ls /dev/ttyUSB*
Modem Type = USB Modem
ISDN = 0
Baud = 115200
Username = "internet"
Stupid Mode = yes
Password = "internet"
[Dialer pin]
Init1 = ATZ
[Dialer internet]
Init2 = ATZ
Init3 = ATQ0 V1 E1 X1 S0=0 &C1 &D2 +FCLASS=0
Init4 = AT+CGDCONT=1,"IP","internet"
# (w miejsce "internet" - domyślnej wartości dla Orange, musisz wpisać swój APN)
Phone = *99***1#
Dial Command = ATDT
Więc.... wszystko jest, a w centum konfiguracji sieci modem nadal się nie wyświetla.

Otwieram terminal i wpisuję:
/usr/sbin/usb_modeswitch -W -c /etc/usb_modeswitch.conf
następnie trzeba chwilę poczekać, po czym wpisać już tylko:
wvdial
ale z tym na prawdę trzeba odczekać, aż modem się włączy (ponownie pojawi się światełko, a z pulpitu zniknie nam ikonka orange)
jeśli nie poczekamy i po /usr/sbin (...) wywołamy od razu wvdial pojawi nam się:
[root@localhost ~]# wvdial
--> WvDial: Internet dialer version 1.60
--> Cannot open /dev/ttyUSB3: No such file or directory
--> Cannot open /dev/ttyUSB3: No such file or directory
--> Cannot open /dev/ttyUSB3: No such file or directory
w takim wypadku wpisujemy po prostu ponownie wvdial, jeśli wszystko jest ok powinno być mniej więcej tak:
[root@localhost ~]# wvdial
--> WvDial: Internet dialer version 1.60
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Modem initialized.
--> Configuration does not specify a valid phone number.
Teraz wystarczy już tylko wejść w Centurum Konfiguracji Sieci. Tam pokazywać się powinno "GPRS/Edge/3G ZTE,Incorporated ZTE CDMA Technologies MSM", rozwijamy to, wpisujemy nasz PIN (jeśli nie mamy pozostawiamy puste, klikamy ok, czekamy i następnie "połącz" (jeśli po odczekaniu button "połącz" nie podświetli się, klikamy button "odśwież" - powinno już być ok :)

Sposób ten jest wynikiem długich i żmudnych poszukiwań informacji na temat podłączenia modemu ZTE MF636 i tak na prawdę jest to po prostu zlepek kilku sposobów i kilku "zawartości" plików wvdial i usb_modeswitch ;) , które u mnie nie działały w jeden działający. Mam nadzieję, że Wam się przyda!

Pozdrawiam!
ODPOWIEDZ

Wróć do „Multimedia - karty graficzne, dźwiękowe, telewizyjne, drukarki, skanery”

Kto jest online

Użytkownicy przeglądający to forum: Obecnie na forum nie ma żadnego zarejestrowanego użytkownika i 60 gości