Engine rotating speed measuring method, device, equipment, storage medium and program product
By measuring engine speed using a resolver sensor and a compensation mechanism, the problem of Hall effect sensors being affected by temperature and electromagnetic interference is solved, improving measurement accuracy and reducing costs.
Patent Information
- Application Number
- CN202410943993.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-15
- Publication Date
- 2024-11-15
AI Technical Summary
Traditional methods that rely on Hall effect sensors to measure engine speed and phase are easily affected by factors such as temperature and electromagnetic interference, leading to reduced measurement accuracy.
A resolver sensor is used to collect analog signals from the engine. The digital signals are obtained through analog-to-digital conversion. The angular velocity is calculated and temperature, voltage and interference compensation are performed to obtain the effective speed.
It improves the accuracy of engine speed measurement, enhances the overall efficiency of the engine, reduces the fuel or electricity consumption of the vehicle, and replaces the traditional Hall effect sensor in hybrid and new energy vehicles to reduce costs.
Smart Images

Figure CN118962173A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of engine technology, and in particular to an engine speed measurement method, device, equipment, storage medium and program product. Background Art
[0002] Speed is an extremely important parameter for evaluating engine performance, monitoring the test process, and designing data systems. It is also a commonly controlled variable of the engine. In the engine control system, the measurement of engine speed is often involved, and the control system has very high requirements for the accuracy of speed measurement. Accurate and real-time measurement of speed is of great significance to ensure the normal operation and safety of the engine.
[0003] In conventional or hybrid vehicles, accurate measurement of engine speed and intake and exhaust camshaft phase is essential to ensure efficient operation of the power system. Traditional methods usually rely on Hall effect sensors to measure speed and phase, but these sensors are usually affected by various factors such as temperature and electromagnetic interference, resulting in reduced measurement accuracy.
[0004] The above contents are only used to assist in understanding the technical solution of the present application and do not constitute an admission that the above contents are prior art. Summary of the invention
[0005] The main purpose of this application is to provide an engine speed measurement method, device, equipment, storage medium and program product, aiming to solve the technical problem that the traditional method relies on Hall effect sensors to measure speed and phase, which is usually affected by various factors such as temperature and electromagnetic interference, resulting in reduced measurement accuracy.
[0006] To achieve the above object, the present application proposes a method for measuring engine speed, the method comprising:
[0007] The analog signal of the vehicle's engine running is collected through a resolver sensor;
[0008] Performing angular velocity conversion on the analog signal to obtain a unit rotation speed corresponding to the analog signal;
[0009] The unit speed is compensated according to a preset compensation mechanism to obtain an effective speed corresponding to the engine.
[0010] In one embodiment, the analog signal includes a sine analog signal and a cosine analog signal, and the step of performing angular velocity conversion on the analog signal to obtain a unit rotation speed corresponding to the analog signal includes:
[0011] Performing analog-to-digital conversion on the sine analog signal and the cosine analog signal through an analog-to-digital converter to obtain a digital signal;
[0012] Based on the digital signal, determining an original angle corresponding to when the engine is running;
[0013] An angular velocity conversion is performed according to the original angle to obtain a unit rotation speed corresponding to the analog signal.
[0014] In one embodiment, the step of converting the angular velocity according to the original angle to obtain the unit rotation speed corresponding to the analog signal includes:
[0015] Based on the original angle, obtaining the angle difference and unit time of the analog signal;
[0016] Calculating the angular velocity according to the angle difference and the unit time to obtain the angular velocity of the engine;
[0017] The angular velocity is converted into a rotational speed to obtain a unit rotational speed corresponding to the analog signal.
[0018] In one embodiment, the step of obtaining the angle difference and unit time of the analog signal based on the original angle includes:
[0019] Dividing the original angle into a plurality of sampling points at a preset time interval;
[0020] The angle differences between the plurality of sampling points are determined, and the preset time interval is used as the unit time of the analog signal.
[0021] In one embodiment, the preset compensation mechanism includes temperature compensation and voltage compensation, and the step of compensating the unit speed according to the preset compensation mechanism to obtain the effective speed corresponding to the engine includes:
[0022] Performing temperature compensation on the unit speed through a quadratic polynomial model to obtain a temperature compensated speed;
[0023] Performing voltage compensation on the unit speed through a linear model to obtain a voltage compensated speed;
[0024] An effective speed corresponding to the engine is determined according to the angular velocity, the temperature compensated speed and the voltage compensated speed.
[0025] In one embodiment, the preset compensation mechanism further includes interference compensation, and the step of compensating the unit speed according to the preset compensation mechanism to obtain the effective speed corresponding to the engine further includes:
[0026] Collecting the speed voltage of the engine when it is running;
[0027] The unit speed and the speed voltage are subjected to interference compensation through a low-pass filter to obtain an effective speed corresponding to the engine.
[0028] In addition, to achieve the above-mentioned purpose, the present application also proposes an engine speed measuring device, the device comprising:
[0029] A signal acquisition module, used to collect analog signals of the vehicle's engine when it is running through a resolver sensor;
[0030] A rotation speed conversion module, used for performing angular velocity conversion on the analog signal to obtain a unit rotation speed corresponding to the analog signal;
[0031] The speed compensation module is used to compensate the unit speed according to a preset compensation mechanism to obtain an effective speed corresponding to the engine.
[0032] In addition, to achieve the above-mentioned purpose, the present application also proposes an engine speed measurement device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the engine speed measurement method described above.
[0033] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the engine speed measurement method described above are implemented.
[0034] In addition, to achieve the above-mentioned purpose, the present application also provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the steps of the engine speed measurement method described above are implemented.
[0035] One or more technical solutions proposed in this application have at least the following technical effects: This application first collects the analog signal of the vehicle's engine when it is running through a resolver sensor; then converts the analog signal into an angular velocity to obtain the unit speed corresponding to the analog signal; finally, the unit speed is compensated according to a preset compensation mechanism to obtain the effective speed corresponding to the engine. Since this application uses a resolver sensor to collect the analog signal when the engine is running to determine the unit speed of the engine, and then compensates the unit speed through a preset compensation mechanism, it avoids the situation in which the Hall effect sensor in the traditional method is usually affected by temperature, electromagnetic interference, etc., and can effectively offset the influence of external factors on the speed measurement, thereby improving the speed measurement accuracy of the engine, thereby improving the overall working efficiency of the engine. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0037] 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, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0038] Figure 1 A schematic diagram of a flow chart provided for the first embodiment of the engine speed measurement method of the present application;
[0039] Figure 2 A flow chart of the second embodiment of the engine speed measurement method of the present application;
[0040] Figure 3 This is a schematic diagram of the module structure of the engine speed measurement device according to an embodiment of the present application;
[0041] Figure 4 Schematic diagram of the device structure of the hardware operating environment involved in the engine speed measurement method in the embodiment of the present application.
[0042] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0043] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.
[0044] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.
[0045] In response to the above technical problems, the present application proposes a method for measuring engine speed using a resolver sensor, and improves the measurement accuracy through a series of compensation mechanisms. The method includes using the sine and cosine analog signals of the resolver sensor to calculate the original angular velocity of the engine, and then converting it into a speed. By implementing temperature compensation, voltage compensation and interference compensation, the influence of external factors on the speed measurement can be effectively offset. The speed accuracy of the engine and motor can be improved, thereby improving the comprehensive working efficiency of the engine or motor, reducing the fuel consumption or power consumption of the whole vehicle, and improving the driving experience of the whole vehicle. In hybrid and new energy vehicles, the resolver is a standard component of the motor. This method can not only improve the speed measurement accuracy, but also replace the speed sensor on the original engine, thereby reducing costs.
[0046] It should be noted that the execution subject of this embodiment can be an electronic device with signal acquisition, angular velocity conversion and signal compensation functions, such as an on-board computer, a vehicle control unit (VCU), etc., or an electronic device capable of realizing the above functions, an engine speed measuring device (referred to as a measuring device) that executes the engine speed measurement method of this application, etc., and this embodiment does not limit this. The following takes the measuring device as an example to illustrate this embodiment and the following embodiments.
[0047] Based on this, the present application embodiment provides an engine speed measurement method, referring to Figure 1 , Figure 1 A flow chart of the first embodiment of the engine speed measurement method of the present application.
[0048] In this embodiment, the engine speed measurement method includes steps S10 to S30:
[0049] Step S10: Collecting analog signals of the vehicle's engine when it is running through a resolver sensor.
[0050] It should be noted that the resolver sensor is a sensor used to measure parameters such as rotation angle and angular velocity. The resolver sensor works on the principle of electromagnetic induction and can convert the mechanical angle of the engine rotor into an electrical signal output, with the advantage of high accuracy.
[0051] Considering that the whole vehicle is affected by the environment, working conditions, etc., and the temperature variation range is wide, which seriously affects the measurement accuracy of traditional Hall effect sensors. Therefore, the present application method can be applied through a resolver sensor. Because in hybrid and new energy vehicles, resolver sensors are standard components of motors, the resolver sensor can not only improve the speed measurement accuracy, but also replace the Hall effect sensor on the original engine, further achieving the purpose of reducing costs.
[0052] It should be noted that the analog signal is a signal collected by a resolver sensor when the vehicle's engine is running, such as a sine and cosine analog signal when the engine is running.
[0053] In one embodiment, after the sine and cosine analog signals of the engine during operation are read by the resolver sensor, these analog signals may be converted into digital signals by an analog-to-digital converter for subsequent processing.
[0054] Step S20: converting the analog signal into an angular velocity to obtain a unit rotation speed corresponding to the analog signal.
[0055] It should be noted that the unit speed is the engine's revolutions per minute (RPM), which indicates the number of revolutions the engine rotor makes per minute. For example, if an engine can make 3,000 revolutions per minute, then its speed is 3,000 RPM.
[0056] In one embodiment, the measuring device can calculate the angular velocity of the engine according to the sine and cosine values of the sine and cosine analog signals, and then convert the angular velocity into a rotation speed (RPM) to obtain a unit rotation speed corresponding to the analog signal.
[0057] Step S30: compensating the unit speed according to a preset compensation mechanism to obtain an effective speed corresponding to the engine.
[0058] It should be noted that the preset compensation mechanism is a mechanism pre-set in the measuring device for supplementing the unit speed. Considering that the sensor is usually affected by various factors such as temperature and electromagnetic interference, the measurement accuracy is reduced.
[0059] Therefore, the preset compensation mechanism may include temperature compensation, voltage compensation, interference compensation, etc., which is not limited in this embodiment.
[0060] In one embodiment, the measuring device can perform a series of compensations on the unit speed according to a preset compensation mechanism, which can improve the accuracy of the engine speed and obtain the final effective speed, thereby improving the comprehensive working efficiency of the engine, reducing the fuel consumption or power consumption of the vehicle, and improving the driving experience of the vehicle.
[0061] This embodiment provides an engine speed measurement method. First, after reading the sine and cosine analog signals of the engine when it is running through the resolver sensor, these analog signals can be converted into digital signals through an analog-to-digital converter for subsequent processing. Then the measuring device can calculate the angular velocity of the engine according to the sine and cosine values of the sine and cosine analog signals. Then the angular velocity is converted into the speed (RPM) to obtain the unit speed corresponding to the analog signal. Finally, considering that the sensor is usually affected by various factors such as temperature and electromagnetic interference, the accuracy of the measurement is reduced. The measuring device can perform a series of compensations on the unit speed according to the preset compensation mechanism, which can improve the accuracy of the engine speed and obtain the final effective speed. Since this embodiment uses a resolver sensor to collect the analog signal when the engine is running to determine the unit speed of the engine, and then compensates the unit speed through the preset compensation mechanism, it avoids the situation in which the Hall effect sensor is usually affected by temperature, electromagnetic interference, etc. in the traditional method, and can effectively offset the influence of external factors on the speed measurement, improve the speed measurement accuracy of the engine, and thus improve the comprehensive working efficiency of the engine. In addition, because resolver sensors are standard components of motors in hybrid and new energy vehicles, the use of resolver sensors can not only improve the accuracy of speed measurement, but also replace the Hall effect sensors on the original engine, further reducing costs.
[0062] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the above-mentioned embodiment 1 can be referred to the above introduction, and will not be repeated in the following. Figure 2 , Figure 2 A flow chart of the second embodiment of the engine speed measurement method of the present application is provided.
[0063] The analog signal in this example includes a sine analog signal and a cosine analog signal, and the step S20 includes steps S21 to S23:
[0064] Step S21: performing analog-to-digital conversion on the sine analog signal and the cosine analog signal through an analog-to-digital converter to obtain a digital signal.
[0065] It should be noted that an analog-to-digital converter (ADC) is a device used to convert analog signals into digital signals.
[0066] In electronic systems, the signals collected by many sensors are generally analog signals, so these analog signals need to be digitized and converted into discrete digital signals by sampling and quantizing the analog signals. The analog-to-digital converter plays a key role in building a bridge between the analog world and the digital world.
[0067] It should be noted that the sinusoidal analog signal is a signal that changes with time according to the law of the sine function, and its expression is generally Where A represents the amplitude, which is the strength of the sinusoidal analog signal; ω represents the angular frequency, which is the speed at which the sinusoidal analog signal changes; Indicates the initial phase, which is the starting position of the sinusoidal analog signal.
[0068] It should be noted that the cosine analog signal is a signal that changes with time according to the law of the cosine function, and its expression is generally Where A represents the amplitude, which is the strength of the cosine analog signal; ω represents the angular frequency, which is the speed at which the cosine analog signal changes; Represents the initial phase, which is the starting position of the cosine analog signal.
[0069] Step S22: Based on the digital signal, determine the original angle corresponding to the operation of the engine.
[0070] Step S23: performing angular velocity conversion according to the original angle to obtain a unit rotation speed corresponding to the analog signal.
[0071] It should be noted that the original angle is the angle of rotation of the crankshaft when the engine is running.
[0072] In this embodiment, the measuring device can perform analog-to-digital conversion on the sine analog signal and the cosine analog signal through an analog-to-digital converter to obtain a digital signal. Then, the sine and cosine values of the digital signal are obtained to calculate the original angle of the engine. Then, the angular velocity is further calculated by measuring the change in the angle over a certain period of time. The angular velocity is converted into revolutions per minute to obtain the unit speed corresponding to the analog signal. Thus, a more accurate unit speed is obtained through the sine analog signal and the cosine analog signal.
[0073] In a feasible implementation, step S23 of this embodiment may include the steps of: obtaining the angle difference and unit time of the analog signal based on the original angle; calculating the angular velocity according to the angle difference and the unit time to obtain the angular velocity of the engine; converting the angular velocity into a rotational speed to obtain a unit rotational speed corresponding to the analog signal.
[0074] It should be noted that the angle difference is the difference in phase between the original angles, that is, the difference in the corresponding angles, which reflects the relative offset between the signals in time. The unit time is the relative offset time between the signals in the angle difference.
[0075] In another feasible implementation, the step of obtaining the angle difference and unit time of the analog signal based on the original angle described in this embodiment includes: dividing the original angle into multiple sampling points according to a preset time interval; determining the angle difference between the multiple sampling points, and using the preset time interval as the unit time of the analog signal.
[0076] It should be noted that the preset time interval is a preset time interval used to divide the original angle into a plurality of sampling points.
[0077] Specifically, the angle difference between the current sampling point and the previous sampling point may be calculated, and then the time interval between the two sampling points is the unit time.
[0078] It should be noted that angular velocity is the angle that the engine crankshaft or other rotating parts rotate per unit time. Generally speaking, the greater the angular velocity, the faster the engine rotates; the smaller the angular velocity, the slower the rotation speed.
[0079] In this implementation, for ease of understanding, the conversion of the signal is described in detail:
[0080] Specifically, the sine analog signal ADC_sin and the cosine analog signal ADC_cos can be converted into the original angle (θ), where ADC_sin represents the ADC value of the sine analog signal, and ADC_cos represents the ADC value of the cosine analog signal. The conversion formula is as follows:
[0081] θ=atan2(ADC_sin,ADC_cos).
[0082] The angular velocity (ω) can then be calculated by dividing the change in angle (Δθ) by the change in time (Δt) using the following formula:
[0083] ω=Δθ / Δt.
[0084] Wherein, Δθ is the angle difference between the current sampling point and the previous sampling point, and Δt is the time interval (i.e., unit time) between the two sampling points.
[0085] Finally, calculate the engine speed (RPM). The speed (RPM) can be calculated by multiplying the angular velocity (ω) by a conversion factor. The conversion factor converts the unit of angular velocity from radians per second to revolutions per minute. The formula is as follows:
[0086] RPM = (ω×60) / (2π).
[0087] In another feasible implementation, the preset compensation mechanism described in this embodiment includes temperature compensation and voltage compensation, and the step S30 may include the steps of: performing temperature compensation on the unit speed through a quadratic polynomial model to obtain a temperature compensated speed; performing voltage compensation on the unit speed through a linear model to obtain a voltage compensated speed; and determining the effective speed corresponding to the engine based on the angular velocity, the temperature compensated speed and the voltage compensated speed.
[0088] It should be noted that the quadratic polynomial model is a polynomial model containing quadratic terms, linear terms and constant terms. The temperature value is substituted into the polynomial model as input, and a speed value after temperature compensation is obtained after calculation, that is, the temperature compensated speed.
[0089] By using a quadratic polynomial model, the effect of temperature change on unit speed can be corrected or compensated, reducing the deviation caused by temperature factors on speed measurement or use, making speed data or related applications more reliable and accurate.
[0090] It should be noted that the linear model is a model that includes a linear equation of voltage variables. The current voltage value is substituted into the model for calculation to obtain the compensated speed value, that is, the voltage compensated speed. This can eliminate or reduce the speed measurement error or deviation caused by voltage changes, so that the speed can more accurately present its true state or achieve the expected effect under different voltage conditions.
[0091] The relationship between unit speed and voltage can be processed through a linear model to compensate for the effect of voltage change on unit speed.
[0092] In this implementation, for ease of understanding, temperature compensation and voltage compensation are described in detail:
[0093] Specifically, a temperature influence model based on quadratic polynomial fitting can be used to perform temperature compensation on the speed reading of a unit speed. The model can adjust the speed reading according to the real-time temperature reading to reflect the actual impact of temperature changes on the measurement results. The formula is as follows:
[0094] RPM_compensated=RPM_measured-(aT^2+b×T+c-RPM_measured);
[0095] Wherein, T represents the temperature reading, a, b and c are the coefficients of the temperature compensation polynomial model obtained by polynomial regression analysis, RPM_measured is the speed reading of the uncompensated unit speed, and RPM_compensated is the speed reading after temperature compensation, that is, (aT^2+b×T+c-RPM_measured) is the temperature compensated speed.
[0096] Then, a linear model is used to compensate for the effect of power supply voltage changes on the speed reading per unit speed. By monitoring the voltage reading in real time, the model can adjust the speed reading to reduce the effect of voltage fluctuations on the speed measurement. The formula is as follows:
[0097] RPM_compensated=RPM_measured-(k×V+m-RPM_measured);
[0098] Among them, V represents the voltage reading, k and m are the coefficients of the linear model obtained by linear regression analysis, RPM_measured is the speed reading of the uncompensated unit speed, and RPM_compensated is the speed reading after voltage compensation, that is, (k×V+m-RPM_measured) is the voltage compensated speed.
[0099] Finally, the final effective speed calculation and compensation can be expressed as:
[0100] RPM_final=Filter((atan2(ADC_sin,ADC_cos)×60 / (2π)-(aT^2+b×T+c-RPM_measured)-(k×V+m-RPM_measured)).
[0101] In another feasible implementation, the preset compensation mechanism described in this embodiment also includes interference compensation, and the step S30 may also include the steps of: collecting the speed voltage when the engine is running; performing interference compensation on the unit speed and the speed voltage through a low-pass filter to obtain the effective speed corresponding to the engine.
[0102] It should be noted that interference compensation is a compensation that filters the unit speed through a low-pass filter to reduce the influence of external interference such as electromagnetic interference.
[0103] It should be noted that a low-pass filter is an electronic filter that allows signals below a certain cutoff frequency to pass through, while signals above the cutoff frequency will be greatly attenuated or blocked. A low-pass filter can effectively remove high-frequency noise and retain the main components of the speed signal.
[0104] In this implementation, for ease of understanding, interference compensation is described in detail:
[0105] Specifically, the sequence of unit speeds (RPM_sequence), including the latest speed voltage RPM_volt, can be processed by a low-pass filter to obtain the final RPM, which is as follows:
[0106] RPM_final=Filter(RPM_sequence+RPM_volt).
[0107] Wherein, Filter represents a low-pass filter applied to the sequence of unit speeds.
[0108] In summary, the speed measurement results of the PHEV supercharged engine at different temperatures are used to illustrate. As shown in Table 1, after adding the above model, the measurement accuracy of the engine speed at low speed is improved by about 2.19%.
[0109] Table 1
[0110]
[0111] This embodiment uses the sine and cosine analog signals of the resolver sensor to calculate the original angular velocity of the engine, and then converts it into a rotational speed. By implementing temperature compensation, voltage compensation and interference compensation, the influence of external factors on the speed measurement can be effectively offset. The speed accuracy of the engine and motor can be improved, thereby improving the comprehensive working efficiency of the engine or motor, reducing the fuel consumption or power consumption of the whole vehicle, and improving the driving experience of the whole vehicle. In hybrid and new energy vehicles, the resolver is a standard component of the motor. This method can not only improve the speed measurement accuracy, but also replace the speed sensor on the original engine, thereby reducing costs.
[0112] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the engine speed measurement method of the present application. More simple transformations based on this technical concept are all within the scope of protection of the present application.
[0113] This application also provides an engine speed measuring device, please refer to Figure 3 , Figure 3 This is a schematic diagram of the module structure of the engine speed measuring device according to an embodiment of the present application; the engine speed measuring device comprises:
[0114] The signal acquisition module 301 is used to collect analog signals of the vehicle's engine when it is running through a resolver sensor;
[0115] The rotation speed conversion module 302 is used to convert the analog signal into an angular velocity to obtain a unit rotation speed corresponding to the analog signal;
[0116] The rotation speed compensation module 303 is used to compensate the unit rotation speed according to a preset compensation mechanism to obtain an effective rotation speed corresponding to the engine.
[0117] The engine speed measurement device provided by the present application adopts the engine speed measurement method in the above embodiment, which can solve the technical problem that the traditional method relies on Hall effect sensors to measure the speed and phase, which is usually affected by various factors such as temperature and electromagnetic interference, resulting in reduced measurement accuracy. Compared with the prior art, the beneficial effects of the engine speed measurement device provided by the present application are the same as the beneficial effects of the engine speed measurement method provided by the above embodiment, and the other technical features of the engine speed measurement device are the same as the features disclosed in the above embodiment method, which will not be repeated here.
[0118] The present application provides an engine speed measuring device, which includes: at least one processor; and a memory that is communicatively connected to the at least one processor; wherein the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the engine speed measurement method in the above-mentioned embodiment one.
[0119] Reference below Figure 4 , Figure 4 The device structure diagram of the hardware operating environment involved in the engine speed measurement method in the embodiment of the present application shows a schematic diagram of the structure of the engine speed measurement device suitable for implementing the embodiment of the present application. The engine speed measurement device in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 4 The engine speed measurement device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0120] like Figure 4As shown, the engine speed measuring device may include a processing device 1001 (e.g., a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In the RAM 1004, various programs and data required for the operation of the engine speed measuring device are also stored. The processing device 1001, the ROM 1002, and the RAM 1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the engine speed measurement device to communicate with other devices wirelessly or by wire to exchange data. Although the figure shows an engine speed measurement device with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or provided instead.
[0121] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.
[0122] The engine speed measurement device provided by the present application adopts the engine speed measurement method in the above embodiment, which can solve the technical problem that the traditional method relies on Hall effect sensors to measure the speed and phase, which is usually affected by various factors such as temperature and electromagnetic interference, resulting in reduced measurement accuracy. Compared with the prior art, the beneficial effects of the engine speed measurement device provided by the present application are the same as the beneficial effects of the engine speed measurement method provided by the above embodiment, and the other technical features of the engine speed measurement device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.
[0123] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.
[0124] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0125] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the engine speed measurement method in the above-mentioned embodiment.
[0126] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.
[0127] The computer-readable storage medium may be included in the engine speed measuring device; or may exist independently without being assembled into the engine speed measuring device.
[0128] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by the engine speed measuring device, the engine speed measuring device: collects an analog signal of the vehicle's engine when it is running through a resolver sensor; converts the analog signal into an angular velocity to obtain a unit speed corresponding to the analog signal; and compensates the unit speed according to a preset compensation mechanism to obtain an effective speed corresponding to the engine.
[0129] Computer program code for performing the operations of the present application may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0130] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0131] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.
[0132] The readable storage medium provided by the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned engine speed measurement method, and can solve the technical problem that the traditional method relies on Hall effect sensors to measure speed and phase, which is usually affected by various factors such as temperature and electromagnetic interference, resulting in reduced measurement accuracy. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the present application are the same as the beneficial effects of the engine speed measurement method provided by the above-mentioned embodiment, and will not be repeated here.
[0133] The present application also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the steps of the engine speed measurement method as described above are implemented.
[0134] The computer program product provided by the present application can solve the technical problem that the traditional method relies on Hall effect sensors to measure the speed and phase, which is usually affected by various factors such as temperature and electromagnetic interference, resulting in reduced measurement accuracy. Compared with the prior art, the beneficial effects of the computer program product provided by the present application are the same as the beneficial effects of the engine speed measurement method provided by the above embodiment, and will not be repeated here.
[0135] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.
Claims
1. A method for measuring engine speed, characterized in that: The method includes: The analog signal of the vehicle's engine running is collected through a resolver sensor; Performing angular velocity conversion on the analog signal to obtain a unit rotation speed corresponding to the analog signal; The unit speed is compensated according to a preset compensation mechanism to obtain an effective speed corresponding to the engine.
2. The method according to claim 1, characterized in that The analog signal includes a sine analog signal and a cosine analog signal, and the step of converting the analog signal into an angular velocity to obtain a unit rotation speed corresponding to the analog signal includes: Performing analog-to-digital conversion on the sine analog signal and the cosine analog signal through an analog-to-digital converter to obtain a digital signal; Based on the digital signal, determining an original angle corresponding to when the engine is running; An angular velocity conversion is performed according to the original angle to obtain a unit rotation speed corresponding to the analog signal.
3. The method according to claim 2, characterized in that The step of converting the angular velocity according to the original angle to obtain the unit rotation speed corresponding to the analog signal comprises: Based on the original angle, obtaining the angle difference and unit time of the analog signal; Calculating the angular velocity according to the angle difference and the unit time to obtain the angular velocity of the engine; The angular velocity is converted into a rotational speed to obtain a unit rotational speed corresponding to the analog signal.
4. The method according to claim 3, characterized in that The step of obtaining the angle difference and unit time of the analog signal based on the original angle comprises: Dividing the original angle into a plurality of sampling points at a preset time interval; The angle differences between the plurality of sampling points are determined, and the preset time interval is used as the unit time of the analog signal.
5. The method according to claim 3, characterized in that The preset compensation mechanism includes temperature compensation and voltage compensation. The step of compensating the unit speed according to the preset compensation mechanism to obtain the effective speed corresponding to the engine includes: Performing temperature compensation on the unit speed through a quadratic polynomial model to obtain a temperature compensated speed; Performing voltage compensation on the unit speed through a linear model to obtain a voltage compensated speed; An effective speed corresponding to the engine is determined according to the angular velocity, the temperature compensated speed and the voltage compensated speed.
6. The method according to any one of claims 1 to 4, characterized in that The preset compensation mechanism also includes interference compensation, and the step of compensating the unit speed according to the preset compensation mechanism to obtain the effective speed corresponding to the engine also includes: Collecting the speed voltage of the engine when it is running; The unit speed and the speed voltage are subjected to interference compensation through a low-pass filter to obtain an effective speed corresponding to the engine.
7. An engine speed measuring device, characterized in that: The device comprises: A signal acquisition module, used to collect analog signals of the vehicle's engine when it is running through a resolver sensor; A rotation speed conversion module, used for performing angular velocity conversion on the analog signal to obtain a unit rotation speed corresponding to the analog signal; The speed compensation module is used to compensate the unit speed according to a preset compensation mechanism to obtain an effective speed corresponding to the engine.
8. An engine speed measuring device, characterized in that: The device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the engine speed measurement method according to any one of claims 1 to 6.
9. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the engine speed measurement method according to any one of claims 1 to 6 are implemented.
10. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the steps of the engine speed measurement method according to any one of claims 1 to 6 are implemented.
