cantools / cantools

CAN bus tools.
MIT License
1.91k stars 570 forks source link

USB2CAn Direct read #61

Closed lab176344 closed 6 years ago

lab176344 commented 6 years ago

hello,

I am using a Peak USB2CAN device to read in information from a force sensor. I am using Ubuntu 16.04, is it possible to get the can messages directly into a python script (instead of using candump in command line and add decode there) and decode it and have engineering units. I have a *.dbc file already and am able to decode in the command line tool already

Thank you in advance

eerimoq commented 6 years ago

Yes, have a look at this Python package: https://github.com/hardbyte/python-can

lab176344 commented 6 years ago

Thank you. Exactly what I was searching