Python Forum
J2534 Python Can Bus merging
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
J2534 Python Can Bus merging
#1
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
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Python script merging some columns to one column with new name jbveenstra 6 2,944 Feb-13-2020, 02:01 PM
Last Post: jbveenstra
  merging sublist into single list in python abhishek8singhai 8 9,623 Mar-22-2019, 11:46 PM
Last Post: micseydel

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020