Scriptmtkbabel
#!/bin/bash
#
# Copyright 2010 Luca Delucchi lucadeluge@gmail.com
# lucadeluge@gmail.com
# version 1.0
#
#
# This program is free software; you can redistribute it and/or odify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
# Downloads from MTK chipset GPS
# PREREQUISITI
# Bisogna avere MTKBabel installato oppure sostituire il comando mtkbabel, dove segnato,con il path al file mtkbabel.sh e il GPS accesso in modalità log e collegato alla porta specificata in DIR_IN
DIR_IN=/dev/ttyUSB0
# Inserisci il nome del tracciato che hai percorso
echo -n "Immetti il nome del \"tracciato\" "
read tracciato
# Scarica le tracks
mtkbabel -p $DIR_IN -t -w -f $tracciato$(date +%Y-%m-%d).gpx #Sostituire con path se necessario
# Pulisci il datalogger
mtkbabel -p $DIR_IN -E #Sostituire con path se necessario
# Impostare i parametri di salvataggio dei dati sul datalogger
echo -n "Immetti i \"parametri\" seguendo il secondo scema 5:10:0 time:distance:speed "
read parametri
mtkbabel -p $DIR_IN -r $parametri #Sostituire con path se necessario
exit

News from www.lucadelu.org
