Low-voltage distributed power distribution network data transmission method and device

By acquiring and processing frequency characteristics in a low-voltage distributed distribution network, generating negative correlation codes for data transmission, the problem of low data transmission efficiency and high calculation cost in a low-voltage distributed distribution network is solved, and efficient and reliable data transmission is achieved .

CN119093940APending Publication Date: 2024-12-06国网河北省电力有限公司营销服务中心 +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411056561.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-02
Publication Date
2024-12-06

AI Technical Summary

Technical Problem

The data transmission efficiency of the medium and low voltage distributed distribution network in the prior art is low, which makes it difficult to guarantee the timeliness and reliability of data transmission, and there are problems such as unclear data loss and high calculation cost during data feature extraction and compression.

Method used

By obtaining multiple first frequency characteristics of the queue to be transmitted, adjusting it to the data interval, building an array, and generating encodings based on the number of target long classes and occurrence frequency obtained by cropping, data transmission is carried out, and data repetition and compression efficiency are improved. .

Benefits of technology

Reduces the amount of data transmission, reduces the amount of computation, and improves efficiency when encoding and compression, ensuring reliable data transmission and reducing losses.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119093940A_ABST
    Figure CN119093940A_ABST
Patent Text Reader

Abstract

The invention provides a low-voltage distributed power distribution network data transmission method and device, and relates to the technical field of power distribution network data transmission. The method comprises the following steps: firstly, obtaining a plurality of queues to be transmitted; then extracting a plurality of first frequency characteristics of each queue to be transmitted, and adjusting the plurality of first frequency characteristics to a first data interval to obtain a plurality of first arrays; cutting the plurality of first arrays, and generating a first code for each target length class according to the occurrence frequency of the target length classes, thereby obtaining a plurality of first codes; and finally, transmitting the plurality of first arrays according to the plurality of first codes. According to the invention, multiple data to be transmitted are characterized in frequency, and the characterized data are adjusted to a predetermined data interval, so that the repeatability of the data is improved, the coding compression efficiency is improved, the data are segmented and constructed into long numbers, and the coding values are allocated for the long numbers according to the repetition rate of data repetition, so that the transmission quantity of the data is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of power distribution network data transmission, and in particular to a low-voltage distributed power distribution network data transmission method and device. Background Art

[0002] The low-voltage distributed distribution network is equipped with multiple distributed power generation equipment. These power generation equipment need to cooperate with the main power supply to generate electricity. During this period, there are many nodes that need to communicate, and the number is large, and the real-time requirements are high. At the same time, the distribution network in the existing technology communicates with multiple terminal devices through power line carrier communication (PLC, Power Line Carrier), and the data transmission speed is low, resulting in the timeliness and reliability of data transmission cannot be guaranteed.

[0003] In order to solve the problem of low data transmission efficiency in distributed distribution networks, the relevant technologies improve the timeliness of data transmission by upgrading hardware, prioritizing data, and compressing data. In one related technology, the active distribution network big data uses convolutional neural networks to extract data set features and the probability of the category to which the Softmax function output belongs to to divide the active distribution network big data into real-time data, quasi-real-time data, and non-real-time data; the real-time data, quasi-real-time data, and non-real-time data are marked and encrypted; based on distributed agent parallel technology, the data of each sampling point is compressed under multi-objective constraints, and finally transmitted securely.

[0004] In the above method, a convolutional neural network is used to extract features of a data set, and encryption, grading and compression are performed based on these features. However, there are problems such as unclear data loss and high computational cost during data feature extraction and compression.

[0005] Based on this, it is necessary to develop a data transmission method suitable for low-voltage distributed distribution networks. Summary of the invention

[0006] The embodiments of the present invention provide a method and device for transmitting data in a low-voltage distributed power distribution network, so as to solve the problem that the method for improving the data transmission efficiency of the power distribution network in the prior art has a high computational cost.

[0007] In a first aspect, an embodiment of the present invention provides a low voltage distributed distribution network data transmission method, comprising:

[0008] Acquire multiple queues to be transmitted, wherein the multiple queues to be transmitted correspond to the same time period, and the queues to be transmitted collect data on the monitoring target according to predetermined time nodes;

[0009] Extracting a plurality of first frequency features of each queue to be transmitted, adjusting the plurality of first frequency features to a first data interval to obtain a plurality of second frequency features, and constructing the plurality of second frequency features into a first array, thereby obtaining a plurality of first arrays;

[0010] Cutting the multiple first arrays so that the number of target long number classes obtained according to the cutting satisfies the first number, and generating a first code for each target long number class according to the occurrence frequency of the target long number class, thereby obtaining multiple first codes, wherein the length of the first code is negatively correlated with the occurrence frequency of the long number class;

[0011] The plurality of first arrays are transmitted according to the plurality of first codes.

[0012] In a possible implementation manner, adjusting the multiple first frequency features to the first data interval to obtain the multiple second frequency features includes:

