Binary message transmission method and device in cloud-edge collaborative scene, and medium

By directly encapsulating and transmitting binary data in cloud-edge collaboration scenarios, combined with feature short codes and data encryption, the problem of low data transmission efficiency in cloud-edge collaboration scenarios is solved, and more efficient data exchange and security are achieved.

CN119182836APending Publication Date: 2024-12-24GUANGDONG POWER GRID CO LTD +1
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411260857.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-10
Publication Date
2024-12-24

AI Technical Summary

Technical Problem

In the cloud-edge collaboration scenario, the data transmission efficiency between the main station and the terminal is low, mainly due to the increase in time consumption of string processing and bit operations involved in the conversion process of binary to hexadecimal and hexadecimal to binary. , resulting in a long time consumption of the entire link.

Method used

The method of encapsulating and transmitting binary data in cloud-edge collaboration scenarios is adopted. By monitoring the characteristics of power system data, binary data interaction is directly carried out. If there is a feature short code in the data change amount, the feature short code is used to replace the original length packet. Data, reduces data transmission length and delay, and encrypts and compresses before data transmission.

Benefits of technology

It reduces the packet data conversion and interaction time consumption between the terminal and the front, improves the packet exchange efficiency in the cloud-edge collaborative scenario mode, and improves data security and information density through encryption and compression.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119182836A_ABST
    Figure CN119182836A_ABST
Patent Text Reader

Abstract

The invention discloses a binary message transmission method and device in a cloud-edge collaborative scene and a medium, which are applied to a terminal, and the method comprises the following steps: the terminal serves as an edge end node, performs binary data encapsulation on first interaction data at an initial moment to obtain first message data, and transmits the first message data to a master station; the master station is used as a cloud node to carry out data calculation on the received message data; monitoring second interaction data at continuous moments, performing binary data encapsulation on the first data variation of the second interaction data according to the characteristics of the power system data to obtain second message data, and transmitting the second message data to the master station; if the length of the second message data is greater than a preset threshold value, performing binary data encapsulation on the second interaction data to obtain third message data, and transmitting the third message data to the master station; continuously monitoring third interaction data to be transmitted until transmission of all interaction data is completed; according to the invention, the cloud edge data interaction efficiency can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of cloud-edge collaborative data transmission technology, and in particular to a binary message transmission method, device and medium in a cloud-edge collaborative scenario. Background Art

[0002] Currently, data transmission between the master station and the terminal follows relevant communication protocols. The transmission link data is based on hexadecimal interaction. Therefore, the terminal performs a "binary-hexadecimal" conversion before sending the message, and transmits it in hexadecimal during the data transmission process. After the master station receives the message and parses it, it needs to perform a reverse "hexadecimal-binary" conversion. When the master station performs the base conversion, it will involve operations such as string processing and bit operations.

[0003] Although the conversion from binary to hexadecimal and from hexadecimal to binary can be completed through numerical conversion algorithms, and the conversion efficiency is relatively high. However, even with efficient algorithms, it still takes a certain amount of time to convert a large amount of data. In the data transmission between the master station and the terminal, a large amount of message interaction is involved, so such conversion processing will have a certain impact on the overall transmission time.

[0004] Therefore, the conversion and interaction time of message data between the terminal and the front-end is relatively long, resulting in a long time consumption of the entire link, leading to low efficiency of message exchange in the cloud-edge collaborative scenario mode. Summary of the invention

[0005] The purpose of the present invention is to address the deficiencies of the above-mentioned prior art and propose a binary message transmission method, device and medium in a cloud-edge collaboration scenario, which can improve the data transmission efficiency in the cloud-edge collaboration scenario.

[0006] In a first aspect, the present invention provides a binary message transmission method in a cloud-edge collaboration scenario, which is applied to a terminal and includes:

[0007] The terminal, as an edge node, performs binary data encapsulation on the first interaction data at the initial moment to obtain first message data, and transmits the first message data to the main station; the main station, as a cloud node, performs data calculation on the received message data;

[0008] Monitoring the second interactive data at the continuous moment, performing binary data encapsulation on the first data variation of the second interactive data according to the characteristics of the power system data to obtain the second message data, and transmitting the second message data to the master station;

[0009] If the length of the second message data is greater than a preset threshold, encapsulating the second interaction data into binary data to obtain third message data, and transmitting the third message data to the master station;

[0010] The third interactive data to be transmitted is continuously monitored until the transmission of all the interactive data is completed.

[0011] The present invention uses binary to perform data interaction on the power system data in a cloud-edge collaborative scenario, without the need to perform base conversion at the terminal and the main station respectively. By analyzing the characteristics of the power system data, the interactive data changes are encapsulated in binary data, which can further reduce the conversion and interaction time consumption of message data between the terminal and the front-end, thereby reducing the time consumption of the entire link, and further improving the efficiency of message exchange in the cloud-edge collaborative scenario mode.

