Hi all
I have a project where I want to hook up to a vehicle CANbus with an Teensy 3.6 and a CAN transceiver module SN65HVD230.
The task is rather simple. I want the Teensy to respond to a frame when its detected on the bus. But I dont know how to implement it with the help of the FlexCAN library examples.
Pseudo code
Have anyone done something similar and can post an example snipped of code?
Regards
Tobias
I have a project where I want to hook up to a vehicle CANbus with an Teensy 3.6 and a CAN transceiver module SN65HVD230.
The task is rather simple. I want the Teensy to respond to a frame when its detected on the bus. But I dont know how to implement it with the help of the FlexCAN library examples.
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("Hello Teensy 3.6 dual CAN Test."));
Can0.begin(500000);
}
void loop() {
}
Regards
Tobias