|
| 1 | +Downloading |
| 2 | +=========== |
| 3 | + |
| 4 | +A useful file management feature is the ability to download a file from the |
| 5 | +instrument. The download command can be used to download a file identified |
| 6 | +by either a file name and type, or a full file path. |
| 7 | + |
| 8 | +.. caution:: |
| 9 | + :class: warning |
| 10 | + |
| 11 | + File downloads over serial (especially Bluetooth) are rather slow, and |
| 12 | + greatly affected by the communication speed settings. |
| 13 | + |
| 14 | +Process |
| 15 | +------- |
| 16 | + |
| 17 | +The download process is carried out by exchanging chunks of data. The |
| 18 | +individual chunks are sent down by the instrument, and slowly reassambled on |
| 19 | +the receiving side. The block size can be customized, but the maximum is 450 |
| 20 | +hex characters/block (or 225 bytes). Newer instruments support large file |
| 21 | +downloads, where the block size can be increased up to 1800 characters/block. |
| 22 | + |
| 23 | +Under normal circumstances it is recommended to use the maximum chunk size, |
| 24 | +as this results in the fastest transfer. If the connection is not completely |
| 25 | +reliable, decreasing the chunk size might reduce the size of data, that needs |
| 26 | +to be resent due to timed out exchanges. |
| 27 | + |
| 28 | +Requirements |
| 29 | +------------ |
| 30 | + |
| 31 | +- GeoCom capable instrument |
| 32 | + |
| 33 | +Examples |
| 34 | +-------- |
| 35 | + |
| 36 | +.. code-block:: shell |
| 37 | + :caption: Downloading the root file of a job |
| 38 | +
|
| 39 | + iman download file -f database COM1 job.xcf job.xcf |
| 40 | +
|
| 41 | + // or |
| 42 | + |
| 43 | + iman download file COM1 DBX/job.xcf job.xcf |
| 44 | +
|
| 45 | +.. code-block:: shell |
| 46 | + :caption: Downloading an exported file from a CF card |
| 47 | +
|
| 48 | + iman list files -d cf COM1 Data/coordinates.txt coordinates.txt |
| 49 | +
|
| 50 | +Usage |
| 51 | +----- |
| 52 | + |
| 53 | +.. click:: instrumentman.filetransfer:cli_download |
| 54 | + :prog: iman download file |
0 commit comments