SLUUB65B May 2015 – December 2022
With Battery Management Studio (BQStudio), users can generate specific instruction files called DFFS or BQFS files, which contain a series of I2C or HDQ commands that a host can send to a device to program the flash memory in the gauge. The commands in these files are largely ROM commands.
File Type | Description |
---|---|
BQFS | Can be used to program Instruction and data flash |
DFFS | Can be used to program data flash |
Both of these files are ASCII text files that contain 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 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 multibyte operations for I2C or single-byte operations for I2C.
Figure 19-1 shows a typical DFFS file snippet generated from BQStudio.