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?
Transmit messages with Schedule table running
Re: Transmit messages with Schedule table running
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
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
--------------------------------------------
PEAK-System HW development Team
support@peak-system.com
phone: +49-6151-8173-20
fax: +49-6151-8173-29
--------------------------------------------
Re: Transmit messages with Schedule table running
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?
So, whenever I want to transmit a publisher with a schedule on, I need to include it in the schedule, yes?
Re: Transmit messages with Schedule table running
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
Regards
Philipp
--------------------------------------------
PEAK-System HW development Team
support@peak-system.com
phone: +49-6151-8173-20
fax: +49-6151-8173-29
--------------------------------------------
PEAK-System HW development Team
support@peak-system.com
phone: +49-6151-8173-20
fax: +49-6151-8173-29
--------------------------------------------
-
- Posts: 2
- Joined: Thu 8. Dec 2016, 01:49
Re: Transmit messages with Schedule table running
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?
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?
Re: Transmit messages with Schedule table running
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
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
--------------------------------------------
PEAK-System HW development Team
support@peak-system.com
phone: +49-6151-8173-20
fax: +49-6151-8173-29
--------------------------------------------
-
- Posts: 2
- Joined: Thu 8. Dec 2016, 01:49
Re: Transmit messages with Schedule table running
AH! It's like magic! Thank you so much 
