SLUUBD4A April 2016 – November 2022 BQ27220
With the Battery Management Studio (BQStudio) software, the user can generate specific instruction files called ot.fs files, which contain the necessary I2C commands that a host can send to the BQ27220 device to program the RAM-based data memory parameters. The commands in these files are largely ROM commands that can be used only when the gauge is in CONFIG_UPDATE mode.
The ot.fs file is an ASCII text file that contains commands and data. Each line of the file represents one command and potentially 96 bytes of data, as described in the following text. No row contains more than 96 data bytes. The first two characters of each row represent the command, followed by a ":
"W:" — | Indicates that the row is a command to write one or more bytes of data. | ||||
"C:" — | Indicates that the row is a command to read and compare one or more bytes of data. | ||||
"X:" — | Indicates that the row is a command to wait a given number of milliseconds before proceeding. |
White space is used to separate fields within the ot.fs files. Each row contains only one of the four commands. The commands discussed in this section can be implemented by a system that can perform multi-byte or single-byte operations for I2C.
Figure 9-1 shows a typical ot.fs file snippet generated from the BQStudio software.