[0012] Further, the step of performing binary data encapsulation on the first data variation of the second interactive data to obtain the second message data includes:

[0013] Obtain a first data change between the second interactive data and the fourth interactive data at the previous moment; if the first data change has a corresponding first characteristic short code, replace the second message data with the first characteristic short code, and send the first characteristic short code to the main station; the first characteristic short code is sent to the terminal by the main station based on the fourth message data corresponding to the received fourth interactive data.

[0014] The present invention adopts characteristic short codes to replace message data of original length, which can reduce data transmission length and data transmission information, thereby reducing the time delay of message data represented by binary numbers and improving the interaction efficiency of binary message data.

[0015] Further, the first characteristic short code is sent by the master station to the terminal according to the fourth message data corresponding to the received fourth interactive data, and includes:

[0016] After the main station receives the fourth message data and obtains the fourth interaction data corresponding to the fourth message data, if the number of occurrences of the second data change amount corresponding to the fourth interaction data in the historical moment is not less than the number threshold, and the second data change amount is within the preset value range, the corresponding first characteristic short code is sent to the terminal.

[0017] Further, if the first data variation does not have a corresponding first characteristic short code, the method includes: performing binary data encapsulation on the first data variation, and using the obtained encapsulation result as the second message data.

[0018] Further, the first interactive data at the initial moment is encapsulated into binary data to obtain the first message data, including:

[0019] According to the message data field format, the first numerical value in the first interactive data is converted into binary, and based on the first numerical value, the remaining numerical values ​​of the first interactive data are scaled and then converted into binary, and all the obtained conversion results are encapsulated according to the preset message format to obtain the first message data.

[0020] Further, performing binary conversion on a first value in the first interactive data according to the message data field format, and performing binary conversion on remaining values ​​of the first interactive data after scaling based on the first value, includes:

[0021] According to the numerical value range of the power system data, the message data fields are sorted, the first numerical value in the first interactive data is converted into binary, the second numerical value is scaled based on the first numerical value and then converted into binary, and the third numerical value is scaled based on the first numerical value or the second numerical value and then converted into binary, until the base conversion of all the remaining numerical values ​​is completed.

[0022] The present invention adopts the method of sorting according to the value range of the message data field and scaling the remaining data values ​​based on the first value, which can fully consider the correlation and coupling between the power system data to design the binary message data format, thereby effectively solving the problem of large length and low data density of binary data transmitting a large amount of power system data, and thus improving the information density of the binary message; in addition, sorting is performed based on the value range of the message data field, and the remaining values ​​are scaled based on the first value, and the interactive data itself is encrypted, thereby improving the data security of cloud-edge collaborative transmission.

[0023] Furthermore, the message data field includes at least one of: power parameters, smart grid data, energy management data, power load forecasting data or power market transaction data.

[0024] Further, transmitting the first message data to the master station includes:

[0025] The confidential data in the first message data is encrypted to obtain an encryption result, and the encryption result is compressed to obtain first message data to be transmitted, and the first message data to be transmitted is transmitted to the main station, so that the main station receives the first message data to be transmitted and then decompresses, decrypts and verifies it in sequence to obtain the first message data.

[0026] In a second aspect, the present invention provides a binary message transmission device in a cloud-edge collaboration scenario, comprising: a first encapsulation unit, a second encapsulation unit, a third encapsulation unit and a detection unit; wherein,

[0027] The first encapsulation unit is used for the terminal as an edge node to perform binary data encapsulation on the first interaction data at the initial moment to obtain first message data, and transmit the first message data to the main station; the main station performs data calculation on the received message data as a cloud node;

[0028] The second encapsulation unit is used to monitor the second interactive data at consecutive moments, perform binary data encapsulation on the first data variation of the second interactive data according to the characteristics of the power system data to obtain second message data, and transmit the second message data to the master station;

[0029] The third encapsulation unit is configured to encapsulate the second interactive data into binary data to obtain third message data if the length of the second message data is greater than a preset threshold, and transmit the third message data to the master station;

[0030] The detection unit is used to continuously monitor the third interactive data to be transmitted until the transmission of all the interactive data is completed.

[0031] In a third aspect, the present invention provides a readable storage medium, wherein the storage medium includes a stored program, wherein when the program is run, the steps of the binary message transmission method described in the first aspect are executed. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] Figure 1 It is a flowchart of a binary message transmission method in a cloud-edge collaboration scenario provided by this embodiment;