[0013] Normalizing the plurality of first frequency features to obtain a plurality of first intermediate values;

[0014] Obtaining an upper limit value and a lower limit value of the first data interval;

[0015] Calculate the product of each first intermediate value in the plurality of first intermediate values ​​and the interval range respectively to obtain a plurality of second intermediate values, wherein the interval range is the difference between the upper limit value and the lower limit value;

[0016] The sum of each second intermediate value in the plurality of second intermediate values ​​and the lower limit value is calculated respectively to obtain the plurality of second frequency features.

[0017] In a possible implementation manner, extracting a plurality of first frequency features of each queue to be transmitted includes:

[0018] A plurality of first frequency features of the queue to be transmitted are extracted according to a first formula, wherein the first formula is:

[0019]

[0020] Where FrqF(2k) is the 2kth first frequency feature, SQS(sm) is the smth data in the queue to be transmitted, sm_max is the total number of data in the queue to be transmitted, sin() is the sine function, ω 0 is the basic frequency of feature extraction, π is the ratio of pi, TM is the number of queue data to be transmitted within the basic period of feature extraction, and cos() is the cosine function.

[0021] In a possible implementation, the cutting of the plurality of first arrays so that the number of types of data segments obtained by cutting satisfies a first quantity includes:

[0022] Get the first cutting length;

[0023] Cutting the plurality of first arrays multiple times according to the first cutting length to obtain a plurality of first data sets, wherein the first data set includes the plurality of first data obtained by cutting;

[0024] constructing a plurality of first long numbers based on the plurality of first data sets;

[0025] Classify multiple first long numbers with the same value into one category, thereby obtaining multiple first long number categories;

[0026] If the number of the first long number classes is less than the first number, the multiple first long number classes are used as multiple second long number classes, the first cutting length is increased, and the process jumps to the step of cutting the multiple first arrays multiple times according to the first cutting length to obtain multiple first data sets;

[0027] Otherwise, the most recently obtained plurality of second long number classes are used as the plurality of target long number classes.

[0028] In a possible implementation, the cutting of the plurality of first arrays so that the number of types of data segments obtained by cutting satisfies a first quantity includes:

[0029] Get the first cutting length;

[0030] Cutting the plurality of first arrays multiple times according to the first cutting length to obtain a plurality of first data sets, wherein the first data set includes the plurality of first data obtained by cutting;

[0031] constructing a plurality of first long numbers based on the plurality of first data sets;

[0032] Classify multiple first long numbers with the same value into one category, thereby obtaining multiple first long number categories;

[0033] If the number of the first long number classes is greater than the first number, the multiple first long number classes are used as multiple second long number classes, the first cutting length is reduced, and the process jumps to the step of cutting the multiple first arrays multiple times according to the first cutting length to obtain multiple first data sets;

[0034] Otherwise, the most recently obtained plurality of second long number classes are used as the plurality of target long number classes.

[0035] In a possible implementation, generating a first code for each target long number class according to the occurrence frequency of the target long number class, thereby obtaining multiple first codes, includes:

[0036] Obtaining a number of digits of a first code, and using the number of digits of the first code as a preset number of digits;

[0037] Taking the number that can be expressed by the number of bits of the first code as the second number;

[0038] Extracting the second number of target long number classes with the highest occurrence frequency from the multiple target long number classes as multiple long number classes to be encoded;

[0039] Generate a plurality of first codes of the second number according to the number of bits of the first code;

[0040] Randomly extracting a code from the plurality of first codes as each long number class code to be encoded in the plurality of long number classes to be encoded;

[0041] If there is an uncoded long number class among the multiple target long number classes, the sum of the number of digits of the first code and the preset number of digits is used as the number of digits of the first code, and the process jumps to the step of using the number that can be expressed by the number of digits of the first code as the second number.

[0042] In a possible implementation, the first number is determined according to a second formula, the preset number of bits, and the longest number of bits of the first code, wherein the second formula is:

[0043]

[0044] In the formula, Num 1 is the first number, Ratio is the multiple of the longest number of digits of the first code relative to the preset number of digits, Lth_max is the longest number of digits of the first code, and Base is the base of the first code.

[0045] In a possible implementation manner, transmitting the multiple first arrays according to the multiple first codes includes:

[0046] For each of the plurality of first arrays, the following steps are performed respectively:

[0047] Sequentially obtain the length numbers obtained by cutting the first array as the length numbers to be transmitted;

[0048] Finding a first code from a plurality of target length number classes according to the length number to be transmitted as a transmission code, wherein the value of the target length number class corresponding to the transmission code is the same as the value of the length number to be transmitted;

[0049] Cutting the transmission code into a plurality of transmission code segments of a preset number of bits;

[0050] Adding a segmentation code to the beginning of the plurality of transmission coding segments, adding a continuation code to the beginning of the transmission coding segments other than the beginning of the plurality of transmission coding segments, and transmitting the segments;

[0051] If the multiple long numbers of the first array have not been transmitted, jump to the step of sequentially acquiring the long numbers obtained by cutting the first array as the long numbers to be transmitted.

[0052] In a second aspect, an embodiment of the present invention provides a low-voltage distributed distribution network data transmission device for implementing the low-voltage distributed distribution network data transmission method as described in the first aspect, the low-voltage distributed distribution network data transmission device comprising:

[0053] The data acquisition module to be transmitted is used to acquire multiple queues to be transmitted, wherein the multiple queues to be transmitted correspond to the same time period, and the queues to be transmitted acquire data of the monitoring target according to the predetermined time nodes;

[0054] A feature construction module, used to extract a plurality of first frequency features of each queue to be transmitted, adjust the plurality of first frequency features to a first data interval to obtain a plurality of second frequency features, and construct the plurality of second frequency features into a first array, thereby obtaining a plurality of first arrays;

[0055] an encoding module, configured to cut the plurality of first arrays so that the number of target long number classes obtained according to the cutting satisfies the first number, and generate a first code for each target long number class according to the occurrence frequency of the target long number class, thereby obtaining a plurality of first codes, wherein the length of the first code is negatively correlated with the occurrence frequency of the long number class;

[0056] as well as,

[0057] A transmission module is used to transmit the multiple first arrays according to the multiple first codes.

[0058] In a possible implementation, the feature construction module includes:

[0059] A normalization module, used for performing normalization processing on the plurality of first frequency features to obtain a plurality of first intermediate values;

[0060] A limit value extraction module, used to obtain an upper limit value and a lower limit value of the first data interval;

[0061] The intermediate value extraction module calculates the product of each first intermediate value and the interval range in the plurality of first intermediate values ​​to obtain a plurality of second intermediate values, wherein the interval range is the difference between the upper limit value and the lower limit value.

[0062] as well as,

[0063] A feature reconstruction module is used to respectively calculate the sum of each second intermediate value in the plurality of second intermediate values ​​and the lower limit value to obtain the plurality of second frequency features.

[0064] The beneficial effects of the embodiments of the present invention compared with the prior art are as follows:

[0065] The present invention provides a low-voltage distributed distribution network data transmission method and device, firstly, a plurality of queues to be transmitted are obtained, wherein the plurality of queues to be transmitted correspond to the same time period, and the queues to be transmitted collect data on monitoring targets according to predetermined time nodes; then, a plurality of first frequency features of each queue to be transmitted are extracted, the plurality of first frequency features are adjusted to a first data interval to obtain a plurality of second frequency features, and the plurality of second frequency features are constructed into a first array, thereby obtaining a plurality of first arrays; then, the plurality of first arrays are trimmed, so that the number of target long number classes obtained according to the trimming meets the first number, and a first code is generated for each target long number class according to the occurrence frequency of the target long number class, thereby obtaining a plurality of first codes, wherein the length of the first code is negatively correlated with the occurrence frequency of the long number class; finally, the plurality of first arrays are transmitted according to the plurality of first codes. The implementation mode of the present invention characterizes the frequencies of multiple data to be transmitted, and adjusts the characterized data to a predetermined data interval to improve the repeatability of the data, thereby improving the compression efficiency during subsequent encoding compression. Then, the data segments are constructed into long numbers, and coding values ​​are assigned to the long numbers according to the repetition rate of the data. The repeatability is negatively correlated with the coding length to reduce the total length of the code when it is used, thereby reducing the amount of data transmission. BRIEF DESCRIPTION OF THE DRAWINGS

[0066] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0067] Figure 1 It is a flow chart of the implementation of the low-voltage distributed distribution network data transmission method provided by the embodiment of the present invention;

[0068] Figure 2 It is a principle diagram of the data feature extraction and data cutting process provided by an embodiment of the present invention;

[0069] Figure 3 It is a schematic diagram of a data encoding process provided by an embodiment of the present invention;

[0070] Figure 4 It is a structural schematic diagram of a low-voltage distributed distribution network data transmission device provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0071] In the following description, specific details such as specific system structures and techniques are provided for the purpose of illustration rather than limitation so as to provide a thorough understanding of the embodiments of the present invention. However, it should be clear to those skilled in the art that the present invention may be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present invention with unnecessary details.

[0072] In order to make the purpose, technical solutions and advantages of the present invention more clear, a specific implementation method will be described below in conjunction with the accompanying drawings.

[0073] Figure 1 The implementation flow chart of the low-voltage distributed distribution network data transmission method provided by the embodiment of the present invention is detailed as follows:

[0074] Step 101: Acquire multiple queues to be transmitted, wherein the multiple queues to be transmitted correspond to the same time period, and the queues to be transmitted collect data on the monitoring target according to predetermined time nodes.

[0075] Step 102, extract multiple first frequency features of each queue to be transmitted, adjust the multiple first frequency features to the first data interval to obtain multiple second frequency features, and construct the multiple second frequency features into a first array, thereby obtaining multiple first arrays.

