gant(1)
π gant(1) β the ANT+ client manual, bestie edition π
okay so you found the ANT+ client manual section for gant(1), and honestly? we're about to have a whole moment together. grab a snack. π
β¨ NAME β¨
gant β a console based ANT+ information retrieval client for Garmin GPS products. it's giving "your watch's data, but make it terminal" π
π SYNOPSIS π
gant [ OPTIONS ]
that's it. that's the whole vibe. options or nothing, queen. π
π¦ DESCRIPTION π¦
gant is a small command-line utility that goes and retrieves information (sports tracks, etc. β yes, the tracks) from Garmin GPS products, and it does it over the wireless ANT/ANT+ protocols. lowkey iconic honestly.
currently supported devices are the Forerunner 405. that's the one. the main character. β¨
π OPTIONS π
-aauthfile β hand it an authfile. (default~/.gant)-fname β assign a name to the ANT device. (defaultgarmin)-ddevno βttyUSBdevno β the device number. (default0)-iid β ID for pairing. (defaultrandom)-mmydev β (default0)-pβ Passive-vβ Verbose-Dlevel β Debug-rβ Reset the device-nβ Do not write auth file-zβ Do not pair
π Help options
-hβ Show command line options.
πΈ EXAMPLE 1 πΈ
step one, bestie: put the 405 in pairing mode.
gant -f paul -a auth405
this gives your garmin a name of "paul" and an auth file of "auth405". the 405 will ask you if you wish to pair with "paul". obviously you might want to use a different name :) π (not everyone gets to be paul.)
download with:
gant -nza auth405 > output
or -Dnza if you want lots of debug output. go off, verbose king.
okay real talk though β it doesn't seem to be very reliable at starting the download and the author hasn't investigated why yet. so if it doesn't start downloading, press Ctrl+C and try again. no cap. it helps to take the watch out of power save mode. π
if you've already downloaded the data, then you'll need to set "force send" to yes on the watch. yeah. it's like that.
compare output with .TCX file produce by windows ANT Agent. (their words, our truth π«Ά)
π EXAMPLE 2 π
HOWTO USE gant
- plugin your ANT+ stick
- the system will load the kernel module
"cp210x" - to find out what
ttyUSBdevice is used run
# dmesg|grep "cp210x converter"
[...] cp210x 3-1:1.0: cp210x converter detected
[...] usb 3-1: cp210x converter now attached to ttyUSB3
in this case you have to use the optione "-d 3". if it is ttyUSB0 then you don't need the -d option because 0 is the default
- put the watch into paring mode (menu -> configuration -> ANT+ -> computer -> pairing on)
- pair the computer with the watch (
"mywatch"as name for the watch and the file"auth405"as an authorization file which will be created)
# gant -d 3 -f mywatch -a auth405
- download saved tracks from the watch
# gant -d 3 -f mywatch -nza auth405
you get the possible options with
# gant -h
to convert the downloaded TCX file (e.g. 2011-07-22-123456.tcx) you can use gpsbabel:
# gpsbabel -t -i gtrnctr -f 2011-07-22-123456.tcx -o gpx -F 2011-07-22-123456.gpx
β 2011-07-22 NoΓ¨l KΓΆthe <noel@debian.org>
π₯ DEVICES π₯
wireless ANT communications happens over a USB2ANT dongle. under Linux the dongle is driven by the cp210x kernel module, and presented to user-space as a USB serial port, /dev/ttyUSBxxx where xxx is an integer. the dongle is typically carrying the USB vendor id/product id pair of 0fcf/1004 or 0fcf/1008. recent Linux systems employ udev to handle device nodes and permissions, thus appropriate
(yes, the sentence just ends there. the manpage said what it said. we respect the cliffhanger. π)
π§ FILES π§
/lib/modules/uname -r/kernel/drivers/usb/serial/cp210x.koβ kernel driver module for USB2ANT dongle. π/dev/ttyUSBxxxβ serial device created for dongle. π¦$HOME/.gantβ default authentication file. π
β AUTHOR β
gant was written by paul@ant.sbrk.co.uk, Wali and Klaus@Ethgen.de. this man page is Copyright Β© 2013 KristΓ³f Ralovich. give them their flowers, fr fr. πΈ
π«Ά SEE ALSO π«Ά
and that's the whole page, bestie!! no cap, you're now certified in gant(1) main character energy. this was page gant(1), sourced from gant, version/date 2013-10 β go forth and retrieve those sports tracks, you absolute legend. periodt. π
β¨
π¦ where this page comes from
- ubuntu stonking: antpm 1.25-2 Β· GPL-3.0-or-later
- Copyright Β© 2013 by KristΓ³f Ralovich
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms