chiavetta tiscali huawei 1690 [RISOLTO]

Usate questo forum per richieste di aiuto e consigli sull'hardware montato nelle vostre macchine con GNU/Linux Slackware.

Moderatore: Staff

Regole del forum
1) Citare sempre la versione di Slackware usata e la versione del Kernel. Questi dati aiutano le persone che possono rispondere.
2) Citare il tipo di hardware coinvolto in modo dettagliato.
3) Leggere attentamente le risposte ricevute
4) Scrivere i messaggi con il colore di default, evitare altri colori.
5) Scrivere in Italiano o in Inglese, se possibile grammaticalmente corretto, evitate stili di scrittura poco chiari, quindi nessuna abbreviazione tipo telegramma o scrittura stile SMS o CHAT. Non usare termini gergali come procio, mobo e simili per identificare i componenti hardware.
6) Appena registrati è consigliato presentarsi nel forum dedicato.

La non osservanza delle regole porta a provvedimenti di vari tipo da parte dello staff, in particolare la non osservanza della regola 5 porta alla cancellazione del post e alla segnalazione dell'utente. In caso di recidività l'utente rischia il ban temporaneo.
Rispondi
mined
Linux 0.x
Linux 0.x
Messaggi: 25
Iscritto il: ven 20 gen 2006, 20:43
Località: Torino

chiavetta tiscali huawei 1690 [RISOLTO]

Messaggio da mined »

Buongiorno a tutti, sono ormai diverse ore che tento invano di far funzionare la chiavetta internet inviatami da tiscali. Si tratta di una Huawei 1690, e io ho installato slackware64 aggiornato alla current.

Il problema è che non so neppure da dove cominciare!! Ho provato a cercare sul forum, nelle guide, etc...ma non capisco i passaggi e temo di sbagliare da qualche parte!!

Se ho ben capito usb_modeswtich serve a impedire che il computer veda la chiavetta come memoria usb. E fin qui ci siamo, ma come faccio a sapere se funziona? e dopo averlo fatto funzionare, come si procede per connettersi? :oops:

vi posto qui sotto qualche info utile:

dmesg(subito dopo avere inserito la chiavetta):

Codice: Seleziona tutto

[ 5557.870190] usb 2-1: new high speed USB device using ehci_hcd and address 8
[ 5557.996254] usb 2-1: New USB device found, idVendor=12d1, idProduct=1001
[ 5557.996261] usb 2-1: New USB device strings: Mfr=3, Product=2, SerialNumber=0
[ 5557.996266] usb 2-1: Product: HUAWEI Mobile
[ 5557.996270] usb 2-1: Manufacturer: HUAWEI Technology
[ 5558.000868] option 2-1:1.0: GSM modem (1-port) converter detected
[ 5558.001033] usb 2-1: GSM modem (1-port) converter now attached to ttyUSB2
[ 5558.001214] option 2-1:1.1: GSM modem (1-port) converter detected
[ 5558.001317] usb 2-1: GSM modem (1-port) converter now attached to ttyUSB3
[ 5558.001676] option 2-1:1.2: GSM modem (1-port) converter detected
[ 5558.001778] usb 2-1: GSM modem (1-port) converter now attached to ttyUSB4
[ 5558.002653] scsi23 : usb-storage 2-1:1.3
[ 5558.003699] scsi24 : usb-storage 2-1:1.4
[ 5559.006488] scsi 23:0:0:0: CD-ROM            HUAWEI   Mass Storage     2.31 PQ: 0 ANSI: 2
[ 5559.009570] scsi 24:0:0:0: Direct-Access     HUAWEI   SD Storage       2.31 PQ: 0 ANSI: 2
[ 5559.040917] sr1: scsi-1 drive
[ 5559.041793] sr 23:0:0:0: Attached scsi CD-ROM sr1
[ 5559.042784] sr 23:0:0:0: Attached scsi generic sg2 type 5
[ 5559.043606] sd 24:0:0:0: Attached scsi generic sg3 type 0
[ 5559.057603] sd 24:0:0:0: [sdb] Attached SCSI removable disk
lsusb (con chiavetta inserita):

