Trying to receive LIN messages from one PLIN-USB in slave mode to a master PLIN-USB

Windows® Compatible Software for Displaying LIN Messages
Post Reply
fgalvan
Posts: 6
Joined: Wed 20. Mar 2024, 16:08

Trying to receive LIN messages from one PLIN-USB in slave mode to a master PLIN-USB

Post by fgalvan » Wed 20. Mar 2024, 16:16

Hello,

I am currently trying to create a passthrough of a LIN bus through a STM32 microcontroller. I am able to send the headers from the master PLIN-USB to the slave PLIN-USB and have the correct data published onto the frames. Once the message is complete, I see the correct message received in the buffers of my STM32 but when I transmit them, I mostly get junk at the master node.

I am not sure if its a timing issue on my part since I'm using UART, or if I am causing collisions with other frames. I am aware the master has a schedule table and I wonder if I need to be transmitting the message from the STM32 in a specific order.

My main issue is sending back the complete message to the master node, I have the correct frame in my buffers. I am just unsure of where to look for the issue. Any help would be appreciated.

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

Re: Trying to receive LIN messages from one PLIN-USB in slave mode to a master PLIN-USB

Post by M.Maidhof » Thu 21. Mar 2024, 09:51

Hi,

in a LIN system only one master is allowed who initiate the communication using a scheduler for subscriber and publisher frames. Please read LIN specification for more details on how LIN is working.

regards

Michael

fgalvan
Posts: 6
Joined: Wed 20. Mar 2024, 16:08

Re: Trying to receive LIN messages from one PLIN-USB in slave mode to a master PLIN-USB

Post by fgalvan » Thu 21. Mar 2024, 15:10

I understand the master is initiating communication with the slave by sending headers. My slave node will publish data to the header. My issue is that, I cant receive the completed message back to the master through an STM32 microcontroller using uart.

I'm wondering if the messages need to come back to master in the same way it was scheduled.

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

Re: Trying to receive LIN messages from one PLIN-USB in slave mode to a master PLIN-USB

Post by M.Maidhof » Thu 21. Mar 2024, 15:37

Hi,

yes, the master only sends the header/ID (subscriber), and your LIN slave has to put in the data in the same message.

But this is not really related to our PCAN or PLIN hardware devices, for which this forum is made for. You should better ask in a STM or LIN forum for help.

regards

Michael

fgalvan
Posts: 6
Joined: Wed 20. Mar 2024, 16:08

Re: Trying to receive LIN messages from one PLIN-USB in slave mode to a master PLIN-USB

Post by fgalvan » Mon 1. Apr 2024, 16:37

I figured out my problems related to my microcontroller.

Now I am wondering how to set specific delays for a frame on PLIN view. When I set a delay for a frame, it just sums all the delays together.
Screenshot 2024-04-01 073051.png
Screenshot 2024-04-01 073051.png (162.34 KiB) Viewed 2986 times
Is there a way to have them send with their own delays? Similar to this capture from a lin bus.
Screenshot 2023-11-21 121315.png
Screenshot 2023-11-21 121315.png (51.02 KiB) Viewed 2986 times
I would like my PLIN to send 0x2B with a 25ms delay and 0x28/ 0x2A to send with a 100ms delay.
Thank you!

Post Reply