A method and device for transmitting message data
By performing date classification and simplifying processing on message data, and generating the sorting results after unified time tags, the problems of redundancy and high bandwidth usage in the prior art are solved, and the transmission efficiency of power Internet of Things information is improved.
Patent Information
- Application Number
- CN202211182052.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-27
- Publication Date
- 2025-06-13
- Estimated Expiration
- 2042-09-27
AI Technical Summary
The existing packet data transmission methods cause information redundancy due to direct aggregation, occupying a large bandwidth, resulting in low efficiency in transmission of power Internet of Things information.
By acquiring the message data to be transmitted, the day category is generated according to the date classification, the data of the same day category is simplified, a plurality of first processing results are generated, and a unified time tag is calculated based on the preset acquisition frequency, and the multiple first processing results are sorted and transmitted to the power background.
The data length of the packet to be transmitted is simplified, the bandwidth occupied by the packet data transmission is reduced, and the efficiency of transmission of power Internet of Things information is improved.
Smart Images

Figure CN115834727B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data transmission, and in particular, to a method and device for transmitting message data. Background Art
[0002] An Intelligent Electronic Device (IED) uploads the collected power information to an aggregator via the power Internet of Things. After the aggregator collects the power messages of multiple IEDs, it performs data aggregation and further uploads the data to the power back-end for advanced applications. Currently, after the aggregator receives the IED information from the power Internet of Things, it mostly adopts a direct aggregation method to centrally package the message data of multiple IEDs and then send it to the back-end.
[0003] Due to the direct aggregation method adopted by the existing message data transmission method, information redundancy is likely to occur. In addition, the messages uploaded by current IEDs mostly contain information such as time and data quality, which occupy a large bandwidth.
[0004] In summary, due to occupying a large bandwidth, the existing message data transmission method has the problem of low transmission efficiency of the power Internet of Things information. Summary of the Invention
[0005] Embodiments of the present invention provide a method and device for transmitting message data, which improve the transmission efficiency of the power Internet of Things information.
[0006] The first aspect of the embodiments of the present application provides a method for transmitting message data, including:
[0007] Obtain the message data to be transmitted, classify the message data to be transmitted according to the date of the message data to be transmitted, and generate a daily category of the message data to be transmitted;
[0008] After simplifying the message data to be transmitted of the same daily category, generate a plurality of first processing results; specifically: calculate a unified time tag according to a preset collection frequency, and record the message data to be transmitted corresponding to the same unified time tag as the same first processing result; wherein, the preset collection frequency is the collection frequency of the message data to be transmitted within one day;
[0009] Sort the plurality of first processing results in the order of the unified time tag to generate a first sorting result, and transmit the first sorting result to the power back-end.
[0010] In a possible implementation manner of the first aspect, it further includes:
[0011] Determine whether the data quality in multiple first processing results is consistent. If it is consistent, sort the multiple first processing results in the order of the unified time tag. If it is inconsistent, after marking the inconsistent data quality in the first processing results, sort the multiple first processing results in the order of the unified time tag.
[0012] In a possible implementation manner of the first aspect, calculate the unified time tag according to the preset acquisition frequency. Specifically:
[0013]
[0014] Wherein, K represents the preset acquisition frequency; N represents the data period, N = 24 / K; f(N) represents the unified time tag corresponding to the data of the message to be transmitted within the Nth data period.
[0015] In a possible implementation manner of the first aspect, each first processing result includes: a date data, multiple data qualities, and multiple power data.
[0016] In a possible implementation manner of the first aspect, obtain the data of the message to be transmitted. Specifically:
[0017] Collect and obtain the data of the message to be transmitted from the intelligent electronic device according to the preset acquisition frequency.
[0018] A second aspect of the embodiments of the present application provides a message data transmission device, including: a classification module, a processing module, and a transmission module;
[0019] Among them, the classification module is used to obtain the data of the message to be transmitted, classify the data of the message to be transmitted according to the date of the data of the message to be transmitted, and generate the daily category of the data of the message to be transmitted;
[0020] The processing module is used to simplify the data of the message to be transmitted of the same daily category and then generate multiple first processing results. Specifically: calculate the unified time tag according to the preset acquisition frequency, and record the data of the message to be transmitted corresponding to the same unified time tag as the same first processing result; wherein, the preset acquisition frequency is the acquisition frequency of the data of the message to be transmitted within one day.
[0021] The transmission module is used to sort the multiple first processing results in the order of the unified time tag to generate a first sorting result, and transmit the first sorting result to the power background.
[0022] In a possible implementation manner of the second aspect, it further includes:
[0023] Determine whether the data quality in multiple first processing results is consistent. If it is consistent, sort the multiple first processing results in the order of the unified time tag; if it is inconsistent, after marking the inconsistent data quality in the first processing results, sort the multiple first processing results in the order of the unified time tag.
[0024] In a possible implementation manner of the second aspect, calculate the unified time tag according to the preset acquisition frequency. Specifically:
[0025]
[0026] Wherein, K represents the preset acquisition frequency; N represents the data period, N = 24 / K; f(N) represents the unified time tag corresponding to the data of the message to be transmitted within the Nth data period.
[0027] In a possible implementation manner of the second aspect, each first processing result includes: a date data, multiple data qualities, and multiple power data.
[0028] In a possible implementation manner of the second aspect, obtain the data of the message to be transmitted. Specifically:
[0029] Collect and obtain the data of the message to be transmitted from the intelligent electronic device according to the preset acquisition frequency.
[0030] Compared with the prior art, a method and device for transmitting message data provided by an embodiment of the present invention, the method includes: obtaining the data of the message to be transmitted, classifying the data of the message to be transmitted according to the date of the data of the message to be transmitted, and generating a daily category of the data of the message to be transmitted; after simplifying the data of the message to be transmitted of the same daily category, generating multiple first processing results. Specifically: calculate the unified time tag according to the preset acquisition frequency, and record the data of the message to be transmitted corresponding to the same unified time tag as the same first processing result; wherein, the preset acquisition frequency is the acquisition frequency of the data of the message to be transmitted within one day; after sorting the multiple first processing results in the order of the unified time tag, generate a first sorting result, and transmit the first sorting result to the power background.
[0031] The beneficial effect thereof is that: according to the date of the data of the message to be transmitted, the embodiment of the present invention classifies the data of the message to be transmitted, and after generating the daily category of the data of the message to be transmitted, by simplifying the data of the message to be transmitted of the same daily category, each generated first processing result only includes a unified time tag, realizing the refinement of the length of the data of the message to be transmitted, reducing the bandwidth occupied by the transmission of the message data on the basis of ensuring the integrity of the information transmission in the power Internet of Things, and improving the transmission efficiency of the information in the power Internet of Things.
[0032] Further, in the embodiment of the present invention, the power data information is directly mapped and sequentially mapped to the summarized message in the order of IEDs. Except for special descriptions, other values in the data quality field use default values and are not reflected in the message, further reducing the data volume of the message, thereby further improving the transmission efficiency of the power Internet of Things information. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] Figure 1 is a schematic flowchart of a message data transmission method provided by an embodiment of the present invention;
[0034] Figure 2 is a schematic diagram of message data processing provided by an embodiment of the present invention;
[0035] Figure 3 is a schematic diagram of the position of special markings provided by an embodiment of the present invention;
[0036] Figure 4 is a schematic structural diagram of a message data transmission device provided by an embodiment of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0037] Next, the technical solutions in the embodiments of the present invention will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
[0038] Refer to Figure 1 , which is a schematic flowchart of a message data transmission method provided by an embodiment of the present invention, including S101 - S103:
[0039] S101: Obtain the message data to be transmitted, classify the message data to be transmitted according to the date of the message data to be transmitted, and generate the daily category of the message data to be transmitted.
[0040] In this embodiment, the obtaining of the message data to be transmitted is specifically:
[0041] Collect and obtain the message data to be transmitted from the intelligent electronic device according to the preset collection frequency.
[0042] S102: After simplifying the message data to be transmitted of the same daily category, generate a plurality of first processing results.
[0043] Among them, the generation of multiple first processing results is specifically as follows: Calculate a unified time tag according to a preset acquisition frequency, and record the data of the message to be transmitted corresponding to the same unified time tag as the same first processing result. Further, each first processing result includes each unified time tag, and the two are in one-to-one correspondence; the preset acquisition frequency is the acquisition frequency of the message data to be transmitted within one day.
[0044] In a specific embodiment, each of the first processing results includes: a date data, a plurality of the data qualities, and a plurality of power data.
[0045] In this embodiment, the calculation of the unified time tag according to the preset acquisition frequency is specifically as follows:
[0046]
[0047] Wherein, K represents the preset acquisition frequency; N represents the data period, N = 24 / K; f(N) represents the unified time tag corresponding to the message data to be transmitted within the Nth data period.
[0048] Further, each data period corresponds to a first processing result, and each first processing result corresponds to and includes a unified time tag, and also includes: a date data, a plurality of the data qualities, and a plurality of power data.
[0049] S103: After sorting the multiple first processing results in the order of the unified time tags, generate a first sorting result, and transmit the first sorting result to the power background.
[0050] In this embodiment, it further includes:
[0051] Judge whether the data qualities in the multiple first processing results are consistent. If they are consistent, sort the multiple first processing results in the order of the unified time tags; if they are inconsistent, mark the inconsistent data qualities in the first processing results, and then sort the multiple first processing results in the order of the unified time tags.
[0052] In a preferred embodiment, the specific process of message data processing is further described, including the following steps:
[0053] Step 1: Classify and organize the IED information received by the aggregator.
[0054] The aggregator classifies and organizes the received IED information (i.e., the message data to be transmitted), classifies the IED message information on the same "day" into one major category (i.e., generates the day category of the message data to be transmitted), and checks whether the data qualities of each message data to be transmitted are consistent. If there are inconsistencies, special marks are made on the inconsistent message information.
[0055] Step 2: Aggregate and uniformly process the classified data.
[0056] The aggregator uniformly processes the message information classified as "day", taking "day" as a unit data group (i.e., the message data to be transmitted of the same day category). The following processing is performed according to whether the data quality in the unit data group is consistent:
[0057] A: If the data quality in the unit data group is consistent, then in the first IED1 message information in the unit data group, the complete message information of "year\month\day", "uniform time tag", "power data", and "data quality" is displayed. Starting from the second IED2 message information, since within one data collection cycle, the message information of all IEDs can be considered to be at the same moment, its collection time can be considered as the "same time tag", and only the "power data" information is retained. Starting from the second round of the collection cycle, the information of all IEDs can be considered as "another time tag".
[0058] At the same time, based on the aggregator's periodic timing (such as every 15 minutes) to collect the power data of the IEDs, compared with the second-level information aggregation, the message data of year\month\day remains stable within one information aggregation cycle. Therefore, for the messages of multiple IEDs, this message frame is the same. In the embodiment of the present invention, one message field is used to represent the year\month\day information of all IEDs; for hour\minute\second, 1Byte (8Bits) is used to represent 24 hours, that is, 0xFF represents 24 hours, and it is equally divided at equal intervals according to the collection rule of the aggregator to represent the hour\minute\second information of each IED); the power data is directly mapped and is an item that must be retained; the data quality value is relatively fixed. Except for special markings, the aggregated messages in this patent will be used as the default value and displayed in the first IED data message. For details, please refer to Figure 2 , Figure 2 is a schematic diagram of message data processing provided by an embodiment of the present invention.
[0059] It can be obtained from Figure 2 that each data cycle corresponds to a first processing result, and each first processing result corresponds to and contains a uniform time tag; there are multiple IED message information within each uniform time tag, and each IED message information includes corresponding power data and data quality. The order of the data cycles corresponds to the order of the uniform time tags. Then, the order of the uniform time tag in the first data cycle is the first, the order of the uniform time tag in the second data cycle is the second, and so on. The order of the uniform time tag in the Nth data cycle is the Nth.
[0060] In the embodiment of the present invention, by simplifying the data of the to-be-transmitted message of the same daily category, each first processing result generated only includes a unified time tag, realizing the simplification of the length of the to-be-transmitted message data. On the basis of ensuring the integrity of information transmission in the power Internet of Things, the bandwidth occupied by message data transmission is reduced, and the transmission efficiency of information in the power Internet of Things is improved.
[0061] Further, the specific allocation method of the unified time tag is as follows:
[0062] The aggregator performs uniform equal-interval time according to the set acquisition period. For example, data is collected once every K hours (K represents the preset acquisition frequency). Then, N = 24 / K groups of data can be collected in a day, and N also represents the data period. 1Byte (8Bits) is used to represent 24 hours, that is, 0xFF represents 24 hours. For example, within the data group of the same day, K1 represents the first unified time tag, K2 represents the second unified time tag, and KN represents 0XFF.
[0063] Its calculation formula is as follows:
[0064]
[0065] Among them, K represents the preset acquisition frequency; N represents the data period, N = 24 / K; f(N) represents the unified time tag corresponding to the to-be-transmitted message data in the Nth data period.
[0066] If the acquisition period of the aggregator is 15 minutes, that is, K = 0.4 hours.
[0067] Then the unified time tag of the first period is f(1) = 1 * 0xFF / 24 * 0.4 = 0X04;
[0068] The unified time tag of the second period is f(2) = 2 * 0xFF / 24 * 0.4 = 0X08;
[0069] The last data period within 24 hours is:
[0070] f(N) = N * 0xFF / 24 * 0.4 = 24 / 0.4 * 0xFF / 24 * 0.4 = 0XFF;
[0071] B. If the data quality in the unit data group is inconsistent, then special marking is made for the message information with inconsistent data quality, and the rest remains unchanged. For reference, Figure 3 , Figure 3 is the schematic diagram of the position of the special marking provided by an embodiment of the present invention.
[0072] From Figure 3It can be obtained that when the data quality is inconsistent, the message information with inconsistent data quality will be specially marked, and the special mark is: data quality inconsistent with other IED information. Then, multiple first processing results are sorted in the order of the unified time tag.
[0073] To further illustrate the message data transmission device, please refer to Figure 4 , Figure 4 FIG. is a schematic structural diagram of a message data transmission device provided by an embodiment of the present invention, including: a classification module 401, a processing module 402, and a transmission module 403;
[0074] Among them, the classification module 401 is used to obtain the message data to be transmitted, classify the message data to be transmitted according to the date of the message data to be transmitted, and generate the daily category of the message data to be transmitted;
[0075] The processing module 402 is used to simplify the message data to be transmitted of the same daily category and then generate multiple first processing results; specifically: calculate a unified time tag according to a preset acquisition frequency, and record the message data to be transmitted corresponding to the same unified time tag as the same first processing result; where the preset acquisition frequency is the acquisition frequency of the message data to be transmitted within one day;
[0076] The transmission module 403 is used to sort multiple first processing results in the order of the unified time tag to generate a first sorting result, and transmit the first sorting result to the power backstage.
[0077] In this embodiment, it further includes:
[0078] Judge whether the data quality in multiple first processing results is consistent. If it is consistent, sort multiple first processing results in the order of the unified time tag; if it is inconsistent, mark the inconsistent data quality in the first processing results, and then sort multiple first processing results in the order of the unified time tag.
[0079] In this embodiment, the calculating the unified time tag according to the preset acquisition frequency is specifically:
[0080]
[0081] Among them, K represents the preset acquisition frequency; N represents the data period, N = 24 / K; f(N) represents the unified time tag corresponding to the message data to be transmitted within the Nth data period.
[0082] In a specific embodiment, each first processing result includes: a date data, multiple data qualities, and multiple power data.
[0083] In a specific embodiment, the obtaining of the data of the message to be transmitted is specifically as follows:
[0084] Collect and obtain the data of the message to be transmitted from the intelligent electronic device according to the preset collection frequency.
[0085] In the embodiment of the present invention, the classification module obtains the data of the message to be transmitted, classifies the data of the message to be transmitted according to the date of the data of the message to be transmitted, and generates the daily category of the data of the message to be transmitted; after the processing module simplifies the data of the message to be transmitted of the same daily category, multiple first processing results are generated; specifically: calculate a unified time tag according to the preset collection frequency, and record the data of the message to be transmitted corresponding to the same unified time tag as the same first processing result; wherein, the preset collection frequency is the collection frequency of the data of the message to be transmitted within one day; after the transmission module sorts the multiple first processing results in the order of the unified time tag, a first sorting result is generated, and the first sorting result is transmitted to the power grid background.
[0086] In the embodiment of the present invention, after the data of the message to be transmitted is classified according to the date of the data of the message to be transmitted to generate the daily category of the data of the message to be transmitted, by simplifying the data of the message to be transmitted of the same daily category, each generated first processing result only includes one unified time tag, realizing the refinement of the length of the data of the message to be transmitted, reducing the bandwidth occupied by the transmission of the message data on the premise of ensuring the integrity of the information transmission in the power Internet of Things, and improving the transmission efficiency of the information in the power Internet of Things.
[0087] Furthermore, in the embodiment of the present invention, the power data information is directly mapped, and in the order of IEDs, it is mapped to the summarized message in sequence. Except for special expressions, other data quality fields use default values and are not reflected in the message, further reducing the data volume of the message, thereby further improving the transmission efficiency of the information in the power Internet of Things.
[0088] The above is the preferred embodiment of the present invention. It should be noted that for those of ordinary skill in the art in the technical field, without departing from the principle of the present invention, several improvements and refinements can be made, and these improvements and refinements are also regarded as the protection scope of the present invention.
Claims
1. A method for transmitting message data, characterized in that, it includes: Obtain the message data to be transmitted, classify the message data to be transmitted according to the date of the message data to be transmitted, and generate a daily category of the message data to be transmitted; After simplifying the message data to be transmitted of the same daily category, generate multiple first processing results; Specifically: calculate a unified time tag for each of the message data to be transmitted of the same daily category according to a preset acquisition frequency, and record the message data to be transmitted corresponding to the same unified time tag as the same first processing result; wherein, the preset acquisition frequency is the acquisition frequency of the message data to be transmitted within one day; The calculation of the unified time tag according to the preset acquisition frequency is specifically: Wherein, K represents the preset acquisition frequency; N represents the data period, N = 1, 2, … 24 / K; f(N) represents the unified time tag corresponding to the message data to be transmitted within the Nth data period; Thus, the message data to be transmitted within the Nth data period is recorded as the Nth first processing result, N = 1, 2, … 24 / K; Judge whether the data quality in the message data to be transmitted of the same daily category is consistent. If the data quality in the message data to be transmitted of the same daily category is all consistent, then the first first processing result corresponding to the message data to be transmitted within the first data period includes: a date data, a first unified time tag data, a data quality data, and multiple power data in the message data to be transmitted within the first data period; the Nth first processing result corresponding to the message data to be transmitted within the Nth data period includes: the Nth unified time tag data and multiple power data in the message data to be transmitted within the Nth data period, N = 2, 3, …, 24 / K; If there is inconsistent data quality in the message data to be transmitted of the same daily category, then mark the data quality of the message data to be transmitted with inconsistent data quality, and reflect the inconsistent data quality in the Nth first processing result to which the message data belongs. The Nth first processing result corresponding to the message data to be transmitted within the Nth data period includes: the Nth unified time tag data, the marked data quality, and multiple power data in the message data to be transmitted within the Nth data period, N = 1, 2, …, 24 / K; Sort the 24 / K first processing results within the same day in the order of the unified time tag to generate a first sorting result, and transmit the first sorting result to the power backstage.
2. A method for transmitting message data according to claim 1, characterized in that, it further includes: Judge whether the data quality in multiple first processing results is consistent. If it is consistent, sort multiple first processing results in the order of the unified time tag; If it is inconsistent, mark the inconsistent data quality in the first processing results, and then sort multiple first processing results in the order of the unified time tag.
3. A method for transmitting message data according to claim 1, It is characterized in that each of the first processing results includes: a date data, a plurality of the data qualities, and a plurality of power data.
4. A message data transmission method according to claim 3, It is characterized in that the obtaining of the message data to be transmitted is specifically: collecting the message data to be transmitted from the intelligent electronic device according to the preset collection frequency and obtaining it.
5. A message data transmission device It is characterized in that comprising: a classification module, a processing module, and a transmission module; wherein, the classification module is used to obtain the message data to be transmitted, classify the message data to be transmitted according to the date of the message data to be transmitted, and generate the daily category of the message data to be transmitted; the processing module is used to simplify the message data to be transmitted of the same daily category and then generate a plurality of first processing results; specifically: calculate the unified time tag of each of the message data to be transmitted of the same daily category according to the preset collection frequency, and record the message data to be transmitted corresponding to the same unified time tag as the same first processing result; wherein, the preset collection frequency is the collection frequency of the message data to be transmitted within one day; the calculating of the unified time tag according to the preset collection frequency is specifically: wherein, K represents the preset collection frequency; N represents the data period, N = 1, 2, … 24 / K; f(N) represents the unified time tag corresponding to the message data to be transmitted within the Nth data period; thus, the message data to be transmitted within the Nth data period is recorded as the Nth first processing result, N = 1, 2, … 24 / K; judge whether the data qualities in the message data to be transmitted of the same daily category are consistent. If the data qualities in the message data to be transmitted of the same daily category are all consistent, then the first first processing result corresponding to the message data to be transmitted within the first data period includes: a date data, a first unified time tag data, a data quality data, and a plurality of power data in the message data to be transmitted within the first data period; the Nth first processing result corresponding to the message data to be transmitted within the Nth data period includes: the Nth unified time tag data and a plurality of power data in the message data to be transmitted within the Nth data period, N = 2, 3, …, 24 / K; if there are inconsistent data qualities in the message data to be transmitted of the same daily category, then mark the data qualities of the message data to be transmitted with inconsistent data qualities, and reflect the inconsistent data quality in the Nth first processing result to which the message data to be transmitted belongs. The Nth first processing result corresponding to the message data to be transmitted within the Nth data period includes: the Nth unified time tag data, the marked data quality, and a plurality of power data in the message data to be transmitted within the Nth data period, N = 1, 2, …, 24 / K; the transmission module is used to sort the 24 / K first processing results within the same day in the order of the unified time tag to generate a first sorting result, and transmit the first sorting result to the power background.
6. A message data transmission device according to claim 5, wherein, it further comprises: judging whether the data quality in a plurality of the first processing results is consistent; if so, sorting the plurality of the first processing results in the order of the unified time tag; if not, after marking the inconsistent data quality in the first processing results, sorting the plurality of the first processing results in the order of the unified time tag.
7. A message data transmission device according to claim 5, wherein, each of the first processing results includes: a date data, a plurality of the data quality, and a plurality of power data.
8. A message data transmission device according to claim 7, wherein, the obtaining of the message data to be transmitted is specifically: collecting and obtaining the message data to be transmitted from the intelligent electronic device according to the preset collection frequency.
Citation Information
Patent Citations
Automatic time-tick synchronization system of intelligent electronic equipment of transformer substation
CN101795020A
Test method of IED network clock synchronization precision based on GOOSE mechanism
CN102315928A