Page 1 of 1

GetFrameEntry in master mode

Posted: Mon 19. Jun 2023, 16:33
by Murat.Ocakturk
Hi,

I noticed a problem when SetFrameEntry and GetFrameEntry is used in master mode. Let me explain...
First of all, Device is "PCAN-USB Pro FD LIN".
PLIN Manager 3.0.1.227
PLIN Api 3.0.1.227
PLIN_USB 1.7.0.1122 (KMDF 1.15, x64, Universal)
I use .NET framework interface of PLIN api.

Scenario:
- Channel is initialized on "master" mode successfully.
- Then I call SetFrameEntry (frameId=1, Dir=Publisher, Len=3, InitialData={1,2,3,0,0,0,0,0}, Checksum=Enhanced, Flags=FRAME_FLAG_RESPONSE_ENABLE)
- Then I call GetFrameEntry (frameId=1)
-- The returned frame-entry is (Dir=Publisher, Len=3, InitialData={0,0,0,0,0,0,0,0}, Checksum=Enhanced, Flags=FRAME_FLAG_RESPONSE_ENABLE).
Only the InitialData is incorrect. Why? Is initialData not usable in master mode without schedular?

Thank you,
Murat

Re: GetFrameEntry in master mode

Posted: Mon 19. Jun 2023, 16:59
by M.Riedl
Hello,

Thanks for your question.
This behavior works as designed by the firmware of the PCAN-USB Pro FD LIN hardware.
The InitialData are not stored permanently in the hardware. The data is only used to determine the start values of the LIN frame.
For this reason, the InitialData cannot be read back with GetFrameEntry and is set to 0.

Regards
M.Riedl