Python access to PLIN Driver
Posted: Thu 9. Jun 2022, 17:57
Hello!
I recently received a PCAN-USB Pro and I am testing it in a Raspberry Pi 3B+ using RaspOS.
I can succesfully install the driver and make some operations from terminal.
However, I have all my code developed in Python and access to PLIN library is not very handy. At the moment I am using:
or
they work fine but after some time RaspOS freezes, probably due to the big amount of processes launched when sending messages.
Is there a better way to access PLIN library?
I read somewhere do you plan to develop python lib for plin driver?
Thank you in advanced.
I recently received a PCAN-USB Pro and I am testing it in a Raspberry Pi 3B+ using RaspOS.
I can succesfully install the driver and make some operations from terminal.
However, I have all my code developed in Python and access to PLIN library is not very handy. At the moment I am using:
Code: Select all
os.system(command)
f.e: x = os.system('lin start slave 19200 /dev/plin0')
Code: Select all
subprocess.Popen (command)
f.e: readLIN = subprocess.Popen(["linread", port], text=True, stdout=subprocess.PIPE)
Is there a better way to access PLIN library?
I read somewhere do you plan to develop python lib for plin driver?
Thank you in advanced.