Hi<br />
<br />
In the summer of 2013, I spent some time reading the bcmxcp spec, and I
tried to map every possibly supported meter to a "upsc supported
variable".<br />
Some bcmxcp meters I was not able to map, and some "upsc supported
variable" I was not able to map.<br />
<br />
This shows what "measurements / meters" the driver support.<br />
0.566550 Index
Offset Format NUT<br />
0.566617 0027
0000 51 output.frequency<br />
0.566680 0028
0004 51 input.frequency<br />
0.566743 0033
0008 51 battery.voltage<br />
0.566805 0041
0012 f0 battery.voltage.low<br />
0.566866 0043
0016 f0 battery.charge.low<br />
0.566928 0047
0020 f0 ups.load<br />
0.566989 0056
0024 f0 input.voltage<br />
0.567051 0065
0028 51 output.current<br />
0.567113 0068
0032 51 output.current.nominal<br />
0.567175 0078
0036 f0 output.voltage<br />
0.567237 0091
0040 f0 input.quality<br />
0.567294 <br />
<br />
This shows what alarms the unit will trigger<br />
0.567355 Length of alarm map: 24<br />
0.567414 Index
Alarm Supported<br />
0.567509 -001
INVERTER_AC_OVER_VOLTAGE No<br />
0.567573 -001
INVERTER_AC_UNDER_VOLTAGE No<br />
0.567634 -001
INVERTER_OVER_OR_UNDER_FREQ No<br />
0.567695 -001
BYPASS_AC_OVER_VOLTAGE No<br />
...<br />
<br />
0.576274 -001
BYPASS_FAILURE No<br />
0.576305 -001
AUTO_OFF_COMMAND_EXECUTED No<br />
0.576335 -001
AUTO_ON_COMMAND_EXECUTED No<br />
0.576366 0010
BATTERY_TEST_FAILED Yes<br />
0.576396 <br />
<br />
This is some useful info, I would like to know what models
supports statistics map and alarm history log. My new 9130 has
"alarm history", but it is not available using the
"bcmxcp" driver.<br />
0.576427 Length of Config_block: 64<br />
0.576458 Length of statistics map: 0<br />
0.576489 Length of alarm history log: 0<br />
0.576519 Length of topology block: 3<br />
0.576550 Length of max supported command
length: 8<br />
0.576581 Length of command list: 22<br />
0.576611 Length of outlet_block: 0<br />
0.576642 Length of alarm_block: 11<br />
<br />
<br />
<br />
This shows what "commands" the UPS supports.<br />
0.853277 Command list block supported.<br />
0.853340 Number of commands implemented in
ups 20<br />
0.853400 Index Cmd
byte Description<br />
0.853466 000
31 PW_ID_BLOCK_REQ<br />
0.853528 001
33 PW_STATUS_REQ<br />
0.853590 002
34 PW_METER_BLOCK_REQ<br />
0.853652 003
35 PW_CUR_ALARM_REQ<br />
0.853714 004
36 PW_CONFIG_BLOCK_REQ<br />
0.853775 005
3b PW_BATTERY_REQ<br />
0.853837 006
3c PW_LIMIT_BLOCK_REQ<br />
0.853898 007
3f PW_TEST_RESULT_REQ<br />
0.854022 008
40 PW_COMMAND_LIST_REQ<br />
0.854085 009
43 PW_UPS_TOP_DATA_REQ<br />
0.854147 010
89 PW_UPS_ON<br />
0.854209 011
8a PW_LOAD_OFF_RESTART<br />
0.854270 012
8b PW_UPS_OFF<br />
0.854332 013
91 PW_UPS_ON_TIME<br />
0.854394 014
93 PW_UPS_OFF_TIME<br />
0.854480 015
95 PW_SET_CONF_COMMAND<br />
0.854544 016
a0 PW_SET_REQ_ONLY_MODE<br />
0.854605 017
b1 PW_INIT_BAT_TEST<br />
0.854668 018
b2 PW_INIT_SYS_TEST<br />
0.854730 019
cf PW_AUTHORIZATION_CODE<br />
0.854803 Added support for instcmd
shutdown.return<br />
0.854874 Added support for instcmd
shutdown.stayoff<br />
0.854944 Added support for instcmd
test.battery.start<br />
<br />
<br />
The bcmxcp supports "set / get" commands according to the bcmxcp
spec, it was next on my list for enhancing the driver, but I have not had
time to do so.<br />
That would add support for settings to "upsrw" and
"upscmd".<br />
I seem to remember that the "PW_SET_CONF_COMMAND" is needed for
"setting variable values". It is all quite well documented in
the protocol documentation.<br />
<br />
This is what I have as output from a previous debug log of my 5110 500VA
:<br />
0.413194 Index
Offset Format NUT<br />
0.413200 0027
0000 51 output.frequency<br />
0.413206 0028
0004 51 input.frequency<br />
0.413212 0033
0008 51 battery.voltage<br />
0.413218 0041
0012 f0 battery.voltage.low<br />
0.413224 0043
0016 f0 battery.charge.low<br />
0.413229 0047
0020 f0 ups.load<br />
0.413235 0056
0024 f0 input.voltage<br />
0.413241 0065
0028 51 output.current<br />
0.413246 0068
0032 51 output.current.nominal<br />
0.413252 0078
0036 f0 output.voltage<br />
0.413258 0091
0040 f0 input.quality<br />
That unit died last autumn, so I no longer have it availble.<br />
<br />
This is what I get from my new Eaton PW 9130:<br />
1.081608 Index
Offset Format NUT<br />
1.081621 0021
0000 f0 None<br />
1.081632 0023
0004 f0 ups.power<br />
1.081642 0027
0008 41 output.frequency<br />
1.081652 0028
0012 41 input.frequency<br />
1.081662 0030
0016 41 None<br />
1.081671 0033
0020 51 battery.voltage<br />
1.081681 0034
0024 f0 battery.charge<br />
1.081691 0035
0028 e2 battery.runtime<br />
1.081700 0047
0032 f0 ups.load<br />
1.081710 0053
0036 51 None<br />
1.081720 0056
0040 51 input.voltage<br />
1.081729 0062
0044 f0 ambient.temperature<br />
1.081739 0063
0048 f0 ups.temperature<br />
1.081749 0065
0052 41 output.current<br />
1.081758 0068
0056 41 output.current.nominal<br />
1.081768 0071
0060 f0 None<br />
1.081777 0072
0064 e0 ups.date<br />
1.081787 0073
0068 e1 ups.time<br />
1.081796 0074
0072 51 None<br />
1.081806 0075
0076 51 None<br />
1.081816 0078
0080 51 output.voltage<br />
1.081825 0091
0084 f0 input.quality<br />
Regards<br />
Alf<br />
<br />
<br />
<!-- end sanitized html -->