[0076] In some implementations, adjusting the plurality of first frequency features to a first data interval to obtain a plurality of second frequency features includes:

[0077] Normalizing the plurality of first frequency features to obtain a plurality of first intermediate values;

[0078] Obtaining an upper limit value and a lower limit value of the first data interval;

[0079] Calculate the product of each first intermediate value in the plurality of first intermediate values ​​and the interval range respectively to obtain a plurality of second intermediate values, wherein the interval range is the difference between the upper limit value and the lower limit value;

[0080] The sum of each second intermediate value in the plurality of second intermediate values ​​and the lower limit value is calculated respectively to obtain the plurality of second frequency features.

[0081] In some implementations, extracting a plurality of first frequency features of each queue to be transmitted includes:

[0082] A plurality of first frequency features of the queue to be transmitted are extracted according to a first formula, wherein the first formula is:

[0083]

[0084] Where FrqF(2k) is the 2kth first frequency feature, SQS(sm) is the smth data in the queue to be transmitted, sm_max is the total number of data in the queue to be transmitted, sin() is the sine function, ω 0 is the basic frequency of feature extraction, π is the ratio of pi, TM is the number of queue data to be transmitted within the basic period of feature extraction, and cos() is the cosine function.

[0085] Exemplarily, the data transmitted in the distribution network are mainly bus voltage, bus current, feeder voltage, feeder current, various voltage waveforms and various current waveforms, among which waveform data occupies a large part of data transmission. The waveform data contains many features, which can reflect the historical and current operation of the distribution network, and can also analyze the power quality and regulate the power grid according to the waveform. On the other hand, for the receiving end of data transmission, it is usually necessary to pre-process the data first after receiving the data, and then apply it. For example, the power grid harmonics, voltage waveform distortion, power factor, etc. obtained based on the analysis of waveform frequency characteristics are indicated for regulation. The implementation mode of the present invention is mainly aimed at the flexible transmission of distribution network waveform data, aiming to reduce data loss and reduce the amount of calculation, and process and compress as much data as possible at the sending end, so as to improve the efficiency of data transmission and the total amount of transmitted data.

[0086] In order to achieve the above purpose, Figure 2 As shown in FIG. 1 , the figure provides a schematic diagram of the data feature extraction and data cutting process. Multiple data pairs 201 to be transmitted are subjected to feature extraction to form multiple feature arrays 202 (for example, using Fourier transform), and then each feature array 202 is processed into intervals to form a first array 203 (the purpose is to make the data distribution intervals in each first array 203 consistent, improve the repeatability of the data, and provide a prerequisite for the subsequent lossless compression), and each array 203 is cut into segments, and the cut multiple data are constructed into a long number 204. Figure 3As shown, the figure provides the principle of the data encoding (lossless compression) process. There are repeated data in the long number 204 obtained through the above steps. These data are marked with codes 205, wherein the data with a higher frequency of repetition is marked with a short code, and the data with a lower frequency of repetition is represented by a long code. After the marking is completed, the codes 205 of the long number 204 obtained in the above steps are sent in sequence. After the receiving end receives it, the long number 204 is restored according to the correspondence between the codes 205 and the long number 204. After the long number 204 is combined, it can be restored to the first array 203. If the above-mentioned analysis of power grid harmonics, voltage waveform distortion, and power factor based on waveform frequency characteristics is performed, the data of the first array 203 can be directly applied. If the original waveform needs to be reproduced, multiple frequency waveforms can be constructed according to multiple waveform characteristics, and the multiple frequency waveforms are superimposed, so that the original waveform can be almost completely restored (for example, using inverse Fourier transform). In this way, the data preprocessing of waveform feature extraction at the sending end is realized, the data processing process at the receiving end is reduced, and the purpose of data compression and reducing the total amount of data transmission is achieved.

[0087] In order to implement the above-mentioned feature extraction and feature interval processing process, the embodiment of the present invention uses the first formula to extract the frequency feature of each queue to be transmitted:

[0088]

[0089] Where FrqF(2k) is the 2kth first frequency feature, SQS(sm) is the smth data in the queue to be transmitted, sm_max is the total number of data in the queue to be transmitted, sin() is the sine function, ω 0 is the basic frequency of feature extraction, π is the ratio of pi, TM is the number of queue data to be transmitted within the basic period of feature extraction, and cos() is the cosine function.

[0090] Then, the obtained frequency features are normalized, for example, using the following formula for normalization:

[0091]

[0092] In the above formula, data (2) It is the data after normalization. (1) is the data before normalization, dmax is the maximum value of the data before normalization, and dmin is the minimum value of the data before normalization.

[0093] Each data after normalization is multiplied by the range of the first data interval and added to the lower limit of the first data interval, so that the range of data distribution conforms to the preset interval range. It is worth noting that in practical applications, the maximum and minimum values ​​of the data before normalization (dmax and dmin) and the maximum and minimum values ​​of the first interval are usually transmitted together with the codes obtained in the subsequent steps (usually the above data are attached after the coding). When waveform restoration is required, the waveform can be restored at the receiving end based on these four values ​​and the received first array.

