I would like to replay (Like a Replay Block in CANalyzer) a log CAN through a vector Interface using Python-can.
import can
def bus_log():
bus1 = can.interface.Bus(bustype='vector', app_name='CANalyzer', channel=1, bitrate=500000)
bus2 = can.interface.Bus(bustype='vector', app_name='CANalyzer', channel=2, bitrate=500000)
fileReplay = can.LogReader('*.asc', 'w')
I load the log file using can.LogReader but I don't know how to send it to the interface.
Thank you in advance.