Bimmerpost
3
/
4 Series
BMW Garage BMW Meets Register Today's Posts
Technical Topics DIYs and Coding Discussions Code cornering lights always on?

Post Reply
 
Thread Tools Search this Thread
      01-18-2022, 04:09 PM   #1
gnolivos
Captain
316
Rep
691
Posts

Drives: Various BMW
Join Date: Apr 2018
Location: US

iTrader: (0)

Not sure if this is a bad idea but since our m340i does not include fog lights, and I really like the close range flood they usually provide in all my previous vehicles, I was wondering if we could code the cornering lights to be always on at night as an alternative.
Thoughts?
__________________
Bimmercode best coding options (Basic and Advanced):
https://g20.bimmerpost.com/forums/sh...5#post29807925
Appreciate 0
      01-18-2022, 04:43 PM   #2
gnolivos
Captain
316
Rep
691
Posts

Drives: Various BMW
Join Date: Apr 2018
Location: US

iTrader: (0)

I happen to know @dmnc02 is the undisputed expert at light pattern coding. His inbox is full though .

If anyone knows how to reach out…
__________________
Bimmercode best coding options (Basic and Advanced):
https://g20.bimmerpost.com/forums/sh...5#post29807925
Appreciate 0
      01-18-2022, 06:38 PM   #3
gnolivos
Captain
316
Rep
691
Posts

Drives: Various BMW
Join Date: Apr 2018
Location: US

iTrader: (0)

Not exactly what Im after, but I found something interesting and I can confirm it works:

Normally the cornering lights will turn on ONLY if the low beams are active. Highbeam active will not allow the cornering lights to switch on during a turn etc.


But you can change this behaviour so that they work ALSO if highbeams are on:

change C_CLC_HIGHBEAM_DIS from DISABLE (0x01) to ENABLE (0x00)
Note: I think these tags are backwards in bimmercode to avoid confusion in the interface. 0x00 is usually enable. This is to avoid a double negative presumably LOL. Just select 0x00 regardless.
Appreciate 0
      04-06-2023, 04:49 PM   #4
mrpingu
Lieutenant
179
Rep
579
Posts

Drives: 2018 F48 X1 xDrive 18D
Join Date: Nov 2022
Location: Norway

iTrader: (0)

Garage List
Did you ever found a way to code this?
Appreciate 0
      04-06-2023, 04:50 PM   #5
gnolivos
Captain
316
Rep
691
Posts

Drives: Various BMW
Join Date: Apr 2018
Location: US

iTrader: (0)

Quote:
Originally Posted by mrpingu View Post
Did you ever found a way to code this?
Not beyond what I posted.
__________________
Bimmercode best coding options (Basic and Advanced):
https://g20.bimmerpost.com/forums/sh...5#post29807925
Appreciate 0
      04-11-2023, 02:46 AM   #6
mrpingu
Lieutenant
179
Rep
579
Posts

Drives: 2018 F48 X1 xDrive 18D
Join Date: Nov 2022
Location: Norway

iTrader: (0)

Garage List
Quote:
Originally Posted by gnolivos View Post
Not beyond what I posted.

I think I found a clue, still finding it out for my self but I am getting close for FLE. But some cars have LHM instead of FLE.

Anyway

If you have FLE
See post #29 of this thread: https://f30.bimmerpost.com/forums/sh....php?t=1304926

If you have LHM
https://f30.bimmerpost.com/forums/sh....php?t=1213278
Appreciate 1
gnolivos316.00
      04-11-2023, 12:36 PM   #7
Eljefe25
Private First Class
Eljefe25's Avatar
95
Rep
143
Posts

Drives: 2023 330i xdrive
Join Date: Dec 2022
Location: NorthEast

iTrader: (0)

Subscribing
Appreciate 0
      04-14-2023, 04:08 PM   #8
mrpingu
Lieutenant
179
Rep
579
Posts

Drives: 2018 F48 X1 xDrive 18D
Join Date: Nov 2022
Location: Norway

iTrader: (0)

Garage List
Yes!

I think cracked the code of the FLE module. It's actually the same as the LHM module.

If the Lightswitch is in A, most of the 'states' the system can be in are defined in the LmmA folder of the FLE ecu.

In the LmmB folder are the simpler modes a light can be in.


Step 1 is to define the LM_ID & LM_NAME values using lookup table.
By doing this we know which module in the headlight is controlled by a specific function.

In my case I get the following values
1. LB1 (Low beam 1)
2. LB2 (Low beam 2)
3. HB1 (High beam)
4. DLR1 (DRL angel eyes)
5. N/A
6. AZL (Eyebrow)
7. CL1 (Cornering Light module)


