Page 1 of 1

More exact vehicle speed logging

Posted: November 5th, 2019, 9:59 am
by mituc
I'd like to know if it's possible to add one or even two decimals to the speed PID, if it is reported properly through the OBD bus.

Especially when logging in mph (which is 1.6x kmph) we see no increase in the vehicle speed when we start accelerating while the RPM (which given it nature is more accurately reported from a time relation standpoint) is increasing. Because of this the speed/RPM correlation is broken which leads to weird curves in torque/power analizing software such as VirtualDyno which may trick us into thinking we have clutch or wheel slip.

Re: More exact vehicle speed logging

Posted: November 6th, 2019, 6:38 am
by Ugnius @ VersaTune
The ECU returns vehicle speed as a single byte with 256 different values from 0 to 255, which corresponds to the speed in km/h. As a result, we cannot increase the accuracy of that.
The speed is calculated by the ABS control module and passed on to the ECU. The speed signal is filtered, that's why there is always a delay between the actual speed and reported speed. As far as I know, Virtual Dyno software doesn't use speed measurements at all. It calculates the speed from RPM and the gear ratio.

Re: More exact vehicle speed logging

Posted: November 14th, 2019, 9:19 am
by JohnnyT
Image

He is asking because he has been helping me with the tune and I keep seeing this in all my logs.

Re: More exact vehicle speed logging

Posted: November 14th, 2019, 6:20 pm
by mituc
Indeed, and we can't figure what's that abrupt line right before 3k and then after 4k rpm... and we don't want to make assumptions. It may look like a bit of clutch slip right between those RPM points or just something VD would react to form the logs, as the RPM/speed is kind of smooth, and so is the RPM and speed curve.
However sometimes RPM increases by 25-ish RPM between each line, sometimes by 50-ish RPM and that may cause it.

Re: More exact vehicle speed logging

Posted: December 3rd, 2019, 3:48 am
by equinox92
Ugnius @ VersaTune wrote:The ECU returns vehicle speed as a single byte with 256 different values from 0 to 255, which corresponds to the speed in km/h. As a result, we cannot increase the accuracy of that.
The speed is calculated by the ABS control module and passed on to the ECU. The speed signal is filtered, that's why there is always a delay between the actual speed and reported speed. As far as I know, Virtual Dyno software doesn't use speed measurements at all. It calculates the speed from RPM and the gear ratio.
Why depend on a value return from the ECU? Looking at the bus the vehicle speed is updated around every 20ms with an unsigned two byte value. This two byte value is divided by 100 and gives you speed in kph.

You could easily log a super fast vehicle speed with a decimal place of accuracy.

Re: More exact vehicle speed logging

Posted: December 3rd, 2019, 5:29 am
by Ugnius @ VersaTune
equinox92 wrote:Why depend on a value return from the ECU? Looking at the bus the vehicle speed is updated around every 20ms with an unsigned two byte value. This two byte value is divided by 100 and gives you speed in kph.

You could easily log a super fast vehicle speed with a decimal place of accuracy.
The vehicle interfaces that we support (J2534 and OBDLink) do not allow simultaneously querying control modules using a high level protocol like ISO 15765 and monitoring the CAN bus using a low level protocol like ISO 11898.

Re: More exact vehicle speed logging

Posted: December 3rd, 2019, 7:02 am
by equinox92
Ah, that makes sense to retain compatibility with all J2534 devices.