Page 2 of 2

Re: Slave node cannot receive the frame

Posted: Thu 2. Jul 2020, 09:49
by aguan.zhang
Hi Marvin,

the PCAN-USB Pro FD works well on Windows using PLIN-View Pro and
the PLIN-Driver works well on Ubuntu 16.04. Thanks very much for your supporting .

I have a new question.

I connect the PIN 4 to a real LIN device which can show PM25, and I update the LIN Frame data 0x38
in the slave mode using PLIN-View Pro, the PM25 can changing with setting value. please refer to the attachment.

But when i using the PLIN-Driver, my LIN device cannot receive my setting value when executing whether in slave node or master node:

Code: Select all

lin start master 19200 /dev/plin1
linwrite -i=0x38 -b="ff 0 0 0 0 0 0 0" -c=E -d=P /dev/plin1
or

Code: Select all

lin start slave 19200 /dev/plin1
linwrite -i=0x38 -b="ff 0 0 0 0 0 0 0" -c=E -d=P /dev/plin1
Does the slave mode support publishing data in PLIN-Driver ?

Thanks in advance.
BRs
Aguan

Re: Slave node cannot receive the frame

Posted: Thu 2. Jul 2020, 11:13
by M.Heidemann
Hello Aguan,

You have to create a frame entry, right now you are only sending the frame as is.
In order for your slave node to respond to subscriber frame it needs some information, here's how you do it:

1. (as a slave node) Set an entry for the publisher frame that will be sent out in response to the master subscriber frame:

Code: Select all

 lin set pub-frm-entry 0x38 --rsp-enable --cs-enhanced --len 8 /dev/plin0
Please make sure that you use

Code: Select all

--rsp-enable
when setting up frames, otherwise this frame will not be sent in response to subscriber frames.

Then you can chage the data of the frame like this:

Code: Select all

lin set frm-entry-data 0x038 --data "122 222 90 86 22 01 123 111" /dev/plin0
if you prefer to set the data as hex-values:

Code: Select all

 lin set frm-entry-data 0x38 --data "0x1A 0xBB 0x66 0xB2 0xFF 0xDD 0xFA 0xF3" /dev/plin0
Now your slave node will publish this frame in response to an subscriber frame with the appropiate data.

Please report back to me if this solved your issue.


Best Regards

Marvin

Re: Slave node cannot receive the frame

Posted: Fri 3. Jul 2020, 05:11
by aguan.zhang
Hi Marvin,

Thanks for your support.

The slave node can publish the frame data with your methods.

BRs
Aguan

Re: Slave node cannot receive the frame

Posted: Fri 3. Jul 2020, 09:13
by M.Heidemann
Hello Aguan,

You're welcome!

We appreciate your input, if you have any suggestions
regarding the documentation of certain aspects or functionality featured in the driver itself,
feel free to open up a thread in this forum.

Best Regards

Marvin