Filtering processing method, device and equipment for engine rotating speed signal and medium
By calculating the cycle and cycle change rate of the engine speed signal, identifying the normal position and the missing tooth position of the gear, effectively filtering the interference signal, solving the problem of poor filtering effect of the engine speed signal interference signal in the prior art.
Patent Information
- Application Number
- CN202411934304.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-26
- Publication Date
- 2025-04-25
AI Technical Summary
In the prior art, the interference signal filtering effect in the engine speed signal is poor, especially when the interference signal strength is high, the hardware circuit cannot effectively filter the interference signal.
By obtaining the period of the engine speed signal, the average duration of the high level in one cycle, and the period change rate, we determine whether the corresponding processing position of the signal is the normal position of the gear or the missing gear position, and perform the corresponding interference signal filtering process based on different positions and period change rates.
It effectively removes interference signals in the engine speed signal, does not need to add hardware circuits, and is not affected by the engine speed, improving the purity and reliability of the signal.
Smart Images

Figure CN119892014A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of engine speed signal processing, and in particular to a method, device, equipment and medium for filtering engine speed signals. Background Art
[0002] The engine speed signal is provided by the crankshaft position sensor. The crankshaft position sensor is an important component of the engine management system. It is used to monitor the engine speed and convert the speed information into an electrical signal. The working principle of the crankshaft position sensor is based on the principle of magneto-electric induction. When the crankshaft rotates, the magnet inside the sensor rotates and generates a changing magnetic field. The change is sensed by the coil inside the sensor, thereby generating an electrical signal. The frequency of this electrical signal is proportional to the engine speed, that is, the faster the engine speed, the higher the frequency of the generated electrical signal.
[0003] The engine speed signal is generated based on the principle of magnetic induction. The signal amplitude changes according to the speed. When the signal amplitude is high, the interference amplitude is also high, and the signal is prone to multiple teeth or missing teeth abnormalities. In addition, the processing of the engine speed signal interference problem in the prior art is mainly solved by hardware circuits, but the hardware circuit has limited solving ability. When the interference signal strength is high, the hardware circuit cannot effectively filter out the interference signal. Summary of the invention
[0004] In response to the above-mentioned problems and technical needs, the applicant has proposed a filtering processing method, device, equipment and medium for engine speed signal, so as to solve the problem of poor interference signal filtering effect in engine speed signal in the prior art and achieve effective filtering of interference signal in engine speed signal.
[0005] The embodiment of the present application provides a method for filtering an engine speed signal, the method comprising:
[0006] Obtaining a speed signal, and calculating the period of the speed signal, the average duration of a high level in one period, and the period change rate;
[0007] Determine whether the processing position corresponding to the speed signal is a normal gear position or a gear tooth missing position;
[0008] In the case where it is determined that the processing position is the normal position of the gear, the following interference signal filtering process is performed: the actual duration of each high level in the period is obtained; the actual duration and the average duration are input into a preset first determination formula to determine whether the corresponding relationship between the actual duration and the average duration is established, and the interference signal is filtered out based on the determination result;
[0009] When it is determined that the processing position is the gear tooth-missing position, the interference signal filtering process is performed, and after the interference signal filtering process is performed, the number of square waves between the previous gear tooth-missing position and the next gear tooth-missing position is calculated; when it is determined that the number of square waves is greater than a preset value, the interference signal is filtered out based on the periodic change rate;
[0010] The periodic change rate includes: the change rate of any two adjacent square waves from the previous gear missing tooth position to the next gear missing tooth position.
[0011] According to a method for filtering an engine speed signal in one embodiment of the present application, the first determination formula includes: t_p<αt;
[0012] Among them, t_p represents the actual duration, α is a constant less than 1 and greater than 0, and t represents the average duration;
[0013] Interference signals are filtered out based on the judgment results, including:
[0014] When it is determined that the determination result is used to characterize that the corresponding relationship between the actual duration and the average duration holds, determining the signal corresponding to the current high level as an interference signal and deleting it;
[0015] When it is determined that the determination result is used to characterize that the corresponding relationship between the actual duration and the average duration does not hold, interference signals are filtered out based on the periodic change rate.
[0016] According to an engine speed signal filtering processing method according to an embodiment of the present application, filtering out interference signals based on the periodic change rate includes:
[0017] When it is determined that the period change rate is greater than the preset change rate, the square wave corresponding to the current period is determined to be an interference waveform, and a deletion operation is performed.
[0018] According to an engine speed signal filtering processing method according to an embodiment of the present application, filtering out interference signals based on the periodic change rate includes:
[0019] Input the current cycle, the previous cycle and the cycle change rate into a preset second determination formula, and when it is determined that the second determination formula after the input is established, determine that the square wave corresponding to the current cycle is an interference waveform and perform a deletion operation;
[0020] The second determination formula includes: T_1>T_2+βv;
[0021] Among them, T_1 represents the current cycle, T_2 represents the previous cycle, β represents a constant greater than 1, and v represents the cycle change rate.
[0022] According to a method for filtering an engine speed signal according to an embodiment of the present application, when it is determined that the number of square waves is greater than a preset value, filtering out interference signals based on the periodic change rate includes:
[0023] Calculating a target difference between the number of square waves and the preset value;
[0024] Based on a preset mapping relationship between a difference and a deletion strategy, a target deletion strategy corresponding to the target difference is obtained, and interference signals are filtered out based on the target deletion strategy, wherein the deletion strategy is obtained based on a periodic change rate.
[0025] According to a method for filtering an engine speed signal according to an embodiment of the present application, filtering out interference signals based on the target deletion strategy includes:
[0026] When the difference is equal to 1, the square wave with a larger timestamp among the two square waves corresponding to the maximum periodic change rate is determined from the periodic change rates, and the determined square wave is deleted;
[0027] When the difference is greater than 1, the square wave with the larger timestamp among the two square waves corresponding to the maximum periodic change rate is determined from the periodic change rate, and the determined square wave is deleted, and the periodic change rate is recalculated until the number of deletion operations reaches the difference.
[0028] According to an engine speed signal filtering processing method according to an embodiment of the present application, the speed signal is obtained, and the period of the speed signal, the average duration of the high level in one period, and the period change rate are calculated, including:
[0029] Determine a speed value corresponding to the speed signal, and calculate the inverse of the speed value to obtain a period of the speed signal;
[0030] For each high level, the high level start state and the high level end state are captured based on a preset timer, and timing is started at the high level start state until the high level end state is stopped to obtain the actual duration of the high level; multiple high levels are summed, and the number of high levels is divided by the summation result to obtain the average duration;
[0031] The duration change rate of the actual duration of the high level of the square wave of the previous timestamp and the actual duration of the high level of the square wave of the next timestamp of any adjacent square waves is calculated to obtain the period change rate.
[0032] The embodiment of the present application also provides a filtering processing device for an engine speed signal, comprising:
[0033] A calculation module, used to obtain a speed signal, and calculate the period of the speed signal, the average duration of a high level in one period, and the period change rate;
[0034] A determination module, used to determine whether the processing position corresponding to the speed signal is a normal gear position or a gear tooth missing position;
[0035] A first filtering module is used to perform the following interference signal filtering process when it is determined that the processing position is the normal position of the gear: obtaining the actual duration of each high level in the period; inputting the actual duration and the average duration into a preset first determination formula to determine whether the corresponding relationship between the actual duration and the average duration is established, and filtering the interference signal based on the determination result;
[0036] A second filtering module is used to perform the interference signal filtering process when it is determined that the processing position is the gear tooth-missing position, and after performing the interference signal filtering process, calculate the number of square waves between the previous gear tooth-missing position and the next gear tooth-missing position; and filter the interference signal based on the periodic change rate when it is determined that the number of square waves is greater than a preset value;
[0037] The periodic change rate includes: the change rate of any two adjacent square waves from the previous gear missing tooth position to the next gear missing tooth position.
[0038] An embodiment of the present application also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps of the method for filtering the engine speed signal as described in any one of the above items are implemented.
[0039] An embodiment of the present application also provides a non-transitory computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of the method for filtering the engine speed signal as described in any one of the above items are implemented.
[0040] The filtering processing method, device, equipment and medium of the engine speed signal provided in the embodiments of the present application obtain the speed signal and calculate the period of the speed signal, the average duration of the high level in one period, and the period change rate; determine whether the processing position corresponding to the speed signal is the normal position of the gear or the position of the gear with missing teeth; when it is determined that the processing position is the normal position of the gear, perform the following interference signal filtering process: obtain the actual duration of each high level in the period; input the actual duration and the average duration into a preset first judgment formula to determine whether the corresponding relationship between the actual duration and the average duration holds, and filter the interference signal based on the judgment result; when it is determined that the processing position is the position of the gear with missing teeth, perform the interference signal filtering process. The filtering process is performed, and after executing the interference signal filtering process, the number of square waves from the previous gear missing tooth position to the next gear missing tooth position is calculated; when it is determined that the number of square waves is greater than the preset value, the interference signal is filtered out based on the periodic change rate. The present application calculates the characteristics of the speed signal (period, average duration and periodic change rate), and identifies the normal position of the gear and the gear missing tooth position, and uses the calculated speed signal characteristics to correspond to different filtering strategies to filter out the interference signal. There is no need to add any hardware circuits, and it is not affected by the engine speed. It can effectively filter out the interference signal in the engine speed signal, thereby solving the problem of poor interference signal filtering effect in the engine speed signal in the prior art. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0042] Figure 1 is a waveform diagram of a speed signal processed without interference signals provided in an embodiment of the present application;
[0043] Figure 2 is a waveform diagram of a speed signal after processing with an interference signal provided in an embodiment of the present application;
[0044] Figure 3 It is a flowchart of a filtering processing method for an engine speed signal provided in an embodiment of the present application;
[0045] Figure 4 It is a structural schematic diagram of a filter processing device for an engine speed signal provided in an embodiment of the present application;
[0046] Figure 5 It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0047] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0048] In order to clearly explain the signal interference in this application, the following is a further explanation:
[0049] Specifically, the crankshaft position sensor is installed opposite to the flywheel teeth and fixed on the flywheel housing. When the flywheel rotates, the gap between the crankshaft position sensor head and the gear ring changes. As the gap changes, the magnetic flux of the coil inside the crankshaft position sensor also changes, thereby generating a signal similar to a sine wave. Among them, one cycle of the sine wave is generated when one tooth is rotated.
[0050] The processed waveform is as follows: Figure 1 shown.
[0051] In addition, the crankshaft gear signal is 60-2, with 2 missing teeth, and the current phase of the engine can be determined by identifying the position of the missing teeth.
[0052] Among them, the interference of engine speed signal is as follows Figure 2 shown.
[0053] Among them, there are two types of signal interference. One is the abnormal interference signal generated at the normal position of the gear, which is mainly manifested as the increase of one or more square waves; the other is the abnormal interference signal generated at the missing tooth position of the gear, which is mainly manifested as the increase of one or more square waves.
[0054] The embodiment of the present application provides a method for filtering an engine speed signal, which can generate corresponding filtering strategies for different interference types to solve the signal interference problem. The method can be applied to smart terminals and servers. Some other descriptions in the embodiment of the present application are for illustrative purposes and are not used to limit the scope of protection of the present application. They will not be described one by one later. The specific implementation of the method is as follows Figure 3 As shown:
[0055] Step 301, obtaining a rotation speed signal, and calculating the period of the rotation speed signal, the average duration of a high level in one period, and the period change rate.
[0056] Step 302, determining whether the processing position corresponding to the speed signal is a normal gear position or a gear tooth missing position.
[0057] Step 303, when it is determined that the processing position is the normal position of the gear, execute the following interference signal filtering process: obtain the actual duration of each high level in the cycle; input the actual duration and the average duration into a preset first judgment formula to determine whether the correspondence between the actual duration and the average duration holds, and filter out the interference signal based on the judgment result.
[0058] Step 304, when it is determined that the processing position is a gear tooth missing position, execute the interference signal filtering process, and after executing the interference signal filtering process, calculate the number of square waves between the previous gear tooth missing position and the next gear tooth missing position; when it is determined that the number of square waves is greater than the preset value, filter the interference signal based on the periodic change rate.
[0059] The periodic change rate includes: the change rate of any two adjacent square waves from the previous gear missing tooth position to the next gear missing tooth position, which is obtained by the change rate of the actual duration of the high level of the square wave of the previous timestamp and the actual duration of the high level of the square wave of the next timestamp.
[0060] Here, the processing position is a position that changes in real time as the filtering process is performed.
[0061] The filtering processing method of the engine speed signal provided in the embodiment of the present application obtains the speed signal and calculates the period of the speed signal, the average duration of the high level in one period, and the period change rate; determines whether the processing position corresponding to the speed signal is the normal position of the gear or the position of the gear with missing teeth; when it is determined that the processing position is the normal position of the gear, performs the following interference signal filtering process: obtains the actual duration of each high level in the period; inputs the actual duration and the average duration into a preset first judgment formula to determine whether the corresponding relationship between the actual duration and the average duration holds, and filters the interference signal based on the judgment result; when it is determined that the processing position is the position of the gear with missing teeth, performs the interference signal filtering process. , and after executing the interference signal filtering process, calculate the number of square waves from the previous gear missing tooth position to the next gear missing tooth position; when it is determined that the number of square waves is greater than the preset value, filter the interference signal based on the periodic change rate. The present application calculates the characteristics of the speed signal (period, average duration and periodic change rate), and identifies the normal position of the gear and the gear missing tooth position, and uses the calculated speed signal characteristics to correspond to different filtering strategies to filter the interference signal. There is no need to add any hardware circuits, and it is not affected by the engine speed. It can effectively filter out the interference signal in the engine speed signal, thereby solving the problem of poor interference signal filtering effect in the engine speed signal in the prior art.
[0062] In addition, the filtering strategy of the present application is specified based on the engine speed and has higher accuracy. Since the engine speed is calculated by the rotation of the crankshaft gear, the crankshaft rotation rate will not jump but will only change at a constant speed, which will not interfere with the signal.
[0063] Specifically, the acquired rotation speed signal is a processed rotation speed signal.
[0064] First, the initial speed signal is obtained, which is the original signal input by the sensor. The analog signal is converted into a digital signal through the speed processing hardware circuit. Then the digital signal is sent to the microcontroller, which obtains the digital signal (processed speed signal) and calculates the speed signal cycle, the average duration of the high level in one cycle, and the cycle change rate.
[0065] In a specific embodiment, the specific implementation of obtaining the speed signal and calculating the period of the speed signal, the average duration of the high level in one period, and the period change rate includes:
[0066] Determine the speed value corresponding to the speed signal, calculate the inverse of the speed value to obtain the period of the speed signal; for each high level, capture the high level start state and the high level end state based on a preset timer, and start timing at the high level start state and stop timing at the high level end state to obtain the actual duration of the high level; sum multiple high levels, and use the summation result to divide the number of high levels to obtain the average duration; calculate the time change rate of the actual high level duration of the square wave of the previous timestamp of any adjacent square waves and the actual high level duration of the square wave of the next timestamp to obtain the period change rate.
[0067] In a specific embodiment, the first determination formula is shown in formula (1):
[0068] t_p<αt…………………………………………(1)
[0069] Among them, t_p represents the actual duration, α is a constant less than 1 and greater than 0, and t represents the average duration.
[0070] When it is determined that the judgment result is used to characterize the correspondence between the actual duration and the average duration, the signal corresponding to the current high level is determined as an interference signal and deleted; when it is determined that the judgment result is used to characterize the correspondence between the actual duration and the average duration, the interference signal is filtered out based on the periodic change rate.
[0071] For example, if α is equal to 0.2, then the first determination formula is specifically t_p<0.2*t.
[0072] After the actual duration and the average duration are input into the first determination formula, if the first determination formula is established, it is determined that the current square wave is an interference waveform and is deleted.
[0073] In a specific embodiment, the specific implementation of filtering out interference signals based on the periodic change rate includes:
[0074] When it is determined that the period change rate is greater than the preset change rate, the square wave corresponding to the current period is determined to be an interference waveform, and a deletion operation is performed.
[0075] Specifically, the signal corresponding to the high level of the square wave corresponding to the current cycle is determined to be an interference signal and is deleted.
[0076] In a specific embodiment, the specific implementation of filtering out interference signals based on the periodic change rate includes:
[0077] The current cycle, the previous cycle and the cycle change rate are input into the second determination formula, and when it is determined that the second determination formula after the input is established, the square wave corresponding to the current cycle is determined to be an interference waveform, and a deletion operation is performed.
[0078] The second determination formula is shown in formula (2):
[0079] T_1>T_2+βv…………………………………………(2)
[0080] Among them, T_1 represents the current cycle, T_2 represents the previous cycle, β represents a constant greater than 1, and v represents the cycle change rate.
[0081] The specific input parameters include the actual duration of the high level of the square wave in the current cycle, the actual duration of the high level of the square wave in the previous cycle, and the cycle change rate obtained by calculation.
[0082] Specifically, when it is determined that the second determination formula holds true, it is determined that the current square wave is an interference waveform, that is, the signal corresponding to the current square wave is an interference signal, and is deleted.
[0083] In a specific embodiment, when it is determined that the number of square waves is greater than a preset value, the specific implementation of filtering out interference signals based on the periodic change rate includes:
[0084] Calculate the target difference between the number of square waves and the preset value; based on the mapping relationship between the preset difference and the deletion strategy, obtain the target deletion strategy corresponding to the target difference, and filter the interference signal based on the target deletion strategy.
[0085] Among them, the deletion strategy is obtained based on the periodic change rate.
[0086] In a specific embodiment, the specific implementation of filtering out interference signals based on the target deletion strategy includes:
[0087] When the difference is equal to 1, the square wave with the larger timestamp of the two square waves corresponding to the maximum periodic change rate is determined from the periodic change rate, and the determined square wave is deleted; when the difference is greater than 1, the square wave with the larger timestamp of the two square waves corresponding to the maximum periodic change rate is determined from the periodic change rate, and the determined square wave is deleted, and the periodic change rate is recalculated until the number of deletion operations reaches the difference.
[0088] Specifically, the difference between the number of square waves and the preset value is calculated; when the difference is equal to 1, the square wave with the larger timestamp of the two square waves corresponding to the maximum periodic change rate is determined from the periodic change rate, and the determined square wave is deleted; when the difference is greater than 1, the square wave with the larger timestamp of the two square waves corresponding to the maximum periodic change rate is determined from the periodic change rate, and the determined square wave is deleted, and the periodic change rate is recalculated until the number of deletion operations reaches the difference.
[0089] Specifically, the crankshaft gear signal is 60-2, and the actual collected waveform is 58. The count is performed from the last missing tooth to the next missing tooth. If the number of square waves counted is greater than 58, it indicates that there is still an interference signal in the signal, and the interference signal needs to be filtered out.
[0090] When the difference is greater than 1, multiple iterative calculations and deletion operations are required. Specifically, the square wave with a larger timestamp of the two square waves corresponding to the maximum periodic change rate is determined from the periodic change rate, and the determined square wave is deleted; the periodic change rate is recalculated based on the remaining square waves, and the square wave with a larger timestamp of the two square waves corresponding to the maximum periodic change rate is determined from the periodic change rate, and the determined square wave is deleted, until the number of deletion operations reaches the difference.
[0091] This application solves the problem of multiple and large speed signal interference by identifying the normal position of the gear and the position of the gear with missing teeth, and using the calculated characteristics of the speed signal to filter out interference signals according to different filtering strategies. In addition, it does not require the addition of any hardware circuits and is not affected by the engine speed. It can effectively filter out interference signals in the engine speed signal, solving the problem of poor filtering effect of interference signals in the engine speed signal in the prior art, reducing costs and improving user experience.
[0092] The embodiment of the present application also provides a filter processing device for an engine speed signal. The specific implementation of the device can refer to the description of the filter processing method for the engine speed signal, and the repeated parts will not be repeated. Figure 4 As shown, the device comprises:
[0093] The calculation module 401 is used to obtain the speed signal and calculate the period of the speed signal, the average duration of the high level in one period, and the period change rate;
[0094] A determination module 402 is used to determine whether the processing position corresponding to the speed signal is a normal gear position or a gear tooth missing position;
[0095] The first filtering module 403 is used to perform the following interference signal filtering process when it is determined that the processing position is the normal position of the gear: obtaining the actual duration of each high level in the cycle; inputting the actual duration and the average duration into a preset first determination formula to determine whether the corresponding relationship between the actual duration and the average duration is established, and filtering the interference signal based on the determination result;
[0096] The second filtering module 404 is used to perform an interference signal filtering process when it is determined that the processing position is a gear tooth missing position, and after performing the interference signal filtering process, calculate the number of square waves between the previous gear tooth missing position and the next gear tooth missing position; when it is determined that the number of square waves is greater than a preset value, filter the interference signal based on the periodic change rate;
[0097] The periodic change rate includes: the change rate of any two adjacent square waves from the previous gear missing tooth position to the next gear missing tooth position.
[0098] In a specific embodiment, the first determination formula includes: t_p<αt.
[0099] Wherein, t_p represents the actual duration, α is a constant less than 1 and greater than 0, and t represents the average duration. The first filtering module 403 is used to determine the signal corresponding to the current high level as an interference signal and delete it when it is determined that the corresponding relationship between the determination result used to characterize the actual duration and the average duration is established; when it is determined that the corresponding relationship between the determination result used to characterize the actual duration and the average duration is not established, filter out the interference signal based on the periodic change rate.
[0100] In a specific embodiment, the second filtering module 404 is used to determine that the square wave corresponding to the current period is an interference waveform and perform a deletion operation when it is determined that the period change rate is greater than a preset change rate.
[0101] In a specific embodiment, the second filtering module 404 is used to input the current cycle, the previous cycle and the cycle change rate into a preset second determination formula, and when it is determined that the second determination formula after the input is established, determine that the square wave corresponding to the current cycle is an interference waveform and perform a deletion operation.
[0102] The second determination formula includes: T_1>T_2+βv.
[0103] Among them, T_1 represents the current cycle, T_2 represents the previous cycle, β represents a constant greater than 1, and v represents the cycle change rate.
[0104] In a specific embodiment, the second filtering module 404 is used to calculate the target difference between the number of square waves and a preset value; based on the mapping relationship between the preset difference and the deletion strategy, obtain the target deletion strategy corresponding to the target difference, and filter the interference signal based on the target deletion strategy.
[0105] Among them, the deletion strategy is obtained based on the periodic change rate.
[0106] In a specific embodiment, the second filtering module 404 is used to determine the square wave with a larger timestamp between the two square waves corresponding to the maximum periodic change rate from the periodic change rate when the difference is equal to 1, and delete the determined square wave; when the difference is greater than 1, determine the square wave with a larger timestamp between the two square waves corresponding to the maximum periodic change rate from the periodic change rate, delete the determined square wave, and recalculate the periodic change rate until the number of deletion operations reaches the difference.
[0107] In a specific embodiment, the calculation module 401 is used to determine the speed value corresponding to the speed signal, calculate the inverse of the speed value to obtain the period of the speed signal; for each high level, capture the high level start state and the high level end state based on a preset timer, and start timing at the high level start state until the high level end state stops timing to obtain the actual duration of the high level; sum multiple high levels, and use the summation result to divide the number of high levels to obtain the average duration; calculate the time change rate of the actual high level duration of the square wave of the previous timestamp of any adjacent square waves and the actual high level duration of the square wave of the next timestamp to obtain the period change rate.
[0108] Figure 5 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 5 As shown, the electronic device may include: a processor 501, a communications interface 502, a memory 503 and a communication bus 504, wherein the processor 501, the communications interface 502 and the memory 503 communicate with each other via the communication bus 504. The processor 501 may call the logic instructions in the memory 503 to execute the filtering processing method of the engine speed signal.
[0109] In addition, the logic instructions in the above-mentioned memory 503 can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0110] On the other hand, the present invention also provides a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer can execute the filtering processing method of the engine speed signal provided by the above-mentioned methods.
[0111] On the other hand, the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to perform the filtering processing method of the engine speed signal provided in the above-mentioned embodiments.
[0112] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0113] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0114] Finally, it should be noted that the above is only the preferred implementation of the present application, and the present application is not limited to the above embodiments. It is understood that other improvements and changes directly derived or associated by those skilled in the art without departing from the spirit and concept of the present application should be considered to be included in the scope of protection of the present application.
Claims
1. A method for filtering an engine speed signal, characterized in that: The method comprises: Obtaining a speed signal, and calculating the period of the speed signal, the average duration of a high level in one period, and the period change rate; Determine whether the processing position corresponding to the speed signal is a normal gear position or a gear tooth missing position; In the case where it is determined that the processing position is the normal position of the gear, the following interference signal filtering process is performed: obtaining the actual duration of each high level in the period; inputting the actual duration and the average duration into a preset first determination formula to determine whether the corresponding relationship between the actual duration and the average duration is established, and filtering the interference signal based on the determination result; When it is determined that the processing position is the gear tooth-missing position, the interference signal filtering process is performed, and after the interference signal filtering process is performed, the number of square waves between the previous gear tooth-missing position and the next gear tooth-missing position is calculated; when it is determined that the number of square waves is greater than a preset value, the interference signal is filtered out based on the periodic change rate; The periodic change rate includes: the change rate of any two adjacent square waves from the previous gear missing tooth position to the next gear missing tooth position.
2. The method for filtering the engine speed signal according to claim 1, characterized in that: The first determination formula includes: t_p<αt; Among them, t_p represents the actual duration, α is a constant less than 1 and greater than 0, and t represents the average duration; Interference signals are filtered out based on the judgment results, including: When it is determined that the determination result is used to characterize that the corresponding relationship between the actual duration and the average duration holds, determining the signal corresponding to the current high level as an interference signal and deleting it; When it is determined that the determination result is used to characterize that the corresponding relationship between the actual duration and the average duration does not hold, interference signals are filtered out based on the periodic change rate.
3. The method for filtering an engine speed signal according to claim 1 or 2, characterized in that: Filtering interference signals based on the periodic change rate includes: When it is determined that the period change rate is greater than the preset change rate, the square wave corresponding to the current period is determined to be an interference waveform, and a deletion operation is performed.
4. The method for filtering an engine speed signal according to claim 1 or 2, characterized in that: Filtering interference signals based on the periodic change rate includes: Input the current cycle, the previous cycle and the cycle change rate into a preset second determination formula, and when it is determined that the second determination formula after the input is established, determine that the square wave corresponding to the current cycle is an interference waveform and perform a deletion operation; The second determination formula includes: T_1>T_2+βv; Among them, T_1 represents the current cycle, T_2 represents the previous cycle, β represents a constant greater than 1, and v represents the cycle change rate.
5. The method for filtering an engine speed signal according to claim 1 or 2, characterized in that: When it is determined that the number of square waves is greater than a preset value, filtering interference signals based on the periodic change rate includes: Calculating a target difference between the number of square waves and the preset value; Based on a preset mapping relationship between a difference and a deletion strategy, a target deletion strategy corresponding to the target difference is obtained, and interference signals are filtered out based on the target deletion strategy, wherein the deletion strategy is obtained based on a periodic change rate.
6. The method for filtering the engine speed signal according to claim 5, characterized in that: Filtering the interference signal based on the target deletion strategy includes: When the difference is equal to 1, the square wave with a larger timestamp among the two square waves corresponding to the maximum periodic change rate is determined from the periodic change rates, and the determined square wave is deleted; When the difference is greater than 1, the square wave with the larger timestamp among the two square waves corresponding to the maximum periodic change rate is determined from the periodic change rate, and the determined square wave is deleted, and the periodic change rate is recalculated until the number of deletion operations reaches the difference.
7. The method for filtering an engine speed signal according to claim 1 or 2, characterized in that: Obtain the speed signal, and calculate the period of the speed signal, the average duration of the high level in one period, and the period change rate, including: Determine a speed value corresponding to the speed signal, and calculate the inverse of the speed value to obtain a period of the speed signal; For each high level, the high level start state and the high level end state are captured based on a preset timer, and timing is started at the high level start state until the high level end state is stopped to obtain the actual duration of the high level; multiple high levels are summed, and the number of high levels is divided by the summation result to obtain the average duration; The duration change rate of the actual duration of the high level of the square wave of the previous timestamp and the actual duration of the high level of the square wave of the next timestamp of any adjacent square waves is calculated to obtain the period change rate.
8. A filter processing device for an engine speed signal, characterized in that: The device comprises: A calculation module, used to obtain a speed signal, and calculate the period of the speed signal, the average duration of a high level in one period, and the period change rate; A determination module, used to determine whether the processing position corresponding to the speed signal is a normal gear position or a gear tooth missing position; A first filtering module is used to perform the following interference signal filtering process when it is determined that the processing position is the normal position of the gear: obtaining the actual duration of each high level in the period; inputting the actual duration and the average duration into a preset first determination formula to determine whether the corresponding relationship between the actual duration and the average duration is established, and filtering the interference signal based on the determination result; A second filtering module is used to perform the interference signal filtering process when it is determined that the processing position is the gear tooth-missing position, and after performing the interference signal filtering process, calculate the number of square waves between the previous gear tooth-missing position and the next gear tooth-missing position; and filter the interference signal based on the periodic change rate when it is determined that the number of square waves is greater than a preset value; The periodic change rate includes: the change rate of any two adjacent square waves from the previous gear missing tooth position to the next gear missing tooth position.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the steps of the method for filtering the engine speed signal as described in any one of claims 1 to 7 are implemented.
10. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method for filtering the engine speed signal as claimed in any one of claims 1 to 7 are implemented.
Citation Information
Cited By
Signal processing method and device, equipment, storage medium and computer program product
CN120110384A
Motorcycle rotating speed pulse acquisition and processing method, equipment, medium and product
CN120974074A
Filtering processing method and apparatus for engine rotation speed signal, device, and medium
WO2026137977A1