LIN-CAN Gateway with Data Conversion Logic

RS-232 to CAN/LIN Interface
Post Reply
kennon_m
Posts: 2
Joined: Tue 8. Jun 2021, 01:20

LIN-CAN Gateway with Data Conversion Logic

Post by kennon_m » Tue 8. Jun 2021, 19:45

I have a PCAN-LIN device that I'm setting up as a LIN master controlled by CAN RTR frames as mentioned in the how-to document. From what I understand, this appears to directly forward the exact raw data from CAN to LIN. Unfortunately, the CAN and LIN message definitions differ slightly (some have different logical/enumeration values, some have different offsets, etc.) so I can't directly forward the raw data and need to add some logic to perform data conversion in the middle. Is there a way to do this within the PCAN-LIN Config Tool, or is there a C/C++ API that we can use to flash custom software onto the PCAN-LIN device?

Thanks in advance!

M.Heidemann
Sales & Support
Sales & Support
Posts: 1083
Joined: Fri 20. Sep 2019, 13:31

Re: LIN-CAN Gateway with Data Conversion Logic

Post by M.Heidemann » Wed 9. Jun 2021, 11:37

Hello,

Thank you for your request.

This is not possible with the PCAN-LIN, the PCAN-LIN only offers
to enable a offest to IDs to be able to router between CAN and LIN, but
that is the extend of the possibilites of the PCAN-LIN.

To manipulate the data in a more involved manner you would need , for
example, a PCAN-Router (https://www.peak-system.com/PCAN-Router ... l?&L=1&l=1) that handles data manipulation on the CAN-Side,
before the CAN frame is relayed to the PCAN-LIN. The PCAN-Router allows you to freely manipulate the incoming frames to your requirements.

For more questions feel free to contact me again.

Best Regards

Marvin
---
Marvin Heidemann
PEAK-Support Team

kennon_m
Posts: 2
Joined: Tue 8. Jun 2021, 01:20

Re: LIN-CAN Gateway with Data Conversion Logic

Post by kennon_m » Tue 15. Jun 2021, 00:25

Alright thank you for the info! We'll use PCAN routers for the data manipulation on the CAN side as needed.

Thanks again for the info!

Post Reply