[0094] Step 103, trimming the multiple first arrays so that the number of target long number classes obtained according to the trimming satisfies the first number, and generating a first code for each target long number class according to the occurrence frequency of the target long number class, thereby obtaining multiple first codes, wherein the length of the first code is negatively correlated with the occurrence frequency of the long number class.

[0095] In some implementations, the step of trimming the plurality of first arrays so that the number of types of data segments obtained by trimming satisfies a first quantity includes:

[0096] Get the first cutting length;

[0097] Cutting the plurality of first arrays multiple times according to the first cutting length to obtain a plurality of first data sets, wherein the first data set includes the plurality of first data obtained by cutting;

[0098] constructing a plurality of first long numbers based on the plurality of first data sets;

[0099] Classify multiple first long numbers with the same value into one category, thereby obtaining multiple first long number categories;

[0100] If the number of the first long number classes is less than the first number, the multiple first long number classes are used as multiple second long number classes, the first cutting length is increased, and the process jumps to the step of cutting the multiple first arrays multiple times according to the first cutting length to obtain multiple first data sets;

[0101] Otherwise, the most recently obtained plurality of second long number classes are used as the plurality of target long number classes.

[0102] In some implementations, the step of trimming the plurality of first arrays so that the number of types of data segments obtained by trimming satisfies a first quantity includes:

[0103] Get the first cutting length;

[0104] Cutting the plurality of first arrays multiple times according to the first cutting length to obtain a plurality of first data sets, wherein the first data set includes the plurality of first data obtained by cutting;

[0105] constructing a plurality of first long numbers based on the plurality of first data sets;

[0106] Classify multiple first long numbers with the same value into one category, thereby obtaining multiple first long number categories;

[0107] If the number of the first long number classes is greater than the first number, the multiple first long number classes are used as multiple second long number classes, the first cutting length is reduced, and the process jumps to the step of cutting the multiple first arrays multiple times according to the first cutting length to obtain multiple first data sets;

[0108] Otherwise, the most recently obtained plurality of second long number classes are used as the plurality of target long number classes.

[0109] In some implementations, generating a first code for each target long number class according to the frequency of occurrence of the target long number class, thereby obtaining a plurality of first codes, includes:

[0110] Obtaining a number of digits of a first code, and using the number of digits of the first code as a preset number of digits;

[0111] Taking the number that can be expressed by the number of bits of the first code as the second number;

[0112] Extracting the second number of target long number classes with the highest occurrence frequency from the multiple target long number classes as multiple long number classes to be encoded;

[0113] Generate a plurality of first codes of the second number according to the number of bits of the first code;

[0114] Randomly extracting a code from the plurality of first codes as each long number class code to be encoded in the plurality of long number classes to be encoded;

[0115] If there is an uncoded long number class among the multiple target long number classes, the sum of the number of digits of the first code and the preset number of digits is used as the number of digits of the first code, and the process jumps to the step of using the number that can be expressed by the number of digits of the first code as the second number.

[0116] In some implementations, the first number is determined according to a second formula, the preset number of bits, and the longest number of bits of the first code, wherein the second formula is:

[0117]

[0118] In the formula, Num 1 is the first number, Ratio is the multiple of the longest number of digits of the first code relative to the preset number of digits, Lth_max is the longest number of digits of the first code, and Base is the base of the first code.

[0119] Exemplarily, in encoding an array, an embodiment of the present invention first cuts a plurality of first arrays, and constructs the cut data segments (each data segment has a plurality of data) into long numbers. At this time, we can find that some of these long numbers are repeated, and the repeated long numbers are classified into one category, and a plurality of long number categories are obtained. The number of long number categories should meet the requirement of the maximum encoding length. Specifically, the number of long number categories should meet the number set by the second formula:

[0120]

[0121] In the formula, Num 1 is the first number, Ratio is the multiple of the longest number of digits of the first code relative to the preset number of digits, Lth_max is the longest number of digits of the first code, and Base is the base of the first code.

[0122] For example, the encoding system is binary, the preset number of bits is 7 (a byte is 8 bits, the remaining bit is used as a segmentation or continuation mark, and the remaining 7 bits are used as encoding), and the maximum encoding is 24 bits. Then the number of classes is:

[0123] Num 1 =2 7 +2 14 +2 21 =2113664

[0124] This is also the sum of the number of 7-bit code + 14-bit code + 21-bit code. Then the number of long number classes should be as close to this number as possible, but cannot exceed this number (if it exceeds this number, some data will not be able to be encoded and expressed).

[0125] After counting the number of long number classes, if it is higher than this number, reduce the cutting length of the first array, otherwise, increase the cutting length, and repeat the steps of cutting and counting long number classes until the goal of getting as close to this number as possible is achieved.

[0126] When the long number class is determined, encode the most likely long number classes in the long number class into the shortest number of digits. Note that the selected number should be consistent with the range of digits. For example, 2 7 = 128 most likely to appear multiple long number categories are marked with 7-bit codes, and then, from the remaining multiple long number categories, the most likely to appear 2 14 =16384 most likely multiple long number categories are identified by 14-bit codes until all long numbers are identified by codes.

[0127] It can be seen that the long number is compressed (the compression is particularly obvious for the 7-bit identification method mentioned above), and due to the one-to-one correspondence between the identification and the long number class, it is actually a lossless compression.

[0128] Step 104: Transmit the multiple first arrays according to the multiple first codes.

[0129] In some implementations, transmitting the plurality of first arrays according to the plurality of first codes includes:

[0130] For each of the plurality of first arrays, the following steps are performed respectively:

[0131] Sequentially obtain the length numbers obtained by cutting the first array as the length numbers to be transmitted;

[0132] Finding a first code from a plurality of target length number classes according to the length number to be transmitted as a transmission code, wherein the value of the target length number class corresponding to the transmission code is the same as the value of the length number to be transmitted;

[0133] Cutting the transmission code into a plurality of transmission code segments of a preset number of bits;

[0134] Adding a segmentation code to the beginning of the plurality of transmission coding segments, adding a continuation code to the beginning of the transmission coding segments other than the beginning of the plurality of transmission coding segments, and transmitting the segments;

[0135] If the multiple long numbers of the first array have not been transmitted, jump to the step of sequentially acquiring the long numbers obtained by cutting the first array as the long numbers to be transmitted.

[0136] Exemplarily, in terms of data transmission, for each array in the first array, the long number is extracted, the code is correspondingly found, and the code is segmented or continuation code is applied according to the code length.

[0137] Taking the above example, if it is a 7-bit code, add 0 before the code as the code segmentation code and then transmit it. If it is a 14-bit code, add 0 before the first 7 bits as the code segmentation code, and add 1 before the last 7 bits as the code continuation code, indicating that it is the continuation of the previous byte (byte, 8 bits) and is connected with the last 7 bits of the previous 8 bits. Similarly, if it is a 21-bit code, add 0 before the first 7 bits as the code segmentation code, and add 1 before the middle and last 7 bits as the code continuation code.

[0138] After receiving the data, the receiving end first extracts the first bit of each byte. If it is 0, it means the beginning of the encoding, and reads the next seven bits as the first seven bits of the encoding. If the first bit is 1, it means the continuation of the previous byte encoding, and reads the next seven bits and combines them with the last seven bits of the previous byte to form a 14-bit code or a 21-bit code.

[0139] An embodiment of the present invention first obtains multiple queues to be transmitted, wherein the multiple queues to be transmitted correspond to the same time period, and the queues to be transmitted collect data on the monitoring target according to predetermined time nodes; then extracts multiple first frequency features of each queue to be transmitted, adjusts the multiple first frequency features to the first data interval to obtain multiple second frequency features, and constructs the multiple second frequency features into a first array, thereby obtaining multiple first arrays; then trims the multiple first arrays so that the number of target long number classes obtained according to the trimming meets the first number, and generates a first code for each target long number class according to the frequency of occurrence of the target long number class, thereby obtaining multiple first codes, wherein the length of the first code is negatively correlated with the frequency of occurrence of the long number class; finally, transmits the multiple first arrays according to the multiple first codes. The implementation mode of the present invention characterizes the frequencies of multiple data to be transmitted, and adjusts the characterized data to a predetermined data interval to improve the repeatability of the data, thereby improving the compression efficiency during subsequent encoding compression. Then, the data segments are constructed into long numbers, and coding values ​​are assigned to the long numbers according to the repetition rate of the data. The repeatability is negatively correlated with the coding length to reduce the total length of the code when it is used, thereby reducing the amount of data transmission.

[0140] The present invention adopts a feature extraction method to perform lossy compression with controllable loss. When performing waveform analysis, data restoration is not required, and the waveform can be directly processed and analyzed (for example, power factor, waveform distortion, harmonic analysis), thereby improving data transmission efficiency while reducing the amount of data processing at the end. In terms of encoding, due to one-to-one encoding, the feature data is losslessly compressed in the above steps, so that the data waveform can be reproduced at the receiving end. Compared with the prior art, the method of the present invention has a small amount of data calculation and controllable loss, which is convenient for distribution network to perform waveform analysis.

[0141] It should be understood that the size of the serial numbers of the steps in the above implementation does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the implementation method of the present invention.

[0142] The following is an implementation of the device of the present invention. For details not described in detail, reference may be made to the corresponding method implementation described above.

[0143] Figure 4The following is a schematic diagram showing the structure of a low-voltage distributed power distribution network data transmission device provided by an embodiment of the present invention. For ease of explanation, only the parts related to the embodiment of the present invention are shown, which are described in detail as follows:

[0144] like Figure 4 As shown, the low-voltage distributed distribution network data transmission device 4 includes: a data acquisition module 401 to be transmitted, a feature construction module 402, an encoding module 403 and a transmission module 404, wherein:

