PCM UPS-Protocol
PCM UPS-Protocol
1
A. General :
This document specifies the RS232C communication protocol of the Advance-Intelligent UPS.
The protocol provided the following features:
i. Monitor charger status.
ii. Monitor battery status and condition.
iii. Monitor the utility status.
iv. Provide the power switch function for computer to turn on and off the utility on
schedule for power saving.
B. Hardware :
BAUD RATE………………..: 2400bps
DATA LENGTH…………….: 8 bit
STOP BIT…………………...: 1 bit
PARITY……………………..: NONE
RX ---------------------- TX (pin 9)
TX ---------------------- RX (pin6)
GND -------------------- GND (pin 7)
(9 pins female D-type connector)
2
C. Communication protocol :
a. Start byte :(
3
d. O/P voltage :PPP.P
P is an integer number ranging form 0 to 9.
The unit is Volt.
h. Temperature :TT.T
T is an integer number ranging form 0 to 9.
The unit is degree of centigrade.
Bit Description
7 1 : Utility Fail (Immediate)
6 1 : Battery Low
5 1 : Bypass/Boost Or Buck Active
4 1 : Ups Failed
3 1 : UPS Type In Progress (0 is Online / 1 is Offline)
2 : Battery Fail (Online UPS)
3 : Battery Fail (Offline UPS)
2 1 : Test In Progress
1 1 : Shutdown Active
0 1 : Beeper ON
4
j. Stop Byte :<cr>
Example : Computer: Q1<cr>
UPS :
(208.4 140.0 208.4 034 59.9 2.05 35.0 00110000<cr>
5
2. Status Inquiry : Computer:DQ1<cr>
a. Start byte :(
6
d. O/P voltage :PPP.P
P is an integer number ranging form 0 to 9.
The unit is Volt.
h. Temperature :TT.T
T is an integer number ranging form 0 to 9.
The unit is degree of centigrade.
Bit Description
7 1 : Utility Fail (Immediate)
6 1 : Battery Low
5 1 : Bypass/Boost Or Buck Active
4 1 : Ups Failed
3 1 : UPS Type In Progress (0 is Online/ I is Offline)
2 : Battery Fail (Online UPS)
3 : Battery Fail (Offline UPS)
2 1 : Test In Progress
1 1 : UPS turn off
0 1 : Beeper ON
7
j. Stop Byte :<cr>
Example : Computer: DQ1<cr>
UPS :
(208.4 140.0 208.4 034 59.9 0100 35.0 00110000<cr>
8
3. Test for 10 seconds:
Computer :T<cr>
UPS : Teat for 10 seconds and return to utility.
If battery low occur during testing, UPS will return to utility immediately.
7. Shutdown Command :
Computer :S<n><cr>
UPS :Shut UPS output off in <n> minutes.
a. The UPS output will be off in <n> minutes., even if the utility power is present.
b. If the battery low occurs before <n> minutes ,the output is turned off immediately.
c. 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.
d.<n> is a number ranging form .2,.3,…,01,02,…,up to 10.
For example : S.3<cr>---shut output off in (.3) minutes
9
8. Shutdown and Restore Command:
Computer :S<n>R<m><cr>
UPS :shut UPS output off in <n> minutes, and waiting for <m> minutes then turn on UPS output again.
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 restore 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 form .2,.3,…,01,02,…,up to 10.
<m>is a number ranging form 0001 to 9999.
10
12. UPS Rating Information:
Computer : F<cr>
UPS : #MMM.M QQQ SS.SS RR.R<cr>
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:
a. Rating Voltage :MMM.M
b. Rating Current :QQQ
c. Battery Voltage :SS.SS or SSS.S
d. Frequency :RR.R
11
16. Immediately switch the <XX>-outlet OFF Command
Computer : O<XX>OFF<cr>
Turn OFF the <XX> outlet
<XX>: 01 to 99
<For example>
O02OFF<cr> Turn outlet 2 OFF
19. Achieve both minimum battery capacity <AA> and waiting time <BBBB>, the ups auto supply its power
Computer : WX02<s>AA<s>BBBB<cr>
<s>space char
AA : Battery capacity % (default : 00)
<s> space char
BBBB : Waiting time seconds (default : 0030)
UPS : WX02A<cr>
A:1 Success
A: the other number : Fail
12
20.Get the ups minimum battery capacity and waiting time from point 19
Computer : RX02<cr>
UPS : RX02AABBBB<cr>
AA : Battery capacity (default : 00)
BBBB:Waiting time seconds (default : 0030)
22. Ouput VA
Computer : Yva <cr>
UPS : *XXXXX <cr>
==> X is an integer number ranging from 0 to 9
26. UPS enter idle mode >> Turn off ups output power
Computer : IDLE <cr>
UPS : *R00 <cr> >> success
UPS :* >> fail
13
27. UPS enter line mode >> Turn on ups output power
Computer WAKE <cr>
UPS : *R00 <cr> >> success
UPS :* >> fail
28. UPS output voltage setting >> Setup ups output voltage 100, 110, 120, 127, 208, 220, 230 or 240
Computer : PMo100 <cr>
Computer : PMo110 <cr>
Computer : PMo120 <cr>
Computer : PMo127 <cr>
Computer : PMo208 <cr>
Computer : PMo220 <cr>
Computer : PMo230 <cr>
Computer : PMo240 <cr>
UPS : OK <cr> >> success
UPS : NOK <cr> >> fail
30. UPS serial number and date: Write (UPS idle mode)
Computer : WX03<s>AAAAAAAAAAA<s>BBBBBB
<s> : space
AAAAAAAAAAA : serial number : 11 char
BBBBBB : manufacture date : 6 char
Ex : 2014/12/24 >> 141224
UPS : WX03A <cr>
A : 1 >> success
A : other number : fail
14
31. UPS-Battery replace date : Write
Computer : WX04<s>AAAAAA<cr>
<s> space
AAAAAA : battery replace year, month and date
Ex : 2014/12/24 : 141224
UPS : WX04A <cr>
A : 1 : success
A : other number : fail
15
36. UPS accumulated backup mode time and times : Read
Computer : RX09 <cr>
UPS : RX09AAAAABBB<cr>
AAAAA : accumulated backup mode minutes : 5char
BBB : accumulated backup mode times : 3 char
16