![]() |
J2534 Python Can Bus merging - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: General Coding Help (https://python-forum.io/forum-8.html) +--- Thread: J2534 Python Can Bus merging (/thread-39892.html) |
J2534 Python Can Bus merging - natezoom - May-01-2023 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 |