Skip to content
Luke Tucker edited this page Jan 13, 2022 · 17 revisions

Serial interface settings

TBW

Monitoring

There are two kinds of monitoring messages received from the device. There is a "CM2024 SUP" message every second which seems to be an overall status and is used to indicate that a battery is ready to charge (and possibly other things I am yet to figure out). The second type of message is a "CM2024 DAT" which returns the status of each slot independently.

"SUP" Message

First a message like this will arrive

43 4D 32 30 32 34 20 53 55 50                      CM2024 SUP

Followed by another fixed length message like this:

02 00 7B 01 EE 02 0D 00 82 78 78 78 78 78 78 78
78 78 78 78 78 78 78 78 78 78 78 78 78 78 78 78
78 98 16 0D 0A

Then when a battery is inserted it will switch to something like:

01 00 7B 01 ED 02 09 00 13 00 01 01 00 02 00 00
00 3C 05 05 00 08 78 78 78 78 78 78 78 78 78 78
78 73 26 0D 0A

So far I have figured out the following:

Offset Description
01 Unknown
02 Unknown
03 Unknown
04 Unknown
05 Unknown
06 Unknown
07 Unknown
08 - 09 Sequence Counter going from 0x0000 to 0x0257 (0-599) in increments of 13 - Little Endian
10 Slot awaiting setup (see slot table)
11 Chemistry selected (See chemistry table)
12 Program selected (See program table)
13 Selected maximum charge current (applicable for NiHM/Cd only) (see charge current table)
14 Selected discharge rate (see discharge table)
15 - 16 Selected capacity in mAh in units of 1. Little Endian
17 SD card status (see table)

"DAT" Message

Control

TBW

Common

Slot number

Value Description
00 Slot 1
01 Slot 2
02 Slot 3
03 Slot 4
04 Slot 5
05 Slot 6
06 Slot 7
07 Slot 8
08 Slot A
09 Slot B

Chemistry Values

Value Description
01 NiHM/Cd
02 NiZn

Program

Value Description
01 Recharge
02 Discharge
03 Procharge
04 Cycle
05 Alive
06 Maximize

Charge current

Value Description
00 Not Applicable (NiZn)
01 500mA
02 1000mA
03 1500mA
04 2000mA
05 2500mA
06 3000mA

Discharge current

The values are interpreted differently depending on the chemistry

NiZn

Value Description
01 150mA
02 300mA
03 450mA
04 600mA

NiMH/Cd

Value Description
01 125mA
02 250mA
03 375mA
04 500mA
05 625mA
06 750mA

SD status

Value Description
00 SD off
01 Unknown
02 On / Ready
Clone this wiki locally