1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87
| 1- Branchement et vérification :
Tester que le branchement est bien fait avec la cmd : lsusb
Le câble est installer automatiquement, vous aurez
Bus 005 Device 002: ID 10c4:ea60 Cygnal Integrated Products, Inc. CP210x Composite Device
2- Installation de wvdial
# apt-get install wvdial
3-Configuration (sous ubuntu):
# vi /etc/wvdial.conf
Remplacer le contenu par :
****************************************************
[Dialer Defaults]
Modem = /dev/ttyUSB0
Baud = 115200
Init1 = ATZ
Init2 = AT+CRM=1
Modem Type = USB modem
FlowControl= Hardware (CRTSCTS)
SetVolume = 0
Dial Command = ATDT
Stupid Mode = 1
Compuserve = 0
Idle Seconds = 3600
ISDN = 0
Auto DNS = 1
[Dialer Kanakoo]
Phone = #777
Username = 229xxxxxxxx
Password = 11111111
Inherits=Defaults
***************************************************************
4- Se connecter avec wvDial
# wvdial kanakoo
NB : Dans certains cas, il faut appuyer sur une touche si le modem n\'est pas détecté ou retirer et replacer le câble USB.
--> Initializing modem.
--> Sending: ATZ
--> Sending: ATQ0
ATQ0
OK
--> Re-Sending: ATZ
ATZ
OK
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: AT+CRM=1
AT+CRM=1
OK
--> Modem initialized.
--> Idle Seconds = 300, disabling automatic reconnect.
--> Sending: ATDT#777
--> Waiting for carrier.
ATDT#777
CONNECT
--> Carrier detected. Starting PPP immediately.
--> Starting pppd at Tue Sep 14 21:15:51 2010
--> Pid of pppd: 5079
--> Using interface ppp0
--> pppd: 0[14]*
--> pppd: 0[14]*
--> pppd: 0[14]*
--> pppd: 0[14]*
--> pppd: 0[14]*
--->etc
5- Rediriger les DNS:
mv /etc/resolv.conf /etc/resolvconf.old
ln -s /etc/ppp/resolv.conf /etc/resolv.conf
6- Stopper
ctrl + c
7-Pour la compréhension :
ATZ : initialisation du modem
ATDT : numérotation par fréquences
ATQ0 : envoie d'un message
Idle seconds : se déconnecte après 3600 secondes d'inactivité,utile pour conserver son crédit. |