Outils pour utilisateurs

Outils du site


gpsbluetooth

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

https://doc.ubuntu-fr.org/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)

listing des périphériques

Pour utilisation iTag

bluetoothctl
  [NEW] Controller 64:80:99:F8:2C:34 rapid #1 [default]
  [NEW] Device 00:1C:88:11:26:E8 Teleprovodnik GPS
  [NEW] Device 00:23:6C:C4:86:CF Souris de Bertrand
  [NEW] Device 40:C6:2A:C4:89:EC Meizu m2
  [NEW] Device FF:FF:60:00:6E:64 iTAG            
  [NEW] Controller 00:11:22:98:76:54 rapid #2 
help
devices
  Device 00:1C:88:11:26:E8 Teleprovodnik GPS
  Device 00:23:6C:C4:86:CF Souris de Bertrand
  Device 40:C6:2A:C4:89:EC Meizu m2
  Device FF:FF:60:00:6E:64 iTAG            
power on
discoverable on
agent on
default-agent
pairable on
scan on
pair FF:FF:60:00:6E:64 
info FF:FF:60:00:6E:64 
  Device FF:FF:60:00:6E:64
  Name: iTAG            
  Alias: iTAG            
  Paired: no
  Trusted: no
  Blocked: no
  Connected: no
  LegacyPairing: no
  UUID: Generic Access Profile    (00001800-0000-1000-8000-00805f9b34fb)
  UUID: Immediate Alert           (00001802-0000-1000-8000-00805f9b34fb)
  UUID: Battery Service           (0000180f-0000-1000-8000-00805f9b34fb)
  UUID: Unknown                   (0000ffe0-0000-1000-8000-00805f9b34fb)
connect FF:FF:60:00:6E:64 
gpsbluetooth.txt · Dernière modification : 2021/02/19 21:20 de 127.0.0.1