Ceci est une ancienne révision du document !
http://www.gvglobaltech.com/mobilemate860download.html http://www.web66.com.tw/_file/C11/114225/Dfile/1308729982125file.0.pdf?t=2014101321
EN CAS DE Déconnection intenpestive, désactiver le bluetooth sur le téléphone portable pour éviter qu'il prenne la main sur le gps
hcitool scan Scanning ... 00:1C:88:11:26:E8 Teleprovodnik GPS
rfcomm connect 0 00:1C:88:11:26:E8
sudo minicom -D /dev/rfcomm0 -b 115200
sudo gedit /etc/default/gpsd
- gpsd
# Default settings for the gpsd init script and the hotplug wrapper. # Start the gpsd daemon automatically at boot time START_DAEMON="true" # Use USB hotplugging to add new USB devices automatically to the daemon USBAUTO="false" # Devices gpsd should collect to at boot time. # They need to be read/writeable, either by user gpsd or the group dialout. DEVICES="" # Other options you want to pass to gpsd GPSD_OPTIONS="" DEVICES="/dev/rfcomm0" GPSD_SOCKET="/var/run/gpsd.sock"
sudo gpsd /dev/rfcomm0
Pour donner les droits pour le fichier /dev/rfcomm0 et ne pas avoir a lancer tout en sudo
sudo chmod a+rwx /dev/rfcomm0
Pour visualiser les trames sans interpréation: (et attendre un peu)
minicom -D /dev/rfcomm0 -b 115200
Pour visualiser les trames avec interpréation:
gpsmon /dev/rfcomm0
Avec démon
pour lancer le daemon:
sudo gpsd -D 4 /dev/rfcomm0
pour voir ce que le daemon diffuse: (attendre 10 secondes avant que l'affichage commence)
sudo gpspipe -R
pour voir ce que le daemon diffuse avec affichage X: (attendre 10 secondes avant que l'affichage commence)
sudo xgps
pour regarder si le port 2947 utilisé par gpsd est déjà ouvert:
sudo lsof -i :2947
Quand le demon et xgps sont lancés on doit avoir:
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME xgps 403 bvandepo 13u IPv4 1485758 0t0 TCP localhost:48018->localhost:gpsd (ESTABLISHED)
ou
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME systemd 1 root 51u IPv6 15875 0t0 TCP ip6-localhost:gpsd (LISTEN) systemd 1 root 52u IPv4 15876 0t0 TCP localhost:gpsd (LISTEN) xgps 3112 root 3u IPv4 1591948 0t0 TCP localhost:49236->localhost:gpsd (ESTABLISHED) gpsd 3113 gpsd 4u IPv6 15875 0t0 TCP ip6-localhost:gpsd (LISTEN) gpsd 3113 gpsd 5u IPv4 15876 0t0 TCP localhost:gpsd (LISTEN) gpsd 3113 gpsd 7u IPv4 1591959 0t0 TCP localhost:gpsd->localhost:49236 (ESTABLISHED)