Hi,
RPI 3B+ connected with HAT consisting of CAN Transceiver. CAN interface is enabled and configured and link is UP. I'm using bus.send(msg) and bus.recv() functions to transmit and receive can packets. RPI is connected to another device to which handles CAN packets.
overview as below,
bus = can.interface.Bus(channel="can1", bustype="socketcan", bitrate=1000000)
msg = ID with DATA
bus.send(msg) is working fine. bus.recv() is not working. Meaning, Invalid packets with CAN ID and data are seen when debug print is put at bus.recv() (response = bus.recv() print(respose)). When removed CAN connection between device and RPI, these invalid packets are observed. I don't understand, from where RPI is reading this invalid CAN packets (packet has ID,DLC and data ). Let me know anyone faced such issue and solution if you have any, Thank you