General description
UM0527
26/66
1.2 Software
architecture
1.2.1 Data
models
The setting of the UPS is stored in EEPROM memory. The data format is shown in
1.2.2 Protocols
The SEC protocol is described briefly below. All messages sent between the PC and the
UPS look like:
^<type><len><data>
where:
●
^ : the header character
●
<type>: the type of message being sent
The PC sends the following message types to the UPS:
–
P: PC polls UPS (a query)
–
S: PC sets UPS variable
The UPS returns the following message types to the PC:
–
D: UPS returns data to PC (result of query)
–
0: UPS rejected command sent from PC
–
1: UPS accepted command sent from PC
●
<len>: 3 characters length of following data (zero padded decimal ASCII)
●
<data> - "len" characters of data
Commands are contained in the <data> field and are always 3 characters long. The orders
supported are listed in
.
Table 7.
Memory mapping
Address
Name
Length (bytes)
Description
0
OFF_ADDR
1
Flag indicating state of UPS (on/off)
1
ATR_ADDR
1
Auto restart flag
2
SHUT_ADDR
1
Shutdown type
3
BATT_ADDR
1
Battery condition
4
ASHD_ADDR
1
Auto shutdown flag
Table 8.
Poll commands
Query (3 characters)
Response (values separated by commas)
ATR
Auto restart: 0 - disabled or 1 - enabled
MAN
“ST”
MOD
“UPS reference design”
NOM
“230,500,230,500,700,450,1,1” for EU version and
“120,600,120,600,700,450,1,1” for US version