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.
Trying to receive LIN messages from one PLIN-USB in slave mode to a master PLIN-USB
Re: Trying to receive LIN messages from one PLIN-USB in slave mode to a master PLIN-USB
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
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
Re: Trying to receive LIN messages from one PLIN-USB in slave mode to a master PLIN-USB
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.
I'm wondering if the messages need to come back to master in the same way it was scheduled.
Re: Trying to receive LIN messages from one PLIN-USB in slave mode to a master PLIN-USB
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
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
Re: Trying to receive LIN messages from one PLIN-USB in slave mode to a master PLIN-USB
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. Is there a way to have them send with their own delays? Similar to this capture from a lin bus. I would like my PLIN to send 0x2B with a 25ms delay and 0x28/ 0x2A to send with a 100ms delay.
Thank you!
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. Is there a way to have them send with their own delays? Similar to this capture from a lin bus. I would like my PLIN to send 0x2B with a 25ms delay and 0x28/ 0x2A to send with a 100ms delay.
Thank you!