Codice: Seleziona tutto

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 008: ID 12d1:1001 Huawei Technologies Co., Ltd. E620 USB Modem
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 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 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 002: ID 045e:0040 Microsoft Corp. Wheel Mouse Optical
il risultato del comando usb_modeswitch con verbose attivo[1/2]:

Codice: Seleziona tutto

$usb_modeswitch -v 0x12d1 -p 0x1001 -d 1 -W
Taking all parameters from the command line


 * usb-modeswitch: handle USB devices with multiple modes
 * Version 1.1.2alpha (C) Josua Dietze 2010
 * Based on libusb0 (0.1.12 and above)

 ! PLEASE REPORT NEW CONFIGURATIONS !

DefaultVendor=  0x12d1
DefaultProduct= 0x1001
TargetVendor=   not set
TargetProduct=  not set
TargetClass=    not set

DetachStorageOnly=1
HuaweiMode=0
SierraMode=0
SonyMode=0
GCTMode=0
MessageEndpoint= not set
MessageContent= not set
NeedResponse=0
ResponseEndpoint= not set
Interface=0x00

InquireDevice enabled (default)
Success check disabled
System integration mode disabled


Looking for default devices ...
  searching devices, found USB ID 1d6b:0002
  searching devices, found USB ID 1d6b:0002
  searching devices, found USB ID 12d1:1001
   found matching vendor ID
   found matching product ID
   adding device
  searching devices, found USB ID 1d6b:0001
  searching devices, found USB ID 1d6b:0001
  searching devices, found USB ID 1d6b:0001
  searching devices, found USB ID 1d6b:0001
  searching devices, found USB ID 1d6b:0001
  searching devices, found USB ID 045e:0040
 Found devices in default mode or class (1)
Accessing device 008 on bus 002 ...
Using endpoints 0x01 (out) and 0x82 (in)
Not a storage device, skipping SCSI inquiry

USB description data (for identification)
-------------------------
Manufacturer: HUAWEI Technology
     Product: HUAWEI Mobile
  Serial No.: not provided
-------------------------
Only detaching storage driver for switching ...
Looking for active driver ...
 OK, driver found ("dummy")
 Warning: driver is not usb-storage
 OK, driver "dummy" detached
-> Run lsusb to note any changes. Bye.
e

Codice: Seleziona tutto

$usb_modeswitch -v 0x12d1 -p 0x1001 -H 1 -W
Taking all parameters from the command line


 * usb-modeswitch: handle USB devices with multiple modes
 * Version 1.1.2alpha (C) Josua Dietze 2010
 * Based on libusb0 (0.1.12 and above)

 ! PLEASE REPORT NEW CONFIGURATIONS !

DefaultVendor=  0x12d1
DefaultProduct= 0x1001
TargetVendor=   not set
TargetProduct=  not set
TargetClass=    not set

DetachStorageOnly=0
HuaweiMode=1
SierraMode=0
SonyMode=0
GCTMode=0
MessageEndpoint= not set
MessageContent= not set
NeedResponse=0
ResponseEndpoint= not set
Interface=0x00

InquireDevice enabled (default)
Success check disabled
System integration mode disabled


Looking for default devices ...
  searching devices, found USB ID 1d6b:0002
  searching devices, found USB ID 1d6b:0002
  searching devices, found USB ID 12d1:1001
   found matching vendor ID
   found matching product ID
   adding device
  searching devices, found USB ID 1d6b:0001
  searching devices, found USB ID 1d6b:0001
  searching devices, found USB ID 1d6b:0001
  searching devices, found USB ID 1d6b:0001
  searching devices, found USB ID 1d6b:0001
  searching devices, found USB ID 045e:0040
 Found devices in default mode or class (1)
Accessing device 008 on bus 002 ...
Using endpoints 0x01 (out) and 0x82 (in)
Not a storage device, skipping SCSI inquiry

