I need some help with Can4Python/SocketCAN with Raspberry Pi. Currently, I am using PiCAN2.
What I want to do is upon receiving a particular signal from transmitter, I would like to turn on/off LED (ON for signal value x and OFF for signal value y) connected to GPIO of Raspberry.
Currently, I am able to do basic operation like send CAN messages, Receive it, working on KCD files. I have written a code which sends CAN signals in some interval (Broadcast) on
vcan0. My question is how to receive those signal continuously? I am only able to find
from_kcd_files method which allows me to read signal from kcd files. I want to receive signals in real-time ie. signal coming on can0 or can1.
I am new to this field so I am little bit confused too.!! Any guidance or help would be appreciated. Thanks