I have a korlan usb2can device and I also have a j2534 device(programs use the dll to connect). I would like to connect both of these devices "together" in a way. Here a few bullet points to clarify:
+ I would like both devices to receive each others can bus messages
+ I would like both devices to be able transmit can bus messages
I am also very new to coding.
here is an example python script only for the korlan usb2can device
import can
with can.interface.Bus(bustype="usb2can", channel="d3365afb", bitrate=1000000, dll='./usb2can.dll') as bus:
try:
while True:
msg = bus.recv(1)
if msg is not None:
print(msg)
except KeyboardInterrupt:
pass # exit normally
+ I would like both devices to receive each others can bus messages
+ I would like both devices to be able transmit can bus messages
I am also very new to coding.
here is an example python script only for the korlan usb2can device
import can
with can.interface.Bus(bustype="usb2can", channel="d3365afb", bitrate=1000000, dll='./usb2can.dll') as bus:
try:
while True:
msg = bus.recv(1)
if msg is not None:
print(msg)
except KeyboardInterrupt:
pass # exit normally