GPS Globalsat BT335
J'ai depuis presque un an un GPS GlobalSat BT335. Ce GPS me sert à enregistrer mes traces GPS, principalement pour participer au projet OpenStreetMap. Cet article présente ce GPS et son utilisation.
Fiche du produit
Article 'Choix GPS'
Gwenn a écrit l'article Choix GPS aidant au choix d'un GPS pour participer au projet OpenStreetMap. Cet article donne les caractéristiques du GlobalSat BT335 selon les critères de l'article de Gwenn, et comment l'utiliser au mieux pour OpenStreetMap
Critères 'Choix GPS'
- Type de récepteurs GPS : Logger
Caractéristiques
- Fréquence: de toutes les secondes à toutes les 6000s
- Connectique: Bluetooth
- Stockage: 60000 points (si uniquement la latitude et la longitude sont stockées, moins de points avec l'altitude, la vitesse...)
- Robustesse: plastique non renforcé, assez massif, aucun élément fragile
- Autonomie: 16h
- Fonctionnement sur systèmes libres : avec bt335.py et GpsBabel
- Affichage: Aucun
- Puce: Sirf Star III
- Encombrement : 76cm3
- Coût: 70€
Inclu dans la boîte
- Le GPS avec sa batterie
- Un chargeur anglais avec adaptateur pour prises françaises
- Un chargeur Allume-cigare de voiture
- CD-ROM
A noter que la batterie semble être la même que celle des téléphones Nokia 3210 et 3310.
Où acheter
Personnellement, je l'ai acheté dans le magasin en ligne Expansys, mais il doit exister ailleurs (regarder les revendeurs sur le site de GlobalSat).
Utilisation de ce GPS
Une fois allumé, il va enregistrer la position latitude et longitude à intervalles réguliers. Vous mettez alors le GPS dans un endroit d'où il captera bien les satellites (poche supérieure de votre sac-à-dos par exemple), et vous faites votre trajet. Une fois celui-ci fini, vous pouvez éteindre le GPS. Puis il est possible de récupérer le parcours effectué en différents formats (GPX, KML, CSV) en se connectant au GPS en bluetooth.
Description de ce GPS
Ce GPS possède un bouton et trois voyants.
Le bouton permet d'allumer et d'éteindre le GPS. Les trois voyants représentent les états batterie, réception satellite et bluetooth.
détail des voyants
Le voyant batterie est de couleur orange, il est éteint lorsque l'état de la batterie est satisfaisant, clignotant lorsque le niveau de batterie est faible et allumé quand la batterie est en charge.
Le voyant réception satellites est de couleur verte, il est allumé lorsque le GPS n'a pas encore fait de FIX, et clignotant lorque c'est le cas, il est alors possible de l'utiliser pour se positionner.
Le voyant bluetooth est de couleur bleue, il est éteint lorsque l'interface bluetooth est inaccessible, clignotant lent lorsqu'elle est disponible et clignotant rapide lorsqu'elle est en cours d'utilisation.
Les réglages de ce GPS
Via le logiciel de paramétrage du GlobalSat BT335 sous Linux ou sous Windows, de nombreux réglages sont disponibles.
Les modes du GPS disponibles sont: GPS mouse, GPS logger, GPS mouse et logger. En mode GPS Mouse, le GPS ne stocke pas le parcours, il diffuse juste la trame NMEA via l'interface bluetooth. Ce mode est utile si vous désirer récupérer en direct les informations de positions via un autre matériel (PDA, ordinateur, téléphone portable, ...) ayant une interface bluetooth. Le mode GPS logger sert à enregistrer le parcours dans la mémoire du GPS. Le mode mouse et logger regroupe les fonctionnalités des 2 modes précédents, en même temps.
Il est possible de régler la fréquence à laquelle sont enregistrés les points GPS servant à stocker le parcours. Je conseille une fréquence de 1Hz (un enregistrement toutes les secondes).
De nombreux autres réglagles sont disponibles: filtre de vitesse, enregistrement à distances régulières, mode WASS, informations à stocker (date/heure, vitesse, altitude)
Utilisation sous Linux
Deux logiciels permettent de récupérer les traces : bt335.py et GpsBabel
bt335.py
Description
Le logiciel bt335.py écrit par Gwenn et quelques contributeurs permet d'exporter les traces au format GPX et de configurer les paramètres du GPS. Il est disponible par SVN ici:
svn co http://demisel.dyndns.org/svn/bt335
Usage
Allumer le GPS BT335, puis la led bluetooth doit clignoter lentement. Je l'utilise avec une clef bluetooth Belkin F8T013xx1. Donc il faut d'abord créer un port série virtuel bluetooth (attention remplacer l'adresse MAC par celle de votre GPS affichée grâce par la première commande ci-dessous):
hcitool scan hci0 modprobe rfcomm rfcomm bind /dev/rfcomm0 00:0D:B5:37:A7:A9 chmod 777 /dev/rfcomm0
Maintenant, nous allons nous connecter au GPS via ce port virtuel bluetooth pour récupérer les traces GPS au format GPX grâce à la commande run.sh du logiciel bt335.py:
./run.sh Using port /dev/rfcomm0 Save tracks to .gpx files? [Y|n] > Delete tracks in the GPS? [y|N] > ./bt335.py -p /dev/rfcomm0 -s -t 2 Connecting to GPS via /dev/rfcomm0... Getting infos... >> Getting part 1/565: 38 points >> Getting part 2/565: 76 points ... >> Getting part 564/565: 4304 points >> Getting part 565/565: 4336 points Writing track to bt335-20080705-092805.gpx... Writing track to bt335-20080705-122213.gpx... Writing track to bt335-20080705-134847.gpx... Writing track to bt335-20080705-181634.gpx...
Voilà, nous venons d'obtenir 4 fichier GPX de traces. Ces fichiers peuvent maintenant être utilisés pour le projet OpenStreetMap, via JOSM par exemple. Pour effacer les traces de la mémoire du GPS, il suffit de répondre 'Y' à la question 'Delete tracks in the GPS? [y|N]'.
Ces fichiers GPX peuvent également être convertis dans d'autres formats qui pourraient vous intéresser, exemple avec GpsBabel vers le format KML:
gpsbabel -i gpx -f bt335-20080705-092805.gpx -o kml -F bt335-20080705-092805.kml
GpsBabel
Description
GpsBabel est un logiciel pour convertir les fichiers de traces GPS entre différents formats, mais il permet aussi d'extraire les traces GPS d'un certain nombre de GPS, dont le GlobalSat BT335, depuis peu de temps.
Usage
Le GlobalSat BT335 est de la même famille de produit que le GlobalSat DG100 qui fonctionne en USB. C'est avec le support de ce dernier modèle que le support du BT335 est arrivé. Comme pour le logiciel bt335.py, il faut d'abord créer le port série virtuel bluetooth:
hcitool scan hci0 modprobe rfcomm rfcomm bind /dev/rfcomm0 00:0D:B5:37:A7:A9 chmod 777 /dev/rfcomm0
Puis il faut lancer GpsBabel en lui indiquant le type de GPS (ici la famille de GPS dg-100) et le port série (ici /dev/rfcomm0):
gpsbabel -t -i dg-100 -o gpx /dev/rfcomm0 outputfile.gpx
L'opération est assez longue, et GpsBabel n'affiche aucun message de progression, donc soyez patient, il travaille.
Pour effacer, ajouter 'erase' à l'option de 'i-':
gpsbabel -t -i dg-100,erase -o gpx /dev/rfcomm0 outputfile.gpx
Il est aussi possible de choisir d'autres formats d'export via l'option '-o'.
Utilisation sous Windows
Un logiciel à l'ergonomie très discutable est fournit sur le CD-ROM joint, regarder la documentation founie avec le GPS.
Utilisation sous d'autres OS
bt335.py et GpsBabel doivent fonctionner avec de nombreux systèmes Unix (OpenBSD, OpenSolaris,MacOsX, ...). Donc si vous avez un autre OS, essayez pour voir s'ils fonctionnent.
Plus spécialement pour MacOS X, un logiciel est disponible sur le site de GlobalSat BT335 US.
Liens et articles annexes
- Un article BT335 sur le site de GpsPassion
- La page DG-100 de GpsBabel.
- La page internationale du GlobalSat BT335.
- La page US du GlobalSat BT335 US (et logiciel MacOSX).
15 hits / 0 comments
Thu Jul 17 22:07:51 2008 -- By: ludovic Bellier
Home + Sharp + return
The shortcut that I never remember:Esc + # (Meta + #)
With Bash, comment the line and go to next line
115 hits / 0 comments
Sat Mar 22 15:19:02 2008 -- By: ludovic Bellier
Very Simple Test Download via a Proxy Howto
This simple howto explains howto to check your download rate through a ft proxyprivate Proxy
=============
If it's a private proxy, first create a tunnel to this proxy with ::
ssh -l
Next, configure your proxy::
export ftp_proxy=localhost:3128
Finally, test your dl with wget::
wget --verbose --proxy=on \\
ftp://ftp.free.fr/mirrors/ftp.ubuntu.com/releases/7.10/ubuntu-7.10-desktop-i386.iso
You can check if your traffic uses the proxy with iftop, example::
iftop -i eth0
public or internal Proxy
========================
You just set your proxy host/port and launch wget::
export ftp_proxy=localhost:3128
wget --verbose --proxy=on \\
ftp://ftp.free.fr/mirrors/ftp.ubuntu.com/releases/7.10/ubuntu-7.10-desktop-i386.iso
201 hits / 0 comments
Sun Nov 18 23:00:13 2007 -- By: ludovic Bellier
Navibe GM720 : setting and using with Linux
I recently buy an USB GPS, also called GPS Mouse, Navibe GM720 on eBay. I'll use it with Linux on my Apple iBook G4.
Hardware
GPS
The Navibe GM720 uses a USB-to-Serial converter from Prolific. The GPS chipset is the SiRF Star III, a recent and famous chipset used in numerous current GPS receivers.

Computer
I use an Apple iBook G4 with Gnu/Linux Gentoo PPC distribution. This 12" iBook is small enough, I can put it in a back bag and the battery allows 3-4 endurance hours.

Setting
Hardware ID
lsusb only shows the USB-to-Serial converter:
# lsusb Bus 003 Device 002: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port
cgps reports: SiRF binary GSW3.2.0PAT_3.
Setting an USB GPS with Linux
A lot of these (all?) USB GPS use the Prolific USB-to-Serial converter. So your kernel needs the pl2303 driver.
Linux kernel setting (here v2.6.23-rc1):
Device Drivers ---> [*] USB support ---> USB Serial Converter support ---> <M> USB Serial Converter support <M> USB Prolific 2303 Single Port Serial Driver
When you plug your USB GPS, you see in /var/log/messages:
Jul 29 17:23:40 iyn usb 3-1: new full speed USB device using ohci_hcd and address 3 Jul 29 17:23:40 iyn usb 3-1: configuration #1 chosen from 1 choice Jul 29 17:23:40 iyn pl2303 3-1:1.0: pl2303 converter detected Jul 29 17:23:40 iyn usb 3-1: pl2303 converter now attached to ttyUSB0
If none, verify if the pl2303 module is loaded, with the command lsmod:
# lsmod | grep pl2303 pl2303 21956 0
If none, the command:
insmod pl2303
loads the module.
You see that the GPS can be accessed with the ttyUSB0 serial device, so I'll use the /dev/ttyUSB0 device name.
Using
Verify you can access your GPS
The gpsd suite has the sirfmon utility which communicates with the GPS through the serial port (or through gpsd, see below).
Starts it with:
sirfmon /dev/ttyUSB0
This software displays on top the informations received from the GPS and on bottom the raw communication with the GPS.
GPSd
The gpsd daemon is an abstraction layer. It communicates through the physical serial port GPS and offers services (lat, long, ...) to its clients (cgps, sirfmon, gpsdrive, navit, ...).
A lot of Linux applications use it, and it is ported to Open/Free/NetBSD and Mac OS X.
It's very simple, just start the daemon with
gpsd /dev/ttyUSB0
If you want to kill it, use the killall gpsd command.
FYI: gpsd installs the usb hotplug rules.
The gpsd suite has a lot of very usefull tools.
Gpsd tools : sirfmon
sirfmon is a SiRF Star III chipset specific tool, it displays a lot of advanced information from this specific chipset class GPS. It'a a textual tool.
Start gpsd if not yet done, and just:
sirfmon
and sirfmon will use gpsd to get geographic informations, see this Sirfmon screenshot:

Gpsd tools : cgps
cgps is also a text tool which displays useful geographic informations, but it isn't specific to one chipset class GPS. See this cgps screenshot:

Gpsd tools : xgps
It's same as cgps but with a graphic interface.
Gpsd tools : cgpxlogger
cgpxlogger is a gps data logger, it displays GPS informations, in GPX format.
Use example:
# cgpxlogger > 2007-07-29_20h08.gpx
and Ctrl-c stop it.
GPX is one of the most known gps data logger format, a lot of applications use it. It's a good solution if you want trace your way or help the OSM project.
GpsDrive
gpsdrive is a car navigation system for laptops. It can download maps from Expedia or TopoZone. See this Gps Drive screenshot:

OpenStreetMap
OSM is a collaborative editable map. Most of the current maps have restrictive rights, this project allows each person with a GPS to upgrade the OSM map. Some softwares (like Navit) can use this non-commercial Map. See the current OSM Map.
iBook with Gentoo and GPS use
/etc/init.d/pbbuttonsd stop deactivates the suspend to ram process, when you close your laptop or after 5mn of inactivity, so you can log your GPS way with cgpxlogger, and import it to OSM.
Thanks
gpsd developers, Gwenn, Jkx.
1961 hits / 0 comments
Sun Jul 29 17:19:50 2007 -- By: ludovic Bellier
gentoo quick guide
This is the commands I use when I update my gentoo.
update portage tree:
eix-sync
update packages:
emerge -uDavt world
emerge informations:
emerge --info
current profile:
eselect profile show
package depedencies:
equery depends <package>
package files list:
equery files <package>
package flags list:
equery uses <package>
remove orphaned depdencies (dangerous):
emerge --update --deep --newuse world emerge --depclean revdev-rebuild
MAJ: see first comment for precisions
745 hits / 1 comments
Sat Sep 2 17:37:21 2006 -- By: ludovic Bellier
Web browser signature
The signature of the Gecko like web browsers can be modified in the configuration page.
Go to about:config page and modify general.useragent parameters. See product, productComment, productSub, vendor, override.
So you can change the User-Agent informations sended to the web servers.
701 hits / 0 comments
Sat Jul 15 23:22:04 2006 -- By: ludovic Bellier
Do you RCS?
A quick reminder for rcs, with checkout/checkin commands.
Checkout and lock a file for editing:
co -l <file>
Checkin and unlock an edited file:
ci -u -w<login> <file>
787 hits / 0 comments
Wed Feb 8 22:17:42 2006 -- By: ludovic Bellier
rurld
description
rurld for Range URL Downloader is a program which downloads a range url.
example
an example:
$ rurld -n http://home.zyrianes.net/p/basset[1-2].jpg http://home.zyrianes.net/p/basset1.jpg http://home.zyrianes.net/p/basset2.jpg
without '-n' option, it downloads these files with the wget program:
$ rurld http://home.zyrianes.net/p/basset[1-2].jpg
--00:03:05-- http://home.zyrianes.net/p/basset1.jpg
=> `basset1.jpg'
Resolving home.zyrianes.net... 82.245.192.46
Connecting to home.zyrianes.net|82.245.192.46|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 52,292 (51K) [image/jpeg]
100%[====================================>] 52,292 --.--K/s
00:03:05 (6.82 MB/s) - `basset1.jpg' saved [52292/52292]
--00:03:05-- http://home.zyrianes.net/p/basset2.jpg
=> `basset2.jpg'
Reusing existing connection to home.zyrianes.net:80.
HTTP request sent, awaiting response... 200 OK
Length: 31,271 (31K) [image/jpeg]
100%[====================================>] 31,271 --.--K/s
00:03:05 (101.78 MB/s) - `basset2.jpg' saved [31271/31271]
FINISHED --00:03:05--
Downloaded: 83,563 bytes in 2 files
A range URL is an URL like link with range indication '['start'-'end']' , see example.
another example:
$ rurld -n http://foo.com/pic[01-11].jpg http://foo.com/pic01.jpg http://foo.com/pic02.jpg http://foo.com/pic03.jpg http://foo.com/pic04.jpg http://foo.com/pic05.jpg http://foo.com/pic06.jpg http://foo.com/pic07.jpg http://foo.com/pic08.jpg http://foo.com/pic09.jpg http://foo.com/pic10.jpg http://foo.com/pic11.jpg
help
use -h option:
$ rurld -h Range URL Downloader, version 0.9, gpl Usage: rurld [-n] [-h] <URL with range> -n dry_run mode, just show urls -h this help for example: rurld http://foo.com/pic[01-11].jpg downloads files from http://foo.com/pic01.jpg to http://foo.com/pic11.jpg note that [01-11] produces 01->11 and [1-11] 1->11 required: wget ( http://www.gnu.org/software/wget/wget.html )
This is a simple self made python program.
24293 hits / 147 comments
Sun Jan 8 23:40:53 2006 -- By: ludovic Bellier
Raccourcis Mutt
Je ne me rappelle jamais de certains raccourcis de Mutt, et je me tape la liste complète (touche ?) de l'aide, alors voici une liste de ceux que j'oublie tout le temps:
- ouvrir un dossier de mon arbre Imap : c
- supprimer un thread : ^D
892 hits / 0 comments
Mon Dec 12 01:41:37 2005 -- By: ludovic Bellier
Bash tips
Bash is a script shell for unix terminals.
Optimisations
- using ':' for 'true', because true is a software executable whereas ':' is an internal bash command. Very usefull for infinite loops.
example:
while true; do echo 'Hello'; sleep 1; done
become:
while :; do echo 'Hello'; sleep 1; done
- Thanks:
- Gwenn
1312 hits / 2 comments
Thu May 19 19:28:49 2005 -- By: ludovic Bellier