||07-15-2010 09:32 PM
iBlue Bluetooth GPS Unit on openSUSE
Recently got a little Bluetooth GPS receiver, an iBlue GPS unit. Cheap (under $100), and does nothing but GPS. No 'brains' like a nav unit, but ready to use with a PC.
GPS is essentially serial data...and this how-to assumes you've already GOT Bluetooth up and running on your flavor of Linux. This was done on openSUSE 11.2, but should be portable to pretty much any flavor of Linux.
- Identify the device. Turn it on, and run "hcitool scan" at a command prompt. This will return something like:
You'll need this 'MAC' address for the next step.
00:11:22:33:44:55 i-Blue GPS
- To get the serial port going, run "sdptool browse 00:11:22:33:44:55". We want to get the CHANNEL number. In my case, it's 1.
- Create an entry in rfcomm.conf (usually in /etc/bluetooth), like this:
The "rfcomm4" is an example. If you don't have any other devices, feel free to use 0, 1, etc.
comment "i-Blue GPS";
- To get the serial device created, run "rfcomm connect 4" You should now see an entry in /dev, such as "/dev/rfcomm0", etc. That's your serial device.
- Install gpsd if you haven't already got it. When you run gpsd, specify the serial device name you created above.
- Run GPS software, like GPSDrive, xgps, etc. Or, run NTPD, and enjoy having your very own stratum-1 reference clock, for under $100. :)