Analyse LSZ E46


Pour un projet a venir je vais faire une analyse du LSZ d’une E46.

C’est une analyse qui est en cours donc il peu y avoir des erreurs et des changements divers.

Pour commencer voici le schéma du LSZ non xénon typique avec les pins.

Pins

PinTypeDescription / Signal typeConnection /Measuring notes
1OSignal Rear left direction indicatorConnector Rear left direction indicator
2Not used
3OSignal, right auxiliary direction indicator lightFront right auxiliary flasher unit
4Not used
5OSignal, left brake lightTail light, left
6PTerminal 30Fuse F106
7OSignal, left low beam lightLeft low beam
8OSignal, right high beam lightRight high beam
9OInterface, lights switching centre, trailer moduleTrailer module
10OSignal Right brake lightConnector Right brake light
11OSignal, front right direction indicatorRight front turn signal indicator
12OSignal, left/right direction indicator switchTurn indicator/low beam selector
13OSignal, high beam/headlight flasher switchTurn indicator/low beam selector
14OSignal, rear load sensorLoad sensor, headlight vertical aim control
15PTerminal 15Fuse F32
16OSignal, centre brake lightCentre brake light
17OSignal, licence plate lightLicence plate lights
18OSignal, left auxiliary direction indicator lightFront left auxiliary flasher unit
19OSignal ground, front load sensorLoad sensor, headlight vertical aim control
20Not used
21I/OK-bus signalK-bus connector
22OSignal, front load sensorLoad sensor, headlight vertical aim control
23OSignal, +5 V front load sensorLoad sensor, headlight vertical aim control
24OSignal, hazard warning switchHazard warning/central locking switch
25EBrake lightConnector Brake light
26OSignal, +5 V rear load sensorLoad sensor, headlight vertical aim control
27ETerminal RFuse F9
28OSignal, fog light relay activationFog light relay
29OSignal Outer right tail lightConnector Outer right tail light
30OSignal Outer left tail lightConnector Outer left tail light
31PGroundGround connector
32PGroundGround point
33PTerminal 30Fuse F107
34OSignal, right low beam lightRight low beam
35OSignal, left high beam lightLeft high beam
36Not used
37Not used
38Not used
39OSignal, headlight vertical aim control Q22 motor, leftActuator, headlight vertical aim control, left
40OSignal, headlight vertical aim control Q11 motor, leftActuator, headlight vertical aim control, left
41OSignal, headlight vertical aim control Q12 motor, leftActuator, headlight vertical aim control, left
42OSignal, headlight vertical aim control Q21 motor, leftActuator, headlight vertical aim control, left
43OSignal Rear right direction indicatorConnector Rear right direction indicator
44OSignal, front right parking lightRight parking light
45OSignal, front left parking lightLeft parking light
46OSignal ground, rear load sensorLoad sensor, headlight vertical aim control
47OSignal Locator lightingConnector, instrument and locator lighting
48OSignal, lamp in hazard warning switchHazard warning/central locking switch
49OSignal, rear fog lightBoot lid lamp, left RHD: Boot lid lamp, right
50OSignal, front left direction indicatorFront left turn signal indicator
51OSignal, headlight vertical aim control Q22 motor, rightActuator, headlight vertical aim control, right
52OSignal, headlight vertical aim control Q11 motor, rightActuator, headlight vertical aim control, right
53OSignal, headlight vertical aim control Q12 motor, rightActuator, headlight vertical aim control, right
54OSignal, headlight vertical aim control Q21 motor, rightActuator, headlight vertical aim control, right

Fonctions

  • Contrôle des ampoules extérieures
  • Test des ampoules extérieures
  • Stockage du kilométrage

KBus

Les commandes sont composées comme suit:

  • Calculateur source
    • E8: RLS
    • D0: LCM
    • 5B: IHKA
    • 80:IKE
    • ….
  • Longueur du paquet
  • Destination
    • BF: Golbal
    • E8: RLS
    • D0: LCM
    • 5B: IHKA
    • 80:IKE
    • ….
  • Commande
    • 01: Device status request
    • 0C: Vehicule control
    • 27: MID display request
    • 53: Vehicule data request
    • ….
  • Données
  • Checksum
    • XOR de tous les Bits précedents.

Exemple de commandes

