hello, I have two macchina connectors on a cable Y obd, in a macchine I send messages and in the other I want to receive them, but it does not work. I guess can0 are pins 6 and 14, right?
macchina 1:
void loop(){
CAN_FRAME incoming;
if (Can0.available() > 0) {
Can0.read(incoming);
printFrame(incoming);
}
}
macchina 2:
void loop(){
CAN_FRAME outgoing;
outgoing.id = 0x405;
outgoing.length = 8;
outgoing.extended = 15;
outgoing.priority = 0; //0-15 lower is higher priority
outgoing.data.byte[0] = 0xDD;
outgoing.data.byte[1] = 0xDD;
outgoing.data.byte[2] = 0xDD;
outgoing.data.byte[3] = 0x55;
outgoing.data.byte[4] = 0xDD;
outgoing.data.byte[5] = 0xDD;
outgoing.data.byte[6] = 0xDD;
outgoing.data.byte[7] = 0x55;
Can0.sendFrame(outgoing);
}