VanLiveConnect icon indicating copy to clipboard operation
VanLiveConnect copied to clipboard

Fuel in liters is not displayed

Open maltsevvv opened this issue 1 year ago • 3 comments

Hello, cool project. Thank you. Can you tell me the fuel in liters is not displayed, oil temperature.

20240821_191555 20240821_184208

log1 log2 log3

And how to correctly set a constant temperature, speed, time

Now I did this

		case "mfd_temperature_unit":
		{
			let map =
			{
				// "FAHRENHEIT": "set_units_deg_fahrenheit",
				"CELSIUS": "set_units_deg_celsius"
			};

		case "mfd_distance_unit":
		{
			let map =
			{
				//"MILES_YARDS": "set_units_mph",
				"KILOMETRES_METRES": "set_units_km_h"
			};
			
		case "mfd_time_unit":
		{
			let map =
			{
				"24_H": "set_units_24h",
				//"12_H": "set_units_12h"
			};

maltsevvv avatar Aug 21 '24 18:08 maltsevvv

Hi, I'm afraid I do not understand the issue nor the solution you are proposing. Please read: https://en.wikipedia.org/wiki/Wikipedia:Reference_desk/How_to_ask_a_software_question .

0xCAFEDECAF avatar Aug 22 '24 20:08 0xCAFEDECAF

My data changes spontaneously, while driving: From Celsius to Fahrenheit and back km to mil back.

I'm asking what should I change so that the data is always displayed in Celsius and km?

maltsevvv avatar Aug 23 '24 06:08 maltsevvv

Ah ok. I think your issue is that you have too many packets with CRC errors (74.309% see log2). Then some packets are interpreted incorrectly. Unfortunately, I cannot reproduce this issue myself. You may want to tinker with the bit timing values in the VanBus driver, inside function nBitsTakingIntoAccountJitter.

0xCAFEDECAF avatar Aug 23 '24 07:08 0xCAFEDECAF