Ciao,
riepilogo i passi eseguiti per la connessione con la chiavetta.
[root@cellopc ~]# modprobe usbserial vendor=0x19d2 product=0x0002
[root@cellopc ~]# usb_modeswitch -v 0x19d2 -p 0x2000 -V 0x19d2 -P 0x0002 -d 1
Looking for target devices …
No devices in target mode or class found
Looking for default devices …
No default device found. Is it connected? Bye.
[root@cellopc ~]# eject /dev/sr1
La chiavetta ora viene vista come modem in modo corretto
[root@cellopc ~]# lsusb | grep -i onda
Bus 001 Device 012: ID 19d2:0037 ONDA Communication S.p.A.
Edito la configurazione come indicato
[root@cellopc ~]# vim /etc/wvdial.conf
[Dialer Defaults]
Modem = /dev/ttyUSB2
ISDN = off
Modem Type = Analog Modem
Baud = 460800
Init = AT+CPIN="0000"
Init2 = ATX3
Init3 = AT&F Q0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Init4 = at+cgdcont=1,"IP","ibox.tim.it"
Phone = *99#
Dial Attempts = 10
Dial Command = ATM1L3DT
Ask Password = off
Username = ''
Password = ''
Stupid Mode = on
Lanciando wvdial ecco l’output del comando.
[root@cellopc ~]# wvdial
--> WvDial: Internet dialer version 1.61
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: AT+CPIN="0000"
OK
--> Sending: ATX3
OK
--> Sending: AT&F Q0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
OK
--> Sending: at+cgdcont=1,"IP","ibox.tim.it"
at+cgdcont=1,"IP","ibox.tim.it"
OK
--> Modem initialized.
--> Sending: ATM1L3DT*99#
--> Waiting for carrier.
ATM1L3DT*99#
CONNECT 7200000
--> Carrier detected. Starting PPP immediately.
--> Starting pppd at Wed Feb 3 13:24:01 2010
--> Pid of pppd: 31798
--> pppd: P�l
--> Using interface ppp0
--> pppd: P�l
--> pppd: P�l
--> pppd: P�l
--> pppd: P�l
--> pppd: P�l
--> pppd: P�l
--> pppd: P�l
--> pppd: P�l
--> pppd: P�l
--> Authentication (PAP) started
--> pppd: P�l
--> pppd: P�l
--> pppd: P�l
--> Authentication (PAP) successful
--> pppd: P�l
--> pppd: P�l
--> pppd: P�l
--> pppd: P�l
--> pppd: P�l
--> pppd: P�l
--> pppd: P�l
--> pppd: P�l
--> pppd: P�l
--> pppd: P�l
--> pppd: P�l
--> pppd: P�l
--> pppd: P�l
--> pppd: P�l
--> pppd: P�l
--> pppd: P�l
--> pppd: P�l
--> pppd: P�l
--> pppd: P�l
--> pppd: P�l
--> pppd: P�l
--> pppd: P�l
--> pppd: P�l
--> pppd: P�l
--> pppd: P�l
--> pppd: P�l
--> pppd: P�l
--> pppd: P�l
--> pppd: P�l
--> pppd: P�l
--> pppd: P�l
--> pppd: P�l
--> pppd: P�l
--> pppd: P�l
--> local IP address 95.74.108.197
--> pppd: P�l
--> remote IP address 10.64.64.64
--> pppd: P�l
--> pppd: P�l
--> Script /etc/ppp/ip-up run successful
--> Default route Ok.
--> Nameserver (DNS) Ok.
--> Connected... Press Ctrl-C to disconnect
--> pppd: P�l
L’interfaccia ppp0 viene startata correttamente
[root@cellopc script]# ifconfig ppp0
ppp0 Link encap:Point-to-Point Protocol
inet addr:95.74.108.197 P-t-P:10.64.64.64 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:15 errors:0 dropped:0 overruns:0 frame:0
TX packets:15 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:324 (324.0 b) TX bytes:384 (384.0 b)
Sembra funzionare. La mia domanda ora è la seguente. Ma se dovessi utilizzare più chiavette sempre dello stesso modello e provider, ma con PIN differenti cosa dovrei fare?. Io pensavo di commentare la riga di init e mantenere l’opzione Ask Password ad On è fattibile?