TI中文支持网
TI专业的中文技术问题搜集分享网站

BQ4050: 读取[0x55 ChargingStatus]命令时,返回的pec校验总是错误,为什么?

Part Number:BQ4050

 

利用smbus读取bq4050的充电状态[0x55 ChargingStatus]命令时,返回来的pec校验总是错误,但读取其它的命令,像 GaugingStatus、 ManufacturingStatus、 DAStatus1、 DAStatus2等,pec的校验都是正常的。

为什么只有读取ChargingStatus命令时,才会这样?

Star Xu:

您好,请参考文档SMBus Made Simple

www.ti.com/…/slua475.pdf

SMBus 1.1 and later define optional Packet Error Checking (PEC). In that mode, a PEC (packet error code) byte is appended at the end of each transaction. The byte is calculated as CRC-8 checksum, calculated over the entire message including the address and read/write bit. The polynomial used is x8+x2+x+1 (the CRC-8-ATM HEC algorithm, initialized to zero).

,

lueng cheng:

我知道pec校验计算方法,问题是同样的block读,GaugingStatus、 ManufacturingStatus、 DAStatus1、 DAStatus2等,pec的校验都是正常的,只有ChargingStatus返回的PEC是错误的?

,

Star Xu:

您好,建议您将问题发布在E2E英文技术论坛上https://e2e.ti.com/support/power-management/f/196,将由资深的工程师为您提供帮助。我们的E2E英文社区有TI专家进行回复,并得到全球各地工程师的支持,分享他们的知识和经验。

赞(0)
未经允许不得转载:TI中文支持网 » BQ4050: 读取[0x55 ChargingStatus]命令时,返回的pec校验总是错误,为什么?
分享到: 更多 (0)