Hi,
I need to send a RTR message from the a teensy 3.6. But when i do, the microcontroller stops sending CAN-messges after the second RTR-message is sent.
So the Teensy sends 2 RTR-messages, I receive the data, but then i stops sending CAN-data even though the microcontroller still runs and prints data to the serial port.
This is how i setup the CAN:
void setup()
{
CAN_filter_t myFilter;
myFilter.rtr = 0;
myFilter.id = 0;
myFilter.ext = 0;
Can0.begin(500000,myFilter,1,1);
Can1.begin(500000,myFilter,1,1);
Can0.attachObj(&odrv1); // make child of can class to receive new messages automatically
Can1.attachObj(&macs1); // make child of can class to receive new messages automatically
...
}
I need to send a RTR message from the a teensy 3.6. But when i do, the microcontroller stops sending CAN-messges after the second RTR-message is sent.
So the Teensy sends 2 RTR-messages, I receive the data, but then i stops sending CAN-data even though the microcontroller still runs and prints data to the serial port.
This is how i setup the CAN:
void setup()
{
CAN_filter_t myFilter;
myFilter.rtr = 0;
myFilter.id = 0;
myFilter.ext = 0;
Can0.begin(500000,myFilter,1,1);
Can1.begin(500000,myFilter,1,1);
Can0.attachObj(&odrv1); // make child of can class to receive new messages automatically
Can1.attachObj(&macs1); // make child of can class to receive new messages automatically
...
}