PCAN-LIN Scheduled Master issue

RS-232 to CAN/LIN Interface
Post Reply
NicolasCelle
Posts: 2
Joined: Thu 11. Apr 2019, 12:31

PCAN-LIN Scheduled Master issue

Post by NicolasCelle » Thu 11. Apr 2019, 12:48

Hello,

My configuration is the one below:
The PCAN-LIN is the master and I want to control my device (LIN Valve) via CAN.

The LIN control frame is ID 0x12 and LIN status frame is 0x32.

I want to control the valve via scheduled frames every 100ms for each.

I cannot change the value of the control frame (0x12) when I am in scheduled mode which is optional in the user manual (page 18), how can we do it?

If I use the sheduled mode, I get the status frame from the valve (0x32). But I can't control it.
If I use the Gateway LIN - CAN mode, I can control it but I can't get the status even if I send the LIN header by CAN to get the status frame.

I attach the files of the scheduled and "Gateway LIN - CAN" configurations.

Thanks,
Nicolas
Attachments
Valve_CAN_LIN.pclin
"Gateway LIN - CAN" configuration for the valve
(43.58 KiB) Downloaded 265 times
Valve_CAN_LIN_Scheduled.pclin
Scheduled configuration for the valve
(43.75 KiB) Downloaded 261 times

M.Maidhof
Support
Support
Posts: 1307
Joined: Wed 22. Sep 2010, 14:00

Re: PCAN-LIN Scheduled Master issue

Post by M.Maidhof » Thu 11. Apr 2019, 13:54

Hi,

two solutions:

1. scheduler mode: you forgot to set the 0x12 to publisher. After setting this frame to publisher, use CAN ID 0x52 (0x12 +0x40) with 8 databytes to change the publisher data while the scheduler is active. See PCAN-LIN CT help for more details

2. non scheduler mode: configuration is correct, send CAN ID 0x12 with 8 data as publisher frame and 0x32 8 RTR to initiate a subscriber frame on LIN ID 0x32.

Next, please don´t post in the forum and send emails with the same topic, this just double our work..... :cry:

regards

Michael

NicolasCelle
Posts: 2
Joined: Thu 11. Apr 2019, 12:31

Re: PCAN-LIN Scheduled Master issue

Post by NicolasCelle » Fri 12. Apr 2019, 16:34

Hello,

Thank you for the reply, I made it run in scheduled mode.
My concern is when the CAN signal is stopped, is the default value sent by the LIN master? Because it seems that it's not doing that but maintaining the last data received by CAN.Is it the expected behavior? How can I change it?

I will only use the forum for it then.

Thanks,
Regards

M.Maidhof
Support
Support
Posts: 1307
Joined: Wed 22. Sep 2010, 14:00

Re: PCAN-LIN Scheduled Master issue

Post by M.Maidhof » Mon 15. Apr 2019, 09:41

Hi,

always the last received CAN data will be used as publisher data, until the PCAN-LIN will be restarted. Then it will use the default data stored in the config again.

regards

Michael

Post Reply