admin 管理员组文章数量: 887021
2024年2月18日发(作者:goto语句标号)
COMMUNICATION PROTOCOL
VERSION : 2.7
CHECKED BY :
PREPARED BY :
DATE : SEP. 30, 1995
FILE :
DATE :V2.7 : JULY 30 ,1996
DATE
DESCRIPTION
MODIFY BY
2.6
2.7
95-9-30
96-8-01
UPDATE “D” COMMAND ( -> )
Disable “D” COMMAND
Kevin Chiou
Kevin Chiou
MegaTec Communication Protocols for UPS
2
A. 概括: 本文件指定的高级-智能UPS的RS232C通讯协议。该协议提供了以下功能:
1. 监视器充电状态。
MEGATEC COMMUNICATION PROTOCOL
2. 监控电池的状态和条件。
3. 状态监测工具。
4. 为电脑提供电源开启和关闭的省电效用如期开关功能。
电脑将控制信息由
action.
波特率............... : 2400 bps
数据长度.......... : 8 bits
停止位..................... : 1 bit
奇偶性........................ : NONE
B. 硬件:
CABLING :
COMPUTER
RX
TX
<----------
UPS
TX (pin 9)
===================================
----------> RX (pin 6)
GND
<---------- GND (pin 7)
(9 pins female D-type connector)
Mega System Technologies Inc.
MegaTec Communication Protocols for UPS
3
C. 通信协议:
1. 状态查询:
Computer : Q1
UPS : UPS状态的数据流,如 UPS status data stream, such as
(MMM.M NNN.N PPP.P QQQ RR.R TT.T b7b6b5b4b3b2b1b0
UPS状态的数据流:
之间应该有一个数据分离领域的每一个空格字符。每个字段的含义列表如下:There
should be a space character between every field for data separation. The meaning of each
field is list as followed:
a. 起始字节 : (
b.输入电压 : MMM.M
M是一个整数,从0到9。单位为伏特。
c.输入故障电压: NNN.N
N为整数,并从0到9。单位为伏特。
** For OFF LINE UPS**
Its purpose is to identify a short duration voltage glitch
which cause OFF line UPS to go to Invter mode. If this occurs
input voltage will appear normal at query prior to glitch and
will still appear normal at next query.
The I/P fault voltage will hold glitch voltage till next
query. After query, the I/P fault voltage will be same as I/P
voltage until next glitch occurs.
** For ON LINE UPS**
Its purpose is to identify a short duration utility fail
which cause ON line UPS to go to battery mode. If this occurs
input voltage will appear normal at query prior to fail and
will still appear normal at next query.
The I/P fault voltage will hold utility fail voltage till
next query. After query, the I/P voltage will be same as I/P
voltage until next utility fail occurs.
d.输出电压 : PPP.P
P is an integer number ranging form 0 to 9.
The unit is Volt.
e.O/P current : QQQ
QQQ is a percent of maximum current, not an absolute value.
f.输入频率 : RR.R
Mega System Technologies Inc.
MegaTec Communication Protocols for UPS
R is an integer number ranging from 0 to 9.
The unit is HZ.
g.电池电压 : SS.S or
S is an integer number ranging from 0 to 9.
For on-line units battery voltage/cell is provided in the
form .
For standby units actual battery voltage is provided in
the form SS.S .
UPS type in UPS status will determine which reading was
obtained.
4
h.温度: TT.T
T is an integer number ranging form 0 to 9.
The unit is degree of
centigrade.
状态 :
是一个字节的二进制信息,如
Where bn is a ASCII character ‘0’ or ‘1’.
.
UPS status :
位
7
6
5
4
3
2
1
0
描述
1 : Utility Fail (Immediate) 实用程序失败(即时)
1 : Battery Low 电池低
1 : Bypass/Boost or Buck Active 旁路/升压或降压活性
1 : UPS Failed UPS故障
1 : UPS Type is Standby (0 is On_line) UPS的类型是待机
1 : Test in Progress 测试正在进行
1 : Shutdown Active 进行关机
1 : Beeper On 蜂鸣器
Mega System Technologies Inc.
MegaTec Communication Protocols for UPS
5
j.
停止字节 :
例子: 电脑: Q1
UPS:
(208.4 140.0 208.4 034 59.9 2.05 35.0 00110000
方法 : 输入电压 208.4V.
输入故障电压 140.0V.
输出电压208.4V.
输出电流 34 %.
输入频率 59.9 HZ.
电池电压 2.05V.
温度 35.0 degrees of centigrade. UPS type
is on-line , UPS failed. Bypass active , and
shutdown not
active.
温度 35.0摄氏度。 UPS类型为在线,UPS故障。旁路活跃,关闭不活跃。
Mega System Technologies Inc.
MegaTec Communication Protocols for UPS
6
2. Test for 10 seconds:
Computer : T
UPS : Test for 10 seconds and return to utility.
If battery low occur during testing, UPS will return to
utility immediately.
Computer : TL
until battery low :
UPS : Test until battery low and return to utility.
for specified time period :
Computer : T
UPS : Test for
a. During testing, UPS returns to utility immediately, if
battery low occur.
b.
5. Turn On/Off beep -- Toggle the UPS beeper :
Computer : Q
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 .
Mega System Technologies Inc.
MegaTec Communication Protocols for UPS
7
6. Shutdown Command :
Computer : S
UPS : Shut UPS output off in
a. The UPS output will be off in
utility power is present.
b. If the battery low occurs before
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.
For example : S.3
7. Shutdown and Restore Command
:
Computer : S
UPS : Shut UPS output off in
for
again.
a. The shutdown sequence is the same as the previous
command.
When the
the UPS will wait until utility restore.
b. If UPS is in shutdown waiting state, the "C" command can
let the shutdown procedure
cancelled.
c. 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)
d.
e.
Mega System Technologies Inc.
MegaTec Communication Protocols for UPS
8
8. Cancel Shutdown Command :
Computer : C
UPS : Cancel the SN
a. If UPS is in shut down waiting state, the shut down command
is
cancelled.
b. 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)
9. Cancel Test Command :
Computer : CT
UPS
: Cancel all test activity and connect the utility to
output immediately.
10. UPS Information Command:
Computer : I
UPS : #Company_Name UPS_Model Version
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
Version
: 10 characters, leave space if less than 10 characters
: 10 characters, leave space if less than 10 characters
There should be a space character between every field for separation.
Mega System Technologies Inc.
MegaTec Communication Protocols for UPS
9
11. UPS Rating Information:
Computer : F
UPS : #MMM.M QQQ RR.R
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
d. Frequency
: or SSS.S
: RR.R
D. COMMAND SUMMARY:
ITEM
1a
1
2
3
4
5
6
7
8
9
COMMAND
D
Q1
T
TL
T
Q
S
DESCRIPTION
Status Inquiry *disable
Status Inquiry
10 Seconds Test
Test until Battery Low
Test for Specified Time Period
Turn On/Off beep
Shut Down Command
Shut Down and Restore Command
Cancel Shut Down Command
Cancel Test Command
UPS Information Command
UPS Rating Information
S
C
CT
I
F
10
11
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 ‘@’.
Mega System Technologies Inc.
E. Invalid Command/Information Handling
版权声明:本文标题:UPS 通信协议 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.freenas.com.cn/jishu/1708214179h516912.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论