E90Post
 


 
BMW 3-Series (E90 E92) Forum > E90 / E92 / E93 3-series Technical Forums > BMW Coding > Is there a way to code speedometer correction??



Reply
 
Thread Tools Search this Thread
      05-08-2012, 12:11 AM   #1
PyroZona
Registered
PyroZona's Avatar
United_States
7
Rep
4
Posts

Drives: '10 e60 M5 - Carbon Schwarzmet
Join Date: May 2012
Location: Phoenix, AZ

iTrader: (0)

Is there a way to code speedometer correction??

Hi all,

Ok, I know about the coding to deactivate the 5-10 mph over actual reading on the speedometer, what I'm asking about is the possibility of a way to compensate for changing the sidewall height of the tires. I have the stock sizes on my '08 E60 M5 now (285/35-19), but will be changing to 305/30-19s on the rear and 275/35-19s on the front. I know this will cause the speedometer to read low, but not sure exactly how low. I'm hoping that perhaps just re-enabling the BC_DIGITAL_V_KORRECTUR would match the error in the reading, but won't be holding my breath. So if there's a way to code in an exact correction for the speedo, I'd love to know how to do it.

Anyone?

Thanks,

Peter
__________________
Unfortunately, common sense isn't really that common after all!!
Appreciate 0
      05-08-2012, 11:24 AM   #2
Bendercle
Banned
United_States
17
Rep
263
Posts

Drives: 2007 335xi 6MT
Join Date: Jan 2012
Location: North Shore MA

iTrader: (3)

Nettodat coding maybe... I know DVD in motion was solved this way and that also referred to specific speed. I'm too busy right now but someone could try looking at what bits the Korrectur line changes and see if it refers to an actual speed.
Appreciate 0
      05-08-2012, 02:00 PM   #3
GenePoole
Lieutenant
46
Rep
541
Posts

Drives: 2012 F30 328i
Join Date: Apr 2010
Location: Brighton, IL

iTrader: (0)

BC_V_KORRECTOR only has two values: aktiv and nicht_activ with a binary mask so nothing to be gained there. I've played around with K_ZAHL_TACHO and K_ZAHL_TACHO_KOMPL with the normal values (wert_0x, etc) but there may be some room to play with these using NETTODAT coding. They both have WORD values (2 bytes) with FF mask so there's a lot of possibility there (0 to 65535 or -32768 to 32767 if it's considered a signed WORD). K_ZAHL_TACHO* values are supposedly for calibrating the speedometer for different tire sizes.

If I get a chance tonight, I'll play around and see what happens.
Appreciate 0
      05-08-2012, 11:16 PM   #4
GenePoole
Lieutenant
46
Rep
541
Posts

Drives: 2012 F30 328i
Join Date: Apr 2010
Location: Brighton, IL

iTrader: (0)

It does work. I've got some calculating to do, but I changed it by a huge amount just to test and I was showing 52 mph on my GPS and 84 on the speedometer.

K_ZAHL_TACHO_KOMPL seems to be the 1's compliment of the K_ZAHL_TACHO value. I'm not sure what the relationship is of the two, but I deliberately made the K_ZAHL_TACHO_KOMPL a 1's compliment of my modified K_ZAHL_TACHO value before flashing it to the KOMBI.

The original value at address 00300201 was B2, 5E, 4D, A1. Converted to little endian, it gives 5EB2 (24242) and A14D (-24243). I changed them to 4E20 (20000) and B1DF (-20001) or in the NETTODAT.TRC file, 20, 4E, DF, B1. It looks like I need to use a higher value for a lower speedometer reading. I'll try this again with like 26000/-26001 and see what it gives. From these, I should be able to calculate a proper ratio and a correction.
Appreciate 0
      05-09-2012, 12:14 AM   #5
everlast
Malt'm'n'Salt'm
Canada
16
Rep
229
Posts

Drives: 2008 328xiT
Join Date: Jul 2008
Location: Ottawa, ON

iTrader: (0)

A - fucking - mazing.

I'll bite: does it affect the odometer? If so, we've just found one new way to be leery of a low mileage car.
Appreciate 0
      05-10-2012, 08:34 AM   #6
GenePoole
Lieutenant
46
Rep
541
Posts

Drives: 2012 F30 328i
Join Date: Apr 2010
Location: Brighton, IL

iTrader: (0)

Quote:
Originally Posted by everlast View Post
A - fucking - mazing.

I'll bite: does it affect the odometer? If so, we've just found one new way to be leery of a low mileage car.
From what I've read, the odometer is affected by the K_ZAHL_WEG, and K_ZAHL_WEG_KOMPL values. I haven't touched them.
Appreciate 0
      05-10-2012, 08:39 AM   #7
GenePoole
Lieutenant
46
Rep
541
Posts

Drives: 2012 F30 328i
Join Date: Apr 2010
Location: Brighton, IL

iTrader: (0)

My first attempt at a solution. My speedo reads about 63 mph when my gps says 60 mph. I changed the K_ZAHL_TACHO word (from default of 24232) to 24800 (0x60E0 -- and the KOMPL to -24801/0x9F1F ) then drove to work this morning with my Android GPS in the dock. It made about a 1 mph difference at 60 mph (still 2 mph high) so I'll need to bump that a little higher. I'll try 26000 when I get a chance and see where that puts me.
Appreciate 0
      05-10-2012, 11:18 AM   #8
Motastic
Major
Motastic's Avatar
United_States
89
Rep
1,356
Posts

Drives: E92 335!
Join Date: Apr 2011
Location: Arlington, TX

iTrader: (4)

if this gets done, would love to fix it on my damm car, i hate seeing incorrect speed
Appreciate 0
      05-11-2012, 08:31 AM   #9
GenePoole
Lieutenant
46
Rep
541
Posts

Drives: 2012 F30 328i
Join Date: Apr 2010
Location: Brighton, IL

iTrader: (0)

I noticed an unwanted side effect: the digital speed display always reads zero. I'm going to give up on this approach. Although it seems to work in that it definitely changes the way the speedometer registers actual speed, I still think there must be a simple toggle that accomplishes the same thing. The digital speed reading is always spot on (when BC_DIGITAL_V_KORRECTUR is set to nicht_aktiv) so there must be some simple way of getting this information. I'd rather have a good bc_digital speed and the speedo off than the other way around. The digital readout is always where my eyes go when I see a speed trap anyway.
Appreciate 0
      03-19-2014, 01:44 AM   #10
tboudre
Private
tboudre's Avatar
United_States
3
Rep
85
Posts

Drives: 2011 LeMans Blue 335xi E90 N55
Join Date: Mar 2014
Location: United States

iTrader: (0)

Got my speedometer within reason! Used the advice here and set my parameters to 25000,-25001. About 1 mph under, I'll try 25500,-25501 next, but good enough for tonight. Here's my nettodat line: B 00300200,0009,00,A8,61,57,9E,AA,5F,55,A0.
BC_DIGITAL_KORREKTUR is aktiv and BC_V_KORREKTUR is nicht_aktiv and the analog agrees with the digital and both agree with the GPS, and the cruise control agrees.

Numbers are working, but did anyone ever think that these may be floating point numbers? Is it documented that they are endian?

Oh, and no problems on mine with the digital speedometer. All works fine.

Last edited by tboudre; 03-19-2014 at 01:49 AM.. Reason: afterthought
Appreciate 0
      03-19-2014, 02:11 PM   #11
tboudre
Private
tboudre's Avatar
United_States
3
Rep
85
Posts

Drives: 2011 LeMans Blue 335xi E90 N55
Join Date: Mar 2014
Location: United States

iTrader: (0)

I know this topic looks like it has been beaten to death, but I still haven't found a solution that makes sense. If anyone has figured this out, please let me know before I pull my hair out! If I go with the little endian theory, I've got numbers that don't make much sense, but appear to be a random fudge factor. But, if I take the numbers in the order they are in, I get these numbers (As set from the factory):

K_ZAHL_TACHO = 45662
K_ZAHL_TACHO_KOMPL = 19873

Curiously, if you go to a tire calculator web site, http://www.csgnetwork.com/tireinfo4calc.html and enter in 225/40/18 tire size, the revolutions per km = 499.25 and the circumference is 78.81 inches = 2001.8 mm, which is curiously close to those values above (minus the decimal point, of course).
Appreciate 0
      03-19-2014, 03:04 PM   #12
tboudre
Private
tboudre's Avatar
United_States
3
Rep
85
Posts

Drives: 2011 LeMans Blue 335xi E90 N55
Join Date: Mar 2014
Location: United States

iTrader: (0)

If I go by my previous logic, I now have these values in the parameters:



43015/45662 = 0.94 * 67 mph = 63 mph. OK, this is the part that makes my head hurt.

Less rotations/mile = bigger tire = less rotations of wheel = less mph displayed.
So, while I'm indicating slower now where I was where 67 mph was actually about 65 mph, now 50 mph = 49 mph.

If I used 25500/-25501, by the little endian method I would have 639C and 9C63, oddly enough. Which would read as:
00300200,0009,00,9C,63,63,9C,AA,5F,55,A0

Which would translate to:
K_ZAHL_TACHO = 40035
K_ZAHL_TACHO_KOMPL = 22500

It so happens that this would be lower speed while increasing the little endian value, which would be very confusing.
Appreciate 0
      03-19-2014, 05:38 PM   #13
tboudre
Private
tboudre's Avatar
United_States
3
Rep
85
Posts

Drives: 2011 LeMans Blue 335xi E90 N55
Join Date: Mar 2014
Location: United States

iTrader: (0)

Coding try for tonight:

K_ZAHL_TACHO = 42000 = A4,10
K_ZAHL_TACHO_KOMPL = 21605 = 54,65

Assuming the second is the revolution distance and the first is the rev/km, I divided the original KOMPL number by the ration of the original rev number to the new number, since if my assumptions are correct, they are inversely proportional.
Appreciate 0
      03-20-2014, 01:24 AM   #14
tboudre
Private
tboudre's Avatar
United_States
3
Rep
85
Posts

Drives: 2011 LeMans Blue 335xi E90 N55
Join Date: Mar 2014
Location: United States

iTrader: (0)

I still don't have a clue what these numbers can be. I used all sorts. Sometimes they would work perfectly, sometimes the digital speedometer wouldn't work, sometimes the cruise control wouldn't work, sometimes I would get an error saying the speedometer was broken. I just jacked around with it until I got within about 0.5 km/h of the steady state GPS at 60 kph & I consider myself done. I switched over to metric: 1) smaller units = less change in speed between whole number clicks, since the display can't show tenths of a unit. Better for dialing in. 2) I can get to 100+ units without attracting too much attention from the law. 3) since it's a percentage, this also helps with identifying error.