[0145] The data acquisition module 401 is used to acquire multiple queues to be transmitted, wherein the multiple queues to be transmitted correspond to the same time period, and the queues to be transmitted acquire data from the monitoring target according to predetermined time nodes;

[0146] A feature construction module 402 is used to extract a plurality of first frequency features of each queue to be transmitted, adjust the plurality of first frequency features to a first data interval to obtain a plurality of second frequency features, and construct the plurality of second frequency features into a first array, thereby obtaining a plurality of first arrays;

[0147] The encoding module 403 is used to cut the multiple first arrays so that the number of target long number classes obtained according to the cutting meets the first number, and generate a first code for each target long number class according to the occurrence frequency of the target long number class, thereby obtaining multiple first codes, wherein the length of the first code is negatively correlated with the occurrence frequency of the long number class;

[0148] The transmission module 404 is configured to transmit the plurality of first arrays according to the plurality of first codes.

[0149] In some embodiments, the feature building module includes:

[0150] A normalization module, used for performing normalization processing on the plurality of first frequency features to obtain a plurality of first intermediate values;

[0151] A limit value extraction module, used to obtain an upper limit value and a lower limit value of the first data interval;

[0152] The intermediate value extraction module calculates the product of each first intermediate value and the interval range in the plurality of first intermediate values ​​to obtain a plurality of second intermediate values, wherein the interval range is the difference between the upper limit value and the lower limit value.

[0153] as well as,

[0154] The feature reconstruction module is used to respectively calculate the sum of each second intermediate value in the multiple second intermediate values ​​and the lower limit value to obtain the multiple second frequency features.

[0155] In the above-mentioned embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0156] Those skilled in the art will appreciate that the templates, units, and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0157] If the module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present invention implements all or part of the processes in the above-mentioned implementation method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by the processor, it can implement the steps of the above-mentioned low-voltage distributed distribution network data transmission method implementation method. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device that can carry the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory, random access memory, electrical carrier signal, telecommunication signal and software distribution medium.

[0158] The above-described embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present invention, and should all be included in the protection scope of the present invention.

Claims

1. A low voltage distributed distribution network data transmission method, characterized in that: include: Acquire multiple queues to be transmitted, wherein the multiple queues to be transmitted correspond to the same time period, and the queues to be transmitted collect data on the monitoring target according to predetermined time nodes; Extracting a plurality of first frequency features of each queue to be transmitted, adjusting the plurality of first frequency features to a first data interval to obtain a plurality of second frequency features, and constructing the plurality of second frequency features into a first array, thereby obtaining a plurality of first arrays; Cutting the multiple first arrays so that the number of target long number classes obtained according to the cutting satisfies the first number, and generating a first code for each target long number class according to the occurrence frequency of the target long number class, thereby obtaining multiple first codes, wherein the length of the first code is negatively correlated with the occurrence frequency of the long number class; The plurality of first arrays are transmitted according to the plurality of first codes.

2. The low voltage distributed distribution network data transmission method according to claim 1, characterized in that: The step of adjusting the plurality of first frequency features to the first data interval to obtain a plurality of second frequency features comprises: Normalizing the plurality of first frequency features to obtain a plurality of first intermediate values; Obtaining an upper limit value and a lower limit value of the first data interval; Calculate the product of each first intermediate value in the plurality of first intermediate values ​​and the interval range respectively to obtain a plurality of second intermediate values, wherein the interval range is the difference between the upper limit value and the lower limit value; The sum of each second intermediate value in the plurality of second intermediate values ​​and the lower limit value is calculated respectively to obtain the plurality of second frequency features.

3. The low voltage distributed distribution network data transmission method according to claim 2, characterized in that: The extracting a plurality of first frequency features of each queue to be transmitted includes: A plurality of first frequency features of the queue to be transmitted are extracted according to a first formula, wherein the first formula is: Wherein, FrqF(2k) is the 2kth first frequency feature, SQS(sm) is the smth data in the queue to be transmitted, sm_max is the total number of data in the queue to be transmitted, sin() is the sine function, ω0 is the basic frequency of feature extraction, π is pi, TM is the number of data in the queue to be transmitted within the basic cycle of feature extraction, and cos() is the cosine function.

4. The low voltage distributed distribution network data transmission method according to claim 1, characterized in that: The trimming of the plurality of first arrays so that the number of types of data segments obtained by trimming satisfies a first quantity includes: Get the first cutting length; Cutting the plurality of first arrays multiple times according to the first cutting length to obtain a plurality of first data sets, wherein the first data set includes the plurality of first data obtained by cutting; constructing a plurality of first long numbers based on the plurality of first data sets; Classify multiple first long numbers with the same value into one category, thereby obtaining multiple first long number categories; If the number of the first long number classes is less than the first number, the multiple first long number classes are used as multiple second long number classes, the first cutting length is increased, and the process jumps to the step of cutting the multiple first arrays multiple times according to the first cutting length to obtain multiple first data sets; Otherwise, the most recently obtained plurality of second long number classes are used as the plurality of target long number classes.

