Nieuws:

Welkom, Gast. Alsjeblieft inloggen of registreren.
Heb je de activerings-mail niet ontvangen?

Auteur Topic: Mobiel als modem voor GPRS verbinding  (gelezen 2122 keer)

Offline KenSentMe

  • Lid
    • http://www.vandenieuwenhof.nl
Mobiel als modem voor GPRS verbinding
« Gepost op: 2007/08/15, 22:34:10 »
Ik probeer al een tijdje om mijn Nokia E61 telefoon te gebruiken als modem via bluetooth voor mijn Ubuntu laptop. Ik heb op het internationale forum een aantal howto's gevonden en verschillende opties geprobeerd, maar helaas nog zonder bruikbaar resultaat. Ik gebruik de volgende bestanden:

/etc/bluetooth/rfcomm.conf:
rfcomm0 {
        device 00:12:D2:B4:55:1E;
        channel 2;
        comment "Nokia E61";
}
Dit klopt volgens mij wel, want als ik verbinding probeer te maken zie ik aan mijn telefoon dat er iets met bluetooth gebeurt.

/etc/ppp/peers/vodafone
/dev/rfcomm0 115200
connect '/usr/sbin/chat -v -f /etc/chatscripts/chat-gprs'
crtscts
modem -detach
noccp
defaultroute
usepeerdns
user vodafone
ipcp-accept-remote
ipcp-accept-local
noipdefault
debug
Deze verwijst naar het bestand /etc/chatscripts/chat-gprs:
'' ATZ OK
AT+CGDCONT=1,"IP","live.vodafone.nl","0.0.0.0",0,0
OK "ATD*99#"
CONNECT ''
De gegevens voor dit bestand heb ik gehaald uit dit topic op een Palm forum: http://www.palmclub.nl/forums/internet-communicatie/15351-vodafone-gprs-z600-t610-tungsten-t-kijk-hier.html
Ik heb hier ook geprobeerd om *ATD*99***1# te gebruiken, maar dit maakte niets uit.

Dit zijn de foutmeldingen die ik krijg als ik vervolgens 'pppd call vodafone' uitvoer

