I need help writing Can ID

Hello, I need help with the steering wheel buttons and fuel level.

0X175
00 00 00 00 00 (∆∆) 00 00
01-(00000001)
02-(00000010)
04-(00000100)
05-(00000101)
10-(00010000) -16
20-(00100000) -32
30-(00110000) -48
40-(01000000) -64
50-(01010000) -80

(^^) = I wrote all the variables. There are 9 variables. Should I write them as startbits? When I write them, most of them overlap. I can’t figure out how to write them to make them fully functional.

0X375
00 (∆∆) 00 00 00 00 00 00
55
AA

55-85 ( fully loaded ) %0
AA-170 (empty) %100

I guess I couldn’t upload the pictures, I specified their status and location.

Try to just copy paste your image instead of upload.

Buttons could be something like this:

<frame id="0x175" readOnly="true">
   <value name="Button 1" offset="5" length="1" units="bit" conversion="V==1"></value>
   <value name="Button 2" offset="5" length="1" units="bit" conversion="V==2"></value>
   <value name="Button 3" offset="5" length="1" units="bit" conversion="V==4"></value>
   <value name="Button 4" offset="5" length="1" units="bit" conversion="V==5"></value>
   <value name="Button 5" offset="5" length="1" units="bit" conversion="V==16"></value>
   <value name="Button 6" offset="5" length="1" units="bit" conversion="V==32"></value>
   <value name="Button 7" offset="5" length="1" units="bit" conversion="V==48"></value>
   <value name="Button 8" offset="5" length="1" units="bit" conversion="V==64"></value>
   <value name="Button 9" offset="5" length="1" units="bit" conversion="V==80"></value>
</frame>
1 Like

Thank you, it’s working fine, my problem is gone.

I couldn’t adjust the fuel tank either, so I asked about that too.

0X375
00(^^)00 00 00 00 00 00
55
AA

55-85 (full) 0%
AA-170 (empty) 100%

(52-liter tank)

Fuel level could be close with:

<frame id="0x375" readOnly="true">
   <value targetId="170" offset="1" length="1" conversion="(V-85)*1.17647"> </value> <!-- Body Electronics, Fuel Level -->
</frame>
1 Like

55-85 (full) 0%
AA-170 (empty) 100%

55-85 (full) 100%
AA-170 (empty) 0%
I specified it incorrectly.

94-85/2 = 51
94-170/2 = 9
I’m trying, but it doesn’t work.

I need to do this in reverse. The tank is full at 85 and empty at 170.

Please use custom mapping

value name=“C_Fuel” offset=“1” length=“1” (any name)

next step

2 Likes