Software Setup
6. Build libicsneo project and link libicsneoleagacy.so file to your Python project.
Open Terminal
Clone libicsneo git repository
Check to see if you have install all dependencies
Create a build folder and make the project
Installing python_ics
To install python_ics you can use either of this command
or
Create a new Python project and copy paste the example code from the python_ics or you can download the open_device_example.py from github page https://github.com/intrepidcs/python_ics/blob/master/examples/open_device_example.py
Open Python IDE and link libicsneolegacy.so by adding this line at the top of your script
Run your Python file
Note if you don’t see your device, try turning off the raspberry Pi and turn back on with device plugged in.
Receive Messages
Use this function to Receive CAN messagespy
Transmit Messages
Use this function to Transmit CAN messages
So to recap:
Build libicsneo project
install python_ics
link libicsneolegacy.so file on your python project
You can read the full documentation for libicsneo at https://libicsneo.readthedocs.io/en/latest/ and Python documentation at https://python-ics.readthedocs.io/en/2.15/.
Last updated