8 Commands and responses
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.27:
Table 8.27: 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.28:
Table 8.28: 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-V has the following possible modes (see table 8.29) of logging data while the external battery is being
used for power:
Table 8.29: 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.
LM4x
Logging every 10 minutes on the 1/6th hour, and powering down between recordings.
Table continued on next page ...
78
Unihedron SQM-LU-DL-V Operator’s Manual -
20211013
Summary of Contents for SQM-LU-DL-V
Page 2: ......
Page 104: ...14 Glossary 104 Unihedron SQM LU DL V Operator s Manual 20211013...