Paul P
Paul P

Reputation: 19

How to send message over CAN using Python?

I am new to Python and want to send a CAN bus message through python. I have NI usb can adapter I am hoping will work. How can I get on the right track?

Upvotes: 1

Views: 2862

Answers (1)

Aravind seenu
Aravind seenu

Reputation: 11

CAN msgs are usually sent from the system path, for you to generate CAN msg in python script

Use the following format

import os

os.system(cansend 123#112233)

You can define your logics in with this basic syntax

Upvotes: 1

Related Questions