Preparation:
** Find the mac of the bt-gps:
load bluez.tcz
put your bt-usb
activate the bt-gps
go to System Tools - Services and activate bluez
in a terminal:
tc@box:~$ hciconfig -a
hci0: Type: BR/EDR Bus: USB
BD Address: xx:09:xx:50:xx:80 ACL MTU: 310:10 SCO MTU: 64:8
UP RUNNING PSCAN
RX bytes:693 acl:0 sco:0 events:23 errors:0
TX bytes:340 acl:0 sco:0 commands:21 errors:0
Features: 0xff 0xff 0x8f 0xfe 0x9b 0xf9 0x00 0x80
Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
Link policy: RSWITCH HOLD SNIFF PARK
Link mode: SLAVE ACCEPT
Name: 'box'
Class: 0xXXXXXX
Service Classes: Capturing, Telephony
Device Class: Computer, Uncategorized
HCI Version: 2.0 (0x3) Revision: 0xc5c
LMP Version: 2.0 (0x3) Subversion: 0xc5c
Manufacturer: Cambridge Silicon Radio (10)
and write in a paper the "Class: 0xXXXXXX"
tc@box:~$ sudo hciconfig hci0 up
tc@box:~$ hcitool scan
Scanning ...
11:YY:33:YY:57:YY BT-GPS
and write in a paper 11:YY:33:YY:57:YY
** create this three files:
create as root the file /usr/local/etc/bluetooth/hcid.conf
#
# HCI daemon configuration file.
#
# $Id: hcid.conf,v 1.4 2004/04/29 20:14:21 holtmann Exp $
#
# HCId options
options {
# Automatically initialize new devices
autoinit yes;
# Security Manager mode
# none - Security manager disabled
# auto - Use local PIN for incoming connections
# user - Always ask user for a PIN
#
security auto;
# Pairing mode
# none - Pairing disabled
# multi - Allow pairing with already paired devices
# once - Pair once and deny successive attempts
pairing multi;
# PIN helper
# pin_helper /usr/local/bin/bluepincat;
pin_helper /usr/local/etc/bluetooth/PIN;
# D-Bus PIN helper
# dbus_pin_helper;
}
# Default settings for HCI devices
device {
# Local device name
# %d - device id
# %h - host name
# name "ipaq";
name "BlueZ %h (%d)";
# Local device class
class 0xZZZZZZ;
# Default packet type
#pkt_type DH1,DM1,HV1;
# Inquiry and Page scan
iscan enable;
pscan enable;
# Default link mode
# none - no specific policy
# accept - always accept incoming connections
# master - become master on incoming connections,
# deny role switch on outgoing connections
#
#lm accept,master;
#
lm accept;
# Default link policy
# none - no specific policy
# rswitch - allow role switch
# hold - allow hold mode
# sniff - allow sniff mode
# park - allow park mode
#
#lp hold,sniff;
#
lp rswitch,hold,sniff,park;
# Authentication and Encryption
auth enable;
encrypt enable;
}
in the line: class 0xZZZZZZ; put your 0xXXXXXX from "Class: 0xXXXXXX"
important is the line: pin_helper /usr/local/etc/bluetooth/PIN;
create as root the file /usr/local/etc/bluetooth/PIN
0000
this is normally the PIN of the bt-gps (4 zeros)
create as root the file /usr/local/etc/bluetooth/rfcomm.conf
#
# RFCOMM configuration file.
#
rfcomm0 {
# Automatically bind the device at startup
bind yes;
# Bluetooth address of the device
device xx:xx:xx:xx:xx:xx;
# RFCOMM channel for the connection
channel 1;
# Description of the connection
comment "BT GPS";
}
in the line: device xx:xx:xx:xx:xx:xx; put your 11:YY:33:YY:57:YY from the BT-GPS
**put in the file /opt/.filetool.lst this three lines:
usr/local/etc/bluetooth/hcid.conf
usr/local/etc/bluetooth/PIN
usr/local/etc/bluetooth/rfcomm.conf
** reboot your PC
load tangogps.tcz
put your bt-usb
activate the bt-gps
go to System Tools - Services and activate bluez
load gpsd.tcz
in a terminal:
tc@box:~$ sudo hciconfig hci0 up
tc@box:~$ sudo rfcomm bind rfcomm0
tc@box:~$ sudo gpsd /dev/rfcomm0 -F /var/run/gpsd.sock -P /var/run/gpsd.pi
and finally execute tangogps with his wbar icon
now you can see in the map your position and other information.
to see if all goes ok before execute tangogps you can see in a terminal:
tc@box:~$ cat /dev/rfcomm0
Nh)@Ë`P±%I Q²1@Ð %ÑÈî?Lq ç'ÞmÁ¹Ã#D^°
$SkyTraq,Venus6
$Kernel,v1.4.8,0000067E,19322105,I,16.367667MHz
$ver,010822,rev,081023
$GPGGA,195526.999,4159.7036,N,00250.0672,E,0,00,0.0,247.4,M,0.0,M,,0000*62
$GPGSA,A,1,,,,,,,,,,,,,0.0,0.0,0.0*30
$GPGSV,3,1,12,26,75,002,,28,54,079,,05,46,193,,15,38,304,*7D
$GPGSV,3,2,12,27,35,260,,08,34,053,,09,14,253,,10,10,162,*78
$GPGSV,3,3,12,21,08,297,,17,05,125,,07,04,063,,18,02,324,*70
$GPRMC,195526.999,V,4159.7036,N,00250.0672,E,000.0,000.0,030211,,,N*7D
$GPVTG,000.0,T,,M,000.0,N,000.0,K,N*02
$GPGGA,195527.999,4159.7036,N,00250.0672,E,0,00,0.0,247.4,M,0.0,M,,0000*63
$GPGSA,A,1,,,,,,,,,,,,,0.0,0.0,0.0*30
$GPGSV,3,1,12,26,75,002,,28,54,079,,05,46,193,,15,38,304,*7D
$GPGSV,3,2,12,27,35,260,,08,34,053,,09,14,253,,10,10,162,*78
$GPGSV,3,3,12,21,08,297,,17,05,125,,07,04,063,,18,02,324,*70
$GPRMC,195527.999,V,4159.7036,N,00250.0672,E,000.0,000.0,030211,,,N*7C
$GPVTG,000.0,T,,M,000.0,N,000.0,K,N*02
$GPGGA,195528.999,4159.7036,N,00250.0672,E,0,00,0.0,247.4,M,0.0,M,,0000*6C
...
stop with ctrl-Z
Hope it helps somebody