Integrator's Guide46
© 2017 Nortek AS
5.42 DOWNLOADTM
This command enables reading the telemetry file which can be created during measurement by
using the appropriate SETTMxxx commands. The formats are described in the section detailing
Data Formats.
Start address (offset) of the first byte to be returned.
Number of bytes to be downloaded.
(Length of file)
Use Cyclic redundancy check.
CRC=1 enables CRC.
CRC cannot be enabled when CKS=1
Use Checksum.
CKS=1 enables checksum.
CKS cannot be enabled when CRC=1
If no parameters are sent with the DOWNLOADTM command the complete file is directly
returned, without the number of bytes to follow. The end of the file can then be detected by
parsing the OK<CR><LF>.
The parameters can be used to download the telemetry file in several pieces. The number of
bytes to follow will then be returned in ASCII format and terminated with <CR><LF> before the
data is output. The end of telemetry stream is terminated with OK<CR><LF>. A cyclic redundancy
check or a checksum will then be added to be able to verify data integrity during download. The
complete file can also be downloaded in this way by specifying SA=0 and a large value for LEN.
The actual file size is then returned before the data follows. See also TMSTAT for retrieving file
information.
Example:
DOWNLOADTM,0,4096,CRC=1,CKS=0<CR><LF>
4096<CR><LF>
<binary or ASCII data>
23432<CR><LF> (checksum/crc value)
OK<CR><LF>
5.43 STOREHEADERTM
This command stores the GETALL (complete configuration) to the telemetry file.
5.44 ERASETM
Erase the telemetry file. The telemetry file can also be erased over FTP.