SetCharger
The command to the Charger sets the maximum limits for charging voltage and current, and the charging time. The Charger will not exceed either of those, but will adjust the voltage and current levels to get as close to the limits as possible.
Table 8. SetCharger: i.e. 8400mV, 450mA, 10 minutes
| SYNC | ADDRESS | SENDER | COMMAND | NBYTES | DATA | DATA | DATA | CS | CR |
|---|---|---|---|---|---|---|---|---|---|
| U | C | P | S | 5 | int mV | int mA | char minutes | Calc | ¬ |
| 0x55 | 0x43 | 0x50 | 0x53 | 0x05 | 0x20D0 | 0x01C2 | 0x0A | 0xFD | 0x0D |
ChargingInfo
The response from the Charger is sent when the HWB button is pressed. This will update the PC software.
Table 9. ChargingInfo: i.e. 0000mV, 100mA, 1 minute
| SYNC | ADDRESS | SENDER | COMMAND | NBYTES | DATA | DATA | DATA | CS | CR |
|---|---|---|---|---|---|---|---|---|---|
| U | P | C | s | 5 | int mV | int mA | char minutes | Calc | ¬ |
| 0x55 | 0x50 | 0x43 | 0x73 | 0x05 | 0x0000 | 0x0064 | 0x01 | 0xC5 | 0x0D |
ChargerRead
This command to the Charger reads the voltage and current seen from the ATtiny861.
ChargerReport
The report from the Charger is sent when the PC has asked. This will update the PC software.
Table 11. ChargerReport: i.e. 8385mV, 607mA
| SYNC | ADDRESS | SENDER | COMMAND | NBYTES | DATA | DATA | CS | CR |
|---|---|---|---|---|---|---|---|---|
| U | P | C | r | 4 | int mV | int mA | Calc | ¬ |
| 0x55 | 0x50 | 0x43 | 0x72 | 0x04 | 0x20C1 | 0x025F | 0xA0 | 0x0D |