5. The low voltage distributed distribution network data transmission method according to claim 1, characterized in that: The trimming of the plurality of first arrays so that the number of types of data segments obtained by trimming satisfies a first quantity includes: Get the first cutting length; Cutting the plurality of first arrays multiple times according to the first cutting length to obtain a plurality of first data sets, wherein the first data set includes the plurality of first data obtained by cutting; constructing a plurality of first long numbers based on the plurality of first data sets; Classify multiple first long numbers with the same value into one category, thereby obtaining multiple first long number categories; If the number of the first long number classes is greater than the first number, the multiple first long number classes are used as multiple second long number classes, the first cutting length is reduced, and the process jumps to the step of cutting the multiple first arrays multiple times according to the first cutting length to obtain multiple first data sets; Otherwise, the most recently obtained plurality of second long number classes are used as the plurality of target long number classes.

6. The low voltage distributed distribution network data transmission method according to claim 4 or 5, characterized in that: The step of generating a first code for each target long number class according to the occurrence frequency of the target long number class, thereby obtaining a plurality of first codes, includes: Obtaining a number of digits of a first code, and using the number of digits of the first code as a preset number of digits; Taking the number that can be expressed by the number of bits of the first code as the second number; Extracting the second number of target long number classes with the highest occurrence frequency from the multiple target long number classes as multiple long number classes to be encoded; Generate a plurality of first codes of the second number according to the number of bits of the first code; Randomly extracting a code from the plurality of first codes as each long number class code to be encoded in the plurality of long number classes to be encoded; If there is an uncoded long number class among the multiple target long number classes, the sum of the number of digits of the first code and the preset number of digits is used as the number of digits of the first code, and the process jumps to the step of using the number that can be expressed by the number of digits of the first code as the second number.

7. The low voltage distributed distribution network data transmission method according to claim 6, characterized in that: The first number is determined according to a second formula, the preset number of bits, and the longest number of bits of the first code, wherein the second formula is: In the formula, Num1 is the first number, Ratio is the multiple of the longest number of digits of the first code relative to the preset number of digits, Lth_max is the longest number of digits of the first code, and Base is the base of the first code.

8. The low voltage distributed distribution network data transmission method according to claim 1, characterized in that: The transmitting the plurality of first arrays according to the plurality of first codes comprises: For each of the plurality of first arrays, the following steps are performed respectively: Sequentially obtain the length numbers obtained by cutting the first array as the length numbers to be transmitted; Finding a first code from a plurality of target length number classes according to the length number to be transmitted as a transmission code, wherein the value of the target length number class corresponding to the transmission code is the same as the value of the length number to be transmitted; Cutting the transmission code into a plurality of transmission code segments of a preset number of bits; Adding a segmentation code to the beginning of the plurality of transmission coding segments, adding a continuation code to the beginning of the transmission coding segments other than the beginning of the plurality of transmission coding segments, and transmitting the segments; If the multiple long numbers of the first array have not been transmitted, jump to the step of sequentially acquiring the long numbers obtained by cutting the first array as the long numbers to be transmitted.

9. A low voltage distributed distribution network data transmission device, characterized in that: For implementing the low-voltage distributed distribution network data transmission method according to claim 1, the low-voltage distributed distribution network data transmission device comprises: The data acquisition module to be transmitted is used to acquire multiple queues to be transmitted, wherein the multiple queues to be transmitted correspond to the same time period, and the queues to be transmitted acquire data of the monitoring target according to the predetermined time nodes; A feature construction module, used to extract a plurality of first frequency features of each queue to be transmitted, adjust the plurality of first frequency features to a first data interval to obtain a plurality of second frequency features, and construct the plurality of second frequency features into a first array, thereby obtaining a plurality of first arrays; an encoding module, configured to cut the plurality of first arrays so that the number of target long number classes obtained according to the cutting satisfies the first number, and generate a first code for each target long number class according to the occurrence frequency of the target long number class, thereby obtaining a plurality of first codes, wherein the length of the first code is negatively correlated with the occurrence frequency of the long number class; as well as, A transmission module is used to transmit the multiple first arrays according to the multiple first codes.

10. The low voltage distributed distribution network data transmission device according to claim 9, characterized in that: The feature building module includes: A normalization module, used for performing normalization processing on the plurality of first frequency features to obtain a plurality of first intermediate values; A limit value extraction module, used to obtain an upper limit value and a lower limit value of the first data interval; The intermediate value extraction module calculates the product of each first intermediate value and the interval range in the plurality of first intermediate values ​​to obtain a plurality of second intermediate values, wherein the interval range is the difference between the upper limit value and the lower limit value. as well as, The feature reconstruction module is used to respectively calculate the sum of each second intermediate value in the multiple second intermediate values ​​and the lower limit value to obtain the multiple second frequency features.