Debian Codegraph @

xmldoc/formats/options/globalsat-dump-file.xml

raw
1 <para>
2 The dump-file option is primarily for debugging is module. It lets you
3 provide a file which contains the raw stream of bytes coming from the
4 device. This is useful for capturing device state to describe to a
5 developer that can't actually access the physical device as well as mocking
6 the entire device for automated regression testing.
7 </para>
8 <para>
9 <screen>
10 <command>gpsbabel</command>
11 -i glboalsat,dump-file=<replaceable>gh625xt.bin</replaceable> -f <replaceable>/dev/ttyUSB0</replaceable>
12 </screen>
13 can be used to read the device and store its state in the file <filename>gh625xt.bin</filename>. That file can then be distributed and someone else can
14 read it with a command line:
15 <screen>
16 <command> gpsbabel</command>
17 -i globalsat,input-is-dump-file=1 -f <replaceable>gh625xt.bin</replaceable> -o gpx -F <replaceable>test.gpx</replaceable>
18 </screen>
19 </para>