Set the RGB LED
Command to set the color of the RGB LED between the two switches at USB1287.
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:
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.
SYNC | ADDRESS | SENDER | COMMAND | NBYTES | CS | CR |
---|---|---|---|---|---|---|
U | M | P | h | 0 | Calc | ¬ |
0x55 | 0x4D | 0x50 | 0x68 | 0x00 | 0x5A | 0x0D |
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.
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.
# 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.
SYNC | ADDRESS | SENDER | COMMAND | NBYTES | CS | CR |
---|---|---|---|---|---|---|
U | M | P | t | 0 | Calc | ¬ |
0x55 | 0x4D | 0x50 | 0x74 | 0x00 | 0x66 | 0x0D |
SYNC | ADDRESS | SENDER | COMMAND | NBYTES | DATA | CS | CR |
---|---|---|---|---|---|---|---|
U | P | M | t | 2 | int Temp | Calc | ¬ |
0x55 | 0x50 | 0x4D | 0x74 | 0x02 | 0x0019 | 0x81 | 0x0D |