Mit dem Handy Bluetooth und GPRS vom Laptop nutzen
hcitool scan
zum MAC rausfinden
sdptool search DUN
dial up network suchen
sdptool browse
um den Kanal herauszufinden
Paket cu installieren
The cu command is used to call up another system and act as a dial in terminal.
/usr/bin/rfcomm bind 1 00:01:E3:3D:BF:3B 1
handy auf rfcomm1 binden mit kanal 1 (letzte 1)
verbindungstest
cu -l /dev/rfcomm1 -s 57600
dann
AT -> OK
gprs einrichten: (für t-d1)
sudo gedit /etc/ppp/peers/gprs
/dev/rfcomm1 57600
connect '/usr/sbin/chat -v -f /etc/chatscripts/gprs'
user internet
noauth
usepeerdns
defaultroute
echo test abschalten:
sudo gedit /etc/ppp/options
# vor
lcp-echo-interval 30
lcp-echo-failure 4
Protokoll zur Kommunikation erstellen:
sudo gedit /etc/chatscripts/gprs
TIMEOUT 5
ECHO ON
ABORT '\nBUSY\r'
ABORT '\nERROR\r'
ABORT '\nNO ANSWER\r'
ABORT '\nNO CARRIER\r'
ABORT '\nNO DIALTONE\r'
ABORT '\nRINGING\r\n\r\nRINGING\r'
'' \rAT
OK ATE1
OK 'ATZ'
OK 'AT&F'
OK 'ATV1E1S0=0&D2&C1'
OK 'AT+CMEE=1'
OK 'at+cgdcont=1,"IP","internet.t-d1.de"'
OK 'AT+CGDATA="PPP",1'
CONNECT ""
jetzt die Kommunikation testen:
sudo pppd debug nodetach debug call gprs
sonst ohne debug im Befehl
beenden: strg+c
Handy schaltet GPRS automatisch ein, auch wenn es aus ist!
ist man verbunden, ist surfen etc wie gehabt.
gprs easy connect macht die sache grafisch
(allerdings erst nach manueller einrichtung getestet)
http://wiki.ubuntuusers.de/Baustelle/Bluetooth/Mobile
http://www.gprsec.hu/modules/index/
