Ceci est une ancienne révision du document !
Table des matières
Internet Mobile
Lien: http://doc.ubuntu-fr.org/telephone_modem
Avec orange: http://www.equinoxefr.org/post/2008/07/02/ubuntu-3g-et-nokia-n95-avec-orange/
brancher
Brancher par cable USB au eeePC… sur le Nokia, choisir “PC SUITE”.
Dans les logs on voit ça:
Feb 1 17:58:20 tj-eeePC kernel: [ 63.665586] usb 1-2: new full speed USB device using uhci_hcd and address 2 Feb 1 17:58:20 tj-eeePC kernel: [ 63.669892] usb 1-2: configuration #1 chosen from 1 choice Feb 1 17:58:20 tj-eeePC NetworkManager: <debug> [1233507500.386933] nm_hal_device_added(): New device added (hal udi is '/org/freedesktop/Hal/devices/usb_device_421_4f0_noserial'). Feb 1 17:58:22 tj-eeePC NetworkManager: <debug> [1233507502.211950] nm_hal_device_added(): New device added (hal udi is '/org/freedesktop/Hal/devices/usb_device_421_4f0_noserial_if0'). Feb 1 17:58:22 tj-eeePC kernel: [ 65.700553] cdc_acm 1-2:1.10: ttyACM0: USB ACM device Feb 1 17:58:22 tj-eeePC kernel: [ 65.707535] usbcore: registered new interface driver cdc_acm Feb 1 17:58:22 tj-eeePC kernel: [ 65.708052] /build/buildd/linux-2.6.24/drivers/usb/class/cdc-acm.c: v0.25:USB Abstract Control Model driver for USB modems and ISDN adapters Feb 1 17:58:22 tj-eeePC NetworkManager: <debug> [1233507502.459817] nm_hal_device_added(): New device added (hal udi is '/org/freedesktop/Hal/devices/usb_device_421_4f0_noserial_if1'). Feb 1 17:58:22 tj-eeePC kernel: [ 65.763344] usbcore: registered new interface driver cdc_ether Feb 1 17:58:22 tj-eeePC kernel: [ 65.770646] usb 1-2: bad CDC descriptors Feb 1 17:58:22 tj-eeePC kernel: [ 65.771110] usbcore: registered new interface driver rndis_host ... <snip> ...
wvdial
installer
Il faut installer “wvdial” , car ce qui va etablir la connexion “PPP” over Nokia.
# aptitude update # aptitude install wvdial
configurer (pour Orange)
Preparer la configuration en apportant les modifications suivantes dans /etc/wvdial.conf
:
[Dialer Defaults] Modem = /dev/ttyACM0 Baud = 460800 Init1 = ATZ Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 Init3 = AT+CGDCONT=1,”IP”,”orange”; ISDN = 0 Modem Type = Analog Modem Phone = *99***1# username = orange password = orange Stupid Mode = 1
connecter
Dans un terminal:
$ pon.wvdial
(sinon: $ sudo wvdial
)
deconnecter
Dans un autre terminal:
$ poff.wvdial
log
$ plog
Feb 1 18:50:11 tj-eeePC pppd[8996]: pppd 2.4.4 started by thierry, uid 1000 Feb 1 18:50:11 tj-eeePC pppd[8996]: Using interface ppp0 Feb 1 18:50:11 tj-eeePC pppd[8996]: Connect: ppp0 <--> /dev/ttyACM0 Feb 1 18:50:12 tj-eeePC pppd[8996]: PAP authentication succeeded Feb 1 18:50:14 tj-eeePC pppd[8996]: Cannot determine ethernet address for proxy ARP Feb 1 18:50:14 tj-eeePC pppd[8996]: local IP address 10.36.151.52 Feb 1 18:50:14 tj-eeePC pppd[8996]: remote IP address 10.6.6.6 Feb 1 18:50:14 tj-eeePC pppd[8996]: primary DNS address 194.51.3.56
Tips
dialer
On peut déclarer different section de “dialer” ainsi:
[Dialer SFR] ... blabla ...
Et puis a l'usage:
$ pon.wvdial SFR
Il existe un bug: Il faut utiliser la même numérotation des chaines “Init” sinon, ca melange les config |
SFR
Lien: http://www.boutidos.net/blog/index.php?post/2008/09/09/HowTo-%3A-Internet-3G-on-laptop-with-N95
config
Voici ma config, pour N95 ou N80 :
[Dialer SFR] Modem = /dev/ttyACM0 Baud = 460800 Init1 = ATZ Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 Init3 = AT+CGDCONT=1,"IP","wapsfr"; ISDN = 0 Modem Type = Analog Modem Phone = *99***1# username = dummy password = dummy Stupid Mode = 1 Idle Seconds = 3000 #Auto DNS = off #Ask Password = 0 #Dial Command = ATD #Carrier Check = no
(J'ai laissé quelque commentaire, car c'est pas super limpide !)
Mais ça ne marche pas ! |
Parce que :
- SFR n'autorise que le surf sur le port 80 !!!
- Il faut changer le “user agent” du navigateur ! (firefox)
user agent
Pour changer le “user-agent”, j'ai installé le plugin “User agent switcher” , et créé un “user-agent” comme ca:
Mozilla/5.0 (SymbianOS/9.2; U; Series60/3.1 NokiaN95_8GB/20.0.016; Profile/MIDP-2.0 Configuration/CLDC-1.1 ) AppleWebKit/413 (KHTML, like Gecko) Safari/413
proxy
On parle aussi de proxy, mais j'ai bien l'impression que ca fonctionne sans avoir besoin de changer la config.
Il y a sans doute un proxy transparent sur le chemin.
Le proxy (si necessaire) :
195.115.25.129:8080
Bouygtel
[Dialer Bouygtel] Modem = /dev/ttyACM0 Baud = 460800 Init1 = ATZ #Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 Init2 = Init3 = AT+CGDCONT=1,"IP","ebouygtel.com"; ISDN = 0 Modem Type = Analog Modem Phone = *99***1# username = dummy password = dummy Stupid Mode = 1 #Auto DNS = off #Ask Password = 0 #Dial Command = ATD Idle Seconds = 3000 #Carrier Check = no
“Init2” a été supprimé parce que j'ai utilisé un Samsung (iPhone Killer dont je ne sais plus la marque) a la place d'un N95 (ou N81 ).
Et ca marche seulement en “www” , et, contrairement à SFR, sans devoir bidouiller le “user-agent”.
Conclusion
Ca marche super chez Orange !
Reste a voir les surprises avec la facturation !!!
Un petit bilan:
Operateur | www | www User-agent | autres ports |
Orange | Oui | pas besoin | Oui |
SFR | Oui | Hélas oui | Non |
Bouygtel | Oui | pas besoin | Non |
Le gagnant est Orange.
Les autres sont disqualifiés, car ils ne fournissent pas d'accès à Internet, mais une simple connexion pour naviguer sur le web.
l'abonnement orange testé integre l'accès Internet, avec + 5 euros/mois. C'est peut ça, la différence. |
performance Orange
le port 80/www semble passé par un proxy transparent, donc impossible a tester avec “iperf” |
# iperf -s ------------------------------------------------------------ Server listening on TCP port 5001 TCP window size: 85.3 KByte (default) ------------------------------------------------------------ [ 4] local XXXXXXXX port 5001 connected with 193.253.141.73 port 53435 [ 4] 0.0-13.9 sec 160 KBytes 94.1 Kbits/sec [ 5] local XXXXXXXX port 5001 connected with 193.253.141.73 port 59690 [ 5] 0.0-12.0 sec 176 KBytes 120 Kbits/sec
Autre port:
# iperf -s -p 81 ------------------------------------------------------------ Server listening on TCP port 81 TCP window size: 85.3 KByte (default) ------------------------------------------------------------ [ 4] local XXXXXXXXX port 81 connected with 193.253.141.73 port 16816 [ 4] 0.0-12.0 sec 144 KBytes 98.3 Kbits/sec [ 5] local XXXXXXXXX port 81 connected with 193.253.141.73 port 23718 [ 5] 0.0-12.6 sec 136 KBytes 88.7 Kbits/sec
Autre port:
# iperf -s -p 8080 ------------------------------------------------------------ Server listening on TCP port 8080 TCP window size: 85.3 KByte (default) ------------------------------------------------------------ [ 4] local XXXXXXXXX port 8080 connected with 193.253.141.73 port 10604 [ 4] 0.0-14.2 sec 176 KBytes 102 Kbits/sec