Calculate CANbus Message Time Delta

  • Software
  • Calculate CANbus Message Time Delta
Gage Edwards

Posted on 16.04.2023 16:54

Hello,


I'm wondering if there is a way to calculate the period of time between receiving CANbus messages. For example, I'm working with a message that is periodically transmitted at 8ms, but sometimes it hitches or has excessive jitter. Is there a way to calculate that so that I can visualize it inside of Dewesoft? Right now I have to use Vehicle Spy 3 to keep an eye on it.


thanks,

Gage Edwards

Gregor Šmit

Posted on 18.04.2023 13:22

Dear Gage,


thank you for reaching out to us. It is possible to calculate the time difference between CAN channels. To achieve this you will need to create a time-stamp channel with Timebase set to the CAN message that you would like to calculate the time difference. Then you simply create a formula where the current value, of the time-stamp channel, is subtracted from the previous value.


In the attachment is an image of such two formulas to calculate the timestamp difference of V_SPEED2 channel.


Kind regards.


Attached files:
Sam Hammond

Posted on 02.05.2024 23:53

WooHoo! I've been trying to validate that certain CAN messages are active. This might help.

Brandon Teague

Posted on 08.05.2024 18:39

What are some things you changed during the CAN validation process?

Gregor Šmit

Posted on 09.05.2024 10:36

@Brandon Teague The question you posted is quite general. Would you please be so kind and please explain what you are doing and what you would like to achieve.


Kind regards.

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