General
This document specifies the RS232C communication protocol of the Advance-Intelligent UPS.
The protocol provided the following features:
-
Monitor charger status.
-
Monitor battery status and condition.
-
Monitor the utility status.
-
Provide the power switch function for computer to turn on and off the utility on schedule for power saving.
Computer will control information exchange by a query followed by <cr>
.
UPS will respond with information followed by a <cr>
or action.
Hardware
BAUD RATE
|
2400 bps |
DATA LENGTH
|
8 bits |
STOP BIT
|
1 bit |
PARITY
|
NONE |
CABLING
|
9 pins female D-type connector
|
Communication protocol
Status Inquiry
Computer:
|
|
UPS:
|
UPS status data stream, such as |
UPS status data stream
There should be a space character between every field for data separation.
The meaning of each field is list as followed:
(
|
Start byte |
||||||||||||||||||
MMM.M
|
I/P voltage
|
||||||||||||||||||
NNN.N
|
I/P fault voltage
|
||||||||||||||||||
PPP.P
|
O/P voltage
|
||||||||||||||||||
QQQ
|
O/P current
|
||||||||||||||||||
RR.R
|
I/P frequency
|
||||||||||||||||||
SS.S or S.SS
|
Battery voltage
For on-line units battery voltage/cell is provided in the form For standby units actual battery voltage is provided in the form UPS type in UPS status will determine which reading was obtained. |
||||||||||||||||||
TT.T
|
Temperature
|
||||||||||||||||||
<U>
|
UPS Status
|
||||||||||||||||||
<cr>
|
Stop Byte |
Example
Computer:
|
|
UPS:
|
|
Means:
-
I/P voltage is 208.4V.
-
I/P fault voltage is 140.0V.
-
O/P voltage is 208.4V.
-
O/P current is 34 %.
-
I/P frequency is 59.9 HZ.
-
Battery voltage is 2.05V.
-
Temperature is 35.0 degrees of centigrade.
-
UPS type is on-line, UPS failed.
-
Bypass active, and shutdown not active.
Test for 10 seconds
Computer:
|
|
UPS:
|
Test for 10 seconds and return to utility. |
If battery low occur during testing, UPS will return to utility immediately.
Test until battery low
Computer:
|
|
UPS:
|
Test until battery low and return to utility. |
Test for specified time period
Computer:
|
|
UPS:
|
Test for |
During testing, UPS returns to utility immediately, if battery low occur.
<n>
is a number ranging from 01
to 99
.
Turn On/Off beep - Toggle the UPS beeper
Computer:
|
|
When the AC power failed, UPS will generate a warning beep to inform the manager. Manager could toggle the warning beep by sending this command.
Shutdown Command
Computer:
|
|
UPS:
|
Shut UPS output off in |
The UPS output will be off in <n>
minutes, even if the utility power is present.
If the battery low occurs before <n>
minutes, the output is turned off immediately.
After UPS shutdown, the controller of UPS monitors the utility power. If the utility is recovered, the UPS will wait for 10 seconds and connect the utility to output.
<n>
is a number ranging form .2
, .3
, …, 01
, 02
, …, up to 10
.
Example
Computer:
|
|
UPS:
|
Shut output off in ( |
Shutdown and Restore Command
Computer:
|
|
UPS:
|
Shut UPS output off in |
The shutdown sequence is the same as the previous command.
When the <m>
minutes expired, the utility do not restore, the UPS will wait until utility restore.
If UPS is in shutdown waiting state, the "C
" command can let the shutdown procedure cancelled.
If UPS is in restore waiting state, the "C
" command can let the UPS output turned on, but UPS must be hold off at least 10 seconds. (if utility is present)
<n>
is a number ranging from .2
, .3
, …, 01
, 02
, …, up to 10
.
<m>
is a number ranging from 0001
to 9999
.
Cancel Shutdown Command
Computer:
|
|
UPS:
|
Cancel the |
If UPS is in shut down waiting state, the shut down command is cancelled.
If UPS is in restore waiting state, the UPS output is turned on, but UPS must be hold off at least 10 seconds. (if utility is present)
Cancel Test Command
Computer:
|
|
UPS:
|
Cancel all test activity and connect the utility to output immediately. |
UPS Information Command
Computer:
|
|
UPS:
|
|
This function will make the UPS respond with the basic information about the company who manufacture the UPS, the model name of the UPS and the version number of the UPS firmware.
The length of every field is listed as follows:
Company_Name
|
15 characters, leave space if less than 15 characters |
UPS_Model
|
10 characters, leave space if less than 10 characters |
Version
|
10 characters, leave space if less than 10 characters |
There should be a space character between every field for separation.
UPS Rating Information
Computer:
|
|
UPS:
|
|
This function makes the UPS answer the rating value of UPS.
There should be a space character between every field for separation.
The UPS’s response contains the following information field:
MMM.M
|
Rating Voltage |
QQQ
|
Rating Current |
SS.SS or SSS.S
|
Battery Voltage |
RR.R
|
Frequency |
Command summary
D
|
Status Inquiry *disable |
Q1
|
Status Inquiry |
T
|
10 Seconds Test |
TL
|
Test until Battery Low |
T<n>
|
Test for Specified Time Period |
Q
|
Turn On/Off beep |
S<n>
|
Shut Down Command |
S<n>R<m>
|
Shut Down and Restore Command |
C
|
Cancel Shut Down Command |
CT
|
Cancel Test Command |
I
|
UPS Information Command |
F
|
UPS Rating Information |
Invalid Command/Information Handling
If the UPS receives any command that it could not handle, the UPS should echo the received command back to the computer. The host should check if the command send to UPS been echo or not.
If there is any information field in the UPS’s response which is unavailable or not supported, the UPS should fill the field with @
.
Implementation notes
S01R0001
and S01R0002
may not work on early firmware versions.
The failure mode is that the UPS turns off and never returns.
The fix is to push the return value up by 2, i.e. S01R0003
, and it will return online properly.
Revision History
Rev. | Date | Description | Modify by |
---|---|---|---|
2.6 |
95-9-30 |
UPDATE " |
Kevin Chiou |
2.7 |
96-8-01 |
Disable " |
Kevin Chiou |