Two-way cooperative transceiving method and device for 104 protocol data and electronic equipment

By adopting a two-way collaborative working method in 104 standard data transmission, using feedback information to update data identification and transmission efficiency, and optimizing the processing and transmission of cached area data, the efficiency and real-time problems of data transmission in a weak network environment are solved, and more efficient data transmission is achieved.

CN119728778AActive Publication Date: 2025-03-28NINGDE POWER SUPPLY COMPANY STATE GRID FUJIAN ELECTRIC POWER
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202510246507.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-04
Publication Date
2025-03-28
Estimated Expiration
2045-03-04

AI Technical Summary

Technical Problem

In a weak network environment, the transmission of 104 standard data faces data transmission pressure caused by high transmission failure rate, high latency, low load resource utilization and large equipment scale, and the prior art is difficult to effectively deal with these problems.

Method used

Through two-way collaboration between the first terminal and the second terminal, the important data identification list and the transmission performance information table feedback from the receiving end are updated with the important data identification list and the transmission performance information table, thereby updating the comprehensive importance level of the data in the cache area to be sent, and adjusting the cache location of the data in the cache area to be sent, optimizing data transmission.

Benefits of technology

The optimization of two-way data transmission and reception is realized, which improves the real-time and effectiveness of data transmission, reduces the transmission failure rate and delay, and improves resource utilization.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119728778A_ABST
    Figure CN119728778A_ABST
Patent Text Reader

Abstract

The invention provides a bidirectional cooperative transceiving method and device for 104 protocol data and electronic equipment, and relates to the technical field of data processing. According to the implementation scheme, the method is applied to a first terminal, under the condition that feedback information from a second terminal is received, based on a first important data identification list and a first transmission efficiency information table in the feedback information, a second important data identification list and a second transmission efficiency information table in the first terminal are updated respectively, the comprehensive importance level of each piece of first data in the to-be-sent cache region of the first terminal is updated; based on the updated comprehensive importance level of each piece of first data, adjusting the cache position of each piece of first data in the to-be-sent cache region; and extracting the second data from the to-be-sent cache region, assembling the updated comprehensive importance level of the second data into a message header of the second data, and sending the assembled second data to the second terminal.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing technology, and in particular to a method, device and electronic device for bidirectional collaborative sending and receiving of 104 protocol data. Background Art

[0002] In modern power systems, IEC 60870-5-104 (abbreviated as 104 protocol) is widely used for remote data monitoring and control of power equipment. It is based on the TCP / IP protocol, realizes two-way communication between the master station and the substation, and carries key data including telesignaling, telemetry, and remote control. The reliability and transmission efficiency of 104 protocol are directly related to the safety and stability of power grid operation, especially in the field of distribution network automation. Any data transmission problem will bring risks such as inaccurate equipment status monitoring and control command failure.

[0003] However, in a weak network environment, 104 protocol data transmission faces many challenges: High transmission failure rate: Traditional TCP / IP transmission mechanism is prone to packet loss, transmission timeout and other problems under weak network conditions.

[0004] Lack of real-time performance: The timeliness and reliability of high-priority data (such as remote control commands) cannot be guaranteed.

[0005] Low utilization of load resources: In the face of network load fluctuations, the lack of dynamically adjusted transmission strategies may lead to congestion or load waste.

[0006] Large scale of equipment: A city may have tens of thousands of devices connected to the system, and the amount of data is huge, further increasing the transmission pressure.

[0007] Moreover, since 104 protocol is the current standard of the State Grid, its existing implementation cannot effectively deal with these problems. Therefore, optimizing the data transmission of the power system in a weak network environment requires a highly compatible and efficient solution. Summary of the invention

[0008] The present invention provides a method, device, electronic device and storage medium for bidirectional collaborative sending and receiving of 104 protocol data, which can solve at least one of the above technical problems.

[0009] According to one aspect of the present invention, a method for bidirectional collaborative transmission and reception of 104 protocol data is provided, comprising: When the first terminal receives feedback information from the second terminal, the first terminal updates the second important data identification list and the second transmission efficiency information table in the first terminal based on the first important data identification list and the first transmission efficiency information table in the feedback information respectively; The first terminal updates the comprehensive importance level of each first data in the to-be-sent buffer area of ​​the first terminal based on the updated second important data identification list and the updated second transmission efficiency information table; The first terminal adjusts the cache position of each of the first data in the to-be-sent cache area based on the updated comprehensive importance level of each of the first data; The first terminal extracts the second data from the to-be-sent buffer area, assembles the updated comprehensive importance level of the second data into a message header of the second data, and sends the assembled second data to the second terminal.

[0010] According to another aspect of the present invention, a bidirectional cooperative transceiver of protocol data is provided, comprising: A first updating module, configured to update, when the first terminal receives feedback information from the second terminal, the second important data identification list and the second transmission efficiency information table in the first terminal based on the first important data identification list and the first transmission efficiency information table in the feedback information respectively; A second updating module, configured for the first terminal to update the comprehensive importance level of each first data in the to-be-sent buffer area of ​​the first terminal based on the updated second important data identification list and the updated second transmission efficiency information table; A queue adjustment module, configured for the first terminal to adjust a cache position of each of the first data in the to-be-sent cache area based on an updated comprehensive importance level of each of the first data; The data sending module is used for the first terminal to extract the second data from the to-be-sent buffer area, assemble the updated comprehensive importance level of the second data into a message header of the second data, and send the assembled second data to the second terminal.

[0011] The technical solution of the present invention is adopted, through the two-way cooperation between the first terminal (sender) and the second terminal (receiver), the important data identification list and transmission efficiency information table of the local sender are updated through the information fed back by the receiver, such as the important data identification list and the transmission efficiency information table, so that the sender uses the locally updated important data identification list and the transmission efficiency information table to update the comprehensive important identification level of each first data in the local cache area to be sent, and adjusts the cache position of each first data in the cache area to be sent based on this, and subsequently the sender extracts the second data according to the sorting order of each first data in the cache area to be sent after the position adjustment, and sends the second data to the receiver. In this way, two-way data transmission and reception optimization can be achieved, and the real-time and effectiveness of data transmission can be improved.

[0012] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] The accompanying drawings are used to better understand the present invention and do not constitute a limitation of the present invention. Figure 1 is a flow chart of a bidirectional collaborative sending and receiving method of protocol data 104 according to an embodiment of the present invention; Figure 2 is a flow chart of a bidirectional collaborative sending and receiving method of protocol data 104 according to another embodiment of the present invention; Figure 3 It is a structural block diagram of a bidirectional cooperative transceiver of 104 protocol data according to an embodiment of the present invention; Figure 4 The block diagram is a block diagram of an electronic device for implementing the method according to the embodiment of the present invention. DETAILED DESCRIPTION

[0014] The following is a description of exemplary embodiments of the present invention in conjunction with the accompanying drawings, including various details of the embodiments of the present invention to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be appreciated by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope of the present invention. Similarly, for clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.

[0015] Related terms: 104 protocol: IEC 60870-5-104 protocol is a communication protocol used to achieve remote monitoring and control in power systems. It realizes data transmission based on TCP / IP protocol and is widely used in distribution network automation.

[0016] Weak network environment: refers to a network environment with high network delay, high fluctuation, high packet loss rate and / or unstable load. It is common in wireless networks or long-distance communication scenarios and poses a challenge to data transmission with high real-time and reliability requirements.

[0017] Telesignaling data: Binary data indicating the status of equipment (such as switch position), including single-point telesignaling and dual-point telesignaling, which can be used to monitor the operating status of the power grid in real time.

[0018] Telemetry data: continuous value data representing equipment operating parameters (such as voltage and current), including normalized values, scaled values, and floating-point formats, used to monitor the operating status of the power grid.

[0019] Remote control data: command data used to remotely control power equipment, such as the opening and closing operations of circuit breakers, usually has the highest priority.

[0020] 104 protocol parser: A tool used to identify and parse the received 104 protocol data, capable of extracting ASDU (Application Service Data Unit) information and classifying data types.

[0021] Weak network enhancement software: A software tool deployed on the first terminal and the second terminal that can optimize the sending and receiving process of 104 protocol data in a weak network environment, including policy loading and transmission protocol optimization.

[0022] ASDU (Application Service Data Unit): The basic unit in 104 protocol that carries data and control information, including various types of data such as telesignaling, telemetry, and remote control.

[0023] Figure 1 It is a flow chart of a bidirectional collaborative sending and receiving method of 104 protocol data according to an embodiment of the present invention.

[0024] like Figure 1 As shown, the bidirectional collaborative sending and receiving method of the protocol data 104 may include: S110, when the first terminal receives feedback information from the second terminal, the first terminal updates the second important data identification list and the second transmission efficiency information table in the first terminal based on the first important data identification list and the first transmission efficiency information table in the feedback information respectively; S120, the first terminal updates the comprehensive importance level of each first data in the to-be-sent buffer area of ​​the first terminal based on the updated second important data identification list and the updated second transmission efficiency information table; S130, the first terminal adjusts the cache position of each first data in the to-be-sent cache area based on the updated comprehensive importance level of each first data; S140, the first terminal extracts the second data from the to-be-sent buffer area, assembles the updated comprehensive importance level of the second data into a message header of the second data, and sends the assembled second data to the second terminal.

[0025] Exemplarily, the first terminal and the second terminal may be distribution network automation terminals. Figure 2 As shown, the first terminal can be a sending terminal, and the second terminal can be a receiving terminal. The first terminal can also be a receiving terminal of information sent by the second terminal, and the second terminal can also be a sending terminal that sends information to the first terminal.

[0026] Exemplarily, the first important data identification list includes importance levels corresponding to multiple data types and business types. The first important data identification list may be a list stored in the second terminal, and the second important data identification list includes importance levels corresponding to multiple data types and business types. The second important data identification list may be a list stored in the first terminal.

[0027] Exemplarily, the first transmission efficiency information table includes transmission efficiencies corresponding to a plurality of data types and service types. The first transmission efficiency information table may be an information table stored in the second terminal. The second transmission efficiency information table includes transmission efficiencies corresponding to a plurality of data types and service types. The second transmission efficiency information table may be an information table stored in the first terminal.