[0033] Figure 2 It is a flowchart of another binary message transmission method in a cloud-edge collaboration scenario provided by this embodiment;

[0034] Figure 3 It is a flowchart of another binary message transmission method in a cloud-edge collaboration scenario provided by this embodiment;

[0035] Figure 4 This is a structural diagram of a binary message transmission device in a cloud-edge collaboration scenario provided in this embodiment. DETAILED DESCRIPTION

[0036] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0037] It is worth noting that the data transmission between the master station and the terminal follows the relevant communication protocols, and the transmission link data is based on hexadecimal interaction. Therefore, the terminal performs a "binary-hexadecimal" conversion before sending the message. The master station needs to perform a reverse "hexadecimal-binary" conversion when parsing after receiving the message. The two conversion processes increase the time consumption.

[0038] In computer systems, binary is the most basic representation form, which consists of 0 and 1. Hexadecimal consists of 0-9 and AF, and one hexadecimal number can represent four binary digits, reducing the number of characters required to express data. Therefore, during the data transmission process, the message sent by the terminal undergoes binary to hexadecimal conversion to more conveniently represent and transmit data.

[0039] When the master station receives a hexadecimal message, it needs to be converted back to binary format for subsequent parsing and processing. This conversion process is called hexadecimal to binary conversion. The master station needs to convert each hexadecimal digit into the corresponding four-bit binary digit so that the original binary data can be correctly restored. This process may involve string processing, bit operations, etc., which will take a certain amount of time.

[0040] Although the conversion of bases through numerical conversion algorithms is relatively efficient in computer systems, even with efficient algorithms, it still takes a certain amount of time to convert a large amount of data. In the data transmission between the master station and the terminal, a large number of message interactions are involved, so such conversion processing will have a certain impact on the overall transmission time.

[0041] In short, the current data transmission between the master station and the terminal follows the relevant communication protocol, and the transmission link data is based on hexadecimal interaction. The terminal performs a "binary-hexadecimal" conversion before sending the message. The master station needs to perform a reverse "hexadecimal-binary" conversion when parsing after receiving the message. The two conversion processes increase the time consumption. Based on this, the present invention provides a binary message transmission method, device and medium in a cloud-edge collaborative scenario. By analyzing the characteristics of the power system data, binary message data is used for data transmission, thereby reducing the conversion and interaction time consumption of the message data between the terminal and the front-end, thereby reducing the time consumption of the entire link, and then improving the efficiency of message exchange in the cloud-edge collaborative scenario mode.

[0042] In order to better illustrate the technical solution of the present invention, it will be described in detail from the following embodiments.

[0043] Example 1

[0044] See also Figure 1, is a flowchart of a binary message transmission method in a cloud-edge collaboration scenario provided by this embodiment, including: steps S11 to S14, specifically:

[0045] Step S11, the terminal acts as an edge node, encapsulates the first interaction data at the initial moment into binary data, obtains first message data, and transmits the first message data to the main station; the main station acts as a cloud node, and performs data calculation on the received message data.

[0046] It is worth noting that the first interactive data is the interactive data at the initial moment, and the first message data is the message data after binary data encapsulation of the interactive data at the initial moment; the second interactive data is the interactive data at the data transmission moment after the initial moment, the third interactive data is the interactive data remaining to be transmitted after the second interactive data is processed, and the fourth interactive data is the interactive data at the moment before the second interactive data; the second message data is the message data after binary data encapsulation of the data change between the second interactive data and the fourth interactive data; the first characteristic short code is the characteristic short code of the second message data of the original length, so that the characteristic short code sent by the terminal replaces the second message data of the original length and the original information, thereby shortening the data encapsulation and data transmission delay, and thus improving the data transmission efficiency. The first data change is the data change value between the second interactive data and the interactive data at the moment before the second interactive data, and the second data change is the data change value between the interactive data corresponding to the fourth message data and the interactive data at the moment before the interactive data corresponding to the fourth message data.

[0047] In some embodiments, the first data variation and the second data variation may be numerical variation of the same data feature.

[0048] When using binary messages for data transmission, the power system data is large and the value ranges are different, resulting in low binary message data density and excessive length of the binary message. This embodiment uses data change to describe the characteristics of the power system data. In the power system control process with small changes, the data change tends to be flat, and the amount of data carried by the data change is smaller, and the numerical change relationship can be represented by fewer binary numbers, which is conducive to the rapid transmission of binary messages and improves data transmission efficiency.

[0049] In some embodiments, the first interaction data at the initial moment is encapsulated in binary data to obtain first message data, including: performing binary conversion on the first numerical value in the first interaction data according to the message data field format, and based on the first numerical value, performing binary conversion on the remaining numerical values ​​of the first interaction data after scaling, and encapsulating all the conversion results according to a preset message format to obtain the first message data.

[0050] In some embodiments, the first numerical value in the first interactive data is converted into binary according to the message data field format, and based on the first numerical value, the remaining numerical values ​​of the first interactive data are scaled and converted into binary, including: sorting the message data fields according to the numerical value range of the power system data, converting the first numerical value in the first interactive data into binary, scaling the second numerical value based on the first numerical value and converting it into binary, and scaling the third numerical value based on the first numerical value or the second numerical value and converting it into binary, until the base conversion of all the remaining numerical values ​​is completed.

[0051] In some embodiments, the message data field includes at least one of: power parameters, smart grid data, energy management data, power load forecasting data, or power market transaction data.

[0052] In some embodiments, the power parameter includes at least one of current, voltage, power, frequency, or power state.

[0053] In some embodiments, the smart grid data includes at least one of load forecasting data, distributed energy generation data, or electricity market data.

[0054] In some embodiments, the energy management data includes at least one of power consumption data, energy supply data, or energy efficiency evaluation data.

[0055] In some embodiments, the power load forecast data includes at least one of real-time load data or real-time weather data, historical load data or real-time weather data.

[0056] In some embodiments, electricity market transaction data includes: at least one of real-time market prices, transaction orders, or electricity supply and demand data.

[0057] In some embodiments, transmitting the first message data to the main station includes: encrypting confidential data in the first message data to obtain an encryption result, compressing the encryption result to obtain first message data to be transmitted, and transmitting the first message data to be transmitted to the main station so that the main station decompresses, verifies and parses the first message data to be transmitted in sequence after receiving it to obtain the first message data.

[0058] In some embodiments, the binary message format should include necessary fields and metadata, such as message type, message length, timestamp, and device identification, etc. The design of the message format should take into account the characteristics and requirements of the power system in order to achieve efficient data transmission and processing.

[0059] In some embodiments, the step of setting a binary message includes: Steps 1.1 to 1.6, specifically:

[0060] Step 1.1 Determine the message fields: Determine the fields that the message should contain and define them according to the needs of the power system. The fields may include message type (used to identify the purpose of the message, such as data transmission or command control, etc.), message length (indicates the number of bytes of message data), timestamp (records the time when the message is generated or sent), device identification (identifies the device sending or receiving the message), and other related fields.

[0061] Step 1.2 Data Type and Encoding: Determine the data type and encoding method for each field. According to the actual data type, such as integer, floating point number or Boolean value, select the appropriate data type for definition. In addition, it is also necessary to determine the binary encoding method of the field data so that data conversion can be performed correctly during transmission and parsing.

[0062] Step 1.3 Field order and byte alignment: Organize the fields in a specific order in the message. This ensures that the order of the fields remains consistent during message transmission and parsing. At the same time, byte alignment (for example, 4-byte alignment) needs to be considered to ensure that the layout of the data in memory is valid.

[0063] Step 1.4. Add metadata: In addition to the actual data fields, metadata information such as timestamp and device identification needs to be added. These metadata can provide additional information about the message and help with subsequent data processing and analysis.

[0064] Step 1.5 Message length management: Determine how to manage the message length information in the design. A common method is to add a field in the message header to indicate the message length so that the receiver can correctly parse the data part of the message.

[0065] Step 1.6 Protocol standardization: If interaction with other systems or devices is required, it is recommended to refer to relevant communication protocol standards and ensure that the design of the message format meets the standard requirements to ensure data interoperability and compatibility.

[0066] Designing a suitable message format is an important step in the interactive method based on binary memory block message transmission. It will directly affect the data transmission efficiency, the accuracy of data analysis, and the overall impact on the power system. Therefore, the needs and characteristics of the power system need to be carefully considered during the design process to ensure that the message format can meet the requirements of the actual application scenario.

[0067] In some embodiments, the format of the message data is obtained in the order of the message header, the data field, the check field and the message tail.

[0068] In some embodiments, the message header contains some necessary metadata information, such as message type, message length, timestamp, etc. The message type is used to identify the purpose of the message, such as data transmission, command control, etc. The message length indicates the number of bytes of the message data, which is used to parse the data part of the message. The timestamp records the time when the message is generated or sent, which is used for time synchronization and sequence control of data.

[0069] In some embodiments, the data field contains specific data that the power system needs to transmit. Depending on the needs of the power system, it may include power parameter data such as current, voltage, power, frequency, and other data related to the operation and management of the power system. Each data field has a specific data type and encoding method to correctly convert data during transmission and parsing.

