Skip to content

Commit ae639ba

Browse files
committed
[datatransfer] added docs
1 parent d2b56a4 commit ae639ba

File tree

4 files changed

+59
-0
lines changed

4 files changed

+59
-0
lines changed

docs/commands/data/download.rst

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
Downloading
2+
===========
3+
4+
Data downloading works by simply listening on the serial line, and saving
5+
whatever the instrument sends. Some instruments have their own data formats
6+
(maybe even a complete ASCII representation of their internal database), others
7+
might use more common interchange formats.
8+
9+
Some formats have an end-of-file (EOF) marker (e.g. the last line of the
10+
Trimble M5 format is simply ``END``), this can be specified as an option, to
11+
automatically finish the transfer, when this marker sequence is received.
12+
Other formats (like the Leica GSI) do not have such a marker. In these cases
13+
the transfer has to be manually closed (with keyboard interrupt), once all
14+
data was received.
15+
16+
To help detecting when the transfer finished, the output is always printed
17+
to the standard output, even if an output file is specified.
18+
19+
.. caution::
20+
:class: warning
21+
22+
The output in the terminal might not be a 100% accurate representation of
23+
the received data. The data might by partially or completely binary, which
24+
cannot be accurately represented with ASCII characters in the terminal
25+
(non-ASCII bytes are replaced with ``?`` symbols in the terminal output).
26+
27+
Examples
28+
--------
29+
30+
.. code-block:: shell
31+
:caption: Downloading Trimble M5 format
32+
33+
iman download data --eof END -b 38400 COM4 data.m5
34+
35+
Usage
36+
-----
37+
38+
.. click:: instrumentman.datatransfer:cli_download
39+
:prog: iman download data

docs/commands/data/index.rst

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
:icon: material/database-outline
2+
3+
Data
4+
====
5+
6+
Older instruments might not have a USB or even CF or SD card slot. In these
7+
cases, data can only be transferred through a serial connection. The data
8+
transfer commands can be used for simple download and upload operations.
9+
10+
.. tip::
11+
12+
Serial data transfer does not require any command protocol, only that the
13+
instrument is capable of sending date through a serial line.
14+
15+
.. toctree::
16+
:maxdepth: 1
17+
18+
download

docs/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ Content
4343
commands/inclination/index
4444
commands/protocoltest/index
4545
commands/files/index
46+
commands/data/index
4647
commands/jobs/index
4748

4849
Indices

docs/latexindex.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,5 @@ Applications
2828
commands/inclination/index
2929
commands/protocoltest/index
3030
commands/files/index
31+
commands/data/index
3132
commands/jobs/index

0 commit comments

Comments
 (0)