Page 1 of 1

Retrieve Slave data from unconditional scheduler frames

Posted: Wed 6. Apr 2022, 09:54
by davidd
Hi!
I recently started developing a LIN-Master Script for communication with our LIN-Device.
I've attached a working test-script (please enable attaching .sh files in this forum).
Master Data is sent out on FrameID 32, Slave Data should be received on Frames 33-38.
I can confirm the functionality by attaching a logic-analyser: our device writes the Slave Data into the correct frames.
My problem is that I cannot retrieve this data from the scheduled frames.
I tried

Code: Select all

./lin get sfe
to display the subscriber frames and also dumped all the memory transfered by ioctl - I only received 0's.
How do I implement this?

Thank you in advance!
- David

Re: Retrieve Slave data from unconditional scheduler frames

Posted: Wed 6. Apr 2022, 14:55
by S.Grosjean
Hi,

To read data written by the slave, please use:

Code: Select all

$ linread /dev/plin0
after having started the scheduler like you do. See also "linread --help" for a list of available options of the display format.

Regards,