WO2022267233A1 - Communication fault detection method, device and system based on redundant device - Google Patents

Communication fault detection method, device and system based on redundant device Download PDF

Info

Publication number
WO2022267233A1
WO2022267233A1 PCT/CN2021/117690 CN2021117690W WO2022267233A1 WO 2022267233 A1 WO2022267233 A1 WO 2022267233A1 CN 2021117690 W CN2021117690 W CN 2021117690W WO 2022267233 A1 WO2022267233 A1 WO 2022267233A1
Authority
WO
WIPO (PCT)
Prior art keywords
communication
data
response
cycle
receiver
Prior art date
Application number
PCT/CN2021/117690
Other languages
French (fr)
Chinese (zh)
Inventor
朱杰
方珂琦
张则立
江竹轩
Original Assignee
浙江中控技术股份有限公司
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 浙江中控技术股份有限公司 filed Critical 浙江中控技术股份有限公司
Publication of WO2022267233A1 publication Critical patent/WO2022267233A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0823Errors, e.g. transmission errors
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/12Arrangements for detecting or preventing errors in the information received by using return channel
    • H04L1/16Arrangements for detecting or preventing errors in the information received by using return channel in which the return channel carries supervisory signals, e.g. repetition request signals
    • H04L1/1607Details of the supervisory signal
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/22Arrangements for detecting or preventing errors in the information received using redundant apparatus to increase reliability
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/12Applying verification of the received information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/12Applying verification of the received information
    • H04L63/123Applying verification of the received information received data contents, e.g. message integrity

