Bimmerpost
3
/
4 Series
BMW Garage BMW Meets Register Today's Posts
Technical Topics DIYs and Coding Discussions G20 EU spec Welcome Light

Post Reply
 
Thread Tools Search this Thread
      05-17-2023, 12:28 AM   #23
TheNine90
Banned
578
Rep
2,047
Posts

Drives: bmw
Join Date: Aug 2021
Location: Workshop

iTrader: (0)

The flm data for right and left is always the same. It might be the wiring that differentiates them.
For the sweeping right to left, does coding using ECE typecode do anything?
Appreciate 0
      05-17-2023, 01:36 AM   #24
yamanote
New Member
yamanote's Avatar
Canada
10
Rep
29
Posts

Drives: F86 X6M
Join Date: Nov 2011
Location: Vancouver BC

iTrader: (0)

Quote:
Originally Posted by TheNine90 View Post
The flm data for right and left is always the same. It might be the wiring that differentiates them.
For the sweeping right to left, does coding using ECE typecode do anything?
Coding US headlights with ECE typekey results in the DRLs no longer working, so no animation at all. The only thing that lights up are the light strips under the main beam.
__________________
2023 M340i / 2016 X6 M / 2010 M5
Appreciate 0
      05-17-2023, 02:03 AM   #25
TheNine90
Banned
578
Rep
2,047
Posts

Drives: bmw
Join Date: Aug 2021
Location: Workshop

iTrader: (0)

Is there a G20 with US headlights that have sweeping right to left lights?
Appreciate 0
      05-17-2023, 02:49 AM   #26
yamanote
New Member
yamanote's Avatar
Canada
10
Rep
29
Posts

Drives: F86 X6M
Join Date: Nov 2011
Location: Vancouver BC

iTrader: (0)

Quote:
Originally Posted by TheNine90 View Post
Is there a G20 with US headlights that have sweeping right to left lights?
No, the US welcome animation just briefly pulses brighter then back to normal brightness.
__________________
2023 M340i / 2016 X6 M / 2010 M5
Appreciate 0
      05-17-2023, 03:32 AM   #27
TheNine90
Banned
578
Rep
2,047
Posts

Drives: bmw
Join Date: Aug 2021
Location: Workshop

iTrader: (0)

So it might be a hardware limitation? Or there might be some more coding in the BDC?
Appreciate 0
      05-17-2023, 04:53 AM   #28
MichaelNRW
B58 Power
MichaelNRW's Avatar
492
Rep
628
Posts

Drives: 05/2022 M340i xDrive Touring
Join Date: Feb 2018
Location: Germany

iTrader: (0)

Garage List
Quote:
Originally Posted by TheNine90 View Post
So it might be a hardware limitation? Or there might be some more coding in the BDC?
Probably something like that.

Can someone provide me a G20 LCI US ncd via PM?
I´ll compare it to the files i got.
__________________
05/2022: BMW G21 ///M340i xDrive Touring - Individual Verde Ermes
Appreciate 0
      05-24-2023, 01:17 PM   #29
Ghostsf30
New Member
Ghostsf30's Avatar
36
Rep
17
Posts

Drives: f30 320i
Join Date: Feb 2023
Location: Los Angeles

iTrader: (0)

Garage List
2023 BMW 330i  [7.50]
Quote:
Originally Posted by MichaelNRW View Post
Probably something like that.

Can someone provide me a G20 LCI US ncd via PM?
I´ll compare it to the files i got.
Do you still need the US LCI files?
Appreciate 0
      05-26-2023, 11:42 AM   #30
MichaelNRW
B58 Power
MichaelNRW's Avatar
492
Rep
628
Posts

Drives: 05/2022 M340i xDrive Touring
Join Date: Feb 2018
Location: Germany

iTrader: (0)

Garage List
Quote:
Originally Posted by Ghostsf30 View Post
Do you still need the US LCI files?
Yes
__________________
05/2022: BMW G21 ///M340i xDrive Touring - Individual Verde Ermes
Appreciate 0
      05-26-2023, 09:31 PM   #31
Ghostsf30
New Member
Ghostsf30's Avatar
36
Rep
17
Posts

Drives: f30 320i
Join Date: Feb 2023
Location: Los Angeles

iTrader: (0)

Garage List
2023 BMW 330i  [7.50]
Quote:
Originally Posted by MichaelNRW View Post
Yes
Could you tell me which files / what data you need exactly so I can send it over
Appreciate 0
      05-27-2023, 03:32 AM   #32
MichaelNRW
B58 Power
MichaelNRW's Avatar
492
Rep
628
Posts

Drives: 05/2022 M340i xDrive Touring
Join Date: Feb 2018
Location: Germany

iTrader: (0)

Garage List
Quote:
Originally Posted by Ghostsf30 View Post
Could you tell me which files / what data you need exactly so I can send it over
It´s the FLM2 called CAFD_00006DF0_XYZ_XYZ_XYZ.ncd
XYZ represent the version of the software on your FLM2 ECU.
__________________
05/2022: BMW G21 ///M340i xDrive Touring - Individual Verde Ermes
Appreciate 0
      05-27-2023, 05:11 PM   #33
Ghostsf30
New Member
Ghostsf30's Avatar
36
Rep
17
Posts

Drives: f30 320i
Join Date: Feb 2023
Location: Los Angeles

iTrader: (0)

Garage List
2023 BMW 330i  [7.50]
Quote:
Originally Posted by MichaelNRW View Post
It´s the FLM2 called CAFD_00006DF0_XYZ_XYZ_XYZ.ncd
XYZ represent the version of the software on your FLM2 ECU.
Hopefully I did this right lol. Here’s the link with the ncd file:

https://mega.nz/file/fEEHzbzS#1AAt0S...3IgGRXv6M5GhrY
Appreciate 1
      05-29-2023, 04:10 PM   #34
mrpingu
Lieutenant
181
Rep
593
Posts

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

iTrader: (0)

Garage List
Just chiming in with a suggestion, did anyone take a look what the data contains?

I have been looking at a older FLM / FLE module and I found the following matrix. Maybe it is kind of the same matrix?

LedChannel follows a sequence with intensities for a period of time


LedChannel
Intensity
TimeDelta
RampType???


I have a older vehicle but it might be something that gives some understanding for the data in the staging arrays
Attached Images
 
Appreciate 2
      07-09-2023, 02:36 PM   #35
Hyperion42
New Member
11
Rep
6
Posts

Drives: G21
Join Date: Jul 2023
Location: Germany

iTrader: (0)

I am also trying to make sense of the data, but am stuck. For example, the pre LCI G20 data seems to have 5 individual transitions, while in the video I can only see 4 different ones:
1. HB and LB onat low brightness
2. DRL on
3. HB and LB high brightness
4. HB and LB to medium brightness
Can someone identify a 5. transition?

@Michael, for the videos that you posted, did you only change the Staging1 amd Staging2 values to the other models, or the entier data of the ecu? I am wondering where the mapping in the data to the modules are...
Appreciate 0
      07-10-2023, 03:20 AM   #36
MichaelNRW
B58 Power
MichaelNRW's Avatar
492
Rep
628
Posts

Drives: 05/2022 M340i xDrive Touring
Join Date: Feb 2018
Location: Germany

iTrader: (0)

Garage List
Quote:
Originally Posted by Hyperion42 View Post
@Michael, for the videos that you posted, did you only change the Staging1 amd Staging2 values to the other models, or the entier data of the ecu? I am wondering where the mapping in the data to the modules are...
I only changed the Staging1 and Staging2 values.
The rest of the data isn´t compatible to the PreLCI because the LCI and G8x have more controllable parts of the headlights.
e.g. the tubes can be controlled independently while the PreLCI can only control them together.
__________________
05/2022: BMW G21 ///M340i xDrive Touring - Individual Verde Ermes
Appreciate 0
      07-11-2023, 11:43 AM   #37
Hyperion42
New Member
11
Rep
6
Posts

Drives: G21
Join Date: Jul 2023
Location: Germany

iTrader: (0)

I want to share my findings, not because they are a particularly breakthrough in decoding the data, but to maybe get someone else to think along with me, and because no one else posted anything in this direction.

To start with something easy/small, I looked at the Pre-LCI G20 data first. Here is the data structure I could come up with to parse the entire staging data (1 and 2 combined):

Code:
struct data
{
    u8 a;
    u8 b;
};

struct section
{
    u8 id;
    be u16 num_data_entries;
    data entries[num_data_entries];
};

section data[while(std::mem::read_unsigned($, 1))] @ 0x00;
I am using ImHex for this, but apart from last line it should be pretty readable for everyone. This data structure can be applied to all of the staging data I've seen here, G20 LCI for both EU and US, as well as G82, and seems to fit quite well. However, as one can easily tell, the data is not really well defined and we have still no idea what is going on here.

Going back to G20 Pre-LCI then to look at the data. There are 5 sections in total, the first section has 15 entries. The first 6 entries are as follows:

Code:
[50, 0], [50, 0] ,[25, 0], [25, 0], [25, 0], [63, 100], ...
My thinking is: As we see the same pairs repeating multiple times, the mapping to specific light modules can't be part of the data. I believe Michael already confirmed that by showing us that coding different staging data from other models, and then comparing the result with the actual model (G21 Pre-LCI with G20 LCI vs the real G20 LCI) seems to play some part of the animation on the wrong light modules.

Furthermore, in all data that has been posted here the first section for all of them has 15 entries - roughly matching the number of LM mappings Michael posted. Looking at the number of entries for all sections, we see for the G20 Pre-LCI: 1: 15, 2: 5, 3: 3, 4: 3, 5: 6

