Tuesday, May 9, 2023

BMW F87 M2 coding

#Anti-theft alarm system / CANS2 control unit
Interior motion detect
    Active / Not active ;Module not present
OBD alarm
    Active / Not active ;Module not present

#Active Sound Design / ASD_01 control unit
Active Sound Design deactivation
    Deactivated

#Front Electronic Module / FEM_01 control unit
Convenient closing
    Active
Convenient closing with Comfort Access
    Active
Convenient closing with remote control
    Active
Convenient opening
    Active
Convenient opening with remote control
    Active
Door handle lights when reverse gear is engaged
    Active
Fold mirrors with convenient closing
    Active
Fold/unfold mirrors automatically
    Active
Unfold mirrors with convenient opening
    Active

#Rear Electronic Module / REM_01 control unit
Daytime running light tail lights inner part
    Active
Daytime running light tail lights outer part
    Not active
#Headunit / HU_NBT_EVO control unit
Video in motion
    Active
Camera warning
    Not active
Warning at start-up
    Not active

#Coding for 854 Variable Light Distribution / Front Electronic Module
3073 LaMaster1, Expert mode
LUT_FLC_FOWARDLIGHTING_Y
    9C,9C,9C (Both)
C_AFS_ENA
    Enable (Both)

#Coding for 5AP Glare-Free High Beam / Front Electronic Module
3073 LaMaster1, Expert mode
C_HBA_ENA
    Enable (Both)
C_HBA_GRHB_ENA
    Highway_Standby_AFS
C_HBA_SHUT_ENA
    Enable

BMW G20 M340i coding

#Body Domain Controller / BDC_BODY3 control unit
Daytime running light tail lights
    Active
Fold mirrors with convenient closing
    Active
Unfold mirrors with convenient opening
    Active

#Headunit / HU_MGU
Checkbox daytime running light
    Active / Not active ;Unchanged: Active
Video in motion
    Active
Camera warning
    Not active
Warning at start-up
    Not active

#Engine Sound Configuration / HU_MGU, expert mode
DISPLAY_CONFIGURABIITY_ENGINE_SOUND
    Active
DISPLAY_MENU_CONFIGURATION_ENGINE_SOUND
    Enabled

To close sunroof after 6 hours or when rain detected:
#Roof Control Center / FZD2 unit
1D93    Regenposition
    Geschlossen    ;move sunroof to close instead of tilt
1D93    Regenaktiv
    Active
1D93    Regenaktiv_robust
    Active
1D93    StatusRCTime
    Default

#Headunit / HU_MGU, expert
Regen_schlieseen    Active    ;display sunroof option in iDrive

Friday, October 26, 2018

Enable European rear fog light

Coded with BimmerCode and ODBLink MX Bluetooth connector on a Google Pixel 3 smartphone.

Enable Expert Mode in Bimmercode:

FEM_BODY / 3060 LCEMaster 1C / NSL_Verbaut = Verbaut

REM / 3063 LCELampMapping 2 / Mapping_Nebelschlussl_L_output = nsl_l
REM / 3063 LCELampMapping 2 / Mapping_Nebelschlussl_L_Function = nebelschlusslicht
REM / 3063 LCELampMapping 2 / Mapping_Nebelschlussl_R_output = nsl_r
REM / 3063 LCELampMapping 2 / Mapping_Nebelschlussl_R_Function = nebelschlusslicht



Image and information from:
F30 DIY US Headlight Switch Modification for Rear Fog Lights + Coding

Beauty shot

F87 M2 DCT, F30 335i M Sport SAT, E60 535i M Sport 6MT

Sunday, March 11, 2018

Decoding 8S4 and 5AP

In modern US-spec BMW vehicles, two options are decoded / disabled:
8S4 Decoding for variable light distribution (VLD)
5AP Decoding for no-dazzle high-beam assistance, or glare-free high beam assistance (GFHBA)

For vehicles with adaptive front lighting using Bi-Xenon or LED, VLD can be enabled. On a F87 M2 and a F30 335i, the following codes enable VLD:
  3073 LaMaster 1, FC
    Funktionen
      LUT_FLC_FORWARDLIGHTING_Y - F020_mit_AFS
      C_AFS_ENA = F020_enable


For vehicles with adaptive front lighting using LED and high-beam assistance (required), GFHBA can be enabled. On an F87 M2 and F30 335i, the following codes enable GFHBA:
FEM_BODY or FEM_01
  3073 LaMaster 1, FC
    Funktionen
      C_HBA_ENA = F020_enable

For vehicles with Bi-Xenon additional coding may be required, eg C_HBA_ADAPT_SHUT_ENA.

GFHBA assistance demo video / VLD information.


Tuesday, August 29, 2017

BMW AHL2 / Variable Light Distribution

Adaptive Headlight II (AHL2)


AHL2 was introduced with the E60. It requires Xenon HID or LED headlights. AHL2 varies the light distribution of the low beam.

