Master-slave Station Data Docking Method for Communication Network
By splitting the data into frameworks and elements, and transmitting only elements between the master and slave stations, the problem of poor collaborative operation capabilities between the master and slave stations in the existing technology is solved, and more efficient data transmission and collaborative work is achieved.
Patent Information
- Application Number
- CN202211160502.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-22
- Publication Date
- 2025-06-20
- Estimated Expiration
- 2042-09-22
AI Technical Summary
The existing network transmission speed and delay impacts lead to poor collaborative operation capabilities between the master and slave stations and inability to work synchronously.
By splitting the data of the master and slave station into frameworks and elements according to preset rules, and only the elements are transmitted after receiving the instructions, the elements and the corresponding framework are finally combined into target data between the master and slave stations.
It improves data transmission speed, reduces the occupation of network resources, and ensures the collaborative working ability of the master and slave stations.
Smart Images

Figure CN115801884B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of data processing, and more specifically, relates to a method for data docking between the master and slave stations of a communication network. Background Art
[0002] As an intersection application of computer technology and mobile communication technology, the centralized monitoring technology plays a very crucial role in monitoring each distributed working node of the mobile communication system. Usually, a centralized monitoring system includes multiple working ends, which form different networks according to different topological structures, and thus form different data links. In practical applications, the data link structure of centralized monitoring can be divided into two types, namely point-to-point links and point-to-multipoint links. If these data links are connected through full-duplex physical channels, it is called a full-duplex centralized monitoring data link structure.
[0003] The master station is connected to one slave station channel, and can also be connected to multiple slave station channels simultaneously. However, when the existing data method is used for transmission and communication between the master station and the slave station, due to the influence of the existing network transmission speed and delay, etc., the collaborative operation ability between the master station and the slave station is poor in the end, and they cannot work synchronously. Summary of the Invention
[0004] The purpose of the present invention is to provide a method for data docking between the master and slave stations of a communication network, aiming to solve the problem that due to the influence of the existing network transmission speed and delay, etc., the collaborative operation ability between the master station and the slave station is poor in the end, and they cannot work synchronously.
[0005] To achieve the above purpose, the technical solution adopted by the present invention is: providing a method for data docking between the master and slave stations of a communication network, including:
[0006] The master station and the slave station split their respective data into frames and elements matching the frames according to preset rules;
[0007] According to the received instruction, the elements are transmitted between the master station and the slave station;
[0008] The master station and the slave station combine the received elements with the corresponding frames into target data.
[0009] In a possible implementation manner, the master station and the slave station splitting their respective data into frames and elements matching the frames includes:
[0010] According to the importance degree of the data, the key part is divided into the elements, and the non-key part is divided into the frames.
[0011] In a possible implementation, the combination of the received elements and the corresponding frameworks by the master station and the slave station into target data includes:
[0012] The framework of the slave station is stored in the master station, and the framework of the master station is stored in the slave station;
[0013] The received elements are combined with the stored corresponding frameworks to finally form the target data.
[0014] In a possible implementation, before the master station and the slave station combine the received elements and the corresponding frameworks into target data, it further includes:
[0015] The frameworks are numbered according to the data type, and the frameworks and the corresponding numbers are uploaded;
[0016] The master station and the slave station obtain the corresponding frameworks through the numbers.
[0017] In a possible implementation, the combination of the received elements and the corresponding frameworks by the master station and the slave station into target data includes:
[0018] A memory is connected between the master station and the slave station. The master station and the slave station transmit the elements through the memory, and the frameworks in the master station and the slave station are both recorded or stored in the memory.
[0019] In a possible implementation, the connection of a memory between the master station and the slave station includes:
[0020] Multiple slave stations are all connected to the memory, and the multiple slave stations receive the elements and the corresponding frameworks through the memory.
[0021] In a possible implementation, the multiple slave stations receiving the elements and the corresponding frameworks through the memory includes:
[0022] The multiple slave stations transmit the elements to the memory, and the memory is adjusted to transmit the multiple elements to the master station simultaneously.
[0023] In a possible implementation, the transmission of the multiple elements to the master station simultaneously by adjusting the memory includes:
[0024] A buffer zone is set in the memory, and each element is sequentially transmitted to the corresponding buffer zone; the buffer zone is used to temporarily store the elements;
[0025] The memory adjusts the transmission speed of each of the elements according to the amount of the elements retained in each of the buffer bands.
[0026] In a possible implementation, the multiple slave stations receiving the elements and the corresponding frames through the memory includes:
[0027] Buffers are provided on each of the multiple slave stations, and the buffers are used to store instructions;
[0028] By adjusting the instruction issuing speed of each of the buffers, the multiple slave stations work synchronously.
[0029] In a possible implementation, the making the multiple slave stations work synchronously by adjusting the instruction issuing speed of each of the buffers includes:
[0030] When the instruction completion speed of the slave station is relatively fast, the buffer reduces the instruction issuing speed;
[0031] When the instruction completion speed of the slave station is relatively slow, the buffer increases the instruction issuing speed.
[0032] The beneficial effect of the master-slave station data docking method for a communication network provided by the present invention is that: compared with the prior art, in the master-slave station data docking method for a communication network of the present invention, the data in the master station and the slave stations is first split into frames and elements according to a preset rule. After the master station and the slave stations receive an instruction, only the elements are transmitted between the master station and the slave stations.
[0033] When the master station or the slave station receives an element, it combines the element with the corresponding frame, and after the combination is completed, it is the target data. In this application, the complete data is split into elements, and only the elements can be used for data transmission between the master station and the slave stations. Because the data volume of the elements is small and the network resources occupied are few, the data transmission speed is improved to a certain extent, and the coordinated work of the master station and the slave stations is ensured. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following will briefly introduce the drawings required for use in the embodiments or the description of the prior art. Obviously, the following drawings are only some embodiments of the present invention, and for those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.
[0035] Figure 1 It is a flowchart of the master-slave station data docking method for a communication network provided by an embodiment of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0036] In order to make the technical problems, technical solutions and beneficial effects to be solved by the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
[0037] See also Figure 1 The communication network master-slave station data connection method provided by the present invention is now described. The communication network master-slave station data connection method comprises:
[0038] The master station and the slave station split their respective data into frames and elements matching the frames according to preset rules.
[0039] Based on the received instructions, the master and slave stations transfer elements.
[0040] The master and slave combine the received elements with the corresponding frames as target data.
[0041] The beneficial effect of the communication network master-slave station data docking method provided by the present invention is that: compared with the prior art, the communication network master-slave station data docking method of the present invention first splits the data in the master station and the slave station into frames and elements according to preset rules. After the master station and the slave station receive the instruction, only the elements are transmitted between the master station and the slave station.
[0042] When the master station or the slave station receives the elements, they are combined according to the elements and the corresponding framework, and the target data is obtained after the combination is completed. In this application, the complete data is split into elements, and the master station and the slave station can transmit data only through the elements. Because the data volume of the elements is small and the network resources occupied are small, the data transmission speed is improved to a certain extent, and the collaborative work of the master station and the slave station is guaranteed.
[0043] Usually, there is only one master station in a centralized monitoring system, and the others are slave stations. The role of the master station is to provide data and information relay and forwarding for the monitoring center and the monitoring slave stations, and it is a device used to communicate directly with the monitoring center. A slave station refers to a device that cannot communicate directly with the monitoring center in a local base station monitoring subnet composed of multiple devices. All communication packets between the slave station and the monitoring center must be forwarded by the monitoring master station. In a full-duplex centralized monitoring data link, the communication link between stations always exists, and there is no need to establish or dismantle the link in the middle. All stations can receive data packets on the communication link. If the destination address of the data packet is different from the address of the local station, the data packet will be discarded, otherwise further processing will be performed.
[0044] At present, the power grid dispatching automation system mainly consists of the data acquisition and monitoring system (SCADA), etc. It is an indispensable part of the modern power system dispatching. Its function is to collect complete information, correctly and quickly grasp the system status, accelerate decision-making, shorten the fault recovery time, and at the same time, it can also perform preventive analysis and avoid system failures, guiding the dispatcher to make scientific and reasonable dispatching decisions.
[0045] The front-end system of the power grid dispatching automation mainly undertakes the data acquisition of various types of RTUs (remote terminal units), substations and other real-time information. In addition, it can also be used as a communication processing system for remote control and remote adjustment, and is the hub for information exchange between the master station and the RTU. For the upstream data, it receives the telemetry data of substations and other facilities from the network, classifies and processes the data according to different protocols, and then uniformly packages and sends it to the master station system. The master station system stores the data in the real-time database for the convenience of the control and regulation personnel to view and other operations. For the downstream data, the master station system issues control commands and sends them to the front-end system through the network. The duty host in the front-end system packages the data according to the protocol, and the communication server sends it to the substations and other facilities through the network.
[0046] At present, the substations send the data collected by the RTUs to the front-end server of the master station through the network according to a certain protocol. The front-end system of the master station analyzes the data, including tasks such as timestamping the data, and then sends the processed data to each master station system. Since the RTUs do not timestamp the collected data, when the data between the master station and the substation side is inconsistent, it is impossible to conduct unified comparative analysis to accurately determine the root cause of the problem, which affects the monitoring of the power grid status by the control and regulation personnel, especially major accidents such as power grid failures.
[0047] In the field of industrial control, it is often necessary to control multiple slave stations through a master station for communication management and other related operations, including the transmission of ordinary detection signals to the management and control of equipment sensors.
[0048] Traditional management and control is through a wired connection method. The master station and the slave stations are connected together by cables to form a wired network. In this network, the controlled equipment is monitored and managed in real time. The main control device is used to control and manage the "controlled equipment", issue instructions, and collect information; the master station is responsible for transmitting the data of the "main control device"; the slave station is used to receive the data transmitted from the "master station" and convert it to the interface of the "controlled equipment"; the controlled equipment is the equipment managed and controlled by the "main control device"; the cable connection method is a way of transmitting through wired cables, such as Ethernet cables.
[0049] When networking is carried out in a wired manner, if the controlled area is relatively large, in practical applications, the wiring process will be very cumbersome, the construction cost will be very high, and the time to complete networking will be relatively long. Thus, there is a strong desire for wireless networking. However, wireless networking will have certain delays and instability, mainly due to phenomena such as communication congestion or delay, as well as the problem of front-end host parsing. For example, there are many RTU device manufacturers, the protocols are not the same, and the data volume is large, etc., which are prone to the problem of front-end host parsing, resulting in the acquisition data sent by the substation side being stacked, thus causing inconsistent data on both sides when the front-end is timestamping the data.
[0050] When the master station controls the slave stations to perform a certain task simultaneously, due to different delay times, the slave stations cannot work synchronously according to the instruction requirements. In many application scenarios, such as the power test system, real-time data transmission is carried out between the master test station and the slave test stations. It is required that the instruction cycle of the test system is less than 50 ms, and the clock accuracy of the slave stations working simultaneously is better than ±1 us. The current wireless communication method cannot meet the requirements.
[0051] In some embodiments of the master-slave station data docking method for the communication network provided in this application, the master station and the slave stations split their respective data into frames and elements matching the frames according to preset rules, including:
[0052] According to the importance degree of the data, the key part is divided into elements, and the non-key part is divided into frames.
[0053] It can be obtained from the background technology that although the wired method can meet the data transmission requirements to a certain extent, when the distance between the master station and the slave stations is relatively far, it will lead to difficult wiring. And when using the wireless form, due to the delay of data transmission, it will cause the inability to transmit data in real time.
[0054] The main reason for the inability to achieve real-time data transmission is that in the prior art, when transmitting a data, the data is directly transmitted in a certain order. Taking the transmission of a group of data from the slave station to the master station as an example, the master station will receive as much data as the slave station uploads to the master station. And usually, after a data transmission is completed, a series of operations such as reading can be carried out, which causes a lot of trouble for the collaborative operation between the master station and the slave stations, that is, the real-time transmission of communication.
[0055] The solution is to adopt a network with higher speed and lower delay. However, the development of the network requires a certain amount of time and there are many difficulties to overcome, which cannot meet the current practical problems. Another method is to increase the rate of the existing wireless transmission, but the corresponding cost may be relatively high and the economy is poor.
[0056] There is a need for data transmission between the master station and the slave station. More importantly, the master station and the slave station may need to work simultaneously according to instructions. However, due to the influence of the existing network transmission rate and delay, a large amount of data cannot be transmitted quickly, resulting in the inability to achieve complete synchronization between the master station and the slave station, which brings a lot of trouble to daily work.
[0057] In this application, the entire data is split, and then the key elements are stored in the data owner. Taking the data transmission from the slave station to the master station as an example, the key information of the data, that is, the elements of the data, are stored in the slave station, while the master station only stores the data framework. These data frameworks have low specificity and can supplement the types of non-real-time acquired data.
[0058] When the slave station communicates with the master station, the slave station transmits elements to the master station, and the master station combines these elements with the data framework to finally form the target data. Since the amount of data of the elements to be transmitted per unit time is reduced, the data waiting time is avoided to a certain extent.
[0059] In some embodiments of the master-slave station data docking method for the communication network provided in this application, the master station and the slave station combining the received elements with the corresponding frameworks into the target data includes:
[0060] The framework of the slave station is stored in the master station, and the framework of the master station is stored in the slave station.
[0061] The received elements are combined with the stored corresponding frameworks to finally form the target data.
[0062] The respective data of the master station and the slave station are stored in a complete form. To improve efficiency and avoid long waiting times due to reasons such as insufficient computing power, before the master station and the slave station need to perform data transmission and collaborative operations, both the master station and the slave station need to divide their own data into frameworks and elements according to corresponding rules.
[0063] It should be particularly noted that the rules for dividing the frameworks and elements of the master station and the slave station are the same, that is, the frameworks divided from the data on the master station will also be stored in the slave station, and the frameworks divided from the slave station will also be stored in the master station, while the respective key elements are stored in their respective storage locations.
[0064] After the master station receives the instruction, the master station will transmit the instruction to the slave station. The slave station retrieves the corresponding data, which exist in the corresponding frameworks and elements. The slave station will transmit the required framework or the type of the framework to the master station. The master station retrieves the corresponding framework, and then fills the elements uploaded by the slave station into the retrieved framework to complete the data transmission.
[0065] In some embodiments of the master-slave station data docking method for a communication network provided in this application, before the master station and the slave station combine the received elements with the corresponding frameworks into target data, it further includes:
[0066] Number the frameworks according to the type of data, and upload the frameworks and the corresponding numbers.
[0067] The master station and the slave station obtain the corresponding frameworks through the numbers.
[0068] Both the master station and the slave station store a certain amount of data. In the traditional data transfer, the data is stored in a complete form. Although the above method is convenient for data reading, a realistic problem is that if the data is stored or transmitted in a complete form, more storage space for data is required, more network resources are occupied, and once it is stolen, the loss caused is relatively large.
[0069] To improve the security of data and at the same time improve the efficiency of data upload and processing, in this application, the data of the master station and the slave station can be stored in the form of elements, and the corresponding frameworks can be processed and stored in a standardized manner. To improve security, different frameworks can be numbered. Each data element corresponds to one or more frameworks, that is, one or more numbers.
[0070] When data transfer and other operations are required, only the corresponding elements need to be transmitted, and the frameworks corresponding to the elements can be queried through the numbers, and then the elements and the frameworks are combined to finally form the required data.
[0071] In some embodiments of the master-slave station data docking method for a communication network provided in this application, the master station and the slave station combining the received elements with the corresponding frameworks into target data includes:
[0072] A memory is connected between the master station and the slave station. The master station and the slave station transmit elements through the memory, and the frameworks in the master station and the slave station are both recorded or stored in the memory.
[0073] Since the same frameworks are stored in both the master station and the slave station, to a certain extent, it causes a waste of storage resources, and since the frameworks are stored in both the master station and the slave station, once the frameworks are stolen, the corresponding data may be stolen.
[0074] Based on the above problems, in this application, a memory can be set between the master station and the slave station, and the memory is connected to the master station and the slave station respectively. Multiple frames are stored in the memory, and the memory can also download the corresponding frame by number. When the slave station needs to transmit data to the master station, the slave station transmits elements to the master station, and the memory will transmit the frame to the master station at the same time. The master station will receive the frame and elements at the same time, and finally form the required data by combining the frame and elements.
[0075] By storing the framework and elements separately, the required data space is solved and security is improved.
[0076] In some embodiments of the communication network master-slave station data docking method provided in the present application, a memory is connected between the master station and the slave station, including:
[0077] A plurality of slave stations are connected to the memory, and the plurality of slave stations receive elements and corresponding frames through the memory.
[0078] The memory can transmit frames to the master and slave at the same time. The reality is that one master corresponds to multiple slaves, that is, one master can establish communication and transmission relationships with multiple slaves. In actual applications, data can be communicated between multiple slaves through one master. If each slave is equipped with data storage and other components, it will cause a large cost.
[0079] By connecting the memory to multiple slave stations for communication, synchronous control of multiple slave stations can be achieved to a certain extent.
[0080] The specific implementation method is that the master station transmits the instruction to the memory, and the memory sends the instruction to multiple slave stations, so that the multiple slave stations work in coordination.
[0081] In some embodiments of the communication network master-slave station data docking method provided in the present application, multiple slave stations receive elements and corresponding frames through a memory including:
[0082] Multiple slaves transfer elements to the memory, and by adjusting the memory, multiple elements are transferred to the master at the same time.
[0083] When the master station needs multiple slave stations to work together and needs to synchronize the data of multiple slave stations to the master station, it needs to use the memory to process and finally complete the synchronous processing of the data.
[0084] In this application, in order to ensure that multiple slave stations work simultaneously, the data of multiple slave stations will first be input into the memory. Since the amount of element data transmitted to the memory is small, the memory can be set to receive elements of multiple slave stations at the same time.
[0085] Since the memory is set between the master station and multiple slave stations, even if the memory does not receive elements from multiple slave stations simultaneously, through the adjustment of the memory, each element can be sent to the master station simultaneously, ensuring that each element can be accurately transmitted to the master station. The memory will transmit a framework to the master station. After receiving the framework, the master station will copy according to the number of frameworks, and then generate data separately and simultaneously. In this way, it can be ensured that the data of multiple slave stations can be transmitted to the master station simultaneously, improving the collaborative ability.
[0086] In some embodiments of the master-slave station data docking method provided in this application, transmitting multiple elements to the master station simultaneously by adjusting the memory includes:
[0087] A buffer zone is set in the memory, and each element is sequentially transmitted to the corresponding buffer zone; the buffer zone is used to temporarily store elements.
[0088] The memory adjusts the transmission speed of each element according to the amount of elements remaining in each buffer zone.
[0089] For example, if there are fewer elements remaining on one buffer zone, then reduce the transmission speed of elements on the other buffer zones. If there are more elements remaining on all buffer zones, then increase the transmission speed of elements on each buffer zone.
[0090] To ensure the synchronous transmission of elements, the generated elements can be numbered. Through this setting, the memory can clearly understand the current data generation situation of each slave station, making it more convenient for the synchronous transmission of elements of each slave station and easier for the collaborative work of each slave station.
[0091] In some embodiments of the master-slave station data docking method provided in this application, multiple slave stations receive elements and corresponding frameworks through the memory, including:
[0092] Buffers are set on multiple slave stations, and the buffers are used to store instructions.
[0093] By adjusting the instruction issuing speed of each buffer, multiple slave stations work synchronously.
[0094] Existing methods cannot be effectively controlled, that is, it will cause some slave station working nodes to be ahead and some to be behind. To enable multiple slave stations to work simultaneously, the traditional method is for the master station to send instructions to multiple slave stations simultaneously. Due to a series of reasons such as network latency, some slave stations will receive instructions earlier and some will receive instructions later, ultimately resulting in the inability of multiple slave stations to work synchronously.
[0095] To avoid a series of problems such as network extension, a buffer is provided on each slave station in this application. The instructions sent from the master station will first be stored in the buffer. The buffer has a certain storage space. After storing a certain number of instructions, the buffers on multiple slave stations will simultaneously transmit the instructions to their respective slave stations, ultimately ensuring that multiple slave stations operate synchronously.
[0096] In some embodiments of the master-slave station data docking method for a communication network provided in this application, enabling multiple slave stations to operate synchronously by adjusting the speed of issuing instructions by each buffer includes:
[0097] When the instruction completion speed of a slave station is relatively fast, the buffer reduces the speed of issuing instructions.
[0098] When the instruction completion speed of a slave station is relatively slow, the buffer increases the speed of issuing instructions.
[0099] There may be differences in the operating conditions of multiple slave stations, which leads to certain differences in the instruction execution speed of the slave stations. That is, even if the instructions are sent simultaneously, the completion times of the slave stations are different, resulting in the slave stations being unable to operate synchronously.
[0100] To solve the above problems, it is necessary to adjust the speed of instruction input in the buffer according to the speed at which the final data of multiple slave stations is generated. For the buffer of the slave station with a faster instruction completion speed, slow down the speed of its instruction input. For the buffer of the slave station with a slower instruction completion speed, increase the speed of its instruction input, and ultimately make appropriate adjustments to the operating conditions of multiple slave stations.
[0101] The above are only the preferred embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent replacements, and improvements made within the spirit and principles of the present invention shall be included within the protection scope of the present invention.
Claims
1. A method for data docking between the master and slave stations of a communication network, characterized in that, Including: The master station and the slave stations split their respective data into frames and elements matching the frames according to preset rules; According to the received instructions, the elements are transmitted between the master station and the slave stations; The master station and the slave stations combine the received elements with the corresponding frames into target data; The master station and the slave stations combining the received elements with the corresponding frames into target data includes: A memory is connected between the master station and the slave stations. The master station and the slave stations transmit the elements through the memory, and the frames in the master station and the slave stations are both recorded or stored in the memory; A memory being connected between the master station and the slave stations includes: Connecting multiple slave stations to the memory, and the multiple slave stations receive the elements and the corresponding frames through the memory; The multiple slave stations receiving the elements and the corresponding frames through the memory includes: The multiple slave stations transmit the elements to the memory, and the memory adjusts to transmit the multiple elements to the master station simultaneously; The adjusting the memory to transmit the multiple elements to the master station simultaneously includes: A buffer zone is set in the memory, and each element is sequentially transmitted to the corresponding buffer zone; the buffer zone is used for temporarily storing the elements; The memory adjusts the transmission speed of each element according to the amount of elements remaining in each buffer zone.
2. The method for data docking between the master and slave stations of a communication network according to claim 1, characterized in that, The master station and the slave stations splitting their respective data into frames and elements matching the frames according to preset rules includes: According to the importance degree of the data, dividing the key parts into the elements and dividing the non-key parts into the frames.
3. The method for data docking between the master and slave stations of a communication network according to claim 2, characterized in that, The master station and the slave stations combining the received elements with the corresponding frames into target data includes: The frame of the slave station is stored in the master station, and the frame of the master station is stored in the slave station; Combining the received elements with the stored corresponding frames to finally form the target data.
4. The method for data docking between the master and slave stations of a communication network according to claim 1, characterized in that, Before the master station and the slave stations combine the received elements with the corresponding frames into target data, it further includes: Numbering the frames according to the data type, and uploading the frames and the corresponding numbers; The master station and the slave stations obtain the corresponding frames through the numbers.
5. The method for data docking between the master and slave stations of a communication network according to claim 1, characterized in that, The multiple slave stations receiving the elements and the corresponding frames through the memory includes: Buffers are set on multiple slave stations, and the buffers are used for storing instructions; By adjusting the instruction issuing speed of each buffer, the multiple slave stations work synchronously.
6. The method for data docking between the master and slave stations of a communication network according to claim 5, characterized in that, The adjusting the instruction issuing speed of each buffer to make the multiple slave stations work synchronously includes: When the instruction completion speed of the slave station is relatively fast, the buffer reduces the instruction issuing speed; When the instruction completion speed of the slave station is relatively slow, the buffer increases the instruction issuing speed.
Citation Information
Patent Citations
Time synchronization system
CN103209042A
Method and apparatus for lightweight data transmission between substation and master station
CN107515741A