[0070] In some embodiments, the check field is used to check the integrity and accuracy of the message. Commonly used check fields include parity check, Hamming code, and cyclic redundancy check code (CRC). The receiver can use the same check algorithm to check the received message to determine whether the message is transmitted correctly.

[0071] In some embodiments, the message tail may include some additional information, such as a check result, an error code, etc. The check result is used to indicate whether the message has passed the check to determine the integrity of the message. The error code is used to indicate an error during message transmission or parsing to facilitate error handling and fault diagnosis.

[0072] The message format of the power system varies depending on the application scenario, communication protocol and system requirements. Therefore, in actual design, it needs to be adjusted and expanded according to specific needs. At the same time, in order to ensure the interoperability and compatibility of data, refer to the relevant communication protocol standards and follow the standard requirements to design the message format.

[0073] In some embodiments, the interactive data is encapsulated into message data, including: converting the interactive data to be transmitted into binary form and assembling it according to the message format. In the encapsulation process, necessary metadata information, such as timestamp and device identification, needs to be added.

[0074] In some embodiments, before transmitting the message data, it includes: encrypting the confidential data in the message data to obtain the encryption result, compressing the encryption result to obtain the message data to be transmitted, and transmitting the message data to be transmitted to the main station, so that the main station receives the message data to be transmitted and then decompresses, verifies and parses it in sequence to obtain the initial message data.

[0075] In some embodiments, the data to be transmitted is converted into binary form according to the data type and encoding method defined in the message format. For example, for integer type data, a fixed-length binary representation can be used; for floating-point type data, the IEEE 754 standard can be used for binary representation.

[0076] Step S12, monitoring the second interactive data at consecutive moments, encapsulating the first data change amount of the second interactive data into binary data according to the characteristics of the power system data, obtaining second message data, and transmitting the second message data to the master station.

[0077] In some embodiments, the first data change amount of the second interaction data is encapsulated as binary data to obtain second message data, including: obtaining the first data change amount between the second interaction data and the fourth interaction data at the previous moment, if there is a corresponding first characteristic short code in the first data change amount, replacing the second message data with the first characteristic short code, and sending the first characteristic short code to the main station; the first characteristic short code is sent by the main station to the terminal based on the fourth message data corresponding to the received fourth interaction data.

[0078] In some embodiments, the first characteristic short code is sent by the main station to the terminal based on the fourth message data corresponding to the received fourth interaction data, including: after the main station receives the fourth message data and obtains the fourth interaction data corresponding to the fourth message data, if the number of occurrences of the second data change amount corresponding to the fourth interaction data in the historical moment is not less than the number threshold, and the second data change amount is within the preset numerical range, then the corresponding first characteristic short code is sent to the terminal.

[0079] In some embodiments, the values ​​of most power parameters in the power system fluctuate within a certain range. When a parameter value is repeated to a threshold number of times (such as 100,000 times, and the specific threshold number is set according to the data transmission frequency), the master station assigns a characteristic short code to the parameter value. The number of encoding bits of the characteristic short code is M, where M is less than N. The characteristic short code replaces the original code and is returned to the terminal. The terminal transmits the characteristic short code when it transmits the same parameter value again; wherein M and N are positive integers, and N is the total length of the message data.

[0080] In some embodiments, if the first data variation does not have a corresponding first characteristic short code, the method includes: performing binary data encapsulation on the first data variation, and using the obtained encapsulation result as the second message data.

[0081] In some embodiments, binary data encapsulation is performed on the first data change amount, and the obtained encapsulation result is used as the second message data, including: according to the message data field format, the first change amount value in the first data change amount is binary converted, and based on the first change amount value, the remaining values ​​of the first data change amount are scaled and then binary converted, and all the obtained conversion results are encapsulated according to a preset message format to obtain the second message data.

[0082] In some embodiments, according to the message data field format, the first change value in the first data change is binary converted, and based on the first change value, the remaining values ​​of the first data change are scaled and then binary converted, including: sorting the message data fields according to the numerical value range of the power system data, binary converting the first change value in the first data change, scaling the second change value based on the first change value and then binary converting it, and scaling the third change value based on the first change value or the second change value and then binary converting it, until the base conversion of all remaining values ​​is completed.

[0083] In some embodiments, numerical scaling includes: scaling the numerical value based on the first numerical value according to a preset step length, and the scaling method includes: linear numerical value transformation and nonlinear numerical value transformation. That is, a numerical value is reselected each time with a preset step length, and numerical scaling is performed based on the selected numerical value, and the selected numerical value is not scaled.

[0084] In some embodiments, when the message data fields are sorted from large to small according to the numerical value range of the power system data, the previous numerical value with a step size of n is subtracted from the current numerical value to obtain a reduced result, and the reduced result is converted into binary; n is a positive integer.

