Page 1 of 1
LIN solution for Linux?
Posted: Thu 10. Nov 2016, 19:59
by altran
Hi,
Is there a LIN solution for the linux environment? drivers/api etc...?
Re: LIN solution for Linux?
Posted: Fri 11. Nov 2016, 15:04
by M.Maidhof
Hi,
there are no direct tools or drivers for LIN under Linux available at the moment. A simple solution will be to use the PCAN-LIN module as LIN to CAN gateway, and use a CAN interface under Linux to control the forwarded LIN data.
regards
Michael
Re: LIN solution for Linux?
Posted: Fri 11. Nov 2016, 19:01
by altran
Hi Michael,
Thanks for the reply. Are there examples on how this would work? If I wanted to send and receive LIN messages using this PCAN-LIN module?
Re: LIN solution for Linux?
Posted: Sat 12. Nov 2016, 12:39
by PEAK-Support
Re: LIN solution for Linux?
Posted: Mon 5. Dec 2016, 23:30
by altran
I read the PCAN-LIN protocol definition and it looks like LIN messages can be written/read through the CAN interface.
So to be clear, would this setup work for a linux environment:
Linux computer -> PCAN-USB Pro FD -> [PCAN-LIN device] -> LIN Device
I would have to write code on the Linux side for the PCAN-USB Pro FD for this to work...is this correct?
Note* - I am using a separate Microcontroller board as the Master and the PCAN-LIN dongles as Slaves
Re: LIN solution for Linux?
Posted: Tue 6. Dec 2016, 15:55
by PEAK-Support
We talk about the PCAN-LIN Module (a stand alone Device -->
LINK)
You could use the PCAN-LIN to generate a LIN master or Slave and use the CAN Part to forward/receice LIN Frames in CAN Frames. But why not directly use the PLIN Interface on a serial port in LINUX?