CAN heartbeat monitoring

Patrik Forsberg

Posted on 16.11.2018 08:36

I would like to monitore a heartbeat signal transmitted over can, signal is sent every 20ms and the value going from 0 - 256, counting up one step each message.

Dewesoft shall monitore the signal and if the counter dosent Count up or the message dosent arrive dewe shall set an DO.


Suggestions?


regards

Patrik



DEWESoft Support
Technical support
Posted on 28.11.2018 12:16

Hi,


we have made a setup file which can help you.


Attached files:
Patrik Forsberg

Posted on 11.12.2018 13:49

Thanks for the reply.


I dont get the setup to work, it seems that the Count up check is sample based, so if i stop sent the message the last samples are still valid and the condition for Count up are still valid. Also the can freqvency is sample based and will not detect if the CAN-bus is down.


Regards

Patrik


Primož Gorenšek
Automotive Application Engineer
Posted on 21.12.2018 12:36

Hi Patrick,


Please find attached a new setup. In math you have two statistics and a formula.


  1. TIMEBASE_20ms - statistics formula is used only to make an asynchronous channel with the same sample rate as your CAN channel.
  2. Channel/TIME OF MIN - Outputs the time of every sample of your CAN channel
  3. Samples_increasing - this formula compares if time of current CAN sample is bigger than the time of the previous sample. If there is no traffic (or no sample) on the CAN port then time is the same for current and previous sample and output of formula will be 0 instead of 1. If you need inverted output just switch 1 and 0 in the formula.


Best regards,

Primoz


Attached files:
Login to reply to this topic. If you don't have account yet, you can signup for free account .