My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
usage  
how to get started
Phase-Deploy, Phase-Support, Featured
Updated Feb 4, 2010 by spei...@gmail.com

command line only

At the current time, this utility is command line only, meaning there is no Graphical User Interface. That should not keep you from trying it out, as the command line is very intuitive for the basic operations supported.

Configuration

Configuration is done via the config.ini file

Usage

Double click gh615_console.exe and follow the instructions

- or -

execute with the following arguments:

arguments:

  • a: get a list of all tracks - no options
  • b: download track(s) - -t, -f, -m, -o
  • c: download all tracks - -f, -m, -o
  • d: upload tracks - -i
  • e: download waypoints - -o
  • f: upload waypoints - -i
  • gg: format all tracks - no options
  • h: connection test - no options
  • i: unit information - no options

explanation of options

  • -t, --track: id of a track to be downloaded (can be used multiple times)
  • -f, --format: export-format that will be used (default can be set in config.ini)
  • -m, --merge: whether the tracks should be merged into one file (only if supported by format) (default: false)
  • -o, --output: path to directory where exported files will be stored (default: /export)
  • -i, --input: files used for input (either formatted waypoints.txt of gpx file)

  • -v, --firmware: set to 1 if you have the old firmware without lap support (originally GH-615); 2 for the new firmware with lap-support (overwrites the value specified in config.ini)
  • -c, --com: set the comport that will be used for connecting (overwrites the value specified in config.ini)

examples

gh615_console.exe b -t 0 -t 1 -f gpx -o c:// Saves tracks 0 and 1 in the "gpx" format to the root of c:

gh615_console.exe c -f fitlog -m Saves all tracks in the "fitlog" format to the "export" directory of the running application

gh615_console.exe d -i c://track1.gpx -i c://track2.gpx Uploads both gpx-files

Working with Waypoints

The waypoint implementation is still kind of sketchy at the moment.

Currently this is the way to do it:

  1. Download trackpoints (option d); waypoints.txt will be created in the root.
  2. Edit waypoints.txt; if you change the title of a waypoint a new waypoint will be created instead of updating the exisiting one
  3. Upload trackpoints (option e)

structure of waypoints.txt

waypoints.txt is a simple dump of a list of dictionaries, which looks like this:

[
{'latitude': '48.052148', 'longitude': '8.210360', 'altitude': 583, 'type': 55, 'title': 'waypo1'},
{'latitude': '50.052148', 'longitude': '5.210360', 'altitude': 883, 'type': 54, 'title': 'waypo2'}
]

fields

most fields are self explanatory, just note that the title can not exceed 6 characters. type assigns the icon that is display on the map of the gh615.

available icon types
  • 0: 'DOT',
  • 1: 'HOUSE',
  • 2: 'TRIANGLE',
  • 3: 'TUNNEL',
  • 4: 'CROSS',
  • 5: 'FISH',
  • 6: 'LIGHT',
  • 7: 'CAR',
  • 8: 'COMM',
  • 9: 'REDCROSS',
  • 10: 'TREE',
  • 11: 'BUS',
  • 12: 'COPCAR',
  • 13: 'TREES',
  • 14: 'RESTAURANT',
  • 15: 'SEVEN',
  • 16: 'PARKING',
  • 17: 'REPAIRS',
  • 18: 'MAIL',
  • 19: 'DOLLAR',
  • 20: 'GOVOFFICE',
  • 21: 'CHURCH',
  • 22: 'GROCERY',
  • 23: 'HEART',
  • 24: 'BOOK',
  • 25: 'GAS',
  • 26: 'GRILL',
  • 27: 'LOOKOUT',
  • 28: 'FLAG',
  • 29: 'PLANE',
  • 30: 'BIRD',
  • 31: 'DAWN',
  • 32: 'RESTROOM',
  • 33: 'WTF',
  • 34: 'MANTARAY',
  • 35: 'INFORMATION',
  • 36: 'BLANK'
Comment by gos...@gmail.com, Sep 2, 2008

This is my "How to install and run under Linux"

I'm running Ubuntu 8.04 with packages "python" (at least 2.5) and "python-serial" installed.

  1. Attach the GH615 to the computer with the USB cable and turn it on.
  2. Open a terminal and run the command "dmesg" and find a row that corresponds to this: 5498.618302 usb 1-2: pl2303 converter now attached to ttyUSB0
  3. Edit the config.ini file and make sure the same ttyUSB is used as the one shown in dmesg. Other settings can be changed as well.
  4. On the GH615 select Configuration->Data link to PC.
  5. Go in the terminal to the directory where you unzipped the gh615 python package.
  6. Run the python program for example like this: python gh600_console.py c -o /tmp/

Sign in to add a comment
Powered by Google Project Hosting