Sie sind auf Seite 1von 6

LIN SYSTEM DESIGN PROJECT FOR MIRROR AND DOOR CONTROL IN CARS

NAME: ZEYD OKUTAN STUDENT ID: 172754 INSTRUCTOR: PROF. GUIDO ALBERTENGO SEMESTER: 2010/11 SUMMER

1. INTRODUCTION In advance there will be a design of LIN network for an automobile which needs basic controls of doors and mirrors functions. In order to control all the sensors and actuators, one main master, ECU (Engine Control Unit) will be needed in the center of all. In the design, 6 modules will be used in order to accomplish the control commands given by the users. Also the user manual will be defined. The system architecture will be defined as 4 modules for each door and 2 modules for each mirror. 2. MODULES Module 1(D1): This module will work for the front left door functions as windows updown actuators, mirrors, puddle lamp sensor for the open door, a switch for car lock (and also the open door sensor) and also the switches for all doors. Module 2(D2): Module will control the front right door functions which are related with window positioning sensors/actuators and also the door locks operations switch/sensors and also the puddle lamp Module 3(D3): Module will control the left rear functions which are related with window positioning sensors/actuators and also the door locks operations switch/sensors and also the puddle lamp Module 4(D4): Module will control the rear right door functions which are related with window positioning sensors/actuators and also the door locks operations switch/sensors and also the puddle lamp Module 5 (M1): This module will be functioning for the control of external mirror on the left. Module will control the lighting, open-close of mirrors and the lateral-vertical positioning of the mirror. Module 6(M2): ): This module will be functioning for the control of external mirror on the right. Module will control the lighting, open-close of mirrors and the lateralvertical positioning of the mirror.

3. USER MANUAL This section, the buttons and switches which are used by the occupants will be defined. a. Front Left (Driver): - 4 unit of window control switches - 1 switch to select the mirror (left-right) - 1 switch to turn the light on/off of the mirrors - 1 switch to flap the mirrors - 1 switch to move the mirror vertical direction - 1 switch to move the mirror horizontal direction - 1 switch to lock/unlock the drivers door - 1 switch to lock/unlock all the doors (child lock) b. Front Right & Rear Doors: - 1 switch (per each) to window control - 1 switch for lock/unlock the door

4. LIN NETWORK With the start of the engine, ECU will begin to send messages to the modules in order to get the position data from the sensors. These signals called Headers, this is System Status Check will examine if there is any request from the occupants. After each module gets the signal from the Master, Modules (Slaves) send the messages back. Header Status 000100 Front-Left Door Check 000010 Front-Right Door Check 000001 Rear-Left Door Check 000011 Rear-Right Door Check The headers are supposed to be 6 bites. There are some forbidden combinations which cannot be used. (111111-111110-111101-111100) Messages Thus, after the slaves check the status they will send Messages to the Master about data taken by sensors. Messages will be different for driver door and for the others:
st

1 Bit 2nd Bit 3rd Bit 4th Bit 5th Bit 6th Bit 7th Bit 8th Bit 9th Bit 10th Bit 11th Bit 12th Bit 13th Bit 14th Bit 15th Bit 16th Bit 17th Bit 18th Bit

Front Left Door (Drivers Controls) Front-Left Door Window Move Up Front-Left Door Window Move Down Front-Right Door Window Move Up Front-Right Door Window Move Down Rear-Left Door Window Move Up Rear-Left Door Window Move Down Rear-Right Door Window Move Up Rear-Right Door Window Move Down Door Sensor 0-Closed 1-Opened Flap the Mirrors 0-Open 1-Close Select the Mirrors 0-Left 1-Right Mirror Lights 0-Light off 1-Light on Move Mirror Up Move Mirror Down Move Mirror Left Move Mirror Right Unlock/Lock the Front-Left Door 0-Unlock 1-Lock Unlock/Lock All the Doors (Child Lock) 0-Unlock 1-Lock

This message contains 18 bites of 24 bites which is 3bytes in total


4

1 Bit 2nd Bit 3rd Bit 4th Bit

st

Front Right or Rear Doors Door Sensor 0-Closed 1-Opened Window Move Down Window Move Up Lock/Unlock the Door 0-Unlock 1-Lock This message contains 4 bites of 8 bites total 1 Byte for Each

Commands Messages consists information about the buttons and sensors. After the Master (ECU) has all the messages from the modules, it can send signals called Commands to the modules for actuation. For the commands, every slave does not need to read all the commands in order to response quickly, in fact they only read the headers in the command and then they read the related command. So, a list of headers in commands can be made for grouping them. Group 1 The Commands about Window Movements (with Header 000111) Group 2 The Commands about Locking and Puddle Lights (with Header 000110) Group 3 The Commands about Mirrors (with Header 000101) Then we can group the commands:
st

1 Bit 2nd Bit 3rd Bit 4th Bit

Group -1 (Windows) (000111) Select Front/Rear Windows Select Left/Right Windows Move the Window Upwards Move the Window Downwards 1 Byte (4 Bites of 8)

0-Front 1-Rear 0-Left 1-Right

1 Bit 2nd Bit 3rd Bit 4th Bit 5th Bit 6th Bit 7th Bit 8th Bit

st

Group 2 (Locks & Puddle) (000110) Front Left Door Lock/Unlock 0 Close 1 - Open Front Right Door Lock/Unlock 0 Close 1 - Open Rear Left Door Lock/Unlock 0 Close 1 - Open Rear Right Door Lock/Unlock 0 Close 1 - Open Front Left Puddle Light 0 Off 1 - On Front Right Puddle Light 0 Off 1 - On Rear Left Puddle Light 0 Off 1 - On Rear Right Puddle Light 0 Off 1 - On 1 Byte (8 Bites of 8)

1 Bit 2nd Bit 3rd Bit 4th Bit 5th Bit 6th Bit 7th Bit

st

Group 3 (Mirrors) (000101) Flapping the Mirrors Lighting the Mirrors Selecting the Mirror Move Up Move Down Move Left Move Right 1 Byte (7 Bites of 8 Bites)

0 Close 1- Open 0 Off 1 - On 0 Left 1 - Right

5. PROGRAMMING OF CONTROLLER ECU will control the operations in a circulating algorithm. If the response time of the slave is considered as 10ms at most, the loop can be described in some steps:
#1 #2 #3 #4 #5 #6 #7 #8 #9 #10 #11 #12 #13 #14 : Start of ECU : Send Header 1 (000100) for Front-Left Door Check : Wait 10 ms : Send Header 1 (000010) for Front-Right Door Check : Wait 10 ms : Send Header 1 (000001) for Rear-Left Door Check : Wait 10 ms : Send Header 1 (000011) for Rear-Right Door Check : Wait 10 ms : ECU considers all the data (messages) coming from the Doors : Send Header (000111) to all the Door Modules (D1-D2-D3-D4) for Windows : Send Header (000110) to all the Door Modules (D1-D2-D3-D4) for Locks & Puddles : Send Header (000101) to all the Mirror Modules (M1-M2) for Mirrors : Restart the Circulation

Das könnte Ihnen auch gefallen