o-gs / dji-firmware-tools

Tools for handling firmwares of DJI products, with focus on quadcopters.
GNU General Public License v3.0
1.43k stars 402 forks source link

Marvin Pro BQ30z55 FEC Checksum Error #354

Open ByteMasterFlinki opened 11 months ago

ByteMasterFlinki commented 11 months ago

I have a Problem, If I read the BatteryStatus with

./comm_sbs_bqctrl.py -vvv --bus "i2c:1" -a 0x40 -c BQ30z55 read BatteryStatus

I get an error

Opening i2c:1 Importing comm_sbs_chips/BQ30z554.py Reading simple command at addr=0x40, cmd=0x16, type=uint16, opts={'subcmd': None} Raw BatteryStatus response: 00 00 00 Retrying due to error: ValueError: Received uint16 from command BatteryStatus with wrong PEC checksum Raw BatteryStatus response: b3 a2 f2 Retrying due to error: ValueError: Received uint16 from command BatteryStatus with wrong PEC checksum Raw BatteryStatus response: a3 00 b4 Error: ValueError: Received uint16 from command BatteryStatus with wrong PEC checksum

Is my command not right what can I try

Thanks

ps: if my post is not correct, sorry it is my first time using GitHub

mefistotelis commented 11 months ago

0x40 is the uC. bqctrl script is designed to talk to BMS chip, not the accompanying uC.

ByteMasterFlinki commented 11 months ago

But this is the only device in i2cdetect. Is it possible that the other Chip would need the full voltage, now it has only 10.xx volt’s. Can i check if the other device is working correctly? With an Osci? Or there are other options? But this chip is also on the battery because i don’t have the battery connected to the drone itself. Thanks for the information

mefistotelis commented 11 months ago

BMS typically is able to work at low voltage.

Read the chip reference - maybe it's in shutdown mode. Or maybe needs reboot.