Can J1939

Status
Not open for further replies.
you need to try out the FIFO with Interrupt example that comes with the library, you can write messages simply by using:

Code:
CAN_message_t frame;
frame.id = 0x18FD9BA3;
frame.len = 8;
frame.flags.extended = 1;
frame.buf[0] = 0x51;
frame.buf[1] = 0xFB;
// other bytes...
Can0.write(frame); // to send it
 
yes, take the FIFO example and remove everything in the loop(), add the code above into the loop, also add a delay(500) line so you don't flood the canbus, you will see the data being sent over the bus and all other data being received
 
Status
Not open for further replies.
Back
Top