GetFrameEntry in master mode

The free LIN software API (Application Programming Interface) for Windows® (only for usage with the PCAN-USB Pro CAN/LIN interface)
Post Reply
Murat.Ocakturk
Posts: 14
Joined: Wed 29. Jun 2016, 14:07

GetFrameEntry in master mode

Post by Murat.Ocakturk » Mon 19. Jun 2023, 16:33

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

M.Riedl
Software Development
Software Development
Posts: 34
Joined: Wed 22. Sep 2010, 13:28

Re: GetFrameEntry in master mode

Post by M.Riedl » Mon 19. Jun 2023, 16:59

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

Post Reply