31
Bit 5 Link_Ctrl: Linkage control status indication
0 = Non-linkage control state
1 = in the linkage control state
Bit 6 BAT_OVP
OVP
: Standby
protection status
0 = Non-backup
status
OVP
1
OVP
= in standby
state
Bit 7 BAT_NO_ Balance: Battery balanced
0 = Battery balanced state
1= Battery unbalanced state
High byte:
Bit 0 BAT_ERROR_1 BAT1
:
battery status
0 =
battery is normal
BAT1
1
BAT1
=
battery abnormality
Bit 1 BAT_ERROR_2 BAT2
:
battery status
0 =
battery is normal
BAT2
1
BAT2
=
battery abnormality
Bit 2 BAT_ERROR_3 BAT3
:
battery status
0 =
battery is normal
BAT3
1
BAT3
=
battery abnormality
Bit 3 BAT_ERROR_4: BAT4 battery status
0 =
battery is normal
BAT4
1
BAT4
=
battery abnormality
Bit 4 BAT_CHGFULL: Battery full
0 = Battery is not full
1 = Battery full
Bit 5 BAT_CHGING: Battery charged state
0 = Battery is not charged
1 = Battery charged state
Bit 6 BAT_REV: Reverse battery state
0 = Battery is not reversed
1 = Reverse battery state
Bit 7 Force_Status: Strong-on state
0 = Non-force start state
1
Force start state
=
5
32
5.4.2 Examples of Communications
The following provides an example of reading and writing to t
UART
he
communication protocol
Note: 5.4.2.1~5.4.2.6 provides an example for reading instructions,
5.4.2.7~5.4.2.9 is a write instruction to modify the power supply
and battery state, and write no memory function, and restore the
factory settings after shutdown
5.4.2.1 LAD_STATUS
Brief description: r
the LED
ead
status
For example: t
of THE LED-360DU
o read the current status
Request:
R/W byte
Data Length
Data address bytes
Data bytes
CRC-8
0x55
0x03
0x00 10
0x7F
0x55 R/W byte R/W
0x55
:
,
decision bit, for reading instructions are
0x03 Data Length
R/W
:
, the length of the data after the
decision bit,
In this instruction
,
occupy a total of
, so it is
0x00 10 0x7F
3 bytes
0x03
0x00 10 Data address bytes
:
, the address of the data to be transmitted,
0x00 10
the LAD_STATUS
is
address
Data bytes: The data content to be transmitted, the field for the read
instruction is empty
0x7F: Transmit data CRC-8 error detection code (including R/W byte ~
Data bytes), refer to 5.4.1.3 for the description of CRC-8, for
which the instruction is 0x7F
Request:
R/W byte
Data Length
Data address bytes
Data bytes
CRC-8
0x55
0x07
0x00 10
0x00 01 17 81
0x4C
5
Содержание LAD Series
Страница 26: ......