[0028] Exemplarily, the buffer area to be sent is used to buffer data to be sent to the second terminal. The buffer area to be sent may include multiple buffer queues, each buffer queue includes multiple data arranged in sequence. The frequency of sending data in each buffer queue may be different.

[0029] Exemplarily, the first data and the second data may be any power-related data in the power distribution network, and the data is 104 protocol data.

[0030] Exemplarily, the data types under the 104 protocol may include telemetry data, remote control data, remote adjustment data, etc.

[0031] Exemplarily, the business types of data under the 104 protocol may include monitoring data, alarm data, status reporting data, log data, etc.

[0032] Exemplarily, each first data in the to-be-sent cache area of ​​the first terminal is pre-determined with the corresponding comprehensive importance level according to the second important data identification list and the second transmission efficiency information table in the local first terminal. If the above feedback information is received, the comprehensive importance level of each first data is updated, and then the cache position of each first data in the cache area is adjusted.

[0033] Exemplarily, the first terminal extracts the second data from the buffer area to be sent according to the buffer position of each first data in the buffer area to be sent. For example, the buffer area includes multiple queues, and according to the sending frequency of each queue, the first-ranked data is extracted from the corresponding queue as the second data for data transmission. Alternatively, if the buffer area includes only one queue, the first-ranked data is extracted from the queue as the second data for data transmission.

[0034] It can be understood that the extracted second data is deleted from the queue.

[0035] Exemplarily, the second data may be any one of the above-mentioned first data.

[0036] According to the above implementation, through the two-way collaboration between the first terminal (sender) and the second terminal (receiver), the important data identification list and transmission efficiency information table of the local sender are updated through the information fed back by the receiver, such as the important data identification list and the transmission efficiency information table, so that the sender uses the locally updated important data identification list and the transmission efficiency information table to update the comprehensive important identification level of each first data in the local cache area to be sent, and adjusts the cache position of each first data in the cache area to be sent based on this, and subsequently the sender extracts the second data according to the sorting order of each first data in the cache area to be sent after the position adjustment, and sends the second data to the receiver. In this way, two-way data transmission and reception optimization can be achieved, and the real-time and effectiveness of data transmission can be improved.

[0037] Exemplarily, the first terminal updates the comprehensive importance level of each first data in the to-be-sent cache area of ​​the first terminal based on the updated second important data identification list and the updated second transmission efficiency information table, including: the first terminal parses the first data based on the 104 protocol to obtain attribute information of the first data, wherein the attribute information includes the data type, service type, time sensitivity, service priority, data structure and data volume of the first data; the first terminal determines the corresponding target importance level in the updated second important data identification list based on the data type and service type of the first data; the first terminal determines the corresponding target transmission efficiency in the updated second transmission efficiency information table based on the data type and service type of the first data; the first terminal updates the comprehensive importance level of the first data based on the attribute information of the first data, the target importance level, and the target transmission efficiency.

[0038] Exemplarily, the data types under the 104 protocol may include telemetry data, remote control data, remote adjustment data, etc.

[0039] Exemplarily, the business types of data under the 104 protocol may include monitoring data, alarm data, status reporting data, log data, etc.

[0040] Exemplarily, the time sensitivity of data under the 104 protocol is used to indicate the validity period of the data.

[0041] Exemplarily, the service priority of data under the 104 protocol may be represented by a value or level, such as high, medium or low.

[0042] Exemplarily, the data structure of the data under the 104 specification may include structured data, binary data, and the like.

[0043] Exemplarily, the data volume of the data under the 104 protocol may be the number of bytes.

[0044] Exemplarily, based on the data type and business type of the first data, the importance level corresponding to the same data type and the same business type is recorded in the updated second important data identification list, and the importance level is used as the target importance level.

[0045] Exemplarily, based on the data type and service type of the first data, the transmission efficiency corresponding to the same data type and the same service type is recorded in the updated second transmission efficiency information table, and the transmission efficiency is used as the target transmission efficiency.

[0046] Exemplarily, each information in the attribute information of the first data, the target importance level, and the target transmission efficiency are respectively an input parameter, and each input parameter is normalized so that its value is between 0 and 1. The normalization method can be selected from linear normalization, logarithmic normalization, etc. according to the properties of the parameters.

[0047] Exemplarily, a utility function is constructed for each input parameter. The utility function can be linear, nonlinear (such as logarithmic, exponential), piecewise function, etc.

[0048] Exemplarily, the normalized value of each input parameter is multiplied by the corresponding utility function, and then all the results are added together to obtain the comprehensive utility value of the first data.

[0049] Exemplarily, the comprehensive importance level of the first data is determined according to the comprehensive utility value of the first data.

[0050] It can be understood that for different comprehensive utility values, the corresponding business data is divided into different importance levels. For example, the value range of the comprehensive utility value can be divided into several intervals, each interval corresponding to an importance level.

[0051] According to the above-mentioned implementation mode, the attribute information of the first data is first determined, wherein the attribute information includes the data type, service type, time sensitivity, service priority, data structure and data volume of the first data; then, based on the attribute information of the first data, the updated importance level of the first data, and the updated transmission efficiency of the first data, the comprehensive importance level of the first data can be accurately updated.