Engine start
In switch position "A" (light switch in the switch position for automatic driving lights control) and terminal 15 ON, both headlights execute a reference run. That means: Both swivel modules are moved down slightly and then to the desired position (visible when the vehicle is parked in front of a wall: The light cone moves down and then back up). The desired position depends on the load status of the vehicle. When the engine is started, the headlight driver module initially controls the city light distribution.

City light distribution (Town light)
The city light distribution enables a broader illumination of the left roadway at low speeds. The left headlight is moved approximately 12° to the left and approximately 0.7° downwards. The city light distribution is activated from engine start to a driving speed of approximately 50 km/h.

Pertinent Parameter:
C_AFS_C_V_LO defaultwert = 28 (40 km/h, 25 mph)

Country road light distribution (Basic light)
The country road light distribution is the same as the standard low beam headlights. At a driving speed above approximately 50 km/h, the city light distribution is changed to the country road light distribution. Below a driving speed of approximately 50 km/h, the footwell module (FRM) changes the light distribution back to city. The country road light distribution represents the basic setting for the headlights.

Motorway light distribution
The motorway light distribution increases the range of the driving light. The left headlight is moved approximately 3.5° to the left and approximately 0.25° downwards. The right headlight is moved approximately 0.2° upward. If the vehicle speed exceeds 110 km/h for longer than 30 seconds, or if 140 km/h is exceeded, the footwell module switches on the motorway light distribution. If the vehicle speed drops below 110 km/h, the headlights are gradually reset, depending on the driving speed. This takes places in stages (110 km/h 100 km/h 90 km/h 80 km/h). The country road light distribution is activated again at 80 km/h and below.

Pertinent Parameters:
C_AFS_C_V_HI  defaultwert = 8C (140 km/h, 87 mph)
C_AFS_E_V_LO  defaultwert = 6E (110 km/h, 68 mph) (see timer below)
C_AFS_E1_V_LO defaultwert = 64 (100 km/h, 62 mph)
C_AFS_E2_V_LO defaultwert = 5A  (90 km/h, 56 mph)
C_AFS_E3_V_LO defaultwert = 50  (80 km/h, 50 mph)

C_AFS_E_T_MIN defaultwert = 1E (30s)
Comment = Counter Minimum for LightDistribution E

Fog light distribution
The fog light distribution is activated when the fog lights are switched on. The fog light distribution can be combined with the city light distribution and the country road light distribution. The left headlight is moved approximately 8° to the left and approximately 0.7° downwards. If the high beam headlights are switched on while the fog light distribution is active, the headlight moves to the basic setting, i.e. to the country road light distribution.

Pertinent Parameter:
C_AFS_EX_FOG_ENA defaultwert = 01
Comment = Switch to enable or disable motorway light distribution while fog lights are turned on (1 means motorway light distribution enabled).

(Source: http://f80.bimmerpost.com/forums/showpost.php?p=19916060&postcount=31)

In the US, vehicle option 8S4 Variable Light Distribution Decoding actually disables (de-code) VLD. Do not remove 8S4 as it may interfere with software update performed by a BMW Center.

Instead, VLD can be simply enabled via coding with NCS Expert or E-Sys (depending on your vehicle chassis.

For my E60, I use NCS Expert and NCS Dummy to enable VLD:
AHL2_ENABLE = aktiv

For the F30, I use E-Sys to enable VLD:
FEM_01
 3073 LaMaster 1, FC
  Funktionen
    LUT_FLC_FORWARDLIGHTING_Y = F020_mit_AFS
    C_AFS_ENA - F020_enable


I was curious about enabling option 5AC HBA High Beam Assistant since the vehicle appears to have the KaFAS camera. KaFAS is the Camera Assisted Driver Assistance System / Kameraunterstütztes Fahrerassistenzsystem. The KaFAS camera is utilized by the factory installed options:

  • 5AS Active Driving Assistant
  • 5AG Lane change warning / lane departure warning
  • 8TH Speed limit info
However, HBA requires the presence of the HBA switch on the light controller stalk:

Sunday, August 27, 2017

Upgrade the Navigation Map Data for NBT Head Units

BMW NBT head units use the map data type of "Next". This can be confirmed by viewing current map type in the CIC screen. Select Navigation, Options, and scroll to the end of the list and select "Navigation system version".

Acquire the E-Sys software and ENET cable for connection to the OBD2 port on the vehicle.

Use the E-Sys software to download the DE file from the vehicle. Save the file, eg DE.fsc.

Acquire the latest map data, eg Road Map NORTH AMERICA Next 2017-2. Determine the AppID and UpgradeID of the map data. Locate the file named Info_Map.imp in the upgrade media. Identify the AppID and UpgradeID.


Generate the FSC code.

Insert the USB media in the vehicle USB port and follow the onscreen upgrade prompt. The directory structure of the NBT navigation USB Media is used as it, without the need to move folders to the root.

Summary (updated Dec 16 2017):
NBT Map Code:
0xa8 North America Next

NBT Year Code:
0x2b 2017-2
0x2c 2018-1

Additional information for those interested in coding F-Series vehicles: