8.5 Datalogger commands
8.5.7 Retrieve all Binary
To retrieve all records from the SQM-LU-DL faster than the “Return One logged record method”, you can use this faster
binary method.
Thr first command sent “
L8x
” returns the packet length, and number of packets to be sent. The response to this first
command is below:
Table 8.24: Response to Binary Retrieve command
Column
Example value
Description
0-2
L8,
Confirmation of command.
3-13
1234567890,
Packet length.
14-24
1234567890
Number of packets.
25,26
Carriage return (0x0d), Line feed (0x0a).
27 ...
Packet(s) here.
last 5
EOF
End of file indication plus Carriage return (0x0d), Line feed (0x0a).
If there are any records to be sent, the first record will automatically be sent after the first command is sent.
Subsequent records must be prompted. This action is a software flow control method. The subsequent record requests
are made with the “
x
” command.
Each record contains binary values (not ASCII). Each record is defined below:
Table 8.25: Binary Retrieve record content
Column
Example value
Description
0
x
Record type. Where bit:
0: 0 = written record, 1 = erased or unwritten record.
4: 0 = initial startup record, 1 = subsequent record taken after wak-
ing up from sleep. This bit is only valid for firmware feature
≥
49.
1
x
Seconds.
2
x
Minutes.
3
x
Hours.
4
x
Day.
5
x
Date.
6
x
Month.
7
x
Year.
8-11
xxxx
Reading; Big endian raw 32 bit binary value for magnitudes. The
decimal reading value is determined as:
Reading
M P SAS
=
xxxx
6553600
.
0
.
12-13
xx
Temperature; Big endian raw 16 bit value. The decimal temperature
value is determined as:
T emperature
=
xx
×
33000
.
0
1024
.
0
−
5000
.
0
100
.
0
16-19
xxxx
(Optional snow accessory)
Standard frequency, Big endian 32 bit value.
Table continued on next page ...
Unihedron SQM-LU-DL Operator’s Manual -
20220119
77
Summary of Contents for SQM-LU-DL
Page 2: ......
Page 17: ...17...
Page 19: ...Figure 4 1 Front and back of of unit Unihedron SQM LU DL Operator s Manual 20220119 19...