Calculate CANbus Message Time Delta
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
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: