CN112249088B - Method for mutual diagnosis and data synchronization of double-display system, double-display system and train - Google Patents

Method for mutual diagnosis and data synchronization of double-display system, double-display system and train Download PDF

Info

Publication number
CN112249088B
CN112249088B CN201910662531.XA CN201910662531A CN112249088B CN 112249088 B CN112249088 B CN 112249088B CN 201910662531 A CN201910662531 A CN 201910662531A CN 112249088 B CN112249088 B CN 112249088B
Authority
CN
China
Prior art keywords
frame
display system
key data
data frame
uart
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
CN201910662531.XA
Other languages
Chinese (zh)
Other versions
CN112249088A (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 CN201910662531.XA priority Critical patent/CN112249088B/en
Publication of CN112249088A publication Critical patent/CN112249088A/en
Application granted granted Critical
Publication of CN112249088B publication Critical patent/CN112249088B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B61RAILWAYS
    • B61LGUIDING RAILWAY TRAFFIC; ENSURING THE SAFETY OF RAILWAY TRAFFIC
    • B61L15/00Indicators provided on the vehicle or vehicle train for signalling purposes ; On-board control or communication systems
    • B61L15/0081On-board diagnosis or maintenance
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B61RAILWAYS
    • B61LGUIDING RAILWAY TRAFFIC; ENSURING THE SAFETY OF RAILWAY TRAFFIC
    • B61L15/00Indicators provided on the vehicle or vehicle train for signalling purposes ; On-board control or communication systems
    • B61L15/0018Communication with or on the vehicle or vehicle train
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks

Abstract

The invention relates to a method for mutual diagnosis and data synchronization of a double-display system, the double-display system and a train, wherein the method comprises the following steps: for either of the dual display systems: s1: connecting another display system through a UART; s2: transmitting a key data frame and a vital signal frame of the display system through a UART; receiving a UART communication protocol data frame sent by another display system, judging the type of the UART communication protocol data frame, and judging: if the frame is a life signal frame, analyzing the life signal and writing the life signal into the shared memory; if the key data frame is the key data frame, analyzing the key data and backing up the key data to a local file; if the frame is a retransmission instruction frame, retransmitting the key data frame designated by the retransmission instruction frame; s3: and reading the life signals in the shared memory, comparing the currently read life signals with the previously read life signals, and if the currently read life signals are diagnosed to be abnormal in state, sending alarm information, otherwise, not processing.

Description

Method for mutual diagnosis and data synchronization of double-display system, double-display system and train
Technical Field
The invention relates to the technical field of rail transit, in particular to a method for mutual diagnosis and data synchronization of a dual-display system, the dual-display system and a train.
Background
In the technical field of rail transit, a plurality of display systems which run simultaneously and are responsible for different display functions are installed on a train. When the display systems have faults, if the display systems are not processed in time, the normal operation of the train can be seriously influenced. At present, a redundancy configuration is generally adopted as a solution for these display systems, but the redundancy configuration causes a system structure to be complicated. Therefore, there is a need for a method for data backup between display systems and mutual diagnosis of system operating states, which can fully utilize the existing resources, so as to ensure that the key information of the display system is processed when the display system fails.
In addition, for existing communication modes, such as ethernet, wireless communication, Modbus, CAN and Universal Asynchronous Receiver Transmitter (UART). Regardless of the communication method used between the display systems, one bit of the digital signal is used as the most basic transmission unit during data transmission. Due to the influence of factors such as system clock precision, electromagnetic interference, transmission distance and the like, the situation of transmission data loss or errors inevitably occurs. For UART communication, although the underlying controller implements an error detection method of bit checking, the behavior in data transmission error is not defined. If these erroneous data are used directly or the following data are read, there may be some risks depending on the object. Therefore, in order to solve the problem of data secure transmission, a data transmission protocol or mechanism needs to be defined to ensure the correctness of the transmitted data.
Disclosure of Invention
In order to solve the technical problem, the invention provides a method for mutual diagnosis and data synchronization of a dual-display system, the dual-display system and a train.
According to an aspect of the present invention, there is provided a method for mutual diagnosis and data synchronization of a dual display system, comprising:
for any of the dual display systems:
step S1: connecting another display system through a UART;
step S2: collecting key data of the display system, packaging the key data into a key data frame, and sending the key data frame to the other display system through the UART; generating a life signal representing the running state of the display system, packaging the life signal into a life signal frame, and sending the life signal frame to the other display system through the UART;
receiving a UART communication protocol data frame sent by the other display system, judging the type of the UART communication protocol data frame, and judging: if the frame is a life signal frame, analyzing the life signal and writing the life signal into the shared memory; if the key data frame is the key data frame, analyzing the key data and backing up the key data to a local file; if the frame is a retransmission instruction frame, retransmitting the key data frame designated by the retransmission instruction frame to the other display system; and
step S3: and reading the vital signals in the shared memory, comparing the currently read vital signals with the previously read vital signals, and sending alarm information if the currently read vital signals are diagnosed to be abnormal, otherwise, not processing.
Preferably, the method further comprises: before step S2, a handshake connection is established between the dual display systems by sending and receiving handshake data frames.
Preferably, the UART communication protocol data frame and the handshake data frame each include a frame type field, a source identification field, and a frame count field.
Preferably, the vital signal is a 32-bit unsigned integer number assigned a preset initial value, and 1 is added to the value every predetermined time.
Preferably, in step S3, the vital signals in the shared memory are read every predetermined time, the value of the vital signal currently read is compared with the value of the vital signal read three times, and if it is diagnosed that the status of the vital signal currently read is abnormal, an alarm message is sent, otherwise, no processing is performed.
Preferably, the method further comprises: and displaying the key data of the other display system on the display system while sending the alarm information.
Preferably, in step S2, it is judged that: if the UART communication protocol data frame is a key data frame, the UART communication protocol data frame is stored into a receiving buffer area of the display system, then whether the frame count of the currently received key data frame is continuous or not is judged, if so, the key data is analyzed and backed up into a local file, and if not, the key data frame which enables the frame count to be continuous is searched in the receiving buffer area. According to another aspect of the present invention, there is provided a dual display system connected through a UART, wherein any one of the dual display systems includes:
the application module is used for collecting, displaying and transmitting key data of the display system;
a daemon module to: receiving the key data of the display system sent by the application module, packaging the key data into a key data frame, and sending the key data frame to another display system through a UART; generating a life signal representing the running state of the display system, packaging the life signal into a life signal frame, and sending the life signal frame to the other display system through the UART; receiving a UART communication protocol data frame sent by the other display system, judging the type of the UART communication protocol data frame, and judging: if the frame is a life signal frame, analyzing the life signal and writing the life signal into the shared memory; if the key data frame is the key data frame, analyzing the key data and backing up the key data to a local file; if the frame is a retransmission instruction frame, retransmitting the key data frame designated by the retransmission instruction frame to the other display system; and
a diagnostic module to: and reading the vital signals in the shared memory, comparing the currently read vital signals with the previously read vital signals, and sending alarm information if the currently read vital signals are diagnosed to be abnormal, otherwise, not processing.
Preferably, the diagnosis module is further configured to send a fault signal to the application module while sending the alarm information; and is provided with
And the application module is also used for displaying the key data of the other display system on the display system when the fault signal is received.
According to another aspect of the invention, a train is also provided, which comprises the dual display system.
Compared with the prior art, one or more embodiments in the scheme can have the following advantages or beneficial effects:
the method for mutual diagnosis and data synchronization of the double-display system and the double-display system provided by the embodiment of the invention are applied: (1) a reliable UART data communication mechanism between the double display systems is realized, and the safety and the continuity of data transmission are ensured; (2) the mutual diagnosis of the running states of the double-display system is realized, the existing resources are fully utilized, the running states of the double-display system can be detected in real time, and the self-diagnosis defect is made up; (3) the key data synchronization and backup of the double display systems are realized, and the mutual diagnosis is combined, so that the key data of the fault display system in a period of time before the fault occurs can be acquired in the normal display system, and the key data can be processed in time, thereby improving the timeliness rate of fault processing; (4) the backup key data can provide help for fault analysis, and the analysis efficiency is improved.
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 the 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.
Fig. 1 schematically shows a dual display system according to an embodiment of the present invention.
Fig. 2 is a flowchart executed by an application module of a dual display system according to an embodiment of the present invention.
FIG. 3 is a flowchart executed by the daemon module of the dual display system according to the embodiment of the invention.
Fig. 4 is a flowchart illustrating a data frame parsing performed by the dual display system according to an embodiment of the present invention.
FIG. 5 is a flowchart executed by a diagnostic module of the dual display system according to an embodiment of the present invention.
Fig. 6 is a flowchart of implementing a handshake protocol for a dual display system according to an embodiment of the present invention.
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.
In the following description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the embodiments of the invention. It will be apparent, however, to one skilled in the art that the present invention may be practiced without some of these specific details or with other methods described herein.
The method for mutual diagnosis and data synchronization of the dual-display system and the dual-display system provided by the invention are comprehensively described below by combining the accompanying drawings and the embodiment of the invention.
Fig. 1 schematically shows a dual display system according to an embodiment of the present invention. As shown in fig. 1, the dual display system includes a first display system 100 and a second display system 200. The first display system 100 and the second display system 200 may be any two display systems operating at the same time and responsible for different display functions, but the invention is not limited thereto. Preferably, the first display system 100 and the second display system 200 are communicatively connected through a UART. Wherein the first display system 100 includes:
an application module 101 for collecting, displaying and transmitting critical data of the display system;
a daemon module 102 to: receiving key data of the display system sent by an application module, packaging the key data into a key data frame, and sending the key data frame to another display system through a UART; generating a life signal representing the running state of the display system, packaging the life signal into a life signal frame, and sending the life signal frame to another display system through a UART; receiving a UART communication protocol data frame sent by another display system, judging the type of the UART communication protocol data frame, and judging: if the frame is a life signal frame, analyzing the life signal and writing the life signal into the shared memory; if the key data frame is the key data frame, analyzing the key data and backing up the key data to a local file; if the frame is a retransmission instruction frame, retransmitting the key data frame designated by the retransmission instruction frame to another display system; and
a diagnostic module 103 for: and reading the vital signals in the shared memory, comparing the currently read vital signals with the previously read vital signals, and sending alarm information if the currently read vital signals are diagnosed to be abnormal, otherwise, not processing.
In the embodiment of the present invention, the key data includes train operation status data and interface data displayed by the application module, and may also include other data, which is not limited in the present invention.
As shown in fig. 1, the second display system 200 includes: an application module 201, a daemon module 202 and a diagnosis module 203. The application module 201, the daemon module 202, and the diagnosis module 203 have the same functions and functions as the application module 101, the daemon module 102, and the diagnosis module 103 in the first display system 100, respectively, and are not described herein again.
Further, as shown in fig. 1, the first display system 100 and the second display system 200 further include: the system comprises a sending buffer area, a receiving buffer area and a shared memory (hereinafter referred to as a shared memory) of a daemon module and a diagnosis module. The daemon module writes the life signal of the sender display system obtained by analysis into the shared memory for the diagnosis module to read so as to judge the running state of the sender display system.
It should be noted that, in the embodiment of the present invention, as for the first display system 100/the second display system 200, the present display system refers to itself, and the other display system refers to the second display system 200/the first display system 100.
For convenience of understanding, the first display system 100 is taken as the present display system, and the second display system 200 is taken as another display system.
Fig. 2 is a flowchart executed by an application module of the dual display system according to an embodiment of the present invention. As shown in fig. 1 and fig. 2, on one hand, the application module 101 collects the critical data of the display system 100 in real time through the thread 1, and sends the critical data collected by the thread 1 to the daemon module 102 through Socket communication or other communication manners; on the other hand, the application module 101 displays the key data or other parameters in the train operation on the display system through other threads, so as to realize human-computer interaction with the driver.
FIG. 3 is a flowchart executed by the daemon module of the dual display system according to the embodiment of the invention. As shown in fig. 1 and 3, the daemon module 102 is used for: (1) establishing Socket communication service or other communication service with the application module 101, receiving key data sent by the application module 101, encapsulating the key data into key data frames according to definition, and sending the encapsulated key data frames to the second display system 200 through UART; (2) generating a life signal representing the running state of the display system, packaging the life signal into a life signal frame according to the definition, and sending the packaged life signal frame to the second display system 200 through the UART; (3) and receiving the UART communication protocol data frame transmitted by the second display system 200, and parsing the received UART protocol data frame.
Preferably, in the embodiment of the present invention, the vital signal is defined as a 32-bit unsigned integer number, and is assigned with a preset initial value, and is calculated by adding 1 to the preset initial value every preset time to represent the vital state of the display system. That is, in generating the vital signals, one vital signal is generated every predetermined time, and the latter generated vital signal is added by 1 to the value of the former generated vital signal.
Fig. 4 is a flowchart illustrating a data frame parsing performed by the dual display system according to an embodiment of the present invention. As shown in fig. 1 and fig. 4, the process of parsing the received UART communication protocol data frame by the daemon module 102 is as follows: firstly, checking whether a received UART communication protocol data frame is complete or not, and if the data frame is incomplete, not processing the data frame; and if the CRC is complete, performing CRC check. If the UART communication protocol data frame does not pass CRC, no processing is carried out; if the UART communication protocol data frame passes the CRC check, the type of the UART communication protocol data frame (comprising a key data frame, a vital signal frame and a retransmission instruction frame) is judged, and different processing is carried out according to the type of the data frame. If the UART communication protocol data frame is the key data frame, the UART communication protocol data frame is firstly stored in a receiving buffer area, then whether the frame count of the currently received key data frame is continuous or not is judged, if so, the key data is analyzed and backed up in a local file, and if not, the key data frame which enables the frame count to be continuous is searched in the receiving buffer area. If the UART communication protocol data frame is a vital signal frame, writing the data frame into a shared memory for the diagnostic module 103 to read; if the UART communication protocol data frame is the retransmission instruction frame, analyzing the retransmission instruction frame, searching the sending buffer area according to the appointed information in the analyzed retransmission instruction frame, if the appointed key data frame is searched, retransmitting the key data frame to the second display system 200, and if the appointed key data frame is not searched, printing error information. And if the frame type of the UART communication protocol data frame is checked to be wrong, printing the data frame type to be wrong.
In the embodiment of the present invention, it is determined whether the frame count of the currently received key data frame is continuous, and the method is mainly used for checking whether there is a lost key data frame, so as to ensure the integrity of data communication. Specifically, in the process, whether the frame count of the currently received key data frame and the frame count of the key data frame analyzed last time are continuous or not is judged, if so, the currently received key data frame is analyzed, the key data in the currently received key data frame is analyzed, and the key data is backed up to a local file; if not, the key data frame which makes the frame count continuous is searched in the receiving buffer. For example, if the frame count of the key data frame parsed last time is 3, and the frame count of the currently received key data frame is 4, the frame count of the currently received key data frame and the frame count of the key data frame parsed last time are considered to be continuous, and at this time, the key data of the currently received key data frame is parsed and then backed up in the local file. For another example, if the frame count of the key data frame analyzed last time is 3 and the frame count of the currently received key data frame is 5, then the frame count of the currently received key data frame and the frame count of the key data frame analyzed last time are not consecutive, and the key data frame with the frame count of 4 is lost, first, the key data frame (that is, the key data frame with the frame count of 4) with the frame count being continuous is searched in the receiving buffer, if the key data frame with the frame count of 4 is found, the key data of the key data frame with the frame count of 4 is analyzed and the key data is backed up to the local file, otherwise, the retransmission instruction frame is sent.
Preferably, in the embodiment of the present invention, when parsing of a key data frame with a frame count of 4 is completed, a key data frame with a frame count of 5 is buffered in the receiving buffer first, and is not parsed. And then, when the key data frame with the frame count of 6 is cached to a receiving cache region, comparing the key data frame with the frame count of 6 with the key data frame with the frame count of 4 analyzed last time, finding out that the frame count is discontinuous, finding out the key data frame with the frame count of 5 in the receiving cache region, analyzing the key data frame with the frame count of 5, analyzing the key data in the key data frame, backing up the key data to a local file, and then repeating the steps to finish the key data frame analysis process.
FIG. 5 is a flowchart executed by a diagnostic module of the dual display system according to an embodiment of the present invention. As shown in fig. 1 and 5, the diagnostic module is configured to: and reading the vital signals in the shared memory, comparing the currently read vital signals with the previously read vital signals, and sending alarm information if the currently read vital signals are diagnosed to be abnormal, otherwise, not processing.
Preferably, in a normal operating state of the first display system 100 and the second display system 200, the daemon module 102 generates a vital signal representing an operating state of the display system at predetermined time intervals, adds 1 to a value of the currently generated vital signal compared to a previously generated vital signal, encapsulates the currently generated vital signal into a vital signal frame, and transmits the vital signal frame to the second display system 200 through UART communication. After receiving the vital signal frame, the daemon module 202 of the second display system 200 parses the vital signal frame, and stores the parsed vital signal value in the shared memory. The diagnosis module 203 reads the vital signal value in the shared memory to determine the operation state of the first display system 100, and if the operation state of the first display system 100 is detected to be abnormal, an alarm message is sent, otherwise, no processing is performed. In order to realize timely processing of the fault display system, the diagnosis module 203 is further configured to send a fault signal to the application module 201 while sending alarm information. The application module 201 displays the key data of the first display system 100 and the second display system 200 on the second display system 200 at the same time when receiving the failure signal.
More preferably, the diagnosis module 203 reads the vital signals in the shared memory every predetermined time, compares the value of the currently read vital signal with the value of the vital signal read three times, sends an alarm message if the currently read vital signal is diagnosed to be abnormal, and sends a fault signal to the application module 201, otherwise, does not process the fault signal.
In order to implement reliable UART data communication and facilitate data processing, the UART communication protocol data frame and the handshake data frame in the embodiment of the present invention both adopt the following data frame formats.
Frame header Type (B) Source identification Frame counting Data length Data of CRC checking Frame end
2 bytes 2 bytes 1 byte 4 bytes 1 byte n bytes 4 bytes 2 bytes
Wherein, frame header: identifying a start of a frame; type II: identifying whether the frame is a key data frame, a life signal frame, a retransmission instruction frame and a handshake data frame; ③ identifying the source: identifying a sender of the data frame; fourthly, counting frames: the method is mainly used for key data frames, judging whether the received data is continuous or not, and if the data is not continuous and shows that the data is lost, retransmitting the data; data length: identifying the number of effective data of the data segment, wherein the unit is byte; data: a valid data segment, which can transmit 255 bytes at most; and (c) CRC check: a 32-bit CRC check mode is adopted; left frame and tail: an end of frame is identified.
Compared with the existing UART communication data frame definition, the embodiment of the invention adds the frame type field and the source identification field in order to realize the data frame type distinguishing processing and the data source distinguishing, can classify and process the data and distinguish the message source, and increases the flexibility. In addition, a frame counting field is added for realizing a data retransmission mechanism and improving the communication security.
In addition, the first display system 100 and the second display system 200 have different power-on start times, which may cause communication data loss. In order to avoid communication data loss, the embodiment of the invention adopts a way of handshaking first and then communicating.
Fig. 6 is a flowchart of a dual display system implementing a handshake protocol according to an embodiment of the present invention. As shown in fig. 6, the daemon module 102 and the daemon module 202 are further configured to: before the first display system 100 and the second display system 200 communicate (transmit and receive UART communication protocol data frames to and from each other), handshake data frames are transmitted and received to and from each other, so that a handshake connection is established between the first display system 100 and the second display system 200 to avoid communication data loss. In the process, the method further comprises the following steps: after the first display system 100 and the second display system 200 have mutually transmitted and received the handshake data frames, the first display system 100 and the second display system 200 mutually judge whether the display system of the other side is ready, and if so, mutually transmit and receive the UART communication protocol data frames; if not, judging whether the number of times of holding is exceeded or not, and if so, sending an alarm prompt.
Correspondingly, the embodiment of the invention also provides a train, and the train comprises the double-display system.
In summary, the invention designs a reliable UART data communication mechanism by defining a communication protocol frame format for two display systems operating simultaneously, and can back up key data collected or calculated during the operation of the dual display system to the other display system. Meanwhile, mutual diagnosis of the running states of the double display systems is realized based on the UART data communication mechanism, and when one display system diagnoses the fault of the other display system, the application module of the display system can process backup data of the other display system in time.
The method for mutual diagnosis and data synchronization of the double-display system and the double-display system provided by the embodiment of the invention are applied: (1) a reliable UART data communication mechanism between the double display systems is realized, and the safety and the continuity of data transmission are ensured; (2) the mutual diagnosis of the running states of the double-display system is realized, the existing resources are fully utilized, the running states of the double-display system can be detected in real time, and the self-diagnosis defect is made up; (3) the key data synchronization and backup of the double display systems are realized, and the mutual diagnosis is combined, so that the key data of the fault display system in a period of time before the fault occurs can be acquired in the normal display system, and the key data can be processed in time, thereby improving the timeliness rate of fault processing; (4) the backup key data can provide help for fault analysis, and the analysis efficiency is improved.
It is to be understood that the disclosed embodiments of the invention are not limited to the particular process steps or materials disclosed herein, but rather, are extended to equivalents thereof as would be understood by those of ordinary skill in the relevant art. 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 "an embodiment" means that a particular feature, or characteristic described in connection with the embodiment is included in at least one embodiment of the invention. Thus, the appearances of the phrase or "an embodiment" in various places throughout this specification are not necessarily all referring to the same embodiment.
Furthermore, the described features or characteristics may be combined in any other suitable manner in one or more embodiments. In the above description, certain specific details are provided, such as thicknesses, amounts, etc., to provide a thorough understanding of embodiments of the invention. One skilled in the relevant art will recognize, however, that the invention may be practiced without one or more of the specific details, or with other methods, components, materials, and so forth.
While the above examples are illustrative of the principles of the present invention in one or more applications, it will be apparent to those of ordinary skill in the art that various changes in form, usage and details of implementation can be made without departing from the principles and concepts of the invention. Accordingly, the invention is defined by the appended claims.

Claims (10)

1. A method for mutual diagnosis and data synchronization of dual display systems comprises the following steps:
for any of the dual display systems:
step S1: connecting another display system through a UART;
step S2: collecting key data of the display system, packaging the key data into a key data frame, and sending the key data frame to the other display system through the UART; generating a life signal representing the running state of the display system, packaging the life signal into a life signal frame, and sending the life signal frame to the other display system through the UART; the key data comprise train running state data and interface data displayed by an application module;
receiving a UART communication protocol data frame sent by the other display system, judging the type of the UART communication protocol data frame, and judging: if the frame is a life signal frame, analyzing the life signal and writing the life signal into the shared memory; if the key data frame is the key data frame, analyzing the key data and backing up the key data to a local file; if the frame is a retransmission instruction frame, retransmitting the key data frame designated by the retransmission instruction frame to the other display system; and
step S3: and reading the vital signals in the shared memory, comparing the currently read vital signals with the previously read vital signals, and sending alarm information if the currently read vital signals are diagnosed to be abnormal, otherwise, not processing.
2. The method of claim 1, further comprising: before step S2, a handshake connection is established between the dual display systems by sending and receiving handshake data frames.
3. The method of claim 2, wherein the UART communication protocol data frame and the handshake data frame each comprise a frame type field, a source identification field, and a frame count field.
4. The method of claim 1, wherein the vital signal is a 32-bit unsigned integer number assigned a preset initial value and is incremented by 1 every predetermined time value.
5. The method according to claim 4, wherein in step S3, vital signals in the shared memory are read every predetermined time, and the value of the vital signal currently read is compared with the values of the vital signals read three times last, and if the status of the vital signal currently read is diagnosed to be abnormal, an alarm message is issued, otherwise no processing is performed.
6. The method of claim 1, further comprising: and displaying the key data of the other display system on the display system while sending the alarm information.
7. The method of claim 1, wherein, in step S2, it is determined that: if the UART communication protocol data frame is a key data frame, the UART communication protocol data frame is stored into a receiving buffer area of the display system, then whether the frame count of the currently received key data frame is continuous or not is judged, if so, the key data is analyzed and backed up into a local file, and if not, the key data frame which enables the frame count to be continuous is searched in the receiving buffer area.
8. A dual display system connected between the dual display systems through a UART, wherein any one of the dual display systems comprises:
the application module is used for collecting, displaying and transmitting key data of the display system; the key data comprise train running state data and interface data displayed by an application module;
a daemon module to: receiving the key data of the display system sent by the application module, packaging the key data into a key data frame, and sending the key data frame to another display system through a UART; generating a life signal representing the running state of the display system, packaging the life signal into a life signal frame, and sending the life signal frame to the other display system through the UART; receiving a UART communication protocol data frame sent by the other display system, judging the type of the UART communication protocol data frame, and judging: if the frame is a life signal frame, analyzing the life signal and writing the life signal into the shared memory; if the key data frame is the key data frame, analyzing the key data and backing up the key data to a local file; if the frame is a retransmission instruction frame, retransmitting the key data frame designated by the retransmission instruction frame to the other display system; and
a diagnostic module to: and reading the vital signals in the shared memory, comparing the currently read vital signals with the previously read vital signals, and sending alarm information if the currently read vital signals are diagnosed to be abnormal, otherwise, not processing.
9. The dual display system of claim 8,
the diagnosis module is also used for sending a fault signal to the application module while sending the alarm information; and is
And the application module is also used for displaying the key data of the other display system on the display system when the fault signal is received.
10. A train comprising a dual display system as claimed in claim 8 or 9.
CN201910662531.XA 2019-07-22 2019-07-22 Method for mutual diagnosis and data synchronization of double-display system, double-display system and train Active CN112249088B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910662531.XA CN112249088B (en) 2019-07-22 2019-07-22 Method for mutual diagnosis and data synchronization of double-display system, double-display system and train

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910662531.XA CN112249088B (en) 2019-07-22 2019-07-22 Method for mutual diagnosis and data synchronization of double-display system, double-display system and train

Publications (2)

Publication Number Publication Date
CN112249088A CN112249088A (en) 2021-01-22
CN112249088B true CN112249088B (en) 2022-09-09

Family

ID=74224332

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910662531.XA Active CN112249088B (en) 2019-07-22 2019-07-22 Method for mutual diagnosis and data synchronization of double-display system, double-display system and train

Country Status (1)

Country Link
CN (1) CN112249088B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114248820A (en) * 2021-12-21 2022-03-29 卡斯柯信号有限公司 Communication method of train control center and track circuit
CN114666007B (en) * 2022-02-28 2023-05-16 广东宝莱特医用科技股份有限公司 UART communication method, UART communication device, UART communication equipment and storage medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102346477A (en) * 2011-08-11 2012-02-08 浙江大学 Analysis method and equipment for fault diagnosis communication protocol on basis of automotive open system architecture (AUTOSAR)

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100451881C (en) * 2006-12-08 2009-01-14 清华大学 Double generator redundancy control system
CN101272218A (en) * 2007-03-20 2008-09-24 中兴通讯股份有限公司 Method for recording communication terminal diagnosis data
CN102139700B (en) * 2010-02-01 2013-07-17 同济大学 Vehicle working condition online monitoring system for rail transit
CN201909971U (en) * 2010-10-15 2011-07-27 杭州浙力叉车集团有限公司 Comprehensive self-monitoring system for subsystem performance and running state of fork-lift
CN104158913B (en) * 2014-09-09 2019-03-12 株洲南车时代电气股份有限公司 A kind of test method of display interfaces
CN104579800A (en) * 2015-02-10 2015-04-29 北京全路通信信号研究设计院有限公司 Communication method of diagnosis maintenance terminal and vehicle-mounted host and diagnosis maintenance system
DE102016215772B4 (en) * 2016-08-23 2018-03-08 Siemens Aktiengesellschaft Diagnostic method and diagnostic arrangement for a vehicle

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102346477A (en) * 2011-08-11 2012-02-08 浙江大学 Analysis method and equipment for fault diagnosis communication protocol on basis of automotive open system architecture (AUTOSAR)

Also Published As

Publication number Publication date
CN112249088A (en) 2021-01-22

Similar Documents

Publication Publication Date Title
US11245547B2 (en) Monitoring controller area network (CAN) nodes
JP4195272B2 (en) Method for recognizing error in data transmission inside CAN-controller, CAN-controller, program, recording medium, and control device
CN112249088B (en) Method for mutual diagnosis and data synchronization of double-display system, double-display system and train
CN105700510A (en) Error variance detection method of CAN communication system and the CAN communication system
CN111614531B (en) Method, medium, and monitoring device for monitoring a LIN node
US7436777B2 (en) Failed link training
KR20200139059A (en) Controller diagnostic device and method thereof
CN106911530B (en) Key test instruction transmission system and method based on serial port redundancy strategy
WO2023131073A1 (en) Self-checking method and apparatus for head unit testing
US8799548B2 (en) I/O bridge device, response-reporting method, and program
CN114124745B (en) Method and system for diagnosing MVB communication faults
US20070226549A1 (en) Apparatus for detecting errors in a communication system
CN107230263B (en) WTB bus data frame recorder and recording method
CN115840725A (en) End-to-end communication circuit with self-checking function and chip equipment
CN112395147B (en) Debugging device on SOC
CN115442224A (en) MCU log processing method and device and vehicle
CN111930582A (en) System management bus detection platform, processor and system management bus detection method
CN111083115A (en) Data transmission method and system
CN109101359B (en) Equipment, method and module for transmitting information between equipment components and computer equipment
US11748188B2 (en) Secure communication apparatus and method
CN112311637B (en) MVB line redundancy switching method and system and vehicle
CN111158300B (en) Data acquisition and reduction method
CN103780346A (en) Vehicle body axle temperature detecting system, communication method thereof and receiving equipment
JP3603956B2 (en) Buffer management method for communication control unit
CN114979298A (en) Interactive protocol and flow specification between double master controllers

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