Definitions

  • the present application relates to the technical field of industrial automatic control, in particular to a communication fault detection method, device and system based on redundant equipment.
  • the automated safety instrumentation system (Safety Instrumentation System, referred to as SIS) can promptly respond to and protect the possible dangers of the production equipment and equipment of the enterprise, or the continued deterioration of the production equipment and equipment due to improper behavior, so that the production equipment and equipment enter a Pre-defined safe shutdown conditions reduce risks to an acceptable minimum and ensure the safety of personnel, equipment and production units.
  • SIS Safety Instrumentation System
  • some key components or functional equipment will be artificially reconfigured.
  • the redundantly configured components can be used as backup. Intervene in time and take over the work of the failed component, thereby reducing the downtime of the system.
  • redundant devices communicate with upstream and downstream associated devices to implement data transmission.
  • a communication failure it takes several communication cycles to confirm the communication failure, and the communication cycle between different devices is long, resulting in the risk time of the safety instrumented system being prolonged due to communication reasons , affecting the operation of each device.
  • the embodiment of the present application provides a communication failure detection method, equipment, system, electronic device, and storage medium based on redundant equipment, so as to at least solve the problem that it takes a long time to confirm the communication in the case of a communication failure in the related art. Faults that affect the operation of each device.
  • the embodiment of the present application provides a communication failure detection method based on redundant equipment, which is applied to the sender, including:
  • the current sampling data and communication status are packaged to obtain a communication data packet
  • the communication data packet is sent to the receiver multiple times, and the timing of the response cycle is started;
  • the communication status of the communication data packet in the next communication period is determined.
  • sending the communication data packet to the recipient multiple times includes:
  • the communication data packet is sent to the receiver multiple times.
  • obtaining the information sending instruction includes one of the following:
  • the information sending instruction is acquired at the end of the sending period.
  • the current sampling data and communication status are packaged, and the communication data package obtained further includes:
  • the determining the communication status of the communication data packet in the next communication cycle according to whether the receiver’s response data can be received within the response cycle includes:
  • the response period if the response data of the receiver is received, the communication status of the communication data packet in the next communication period is normal, and the timing of the response period is stopped;
  • the communication status of the communication data packet in the next communication period is abnormal.
  • the embodiment of the present application provides a communication failure detection method based on redundant equipment, which is applied to the receiver, including:
  • the method further includes:
  • the selection of the target communication data packet from the communication data packets that pass the screening according to the timing of the receiving cycle corresponding to the sender and the communication state includes one of the following:
  • the sent communication data packet is used as the target communication data packet, wherein the communication status of the standby sender is normal;
  • the embodiment of the present application provides a communication failure detection method based on redundant equipment, which is applied to multiple senders and a receiver, including:
  • Each of the senders packs the current sampling data and communication status to obtain a communication data packet when the information sending instruction is obtained;
  • Each of the senders sends the communication data packets to the receiver multiple times within one communication cycle, and starts the timing of the response cycle;
  • the receiver receives a plurality of communication data packets from each of the senders within one communication cycle
  • the receiver performs communication verification on the sampled data according to the communication protocol, and performs integrity verification on the sampled data according to the data identifier in the sampled data; according to the communication verification and the integrity verification judge whether to generate response data according to the results, and if the response data is generated, send the response data to all the senders within the preset response period;
  • Each of the senders determines the communication status of the communication data packet in the next communication cycle according to whether the sender can receive the response data from the receiver within the response cycle.
  • the embodiment of the present application provides a communication fault detection device based on redundant equipment, including a packaging module, a sending module and a response module:
  • the packing module is used to pack the current sampling data and communication status to obtain a communication data packet when the information sending instruction is obtained;
  • the sending module is used to send the communication data packet to the receiver multiple times within one communication cycle, and start the timing of the response cycle;
  • the response module is configured to determine the communication status of the communication data packet in the next communication cycle according to whether the receiver's response data can be received within the response cycle.
  • the embodiment of the present application provides a communication fault detection device based on redundant equipment, including a receiving module, a verification module and a feedback module:
  • the receiving module is configured to receive multiple communication data packets from the same sender within one communication cycle, wherein the communication data packets include current sampling data and the communication status of the sender;
  • the verification module is configured to perform communication verification on the sampled data according to a communication protocol, and perform integrity verification on the sampled data according to a data identifier in the sampled data;
  • the feedback module is configured to judge whether to generate response data according to the results of the communication check and the integrity check, and if the response data is generated, within a preset response period, send the response to Data is sent to all said senders.
  • the embodiment of the present application provides a communication fault detection system based on redundant equipment, including multiple senders and a receiver:
  • Each of the senders packs the current sampling data and communication status to obtain a communication data packet when the information sending instruction is obtained;
  • Each of the senders sends the communication data packets to the receiver multiple times within one communication cycle, and starts the timing of the response cycle;
  • the receiver receives a plurality of communication data packets from each of the senders within one communication period;
  • the receiver performs communication verification on the sampled data according to the communication protocol, and performs integrity verification on the sampled data according to the data identifier in the sampled data; according to the communication verification and the integrity verification judge whether to generate response data according to the results, and if the response data is generated, send the response data to all the senders within the preset response period;
  • Each of the senders determines the communication status of the communication data packet in the next communication cycle according to whether the sender can receive the response data from the receiver within the response cycle.
  • the embodiment of the present application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and operable on the processor, when the processor executes the computer program Realize the communication failure detection method based on redundant equipment as described in any one of the first to third aspects above.
  • the embodiment of the present application provides a storage medium on which a computer program is stored.
  • the program is executed by a processor, the communication failure based on redundant equipment as described in any one of the first to third aspects above can be realized. Detection method.
  • the communication failure detection method based on redundant equipment obtains the communication data packet by packaging the current sampling data and the communication state when the information transmission instruction is obtained; In the communication cycle, send the communication data packet to the receiver multiple times, and start the timing of the response cycle; in the response cycle, determine the communication status of the communication data packet in the next communication cycle according to whether the response data from the receiver can be received.
  • Fig. 1 is a flow chart of a communication failure detection method based on redundant equipment according to an embodiment of the present application
  • FIG. 2 is a flow chart of another communication fault detection method based on redundant equipment according to an embodiment of the present application
  • FIG. 3 is a flow chart of another communication failure detection method based on redundant equipment according to an embodiment of the present application.
  • FIG. 4 is a flow chart of another communication failure detection method based on redundant equipment according to an embodiment of the present application.
  • FIG. 5 is a block diagram of a hardware structure of a terminal of a redundant device-based communication failure detection method according to an embodiment of the present application
  • FIG. 6 is a structural block diagram of a communication fault detection device based on redundant devices according to an embodiment of the present application.
  • FIG. 7 is a structural block diagram of another communication fault detection device based on redundant devices according to an embodiment of the present application.
  • Fig. 8 is a structural block diagram of a communication failure detection system based on redundant equipment according to an embodiment of the present application.
  • the upstream device samples the voltage and/or current in the system, and then sends the sampled data to the downstream device through the communication connection to process the sampled data. party, and the downstream device that obtains the sampling data is the receiver.
  • the upstream device is redundantly set, so when one sender fails, another sender can also be used to ensure that the system runs intact.
  • multiple senders with redundant settings send sampling data to the receiver at the same time, and the receiver will also feed back response data to all senders after receiving the complete sampling data that meets the requirements.
  • the sender and receiver in this application may be terminal devices or processors.
  • Fig. 1 is a flow chart of a communication failure detection method based on redundant equipment according to an embodiment of the present application. As shown in Fig. 1, the method includes the following steps:
  • Step S110 if the information sending instruction is obtained, pack the current sampling data and communication status to obtain a communication data packet.
  • the sender starts the communication process with the receiver after obtaining the information sending instruction, wherein the information sending instruction can be generated internally by the sender or triggered externally.
  • the current sampling data is the current value and/or voltage value of the current system.
  • the sampling data will be packaged together with the current communication status, wherein the communication status indicates whether the sender and the receiver can communicate normally, including normal and abnormal states.
  • the current communication state is obtained from the interaction between the sender and receiver in the previous communication cycle. Furthermore, if the current communication is the initial communication, the initialization value of the communication state is abnormal by default, so as to ensure the safe operation of the system.
  • Step S120 within a communication cycle, send the communication data packets to the receiver multiple times, and start timing the response cycle.
  • the sender in order to be able to confirm in time whether there is a communication failure in the system, within a communication cycle, the sender will send communication data packets to the receiver multiple times in a row, so as long as there is one communication data packet that can be responded by the receiver, It means that the communication is normal. If multiple communication data packets cannot be responded by the receiver, it means that the communication between the sender and the receiver is faulty.
  • Step S130 in the response period, according to whether the receiver's response data can be received, determine the communication status of the communication data packet in the next communication period.
  • the response period is set.
  • the duration of the response period may be greater than or equal to the duration of the communication period, so as to avoid misjudgment of communication failures.
  • the sender in this embodiment sends communication data packets to the receiver multiple times within one communication cycle, and then judges the relationship between the two according to whether the receiver returns response data within the response cycle.
  • the communication state avoids the need for multiple communication cycles to confirm the communication fault in the related technology, saves the time for confirming the communication fault, thus solves the problem that in the related technology, it takes a long time to confirm the communication fault in the case of a communication fault , thus affecting the operation of each device, realizing the rapid confirmation of communication failures.
  • the sender receives the response data from the receiver, it means that the receiver has received at least one correct and complete communication data packet from the sender, and the communication status of the communication data packet in the next communication cycle It is normal, and stop the timing of the response cycle to avoid misjudgment of communication failures caused by the timeout of the response cycle; within the response cycle, if the sender does not receive the response data from the receiver, it means that multiple communication data packets sent by the sender If none of them are correctly received by the receiver, then the communication status of the communication data packet in the next communication cycle is abnormal. In this embodiment, whether there is a communication fault can be directly judged according to whether the response data is received within the response period, without multiple rounds of communication confirmation, which saves the judgment time of the communication fault and improves the diagnosis efficiency of the communication fault.
  • the communication fault location and repair may be performed immediately when the communication state is abnormal, or the communication fault location and repair may be performed when multiple consecutive communication states are abnormal.
  • FIG. 2 is a flowchart of another communication failure detection method based on redundant equipment according to an embodiment of the present application. As shown in Fig. 2, the method further includes the following steps:
  • step S210 the initial sampled data is obtained, and the initial sampled data is calculated by using various verification algorithms, and multiple pieces of different communication sampled data are obtained after the calculation.
  • the sender after the sender obtains the information sending instruction, it does not directly pack the initial sampled data, but first calculates the initial sampled data through different verification algorithms, for example, reverses the initial sampled data , or directly use the Cyclic Redundancy Check (CRC) algorithm to calculate the initial sampling data, and then obtain multiple different communication sampling data to ensure the integrity of the sampling data during communication transmission.
  • CRC Cyclic Redundancy Check
  • step S220 multiple pieces of different communication sampling data, initial sampling data and communication status are packaged to obtain a communication data packet.
  • a check code will be added after the sampling data calculated by the CRC algorithm.
  • the check code is calculated based on the initial sampling data.
  • Step S230 within the communication period, send the communication data packets to the receiver for multiple times.
  • Each sender will send multi-packet communication data packets to the receiver, and the verification algorithm may be the same or different between each sender.
  • the initial sampling data is calculated as different communication sampling data through a variety of different verification algorithms, and then the communication sampling data is packaged and transmitted together with the initial sampling data and communication status. The integrity of the initially sampled data can be verified more efficiently.
  • the sender obtains the information sending instruction including two situations:
  • the preset information sending condition is used to judge whether the change of the sampled data needs to be transmitted to the receiving party for processing.
  • the sampled data includes the switching value and the analog value, and whether the change of the switching value satisfies the preset information sending condition, according to Whether the change of the switching value realizes the jump judgment of on/off, whether the change of the analog value meets the preset information sending conditions, judge according to the threshold value, which can be set according to the safety accuracy, usually set to 1 of the full scale %.
  • the sender can obtain the information sending instruction if the information sending condition is set.
  • the preset information sending condition may also be that the analog quantity is greater than or equal to a threshold;
  • the other is that if the change of the sampled data in the preset sending period does not meet the preset information sending condition, at the end of the sending period, obtain the information sending instruction. If the changes in the sampled data do not meet the preset information sending conditions within the sending cycle, in order to ensure that the communication status between the sender and the receiver can be judged in time, the current sampled data is packaged and sent to the receiver.
  • the sending period in this embodiment may be set corresponding to the response period.
  • the information sending conditions of the sampled data are set, which can avoid the communication transmission pressure caused by the high frequency of the sampled data, and can also avoid the low communication frequency caused by the basically unchanged sampled data, thus causing the communication failure to be undetected. discovered in time.
  • the internal fault diagnosis result of the sender may also be obtained, and the internal fault diagnosis result, sampling data and communication status are packaged to obtain the communication data packet.
  • the internal fault diagnosis result is the fault diagnosis result of the sender's processor, specifically, the sender's internal diagnosis includes the judgment of the central processing unit (Central Processing Unit, referred to as CPU) information consistency and memory access information consistency , if there is an inconsistency, it is judged that there is a failure inside the sender, and the internal diagnosis also includes hardware failures running on the CPU, such as memory, clock, power failure and so on.
  • CPU central processing unit
  • the internal fault diagnosis result and the sampling data are packaged and sent together, and the receiver selects the sampling data according to the internal fault diagnosis result.
  • the internal diagnosis can be realized by the following methods: memory check and error correction diagnosis (Error Checking and Correction, referred to as ECC), CPU logic diagnosis (The CPU Self-test Controller, referred to as STC), CPU comparison module (CPU Compare Module (referred to as CCM) verification, dual clock comparator module (Dual Clock Comparator Module, referred to as DCC) diagnosis.
  • the internal fault diagnosis results are also divided into multiple fault levels, and the receiver can select the sampling data according to the level of the fault level.
  • the sender also sends its own internal fault diagnosis results to the receiver, so that the receiver can select more credible sampled data for processing.
  • FIG. 3 is a flow chart of another communication fault detection method based on redundant equipment according to an embodiment of the present application. As shown in Fig. 3, the method includes the following steps:
  • Step S310 within one communication cycle, receive multiple communication data packets from the same sender, wherein the communication data packets include the current sampling data and the communication status of the sender.
  • the sender redundancy setting in this application means that one receiver will receive communication data packets from multiple senders, and each sender will send multiple communication data packets to the receiver in each communication cycle.
  • Step S320 performing communication verification on the sampled data according to the communication protocol, and performing integrity verification on the sampled data according to the data identification in the sampled data.
  • the receiver After receiving the communication data packet, the receiver needs to perform communication verification and integrity verification on the sampled data. Only after all the verifications are passed, can the sampled data be determined to be correct and complete. Specifically, verification may be performed on all of the multiple communication data packets of each sender.
  • Communication verification is to verify the validity of the received sampling data according to the internal communication protocol, and judge whether the communication process of the sampling data conforms to the format of the communication protocol.
  • the integrity verification is to judge according to the data identification in the sampling data Whether the sampled data is complete after communication transmission.
  • the data identifier can be used to indicate the number of the sampled data, which can indicate the order of the sampled data. Further, the data identifier can also indicate which sender the sampled data comes from. The logo can also show the total amount of sampled data. Further, the integrity check in this embodiment can be implemented based on CRC check.
  • Step S330 judging whether to generate response data according to the results of the communication verification and integrity verification, and sending the response data to all senders within a preset response period if the response data is generated.
  • the receiver After the acquired sampling data has passed the communication check and integrity check, it can be judged that the receiver has received correct and complete data, and then the receiver sends response data to the sender. There is one in the communication check and integrity check If it fails to pass, it is considered that the communication status is abnormal, and no response data is generated, so as to prevent the system from frequently sending data and causing a crash when it is maliciously attacked. In this embodiment, "normal" can be directly sent to the sender as the response data. Further, the sending of the response data should be within the response period to confirm that the communication status is normal.
  • the receiver may only respond to one communication data packet, or may respond to each communication data packet.
  • the receiving party in this embodiment receives multiple communication data packets from the same sender within one communication cycle, and performs sampling data in multiple communication data packets in one communication cycle. Verification and response can determine the current communication status between the sender and the receiver, avoiding the need for multiple communication cycles in the related technology to confirm the communication failure, saving the time for communication failure confirmation, thus solving the problem in the related technology In the case of a communication failure, it takes a long time to confirm the communication failure, which affects the operation of each device, and realizes the rapid confirmation of the communication failure.
  • multiple communication data packets need to be screened according to the data packet identification of each communication data packet.
  • the data packet identification can be based on the communication The source address and serial number information of the data packet are obtained.
  • the receiving party receives multiple communication data packets from the same sender, since it only needs to process the data in one communication data packet, it is necessary to process the data from the same sender. It should be noted that the same sampling data sent by the same sender has the same source address and sequence number information.
  • the receiver screens and filters all the acquired communication data packets, so as to avoid a large waste of resources caused by processing multiple communication data packets.
  • selecting the target communication data packet from the communication data packets that pass the screening includes one of the following:
  • the timing of the receiving cycle corresponding to the sender has not timed out, and the communication status in the communication data packet is normal, it means that the sender selected in the previous communication cycle is still working normally, then select the sender in the previous communication cycle
  • the communication data packet sent in the current communication cycle is used as the target communication data packet;
  • the timing of the receiving cycle corresponding to the sender has timed out, or the communication status in the communication data packet is abnormal, it means that the sender selected in the previous communication cycle has a communication failure, then switch the sender and select the same as the previous one.
  • the communication data packet sent by the backup sender with different senders in the communication cycle in the current communication cycle is used as the target communication data packet, wherein the communication status of the backup sender should be normal, due to the redundant setting of the sender in this application, so When the communication status of one sender is abnormal, the backup sender can be used for communication;
  • the failsafe value is a safe value that can make the entire system operate normally under communication failure.
  • this embodiment when selecting the target communication data packet, it is first possible to judge whether it is necessary to switch the sender of the target communication data packet according to the communication state and the receiving cycle. Keep the system running. Therefore, this embodiment avoids system breakdown due to communication failures based on redundantly configured senders and preset fail-safe values.
  • FIG. 4 is a flowchart of another communication failure detection method based on redundant equipment according to an embodiment of the present application. As shown in Fig. 4, the method includes the following steps:
  • Step S410 each sender packs the current sampling data and communication status to obtain a communication data packet after obtaining the information sending instruction
  • Step S420 each sender sends the communication data packet to the receiver multiple times within a communication cycle, and starts the timing of the response cycle;
  • Step S430 the receiving party receives a plurality of communication data packets from each sending party within one communication cycle
  • Step S440 the receiver performs communication verification on the sampled data according to the communication protocol, and performs integrity verification on the sampled data according to the data identifier in the sampled data; judges whether to generate response data according to the results of the communication verification and integrity verification, and then In the case of generating response data, send the response data to all senders within the preset response period;
  • Step S450 within the response period, each sender determines the communication status of the communication data packet in the next communication period according to whether it can receive the response data from the receiver.
  • each sender in this embodiment sends communication data packets to the receiver multiple times within one communication cycle, and after the receiver receives multiple communication data packets from the same sender, By verifying and responding to the sampling data in multiple communication data packets in a communication cycle, and then the sender judges the communication status between the two according to whether the response data can be received in the response cycle, avoiding the related technology, Multiple communication cycles are required to confirm the communication fault, which saves the time for confirming the communication fault, thereby solving the problem in the related art that it takes a long time to confirm the communication fault in the event of a communication fault, thereby affecting the operation of each device. , realizing fast and efficient confirmation of communication faults.
  • Step 11 when the sender obtains the information sending instruction, it packs its own communication status and sampling data together;
  • Step 12 the sender sends the packaged communication data packets to the receiver for 3 consecutive times, and at the same time starts the response timeout timer, and starts the timing of the response cycle;
  • Step 13 if the sender receives a packet of response data from the receiver before the response timeout timer expires, it will consider the current communication status to be normal, and close the response timeout timer; otherwise, set the current communication status as abnormal and start the next communication cycle, inform the receiver.
  • the receiver's process is as follows:
  • Step 21 the receiver receives all communication data packets from the two senders
  • Step 22 the receiving party performs communication verification and integrity verification on the communication data packet. After the verification is completed, if the communication data packet verification is passed, the receiving party starts the receiving timeout timer to time the receiving cycle and detect the next communication Whether the communication data packets in the cycle time out, and send the response data of the current communication cycle to the initiator; if the communication data packet arrives within the time of the receiving timeout timer in the current communication cycle, it is considered that the receiving timeout state is normal, otherwise , it is considered that the receiving timeout state is abnormal;
  • Step 23 for the communication data packets that have passed the communication verification and integrity verification, the receiver then filters the communication data packets according to the data packet identification including the address and the data packet sequence number, and simultaneously selects a communication data packet of the sender for processing. calculate.
  • Table 1 is a communication data packet selection table according to the embodiment of the present application. As shown in Table 1, the two senders are represented by left and right cards respectively.
  • the communication status is normal, maintain one sender as the data source; when only one communication data packet has normal communication status, select the sender with normal communication status as the data source; in the communication of the sender If the status is all faults, obtain the preset fail-safe value for processing.
  • each sender sends communication data packets to the receiver multiple times within one communication cycle, and after receiving multiple communication data packets from the same The sampling data in each communication data packet is verified and responded, and then the sender judges the communication status between the two according to the response data returned by the receiver within the response period, which can efficiently and quickly judge the current relationship between the sender and the receiver. communication status.
  • FIG. 5 is a block diagram of a hardware structure of a terminal in a method for detecting a communication failure based on a redundant device according to an embodiment of the present application.
  • the terminal 50 may include one or more (only one is shown in FIG. 5) processors 502 (the processors 502 may include but not limited to processing devices such as microprocessor MCU or programmable logic device FPGA, etc.) and a memory 504 for storing data.
  • the terminal may further include a transmission device 506 and an input and output device 508 for communication functions.
  • the structure shown in FIG. 5 is only for illustration, and does not limit the structure of the above-mentioned terminal.
  • the terminal 50 may also include more or fewer components than those shown in FIG. 5, or have a different configuration than that shown in FIG.
  • the memory 504 can be used to store control programs, for example, software programs and modules of application software, such as the control program corresponding to the communication fault detection method based on redundant equipment in the embodiment of the present application, the processor 502 runs the stored in the memory 504
  • the control program executes various functional applications and data processing, that is, realizes the above-mentioned method.
  • the memory 504 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory.
  • the memory 504 may further include a memory that is remotely located relative to the processor 502, and these remote memories may be connected to the terminal 50 through a network. Examples of the aforementioned networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
  • Transmission device 506 is used to receive or transmit data via a network.
  • the specific example of the above network may include a wireless network provided by the communication provider of the terminal 50 .
  • the transmission device 506 includes a network adapter (Network Interface Controller, NIC for short), which can be connected to other network devices through a base station so as to communicate with the Internet.
  • the transmission device 506 may be a radio frequency (Radio Frequency, referred to as RF) module, which is used to communicate with the Internet in a wireless manner.
  • RF Radio Frequency
  • This embodiment also provides a communication failure detection device based on a redundant device, which is used to implement the above embodiments and optional implementation modes, and those that have already been described will not be described again.
  • the terms “module”, “unit”, “subunit” and the like may be a combination of software and/or hardware that realize a predetermined function.
  • the devices described in the following embodiments are preferably implemented in software, implementations in hardware, or a combination of software and hardware are also possible and contemplated.
  • FIG. 6 is a structural block diagram of a communication fault detection device based on redundant devices according to an embodiment of the present application. As shown in FIG. 6 , the device includes a packaging module 61. Sending module 62 and response module 63:
  • Packing module 61 used to pack the current sampling data and communication status to obtain a communication data packet when the information sending instruction is obtained;
  • the sending module 62 is used to send the communication data packet to the receiver multiple times within one communication cycle, and start the timing of the response cycle;
  • the response module 63 is configured to determine the communication status of the communication data packet in the next communication cycle according to whether the receiver's response data can be received within the response cycle.
  • the sender realizes the packaging of the communication data packets through the packaging module 61 within a communication cycle, then sends the communication data packets to the receiver multiple times through the sending module 62, and finally passes the response module 63 according to whether the communication data packets can be sent in the response cycle.
  • the response data is received to judge the communication status between the sender and the receiver, which avoids the need for multiple communication cycles to confirm the communication failure in the related technology, saves the time for confirming the communication failure, and thus solves the problem of communication failure in the related technology. In the case of a fault, it takes a long time to confirm the communication fault, which affects the operation of each device, and realizes the rapid confirmation of the communication fault.
  • FIG. 7 is a structural block diagram of another communication fault detection device based on redundant devices according to an embodiment of the present application. As shown in FIG. 7 , the device includes a receiver Module 71, checking module 72 and feedback module 73:
  • the receiving module 71 is configured to receive a plurality of communication data packets from the same sender within one communication cycle, wherein the communication data packets include the current sampling data and the communication status of the sender;
  • the verification module 72 is used for performing communication verification on the sampled data according to the communication protocol, and performing integrity verification on the sampled data according to the data identifier in the sampled data;
  • the feedback module 73 is configured to judge whether to generate response data according to the results of the communication check and the integrity check, and send the response data to all senders within a preset response period if the response data is generated.
  • the receiving party receives multiple communication data packets of the same sender through the receiving module 71 within one communication cycle, and the sampling data in the multiple communication data packets in one communication cycle is checked by the verification module 72. Verify, and finally complete the response to the sender through the feedback module 73 to judge the current communication status between the sender and the receiver, avoiding the need for multiple communication cycles in the related art to confirm the communication fault, saving the time for confirming the communication fault Time, thereby solving the problem in the related art that it takes a long time to confirm the communication failure in the case of a communication failure, thereby affecting the operation of each device, and realizing the rapid confirmation of the communication failure.
  • FIG. 8 is a structural block diagram of a communication failure detection system based on redundant equipment according to an embodiment of the present application. As shown in FIG. 8, the system includes multiple senders 81 and a receiver 82:
  • Each sender 81 packs the current sampling data and communication status to obtain a communication data packet when the information sending instruction is obtained;
  • Each sender 81 sends the communication data packet to the receiver 82 multiple times within a communication cycle, and starts the timing of the response cycle;
  • the receiver 82 receives a plurality of communication data packets from each sender 81 within a communication cycle
  • Receiver 82 carries out communication verification to sampling data according to communication protocol, carries out integrity verification to sampling data according to the data mark in sampling data; Judging whether to generate response data according to the result of communication verification and integrity verification, generates response In the case of data, send the response data to all senders 81 within the preset response period;
  • Each sender 81 determines the communication status of the communication data packet in the next communication cycle according to whether it can receive the response data from the receiver 82 within the response cycle.
  • each sender 81 sends the communication data packet to the receiver 82 multiple times in one communication cycle, and after the receiver 82 receives a plurality of communication data packets from the same sender 81, it sends a Sampling data in a plurality of communication data packets in the communication cycle is verified and responded, and then the sender 81 judges the communication state between the two according to the response data returned by the receiver 82 in the response cycle, and the current sender 81 can be judged.
  • the communication state with the receiver 82 avoids the need for multiple communication cycles in the related art to confirm the communication failure, saves the time for confirming the communication failure, and thus solves the problem of communication failure in the related art. It takes a long time to confirm the communication failure, which affects the operation of each device, and realizes the fast and efficient confirmation of communication failure.
  • each of the above-mentioned modules may be a function module or a program module, and may be realized by software or by hardware.
  • the above modules may be located in the same processor; or the above modules may be located in different processors in any combination.
  • This embodiment also provides an electronic device, including a memory and a processor, where a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
  • the above-mentioned electronic device may further include a transmission device and an input-output device, wherein the transmission device is connected to the above-mentioned processor, and the input-output device is connected to the above-mentioned processor.
  • the above-mentioned processor may be configured to execute the following steps through a computer program:
  • the above-mentioned processor may also be configured to execute the following steps through a computer program:
  • S21 within a communication cycle, receive multiple communication data packets from the same sender, wherein the communication data packets include the current sampling data and the communication status of the sender;
  • the embodiments of the present application may provide a storage medium for implementation.
  • a computer program is stored on the storage medium; when the computer program is executed by the processor, any method for detecting a communication fault based on a redundant device in the above embodiments is implemented.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Environmental & Geological Engineering (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Maintenance And Management Of Digital Transmission (AREA)

Abstract

A communication fault detection method, device and system based on a redundant device. The communication fault detection method based on a redundant device comprises: when an information sending instruction is acquired, packaging the current sampling data and communication state to obtain a communication data packet; within one communication cycle, sending the communication data packet to a receiver multiple times, and starting the timing of a response cycle; and within the response cycle, determining the communication state of the communication data packet in the next communication cycle according to whether response data from the receiver can be received.

Description

基于冗余设备的通信故障检测方法、设备和系统Communication fault detection method, device and system based on redundant equipment
相关申请related application
本申请要求2021年6月23日申请的,申请号为202110700714.3,发明名称为“基于冗余设备的通信故障检测方法、设备和系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application filed on June 23, 2021 with the application number 202110700714.3 and the title of the invention is "Communication Fault Detection Method, Device and System Based on Redundant Devices", the entire contents of which are hereby incorporated by reference In this application.
技术领域technical field
本申请涉及工业自动控制技术领域,特别是涉及基于冗余设备的通信故障检测方法、设备和系统。The present application relates to the technical field of industrial automatic control, in particular to a communication fault detection method, device and system based on redundant equipment.
背景技术Background technique
自动化安全仪表系统(Safety Instrumentation System,简称为SIS)能对企业生产装置和设备可能发生的危险,或者不当行为导致生产装置和设备继续恶化的状态进行及时响应和保护,使生产装置和设备进入一个预定义的安全停车工况,从而使风险降低到可以接受的最低程度,保障人员、设备和生产装置的安全。出于系统安全和可靠性等方面的考虑,会人为地对一些关键部件或功能设备进行重复的配置,当系统发生故障时,比如某一设备发生损坏,冗余配置的部件可以作为备援,及时介入并承担故障部件的工作,由此减少系统的故障时间。The automated safety instrumentation system (Safety Instrumentation System, referred to as SIS) can promptly respond to and protect the possible dangers of the production equipment and equipment of the enterprise, or the continued deterioration of the production equipment and equipment due to improper behavior, so that the production equipment and equipment enter a Pre-defined safe shutdown conditions reduce risks to an acceptable minimum and ensure the safety of personnel, equipment and production units. For the sake of system safety and reliability, some key components or functional equipment will be artificially reconfigured. When the system fails, such as a certain equipment is damaged, the redundantly configured components can be used as backup. Intervene in time and take over the work of the failed component, thereby reducing the downtime of the system.
在相关技术中,冗余设备和上下游的关联设备之间通信连接,以实现数据传输。在发生通信故障的情况下,由于通信故障的确认需要花费若干个通信周期的时间来实现故障确认,且不同的设备之间通信周期较长,导致安全仪表系统的风险时间由于通信原因被拉长,影响各个设备的运行。In related technologies, redundant devices communicate with upstream and downstream associated devices to implement data transmission. In the case of a communication failure, it takes several communication cycles to confirm the communication failure, and the communication cycle between different devices is long, resulting in the risk time of the safety instrumented system being prolonged due to communication reasons , affecting the operation of each device.
目前针对相关技术中在发生通信故障的情况下,需要较长的时间才能确认通信故障,从而影响各个设备的运行的问题,尚未提出有效的解决方案。At present, in the related art, when a communication failure occurs, it takes a long time to confirm the communication failure, thereby affecting the operation of each device, and no effective solution has been proposed.
发明内容Contents of the invention
本申请实施例提供了一种基于冗余设备的通信故障检测方法、设备、系统、电子装置和存储介质,以至少解决相关技术中在发生通信故障的情况下,需要较长的时间才能确认通信故障,从而影响各个设备的运行的问题。The embodiment of the present application provides a communication failure detection method, equipment, system, electronic device, and storage medium based on redundant equipment, so as to at least solve the problem that it takes a long time to confirm the communication in the case of a communication failure in the related art. Faults that affect the operation of each device.
第一方面,本申请实施例提供了一种基于冗余设备的通信故障检测方法,应用于发送方,包括:In the first aspect, the embodiment of the present application provides a communication failure detection method based on redundant equipment, which is applied to the sender, including:
在获取到信息发送指令的情况下,将当前的采样数据和通信状态打包,得到通信数据包;When the information sending instruction is obtained, the current sampling data and communication status are packaged to obtain a communication data packet;
在一个通信周期内,将所述通信数据包多次发送至接收方,并开始响应周期的计时;In a communication cycle, the communication data packet is sent to the receiver multiple times, and the timing of the response cycle is started;
在所述响应周期内,根据能否接收到所述接收方的响应数据,确定下一通信周期中通信数据包的通信状态。In the response period, according to whether the receiver's response data can be received, the communication status of the communication data packet in the next communication period is determined.
在其中一些实施例中,在一个通信周期内,将所述通信数据包多次发送至接收方包括:In some of these embodiments, within one communication cycle, sending the communication data packet to the recipient multiple times includes:
获取初始采样数据,通过多种校验算法对所述初始采样数据进行计算,计算后得到多份不同的通信采样数据;Obtaining initial sampling data, calculating the initial sampling data through various verification algorithms, and obtaining multiple different communication sampling data after calculation;
将所述多份不同的通信采样数据与所述初始采样数据以及所述通信状态进行打包,得到所述通信数据包;Packing the plurality of different communication sampling data, the initial sampling data and the communication state to obtain the communication data packet;
在所述通信周期内,将所述通信数据包多次发送至所述接收方。In the communication period, the communication data packet is sent to the receiver multiple times.
在其中一些实施例中,获取所述信息发送指令包括以下之一:In some of these embodiments, obtaining the information sending instruction includes one of the following:
若所述采样数据的变化符合预设的信息发送条件,获取所述信息发送指令;If the change of the sampled data meets the preset information sending condition, acquire the information sending instruction;
若所述采样数据在预设的发送周期内的变化均不符合预设的信息发送条件,在所述发送周期结束时,获取所述信息发送指令。If none of the changes in the sampled data within the preset sending period meet the preset information sending condition, the information sending instruction is acquired at the end of the sending period.
在其中一些实施例中,所述在获取到信息发送指令的情况下,将当前的采样数据和通信状态打包,得到通信数据包还包括:In some of these embodiments, when the information transmission instruction is obtained, the current sampling data and communication status are packaged, and the communication data package obtained further includes:
获取内部故障诊断结果,将所述内部故障诊断结果、所述采样数据和所述通信状态打包,得到通信数据包。Obtain an internal fault diagnosis result, pack the internal fault diagnosis result, the sampling data, and the communication status to obtain a communication data packet.
在其中一些实施例中,所述在所述响应周期内,根据能否接收到所述接收方的响应数据,确定下一通信周期中通信数据包的通信状态包括:In some of these embodiments, the determining the communication status of the communication data packet in the next communication cycle according to whether the receiver’s response data can be received within the response cycle includes:
在所述响应周期内,若接收到所述接收方的响应数据,则下一通信周期中通信数据包的通信状态为正常,并停止所述响应周期的计时;In the response period, if the response data of the receiver is received, the communication status of the communication data packet in the next communication period is normal, and the timing of the response period is stopped;
在所述响应周期内,若未接收到所述接收方的响应数据,则下一通信周期中通信数据包的通信状态为异常。In the response period, if no response data from the receiver is received, the communication status of the communication data packet in the next communication period is abnormal.
第二方面,本申请实施例提供了一种基于冗余设备的通信故障检测方法,应用于接收方,包括:In the second aspect, the embodiment of the present application provides a communication failure detection method based on redundant equipment, which is applied to the receiver, including:
在一个通信周期内,接收来自同一发送方的多个通信数据包,其中,所述通信数据包中包括当前的采样数据和所述发送方的通信状态;Within a communication cycle, receiving multiple communication data packets from the same sender, wherein the communication data packets include the current sampling data and the communication status of the sender;
根据通信协议对所述采样数据进行通信校验,根据所述采样数据中的数据标识对所述采样数据进行完整性校验;Performing a communication check on the sampled data according to a communication protocol, and performing an integrity check on the sampled data according to a data identifier in the sampled data;
根据所述通信校验和所述完整性校验的结果判断是否生成响应数据,在生成所述响应数据的情况下,在预设的响应周期内,将所述响应数据发送至所有所述发送方。According to the results of the communication check and the integrity check, it is judged whether to generate response data, and if the response data is generated, within the preset response period, the response data is sent to all the sending square.
在其中一些实施例中,在所述根据通信协议对所述采样数据进行通信校验,根据所述采样数据中的数据标识对所述采样数据进行完整性校验之后,所述方法还包括:In some of these embodiments, after the communication verification is performed on the sampled data according to the communication protocol, and the integrity verification is performed on the sampled data according to the data identifier in the sampled data, the method further includes:
根据各个所述通信数据包的数据包标识对多个通信数据包进行筛选;screening multiple communication data packets according to the data packet identification of each of the communication data packets;
根据与发送方对应的接收周期的计时,以及所述通信状态,在通过筛选的通信数据包中选择目标通信数据包;According to the timing of the receiving cycle corresponding to the sender, and the communication status, select the target communication data packet from the communication data packets that have passed the screening;
对目标通信数据包中的数据进行处理。Process the data in the target communication packet.
在其中一些实施例中,所述根据与发送方对应的接收周期的计时,以及所述通信状态,在通过筛选的通信数据包中选择目标通信数据包包括以下之一:In some of these embodiments, the selection of the target communication data packet from the communication data packets that pass the screening according to the timing of the receiving cycle corresponding to the sender and the communication state includes one of the following:
在与所述发送方对应的接收周期的计时未超时,且所述通信数据包中的通信状态为正常的情况下,选择上一个通信周期中的发送方在当前通信周期发送的通信数据包作为所述目标通信数据包;When the timing of the receiving cycle corresponding to the sender has not timed out, and the communication status in the communication data packet is normal, select the communication data packet sent by the sender in the current communication cycle in the previous communication cycle as The target communication data packet;
在与所述发送方对应的接收周期的计时已超时,或者所述通信数据包中的通信状态为异常的情况下,选择与上一个通信周期中的发送方不同的备用发送方在当前通信周期发送的通信数据包作为所述目标通信数据包,其中,所述备用发送方的通信状态为正常;When the timing of the receiving cycle corresponding to the sender has timed out, or the communication state in the communication data packet is abnormal, select an alternate sender different from the sender in the previous communication cycle to be in the current communication cycle The sent communication data packet is used as the target communication data packet, wherein the communication status of the standby sender is normal;
在所有与所述发送方对应的接收周期的计时已超时,且所述通信数据包中的通信状态均为异常的情况下,获取预设的故障安全值构成所述目标通信数据包。When the timing of all receiving periods corresponding to the sender has timed out and the communication status in the communication data packet is abnormal, a preset fail-safe value is obtained to form the target communication data packet.
第三方面,本申请实施例提供了一种基于冗余设备的通信故障检测方法,应用于多个发送方和一个接收方,包括:In the third aspect, the embodiment of the present application provides a communication failure detection method based on redundant equipment, which is applied to multiple senders and a receiver, including:
每个所述发送方在获取到信息发送指令的情况下,将当前的采样数据和通信状态打包,得到通信数据包;Each of the senders packs the current sampling data and communication status to obtain a communication data packet when the information sending instruction is obtained;
每个所述发送方在一个通信周期内,将所述通信数据包多次发送至接收方,并开始响应周期的计时;Each of the senders sends the communication data packets to the receiver multiple times within one communication cycle, and starts the timing of the response cycle;
所述接收方在一个所述通信周期内,接收来自每个所述发送方的多个所述通信数据包;The receiver receives a plurality of communication data packets from each of the senders within one communication cycle;
所述接收方根据通信协议对所述采样数据进行通信校验,根据所述采样数据中的数据标识对所述采样数据进行完整性校验;根据所述通信校验和所述完整性校验的结果判断是否生成响应数据,在生成所述响应数据的情况下,在预设的响应周期内,将所述响应数据发送至所有所述发送方;The receiver performs communication verification on the sampled data according to the communication protocol, and performs integrity verification on the sampled data according to the data identifier in the sampled data; according to the communication verification and the integrity verification judge whether to generate response data according to the results, and if the response data is generated, send the response data to all the senders within the preset response period;
每个所述发送方在所述响应周期内,根据能否接收到所述接收方的响应数据,确定下一通信周期中通信数据包的通信状态。Each of the senders determines the communication status of the communication data packet in the next communication cycle according to whether the sender can receive the response data from the receiver within the response cycle.
第四方面,本申请实施例提供了一种基于冗余设备的通信故障检测设备,包括打包模块、发送模块和响应模块:In the fourth aspect, the embodiment of the present application provides a communication fault detection device based on redundant equipment, including a packaging module, a sending module and a response module:
所述打包模块,用于在获取到信息发送指令的情况下,将当前的采样数据和通信状态打包,得到通信数据包;The packing module is used to pack the current sampling data and communication status to obtain a communication data packet when the information sending instruction is obtained;
所述发送模块,用于在一个通信周期内,将所述通信数据包多次发送至接收方,并开始响应周期的计时;The sending module is used to send the communication data packet to the receiver multiple times within one communication cycle, and start the timing of the response cycle;
所述响应模块,用于在所述响应周期内,根据能否接收到所述接收方的响应数据,确定下一通信周期中通信数据包的通信状态。The response module is configured to determine the communication status of the communication data packet in the next communication cycle according to whether the receiver's response data can be received within the response cycle.
第五方面,本申请实施例提供了一种基于冗余设备的通信故障检测设备,包括接收模块、校验模块和反馈模块:In the fifth aspect, the embodiment of the present application provides a communication fault detection device based on redundant equipment, including a receiving module, a verification module and a feedback module:
所述接收模块,用于在一个通信周期内,接收来自同一发送方的多个通信数据包,其中,所述通信数据包中包括当前的采样数据和所述发送方的通信状态;The receiving module is configured to receive multiple communication data packets from the same sender within one communication cycle, wherein the communication data packets include current sampling data and the communication status of the sender;
所述校验模块,用于根据通信协议对所述采样数据进行通信校验,根据所述采样数据中的数据标识对所述采样数据进行完整性校验;The verification module is configured to perform communication verification on the sampled data according to a communication protocol, and perform integrity verification on the sampled data according to a data identifier in the sampled data;
所述反馈模块,用于根据所述通信校验和所述完整性校验的结果判断是否生成响应数据,在生成所述响应数据的情况下,在预设的响应周期内,将所述响应数据发送至所有所述发送方。The feedback module is configured to judge whether to generate response data according to the results of the communication check and the integrity check, and if the response data is generated, within a preset response period, send the response to Data is sent to all said senders.
第六方面,本申请实施例提供了一种基于冗余设备的通信故障检测系统,包括多个发送方和一个接收方:In the sixth aspect, the embodiment of the present application provides a communication fault detection system based on redundant equipment, including multiple senders and a receiver:
每个所述发送方在获取到信息发送指令的情况下,将当前的采样数据和通信状态打包,得到通信数据包;Each of the senders packs the current sampling data and communication status to obtain a communication data packet when the information sending instruction is obtained;
每个所述发送方在一个通信周期内,将所述通信数据包多次发送至接收方,并开始响应周期的计时;Each of the senders sends the communication data packets to the receiver multiple times within one communication cycle, and starts the timing of the response cycle;
所述接收方在一个所述通信周期内,接收来自每个所述发送方的多个所述通信数据包;The receiver receives a plurality of communication data packets from each of the senders within one communication period;
所述接收方根据通信协议对所述采样数据进行通信校验,根据所述采样数据中的数据标识对所述采样数据进行完整性校验;根据所述通信校验和所述完整性校验的结果判断是否生成响应数据,在生成所述响应数据的情况下,在预设的响应周期内,将所述响应数据发送至所有所述发送方;The receiver performs communication verification on the sampled data according to the communication protocol, and performs integrity verification on the sampled data according to the data identifier in the sampled data; according to the communication verification and the integrity verification judge whether to generate response data according to the results, and if the response data is generated, send the response data to all the senders within the preset response period;
每个所述发送方在所述响应周期内,根据能否接收到所述接收方的响应数据,确定下一通信周期中通信数据包的通信状态。Each of the senders determines the communication status of the communication data packet in the next communication cycle according to whether the sender can receive the response data from the receiver within the response cycle.
第七方面,本申请实施例提供了一种电子装置,包括存储器、处理器以及存储在所述 存储器上并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现如上述第一至第三任一方面所述的基于冗余设备的通信故障检测方法。In a seventh aspect, the embodiment of the present application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and operable on the processor, when the processor executes the computer program Realize the communication failure detection method based on redundant equipment as described in any one of the first to third aspects above.
第八方面,本申请实施例提供了一种存储介质,其上存储有计算机程序,该程序被处理器执行时实现如上述第一至第三任一方面所述的基于冗余设备的通信故障检测方法。In the eighth aspect, the embodiment of the present application provides a storage medium on which a computer program is stored. When the program is executed by a processor, the communication failure based on redundant equipment as described in any one of the first to third aspects above can be realized. Detection method.
相比于相关技术,本申请实施例提供的基于冗余设备的通信故障检测方法,通过在获取到信息发送指令的情况下,将当前的采样数据和通信状态打包,得到通信数据包;在一个通信周期内,将通信数据包多次发送至接收方,并开始响应周期的计时;在响应周期内,根据能否接收到接收方的响应数据,确定下一通信周期中通信数据包的通信状态,解决了相关技术中在发生通信故障的情况下,需要较长的时间才能确认通信故障,从而影响各个设备的运行的问题,实现了通信故障的快速确认。Compared with related technologies, the communication failure detection method based on redundant equipment provided by the embodiment of the present application obtains the communication data packet by packaging the current sampling data and the communication state when the information transmission instruction is obtained; In the communication cycle, send the communication data packet to the receiver multiple times, and start the timing of the response cycle; in the response cycle, determine the communication status of the communication data packet in the next communication cycle according to whether the response data from the receiver can be received The invention solves the problem in the related art that it takes a long time to confirm the communication failure in the case of a communication failure, thereby affecting the operation of each device, and realizes the rapid confirmation of the communication failure.
本申请的一个或多个实施例的细节在以下附图和描述中提出,以使本申请的其他特征、目的和优点更加简明易懂。The details of one or more embodiments of the application are set forth in the accompanying drawings and the description below, so as to make other features, objects, and advantages of the application more comprehensible.
附图说明Description of drawings
此处所说明的附图用来提供对本申请的进一步理解,构成本申请的一部分,本申请的示意性实施例及其说明用于解释本申请,并不构成对本申请的不当限定。在附图中:The drawings described here are used to provide a further understanding of the application and constitute a part of the application. The schematic embodiments and descriptions of the application are used to explain the application and do not constitute an improper limitation to the application. In the attached picture:
图1是根据本申请实施例的一种基于冗余设备的通信故障检测方法的流程图;Fig. 1 is a flow chart of a communication failure detection method based on redundant equipment according to an embodiment of the present application;
图2是根据本申请实施例的再一种基于冗余设备的通信故障检测方法的流程图;FIG. 2 is a flow chart of another communication fault detection method based on redundant equipment according to an embodiment of the present application;
图3是根据本申请实施例的另一种基于冗余设备的通信故障检测方法的流程图;FIG. 3 is a flow chart of another communication failure detection method based on redundant equipment according to an embodiment of the present application;
图4是根据本申请实施例的又一种基于冗余设备的通信故障检测方法的流程图;FIG. 4 is a flow chart of another communication failure detection method based on redundant equipment according to an embodiment of the present application;
图5为本申请实施例的基于冗余设备的通信故障检测方法的终端的硬件结构框图;FIG. 5 is a block diagram of a hardware structure of a terminal of a redundant device-based communication failure detection method according to an embodiment of the present application;
图6是根据本申请实施例的一种基于冗余设备的通信故障检测设备的结构框图;FIG. 6 is a structural block diagram of a communication fault detection device based on redundant devices according to an embodiment of the present application;
图7是根据本申请实施例的再一种基于冗余设备的通信故障检测设备的结构框图;FIG. 7 is a structural block diagram of another communication fault detection device based on redundant devices according to an embodiment of the present application;
图8是根据本申请实施例的一种基于冗余设备的通信故障检测系统的结构框图。Fig. 8 is a structural block diagram of a communication failure detection system based on redundant equipment according to an embodiment of the present application.
具体实施方式detailed description
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行描述和说明。应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。基于本申请提供的实施例,本领域普通技术人员在没有作出创造性劳动的前提下所获得的所有其他实施例,都属于本申请保护的范围。此外,还可以理解的是,虽然这种开发过程中所作出的努力可能是复杂并且冗长的,然而对于与本申请公开的内容相关的本领域的普通技术人员而言,在本申请揭露的技术内容的基础上进行的一些设计,制造或者生产等变更只是常规的技术手段,不应当理解为本申请公开的内容不充分。In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be described and illustrated below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present application, and are not intended to limit the present application. Based on the embodiments provided in the present application, all other embodiments obtained by persons of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application. In addition, it can also be understood that although such development efforts may be complex and lengthy, for those of ordinary skill in the art relevant to the content disclosed in this application, the technology disclosed in this application Some design, manufacturing or production changes based on the content are just conventional technical means, and should not be understood as insufficient content disclosed in this application.
在本申请中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包 含在本申请的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域普通技术人员显式地和隐式地理解的是,本申请所描述的实施例在不冲突的情况下,可以与其它实施例相结合。Reference in this application to an "embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The occurrences of this phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is understood explicitly and implicitly by those of ordinary skill in the art that the embodiments described in this application can be combined with other embodiments without conflict.
除非另作定义,本申请所涉及的技术术语或者科学术语应当为本申请所属技术领域内具有一般技能的人士所理解的通常意义。本申请所涉及的“一”、“一个”、“一种”、“该”等类似词语并不表示数量限制,可表示单数或复数。本申请所涉及的术语“包括”、“包含”、“具有”以及它们任何变形,意图在于覆盖不排他的包含;例如包含了一系列步骤或模块(单元)的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可以还包括没有列出的步骤或单元,或可以还包括对于这些过程、方法、产品或设备固有的其它步骤或单元。本申请所涉及的“连接”、“相连”、“耦接”等类似的词语并非限定于物理的或者机械的连接,而是可以包括电气的连接,不管是直接的还是间接的。本申请所涉及的“多个”是指大于或者等于两个。“和/或”描述关联对象的关联关系,表示可以存在三种关系,例如,“A和/或B”可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。本申请所涉及的术语“第一”、“第二”、“第三”等仅仅是区别类似的对象,不代表针对对象的特定排序。Unless otherwise defined, the technical terms or scientific terms involved in the application shall have the usual meanings understood by those with ordinary skill in the technical field to which the application belongs. Words such as "a", "an", "an" and "the" involved in this application do not indicate a limitation on quantity, and may indicate singular or plural numbers. The terms "comprising", "comprising", "having" and any variations thereof involved in this application are intended to cover non-exclusive inclusion; for example, a process, method, system, product or process that includes a series of steps or modules (units). The apparatus is not limited to the listed steps or units, but may further include steps or units not listed, or may further include other steps or units inherent to the process, method, product or apparatus. The words "connected", "connected", "coupled" and similar words mentioned in this application are not limited to physical or mechanical connection, but may include electrical connection, no matter it is direct or indirect. "Multiple" referred to in the present application means greater than or equal to two. "And/or" describes the association relationship of associated objects, indicating that there may be three types of relationships. For example, "A and/or B" may indicate: A exists alone, A and B exist simultaneously, and B exists independently. The terms "first", "second", "third" and the like involved in this application are only used to distinguish similar objects, and do not represent a specific ordering of objects.
在SIS系统中,上游设备对系统中的电压和/或电流进行采样,然后将采样数据通过通信连接发送至下游设备以对采样数据进行处理,此时,进行采样的上游设备为采样数据的发送方,获取采样数据的下游设备为接收方。本申请中上游设备冗余设置,因此在一个发送方出现故障时,还可以通过另一个发送方保证系统完好运行。在通信过程中,冗余设置的多个发送方同时向接收方发送采样数据,接收方在接收到完整的符合要求的采样数据之后,也会向所有的发送方反馈响应数据。本申请中的发送方和接收方可以为终端设备,也可以为处理器。In the SIS system, the upstream device samples the voltage and/or current in the system, and then sends the sampled data to the downstream device through the communication connection to process the sampled data. party, and the downstream device that obtains the sampling data is the receiver. In this application, the upstream device is redundantly set, so when one sender fails, another sender can also be used to ensure that the system runs intact. During the communication process, multiple senders with redundant settings send sampling data to the receiver at the same time, and the receiver will also feed back response data to all senders after receiving the complete sampling data that meets the requirements. The sender and receiver in this application may be terminal devices or processors.
本实施例提供了一种基于冗余设备的通信故障检测方法,应用于发送方。图1是根据本申请实施例的一种基于冗余设备的通信故障检测方法的流程图,如图1所示,该方法包括如下步骤:This embodiment provides a communication fault detection method based on redundant equipment, which is applied to a sender. Fig. 1 is a flow chart of a communication failure detection method based on redundant equipment according to an embodiment of the present application. As shown in Fig. 1, the method includes the following steps:
步骤S110,在获取到信息发送指令的情况下,将当前的采样数据和通信状态打包,得到通信数据包。Step S110, if the information sending instruction is obtained, pack the current sampling data and communication status to obtain a communication data packet.
本实施例中的发送方在获取到信息发送指令的情况下,开始与接收方进行通信过程,其中,该信息发送指令可以由发送方内部生成,也可以由外部触发。当前的采样数据为当前系统的电流值和/或电压值,本实施例中会将采样数据和当前的通信状态一起打包,其中,通信状态表示发送方和接收方之间能否正常通信,包括正常和异常两种状态。当前的通信状态由上一个通信周期中发送方与接收方之间的交互得到。进一步地,若当前通信为初始通信,通信状态的初始化值默认为异常,以保证系统的安全运行。In this embodiment, the sender starts the communication process with the receiver after obtaining the information sending instruction, wherein the information sending instruction can be generated internally by the sender or triggered externally. The current sampling data is the current value and/or voltage value of the current system. In this embodiment, the sampling data will be packaged together with the current communication status, wherein the communication status indicates whether the sender and the receiver can communicate normally, including normal and abnormal states. The current communication state is obtained from the interaction between the sender and receiver in the previous communication cycle. Furthermore, if the current communication is the initial communication, the initialization value of the communication state is abnormal by default, so as to ensure the safe operation of the system.
步骤S120,在一个通信周期内,将通信数据包多次发送至接收方,并开始响应周期的计时。Step S120, within a communication cycle, send the communication data packets to the receiver multiple times, and start timing the response cycle.
本实施例中,为了能够及时确认系统中是否存在通信故障,在一个通信周期内,发送 方会将通信数据包连续多次发送至接收方,那么只要有一个通信数据包能够被接收方响应,则说明通信正常,若多个通信数据均包不能被接收方响应,则说明发送方和接收方之间的通信发生故障。In this embodiment, in order to be able to confirm in time whether there is a communication failure in the system, within a communication cycle, the sender will send communication data packets to the receiver multiple times in a row, so as long as there is one communication data packet that can be responded by the receiver, It means that the communication is normal. If multiple communication data packets cannot be responded by the receiver, it means that the communication between the sender and the receiver is faulty.
步骤S130,在响应周期内,根据能否接收到接收方的响应数据,确定下一通信周期中通信数据包的通信状态。Step S130, in the response period, according to whether the receiver's response data can be received, determine the communication status of the communication data packet in the next communication period.
本实施例中设置响应周期,由于考虑到通信网络的带宽以及稳定性,响应周期的时长可以大于或者等于通信周期的时长,避免通信故障的误判。In this embodiment, the response period is set. Considering the bandwidth and stability of the communication network, the duration of the response period may be greater than or equal to the duration of the communication period, so as to avoid misjudgment of communication failures.
通过上述步骤S110至步骤S130,本实施例中的发送方在一个通信周期内,将通信数据包多次发送至接收方,然后根据响应周期内接收方是否返回响应数据来判断二者之间的通信状态,避免了相关技术中,需要多个通信周期才能确认通信故障,节约了通信故障确认的时间,从而解决了相关技术中在发生通信故障的情况下,需要较长的时间才能确认通信故障,从而影响各个设备的运行的问题,实现了通信故障的快速确认。Through the above steps S110 to S130, the sender in this embodiment sends communication data packets to the receiver multiple times within one communication cycle, and then judges the relationship between the two according to whether the receiver returns response data within the response cycle. The communication state avoids the need for multiple communication cycles to confirm the communication fault in the related technology, saves the time for confirming the communication fault, thus solves the problem that in the related technology, it takes a long time to confirm the communication fault in the case of a communication fault , thus affecting the operation of each device, realizing the rapid confirmation of communication failures.
进一步地,在响应周期内,若发送方接收到接收方的响应数据,则说明接收方接收到了该发送方的至少一个正确完整的通信数据包,那么下一通信周期中通信数据包的通信状态为正常,并停止响应周期的计时,避免响应周期超时导致通信故障的误判;在响应周期内,若发送方未接收到接收方的响应数据,则说明该发送方发送的多个通信数据包均未被接收方正确接收,那么下一个通信周期中通信数据包的通信状态为异常。本实施例中,可以根据响应周期内是否接收到响应数据直接判断是否存在通信故障,不用经过多轮的通信确认,节省了通信故障的判断时间,提高通信故障的诊断效率。Further, within the response cycle, if the sender receives the response data from the receiver, it means that the receiver has received at least one correct and complete communication data packet from the sender, and the communication status of the communication data packet in the next communication cycle It is normal, and stop the timing of the response cycle to avoid misjudgment of communication failures caused by the timeout of the response cycle; within the response cycle, if the sender does not receive the response data from the receiver, it means that multiple communication data packets sent by the sender If none of them are correctly received by the receiver, then the communication status of the communication data packet in the next communication cycle is abnormal. In this embodiment, whether there is a communication fault can be directly judged according to whether the response data is received within the response period, without multiple rounds of communication confirmation, which saves the judgment time of the communication fault and improves the diagnosis efficiency of the communication fault.
在其他实施例中,可以在通信状态出现异常的情况下,立即进行通信故障的定位和修复,也可以在连续多个通信状态均为异常的情况下,再进行通信故障的定位和修复。In other embodiments, the communication fault location and repair may be performed immediately when the communication state is abnormal, or the communication fault location and repair may be performed when multiple consecutive communication states are abnormal.
本实施例提供了另一种基于冗余设备的通信故障检测方法。图2是根据本申请实施例的再一种基于冗余设备的通信故障检测方法的流程图,如图2所示,该方法还包括如下步骤:This embodiment provides another communication fault detection method based on redundant equipment. Fig. 2 is a flowchart of another communication failure detection method based on redundant equipment according to an embodiment of the present application. As shown in Fig. 2, the method further includes the following steps:
步骤S210,获取初始采样数据,通过多种校验算法对初始采样数据进行计算,计算后得到多份不同的通信采样数据。In step S210, the initial sampled data is obtained, and the initial sampled data is calculated by using various verification algorithms, and multiple pieces of different communication sampled data are obtained after the calculation.
本实施例中,发送方在获取到信息发送指令之后,并不直接将初始采样数据进行打包,而是先通过不同的校验算法对初始采样数据进行计算,例如,将初始采样数据进行取反,或者直接采用循环冗余校验(Cyclic Redundancy Check,简称为CRC)算法对初始采样数据进行计算,然后得到多份不同的通信采样数据,以确保采样数据在通信传输过程中的完整性。In this embodiment, after the sender obtains the information sending instruction, it does not directly pack the initial sampled data, but first calculates the initial sampled data through different verification algorithms, for example, reverses the initial sampled data , or directly use the Cyclic Redundancy Check (CRC) algorithm to calculate the initial sampling data, and then obtain multiple different communication sampling data to ensure the integrity of the sampling data during communication transmission.
步骤S220,将多份不同的通信采样数据与初始采样数据以及通信状态进行打包,得到通信数据包。In step S220, multiple pieces of different communication sampling data, initial sampling data and communication status are packaged to obtain a communication data packet.
为了能够使得接收方对接收到的不同的采样数据进行校验,在对通信数据包进行打包的过程中,需要将计算后的通信采样数据与初始采样数据均打包。例如,在使用CRC算法的情况下,经过CRC算法计算的采样数据后会增加一段校验码,该校验码根据初始采样数据计算得到,在接收方接收到通信数据包的通信采样数据后,可以根据校验码来判断 接收到的数据是否完整,还可以通过校验码将通信采样数据与初始采样数据进行判断,来确认传输过程是否发生故障。In order to enable the receiver to verify different received sampling data, in the process of packaging communication data packets, it is necessary to package both the calculated communication sampling data and the initial sampling data. For example, in the case of using the CRC algorithm, a check code will be added after the sampling data calculated by the CRC algorithm. The check code is calculated based on the initial sampling data. After the receiver receives the communication sampling data of the communication data packet, Whether the received data is complete can be judged according to the check code, and the communication sampling data and the initial sampling data can also be judged by the check code to confirm whether there is a failure in the transmission process.
步骤S230,在通信周期内,将通信数据包多次发送至接收方。Step S230, within the communication period, send the communication data packets to the receiver for multiple times.
每个发送方都会将多包通信数据包发送至接收方,各个发送方之间,校验算法可以相同也可以不同。Each sender will send multi-packet communication data packets to the receiver, and the verification algorithm may be the same or different between each sender.
通过上述步骤S210至步骤S230,本实施例中将初始采样数据通过多种不同的校验算法计算为不同的通信采样数据,然后进行将通信采样数据与初始采样数据、通信状态一起进行打包传输,可以更有效地验证初始采样数据的完整性。Through the above steps S210 to S230, in this embodiment, the initial sampling data is calculated as different communication sampling data through a variety of different verification algorithms, and then the communication sampling data is packaged and transmitted together with the initial sampling data and communication status. The integrity of the initially sampled data can be verified more efficiently.
在其中一些实施例中,发送方获取信息发送指令包括两种情况:In some of these embodiments, the sender obtains the information sending instruction including two situations:
一种为若采样数据的变化符合预设的信息发送条件,获取信息发送指令。其中,预设的信息发送条件用于判断采样数据的变化是否需要传输至接收方进行处理,具体地,采样数据包括开关量和模拟量,开关量的变化是否满足预设的信息发送条件,根据开关量的变化是否实现了on/off的跳变判断,模拟量的变化是否符合预设的信息发送条件,根据阈值进行判断,该阈值可以根据安全精度设置,通常情况下设置为满量程的1%。因此,本实施例中若采样数据为开关量且开关量的变化使得电路发生on/off之间的跳变,或者采样数据为模拟量且模拟量的变化大于阈值,认为采样数据的变化符合预设的信息发送条件,发送方就可以获取到信息发送指令。在其他实施例中,在采样数据为模拟量时,预设的信息发送条件还可以为模拟量大于或者等于阈值;One is to obtain an information sending instruction if the change of the sampled data meets the preset information sending condition. Among them, the preset information sending condition is used to judge whether the change of the sampled data needs to be transmitted to the receiving party for processing. Specifically, the sampled data includes the switching value and the analog value, and whether the change of the switching value satisfies the preset information sending condition, according to Whether the change of the switching value realizes the jump judgment of on/off, whether the change of the analog value meets the preset information sending conditions, judge according to the threshold value, which can be set according to the safety accuracy, usually set to 1 of the full scale %. Therefore, in this embodiment, if the sampled data is a switching value and the change of the switching value makes the circuit jump between on/off, or the sampled data is an analog value and the change of the analog value is greater than the threshold value, it is considered that the change of the sampled data meets the predetermined value. The sender can obtain the information sending instruction if the information sending condition is set. In other embodiments, when the sampled data is an analog quantity, the preset information sending condition may also be that the analog quantity is greater than or equal to a threshold;
另一种为若采样数据在预设的发送周期内的变化均不符合预设的信息发送条件,在发送周期结束时,获取信息发送指令。如果采样数据的变化在发送周期内均不符合预设的信息发送条件,则为了保证能够及时判断发送方和接收方之间的通信状态,将当前的采样数据进行打包发送至接收方。本实施例中的发送周期可选与响应周期对应设置。The other is that if the change of the sampled data in the preset sending period does not meet the preset information sending condition, at the end of the sending period, obtain the information sending instruction. If the changes in the sampled data do not meet the preset information sending conditions within the sending cycle, in order to ensure that the communication status between the sender and the receiver can be judged in time, the current sampled data is packaged and sent to the receiver. The sending period in this embodiment may be set corresponding to the response period.
本实施例中对采样数据的信息发送条件进行设置,可以避免采样数据的发送频率过高导致通信传输压力大,也可以避免由于采样数据基本不变引起通信频率过低,从而导致通信故障不能被及时发现。In this embodiment, the information sending conditions of the sampled data are set, which can avoid the communication transmission pressure caused by the high frequency of the sampled data, and can also avoid the low communication frequency caused by the basically unchanged sampled data, thus causing the communication failure to be undetected. discovered in time.
在其中一些实施例中,在进行通信数据包的打包过程中,还可以获取发送方的内部故障诊断结果,将内部故障诊断结果、采样数据和通信状态打包,得到通信数据包。其中,内部故障诊断结果为对发送方处理器的故障诊断结果,具体地,发送方的内部诊断包括中央处理器(Central Processing Unit,简称为CPU)信息一致性和内存存取信息一致性的判断,如果存在不一致的情况,则判断发送方内部出现故障,内部诊断还包括CPU运行的硬件故障,例如内存,时钟,电源故障等等。在发送方内部出现故障的情况下,将内部故障诊断结果和采样数据一起打包发送,由接收方根据内部故障诊断结果进行采样数据的选择。进一步地,内部诊断可以通过以下方法实现:内存校验和纠错诊断(Error Checking and Correction,简称为ECC),CPU逻辑诊断(The CPU Self-test Controller,简称为STC),CPU对比模块(CPU Compare Module,简称为CCM)校验,双时钟比较器模块(Dual Clock Comparator Module,简称为DCC)诊断。In some of these embodiments, during the packaging process of the communication data packet, the internal fault diagnosis result of the sender may also be obtained, and the internal fault diagnosis result, sampling data and communication status are packaged to obtain the communication data packet. Among them, the internal fault diagnosis result is the fault diagnosis result of the sender's processor, specifically, the sender's internal diagnosis includes the judgment of the central processing unit (Central Processing Unit, referred to as CPU) information consistency and memory access information consistency , if there is an inconsistency, it is judged that there is a failure inside the sender, and the internal diagnosis also includes hardware failures running on the CPU, such as memory, clock, power failure and so on. In the case of an internal failure of the sender, the internal fault diagnosis result and the sampling data are packaged and sent together, and the receiver selects the sampling data according to the internal fault diagnosis result. Furthermore, the internal diagnosis can be realized by the following methods: memory check and error correction diagnosis (Error Checking and Correction, referred to as ECC), CPU logic diagnosis (The CPU Self-test Controller, referred to as STC), CPU comparison module (CPU Compare Module (referred to as CCM) verification, dual clock comparator module (Dual Clock Comparator Module, referred to as DCC) diagnosis.
进一步,在其他实施例中,内部故障诊断结果还分为多种故障等级,接收方可以根据 故障等级的高低进行采样数据的选择。本实施例中,发送方还将自身的内部故障诊断结果发送至接收方,便于接收方选择更可信的采样数据进行处理。Further, in other embodiments, the internal fault diagnosis results are also divided into multiple fault levels, and the receiver can select the sampling data according to the level of the fault level. In this embodiment, the sender also sends its own internal fault diagnosis results to the receiver, so that the receiver can select more credible sampled data for processing.
本实施例还提供了一种基于冗余设备的通信故障检测方法,应用于接收方。图3是根据本申请实施例的另一种基于冗余设备的通信故障检测方法的流程图,如图3所示,该方法包括如下步骤:This embodiment also provides a communication failure detection method based on redundant equipment, which is applied to the receiver. Fig. 3 is a flow chart of another communication fault detection method based on redundant equipment according to an embodiment of the present application. As shown in Fig. 3, the method includes the following steps:
步骤S310,在一个通信周期内,接收来自同一发送方的多个通信数据包,其中,通信数据包中包括当前的采样数据和发送方的通信状态。Step S310, within one communication cycle, receive multiple communication data packets from the same sender, wherein the communication data packets include the current sampling data and the communication status of the sender.
本申请中的发送方冗余设置,因此一个接收方会接收到来自多个发送方的通信数据包,且在每个通信周期内,每个发送方都会向接收方发送多个通信数据包。The sender redundancy setting in this application means that one receiver will receive communication data packets from multiple senders, and each sender will send multiple communication data packets to the receiver in each communication cycle.
步骤S320,根据通信协议对采样数据进行通信校验,根据采样数据中的数据标识对采样数据进行完整性校验。Step S320, performing communication verification on the sampled data according to the communication protocol, and performing integrity verification on the sampled data according to the data identification in the sampled data.
接收方在接收到通信数据包之后,需要先对其中采样数据进行通信校验和完整性校验,只有在所有的校验都通过之后,才能确定该采样数据是正确完整的。具体地,对于每个发送方的多个通信数据包,可以全部进行校验。After receiving the communication data packet, the receiver needs to perform communication verification and integrity verification on the sampled data. Only after all the verifications are passed, can the sampled data be determined to be correct and complete. Specifically, verification may be performed on all of the multiple communication data packets of each sender.
通信校验为根据内部的通信协议来对接收到的采样数据进行合法性校验,判断采样数据的通信过程是否符合通信协议的格式规定,完整性校验即为根据采样数据中的数据标识判断采样数据经过通信传输之后是否完整,其中,数据标识可以用来表示采样数据的编号,该编号可以表示采样数据的顺序,进一步地,数据标识还可以表示采样数据具体来源于哪一个发送方,数据标识还可以显示总的采样数据量。进一步地,本实施例中的完整性校验可以根据CRC校验实现。Communication verification is to verify the validity of the received sampling data according to the internal communication protocol, and judge whether the communication process of the sampling data conforms to the format of the communication protocol. The integrity verification is to judge according to the data identification in the sampling data Whether the sampled data is complete after communication transmission. Among them, the data identifier can be used to indicate the number of the sampled data, which can indicate the order of the sampled data. Further, the data identifier can also indicate which sender the sampled data comes from. The logo can also show the total amount of sampled data. Further, the integrity check in this embodiment can be implemented based on CRC check.
步骤S330,根据通信校验和完整性校验的结果判断是否生成响应数据,在生成响应数据的情况下,在预设的响应周期内,将响应数据发送至所有发送方。Step S330, judging whether to generate response data according to the results of the communication verification and integrity verification, and sending the response data to all senders within a preset response period if the response data is generated.
在获取到的采样数据通过通信校验和完整性校验之后,即可判断接收方接到了正确完整的数据,然后接收方向发送方发送响应数据,在通信校验和完整性校验中有一个不能通过时,则认为通信状态异常,不生成响应数据,避免系统在被恶意攻击的情况下,频繁发送数据导致崩溃。本实施例中,可以直接将“正常”作为响应数据发送至发送方。进一步地,响应数据的发送应在响应周期内,才能确认通信状态是正常的。After the acquired sampling data has passed the communication check and integrity check, it can be judged that the receiver has received correct and complete data, and then the receiver sends response data to the sender. There is one in the communication check and integrity check If it fails to pass, it is considered that the communication status is abnormal, and no response data is generated, so as to prevent the system from frequently sending data and causing a crash when it is maliciously attacked. In this embodiment, "normal" can be directly sent to the sender as the response data. Further, the sending of the response data should be within the response period to confirm that the communication status is normal.
本实施例中,对于同一个发送方,接收方可以仅响应一个通信数据包,也可以对每个通信数据包都进行响应。In this embodiment, for the same sender, the receiver may only respond to one communication data packet, or may respond to each communication data packet.
通过上述步骤S310至步骤S330,本实施例中接收方在一个通信周期内,接收到同一个发送方的多个通信数据包,通过对一个通信周期中的多个通信数据包中的采样数据进行验证和响应,即可判断当前发送方与接收方之间的通信状态,避免了相关技术中,需要多个通信周期才能确认通信故障,节约了通信故障确认的时间,从而解决了相关技术中在发生通信故障的情况下,需要较长的时间才能确认通信故障,从而影响各个设备的运行的问题,实现了通信故障的快速确认。Through the above steps S310 to S330, the receiving party in this embodiment receives multiple communication data packets from the same sender within one communication cycle, and performs sampling data in multiple communication data packets in one communication cycle. Verification and response can determine the current communication status between the sender and the receiver, avoiding the need for multiple communication cycles in the related technology to confirm the communication failure, saving the time for communication failure confirmation, thus solving the problem in the related technology In the case of a communication failure, it takes a long time to confirm the communication failure, which affects the operation of each device, and realizes the rapid confirmation of the communication failure.
在其中一些实施例中,对采样数据进行通信校验和完整性校验之后,还需要根据各个通信数据包的数据包标识对多个通信数据包进行筛选,具体地,数据包标识可以根据通信 数据包的源地址和序号信息得到,本实施例中,若接收方接收到同一发送方的多个通信数据包,由于仅需要对一个通信数据包中的数据进行处理,所以需要对同一发送方的多个通信数据包进行筛选过滤,需要说明的是,同一发送方发送的相同的采样数据,其源地址和序号信息均相同。In some of these embodiments, after the communication verification and integrity verification are performed on the sampled data, multiple communication data packets need to be screened according to the data packet identification of each communication data packet. Specifically, the data packet identification can be based on the communication The source address and serial number information of the data packet are obtained. In this embodiment, if the receiving party receives multiple communication data packets from the same sender, since it only needs to process the data in one communication data packet, it is necessary to process the data from the same sender. It should be noted that the same sampling data sent by the same sender has the same source address and sequence number information.
由于本申请中的发送方冗余设置,所以在筛选过滤之后,仍可能存在多个符合要求的通信数据包,所以需要根据与发送方对应的接收周期的计时,以及通信数据包中的通信状态,在通过筛选的通信数据包中选择目标通信数据包,其中,接收周期与响应周期对应设置,接收到的采样数据需在预设的接收周期内获取到。最后,接收方对选择得到的目标通信数据包中的数据进行处理。Due to the redundant setting of the sender in this application, after screening and filtering, there may still be multiple communication data packets that meet the requirements, so it needs to be based on the timing of the receiving cycle corresponding to the sender and the communication status in the communication data packets , select the target communication data packet from the communication data packets that have passed the screening, wherein the receiving period and the response period are set correspondingly, and the received sampling data must be obtained within the preset receiving period. Finally, the receiver processes the data in the selected target communication data packet.
本实施例中,接收方对获取到的所有的通信数据包进行筛选和过滤,避免由于处理多个通信数据包而造成大量的资源浪费。In this embodiment, the receiver screens and filters all the acquired communication data packets, so as to avoid a large waste of resources caused by processing multiple communication data packets.
在其中一些实施例中,根据与发送方对应的接收周期的计时,以及通信状态,在通过筛选的通信数据包中选择目标通信数据包包括以下之一:In some of these embodiments, according to the timing of the receiving cycle corresponding to the sender and the communication state, selecting the target communication data packet from the communication data packets that pass the screening includes one of the following:
在与发送方对应的接收周期的计时未超时,且通信数据包中的通信状态为正常的情况下,说明上一个通信周期选中的发送方仍然正常工作,则选择上一个通信周期中的发送方在当前通信周期发送的通信数据包作为目标通信数据包;If the timing of the receiving cycle corresponding to the sender has not timed out, and the communication status in the communication data packet is normal, it means that the sender selected in the previous communication cycle is still working normally, then select the sender in the previous communication cycle The communication data packet sent in the current communication cycle is used as the target communication data packet;
在与发送方对应的接收周期的计时已超时,或者通信数据包中的通信状态为异常的情况下,说明上一个通信周期中选中的发送方出现通信故障,则切换发送方,选择与上一个通信周期中的发送方不同的备用发送方在当前通信周期发送的通信数据包作为目标通信数据包,其中,备用发送方的通信状态应为正常,由于本申请中的发送方冗余设置,所以在一个发送方的通信状态异常时,可以采用备用发送方进行通信;When the timing of the receiving cycle corresponding to the sender has timed out, or the communication status in the communication data packet is abnormal, it means that the sender selected in the previous communication cycle has a communication failure, then switch the sender and select the same as the previous one. The communication data packet sent by the backup sender with different senders in the communication cycle in the current communication cycle is used as the target communication data packet, wherein the communication status of the backup sender should be normal, due to the redundant setting of the sender in this application, so When the communication status of one sender is abnormal, the backup sender can be used for communication;
在所有与发送方对应的接收周期的计时已超时,且通信数据包中的通信状态均为异常的情况下,说明所有的发送方均出现通信故障,此时接收方获取预设的故障安全值构成目标通信数据包。其中,故障安全值为在通信故障下,能够使得整个系统可以正常运行的安全值。When the timing of all receiving cycles corresponding to the sender has timed out, and the communication status in the communication data packet is abnormal, it means that all senders have communication failures, and the receiver obtains the preset failsafe value at this time Constitute the target communication data packet. Wherein, the failsafe value is a safe value that can make the entire system operate normally under communication failure.
本实施例中在选择目标通信数据包时,可以先根据通信状态和接收周期判断是否需要切换目标通信数据包的发送方,在所有的发送方均通信故障的情况下,则需要获取故障安全值保证系统运行。所以本实施例基于冗余设置的发送方以及预设的故障安全值,避免了由于通信故障导致的系统瘫痪。In this embodiment, when selecting the target communication data packet, it is first possible to judge whether it is necessary to switch the sender of the target communication data packet according to the communication state and the receiving cycle. Keep the system running. Therefore, this embodiment avoids system breakdown due to communication failures based on redundantly configured senders and preset fail-safe values.
进一步地,由于多个发送方同时向接收方发送数据,所以在切换通信数据包的发送方时,可以直接获取到能够正常工作的发送方的数据,减少切换发送方造成的时间延迟。Furthermore, since multiple senders send data to the receiver at the same time, when the sender of the communication data packet is switched, the data of the sender that can work normally can be obtained directly, reducing the time delay caused by switching the sender.
本实施例还提供了一种基于冗余设备的通信故障检测方法,应用于多个发送方和一个接收方。图4是根据本申请实施例的又一种基于冗余设备的通信故障检测方法的流程图,如图4所示,该方法包括如下步骤:This embodiment also provides a communication failure detection method based on redundant equipment, which is applied to multiple senders and one receiver. Fig. 4 is a flowchart of another communication failure detection method based on redundant equipment according to an embodiment of the present application. As shown in Fig. 4, the method includes the following steps:
步骤S410,每个发送方在获取到信息发送指令的情况下,将当前的采样数据和通信状态打包,得到通信数据包;Step S410, each sender packs the current sampling data and communication status to obtain a communication data packet after obtaining the information sending instruction;
步骤S420,每个发送方在一个通信周期内,将通信数据包多次发送至接收方,并开始 响应周期的计时;Step S420, each sender sends the communication data packet to the receiver multiple times within a communication cycle, and starts the timing of the response cycle;
步骤S430,接收方在一个通信周期内,接收来自每个发送方的多个通信数据包;Step S430, the receiving party receives a plurality of communication data packets from each sending party within one communication cycle;
步骤S440,接收方根据通信协议对采样数据进行通信校验,根据采样数据中的数据标识对采样数据进行完整性校验;根据通信校验和完整性校验的结果判断是否生成响应数据,在生成响应数据的情况下,在预设的响应周期内,将响应数据发送至所有发送方;Step S440, the receiver performs communication verification on the sampled data according to the communication protocol, and performs integrity verification on the sampled data according to the data identifier in the sampled data; judges whether to generate response data according to the results of the communication verification and integrity verification, and then In the case of generating response data, send the response data to all senders within the preset response period;
步骤S450,每个发送方在响应周期内,根据能否接收到接收方的响应数据,确定下一通信周期中通信数据包的通信状态。Step S450, within the response period, each sender determines the communication status of the communication data packet in the next communication period according to whether it can receive the response data from the receiver.
通过上述步骤S410至步骤S450,本实施例中的每个发送方均在一个通信周期内将通信数据包多次发送至接收方,接收方接收到同一个发送方的多个通信数据包后,通过对一个通信周期中的多个通信数据包中的采样数据进行验证和响应,然后发送方根据响应周期内能否接收到响应数据来判断二者之间的通信状态,避免了相关技术中,需要多个通信周期才能确认通信故障,节约了通信故障确认的时间,从而解决了相关技术中在发生通信故障的情况下,需要较长的时间才能确认通信故障,从而影响各个设备的运行的问题,实现了通信故障的快速高效确认。Through the above steps S410 to S450, each sender in this embodiment sends communication data packets to the receiver multiple times within one communication cycle, and after the receiver receives multiple communication data packets from the same sender, By verifying and responding to the sampling data in multiple communication data packets in a communication cycle, and then the sender judges the communication status between the two according to whether the response data can be received in the response cycle, avoiding the related technology, Multiple communication cycles are required to confirm the communication fault, which saves the time for confirming the communication fault, thereby solving the problem in the related art that it takes a long time to confirm the communication fault in the event of a communication fault, thereby affecting the operation of each device. , realizing fast and efficient confirmation of communication faults.
以下通过可选实施例对本申请中的方案进行说明,本实施例中发送方设置为两个,每个发送方在一个通信周期内将通信数据包发送三次。The solution in this application is described below through an optional embodiment. In this embodiment, there are two senders, and each sender sends the communication data packet three times in one communication cycle.
具体地,发送方的处理过程如下:Specifically, the process of the sender is as follows:
步骤11,发送方获取到信息发送指令的情况下,将自身的通信状态和采样数据一起打包;Step 11, when the sender obtains the information sending instruction, it packs its own communication status and sampling data together;
步骤12,发送方将打包好的通信数据包,连续3次发送至接收方,同时启动响应超时定时器,开始响应周期的计时;Step 12, the sender sends the packaged communication data packets to the receiver for 3 consecutive times, and at the same time starts the response timeout timer, and starts the timing of the response cycle;
步骤13,发送方在响应超时定时器超时前若接收到来自接收方的一包响应数据,则认为当前通信状态正常,同时关闭响应超时定时器;否则置当前通信状态为异常,并在下一个通信周期中,告知接收方。Step 13, if the sender receives a packet of response data from the receiver before the response timeout timer expires, it will consider the current communication status to be normal, and close the response timeout timer; otherwise, set the current communication status as abnormal and start the next communication cycle, inform the receiver.
接收方的处理过程如下:The receiver's process is as follows:
步骤21,接收方接收来自两个发送方的所有通信数据包;Step 21, the receiver receives all communication data packets from the two senders;
步骤22,接收方对通信数据包进行通信校验和完整性校验,校验结束后,若通信数据包校验通过,接收方启动接收超时定时器以进行接收周期的计时,检测下一个通信周期中的通信数据包是否超时,并发送当前通信周期的响应数据至发起方;若当前通信周期中,通信数据包到达的时间未超过接收超时定时器的计时,则认为接收超时状态正常,否则,认为接收超时状态异常;Step 22, the receiving party performs communication verification and integrity verification on the communication data packet. After the verification is completed, if the communication data packet verification is passed, the receiving party starts the receiving timeout timer to time the receiving cycle and detect the next communication Whether the communication data packets in the cycle time out, and send the response data of the current communication cycle to the initiator; if the communication data packet arrives within the time of the receiving timeout timer in the current communication cycle, it is considered that the receiving timeout state is normal, otherwise , it is considered that the receiving timeout state is abnormal;
步骤23,对通过通信校验和完整性校验的通信数据包,接收方再根据包括地址和数据包序号的数据包标识,对通信数据包进行过滤,同时选择一个发送方的通信数据包进行计算。Step 23, for the communication data packets that have passed the communication verification and integrity verification, the receiver then filters the communication data packets according to the data packet identification including the address and the data packet sequence number, and simultaneously selects a communication data packet of the sender for processing. calculate.
表1是根据本申请实施例的通信数据包选择表,如表1所示,两个发送方分别以左侧卡和右侧卡表示。Table 1 is a communication data packet selection table according to the embodiment of the present application. As shown in Table 1, the two senders are represented by left and right cards respectively.
表1Table 1
Figure PCTCN2021117690-appb-000001
Figure PCTCN2021117690-appb-000001
通常情况下,若通信状态均正常,维持一个发送方作为数据源使用;在只有一个通信数据包的通信状态正常的情况下,选择通信状态正常的发送方作为数据源使用;在发送方的通信状态均为故障的情况下,获取预设的故障安全值进行处理。Normally, if the communication status is normal, maintain one sender as the data source; when only one communication data packet has normal communication status, select the sender with normal communication status as the data source; in the communication of the sender If the status is all faults, obtain the preset fail-safe value for processing.
本实施例中每个发送方均在一个通信周期内,将通信数据包多次发送至接收方,接收方接收到同一个发送方的多个通信数据包后,通过对一个通信周期中的多个通信数据包中的采样数据进行验证和响应,然后发送方根据响应周期内接收方返回的响应数据来判断二者之间的通信状态,即可高效快速地判断当前发送方与接收方之间的通信状态。In this embodiment, each sender sends communication data packets to the receiver multiple times within one communication cycle, and after receiving multiple communication data packets from the same The sampling data in each communication data packet is verified and responded, and then the sender judges the communication status between the two according to the response data returned by the receiver within the response period, which can efficiently and quickly judge the current relationship between the sender and the receiver. communication status.
需要说明的是,在上述流程中或者附图的流程图中示出的步骤可以在诸如一组计算机可执行指令的计算机系统中执行,并且,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。It should be noted that the steps shown in the above flow or in the flow chart of the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions, and although a logical order is shown in the flow chart, the In some cases, the steps shown or described may be performed in an order different from that herein.
本申请提供的方法实施例可以在终端、计算机或者类似的运算装置中执行。以运行在终端上为例,图5为本申请实施例的基于冗余设备的通信故障检测方法的终端的硬件结构框图。如图5所示,终端50可以包括一个或多个(图5中仅示出一个)处理器502(处理器502可以包括但不限于微处理器MCU或可编程逻辑器件FPGA等的处理装置)和用于存储数据的存储器504,可选地,上述终端还可以包括用于通信功能的传输设备506以及输入输出设备508。本领域普通技术人员可以理解,图5所示的结构仅为示意,其并不对上述终端的结构造成限定。例如,终端50还可包括比图5中所示更多或者更少的组件,或者具有与图5所示不同的配置。The method embodiments provided in this application can be executed in a terminal, a computer or a similar computing device. Taking running on a terminal as an example, FIG. 5 is a block diagram of a hardware structure of a terminal in a method for detecting a communication failure based on a redundant device according to an embodiment of the present application. As shown in FIG. 5, the terminal 50 may include one or more (only one is shown in FIG. 5) processors 502 (the processors 502 may include but not limited to processing devices such as microprocessor MCU or programmable logic device FPGA, etc.) and a memory 504 for storing data. Optionally, the terminal may further include a transmission device 506 and an input and output device 508 for communication functions. Those of ordinary skill in the art may understand that the structure shown in FIG. 5 is only for illustration, and does not limit the structure of the above-mentioned terminal. For example, the terminal 50 may also include more or fewer components than those shown in FIG. 5, or have a different configuration than that shown in FIG.
存储器504可用于存储控制程序,例如,应用软件的软件程序以及模块,如本申请实施例中的基于冗余设备的通信故障检测方法对应的控制程序,处理器502通过运行存储在存储器504内的控制程序,从而执行各种功能应用以及数据处理,即实现上述的方法。存储器504可包括高速随机存储器,还可包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其他非易失性固态存储器。在一些实例中,存储器504可进一步包括相对于处理器502远程设置的存储器,这些远程存储器可以通过网络连接至终端50。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory 504 can be used to store control programs, for example, software programs and modules of application software, such as the control program corresponding to the communication fault detection method based on redundant equipment in the embodiment of the present application, the processor 502 runs the stored in the memory 504 The control program executes various functional applications and data processing, that is, realizes the above-mentioned method. The memory 504 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 504 may further include a memory that is remotely located relative to the processor 502, and these remote memories may be connected to the terminal 50 through a network. Examples of the aforementioned networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
传输设备506用于经由一个网络接收或者发送数据。上述的网络具体实例可包括终端50的通信供应商提供的无线网络。在一个实例中,传输设备506包括一个网络适配器(Network Interface Controller,简称为NIC),其可通过基站与其他网络设备相连从而可与互联网进行通讯。在一个实例中,传输设备506可以为射频(Radio Frequency,简称为RF)模块,其用于通过无线方式与互联网进行通讯。 Transmission device 506 is used to receive or transmit data via a network. The specific example of the above network may include a wireless network provided by the communication provider of the terminal 50 . In one example, the transmission device 506 includes a network adapter (Network Interface Controller, NIC for short), which can be connected to other network devices through a base station so as to communicate with the Internet. In an example, the transmission device 506 may be a radio frequency (Radio Frequency, referred to as RF) module, which is used to communicate with the Internet in a wireless manner.
本实施例还提供了一种基于冗余设备的通信故障检测设备,该设备用于实现上述实施例及可选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”、“单元”、“子单元”等可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。This embodiment also provides a communication failure detection device based on a redundant device, which is used to implement the above embodiments and optional implementation modes, and those that have already been described will not be described again. As used below, the terms "module", "unit", "subunit" and the like may be a combination of software and/or hardware that realize a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, implementations in hardware, or a combination of software and hardware are also possible and contemplated.
本实施例中提供的通信故障检测设备作为发送方使用,图6是根据本申请实施例的一种基于冗余设备的通信故障检测设备的结构框图,如图6所示,该设备包括打包模块61、发送模块62和响应模块63:The communication fault detection device provided in this embodiment is used as a sender. FIG. 6 is a structural block diagram of a communication fault detection device based on redundant devices according to an embodiment of the present application. As shown in FIG. 6 , the device includes a packaging module 61. Sending module 62 and response module 63:
打包模块61,用于在获取到信息发送指令的情况下,将当前的采样数据和通信状态打包,得到通信数据包; Packing module 61, used to pack the current sampling data and communication status to obtain a communication data packet when the information sending instruction is obtained;
发送模块62,用于在一个通信周期内,将通信数据包多次发送至接收方,并开始响应周期的计时;The sending module 62 is used to send the communication data packet to the receiver multiple times within one communication cycle, and start the timing of the response cycle;
响应模块63,用于在响应周期内,根据能否接收到接收方的响应数据,确定下一通信周期中通信数据包的通信状态。The response module 63 is configured to determine the communication status of the communication data packet in the next communication cycle according to whether the receiver's response data can be received within the response cycle.
本实施例中发送方在一个通信周期内,通过打包模块61实现通信数据包的打包,然后通过发送模块62将通信数据包多次发送至接收方,最后通过响应模块63根据响应周期内能否接收到响应数据来判断发送方和接收方之间的通信状态,避免了相关技术中,需要多个通信周期才能确认通信故障,节约了通信故障确认的时间,从而解决了相关技术中在发生通信故障的情况下,需要较长的时间才能确认通信故障,从而影响各个设备的运行的问题,实现了通信故障的快速确认。In this embodiment, the sender realizes the packaging of the communication data packets through the packaging module 61 within a communication cycle, then sends the communication data packets to the receiver multiple times through the sending module 62, and finally passes the response module 63 according to whether the communication data packets can be sent in the response cycle. The response data is received to judge the communication status between the sender and the receiver, which avoids the need for multiple communication cycles to confirm the communication failure in the related technology, saves the time for confirming the communication failure, and thus solves the problem of communication failure in the related technology. In the case of a fault, it takes a long time to confirm the communication fault, which affects the operation of each device, and realizes the rapid confirmation of the communication fault.
本实施例中提供的通信故障检测设备作为接收方使用,图7是根据本申请实施例的再一种基于冗余设备的通信故障检测设备的结构框图,如图7所示,该设备包括接收模块71、校验模块72和反馈模块73:The communication fault detection device provided in this embodiment is used as a receiver. FIG. 7 is a structural block diagram of another communication fault detection device based on redundant devices according to an embodiment of the present application. As shown in FIG. 7 , the device includes a receiver Module 71, checking module 72 and feedback module 73:
接收模块71,用于在一个通信周期内,接收来自同一发送方的多个通信数据包,其中,通信数据包中包括当前的采样数据和发送方的通信状态;The receiving module 71 is configured to receive a plurality of communication data packets from the same sender within one communication cycle, wherein the communication data packets include the current sampling data and the communication status of the sender;
校验模块72,用于根据通信协议对采样数据进行通信校验,根据采样数据中的数据标识对采样数据进行完整性校验;The verification module 72 is used for performing communication verification on the sampled data according to the communication protocol, and performing integrity verification on the sampled data according to the data identifier in the sampled data;
反馈模块73,用于根据通信校验和完整性校验的结果判断是否生成响应数据,在生成响应数据的情况下,在预设的响应周期内,将响应数据发送至所有发送方。The feedback module 73 is configured to judge whether to generate response data according to the results of the communication check and the integrity check, and send the response data to all senders within a preset response period if the response data is generated.
本实施例中接收方在一个通信周期内,通过接收模块71接收到同一个发送方的多个通信数据包,通过校验模块72对一个通信周期中的多个通信数据包中的采样数据进行验证,最后通过反馈模块73完成对发送方的响应,以判断当前发送方与接收方之间的通信状态,避免了相关技术中,需要多个通信周期才能确认通信故障,节约了通信故障确认的时间,从而解决了相关技术中在发生通信故障的情况下,需要较长的时间才能确认通信故障,从而影响各个设备的运行的问题,实现了通信故障的快速确认。In this embodiment, the receiving party receives multiple communication data packets of the same sender through the receiving module 71 within one communication cycle, and the sampling data in the multiple communication data packets in one communication cycle is checked by the verification module 72. Verify, and finally complete the response to the sender through the feedback module 73 to judge the current communication status between the sender and the receiver, avoiding the need for multiple communication cycles in the related art to confirm the communication fault, saving the time for confirming the communication fault Time, thereby solving the problem in the related art that it takes a long time to confirm the communication failure in the case of a communication failure, thereby affecting the operation of each device, and realizing the rapid confirmation of the communication failure.
图8是根据本申请实施例的一种基于冗余设备的通信故障检测系统的结构框图,如图8所示,该系统包括多个发送方81和一个接收方82:FIG. 8 is a structural block diagram of a communication failure detection system based on redundant equipment according to an embodiment of the present application. As shown in FIG. 8, the system includes multiple senders 81 and a receiver 82:
每个发送方81在获取到信息发送指令的情况下,将当前的采样数据和通信状态打包,得到通信数据包;Each sender 81 packs the current sampling data and communication status to obtain a communication data packet when the information sending instruction is obtained;
每个发送方81在一个通信周期内,将通信数据包多次发送至接收方82,并开始响应周期的计时;Each sender 81 sends the communication data packet to the receiver 82 multiple times within a communication cycle, and starts the timing of the response cycle;
接收方82在一个通信周期内,接收来自每个发送方81的多个通信数据包;The receiver 82 receives a plurality of communication data packets from each sender 81 within a communication cycle;
接收方82根据通信协议对采样数据进行通信校验,根据采样数据中的数据标识对采样数据进行完整性校验;根据通信校验和完整性校验的结果判断是否生成响应数据,在生成响应数据的情况下,在预设的响应周期内,将响应数据发送至所有发送方81; Receiver 82 carries out communication verification to sampling data according to communication protocol, carries out integrity verification to sampling data according to the data mark in sampling data; Judging whether to generate response data according to the result of communication verification and integrity verification, generates response In the case of data, send the response data to all senders 81 within the preset response period;
每个发送方81在响应周期内,根据能否接收到接收方82的响应数据,确定下一通信周期中通信数据包的通信状态。Each sender 81 determines the communication status of the communication data packet in the next communication cycle according to whether it can receive the response data from the receiver 82 within the response cycle.
本实施例中的每个发送方81均在一个通信周期内,将通信数据包多次发送至接收方82,接收方82接收到同一个发送方81的多个通信数据包后,通过对一个通信周期中的多个通信数据包中的采样数据进行验证和响应,然后发送方81根据响应周期内接收方82返回的响应数据来判断二者之间的通信状态,即可判断当前发送方81与接收方82之间的通信状态,避免了相关技术中,需要多个通信周期才能确认通信故障,节约了通信故障确认的时间,从而解决了相关技术中在发生通信故障的情况下,需要较长的时间才能确认通信故障,从而影响各个设备的运行的问题,实现了通信故障的快速高效确认。In this embodiment, each sender 81 sends the communication data packet to the receiver 82 multiple times in one communication cycle, and after the receiver 82 receives a plurality of communication data packets from the same sender 81, it sends a Sampling data in a plurality of communication data packets in the communication cycle is verified and responded, and then the sender 81 judges the communication state between the two according to the response data returned by the receiver 82 in the response cycle, and the current sender 81 can be judged. The communication state with the receiver 82 avoids the need for multiple communication cycles in the related art to confirm the communication failure, saves the time for confirming the communication failure, and thus solves the problem of communication failure in the related art. It takes a long time to confirm the communication failure, which affects the operation of each device, and realizes the fast and efficient confirmation of communication failure.
需要说明的是,上述各个模块可以是功能模块也可以是程序模块,既可以通过软件来实现,也可以通过硬件来实现。对于通过硬件来实现的模块而言,上述各个模块可以位于同一处理器中;或者上述各个模块还可以按照任意组合的形式分别位于不同的处理器中。It should be noted that each of the above-mentioned modules may be a function module or a program module, and may be realized by software or by hardware. For the modules implemented by hardware, the above modules may be located in the same processor; or the above modules may be located in different processors in any combination.
本实施例还提供了一种电子装置,包括存储器和处理器,该存储器中存储有计算机程序,该处理器被设置为运行计算机程序以执行上述任一项方法实施例中的步骤。This embodiment also provides an electronic device, including a memory and a processor, where a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
可选地,上述电子装置还可以包括传输设备以及输入输出设备,其中,该传输设备和上述处理器连接,该输入输出设备和上述处理器连接。Optionally, the above-mentioned electronic device may further include a transmission device and an input-output device, wherein the transmission device is connected to the above-mentioned processor, and the input-output device is connected to the above-mentioned processor.
可选地,在本实施例中,上述处理器可以被设置为通过计算机程序执行以下步骤:Optionally, in this embodiment, the above-mentioned processor may be configured to execute the following steps through a computer program:
S11,在获取到信息发送指令的情况下,将当前的采样数据和通信状态打包,得到通信数据包。S11. Packing the current sampled data and communication status to obtain a communication data packet when the information sending instruction is obtained.
S12,在一个通信周期内,将通信数据包多次发送至接收方,并开始响应周期的计时。S12. In one communication cycle, send the communication data packets to the receiver multiple times, and start timing the response cycle.
S13,在响应周期内,根据能否接收到接收方的响应数据,确定下一通信周期中通信数据包的通信状态。S13. In the response cycle, determine the communication status of the communication data packet in the next communication cycle according to whether the response data from the receiver can be received.
可选地,在本实施例中,上述处理器还可以被设置为通过计算机程序执行以下步骤:Optionally, in this embodiment, the above-mentioned processor may also be configured to execute the following steps through a computer program:
S21,在一个通信周期内,接收来自同一发送方的多个通信数据包,其中,通信数据包中包括当前的采样数据和发送方的通信状态;S21, within a communication cycle, receive multiple communication data packets from the same sender, wherein the communication data packets include the current sampling data and the communication status of the sender;
S22,根据通信协议对采样数据进行通信校验,根据采样数据中的数据标识对采样数 据进行完整性校验;S22, performing communication verification on the sampled data according to the communication protocol, and performing integrity verification on the sampled data according to the data identifier in the sampled data;
S23,根据通信校验和完整性校验的结果判断是否生成响应数据,在生成响应数据的情况下,在预设的响应周期内,将响应数据发送至所有发送方。S23, judging whether to generate response data according to the results of the communication verification and integrity verification, and sending the response data to all senders within a preset response period if the response data is generated.
需要说明的是,本实施例中的具体示例可以参考上述实施例及可选实施方式中所描述的示例,本实施例在此不再赘述。It should be noted that, for specific examples in this embodiment, reference may be made to the examples described in the foregoing embodiments and optional implementation manners, and details will not be repeated in this embodiment.
另外,结合上述实施例中的基于冗余设备的通信故障检测方法,本申请实施例可提供一种存储介质来实现。该存储介质上存储有计算机程序;该计算机程序被处理器执行时实现上述实施例中的任意一种基于冗余设备的通信故障检测方法。In addition, in combination with the redundant device-based communication fault detection method in the foregoing embodiments, the embodiments of the present application may provide a storage medium for implementation. A computer program is stored on the storage medium; when the computer program is executed by the processor, any method for detecting a communication fault based on a redundant device in the above embodiments is implemented.
以上所述实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。The technical features of the above-mentioned embodiments can be combined arbitrarily. To make the description concise, all possible combinations of the technical features in the above-mentioned embodiments are not described. However, as long as there is no contradiction in the combination of these technical features, should be considered as within the scope of this specification.
以上所述实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对申请专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请专利的保护范围应以所附权利要求为准。The above-mentioned embodiments only express several implementation modes of the present application, and the description thereof is relatively specific and detailed, but should not be construed as limiting the scope of the patent application. It should be noted that those skilled in the art can make several modifications and improvements without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the scope of protection of the patent application should be based on the appended claims.

Claims (14)

  1. 一种基于冗余设备的通信故障检测方法,其特征在于,应用于发送方,所述方法包括:A communication failure detection method based on redundant equipment, characterized in that it is applied to the sender, and the method includes:
    在获取到信息发送指令的情况下,将当前的采样数据和通信状态打包,得到通信数据包;When the information sending instruction is obtained, the current sampling data and communication status are packaged to obtain a communication data packet;
    在一个通信周期内,将所述通信数据包多次发送至接收方,并开始响应周期的计时;In a communication cycle, the communication data packet is sent to the receiver multiple times, and the timing of the response cycle is started;
    在所述响应周期内,根据能否接收到所述接收方的响应数据,确定下一通信周期中通信数据包的通信状态。In the response period, according to whether the receiver's response data can be received, the communication status of the communication data packet in the next communication period is determined.
  2. 根据权利要求1所述的基于冗余设备的通信故障检测方法,其特征在于,在一个通信周期内,将所述通信数据包多次发送至接收方包括:The communication failure detection method based on redundant equipment according to claim 1, wherein, within one communication cycle, sending the communication data packet to the receiver multiple times comprises:
    获取初始采样数据,通过多种校验算法对所述初始采样数据进行计算,计算后得到多份不同的通信采样数据;Obtaining initial sampling data, calculating the initial sampling data through various verification algorithms, and obtaining multiple different communication sampling data after calculation;
    将所述多份不同的通信采样数据与所述初始采样数据以及所述通信状态进行打包,得到所述通信数据包;Packing the plurality of different communication sampling data, the initial sampling data and the communication state to obtain the communication data packet;
    在所述通信周期内,将所述通信数据包多次发送至所述接收方。In the communication period, the communication data packet is sent to the receiver multiple times.
  3. 根据权利要求1所述的基于冗余设备的通信故障检测方法,其特征在于,获取所述信息发送指令包括以下之一:The communication fault detection method based on redundant equipment according to claim 1, wherein obtaining the information sending instruction comprises one of the following:
    若所述采样数据的变化符合预设的信息发送条件,获取所述信息发送指令;If the change of the sampled data meets the preset information sending condition, acquire the information sending instruction;
    若所述采样数据在预设的发送周期内的变化均不符合预设的信息发送条件,在所述发送周期结束时,获取所述信息发送指令。If none of the changes in the sampled data within the preset sending period meet the preset information sending condition, the information sending instruction is acquired at the end of the sending period.
  4. 根据权利要求1所述的基于冗余设备的通信故障检测方法,其特征在于,所述在获取到信息发送指令的情况下,将当前的采样数据和通信状态打包,得到通信数据包还包括:The communication failure detection method based on redundant equipment according to claim 1, wherein, in the case of obtaining the information sending instruction, packaging the current sampling data and communication status, and obtaining the communication data packet also includes:
    获取内部故障诊断结果,将所述内部故障诊断结果、所述采样数据和所述通信状态打包,得到通信数据包。Obtain an internal fault diagnosis result, pack the internal fault diagnosis result, the sampling data, and the communication status to obtain a communication data packet.
  5. 根据权利要求1所述的基于冗余设备的通信故障检测方法,其特征在于,所述在所述响应周期内,根据能否接收到所述接收方的响应数据,确定下一通信周期中通信数据包的通信状态包括:The communication fault detection method based on redundant equipment according to claim 1, wherein, in the response period, according to whether the response data of the receiver can be received, determine whether the communication failure in the next communication period The communication status of the packet includes:
    在所述响应周期内,若接收到所述接收方的响应数据,则下一通信周期中通信数据包的通信状态为正常,并停止所述响应周期的计时;In the response period, if the response data of the receiver is received, the communication status of the communication data packet in the next communication period is normal, and the timing of the response period is stopped;
    在所述响应周期内,若未接收到所述接收方的响应数据,则下一通信周期中通信数据包的通信状态为异常。In the response period, if no response data from the receiver is received, the communication status of the communication data packet in the next communication period is abnormal.
  6. 一种基于冗余设备的通信故障检测方法,其特征在于,应用于接收方,所述方法包括:A communication failure detection method based on redundant equipment, characterized in that it is applied to the receiver, and the method includes:
    在一个通信周期内,接收来自同一发送方的多个通信数据包,其中,所述通信数据包中包括当前的采样数据和所述发送方的通信状态;Within a communication cycle, receiving multiple communication data packets from the same sender, wherein the communication data packets include the current sampling data and the communication status of the sender;
    根据通信协议对所述采样数据进行通信校验,根据所述采样数据中的数据标识对所述采样数据进行完整性校验;Performing a communication check on the sampled data according to a communication protocol, and performing an integrity check on the sampled data according to a data identifier in the sampled data;
    根据所述通信校验和所述完整性校验的结果判断是否生成响应数据,在生成所述响应数据的情况下,在预设的响应周期内,将所述响应数据发送至所有所述发送方。According to the results of the communication check and the integrity check, it is judged whether to generate response data, and if the response data is generated, within the preset response period, the response data is sent to all the sending square.
  7. 根据权利要求6所述的基于冗余设备的通信故障检测方法,其特征在于,在所述根据通信协议对所述采样数据进行通信校验,根据所述采样数据中的数据标识对所述采样数据进行完整性校验之后,所述方法还包括:The communication failure detection method based on redundant equipment according to claim 6, characterized in that, performing communication verification on the sampled data according to the communication protocol, and performing a communication check on the sampled data according to the data identification in the sampled data After the data is checked for integrity, the method further includes:
    根据各个所述通信数据包的数据包标识对多个通信数据包进行筛选;screening multiple communication data packets according to the data packet identification of each of the communication data packets;
    根据与发送方对应的接收周期的计时,以及所述通信状态,在通过筛选的通信数据包中选择目标通信数据包;According to the timing of the receiving cycle corresponding to the sender, and the communication status, select the target communication data packet from the communication data packets that have passed the screening;
    对目标通信数据包中的数据进行处理。Process the data in the target communication packet.
  8. 根据权利要求7所述的基于冗余设备的通信故障检测方法,其特征在于,所述根据与发送方对应的接收周期的计时,以及所述通信状态,在通过筛选的通信数据包中选择目标通信数据包包括以下之一:The communication failure detection method based on redundant equipment according to claim 7, wherein, according to the timing of the receiving cycle corresponding to the sender, and the communication state, the target is selected in the communication data packets that pass the screening Communication packets include one of the following:
    在与所述发送方对应的接收周期的计时未超时,且所述通信数据包中的通信状态为正常的情况下,选择上一个通信周期中的发送方在当前通信周期发送的通信数据包作为所述目标通信数据包;When the timing of the receiving cycle corresponding to the sender has not timed out, and the communication status in the communication data packet is normal, select the communication data packet sent by the sender in the current communication cycle in the previous communication cycle as The target communication data packet;
    在与所述发送方对应的接收周期的计时已超时,或者所述通信数据包中的通信状态为异常的情况下,选择与上一个通信周期中的发送方不同的备用发送方在当前通信周期发送的通信数据包作为所述目标通信数据包,其中,所述备用发送方的通信状态为正常;When the timing of the receiving cycle corresponding to the sender has timed out, or the communication state in the communication data packet is abnormal, select an alternate sender different from the sender in the previous communication cycle to be in the current communication cycle The sent communication data packet is used as the target communication data packet, wherein the communication status of the standby sender is normal;
    在所有与所述发送方对应的接收周期的计时已超时,且所述通信数据包中的通信状态均为异常的情况下,获取预设的故障安全值构成所述目标通信数据包。When the timing of all receiving periods corresponding to the sender has timed out and the communication status in the communication data packet is abnormal, a preset fail-safe value is obtained to form the target communication data packet.
  9. 一种基于冗余设备的通信故障检测方法,其特征在于,应用于多个发送方和一个接收方,所述方法包括:A communication failure detection method based on redundant equipment, characterized in that it is applied to a plurality of senders and a receiver, the method comprising:
    每个所述发送方在获取到信息发送指令的情况下,将当前的采样数据和通信状态打包,得到通信数据包;Each of the senders packs the current sampling data and communication status to obtain a communication data packet when the information sending instruction is obtained;
    每个所述发送方在一个通信周期内,将所述通信数据包多次发送至接收方,并开始响 应周期的计时;Each of the senders sends the communication data packets to the receiver multiple times within a communication cycle, and starts the timing of the response cycle;
    所述接收方在一个所述通信周期内,接收来自每个所述发送方的多个所述通信数据包;The receiver receives a plurality of communication data packets from each of the senders within one communication period;
    所述接收方根据通信协议对所述采样数据进行通信校验,根据所述采样数据中的数据标识对所述采样数据进行完整性校验;根据所述通信校验和所述完整性校验的结果判断是否生成响应数据,在生成所述响应数据的情况下,在预设的响应周期内,将所述响应数据发送至所有所述发送方;The receiver performs communication verification on the sampled data according to the communication protocol, and performs integrity verification on the sampled data according to the data identifier in the sampled data; according to the communication verification and the integrity verification judge whether to generate response data according to the results, and if the response data is generated, send the response data to all the senders within the preset response period;
    每个所述发送方在所述响应周期内,根据能否接收到所述接收方的响应数据,确定下一通信周期中通信数据包的通信状态。Each of the senders determines the communication status of the communication data packet in the next communication cycle according to whether the sender can receive the response data from the receiver within the response cycle.
  10. 一种基于冗余设备的通信故障检测设备,其特征在于,所述设备包括打包模块、发送模块和响应模块:A kind of communication failure detection equipment based on redundant equipment, it is characterized in that, described equipment comprises packing module, sending module and response module:
    所述打包模块,用于在获取到信息发送指令的情况下,将当前的采样数据和通信状态打包,得到通信数据包;The packing module is used to pack the current sampling data and communication status to obtain a communication data packet when the information sending instruction is obtained;
    所述发送模块,用于在一个通信周期内,将所述通信数据包多次发送至接收方,并开始响应周期的计时;The sending module is used to send the communication data packet to the receiver multiple times within one communication cycle, and start the timing of the response cycle;
    所述响应模块,用于在所述响应周期内,根据能否接收到所述接收方的响应数据,确定下一通信周期中通信数据包的通信状态。The response module is configured to determine the communication status of the communication data packet in the next communication cycle according to whether the receiver's response data can be received within the response cycle.
  11. 一种基于冗余设备的通信故障检测设备,其特征在于,所述设备包括接收模块、校验模块和反馈模块:A kind of communication fault detection equipment based on redundant equipment, it is characterized in that, described equipment comprises receiving module, verification module and feedback module:
    所述接收模块,用于在一个通信周期内,接收来自同一发送方的多个通信数据包,其中,所述通信数据包中包括当前的采样数据和所述发送方的通信状态;The receiving module is configured to receive multiple communication data packets from the same sender within one communication cycle, wherein the communication data packets include current sampling data and the communication status of the sender;
    所述校验模块,用于根据通信协议对所述采样数据进行通信校验,根据所述采样数据中的数据标识对所述采样数据进行完整性校验;The verification module is configured to perform communication verification on the sampled data according to a communication protocol, and perform integrity verification on the sampled data according to a data identifier in the sampled data;
    所述反馈模块,用于根据所述通信校验和所述完整性校验的结果判断是否生成响应数据,在生成所述响应数据的情况下,在预设的响应周期内,将所述响应数据发送至所有所述发送方。The feedback module is configured to judge whether to generate response data according to the results of the communication check and the integrity check, and if the response data is generated, within a preset response period, send the response to Data is sent to all said senders.
  12. 一种基于冗余设备的通信故障检测系统,其特征在于,所述系统包括多个发送方和一个接收方:A communication failure detection system based on redundant equipment, characterized in that the system includes a plurality of senders and a receiver:
    每个所述发送方在获取到信息发送指令的情况下,将当前的采样数据和通信状态打包,得到通信数据包;Each of the senders packs the current sampling data and communication status to obtain a communication data packet when the information sending instruction is obtained;
    每个所述发送方在一个通信周期内,将所述通信数据包多次发送至接收方,并开始响应周期的计时;Each of the senders sends the communication data packets to the receiver multiple times within one communication cycle, and starts the timing of the response cycle;
    所述接收方在一个所述通信周期内,接收来自每个所述发送方的多个所述通信数据包;The receiver receives a plurality of communication data packets from each of the senders within one communication period;
    所述接收方根据通信协议对所述采样数据进行通信校验,根据所述采样数据中的数据标识对所述采样数据进行完整性校验;根据所述通信校验和所述完整性校验的结果判断是否生成响应数据,在生成所述响应数据的情况下,在预设的响应周期内,将所述响应数据发送至所有所述发送方;The receiver performs communication verification on the sampled data according to the communication protocol, and performs integrity verification on the sampled data according to the data identifier in the sampled data; according to the communication verification and the integrity verification judge whether to generate response data according to the results, and if the response data is generated, send the response data to all the senders within the preset response period;
    每个所述发送方在所述响应周期内,根据能否接收到所述接收方的响应数据,确定下一通信周期中通信数据包的通信状态。Each of the senders determines the communication status of the communication data packet in the next communication cycle according to whether the sender can receive the response data from the receiver within the response cycle.
  13. 一种电子装置,包括存储器和处理器,其特征在于,所述存储器中存储有计算机程序,所述处理器被设置为运行所述计算机程序以执行权利要求1至9中任一项所述的基于冗余设备的通信故障检测方法。An electronic device comprising a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to perform the method described in any one of claims 1 to 9 Communication fault detection method based on redundant equipment.
  14. 一种存储介质,其特征在于,所述存储介质中存储有计算机程序,其中,所述计算机程序被设置为运行时执行权利要求1至9中任一项所述的基于冗余设备的通信故障检测方法的步骤。A storage medium, characterized in that a computer program is stored in the storage medium, wherein the computer program is configured to perform the communication failure based on redundant equipment described in any one of claims 1 to 9 when running The steps of the detection method.
PCT/CN2021/117690 2021-06-23 2021-09-10 Communication fault detection method, device and system based on redundant device WO2022267233A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110700714.3 2021-06-23
CN202110700714.3A CN113542057B (en) 2021-06-23 2021-06-23 Communication fault detection method, device and system based on redundant device

Publications (1)

Publication Number Publication Date
WO2022267233A1 true WO2022267233A1 (en) 2022-12-29

Family

ID=78125705

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/117690 WO2022267233A1 (en) 2021-06-23 2021-09-10 Communication fault detection method, device and system based on redundant device

Country Status (2)

Country Link
CN (1) CN113542057B (en)
WO (1) WO2022267233A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115955356A (en) * 2023-01-03 2023-04-11 重庆长安汽车股份有限公司 Method, system, equipment and medium for inter-domain secure communication
CN117076212A (en) * 2023-10-17 2023-11-17 北京卡普拉科技有限公司 Consistency check method, device, medium and equipment for MPI communication data content

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114428451B (en) * 2021-12-06 2024-03-19 浙江中控技术股份有限公司 Method for switching external communication permission of redundant communication module

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101764722A (en) * 2009-12-21 2010-06-30 中兴通讯股份有限公司 Method for detecting link and device and system thereof
CN102781017A (en) * 2012-07-03 2012-11-14 北京小米科技有限责任公司 Method, device and communication equipment for detecting online state of opposite communication terminal
WO2013124918A1 (en) * 2012-02-20 2013-08-29 パナソニック株式会社 Initiator apparatus, target apparatus, communication system, timeout detection method, and timeout detection program
CN107104782A (en) * 2017-04-15 2017-08-29 深圳市民泰科电子有限公司 Data transmission method and device
CN110971595A (en) * 2019-11-22 2020-04-07 浙江中控技术股份有限公司 Network communication method and system

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8170524B2 (en) * 2003-12-16 2012-05-01 Pulse Utilities International Limited Power line communication system and an intelligent meter
CN106549773A (en) * 2015-09-16 2017-03-29 深圳市银信网银科技有限公司 A kind of communication check method, system and device
CN106656636A (en) * 2017-02-22 2017-05-10 郑州云海信息技术有限公司 Cloud platform fault detection method and device
CN109495322B (en) * 2018-12-25 2022-03-29 华为技术有限公司 Network fault positioning method, related equipment and computer storage medium
CN110798480B (en) * 2019-11-07 2022-02-01 杭州和利时自动化有限公司 Data communication method and system between safety instrument systems

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101764722A (en) * 2009-12-21 2010-06-30 中兴通讯股份有限公司 Method for detecting link and device and system thereof
WO2013124918A1 (en) * 2012-02-20 2013-08-29 パナソニック株式会社 Initiator apparatus, target apparatus, communication system, timeout detection method, and timeout detection program
CN102781017A (en) * 2012-07-03 2012-11-14 北京小米科技有限责任公司 Method, device and communication equipment for detecting online state of opposite communication terminal
CN107104782A (en) * 2017-04-15 2017-08-29 深圳市民泰科电子有限公司 Data transmission method and device
CN110971595A (en) * 2019-11-22 2020-04-07 浙江中控技术股份有限公司 Network communication method and system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115955356A (en) * 2023-01-03 2023-04-11 重庆长安汽车股份有限公司 Method, system, equipment and medium for inter-domain secure communication
CN117076212A (en) * 2023-10-17 2023-11-17 北京卡普拉科技有限公司 Consistency check method, device, medium and equipment for MPI communication data content
CN117076212B (en) * 2023-10-17 2024-02-23 北京卡普拉科技有限公司 Consistency check method, device, medium and equipment for MPI communication data content

Also Published As

Publication number Publication date
CN113542057B (en) 2022-11-01
CN113542057A (en) 2021-10-22

Similar Documents

Publication Publication Date Title
WO2022267233A1 (en) Communication fault detection method, device and system based on redundant device
CN110380907B (en) Network fault diagnosis method and device, network equipment and storage medium
US9009523B2 (en) Method and apparatus for isolating a fault in a controller area network
CN111988191B (en) Fault detection method and device for distributed communication network
JP2011100347A (en) Power supply device, power receiving device, power supply system, and method of recovering from fault
WO2011021505A1 (en) Communication system and communication apparatus status determining method
CN112887126B (en) Message link diagnosis method and device and computer storage medium
KR20200117029A (en) Method, apparatus and device for managing threshold pair change
CN104125590A (en) Link fault diagnosis device and method thereof
CN105871661A (en) Public network server detection method and detection server
WO2020088351A1 (en) Method for sending device information, computer device and distributed computer device system
WO2016086638A1 (en) Link detection method, device, and computer storage medium
WO2015196754A1 (en) Method, device and client terminal device for improving reliability of device having plurality of modules
CN112104548A (en) Communication method and device
CN107332697B (en) Fault detection method and device
CN116225804A (en) PCIe link detection method, system, equipment and storage medium
WO2021077797A1 (en) Quality of service measurement method and device, and user plane function
CN104486787A (en) Method and device for detecting wireless link fault
WO2019025835A1 (en) Crc error location detection in automatic cut-through and store-and-forward switching
CN104348676A (en) Link detection method and device based on operation administration and maintenance
EP3869740A1 (en) Network reliability testing method and apparatus
WO2020037607A1 (en) Data transmission method and apparatus
WO2017166932A1 (en) Method and apparatus for determining service state
CN113472647B (en) Message forwarding method and device
CN112769889B (en) Service data pushing method and device, storage medium and electronic device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21946717

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE