A message processing method and related device

By identifying and sorting the data items of the power acquisition terminal, ensuring that the time-stamped data items are placed first, the problem of data mis-storage and memory waste caused by inconsistent data item order is solved, and the correct acquisition of data that meets the requirements of the main station is achieved.

CN115313663BActive Publication Date: 2026-03-24NINGBO SANXING INTELLIGENT ELECTRIC
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-13
Publication Date
2026-03-24

AI Technical Summary

Technical Problem

In existing technologies, power data acquisition terminals fail to effectively determine the order of data item IDs when executing acquisition schemes, resulting in data that does not match the requirements of the master station, which may lead to data mis-storage and memory waste.

Method used

By identifying frozen data acquisition schemes, we ensure that time-stamped data items are placed before other data items, and reorder the data items to ensure that time-stamped data items have the highest priority, thus achieving correct freezing and acquisition of data items.

Benefits of technology

This ensures that the collected data meets the requirements of the main station, avoids the storage of erroneous data, and saves device memory.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115313663B_ABST
    Figure CN115313663B_ABST
Patent Text Reader

Abstract

The embodiment of the application provides a kind of message processing method and related equipment, it is related to electric power system technical field.The method comprises: obtaining acquisition scheme message, it is judged whether acquisition scheme message is characterized as frozen data acquisition scheme, if yes, acquisition scheme message is updated to the acquisition scheme message with time scale data item in front of other data item.The method can be in frozen data acquisition scheme, can arrange time scale data item in the front position of message, in front of voltage, current, power, electricity energy etc.data item, so that clearly make voltage, current, power, electricity energy etc.data freeze first, then collect, avoid the situation of collecting error data without freezing, avoid storing error data, save equipment memory, and ensure that the data collected meets the needs of master station.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of power system technology, and in particular to message processing methods and power acquisition terminals. Background Technology

[0002] The recording data acquisition of the power acquisition terminal is carried out by sequentially collecting and storing the data items according to the data item IDs in the acquisition plan issued by the master station.

[0003] Currently, the data item IDs in the acquisition scheme messages issued by different master stations may be in inconsistent order. When the power acquisition terminal executes the acquisition scheme task, it does not determine the order of the data item IDs in the acquisition scheme. That is, the existing scheme ignores the issue of the acquisition order of data item IDs in the 645 table (a type of archive information stored in the master station's data center memory). If the first acquired data item ID is not a time-stamped data item, the power acquisition terminal will directly store it in the default order without determining the order of the data items. This may lead to data that does not meet the requirements of the master station, resulting in incorrect data storage in the power acquisition terminal, and thus wasting the master station's data center memory.

[0004] Therefore, ensuring that the collected data meets the needs of the main site is a technical problem that needs to be solved. Summary of the Invention

[0005] The purpose of this application is to provide a message processing method and related equipment to solve the technical problem in the prior art of how to ensure that the collected data meets the needs of the main station.

[0006] To achieve the above objectives, the embodiments of this application adopt the following technical solutions.

[0007] In a first aspect, embodiments of this application provide a message processing method applied to a power acquisition terminal or a media electronic device between a power system master station and a power acquisition terminal, wherein the power acquisition terminal is communicatively connected to the power system master station. The method includes: acquiring an acquisition scheme message issued by the power system master station, the acquisition scheme message including multiple data items; determining, based on the data items of the acquisition scheme message, whether the acquisition scheme message represents a frozen data acquisition scheme, wherein frozen data is record-type data frozen according to a set time; if so, updating the acquisition scheme message to an acquisition scheme message in which the time stamp data item is located before other data items.

[0008] Optionally, other data items include: voltage, current, power, and electrical energy consumption.

[0009] Optionally, the step of updating the acquisition scheme message to an acquisition scheme message in which the time-stamped data item precedes other data items includes: determining whether there is a time-stamped data item in the acquisition scheme message based on the data items in the acquisition scheme message; if there is a time-stamped data item in the acquisition scheme message, placing the time-stamped data item before other data items to obtain the updated acquisition scheme message; if there is no time-stamped data item in the acquisition scheme message, creating a time-stamped data item and placing the time-stamped data item before other data items to obtain the updated acquisition scheme message.

[0010] Optionally, if there is a time-stamped data item in the acquisition scheme message, the step of placing the time-stamped data item before other data items to obtain the updated acquisition scheme message includes: if there is a time-stamped data item in the acquisition scheme message, determining whether the time-stamped data item is before other data items; if the time-stamped data item is not before other data items, reordering the data items of the acquisition scheme message so that the time-stamped data item is before other data items to obtain the updated acquisition scheme message.

[0011] Optionally, the step of reordering the data items in the acquisition scheme message so that the time-stamped data item is placed before other data items includes: setting a priority for each data item in the acquisition scheme message, wherein the priority of the time-stamped data item is set to the highest; and reordering the data items according to the priority order.

[0012] Optionally, the step of setting a priority for each data item in the acquisition scheme message includes: setting the priority of each data item according to the preset correspondence between the data type represented by each data item and the priority.

[0013] Optionally, if there is no time-stamped data item in the acquisition scheme message, a time-stamped data item is created and placed before other data items to obtain the updated acquisition scheme message. The steps include: creating a time-stamped data item, setting a priority for the time-stamped data item and each data item in the acquisition scheme message, wherein the priority of the time-stamped data item is set to the highest; and reordering the data items according to the priority order to obtain the updated acquisition scheme message.

[0014] Optionally, the step of determining whether the acquisition scheme message is a frozen data acquisition scheme includes: determining whether there are any pre-defined data items in the data items of the acquisition scheme message; if so, the acquisition scheme message is a frozen data acquisition scheme; if not, the acquisition scheme message is not a frozen data acquisition scheme.

[0015] Optionally, the pre-defined data items include: data items representing freezing by minute, data items representing freezing by hour, and data items representing freezing by day.

[0016] Secondly, embodiments of this application provide an electronic device for performing the message processing method of the first aspect.

[0017] Thirdly, embodiments of this application provide a computer-readable storage medium storing a computer program or instructions, which, when executed by a computing device, implements the message processing method of the first aspect.

[0018] Compared with the prior art, this application has the following advantages:

[0019] The message processing method, electronic device, and computer-readable storage medium provided in this application embodiment, in the frozen data acquisition scheme, can arrange the time stamp data item at the beginning of the message, before data items such as voltage, current, power, and energy consumption. This clearly ensures that data such as voltage, current, power, and energy consumption are frozen first and then acquired, avoiding the situation of acquiring erroneous data before freezing. By avoiding the storage of erroneous data, device memory is saved, and the acquired data is ensured to meet the requirements of the main station. Attached Figure Description

[0020] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings used in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of this application and should not be regarded as a limitation of the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.

[0021] Figure 1 A schematic diagram of communication between a power system master station and a power acquisition terminal is provided as an embodiment of this application;

[0022] Figure 2 A schematic diagram of an electronic device provided in an embodiment of this application;

[0023] Figure 3 This is a schematic flowchart of a message processing method provided in an embodiment of this application;

[0024] Figure 4 A schematic diagram of message processing provided for an embodiment of this application;

[0025] Figure 5 This is another schematic diagram of message processing provided for an embodiment of this application;

[0026] Figure 6 This is a message processing flowchart provided for an embodiment of this application. Detailed Implementation

[0027] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. The described embodiments are only some embodiments of this application, not all embodiments. The components of the embodiments of this application described in the accompanying drawings can generally be arranged and designed in various different configurations.

[0028] Therefore, the following detailed description of the embodiments of this application provided in the accompanying drawings is not intended to limit the scope of the claimed application, but merely to illustrate selected embodiments of the application. All other embodiments obtained by those skilled in the art based on the embodiments of this application without inventive effort are within the scope of protection of this application. Unless otherwise specified, the following embodiments and features can be combined with each other.

[0029] In the description of this application, it should be noted that relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. The term "connection" should be interpreted broadly, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a direct connection or an indirect connection through an intermediate medium.

[0030] like Figure 1 The power system master station and the power data acquisition terminals are connected in communication. One power system master station can send data acquisition plan messages to multiple power data acquisition terminals, and one power data acquisition terminal can also receive data acquisition plan messages from multiple power system master stations. The power data acquisition terminals collect data according to the data acquisition plan messages.

[0031] In the existing data acquisition scheme messages issued by the power system master station, there may be situations where the order of data items in the messages issued by different master stations is different.

[0032] When the power data acquisition terminal receives data, it may receive a message indicating a frozen data acquisition scheme. If the received message represents a frozen data acquisition scheme, and some data items are listed early in the message, the power data acquisition terminal may directly acquire the data required by these data items without freezing them. However, the power system master station requires data frozen for a set time. Therefore, the data acquired by the power data acquisition terminal is incorrect. If this incorrect data is sent to the master station, the acquired data will not meet the master station's requirements.

[0033] If the collected data does not meet the main site's requirements, the collection will fail. This wastes the main site's data center memory and prevents the data from being utilized. For the main site, since some data cannot be collected, some solutions must be abandoned.

[0034] To overcome the above problems, please refer to Figure 2 This application provides an electronic device, such as a power acquisition terminal or a media electronic device between a power system master station and a power acquisition terminal, to process acquisition scheme messages.

[0035] The electronic device 100 includes a first memory 110, a first processor 120, and a communication module 130. The first memory 110, the first processor 120, and the communication module 130 are electrically connected to each other directly or indirectly to achieve data transmission or interaction. For example, these components can be electrically connected to each other through one or more communication buses or signal lines.

[0036] The first memory 110 is used to store programs or data. The first memory 110 may be, but is not limited to, random access memory (RAM), read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), etc.

[0037] The first processor 120 is used to read / write data or programs stored in the first memory 110 and execute corresponding functions. The communication module 130 is used to establish a communication connection between the electronic device 100 and other communication terminals through a network, and to send and receive data through the network.

[0038] It should be understood that, Figure 2 The structure shown is only a schematic diagram of the electronic device 100. The electronic device 100 may also include components that are larger than... Figure 2 The more or fewer components shown, or having the same Figure 2 The different configurations shown. Figure 2 The components shown can be implemented using hardware, software, or a combination thereof.

[0039] When the first processor 120 executes the program of the first memory 110, it implements the message processing method described below. For example... Figure 3 The method includes:

[0040] S1: Obtain the data acquisition scheme message sent by the power system master station. The data acquisition scheme message includes multiple data items.

[0041] S2, based on the data items in the acquisition scheme message, determine whether the acquisition scheme message represents a frozen data acquisition scheme. Frozen data refers to record-type data frozen according to a set time.

[0042] S3, if yes, then update the acquisition scheme message to an acquisition scheme message where the time-stamped data item precedes the other data items. Other data items can be voltage, current, power, electrical energy consumption, etc.

[0043] It is evident that this method can first identify frozen data acquisition schemes, and then arrange the time stamp data items at the beginning of the message, before data items such as voltage, current, power, and energy consumption. This clearly ensures that data such as voltage, current, power, and energy consumption are frozen before acquisition, avoiding the situation of acquiring erroneous data before freezing. By avoiding the storage of erroneous data, it saves device memory and ensures that the acquired data meets the requirements of the main station.

[0044] For example, the following data collection scheme message is received:

[0045] 68 56 00 43 05 01 00 00 00 00 00 15 1F 39 07 01 02 60 14 7F 00 01 0102 06 11 01 12 01 00 02 02 11 04 02 02 54 01 00 15 12 00 C0 01 01 5B 01 50 0202 00 07 00 10 02 01 00 20 02 01 20 04 02 00 20 0A 02 00 20 00 02 00 20 21 0200 20 01 02 00 5C 01 16 06 00 6D DA 16

[0046] The message can be broken down into data items for parsing. After parsing, data item 50020200 can be found, which is the 5002 02 00 mentioned above. This data item means that the content to be copied is a data item that is frozen in minutes.

[0047] Following 50 02 02 00 is 07, which means that there are 7 data items to be copied.

[0048] The following sequence is 00 10 02 01 00 20 02 01 20 04 02 00 20 0A 02 00 20 00 02 0020 21 02 00 20 01 02 00, which can be parsed into 7 data items: 00100201, 00200201, 20040200, 200A0200, 20000200, 20210200, and 20010200.

[0049] Among them, data item 20210200 is different from the other 6 data items. 20210200 is a time-stamped data item, that is, the data acquisition scheme message contains a time-stamped data item.

[0050] After confirming that the acquisition scheme message contains a time-stamped data item, the next step is to determine whether the time-stamped data item is located before other data items. If the time-stamped data item is not located before other data items, the data items in the acquisition scheme message are reordered so that the time-stamped data item is located before other data items, resulting in an updated acquisition scheme message.

[0051] Therefore, the time-stamped data item 20210200 is placed before the other six data items 00100201, 00200201, 20040200, 200A0200, 20000200, and 20010200, as follows: Figure 4 The order of the 7 data items is 20210200, 00100201, 00200201, 20040200, 200A0200, 20000200, 20010200.

[0052] During the sorting process, a priority can be set for each data item. The time-stamp data item has the highest priority, set to '0', and the IDs of other data items have lower priority than the time-stamp data item IDs, for example, they can all be set to '1'. The original 7 data items and their priorities are: 00100201_1, 00200201_1, 20040200_1, 200A0200_1, 20000200_1, 20210200_0, 20010200_1. Therefore, they can be sorted as: 20210200_0, 00100201_1, 00200201_1, 20040200_1, 200A0200_1, 20000200_1, 20010200_1. Then, the priorities can be removed to obtain the updated order of the 7 data items.

