nille
Hi Leute,
hab folgendes Problem:
Ich möchte gerne mein Android Handy als GPS Maus für mein Notebook benutzen. Dazu habe ich eine kleine App installiert, die dieses möglich macht.
Leider jedoch, kann ich keine Verbindung von meinem Laptop zum Handy aufbauen.
Das Pairing hat soweit funktioniert, allerdings nur, wenn ich das Pairing vom Handy aus starte. Starte ich es vom Laptop aus, bekomme ich einen falschen Pairing Code angezeigt.
Es will einfach nicht funktionieren und ich kann mir nicht erklären woran es liegt.
Hat jemand eine Idee oder einen ähnlichen Fall gehabt?
Hier noch ein paar Eckdaten und Configs:
/etc/bluetooth/rfcomm.conf:
#
# RFCOMM configuration file.
#
rfcomm0 {
# Automatically bind the device at startup
bind yes;
# Bluetooth address of the device
device 92:58:45:F5:25:B7;
# RFCOMM channel for the connection
channel 1;
# Description of the connection
comment "Motorola Defy Plus";
}
/etc/bluetooth/serial.conf
# Configuration file for serial
# There could be multiple proxy sections, the format is [Proxy <user chosen name>]
#[Proxy DUN]
# UUID for DUN proxy service
#UUID=00001103-0000-1000-8000-00805F9B34FB
# Address for device node
Address=/dev/rfcomm0
mittles "rfcomm bind rfcomm0" binde ich rfcomm an rfcomm0
Danach starte ich den gpsd mittels:
"gpsd -nN -D 5 /dev/rfcomm0"
hier die Ausgabe:
gpsd:INFO: launching (Version 3.3)
gpsd:IO: opening IPv4 socket
gpsd:IO: opening IPv6 socket
gpsd:INFO: listening on port gpsd
gpsd:PROG: NTPD shmat(3768332,0,0) succeeded, segment 0
gpsd:PROG: NTPD shmat(3801101,0,0) succeeded, segment 1
gpsd:PROG: NTPD shmat(3833870,0,0) succeeded, segment 2
gpsd:PROG: NTPD shmat(3866639,0,0) succeeded, segment 3
gpsd:PROG: shmat() succeeded, segment 3899408
gpsd:PROG: shared-segment creation succeeded,
gpsd:INFO: NTPD ntpd_link_activate: 1
gpsd:INFO: stashing device /dev/rfcomm0 at slot 0
gpsd:PROG: PPS Create Thread gpsd_ppsmonitor
gpsd:PROG: no /etc/gpsd/device-hook present, skipped running ACTIVATE hook
gpsd:PROG: PPS chrony socket /var/run/chrony.rfcomm0.sock doesn't exist
gpsd:PROG: PPS thread awaiting device activation
gpsd:INFO: opening GPS data source type 4 at '/dev/rfcomm0'
gpsd:PROG: PPS thread awaiting device activation
gpsd:ERROR: device open failed: Connection refused - retrying read-only
gpsd:ERROR: read-only device open failed: Connection refused
gpsd:ERROR: initial GPS device /dev/rfcomm0 open failed
gpsd:PROG: changing to group 14
gpsd:PROG: PPS thread awaiting device activation
gpsd:PROG: PPS thread awaiting device activation
gpsd:INFO: running with effective group ID 14
gpsd:INFO: running with effective user ID 99
gpsd:INFO: startup at 2011-12-04T09:58:49.000Z (1322992729)
gpsd:PROG: PPS thread awaiting device activation
gpsd:INFO: reconnection attempt on device 0
gpsd:PROG: no /etc/gpsd/device-hook present, skipped running ACTIVATE hook
gpsd:INFO: opening GPS data source type 4 at '/dev/rfcomm0'
gpsd:ERROR: device open failed: Connection refused - retrying read-only
gpsd:ERROR: read-only device open failed: Connection refused
gpsd:ERROR: /dev/rfcomm0: device activation failed.
gpsd:PROG: PPS thread awaiting device activation
gpsd:PROG: PPS thread awaiting device activation
gpsd:INFO: reconnection attempt on device 0
gpsd:PROG: no /etc/gpsd/device-hook present, skipped running ACTIVATE hook
gpsd:INFO: opening GPS data source type 4 at '/dev/rfcomm0'
gpsd:ERROR: device open failed: Connection refused - retrying read-only
gpsd:ERROR: read-only device open failed: Connection refused
gpsd:ERROR: /dev/rfcomm0: device activation failed.
wenn ich über die Konsole eine Verbindung herstelle bekomme ich folgende Fehlermeldung:
rfcomm connect 0 92:58:45:F5:25:B7
Can't connect RFCOMM socket: Connection refused
Hoffe ihr könnt mir weiter helfen.
Danke und Grüße
Nille