[0052] In one embodiment, the first terminal adjusts the cache position of each first data in the cache area to be sent based on the updated comprehensive importance level of each first data, including: the first terminal sorts each first data based on the updated comprehensive importance level of each first data to obtain a first sequence queue; the first terminal sorts each first cache queue based on the data sending frequency of each first cache queue in the cache area to be sent to obtain a second sequence queue; the first terminal divides the first sequence queue based on the position of the start data and the position of the end data of each first cache queue in the second sequence queue to obtain multiple second cache queues; wherein the multiple second cache queues are cache queues for caching each first data after the cache position has been adjusted in the cache area to be sent.

[0053] Exemplarily, the to-be-sent buffer area may include a plurality of first buffer queues. Therefore, adjusting the buffer position of the data includes adjusting the queue where the data is located and adjusting the arrangement position of the data in the adjusted queue.

[0054] Exemplarily, the data transmission frequency of each cache queue is different. For example, the data transmission frequency of cache queue Q1 is to send data every two seconds, the data transmission frequency of cache queue Q2 is to send data every 1 minute, and the data transmission frequency of cache queue Q3 is to send data every 1 hour.

[0055] Exemplarily, in the second sequential queue, the higher the data transmission frequency of the cache queue is, the closer the cache queues are ranked in the second sequential queue. For example, cache queue Q1 is ranked before cache queue Q2, and cache queue Q2 is ranked before cache queue Q3, thus forming a second sequential queue. The second sequential queue is a queue arranged according to the unupdated comprehensive importance level.

[0056] Exemplarily, the first sequence queue is a queue that arranges each first data according to the updated comprehensive importance level. The second sequence queue is a queue that arranges each first data according to the unupdated comprehensive importance level. In addition, the second sequence queue records the sorting order of each cache queue. The first sequence queue does not record the sorting order of each cache queue.

[0057] Exemplarily, the plurality of first cache queues are cache queues for caching first data before the cache position is adjusted in the to-be-sent cache area. It can be understood that the second cache queue is the corresponding updated first cache queue.

[0058] According to the above implementation, the updated comprehensive importance level of each first data can be used to update the queue in the cache area and the position in the new queue at one time, thereby improving the speed of queue adjustment.

[0059] In one embodiment, the above method also includes: when the second terminal receives the second data from the first terminal, the second terminal caches the second data after removing the message header into the second terminal's to-be-processed cache area based on the comprehensive importance level recorded in the message header of the second data.

[0060] Exemplarily, the cache area to be processed may be used to cache data to be processed by the second terminal. The cache area to be processed may include a plurality of third cache queues with different processing efficiencies. Alternatively, the cache area may include a plurality of third cache queues with different data processing frequencies.

[0061] Exemplarily, according to the comprehensive importance level of the second data, its cache queue in the cache area to be processed and its sorting position in the queue are determined. In this way, data processing can be performed according to the comprehensive importance level of the second data to improve the data processing efficiency of the second terminal.

[0062] In one embodiment, the second terminal caches the second data after the message header is removed into a to-be-processed cache area of ​​the second terminal based on the comprehensive importance level recorded in the message header of the second data, including: the second terminal sorts each third cache queue based on the data processing efficiency of each third cache queue in the to-be-processed cache area to obtain a third sequential queue; the second terminal determines the insertion order of the second data after the message header is removed based on the total number of arranged data in the third sequential queue and the comprehensive importance level recorded in the message header of the second data; the second terminal inserts the second data after the message header into the third sequential queue based on the insertion order of the second data after the message header is removed to obtain a fourth sequential queue; the second terminal divides the fourth sequential queue based on the starting bit data and the last bit data of each third cache queue to obtain each updated third cache queue; the second terminal processes the data in each updated third cache queue based on the data processing efficiency of each updated third cache queue.

[0063] Exemplarily, the cache area to be processed includes a plurality of third cache queues, and the data processing efficiency of each third cache queue is different.

[0064] Exemplarily, in the third sequential queue, the higher the data processing efficiency of the cache queue is, the closer the cache queues are in the third sequential queue. For example, cache queue Q5 is ranked before cache queue Q4, and cache queue Q6 is ranked before cache queue Q5, thus forming the third sequential queue.

[0065] It can be understood that the starting bit data of the third cache queue before the update is the same as the starting bit data of the third cache queue after the update, and the last bit data of the third cache queue before the update is the same as the last bit data of the third cache queue after the update. In this way, according to such requirements, the fourth sequential queue can be split to obtain the updated third cache queues.

[0066] According to the above implementation, for the first data obtained through analysis, the insertion order can be determined according to its comprehensive importance level, and the data can be inserted into the corresponding cache queue according to the insertion order. Furthermore, data processing can be performed according to the data processing efficiency of different queues and the importance levels of different data, thereby improving the data processing efficiency.

