A communication management method, system and storage medium for distributed modules
By using the communication management method of distributed modules in the substation and using random monitoring tags for data verification, the problem of inaccurate data transmission in the substation is solved, and the accuracy and reliability of data transmission are achieved sex.
Patent Information
- Application Number
- CN202411555552.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-04
- Publication Date
- 2025-02-25
- Estimated Expiration
- 2044-11-04
AI Technical Summary
In substations, due to the large amount of data and the complex communication environment, the communication management machine has the risk that it cannot guarantee the accuracy and completeness of communication data, and it is difficult to detect communication problems in a timely manner.
Using the communication management method of a distributed module, the monitoring data of multiple sensor devices is obtained in real time through the first communication management machine, and a random monitoring tag is generated for data verification. This method forms a redundant data transmission path, ensuring consistency verification of data during transmission, and sending alarm commands if it fails to pass the verification.
It improves data accuracy and reliability during data transmission, promptly detects and responds to data transmission errors or inconsistencies, and reduces the risk of system failure.
Smart Images

Figure CN119071330B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of communication management, and in particular to a communication management method, system and storage medium for a distributed module. Background Art
[0002] Communication management machine, also known as DPU (Data Processing Unit), is an intelligent device that integrates data collection, processing, communication, control and other functions. With the increasing demand for AI, machine learning, deep learning, IoT, 5G and complex cloud architecture, the DPU market is also growing steadily. As a new type of processor, DPU specializes in processing data-centric workloads such as network, storage and security operations in data centers.
[0003] The communication management machine has multiple downstream communication interfaces, which can receive and summarize the communication data from various intelligent monitoring / protection devices in the substation. Through the upstream network interface, the communication management machine transmits the summarized data to the upper-level master station system (such as the monitoring center backend machine and DCS) in real time to complete the remote signaling and telemetry functions. At the same time, it can also receive commands from the backend machine or DCS and forward them to the intelligent series units in the substation.
[0004] In the related technology, the communication management machine, as a key device for signal transmission, is responsible for receiving communication data from various intelligent monitoring / protection devices in the substation. However, due to the huge amount of data and the complexity of the communication environment, such as unstable connection or other problems with the communication management machine itself, there is indeed a risk that the accuracy and integrity of the communication data cannot be guaranteed, and it is difficult to detect communication problems in time. Summary of the invention
[0005] In order to improve the accuracy of data during substation data transmission, the present application provides a communication management method, system and storage medium for a distributed module.
[0006] In a first aspect, the present application provides a communication management method for a distributed module, which adopts the following technical solution:
[0007] A communication management method for a distributed module comprises the following steps:
[0008] The monitoring data of multiple sensor devices are acquired in real time through the first communication management machine, and the monitoring data are packaged and sent to the background terminal; all the sensor devices connected to the first communication management machine are also connected to the second communication management machine;
[0009] Traverse all the sensor devices connected to the first communication management machine; when traversing the current sensor device: if the current sensor device generates the monitoring data, the first communication management machine executes a first random algorithm to generate a random monitoring tag; if the random monitoring tag is successfully generated according to the first random algorithm, control the current sensor device to send the current monitoring data as the first inspection data to the second communication management machine, and then traverse the next sensor device;
[0010] After traversing all the sensor devices, the first communication manager sends all the random monitoring tags and reconciliation requests to the second communication manager, and then clears all the random monitoring tags;
[0011] The second communication management machine obtains the monitoring data corresponding to all the random monitoring tags from the first communication management machine as the second verification data based on the reconciliation request, and performs a consistency check on the first verification data and the second verification data. If the consistency check fails, an alarm instruction is sent to the background terminal.
[0012] By adopting the above technical solution, first, data collection and transmission are performed: the first communication management machine collects monitoring data from multiple sensor devices in real time, and packages the data and sends it to the background terminal. Each sensor device is not only connected to the first communication management machine, but also connected to the second communication management machine, forming a redundant data transmission path. Then, random monitoring tags are generated: the system traverses all sensor devices connected to the first communication management machine. For each sensor device being traversed, if new monitoring data is generated, the first communication management machine will execute a first random algorithm to generate a random monitoring tag. The function of this tag is to provide a unique identifier for the subsequent data verification. Then data verification preparation is performed: if the random monitoring tag is successfully generated, the first communication management machine will instruct the current sensor device to send its monitoring data to the second communication management machine; wherein the monitoring data is used as the first verification data at this time. After that, the system continues to traverse the next sensor device. Then, a reconciliation request and tag clearing are performed: when all sensor devices have been traversed, the first communication management machine will send a reconciliation request to the second communication management machine, and attach all previously generated random monitoring tags. After sending the request, the first communication management machine will clear all the random monitoring tags it has stored to avoid repeated verification or tag conflicts. Finally, perform a data consistency check: After receiving the reconciliation request, the second communication management machine will retrieve the corresponding monitoring data from its own data records based on the random monitoring tags provided, which will serve as the second verification data. Then, it will perform a consistency check on the first verification data and the second verification data. An alarm mechanism is also provided: if the consistency check fails, that is, the first verification data does not match the second verification data, the second communication management machine will send an alarm instruction to the background terminal, indicating that there is a data transmission error or a communication problem. In summary, through the communication management method of distributed modules, the system can effectively detect and respond to errors or inconsistencies in the data transmission process, thereby improving the accuracy and reliability of the data.
[0013] Optionally, the first random algorithm includes:
[0014] Acquire a first range, and divide the first range into a first sub-range and a second sub-range;
[0015] Obtaining monitoring time periods corresponding to the plurality of sensor devices;
[0016] During the monitoring time period of the current sensor device, at intervals corresponding to the first set time, a random number within the first range is generated using a random function;
[0017] If the random number is within the first sub-range, acquiring the current monitoring data of the sensor device and generating a random monitoring tag;
[0018] If the random number is within the second sub-range, the monitoring data of the current sensor device is not acquired;
[0019] If the monitoring data is not obtained within the monitoring time period of the current sensor device, the monitoring time period of the current sensor device is repeated until the monitoring data of the current sensor device is obtained and a random monitoring tag is successfully generated.
[0020] By adopting the above technical solution, if the random number falls within the first sub-range, the algorithm will obtain the monitoring data of the current sensor device and generate a random monitoring tag based on this data. This tag will be used for subsequent data consistency verification. If the random number falls within the second sub-range, the algorithm will not obtain the monitoring data of the current sensor device, nor will it generate a random monitoring tag. This can reduce unnecessary data processing and transmission and save system resources. The randomness of the system-generated data can ensure the validity of data verification.
[0021] Optionally, the method further comprises:
[0022] The first communication manager is connected to the plurality of sensor devices through the first relay station. The first relay station obtains monitoring data of the plurality of sensor devices and packages the monitoring data and sends it to the first communication manager. The first communication manager packages the received data again and sends it to the background terminal.
[0023] Traversing all the sensor devices connected to the first relay station; when traversing the current sensor device: if the current sensor device generates the monitoring data, the first relay station executes a first random algorithm to generate a random monitoring tag; if the random monitoring tag is successfully generated according to the first random algorithm, the first relay station controls the current sensor device to send the current monitoring data as the first inspection data to the second relay station, and then traverses the next sensor device;
[0024] After traversing all the sensor devices, the first relay station sends all the random monitoring tags to the first communication manager, the first communication manager generates the reconciliation request and sends all the random monitoring tags and the reconciliation request to the second communication manager, and then clears all the random monitoring tags in the first communication manager and the first relay station;
[0025] The second communication management machine obtains the monitoring data corresponding to all the random monitoring tags from the first relay station through the second relay station based on the reconciliation request as the second verification data, and performs a consistency check between the first verification data and the second verification data, and sends an early warning instruction to the second communication management machine if the consistency check fails;
[0026] The second communication management machine sends an alarm instruction to the first communication management machine and the background terminal based on the early warning instruction.
[0027] By adopting the above technical solution, the first communication management machine is no longer directly connected to multiple sensor devices, but indirectly obtains the monitoring data of these devices through the first relay station. The first relay station is responsible for collecting the monitoring data of the sensor devices to which it is connected, and packaging these data and sending them to the first communication management machine. After receiving these data, the first communication management machine will package them again and finally send them to the background terminal. Similar to the first relay station, the second communication management machine also indirectly obtains the monitoring data corresponding to the random monitoring tag, that is, the second inspection data, through the second relay station.
[0028] When traversing the sensor devices, if the current device generates monitoring data, the first relay station will execute the first random algorithm to generate a random monitoring tag. If the tag is successfully generated, the first relay station will control the current sensor device to send the monitoring data as the first verification data to the second relay station. After traversing all sensor devices, the first relay station will send all generated random monitoring tags to the first communication management machine. After receiving these tags, the first communication management machine will generate a reconciliation request and send all random monitoring tags and the reconciliation request together to the second communication management machine. Then, the first communication management machine and the first relay station will clear all stored random monitoring tags.
[0029] After receiving the reconciliation request, the second communication management machine will request the monitoring data corresponding to all random monitoring tags, i.e., the second verification data, from the first relay station through the second relay station. After obtaining these data, the second communication management machine will perform a consistency check. If the check fails, that is, the first verification data does not match the second verification data, the second communication management machine will first send an early warning instruction to itself, and then send an alarm instruction to the first communication management machine and the background terminal based on this early warning instruction.
[0030] By introducing the relay station, the sensor device only needs to establish a signal connection with one relay station when connecting to the device; this is different from the situation where the first communication management machine is directly connected to multiple sensor devices, and multiple sensor devices are also connected to the second communication management machine at the same time; data monitoring and verification are achieved through the relay station, which is mainly used to monitor whether there are errors in the storage of data in the first communication management machine. Therefore, by introducing the relay station, this method adds redundancy and flexibility to the data transmission path and improves the fault tolerance of the system. The generation and data verification process of random monitoring tags has been defined and optimized in more detail to ensure the effectiveness and accuracy of data verification. The process of sending alarm instructions is clearer and more complete, and can promptly notify relevant personnel to handle when data transmission errors or inconsistencies are found.
[0031] Optionally, the method further comprises:
[0032] The second communication management machine is connected to the other plurality of sensor devices through the second relay station. The second relay station obtains the monitoring data of the other plurality of sensor devices, and packages the monitoring data and sends it to the second communication management machine. The second communication management machine packages the received data again and sends it to the background terminal.
[0033] Traversing all the sensor devices connected to the second relay station; when traversing the current sensor device: if the current sensor device generates the monitoring data, the second relay station executes the first random algorithm to generate a random monitoring tag; if the random monitoring tag is successfully generated according to the first random algorithm, the second relay station controls the current sensor device to send the current monitoring data as the third inspection data to the first relay station, and then traverses the next sensor device;
[0034] After traversing all the sensor devices, the second relay station sends all the random monitoring tags to the second communication manager, the second communication manager generates the reconciliation request and sends all the random monitoring tags and the reconciliation request to the first communication manager, and then clears all the random monitoring tags in the second communication manager and the second relay station;
[0035] The first communication management machine obtains the monitoring data corresponding to all the random monitoring tags from the second relay station through the first relay station based on the reconciliation request as the fourth verification data, and performs a consistency check on the third verification data and the fourth verification data, and sends an early warning instruction to the first communication management machine if the consistency check fails;
[0036] The first communication management machine sends an alarm instruction to the second communication management machine and the background terminal based on the early warning instruction.
[0037] By adopting the above technical solution, by introducing the connection between the second communication management machine and the second relay station, and the corresponding two-way verification mechanism, the method constructs a more complete and reliable communication management system. The two-way verification mechanism can more effectively detect errors or inconsistencies in the data transmission process, improving the accuracy and reliability of the system. The sending process of the alarm instruction is more complete, and relevant personnel can be notified in time to handle it when data transmission problems are found, thereby reducing the risk of system failure.
[0038] Optionally, the method further comprises:
[0039] The size of the first range is adjusted according to the number of the plurality of sensor devices; the more the number of the sensor devices is, the smaller the width of the first range is; the fewer the number of the sensor devices is, the larger the width of the first range is.
[0040] By adopting the above technical solution, when the number of sensor devices increases, the amount of data that the system needs to process also increases. In order to reduce the complexity of data verification and improve verification efficiency, the method reduces the width of the first range. Then when generating random numbers, the probability that the random numbers fall into the first sub-range or the second sub-range will be relatively more concentrated, thereby reducing the problem of inaccurate or inefficient verification caused by excessive dispersion of random numbers. By dynamically adjusting the size of the first range, the method can adjust the data verification strategy in real time according to the number of sensor devices, thereby improving the verification efficiency while ensuring the accuracy of the verification.
[0041] Optionally, the method further comprises:
[0042] Obtain the number M1 of sensor devices connected to the first communication management machine through the first relay station;
[0043] Obtain the number M2 of sensor devices connected to the second communication management machine via the second relay station;
[0044] Calculate the distribution symmetry of the sensor device = (M1 / (M1+M2)) 2 + (M2 / (M1+M2)) 2 ;
[0045] The proportion of the first sub-range and the second sub-range is adjusted according to the distribution symmetry, the proportion = (width of the first sub-range / width of the first range) 2 + (width of the second subrange / width of the first range) 2 ;
[0046] The greater the distribution symmetry, the greater the proportion; the smaller the distribution symmetry, the smaller the proportion.
[0047] By adopting the above technical solution, by introducing distribution symmetry and dynamically adjusting the sub-range ratio, the method can adjust the data verification strategy in real time according to the distribution of sensor devices, thereby improving the verification efficiency and resource utilization while ensuring the verification accuracy.
[0048] Optionally, the method further comprises:
[0049] All the sensor devices connected to the first communication manager are also connected to the second communication manager via the second relay station;
[0050] All the sensor devices connected to the second communication manager are also connected to the first communication manager through the first relay station.
[0051] By adopting the above technical solution, in this solution, each sensor device not only transmits data through its original connection path; for example, connecting to the first communication manager through the first relay station, but also transmits data through another redundant path, for example, connecting to the second communication manager through the second relay station. Even if one connection path fails or is interrupted, the sensor device can still continue to transmit data through another path, thereby improving the reliability and stability of the system.
[0052] Optionally, the method further comprises:
[0053] Obtaining the number of the monitoring time periods corresponding to the sensor device when the sensor device successfully generates the random monitoring tag;
[0054] According to the number of the monitoring time periods, adjusting the size of the corresponding first time interval;
[0055] The greater the number of monitoring time periods, the smaller the first time interval; the smaller the number of monitoring time periods, the greater the first time interval.
[0056] By adopting the above technical solution and introducing the number of monitoring time periods as the basis for adjustment, the method can dynamically adjust the size of the first time interval according to the actual monitoring situation of the sensor equipment, thereby improving the efficiency and resource utilization of the system while ensuring the accuracy of data verification.
[0057] In a second aspect, the present application provides a communication management system for distributed modules, which adopts the following technical solution:
[0058] A communication management system for distributed modules and a storage medium, comprising a processor, wherein the processor executes the steps of the communication management method for distributed modules as described in any one of the above items.
[0059] In a third aspect, the present application provides a storage medium, which adopts the following technical solution:
[0060] A storage medium stores a program, and when the program is executed by a processor, the steps of the communication management method of the distributed module described in any one of the above are implemented.
[0061] In summary, the present application includes at least one of the following beneficial technical effects:
[0062] Improved accuracy and efficiency of data verification: By introducing random monitoring tags and data verification mechanisms, this application can achieve real-time monitoring and verification of data reported by sensor devices, effectively improving the accuracy and efficiency of data verification.
[0063] Enhanced system reliability and stability: Building redundant connections and mutually backed-up communication management machines ensures that the system can still operate normally even if a connection path or a communication management machine fails, thereby improving the reliability and stability of the system. In addition, the dynamic adjustment mechanism also enables the system to better adapt to complex and changing application environments, reducing the risk of system crashes or data loss caused by single point failures.
[0064] Improved system flexibility and scalability: Dynamically adjust relevant parameters such as the size of the first range, the proportion of sub-ranges, the first time interval, etc. according to the number of sensor devices, distribution symmetry, and the number of monitoring time periods, making the data verification strategy more flexible and efficient. BRIEF DESCRIPTION OF THE DRAWINGS
[0065] Figure 1 It is a step diagram of a communication management method for distributed modules.
[0066] Figure 2 It is a communication connection diagram in which the communication management machine is directly connected to the sensor device.
[0067] Figure 3 It is a communication connection diagram in which the communication management machine is connected to the sensor equipment through the relay station. DETAILED DESCRIPTION
[0068] Embodiments of the present application are described in detail below, examples of which are shown in the accompanying drawings.
[0069] In the description of this specification, the description with reference to the terms "certain embodiments", "one embodiment", "some embodiments", "illustrative embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials, or characteristics described in conjunction with the embodiments or examples are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials, or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.
[0070] The present application embodiment discloses a communication management method for a distributed module, referring to Figure 1 and Figure 2 , including the following steps:
[0071] Collect and send data: obtain the monitoring data of multiple sensor devices in real time through the first communication management machine, package the monitoring data and send it to the background terminal. Send the monitoring data from the first communication management machine to the background terminal. The sending method can use wireless communication technologies such as Wi-Fi, Zigbee, LoRa, NB-IoT, etc.; transmit the monitoring data from the first communication management machine to the background terminal through wired networks such as optical fiber and Ethernet. Multiple sensor devices include temperature sensors, humidity sensors, voltage / current sensors, gas sensors, vibration sensors or smoke sensors and other sensor devices.
[0072] All sensor devices connected to the first communication management machine are also connected to the second communication management machine, forming a redundant data transmission path; the connection method is the same as the connection method of the first communication management machine.
[0073] Random monitoring tag generation: traverse all sensor devices connected to the first communication management machine; when traversing the current sensor device: the current sensor device generates monitoring data, and the first communication management machine executes the first random algorithm to generate a random monitoring tag. If the random monitoring tag is successfully generated according to the first random algorithm, the current sensor device is controlled to send the current monitoring data as the first inspection data to the second communication management machine, and then the next sensor device is traversed.
[0074] Data verification preparation: After traversing all sensor devices, the first communication manager sends all random monitoring tags and reconciliation requests to the second communication manager.
[0075] Reconciliation request and tag clearing: Then clear all random monitoring tags.
[0076] Data consistency check: The second communication management machine obtains the monitoring data corresponding to all random monitoring tags from the first communication management machine as the second verification data based on the reconciliation request, and performs a consistency check on the first verification data and the second verification data.
[0077] Alarm mechanism: If the consistency check fails, an alarm instruction will be sent to the background terminal.
[0078] Through the communication management method of distributed modules, the system can effectively detect and respond to errors or inconsistencies in the data transmission process, thereby improving the accuracy and reliability of data.
[0079] The first random algorithm includes:
[0080] Get the first range, and divide the first range into the first sub-range and the second sub-range; First, the algorithm defines a first range, which can be set according to actual needs, such as an integer interval (0, 99). Then, the first range is divided into two sub-ranges: the first sub-range and the second sub-range. The division ratio of the two sub-ranges can be adjusted according to actual needs, such as being evenly divided or divided according to a certain specific ratio. For example: the first sub-range (0, 49), the second sub-range (50, 99).
[0081] Get the monitoring time periods corresponding to multiple sensor devices; the monitoring time period can be fixed or dynamically adjusted, defining when the sensor device generates and sends monitoring data. The monitoring time period of each sensor device or each type of sensor device can be the same or different.
[0082] During the monitoring time period of the current sensor device, the algorithm generates a random number within the first range at intervals corresponding to the first set time. During the monitoring time period of the current sensor device, the algorithm generates a random number once at intervals of a set time, namely the first set time. This random number is within the first range defined previously. Then, the algorithm makes the next decision based on which sub-range this random number falls within. For example, the monitoring time period of the temperature sensor device is 10 minutes, and the first set time corresponding to the interval is 2 minutes, which means that 5 random numbers can be generated within the monitoring time period.
[0083] If the random number is within the first sub-range, the monitoring data of the current sensor device is obtained and a random monitoring tag is generated. If the random number falls within the first sub-range, the algorithm obtains the monitoring data of the current sensor device and generates a random monitoring tag based on this data. This tag will be used for subsequent data consistency verification. If the generated random number is 30, the monitoring data is obtained once.
[0084] If the random number is within the second sub-range, the monitoring data of the current sensor device will not be obtained; if the random number falls within the second sub-range, the algorithm will not obtain the monitoring data of the current sensor device, and will not generate a random monitoring tag. If the generated random number is 60, no monitoring data will be obtained.
[0085] If the random numbers generated during the monitoring time period of the current sensor device are all within the second sub-range, no monitoring data will be obtained, and the monitoring time period of the current sensor device will be repeated until the monitoring data of the current sensor device is obtained and the random monitoring tag is successfully generated. If during a monitoring time period, the random numbers always fall within the second sub-range, resulting in no monitoring data being obtained and no random monitoring tag being generated, the algorithm will repeat the monitoring time period of the current sensor device. This process will continue until the monitoring data is successfully obtained and the random monitoring tag is generated.
[0086] By adopting the first random algorithm, the system can more flexibly control data processing and transmission while ensuring the validity of data verification. The frequency and intensity of data verification can be dynamically adjusted according to the actual data volume and system load, thereby optimizing the performance and resource utilization of the entire system.
[0087] Reference Figure 3 In addition to using a communication management machine to directly connect to the sensor device, a relay station can also be added for data transmission. The method also includes:
[0088] The first communication management machine is connected to multiple sensor devices through the first relay station. The first relay station obtains the monitoring data of multiple sensor devices and packages the monitoring data and sends it to the first communication management machine. The first communication management machine packages the received data again and sends it to the background terminal. The first communication management machine is no longer directly connected to multiple sensor devices, but indirectly obtains the monitoring data of these devices through the first relay station.
[0089] Traverse all sensor devices connected to the first relay station; when traversing the current sensor device: the current sensor device generates monitoring data, and the first relay station executes the first random algorithm to generate a random monitoring tag. If the random monitoring tag is successfully generated according to the first random algorithm, the first relay station controls the current sensor device to send the current monitoring data as the first verification data to the second relay station, and then traverses the next sensor device.
[0090] After traversing all sensor devices, the first relay station sends all random monitoring tags to the first communication manager. The first communication manager generates a reconciliation request and sends all random monitoring tags and the reconciliation request to the second communication manager, and then clears all random monitoring tags in the first communication manager and the first relay station.
[0091] Based on the reconciliation request, the second communication management machine obtains the monitoring data corresponding to all random monitoring tags from the first relay station through the second relay station as the second verification data, and performs a consistency check on the first verification data and the second verification data. If the consistency check fails, an early warning instruction is sent to the second communication management machine.
[0092] The second communication management machine sends an alarm instruction to the first communication management machine and the background terminal based on the early warning instruction.
[0093] The second relay station is similar to the first relay station, and the second communication manager also indirectly obtains the monitoring data corresponding to the random monitoring tag, that is, the second verification data, through the second relay station. The second relay station increases redundancy and flexibility in the data transmission path to improve the fault tolerance of the system.
[0094] When traversing the sensor devices, if the current device generates monitoring data, the first relay station will execute the first random algorithm to generate a random monitoring tag. If the tag is successfully generated, the first relay station will control the current sensor device to send the monitoring data as the first verification data to the second relay station. The data is sent to the second relay station instead of directly to the second communication management machine, which increases the level and flexibility of data transmission.
[0095] After traversing all sensor devices, the first relay station will send all generated random monitoring tags to the first communication manager. After receiving these tags, the first communication manager will generate a reconciliation request and send all random monitoring tags and the reconciliation request together to the second communication manager. Then, the first communication manager and the first relay station will clear all stored random monitoring tags.
[0096] After receiving the reconciliation request, the second communication management machine will request the monitoring data corresponding to all random monitoring tags, i.e., the second verification data, from the first relay station through the second relay station. After obtaining these data, the second communication management machine will perform a consistency check. If the check fails, that is, the first verification data does not match the second verification data, the second communication management machine will first send an early warning instruction to itself, and then send an alarm instruction to the first communication management machine and the background terminal based on this early warning instruction.
[0097] Therefore, by introducing relay stations, this method adds redundancy and flexibility to the data transmission path and improves the fault tolerance of the system. The generation and data verification process of random monitoring tags has been defined and optimized in more detail to ensure the effectiveness and accuracy of data verification. The process of sending alarm instructions is clearer and more complete, and relevant personnel can be notified in time to handle it when data transmission errors or inconsistencies are found.
[0098] The method also includes:
[0099] The second communication management machine is connected to other multiple sensor devices through the second relay station. The second relay station obtains monitoring data of other multiple sensor devices, and packages the monitoring data and sends it to the second communication management machine. The second communication management machine packages the received data again and sends it to the background terminal.
[0100] Traverse all sensor devices connected to the second relay station; when traversing the current sensor device: the current sensor device generates monitoring data, and the second relay station executes the first random algorithm to generate a random monitoring tag. If the random monitoring tag is successfully generated according to the first random algorithm, the second relay station controls the current sensor device to send the current monitoring data as the third verification data to the first relay station, and then traverses the next sensor device.
[0101] After traversing all sensor devices, the second relay station sends all random monitoring tags to the second communication manager. The second communication manager generates a reconciliation request and sends all random monitoring tags and reconciliation requests to the first communication manager, and then clears all random monitoring tags in the second communication manager and the second relay station.
[0102] Based on the reconciliation request, the first communication management machine obtains the monitoring data corresponding to all random monitoring tags from the second relay station through the first relay station as the fourth verification data, and performs a consistency check on the third verification data and the fourth verification data. If the consistency check fails, an early warning instruction is sent to the first communication management machine.
[0103] The first communication management machine sends an alarm instruction to the second communication management machine and the background terminal based on the early warning instruction.
[0104] The second communication manager not only receives the reconciliation request and random monitoring tag from the first communication manager through the second relay station, but also directly connects to other multiple sensor devices through the second relay station. These sensor devices do not transmit data through the first communication manager and the first relay station.
[0105] The second relay station is responsible for collecting the monitoring data of the sensor equipment connected to it, and sends the data to the second communication management machine after packaging. After receiving the data, the second communication management machine will package it again and finally send it to the background terminal.
[0106] The second relay station and the second communication management machine are used to implement a two-way verification mechanism. When traversing the sensor devices connected to the second relay station, if the current device generates monitoring data, the second relay station will execute the same first random algorithm as the first relay station to generate a random monitoring tag. If the tag is successfully generated, the second relay station will send the monitoring data of the current sensor device to the first relay station as the third verification data, instead of directly sending it to the first communication management machine, to form a verification loop.
[0107] After traversing all sensor devices, the second relay station sends all generated random monitoring tags to the second communication manager. After receiving these tags, the second communication manager generates a reconciliation request and sends all random monitoring tags and the reconciliation request to the first communication manager.
[0108] After receiving the reconciliation request and the random monitoring tag, the first communication management machine will request the monitoring data corresponding to all random monitoring tags from the second relay station through the first relay station, which will serve as the fourth verification data. After obtaining these data, the first communication management machine will perform a consistency check and compare the third verification data with the fourth verification data.
[0109] If the verification fails, that is, the third verification data does not match the fourth verification data, the first communication management machine will first send an early warning instruction to itself, and then send an alarm instruction to the second communication management machine and the background terminal based on the early warning instruction.
[0110] By introducing the connection between the second communication management machine and the second relay station, and the corresponding two-way verification mechanism, the method constructs a more reliable communication management system.
[0111] The two-way verification mechanism can more effectively detect errors or inconsistencies in the data transmission process, improving the accuracy and reliability of the system, especially for troubleshooting possible problems in the storage process of the first communication management machine and the second communication management machine.
[0112] The process of sending alarm instructions is more complete, and relevant personnel can be notified in time to handle the problem when data transmission problems are found, thereby reducing the risk of system failure.
[0113] In other embodiments, all sensor devices connected to the first communication manager are also connected to the second communication manager via the second relay station. All sensor devices connected to the second communication manager are also connected to the first communication manager via the first relay station.
[0114] In this scheme, each sensor device transmits data not only through its original connection path, for example, through the first relay station to the first communication manager, but also through another redundant path, for example, through the second relay station to the second communication manager. This setting ensures that even if one connection path fails or is interrupted, the sensor device can still continue to transmit data through another path, thereby improving the reliability and stability of the system.
[0115] The first communication management machine and the second communication management machine serve as backup for each other in this solution. If one of the communication management machines fails or does not work properly, the other communication management machine can take over its task and continue to communicate and verify data with the sensor device. This mutual backup mechanism further enhances the fault tolerance and reliability of the system and ensures the continuity and accuracy of data transmission.
[0116] By building redundant connections and mutually backed-up communication management machines, this method significantly improves the reliability and stability of the system and reduces the risk of system crash or data loss due to single point failure. This redundancy and backup mechanism also enables the system to better adapt to complex and changing application environments, improving the flexibility and scalability of the system. In addition, this solution also helps reduce downtime and maintenance costs caused by system failures, improving the overall performance and economic benefits of the system.
[0117] Among them, consistency verification methods include direct comparison method, hash value comparison method, checksum comparison method, algorithm verification method, rule verification method or statistical verification method.
[0118] Direct comparison method: It is the most direct verification method, such as directly comparing the third test data with the fourth test data to check whether they are exactly the same. It is suitable for situations where the data type is simple and the data volume is small.
[0119] Hash value comparison method: Calculate hash values (such as MD5, SHA-256, etc.) for the third and fourth test data, and then compare whether the two hash values are the same. Hash values are highly unique and sensitive. Even if there is a slight change in the data, the hash value will change significantly. It is suitable for situations where the data type is complex and the data volume is large.
[0120] Checksum comparison method: Calculate the checksum (such as sum, XOR, etc.) for the third and fourth check data respectively, and then compare whether the two checksums are the same. Checksum calculation is relatively simple, but has low sensitivity and may not detect all data changes.
[0121] Algorithm verification method: Use a specific algorithm (such as encryption algorithm, compression algorithm, etc.) to process the third and fourth verification data, and then compare whether the processing results are the same. This method has high security and sensitivity, but the computational complexity is high.
[0122] Rule verification method: According to business rules or data format requirements, the third and fourth verification data are checked by rules. For example, check whether the data conforms to a specific format, range, constraint, etc. It is suitable for situations where specific business rules or data standards need to be followed.
[0123] Statistical verification method: Statistical analysis is performed on the third and fourth test data to check whether the distribution, mean, standard deviation and other statistical quantities of the data are consistent. It is suitable for situations where the overall consistency of the data needs to be verified.
[0124] The method also includes:
[0125] The size of the first range is adjusted according to the number of the plurality of sensor devices; the more the number of sensor devices is, the smaller the width of the first range is; the fewer the number of sensor devices is, the larger the width of the first range is.
[0126] As the number of sensor devices increases, the amount of data that the system needs to process also increases. In order to reduce the complexity of data verification and improve verification efficiency, the method reduces the width of the first range. This means that when generating random numbers, the probability that the random numbers fall into the first sub-range or the second sub-range will be relatively more concentrated, thereby reducing the problem of inaccurate or inefficient verification caused by excessive dispersion of random numbers.
[0127] On the contrary, when the number of sensor devices decreases, the amount of data that the system needs to process also decreases accordingly. At this time, in order to maintain a certain verification accuracy and efficiency, the method increases the width of the first range. Doing so can make the distribution of random numbers more uniform, increase the chance of generating random monitoring tags, and also maintain the flexibility of the verification process. For example, when the number of sensor devices is 10, the first range is (0, 99), and if the number of sensor devices is 20, the first range is (0, 49).
[0128] By dynamically adjusting the size of the first range, the method can adjust the data verification strategy in real time according to the number of sensor devices, thereby improving the verification efficiency while ensuring the accuracy of the verification. This dynamic adjustment mechanism enables the system to better adapt to application scenarios of different scales and different data volumes, improving the flexibility and scalability of the system. In addition, the solution also helps to reduce the problem of resource waste or inaccurate verification caused by too large or too small a data volume, and improves the overall performance and stability of the system.
[0129] The method also includes:
[0130] Obtain the number M1 of sensor devices connected to the first communication management machine through the first relay station;
[0131] The number M2 of sensor devices connected to the second communication management machine through the second relay station is obtained; M1 and M2 reflect the distribution of the sensor devices between the two communication management machines.
[0132] Calculate the distribution symmetry of sensor devices = (M1 / (M1+M2)) 2 + (M2 / (M1+M2)) 2The closer the value of distribution symmetry is to 1, the more evenly the sensor devices are distributed between the two communication managers; the smaller the value, the more asymmetric the distribution is.
[0133] Adjust the proportion of the first sub-range and the second sub-range according to the distribution symmetry, proportion = (width of the first sub-range / width of the first range) 2 + (width of the second subrange / width of the first range) 2 .
[0134] The greater the distribution symmetry, the greater the proportion; the smaller the distribution symmetry, the smaller the proportion.
[0135] When the distribution symmetry is large, it means that the distribution of sensor devices between the two communication management machines is relatively uniform. At this time, the proportion of the first sub-range and the second sub-range can be increased, that is, the width can be increased to accommodate more random monitoring tags, thereby improving the efficiency and accuracy of data verification.
[0136] On the contrary, when the distribution symmetry is small, it means that the distribution of sensor devices between the two communication management machines is relatively asymmetric. At this time, the proportion of the first sub-range and the second sub-range can be appropriately reduced, that is, the width can be reduced to reduce the problem of inaccurate verification or resource waste caused by uneven distribution.
[0137] By introducing distribution symmetry and dynamically adjusting the sub-range ratio, this method can adjust the data verification strategy in real time according to the distribution of sensor devices, thereby improving verification efficiency and resource utilization while ensuring verification accuracy. This dynamic adjustment mechanism enables the system to better adapt to application scenarios with different distributions and different data volumes, improving the flexibility and scalability of the system. In addition, this solution also helps to reduce the problems of inaccurate verification or resource waste caused by uneven distribution, and improves the overall performance and stability of the system.
[0138] The method also includes:
[0139] Get the number of monitoring time periods corresponding to the sensor device when the sensor device successfully generates a random monitoring tag. This number reflects the frequency of monitoring performed by the sensor device within a period of time.
[0140] According to the number of monitoring time periods, the size of the corresponding first time interval is adjusted; the first time interval refers to the time interval between two consecutive times when the system requires the sensor device to generate a random monitoring tag.
[0141] The larger the number of monitoring time cycles, the smaller the first time interval; the smaller the number of monitoring time cycles, the larger the first time interval. When the number of monitoring time cycles is large, it means that the sensor device has performed multiple monitorings in a short period of time. At this time, the system will reduce the first time interval so that random monitoring tags can be generated more frequently, thereby increasing the chance and accuracy of data verification. On the contrary, when the number of monitoring time cycles is small, it means that the sensor device has only generated random numbers a few times in a long period of time. At this time, the system will increase the first time interval to reduce unnecessary random monitoring tag generation and save system resources. For example, when a random monitoring tag is successfully generated, after 1 monitoring time cycle, the first time interval is 2 minutes; after 3 monitoring time cycles, the first time interval needs to be shortened to half a minute.
[0142] The advantage is that by introducing the number of monitoring time periods as the basis for adjustment, the method can dynamically adjust the size of the first time interval according to the actual monitoring situation of the sensor device, thereby improving the efficiency and resource utilization of the system while ensuring the accuracy of data verification. This dynamic adjustment mechanism enables the system to better adapt to application scenarios with different monitoring frequencies and different data volumes, and improves the flexibility and scalability of the system. In addition, the solution also helps to reduce the system burden and resource waste caused by the frequent generation of random monitoring tags, and improves the overall performance and stability of the system.
[0143] An embodiment of the present application also discloses a communication management system for distributed modules, including a processor, wherein the processor executes the steps of any one of the above-mentioned communication management methods for distributed modules.
[0144] An embodiment of the present application further discloses a storage medium, in which a program is stored. When the program is executed by a processor, the steps of any one of the above-mentioned distributed module communication management methods are implemented.
[0145] Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limitations on the present application. Ordinary technicians in the field can change, modify, replace and modify the above embodiments within the scope of the present application.
Claims
1. A communication management method for a distributed module, characterized in that: The steps include: The monitoring data of multiple sensor devices are acquired in real time through the first communication management machine, and the monitoring data are packaged and sent to the background terminal; all the sensor devices directly connected to the first communication management machine are also directly connected to the second communication management machine; Traverse all the sensor devices connected to the first communication management machine; when traversing the current sensor device: if the current sensor device generates the monitoring data, the first communication management machine executes a first random algorithm to generate a random monitoring tag; if the random monitoring tag is successfully generated according to the first random algorithm, control the current sensor device to send the current monitoring data as the first inspection data to the second communication management machine, and then traverse the next sensor device; After traversing all the sensor devices, the first communication manager sends all the random monitoring tags and reconciliation requests to the second communication manager, and then clears all the random monitoring tags; The second communication management machine obtains the monitoring data corresponding to all the random monitoring tags from the first communication management machine as the second verification data based on the reconciliation request, and performs a consistency check between the first verification data and the second verification data, and sends an alarm instruction to the background terminal if the consistency check fails; The first random algorithm includes: Acquire a first range, and divide the first range into a first sub-range and a second sub-range; Obtaining monitoring time periods corresponding to the plurality of sensor devices; During the monitoring time period of the current sensor device, at intervals corresponding to the first set time, a random number within the first range is generated using a random function; If the random number is within the first sub-range, acquiring the current monitoring data of the sensor device and generating a random monitoring tag; If the random number is within the second sub-range, the monitoring data of the current sensor device is not acquired; If the monitoring data is not obtained within the monitoring time period of the current sensor device, the monitoring time period of the current sensor device is repeated until the monitoring data of the current sensor device is obtained and a random monitoring tag is successfully generated.
2. The communication management method of distributed modules according to claim 1, characterized in that: The method also includes: When the first communication manager is connected to the plurality of sensor devices through the first relay station, the first relay station obtains the monitoring data of the plurality of sensor devices, and packages the monitoring data and sends it to the first communication manager, and the first communication manager packages the received data again and sends it to the background terminal; Traversing all the sensor devices connected to the first relay station; when traversing the current sensor device: if the current sensor device generates the monitoring data, the first relay station executes a first random algorithm to generate a random monitoring tag; if the random monitoring tag is successfully generated according to the first random algorithm, the first relay station controls the current sensor device to send the current monitoring data as the first inspection data to the second relay station, and then traverses the next sensor device; After traversing all the sensor devices, the first relay station sends all the random monitoring tags to the first communication manager, the first communication manager generates the reconciliation request and sends all the random monitoring tags and the reconciliation request to the second communication manager, and then clears all the random monitoring tags in the first communication manager and the first relay station; The second communication management machine obtains the monitoring data corresponding to all the random monitoring tags from the first relay station through the second relay station based on the reconciliation request as the second verification data, and performs a consistency check between the first verification data and the second verification data, and sends an early warning instruction to the second communication management machine if the consistency check fails; The second communication management machine sends an alarm instruction to the first communication management machine and the background terminal based on the early warning instruction.
3. The communication management method of distributed modules according to claim 2, characterized in that: The method also includes: When the second communication manager is connected to the other plurality of sensor devices through the second relay station, the second relay station obtains the monitoring data of the other plurality of sensor devices, and packages the monitoring data and sends it to the second communication manager, and the second communication manager packages the received data again and sends it to the background terminal; Traversing all the sensor devices connected to the second relay station; when traversing the current sensor device: if the current sensor device generates the monitoring data, the second relay station executes the first random algorithm to generate a random monitoring tag; if the random monitoring tag is successfully generated according to the first random algorithm, the second relay station controls the current sensor device to send the current monitoring data as the third inspection data to the first relay station, and then traverses the next sensor device; After traversing all the sensor devices, the second relay station sends all the random monitoring tags to the second communication manager, the second communication manager generates the reconciliation request and sends all the random monitoring tags and the reconciliation request to the first communication manager, and then clears all the random monitoring tags in the second communication manager and the second relay station; The first communication management machine obtains the monitoring data corresponding to all the random monitoring tags from the second relay station through the first relay station based on the reconciliation request as the fourth verification data, and performs a consistency check on the third verification data and the fourth verification data, and sends an early warning instruction to the first communication management machine if the consistency check fails; The first communication management machine sends an alarm instruction to the second communication management machine and the background terminal based on the early warning instruction.
4. The communication management method of distributed modules according to claim 1, characterized in that: The method also includes: The size of the first range is adjusted according to the number of the plurality of sensor devices; the more the number of the sensor devices is, the smaller the width of the first range is; the fewer the number of the sensor devices is, the larger the width of the first range is.
5. The communication management method of distributed modules according to claim 3, characterized in that: The method also includes: Obtain the number M1 of sensor devices connected to the first communication management machine through the first relay station; Obtain the number M2 of sensor devices connected to the second communication management machine via the second relay station; Calculate the distribution symmetry of the sensor device = (M1 / (M1+M2)) 2 + (M2 / (M1+M2)) 2 ; The proportion of the first sub-range and the second sub-range is adjusted according to the distribution symmetry, the proportion = (width of the first sub-range / width of the first range) 2 + (width of the second subrange / width of the first range) 2 ; The greater the distribution symmetry, the greater the proportion; the smaller the distribution symmetry, the smaller the proportion.
6. The communication management method of distributed modules according to claim 3, characterized in that: The method also includes: All the sensor devices are connected not only to the first communication manager via the first relay station, but also to the second communication manager via the second relay station.
7. The communication management method of distributed modules according to claim 1, characterized in that: The method also includes: Obtaining the number of the monitoring time periods corresponding to the sensor device when the sensor device successfully generates the random monitoring tag; According to the number of the monitoring time periods, adjusting the size of the corresponding first time interval; The greater the number of monitoring time periods, the smaller the first time interval; the smaller the number of monitoring time periods, the greater the first time interval.
8. A communication management system for distributed modules, characterized in that: It comprises a processor, in which the steps of the communication management method of the distributed module as described in any one of claims 1 to 7 are executed.
9. A storage medium, characterized in that: The medium stores a program, and when the program is executed by a processor, the steps of the communication management method of the distributed module described in any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Composite redundancy PLC control system for hydrogen peroxide sterilizer
CN115220393A
Real-time monitoring device
CN204064335U