Here are the number that are working now:
B 00300200,0009,00,A4,61,5B,9E,AA,5F,55,A0
This equates to 42081 taken word by word. For some reason, more often than not, I had success taking this number swapping the MSW & LSW (endian) (61A4 hex = 24996 dec), adding one, & negating (-24997 dec = 9E5B) then taking this value for the second words (5B,9E).
Appreciate 1
      03-24-2014, 02:07 PM   #15
dwells
ಠ_ಠ
dwells's Avatar
United_States
77
Rep
1,539
Posts

Drives: Monaco Blue 335i coupe
Join Date: Nov 2010
Location: New England

iTrader: (6)

Here's everything I've seen in KOMBI so far that appears to be referring to "corrections":
  • C0A_BBV_KORR_HA
  • C0A_BBV_KORR_VA
  • BC_V_KORREKTUR
  • BC_DIGITAL_V_KORREKTUR
  • UNTER_KORREKT_WERT_1
We know that BC_DIGITAL_V_KORREKTUR fixes the digital speed readout. One would think that BC_V_KORREKTUR would be responsible for analog speed readout, but I've heard it doesn't have an effect (perhaps there's another value that needs to be changed as well). I have no idea what the BBV HA and VA corrections are.

The one that catches my eye is UNTER_KORREKT_WERT_1 (German for under correct). There's a few different values available to play with. Might be worth fiddling with.
__________________
| 335i coupe | Monaco Blue | JB4 G5 ISO | Style 313M | Huper 40% tint | Aero lip | CSL trunk spoiler | M3 sideskirts
| Paint-matched grilles | Painted reflectors | GP Thunder II angel eyes | Smoked LED sidemarkers | Self-coded |
Appreciate 0
      05-01-2014, 10:59 PM   #16
tboudre
Private
tboudre's Avatar
United_States
3
Rep
85
Posts

Drives: 2011 LeMans Blue 335xi E90 N55
Join Date: Mar 2014
Location: United States

iTrader: (0)

Quote:
Originally Posted by dwells View Post
The one that catches my eye is UNTER_KORREKT_WERT_1 (German for under correct). There's a few different values available to play with. Might be worth fiddling with.
I didn't find this one in KOMBI of my E90. Is this another chassis or another module?
Appreciate 0
      05-02-2014, 12:26 PM   #17
dwells
ಠ_ಠ
dwells's Avatar
United_States
77
Rep
1,539
Posts

Drives: Monaco Blue 335i coupe
Join Date: Nov 2010
Location: New England

iTrader: (6)

Quote:
Originally Posted by tboudre View Post
I didn't find this one in KOMBI of my E90. Is this another chassis or another module?
I had a few trace files lying around I was searching through, I think it was KOMBI but it might not have been. I'll see if I can find the file. Just search on "KORREKT" and see what turns up, it's possible the function name is different.
__________________
| 335i coupe | Monaco Blue | JB4 G5 ISO | Style 313M | Huper 40% tint | Aero lip | CSL trunk spoiler | M3 sideskirts
| Paint-matched grilles | Painted reflectors | GP Thunder II angel eyes | Smoked LED sidemarkers | Self-coded |
Appreciate 0
      11-15-2016, 12:34 AM   #18
d1saster
Captain
Bulgaria
60
Rep
675
Posts

Drives: F15 N55 & E93 N51
Join Date: Oct 2012
Location: Las Vegas

iTrader: (0)

Code speedometer correction SUCCESS!

Quote:
Originally Posted by tboudre View Post
Here are the number that are working now:
B 00300200,0009,00,A4,61,5B,9E,AA,5F,55,A0
This equates to 42081 taken word by word. For some reason, more often than not, I had success taking this number swapping the MSW & LSW (endian) (61A4 hex = 24996 dec), adding one, & negating (-24997 dec = 9E5B) then taking this value for the second words (5B,9E).
I apologize for reviving an old thread but it seems that the above information is the solution for fixing the speedometer accuracy and maybe missed by many interested. Thanks to "tboudre" for finding the magic number for K_ZAHL_TACHO A4,61=24996. It appears that number has to be less than 25000 otherwise the cluster returns errors.

The procedure I used is with NCS Dummy. Added custom values to the following functions in my KOMBI module:

IMPULSES PER KILOMETER FOR SPEEDOMETER
C08_K_ZAHL_TACHO
Data= A4,61

IMPULSES PER KILOMETER FOR SPEEDOMETER (COMPLEMENTARY)
C08_K_ZAHL_TACHO_KOMPL
Data=5B,9E

And returned the following functions to aktiv:

ON-BOARD COMPUTER (OBC) SPEED CORRECTION
BC_V_KORREKTUR
aktiv

ON-BOARD COMPUTER (OBC) DIGITAL SPEED DISPLAY CORRECTION
BC_DIGITAL_V_KORREKTUR
aktiv

For smaller tire circumference here is a link to an Excel convertor to find the numbers that work. Remember K_ZAHL_TACHO has to be less than or equal to A4,61:

http://www.m5board.com/vbulletin/att...correction.xls
Appreciate 0
      11-16-2016, 11:00 AM   #19
CarAbuser
Lieutenant Colonel
CarAbuser's Avatar
United Kingdom
487
Rep
1,551
Posts

Drives: Z4 35i DCT / E92 335i DCT
Join Date: Jul 2010
Location: United Kingdom

iTrader: (0)

Quote:
Originally Posted by d1saster View Post
I apologize for reviving an old thread but it seems that the above information is the solution for fixing the speedometer accuracy and maybe missed by many interested. Thanks to "tboudre" for finding the magic number for K_ZAHL_TACHO A4,61=24996. It appears that number has to be less than 25000 otherwise the cluster returns errors.

The procedure I used is with NCS Dummy. Added custom values to the following functions in my KOMBI module:

IMPULSES PER KILOMETER FOR SPEEDOMETER
C08_K_ZAHL_TACHO
Data= A4,61

IMPULSES PER KILOMETER FOR SPEEDOMETER (COMPLEMENTARY)
C08_K_ZAHL_TACHO_KOMPL
Data=5B,9E

And returned the following functions to aktiv:

ON-BOARD COMPUTER (OBC) SPEED CORRECTION
BC_V_KORREKTUR
aktiv

ON-BOARD COMPUTER (OBC) DIGITAL SPEED DISPLAY CORRECTION
BC_DIGITAL_V_KORREKTUR
aktiv

For smaller tire circumference here is a link to an Excel convertor to find the numbers that work. Remember K_ZAHL_TACHO has to be less than or equal to A4,61:

http://www.m5board.com/vbulletin/att...correction.xls
I might give this a go on the weekend.

What size tyres do you currently have?
Appreciate 0
      02-19-2020, 04:51 PM   #20
TunafishE93
Major
424
Rep
1,152
Posts

Drives: BMW 335i
Join Date: Dec 2019
Location: NV

iTrader: (0)

Thanks, the numbers worked on bimmercode app, was running 4 mph off now only about half mile.. Going to link this tread.

https://www.e90post.com/forums/showthread.php?t=1696407

Last edited by TunafishE93; 02-19-2020 at 06:51 PM..
Appreciate 0
      02-19-2020, 05:10 PM   #21
Supermoon
Lieutenant
Supermoon's Avatar
South Korea
166
Rep
429
Posts

Drives: 2011 e92 335xi
Join Date: Aug 2015
Location: Seoul

iTrader: (6)

Garage List
Quote:
Originally Posted by TunafishE93 View Post
Thanks, the numbers worked on bimmercode app, was running 4 mph off now only about half mile.. Going to link this tread.
What tires are you running and what values did you use?
I downloaded the excel file but I'm clueless.
__________________
2011 E92 335i xDrive
Pure Stage 1 | DV+ & Inlet | Injen Intake | M3 Cowl | ETS 5" FMIC & CP | Aquamist HFS4 Direct Port | CSF Radiator | Wagner Catted DP | BMW PE | Apex FL-5 | Michelin PS4S | 335is Engine mount | SDW Monoball thrust arms | UUC Swaybars & SS Brake lines | Bilstein B8 | Dinan Springs & Shock mounts | Whiteline RSFB | M3 Rear Control arms | Manzo Toe arms | Wavetrac LSD
Appreciate 0
      02-19-2020, 06:55 PM   #22
TunafishE93
Major
424
Rep
1,152
Posts

Drives: BMW 335i
Join Date: Dec 2019
Location: NV

iTrader: (0)

I am running stock 225/35R19 (front)
255/30R19 (rear). Used A4,61 and 5B,9E shown above.. You can see in the link what it looks like in bimmercode.

I have no idea what these values mean but they worked..

Last edited by TunafishE93; 02-19-2020 at 07:03 PM..
Appreciate 0
Reply

Bookmarks


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT -5. The time now is 08:58 AM.




e90post
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
1Addicts.com, BIMMERPOST.com, E90Post.com, F30Post.com, M3Post.com, ZPost.com, 5Post.com, 6Post.com, 7Post.com, XBimmers.com logo and trademark are properties of BIMMERPOST