[0085] In some embodiments, after receiving the message data, the master station decrypts and verifies the message data to obtain the interaction data in binary form, the first value of the interaction data remains unchanged, the first value is added to the second value to restore the initial value of the second value, and the initial value of the second value is added to the third value to restore the initial value of the third value, until all the initial values ​​of the message data are restored. In this embodiment, the step length n is 1.

[0086] For example, when the second value 33 is reduced, if the first value is 37, the second value 33 is represented by the reduced value 4, the original binary data encapsulation length of the second value 33 is 6, and the reduced binary data encapsulation length is 3. This has an obvious effect on shortening the binary length of power system data with similar value ranges or similar transformation amounts.

[0087] In some embodiments, when sorting the message data fields from small to large according to the numerical value range of the power system data, the current value is subtracted from the previous value with a step size of 1 to obtain an amplified result based on the previous value, and the amplified result is converted into binary.

[0088] In some embodiments, if the binary data encapsulation length of the reduction result or the enlargement result is greater than the unscaled binary data encapsulation length, the data transformation amount is not scaled.

[0089] Step S13: If the length of the second message data is greater than a preset threshold, the second interactive data is encapsulated in binary data to obtain third message data, and the third message data is transmitted to the master station.

[0090] In some embodiments, binary data encapsulation is performed on the second interactive data, including: performing binary conversion on the numerical values ​​in the second interactive data in sequence according to the message data field format, and encapsulating all the obtained conversion results according to a preset message format to obtain third message data.

[0091] Step S14: Continue to monitor the third interactive data to be transmitted until the transmission of all interactive data is completed.

[0092] In some embodiments, each time the terminal sends a message data, it will receive a confirmation message from the main station, so that the terminal can send the next message data or resend the current message data according to the confirmation message. If the confirmation message contains a characteristic short code, the terminal will send the message data to the main station in the form of the characteristic short code.

[0093] In some embodiments, the main station decompresses and decrypts the received message data to obtain the interaction data to be verified, and performs CRC check on the interaction data to be verified. If the check fails, a confirmation message is returned, and the confirmation message includes: a request to retransmit the interaction data, so that the terminal sends the same message data again after receiving the confirmation message.

[0094] In some embodiments, see Figure 2 , is a flowchart of another binary message transmission method in a cloud-edge collaboration scenario provided by this embodiment. Figure 2There is no need to perform binary encapsulation, encryption and compression on the characteristic short code. This is because the characteristic short code itself carries very little information. Its function is that if the interaction data to be transmitted by the terminal is less than the threshold value from the interaction data transmitted at the previous moment, and the number of occurrences reaches the preset threshold value, or the interaction data to be transmitted is within the preset data value segment, and the number of occurrences reaches the preset threshold value, then the corresponding characteristic short code transmission signal is used. When the main station receives the characteristic short code, it directly reads the corresponding data according to the corresponding characteristic short code, without the terminal always transmitting the full length and multiple occurrences of the message data, thereby improving the interaction efficiency of cloud-edge collaborative transmission.

[0095] In some embodiments, different occurrence times or different preset data value segments correspond to different feature short codes, that is, in the cloud-edge collaboration scenario, there are multiple different feature short codes, and correspond to different interaction data.

[0096] In some embodiments, see Figure 3 , is a flowchart of another binary message transmission method in a cloud-edge collaboration scenario provided by this embodiment. Figure 3 In the process, each time the master station receives message data sent by the terminal, it will decompress, decrypt and verify the message data, and detect the number of occurrences and the preset numerical segment of the verified message data. Only when the number of occurrences of the verified message data reaches the number threshold and is within the preset numerical segment, the master station sends the characteristic short code to the terminal. After receiving the characteristic short code, the terminal replaces the original message data of the original length with the characteristic short code for data interaction, so as to reduce the data transmission length and data transmission information, thereby reducing the delay of the message data represented by binary numbers and improving the interaction efficiency of binary message data.

[0097] Example 2

[0098] See also Figure 4 , is a structural diagram of a binary message transmission device in a cloud-edge collaboration scenario provided in this embodiment, including: a first encapsulation unit 21, a second encapsulation unit 22, a third encapsulation unit 23 and a detection unit 24.

[0099] It is worth noting that the first encapsulation unit 21 is used to encapsulate the interaction data at the initial moment to obtain the first message data, and transmit the first message data to the main station; the second encapsulation unit 22 is used to encapsulate the data change of the interaction data at the remaining continuous moments to obtain the second message data. If the length of the second message data is not greater than the preset threshold, the second message data is transmitted to the main station; the third encapsulation unit 23 is used to encapsulate the interaction data at the continuous moments if the second message data is greater than the preset threshold, to obtain the third message data, and transmit the third message data to the main station; the detection unit 24 is used to monitor whether the interaction data at the remaining continuous moments has been fully transmitted.

[0100] The first encapsulation unit 21 is used for the terminal as an edge node to perform binary data encapsulation on the first interaction data at the initial moment to obtain first message data, and transmit the first message data to the main station; the main station acts as a cloud node to perform data calculation on the received message data.

[0101] In some embodiments, the first interaction data at the initial moment is encapsulated as binary data to obtain first message data, including: performing binary conversion on the first numerical value in the first interaction data according to the message data field format, and based on the first numerical value, performing binary conversion on the remaining numerical values ​​of the first interaction data after scaling, and encapsulating all the conversion results according to a preset message format to obtain first message data.

[0102] In some embodiments, the first value in the first interactive data is converted into binary according to the message data field format, and based on the first value, the remaining values ​​of the first interactive data are scaled and converted into binary, including: sorting the message data field according to the numerical value range of the power system data, converting the first value in the first interactive data into binary, scaling the second value based on the first value and converting it into binary, and scaling the third value based on the first value or the second value and converting it into binary, until the base conversion of all the remaining values ​​is completed.

[0103] It is worth noting that this embodiment adopts the method of sorting according to the value range of the message data field and scaling the remaining data values ​​based on the first value, which can fully consider the correlation and coupling between the power system data to design the binary message data format, thereby effectively solving the problem of large length and low data density of binary data transmitting a large amount of power system data, and thus improving the information density of the binary message; in addition, sorting based on the value range of the message data field and scaling the remaining values ​​based on the first value also encrypts the interactive data itself, thereby improving the data security of cloud-edge collaborative transmission.

[0104] In some embodiments, the message data field includes at least one of: power parameters, smart grid data, energy management data, power load forecasting data, or power market transaction data.

[0105] In some embodiments, transmitting the first message data to the main station includes: encrypting confidential data in the first message data to obtain an encryption result, compressing the encryption result to obtain first message data to be transmitted, and transmitting the first message data to be transmitted to the main station so that the main station decompresses, decrypts and verifies the first message data in sequence after receiving it to obtain the first message data.

[0106] The second encapsulation unit 22 is used to monitor the second interactive data at continuous moments, encapsulate the first data change of the second interactive data into binary data according to the characteristics of the power system data, obtain the second message data, and transmit the second message data to the master station.

[0107] In some embodiments, the first data change amount of the second interactive data is encapsulated as binary data to obtain second message data, including: obtaining the first data change amount between the second interactive data and the fourth interactive data at the previous moment, if the first data change amount has a corresponding first characteristic short code, replacing the second message data with the first characteristic short code, and sending the first characteristic short code to the main station; the first characteristic short code is sent by the main station to the terminal based on the fourth message data corresponding to the received fourth interactive data.

[0108] In some embodiments, the first characteristic short code is sent by the main station to the terminal based on the fourth message data corresponding to the received fourth interaction data, including: after the main station receives the fourth message data and obtains the fourth interaction data corresponding to the fourth message data, if the number of occurrences of the second data change amount corresponding to the fourth interaction data in the historical moment is not less than the number threshold, and the second data change amount is within a preset value range, then the corresponding first characteristic short code is sent to the terminal.

[0109] In some embodiments, if the first data variation does not have a corresponding first characteristic short code, the method includes: performing binary data encapsulation on the first data variation, and using the obtained encapsulation result as the second message data.

[0110] The third encapsulation unit 23 is used to encapsulate the second interactive data into binary data to obtain third message data if the length of the second message data is greater than a preset threshold, and transmit the third message data to the master station.

[0111] The detection unit 24 is used to continuously monitor the third interaction data to be transmitted until the transmission of all interaction data is completed.

[0112] Example 3

[0113] The present application also provides a readable storage medium, which includes a stored program, wherein when the program is run, the steps of the binary message transmission method in the cloud-edge collaboration scenario as described in Example 1 are executed.

[0114] The present invention uses binary to perform data interaction on the power system data in a cloud-edge collaborative scenario, without the need to perform base conversion at the terminal and the main station respectively. By analyzing the characteristics of the power system data, the interactive data changes are encapsulated in binary data, which can further reduce the conversion and interaction time consumption of message data between the terminal and the front-end, thereby reducing the time consumption of the entire link, and further improving the efficiency of message exchange in the cloud-edge collaborative scenario mode.

[0115] Those skilled in the art will appreciate that the embodiments of the present application may also provide computer program products. Therefore, the present application may adopt the form of complete hardware embodiments, complete software embodiments, or embodiments in combination with software and hardware. Moreover, the present application may adopt the form of computer program products implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program codes.