USB description data (for identification)
-------------------------
Manufacturer: HUAWEI Technology
     Product: HUAWEI Mobile
  Serial No.: not provided
-------------------------
Sending Huawei control message ...
 OK, Huawei control message sent
-> Run lsusb to note any changes. Bye.

e infine lspci(non si sa mai):

Codice: Seleziona tutto

00:00.0 Host bridge: Intel Corporation Mobile PM965/GM965/GL960 Memory Controller Hub (rev 03)
00:02.0 VGA compatible controller: Intel Corporation Mobile GM965/GL960 Integrated Graphics Controller (rev 03)
00:02.1 Display controller: Intel Corporation Mobile GM965/GL960 Integrated Graphics Controller (rev 03)
00:1a.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #4 (rev 03)
00:1a.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #5 (rev 03)
00:1a.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #2 (rev 03)
00:1b.0 Audio device: Intel Corporation 82801H (ICH8 Family) HD Audio Controller (rev 03)
00:1c.0 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 1 (rev 03)
00:1c.1 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 2 (rev 03)
00:1c.2 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 3 (rev 03)
00:1d.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #1 (rev 03)
00:1d.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #2 (rev 03)
00:1d.2 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #3 (rev 03)
00:1d.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #1 (rev 03)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev f3)
00:1f.0 ISA bridge: Intel Corporation 82801HEM (ICH8M) LPC Interface Controller (rev 03)
00:1f.1 IDE interface: Intel Corporation 82801HBM/HEM (ICH8M/ICH8M-E) IDE Controller (rev 03)
00:1f.2 IDE interface: Intel Corporation 82801HBM/HEM (ICH8M/ICH8M-E) SATA IDE Controller (rev 03)
00:1f.3 SMBus: Intel Corporation 82801H (ICH8 Family) SMBus Controller (rev 03)
02:00.0 Ethernet controller: Broadcom Corporation NetLink BCM5787M Gigabit Ethernet PCI Express (rev 02)
04:00.0 Network controller: Intel Corporation PRO/Wireless 3945ABG [Golan] Network Connection (rev 02)
0f:06.0 CardBus bridge: Texas Instruments PCIxx12 Cardbus Controller
0f:06.1 FireWire (IEEE 1394): Texas Instruments PCIxx12 OHCI Compliant IEEE 1394 Host Controller
0f:06.2 Mass storage controller: Texas Instruments 5-in-1 Multimedia Card Reader (SD/MMC/MS/MS PRO/.)
0f:06.3 SD Host controller: Texas Instruments PCIxx12 SDA Standard Compliant SD Host Controller

Vi prego....AIUTO! :-)

Davide
Ultima modifica di mined il ven 10 set 2010, 20:22, modificato 1 volta in totale.

Avatar utente
Ansa89
Iper Master
Iper Master
Messaggi: 2703
Iscritto il: mer 29 ago 2007, 17:57
Nome Cognome: Stefano Ansaloni
Slackware: 14.2 64bit
Kernel: 4.9.61
Desktop: XFCE 4.12
Località: Modena

Re: chiavetta tiscali huawei 1690

Messaggio da Ansa89 »

Dall'output di "dmesg" che hai postato sembra che ti vengano creati tre device speciali "ttyUSB2", "ttyUSB3" e "ttyUSB4" che dovrebbero essere visti come dei modem.
La cosa strana è che poi la chiavetta viene riconosciuta anche come memoria di massa e come scsi cdrom (sr1).

Sembra un gran bel casino; io ti consigliere di provare a creare una connessione con modem (puoi provare il tool kppp), usando come modem uno a scelta tra "ttyUSB2", "ttyUSB3" e "ttyUSB4".

mined
Linux 0.x
Linux 0.x
Messaggi: 25
Iscritto il: ven 20 gen 2006, 20:43
Località: Torino

Re: chiavetta tiscali huawei 1690

Messaggio da mined »

allora, ho provato a impostare kppp con il numero *99#, con il baudrate al massimo e con il device che sembrava quello giusto (perdonate l'oscurità delle mie parole ma sto proprio brancolando nel buio...) ed ecco il risultato:

