[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Per Bluetooth und Handy ins Netz



* Dirk Salva  [17-06-2008 12:25]:

> Keiner eine Idee? Die Infos, die ich im Netz gefunden habe, sind leider
> alle veraltet. Bis jetzt habe ich bluez-utils installiert,
> passkey-agent selbst kompiliert, komme da aber nicht weiter.
 
Hier mal eine Anleitung ohne Garantie!

BT-Stick einstecken und checken, ob er erkannt wurde:

# hciconfig

wenn OK, dann BT am Handy einschalten und scannen:

# hcitool scan
Scanning ...
        df:as:22:11:yy:xx       named

die BT-Mac in /etc/bluetooth/rfcomm.conf eintragen

Beispiel:

rfcomm55 {
       bind yes;
       device df:as:22:11:yy:xx;
       channel 1;
       comment "mein Handy";
}

# /etc/init.d/bluetooth restart

auf einer Console den passkey-agent starten:

$ /path/to/passkey-agent --default 1234

auf einer anderen Console einen Connect-Versuch machen:

$ echo "ATZ" > /dev/rfcomm55

Hinweis: die User muss in der Gruppe dialout sein!
$ ls -l /dev/rfcomm55
crw-rw---- 1 root dialout 216, 8 /dev/rfcomm55

das Handy sollte jetzt das Passwort abfragen, 1234 eingeben,
alles bestätigen und automatische Verbindung zulassen

Skripte für pppd:

[SonyEricsson T68i]
Achtung: Daten beruhen auf dem letzten Stand von
http://www.easyconnect.linuxuser.hu/ - Keine Garantie!!!

### beginn online #########################
'' AT
TIMEOUT 240
OK ATE0
OK ATV1
OK 'AT+CGDCONT=5,"IP","???"'
OK ATS0=0
OK AT+CGQREQ=5,0,0,0,0,0
OK AT+CGQMIN=5,0,0,0,0,0
OK AT+CGATT?
OK ATDT*99***3#
TIMEOUT 30
CONNECT ""
### ende online ###########################

??? = APN eintragen!!

### beginn offline ########################
SAY "Disconnecting from GPRS ...\n"
"" "\K"
"" "+++ATH"
SAY "Disconnected.\n"
### ende offline ##########################

### beginn peers-skript bluetooth #########
# debug
noauth
# device bitte anpassen!
/dev/rfcomm55
57600
crtscts
defaultroute
noipdefault
user xxxxx
password xxxxxx
usepeerdns
connect '/usr/sbin/chat -v -e -f /path/to/online'
disconnect '/usr/sbin/chat -v -e -f /path/to/offline'
### ende peers-skript  bluetooth ##########

Verbindung erstellen: pon bluetooth
Verbindung trennen: poff

Eventuell muss Username und Passwort noch in 
pap-secrets und/oder chap-secrets stehen.

Gruß Uwe

Attachment: signature.asc
Description: Digital signature


Reply to: