bq20z40 bq20z45 SBS Command

from http://www.ti.com/lit/er/sluu313a/sluu313a.pdf







A.2       Authenticate (0x2f)

This read- or write-block function allows the host to authenticate a bq20z40/bq20z45-based battery using an SHA-1 authentication transform with a length of 20 data bytes + 1 length byte. See the Using SHA-1 in bq20zxx Family of Gas Gauges application report (SLUA359) for detailed information.

Table A-37. Authenticate

SBS Cmd.
Mode
Name
Format
Size in Bytes
Min Value
Max Value
Default Value
Unit
0x2f
R/W
Authenticate
String
20 + 1

A.3       CellVoltage4..1 (0x3c..0x3f)
These read-word functions return an unsigned value of the calculated individual cell voltages, in mV, with a range of 0 to 65,535. CellVoltage1 corresponds to the bottommost series cell element, whereas CellVoltage4 corresponds to the topmost series cell element.

Table A-38. CellVoltage4..1

SBS Cmd.
Mode
Name
Format
Size in Bytes
Min Value
Max Value
Default Value
Unit
0x3c
R
CellVoltage4
Unsigned integer
2
0
65,535
mV
0x3d
CellVoltage3
0x3e
CellVoltage2
0x3f
CellVoltage1

A.4       SBS Command Values

Table A-39. SBS COMMANDS

SBS
Cmd
Mode
Name
Format
Size in Bytes
Min Value
Max Value
Default Value
Unit
0x00
R/W
ManufacturerAccess
Hex
2
0x0000
0xffff
0x01
R/W
RemainingCapacityAlarm
Unsigned integer
2
0
65,535
300
mAh or 10 mWh
0x02
R/W
RemainingTimeAlarm
Unsigned integer
2
0
65,535
10
min
0x03
R/W
BatteryMode
Hex
2
0x0000
0xe383
0x04
R/W
AtRate
Integer
2
–32,768
32,767
mA or 10 mW
0x05
R
AtRateTimeToFull
Unsigned integer
2
0
65,534
min
0x06
R
AtRateTimeToEmpty
Unsigned integer
2
0
65,534
min
0x07
R
AtRateOK
Unsigned integer
2
0
65,535
0x08
R
Temperature
Unsigned integer
2
0
65,535
0.1 °K
0x09
R
Voltage
Unsigned integer
2
0
65,535
mV
0x0a
R
Current
Integer
2
–32,768
32,767
mA
0x0b
R
AverageCurrent
Integer
2
–32,768
32,767
mA
0x0c
R
MaxError
Unsigned integer
1
0
100
%
0x0d
R
RelativeStateOfCharge
Unsigned integer
1
0
100
%




SBS
Cmd
Mode
Name
Format
Size in Bytes
Min Value
Max Value
Default Value
Unit
0x0e
R
AbsoluteStateOfCharge
Unsigned integer
1
0
100+
%
0x0f
R/W
RemainingCapacity
Unsigned integer
2
0
65,535
mAh or 10 mWh
0x10
R
FullChargeCapacity
Unsigned integer
2
0
65,535
mAh or 10 mWh
0x11
R
RunTimeToEmpty
Unsigned integer
2
0
65,534
min
0x12
R
AverageTimeToEmpty
Unsigned integer
2
0
65,534
min
0x13
R
AverageTimeToFull
Unsigned integer
2
0
65,534
min
0x14
R
ChargingCurrent
Unsigned integer
2
0
65,534
mA
0x15
R
ChargingVoltage
Unsigned integer
2
0
65,534
mV
0x16
R
BatteryStatus
Hex
2
0x0000
0xdbff
0x17
R/W
CycleCount
Unsigned integer
2
0
65,535
0x18
R/W
DesignCapacity
Unsigned integer
2
0
65,535
4400
mAh or 10 mWh
0x19
R/W
DesignVoltage
Unsigned integer
2
0
65,535
14,400
mV
0x1a
R/W
SpecificationInfo
Hex
2
0x0000
0xffff
0x0031
0x1b
R/W
ManufactureDate
Unsigned integer
2
01-Jan-1980
0x1c
R/W
SerialNumber
Hex
2
0x0000
0xffff
0x0001
0x20
R/W
ManufacturerName
String
20 + 1
Texas Inst.
0x21
R/W
DeviceName
String
20 + 1
bq20z40/bq20z45
0x22
R/W
DeviceChemistry
String
4 + 1
LION
0x23
R/W
ManufacturerData
String
14 + 1
0x2f
R/W
Authenticate
String
20 + 1
0x3c
R
CellVoltage4
Unsigned integer
2
0
65,535
mV
0x3d
R
CellVoltage3
Unsigned integer
2
0
65,535
mV
0x3e
R
CellVoltage2
Unsigned integer
2
0
65,535
mV
0x3f
R
CellVoltage1
Unsigned integer
2
0
65,535
mV





B.1       DataFlashSubClassPage1..8 (0x78..0x7f)

These commands are used to access the consecutive 32-byte pages of each subclass. DataFlashSubClassPage1 gets bytes 0 to 31 of the subclass, DataFlashSubClassPage2 gets bytes 32 to 63, and so on.

NOTE: Any DF location deemed reserved responds with a NACK unless the bq20z40/bq20z45 is in the correct security state to allow access.

Table B-20. DataFlashSubClass1..8

SBS
Cmd.
Mode
Name
Format
Size in Bytes
Subclass Offset
Subclass Offset
Default Value
Unit
0x78
R/W
DataFlashSubClassPage1
Hex
32
0
31



SBS
Cmd.
Mode
Name
Format
Size in Bytes
Subclass Offset
Subclass Offset
Default Value
Unit
0x79
R/W
DataFlashSubClassPage2
Hex
32
32
63
0x7a
R/W
DataFlashSubClassPage3
Hex
32
64
95
0x7b
R/W
DataFlashSubClassPage4
Hex
32
96
127
0x7c
R/W
DataFlashSubClassPage5
Hex
32
128
159
0x7d
R/W
DataFlashSubClassPage6
Hex
32
160
191
0x7e
R/W
DataFlashSubClassPage7
Hex
32
192
223
0x7f
R/W
DataFlashSubClassPage8
Hex
32
224
255



B.1       Extended SBS Command Values


Table B-21. EXTENDED SBS COMMANDS

SBS Cmd
Mode
Name
Format
Size in Bytes
Min Value
Max Value
Default Value
Unit
0x45
R
AFEData
String
11+1
ASCII
0x46
R/W
FETControl
hex
2
0x00
0xff
0x4f
R
StateOfHealth
hex
2
0x0000
0xffff
0x51
R
SafetyStatus
hex
2
0x0000
0xffff
0x53
R
PFStatus
hex
2
0x0000
0xffff
0x54
R
OperationStatus
hex
2
0x0000
0xffff
0x55
R
ChargingStatus
hex
2
0x0000
0xffff
0x57
R
ResetData
hex
2
0x0000
0xffff
0x58
R
WDResetData
unsigned int
2
0
65535
0x5a
R
PackVoltage
unsigned int
2
0
65535
mV
0x5d
R
AverageVoltage
unsigned int
2
0
65535
mV
0x5e
R
TS1Temperature
integer
2
–400
1200
0.1°C
0x5f
R
TS2Temperature
integer
2
–400
1200
0.1°C
0x60
R/W
UnSealKey
hex
4
0x00000000
0xffffffff
0x61
R/W
FullAccessKey
hex
4
0x00000000
0xffffffff
0x62
R/W
PFKey
hex
4
0x00000000
0xffffffff
0x63
R/W
AuthenKey3
hex
4
0x00000000
0xffffffff
0x64
R/W
AuthenKey2
hex
4
0x00000000
0xffffffff
0x65
R/W
AuthenKey1
hex
4
0x00000000
0xffffffff
0x66
R/W
AuthenKey0
hex
4
0x00000000
0xffffffff
0x69
R
SafetyStatus2
hex
2
0x0000
0x000f
0x6b
R
PFStatus2
hex
2
0x0000
0x000f
0x6c
R/W
ManufBlock1
string
20
0x6d
R/W
ManufBlock2
string
20
0x6e
R/W
ManufBlock3
string
20
0x6f
R/W
ManufBlock4
string
20
0x70
R/W
ManufacturerInfo
String
31+1
0x71
R/W
SenseResistor
unsigned int
2
0
65535
μΩ



SBS Cmd
Mode
Name
Format
Size in Bytes
Min Value
Max Value
Default Value
Unit
0x72
R
TempRange
hex
2
0x0000
0xffff
0x73
R
LifetimeData
String
32+1
0x77
R/W
DataFlashSubClassID
hex
2
0x0000
0xffff
0x78
R/W
DataFlashSubClassPage1
hex
32
0x79
R/W
DataFlashSubClassPage2
hex
32
0x7a
R/W
DataFlashSubClassPage3
hex
32
0x7b
R/W
DataFlashSubClassPage4
hex
32
0x7c
R/W
DataFlashSubClassPage5
hex
32
0x7d
R/W
DataFlashSubClassPage6
hex
32
0x7e
R/W
DataFlashSubClassPage7
hex
32
0x7f
R/W
DataFlashSubClassPage8
hex
32


留言

熱門文章