List of COMMAND to/from Board Controller

Set the RGB LED

Command to set the color of the RGB LED between the two switches at USB1287.

Table 1. Leds_set_val(): i.e. SET RED LED on
SYNC ADDRESS SENDER COMMAND NBYTES DATA CS CR
U M P F 1 char RGB Calc ¬
0x55 0x4D 0x50 0x46 0x01 0x04 0x3D 0x0D

Where the bits in DATA that enabled the individual colors in the RGB LED are listed in table:

Table 2. Bits Controlling RGB Colors
LED color Bit (set to enable)
Red 2
Green 1
Blue 0

Read the SB20x Hardware ID

When the Board controller has identified the hardware ID of the SB20x daughter card (refer to AVR455: SB201 Hardware User's Guide), the PC software can query that ID using the commands below.

Table 3. Read_SB20x_HWid ()
SYNC ADDRESS SENDER COMMAND NBYTES CS CR
U M P h 0 Calc ¬
0x55 0x4D 0x50 0x68 0x00 0x5A 0x0D
Table 4. Response: Send_SB20x_HWid()
SYNC ADDRESS SENDER COMMAND NBYTES DATA CS CR
U P M h 1 char ID Calc ¬
0x55 0x50 0x4D 0x68 0x01 0xB8 0x13 0x0D

Set the Battery Select LED

The PC software can query SB20x_HWid, and then send a package to give a visual feedback to the user about where to place the red jumper. After reset of USB1287 this is done automatically by USB1287.

Table 5. Batteryx_Led (): i.e. SET Cell2 LED on
SYNC ADDRESS SENDER COMMAND NBYTES DATA CS CR
U M P M 1 char Led # Calc ¬
0x55 0x4D 0x50 0x4D 0x01 0x02 0x42 0x0D

Led Value = 4,3,2,1.

Table 6. Byte Controlling the # of Cells LEDs
# of Cells DATA
4 4
3 3
2 2
1 1

Read the SB200 PCB Temperature

The NTC placed close to the Constant Current Load can be read. Response is a temperature between -40°C to 125°C.

Table 7. Read_Temperature ()
SYNC ADDRESS SENDER COMMAND NBYTES CS CR
U M P t 0 Calc ¬
0x55 0x4D 0x50 0x74 0x00 0x66 0x0D
Table 8. Response: Send_Temperature ()
SYNC ADDRESS SENDER COMMAND NBYTES DATA CS CR
U P M t 2 int Temp Calc ¬
0x55 0x50 0x4D 0x74 0x02 0x0019 0x81 0x0D