Train fault diagnosis method and device and train display
Through dynamic polling algorithm and parallel thread technology, the problems of load balancing and low efficiency in traditional polling methods are solved, faster fault diagnosis and response are achieved, and the safety and efficiency of train fault handling are improved.
Patent Information
- Application Number
- CN202310181115.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-28
- Publication Date
- 2024-08-30
AI Technical Summary
The traditional polling method has poor load balance when detecting train operation data, low polling efficiency, long response time for train fault data, and failure to predict and handle equipment abnormalities in a timely manner, posing safety risks.
A dynamic polling algorithm is used to obtain train operation data in real time, the polling priority is dynamically updated according to the equipment status and polling results, a fault list is generated, rapid fault diagnosis is performed through parallel threads, and fault curves are drawn to locate faults.
It improves polling efficiency and load balancing, can diagnose equipment faults more quickly, improves fault response speed and safety, and ensures driving safety.
Smart Images

Figure CN118560549A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of active train safety control, and in particular to a train fault diagnosis method, device and train display. Background Art
[0002] The train display is mainly used to display and record vehicle status information during driving, and is an important window for the driver to interact with other systems and equipment on the train. In the current train control system architecture, the train control system first obtains the status data and operation data of key equipment such as the traction control system, monitoring system, passenger management system, auxiliary control system, and brake control system, and then the processor of the train display processes and displays the train operation data provided by the train control system containing the status and operation data of each device. When the train is running, the processor monitors the train operation data sent by the train control system in real time and calls the polling algorithm to process the data of each device in the train operation data, detects abnormal conditions in the train operation data, and determines the train fault information. However, the traditional polling method constructs a periodic scanning table and detects the operating data of each device according to fixed configuration parameters. It does not take into account the possible abnormal changes in the device status during the actual operation of the train. For example, when the polling algorithm periodically detects the train operation data according to fixed configuration parameters, if the polling execution time of a certain device in the previous cycle is too long or the memory usage is too high but it does not reach the fault alarm level, it may take until the next or the next polling cycle to alarm the abnormality of the device. The prediction sensitivity of safety risks is low. In addition, if the detection interval is set too long, it may cause a fault to be ignored, resulting in poor load balancing, low polling efficiency, and a long response time for train fault data. Summary of the invention
[0003] The present invention provides a train fault diagnosis method, device and train display, which solve the problems of poor load balancing, low polling efficiency and long train fault data response time in the prior art when using a polling algorithm to detect train operation data.
[0004] To achieve the above-mentioned purpose, based on one aspect of the present invention, a train fault diagnosis method is provided, comprising: acquiring in real time the train operation data transmitted by each device included in the train control system, and applying a dynamic polling algorithm to detect the fault information in the train operation data, and generating a fault list; receiving a fault diagnosis request from a user based on any fault information in the fault list; responding to the fault diagnosis request, performing feature processing on the fault information, and drawing a fault curve; locating the fault according to the fault curve by applying a preset diagnostic algorithm, and obtaining a fault diagnosis result.
[0005] In one embodiment, the application of a dynamic polling algorithm detects fault information in the train operation data and generates a fault list, including: determining the initial state and initial polling priority of each device, and dynamically polling according to the initial state and initial polling priority to obtain the device state and polling result of any device in the first cycle, wherein the polling result includes the execution time, the memory usage of the device polling within the cycle, and the CPU usage of the device polling within the cycle; updating the current polling priority of the device according to the device state and polling result of the previous cycle; dynamically polling each device according to the device state and current polling priority of the previous cycle to obtain the device state and polling result of any device in the current cycle; if there is an abnormality in the train operation data during the dynamic polling, the fault information in the abnormal train operation data is added to the fault list and displayed.
[0006] In one embodiment, the updating of the current polling priority of the device according to the device status and polling result of the previous cycle polling includes: determining the device whose device status is normal after the polling of the previous cycle ends according to the device status of the previous cycle; for any device whose device status is normal, determining the execution time of the previous cycle as the device polling completion time minus the device polling first response time, evaluating the polling result with the polling weight value, and determining the polling weight value as the product of the sum of the memory usage rate and the CPU usage rate during the device polling and the execution time; if the execution time of any device exceeds the preset time maximum threshold value, determining the polling weight value of the device to be -1, and determining that the device status of the device is abnormal; for the remaining devices whose device status is normal, if there is any device whose polling weight value of the previous cycle differs from the polling weight value of the previous cycle by more than the preset value, recalculating the weight values of the remaining devices whose device status is normal, and the weight value in, represents the weight value of the i-th device whose device status is normal, t i *α i Indicates the polling weight value of the device whose device status is normal in the i-th device in the previous cycle, t i Indicates the execution time of the device whose status is normal in the i-th device in the previous cycle, α i It represents the sum of the memory usage and the CPU usage of the i-th device whose device status is normal in the previous cycle, and n represents that there are n devices whose device status is normal in the previous cycle; the current polling priority of the device whose device status is normal is updated according to the updated weight value.
[0007] In one embodiment, each device is dynamically polled according to the device status of the previous cycle and the current polling priority to obtain the device status and polling result of any of the devices in the current cycle, including: for any of the devices whose device status is abnormal in the previous cycle, a separate fault diagnosis is performed using a parallel thread; dynamically polling is performed according to the current polling priority of any of the devices whose device status is normal in the previous cycle to obtain the device status and polling result of any of the devices in the current cycle; when any of the devices for which a separate fault diagnosis is performed using a parallel thread returns to normal, the device status of the device is set to normal, and the polling priority of the device in the next cycle is determined according to the initial polling priority of the device.
[0008] In one embodiment, the response to the fault diagnosis request, feature processing of the fault information, and drawing of a fault curve include: in response to the fault diagnosis request, extracting the fault time information and fault feature value of the fault information; dividing the record log into different time intervals according to the fault time information, and obtaining log data of different fault time areas; analyzing each log data of each fault time area, extracting log records related to the fault, and classifying them according to the fault feature value, and drawing a corresponding fault curve.
[0009] In one embodiment, extracting the fault time information and fault characteristic value of the fault information includes: extracting the fault time information of the fault information; traversing the key values of the fault information and calculating the sum of the character string values of the key values of the fault information; taking the modulo of the sum of the character string values of the key values of the fault information and the number of fault classifications to obtain the fault characteristic value.
[0010] Based on the same inventive concept, the present invention also provides a train fault diagnosis device, which includes: a fault list generation unit, which is used to acquire in real time the train operation data transmitted by each device included in the monitoring train control system, and apply a dynamic polling algorithm to detect the fault information in the train operation data to generate a fault list; a receiving unit, which is used to receive a user's fault diagnosis request based on any fault information in the fault list; a fault curve drawing unit, which is used to respond to the fault diagnosis request, perform feature processing on the fault information, and draw a fault curve; a fault diagnosis unit, which is used to apply a preset diagnosis algorithm according to the fault curve to locate the fault and obtain a fault diagnosis result.
[0011] Based on the same inventive concept, the present invention also provides a train display, which includes: an interface module and an FPGA module, a power module, a hardware testing unit, and a CPU board connected to the interface module; the CPU board is provided with the train fault diagnosis device as described above.
[0012] In one embodiment, the hardware testing unit includes: a display unit and a touch unit connected to the FPGA module, and a speaker unit connected to the interface module.
[0013] Based on the same inventive concept, the present invention also provides a computer-readable storage medium on which computer instructions are stored, and the computer instructions are used to enable a computer to execute any of the train fault diagnosis methods described above.
[0014] The train fault diagnosis method, device and train display provided by the present invention aim at the defect that the load information uniformity of the periodic table scan constructed by the traditional polling method is poor. According to the actual operation of the train, the polling priority of each device in the current polling cycle is dynamically updated. When the device status changes in each cycle, the polling cycle method is dynamically updated to improve the uniformity of the periodic information load and realize a better polling scheme. For the device with abnormal status detected in each polling, other threads outside the polling program are used for rapid fault diagnosis. Compared with waiting for the detection of the abnormal status device in the next polling cycle according to the fixed polling priority, the device fault with hidden dangers can be diagnosed more quickly, the load balancing and polling efficiency can be improved, and the fault diagnosis efficiency is higher. The train display can monitor the display and each unit component connected to the display in real time, immediately diagnose the train and its own related faults, locate, display and process the fault information; through a friendly human-computer interaction interface, the fault information can be quickly and efficiently monitored and located, and the driver can be immediately guided to handle related abnormalities, ensure driving safety, and improve the efficiency of train fault maintenance. It integrates basic display software and hardware testing and train operation data fault diagnosis functions. According to the actual operation of the train, the dynamic polling algorithm combines the changes in the status of each cycle of the equipment to dynamically update the polling priority of each device in the current polling cycle, improve the uniformity of the cycle information load, and achieve a better polling solution, which greatly improves the efficiency of train display maintenance and operation. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] In order to more clearly illustrate the embodiments of the present invention 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 only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0016] Figure 1 A flow chart of a train fault diagnosis method according to an embodiment of the present invention;
[0017] Figure 2 A schematic diagram of the structure of a train fault diagnosis device according to an embodiment of the present invention;
[0018] Figure 3 A schematic diagram of the structure of a train display according to an embodiment of the present invention;
[0019] Figure 4 for Figure 3 The hardware test flow chart of the train display is shown;
[0020] Figure 5 for Figure 3 Software maintenance flow chart of the train display shown. DETAILED DESCRIPTION
[0021] In order to make the technical problems, technical solutions and beneficial effects to be solved by the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0022] like Figure 1 As shown, an embodiment of the present invention provides a train fault diagnosis method, which specifically includes the following steps:
[0023] S1: Acquire the train operation data transmitted by each device included in the train control system in real time, apply the dynamic polling algorithm to detect the fault information in the train operation data, and generate a fault list.
[0024] In this embodiment, the polling priority of the device is set with an integer of 0-255. The setting of the priority is determined according to the demand for memory resources and CPU resources for polling, the state of the device in the previous round of polling, and the importance of the polling device. The dynamic polling algorithm is applied to detect the fault information in the train operation data and generate a fault list, which specifically includes: first, determining the initial state and initial polling priority of each device, and dynamically polling according to the initial state and initial polling priority, obtaining the device state and polling result of any device in the first cycle, and the polling result includes the execution time, the memory usage rate of the device polling in the cycle, and the CPU usage rate of the device polling in the cycle, and each device corresponds to a polling result. Specifically, in the first cycle, all devices are set to the initial state first, and the devices are polled according to the preset parameters (i.e., the initial polling priority), and the device state and execution result of each communication device are recorded; wherein, the initial state of the device is that the device is normal, and the preset parameters are configuration files. The configuration file refers to the devices included in the connected train control system, and a configuration file is made according to the list of devices, and an initial polling priority is set, so as to obtain an initialized polling priority table. The initial polling priority of the device is determined based on the CPU and memory usage of the device when polling, the importance of the device itself in the train control system, and the preset polling priority calculation method. The preset polling priority calculation method is set according to the specific train control system.
[0025] Then, the current polling priority of the device is updated according to the device status and polling results of the previous cycle. Specifically, for the second cycle following the first cycle, first determine the abnormal devices obtained by polling in the first cycle according to the device status. For the abnormal devices in the first cycle, do not enter the dynamic polling of the next cycle until the device status returns to normal. Instead, use a separate thread to perform rapid troubleshooting. For the normal devices obtained by polling in the first cycle, in the second cycle following the first cycle, first determine the current polling priority of the second cycle device according to the polling results including the execution time, the memory usage of the device polling within the cycle, the CPU usage of the device polling within the cycle, the importance coefficient of the device itself in the train control system, and the preset polling priority calculation method; for any cycle following the second cycle, first determine the abnormal devices in the previous cycle according to the device status of the previous cycle. After the polling period is over, the device status is normal; for any device with a normal device status, the execution time of the previous cycle is determined to be the device polling completion time minus the device polling first response time, and then the polling result is evaluated with the polling weight value, and the polling weight value is determined to be the product of the sum of the memory usage rate and the CPU usage rate during the device polling period and the execution time; then, if the execution time of any device exceeds the preset time maximum threshold value, the polling weight value of the device is determined to be -1, and the device status of the device is determined to be abnormal; for the remaining devices with normal device status, if the polling weight value of any device in the previous cycle differs from the polling weight value of the previous cycle by more than the preset value of 20%, the weight values of the remaining devices with normal device status are recalculated, and the weight values are in, Indicates the weight value of the device whose i-th device status is normal, t i *α i Indicates the polling weight value of the device whose status is normal in the previous cycle, t i Indicates the execution time of the device whose i-th device status is normal in the previous cycle, α i It represents the sum of memory usage and CPU usage of the device whose i-th device status is normal in the previous cycle, and n represents that there are n devices whose device status is normal in the previous cycle; then, the current polling priority of the device whose device status is normal is updated according to the updated weight value. The essence of the processing here is that when the polling result of each device is the same as that of the previous cycle, the polling priority setting of each device remains unchanged. When the polling result is inconsistent with the previous cycle, that is, the difference between the polling weight value of the device in the previous cycle and the polling weight value of the previous cycle is greater than the preset value, the polling priority of each device is recalculated and saved. The calculation method of the polling priority is a simple arithmetic formula, which occupies a small amount of storage and CPU resources and improves polling efficiency.
[0026] Then, each device is dynamically polled according to the device status of the previous cycle and the current polling priority to obtain the device status and polling results of any device in the current cycle. Specifically: for any device whose device status was abnormal in the previous cycle, a parallel thread is used for separate fault diagnosis; according to the current polling priority of any device whose device status was normal in the previous cycle, dynamic polling is performed to obtain the device status and polling results of any device in the current cycle. When any device that uses a parallel thread for separate fault diagnosis returns to normal, the device status of the device is set to normal, and the polling priority of the device in the next cycle is determined according to the initial polling priority of the device. During the polling process of obtaining the device status and polling results of any device in the current cycle, if the train operation data is abnormal in the dynamic polling, the fault information in the abnormal train operation data is added to the fault list and displayed. High-level faults are displayed first in the interface, and disappeared faults are no longer displayed in the list. The latest fault information is displayed in real time, and fault solution suggestions are provided. For example, when an ECU fault occurs during train operation, it may affect the operation of the locomotive. An ECU fault reset button switch is provided to facilitate the operation of drivers and passengers. It can also monitor the status of each device in real time, draw the relevant parameters and time curves of the device status, and store them in the display storage unit for subsequent fault analysis.
[0027] In this embodiment, whether it is the first cycle or any current cycle after the first cycle, the method of obtaining the execution time and polling result of any device in the cycle is the same, that is: the method of calculating the execution time of the current cycle is the device polling completion time minus the device polling first response time; the polling result is evaluated by the polling weight value, specifically, the polling weight value is the product of the sum of the memory usage rate and the CPU usage rate during the device polling period and the execution time, that is, q j =t j *α j , where t j represents the execution time of device j in the current cycle, α j It represents the sum of the memory usage and CPU usage of device j in the current cycle. For the execution time of device polling, if the execution time of any device exceeds the preset maximum time threshold value, the polling weight value of the device is determined to be -1, and the device status of the device is determined to be abnormal.
[0028] S2: Receive a fault diagnosis request from a user based on any fault information in the fault list.
[0029] S3: Respond to the fault diagnosis request, perform feature processing on the fault information, and draw the fault curve.
[0030] In this embodiment, after receiving a fault diagnosis request, first, respond to the fault diagnosis request, extract the fault time information and fault characteristic value of the fault information, and the specific method of extracting the fault time information and fault characteristic value of the fault information is: extract the fault time information of the fault information, traverse the key value of the fault information, calculate the sum of the string values of the key value of the fault information, and take the modulus of the sum of the string values of the key value of the fault information by the number of fault classifications to obtain the fault characteristic value; then, according to the fault time information, divide the record log into different time intervals to obtain log data of different fault time areas; finally, analyze each log data of each fault time area, extract the log records related to the fault, and classify them according to the fault characteristic value, and draw the corresponding fault curve. The characteristic value is calculated using the Haas characteristic algorithm, and the calculation result is a non-negative integer value less than 33, 1-5 is a CPU-related fault, 5-15 is a memory-related fault, and 15-33 is a network and other related faults; the fault diagnosis locates the fault through historical fault information and the preset expert experience of the diagnosis algorithm, and feeds back the diagnosis results to the staff.
[0031] S4: Apply a preset diagnosis algorithm to locate the fault according to the fault curve and obtain a fault diagnosis result.
[0032] The train fault diagnosis method provided by the present invention aims at the defect that the load information uniformity of the periodic table scan constructed by the traditional polling method is poor. According to the actual operation of the train, a dynamic polling algorithm is combined with the change of the equipment status in each cycle, and the polling priority of each device in the current polling cycle is dynamically updated. When the equipment status in each cycle changes, the polling cycle method is dynamically updated to improve the uniformity of the periodic information load and realize a better polling scheme. For the equipment with abnormal status detected in each polling, other threads outside the polling program are used to perform rapid fault diagnosis. Compared with waiting for the detection of the equipment with abnormal status in the next polling cycle according to a fixed polling priority, it can diagnose the equipment failure with hidden dangers more quickly, improve load balancing and polling efficiency, and have higher fault diagnosis efficiency.
[0033] like Figure 2 As shown, based on the same inventive concept, corresponding to the above-mentioned embodiment method, an embodiment of the present invention further provides a train fault diagnosis device, which is used to implement the corresponding train fault diagnosis method in the above-mentioned embodiment, including:
[0034] The fault list generating unit 10 is used to obtain the train operation data transmitted by each device included in the monitoring train control system in real time, and to detect the fault information in the train operation data by applying a dynamic polling algorithm to generate a fault list;
[0035] A receiving unit 20, configured to receive a fault diagnosis request from a user based on any fault information in the fault list;
[0036] A fault curve drawing unit 30 is used to respond to a fault diagnosis request, perform feature processing on the fault information, and draw a fault curve;
[0037] The fault diagnosis unit 40 is used to apply a preset diagnosis algorithm to locate the fault according to the fault curve and obtain a fault diagnosis result.
[0038] The system of the above embodiment is used to implement the corresponding method in the above embodiment, and has the beneficial effects of the corresponding method embodiment, which will not be described in detail here.
[0039] Based on the same inventive concept, the present invention also provides a train display. Figure 3 It is a structural schematic diagram of a train display, including a CPU board, a power module, an interface board (i.e., an interface module) and an FPGA module respectively connected to the CPU board, a plurality of hardware test units (such as a speaker, a display unit, a touch unit) connected to the interface board, etc. The CPU board is provided with a train fault diagnosis device as described in the above embodiment.
[0040] In this embodiment, the CPU board is connected to the interface board through a hybrid interface (including Ethernet, USB, I2C, power supply, etc.), and the train fault diagnosis device arranged thereon is used to detect, display, record, store and analyze train operation data, monitor the train operation status in real time, and has the functions of fault identification, positioning, display and diagnosis. The display unit of the display can provide troubleshooting prompt information to the train driver or crew. The power module is connected to the interface board through a power interface (12V / 5V) to power the CPU board. The CPU board performs core data processing and program operation processing, supports related communication and display functions, and realizes real-time processing of train operation data, operation control, graphic display, voice broadcast, video playback, fault detection and recording, etc.
[0041] like Figure 3As shown, the interface board is connected to the CPU board through a hybrid interface, and is used to receive the instruction call request sent by the software of the train display, and send the instruction call request to the CPU board, and then receive the instruction returned by the CPU board in response to the instruction call request, and call the corresponding software and hardware interface according to the instruction to implement the corresponding function. At the same time, the interface board is also used to receive the instruction sent by the CPU board, and call the corresponding software and hardware equipment of the train display according to the instruction. For example, after the CPU board performs fault identification and positioning, it sends an instruction to the interface board, and the interface board calls the display unit of the train display according to the instruction to display the corresponding fault information; in addition, the interface board is also connected to other communication devices (mainly various devices of the train control system) through the MVB network or Ethernet, and is used to receive the train operation data sent by the train control system. The train operation data is the status data and operation data of all devices included in the train control system. The devices included in the train control system include a monitoring system, a traction control system, a passenger management system, a braking control system, etc. The train control system is connected to the interface board through a multi-function vehicle bus (MVB) interface or an Ethernet network port, and is used for the train display to exchange information with all devices included in the train control system.
[0042] like Figure 3As shown, the hardware test unit includes a speaker unit (speaker), a display unit (LCD screen) and a touch unit (touch screen). The speaker unit is connected to the interface board through an audio output interface (Audio Out) for audio, video and voice playback. The display unit is connected to the FPGA module through a BKLT signal interface and a LVDS signal interface. The touch unit is connected to the FPGA module through an IIC protocol RS232 communication interface. Specifically, the first input end of the FPGA module is connected to the interface board through an I2C bus interface or an RS232 communication interface or a USB interface, the second input end of the FPGA module is connected to the CPU board through an LVDS signal interface to receive LVDS data sent by the CPU board through the LVDS signal interface, the interactive end of the FPGA module is connected to the CPU board through an SPI interface to receive the image data correction value sent by the CPU board through the SPI interface and to send a life signal to the CPU board through the SPI interface, the FPGA module receives the LVDS data sent by the CPU board through the LVDS signal interface and the image data correction value sent through the SPI interface respectively, at the same time, the FPGA module corrects the received LVDS data, and then the FPGA module compares its own correction value with the image data correction value sent by the CPU board, if the CPU hardware or display driver fails, the two values will inevitably not be equal, therefore, if the FPGA module's own correction value is not equal to the image data correction value sent by the CPU board, it is determined that the CPU hardware fails or the display driver fails, the upper layer application monitors the value to troubleshoot the display fault, and the FPGA module will also drive the display C to light up. PU or FPGA failure; at the same time, the FPGA module uses the life signal to monitor each other with the CPU board through the SPI interface. From the actual usage, the FPGA module sends a life signal to the CPU board. If the interactive information returned by the CPU in response to the life signal is not received for more than 200ms, the CPU failure is determined, or the CPU board sends a life signal to the FPGA module. If the interactive information returned by the FPGA module in response to the life signal is not received for more than 200ms, the FPGA module failure is determined; the first output end of the FPGA module is connected to the power control end of the display unit through the BKLT signal interface to receive the voltage and current values of the BKLT backlight power supply through the BKLT signal interface. The BKLT signal provides power to the display unit. The FPGA simultaneously monitors the voltage and current values of the BKLT (backlight power supply). When the voltage value and current value are higher than the specification value, it is determined that the display screen displays a power-related fault; the second output end of the FPGA module is connected to the LCD screen of the display unit through the LVDS signal interface. The LVDS signal is used for interface display and video playback. The third output end of the FPGA module is connected to the touch panel of the touch unit through the IIC protocol RS232 communication interface to receive the touch screen input signal.
[0043] In this embodiment, the hardware testing unit mainly tests the basic performance of the train display hardware, including touch screen test, display brightness test, button test, LED test, audio and video function test, buzzer test, network test, CAN port test, speaker test, etc. Figure 4 As shown, the train display self-checks according to the display configuration file to obtain the initial status display diagram, which contains the display model and the models of each component in the display; then, the status of each component is obtained, and the marking color associated with the status is obtained according to the status of each component; when the status of the component is normal, the marking color is green, otherwise, it is yellow or red; finally, the marking color is marked in the status display diagram. Receive test instructions for testing the hardware performance of the display platform, mainly including: touch screen test, display brightness test, button test, LED test, audio and video function test, buzzer test and motherboard temperature test, etc.; switch the corresponding detection interface of the display device according to the test instructions and call the relevant hardware interface, and control the device to obtain and display the test results through the interface function.
[0044] In this embodiment, if Figure 5 As shown, the train display performs software maintenance, reads and displays information related to the train display platform software version, can maintain and update the relevant platform software through USB and network devices, and can download the display log to the storage device or send it to the remote terminal with one click. Specifically, a web page display method can be designed to provide a network view of a Java-based application, support the web browsing function of the visual interface, and realize remote monitoring of the view on any client with a web browser. Commonly used smart device terminals such as mobile phones, tablets and computer terminals, when normally connected to the display network, the smart terminal can enter the display device IP address and port number information in the web interface, remotely log in to the display device interface through the web page, and remotely operate the display through the interface to realize daily maintenance and remote diagnosis of the display.
[0045] The train display of the present invention can monitor the display and each unit component connected to the display in real time, immediately diagnose the train and its own related faults, locate, display and process fault information; through a friendly human-computer interaction interface, it can quickly and efficiently monitor and locate fault information, and can immediately guide the driver to handle related abnormalities, ensure driving safety, and improve the efficiency of train fault maintenance. It integrates the basic software and hardware testing of the display screen and the train operation data fault diagnosis function. According to the actual operation of the train, the dynamic polling algorithm combines the changes in the status of each cycle of the equipment, dynamically updates the polling priority of each device in the current polling cycle, improves the uniformity of the periodic information load, and realizes a better polling scheme, which greatly improves the efficiency of the maintenance and operation of the train display.
[0046] Based on the same inventive concept, corresponding to any of the above-mentioned embodiment methods, an embodiment of the present invention also provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the train fault diagnosis method as described in the above-mentioned embodiment.
[0047] The computer-readable storage medium of this embodiment includes permanent and non-permanent, removable and non-removable media, and information storage can be implemented by any method or technology; the information can be computer-readable instructions, data structures, modules of programs or other data. Examples of computer-readable storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, read-only compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computer device.
[0048] The computer instructions stored in the computer storage medium of the above embodiment are used to enable the computer to execute the train fault diagnosis method described in the above embodiment, and have the beneficial effects of the corresponding method embodiment, which will not be repeated here.
[0049] Those skilled in the art should understand that the discussion of any of the above embodiments is merely illustrative and is not intended to imply that the scope of the present invention is limited to these examples. Under the concept of the present invention, the technical features in the above embodiments or different embodiments may be combined, the steps may be implemented in any order, and there are many other variations in different aspects of the embodiments of the present invention as described above, which are not provided in detail for the sake of simplicity.
[0050] The embodiments of the present invention are intended to cover all such substitutions, modifications and variations that fall within the broad scope of the present invention. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the embodiments of the present invention should be included in the protection scope of the present invention.
Claims
1. A train fault diagnosis method, characterized in that: include: Acquire train operation data transmitted by various devices included in the train control system in real time, and apply a dynamic polling algorithm to detect fault information in the train operation data to generate a fault list; Receiving a fault diagnosis request from a user based on any fault information in the fault list; In response to the fault diagnosis request, feature processing is performed on the fault information, and a fault curve is drawn; A preset diagnosis algorithm is applied according to the fault curve to locate the fault and obtain a fault diagnosis result.
2. The train fault diagnosis method according to claim 1, characterized in that: The applying a dynamic polling algorithm to detect fault information in the train operation data and generating a fault list includes: Determine the initial state and initial polling priority of each device, and perform dynamic polling according to the initial state and initial polling priority to obtain the device state and polling result of any device in the first period, wherein the polling result includes execution time, memory usage of device polling within the period, and CPU usage of device polling within the period; Update the current polling priority of the device according to the device status and polling result of the previous cycle polling; Dynamically poll each device according to the device status of the previous cycle and the current polling priority, and obtain the device status and polling result of any of the devices in the current cycle; If there is an abnormality in the train operation data during dynamic polling, the fault information in the abnormal train operation data will be added to the fault list and displayed.
3. The train fault diagnosis method according to claim 2, characterized in that: The updating of the current polling priority of the device according to the device status and the polling result of the previous cycle polling includes: Determine, according to the device status of the previous cycle, that the device status after the polling of the previous cycle is normal; For any of the devices whose device status is normal, determine the execution time of the previous cycle as the device polling completion time minus the device polling first response time, evaluate the polling result with the polling weight value, and determine the polling weight value as the product of the sum of the memory usage rate and the CPU usage rate during the device polling period and the execution time; If the execution time of any of the devices exceeds a preset maximum time threshold value, determining the polling weight value of the device to be -1, and determining that the device state of the device is abnormal; For the remaining devices whose device status is normal, if the polling weight value of any device in the previous cycle differs from the polling weight value in the previous cycle by more than a preset value, the weight values of the remaining devices whose device status is normal are recalculated. in, represents the weight value of the i-th device whose device status is normal, Indicates the polling weight value of the device whose device status is normal in the i-th device in the previous cycle, t i Indicates the execution time of the device whose status is normal in the i-th device in the previous cycle, α i represents the sum of the memory usage and the CPU usage of the i-th device whose device status is normal in the previous period, and n represents that there are n devices whose device status is normal in the previous period; The current polling priority of the device whose device status is normal is updated according to the updated weight value.
4. The train fault diagnosis method according to claim 3, characterized in that: The dynamically polling each device according to the device status of the previous cycle and the current polling priority to obtain the device status and polling result of any device in the current cycle includes: For any of the devices whose device status in the previous cycle is abnormal, separate fault diagnosis is performed using parallel threads; Perform dynamic polling according to the current polling priority of any of the devices whose device status in the previous cycle is normal, and obtain the device status and polling result of any of the devices in the current cycle; When any of the devices that adopt parallel threads to perform individual fault diagnosis returns to normal, the device state of the device is set to normal, and the polling priority of the device in the next cycle is determined according to the initial polling priority of the device.
5. The train fault diagnosis method according to any one of claims 1 to 4, characterized in that: The responding to the fault diagnosis request, performing feature processing on the fault information, and drawing a fault curve includes: In response to the fault diagnosis request, extracting the fault time information and the fault characteristic value of the fault information; According to the fault time information, the recorded logs are divided into different time intervals to obtain log data of different fault time areas; Each log data of each fault time zone is analyzed, log records related to the fault are extracted, and the faults are classified according to the fault characteristic values, and corresponding fault curves are drawn.
6. The train fault diagnosis method according to claim 5, characterized in that: The extracting the fault time information and the fault characteristic value of the fault information includes: Extracting fault time information of the fault information; Traverse the key values of the fault information and calculate the sum of the key value string values of the fault information; The sum of the string values of the fault information key values modulo the number of fault categories is used to obtain the fault characteristic value.
7. A train fault diagnosis device, characterized in that: The fault diagnosis device comprises: A fault list generating unit is used to acquire in real time the train operation data transmitted by each device included in the monitoring train control system, and to detect the fault information in the train operation data by applying a dynamic polling algorithm to generate a fault list; A receiving unit, configured to receive a fault diagnosis request from a user based on any fault information in the fault list; A fault curve drawing unit, used to respond to the fault diagnosis request, perform feature processing on the fault information, and draw a fault curve; The fault diagnosis unit is used to apply a preset diagnosis algorithm to locate the fault according to the fault curve and obtain a fault diagnosis result.
8. A train display, characterized in that: The train display includes: an interface module and an FPGA module, a power module, a hardware testing unit, and a CPU board connected to the interface module; the CPU board is provided with the train fault diagnosis device as claimed in claim 7.
9. The train display according to claim 8, characterized in that: The hardware testing unit includes: a display unit and a touch control unit connected to the FPGA module, and a speaker unit connected to the interface module.
10. A computer-readable storage medium storing computer instructions, characterized in that: The computer instructions are used to enable a computer to execute the train fault diagnosis method according to any one of claims 1 to 6.
Citation Information
Cited By
Train control equipment intelligent maintenance method, maintenance system, medium and product
CN120069845A