CommandData BINDesc
 D0 07 BF 5B 00 00 00 00 330000 0000 0000 0000 0000 0000 0000 0000LCM  –> GLO : Lamp status: All_Off  All_OK
 D0 07 BF 5C FF FF 00 00 341111 1111 1111 1111 0000 0000 0000 0000LCM  –> GLO : Light dimmer: Data=”FF FF 00 00″
 D0 07 BF 5C FF FF FF 00 CB1111 1111 1111 1111 1111 1111 0000 0000LCM  –> GLO : Light dimmer: Data=”FF FF FF 00″
 D0 10 80 54 41 5A 19 27 80 06 21 41 2C 00 00 24 EC 33LCM  –> IKE : Vehicle data status: VIN XXXXXXX; Total dist 156900 kms; SI-L 3000 litres since last service; ; SI-T 9452 days since last service
D0 03 3F A0 4C0       LCM  –> DIA : Diagnostic command acknowledged
D0 03 80 10 430       LCM  –> IKE : Ignition status request
D0 03 80 1D 4E0       LCM  –> IKE : Temperature request
D0 04 3F A0 02 490000 0010      LCM  –> DIA : Diagnostic command acknowledged, Data=”02″    [ ]
D0 04 BF 02 01 680000 0001      LCM  –> GLO : Device status ready, after Reset
D0 07 BF 5B 00 00 00 00 330000 0000 0000 0000 0000 0000 0000 0000LCM  –> GLO : Lamp status, All_Off  All_OK
D0 07 BF 5B 00 00 00 3C 0F0000 0000 0000 0000 0000 0000 0011 1100LCM  –> GLO : Lamp status, All_Off Faulty: Tail_Right Tail_Left Low_Beam_Right Low_Beam_Left
D0 07 BF 5B 00 00 02 04 350000 0000 0000 0000 0000 0010 0000 0100LCM  –> GLO : Lamp status, All_Off Brake Faulty: Tail_Right
D0 07 BF 5B 00 00 02 0C 3D0000 0000 0000 0000 0000 0010 0000 1100LCM  –> GLO : Lamp status, All_Off Brake Faulty: Tail_Right Tail_Left
D0 07 BF 5B 00 00 02 3C 0D0000 0000 0000 0000 0000 0010 0011 1100LCM  –> GLO : Lamp status, All_Off Brake Faulty: Tail_Right Tail_Left Low_Beam_Right Low_Beam_Left
D0 07 BF 5B 00 10 02 0C 2D0000 0000 0001 0000 0000 0010 0000 1100LCM  –> GLO : Lamp status, All_Off Brake Faulty: Fog_Rear Tail_Right Tail_Left
D0 07 BF 5B 00 14 02 1C 390000 0000 0001 0100 0000 0010 0001 1100LCM  –> GLO : Lamp status, All_Off Brake Faulty: High_Beam Fog_Rear Tail_Right Tail_Left Low_Beam_Right
D0 07 BF 5B 00 16 02 1C 3B0000 0000 0001 0110 0000 0010 0001 1100LCM  –> GLO : Lamp status, All_Off Brake Faulty: Low_Beam High_Beam Fog_Rear Tail_Right Tail_Left Low_Beam_Right
D0 07 BF 5B 00 17 02 1C 3A0000 0000 0001 0111 0000 0010 0001 1100LCM  –> GLO : Lamp status, All_Off Brake Faulty: Park Low_Beam High_Beam Fog_Rear Tail_Right Tail_Left Low_Beam_Right
D0 07 BF 5B 00 17 02 3C 1A0000 0000 0001 0111 0000 0010 0011 1100LCM  –> GLO : Lamp status, All_Off Brake Faulty: Park Low_Beam High_Beam Fog_Rear Tail_Right Tail_Left Low_Beam_Right Low_Beam_Left
D0 07 BF 5B 00 17 0A 3C 120000 0000 0001 0111 0000 1010 0011 1100LCM  –> GLO : Lamp status, All_Off Brake Tail Faulty: Park Low_Beam High_Beam Fog_Rear Tail_Right Tail_Left Low_Beam_Right Low_Beam_Left
D0 07 BF 5B 00 57 0A 3C 520000 0000 0101 0111 0000 1010 0011 1100LCM  –> GLO : Lamp status, All_Off Brake Tail Faulty: Park Low_Beam High_Beam Fog_Rear Indicator_Right Tail_Right Tail_Left Low_Beam_Right Low_Beam_Left
D0 07 BF 5B 00 77 0A 3C 720000 0000 0111 0111 0000 1010 0011 1100LCM  –> GLO : Lamp status, All_Off Brake Tail Faulty: Park Low_Beam High_Beam Fog_Rear Indicator_Left Indicator_Right Tail_Right Tail_Left Low_Beam_Right Low_Beam_Left
D0 07 BF 5B 01 00 00 00 320000 0001 0000 0000 0000 0000 0000 0000LCM  –> GLO : Lamp status, Park  All_OK
D0 07 BF 5B 01 00 02 3C 0C0000 0001 0000 0000 0000 0010 0011 1100LCM  –> GLO : Lamp status, Park Brake Faulty: Tail_Right Tail_Left Low_Beam_Right Low_Beam_Left
D0 07 BF 5B 03 00 00 00 300000 0011 0000 0000 0000 0000 0000 0000LCM  –> GLO : Lamp status, Park Low_Beam  All_OK
D0 07 BF 5B 03 00 02 3C 0E0000 0011 0000 0000 0000 0010 0011 1100LCM  –> GLO : Lamp status, Park Low_Beam Brake Faulty: Tail_Right Tail_Left Low_Beam_Right Low_Beam_Left
D0 07 BF 5B 09 00 00 00 3A0000 1001 0000 0000 0000 0000 0000 0000LCM  –> GLO : Lamp status, Park Fog_Front  All_OK
D0 07 BF 5B 0B 00 00 00 380000 1011 0000 0000 0000 0000 0000 0000LCM  –> GLO : Lamp status, Park Low_Beam Fog_Front  All_OK
D0 07 BF 5B 0B 00 02 3C 060000 1011 0000 0000 0000 0010 0011 1100LCM  –> GLO : Lamp status, Park Low_Beam Fog_Front Brake Faulty: Tail_Right Tail_Left Low_Beam_Right Low_Beam_Left
D0 07 BF 5B 13 00 00 00 200001 0011 0000 0000 0000 0000 0000 0000LCM  –> GLO : Lamp status, Park Low_Beam Fog_Rear  All_OK
D0 07 BF 5B 13 00 02 3C 1E0001 0011 0000 0000 0000 0010 0011 1100LCM  –> GLO : Lamp status, Park Low_Beam Fog_Rear Brake Faulty: Tail_Right Tail_Left Low_Beam_Right Low_Beam_Left
D0 07 BF 5B 19 00 00 00 2A0001 1001 0000 0000 0000 0000 0000 0000LCM  –> GLO : Lamp status, Park Fog_Front Fog_Rear  All_OK
D0 07 BF 5B 19 00 02 3C 140001 1001 0000 0000 0000 0010 0011 1100LCM  –> GLO : Lamp status, Park Fog_Front Fog_Rear Brake Faulty: Tail_Right Tail_Left Low_Beam_Right Low_Beam_Left
D0 07 BF 5B 1B 00 00 00 280001 1011 0000 0000 0000 0000 0000 0000LCM  –> GLO : Lamp status, Park Low_Beam Fog_Front Fog_Rear  All_OK
D0 07 BF 5B 1B 00 00 3C 140001 1011 0000 0000 0000 0000 0011 1100LCM  –> GLO : Lamp status, Park Low_Beam Fog_Front Fog_Rear Faulty: Tail_Right Tail_Left Low_Beam_Right Low_Beam_Left
D0 07 BF 5B 1B 00 02 3C 160001 1011 0000 0000 0000 0010 0011 1100LCM  –> GLO : Lamp status, Park Low_Beam Fog_Front Fog_Rear Brake Faulty: Tail_Right Tail_Left Low_Beam_Right Low_Beam_Left
D0 07 BF 5C 0C 00 C0 00 F80000 1100 0000 0000 1100 0000 0000 0000LCM  –> GLO : Light dimmer, 12
D0 07 BF 5C 0C 03 00 00 3B0000 1100 0000 0011 0000 0000 0000 0000LCM  –> GLO : Light dimmer, Data=”0C 03 00 00″
D0 07 BF 5C 0C 03 FF 00 C40000 1100 0000 0011 1111 1111 0000 0000LCM  –> GLO : Light dimmer, Data=”0C 03 FF 00″
D0 07 BF 5C FF 3F FF 00 0B1111 1111 0011 1111 1111 1111 0000 0000LCM  –> GLO : Light dimmer, Data=”FF 3F FF 00″
D0 0F 3F A0 06 92 34 78 16 32 30 00 48 02 09 31 FELCM  –> DIA : Diagnostic command acknowledged, Data=”06 92 34 78 16 32 30 00 48 02 09 31″    [ ‚Äô4x 20 H  1]
D0 0F 3F A0 06 92 34 84 16 32 30 00 36 02 09 31 7CLCM  –> DIA : Diagnostic command acknowledged, Data=”06 92 34 84 16 32 30 00 36 02 09 31″    [ ‚Äô4‚Äû 20 6  1]

