Hi!
A few weeks ago I posted a question in the project guidance forum but never received any feedback. Thought it might be the wrong place so I give it a try here instead.
My goal is rather simple. I want the Teensy to respond to a frame when its detected on the bus. But I don't know how to implement it with the help of the FlexCAN library examples. I have a Teensy 3.6 and a CAN transceiver module SN65HVD230.
Pseudo code
Have anyone done something similar and can post an example snipped of code?
Regards
Tobias
A few weeks ago I posted a question in the project guidance forum but never received any feedback. Thought it might be the wrong place so I give it a try here instead.
My goal is rather simple. I want the Teensy to respond to a frame when its detected on the bus. But I don't know how to implement it with the help of the FlexCAN library examples. I have a Teensy 3.6 and a CAN transceiver module SN65HVD230.
Pseudo code
Code:
loop() {
Listen on CAN bus for certain frame.
If frame == "t568101" detected..
then
send on CAN bus "t5653001511" in decimal format.
}
Have anyone done something similar and can post an example snipped of code?
Code:
#include <FlexCAN.h>
void setup() {
delay(1000);
Serial.println(F("Starting up..."));
Can0.begin(500000);
}
void loop() {
}
Regards
Tobias