message.identifier changed on receive side

devastator
Posts: 1
Joined: Wed Jul 31, 2024 9:02 pm

message.identifier changed on receive side

Postby devastator » Wed Jul 31, 2024 9:07 pm

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

Who is online

Users browsing this forum: No registered users and 117 guests