18/09/2003
HESC-UPS Manual
Tri-M Engineering
Tel:
800.665.5600, 604.945.9565
1407 Kebet Way, Unit 100
Fax:
604.945.95
Port Coquitlam, BC, V3C 6L3
E-mail:
info@tri-m.com
Canada
Web
site:
www.tri-m.com
10
3. Since setting up the HESC is only done infrequently, only two commands are provided. Function ActiveEEcmd()
sets the location for the next EEprom read or write, and if the location should auto increment. Function EEPromCmd()
reads or writes the EEprom location as set by ActiveEEcmd().
Table 1, List of HESC Command Functions
Code Command
Function
SerBus
SMBus
PC/104
Acce
ss
Units Range
Description
0x08
BattTempCmd()
9
9
9
R
0.1K *
0 to 6553.5 Read battery temperature
0x09
BattVCmd()
9
9
9
R
mV
0 to 65535 Read battery voltage
0x0A
BattICmd()
9
9
9
R
mA
0 to 32767
0 to -32768
Read battery current
0x0B
BattIavgCmd()
9
9
9
R
mA
0 to 32767
0 to -32768
Read 1 minute rolling average battery current
0x0F
BattRemCapCmd()
9
9
9
R
mAh or 10mWh
**
0 to 65535 Read remaining battery capacity
0x11
ChargerSpecInfoCmd()
9
9
9
R
Bit flags
N/A
Read SMBus specification compatibility
0x12
ChargerModeCmd()
9
9
9
W
Bit flags
N/A
Set Charger Mode
0x13
ChargerStatusCmd()
9
9
9
R
Bit flags
N/A
Read charger status
0x14
ChargingCurrentCmd()
9
9
9
R/W
mV
0 to 65535 Read battery charging voltage setpoint
0x15
ChargingVoltageCmd()
9
9
9
R/W
mA
0 to 65535 Read battery charging current setpoint
0x16
AlarmWarningCmd()
9
9
9
R/W
Bit flags
N/A
Alarm Notification
0x3E
GetVersionCmd()
9
9
1
9
R High/Low byte***
N/A
Read charger firmware revision
0x3F
GetChSerNumCmd()
9
9
1
9
R
8 byte
N/A
Read charger serial number
0x80
GetI2CtempCmd0()
9
9
2
9
R
0.1K *
0 to 6553.5 Read I2C temperature
to
0x8F
GetI2CtempCmd15()
9
9
2
9
R
0.1K *
0 to 6553.5 Read I2C temperature
0x90
TempThCmd()
9
9
2
9
R
Word
0 to 65535 Read TH (thermistor) value
0x91
MainVCmd()
9
9
2
9
R
mV
0 to 65535 Read main input voltage
0x92
MainICmd()
+
9
9
2
9
R
mA
0 to 65535 Read input current
0x93
InputPwrCmd()
9
9
2
9
R
10mW
0 to 65535 Read input power
0x94
BattPwrCmd()
9
9
2
9
R
10mW
0 to 65535 Read charging power
0x95
ChCycleCmd()
9
9
2
9
R/W
integer
0 to 3
Read/Set charging cycle
0x96
ChTermLastCmd()
9
9
2
9
R
Bitflags
N/A
Read last termination method
0x97
ShutDownCmd()
9
9
2
9
R/W
sec
0 to 65535 A write will shut down the power supply in X
seconds. A read will return time left until shutdown.
Use command PowerSupplyStatusCmd() to
determine if a shutdown is in progress.
0x98
PowerSupplyStatusCmd()
9
9
2
9
R/W
Bitflags
N/A
Read/Write power supply flags
0x99
SDSUCauseCmd()
9
9
2
9
R
Bitflags
N/A
Read cause of SD and SU requests
0x9A I2CLowAlarmsCmd
9
9
2
9
R Bitflags N/A
0x9B I2CHighAlarmsCmd
9
9
2
9
R Bitflags N/A
0xA0
ActiveEEcmd()
9
9
2
9
R/W
byte.byte
****
Read/Set active EEprom location and auto increment
0xA1
EEPromCmd()
9
9
2
9
R/W
Word
0 to 65535 Read/Write value to active EEprom location
9
1 SMBus
Optional Manufacturer Functions
9
2 Function not defined by SMBus standards
* 0 degress Kelvin = -273.2C
** The
BattRemCapCmd
() capacity value is expressed in either current (mAh at a C/5 discharge rate) or power (10mWh at a
P/5 discharge rate) depending on the setting of the capacity mode bit.
*** High byte = major version, Low byte = minor version
**** Low byte = location 0 to 127, High byte: no auto increment = 0; auto increment = 1