In /var/log/syslog:
Citaat
Aug 15 22:21:09 lisa2-ubuntu NetworkManager: ^I[1187209269.711858] nm_hal_device_added (): New device added (hal udi is '/org/freedesktop/Hal/devices/usb_device_b05_1712_0194E8_5B_0002_if0_bluetooth_hci_bluetooth_hci').
Aug 15 22:21:13 lisa2-ubuntu hcid[5619]: link_key_request (sba=00:18:F3:8D:1F:17, dba=00:12:D2:B4:55:1E)
Aug 15 22:21:14 lisa2-ubuntu chat[14324]: send (ATZ^M)
Aug 15 22:21:14 lisa2-ubuntu chat[14324]: expect (OK)
Aug 15 22:21:14 lisa2-ubuntu chat[14324]: ATZ^M^M
Aug 15 22:21:14 lisa2-ubuntu chat[14324]: OK
Aug 15 22:21:14 lisa2-ubuntu chat[14324]:  -- got it
Aug 15 22:21:14 lisa2-ubuntu chat[14324]: send (AT+CGDCONT=1,"IP","live.vodafone.nl","0.0.0.0",0,0^M)
Aug 15 22:21:14 lisa2-ubuntu chat[14324]: expect (OK)
Aug 15 22:21:14 lisa2-ubuntu chat[14324]: ^M
Aug 15 22:21:14 lisa2-ubuntu chat[14324]: AT+CGDCONT=1,"IP","live.vodafone.nl","0.0.0.0",0,0^M^M
Aug 15 22:21:14 lisa2-ubuntu chat[14324]: OK
Aug 15 22:21:14 lisa2-ubuntu chat[14324]:  -- got it
Aug 15 22:21:14 lisa2-ubuntu chat[14324]: send (ATD*99#^M)
Aug 15 22:21:14 lisa2-ubuntu chat[14324]: expect (CONNECT)
Aug 15 22:21:14 lisa2-ubuntu chat[14324]: ^M
Aug 15 22:21:14 lisa2-ubuntu chat[14324]: ATD*99#^M^M
Aug 15 22:21:14 lisa2-ubuntu chat[14324]: NO CARRIER^M
Aug 15 22:21:59 lisa2-ubuntu chat[14324]: alarm
Aug 15 22:21:59 lisa2-ubuntu chat[14324]: Failed
Aug 15 22:21:59 lisa2-ubuntu pppd[14313]: Connect script failed
Aug 15 22:22:00 lisa2-ubuntu pppd[14313]: Exit.
En in terminal zie ik verder:
Citaat
jeroen@lisa2-ubuntu:/etc/chatscripts$ pppd call vodafone
Serial connection established.
using channel 5
Using interface ppp0
Connect: ppp0 <--> /dev/rfcomm0
rcvd [LCP ConfReq id=0x0 ]
sent [LCP ConfReq id=0x1 ]
sent [LCP ConfAck id=0x0 ]
rcvd [LCP ConfRej id=0x1 ]
sent [LCP ConfReq id=0x2 ]
rcvd [LCP ConfAck id=0x2 ]
sent [LCP EchoReq id=0x0 magic=0x0]
sent [PAP AuthReq id=0x1 user="vodafone" password=]
rcvd [LCP EchoRep id=0x0 magic=0x0]
rcvd [PAP AuthAck id=0x1 ""]
PAP authentication succeeded
sent [IPCP ConfReq id=0x1 ]
rcvd [IPCP ConfReq id=0x0 ]
sent [IPCP ConfAck id=0x0 ]
rcvd [LCP TermReq id=0x1]
LCP terminated by peer
sent [LCP TermAck id=0x1]
Connection terminated.
Modem hangup
Heeft iemand het zelf al eens geprobeerd en ook aan de praat gekregen (en hoe dan!) of weet iemand wat ik nog kan doen om mijn telefoon als modem te gebruiken?

gaea

  • Gast
Mobiel als modem voor GPRS verbinding
« Reactie #1 Gepost op: 2007/09/06, 10:49:41 »
Beetje laat, maar ik zal toch reageren.
Ik gebruik ook een Nokia mobiel om te UMTSsen.
Ook met vodafone, weliswaar een Duits abbo, maar dat maakt niks uit.
Allereerst zorgen dat je bluetooth contact krijgt tussen mobiel en pc of laptop
Daarna het daadwerkelijke inbellen, dat doe ik gewoon met Kppp.

/etc/bluetooth/rfcomm.conf aanpassen:
Zo ziet de mijne er uit:

# RFCOMM configuration file.
#

rfcomm0 {
#   # Automatically bind the device at startup
   bind yes;
#
#   # Bluetooth address of the device
   device 00:16:4E:10:03:0A;
#
#   # RFCOMM channel for the connection
#   channel   1;
#
#   # Description of the connection
#   comment "Example Bluetooth device";
}

In dezelfde map staat ook hcid.conf, daarin kun je security op auto zetten als dat al niet zo is.
Dan de bluetooth service herstarten en dan zou je een /dev/rfcomm0 moeten hebben.

Dan Kppp;
Vrij eenvoudig:
Nieuwe account aanmaken(kies voor handmatig), een naam geven bijv. Vodafone.
Dan Telnr. invoeren *99***1# of *99# (Of gewoon allebei)
Verder kun je password onthouden aanvinken.
Hier hoef je verder niks meer te doen en kun je op 'ok' klikken.
Klik op tabblad modems en vervolgens op 'nieuw'.
Geef je modem een naam zoals 'Nokia Bluetooth'
Zet modem apparaat op /dev/rfcomm0
Zet verbindingssnelheid op 921600
Klik op tabblad 'modem', hier komt de belangrijkste instelling.
Klik op modemcommando's.
Vul bij 'initialisatietekenreeks 2 je extra modemstring in.
Bij mij ziet dat zo uit:
AT+CGDCONT=1,"IP","web.vodafone.de"
Bij jou zal daar niet web.vodafone.de maar de nederlandse equivalent moeten staan.
Bij KPN is dat meen ik "internet" , maar probeer het eens met web.vodafone.nl .
Checked google; ja, inderdaad web.vodafone.nl
Dan een paar keer op 'ok' klikken .
Nu kun je het proberen om verbinding te maken.
Als login en password kun je 'anything' of wat dan ook invullen.

Waarschijnlijk zul je op je mobiel zien dat er om een pin gevraagd wordt.
Vul hier maar iet in wat je wilt bijv. 1234.
Dan verschijnt op je computer hetzelfde, vul daar ook dezelfde pin als daarnet in
Er zou dan een verbinding met internet moeten komen.

Of je gebruikt http://easyconnect.linuxuser.hu
Dat kun je i.p.v. Kppp gebruiken.

Succes,

Gerard