Orange + Huawei E1552 + wvdial

Ceci est la configuration rapide de l’offre d’Orange Madagascar en Internet postpayé sur un debian en utilisant wvdial, ça peut marcher aussi sur ubuntu. J’utilise l’offre Premium 30 qui marche pas mal. Orange vous donne une clé usb Huawei E1552 pour vous connecter.

Si vous n’avez pas encore les packages necessaires taper, ou utiliser un outil comme synaptic

root@tux:~# aptitude install wvdial usb-modeswitch 

Au branchement de la clé, on a dans dmesg :

[  111.381661] usb 2-1.3: new high speed USB device using ehci_hcd and address 4
[  111.486491] usb 2-1.3: New USB device found, idVendor=12d1, idProduct=1446
[  111.486497] usb 2-1.3: New USB device strings: Mfr=2, Product=1, SerialNumber=3
[  111.486501] usb 2-1.3: Product: HUAWEI Mobile
[  111.486504] usb 2-1.3: Manufacturer: HUAWEI Technology
[  111.486506] usb 2-1.3: SerialNumber: 1234567890ABCDEF
[  111.808869] usbcore: registered new interface driver uas
[  111.872242] Initializing USB Mass Storage driver...
[  111.872402] scsi6 : usb-storage 2-1.3:1.0
[  111.872543] scsi7 : usb-storage 2-1.3:1.1
[  111.872638] usbcore: registered new interface driver usb-storage
[  111.872640] USB Mass Storage support registered.
[  112.462494] usb 2-1.3: USB disconnect, address 4
[  119.043668] usb 2-1.3: new high speed USB device using ehci_hcd and address 5
[  119.148549] usb 2-1.3: New USB device found, idVendor=12d1, idProduct=141b
[  119.148553] usb 2-1.3: New USB device strings: Mfr=2, Product=1, SerialNumber=3
[  119.148557] usb 2-1.3: Product: HUAWEI Mobile
[  119.148560] usb 2-1.3: Manufacturer: HUAWEI Technology
[  119.148563] usb 2-1.3: SerialNumber: 1234567890ABCDEF
[  119.155003] scsi10 : usb-storage 2-1.3:1.2
[  119.215375] usbcore: registered new interface driver usbserial
[  119.215386] USB Serial support registered for generic
[  119.215427] usbcore: registered new interface driver usbserial_generic
[  119.215429] usbserial: USB Serial Driver core
[  119.231572] USB Serial support registered for GSM modem (1-port)
[  119.231908] option 2-1.3:1.0: GSM modem (1-port) converter detected
[  119.232043] usb 2-1.3: GSM modem (1-port) converter now attached to ttyUSB0
[  119.232059] option 2-1.3:1.1: GSM modem (1-port) converter detected
[  119.232162] usb 2-1.3: GSM modem (1-port) converter now attached to ttyUSB1
[  119.232186] usbcore: registered new interface driver option
[  119.232189] option: v0.7.2:USB Driver for GSM modems
[  120.152382] scsi 10:0:0:0: Direct-Access     HUAWEI   MMC Storage      2.31 PQ: 0 ANSI: 2
[  120.153181] sd 10:0:0:0: Attached scsi generic sg2 type 0
[  120.162266] sd 10:0:0:0: [sdb] Attached SCSI removable disk

Lancer la commande wvdialconf pour la detection :

root@tux:~# wvdialconf 
Editing `/etc/wvdial.conf'.

Scanning your serial ports for a modem.

Modem Port Scan<*1>: S0   
ttyS1<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyS1<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 115200 baud
ttyS1<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
Modem Port Scan<*1>: S2   S3   
ttyUSB0<*1>: ATQ0 V1 E1 -- OK
ttyUSB0<*1>: ATQ0 V1 E1 Z -- OK
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 -- OK
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 -- OK
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 -- OK
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
ttyUSB0<*1>: Modem Identifier: ATI -- Manufacturer: huawei
ttyUSB0<*1>: Speed 9600: AT -- OK
ttyUSB0<*1>: Max speed is 9600; that should be safe.
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
ttyUSB1<*1>: ATQ0 V1 E1 -- OK
ttyUSB1<*1>: ATQ0 V1 E1 Z -- OK
ttyUSB1<*1>: ATQ0 V1 E1 S0=0 -- OK
ttyUSB1<*1>: ATQ0 V1 E1 S0=0 &C1 -- OK
ttyUSB1<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 -- OK
ttyUSB1<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
ttyUSB1<*1>: Modem Identifier: ATI -- Manufacturer: huawei
ttyUSB1<*1>: Speed 9600: AT -- OK
ttyUSB1<*1>: Max speed is 9600; that should be safe.
ttyUSB1<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK

Found a modem on /dev/ttyUSB0.
Modem configuration written to /etc/wvdial.conf.
ttyUSB0<Info>: Speed 9600; init "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"
ttyUSB1<Info>: Speed 9600; init "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"
root@tux:~# 

Ajouter une section dans /etc/wvdial.conf

[Dialer orangenet]
Init0 = ATZ
Init1 = AT+CGDCONT=1,"IP","orangenet"
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Stupid Mode = 1
Modem Type = Analog Modem
ISDN = 0
New PPPD = yes
Phone = *99#
Modem = /dev/ttyUSB0
Username = ''
Password = ''
Baud = 9600

Connecter vous :

root@tux:~# wvdial orangenet
--> WvDial: Internet dialer version 1.61
--> Initializing modem.
--> Sending: AT+CGDCONT=1,"IP","orangenet"
AT+CGDCONT=1,"IP","orangenet"
OK
--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
OK
--> Modem initialized.
--> Sending: ATDT*99#
--> Waiting for carrier.
ATDT*99#
CONNECT
--> Carrier detected.  Starting PPP immediately.
--> Starting pppd at Sun Apr 17 10:09:24 2011
--> Pid of pppd: 27433
--> Using interface ppp0
--> local  IP address 41.74.212.45
--> remote IP address 10.64.64.64
--> primary   DNS address 80.12.72.7
--> secondary DNS address 41.190.236.206

Vita tompoko!

12 réflexions sur “Orange + Huawei E1552 + wvdial

  1. Pingback: Utiliser 3G Orange Madagascar sous Linux | arinoely-mg

Laisser un commentaire

Entrez vos coordonnées ci-dessous ou cliquez sur une icône pour vous connecter:

Logo WordPress.com

Vous commentez à l'aide de votre compte WordPress.com. Déconnexion / Changer )

Image Twitter

Vous commentez à l'aide de votre compte Twitter. Déconnexion / Changer )

Photo Facebook

Vous commentez à l'aide de votre compte Facebook. Déconnexion / Changer )

Photo Google+

Vous commentez à l'aide de votre compte Google+. Déconnexion / Changer )

Connexion à %s