View Single Post
tz1's Avatar
Posts: 716 | Thanked: 236 times | Joined on Dec 2007
#10
Success!

First, create a script to launch the navicore gps control program (make sure it is set to the internal and not a BT gps via the control panel). and make it executable (I call it gpson):

Code:
#!/bin/sh
exec /usr/libexec/navicore-gpsd-helper >$1
Then, make sure you've paired with the other device (in the BT devices list).

(UPDATE!) Advertise a serial port service

Code:
sdptool add SP
Then run:

Code:
rfcomm -i hci0 listen 2 1 ./gpson {}
and then connect from a remote device. You might want to put it into an infinite loop, and or background. Also you might want to try "rfcomm -r -i hci0..." to put it in raw mode.

The navicore-gpsd-helper turns the internal GPS on (if it is selected) and emits NMEA to stdout.

Note: my linux laptop works with rfcomm connect... & cat /dev/rfcommX. I had to tweak my Mac (control panel, bluetooth, edit serial port). I will try Windows later, but adding the service above should make things work.

Last edited by tz1; 2008-06-18 at 23:36. Reason: Missing link
 

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