If we then look at the FDL for the DRL mode is you can see that the 4th byte is 07 and 6th byte is 04
Code:
DRL_Idx: F045Wert_F048_2G [03 03 03 07 03 04 03]
These values are another lookup to the LmmIdx rules. If your write everything out you will find that both 04 & 07
have intensity 100% but the only difference is the ErrorImpact.
If there is a error in case of 07, this module gets deactivated while for 04, it get ignored. So output wise it is the same.

So byte 4 is the DRL and byte 6 is the eyebrow. So in case the DRL is active either by Automatic determination or the light switch in that position, both the eyebrow & the rings are activated with 100% intensity.

If I wanted for example to activate the High Beam and Corner Light I should change the 3rd and 7th byte to a LmmIdx rule that has intensity that is not 0% for example to 04 aswell.


See here my sheet which is still WIP but might be useful for understanding

Now I don't know if G20 has 7 bytes or more as when I was searching for information I saw the old module had 10 bytes. And I can think that higher series have more advanced lights than the quite simple adaptive lights used in my X1.

Also note: I didn't yet test it on my car.

If someone is willing to send me a G20 NCD I can take a look if this theory / mapping looks the same for an G20.

Last edited by mrpingu; 04-14-2023 at 04:14 PM..
Appreciate 2
gnolivos316.00
      03-19-2024, 02:22 PM   #9
Calvindubois
Private First Class
Calvindubois's Avatar
United_States
41
Rep
100
Posts

Drives: 2023 BMW 330e LCI M - Sport
Join Date: Jul 2023
Location: Magnolia, Texas

iTrader: (0)

Garage List
Would really like this
Appreciate 0
      03-19-2024, 02:33 PM   #10
mrpingu
Lieutenant
179
Rep
579
Posts

Drives: 2018 F48 X1 xDrive 18D
Join Date: Nov 2022
Location: Norway

iTrader: (0)

Garage List
Send me the NCD of your light module and I can probably calculate the values.
Appreciate 1
      03-19-2024, 02:36 PM   #11
Calvindubois
Private First Class
Calvindubois's Avatar
United_States
41
Rep
100
Posts

Drives: 2023 BMW 330e LCI M - Sport
Join Date: Jul 2023
Location: Magnolia, Texas

iTrader: (0)

Garage List
Quote:
Originally Posted by mrpingu View Post
Send me the NCD of your light module and I can probably calculate the values.
Here are all my NCD’s
Let me know if there’s anything missing you need.
https://www.dropbox.com/scl/fo/466v2...xeys0h6gv&dl=0
Appreciate 0
      03-19-2024, 03:59 PM   #12
mrpingu
Lieutenant
179
Rep
579
Posts

Drives: 2018 F48 X1 xDrive 18D
Join Date: Nov 2022
Location: Norway

iTrader: (0)

Garage List
Quote:
Originally Posted by Calvindubois View Post
Here are all my NCD’s
Let me know if there’s anything missing you need.
https://www.dropbox.com/scl/fo/466v2...xeys0h6gv&dl=0
I haven't found how the matrix works on this ECU. It still uses some of the same but I haven't found out how the matrix is divided and which dimension the matrix and which is on the axes if you would map it out.

I however found out the following.
There are 17 LM names and made this table:
Name:  Skjermbilde 2024-03-19 215437.png
Views: 148
Size:  56.3 KB

The modes, like in the old module are gone, atleast the references but I expect the table to work somewhat the same.

If you look at the LMM1_data, there are repeating 00, 00, 00
__________________
Retrofits done: 2TB, 235, 313, 430, 459, 508, 5DP 322
Appreciate 1
      03-19-2024, 04:14 PM   #13
mrpingu
Lieutenant
179
Rep
579
Posts

Drives: 2018 F48 X1 xDrive 18D
Join Date: Nov 2022
Location: Norway

iTrader: (0)

Garage List
Quote:
Originally Posted by Calvindubois View Post
Here are all my NCD’s
Let me know if there’s anything missing you need.
https://www.dropbox.com/scl/fo/466v2...xeys0h6gv&dl=0
Can you please state which car you have?
US or EU
Pre LCI or LCI?
__________________
Retrofits done: 2TB, 235, 313, 430, 459, 508, 5DP 322
Appreciate 1
      03-19-2024, 04:32 PM   #14
Calvindubois
Private First Class
Calvindubois's Avatar
United_States
41
Rep
100
Posts

Drives: 2023 BMW 330e LCI M - Sport
Join Date: Jul 2023
Location: Magnolia, Texas

iTrader: (0)

Garage List
Quote:
Originally Posted by mrpingu View Post
can you please state which car you have?
Us or eu
pre lci or lci?
bmw g20 lci us
Appreciate 0
Post 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 11:45 PM.




g20
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