8.5 Datalogger commands
8.5.8 Get internal voltage
When operating from the external battery to USB connector, the unit is normally supplied 5V. As the external battery
voltage drops below 5V (plus the voltage regulator overhead of about 0.1V), the internally supplied unit voltage will drop
below 5V. The unit will continue to work while the internal voltage is above 3.3V. This internal voltage can be reported.
To get the internal voltage value, use the “
L5x
” command. The response is shown in table 8.26:
Table 8.26: Response of requesting internal voltage
Column
Example value
Description
0-2
L5,
Confirmation of command.
3-5
238
Internal voltage ADC value.
Internal Voltage = 2
.
048 +
(3
.
3
∗
$
ADCV alue
)
256
.
0
6-7
Carriage return (0x0d), Line feed (0x0a).
An example response is:
L5,238
01234567
8.5.9 Get EEPROM status register 1
In cases where the erasure of EEPROM memory takes a long time, it is necessary to read the status register busy bit (bit
0) using the “
L6x
” command. The response is shown in table 8.27:
Table 8.27: Response of requesting EEPROM Status regoster 1
Column
Example value
Description
0-2
L6,
Confirmation of command.
3-5
000
Integer (value 0-255) represeting the status bits as follows:
bit 0 : 1 = Busy, 0 = Ready
bit 1-7 : Not useful outside the meter. Defined in the data sheet for
the Winbond W25Q128FV EEPROM.
last two
Carriage return (0x0d), Line feed (0x0a).
8.5.10 Set and read logging trigger mode
The SQM-LU-DL has the following possible modes (see table 8.28) of logging data while the external battery is being
used for power:
Table 8.28: Request to set the logging trigger mode
Mode
Description
LM0x
No automatic logging
LM1x
Logging granularity in seconds and not powering down.
LM2x
Logging granularity in minutes and powering down between recordings.
LM3x
Logging every 5 minutes on the 1/12th hour, and powering down between recordings.
Table continued on next page ...
Unihedron SQM-LU-DL Operator’s Manual -
20220119
79
Содержание SQM-LU-DL
Страница 2: ......
Страница 17: ...17...
Страница 19: ...Figure 4 1 Front and back of of unit Unihedron SQM LU DL Operator s Manual 20220119 19...