Search found 5 matches

by sdelling
Tue 11. Oct 2022, 10:19
Forum: PLIN-API
Topic: SetSchedule returns errWrongParameterValue
Replies: 3
Views: 3820

Re: SetSchedule returns errWrongParameterValue

Hello,

I already suspected that it was something stupid on my side :) . Now it works.

Thanks!
by sdelling
Mon 26. Sep 2022, 13:32
Forum: PLIN-API
Topic: SetSchedule returns errWrongParameterValue
Replies: 3
Views: 3820

Re: SetSchedule returns errWrongParameterValue

I think I should register the frames before scheduling but the result is the same:

TLINFrameEntry fe;
fe.ChecksumType = cstEnhanced;
fe.Direction = dirPublisher;
fe.FrameId = 0x1E;
fe.Length = 8;
BYTE data[8] = {0x00, 0x00, 0xF8, 0xF8, 0xFF, 0xFF, 0xFF, 0xFF};
std::memcpy(&fe.InitialData[0], &data ...
by sdelling
Mon 26. Sep 2022, 10:53
Forum: PLIN-API
Topic: SetSchedule returns errWrongParameterValue
Replies: 3
Views: 3820

SetSchedule returns errWrongParameterValue

Hello,

I try to configure a Scheduling table for my PLin USB in C++ but cannot quite figure out what I am doing wrong:


TLINScheduleSlot schedule[3];

schedule[0].Delay = 10;
schedule[0].FrameId[0] = 0x1E;
schedule[0].Type = sltUnconditional;

schedule[1].Delay = 20;
schedule[1].FrameId[0 ...
by sdelling
Thu 15. Sep 2022, 15:13
Forum: Beta: LIN Device Driver for Linux
Topic: Unable to change/set data in scheduled frame
Replies: 3
Views: 7163

Re: Unable to change/set data in scheduled frame

Hi,

thanks for the reply. It seems the -r does the trick!

But I do not understand what response from slave has to do with receiving the correct data.
I use a different make of LIN adapter for reception so the filter was no problem.
by sdelling
Wed 14. Sep 2022, 11:51
Forum: Beta: LIN Device Driver for Linux
Topic: Unable to change/set data in scheduled frame
Replies: 3
Views: 7163

Unable to change/set data in scheduled frame

Hello,

I want to periodically send a frame so I schedule it but on the receiving side I only get empty frames.

This is what I do:

lin start master 19200 /dev/plin0
lin set pub-frm-entry 0x1E -d "0x0 0x0 0xF8 0xF8 0xFF 0xFF 0xFF 0xFF" -l 8 -e /dev/plin0
lin add unc-schd-slot 0 100 0x1E /dev/plin0 ...