Fault detection and recovery method, system and equipment of speed sensor and medium
Through the dual-channel pulse signal acquisition and processing module, it is divided into recoverable and unrecoverable states, which realizes accurate detection and recovery of speed sensor faults, solves the problem of insufficient fault detection and recovery capabilities in the existing technology, and improves the system's Stability and cost-effectiveness.
Patent Information
- Application Number
- CN202411157270.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-22
- Publication Date
- 2024-11-19
AI Technical Summary
The prior art is difficult to effectively detect and restore the speed sensor failure in the on-board system, resulting in the system being unable to self-diagnose and repair in the faulty state, affecting the continuous and stable operation of the system.
By introducing a dual-channel pulse signal acquisition and processing module into the speed sensor, we can judge the vehicle operating status and sensor fault status, which are divided into recoverable and unrecoverable states, and fail-recoverable processing is carried out while the vehicle is in a stable operation state to avoid misjudgment Interference with external interference.
It improves the accuracy and reliability of speed sensor fault detection, reduces the cost of replacing normal sensors, and enhances the fault tolerance and stability of the system.
Smart Images

Figure CN118980833A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of speed sensors, and in particular to a method, system, device and medium for fault detection and recovery of a speed sensor. Background Art
[0002] With the development of the times, the competition in the signal system of rail transit is becoming increasingly fierce, especially the on-board system, which controls the operation of the train and is the center of the entire signal system. Users have complex business logic requirements and high reliability and high stability operation requirements for the on-board system. How to improve the fault tolerance of the system, achieve self-diagnosis and self-repair, and enable the system to automatically recover from the fault state to the normal operation state after a series of diagnoses to ensure the continuous and stable operation of the system is an issue that system developers must focus on.
[0003] When the vehicle is running, the sensor transmits the generated pulse signal to the on-board system. The on-board system calculates the train speed by collecting the number of pulses and detects the pulse signal to determine the sensor status. There are two main detection aspects: one is to detect the duty cycle phase difference of the pulse signal, and the other is to detect the difference in the number of pulses of the two channels of the sensor.
[0004] The invention patent with publication number CN104329169A discloses a universal sensor signal fault tolerance method and processing strategy. It includes the following steps: A1: ECU initialization, continuously obtain sampling values from the sensor and initialize the sensor type parameters; A2: send the sampling values to the fault judgment and classification module to continuously detect the sampling values and judge the type of fault; A3: send the sensor type parameters to the sensor type acquisition module to judge the sensor type; A4: send the values processed by the fault judgment module and the sensor type acquisition module to the fault processing module for processing, and repeat A1-A4 after processing. The invention starts to execute after the ECU is initialized. It can not only be applied to a variety of different types of sensors, but also classify the faults more detailed and better handle the faults. The sensor failure may be affected by other factors. The sensor itself has no fault. The reliability of sensor fault judgment needs to be improved; there is a lack of judgment on whether the sensor can recover by itself. The sensor failure may be affected by other factors. If the influencing factors disappear, the sensor itself may still work normally, avoiding the replacement of the normal working sensor and saving costs.
[0005] Therefore, providing a method for realizing automatic fault detection and recovery of speed sensors is the most urgent problem to be solved at present. Summary of the invention
[0006] The purpose of the present invention is to overcome the defects of the above-mentioned prior art and to provide a speed sensor fault detection and recovery method, system, device and medium.
[0007] The purpose of the present invention can be achieved by the following technical solutions:
[0008] According to a first aspect of the present invention, a method for fault detection and recovery of a speed sensor is provided, the method comprising the following steps:
[0009] Sending the collected speed sensor pulse signal to the MPU at a first preset time interval, analyzing and processing the pulse signal, and judging the vehicle running state and the speed sensor fault state in turn, or directly judging the speed sensor fault state; selecting recovery or reporting the fault according to the fault state, when selecting recovery, the precondition is that the vehicle running state is in a stable running state;
[0010] Among them, the fault state is divided into a recoverable state and a non-recoverable state. When the speed sensor is in the recoverable state, the speed sensor fails and returns to a normal working state after the period comparison passes; when the speed sensor is in the non-recoverable state, the speed sensor is permanently faulty and a speed sensor fault is reported.
[0011] The pulse signal sends data packets simultaneously through two channels; the pulse signal includes the number of pulses, the duty cycle of the pulse signal and the phase difference.
[0012] The process of determining the vehicle running state comprises the following steps:
[0013] S100, the MPU receives a pulse signal every first preset time;
[0014] S200 and MPU process the pulse signal;
[0015] S201, for three consecutively received data packets, arbitrarily compare the pulse numbers in two data packets under the same channel, and the difference in the pulse numbers after comparison is TDIEF;
[0016] S202: If TDIEF is less than a first preset threshold, the vehicle is in a stable running state.
[0017] The fault state determination process comprises the following steps:
[0018] S203, when the vehicle is in a stable running state, determining the duty cycle and phase difference of the pulse signal in the intermediate data packet;
[0019] S204: If the duty cycle and phase difference of the pulse signal do not conform to the first preset range, the speed sensor is set to a permanent non-recoverable state.
[0020] The process of directly judging the fault state of the speed sensor comprises the following steps:
[0021] S211, take the most recently received data packet, compare the pulse numbers of the two channels, and the difference after comparison is CDIEF;
[0022] S212, if CDIEF is greater than a second preset threshold, setting the speed sensor to a recoverable state;
[0023] S213. If CDIEF is greater than the second preset threshold value in three consecutive data packets, it is a permanent unrecoverable state and a speed sensor fault is reported; if CDIEF of any data packet is not greater than the second preset threshold value, the speed sensor is set to a recoverable state.
[0024] When the vehicle is in a stable running state and the speed sensor is in a recoverable state, the recovery process includes the following steps:
[0025] S1. If the CDIEF of the speed sensor in the recoverable state is not greater than the second preset threshold, and the pulse number of the first channel of any other speed sensor in the normal working state is compared, the difference after comparison is A;
[0026] S2. If A is not greater than δ, the comparison passes;
[0027] S3. If A is greater than δ or the CDIEF of the speed sensor in the recoverable state is greater than the second preset threshold, the comparison fails and the number of comparisons is reduced by one;
[0028] S4. If the vehicle is not in a stable running state, the comparison is abandoned and the number of comparisons does not decrease by one;
[0029] S5. If the comparison passes for n times in a row, the speed sensor is set to a normal working state;
[0030] S6. If m comparisons fail, the speed sensor is set to a state that cannot be recovered; the speed sensor in the state that cannot be recovered reports a fault.
[0031] If the number of sensor pulses collected in any other normal working state is less than 20, then δ is 2.
[0032] The calculation formula of the difference δ is:
[0033] Pulse number * (wheel diameter 1 / wheel diameter 2) - pulse number + 1) = (pulse number * ((wheel diameter 1-wheel diameter 2) / wheel diameter 2) + 1);
[0034] Among them, wheel diameter 1 = 1050, wheel diameter 2 = 950.
[0035] The n is 5 and the m is 6.
[0036] According to a second aspect of the present invention, there is provided a control system for a fault detection and recovery method for a speed sensor as described above, comprising a pulse signal acquisition module and an information processing control module. The control system is a two-by-two-out-of-two architecture. The pulse signal acquisition module collects the speed sensor pulse signal at predetermined intervals, transmits the pulse to the information processing control module, analyzes and processes the pulse signal, and makes corresponding control based on the result.
[0037] The information processing module includes two main processing units, and the main processing units are MPUs.
[0038] The pulse signal acquisition module includes two AM acquisition modules, each of which includes two channels for acquiring the pulse signal of the speed sensor.
[0039] According to a third aspect of the present invention, there is provided an electronic device, comprising a memory and a processor, wherein a computer program is stored in the memory, and the method described above is implemented when the processor executes the program.
[0040] According to a fourth aspect of the present invention, there is provided a computer-readable storage medium having a computer program stored thereon, wherein the program implements the method described when executed by a processor.
[0041] Compared with the prior art, the present invention has the following advantages:
[0042] 1. The present invention divides the fault state into a recoverable state and an irrecoverable state. The speed sensor in the recoverable state returns to normal after passing the comparison, and only the speed sensor in the irrecoverable state will report the fault, thereby avoiding the need to replace the normal speed sensor and saving costs.
[0043] 2. The present invention adopts dual-channel acquisition and transmission for the speed sensor, thereby avoiding the error processing of single data acquisition to determine the fault state of the speed sensor.
[0044] 3. The present invention performs the speed sensor recovery process when the vehicle is in a stable running state, thereby avoiding the influence of other running states on the speed sensor judgment comparison.
[0045] 4. The present invention performs exclusion comparison on the duty cycle and phase difference of the pulse signal, thereby eliminating the influence of the external vehicle running state on the speed sensor judgment and improving reliability.
[0046] 5. The present invention compares the pulse number of the speed sensor in a normal state, eliminates the influence of other factors, and ensures the accuracy of judging the speed sensor.
[0047] 6. The present invention adopts a two-by-two-take-two architecture, which increases redundancy and improves the security of the system. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] Figure 1 It is a flow chart of speed sensor fault judgment of the present invention;
[0049] Figure 2 It is a flow chart of the speed sensor recovery process of the present invention;
[0050] Figure 3 It is a schematic diagram of the control system of the present invention. DETAILED DESCRIPTION
[0051] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0052] When the vehicle is running, the sensor transmits the generated pulse signal to the on-board system. The on-board system calculates the train speed by collecting the pulse number and detects the pulse signal to determine the sensor status. There are two main detection aspects: one is to detect the duty cycle and phase difference of the pulse signal, and the other is to detect the difference in the number of pulses between the two channels of the sensor. These two detections cannot fully adapt to the actual situation on site:
[0053] 1. The duty cycle phase difference of the vehicle will exceed the preset range when accelerating or decelerating, and acceleration or deceleration is a normal event during operation, causing the speed sensor to be frequently judged as faulty.
[0054] 2. Vehicles often slip during operation, especially freight trains. Once this happens, the speed sensor, due to its inherent design characteristics, will generate different pulses in the two channels, which will eventually be reflected in the difference in the number of pulses, causing the speed sensor to be judged as faulty.
[0055] The MPU of the present invention receives data from two channels of the sensor for comparison to determine whether the sensor has a fault, and the fault judgment is more accurate; the fault judgment is divided into a recoverable state and a non-recoverable state. The sensor in the recoverable state can resume normal operation after comparison, and only the non-recoverable state will report the fault and notify the staff to handle it, thereby reducing the workload of the staff and reducing costs.
[0056] Example 1
[0057] The workflow of the present invention is as follows Figure 1 , Figure 2 As shown, a speed sensor fault detection and recovery method, the method comprises the following steps:
[0058] Sending the collected speed sensor pulse signal to the MPU at a first preset time interval, analyzing and processing the pulse signal, and judging the vehicle running state and the speed sensor fault state in turn, or directly judging the speed sensor fault state; selecting recovery or reporting the fault according to the fault state, when selecting recovery, the precondition is that the vehicle running state is in a stable running state;
[0059] Among them, the fault state is divided into a recoverable state and a non-recoverable state. When the speed sensor is in the recoverable state, the speed sensor fails and returns to a normal working state after the period comparison passes; when the speed sensor is in the non-recoverable state, the speed sensor is permanently faulty and a speed sensor fault is reported.
[0060] In this embodiment, the faulty speed sensor is divided into two states: a recoverable state and a permanently irrecoverable state. The speed sensor in the recoverable state is judged to be normal after comparison, thereby avoiding frequent replacement of speed sensors and replacing normal speed sensors, reducing workload and saving costs.
[0061] The pulse signal sends data packets simultaneously through two channels; the pulse signal includes the number of pulses, the duty cycle of the pulse signal and the phase difference.
[0062] The process of determining the vehicle running state comprises the following steps:
[0063] S100, the MPU receives a pulse signal every first preset time;
[0064] S200 and MPU process the pulse signal;
[0065] S201, for three consecutively received data packets, arbitrarily compare the pulse numbers in two data packets under the same channel, and the difference in the pulse numbers after comparison is TDIEF;
[0066] S202: If TDIEF is less than a first preset threshold, the vehicle is in a stable running state.
[0067] The fault state determination process comprises the following steps:
[0068] S203, when the vehicle is in a stable running state, determining the duty cycle and phase difference of the pulse signal in the intermediate data packet;
[0069] S204: If the duty cycle and phase difference of the pulse signal do not conform to the first preset range, the speed sensor is set to a permanent non-recoverable state.
[0070] The process of directly judging the fault state of the speed sensor comprises the following steps:
[0071] S211, take the most recently received data packet, compare the pulse numbers of the two channels, and the difference after comparison is CDIEF;
[0072] S212, if CDIEF is greater than a second preset threshold, setting the speed sensor to a recoverable state;
[0073] S213. If CDIEF is greater than the second preset threshold value in three consecutive data packets, it is a permanent unrecoverable state and a speed sensor fault is reported; if CDIEF of any data packet is not greater than the second preset threshold value, the speed sensor is set to a recoverable state.
[0074] In this embodiment, the first preset time is 50ms, the first preset threshold is 1, the duty cycle range in the first preset range is 50%±10%, the phase difference range is 90°±30°, and the second preset threshold is 3. The accuracy of the fault judgment result can be adjusted by adjusting the above values.
[0075] When the vehicle is in a stable running state and the speed sensor is in a recoverable state, the recovery process includes the following steps:
[0076] S1. If the CDIEF of the speed sensor in the recoverable state is not greater than the second preset threshold, and the pulse number of the first channel of any other speed sensor in the normal working state is compared, the difference after comparison is A;
[0077] S2. If A is not greater than δ, the comparison passes;
[0078] S3. If A is greater than δ or the CDIEF of the speed sensor in the recoverable state is greater than the second preset threshold, the comparison fails and the number of comparisons is reduced by one;
[0079] S4. If the vehicle is not in a stable running state, the comparison is abandoned and the number of comparisons does not decrease by one;
[0080] S5. If the comparison passes for n times in a row, the speed sensor is set to a normal working state;
[0081] S6. If m comparisons fail, the speed sensor is set to a state that cannot be recovered; the speed sensor in the state that cannot be recovered reports a fault.
[0082] In this embodiment, the recovery comparison is performed when the vehicle is in a stable running state, and the collected results are relatively accurate, thereby avoiding the influence of data collection in other running states of the vehicle on the fault judgment result.
[0083] If the number of sensor pulses collected in any other normal working state is less than 20, then δ is 2.
[0084] The calculation formula of the difference δ is:
[0085] Pulse number * (wheel diameter 1 / wheel diameter 2) - pulse number + 1) = (pulse number * ((wheel diameter 1-wheel diameter 2) / wheel diameter 2) + 1);
[0086] Among them, wheel diameter 1 = 1050, wheel diameter 2 = 950.
[0087] In this embodiment, there are two ways to determine the difference value δ, which are based on the number of sensor pulses collected in any other normal working state and are selected according to actual conditions.
[0088] The n is 5 and the m is 6.
[0089] Example 2
[0090] A control system for a speed sensor fault detection and recovery method includes a pulse signal acquisition module and an information processing control module. The control system is a two-by-two-out-of-two architecture, characterized in that the pulse signal acquisition module collects the speed sensor pulse signal at predetermined intervals and transmits the pulse to the information processing control module, analyzes and processes the pulse signal, and makes corresponding controls based on the results.
[0091] The information processing module includes two main processing units, and the main processing units are MPUs.
[0092] In this embodiment, the main processing unit is an MPU, and may also be other main processing units such as a CPM.
[0093] The pulse signal acquisition module includes two AM acquisition modules, each of which includes two channels for acquiring the pulse signal of the speed sensor.
[0094] Example 3
[0095] The electronic device of the present invention includes a central processing unit (CPU), which can perform various appropriate actions and processes according to computer program instructions stored in a read-only memory (ROM) or loaded from a storage unit into a random access memory (RAM). In the RAM, various programs and data required for device operation can also be stored. The CPU, ROM and RAM are connected to each other via a bus. An input / output (I / O) interface is also connected to the bus.
[0096] Multiple components in the device are connected to the I / O interface, including: input units, such as keyboards, mice, etc.; output units, such as various types of displays, speakers, etc.; storage units, such as disks, optical disks, etc.; and communication units, such as network cards, modems, wireless communication transceivers, etc. The communication unit allows the device to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunication networks.
[0097] The processing unit performs the various methods and processes described above, such as the method of the present invention. For example, in some embodiments, the method of the present invention can be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit. In some embodiments, part or all of the computer program can be loaded and / or installed on the device via a ROM and / or a communication unit. When the computer program is loaded into RAM and executed by the CPU, one or more steps of the method of the present invention described above can be performed. Alternatively, in other embodiments, the CPU can be configured to perform the method of the present invention by any other appropriate means (e.g., by means of firmware).
[0098] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.
[0099] The program code for implementing the method of the present invention can be written in any combination of one or more programming languages. These program codes can be provided to a processor or controller of a general-purpose computer, a special-purpose computer or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code can be executed entirely on the machine, partially on the machine, partially on the machine as a stand-alone software package and partially on a remote machine, or entirely on a remote machine or server.
[0100] In the context of the present invention, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, 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 foregoing.
[0101] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed by the present invention, and these modifications or replacements should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.
Claims
1. A speed sensor fault detection and recovery method, characterized in that: The method comprises the following steps: Sending the collected speed sensor pulse signal to the MPU at a first preset time interval, analyzing and processing the pulse signal, and judging the vehicle running state and the speed sensor fault state in turn, or directly judging the speed sensor fault state; selecting recovery or reporting the fault according to the fault state, when selecting recovery, the precondition is that the vehicle running state is in a stable running state; Among them, the fault state is divided into a recoverable state and a non-recoverable state. When the speed sensor is in the recoverable state, the speed sensor fails and returns to a normal working state after the period comparison passes; when the speed sensor is in the non-recoverable state, the speed sensor is permanently faulty and a speed sensor fault is reported.
2. A speed sensor fault detection and recovery method according to claim 1, characterized in that: The pulse signal sends data packets simultaneously through two channels; the pulse signal includes the number of pulses, the duty cycle of the pulse signal and the phase difference.
3. A speed sensor fault detection and recovery method according to claim 2, characterized in that: The process of determining the vehicle running state comprises the following steps: S100, the MPU receives a pulse signal every first preset time; S200 and MPU process the pulse signal; S201, for three consecutively received data packets, arbitrarily compare the pulse numbers in two data packets under the same channel, and the difference in the pulse numbers after comparison is TDIEF; S202: If TDIEF is less than a first preset threshold, the vehicle is in a stable running state.
4. A speed sensor fault detection and recovery method according to claim 3, characterized in that: The fault state determination process comprises the following steps: S203, when the vehicle is in a stable running state, determining the duty cycle and phase difference of the pulse signal in the intermediate data packet; S204: If the duty cycle and phase difference of the pulse signal do not conform to the first preset range, the speed sensor is set to a permanent non-recoverable state.
5. The method for fault detection and recovery of a speed sensor according to claim 1, characterized in that: The process of directly judging the fault state of the speed sensor comprises the following steps: S211, take the most recently received data packet, compare the pulse numbers of the two channels, and the difference after comparison is CDIEF; S212, if CDIEF is greater than a second preset threshold, setting the speed sensor to a recoverable state; S213. If CDIEF is greater than the second preset threshold value in three consecutive data packets, it is a permanent unrecoverable state and a speed sensor fault is reported; if CDIEF of any data packet is not greater than the second preset threshold value, the speed sensor is set to a recoverable state.
6. A speed sensor fault detection and recovery method according to claim 5, characterized in that: When the vehicle is in a stable running state and the speed sensor is in a recoverable state, the recovery process includes the following steps: S1. If the CDIEF of the speed sensor in the recoverable state is not greater than the second preset threshold, and the pulse number of the first channel of any other speed sensor in the normal working state is compared, the difference after comparison is A; S2. If A is not greater than δ, the comparison passes; S3. If A is greater than δ or the CDIEF of the speed sensor in the recoverable state is greater than the second preset threshold, the comparison fails and the number of comparisons is reduced by one; S4. If the vehicle is not in a stable running state, the comparison is abandoned and the number of comparisons does not decrease by one; S5. If the comparison passes for n times in a row, the speed sensor is set to a normal working state; S6. If m comparisons fail, the speed sensor is set to a state that cannot be recovered; the speed sensor in the state that cannot be recovered reports a fault.
7. A speed sensor fault detection and recovery method according to claim 6, characterized in that: If the number of sensor pulses collected in any other normal working state is less than 20, then δ is 2.
8. A speed sensor fault detection and recovery method according to claim 6, characterized in that: The calculation formula of the difference δ is: Pulse number * (wheel diameter 1 / wheel diameter 2) - pulse number + 1) = (pulse number * ((wheel diameter 1-wheel diameter 2) / wheel diameter 2) + 1); Among them, wheel diameter 1 = 1050, wheel diameter 2 = 950.
9. A speed sensor recovery method according to claim 6, characterized in that: The n is 5 and the m is 6.
10. A system for the fault detection and recovery method of the speed sensor according to any one of claims 1 to 9, comprising a pulse signal acquisition module and an information processing control module, wherein the system is a two-by-two-out-of-two architecture, characterized in that: The pulse signal acquisition module transmits the acquired speed sensor pulse signal to the information processing control module at predetermined intervals, analyzes and processes the pulse signal, and makes corresponding controls based on the results.
11. The control system according to claim 10, characterized in that: The information processing module includes two main processing units, and the main processing units are MPUs.
12. The control system according to claim 10, characterized in that: The pulse signal acquisition module includes two AM acquisition modules, each of which includes two channels for acquiring the pulse signal of the speed sensor.
13. An electronic device comprising a memory and a processor, wherein a computer program is stored in the memory, wherein: When the processor executes the program, the method according to any one of claims 1 to 9 is implemented.
14. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 9 is implemented.
Citation Information
Cited By
Communication method and device, chip system, storage medium and computer program product
CN121357501A
Communication method, apparatus, chip system, storage medium and computer program product
CN121357501B