[0116] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0117] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0118] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0119] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the technical principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A binary message transmission method in a cloud-edge collaboration scenario, applied to a terminal, characterized in that: include: The terminal, as an edge node, performs binary data encapsulation on the first interaction data at the initial moment to obtain first message data, and transmits the first message data to the main station; the main station, as a cloud node, performs data calculation on the received message data; Monitoring the second interactive data at the continuous moment, performing binary data encapsulation on the first data variation of the second interactive data according to the characteristics of the power system data to obtain the second message data, and transmitting the second message data to the master station; If the length of the second message data is greater than a preset threshold, encapsulating the second interaction data into binary data to obtain third message data, and transmitting the third message data to the master station; The third interactive data to be transmitted is continuously monitored until the transmission of all the interactive data is completed.

2. The binary message transmission method according to claim 1, characterized in that: The step of performing binary data encapsulation on the first data variation of the second interactive data to obtain second message data includes: Obtain a first data change between the second interactive data and the fourth interactive data at the previous moment; if the first data change has a corresponding first characteristic short code, replace the second message data with the first characteristic short code, and send the first characteristic short code to the main station; the first characteristic short code is sent to the terminal by the main station based on the fourth message data corresponding to the received fourth interactive data.

3. The binary message transmission method according to claim 2, characterized in that: The first characteristic short code is sent by the main station to the terminal according to the fourth message data corresponding to the received fourth interactive data, and includes: After the main station receives the fourth message data and obtains the fourth interaction data corresponding to the fourth message data, if the number of occurrences of the second data change amount corresponding to the fourth interaction data in the historical moment is not less than the number threshold, and the second data change amount is within the preset value range, the corresponding first characteristic short code is sent to the terminal.

4. The binary message transmission method according to claim 2, characterized in that: If the first data variation does not have a corresponding first characteristic short code, the method includes: performing binary data encapsulation on the first data variation, and using the obtained encapsulation result as second message data.

5. The binary message transmission method according to claim 1, characterized in that: The step of encapsulating the first interactive data at the initial moment into binary data to obtain the first message data includes: According to the message data field format, the first numerical value in the first interactive data is converted into binary, and based on the first numerical value, the remaining numerical values ​​of the first interactive data are scaled and then converted into binary, and all the obtained conversion results are encapsulated according to the preset message format to obtain the first message data.

6. The binary message transmission method according to claim 5, characterized in that: The step of performing binary conversion on the first value in the first interactive data according to the message data field format, and performing binary conversion on the remaining values ​​of the first interactive data after scaling based on the first value, includes: According to the numerical value range of the power system data, the message data fields are sorted, the first numerical value in the first interactive data is converted into binary, the second numerical value is scaled based on the first numerical value and then converted into binary, and the third numerical value is scaled based on the first numerical value or the second numerical value and then converted into binary, until the base conversion of all the remaining numerical values ​​is completed.

7. The binary message transmission method according to claim 6, characterized in that: The message data field includes: at least one of power parameters, smart grid data, energy management data, power load forecasting data or power market transaction data.

8. The binary message transmission method according to claim 1, characterized in that: The transmitting the first message data to the master station includes: The confidential data in the first message data is encrypted to obtain an encryption result, and the encryption result is compressed to obtain first message data to be transmitted, and the first message data to be transmitted is transmitted to the main station, so that the main station receives the first message data to be transmitted and then decompresses, decrypts and verifies it in sequence to obtain the first message data.

9. A binary message transmission device in a cloud-edge collaboration scenario, characterized in that: include: A first packaging unit, a second packaging unit, a third packaging unit and a detection unit; wherein, The first encapsulation unit is used for the terminal as an edge node to perform binary data encapsulation on the first interaction data at the initial moment to obtain first message data, and transmit the first message data to the main station; the main station performs data calculation on the received message data as a cloud node; The second encapsulation unit is used to monitor the second interactive data at consecutive moments, perform binary data encapsulation on the first data variation of the second interactive data according to the characteristics of the power system data to obtain second message data, and transmit the second message data to the master station; The third encapsulation unit is configured to encapsulate the second interactive data into binary data to obtain third message data if the length of the second message data is greater than a preset threshold, and transmit the third message data to the master station; The detection unit is used to continuously monitor the third interactive data to be transmitted until the transmission of all the interactive data is completed.

10. A readable storage medium, characterized in that: The storage medium includes a stored program, wherein the program executes the steps of the binary message transmission method according to any one of claims 1 to 8 when running.

Citation Information

Cited By

  • Method and device for recording and displaying marketing dual-mode network messages

    CN120416361A