CN102777101A - Intelligent window controlling method based on linear (LIN) bus - Google Patents

Intelligent window controlling method based on linear (LIN) bus Download PDF

Info

Publication number
CN102777101A
CN102777101A CN2012101851312A CN201210185131A CN102777101A CN 102777101 A CN102777101 A CN 102777101A CN 2012101851312 A CN2012101851312 A CN 2012101851312A CN 201210185131 A CN201210185131 A CN 201210185131A CN 102777101 A CN102777101 A CN 102777101A
Authority
CN
China
Prior art keywords
front window
window
instruction
lin
byte
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN2012101851312A
Other languages
Chinese (zh)
Other versions
CN102777101B (en
Inventor
王建
王岩岩
刘钧
陈洪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Institute of Electrical Engineering of CAS
Beihang University
Original Assignee
Institute of Electrical Engineering of CAS
Beihang University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Institute of Electrical Engineering of CAS, Beihang University filed Critical Institute of Electrical Engineering of CAS
Priority to CN201210185131.2A priority Critical patent/CN102777101B/en
Publication of CN102777101A publication Critical patent/CN102777101A/en
Application granted granted Critical
Publication of CN102777101B publication Critical patent/CN102777101B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Power-Operated Mechanisms For Wings (AREA)
  • Lock And Its Accessories (AREA)

Abstract

The invention discloses an intelligent window controlling method based on a linear (LIN) bus, in particular to the control scheme of a single-master multi-slave LIN network structure that a left front window of a driver is used as a master node, and other windows are used as slave nodes. The method comprises 17 steps of sending an LIN message and 6 steps of receiving the LIN message, wherein LIN is an automobile communication protocol standard in a low-cost network, is a serial communication protocol, and can effectively support an automobile window distributed control structure; the left front window of the driver is used as the master node, other windows are used as the slave nodes, and the master node can be carried on a controller area network (CAN) of the whole automobile at the same time, so that wiring harness can be reduced, and the spending of the CAN network structure of the whole automobile is saved. The intelligent window controlling method has good practical value and wide application prospect in the technical field of vehicle-mounted bus.

Description

A kind of intelligent vehicle window control method based on the LIN bus
Technical field
The present invention relates to a kind of vehicle window control method based on the LIN bus, relate in particular to a kind of with the left front vehicle window of driver as host node, other three vehicle windows belong to vehicle-mounted bussing technique field as the control scheme from " single main many from " LIN network structure of node.
Background technology
Two stages have been experienced in the development of vehicle window.First stage: the power windows in this stage is one and independently controls system; Two kinds of forms of traditional hand-rail type and power windows are arranged; Rely on rigid line or mechanical connection between it and the control module,, make that the flexibility of system is not high because vehicle window control module line is too fat to move and loaded down with trivial details; The difficulty that has more increased maintenance and safeguarded, vehicle window and other vehicle electronic device in this stage do not have the information exchange ability basically simultaneously.Second stage: the vehicle window in this stage all is a power windows, and vehicle window controller is an intelligent node that is equipped on the Body Control network, also is intelligent vehicle window controller.Vehicle window controller is the same with other controller, and all the form with an intelligent node is equipped on the universal serial bus.Not only make the line of vehicle window control module simplify greatly; And the power-operated window system in this stage possesses very high flexibility, the more important thing is, it has possessed the traffic capacity with other control system; Information is provided for other module; Also can receive information, make common cooperation of each module make correct control to vehicle window in time, comprise running into obstruction decline function afterwards in the uphill process from other module.Current, the intelligent vehicle window controller that is equipped on the Body Control network has become main flow.
LIN is the automobile communication consensus standard in the low-cost network; Be a kind of serial communication protocol, it can effectively support the structure of the distributed control of automotive window, and with the left front vehicle window of driver as host node; Other three vehicle windows conduct is from node; Host node can be equipped on the car load CAN network simultaneously, not only can reduce wire harness, and practices thrift the spending of adopting car load CAN network structure.
The left front vehicle window button of present most of vehicle driver control panel can be controlled the up-down of other three vehicle windows; And the part vehicle has been equipped with functions such as key lock car; Function increase the increase that will inevitably bring wire harness, adopt the intelligent vehicle window cost of CAN network structure can increase greatly again, the present invention is just from reducing wire harness; Practice thrift the consideration of cost two aspects; Proposed a kind of intelligent vehicle window control method, defined LIN protocol transmission content, realized of the control of the left front vehicle window of driver other three vehicle windows based on the LIN bus.
Summary of the invention
The invention discloses a kind of intelligent vehicle window control method, specifically be meant the left front vehicle window of driver as host node based on the LIN bus, other three vehicle windows as from node the control scheme of " single main many from " LIN network structure.
A kind of intelligent vehicle window control method of the present invention based on the LIN bus, it comprises two aspect contents:
(1) send the LIN message, its concrete steps are following:
Step 1: initialization.The ID address of four vehicle windows of definition, left front vehicle window is 0x01, right front vehicle window is 0x02, left back vehicle window 0x04, right back vehicle window 0x08, key lock car ID address is 0x0F, no button is 0x00 by the empty ID of next transmission address; Define the instruction of four window liftings: 00 for stopping, and 01 for crawl rises, and 02 for crawl descends, and 11 be automatic rising, and 12 is automatic decline; Defined a kind of data fields data structure of LIN agreement, be specially: data fields 55, self ID, purpose ID, the left front window instruction of going up and down, the instruction of going up and down of right front window, the instruction of going up and down of left back window, the instruction of going up and down of right back window, verification and totally eight bytes; Wherein check and computational methods be: verification and=(0x55) ^ (left front window ID) ^ (purpose ID) ^ (left front window instruction) ^ (right front window instruction) ^ (left back window instruction) ^ (right back window instruction), wherein " ^ " be the step-by-step XOR, step 2 is gone in commentaries on classics;
Step 2: detect left front window keypad, left front window keypad is seen Fig. 3, changes and goes step 3;
Step 3: judge whether key lock car button is pressed, if then the 3rd of the LIN message the byte also is that purpose ID is 0x0F, changes and goes step 10 six, if not, changes and goes step 4;
Step 4: detect left front window button and whether be pressed,, change and go step 5, if not, then change and go step 7 if then the 3rd of the LIN message the byte also is that purpose ID is 0x01;
Step 5: whether left front window rising button is pressed, if, then judge be long by or short by; If long pressing, then the 4th of the LIN message the byte also is that left front window instruction is 0x01; If short pressing, then the 4th of the LIN message the byte also is that left front window instruction is 0x11; If left front window lifting key is not pressed, then changes and go step 6;
Step 6: whether left front window decline button is pressed, if, then judge be long by or short by; If long pressing, then the 4th of the LIN message the byte also is that left front window instruction is 0x02; If short pressing, then the 4th of the LIN message the byte also is that left front window instruction is 0x12; If left front window decline key is not pressed, then the 4th of the LIN message the byte also is that left front window instruction is 0x00, changes and goes step 10 six;
Step 7: detect right front window button and whether be pressed,, change and go step 8, if not, then change and go step 10 if then the 3rd of the LIN message the byte also is that purpose ID is 0x02;
Step 8: whether right front window rising button is pressed, if, then judge be long by or short by; If long pressing, then the 5th of the LIN message the byte also is that right front window instruction is 0x01; If short pressing, then the 5th of the LIN message the byte also is that right front window instruction is 0x11; If right front window lifting key is not pressed, then changes and go step 9;
Step 9: whether right front window decline button is pressed, if, then judge be long by or short by; If long pressing, then the 5th of the LIN message the byte also is that right front window instruction is 0x02; If short pressing, then the 5th of the LIN message the byte also is that right front window instruction is 0x12; If right front window decline key is not pressed, then the 5th of the LIN message the byte also is that right front window instruction is 0x00, changes and goes step 10 six;
Step 10: detect left back window button and whether be pressed,, change and go step 11, if not, then change and go step 13 if then the 3rd of the LIN message the byte also is that purpose ID is 0x04;
Step 11: whether left back window rising button is pressed, if, then judge be long by or short by; If long pressing, then the 6th of the LIN message the byte also is that left back window instruction is 0x01; If short pressing, then the 6th of the LIN message the byte also is that left back window instruction is 0x11; If left back window lifting key is not pressed, then changes and go step 12;
Step 12: whether left back window decline button is pressed, if, then judge be long by or short by; If long pressing, then the 6th of the LIN message the byte also is that left back window instruction is 0x02; If short pressing, then the 6th of the LIN message the byte also is that left back window instruction is 0x12; If left back window decline key is not pressed, then the 6th of the LIN message the byte also is that left back window instruction is 0x00, changes and goes step 10 six;
Step 13: detect right back window button and whether be pressed,, change and go step 14, if not, then change and go step 10 six if then the 3rd of the LIN message the byte also is that purpose ID is 0x08;
Step 14: whether right back window rising button is pressed, if, then judge be long by or short by; If long pressing, then the 7th of the LIN message the byte also is that right back window instruction is 0x01; If short pressing, then the 7th of the LIN message the byte also is that right back window instruction is 0x11; If right back window lifting key is not pressed, then changes and go step 15;
Step 15: whether right back window decline button is pressed, if, then judge be long by or short by; If long pressing, then the 7th of the LIN message the byte also is that right back window instruction is 0x02; If short pressing, then the 7th of the LIN message the byte also is that right back window instruction is 0x12; If right back window decline key is not pressed, then the 7th of the LIN message the byte also is that right back window instruction is 0x00, changes and goes step 10 six;
Step 10 six: calculate to send verification with, change and go step 10 seven;
Step 10 seven: send the LIN message, change and go step 2.
(2) receive the LIN message, its concrete steps are following:
With left front window is example, sees Fig. 5 a:
Step 1: initial.Initial content comprises the definition self ID, and left front window self ID is 0x01, changes and goes step 2;
Step 2: receive the LIN message, calculate receive verification with, change and go step 3;
Step 3: judge to receive verification with whether equal to send verification with, if, then change and go step 4, if not, then step 6 is gone in commentaries on classics;
Step 4: judge whether purpose ID is 0x0F in the LIN message,, change and go step 2, if not, then change and go step 5 if then button is inoperative;
Step 5: judge whether purpose ID is 0x01 in the LIN message, if judge then how many left front window instructions equals, if left front window instruction=0x01; Then left front window crawl rises, and changes and goes step 2, if left front window instruction=0x02, then left front window crawl descends; Change and go step 2, if left front window instruction=0x11, then left front window rises to the top automatically, changes and goes step 2; If left front window instruction=0x12, then left front window drops to the end automatically, changes and goes step 2; If not, then step 6 is gone in commentaries on classics;
Step 6: abandon this frame LIN message, change and go step 2.
With right front window is example, sees Fig. 5 b:
Step 1: initial.Initial content comprises the definition self ID, and right front window self ID is 0x02, changes and goes step 2;
Step 2: receive the LIN message, calculate receive verification with, change and go step 3;
Step 3: judge to receive verification with whether equal to send verification with, if, then change and go step 4, if not, then step 6 is gone in commentaries on classics;
Step 4: judge whether purpose ID is 0x0F in the LIN message,, change and go step 2, if not, then change and go step 5 if then button is inoperative;
Step 5: judge whether purpose ID is 0x02 in the LIN message, if judge then how many right front window instructions equals, if right front window instruction=0x01; Then right front window crawl rises, and changes and goes step 2, if right front window instruction=0x02, then right front window crawl descends; Change and go step 2, if right front window instruction=0x11, then right front window rises to the top automatically, changes and goes step 2; If right front window instruction=0x12, then right front window drops to the end automatically, changes and goes step 2; If not, then step 6 is gone in commentaries on classics;
Step 6: abandon this frame LIN message, change and go step 2.
Advantage of the present invention and good effect are:
(1) can the host node of LIN network be inserted car load CAN network as the LIN network of CAN network assistance network, not only reduce cost, and can with other board units exchange message;
(2) LIN data fields clear in structure, instruction is clear and definite, and the data check that carries makes the LIN agreement have certain fault tolerance;
(3) can guarantee that the driver has absolute Finite control power to car load, has guaranteed traffic safety to a certain extent.
Description of drawings
Fig. 1 is the vehicle window schematic network structure;
Fig. 2 is a LIN message data field structure;
Fig. 3 is that left front window keypad is formed sketch map;
Fig. 4 is that the left front window in the inventive method sends LIN message FB(flow block);
Fig. 5 (a) is that the left front window in the inventive method receives LIN message flow chart;
Fig. 5 (b) is that the right front window in the inventive method receives LIN message flow chart;
Fig. 6 is the overall flow figure of the inventive method.
The specific embodiment
The vehicle window network structure that inserts the LIN network is as shown in Figure 1, and the left front vehicle window controller LIN of driver host node inserts vehicle body CAN network simultaneously, can with the vehicle window sensor acquisition to the parameter that can use in other control panel realize the car load information sharing; When reducing cost, increase the degree of intelligence of car load greatly, the left front window keypad of scanning that left front vehicle window controller LIN host node does not stop; Left front vehicle window keypad is as shown in Figure 3, comprises key lock car, left front vehicle window rising button; Left front vehicle window decline button, right vehicle window rising button, right vehicle window decline button; Left back window rising button; Left back window decline button, right back window rising button, right back window decline button.With what left front window controller LIN host node linked to each other left front door Car window electric machine and left front window keypad arranged, left front window controller LIN host node that is to say that with the relation that between the LIN bus is transmitting-receiving can send the LIN message also can receive the LIN message simultaneously.Left back window controller LIN is from node; Right back window controller LIN is from node; It is only to receive not send out that left front window controller LIN follows from three LIN networks of node from node between the LIN network; That is to say to receive the LIN message that left front window controller LIN host node sends and respond itself not possess the ability of sending the LIN message.From what node linked to each other left back door Car window electric machine and left back window keypad arranged with left back window controller LIN; From what node linked to each other right back door Car window electric machine and right back window keypad arranged with right back window controller LIN; From what node linked to each other right front door Car window electric machine and right front window keypad arranged with right front window controller LIN, four nodes link together through a LIN bus.
The data structure of the LIN data fields that the present invention adopts is seen Fig. 2, has eight bytes, and first is data head; Be 0x55, second is left front window ID address, and the 3rd is purpose ID address; The 4th is left front window instruction, and the 5th is right front window instruction, and the 6th is left back window instruction; The 7th is the instruction of right back window, the 8th be verification with.Verification and computational methods be: verification and=(0x55) ^ (left front window ID address) ^ (purpose ID address) ^ (left front window instruction) ^ (right front window instruction) ^ (left back window instruction) ^ (right back window instruction), wherein " ^ " is the step-by-step XOR.
Left front window controller LIN host node interior reservoir has initialized definition, sees Fig. 6, and the left front window keypad of scanning that left front window controller LIN host node does not stop periodically sends the LIN message; Four vehicle windows that comprise left front window receive after the LIN message, all at first calculate to receive verification with, if whether verification equals self ID with the purpose ID that correctly then detects the LIN message; If then carry out the up-down instruction in the LIN message, if check and incorrect; Then abandon this frame LIN message, continue to prepare to receive next frame LIN message, same; If LIN message purpose ID is not equal to self ID, then also abandon this frame LIN message, continue to prepare to receive next frame LIN message.Concrete steps are following.
A kind of intelligent vehicle window control method of the present invention based on the LIN bus, it comprises two aspects:
(1) send the LIN message, see Fig. 4, step is following:
Step 1: initialization.The ID address of four vehicle windows of definition, left front vehicle window is 0x01, right front vehicle window is 0x02, left back vehicle window 0x04, right back vehicle window 0x08, key lock car ID address is 0x0F, no button is 0x00 by the empty ID of next transmission address; Define the instruction of four window liftings: 00 for stopping, and 01 for crawl rises, and 02 for crawl descends, and 11 be automatic rising, and 12 is automatic decline; Defined a kind of data fields data structure of LIN agreement, be specially: data fields 55, self ID, purpose ID, the left front window instruction of going up and down, the instruction of going up and down of right front window, the instruction of going up and down of left back window, the instruction of going up and down of right back window, verification and totally eight bytes; Wherein check and computational methods be: verification and=(0x55) ^ (left front window ID) ^ (purpose ID) ^ (left front window instruction) ^ (right front window instruction) ^ (left back window instruction) ^ (right back window instruction), wherein " ^ " be the step-by-step XOR, step 2 is gone in commentaries on classics;
Step 2: detect left front window keypad, left front window keypad is seen Fig. 3, changes and goes step 3;
Step 3: judge whether key lock car button is pressed, if then the 3rd of the LIN message the byte also is that purpose ID is 0x0F, changes and goes step 10 six, if not, changes and goes step 4;
Step 4: detect left front window button and whether be pressed,, change and go step 5, if not, then change and go step 7 if then the 3rd of the LIN message the byte also is that purpose ID is 0x01;
Step 5: whether left front window rising button is pressed, if, then judge be long by or short by; If long pressing, then the 4th of the LIN message the byte also is that left front window instruction is 0x01; If short pressing, then the 4th of the LIN message the byte also is that left front window instruction is 0x11; If left front window lifting key is not pressed, then changes and go step 6.
Step 6: whether left front window decline button is pressed, if, then judge be long by or short by; If long pressing, then the 4th of the LIN message the byte also is that left front window instruction is 0x02; If short pressing, then the 4th of the LIN message the byte also is that left front window instruction is 0x12; If left front window decline key is not pressed, then the 4th of the LIN message the byte also is that left front window instruction is 0x00, changes and goes step 10 six;
Step 7: detect right front window button and whether be pressed,, change and go step 8, if not, then change and go step 10 if then the 3rd of the LIN message the byte also is that purpose ID is 0x02;
Step 8: whether right front window rising button is pressed, if, then judge be long by or short by; If long pressing, then the 5th of the LIN message the byte also is that right front window instruction is 0x01; If short pressing, then the 5th of the LIN message the byte also is that right front window instruction is 0x11; If right front window lifting key is not pressed, then changes and go step 9.
Step 9: whether right front window decline button is pressed, if, then judge be long by or short by; If long pressing, then the 5th of the LIN message the byte also is that right front window instruction is 0x02; If short pressing, then the 5th of the LIN message the byte also is that right front window instruction is 0x12; If right front window decline key is not pressed, then the 5th of the LIN message the byte also is that right front window instruction is 0x00, changes and goes step 10 six;
Step 10: detect left back window button and whether be pressed,, change and go step 11, if not, then change and go step 13 if then the 3rd of the LIN message the byte also is that purpose ID is 0x04;
Step 11: whether left back window rising button is pressed, if, then judge be long by or short by; If long pressing, then the 6th of the LIN message the byte also is that left back window instruction is 0x01; If short pressing, then the 6th of the LIN message the byte also is that left back window instruction is 0x11; If left back window lifting key is not pressed, then changes and go step 12.
Step 12: whether left back window decline button is pressed, if, then judge be long by or short by; If long pressing, then the 6th of the LIN message the byte also is that left back window instruction is 0x02; If short pressing, then the 6th of the LIN message the byte also is that left back window instruction is 0x12; If left back window decline key is not pressed, then the 6th of the LIN message the byte also is that left back window instruction is 0x00, changes and goes step 10 six;
Step 13: detect right back window button and whether be pressed,, change and go step 14, if not, then change and go step 10 six if then the 3rd of the LIN message the byte also is that purpose ID is 0x08;
Step 14: whether right back window rising button is pressed, if, then judge be long by or short by; If long pressing, then the 7th of the LIN message the byte also is that right back window instruction is 0x01; If short pressing, then the 7th of the LIN message the byte also is that right back window instruction is 0x11; If right back window lifting key is not pressed, then changes and go step 15.
Step 15: whether right back window decline button is pressed, if, then judge be long by or short by; If long pressing, then the 7th of the LIN message the byte also is that right back window instruction is 0x02; If short pressing, then the 7th of the LIN message the byte also is that right back window instruction is 0x12; If right back window decline key is not pressed, then the 7th of the LIN message the byte also is that right back window instruction is 0x00, changes and goes step 10 six;
Step 10 six: calculate to send verification with, change and go step 10 seven;
Step 10 seven: send the LIN message, change and go step 2.
(2) receive the LIN message:
With left front window is example, sees Fig. 5 a:
Step 1: initial.Initial content comprises the definition self ID, and left front window self ID is 0x01, changes and goes step 2;
Step 2: receive the LIN message, calculate receive verification with, change and go step 3;
Step 3: judge to receive verification with whether equal to send verification with, if, then change and go step 4, if not, then step 6 is gone in commentaries on classics
Step 4: judge whether purpose ID is 0x0F in the LIN message,, change and go step 2, if not, then change and go step 5 if then button is inoperative;
Step 5: judge whether purpose ID is 0x01 in the LIN message, if judge then how many left front window instructions equals, if left front window instruction=0x01; Then left front window crawl rises, and changes and goes step 2, if left front window instruction=0x02, then left front window crawl descends; Change and go step 2, if left front window instruction=0x11, then left front window rises to the top automatically, changes and goes step 2; If left front window instruction=0x12, then left front window drops to the end automatically, changes and goes step 2; If not, then step 6 is gone in commentaries on classics;
Step 6: abandon this frame LIN message, change and go step 2.With right front window is example, sees Fig. 5 b:
Step 1: initial.Initial content comprises the definition self ID, and right front window self ID is 0x02, changes and goes step 2;
Step 2: receive the LIN message, calculate receive verification with, change and go step 3;
Step 3: judge to receive verification with whether equal to send verification with, if, then change and go step 4, if not, then step 6 is gone in commentaries on classics;
Step 4: judge whether purpose ID is 0x0F in the LIN message,, change and go step 2, if not, then change and go step 5 if then button is inoperative;
Step 5: judge whether purpose ID is 0x02 in the LIN message, if judge then how many right front window instructions equals, if right front window instruction=0x01; Then right front window crawl rises, and changes and goes step 2, if right front window instruction=0x02, then right front window crawl descends; Change and go step 2, if right front window instruction=0x11, then right front window rises to the top automatically, changes and goes step 2; If right front window instruction=0x12, then right front window drops to the end automatically, changes and goes step 2; If not, then step 6 is gone in commentaries on classics;
Step 6: abandon this frame LIN message, change and go step 2.

Claims (1)

1. intelligent vehicle window control method based on the LIN bus, it is characterized in that: it comprises two aspect contents:
(1) send the LIN message, its concrete steps are following:
Step 1: initialization; The ID address of four vehicle windows of definition, left front vehicle window is 0x01, right front vehicle window is 0x02, left back vehicle window 0x04, right back vehicle window 0x08, key lock car ID address is 0x0F, no button is 0x00 by the empty ID of next transmission address; Define the instruction of four window liftings: 00 for stopping, and 01 for crawl rises, and 02 for crawl descends, and 11 be automatic rising, and 12 is automatic decline; Defined a kind of data fields data structure of LIN agreement, be specially: data fields 55, self ID, purpose ID, the left front window instruction of going up and down, the instruction of going up and down of right front window, the instruction of going up and down of left back window, the instruction of going up and down of right back window, verification and totally eight bytes; Wherein check and computational methods be: verification and=(0x55) ^ (left front window ID) ^ (purpose ID) ^ (left front window instruction) ^ (right front window instruction) ^ (left back window instruction) ^ (right back window instruction), wherein " ^ " be the step-by-step XOR, step 2 is gone in commentaries on classics;
Step 2: detect left front window keypad, change and go step 3;
Step 3: judge whether key lock car button is pressed, if then the 3rd of the LIN message the byte also is that purpose ID is 0x0F, changes and goes step 10 six, if not, changes and goes step 4;
Step 4: detect left front window button and whether be pressed,, change and go step 5, if not, then change and go step 7 if then the 3rd of the LIN message the byte also is that purpose ID is 0x01;
Step 5: whether left front window rising button is pressed, if, then judge be long by or short by; If long pressing, then the 4th of the LIN message the byte also is that left front window instruction is 0x01; If short pressing, then the 4th of the LIN message the byte also is that left front window instruction is 0x11; If left front window lifting key is not pressed, then changes and go step 6;
Step 6: whether left front window decline button is pressed, if, then judge be long by or short by; If long pressing, then the 4th of the LIN message the byte also is that left front window instruction is 0x02; If short pressing, then the 4th of the LIN message the byte also is that left front window instruction is 0x12; If left front window decline key is not pressed, then the 4th of the LIN message the byte also is that left front window instruction is 0x00, changes and goes step 10 six;
Step 7: detect right front window button and whether be pressed,, change and go step 8, if not, then change and go step 10 if then the 3rd of the LIN message the byte also is that purpose ID is 0x02;
Step 8: whether right front window rising button is pressed, if, then judge be long by or short by; If long pressing, then the 5th of the LIN message the byte also is that right front window instruction is 0x01; If short pressing, then the 5th of the LIN message the byte also is that right front window instruction is 0x11; If right front window lifting key is not pressed, then changes and go step 9;
Step 9: whether right front window decline button is pressed, if, then judge be long by or short by; If long pressing, then the 5th of the LIN message the byte also is that right front window instruction is 0x02; If short pressing, then the 5th of the LIN message the byte also is that right front window instruction is 0x12; If right front window decline key is not pressed, then the 5th of the LIN message the byte also is that right front window instruction is 0x00, changes and goes step 10 six;
Step 10: detect left back window button and whether be pressed,, change and go step 11, if not, then change and go step 13 if then the 3rd of the LIN message the byte also is that purpose ID is 0x04;
Step 11: whether left back window rising button is pressed, if, then judge be long by or short by; If long pressing, then the 6th of the LIN message the byte also is that left back window instruction is 0x01; If short pressing, then the 6th of the LIN message the byte also is that left back window instruction is 0x11; If left back window lifting key is not pressed, then changes and go step 12;
Step 12: whether left back window decline button is pressed, if, then judge be long by or short by; If long pressing, then the 6th of the LIN message the byte also is that left back window instruction is 0x02; If short pressing, then the 6th of the LIN message the byte also is that left back window instruction is 0x12; If left back window decline key is not pressed, then the 6th of the LIN message the byte also is that left back window instruction is 0x00, changes and goes step 10 six;
Step 13: detect right back window button and whether be pressed,, change and go step 14, if not, then change and go step 10 six if then the 3rd of the LIN message the byte also is that purpose ID is 0x08;
Step 14: whether right back window rising button is pressed, if, then judge be long by or short by; If long pressing, then the 7th of the LIN message the byte also is that right back window instruction is 0x01; If short pressing, then the 7th of the LIN message the byte also is that right back window instruction is 0x11; If right back window lifting key is not pressed, then changes and go step 15;
Step 15: whether right back window decline button is pressed, if, then judge be long by or short by; If long pressing, then the 7th of the LIN message the byte also is that right back window instruction is 0x02; If short pressing, then the 7th of the LIN message the byte also is that right back window instruction is 0x12; If right back window decline key is not pressed, then the 7th of the LIN message the byte also is that right back window instruction is 0x00, changes and goes step 10 six;
Step 10 six: calculate to send verification with, change and go step 10 seven;
Step 10 seven: send the LIN message, change and go step 2;
(2) receive the LIN message, its concrete steps are following:
With left front window is example,
Step 1: initial; Initial content comprises the definition self ID, and left front window self ID is 0x01, changes and goes step 2;
Step 2: receive the LIN message, calculate receive verification with, change and go step 3;
Step 3: judge to receive verification with whether equal to send verification with, if, then change and go step 4, if not, then step 6 is gone in commentaries on classics;
Step 4: judge whether purpose ID is 0x0F in the LIN message,, change and go step 2, if not, then change and go step 5 if then button is inoperative;
Step 5: judge whether purpose ID is 0x01 in the LIN message, if judge then how many left front window instructions equals, if left front window instruction=0x01; Then left front window crawl rises, and changes and goes step 2, if left front window instruction=0x02, then left front window crawl descends; Change and go step 2, if left front window instruction=0x11, then left front window rises to the top automatically, changes and goes step 2; If left front window instruction=0x12, then left front window drops to the end automatically, changes and goes step 2; If not, then step 6 is gone in commentaries on classics;
Step 6: abandon this frame LIN message, change and go step 2;
With right front window is example,
Step 1: initial; Initial content comprises the definition self ID, and right front window self ID is 0x02, changes and goes step 2;
Step 2: receive the LIN message, calculate receive verification with, change and go step 3;
Step 3: judge to receive verification with whether equal to send verification with, if, then change and go step 4, if not, then step 6 is gone in commentaries on classics;
Step 4: judge whether purpose ID is 0x0F in the LIN message,, change and go step 2, if not, then change and go step 5 if then button is inoperative;
Step 5: judge whether purpose ID is 0x02 in the LIN message, if judge then how many right front window instructions equals, if right front window instruction=0x01; Then right front window crawl rises, and changes and goes step 2, if right front window instruction=0x02, then right front window crawl descends; Change and go step 2, if right front window instruction=0x11, then right front window rises to the top automatically, changes and goes step 2; If right front window instruction=0x12, then right front window drops to the end automatically, changes and goes step 2; If not, then step 6 is gone in commentaries on classics;
Step 6: abandon this frame LIN message, change and go step 2.
CN201210185131.2A 2012-06-06 2012-06-06 Intelligent window controlling method based on linear (LIN) bus Expired - Fee Related CN102777101B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210185131.2A CN102777101B (en) 2012-06-06 2012-06-06 Intelligent window controlling method based on linear (LIN) bus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210185131.2A CN102777101B (en) 2012-06-06 2012-06-06 Intelligent window controlling method based on linear (LIN) bus

Publications (2)

Publication Number Publication Date
CN102777101A true CN102777101A (en) 2012-11-14
CN102777101B CN102777101B (en) 2014-10-22

Family

ID=47122193

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210185131.2A Expired - Fee Related CN102777101B (en) 2012-06-06 2012-06-06 Intelligent window controlling method based on linear (LIN) bus

Country Status (1)

Country Link
CN (1) CN102777101B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104346914A (en) * 2014-10-22 2015-02-11 奇瑞汽车股份有限公司 Radio frequency signal receiving module control method
CN105591853A (en) * 2014-11-12 2016-05-18 现代自动车株式会社 Flexible Scheduling Method And Apparatus In LIN Communication
CN106218359A (en) * 2016-07-25 2016-12-14 奇瑞汽车股份有限公司 Control the method and system of electric automobile heater
CN107237573A (en) * 2017-07-13 2017-10-10 上海思致汽车工程技术有限公司 A kind of power windows control method and system based on LIN buses
CN111877915A (en) * 2020-06-24 2020-11-03 江永县元杰科技有限公司 Intelligent car window one-key lifting control circuit
CN112822288A (en) * 2021-01-28 2021-05-18 广汽丰田汽车有限公司 Control method of vehicle-mounted air conditioner, vehicle and readable storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050052082A1 (en) * 2003-09-08 2005-03-10 Honda Motor Co. Ltd. Power window control system
CN1700631A (en) * 2005-06-09 2005-11-23 张家港苏星电器有限公司 Message checking method in automobile LIN bus control technique
EP1705538A2 (en) * 2005-03-23 2006-09-27 Omron Corporation Opening-and-closing control device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050052082A1 (en) * 2003-09-08 2005-03-10 Honda Motor Co. Ltd. Power window control system
EP1705538A2 (en) * 2005-03-23 2006-09-27 Omron Corporation Opening-and-closing control device
CN1700631A (en) * 2005-06-09 2005-11-23 张家港苏星电器有限公司 Message checking method in automobile LIN bus control technique

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
江涛: "LIN2.1协议在车窗控制系统中的应用", 《单片机与嵌入式系统应用》 *
马军、李泽滔: "基于LIN总线的电动车窗控制器设计", 《微型机与应用》 *

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104346914A (en) * 2014-10-22 2015-02-11 奇瑞汽车股份有限公司 Radio frequency signal receiving module control method
CN104346914B (en) * 2014-10-22 2017-12-12 奇瑞汽车股份有限公司 A kind of rf signal reception module control method
CN105591853A (en) * 2014-11-12 2016-05-18 现代自动车株式会社 Flexible Scheduling Method And Apparatus In LIN Communication
CN105591853B (en) * 2014-11-12 2020-08-04 现代自动车株式会社 L IN communication flexible scheduling method and device
CN106218359A (en) * 2016-07-25 2016-12-14 奇瑞汽车股份有限公司 Control the method and system of electric automobile heater
CN106218359B (en) * 2016-07-25 2019-04-12 奇瑞汽车股份有限公司 Control the method and system of electric car heater
CN107237573A (en) * 2017-07-13 2017-10-10 上海思致汽车工程技术有限公司 A kind of power windows control method and system based on LIN buses
CN107237573B (en) * 2017-07-13 2019-03-08 上海思致汽车工程技术有限公司 A kind of power windows control method and system based on LIN bus
CN111877915A (en) * 2020-06-24 2020-11-03 江永县元杰科技有限公司 Intelligent car window one-key lifting control circuit
CN112822288A (en) * 2021-01-28 2021-05-18 广汽丰田汽车有限公司 Control method of vehicle-mounted air conditioner, vehicle and readable storage medium

Also Published As

Publication number Publication date
CN102777101B (en) 2014-10-22

Similar Documents

Publication Publication Date Title
CN102777101A (en) Intelligent window controlling method based on linear (LIN) bus
CN103685560B (en) A kind of network structure of automobile electronic system
CN102801551B (en) Open systems and the corresponding interfaces for automotive electronics (OSEK) network management-based controller area network (CAN) management method
CN106200567A (en) Improve CAN communication method and the data frame structure of traffic rate
CN112440904B (en) Domain controller, system and vehicle
CN202837990U (en) Automobile network topology structure
CN101456392B (en) Automobile complete vehicle electronic appliance CANBUS network control system
CN205353751U (en) Train network system
CN101973269B (en) Control system for mine electric wheel dump truck by using fieldbus technology
CN103220200A (en) CAN (Controller Area Network/LIN (Local Interconnect Network) bus hybrid network topology structure of vehicle
CN204077907U (en) The intelligent travelling crane system of Electrical Bicycle
CN103692920B (en) A kind of network-controlled scheme supporting the multiple charge mode of battery-driven car
CN111030902A (en) Vehicle electronic control unit refreshing method and system
CN208283764U (en) The intelligent driving gateway of data communication between automated driving system and automobile chassis
CN201450516U (en) Vehicle-mounted network communication system
CN201566574U (en) Full-vehicle CAN bus network device
CN201685771U (en) Hybrid power control system with CAN bus
CN201071654Y (en) Anti-hand clamping device of electrical window based on self-adapting
CN203301514U (en) Automobile CAN/ LIN bus mixing network topology structure
Long Automobile electronic control network design based on can bus
CN105150956A (en) CAN network topological structure of parallel plug-in hybrid power bus and control method for CAN network topological structure
CN203305934U (en) Automotive body control module
CN202587023U (en) Independent gateway controller for automobile
CN203616627U (en) Switch controller based on CAN bus key state configuration
CN103112363A (en) Control method and system of automobile drive motor

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20141022

Termination date: 20160606