Other Parts Discussed in Thread: EV2400, BQSTUDIO,
BQ34Z100 Control command communication over HDQ interface
We are using the HDQ interface over UART to communicate to the fuel gauge . The query is w.r.t to how to retrieve CHEM ID: 0x0008 ,FW_VERSION: 0x0002 etc ?
We use the below protocol for retrieving standard commands like Voltage(0x08/0x09) AverageCurrent(0x0A/0x0B) and it works for us .
1 .Read high byte (H0)
2. Read low byte (L0)
3. Read high byte again (H1)
4. If H1 = H0, then the valid 16-bit result is H0:L0 5. Otherwise, read low byte again (L1) and the valid 16-bit result is H1:L1.
This procedure is sufficient to guarantee that the 16-bit word is read correctly
As i understood Control command we need to send command and sub command . Can you help us to get Control command working by giving a flow of protocol like described above ? Remember we use HDQ interface .