[0067] In one embodiment, the second terminal determines the arrangement order of the second data after removing the message header based on the total number of arranged data in the third sequential queue and the comprehensive importance level recorded in the message header of the second data, including: determining the sorting percentage of the second data after removing the message header based on the ratio between the comprehensive importance level recorded in the message header and a preset upper limit of the comprehensive importance level; determining the arrangement order of the second data after removing the message header based on the product of the total number of arranged data in the third sequential queue and the sorting percentage.

[0068] Exemplarily, the comprehensive importance level of the second data may be a score between 0 and 100, and the upper limit of the comprehensive priority is 100.

[0069] Exemplarily, the comprehensive importance level of the second data may be an integer level between 1 and 10, and the upper limit of the comprehensive importance level is 10.

[0070] Exemplarily, if the product of the total number of arranged data in the third sequential queue and the sorting percentage of the second data is not an integer, it can be rounded to obtain a corresponding integer arrangement order.

[0071] According to the above implementation, the second data can be inserted once to determine its cache queue and its position in the cache queue according to its comprehensive importance level, that is, the data processing efficiency of the first data and its position in the cache queue corresponding to the data processing efficiency are determined.

[0072] In one embodiment, the above method also includes: when the second terminal receives an importance level update instruction for a first data type and a first business type, based on the importance level corresponding to the first data type and the first business type in the importance level update instruction, the second terminal updates the corresponding importance level in the first important data identification list in the second terminal; the second terminal updates the corresponding transmission efficiency in the first transmission efficiency information table in the second terminal according to the transmission efficiency of the second data type and the third data of the second business type; the second terminal determines feedback information based on the updated first important data identification list and the updated first transmission efficiency information table; the second terminal sends feedback information to the first terminal.

[0073] It is understandable that the power user or power engineer can set or adjust the importance level corresponding to the first data type and the first service type at the second terminal, that is, send an importance level update instruction for the first data type and the first service type to the second terminal.

[0074] Exemplarily, the second terminal may perform transmission efficiency statistics on the third data received historically, thereby updating the corresponding transmission efficiency in the first transmission efficiency information table according to the second data type and the second service type.

[0075] According to the above implementation, the second terminal can update the important data identification list according to the user instruction, and obtain the transmission efficiency of the historical third data received from the first terminal by statistics, and thus feed back the updated data to the first terminal. The first terminal adjusts the queue of data to be sent according to this information, thus optimizing the efficiency of two-way data transmission and reception.

[0076] like Figure 2 As shown, for the sender, the importance data identification is divided into two logics: generation and adjustment: 1. When data is produced, according to the characteristics of 104 protocol data, a default importance data identifier is first generated based on the business characteristics of the 104 protocol data, and combined with the cache queue strategy, it is written into the hierarchical priority queue through the policy executor. The data receiving and sending module reads the content and loads the importance data identifier into the message header and passes it to the receiving end.

[0077] 2. During the data transmission process, upon receiving an instruction or a timed feedback message from the receiving end, the importance data identifier generated by default based on the business characteristics of the 104 protocol data is regenerated, the transmission parameters are changed, and a new cache queue strategy is generated to reorganize the cached data.

[0078] like Figure 2As shown, for the receiving end, the importance data identification is divided into two logics: the logic of data priority processing and the logic of generating an importance data identification list according to business requirements: First, when receiving data, the data receiving and sending module quickly sorts out data with different importance identifiers according to the content in the message header, loads them into the priority queue through the policy executor using the cache queue strategy, and the data parsing / processing module performs 104 protocol data processing.

[0079] Second, the policy executor receives business instructions or regularly generates an important data identification list, adjusts transmission parameters and cache queue strategy based on the transmission status-related data fed back by the data transceiver module. After the operation is completed, the receiving end sends the important data identification list generation and transmission parameter adjustment information to the sending end, and at the same time updates the cache queue strategy of the local end to optimize the data processing flow.

[0080] like Figure 2 As shown, the generation and adjustment process of the importance data identifier of the sender is as follows: Step 1: The distribution network automation terminal TTU / DTU / FTU generates 104 protocol data; Step 2: The data parsing / processing module at the sending end parses the data and extracts the 104 protocol data content according to the service characteristics of the 104 protocol; Step 3: The policy executor at the sending end automatically generates a default importance data identifier based on the business characteristics; Step 4: The policy executor at the sending end automatically generates default transmission parameters based on the service characteristics; Step 5: The policy executor at the sending end automatically generates a default cache queue policy based on the service characteristics and stores the data in the hierarchical priority queue; Step 6: The data receiving and sending module at the sending end reads data from the hierarchical priority queue, assembles the data, and transmits the data according to the transmission parameters; Step 7: The data receiving and sending module at the sending end receives the feedback message from the receiving end, parses the content and transmits it to the policy executor; Step 8: The policy executor at the sending end adjusts the importance data identification, transmission parameters and cache queue strategy according to the service characteristics of the protocol data 104 and the feedback message; Step 9: The policy executor at the sending end adjusts the data content in the cache according to the new cache queue policy; Step 10: The data receiving and sending module at the sending end assembles the data according to the new transmission parameters and the new importance data identifier and transmits it.

[0081] like Figure 2 As shown, the generation and adjustment of the receiving end importance data identification list can be as follows: Step 1: The receiving end regularly collects data transmission status data or receives service requirements; Step 2: The receiving end generates an important data identification list by integrating the service characteristics, service requirements and transmission status data of the 104 protocol data; Step 3: The receiving end updates the receiving end's important data identification, transmission parameters, cache queue strategy and other information; Step 4: The data receiving and sending module at the receiving end feeds back the generated important data identification list and data transmission status to the sending end; Step 5: The policy executor at the receiving end executes the policy according to the updated importance data identification list, transmission parameters, cache queue strategy and other information.

[0082] like Figure 2 As shown, the bidirectional coordinated adjustment process between the sender and the receiver can be as follows: Step 1: The data receiving and sending module at the sending end sends data, and the message header contains an important data identifier; Step 2: The receiving end data receiving and sending module receives the data, parses the importance data identifier in the message header, calls the policy execution according to the cache queue policy, and writes the data into the hierarchical priority queue; Step 3: The receiving end receives the business instruction, generates a new importance data identification list through the policy executor, and feeds the data back to the sending end through the data receiving and sending module; Step 4: The sender adjusts the sending strategy such as importance data identification and transmission parameters according to the latest feedback message, and dynamically adjusts the data in the hierarchical priority queue and reorganizes the data for sending; Step 5: The receiving end data receiving and sending module receives the data, parses the importance data identifier in the message header, calls the policy execution according to the cache queue policy, and writes the data into the hierarchical priority queue; Step 6: The receiving end regularly collects the transmission status of various services of the 104 protocol data, combines the current importance data identification list and transmission parameters, generates a new importance data identification list through the policy executor, and feeds the data back to the sending end through the data receiving and sending module; Repeat steps 4-6 to continue optimization.

[0083] According to the above implementation, through the bidirectional cooperation between the sending end and the receiving end, the sending end can change the receiving end's data processing strategy, and the receiving end can adjust the sending end's data sending strategy, thus realizing bidirectional adjustment and optimization of the whole process from sending strategy generation, sending data reorganization, data reception, data processing, and data reception feedback. The core lies in the functions of generating important data identification of the sending / receiving end, dynamic adjustment of transmission parameters, and bidirectional cooperative interaction mechanism of sending and receiving, which runs through the entire system process and optimizes the real-time and effectiveness of data transmission.

[0084] Figure 3 It is a structural block diagram of a bidirectional cooperative transceiver of 104 protocol data according to an embodiment of the present invention.

[0085] like Figure 3 As shown, the bidirectional cooperative transceiver of the protocol data 104 includes: A first updating module 310 is configured to update, when the first terminal receives feedback information from the second terminal, the second important data identification list and the second transmission efficiency information table in the first terminal based on the first important data identification list and the first transmission efficiency information table in the feedback information respectively; A second updating module 320, configured for the first terminal to update the comprehensive importance level of each first data in the to-be-sent buffer area of ​​the first terminal based on the updated second important data identification list and the updated second transmission efficiency information table; A queue adjustment module 330, configured for the first terminal to adjust a cache position of each of the first data in the to-be-sent cache area based on the updated comprehensive importance level of each of the first data; The data sending module 340 is used for the first terminal to extract the second data from the to-be-sent buffer area, assemble the updated comprehensive importance level of the second data into a message header of the second data, and send the assembled second data to the second terminal.

[0086] In one implementation, the second updating module 320 includes: a data parsing unit, configured for the first terminal to parse the first data based on the 104 protocol to obtain attribute information of the first data, wherein the attribute information includes a data type, a service type, a time sensitivity, a service priority, a data structure, and a data volume of the first data; a target level determination unit, configured for the first terminal to determine a corresponding target importance level in the updated second important data identification list based on a data type and a service type of the first data; a target performance determination unit, configured for the first terminal to determine a corresponding target transmission performance in the updated second transmission performance information table based on a data type and a service type of the first data; A level updating unit is used for the first terminal to update the comprehensive importance level of the first data based on the attribute information of the first data, the target importance level, and the target transmission efficiency.

[0087] In one implementation, the queue adjustment module 330 includes: A first sorting unit, configured for the first terminal to sort each of the first data based on the updated comprehensive importance level of each of the first data to obtain a first sequence queue; A second sorting unit, configured for the first terminal to sort each of the first cache queues based on a data sending frequency of each of the first cache queues in the to-be-sent cache area to obtain a second sequential queue; A first queue segmentation unit, configured for the first terminal to segment the first sequential queue based on the position of the start data and the position of the end data of each of the first cache queues in the second sequential queue to obtain a plurality of second cache queues; The plurality of second cache queues are cache queues obtained after the cache positions of the respective first data have been adjusted in the to-be-sent cache area.

[0088] In one embodiment, the above device further comprises: A data processing module is used for, when the second terminal receives the second data from the first terminal, the second terminal caches the second data after removing the message header into the to-be-processed cache area of ​​the second terminal based on the comprehensive importance level recorded in the message header of the second data.

