CN111813590A - 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
CN111813590A
CN111813590A CN202010488992.2A CN202010488992A CN111813590A CN 111813590 A CN111813590 A CN 111813590A CN 202010488992 A CN202010488992 A CN 202010488992A CN 111813590 A CN111813590 A CN 111813590A
Authority
CN
China
Prior art keywords
reset
control module
module
reason
processor
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.)
Granted
Application number
CN202010488992.2A
Other languages
Chinese (zh)
Other versions
CN111813590B (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

Images

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

Abstract

The invention discloses a method and a device for diagnosing abnormal reset of a master control module in a train network system, which comprises 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; and judging whether the interactive information is a default value and/or whether the level holding time of the dog feeding signal reaches or exceeds a preset overtime time according to the interactive information and the dog feeding signal, positioning the reason of the abnormal reset of the main control module based on the judgment, and obtaining corresponding reset reason information. The invention realizes the quick 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 resetting 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 the brain and nerve of the 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 quality of rail transit service. In related application projects, the master control module is a main device of the system, and is a brain of the whole system, and the collection, analysis, processing and control instruction sending of the IO data of the whole train network system are loaded, so that once the IO data fails, the whole system is paralyzed.
The abnormal reset of the main control module is a common fault. Specifically, the watchdog in the master control module is often abnormal due to external factors, thereby further causing the abnormal reset of the master control module. In the prior art, a technical scheme for rapidly locking the reason for the abnormal reset fault of the main control module is lacked, so that certain negative influence is generated on the reliability of a train network system. Therefore, in the prior art, a technical solution capable of quickly and reliably achieving accurate positioning of the reason for the abnormal reset of the main control module needs to be provided.
Disclosure of Invention
In order to solve the above technical problem, an embodiment of the present invention provides a method for diagnosing an abnormal reset of a master control module, where the master control module is applied to a train network system, and the method includes: a diagnosis starting step, namely acquiring interaction information between a first module and a processor and a dog feeding signal output to a watchdog module by the processor when the main control module is reset; and a reason positioning step, judging whether the interactive information is a default value and/or whether the level holding time of the dog feeding signal reaches or exceeds a preset overtime according to the interactive information and the dog feeding signal, positioning the reason of the 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 dog feeding signal does not reach the timeout time, it is determined that the current reset reason information is the power supply drop of the main control module.
Preferably, in the reason locating step, further, when the mutual 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 an 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 power supply start abnormality of the main control module or CPU software start abnormality.
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 stored current reset reason information and stores the current reset reason information into a diagnostic 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, an embodiment of the present invention further provides a device for diagnosing an abnormal reset of a master control module, where the master control module is applied to a train network system, and the device includes: the diagnosis starting unit is configured to acquire interaction information between the first module and the processor and a dog feeding signal output to the watchdog module by the processor when the main control module is reset; and 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 dog feeding signal reaches or exceeds a preset timeout time according to the interaction information and the dog feeding signal, position the reason of the abnormal reset of the main control module based on the judgment, and obtain corresponding reset reason information.
Preferably, the apparatus further comprises: and the reason recording unit is configured to record and store the reset reason information, and 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 diagnostic 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 the dog feeding signal output by the processor, and generating a reset signal to perform reset control on the processor when the dog feeding signal is abnormal; a first module, which performs information interaction with the processor; and the reset reason diagnosis module comprises the device for diagnosing the abnormal reset of the main control module.
Preferably, the reset reason diagnosis module is integrated in the first module; the first module is preferably a programmable logic device; the first module and the processor are in communication interaction through a GPIO or a vehicle bus.
Compared with the prior art, one or more embodiments in the above scheme can have the following advantages or beneficial effects:
the embodiment of the invention mainly provides a method and a system for diagnosing abnormal reset of a master control module of a train network system. The method and the system classify the reasons of the abnormal reset condition by analyzing the theoretical principle of the main control module fault reset, and design a simple and effective diagnosis mechanism of the main control module abnormal reset according to the reasons. Specifically, when a fault occurs, relevant signals and data in a reset restart state are collected, the state of the relevant signals and data is detected, the reason of the fault occurrence is further reversely deduced, and the rapid and accurate positioning of the abnormal reset reason of the main control module is realized. The invention can be widely applied to the field of high-reliability rail transit control, has wide 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, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the principles of the invention and not to limit the invention. In the drawings:
fig. 1 is a flowchart illustrating a method for diagnosing an abnormal reset of a master control module according to an embodiment of the present application.
Fig. 2 is a specific flowchart of a method for diagnosing an abnormal reset of a master control module according to an embodiment of the present application.
Fig. 3 is a block diagram of an apparatus for diagnosing an abnormal reset of a master control module according to an embodiment of the present disclosure.
Fig. 4 is a schematic structural diagram of a master control module in the train network system according to the embodiment of the present application.
Detailed Description
The following detailed description of the embodiments of the present invention will be provided with reference to the drawings and examples, so that how to apply the technical means to solve the technical problems and achieve the technical effects can be fully understood and implemented. It should be noted that, as long as there is no conflict, the embodiments and the features of the embodiments of the present invention may be combined with each other, and the technical solutions formed are within the scope of the present invention.
Additionally, the steps illustrated in the flow charts of the figures may be performed in a computer system such as a set of computer-executable instructions. Also, while a logical order is shown in the flow diagrams, in some cases, the steps shown or described may be performed in an order different than here.
The train communication network system is known as the brain and nerve of the 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 quality of rail transit service. In related application projects, the master control module is a main device of the system, and is a brain of the whole system, and the collection, analysis, processing and control instruction sending of the IO data of the whole train network system are loaded, so that once the IO data fails, the whole system is paralyzed.
The abnormal reset of the main control module is a common fault. Specifically, the watchdog in the master control module is abnormal due to external factors (for example, abnormal drop of a power supply, abnormal power-on start of the module, and abnormal running of a CPU program), so as to further cause abnormal reset of the master control module. Therefore, in the prior art, a technical solution capable of quickly and reliably achieving accurate positioning of the reason for the abnormal reset of the main control module needs to be provided.
In order to solve the technical problem, 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 reset reason diagnosis module which can be integrated in any chip (a first module 43) of the main control module (the main control module for the train communication network system) which can carry out information interaction (data and signal interaction) with a central processing unit. Further, a dog feeding signal sent to the watchdog module 42 by the central processing unit and a reset signal output by the watchdog module 42 are introduced into the diagnostic module, and the diagnostic module performs real-time detection on the two signals; then, determining whether the dog feeding signal output by the central processing unit is abnormal when the central processing unit needs to be reset, and diagnosing the reason causing the current main control module to be reset by combining the judgment result about whether the interactive data and the signal sent between the central processing unit and the first module 43 are set as default values when the central processing unit needs to be reset; and finally, outputting and storing the diagnosis result of the current reset reason. Therefore, the method can quickly and effectively accurately position the reset reason of the master control module in the train network system, optimize the performance of the train network system and improve the reliability of the system.
Fig. 4 is a schematic structural diagram of a master control module in the train network system according to the embodiment of the present application. As shown in fig. 4, the master control module in the 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 diagnostic module 44. The central processing unit 41 is a CPU chip, which is a core control device in the master module, and performs decision making and information scheduling of functions such as train control, state monitoring, fault diagnosis, maintenance, vehicle-mounted information service, video monitoring, and security sensing. The watchdog module 42 communicates with the processor 41, and is configured to receive and detect a dog feeding signal sent by the central processor 41 when the central processor 41 is started and operates normally, and periodically check and monitor an operating state of the central processor 41 through the dog feeding signal, and when it is detected that a current dog feeding signal is abnormal, generate a (valid) reset signal for controlling the processor 41 to perform a reset restart operation, 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 implementing a self-repair function in an abnormal situation.
Further, the first module 43 performs communication interaction (data and signal interaction) with the processor 41. 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 interact data and signals with the central processing unit 41. It should be noted that, the present invention does not specifically limit the installation position of the first module 43, the type of the installed chip, and the type of the cable carried by the information mutually transmitted between the processor 41, and those skilled in the art can configure the first module according to actual situations. Furthermore, 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 communication and interactive transmission of data and signals through GPIO or a vehicle bus (e.g., CAN bus).
Further, the reset reason diagnosis module 44 includes: the following apparatus for diagnosing an abnormal reset of a main control module (hereinafter, referred to as "abnormal reset diagnostic apparatus"). The reset reason diagnosis module 44 is respectively connected to 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 dog feeding signal output by the processor 41, and interaction information interactively transmitted between the processor 41 and the first module 43 through communication, and accurately locate a reason that the processor 41 completes a reset restart operation according to a detection result of the 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 diagnosis of the cause of reset, the diagnosis module 44 of the cause of reset is integrated into the first module 43.
Fig. 1 is a flowchart illustrating a method for diagnosing an abnormal reset of a master control module according to an embodiment of the present application. Fig. 2 is a specific flowchart of a method for diagnosing an abnormal reset of a master control module according to an embodiment of the present application. The following describes in detail the work flow of the reset reason diagnosis module 44 (hereinafter referred to as "abnormal reset diagnosis method") with reference to fig. 1 and 2.
Step S110 is to obtain the interaction information (interaction data and signals) between the first module 43 and the processor 41 and the dog feeding signal output by the processor 41 to the watchdog module 42 when the main control module is reset and restarted. 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 reset restart operation by using the interrupt highest priority feature of the reset signal.
Generally, the main control module has an abnormal reset fault due to the following 3 cases: 1) the main control module is powered on and started abnormally, so that the CPU software cannot be started, and further, the dog feeding signal is abnormal (dog feeding failure) so that the watchdog module 42 outputs an (effective) reset signal; 2) an abnormality occurs in the CPU running process, and further, a dog feeding signal is abnormal (dog feeding failure), so that the watchdog module 42 outputs an (effective) reset signal; 3) the power supply of the main control module falls off, and further, the watchdog module 42 is abnormal in operation and cannot detect a normal dog feeding signal, so that the watchdog module 42 outputs an (effective) reset signal.
Therefore, when the reset reason diagnosis module 44 detects that the current reset signal is in an effective state, the processor 41 also receives the effective reset signal and performs 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 as to proceed to step S120, and detect the currently intercepted interaction information and dog feeding signal. In practical applications, the reset reason diagnosis module 44 needs to monitor the validity of the reset signal output by the watchdog module 42 in real time to know whether the current processor 41 is reset or not. In general, the reset signal output by the watchdog module 42 during the operation is changed from a high level to a low level, so that when a falling edge (low active) of the watchdog reset signal is detected, it is determined that the current reset signal is in an active state; and when the high level of the watchdog reset signal is detected, judging that the current reset signal is in an invalid state. Therefore, in the embodiment of the present invention, the reset reason diagnosis module 44 needs to determine whether to detect a falling edge of the reset signal sent by the watchdog module 42 to determine whether the main control module is reset and restarted.
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 time according to the interaction information and the dog feeding signal acquired by the processor 41 during reset restart, and then locates the reason for the abnormal reset of the main control module according to the determination result, and obtains corresponding reset reason information. In the embodiment of the present invention, through the analysis of the reason for the abnormal reset failure of the main control module, the reason for the abnormal reset failure of the main control module includes: the power supply of the main control module is abnormally started or the CPU software is abnormally started, the processor (software) is abnormally operated and the power supply of the main control module is dropped.
In the application process of the train network system, if no diagnosis mechanism is available for judging the specific reason of the abnormal reset of the main control module, the main control module is difficult to be analyzed and optimized in a targeted manner, and a large amount of time and energy are wasted, so that the three abnormal reset conditions need to be distinguished, identified and recorded.
The above three reset conditions were analyzed first: 1) when the main control module is normally powered on and can be normally started, the GPIO signal (the interactive information between the first module 43 and the processor 41, i.e., the interactive data and the signal) is set to a fixed preset value through the CPU software, and if the CPU software is abnormally started, the GPIO keeps a default value; 2) the dog feeding signal output by the CPU is a pulse signal with periodically high and low level overturn, the period of the signal is far shorter than the timeout time of watchdog feeding, and when the level of the dog feeding signal is kept unchanged and reaches the timeout time, the watchdog output is reset to control the reset and restart of the CPU; 3) when the power supply of the main control module falls, the watchdog module 42 outputs a reset signal immediately to control the reset and restart of the CPU without detecting the timeout time of the dog feeding signal. Therefore, the watchdog feeding signal from the CPU to the watchdog module 42 and the reset signal output by the watchdog module 42 are connected to the reset reason diagnosis module 44 in the first module 43 for monitoring, and the CPU performs interactive information transmission with the first module 43 through the interactive cable. After receiving the effective reset signal, the reset reason diagnosis module 44 performs high and low level timing monitoring on the received dog feeding signal, if the dog feeding signal is normally turned over, the dog feeding signal is normal, and if the high or low level is kept unchanged and the overtime time is reached, it is determined that the watchdog feeding signal is abnormal at the moment.
Specifically, in step S120, when the main control module is reset, first, according to the currently captured interaction information, it is determined whether the current interaction information is a default value, then, according to the current dog feeding signal, it is determined whether the level retention time of the current dog feeding signal reaches or exceeds a preset (watchdog feeding) timeout time, and finally, according to two determination results, the reset reason of the current main control module is determined to be located.
Further, in an embodiment of the present invention, referring to fig. 2, when the reset reason diagnosis module 44 detects that the current interaction information is not a default value (indicating that the current main control module is powered on normally and the CPU can also 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 dog feeding signal does not reach the timeout time (indicating that the high-low level of the current dog feeding signal is flipped normally and the dog feeding is normal), it determines that the current reset reason information is the power supply drop of the main control module. At this time, the reset reason diagnosis module 44 immediately generates reset reason information containing the power supply drop information of the current main control module, and adds the current reset reason information to a timestamp to obtain current diagnosis result information.
Further, in an embodiment of the present invention, referring to fig. 2, when the reset reason diagnosis module 44 detects that the current interaction information is not a default value (indicating that the current main control module is powered on normally and the CPU can also 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 dog feeding signal reaches or exceeds the timeout time (indicating that the high-low level of the current dog feeding signal is turned over abnormally and the dog feeding is abnormal), it determines that the current reset reason information is the operation abnormality of the processor 41. At this time, the reset reason diagnosis module 44 immediately generates reset reason information including 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 diagnosis module 44 detects that the current interaction information is a default value (indicating that the current main control module is powered on abnormally or the CPU software is started abnormally, at this time, the CPU sets the GPIO signal as the default value through the CPU software when the CPU is started abnormally, for example, both the GPIO signal and the GPIO signal are set to 0), and at this time, whether the high-low level of the dog feeding signal is flipped normally or not, it is determined that the current reset reason information is the current power supply start abnormality of the main control module or the CPU software start abnormality. At this time, the reset reason diagnosis module 44 immediately generates reset reason information containing information of the current power supply start abnormality of the main control module or the CPU software start abnormality, and adds the current reset reason information to a timestamp to obtain current diagnosis result information.
In this way, after the reason diagnosis for resetting and restarting the processor 41 in the master control module is completed, the diagnosis result information corresponding to different reasons is obtained, at this time, the abnormal reset diagnosis method according to the present invention further includes: the reset reason diagnosis module 44 records and (temporarily) stores the currently time-stamped reset reason information (i.e., the current diagnosis result information), so that the processor 41 can query the diagnosis result information in the diagnosis module 44 by means of read-write access. Further, in order to improve the diagnosis efficiency of the reset reason diagnosis module 44 and maintain the original operating system configuration capability of the main control module at the maximum utilization rate, the storage function of the reset reason diagnosis module 44 is temporary. Therefore, after the main control module is reset and restarted or normally started every time, the processor 41 (software) reads the current diagnosis result information which is temporarily stored from the reset reason diagnosis module 44 through the interaction 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 query.
Further, as shown in fig. 2, the specific flow of the 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 the 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 the reset signal is monitored, judging whether the currently intercepted interactive information is set as a default value, if so, skipping to S203, and if not, skipping to S205;
s203, determining that the current watchdog fails to feed the dog due to abnormal power-on starting of the main control module or abnormal CPU software starting, and S204, recording and storing the current reset reason diagnosis result;
s205, judging whether the watchdog feeding signal is normally overturned, if so, jumping to S206, and if not, jumping to S208;
s206, determining that the watchdog fails to feed the dog due to the abnormality in the running of the CPU software and resetting, and S207 recording and storing the diagnosis result of the current reset reason;
s208, determining that the watchdog is reset due to the abnormality caused by the power supply falling of the main control module, and S209 recording and storing the current reset reason diagnosis result.
On the other hand, based on the method for diagnosing the abnormal reset of the master control module (i.e., the abnormal reset diagnosis method), the present invention also provides a device for diagnosing the abnormal reset of the master control module (i.e., the abnormal reset diagnosis device). Fig. 3 is a block diagram of an apparatus for diagnosing an abnormal reset of a master control module according to an embodiment of the present disclosure. As shown in fig. 3, the abnormal reset diagnosis apparatus (i.e., the reset cause diagnosis module) according to the present invention includes: a diagnosis initiating unit 31, a cause locating unit 32 and a cause recording unit 33.
Specifically, the diagnosis starting unit 31 is implemented according to the method described in step S110, and is configured to obtain the interaction information between the first module 43 and the processor 41 and the dog 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 in 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 dog feeding signal reaches or exceeds a preset timeout time according to the interaction information and the dog feeding signal received by the diagnosis starting unit 31, based on which, the reason for 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 diagnostic log in the processor 41, so that the processor 41 obtains the reason of the last abnormal reset in a read-write access manner.
The embodiment of the invention provides a method and a system for diagnosing abnormal resetting of a master control module of a train network system. The method and the system classify the reasons of the abnormal reset condition by analyzing the theoretical principle of the main control module fault reset, and design a simple and effective diagnosis mechanism of the main control module abnormal reset according to the reasons. Specifically, when a fault occurs, relevant signals and data in a reset restart state are collected, the state of the relevant signals and data is detected, the reason of the fault occurrence is further reversely deduced, and the rapid and accurate positioning of the abnormal reset reason of the main control module is realized. The invention can be widely applied to the field of high-reliability rail transit control, has wide prospect, effectively optimizes the performance of a train network system and practically improves the reliability of the system.
The above description is only a preferred embodiment of the present invention, but the scope of the present invention is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present invention are included in the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
It is to be understood that the disclosed embodiments of the invention are not limited to the particular structures, process steps, or materials disclosed herein but are extended to equivalents thereof as would be understood by those ordinarily skilled 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 have been described above, the above descriptions are only for the convenience of understanding the present invention, and are not intended to limit the present invention. It will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (10)

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:
a diagnosis starting step, namely acquiring interaction information between a first module and a processor and a dog feeding signal output to a watchdog module by the processor when the main control module is reset;
and a reason positioning step, judging whether the interactive information is a default value and/or whether the level holding time of the dog feeding signal reaches or exceeds a preset overtime according to the interactive information and the dog feeding signal, positioning the reason of the abnormal reset of the main control module based on the judgment, and obtaining corresponding reset reason information.
2. The method according to claim 1, wherein in the cause locating step, further,
and when the interactive information is not the default value and the level holding time of the dog feeding signal does not reach the timeout time, determining that the current reset reason information is the power supply drop of the main control module.
3. The method according to claim 1 or 2, characterized in that in the cause locating step, further,
and when the mutual information is not the default value and the level holding time of the dog feeding signal reaches or exceeds the overtime time, determining that the current reset reason information is the abnormal operation of the processor.
4. A method according to any one of claims 1 to 3, wherein, in the cause locating step, further,
and when the interactive information is the default value, determining that the current reset reason information is the power supply starting abnormity of the main control module or the CPU software starting abnormity.
5. The method according to any one of claims 1 to 4, wherein, in the diagnostic starting step, further,
and determining whether the main control module is reset or not by judging whether the falling edge of the reset signal sent by the watchdog module is detected or not.
6. The method according to any one of claims 1 to 5, further comprising:
recording and storing 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 diagnostic log in the processor, so that the processor obtains the reason of the last abnormal reset in a read-write access mode.
7. An apparatus for diagnosing an abnormal reset of a master control module applied to a train network system, wherein the apparatus comprises:
the diagnosis starting unit is configured to acquire interaction information between the first module and the processor and a dog feeding signal output to the watchdog module by the processor when the main control module is reset;
and 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 dog feeding signal reaches or exceeds a preset timeout time according to the interaction information and the dog feeding signal, position the reason of the abnormal reset of the main control module based on the judgment, and obtain corresponding reset reason information.
8. The apparatus of claim 7, further comprising:
and the reason recording unit is configured to record and store the reset reason information, and 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 diagnostic log in the processor, so that the processor obtains the reason of the last abnormal reset in a read-write access mode.
9. 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 the dog feeding signal output by the processor, and generating a reset signal to perform reset control on the processor when the dog feeding signal is abnormal;
a first module, which performs information interaction with the processor;
a reset cause diagnosis module comprising the apparatus for diagnosing an abnormal reset of a master control module according to claim 7 or 8.
10. The master module of claim 9,
the reset reason diagnosis module is integrated in the first module;
the first module is preferably a programmable logic device;
the first module and the processor are in communication interaction through a 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 true CN111813590A (en) 2020-10-23
CN111813590B 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)

Cited By (3)

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

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120124362A1 (en) * 2010-02-01 2012-05-17 Xiaoyong Deng Apparatus and method for recording reboot reason of equipment
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

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120124362A1 (en) * 2010-02-01 2012-05-17 Xiaoyong Deng Apparatus and method for recording reboot reason of equipment
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
QI LI 等: "The Research of Detection Guiding Technique in Embedded System", 《2011 7TH INTERNATIONAL CONFERENCE ON WIRELESS COMMUNICATIONS, NETWORKING AND MOBILE COMPUTING》, pages 1 - 3 *
李丙玉;王晓东;: "一种FPGA实现看门狗电路功能的方法", 硅谷, no. 17, pages 190 *

Cited By (6)

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

Also Published As

Publication number Publication date
CN111813590B (en) 2024-02-27

Similar Documents

Publication Publication Date Title
CN111813590A (en) Method and device for diagnosing abnormal reset of main control module and main control module
CN106789306B (en) Method and system for detecting, collecting and recovering software fault of communication equipment
CN110581852A (en) Efficient mimicry defense system and method
EP3148116A1 (en) Information system fault scenario information collection method and system
US20170364470A1 (en) Systems and Methods for Accessing Vehicle Communications Bus Information for an Application Processor
CN110187996A (en) BMC host process method for diagnosing faults, device, equipment and readable storage medium storing program for executing
US7478273B2 (en) Computer system including active system and redundant system and state acquisition method
CN110555006A (en) log recording method, battery management system, vehicle and electronic equipment
CN114839949A (en) Vehicle fault online diagnosis method and system
CN114116380A (en) Computer software fault monitoring system
US6584432B1 (en) Remote diagnosis of data processing units
CN111488050B (en) Power supply monitoring method, system and server
CN117348459A (en) Monitoring method and system of vehicle domain controller system
CN112763813A (en) Apparatus and method for detecting cause of battery discharge of vehicle
CN116483649A (en) Process monitoring method and device for passenger parking system, vehicle and storage medium
CN112035322B (en) JVM monitoring method and device
CN114816022A (en) Server power supply abnormity monitoring method, system and storage medium
CN112306871A (en) Data processing method, device, equipment and storage medium
EP0962862B1 (en) Apparatus and method for remote diagnostic of data processing units
CN115794550B (en) Process management method, device, vehicle and storage medium
CN113704088B (en) Process tracing method, process tracing system and related device
JP2003345629A (en) System monitor device, system monitoring method used for the same, and program therefor
CN110032435B (en) Method and device for managing threads in control system
CN114828135B (en) Network bypass function control processing method and device
JPS63300328A (en) Remote maintenance system

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