1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
|
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Author" content="Remco Treffkorn">
<meta name="Description" content="GPSd is a utility that can listen to a GPS or Loran Receiver and re-publish the positional data in a simpler format.">
<meta name="Keywords" content="GPS, translator, mxmap, GIS">
<link rel="stylesheet" href="main.css" type="text/css"/>
<title>Bluetooth and GPSd</title>
</head>
<body background="paper.gif">
<div id="Header">
Blurtooth and <code>gpsd</code>
</div>
<div id="Menu">
<a href="index.html">Home<br/>
<a href="#news">News</a><br/>
<a href="#downloads">Downloads</a><br/>
<a href="#mailing-lists">Mailing lists</a><br/>
<a href="#documentation">Documentation</a><br/>
<a href="xgps.html">Screenshots</a><br/>
<a href="#recipes">Recipes</a><br/>
<a href="#others">Other GPSDs</a><br/>
<a href="hardware.html">Hardware</a><br/>
<a href="history.html">History</a><br/>
<a href="http://validator.w3.org/check/referer"><img
src="http://www.w3.org/Icons/valid-xhtml10"
alt="Valid XHTML 1.0!" height="31" width="88" /></a>
</div>
<div id="Content">
<p>Jean-Michel.Bouffard, who is at CRC in Canada says that he's using
the Socket Bluetooth GPS receiver with gpsd. Here are his notes. The
Bluetooth protocol is including a serial profile that makes the use of
the Bluetooth GPS almost like a serial GPS.</p>
<ol>
<li>First, the Bluez protcol stack must be installed and all the
documentation can be found on <a
href='http://bluez.sourceforge.net/'>http://bluez.sourceforge.net/</a>.
In my case, I installed it on a Linux PC with a BT USB dongle but I'm
still trying to install it on my 3850 iPaq with a BT Sleeve. But once
BT is installed, the rest is the same.
<li>Install bluetooth for your device with the "rfcomm" module which is
the Serial profile (http://bluez.sourceforge.net/).
<li>Next, load the modules :
<pre>
# modprobe hci_xxx (xxx depend on your type of device)
# modprobe bluez
# modprobe l2cap
# modprobe rfcomm
</pre>
<li>Note : you must be the root user for the next part...
<li>If the modules have loaded successfully, type "hciconfig" and you
should see your BT device listed under the "hci0" name.
<li>Create the BT serial device (To do once, it will still be there after
a reboot):
<pre>
# mknod /dev/rfcomm0 c 216 0
</pre>
<li>Start your device and scan for remote BT device:
<pre>
# hciconfig hci0 up
# hcitool scan
</pre>
<li>Write down the adress of the newly found BT GPS receiver (looks like
xx:xx:xx:xx:xx:xx)
<li>Connect to the device:
<pre>
# hcitool cc xx:xx:xx:xx:xx:xx
</pre>
<li>You can chack if the connection is done by doing :
<pre>
# hcitool con
</pre>
<li>Start the serial protocol over BT :
<pre>
# rfcomm /dev/rfcomm0 xx:xx:xx:xx:xx:xx
</pre>
<li>After that, your BT GPS should be connected to /dev/rfcomm0 and you can
check by doing :
<pre>
# cat /dev/rfcomm0
</pre>
to see the NMEA GPS output
<li>You can then start gpsd like this:
<pre>
# gpsd -p /dev/rfcomm0
</pre>
to specify the path of the GPS and it will work exactly like a serial GPS
</ol>
<p>If something is unclear, write me back and I will try to help you...</p>
<p>Jean-Michel Bouffard</p>
</div>
</hr>
</body>
</html>
|