Codice: Seleziona tutto

bash-4.1$ kppp -c tiscali -m chiavetta
Opener: received SetSecret
Opener: received SetSecret
Opener: received OpenLock

Opener: received OpenDevice
Segmentation fault
sembra una maledizione!!

Davide

Avatar utente
Ansa89
Iper Master
Iper Master
Messaggi: 2703
Iscritto il: mer 29 ago 2007, 17:57
Nome Cognome: Stefano Ansaloni
Slackware: 14.2 64bit
Kernel: 4.9.61
Desktop: XFCE 4.12
Località: Modena

Re: chiavetta tiscali huawei 1690

Messaggio da Ansa89 »

Il "Segmentation fault" è un problema del software (kppp), non della chiavetta.
Purtroppo non conosco altri software per impostare una connessione tramite modem :( .

leocata
Linux 3.x
Linux 3.x
Messaggi: 598
Iscritto il: mar 5 feb 2008, 22:25
Slackware: 13.1
Desktop: xfce 4.x
Località: Giarre(CT)
Contatta:

Re: chiavetta tiscali huawei 1690

Messaggio da leocata »

Io ho una chiavetta identica e dai tuoi messaggi mi sembra che tutto funzioni.... magari è kppp che non è settato bene. Prova a rileggere bene il tutto, di solito il modem è /dev/ttyUSB0 comunque per semplicità ti posto i miei parametri su wvdial che puoi comunque adattare a kppp.
ciao

Codice: Seleziona tutto

 
[Dialer Defaults]
Modem = /dev/ttyUSB0
ISDN = 0
Modem Type = Analog Modem
Baud = 460800
Init1 = ATX3
Init2 = AT&F Q0 V1 E0 S0=0 &C1 &D2 +FCLASS=0
Init3 = at+cgdcont=1,"IP","internet.wind" [b]// questi sono diversi per te  :roll: [/b]
Phone = *99***1#
Dial Attempts = 5
Stupid Mode = on
Dial Command = ATM1L3DT
Idle Seconds = 7200
Ask Passwords = 0
Password = "wind"
Username = "wind"
Carrier Check = on
New PPPD = 1
 

mined
Linux 0.x
Linux 0.x
Messaggi: 25
Iscritto il: ven 20 gen 2006, 20:43
Località: Torino

Re: chiavetta tiscali huawei 1690

Messaggio da mined »

CI SIAMO QUASI :-)

ho installato wvdial e gli ho messo il conf che mi hai dato tu modificando l'apn, ecco il risultato:

Codice: Seleziona tutto

bash-4.1# wvdial
--> WvDial: Internet dialer version 1.61
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATX3
OK
--> Sending: AT&F Q0 V1 E0 S0=0 &C1 &D2 +FCLASS=0
OK
--> Sending: at+cgdcont=1,"IP","tiscalimobileinternet" // questi sono diversi per te :roll:
OK
--> Modem initialized.
--> Idle Seconds = 7200, disabling automatic reconnect.
--> Sending: ATM1L3DT*99#
--> Waiting for carrier.
CONNECT 7200000
--> Carrier detected.  Starting PPP immediately.
--> Starting pppd at Thu Sep  9 13:09:05 2010
--> Pid of pppd: 5678
--> Using interface ppp0
--> pppd: æ[7f]
--> pppd: æ[7f]
--> pppd: æ[7f]
--> pppd: æ[7f]
--> pppd: æ[7f]
--> pppd: æ[7f]
--> pppd: æ[7f]
--> local  IP address 94.xx.8.60
--> pppd: æ[7f]
--> remote IP address 10.xx.64.64
--> pppd: æ[7f]
--> primary   DNS address 213.xx.32.70
--> pppd: æ[7f]
--> secondary DNS address 213.xx.36.70
--> pppd: æ[7f]
solo che se apro firefox non mi arriva neppure a google.it. Sicuramente sto dimenticando una cosa ultra banale....

Davide

