Nissan CAN bus data help

Hi, everything is fine, thank you.
So far I haven’t been able to extract the odometer.
I got my hands on this formula, but didn’t find it suitable for Realdash XML calculation.

Frame : 5c5

Position in frame: B.8-D.1

Meaning: Car odometer absolute value (mileage)

Format: 24-bit unsigned integer

Unit: km / LSB

<frame id="0x5c5" size="8">
		<value targetId="310" units="km" startbit="??" bitcount="??" conversion="??"  ></value>   <!-- Odometer-->
	</frame>

Per your CAN log, odometer seems to read 386396km, is that right? If it is, you can read it with:

<frame id="0x5c5" endianness="big">
    <value targetId="310" offset="1" length="3"></value>   <!-- Odometer-->
</frame>
1 Like

Hello friends, I analyzed the entire 5c5 frame and did not find the value. Could it be that my car does not have this attribute? Nissan Tiida C11. analyzing your xml a lot of things are the same, but not the odometer.

TKS!

It could be that Nissan Tiida has different CAN layout than Qashqai and X-Trail that we are working on here.

By giving feedback, you can find it. I’m looking for targetId=“203”
Is it common for cars to have this attribute?

Yes, that’s correct. Thank you for your assistance.

<frame id="0x5c5" endianness="big">
    <value targetId="310" offset="1" length="3"></value>   <!-- Odometer-->
</frame>
1 Like

I managed to find some fuel values ​​for my Nissan. I believe they are the same as yours, but they are quite confusing. Low level decimal value 255, level 50% decimal value 0. For the next levels it starts a new count from 0 50% to 52% full tank. The RealDash fuel gauge goes down when it reaches half a tank and then goes up again. Any suggestions dev?

you can just make a conversation about the value you receive

conversion="v+or-or/‘’

2 Likes

May be this is not an important issue: when I open your file with Microsoft Edge, I get the following error:

This page contains the following errors:
error on line 85 at column 1: Extra content at the end of the document
### Below is a rendering of the page up to the first error.

Using Notepad I found that line 85 is the last one an it is duplicated with line 83:

*** /RealDashCAN *** (I can´t write the initial < and final > characters).

After deleting line 85, Microsoft Edge opens the file without errors.