UPS Connector: D-Sub-9 Female
|
Pin No. |
Signal |
Description |
|
2 |
RXD |
RS232 receive data (Output data from UPS to PC) |
|
3 |
TXD |
RS232 transmit data (Input data from PC to UPS) |
|
4 |
DTR |
+12Vdc |
|
5 |
GND |
Signal ground |
|
6 |
BATT LOW |
This pin triggers an active-low signal in battery low condition |
|
8 |
BATT MODE |
This pin triggers an active-low signal in UPS backup mode |
|
1, 7, 9 |
UNUSED |
|
|
Connector |
9 pin, Type D, Female |
|
Format |
ASCII 8 bit, 1 start bit, 1 stop bit |
|
Baud Rate |
1200 bps |
|
Parity |
None |
|
Duplex |
Full |
<Header 1 byte><Message Type 1 byte><Data Length 3 bytes><Data 128bytes max>
Where:
Header is a ^ (carat) character
Message Type will be one of the following:
0 – Command rejected (from UPS to PC)
1 – Command accepted (from UPS to PC)
P – Poll command (from PC to UPS)
S – Set command (from PC to UPS)
D – Data returned (from UPS to PC)
Data Length is the number of bytes of data passed
Data is comma delimited. If a variable value is unavailable, a comma with no data is placed in the variable location. For example, if only the 2nd, 4th, and 6th variables have valid data, the UPS response will have the following format:
^D010,1,,22,,82
Poll Commands:
|
Command |
Description |
Max Data Length |
Variables
Returned |
|
MAN |
UPS manufacturer |
32 |
Manufacturer |
|
MOD |
UPS model |
64 |
UPS model |
|
ST1 |
Status group 1 – Battery |
32 |
,Battery status ,,,, Estimated charge |
|
ST2 |
Status group 2 - Input |
65 |
,Input num lines, Input frequency 1, Input voltage 1 |
|
ST3 |
Status group 3 - Output |
66 |
Output source, Output frequency, Output num lines, Output voltage 1,,,Output load1 |
|
VER |
UPS version |
32 |
UPS firmware and/or software version |
UPS Status:
|
Variable Name |
Max Length |
Units |
|
Battery status |
1 |
0 = Battery ok 1 = Battery Low 2 = Battery Depleted |
|
Estimated Charge |
3 |
Percent |
|
Variable Name |
Max Length |
Units |
|
Input num lines |
1 |
Integer (1-3) |
|
Input frequency 1 |
3 |
0.1 Hz |
|
Input voltage 1 |
4 |
0.1 volts |
|
Variable Name |
Max Length |
Units |
|
Output source |
1 |
0 = Normal 1 = On battery 2 = On bypass 3 = Reducing 4 = Boosting 5 = Other |
|
Output frequency |
3 |
0.1 Hz |
|
Output num lines |
1 |
Integer (1-3) |
|
Output voltage 1 |
4 |
0.1 volts |
|
Output load 1 |
3 |
Percent |
Set Commands:
|
Command |
Description |
Max Length |
Data |
Variable Set |
|
PSD |
Performs UPS shutdown After the indicated no. of seconds |
7 |
-1=Abort 0=Immediate >0=seconds until shutdown |
Shutdown After Delay |
|
RWD |
Immediately perform UPS shutdown, then restarts after indicated no. of seconds |
7 |
Seconds |
Reboot with Duration |
|
STD |
Starts UPS after indicated no. of seconds |
7 |
-1=Abort 0=Immediate >0=seconds until startup |
Startup After Delay |
|
TST |
Test UPS |
2 |
-1=Abort test 0=No effect 1=General test |
Test Type |
UPS responds: ^D014PK ELECTRONICS
014 – 14 bytes to follow
PK ELECTRONICS – Manufacturer
UPS responds: ^D006US9003
006 – 6 bytes to follow
US9003 – Model
UPS responds: ^D011,1,500,2350
011 – 11 bytes to follow
1 – Input num lines (single phase UPS)
500 – Input frequency 1 of 50.0 Hz
2350 – Input voltage 1 of 235.0 Volts
UPS responds: ^1
006 – 6 bytes to follow
PSD120 – Shutdown UPS in 2 minutes
1 – Command accepted
UPS responds: ^1
006 – 6 bytes to follow
RWD300 – Shutdown UPS immediately and restarts it after 5 minutes
1 – Command accepted