[0053] If the remaining data items remain unchanged, then as follows: Figure 2 The updated message is as follows:

[0054] 68 56 00 43 05 01 00 00 00 00 00 15 1F 39 07 01 02 60 14 7F 00 01 0102 06 11 01 12 01 00 02 02 11 04 02 02 54 01 00 15 12 00 C0 01 01 5B 01 50 0202 00 07 20 21 02 00 00 10 02 01 00 20 02 01 20 04 02 00 20 0A 02 00 20 00 0200 20 01 02 00 5C 01 16 06 00 6D DA 16

[0055] For example, the following data collection scheme message is received:

[0056] 68 56 00 43 05 01 00 00 00 00 00 15 1F 39 07 01 02 60 14 7F 00 01 0102 06 11 01 12 01 00 02 02 11 04 02 02 54 01 00 15 12 00 C0 01 01 5B 01 50 0202 00 06 00 10 02 01 00 20 02 01 20 04 02 00 20 0A 02 00 20 00 02 00 20 01 0200 5C 01 16 06 00 6D DA 16

[0057] After analysis, we can find data item 50020200, which means 50 02 02 00. This data item indicates that the content to be copied is a frozen minute data item. Following 50 02 02 00 is 06, which means that there are 6 data items to be copied.

[0058] The following sequence 00 10 02 01 00 20 02 01 20 04 02 00 20 0A 02 00 20 00 02 0020 01 02 00 can be parsed into 6 data items: 00100201, 00200201, 20040200, 200A0200, 20000200, and 20010200.

[0059] It can be observed that the time stamp data item 20210200 is missing from the six data items, meaning that the data acquisition scheme message does not contain a time stamp data item. Therefore, a time stamp data item 20210200 needs to be added. Due to the addition of a time stamp data item, the value of the data item representing the number of data items to be copied, immediately following 50 02 02 00, is incremented by one, i.e., "06" is changed to "07".

[0060] After adding time stamp data items, you can also set the priority of each data item. For example, the original 6 data items and their priorities are: 00100201_1, 00200201_1, 20040200_1, 200A0200_1, 20000200_1, 20010200_1, while the time stamp data item and its priority are set to 20210200_0.

[0061] like Figure 5 The messages are sorted according to priority.

[0062] 68 56 00 43 05 01 00 00 00 00 00 15 1F 39 07 01 02 60 14 7F 00 01 0102 06 11 01 12 01 00 02 02 11 04 02 02 54 01 00 15 12 00C0 01 01 5B 01 50 0202 00 07 20 21 02 00 00 10 02 01 00 20 02 01 20 04 02 00 20 0A 02 00 20 00 0200 20 01 02 00 5C 01 16 06 00 6D DA 16.

[0063] For example, the following data collection scheme message is received:

[0064] 68 4F 00 43 05 01 00 00 00 00 00 15 61 A1 07 01 06 60 14 7F 00 01 0102 06 11 01 12 01 00 02 02 11 00 00 01 06 5B 00 00 10 02 01 5B 00 00 20 02 015B 00 20 04 02 00 5B 00 20 0A 02 00 5B 00 20 00 02 00 5B 00 20 01 02 00 5C 0116 01 00 A0 44 16

[0065] Analysis revealed that there were no data items indicating a frozen state, such as "50 02 02 00," meaning the data acquisition scheme was not a frozen data acquisition scheme. Therefore, there was no need to determine the reading order of data items such as time stamp data items. The original message could remain unchanged. Alternatively, the data items could be reordered according to different categories, i.e., the priority of each data item could be set based on the preset correspondence between the data type and priority of each data item. In this way, regardless of the original order of the data items in the message, an order conforming to the preset rules could be obtained.

[0066] Based on the above description, please refer to Figure 6 Implement as follows:

[0067] S01, Obtain the data acquisition scheme message issued by the power system master station.

[0068] S02, determine whether the data acquisition scheme message represents a frozen data acquisition scheme. If yes, proceed to S03; otherwise, keep the original message.

[0069] S03, determine whether there is a timestamp data item in the acquisition scheme message. If yes, proceed to S04; otherwise, proceed to S06.

[0070] S04: Determine whether the time stamp data item is located before other data items. If yes, keep the original message; otherwise, execute S05.

[0071] S05, set the priority for each data item in the acquisition scheme message, with the time stamp data item having the highest priority. Reorder the data items according to their priority to complete the message update.

[0072] S06. Create a time-stamped data item, set the priority for the time-stamped data item and each data item in the acquisition scheme message, with the priority of the time-stamped data item set to the highest; reorder the data items according to the priority order to obtain the updated acquisition scheme message.

[0073] This application also provides a computer-readable storage medium storing a computer program or instructions. When the computer program or instructions are executed by a computing device, the above-described message processing method is implemented. This can be integrated into a power data acquisition terminal, and its technical advantage lies in further optimizing the hardware structure and reducing computing costs.

[0074] In summary, this application proposes a message processing method, a media electronic device between a power acquisition terminal or a power system master station and the power acquisition terminal, and a computer-readable storage medium. In a frozen data acquisition scheme, the time-stamped data items can be arranged at the beginning of the message, before data items such as voltage, current, power, and energy consumption. This clearly ensures that data such as voltage, current, power, and energy consumption are frozen before acquisition, avoiding the situation of acquiring erroneous data before freezing. By avoiding the storage of erroneous data, device memory is saved, and the acquired data is ensured to meet the needs of the master station.

[0075] The apparatus and system embodiments described above are merely illustrative. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement these embodiments without any creative effort.

[0076] The above are merely preferred embodiments of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. A message processing method, characterized in that, A media electronic device used between a power acquisition terminal or a power system master station and a power acquisition terminal, wherein the power acquisition terminal is communicatively connected to the power system master station, the method comprising: Obtain the data acquisition scheme message sent by the power system master station, the data acquisition scheme message including multiple data items; Based on the data items of the acquisition scheme message, determine whether the acquisition scheme message represents a frozen data acquisition scheme, wherein the frozen data is record-type data frozen according to a set time. The step of determining whether the acquisition scheme message represents a frozen data acquisition scheme includes: determining whether there are any pre-defined data items in the data items of the acquisition scheme message; if so, the acquisition scheme message is a frozen data acquisition scheme; if not, the acquisition scheme message is not a frozen data acquisition scheme. If so, the acquisition scheme message is updated to an acquisition scheme message in which the time stamp data item is located before other data items; The step of updating the acquisition scheme message to an acquisition scheme message in which the time-stamped data item precedes other data items includes: Based on the data items in the acquisition scheme message, determine whether there are time stamp data items in the acquisition scheme message; If the acquisition scheme message contains a time stamp data item, then the time stamp data item is placed before other data items to obtain an updated acquisition scheme message; If the acquisition scheme message does not contain a time-stamped data item, a time-stamped data item is created and placed before other data items to obtain an updated acquisition scheme message.

2. The message processing method as described in claim 1, characterized in that, The step of placing a time stamp data item before other data items to obtain an updated acquisition scheme message if the acquisition scheme message contains a time stamp data item includes: If the acquisition scheme message contains a time-stamped data item, then determine whether the time-stamped data item is located before other data items; If the time stamp data item is not located before other data items, the data items of the acquisition scheme message are reordered so that the time stamp data item is located before other data items, resulting in an updated acquisition scheme message.

3. The message processing method as described in claim 2, characterized in that, The step of reordering the data items of the acquisition scheme message so that the time stamp data item is placed before other data items includes: A priority is assigned to each data item in the acquisition scheme message, with the time stamp data item having the highest priority. Reorder the data items according to their priority.

4. The message processing method as described in claim 3, characterized in that, The step of setting a priority for each data item in the acquisition scheme message includes: setting the priority of each data item according to the preset correspondence between the data type represented by each data item and the priority.

5. The message processing method as described in claim 1, characterized in that, The step of creating a time-stamped data item and placing it before other data items to obtain an updated acquisition scheme message if the acquisition scheme message does not contain a time-stamped data item includes: Create a time-stamped data item, and assign priorities to the time-stamped data item and each data item in the acquisition scheme message, wherein the priority of the time-stamped data item is set to the highest; The data items are reordered according to their priority to obtain the updated data collection scheme message.

6. The message processing method as described in claim 1, characterized in that, The pre-defined data items include: data items representing freezing by minute, data items representing freezing by hour, and data items representing freezing by day; The other data items include: voltage, current, power, and electrical energy consumption.

7. An electronic device, characterized in that, Used to perform the method as described in any one of claims 1-6.

8. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program or instructions that, when executed by a computing device, implement the method as described in any one of claims 1 to 6.

Citation Information

Patent Citations

  • Electricity consumption information acquisition device data transmission performance analysis system

    CN104835311A

  • Method for improving acquisition efficiency of electric power acquisition terminal

    CN112087383A