LIN solution for Linux?

This forum covers PCAN-Linux and Linux development issues concerning our products
Post Reply
altran
Posts: 14
Joined: Sat 5. Nov 2016, 07:11

LIN solution for Linux?

Post by altran » Thu 10. Nov 2016, 19:59

Hi,

Is there a LIN solution for the linux environment? drivers/api etc...?

M.Maidhof
Support
Support
Posts: 1753
Joined: Wed 22. Sep 2010, 14:00

Re: LIN solution for Linux?

Post by M.Maidhof » Fri 11. Nov 2016, 15:04

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

altran
Posts: 14
Joined: Sat 5. Nov 2016, 07:11

Re: LIN solution for Linux?

Post by altran » Fri 11. Nov 2016, 19:01

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?

User avatar
PEAK-Support
Sales & Support
Sales & Support
Posts: 1646
Joined: Fri 10. Sep 2010, 19:34

Re: LIN solution for Linux?

Post by PEAK-Support » Sat 12. Nov 2016, 12:39

Please download the manual and the PCAN-Lin Protokoll Specification.
--------------------------------
PEAK-System Technik
Technical Support Team
support[at]peak-system.com
-------------------------------

altran
Posts: 14
Joined: Sat 5. Nov 2016, 07:11

Re: LIN solution for Linux?

Post by altran » Mon 5. Dec 2016, 23:30

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

User avatar
PEAK-Support
Sales & Support
Sales & Support
Posts: 1646
Joined: Fri 10. Sep 2010, 19:34

Re: LIN solution for Linux?

Post by PEAK-Support » Tue 6. Dec 2016, 15:55

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?
--------------------------------
PEAK-System Technik
Technical Support Team
support[at]peak-system.com
-------------------------------

Post Reply