Transmit messages with Schedule table running

Windows® Compatible Software for Displaying LIN Messages
Post Reply
nuno
Posts: 6
Joined: Thu 30. Dec 2010, 11:20

Transmit messages with Schedule table running

Post by nuno » Thu 10. Mar 2011, 11:11

Hello all,

I have two LIN frames: A subscriber and a publisher.
The susbcriber frame gets information from the LIN slave I am using.
The publisher is needed to configure the LIN slave.

The susbcriber works OK in the schedule table (when running) and also in the transmit list (shedule not running)
If now I put both frames in the transmit list and send them (shedule not running), both appear in the receive list. Thats OK!

But, if I place the subscriber alone in a schedule table, run the table and transmit the publisher frame, this last never appears in the receive list and my LIN slave does not receive it.

Is'nt it possible to send frames while the schedule is running? Why not?

User avatar
P.Steil
Hardware Development
Hardware Development
Posts: 31
Joined: Fri 14. Jan 2011, 10:27

Re: Transmit messages with Schedule table running

Post by P.Steil » Thu 10. Mar 2011, 11:39

Hello nuno,

if the scheduler is not running, LIN-View Pro will send the frames from the transmitt list by using a direct call to LIN_Write(). This will send the frame as it is ( publisher: header + response; subscriber: header only).

If the scheduler is running, the bus timing depends on the schedule table processed by hardware. So the transmitt list will change to an publisher list on LIN-View Pro. In this case, LIN-View Pro is only used to update the publisher data on hardware.

To get your slave working try the following:
- Check the frame definitions ( Direction, frame length, checksum type etc.)
- Edit a schedule table that includes the subscriber ID and the publisher ID !. Otherwise your publisher frame will never be scheduled by the hardware cause the publisher ID is not part of the schedule table!

Regards
Philipp
--------------------------------------------
PEAK-System HW development Team
support@peak-system.com
phone: +49-6151-8173-20
fax: +49-6151-8173-29
--------------------------------------------

nuno
Posts: 6
Joined: Thu 30. Dec 2010, 11:20

Re: Transmit messages with Schedule table running

Post by nuno » Thu 10. Mar 2011, 11:47

It worked! Thanks a lot!

So, whenever I want to transmit a publisher with a schedule on, I need to include it in the schedule, yes?

User avatar
P.Steil
Hardware Development
Hardware Development
Posts: 31
Joined: Fri 14. Jan 2011, 10:27

Re: Transmit messages with Schedule table running

Post by P.Steil » Fri 11. Mar 2011, 11:56

Yes, that's correct. The schedule includes all IDs (send within headers) transfered on the bus. To "transmitt" data, just declare a ID of the schedule as publisher. The hardware (PCAN-USB Pro) now sends the response. Your slave "receives" data on this ID as subscriber.

Regards
Philipp
--------------------------------------------
PEAK-System HW development Team
support@peak-system.com
phone: +49-6151-8173-20
fax: +49-6151-8173-29
--------------------------------------------

seniorshan
Posts: 2
Joined: Thu 8. Dec 2016, 01:49

Re: Transmit messages with Schedule table running

Post by seniorshan » Thu 8. Dec 2016, 01:54

New response to an old post. I'm trying to get a publisher frame to send a desired response as part of a schedule table. I've tried SetFrameEntry as well as UpdateDataArray, but i still cannot get my data to appear on response side of the publisher frame.

My schedule table has 2 frames, a subscriber and publisher. The subscriber looks just fine and I'm able to get the response from the slave device...but simply cannot figure out how to set the data for the response of a publisher. What am I missing?

User avatar
P.Steil
Hardware Development
Hardware Development
Posts: 31
Joined: Fri 14. Jan 2011, 10:27

Re: Transmit messages with Schedule table running

Post by P.Steil » Thu 8. Dec 2016, 10:44

Hello,

when you configure the frame by LIN_SetFrameEntry() the frame config has a flag field. Check if
response is enabled by FRAME_FLAG_RESPONSE_ENABLE .

Regards
--------------------------------------------
PEAK-System HW development Team
support@peak-system.com
phone: +49-6151-8173-20
fax: +49-6151-8173-29
--------------------------------------------

seniorshan
Posts: 2
Joined: Thu 8. Dec 2016, 01:49

Re: Transmit messages with Schedule table running

Post by seniorshan » Thu 8. Dec 2016, 18:36

AH! It's like magic! Thank you so much :D

Post Reply