CN105510055B - The checking device and verification method of a kind of car crass oil-break function - Google Patents

The checking device and verification method of a kind of car crass oil-break function Download PDF

Info

Publication number
CN105510055B
CN105510055B CN201610111205.6A CN201610111205A CN105510055B CN 105510055 B CN105510055 B CN 105510055B CN 201610111205 A CN201610111205 A CN 201610111205A CN 105510055 B CN105510055 B CN 105510055B
Authority
CN
China
Prior art keywords
control module
single chip
chip control
pwm
pulse
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.)
Active
Application number
CN201610111205.6A
Other languages
Chinese (zh)
Other versions
CN105510055A (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.)
Chongqing Changan Automobile Co Ltd
Original Assignee
Chongqing Changan Automobile Co Ltd
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 Chongqing Changan Automobile Co Ltd filed Critical Chongqing Changan Automobile Co Ltd
Priority to CN201610111205.6A priority Critical patent/CN105510055B/en
Publication of CN105510055A publication Critical patent/CN105510055A/en
Application granted granted Critical
Publication of CN105510055B publication Critical patent/CN105510055B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01MTESTING STATIC OR DYNAMIC BALANCE OF MACHINES OR STRUCTURES; TESTING OF STRUCTURES OR APPARATUS, NOT OTHERWISE PROVIDED FOR
    • G01M17/00Testing of vehicles
    • G01M17/007Wheeled or endless-tracked vehicles
    • G01M17/0078Shock-testing of vehicles

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Combined Controls Of Internal Combustion Engines (AREA)

Abstract

The invention discloses a kind of checking device of car crass oil-break function and verification method, including engine management system, the single chip control module being connected with engine management system, fuel pump relay and upset pulse-triggered button, the power module being connected with single chip control module;Single chip control module exports pwm pulse signal to engine management system, engine management system controls the break-make of fuel pump relay according to the pwm pulse signal, when not pressing upset pulse-triggered button, fuel pump relay is in an ON state, then upset pulse-triggered button is pressed, if fuel pump relay disconnects, then it represents that collision oil-break function is normal, if fuel pump relay is still switched on, then it represents that collision oil-break function is abnormal.The checking apparatus structure is simple, and verification method operation is easy.

Description

The checking device and verification method of a kind of car crass oil-break function
Technical field
The invention belongs to technical field of automobile detection, and in particular to a kind of checking device of car crass oil-break function and test Card method.
Background technology
Easily cause spontaneous combustion after vehicle collides, collision oil-break refers to that stopping engine after vehicle collides supplies Oil, it can reduce the risk of vehicle spontaneous combustion and potential safety hazard.
The collision oil-break scheme of generally use is on automobile:In automobile normal running, safety air sac controller passes through hard Line exports normality pwm pulse(Such as:High level 200ms, low level 40ms pwm signal)To engine management system(I.e. EMS);Work as car collision, when safety air sac controller detects that collision occurs and opens air bag, safety air sac controller leads to It is multiple to cross rigid line output(Such as 20)The PWM upset pulses in cycle(That is high level 40ms, low level 200ms pwm signal, Using low level as initial state)To engine management system, recover output normality PWM pulses afterwards(That is it is high level 200ms, low Level 40ms pwm signal), after engine management system detects the PWM upset pulses in continuous 20 cycles, disconnect fuel oil Pump relay, stop pump oil(Stop engine oil).
At present, also car crass oil-break function is verified without the checking device and method of correlation, if passing through reality Car collision checking, then it can spend larger manpower and material resources, cost height.
The content of the invention
It is an object of the invention to provide a kind of checking device of car crass oil-break function and verification method, with to automobile Collision oil-break function is verified that the checking apparatus structure is simple, and verification method operation is easy.
The checking device of car crass oil-break function of the present invention, including the control of engine management system, single-chip microcomputer Module, upset pulse-triggered button, power module and fuel pump relay, the power module connect with single chip control module Connect, provide working power to single chip control module, upset pulse-triggered button is connected with single chip control module, simulating Safety Air spring control detects that collision occurs and opens the trigger condition of air bag, and upset pulse-triggered button is pressed, and represents automobile hair Life is collided and safety air sac controller opens air bag, and single chip control module is connected with engine management system, exports PWM arteries and veins Rush signal(That is normality pwm pulse, PWM upset pulses)To engine management system, engine management system and fuel pump after Electrical equipment connects, and controls the break-make of fuel pump relay.
In order to more easily adjust the low duration of the normality pwm pulse of single chip control module output, normality High level lasting time and PWM the upset pulse number of pwm pulse, while low duration to normality pwm pulse, often High level lasting time and PWM the upset pulse number of state pwm pulse are shown that above-mentioned checking device is also held including low level Continuous time rotary coding switch, high level lasting time rotary coding switch, upset pulse number rotary coding switch and display Screen, low duration rotary coding switch are connected with single chip control module, and the low level that can adjust normality pwm pulse is held Continuous time, high level lasting time rotary coding switch are connected with single chip control module, can adjust the height electricity of normality pwm pulse Flat duration, upset pulse number rotary coding switch are connected with single chip control module, can adjust PWM upset pulses Number, display screen are connected with power module, obtain working power, and display screen is connected with single chip control module, can show normality PWM The low duration of pulse, the high level lasting time of normality pwm pulse and PWM upset pulse numbers.
Use a kind of method that above-mentioned checking device is verified to car crass oil-break function for:
Single chip control module exports pwm pulse signal to engine management system, and engine management system is according to the PWM Pulse signal controls the break-make of fuel pump relay, and when not pressing upset pulse-triggered button, single chip control module output is normal State pwm pulse in an ON state, then presses upset pulse-triggered button to engine management system, fuel pump relay, Single chip control module exports PWM upset pulses to engine management system, if fuel pump relay disconnects, then it represents that collision Oil-break function is normal, if fuel pump relay is still switched on, then it represents that collision oil-break function is abnormal.When being judged, , to judge whether car crass oil-break function is normal, ten thousand can also be used by listening whether fuel pump relay sends sound Whether the mode of electric current is had on wire loop with the probe detection fuel pump relay of table, to judge car crass oil-break function It is whether normal.
In the verification method, single chip control module exports the process of pwm pulse signal, including:
The first step, single chip control module are powered and initialize I/O pins, timer etc., then perform second step;
Low duration, the height of normality pwm pulse of second step, single chip control module setting normality pwm pulse Level duration and PWM upset pulse numbers, then perform the 3rd step;
3rd step, single chip control module reset the current level triggering timing time, set remaining PWM upsets pulse Number is equal to zero, and exports low level, then performs the 4th step;
4th step, single chip control module judge whether there is upset pulse-triggered button rising edge(Corresponding to upset arteries and veins Trigger button is rushed to be triggered the action pressed), if it is, performing the 5th step, otherwise perform the 8th step;
5th step, single chip control module judge currently whether export high level, if it is, performing the 6th step, otherwise Perform the 7th step;
The PWM that 6th step, single chip control module set remaining PWM upsets pulse number to be equal to setting overturns pulse number Add one, set the current high level triggering timing time to be equal to the low duration of the normality pwm pulse of setting, then perform 8th step;
The PWM that 7th step, single chip control module set remaining PWM upsets pulse number to be equal to setting overturns pulse Number, and the current low level triggering timing time is reset, then perform the 8th step;
8th step, single chip control module judge whether remaining PWM upsets pulse number is more than zero, if it is, performing 9th step, otherwise perform the 13rd step;
9th step, single chip control module judge currently whether to export high level and the high level triggering timing time is more than Or the low duration of the normality pwm pulse equal to setting, if it is, performing the tenth step, otherwise perform the 11st Step;
Remaining PWM upset pulse numbers are subtracted one by the tenth step, single chip control module, during by current high level triggering timing Between reset, and export low level, be then back to and perform the 4th step;
11st step, single chip control module judge currently whether to export low level and the low level triggering timing time is big In or equal to setting normality pwm pulse high level lasting time, if it is, perform the 12nd step, otherwise return hold The step of row the 4th;
The current low level triggering timing time is reset, and exports high level by the 12nd step, single chip control module, then Return and perform the 4th step;
13rd step, single chip control module judge currently whether to export low level and the low level triggering timing time is big In or equal to setting normality pwm pulse low duration, if it is, performing the 14th step, otherwise perform the 15 steps;
The current low level triggering timing time is reset, and exports high level by the 14th step, single chip control module, then Return and perform the 4th step;
15th step, single chip control module judge currently whether to export high level and the high level triggering timing time is big In or equal to setting normality pwm pulse high level lasting time, if it is, perform the 16th step, otherwise return hold The step of row the 4th;
The current high level triggering timing time is reset, and exports low level by the 16th step, single chip control module, then Return and perform the 4th step.
Use another method that above-mentioned checking device is verified to car crass oil-break function for:
Single chip control module exports pwm pulse signal to engine management system, and engine management system is according to the PWM Pulse signal controls the break-make of fuel pump relay, rotates low duration rotary coding switch regulation normality pwm pulse Low duration, when rotating the high level of high level lasting time rotary coding switch regulation normality pwm pulse and continuing Between, upset pulse number rotary coding switch regulation PWM upset pulse numbers are rotated, when not pressing upset pulse-triggered button, Single chip control module exports normality pwm pulse and in an ON state, then pressed to engine management system, fuel pump relay Lower upset pulse-triggered button, single chip control module exports PWM and overturn pulse to engine management system, if fuel pump after Electrical equipment disconnects, then it represents that collision oil-break function is normal, if fuel pump relay is still switched on, then it represents that collision oil-break function is not Normally., can be by listening whether fuel pump relay sends sound, to judge that car crass oil-break function is when being judged It is no normal, whether there can also be the mode of electric current on the wire loop with the probe detection fuel pump relay of universal meter, to sentence Whether disconnected car crass oil-break function is normal.
In the verification method, single chip control module exports the process of pwm pulse signal, including:
The first step, single chip control module are powered and initialize I/O pins, timer etc., then perform second step;
Low duration, the height of normality pwm pulse of second step, single chip control module setting normality pwm pulse Level duration and PWM upset pulse numbers, then perform the 3rd step;
3rd step, single chip control module control display screen show current normality pwm pulse low duration, often High level lasting time and PWM the upset pulse number of state pwm pulse, then perform the 4th step;
4th step, single chip control module reset the current level triggering timing time, set remaining PWM upsets pulse Number is equal to zero, and exports low level, then performs the 5th step;
5th step, single chip control module judge whether there is upset pulse-triggered button rising edge(Corresponding to upset arteries and veins Trigger button is rushed to be triggered the action pressed), if it is, performing the 6th step, otherwise perform the 9th step;
6th step, single chip control module judge currently whether export high level, if it is, performing the 7th step, otherwise Perform the 8th step;
7th step, single chip control module set remaining PWM upset pulse numbers to add equal to current PWM upset pulse numbers One, set the current high level triggering timing time to be equal to the low duration of current normality pwm pulse, then perform the 9th Step;
8th step, single chip control module set remaining PWM upsets pulse number to be equal to current PWM upset pulse numbers, And reset the current low level triggering timing time, then perform the 9th step;
9th step, single chip control module judge whether remaining PWM upsets pulse number is more than zero, if it is, performing Tenth step, otherwise perform the 14th step;
Tenth step, single chip control module judge currently whether to export high level and the high level triggering timing time is more than Or the low duration equal to current normality pwm pulse, if it is, performing the 11st step, otherwise perform the 12nd Step;
Remaining PWM upset pulse numbers are subtracted one by the 11st step, single chip control module, by current high level triggering timing Time resets, and exports low level, then performs the 18th step;
12nd step, single chip control module judge currently whether to export low level and the low level triggering timing time is big In or equal to current normality pwm pulse high level lasting time, if it is, perform the 13rd step, otherwise perform the tenth Eight steps;
The current low level triggering timing time is reset, and exports high level by the 13rd step, single chip control module, then Perform the 18th step;
14th step, single chip control module judge currently whether to export low level and the low level triggering timing time is big In or equal to current normality pwm pulse low duration, if it is, perform the 15th step, otherwise perform the tenth Six steps;
The current low level triggering timing time is reset, and exports high level by the 15th step, single chip control module, then Perform the 18th step;
16th step, single chip control module judge currently whether to export high level and the high level triggering timing time is big In or equal to current normality pwm pulse high level lasting time, if it is, perform the 17th step, otherwise perform the tenth Eight steps;
The current high level triggering timing time is reset, and exports low level by the 17th step, single chip control module, then Perform the 18th step;
18th step, low duration, the high level lasting time of normality pwm pulse for calling normality pwm pulse With the regulation subprogram of PWM upset pulse numbers, it is then back to and performs the 5th step.
When the low duration of normality pwm pulse in 18th step, the high level of normality pwm pulse continue Between and PWM upset pulse number regulation process, including:
The first step, single chip control module judge whether low duration rotary coding switch turns right a scale, such as Fruit is then to perform second step, otherwise performs the 3rd step;
The low duration of normality pwm pulse is increased 1ms by second step, single chip control module, then performs the Five steps;
3rd step, single chip control module judge whether low duration rotary coding switch turns left a scale, such as Fruit is then to perform the 4th step, otherwise performs the 6th step;
The low duration of normality pwm pulse is reduced 1ms by the 4th step, single chip control module, then performs the Five steps;
The low duration of normality pwm pulse in 5th step, single chip control module renewal display screen shows, so The 6th step is performed afterwards;
6th step, single chip control module judge whether high level lasting time rotary coding switch turns right a scale, such as Fruit is then to perform the 7th step, otherwise performs the 8th step;
The high level lasting time of normality pwm pulse is increased 1ms by the 7th step, single chip control module, then performs the Ten steps;
8th step, single chip control module judge whether high level lasting time rotary coding switch turns left a scale, such as Fruit is then to perform the 9th step, otherwise performs the 11st step;
The high level lasting time of normality pwm pulse is reduced 1ms by the 9th step, single chip control module, then performs the Ten steps;
The high level lasting time of normality pwm pulse in tenth step, single chip control module renewal display screen shows, so The 11st step is performed afterwards;
11st step, single chip control module judge to overturn whether pulse number rotary coding switch turns right a scale, such as Fruit is then to perform the 12nd step, otherwise performs the 13rd step;
PWM upset pulse numbers are increased by 1 by the 12nd step, single chip control module, then perform the 15th step;
13rd step, single chip control module judge to overturn whether pulse number rotary coding switch turns left a scale, such as Fruit is then to perform the 14th step, otherwise terminate;
PWM upset pulse numbers are reduced 1 by the 14th step, single chip control module, then perform the 15th step;
PWM upset pulse numbers in 15th step, single chip control module renewal display screen are shown, are then terminated.
More easily the oil-break function after car crass can be verified using the present invention, it is not necessary to touched by real vehicle Checking is hit, reduces cost, and the checking apparatus structure of the present invention is simple, and verification method operation is easy.
Brief description of the drawings
Fig. 1 is the structured flowchart of embodiments of the invention 1.
Fig. 2 is the program flow diagram of single chip control module in embodiments of the invention 1.
Fig. 3 is the timer interrupt service program flow diagram of single chip control module in embodiments of the invention 1.
Fig. 4 is the structured flowchart of embodiments of the invention 2.
Fig. 5 is the main program flow chart of single chip control module in embodiments of the invention 2.
Fig. 6 is the low duration of normality pwm pulse in single chip control module in embodiments of the invention 2, often The regulation subroutine flow chart of high level lasting time and PWM the upset pulse number of state pwm pulse.
Fig. 7 is the timer interrupt service program flow diagram of single chip control module in embodiments of the invention 2.
Embodiment
The present invention is elaborated below in conjunction with the accompanying drawings.
Embodiment 1:The checking device of car crass oil-break function as shown in Figure 1, including engine management system 1, list Piece machine control module 2, upset pulse-triggered button 3, power module 4 and fuel pump relay 9, power module 4 and single-chip microcomputer control Molding block 2 connects, by the working power needed for 12V Power converts into single chip control module 2, upset pulse-triggered button 3 with The I/O input port connection of single chip control module 2, simulating Safety air spring control detect that collision occurs and opens air bag Trigger condition, upset pulse-triggered button 3 presses, represents car collision and safety air sac controller opens air bag, One I/O delivery outlet of single chip control module 2 is connected with the collision alarm detection port of engine management system 1, single-chip microcomputer Control module 2 exports pwm pulse signal(That is normality pwm pulse, PWM upset pulses)To engine management system 1, engine One I/O delivery outlet of management system 1 is connected with fuel pump relay 9, controls the break-make of fuel pump relay 9.Wherein, normality The low duration of pwm pulse is 40ms, the high level lasting time of normality pwm pulse is 200ms, PWM upset pulse Number is 20, then the low duration that PWM overturns pulse is the high level lasting time of 200ms, PWM upset pulse For 40ms.
Use the method that checking device as shown in Figure 1 is verified to car crass oil-break function for:
Single chip control module 2 exports pwm pulse signal to engine management system 1, and engine management system 1 is according to this Pwm pulse signal controls the break-make of fuel pump relay 9, when not pressing upset pulse-triggered button 3, single chip control module 2 Normality pwm pulse is exported in an ON state, then to press upset pulse to engine management system 1, fuel pump relay 9 and touch Button 3 is sent out, single chip control module 2 export PWM upset pulses to engine management system 1, if hearing sound or with ten thousand There is no electric current with the probe detection of table to the wire loop of fuel pump relay, then it represents that fuel pump relay 9 disconnects, automobile It is normal to collide oil-break function, if not hearing sound, and is returned with the probe detection of universal meter to the coil of fuel pump relay There is electric current on road, then it represents that fuel pump relay 9 is still switched on(It is still within on-state), car crass oil-break function is not Normally.
As shown in Fig. 2 in the verification method, single chip control module 2 exports pwm pulse signal(That is normality PWM arteries and veins Punching, PWM upset pulses)Process, including:
The first step, single chip control module 2 are powered and initialize I/O pins, timer etc., then perform second step;
Second step, single chip control module 2 set the low duration of normality pwm pulse as 40ms, normality PWM arteries and veins The high level lasting time of punching is that 200ms, PWM upset pulse number are 20, then performs the 3rd step;
3rd step, single chip control module 2 reset the current level triggering timing time, set remaining PWM upsets pulse Number is equal to zero, and exports low level, then performs the 4th step;
4th step, single chip control module 2 judge whether there is upset pulse-triggered button rising edge(Corresponding to upset arteries and veins Trigger button 3 is rushed to be triggered the action pressed), if it is, performing the 5th step, otherwise perform the 8th step;
5th step, single chip control module 2 judge currently whether export high level, if it is, performing the 6th step, otherwise Perform the 7th step;
The PWM that 6th step, single chip control module 2 set remaining PWM upsets pulse number to be equal to setting overturns pulse Number plus one(It is 21 to set remaining PWM upsets pulse number), set the current high level triggering timing time to be equal to setting The low duration of normality pwm pulse(It is 40ms to set the current high level triggering timing time), then perform the 8th Step;
The PWM that 7th step, single chip control module 2 set remaining PWM upsets pulse number to be equal to setting overturns pulse Number(It is 20 to set remaining PWM upsets pulse number), and the current low level triggering timing time is reset, then perform the Eight steps;
8th step, single chip control module 2 judge whether remaining PWM upsets pulse number is more than zero, if it is, performing 9th step, otherwise perform the 13rd step;
9th step, single chip control module 2 judge currently whether to export high level and the high level triggering timing time is big In or equal to setting normality pwm pulse low duration(Judge currently whether export high level and height electricity Flat triggering timing time >=40ms), if it is, performing the tenth step, otherwise perform the 11st step;
Remaining PWM upset pulse numbers are subtracted one by the tenth step, single chip control module 2, by current high level triggering timing Time resets, and exports low level, is then back to and performs the 4th step;
11st step, single chip control module 2 judge currently whether export low level and the low level triggering timing time More than or equal to the high level lasting time of the normality pwm pulse of setting(Judge currently whether to export low level and this is low Level triggers timing time >=200ms), if it is, performing the 12nd step, otherwise return and perform the 4th step;
The current low level triggering timing time is reset, and exports high level by the 12nd step, single chip control module 2, so Return afterwards and perform the 4th step;
13rd step, single chip control module 2 judge currently whether export low level and the low level triggering timing time More than or equal to the low duration of the normality pwm pulse of setting(Judge currently whether to export low level and this is low Level triggers timing time >=40ms), if it is, performing the 14th step, otherwise perform the 15th step;
The current low level triggering timing time is reset, and exports high level by the 14th step, single chip control module 2, so Return afterwards and perform the 4th step;
15th step, single chip control module 2 judge currently whether export high level and the high level triggering timing time More than or equal to the high level lasting time of the normality pwm pulse of setting(Judge currently whether export high level and the height Level triggers timing time >=200ms), if it is, performing the 16th step, otherwise return and perform the 4th step;
The current high level triggering timing time is reset, and exports low level by the 16th step, single chip control module 2, so Return afterwards and perform the 4th step.
As shown in figure 3, the process of the timer interrupt service of single chip control module 2 is:
The first step, into timer interrupt service program;
Second step, current level triggering timing time(For high level triggering timing time or low level triggering timing when Between)Increase 1ms;
3rd step, timer interrupt service program return.
Embodiment 2:The checking device of car crass oil-break function as shown in Figure 4, including engine management system 1, list Piece machine control module 2, upset pulse-triggered button 3, power module 4, fuel pump relay 9, low duration rotation are compiled Code switch 5, high level lasting time rotary coding switch 6, upset pulse number rotary coding switch 7 and display screen 8, display screen 8 be small LCD LCDs, and power module 4 is connected with single chip control module 2, display screen 8, by 12V Power converts Cheng Dan Working power needed for piece machine control module 2, display screen 8, a circle of low duration rotary coding switch 5 have 8 quarters Degree, three pins of low duration rotary coding switch 5, three I/O input ports with single chip control module 2 respectively Connection, can adjust the low duration of normality pwm pulse, and a circle of high level lasting time rotary coding switch 6 has 8 Scale, three pins, three I/O inputs with single chip control module 2 respectively of high level lasting time rotary coding switch 6 Mouth connection, can adjust the high level lasting time of normality pwm pulse, and a circle of upset pulse number rotary coding switch 7 has 8 Scale, three pins of upset pulse number rotary coding switch 7, three I/O input ports with single chip control module 2 respectively Connection, PWM upset pulse numbers can be adjusted, display screen 8 is connected with single chip control module 2, can show the low of normality pwm pulse Level duration, the high level lasting time of normality pwm pulse and PWM upset pulse numbers, upset pulse-triggered button 3 with The I/O input port connection of single chip control module 2, simulating Safety air spring control detect that collision occurs and opens air bag Trigger condition, upset pulse-triggered button 3 presses, represents car collision and safety air sac controller opens air bag, One I/O delivery outlet of single chip control module 2 is connected with the collision alarm detection port of engine management system 1, single-chip microcomputer Control module 2 exports pwm pulse signal(That is normality pwm pulse, PWM upset pulses)To engine management system 1, engine One I/O delivery outlet of management system 1 is connected with fuel pump relay 9, controls the break-make of fuel pump relay 9.
Use the method that checking device as shown in Figure 4 is verified to car crass oil-break function for:
Single chip control module 2 exports pwm pulse signal to engine management system 1, and engine management system 1 is according to this Pwm pulse signal controls the break-make of fuel pump relay 9, rotates low duration rotary coding switch 5 and adjusts normality PWM The low duration of pulse, the high level for rotating the regulation normality pwm pulse of high level lasting time rotary coding switch 6 are held The continuous time, rotate upset pulse number rotary coding switch 7 and adjust PWM upset pulse numbers, do not pressed by upset pulse-triggered During button 3, single chip control module 2 exports normality pwm pulse to engine management system 1, and fuel pump relay 9, which is in, connects shape State, then presses upset pulse-triggered button 3, and single chip control module 2 export PWM and overturns pulse to engine management system 1, If hear sound or there is no electric current with the probe detection of universal meter to the wire loop of fuel pump relay, then it represents that combustion FP Fuel Pump Relay 9 disconnects, and car crass oil-break function is normal, if not hearing sound, and is arrived with the probe detection of universal meter There is electric current on the wire loop of fuel pump relay, then it represents that fuel pump relay 9 is still switched on(It is still within connecting shape State), car crass oil-break function is abnormal.
As shown in figure 5, in above-mentioned verification method, single chip control module 2 exports pwm pulse signal(That is normality PWM Pulse, PWM upset pulses)Process, including:
The first step, single chip control module 2 are powered and initialize I/O pins, timer etc., then perform second step;
Second step, single chip control module 2 set low duration, the height of normality pwm pulse of normality pwm pulse Level duration and PWM upset pulse numbers, then perform the 3rd step;
3rd step, the control display screen 8 of single chip control module 2 show current normality pwm pulse low duration, High level lasting time, the PWM upset pulse numbers of normality pwm pulse, then perform the 4th step;
4th step, single chip control module 2 reset the current level triggering timing time, set remaining PWM upsets pulse Number is equal to zero, and exports low level, then performs the 5th step;
5th step, single chip control module 2 judge whether there is upset pulse-triggered button rising edge(Corresponding to upset arteries and veins Trigger button 3 is rushed to be triggered the action pressed), if it is, performing the 6th step, otherwise perform the 9th step;
6th step, single chip control module 2 judge currently whether export high level, if it is, performing the 7th step, otherwise Perform the 8th step;
7th step, single chip control module 2 set remaining PWM upsets pulse number to be equal to current PWM upset pulse numbers Add one, set the current high level triggering timing time to be equal to the low duration of current normality pwm pulse, then perform the Nine steps;
8th step, single chip control module 2 set remaining PWM upsets pulse number to be equal to current PWM upset pulse numbers, And reset the current low level triggering timing time, then perform the 9th step;
9th step, single chip control module 2 judge whether remaining PWM upsets pulse number is more than zero, if it is, performing Tenth step, otherwise perform the 14th step;
Tenth step, single chip control module 2 judge currently whether to export high level and the high level triggering timing time is big In or equal to current normality pwm pulse low duration, if it is, perform the 11st step, otherwise perform the tenth Two steps;
Remaining PWM upset pulse numbers are subtracted one by the 11st step, single chip control module 2, and current high level is triggered and counted When the time reset, and export low level, then perform the 18th step;
12nd step, single chip control module 2 judge currently whether export low level and the low level triggering timing time More than or equal to the high level lasting time of current normality pwm pulse, if it is, perform the 13rd step, the is otherwise performed 18 steps;
The current low level triggering timing time is reset, and exports high level by the 13rd step, single chip control module 2, so The 18th step is performed afterwards;
14th step, single chip control module 2 judge currently whether export low level and the low level triggering timing time More than or equal to the low duration of current normality pwm pulse, if it is, perform the 15th step, the is otherwise performed 16 steps;
The current low level triggering timing time is reset, and exports high level by the 15th step, single chip control module 2, so The 18th step is performed afterwards;
16th step, single chip control module 2 judge currently whether export high level and the high level triggering timing time More than or equal to the high level lasting time of current normality pwm pulse, if it is, perform the 17th step, the is otherwise performed 18 steps;
The current high level triggering timing time is reset, and exports low level by the 17th step, single chip control module 2, so The 18th step is performed afterwards;
18th step, the low duration for calling normality pwm pulse as shown in Figure 6, the height electricity of normality pwm pulse Flat duration and the regulation subprogram of PWM upset pulse numbers, are then back to and perform the 5th step.
As shown in fig. 6, the low duration of normality pwm pulse, the height of normality pwm pulse are electric in above-mentioned verification method Flat duration and the regulation process of PWM upset pulse numbers(The low electricity of normality pwm pulse i.e. in single chip control module 2 The regulation subprogram of flat duration, the high level lasting time of normality pwm pulse and PWM upset pulse numbers), including:
The first step, single chip control module 2 judge whether low duration rotary coding switch 5 turns right a scale, If it is, performing second step, the 3rd step is otherwise performed;
The low duration of normality pwm pulse is increased 1ms by second step, single chip control module 2, then performs the Five steps;
3rd step, single chip control module 2 judge whether low duration rotary coding switch 5 turns left a scale, If it is, performing the 4th step, the 6th step is otherwise performed;
The low duration of normality pwm pulse is reduced 1ms by the 4th step, single chip control module 2, then performs the Five steps;
The low duration of normality pwm pulse that 5th step, single chip control module 2 are updated on display screen 8 shows, Then the 6th step is performed;
6th step, single chip control module 2 judge whether high level lasting time rotary coding switch 6 turns right a scale, If it is, performing the 7th step, the 8th step is otherwise performed;
The high level lasting time of normality pwm pulse is increased 1ms by the 7th step, single chip control module 2, then performs the Ten steps;
8th step, single chip control module 2 judge whether high level lasting time rotary coding switch 6 turns left a scale, If it is, performing the 9th step, the 11st step is otherwise performed;
The high level lasting time of normality pwm pulse is reduced 1ms by the 9th step, single chip control module 2, then performs the Ten steps;
The high level lasting time of normality pwm pulse that tenth step, single chip control module 2 are updated on display screen 8 shows, Then the 11st step is performed;
Whether the 11st step, single chip control module 2 judge to overturn pulse number rotary coding switch 7 and turn right a scale, If it is, performing the 12nd step, the 13rd step is otherwise performed;
PWM upset pulse numbers are increased by 1 by the 12nd step, single chip control module 2, then perform the 15th step;
Whether the 13rd step, single chip control module 2 judge to overturn pulse number rotary coding switch 7 and turn left a scale, If it is, performing the 14th step, otherwise terminate;
PWM upset pulse numbers are reduced 1 by the 14th step, single chip control module 2, then perform the 15th step;
The PWM upset pulse numbers that 15th step, single chip control module 2 are updated on display screen 8 are shown, are then terminated.
In brief, the low duration in normality pwm pulse, normality pwm pulse high level lasting time and During the regulation of PWM upset pulse numbers, low duration rotary coding switch 5 is often turned right a scale, normality PWM arteries and veins The low duration of punching is increased by 1ms, and low duration rotary coding switch 5 often turns left a scale, normality PWM arteries and veins The low duration of punching just reduces 1ms, and low duration rotary coding switch 5 does not rotate, normality pwm pulse it is low Level duration is with regard to constant;High level lasting time rotary coding switch 6 is often turned right a scale, the height electricity of normality pwm pulse The flat duration is increased by 1ms, and high level lasting time rotary coding switch 6 often turns left a scale, the height electricity of normality pwm pulse The flat duration just reduces 1ms, and high level lasting time rotary coding switch 6 does not rotate, and the high level of normality pwm pulse continues Time is with regard to constant;Upset pulse number rotary coding switch 7 is often turned right a scale, and PWM upset pulse numbers are increased by 1, turned over Turn pulse number rotary coding switch 7 often to turn left a scale, PWM upset pulse numbers just reduce 1, upset pulse number rotation Code switch 7 does not rotate, and PWM overturns pulse number with regard to constant.
Due to initially set inside single chip control module 2 low duration of normality pwm pulse as 40ms, often The high level lasting time of state pwm pulse is that 200ms, PWM upset pulse number are 20, original state(Before adjusting), show The low duration of the normality pwm pulse shown in display screen 8 is 40ms, the high level lasting time of normality pwm pulse is 200ms, PWM upset pulse number are 20;If verify need normality pwm pulse low duration for 45ms, The high level lasting time of normality pwm pulse be 195ms, PWM upset pulse number be 22, PWM upset pulse low level Duration is that the high level lasting time of 195ms, PWM upset pulse is 45ms, then low duration rotary coding is opened 55 scales of right-hand rotation, 5 scales of left-hand rotation of high level lasting time rotary coding switch 6 are closed, upset pulse number rotary coding is opened 72 scales of right-hand rotation are closed, after the completion of regulation, the low duration of the normality pwm pulse shown on display screen 8 is 45ms, often The high level lasting time of state pwm pulse is that 195ms, PWM upset pulse number are 22.
As shown in fig. 7, the process of the timer interrupt service of single chip control module 2 is:
The first step, into timer interrupt service program;
Second step, current level triggering timing time(For high level triggering timing time or low level triggering timing when Between)Increase 1ms;
3rd step, timer interrupt service program return.

Claims (3)

1. a kind of verification method of car crass oil-break function, the checking device of use includes engine management system(1), monolithic Machine control module(2), upset pulse-triggered button(3), power module(4)And fuel pump relay(9), the power module (4)With single chip control module(2)Connection, to single chip control module(2)Working power is provided, overturns pulse-triggered button (3)With single chip control module(2)Connection, simulating Safety air spring control detect that collision occurs and opens the triggering bar of air bag Part, single chip control module(2)With engine management system(1)Connection, pwm pulse signal is exported to engine management system, Engine management system(1)With fuel pump relay(9)Connection, control fuel pump relay(9)Break-make;The verification method For:Single chip control module(2)Pwm pulse signal is exported to engine management system(1), engine management system(1)According to The pwm pulse signal controls fuel pump relay(9)Break-make, do not pressing upset pulse-triggered button(3)When, fuel pump relay Device(9)In an ON state, upset pulse-triggered button is then pressed(3)If fuel pump relay(9)Disconnect, then it represents that It is normal to collide oil-break function, if fuel pump relay(9)It is still switched on, then it represents that collision oil-break function is abnormal;Its feature It is,
The single chip control module(2)The process of pwm pulse signal is exported, including:
The first step, single chip control module(2)It is powered and initializes I/O pins, timer, then performs second step;
Second step, single chip control module(2)Set low duration, the height electricity of normality pwm pulse of normality pwm pulse Flat duration and PWM upset pulse numbers, then perform the 3rd step;
3rd step, single chip control module(2)The current level triggering timing time is reset, remaining PWM upsets pulse is set Number is equal to zero, and exports low level, then performs the 4th step;
4th step, single chip control module(2)Judge whether that there is upset pulse-triggered button rising edge, if it is, performing 5th step, otherwise perform the 8th step;
5th step, single chip control module(2)Whether judgement currently exports high level, if it is, performing the 6th step, otherwise holds The step of row the 7th;
6th step, single chip control module(2)Remaining PWM upsets pulse number is set to be equal to the PWM upset pulse numbers of setting Add one, set the current high level triggering timing time to be equal to the low duration of the normality pwm pulse of setting, then perform 8th step;
7th step, single chip control module(2)Remaining PWM upsets pulse number is set to be equal to the PWM upset pulse numbers of setting, And reset the current low level triggering timing time, then perform the 8th step;
8th step, single chip control module(2)Judge whether remaining PWM upset pulse number is more than zero, if it is, performing the Nine steps, otherwise perform the 13rd step;
9th step, single chip control module(2)Judge currently whether to export high level and the high level triggering timing time is more than Or the low duration of the normality pwm pulse equal to setting, if it is, performing the tenth step, otherwise perform the 11st Step;
Tenth step, single chip control module(2)Remaining PWM upset pulse numbers are subtracted one, during by current high level triggering timing Between reset, and export low level, be then back to and perform the 4th step;
11st step, single chip control module(2)Judge currently whether to export low level and the low level triggering timing time is big In or equal to setting normality pwm pulse high level lasting time, if it is, perform the 12nd step, otherwise return hold The step of row the 4th;
12nd step, single chip control module(2)The current low level triggering timing time is reset, and exports high level, then Return and perform the 4th step;
13rd step, single chip control module(2)Judge currently whether to export low level and the low level triggering timing time is big In or equal to setting normality pwm pulse low duration, if it is, performing the 14th step, otherwise perform the 15 steps;
14th step, single chip control module(2)The current low level triggering timing time is reset, and exports high level, then Return and perform the 4th step;
15th step, single chip control module(2)Judge currently whether to export high level and the high level triggering timing time is big In or equal to setting normality pwm pulse high level lasting time, if it is, perform the 16th step, otherwise return hold The step of row the 4th;
16th step, single chip control module(2)The current high level triggering timing time is reset, and exports low level, then Return and perform the 4th step.
2. a kind of verification method of car crass oil-break function, the checking device of use includes engine management system(1), monolithic Machine control module(2), upset pulse-triggered button(3), power module(4), low duration rotary coding switch(5)、 High level lasting time rotary coding switch(6), upset pulse number rotary coding switch(7), display screen(8)With fuel pump after Electrical equipment(9), the power module(4)With single chip control module(2)Connection, to single chip control module(2)Work electricity is provided Source, overturn pulse-triggered button(3)With single chip control module(2)Connection, simulating Safety air spring control detect collision hair Give birth to and open the trigger condition of air bag, low duration rotary coding switch(5)With single chip control module(2)Connection, The low duration of normality pwm pulse, high level lasting time rotary coding switch can be adjusted(6)Mould is controlled with single-chip microcomputer Block(2)Connection, the high level lasting time of normality pwm pulse can be adjusted, overturn pulse number rotary coding switch(7)With monolithic Machine control module(2)Connection, PWM upset pulse numbers, display screen can be adjusted(8)With power module(4)Connection, obtain work electricity Source, display screen(8)With single chip control module(2)Connection, low duration, the normality PWM of normality pwm pulse can be shown High level lasting time and PWM the upset pulse number of pulse, single chip control module(2)With engine management system(1)Even Connect, export pwm pulse signal to engine management system, engine management system(1)With fuel pump relay(9)Connection, control Fuel pump relay processed(9)Break-make;The verification method is:Single chip control module(2)Pwm pulse signal is exported to starting Machine management system(1), engine management system(1)Fuel pump relay is controlled according to the pwm pulse signal(9)Break-make, turn Dynamic low duration rotary coding switch(5)The low duration of normality pwm pulse is adjusted, high level is rotated and continues Time rotary coding switch(6)The high level lasting time of normality pwm pulse is adjusted, upset pulse number rotary coding is rotated and opens Close(7)PWM upset pulse numbers are adjusted, are not pressing upset pulse-triggered button(3)When, fuel pump relay(9)In connection State, then press upset pulse-triggered button(3)If fuel pump relay(9)Disconnect, then it represents that collision oil-break function is just Often, if fuel pump relay(9)It is still switched on, then it represents that collision oil-break function is abnormal;Characterized in that,
The single chip control module(2)The process of pwm pulse signal is exported, including:
The first step, single chip control module(2)It is powered and initializes I/O pins, timer, then performs second step;
Second step, single chip control module(2)Set low duration, the height electricity of normality pwm pulse of normality pwm pulse Flat duration and PWM upset pulse numbers, then perform the 3rd step;
3rd step, single chip control module(2)Control display screen(8)Show current normality pwm pulse low duration, High level lasting time and PWM the upset pulse number of normality pwm pulse, then perform the 4th step;
4th step, single chip control module(2)The current level triggering timing time is reset, remaining PWM upsets pulse is set Number is equal to zero, and exports low level, then performs the 5th step;
5th step, single chip control module(2)Judge whether that there is upset pulse-triggered button rising edge, if it is, performing 6th step, otherwise perform the 9th step;
6th step, single chip control module(2)Whether judgement currently exports high level, if it is, performing the 7th step, otherwise holds The step of row the 8th;
7th step, single chip control module(2)Set remaining PWM upsets pulse number to be equal to current PWM upset pulse numbers to add One, set the current high level triggering timing time to be equal to the low duration of current normality pwm pulse, then perform the 9th Step;
8th step, single chip control module(2)Remaining PWM upsets pulse number is set to be equal to current PWM upset pulse numbers, and The current low level triggering timing time is reset, then performs the 9th step;
9th step, single chip control module(2)Judge whether remaining PWM upset pulse number is more than zero, if it is, performing the Ten steps, otherwise perform the 14th step;
Tenth step, single chip control module(2)Judge currently whether to export high level and the high level triggering timing time is more than Or the low duration equal to current normality pwm pulse, if it is, performing the 11st step, otherwise perform the 12nd Step;
11st step, single chip control module(2)Remaining PWM upset pulse numbers are subtracted one, by current high level triggering timing Time resets, and exports low level, then performs the 18th step;
12nd step, single chip control module(2)Judge currently whether to export low level and the low level triggering timing time is big In or equal to current normality pwm pulse high level lasting time, if it is, perform the 13rd step, otherwise perform the tenth Eight steps;
13rd step, single chip control module(2)The current low level triggering timing time is reset, and exports high level, then Perform the 18th step;
14th step, single chip control module(2)Judge currently whether to export low level and the low level triggering timing time is big In or equal to current normality pwm pulse low duration, if it is, perform the 15th step, otherwise perform the tenth Six steps;
15th step, single chip control module(2)The current low level triggering timing time is reset, and exports high level, then Perform the 18th step;
16th step, single chip control module(2)Judge currently whether to export high level and the high level triggering timing time is big In or equal to current normality pwm pulse high level lasting time, if it is, perform the 17th step, otherwise perform the tenth Eight steps;
17th step, single chip control module(2)The current high level triggering timing time is reset, and exports low level, then Perform the 18th step;
18th step, low duration, the high level lasting time and PWM of normality pwm pulse for calling normality pwm pulse The regulation subprogram of pulse number is overturn, is then back to and performs the 5th step.
3. the verification method of car crass oil-break function according to claim 2, it is characterised in that:In 18th step The low duration of normality pwm pulse, the high level lasting time of normality pwm pulse and PWM upset pulse numbers Regulation process, including:
The first step, single chip control module(2)Judge low duration rotary coding switch(5)Whether turn right a scale, If it is, performing second step, the 3rd step is otherwise performed;
Second step, single chip control module(2)The low duration of normality pwm pulse is increased into 1ms, then performs the 5th Step;
3rd step, single chip control module(2)Judge low duration rotary coding switch(5)Whether turn left a scale, If it is, performing the 4th step, the 6th step is otherwise performed;
4th step, single chip control module(2)The low duration of normality pwm pulse is reduced into 1ms, then performs the 5th Step;
5th step, single chip control module(2)Update display screen(8)On the low duration of normality pwm pulse show, Then the 6th step is performed;
6th step, single chip control module(2)Judge high level lasting time rotary coding switch(6)Whether turn right a scale, If it is, performing the 7th step, the 8th step is otherwise performed;
7th step, single chip control module(2)The high level lasting time of normality pwm pulse is increased into 1ms, then performs the tenth Step;
8th step, single chip control module(2)Judge high level lasting time rotary coding switch(6)Whether turn left a scale, If it is, performing the 9th step, the 11st step is otherwise performed;
9th step, single chip control module(2)The high level lasting time of normality pwm pulse is reduced into 1ms, then performs the tenth Step;
Tenth step, single chip control module(2)Update display screen(8)On the high level lasting time of normality pwm pulse show, Then the 11st step is performed;
11st step, single chip control module(2)Judge upset pulse number rotary coding switch(7)Whether turn right a scale, If it is, performing the 12nd step, the 13rd step is otherwise performed;
12nd step, single chip control module(2)PWM upset pulse numbers are increased by 1, then perform the 15th step;
13rd step, single chip control module(2)Judge upset pulse number rotary coding switch(7)Whether turn left a scale, If it is, performing the 14th step, otherwise terminate;
14th step, single chip control module(2)PWM upset pulse numbers are reduced 1, then perform the 15th step;
15th step, single chip control module(2)Update display screen(8)On PWM upset pulse number show, then terminate.
CN201610111205.6A 2016-02-29 2016-02-29 The checking device and verification method of a kind of car crass oil-break function Active CN105510055B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610111205.6A CN105510055B (en) 2016-02-29 2016-02-29 The checking device and verification method of a kind of car crass oil-break function

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610111205.6A CN105510055B (en) 2016-02-29 2016-02-29 The checking device and verification method of a kind of car crass oil-break function

Publications (2)

Publication Number Publication Date
CN105510055A CN105510055A (en) 2016-04-20
CN105510055B true CN105510055B (en) 2017-12-29

Family

ID=55718197

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610111205.6A Active CN105510055B (en) 2016-02-29 2016-02-29 The checking device and verification method of a kind of car crass oil-break function

Country Status (1)

Country Link
CN (1) CN105510055B (en)

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02228572A (en) * 1989-03-02 1990-09-11 Fuji Heavy Ind Ltd Diagnostic apparatus for injector
JP3752971B2 (en) * 2000-06-29 2006-03-08 日産自動車株式会社 Automatic driving device for vehicles
US6640174B2 (en) * 2001-01-31 2003-10-28 Ford Global Technologies, Llc Restraint and fuel system cutoff control module
CN201703375U (en) * 2010-05-26 2011-01-12 浙江机电职业技术学院 Anti-collision system of automobile
CN203391717U (en) * 2013-08-09 2014-01-15 魏国营 Automobile anti-collision early warning device based on MSP430 single chip microcomputer
CN104890514A (en) * 2015-06-18 2015-09-09 安徽江淮汽车股份有限公司 Method and system for improving car crash safety

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
某车型碰撞解锁系统测试分析;李高林 等;《汽车电器》;20141231(第5期);第75-79页 *

Also Published As

Publication number Publication date
CN105510055A (en) 2016-04-20

Similar Documents

Publication Publication Date Title
CN108227669A (en) The automatic testing equipment and method of controller of new energy automobile
CN104914844B (en) The test macro of the air conditioner compressed machine controller of fuel cell car
CN205720461U (en) Program-controlled electrical fault injection system
CN106564391B (en) High voltage power battery contactor detection method, equipment, battery management system and automobile
CN106696713A (en) Control circuit and control method of high pressure precharging of electric vehicle
CN106842005B (en) Relay fault judgment method for high-voltage system of electric automobile
TWI354804B (en) Method and apparatus for power testing
CN107745643A (en) Charge control method, device and automobile
CN105510055B (en) The checking device and verification method of a kind of car crass oil-break function
CN206946465U (en) A kind of recording device
CN201827646U (en) Aeration pressure-maintaining machine for two devices of automotive air conditioner
CN109494838A (en) Charge output protection circuit and charging output protection method
CN107239060A (en) A kind of medical operation electrode access times control system and method
CN103852718A (en) Testing system and method for keyboard
CN201369043Y (en) Testing device for mainboard
CN207337203U (en) A kind of automobile no-key enters and activation system automatic test equipment
CN105320120B (en) Device and method for simulating start failure of air conditioner compressor
CN110018338A (en) A kind of test macro of Vehicular charger, method and computer
CN106194541B (en) One-touch automobile starting protection circuit and its method
CN209894904U (en) New forms of energy electric automobile subassembly aging testing device that charges
CN110409953A (en) Opening/closing door of vehicle control device, method and system
CN204631501U (en) Based on the entire car controller of two MPU
CN106240376A (en) Electric automobile high-voltage precharge and main contactor misconnection protection device and method
CN102705215B (en) Method and device for realizing control over air compressor
CN207140979U (en) Switch for vehicle controlling organization and vehicle

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant