Mode 04 message

I’m trying to send a message to clear the current codes using mode 04.

The relevant code is:

CANMessage message;
message.id = 0X7DF;
message.len = 8; // just always use 8
message.data[0] = 0x02;
message.data[1] = 0x04;

carloop.can().transmit(message);

However, the codes are not clearing. Any ideas?

It might need 02 01 04

I second what dubb45 is suggesting.

Also, the remaining bytes are not used in theory, but you could try setting them to 55 (hex format, same as the original post), just in case.