With that I believe the mapping to the light module is actually the index into the entries array. The first section initializes all 15 channels, while the other sections might only specify data for the channels that changed.

Looking then at the first 6 entries of each section we see the following:

Code:
1: [50,  0], [50,  0] ,[25,  0], [25,  0], [25,  0], [63, 100], ...
2: [50,  0], [50,  0], [25,  0], [12, 20], [60, 67]
3: [60, 43], [59, 20], [12,  0]
4: [50,   0], [12, 20], [60, 46]
5: [50, 46], [50, 46], [50, 46], [60, 43], [59, 20], [12,   0]
Could it be that the first part of each tuple is the timedelta, and the second one is the intensity? I don't know, at this point I am stuck as I can't properly match this with the video that Michael posted. Maybe someone else has an idea? Maybe this is also going into a totally wrong direction.

If someone wants to contribute, it would help to create annotations for Michaels videos: Which parts of the lights change, for how long do they change, and when do they start changing. With that we could try to make more sense of the data.
Appreciate 2
BLK.G20209.50
      07-11-2023, 01:20 PM   #38
MichaelNRW
B58 Power
MichaelNRW's Avatar
492
Rep
628
Posts

Drives: 05/2022 M340i xDrive Touring
Join Date: Feb 2018
Location: Germany

iTrader: (0)

Garage List
Awesome work!
__________________
05/2022: BMW G21 ///M340i xDrive Touring - Individual Verde Ermes
Appreciate 0
      07-11-2023, 03:26 PM   #39
mrpingu
Lieutenant
181
Rep
593
Posts

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

iTrader: (0)

Garage List
Cool! Would be also nice to time every module so we know atleast roughly the milliseconds each module is on. Would someone be able to do a 120fps video then we can calculate the timedelta more exactly.

Edit:
LWR movement could also be part of the staging data because in older modules the stepper motors in the lights can also be controlled, with the WELL_LWR_SEQ values. In the older FLE module you have the following
LWR_SEQ_DIR - Move up(1) or down (0) for SEQ_T if no HOLD is associated
LWR_SEQ_HOLD - duration of no movement
LWR_SEQ_SPEED - Speed V1 or V0 defined in LWR_SEQ_Vx
LWR_SEQ_T - duration of sequence step

Last edited by mrpingu; 07-11-2023 at 03:43 PM..
Appreciate 0
      07-11-2023, 03:54 PM   #40
mrpingu
Lieutenant
181
Rep
593
Posts

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

iTrader: (0)

Garage List
Quote:
Originally Posted by TheNine90 View Post
The flm data for right and left is always the same. It might be the wiring that differentiates them.
For the sweeping right to left, does coding using ECE typecode do anything?
In older FLE modules this is addressed through different WELL_SEQ values, there is a WELL_SEQ_LE and WELL_SEQ_RE both headlights contain both values but this makes it makes it possible to have separate sequences for right and left headlight
Appreciate 0
      07-12-2023, 11:56 AM   #41
MichaelNRW
B58 Power
MichaelNRW's Avatar
492
Rep
628
Posts

Drives: 05/2022 M340i xDrive Touring
Join Date: Feb 2018
Location: Germany

iTrader: (0)

Garage List
Quote:
Originally Posted by mrpingu View Post
Cool! Would be also nice to time every module so we know atleast roughly the milliseconds each module is on. Would someone be able to do a 120fps video then we can calculate the timedelta more exactly.
I could try that on the weekend.
__________________
05/2022: BMW G21 ///M340i xDrive Touring - Individual Verde Ermes
Appreciate 0
      08-09-2023, 09:20 PM   #42
alep85
First Lieutenant
179
Rep
300
Posts

Drives: 2011 335i, 2023 M340i xDrive
Join Date: Oct 2011
Location: United States

iTrader: (1)

Quote:
Originally Posted by MichaelNRW View Post
I could try that on the weekend.
Any luck? This seems far more complex than even I initially thought, but appreciate all of the research this thread has done to-date!
Appreciate 1
npcars47.50
      08-20-2023, 06:28 PM   #43
Melosium
New Member
Melosium's Avatar
Morocco
14
Rep
17
Posts

Drives: 2021 BMW G20 318d
Join Date: Sep 2022
Location: Casablanca

iTrader: (0)

Garage List
I'm following the thread. You guys are doing an amazing job here.
Appreciate 0
      08-22-2023, 10:59 AM   #44
MichaelNRW
B58 Power
MichaelNRW's Avatar
492
Rep
628
Posts

Drives: 05/2022 M340i xDrive Touring
Join Date: Feb 2018
Location: Germany

iTrader: (0)

Garage List
I´m sorry... my time is very limited currently.
I´ll try to do a recording soon.
__________________
05/2022: BMW G21 ///M340i xDrive Touring - Individual Verde Ermes
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 06:15 AM.




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