Closed InfantEudora closed 5 months ago
Not sure what is the question here?
calc_sum4 seems to work just fine, but does not fix anything. Running the code without recalculating the CSUM doesn't trigger any fault codes.
I guess the question is: Is the CSUM calculation used in that message? It seems to work without it right?
Yup, seems like no benefit. Closing this for now!
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"