Page 1 of 1

message.identifier changed on receive side

Posted: Wed Jul 31, 2024 9:07 pm
by devastator
I have a weird thing about the SN65HVD230 in combination with the ESP32. When I send an 29-bit message, the prio bit is missing on the receiving side.

Code: Select all

Message example for sending:
twai_message_t message;
message.identifier = 0xE0FFFF20;
message.extd = 1;
message.data_length_code = 8;
message.data[0] = 0x01;
message.data[1] = 0xFF;
message.data[2] = 0x00;
message.data[3] = 0x00;
message.data[4] = 0x00;
message.data[5] = 0x00;
message.data[6] = 0xFF;
message.data[7] = 0xFF;
On the receive side the message.identifieris 0xFFFF20 so the E0 is missing.

Does anyone have an idea what this is about?
Or is the prio bit automatically removed by the canbus receiver?

Thanks a lot