Nissan-LEAF-Battery-Upgrade
Nissan-LEAF-Battery-Upgrade copied to clipboard
Add up all the nibbles in CSUM
Hi, In your video: https://www.youtube.com/watch?v=oENNNfy5GSM you mention CSUM adds up all the nibbles, and add 2.
Mux's / Your code adds up only the nibbles from the first 7 bytes by the look of it, in calc_sum4
I was checking out some 1F2 messages from your log file, also this guy seems to send them: https://github.com/49thdiver/EV-Projects/blob/main/OBC/src/definitions.h
But they don't add up at all.
Most 1F2 messages from your log have 0 for the last nibble, so it works. But your DBC file has a bit in that nibble: "unknown - may indicate charging"