Avatar utente
Ansa89
Iper Master
Iper Master
Messaggi: 2703
Iscritto il: mer 29 ago 2007, 17:57
Nome Cognome: Stefano Ansaloni
Slackware: 14.2 64bit
Kernel: 4.9.61
Desktop: XFCE 4.12
Località: Modena

Re: chiavetta tiscali huawei 1690

Messaggio da Ansa89 »

Se provi a pingare "www.google.com" funziona?
Hai controllato che i dns siano stati aggiunti correttamente a "/etc/resolv.conf"?
Se pinghi l'ip di un dns funziona?

mined
Linux 0.x
Linux 0.x
Messaggi: 25
Iscritto il: ven 20 gen 2006, 20:43
Località: Torino

Re: chiavetta tiscali huawei 1690

Messaggio da mined »

No infatti, l'ho fatto fungere modificando a mano /etc/resolv.conf. Comunque funziona, però per mettere [risolto] voglio almeno che sia automatico :D . non capisco per quale motivo wvdial non vada a modificare automaticamente /etc/resolv.conf.

Davide

Avatar utente
Ansa89
Iper Master
Iper Master
Messaggi: 2703
Iscritto il: mer 29 ago 2007, 17:57
Nome Cognome: Stefano Ansaloni
Slackware: 14.2 64bit
Kernel: 4.9.61
Desktop: XFCE 4.12
Località: Modena

Re: chiavetta tiscali huawei 1690

Messaggio da Ansa89 »

L'hai eseguito come root?
In ogni caso credo che wvdial abbia un'opzione per eseguire uno script a connessione avvenuta.

mined
Linux 0.x
Linux 0.x
Messaggi: 25
Iscritto il: ven 20 gen 2006, 20:43
Località: Torino

Re: chiavetta tiscali huawei 1690

Messaggio da mined »

Si l'ho eseguito come root. Ho anche notato che in effetti i DNS corretti vengono scritti da qualche parte: su /etc/ppp/resolv.conf, ma non su /etc/resolv.conf. E ora sto sgarfando tra i forum per capire se qualcuno ha avuto lo stesso problema...

Davide

Avatar utente
Ansa89
Iper Master
Iper Master
Messaggi: 2703
Iscritto il: mer 29 ago 2007, 17:57
Nome Cognome: Stefano Ansaloni
Slackware: 14.2 64bit
Kernel: 4.9.61
Desktop: XFCE 4.12
Località: Modena

Re: chiavetta tiscali huawei 1690

Messaggio da Ansa89 »

Il primo work-around che mi viene in mente è fare un link simbolico tra "/etc/resolv.conf" e "/etc/ppp/resolv.conf", in modo che il secondo punti al primo.
Ovviamente non so se questa azione può avere effetti sgraditi (tipo l'esplosione improvvisa del pc :lol: ).

leocata
Linux 3.x
Linux 3.x
Messaggi: 598
Iscritto il: mar 5 feb 2008, 22:25
Slackware: 13.1
Desktop: xfce 4.x
Località: Giarre(CT)
Contatta:

Re: chiavetta tiscali huawei 1690

Messaggio da leocata »

Ricordo di aaver avuto lo stesso problema....ma non mi sono messo ad indagare, ho aggiunto banalmente i dns a mano 8)

Avatar utente
Thraphyx
Linux 2.x
Linux 2.x
Messaggi: 212
Iscritto il: ven 28 ago 2009, 22:43
Slackware: 14.1 multilib
Kernel: 3.10.17
Desktop: KDE 4.11.5

Re: chiavetta tiscali huawei 1690

Messaggio da Thraphyx »

Provato ad aggiungere

Codice: Seleziona tutto

Auto DNS = on
a wvdial.conf?

mined
Linux 0.x
Linux 0.x
Messaggi: 25
Iscritto il: ven 20 gen 2006, 20:43
Località: Torino

Re: chiavetta tiscali huawei 1690

Messaggio da mined »

Alla fine ho risolto con il link simbolico, grazie a tutti siete stati fantastici. Aggiungo [risolto] al titolo.

Davide

Rispondi