[0089] In one embodiment, the data processing module includes: A third sorting unit, configured for the second terminal to sort each of the third cache queues based on data processing efficiency of each of the third cache queues in the to-be-processed cache area to obtain a third sequential queue; an arrangement order determination unit, configured for the second terminal to determine, based on the total amount of arranged data in the third order queue and the comprehensive importance level recorded in the message header of the second data, an insertion order of the second data after the message header is removed; A data inserting unit, configured for the second terminal to insert the second data after the message header is removed into the third sequential queue based on the insertion order of the second data after the message header is removed, so as to obtain a fourth sequential queue; A second queue segmentation unit, configured for the second terminal to segment the fourth sequential queue based on the start bit data and the end bit data of each of the third cache queues to obtain updated third cache queues; The data processing unit is used for the second terminal to process the data in each of the third cache queues based on the updated data processing efficiency of each of the third cache queues.

[0090] In one implementation, the arrangement order determination unit is specifically configured to: Determining the ranking percentage of the second data after removing the message header based on the ratio between the comprehensive importance level recorded in the message header and the preset upper limit of the comprehensive importance level; The arrangement order of the second data after the message header is removed is determined based on the product of the total amount of arranged data in the third sequential queue and the sorting percentage.

[0091] In one embodiment, the above device further comprises: a third updating module, configured for the second terminal to update the corresponding importance level in the first important data identification list in the second terminal based on the importance level corresponding to the first data type and the first service type in the importance level update instruction when the second terminal receives the importance level update instruction for the first data type and the first service type; A fourth updating module, configured for the second terminal to update the corresponding transmission efficiency in the first transmission efficiency information table in the second terminal according to the transmission efficiency of the second data type and the third data of the second service type; A feedback information determination module, configured for the second terminal to determine the feedback information according to the updated first important data identification list and the updated first transmission efficiency information table; A feedback information sending module is used for the second terminal to send the feedback information to the first terminal.

[0092] It should be noted that the above device can be applied to the first terminal and can also be applied to the second terminal.

[0093] For the description of specific functions and examples of each module and submodule of the system in the embodiment of the present invention, reference can be made to the relevant description of the corresponding steps in the above method embodiment, which will not be repeated here.

[0094] In the technical solution of the present invention, the acquisition, storage and application of user personal information involved are in compliance with the provisions of relevant laws and regulations and do not violate public order and good morals.

[0095] According to an embodiment of the present invention, the present invention also provides a system and a readable storage medium.

[0096] Figure 4A schematic block diagram of an example electronic device 800 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital assistants, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.

[0097] like Figure 4 As shown, the electronic device 800 includes a computing unit 801, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 802 or a computer program loaded from a storage unit 808 to a random access memory (RAM) 803. In the RAM 803, various programs and data required for the operation of the device 800 can also be stored. The computing unit 801, the ROM 802, and the RAM 803 are connected to each other via a bus 804. An input / output (I / O) interface 805 is also connected to the bus 804.

[0098] Multiple components in the electronic device 800 are connected to the I / O interface 805, including: an input unit 806, such as a keyboard, a mouse, etc.; an output unit 807, such as various types of displays, speakers, etc.; a storage unit 808, such as a disk, an optical disk, etc.; and a communication unit 809, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 809 allows the device 800 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0099] The computing unit 801 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 801 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 801 performs the various methods and processes described above, such as the bidirectional cooperative transceiving method of 104 protocol data. For example, in some embodiments, the bidirectional cooperative transceiving method of 104 protocol data may be implemented as a computer software program, which is tangibly included in a machine-readable medium, such as a storage unit 808. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 800 via the ROM 802 and / or the communication unit 809. When the computer program is loaded into the RAM 803 and executed by the computing unit 801, one or more steps of the bidirectional cooperative transceiving method of 104 protocol data described above may be performed. Alternatively, in other embodiments, the computing unit 801 may be configured to execute 104 the bidirectional cooperative transceiving method of protocol data in any other appropriate manner (eg, by means of firmware).

[0100] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0101] The program code for implementing the method of the present invention can be written in any combination of one or more programming languages. These program codes can be provided to a processor or controller of a general-purpose computer, a special-purpose computer or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code can be executed entirely on the machine, partially on the machine, partially on the machine as a stand-alone software package and partially on a remote machine, or entirely on a remote machine or server.

[0102] In the context of the present invention, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0103] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0104] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.

[0105] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship with each other. The server may be a cloud server, a server of a distributed system, or a server combined with a blockchain.

[0106] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution disclosed in the present invention can be achieved, and this document does not limit this.

[0107] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A bidirectional collaborative sending and receiving method for 104 protocol data, characterized in that: include: When the first terminal receives feedback information from the second terminal, the first terminal updates the second important data identification list and the second transmission efficiency information table in the first terminal based on the first important data identification list and the first transmission efficiency information table in the feedback information respectively; The first terminal updates the comprehensive importance level of each first data in the to-be-sent buffer area of ​​the first terminal based on the updated second important data identification list and the updated second transmission efficiency information table; The first terminal adjusts the cache position of each of the first data in the to-be-sent cache area based on the updated comprehensive importance level of each of the first data; The first terminal extracts the second data from the to-be-sent buffer area, assembles the updated comprehensive importance level of the second data into a message header of the second data, and sends the assembled second data to the second terminal.

2. The method according to claim 1, characterized in that The first terminal updates the comprehensive importance level of each first data in the to-be-sent buffer area of ​​the first terminal based on the updated second important data identification list and the updated second transmission efficiency information table, including: The first terminal parses the first data based on the 104 protocol to obtain attribute information of the first data, wherein the attribute information includes a data type, a service type, a time sensitivity, a service priority, a data structure, and a data volume of the first data; The first terminal determines, based on the data type and service type of the first data, a corresponding target importance level in the updated second important data identification list; The first terminal determines the corresponding target transmission efficiency in the updated second transmission efficiency information table based on the data type and service type of the first data; The first terminal updates the comprehensive importance level of the first data based on the attribute information of the first data, the target importance level, and the target transmission efficiency.

3. The method according to claim 1, characterized in that The first terminal adjusts the cache position of each of the first data in the to-be-sent cache area based on the updated comprehensive importance level of each of the first data, including: The first terminal sorts each of the first data based on the updated comprehensive importance level of each of the first data to obtain a first sequence queue; The first terminal sorts the first cache queues based on the data sending frequency of the first cache queues in the to-be-sent cache area to obtain a second sequence queue; The first terminal divides the first sequential queue based on the position of the start data and the position of the end data of each of the first cache queues in the second sequential queue to obtain a plurality of second cache queues; The plurality of second cache queues are cache queues obtained after the cache positions of the respective first data have been adjusted in the to-be-sent cache area.

4. The method according to claim 1, characterized in that: Also includes: When the second terminal receives the second data from the first terminal, the second terminal caches the second data after removing the message header into a to-be-processed cache area of ​​the second terminal based on the comprehensive importance level recorded in the message header of the second data.

5. The method according to claim 4, characterized in that The second terminal caches the second data after the message header is removed in a to-be-processed cache area of ​​the second terminal based on the comprehensive importance level recorded in the message header of the second data, including: The second terminal sorts each of the third cache queues based on the data processing efficiency of each of the third cache queues in the to-be-processed cache area to obtain a third sequential queue; The second terminal determines, based on the total amount of arranged data in the third sequential queue and the comprehensive importance level recorded in the message header of the second data, an insertion order of the second data after removing the message header; The second terminal inserts the second data after the message header is removed into the third sequential queue based on the insertion order of the second data after the message header is removed, so as to obtain a fourth sequential queue; The second terminal divides the fourth sequential queue based on the start bit data and the end bit data of each of the third cache queues to obtain updated third cache queues; The second terminal processes the data in each of the third cache queues based on the updated data processing efficiency of each of the third cache queues.

6. The method according to claim 5, characterized in that The second terminal determines, based on the total amount of arranged data in the third sequential queue and the comprehensive importance level recorded in the message header of the second data, an arrangement order of the second data after the message header is removed, including: Determining the ranking percentage of the second data after removing the message header based on the ratio between the comprehensive importance level recorded in the message header and the preset upper limit of the comprehensive importance level; The arrangement order of the second data after the message header is removed is determined based on the product of the total amount of arranged data in the third sequential queue and the sorting percentage.

7. The method according to any one of claims 1 to 6, characterized in that Also includes: When the second terminal receives the importance level update instruction for the first data type and the first service type, based on the importance level corresponding to the first data type and the first service type in the importance level update instruction, updates the corresponding importance level in the first important data identification list in the second terminal; The second terminal updates the corresponding transmission efficiency in the first transmission efficiency information table in the second terminal according to the transmission efficiency of the third data of the second data type and the second service type; The second terminal determines the feedback information according to the updated first important data identification list and the updated first transmission efficiency information table; The second terminal sends the feedback information to the first terminal.

8. A bidirectional cooperative transceiver of 104 protocol data, characterized in that: include: A first updating module, configured to update, when the first terminal receives feedback information from the second terminal, the second important data identification list and the second transmission efficiency information table in the first terminal based on the first important data identification list and the first transmission efficiency information table in the feedback information respectively; A second updating module, configured for the first terminal to update the comprehensive importance level of each first data in the to-be-sent buffer area of ​​the first terminal based on the updated second important data identification list and the updated second transmission efficiency information table; A queue adjustment module, configured for the first terminal to adjust a cache position of each of the first data in the to-be-sent cache area based on an updated comprehensive importance level of each of the first data; The data sending module is used for the first terminal to extract the second data from the to-be-sent buffer area, assemble the updated comprehensive importance level of the second data into a message header of the second data, and send the assembled second data to the second terminal.

9. An electronic device, comprising: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 7.

10. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to cause the computer to execute the method according to any one of claims 1-7.

Citation Information

Patent Citations

  • Non-blocking type communication method and system based on international electrotechnical commission (IEC) 104 protocol

    CN103107931A

  • Distribution network terminal self-description method based on IEC 60870-5-104 protocol expansion

    CN105281991A

  • 104 protocol expansion method applied to distribution network automation station terminal

    CN105577655A

  • Server data simulation analysis method and system based on IEC 60870-5-104 protocol

    CN117729270A

  • Protocol conversion method and device, electronic equipment, storage medium and product

    CN119052341A