CN111813590B - Method and device for diagnosing abnormal reset of main control module and main control module - Google Patents

Method and device for diagnosing abnormal reset of main control module and main control module Download PDF

Info

Publication number
CN111813590B
CN111813590B CN202010488992.2A CN202010488992A CN111813590B CN 111813590 B CN111813590 B CN 111813590B CN 202010488992 A CN202010488992 A CN 202010488992A CN 111813590 B CN111813590 B CN 111813590B
Authority
CN
China
Prior art keywords
reset
control module
module
main control
reason
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010488992.2A
Other languages
Chinese (zh)
Other versions
CN111813590A (en
Inventor
陆琦
唐军
周学勋
蒋国涛
全清华
任懋华
张泰然
申超群
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
CRRC Zhuzhou Institute Co Ltd
Original Assignee
CRRC Zhuzhou Institute Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by CRRC Zhuzhou Institute Co Ltd filed Critical CRRC Zhuzhou Institute Co Ltd
Priority to CN202010488992.2A priority Critical patent/CN111813590B/en
Publication of CN111813590A publication Critical patent/CN111813590A/en
Application granted granted Critical
Publication of CN111813590B publication Critical patent/CN111813590B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0751Error or fault detection not based on redundancy
    • G06F11/0754Error or fault detection not based on redundancy by exceeding limits
    • G06F11/0757Error or fault detection not based on redundancy by exceeding limits by exceeding a time limit, i.e. time-out, e.g. watchdogs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/079Root cause analysis, i.e. error or fault diagnosis
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L12/40169Flexible bus arrangements
    • H04L12/40176Flexible bus arrangements involving redundancy
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L2012/40208Bus networks characterized by the use of a particular bus standard
    • H04L2012/40215Controller Area Network CAN
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L2012/40267Bus for use in transportation systems

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Biomedical Technology (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a method and a device for diagnosing abnormal reset of a main control module in a train network system, comprising the following steps: when the main control module is reset, acquiring interaction information between the first module and the processor and a dog feeding signal output by the processor to the watchdog module; judging whether the interaction information is a default value and/or whether the level holding time of the feeding dog signal reaches or exceeds a preset timeout time according to the interaction information and the feeding dog signal, positioning the reason of abnormal reset of the main control module based on the judgment, and obtaining corresponding reset reason information. The invention realizes the rapid and accurate positioning of the abnormal reset of the main control module, optimizes the performance of the train network system and improves the reliability of the system.

Description

Method and device for diagnosing abnormal reset of main control module and main control module
Technical Field
The invention relates to the technical field of rail transit control, in particular to a method and a system for diagnosing abnormal reset of a master control module in a train communication network system and the master control module in the train communication network system.
Background
The train communication network system is known as a 'brain' and a 'nerve' of a train, is mainly used for data transmission such as train control, state monitoring, fault diagnosis, maintenance, vehicle-mounted information service, video monitoring, safety sensing and the like, and is an important system for ensuring the safety of the train and improving the service quality of rail transit. In the related application projects, the main control module is the main equipment of the system, and the collection, analysis, processing and control instruction sending of the IO data of the whole train network system are the brains of the whole system, so that the whole system is paralyzed once the main control module fails.
Abnormal reset of the main control module is a common fault. Specifically, the watchdog in the main control module is often abnormal due to external factors, so that abnormal reset of the main control module is further caused. In the prior art, a technical scheme capable of rapidly locking the cause of the abnormal reset fault of the main control module is lacking, so that the reliability of a train network system is negatively affected to a certain extent. Therefore, in the prior art, a technical scheme capable of rapidly and reliably realizing accurate positioning of the abnormal reset reason of the main control module is needed.
Disclosure of Invention
In order to solve the above technical problems, an embodiment of the present invention provides a method for diagnosing abnormal reset of a master control module, where the master control module is applied to a train network system, and the method includes: the method comprises the steps of starting diagnosis, acquiring interaction information between a first module and a processor and feeding dog signals output by the processor to a watchdog module when the main control module is reset; and a reason positioning step, judging whether the interaction information is a default value and/or whether the level holding time of the feeding dog signal reaches or exceeds a preset timeout time according to the interaction information and the feeding dog signal, positioning the reason of abnormal reset of the main control module based on the judgment, and obtaining corresponding reset reason information.
Preferably, in the reason positioning step, further, when the interaction information is not the default value and the level holding time of the feeding dog signal does not reach the timeout time, determining that the current reset reason information is that the power supply of the main control module falls.
Preferably, in the reason positioning step, further, when the interaction information is not the default value and the level holding time of the feeding dog signal reaches or exceeds the timeout time, it is determined that the current reset reason information is abnormal operation of the processor.
Preferably, in the reason positioning step, further, when the interaction information is the default value, it is determined that the current reset reason information is a power-on abnormality or a CPU software-on abnormality of the main control module.
Preferably, in the diagnosis starting step, further, whether the main control module is reset is determined by judging whether a falling edge of a reset signal sent by the watchdog module is detected.
Preferably, the method further comprises: recording and storing the reset reason information; after the main control module is started, the processor reads the saved current reset reason information and stores the current reset reason information into a diagnosis log in the processor, so that the processor obtains the reason of the last abnormal reset in a read-write access mode.
On the other hand, the embodiment of the invention also provides a device for diagnosing abnormal reset of the main control module, wherein the main control module is applied to a train network system, and the device comprises: the diagnosis starting unit is configured to acquire interaction information between the first module and the processor and a dog feeding signal output by the processor to the watchdog module when the main control module is reset; the reason positioning unit is configured to judge whether the interaction information is a default value and/or whether the level holding time of the feeding dog signal reaches or exceeds a preset timeout time according to the interaction information and the feeding dog signal, and based on the judgment, position the reason of abnormal reset of the main control module and obtain corresponding reset reason information.
Preferably, the device further comprises: the reason recording unit is configured to record and store the reset reason information, after the main control module is started, the processor reads the stored current reset reason information and stores the current reset reason information into a diagnosis log in the processor, so that the processor obtains the reason of the last abnormal reset in a read-write access mode.
In addition, an embodiment of the present invention provides a master control module for a train network system, where the master control module includes: a processor; the watchdog module is used for receiving and detecting a watchdog feeding signal output by the processor, and generating a reset signal when the watchdog feeding signal is abnormal so as to reset and control the processor; a first module that performs information interaction with the processor; the reset reason diagnosis module comprises the device for diagnosing the abnormal reset of the main control module.
Preferably, the reset reason diagnostic module is integrated within the first module; the first module is preferably a programmable logic device; the first module and the processor are in communication interaction through GPIO or a vehicle bus.
One or more embodiments of the above-described solution may have the following advantages or benefits compared to the prior art:
the embodiment of the invention mainly provides a method and a system for diagnosing abnormal reset of a main control module of a train network system. According to the method and the system, the reasons for generating abnormal reset conditions are classified by analyzing the theoretical principle of the fault reset of the main control module, and a simple and effective diagnosis mechanism for the abnormal reset of the main control module is designed according to the reasons. Specifically, when a fault occurs, all relevant signals and data in a reset and restart state are collected, the state is detected, the cause of the fault is further deduced in a reverse mode, and the rapid and accurate positioning of the abnormal reset cause of the main control module is realized. The invention can be widely applied to the field of high-reliability rail traffic control, has very broad prospect, effectively optimizes the performance of a train network system and practically improves the reliability of the system.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
The accompanying drawings are included to provide a further understanding of the invention, and are incorporated in and constitute a part of this specification, illustrate the invention and together with the embodiments of the invention, serve to explain the invention, without limitation to the invention. In the drawings:
fig. 1 is a step diagram of a method for diagnosing abnormal reset of a main control module according to an embodiment of the present application.
Fig. 2 is a specific flowchart of a method for diagnosing abnormal reset of a main control module according to an embodiment of the present application.
Fig. 3 is a block diagram of an apparatus for diagnosing abnormal reset of a main control module according to an embodiment of the present application.
Fig. 4 is a schematic structural diagram of a master control module in a train network system according to an embodiment of the present application.
Detailed Description
The following will describe embodiments of the present invention in detail with reference to the drawings and examples, thereby solving the technical problems by applying technical means to the present invention, and realizing the technical effects can be fully understood and implemented accordingly. It should be noted that, as long as no conflict is formed, each embodiment of the present invention and each feature of each embodiment may be combined with each other, and the formed technical solutions are all within the protection scope of the present invention.
Additionally, the steps illustrated in the flowcharts of the figures may be performed in a computer system, such as a set of computer executable instructions. Also, while a logical order is depicted in the flowchart, in some cases, the steps depicted or described may be performed in a different order than presented herein.
The train communication network system is known as a 'brain' and a 'nerve' of a train, is mainly used for data transmission such as train control, state monitoring, fault diagnosis, maintenance, vehicle-mounted information service, video monitoring, safety sensing and the like, and is an important system for ensuring the safety of the train and improving the service quality of rail transit. In the related application projects, the main control module is the main equipment of the system, and the collection, analysis, processing and control instruction sending of the IO data of the whole train network system are the brains of the whole system, so that the whole system is paralyzed once the main control module fails.
Abnormal reset of the main control module is a common fault. Specifically, the watchdog in the main control module is abnormal due to external factors (such as abnormal drop of a power supply, abnormal power-on starting of the module and abnormal running of a CPU program), so that abnormal reset of the main control module is further caused, and in the prior art, a technical scheme capable of rapidly locking the abnormal reset fault of the main control module is lacking, so that the reliability of a train network system is negatively influenced to a certain extent. Therefore, in the prior art, a technical scheme capable of rapidly and reliably realizing accurate positioning of the abnormal reset reason of the main control module is needed.
In order to solve the technical problems, the invention provides a method and a system for diagnosing abnormal reset of a main control module in a train communication network system. The method and the system design a resetting reason diagnosis module which can be integrated in any one of the above main control modules (the main control module for the train communication network system) and can be used for carrying out information interaction (data and signal interaction) with the central processing unit (the first module 43). Further, the feeding signal sent by the central processing unit to the watchdog module 42 and the reset signal output by the watchdog module 42 are introduced into the diagnosis module, and the diagnosis module detects the two signals in real time; then, determining whether the feeding signal output by the central processing unit is abnormal when the central processing unit needs to be reset, and diagnosing the cause of resetting the current main control module by combining the judging result of whether the interaction data and the signal transmitted between the central processing unit and the first module 43 are set to default values when the central processing unit needs to be reset; and finally, outputting and storing the current reset reason diagnosis result. Therefore, the method provided by the invention can be used for rapidly and effectively accurately positioning the reset reason of the main control module in the train network system, optimizing the performance of the train network system and improving the system reliability.
Fig. 4 is a schematic structural diagram of a master control module in a train network system according to an embodiment of the present application. As shown in fig. 4, a master control module in a train (communication) network system according to the present invention at least includes: a processor (central processing unit) 41, a watchdog module 42, a first module 43, and a reset reason diagnosis module 44. The central processing unit 41 adopts a CPU chip, which is a core control device in an active module, and completes decision and information scheduling of functions such as train control, state monitoring, fault diagnosis, maintenance, vehicle-mounted information service, video monitoring, safety sensing and the like. The watchdog module 42 is in communication with the processor 41, and is configured to receive and detect a watchdog feeding signal sent by the central processor 41 under a normal condition of starting and running, periodically check an running state of the central processor 41 through the watchdog feeding signal to monitor, and generate a (valid) reset signal for controlling the processor 41 to perform a reset restart operation when detecting that the current watchdog feeding signal is abnormal, so as to drive the central processor 41 to perform the reset restart operation after sending the (valid) reset signal to the processor 41, thereby realizing a self-repairing function under an abnormal condition.
Further, the first module 43 communicates with the processor 41 (data and signal interactions). In the embodiment of the present invention, the first module 43 may be any chip (for example, a chip integrated with a train status monitoring function, a chip integrated with a train fault diagnosis function, etc.) in the main control module, which can implement data and signal interaction with the central processor 41. It should be noted that, the installation location of the first module 43, the type of the installed chip, and the type of the cable carried by the information transmitted to each other between the processor 41 are not particularly limited in the present invention, and those skilled in the art may configure the present invention according to practical situations. Further, in an embodiment of the present invention, the first module 43 is preferably a programmable logic device (e.g. CPLD, FPGA, etc.), and the first module 43 and the processor 41 perform interactive transmission of data and signals through GPIO or vehicle bus (e.g. CAN bus).
Further, the reset reason diagnosis module 44 includes: a device for diagnosing an abnormal reset of the main control module (hereinafter referred to as an "abnormal reset diagnosis device") described below. The reset reason diagnosis module 44 is respectively connected with the processor 41 and the watchdog module 42, and is configured to receive and detect a reset signal output by the watchdog module 42, a feeding signal output by the processor 41, and interactive information transmitted by communication interaction between the processor 41 and the first module 43, and accurately locate a reason for the processor 41 when the reset restart operation is completed according to a detection result of these information, so as to obtain and record reset reason information for each reset restart operation. In the embodiment of the present invention, in order to optimize the efficiency of the reset reason diagnosis, the reset reason diagnosis module 44 is integrated into the first module 43.
Fig. 1 is a step diagram of a method for diagnosing abnormal reset of a main control module according to an embodiment of the present application. Fig. 2 is a specific flowchart of a method for diagnosing abnormal reset of a main control module according to an embodiment of the present application. The workflow of the above-described reset cause diagnosis module 44 (hereinafter referred to as "abnormal reset diagnosis method") will be described in detail with reference to fig. 1 and 2.
In step S110, when the main control module is reset and restarted, the interaction information (interaction data and signals) between the first module 43 and the processor 41 and the feeding dog signal output by the processor 41 to the watchdog module 42 are obtained. In the practical application process, the reset reason diagnosis module 44 receives and detects the (valid or invalid) reset signal output by the watchdog module 42 in real time, and when receiving the valid reset signal, the processor 41 also receives the valid reset signal at the same time, so that after receiving the valid reset signal, the processor 41 controls the processor 41 to perform the reset restart operation by interrupting the highest priority feature owned by the reset signal.
In general, the main control module has the following 3 reasons for abnormal reset fault: 1) The main control module is powered on to start abnormally, so that CPU software cannot be started, and further, a dog feeding signal is abnormal (the dog feeding fails), so that the watchdog module 42 outputs a (valid) reset signal; 2) An abnormality occurs during the operation of the CPU, and further, a dog feeding signal is abnormal (a dog feeding fails), so that the watchdog module 42 outputs a (valid) reset signal; 3) The power supply of the main control module drops, which further causes that the watchdog module 42 is abnormal in operation and cannot detect a normal dog feeding signal, so that the watchdog module 42 outputs a (valid) reset signal.
Thus, when the reset reason diagnosis module 44 detects that the current reset signal is in the valid state, the processor 41 also receives the valid reset signal and executes the reset restart operation, and at this time, the reset reason diagnosis module 44 immediately acquires the interaction information and the dog feeding signal, so that the process proceeds to step S120, and detects the interaction information and the dog feeding signal that are currently intercepted. In the actual application process, the reset reason diagnosis module 44 needs to monitor the validity of the reset signal output by the watchdog module 42 in real time in order to know whether the current processor 41 is reset and restarted. In general, the reset signal output by the watchdog module 42 during operation is changed from high level to low level, and therefore, when detecting the falling edge (low active) of the watchdog reset signal, the current reset signal is judged to be in an active state; when the high level of the watchdog reset signal is detected, the current reset signal is judged to be in an invalid state. Thus, in the embodiment of the present invention, the reset reason diagnosis module 44 needs to determine whether to reset the main control module by determining whether to detect the falling edge of the reset signal sent by the watchdog module 42.
Step S120, the reset reason diagnosis module 44 sequentially determines whether the current interaction information is a default value and/or whether the level holding time of the current dog feeding signal reaches or exceeds a preset timeout period according to the interaction information and the dog feeding signal acquired by the processor 41 during reset and restart, and then locates the reason for abnormal reset of the main control module according to the determination result, and obtains corresponding reset reason information. Through the above analysis of the cause of the abnormal reset fault of the main control module, in the embodiment of the present invention, the cause of the abnormal reset fault of the main control module includes: the power supply of the main control module is started abnormally or CPU software is started abnormally, the operation of a processor (software) is abnormal, and the power supply of the main control module is dropped.
In the application process of the train network system, if a diagnosis mechanism is not provided for judging the specific cause of abnormal reset of the main control module, the main control module is difficult to analyze and optimize in a targeted manner, and a great deal of time and energy are wasted, so that the three abnormal reset conditions are required to be distinguished, identified and recorded.
The following analysis is performed for the above three reset conditions: 1) When the main control module is powered on normally and can be started normally, the GPIO signal (interaction information between the first module 43 and the processor 41, i.e. interaction data and signals) is set to a fixed preset value through the CPU software, and if the CPU software is started abnormally, the GPIO is kept at the preset value; 2) The watchdog feeding signal output by the CPU is a pulse signal with periodically high and low level turning, the period of the signal is far smaller than the watchdog feeding overtime, and when the level of the watchdog feeding signal is kept unchanged and reaches the overtime, the watchdog outputs reset to control the CPU to reset and restart; 3) When the power supply of the main control module falls, the watchdog module 42 does not need to detect the overtime time of the dog feeding signal, immediately outputs a reset signal and controls the CPU to reset and restart. Therefore, the watchdog feeding signal sent from the CPU to the watchdog module 42 and the reset signal output from the watchdog module 42 are connected to the reset reason diagnosis module 44 in the first module 43 to monitor, and the CPU performs interactive information transmission with the first module 43 through the interactive cable. After receiving the valid reset signal, the reset reason diagnosis module 44 performs high and low level timing monitoring on the received feeding signal, if the normal turnover indicates that the feeding is normal, if the high or low level is unchanged and the timeout time is reached, the abnormal feeding of the watchdog is determined.
Specifically, in step S120, when the main control module resets, it is first determined whether the current interaction information is a default value according to the current intercepted interaction information, then, it is determined whether the level holding time of the current dog feeding signal reaches or exceeds a preset (watchdog feeding) timeout period according to the current dog feeding signal, and finally, it is determined, according to the two determination results, that the reset reason of the current main control module locates.
Further, in an embodiment of the present invention, referring to fig. 2, when the reset reason diagnostic module 44 detects that the current interaction information is not a default value (indicating that the current main control module is powered up normally, and the CPU can be started normally, at this time, the GPIO signal is set to a fixed preset value by the CPU software), and the level holding time of the current feeding signal does not reach the above timeout period (indicating that the high-low level of the current feeding signal is turned over normally, and the feeding is normal), it is determined that the current reset reason information is the power drop of the main control module. At this time, the reset reason diagnosis module 44 immediately generates reset reason information including the power drop information of the current main control module, and adds the current reset reason information to a time stamp to obtain current diagnosis result information.
Further, in an embodiment of the present invention, referring to fig. 2, when the reset reason diagnostic module 44 detects that the current interaction information is not a default value (indicating that the current main control module is powered up normally, and the CPU can be started normally, at this time, the GPIO signal is set to a fixed preset value by the CPU software), and the level holding time of the current feeding signal reaches or exceeds the above timeout time (indicating that the current feeding signal is abnormal in high-low level flip), the current reset reason information is determined to be the abnormal operation of the processor 41. At this time, the reset reason diagnosis module 44 immediately generates reset reason information containing the operation abnormality information of the current processor 41, and adds the current reset reason information to a time stamp to obtain current diagnosis result information.
Further, in an embodiment of the present invention, referring to fig. 2, when the reset reason diagnostic module 44 detects that the current interaction information is a default value (indicating that the current main control module is abnormal in power-on or the CPU software is started abnormally, at this time, the CPU sets the GPIO signal to the default value by the CPU software when the CPU is started abnormally, for example, the GPIO signal is set to 0 when the CPU is started abnormally, and at this time, whether the high-low level flip of the feeding dog signal is normal or not, the current reset reason information is determined to be the power-on abnormality or the CPU software is started abnormally of the current main control module. At this time, the reset reason diagnosis module 44 immediately generates reset reason information containing the power-on abnormality or CPU software-on abnormality information of the current main control module, and adds the current reset reason information to a time stamp to obtain current diagnosis result information.
In this way, after completing the diagnosis of the cause of the reset and restart of the processor 41 in the main control module, the diagnosis result information corresponding to different causes is obtained, and at this time, the abnormal reset diagnosis method according to the present invention further includes: the reset reason diagnosis module 44 records the reset reason information (i.e. the current diagnosis result information) added with the current time stamp and performs (temporary) storage, so that the processor 41 can inquire the diagnosis result information in the diagnosis module 44 through a read-write access mode. Further, in order to improve the diagnostic efficiency of the reset reason diagnostic module 44 according to the embodiment of the present invention and maintain the original operating system configuration capability of the host module to maximize the utilization, the storage function of the reset reason diagnostic module 44 is temporary. Therefore, after each reset restart or normal start of the main control module, the processor 41 (software) reads the temporarily stored current diagnosis result information from the reset reason diagnosis module 44 through the interactive cable, so that the processor 41 accurately locates the reason of the last abnormal reset in a read-write access mode and records the reason into the diagnosis log of the processor 41 for inquiry.
Further, as shown in fig. 2, the specific flow of the above-mentioned reset reason diagnosis module 44 is as follows:
s201, the main control module is powered on and started, the reset reason diagnosis module 44 monitors the falling edge of a watchdog reset signal, and when the falling edge of the reset signal is monitored, the process jumps to S202;
s202, when the falling edge of a reset signal is monitored, judging whether the currently intercepted interaction information is set as a default value, if so, jumping to S203, and if not, jumping to S205;
s203, determining that the watchdog is reset due to failure of feeding the watchdog caused by abnormal power-on starting of the main control module or abnormal starting of CPU software, and recording and storing a diagnosis result of the current reset reason S204;
s205, judging whether the watchdog feeding signal turns over normally, if so, jumping to S206, and if not, jumping to S208;
s206, determining that the watchdog is reset due to failure of feeding the watchdog caused by abnormality in the running of CPU software, and S207 recording and storing a diagnosis result of the current reset reason;
s208, determining that the watchdog is abnormal and reset due to the falling of the power supply of the main control module, and S209 recording and storing the diagnosis result of the current reset reason.
On the other hand, based on the method for diagnosing the abnormal reset of the main control module (namely, the abnormal reset diagnosis method), the invention also provides a device for diagnosing the abnormal reset of the main control module (namely, the abnormal reset diagnosis device). Fig. 3 is a block diagram of an apparatus for diagnosing abnormal reset of a main control module according to an embodiment of the present application. As shown in fig. 3, the abnormality reset diagnosis apparatus (i.e., a reset cause diagnosis module) according to the present invention includes: a diagnosis start unit 31, a cause positioning unit 32, and a cause recording unit 33.
Specifically, the diagnosis starting unit 31 is implemented according to the method described in the above step S110, and is configured to obtain the interaction information between the first module 43 and the processor 41 and the feeding signal output by the processor 41 to the watchdog module 42 when the main control module is reset. The reason positioning unit 32 is implemented according to the method described in the above step S120, and is configured to sequentially determine whether the interaction information is a default value and/or whether the level holding time of the feeding dog signal reaches or exceeds a preset timeout period according to the interaction information and the feeding dog signal received by the diagnosis starting unit 31, based on which the reason of the abnormal reset of the main control module is positioned, and corresponding reset reason information is obtained.
The reason recording unit 33 is configured to record and store the reset reason information generated by the reason positioning unit 32, and after the main control module is started, the processor 41 reads the stored current reset reason information and stores the current reset reason information into a diagnosis log in the processor 41, so that the processor 41 obtains the reason of the last abnormal reset through a read-write access mode.
The embodiment of the invention provides a method and a system for diagnosing abnormal reset of a main control module of a train network system. According to the method and the system, the reasons for generating abnormal reset conditions are classified by analyzing the theoretical principle of the fault reset of the main control module, and a simple and effective diagnosis mechanism for the abnormal reset of the main control module is designed according to the reasons. Specifically, when a fault occurs, all relevant signals and data in a reset and restart state are collected, the state is detected, the cause of the fault is further deduced in a reverse mode, and the rapid and accurate positioning of the abnormal reset cause of the main control module is realized. The invention can be widely applied to the field of high-reliability rail traffic control, has very broad prospect, effectively optimizes the performance of a train network system and practically improves the reliability of the system.
The present invention is not limited to the above-mentioned embodiments, and any changes or substitutions that can be easily understood by those skilled in the art within the scope of the present invention are intended to be included in the scope of the present invention. Therefore, the protection scope of the present invention should be subject to the protection scope of the claims.
It is to be understood that the disclosed embodiments are not limited to the specific structures, process steps, or materials disclosed herein, but are intended to extend to equivalents of these features as would be understood by one of ordinary skill in the relevant arts. It is also to be understood that the terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting.
Reference in the specification to "one embodiment" or "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment is included in at least one embodiment of the invention. Thus, the appearances of the phrase "one embodiment" or "an embodiment" in various places throughout this specification are not necessarily all referring to the same embodiment.
Although the embodiments of the present invention are described above, the embodiments are only used for facilitating understanding of the present invention, and are not intended to limit the present invention. Any person skilled in the art can make any modification and variation in form and detail without departing from the spirit and scope of the present disclosure, but the scope of the present disclosure is still subject to the scope of the appended claims.

Claims (7)

1. A method for diagnosing abnormal reset of a master control module, wherein the master control module is applied to a train network system, and the method comprises the following steps:
the method comprises the steps of starting diagnosis, when a main control module is reset, acquiring interaction information between a first module and a processor and a dog feeding signal directly output to a watchdog module by the processor, wherein the first module is a programmable logic device, and the first module and the processor carry out communication interaction transmission of data and signals through a GPIO (general purpose input/output) or a vehicle bus;
a reason positioning step, judging whether the interaction information is a default value or not and whether the level holding time of the dog feeding signal reaches or exceeds a preset timeout time or not according to the interaction information and the dog feeding signal, positioning the reason of abnormal reset of the main control module based on the judgment, obtaining corresponding reset reason information,
the reason locating step comprises the following steps:
when the interaction information is not the default value and the level holding time of the dog feeding signal does not reach the overtime time, determining that the current reset reason information is that the power supply of the main control module falls;
when the interaction information is not the default value and the level holding time of the feeding dog signal reaches or exceeds the timeout time, determining that the current reset reason information is abnormal operation of the processor;
and when the interaction information is the default value, determining that the current reset reason information is the power supply starting abnormality or the CPU software starting abnormality of the main control module.
2. The method of claim 1, wherein, in said diagnostic initiation step, further,
and judging whether the falling edge of the reset signal sent by the watchdog module is detected or not so as to determine whether the main control module is reset or not.
3. The method according to claim 1 or 2, characterized in that the method further comprises:
recording and storing the reset reason information;
after the main control module is started, the processor reads the saved current reset reason information and stores the current reset reason information into a diagnosis log in the processor, so that the processor obtains the reason of the last abnormal reset in a read-write access mode.
4. An apparatus for diagnosing an abnormal reset of a main control module, wherein the main control module is applied to a train network system, and the apparatus comprises:
the diagnosis starting unit is configured to acquire interaction information between a first module and a processor and a dog feeding signal directly output to a watchdog module by the processor when the main control module is reset, wherein the first module is a programmable logic device, and the first module and the processor carry out communication interaction transmission of data and signals through a GPIO (general purpose input/output) or a vehicle bus;
the reason positioning unit is configured to judge whether the interaction information is a default value and/or whether the level holding time of the feeding dog signal reaches or exceeds a preset timeout time according to the interaction information and the feeding dog signal, based on the judgment, position the reason of abnormal reset of the main control module and obtain corresponding reset reason information,
when the interaction information is not the default value and the level holding time of the dog feeding signal does not reach the overtime time, determining that the current reset reason information is that the power supply of the main control module falls;
when the interaction information is not the default value and the level holding time of the feeding dog signal reaches or exceeds the timeout time, determining that the current reset reason information is abnormal operation of the processor;
and when the interaction information is the default value, determining that the current reset reason information is the power supply starting abnormality or the CPU software starting abnormality of the main control module.
5. The apparatus of claim 4, wherein the apparatus further comprises:
the reason recording unit is configured to record and store the reset reason information, after the main control module is started, the processor reads the stored current reset reason information and stores the current reset reason information into a diagnosis log in the processor, so that the processor obtains the reason of the last abnormal reset in a read-write access mode.
6. A master control module for a train network system, the master control module comprising:
a processor;
the watchdog module is used for receiving and detecting a watchdog feeding signal output by the processor, and generating a reset signal when the watchdog feeding signal is abnormal so as to reset and control the processor;
a first module that performs information interaction with the processor;
a reset reason diagnosis module comprising the apparatus for diagnosing abnormal reset of the main control module as claimed in claim 4 or 5.
7. The master control module of claim 6, wherein,
the reset reason diagnosis module is integrated in the first module;
the first module is a programmable logic device;
the first module and the processor are in communication interaction through GPIO or a vehicle bus.
CN202010488992.2A 2020-06-02 2020-06-02 Method and device for diagnosing abnormal reset of main control module and main control module Active CN111813590B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010488992.2A CN111813590B (en) 2020-06-02 2020-06-02 Method and device for diagnosing abnormal reset of main control module and main control module

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010488992.2A CN111813590B (en) 2020-06-02 2020-06-02 Method and device for diagnosing abnormal reset of main control module and main control module

Publications (2)

Publication Number Publication Date
CN111813590A CN111813590A (en) 2020-10-23
CN111813590B true CN111813590B (en) 2024-02-27

Family

ID=72847851

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010488992.2A Active CN111813590B (en) 2020-06-02 2020-06-02 Method and device for diagnosing abnormal reset of main control module and main control module

Country Status (1)

Country Link
CN (1) CN111813590B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112286713B (en) * 2020-12-29 2021-04-06 北京国科天迅科技有限公司 Reset detection circuit for improving fault positioning efficiency of complete machine equipment
CN113407020B (en) * 2021-06-09 2024-03-22 北京集创北方科技股份有限公司 Component starting method and device, touch chip and electronic equipment
CN114003420B (en) * 2021-10-14 2024-01-12 苏州浪潮智能科技有限公司 CPLD diagnosis method, system, equipment and computer storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103676728A (en) * 2013-11-27 2014-03-26 奇瑞汽车股份有限公司 Watchdog circuit system for electronic control unit of automobile
CN104142869A (en) * 2013-05-06 2014-11-12 上海海拉电子有限公司 Monitoring method and watchdog module for car body control system
CN106874157A (en) * 2017-01-04 2017-06-20 中车株洲电力机车研究所有限公司 The monitoring method and device of a kind of train display system applications
WO2017124684A1 (en) * 2016-01-18 2017-07-27 中兴通讯股份有限公司 Optical network terminal and method for capturing abnormal message of optical network terminal
CN109597701A (en) * 2018-10-23 2019-04-09 上海移远通信技术股份有限公司 A kind of device that communication module is restarted automatically

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011091743A1 (en) * 2010-02-01 2011-08-04 Hangzhou H3C Technologies Co., Ltd. Apparatus and method for recording reboot reason of equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104142869A (en) * 2013-05-06 2014-11-12 上海海拉电子有限公司 Monitoring method and watchdog module for car body control system
CN103676728A (en) * 2013-11-27 2014-03-26 奇瑞汽车股份有限公司 Watchdog circuit system for electronic control unit of automobile
WO2017124684A1 (en) * 2016-01-18 2017-07-27 中兴通讯股份有限公司 Optical network terminal and method for capturing abnormal message of optical network terminal
CN106874157A (en) * 2017-01-04 2017-06-20 中车株洲电力机车研究所有限公司 The monitoring method and device of a kind of train display system applications
CN109597701A (en) * 2018-10-23 2019-04-09 上海移远通信技术股份有限公司 A kind of device that communication module is restarted automatically

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
The Research of Detection Guiding Technique in Embedded System;Qi Li 等;《2011 7th International Conference on Wireless Communications, Networking and Mobile Computing》;1-3 *
一种FPGA实现看门狗电路功能的方法;李丙玉;王晓东;;硅谷(17);190 *

Also Published As

Publication number Publication date
CN111813590A (en) 2020-10-23

Similar Documents

Publication Publication Date Title
CN111813590B (en) Method and device for diagnosing abnormal reset of main control module and main control module
US9969289B2 (en) System and method for monitoring coordination/control of multi-output integrated charger for electric automobile
CN110581852A (en) Efficient mimicry defense system and method
CN112034818B (en) Controller fault analysis method and system
CN110704287B (en) RAID card abnormal log collection method and system under Linux system and storage medium
JP2023547782A (en) ECU management method in a vehicle, ECU and readable storage medium
CN110943865A (en) Method and device for diagnosing equipment fault time and related equipment
CN110555006A (en) log recording method, battery management system, vehicle and electronic equipment
CN116820820A (en) Server fault monitoring method and system
CN110995823B (en) Vehicle-mounted terminal offline processing method, device, storage medium and device
US6584432B1 (en) Remote diagnosis of data processing units
CN114691407A (en) Method and device for acquiring vehicle log, electronic equipment and storage medium
CN101453551A (en) Collecting method for set-top box failure information
CN113032218B (en) Server fault detection method, system and computer readable storage medium
KR20120126873A (en) System for Dynamic Analysis of Embedded Software of Vehicle using UDS
CN109597389B (en) Test system of embedded control system
CN111488050B (en) Power supply monitoring method, system and server
US11613215B2 (en) Apparatus and method for detecting a battery discharging cause for a vehicle
CN112306871A (en) Data processing method, device, equipment and storage medium
KR20120124925A (en) Device and method for diagnosis dark current generating electronic unit
CN114665987A (en) Antenna health management system based on artificial intelligence
EP0962862B1 (en) Apparatus and method for remote diagnostic of data processing units
CN105320615A (en) Data storage method and data storage device
CN115794550B (en) Process management method, device, vehicle and storage medium
CN115426607B (en) Audio diagnosis method, device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant