Description

The ChargeCurrent command is used to change the charging current. The provided charging current MUST be in mA. This command response packet will return the charging current that was effectively set.

Failure to provide a valid charging current will cause Neblina to set the charging current to the closest floor value. For example, a 300mA request will result in a 268mA charging current.

Protocol

This command uses the Command-Ack protocol.

Command

Byte Name C Type Value
0 Control Byte ( Packet Type (7:5) / SubSystem (4:0) ) uint8_t 0x42 ( 0b010 / 0b00010 )
1 Payload Length uint8_t 2
2 CRC uint8_t Calculated
3 Command uint8_t 0x02

Payload

Byte Name C Type Value
0 - 1 Charge Current uint16_t See Below

The following list contains the supported charging current:

  • 44mA
  • 88mA
  • 133mA
  • 223mA
  • 268mA
  • 313mA
  • 358mA
  • 403mA
  • 448mA
  • 494mA