Lectures des entrées / sorties

Pour lire les états des broches il suffit d’envoyer une commande sur le KBus

3F 03 D0 0B E7

Le calculateur va répondre l’état de ces broches

D0 23 3F A0 10 50 FF FF 01 40 08 37 08 B0 00 00 00 00 00 3C 37 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 FA

Ecriture des entrées / sorties

Analyse d'un module LSZ de E46
Entrées
INPUT?
Rien80 00
Rien40 00
Warning ( FF 00 désactive)20 00
Rien10 00
Rien08 00
Rien04 00
Rien02 00
Rien01 00
Rien00 80
Rien00 40
Rien00 20
Rien00 10
COMMANDE. ANTIB AR SI 00 0200 08
COMMANDE. ANTIB AV SI 00 0200 04
COMMANDE. PLAQUE + PARK AV + ROUTE + FREIN AR00 02
COMMANDE. PLAQUE + PARK AV + FREIN AR00 01
Sorties
CLIGNO REP D 100%80 00 00 00 00 
CLIGNO AV D40 00 00 00 00 
CLIGNO AV G20 00 00 00 00 
STOP AR D10 00 00 00 00 
STOP AR G08 00 00 00 00 
RIEN04 00 00 00 00 
AV PARK D 100%02 00 00 00 00 
RIEN01 00 00 00 00 
RIEN00 80 00 00 00 
RIEN00 40 00 00 00 
PHARE D00 20 00 00 00 
PHARE G00 10 00 00 00 
AV PARK G 100%00 08 00 00 00 
ROUTE AV G00 04 00 00 00 
ROUTE AV D00 02 00 00 00 
RIEN00 01 00 00 00 
CLIGNO AR D00 00 80 00 00 
RIEN00 00 40 00 00 
CLIGNO AR G00 00 20 00 00 
ANTIB AR00 00 10 00 00 
RIEN00 00 08 00 00 
CLIGNO REP G 100%00 00 04 00 00 
PLAQUE00 00 02 00 00 
ANTIB AV00 00 01 00 00 
RIEN00 00 00 80 00
RIEN00 00 00 40 00
RIEN00 00 00 20 00
RIEN00 00 00 10 00
RIEN00 00 00 08 00
RIEN00 00 00 04 00
RIEN00 00 00 02 00
RIEN00 00 00 01 00
RIEN00 00 00 00 80
RIEN00 00 00 00 40
RIEN00 00 00 00 20
RIEN00 00 00 00 10
RIEN00 00 00 00 08
RIEN00 00 00 00 04
RIEN00 00 00 00 02
ROUTE AV G&D00 00 00 00 01
Light sensor
CLAIR00 00
OBSCURITÉE00 01
NUIT00 02

Ecriture des sorties

Il faut envoyer le résultat de la commande précédente avec les sources et destinations modifiées ainsi que la commande et évidemment les sorties a modifier.

Donc les sources, longueur et destination sont les suivantes:

3F 23 D0

La commande est celle-ci:

0C: Véhicule control

Exemples

Allumage du phare droit

3F 23 D0 0C 00 00 FF FF 00 20 00 00 00 B0 00 00 00 00 00 FF FF 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 50

Allumage des antibrouillards avant

3F 23 D0 0C 00 00 FF FF 00 00 01 00 00 B0 00 00 00 00 00 FF FF 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 71

Démo

Sur un pcb fait maison pour simuler toutes les ampoules extérieurs de la voiture.

Coding

Todo

Diagnostic

Todo