View Single Post
tz1's Avatar
Posts: 716 | Thanked: 236 times | Joined on Dec 2007
#11
This works. It can be launched from one of the statusbar launchers.

Save to /usr/local/bin/nokasgps or whatever, as perm 755 (probably owned by root). Then just run it (without parameters) to sit and listen for a connection. Pair your Nokia with your device and set up the serial port. It will take a second or two for the NMEA stream to appear. You can kill it when you don't need it, but it will just sit there and wait (maybe with BT on draining the battery a bit faster?).

Code:
#!/bin/sh
if [ $# == 0 ]; then
        sdptool add SP
        while true; do
                rfcomm -r -i hci0 listen 2 1 $0 {}
        done
fi
exec /usr/libexec/navicore-gpsd-helper >$1
Note you will want to use the control panel to insure the location is set to the "Internal GPS" - though it probably would echo a BT GPS unit.

Last edited by tz1; 2008-06-19 at 12:09. Reason: Oops, perm 755
 

The Following 4 Users Say Thank You to tz1 For This Useful Post: