Automatic detection method and detection device for tone tuning valve and storage medium

文档序号:1919573 发布日期:2021-12-03 浏览:12次 中文

阅读说明:本技术 调音阀自动检测方法及检测装置、存储介质 (Automatic detection method and detection device for tone tuning valve and storage medium ) 是由 冯逸斐 沈卫东 张小平 周琪 王雪 陈超 苗垒 董伟 于 2021-09-03 设计创作,主要内容包括:本发明提供一种调音阀自动检测方法,包括以下步骤:获取调音阀的初始化自检信息并判断自检是否正常;进行角度旋转测试,以判断是否存在阀片卡滞故障;进行记忆角度设置:向调音阀发送表示阀片记忆角度的角度设置报文;以判断调音阀的阀片记忆角度信息与期望设置的记忆角度信息是否一致;进行故障码清除,以清除所有故障码;向调音阀发送读取故障码请求以回读故障;进行状态存储:通知调音阀将断电,以使调音阀存储当前设置的阀片记忆角度和故障码,同时关闭阀片。本发明还提供了实现上述方法的调音阀检测装置。本发明能够提高调音阀检测效率,减少人为失误。(The invention provides an automatic detection method of a tuning valve, which comprises the following steps: acquiring initialized self-checking information of the tone tuning valve and judging whether the self-checking is normal or not; carrying out an angle rotation test to judge whether a valve block clamping stagnation fault exists or not; carrying out memory angle setting: sending an angle setting message representing a valve block memory angle to the tuning valve; judging whether the valve plate memory angle information of the tuning valve is consistent with the memory angle information expected to be set; clearing fault codes to clear all fault codes; sending a fault code reading request to the tone tuning valve to read back the fault; and (3) performing state storage: and informing the tuning valve of powering off so that the tuning valve stores the currently set valve block memory angle and fault code and simultaneously closes the valve block. The invention also provides a tuning valve detection device for realizing the method. The invention can improve the detection efficiency of the tuning valve and reduce human errors.)

1. An automatic detection method for a tuning valve is characterized by comprising the following steps:

step S1, informing the tuning valve to enter initialization self-checking, acquiring initialization self-checking information of the tuning valve and judging whether the self-checking is normal or not, if the self-checking is normal, entering the next step, otherwise, controlling a display screen to display related information of initialization failure, cutting off power supply to the tuning valve, and stopping sending messages;

step S2, an angular rotation test is performed: sending a valve plate angle rotation test instruction to the tuning valve at least once, wherein the valve plate angle rotation test instruction comprises a plurality of frame angle setting messages; reading a state message of the tuning valve fed back by the angle rotation test of the tuning valve to judge whether a valve block clamping failure exists, if not, performing the next step, otherwise, controlling a display screen to display relevant information of the valve block clamping failure, cutting off power supply to the tuning valve, and stopping sending the message;

step S3, performing memory angle setting: sending an angle setting message representing a valve block memory angle to the tuning valve;

step S4, receiving a state message of the tuning valve fed back by the tuning valve to judge whether the valve sheet memory angle information of the tuning valve is consistent with the memory angle information expected to be set or not, if so, performing the next step, otherwise, controlling a display screen to display related information of failure in memory angle setting, cutting off power supply to the tuning valve, and stopping sending the message;

step S5, fault code clearing: sending a fault code clearing request to the tuning valve to clear all fault codes; receiving a response message of the tone tuning valve for the fault code clearing request; if the response message of the positive mode is received, entering the next step; if no response message exists or a response message in a negative mode is received, controlling a display screen to display relevant information of failure code clearing failure, cutting off power supply to the tuning valve, and stopping sending the message;

step S6, sending a fault code reading request to the tuning valve to read back the fault; reading the state message of the tuning valve responded by the tuning valve, and entering the next step if no fault code exists; if the tuning valve does not respond when the fault is read back or any fault code exists in the responded tuning valve state message, controlling a display screen to display relevant information of fault code clearing failure, cutting off power supply to the tuning valve, and stopping sending the message;

step S7, store the state: and informing the tuning valve of powering off so that the tuning valve stores the currently set valve block memory angle and fault code and simultaneously closes the valve block.

2. The automatic detection method of a tuning valve according to claim 1,

in step S1, the notifying the tuning valve to enter the initialization self-test specifically includes: and sending a power-on and power-off message indicating that the power supply of the engine is on to the tuning valve to inform the tuning valve to start initializing self-checking.

3. The automatic detection method of a tuning valve according to claim 1,

in step S1, the obtaining of the initialized self-test information of the tuning valve and the determining whether the self-test is normal specifically include: and acquiring a tuning valve state message sent back by the tuning valve, and judging whether the self-check is normal or not according to a flag bit 'EAV _ Available'.

4. The automatic detection method of a tuning valve according to claim 1,

in step S2, the plurality of frames of angle setting messages include one frame of angle setting message indicating that the valve plate is closed, one frame of angle setting message indicating that the valve plate is opened to the maximum angle, and at least one frame of angle setting message indicating that the valve plate is between the closed position and the maximum angle position.

5. The automatic detection method of a tuning valve according to claim 1,

in step S2, the reading of the tuning valve state message fed back by the tuning valve for the angle rotation test specifically includes: and after the angle rotation test is finished, sending a fault code reading request to the tuning valve, and then reading a tuning valve state message fed back by the tuning valve to the angle rotation test.

6. The automatic detection method of a tuning valve according to claim 1,

in step S7, the notifying that the tuning valve is to be powered off specifically includes: and sending a power-on and power-off message indicating that the power supply of the engine is off to the tuning valve to inform the tuning valve of the fact that the power supply is about to be cut off.

7. A tuning valve detection device, comprising:

a memory storing a computer program;

a processor for running the computer program, the computer program when running performing the steps of the method of any one of claims 1 to 6.

8. A storage medium characterized in that,

the storage medium has stored therein a computer program configured to perform the steps of the method of any one of claims 1 to 6 when executed.

Technical Field

The invention relates to the field of detection of motor vehicle exhaust emission sound regulating valves (called tone tuning valves for short), in particular to an automatic detection method and a detection device for a tone tuning valve.

Background

After the tuning valve is manufactured, the tuning valve is qualified through detection and can be sold; the content detected typically includes:

1) the tuning valve can normally complete initialization;

2) the valve plate of the tuning valve can normally rotate to 0 degree, 30 degrees, 60 degrees and 90 degrees;

3) reading faults of the tone tuning valve, confirming that the existing faults do not exist, and then, clearing all fault codes;

4) setting a memory angle of a valve plate of the tuning valve (after the tuning valve is electrified and initialized, the valve plate defaults to the angle) according to the customer's need;

the existing detection mode is relatively original; the valve plate rotation control device mainly depends on manual operation and a computer to manually control the rotation of the valve plate, the reading and clearing of fault codes and the setting of the factory position state of the valve body in a mode of simulating the message sending of the whole vehicle, and no professional detection equipment exists. The existing detection mode needs to manually send and modify the message, has complicated steps and has high professional requirements on field detection personnel; due to the fact that the manual detection operation steps are too many, some steps are easily missed by mistake, and the factory state of the tuning valve is inconsistent with the requirement.

Disclosure of Invention

The invention aims to overcome the defects in the prior art, and provides an automatic detection method and a detection device for a tuning valve, which can improve the detection efficiency of the tuning valve, reduce manual operation and reduce human errors. In order to achieve the technical purpose, the embodiment of the invention adopts the technical scheme that:

in a first aspect, an embodiment of the present invention provides an automatic detection method for a tuning valve, including the following steps:

step S1, informing the tuning valve to enter initialization self-checking, acquiring initialization self-checking information of the tuning valve and judging whether the self-checking is normal or not, if the self-checking is normal, entering the next step, otherwise, controlling a display screen to display related information of initialization failure, cutting off power supply to the tuning valve, and stopping sending messages;

step S2, an angular rotation test is performed: sending a valve plate angle rotation test instruction to the tuning valve at least once, wherein the valve plate angle rotation test instruction comprises a plurality of frame angle setting messages; reading a state message of the tuning valve fed back by the angle rotation test of the tuning valve to judge whether a valve block clamping failure exists, if not, performing the next step, otherwise, controlling a display screen to display relevant information of the valve block clamping failure, cutting off power supply to the tuning valve, and stopping sending the message;

step S3, performing memory angle setting: sending an angle setting message representing a valve block memory angle to the tuning valve;

step S4, receiving a state message of the tuning valve fed back by the tuning valve to judge whether the valve sheet memory angle information of the tuning valve is consistent with the memory angle information expected to be set or not, if so, performing the next step, otherwise, controlling a display screen to display related information of failure in memory angle setting, cutting off power supply to the tuning valve, and stopping sending the message;

step S5, fault code clearing: sending a fault code clearing request to the tuning valve to clear all fault codes; receiving a response message of the tone tuning valve for the fault code clearing request; if the response message of the positive mode is received, entering the next step; if no response message exists or a response message in a negative mode is received, controlling a display screen to display relevant information of failure code clearing failure, cutting off power supply to the tuning valve, and stopping sending the message;

step S6, sending a fault code reading request to the tuning valve to read back the fault; reading the state message of the tuning valve responded by the tuning valve, and entering the next step if no fault code exists; if the tuning valve does not respond when the fault is read back or any fault code exists in the responded tuning valve state message, controlling a display screen to display relevant information of fault code clearing failure, cutting off power supply to the tuning valve, and stopping sending the message;

step S7, store the state: and informing the tuning valve of powering off so that the tuning valve stores the currently set valve block memory angle and fault code and simultaneously closes the valve block.

Further, in step S1, the notifying the tuning valve to enter the initialization self-test specifically includes: and sending a power-on and power-off message indicating that the power supply of the engine is on to the tuning valve to inform the tuning valve to start initializing self-checking.

Further, in step S1, the acquiring initialized self-test information of the tuning valve and determining whether the self-test is normal specifically includes: and acquiring a tuning valve state message sent back by the tuning valve, and judging whether the self-check is normal or not according to a flag bit 'EAV _ Available'.

Further, in step S2, the plurality of frame angle setting messages include one frame angle setting message indicating that the valve plate is closed, one frame angle setting message indicating that the valve plate is opened to the maximum angle, and at least one frame angle setting message indicating that the valve plate is between the closed position and the maximum angle position.

Further, in step S2, the reading the tuning valve state message fed back by the tuning valve for the angle rotation test specifically includes: and after the angle rotation test is finished, sending a fault code reading request to the tuning valve, and then reading a tuning valve state message fed back by the tuning valve to the angle rotation test.

Further, in step S7, the notifying that the tuning valve is to be powered off specifically includes: and sending a power-on and power-off message indicating that the power supply of the engine is off to the tuning valve to inform the tuning valve of the fact that the power supply is about to be cut off.

In a second aspect, an embodiment of the present invention provides a tuning valve detection device, including:

a memory storing a computer program;

a processor for executing the computer program, the computer program when executed performing the steps of the method as described above.

In a third aspect, embodiments of the present invention provide a storage medium having a computer program stored therein, the computer program being configured to, when executed, perform the steps of the method as described above.

The technical scheme provided by the embodiment of the invention has the following beneficial effects:

1) in the detection process, the tuning valve detection device automatically completes the processes of valve block angle rotation testing, fault code reading, valve block memory angle setting, fault code clearing, state storage and the like in a message/instruction sending mode, manual intervention is not needed, the detection efficiency is greatly improved, manual operation is reduced, and human errors are reduced.

2) In the detection process, if any link has a problem, the specific fault information is displayed through the display screen, so that a detector can conveniently check the fault of the tuning valve.

Drawings

Fig. 1 is a schematic connection diagram of a tuning valve detection device and a tuning valve in an embodiment of the invention.

Fig. 2 is a flowchart of an automatic detection method of a tuning valve in an embodiment of the invention.

Detailed Description

In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.

In the embodiment of the invention, as shown in fig. 1, a tuning valve detection device is connected with a tuning valve (EAV), preferably connected through CAN communication; the tuning valve detection device can control power supply of the tuning valve; the tone tuning valve detection device is connected with a display screen;

in the automatic detection process of the tuning valve, messages can be mutually sent between the tuning valve detection device and the tuning valve, and the main messages are introduced firstly;

the message sent by the tuning valve detection device to the tuning valve comprises: engine operation parameter messages, angle setting messages, power-on and power-off messages and the like;

the engine operation parameter message is used for simulating the operation of the vehicle engine by the tuning valve detection device;

the format of the angle setting message is as follows:

message ID Frame format Frame type Message period/ms Message content
0x2B6 Data frame Standard frame 100 00 00 00 00 00 00 00 00

Determining the angle of a valve plate of the tuning valve according to the message content in the angle setting message;

the format of the power-on and power-off message is as follows:

message ID Frame format Frame type Message period/ms Message content
0x1E2 Data frame Standard frame 20 0A00 00 00 00 00 00 00

The content of the power-on and power-off message is '0A 00000000000000' to represent that the power supply of the engine is 'on';

message ID Frame format Frame type Message period/ms Message content
0x1E2 Data frame Standard frame 20 0200 00 00 00 00 00 00

The content of the power-on and power-off message is '0200000000000000', which indicates that the power supply of the engine is 'off'; after receiving a power-on and power-off message indicating that the power supply of the engine is off, the tone tuning valve stores the current memory angle and the fault code;

the message sent by the tuning valve to the tuning valve detection device comprises: a tone tuning valve state message;

in a first aspect, an automatic detection method for a tuning valve provided by an embodiment of the present invention includes the following steps:

step S1, informing the tuning valve to enter initialization self-checking, acquiring initialization self-checking information of the tuning valve and judging whether the self-checking is normal or not, if the self-checking is normal, entering the next step, otherwise, controlling a display screen to display related information of initialization failure, cutting off power supply to the tuning valve, and stopping sending messages;

in this embodiment, a power-on/power-off message indicating that an engine power supply is "on" is sent to a tuning valve to notify the tuning valve to start initialization self-check, the tuning valve performs initialization self-check after receiving the message, and then sends a tuning valve state message back to a tuning valve detection device, where the message includes a flag bit "EAV _ Available", the flag bit "EAV _ Available" is 1 when the self-check is normal, and the flag bit "EAV _ Available" is 0 when the self-check has a problem; after receiving a tuning valve state message with a flag bit 'EAV _ Available' being 1, the tuning valve detection device judges that the self-checking is normal, and can enter the next step; the method comprises the steps that after receiving a tuning valve state message with a flag bit 'EAV _ Available' being 0, a tuning valve detection device judges that self-detection has a problem, controls a display screen to display related information of initialization failure, such as 'Fail, initialization failure', cuts off power supply to a tuning valve, and stops sending the message;

step S2, an angular rotation test is performed: sending a valve plate angle rotation test instruction to the tuning valve at least once, wherein the valve plate angle rotation test instruction comprises a plurality of frame angle setting messages; reading a state message of the tuning valve fed back by the angle rotation test of the tuning valve to judge whether a valve block clamping failure exists, if not, performing the next step, otherwise, controlling a display screen to display relevant information of the valve block clamping failure, cutting off power supply to the tuning valve, and stopping sending the message;

preferably, the plurality of frames of angle setting messages comprise one frame of angle setting message for indicating that the valve plate is closed, one frame of angle setting message for indicating that the valve plate is opened to the maximum angle, and at least one frame of angle setting message for indicating that the valve plate is between the closed position and the maximum angle position;

in this embodiment, the valve plate angle rotation test instruction includes the following 4 frames of angle setting messages, which are respectively used to set the valve plate of the tuning valve to be closed, opened to 30 °, opened to 60 °, and opened to 90 ° (i.e. the maximum angle);

the valve plate angle rotation test instruction is sent circularly for 10 times, and each time interval is 600 ms; sending 4 frames of angle setting messages each time; therefore, in the whole angular rotation test process, the valve plate rotates 10 times in a circulating way at 0 degree, 30 degrees, 60 degrees and 90 degrees;

the tuning valve has a fault diagnosis function; in the angle rotation test process, the tuning valve can diagnose the corresponding valve block clamping stagnation fault; therefore, after the angle rotation test is finished, the tuning valve detection device sends a fault code reading request to the tuning valve, the tuning valve feeds back a corresponding tuning valve state message for the angle rotation test, and if the fault bit in the tuning valve state message indicates that no valve block clamping stagnation fault exists, the next step is carried out; if the fault bit indicates that the valve block jamming fault exists, controlling a display screen to display related information of the valve block jamming, such as 'Fail, valve block jamming', cutting off power supply to the tuning valve, and stopping sending messages;

step S3, performing memory angle setting: sending an angle setting message representing a valve block memory angle to the tuning valve;

for example, a message is set at an angle of 0x2B6, and the message content of "9000000000000000" indicates that the memory angle of the valve plate is 60 °; sending angle setting messages to the tuning valve for 3 times in a cycle of 10 ms;

step S4, receiving a state message of the tuning valve fed back by the tuning valve to judge whether the valve sheet memory angle information of the tuning valve is consistent with the memory angle information expected to be set or not, if so, performing the next step, otherwise, controlling a display screen to display related information of failure in memory angle setting, cutting off power supply to the tuning valve, and stopping sending the message;

for example, the tuning valve status message fed back by the tuning valve includes flag bits "EAV _ SwitchStatusDisplay" and "EAV _ acoustileveldisplay"; the condition that the EAV _ SwitchStatusDisplay is 0 means that the memory angle of the valve plate is 0 (namely to be closed), and the condition that the EAV _ SwitchStatusDisplay is 1 means that the memory angle of the valve plate needs to be larger than 0; the values of 'EAV _ AcousticLevelDisplay' are 1, 2 and 3 respectively represent that the sound wave level is low, medium and high, namely the memory angle of the valve plate is 30 degrees, 60 degrees and 90 degrees; the related information that the display screen fails to display the memory angle setting can be 'Fail, the memory angle setting fails';

step S5, fault code clearing: sending a fault code clearing request to the tuning valve to clear all fault codes; receiving a response message of the tone tuning valve for the fault code clearing request; if the response message of the positive mode is received, entering the next step; if no response message exists or a response message in a negative mode is received, controlling a display screen to display relevant information of failure code clearing failure, cutting off power supply to the tuning valve, and stopping sending the message;

in this step, the tuning valve detection device may send a fault code clearing request to the tuning valve according to the UDS protocol, and if no response message is received or a response message in a negative mode is received, the display screen is controlled to display Fail and fault code clearing is failed, and then power supply to the tuning valve is cut off and the message is stopped sending;

step S6, sending a fault code reading request to the tuning valve to read back the fault; reading the state message of the tuning valve responded by the tuning valve, and entering the next step if no fault code exists; if the tuning valve does not respond when the fault is read back or any fault code exists in the tuning valve state message responded, controlling the display screen to display relevant information of fault code clearing failure, such as 'Fail, fault code clearing failure', cutting off power supply to the tuning valve, and stopping sending the message;

step S7, store the state: informing the tuning valve of the power failure so that the tuning valve stores the currently set valve block memory angle and fault code, and closing the valve block at the same time;

the notifying of the power failure of the tuning valve specifically comprises: sending a power-on and power-off message indicating that the power supply of the engine is off to the tuning valve to inform the tuning valve of power failure; at the moment, the tuning valve stores the currently set valve sheet memory angle and the fault code (all 0 s because the fault code is cleared); the process lasts for about 5s, then the display screen displays PASS, then the power supply to the tuning valve is cut off, and the message is stopped sending; so far, the current tuning valve detection is completed.

It should be noted that when the tuning valve is in a state storage state, the angle of the valve plate is reset to zero, that is, the valve plate in the factory state of the tuning valve is in a closed state;

in a second aspect, an embodiment of the present invention provides a tuning valve detection device, including: a processor and a memory; the processor and the memory are communicated with each other; the memory has stored therein a computer program; the processor runs the computer program which when run performs the steps of the method as described above; the Processor may be a CPU, or other general-purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA), or the like; the memory may include volatile memory, such as random access memory; the memory may also include non-volatile memory, such as flash memory, a hard disk, or a solid state disk; the memory may also comprise a combination of memories of the above kind;

in a third aspect, embodiments of the present invention provide a storage medium having stored therein a computer program configured to, when executed, perform the steps of the method as described above; the storage medium may be a magnetic Disk, an optical Disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a Flash Memory (Flash Memory), a Hard Disk (Hard Disk Drive, abbreviated as HDD), a Solid-State Drive (SSD), or the like.

Finally, it should be noted that the above embodiments are only for illustrating the technical solutions of the present invention and not for limiting, and although the present invention has been described in detail with reference to examples, it should be understood by those skilled in the art that modifications or equivalent substitutions may be made on the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention, which should be covered by the claims of the present invention.

10页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:四通阀寿命检测装置

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!