Intelligent electric meter data scheduling method and device based on buffer area

By adopting the buffer position rotation mechanism in smart meter, the problem of inefficient data acquisition caused by traditional scheduling strategies is solved, real-time priority reading of data and flexible update of buffer position is realized, and the flexibility of smart meter data acquisition is improved. and efficiency.

CN119011623AActive Publication Date: 2024-11-22GUANGDONG ELECTRIC POWER SCI RES INST ENERGY TECH CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202410974011.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-19
Publication Date
2024-11-22
Estimated Expiration
2044-07-19

AI Technical Summary

Technical Problem

The traditional smart meter scheduling strategy is based on the number of accesses, which may lead to the inability to collect important data items in time, resulting in inefficiency, especially in the event of sudden demand, buffer position occupancy and cannot be dynamically adjusted.

Method used

Using a buffer-based smart meter data scheduling method, the buffer position rotation mechanism is used to judge the replacement position based on the access bit value of the data, real-time priority reading of data and flexible rotation of buffer position, ensuring timely collection of burst data .

Benefits of technology

It realizes the advance buffering and priority collection of smart meter data, ensures priority reading of important data in real time, and replaces old data items in time when the buffer pool is full, improving the flexibility and efficiency of data acquisition.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119011623A_ABST
    Figure CN119011623A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of intelligent electric meters, and discloses an intelligent electric meter data scheduling method and device based on a buffer area. According to the method, when an electricity meter data acquisition signal is received, to-be-acquired data are acquired in a priority area and a rotation area of a buffer area, if the to-be-acquired data which cannot be acquired in the buffer area exists, the data are acquired in real time by utilizing a buffer area idle position and a buffer area replacement position, and the buffer area replacement position is used for replacing the to-be-acquired data by starting buffer area position rotation. And performing rotation judgment on each buffer area position in the rotation area of the buffer area, wherein the object of the rotation judgment is the access bit value of the data stored in the buffer area position. According to the method, important data are preferentially read in real time, and flexible alternate updating of the position of the buffer area is ensured, so that the real-time acquisition requirement of burst data is met, and the data acquisition flexibility of the intelligent electric meter is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of smart electric meter, and in particular to a smart electric meter data scheduling method and device based on a buffer zone. Background Art

[0002] With the construction of new power systems, the low-voltage power grid, as the last mile of the grid connection load and new energy, needs to improve the intelligence level of its equipment. Therefore, smart meters are undergoing an upgrade from traditional electricity metering meters to edge smart devices. The amount and type of data of the new generation of meters will have explosive growth. The current traditional centralized meter reading system adopts a fixed reading mode and collection queue. For the new data collection method, the operation and maintenance personnel need to configure the collection concentrator based on experience, and do not support dynamic scheduling and allocation of data queues. Obviously, it is not suitable for new meters with rich edge data.

[0003] The current smart meter scheduling strategy is based on the number of accesses, which works well in the scenario where "the more frequently the data has been accessed, the more important it is and the more it should be collected the next time." However, in other application scenarios, the scheduling strategy based on the number of accesses may lead to "starvation" because the limited data buffer pool space may be occupied for a long time by several fixed data items that are always being accessed, so the number of accesses keeps growing, which results in other important data items with sudden demands cannot be directly obtained from the buffer and must be collected instantly through the concentrator every time, resulting in low efficiency. Summary of the invention

[0004] The present invention provides a smart meter data scheduling method and device based on a buffer zone, which not only realizes the real-time priority reading of important data, but also ensures the flexible rotation update of the buffer zone position to support the real-time collection demand of burst data, thereby improving the flexibility of smart meter data collection.

[0005] In order to solve the above technical problems, the present invention provides a smart meter data scheduling method based on a buffer zone, comprising:

[0006] When a buffer position rotation signal is received, the buffer position rotation is started, and in the rotation area of ​​the buffer, the rotation initial position and the rotation order are obtained according to the rotation pointer;

[0007] Determine the rotation initial position as the current position to be tested, perform rotation judgment on each buffer position in the rotation area according to the rotation sequence, and obtain a buffer replacement position;

[0008] Starting the concentrator, and using the buffer to replace the position to obtain the data to be collected;

[0009] The step of performing rotation judgment on the positions of the buffer zones in the rotation area according to the rotation sequence to obtain the buffer zone replacement position is specifically as follows:

[0010] Determine whether the access bit value of the data corresponding to the current position to be tested is 0;

[0011] If the access bit value of the data corresponding to the current position to be tested is non-0, the access bit value of the data corresponding to the current position to be tested is set to 0, and the next buffer position is determined as the current position to be tested according to the rotation sequence, and a rotation judgment is performed;

[0012] If the access bit value of the data corresponding to the current position to be tested is 0, it is determined that the current position to be tested is a buffer replacement position.

[0013] Furthermore, the triggering process of the buffer position rotation signal is specifically as follows:

[0014] When receiving the meter data acquisition signal, obtaining the data item name of each data to be collected by parsing the meter data acquisition signal;

[0015] According to the name of each data item to be collected, determine whether all the data to be collected can be obtained in the buffer; wherein the buffer includes a priority area and a rotation area;

[0016] When all the data to be collected can be obtained in the buffer, each data to be collected is obtained in the buffer according to the data item name of the data to be collected;

[0017] When there is data in the data to be collected that cannot be obtained from the buffer, determining whether there is an idle position in the buffer;

[0018] When there is an idle position in the buffer, the concentrator is started to collect the data to be collected in combination with the idle position in the buffer;

[0019] When there is no free position in the buffer, a buffer position rotation signal is sent.

[0020] Furthermore, when all the data to be collected can be obtained in the buffer, each data to be collected is obtained in the buffer according to the data item name of the data to be collected, specifically:

[0021] Obtain the corresponding data to be collected in the priority area of ​​the buffer according to the data item name of each data to be collected;

[0022] According to the data item name of each data to be collected, the corresponding data to be collected is obtained in the rotation area of ​​the buffer, and the access bit value of the data to be collected obtained in the rotation area is set to 1.

[0023] Further, when there is an idle position in the buffer, the concentrator is started to collect the data to be collected in combination with the idle position in the buffer, specifically:

[0024] Get the location information of the free position of the buffer;

[0025] Writing the position information of the free position of the buffer into the storage position corresponding to the data to be collected;

[0026] The concentrator is started to collect the data to be collected, the collected data to be collected is stored in the free position of the buffer, and the access bit value of the collected data to be collected is set to 1.

[0027] Furthermore, the priority areas of the buffer zone are specifically:

[0028] According to the preset priority data list, the concentrator is started to collect the priority data in the priority data list in real time;

[0029] The collected priority data is stored in the priority area of ​​the buffer, and the priority option of the priority data is set to 1.

[0030] Furthermore, the buffer position rotation is started, and in the rotation area of ​​the buffer, the rotation initial position and the rotation order are obtained according to the rotation pointer, specifically:

[0031] Determine whether the current buffer position rotation is the first rotation;

[0032] If the current buffer position rotation is the first rotation, the initial rotation position is generated using a random generation function;

[0033] If the current buffer position rotation is not the first rotation, the position stored in the rotation pointer is increased by 1 to serve as the initial position of the rotation; wherein the position stored in the rotation pointer is the end position of the previous rotation.

[0034] Furthermore, the starting concentrator uses the buffer to replace the position to obtain the data to be collected, specifically:

[0035] Get the position information of the buffer replacement position;

[0036] Clearing the storage location corresponding to the data at the replacement position of the buffer, and writing the location information of the replacement position of the buffer into the storage location corresponding to the data to be collected;

[0037] The buffer replacement position is utilized to start the concentrator to collect the data to be collected, and the access bit value of the data to be collected obtained in the rotation area is set to 1.

[0038] The present invention provides a smart meter data scheduling method based on a buffer. When receiving a meter data acquisition signal, the data to be collected is acquired in the priority area and the rotation area of ​​the buffer. If there is data to be collected that cannot be acquired in the buffer, the buffer idle position and the buffer replacement position are used to collect data immediately. The buffer replacement position is obtained by starting the buffer position rotation and performing a rotation judgment on each buffer position in the rotation area of ​​the buffer. The object of the rotation judgment is the access bit value of the data stored in the buffer position. The present invention realizes the advance buffering and priority acquisition of smart meter data, which can not only ensure the real-time priority reading of important data, but also find the appropriate buffer position in time to replace the old data item with the new data item when there is a new burst data demand and the buffer pool is full. The flexible rotation update of the buffer position ensures the flexible and fast acquisition needs of smart meter data.

[0039] Accordingly, the present invention provides a smart meter data scheduling device based on a buffer zone, comprising: a rotation trigger module, a rotation judgment module and a data acquisition module;

[0040] The rotation trigger module is used to start the buffer position rotation when receiving the buffer position rotation signal, and obtain the rotation initial position and rotation order according to the rotation pointer in the rotation area of ​​the buffer;

[0041] The rotation judgment module is used to determine the rotation initial position as the current position to be tested, and perform rotation judgment on each buffer position in the rotation area according to the rotation sequence to obtain a buffer replacement position;

[0042] The data acquisition module is used to start the concentrator and use the buffer to replace the position to obtain the data to be collected;

[0043] Wherein, the data acquisition module includes an access bit value judgment unit, a first judgment result unit and a second judgment result unit;

[0044] The access bit value judgment unit is used to judge whether the access bit value of the data corresponding to the current position to be tested is 0;

[0045] The first judgment result unit is used for setting the access bit value of the data corresponding to the current position to be tested to 0 if the access bit value of the data corresponding to the current position to be tested is non-0, and determining the next buffer position as the current position to be tested according to the rotation sequence, and performing a rotation judgment;

[0046] The second judgment result unit is used for determining that the current position to be tested is a buffer replacement position if the access bit value of the data corresponding to the current position to be tested is 0.

[0047] Furthermore, the triggering process of the buffer position rotation signal is specifically as follows:

[0048] When receiving the meter data acquisition signal, obtaining the data item name of each data to be collected by parsing the meter data acquisition signal;

[0049] According to the name of each data item to be collected, determine whether all the data to be collected can be obtained in the buffer; wherein the buffer includes a priority area and a rotation area;

[0050] When all the data to be collected can be obtained in the buffer, each data to be collected is obtained in the buffer according to the data item name of the data to be collected;

[0051] When there is data in the data to be collected that cannot be obtained from the buffer, determining whether there is an idle position in the buffer;

[0052] When there is an idle position in the buffer, the concentrator is started to collect the data to be collected in combination with the idle position in the buffer;

[0053] When there is no free position in the buffer, a buffer position rotation signal is sent.

[0054] Further, the rotation trigger module includes a first rotation determination unit, a first position generation unit and a second position generation unit;

[0055] The judging unit is used to judge whether the current buffer position rotation is the first rotation;

[0056] The first position generating unit is used to generate an initial rotation position using a random generation function if the current buffer position rotation is the first rotation;

[0057] The second position generating unit is used for adding 1 to the position stored in the rotation pointer as the initial position of the rotation if the current buffer position rotation is not the first rotation; wherein the position stored in the rotation pointer is the end position of the previous rotation.

[0058] The present invention provides a smart meter data scheduling device based on a buffer. Based on the organic combination of modules, when receiving a meter data acquisition signal, the data to be collected is obtained in the priority area and rotation area of ​​the buffer. If there is data to be collected that cannot be obtained in the buffer, the buffer idle position and the buffer replacement position are used to collect data in real time, wherein the buffer replacement position is obtained by starting the buffer position rotation and performing rotation judgment on each buffer position in the rotation area of ​​the buffer. The object of the rotation judgment is the access bit value of the data stored in the buffer position. The present invention realizes the advance buffering and priority acquisition of smart meter data, which can not only ensure the real-time priority reading of important data, but also find the appropriate buffer position in time to replace the old data item with the new data item when there is a new burst data demand and the buffer pool is full. Through the flexible rotation update of the buffer position, the flexible and fast acquisition needs of smart meter data are guaranteed. BRIEF DESCRIPTION OF THE DRAWINGS

[0059] Figure 1 A schematic diagram of a flow chart of an embodiment of a smart meter data scheduling method based on a buffer zone provided by the present invention;

[0060] Figure 2 A schematic structural diagram of an embodiment of a buffer zone provided by the present invention;

[0061] Figure 3 A schematic diagram of the structure of an embodiment of buffer data provided by the present invention;

[0062] Figure 4 A schematic diagram of an embodiment of a buffer zone position rotation method provided by the present invention;

[0063] Figure 5 A schematic flow chart of another embodiment of the smart meter data scheduling method based on the buffer zone provided by the present invention;

[0064] Figure 6 A schematic structural diagram of an embodiment of a smart meter data scheduling device based on a buffer zone provided by the present invention. DETAILED DESCRIPTION

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

[0066] The flowcharts shown in the accompanying drawings are only examples and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps may also be decomposed, combined or partially merged, so the actual execution order may change according to actual conditions.

[0067] Some embodiments of the present invention are described in detail below in conjunction with the accompanying drawings. In the absence of conflict, the following embodiments and features in the embodiments can be combined with each other.

[0068] Example 1

[0069] See also Figure 1 , is a flow chart of an embodiment of a smart meter data scheduling method based on a buffer zone provided by the present invention, the method includes steps 101 to 103, each step is specifically as follows:

[0070] Step 101: When a buffer position rotation signal is received, the buffer position rotation is started, and in the rotation area of ​​the buffer, the rotation initial position and the rotation sequence are obtained according to the rotation pointer.

[0071] Furthermore, in the first embodiment of the present invention, the triggering process of the buffer position rotation signal is specifically as follows:

[0072] When receiving the meter data acquisition signal, obtaining the data item name of each data to be collected by parsing the meter data acquisition signal;

[0073] According to the name of each data item to be collected, determine whether all the data to be collected can be obtained in the buffer; wherein the buffer includes a priority area and a rotation area;

[0074] When all the data to be collected can be obtained in the buffer, each data to be collected is obtained in the buffer according to the data item name of the data to be collected;

[0075] When there is data in the data to be collected that cannot be obtained from the buffer, determining whether there is an idle position in the buffer;

[0076] When there is an idle position in the buffer, the concentrator is started to collect the data to be collected in combination with the idle position in the buffer;

[0077] When there is no free position in the buffer, a buffer position rotation signal is sent.

[0078] Further, in the first embodiment of the present invention, when all the data to be collected can be obtained in the buffer, each data to be collected is obtained in the buffer according to the data item name of the data to be collected, specifically:

[0079] Obtain the corresponding data to be collected in the priority area of ​​the buffer according to the data item name of each data to be collected;

[0080] According to the data item name of each data to be collected, the corresponding data to be collected is obtained in the rotation area of ​​the buffer, and the access bit value of the data to be collected obtained in the rotation area is set to 1.

[0081] Further, in the first embodiment of the present invention, when there is an idle position in the buffer, the concentrator is started to collect the data to be collected in combination with the idle position in the buffer, specifically:

[0082] Get the location information of the free position of the buffer;

[0083] Writing the position information of the free position of the buffer into the storage position corresponding to the data to be collected;

[0084] The concentrator is started to collect the data to be collected, the collected data to be collected is stored in the free position of the buffer, and the access bit value of the collected data to be collected is set to 1.

[0085] In the first embodiment of the present invention, see Figure 2 , is a schematic diagram of a structure of an embodiment of the buffer provided by the present invention, the buffer includes a priority area and a rotation area. The priority area is reserved for data with a priority option of 1, and the rotation area is reserved for data with frequent changes in collection requirements in different application scenarios. Figure 3 , is a structural diagram of an embodiment of the buffer data provided by the present invention, the buffer data stored in the buffer contains data information of data item number, priority option, access bit and storage address.

[0086] Furthermore, in the first embodiment of the present invention, the priority areas of the buffer zone are specifically:

[0087] According to the preset priority data list, the concentrator is started to collect the priority data in the priority data list in real time;

[0088] The collected priority data is stored in the priority area of ​​the buffer, and the priority option of the priority data is set to 1.

[0089] In the first embodiment of the present invention, the collected data of the electric meter contains data whose collection rate must be ensured every day, such as electricity data. This type of data needs to be stored locally first. Therefore, this type of data is stored in the position of the priority area of ​​the data buffer. By setting the priority option of this type of data to 1, it can be associated with the hit item of the data table. Since the number of positions in the priority area is limited, and setting the priority option for data is a relatively fixed action, the priority data can be pre-set manually according to important application scenarios on a regular basis. When the priority option of the data is set to 1, the data is stored in the priority area of ​​the buffer, and the buffer position of the priority area does not participate in the rotation of the buffer position. There is another part of the collected data of the electric meter, which is not collected every day, but according to different application scenarios, there will be flexible collection requirements, and many of them are sudden data requirements, such as the subsequent data collection and analysis requirements triggered by a sudden alarm. At this time, the collected data is stored in the rotation area of ​​the buffer.

[0090] In the first embodiment of the present invention, when the master station starts a new round of meter data collection for the concentrator, the data item name of each data to be collected is obtained by parsing the meter data collection signal, and it is determined whether there is data to be collected that does not exist in the buffer, that is, it has not been collected and placed in the buffer in the last idle time buffer data advance collection. If it is determined that all data can be obtained through the buffer, the data is first obtained in the priority area according to the data item name of each data to be collected, and then the corresponding data is obtained in the rotation area. After the data is successfully obtained, the access bit values ​​of the data to be collected obtained in the rotation area are all set to 1. If it is determined that the data to be collected fails to be obtained through the buffer, it is determined whether there is an idle position in the buffer at this time. If the idle position of the buffer is not full, the concentrator is started for immediate collection, and the data to be collected that cannot be obtained in the buffer is collected, and it is placed in the idle position of the buffer, and its access bit value is set to 1. If the idle position of the buffer pool is full, a buffer position rotation signal is sent to start the data buffer position rotation.

[0091] Furthermore, in the first embodiment of the present invention, the buffer position rotation is enabled, and in the rotation area of ​​the buffer, the rotation initial position and the rotation order are obtained according to the rotation pointer, specifically:

[0092] Determine whether the current buffer position rotation is the first rotation;

[0093] If the current buffer position rotation is the first rotation, the initial rotation position is generated using a random generation function;

[0094] If the current buffer position rotation is not the first rotation, the position stored in the rotation pointer is increased by 1 to serve as the initial position of the rotation; wherein the position stored in the rotation pointer is the end position of the previous rotation.

[0095] In the first embodiment of the present invention, see Figure 4 , is a schematic diagram of an embodiment of the buffer position rotation method provided by the present invention. When the buffer position is rotated, the access bit, storage position and rotation pointer need to cooperate with each other. When the buffer position rotation signal is received, it is determined whether the current buffer position rotation is the first rotation according to the value of the rotation pointer. If the value of the rotation pointer is 0, it is determined that this rotation is the first rotation, and a numerical value is generated within the address range of the buffer rotation area through a random generation function, and the numerical value is used as the rotation initial position of this rotation. If the value of the rotation pointer is not 0, it is determined that this rotation is not the first rotation. At this time, the rotation pointer stores the end position of the previous rotation, so the value of the rotation pointer at this time is increased by 1, and the next sequential position of the end position of the previous rotation is used as the rotation initial position of this rotation.

[0096] Step 102: Determine the rotation initial position as the current position to be tested, perform rotation judgment on each buffer position in the rotation area according to the rotation sequence, and obtain a buffer replacement position.

[0097] Wherein, step 102 includes steps 201 to 203, specifically:

[0098] Step 201: Determine whether the access bit value of the data corresponding to the current position to be tested is 0.

[0099] Step 202: If the access bit value of the data corresponding to the current position to be tested is non-0, the access bit value of the data corresponding to the current position to be tested is set to 0, and the next buffer position is determined as the current position to be tested according to the rotation sequence, and a rotation judgment is performed.

[0100] Step 203: If the access bit value of the data corresponding to the current position to be tested is 0, it is determined that the current position to be tested is a buffer replacement position.

[0101] In the first embodiment of the present invention, starting from the initial rotation position, the positions in the rotation area of ​​the buffer are sequentially judged in rotation according to the rotation order. Specifically, it is judged whether the access bit value of the data stored in the current position to be tested is 0. If it is not 0, it indicates that the data at this position has just been accessed by the main station during the last round of collection, so the data at this position is not suitable for replacement, and the access bit value of the data is set to 0, and then the rotation judgment is continued for the next buffer position according to the rotation order; if the access bit value of the data stored in the current position to be tested is 0, it indicates that the data at this position has not been accessed by the main station in the last round, so the data at this position can be replaced, and this position can be determined as the buffer replacement position.

[0102] Step 103: Start the concentrator and use the buffer to replace the position to obtain the data to be collected;

[0103] Further, in the first embodiment of the present invention, the concentrator is started, and the buffer is used to replace the position to obtain the data to be collected, specifically:

[0104] Get the position information of the buffer replacement position;

[0105] Clearing the storage location corresponding to the data at the replacement position of the buffer, and writing the location information of the replacement position of the buffer into the storage location corresponding to the data to be collected;

[0106] The buffer replacement position is utilized to start the concentrator to collect the data to be collected, and the access bit value of the data to be collected obtained in the rotation area is set to 1.

[0107] In the first embodiment of the present invention, after the buffer replacement position is determined, centralized real-time collection is started, and the position information of the buffer replacement position is filled into the "storage position" of the data to be collected, and at the same time, the "storage position" of the old data stored at this position is cleared, so that the data to be collected is stored in the buffer replacement position.

[0108] As an example of the first embodiment of the present invention, see Figure 5, a flow chart of another embodiment of the smart meter data scheduling method based on the buffer provided by the present invention. When a new round of master station collection is started, it is first determined whether the new data items collected can all be obtained in the buffer. If all can be obtained, the data is obtained in the buffer, and the access position of the obtained data is 1. If there are new data items that cannot be obtained in the buffer, the buffer free position is judged. If there are free positions in the buffer, the concentrator is started for immediate collection, and the new data items are collected to the free positions of the buffer so that the master station can obtain data in the buffer. If there are no free positions in the buffer, the buffer position rotation is started. The rotation mechanism of the present invention is: the initial value of the access bit value of the data stored in the buffer rotation area is 0, and when the data item is accessed once by the master station, the access bit value of the data becomes 1; then in each new round of data collection, if there are new data items to be collected and the buffer is full, the access bit-based rotation mechanism will be started, and the rotation start position P will be obtained through the rotation pointer, wherein the rotation start position is a random position in the first round of rotation, and the position next to the end position of the previous round in the non-first round of rotation. According to the rotation start position P pointed by the rotation pointer, determine whether the access bit value of the data item at this position is 0 or 1. If it is 1, it indicates that the data has just been accessed by the master station in the previous round and is not suitable for replacement. Then the access position is set to 0, and then it continues to point to the next buffer position (P+1) in sequence, and continues until the position with the access bit value of 0 is found, indicating that the position has not been accessed by the master station in the previous round. Then the probability of being accessed in this round is relatively low, and the position can be replaced with a new data item, thereby determining the buffer replacement position, and this rotation ends. After determining the buffer replacement position, start the concentrator instant collection, collect the new data item to the buffer replacement position, so that the master station can obtain data in the buffer. Therefore, there are two steps for the master station to obtain data from the concentrator. The first step is buffer acquisition. When all new data items to be collected exist in the buffer, the master station can directly obtain them from the buffer. The second step is instant collection. When all new data items to be collected cannot be obtained from the buffer, instant collection is enabled, and the concentrator uses the idle position of the rotation area in the buffer or the buffer replacement position to immediately collect the corresponding data. After the current round of master station collection ends and the next round of master station collection begins, during this idle time, the concentrator will collect buffer data in advance to prepare for the next round of master station collection.

[0109] In summary, the first embodiment of the present invention provides a smart meter data scheduling method based on a buffer. When receiving a meter data acquisition signal, the data to be collected is obtained in the priority area and the rotation area of ​​the buffer. If there is data to be collected that cannot be obtained in the buffer, the buffer idle position and the buffer replacement position are used to collect data immediately, wherein the buffer replacement position is obtained by starting the buffer position rotation and performing a rotation judgment on each buffer position in the rotation area of ​​the buffer. The object of the rotation judgment is the access bit value of the data stored in the buffer position. The present invention realizes the advance buffering and priority acquisition of smart meter data, which can not only ensure the real-time priority reading of important data, but also find the appropriate buffer position in time to replace the old data item with the new data item when there is a new burst data demand and the buffer pool is full. Through the flexible rotation update of the buffer position, the flexible and fast acquisition needs of smart meter data are guaranteed.

[0110] Example 2

[0111] See also Figure 6 , is a schematic structural diagram of an embodiment of a smart meter data scheduling device based on a buffer zone provided by the present invention, the device includes a rotation trigger module 301, a rotation judgment module 302 and a data acquisition module 303;

[0112] The rotation trigger module 301 is used to start the buffer position rotation when receiving the buffer position rotation signal, and obtain the rotation initial position and rotation order according to the rotation pointer in the rotation area of ​​the buffer;

[0113] The rotation determination module 302 is used to determine the rotation initial position as the current position to be tested, and perform rotation determination on each buffer position in the rotation area according to the rotation sequence to obtain a buffer replacement position;

[0114] The data acquisition module 303 is used to start the concentrator and use the buffer to replace the position to obtain the data to be collected;

[0115] The rotation determination module 302 includes an access bit value determination unit 401, a first determination result unit 402 and a second determination result unit 403;

[0116] The access bit value judgment unit 401 is used to judge whether the access bit value of the data corresponding to the current position to be tested is 0;

[0117] The first judgment result unit 402 is used to set the access bit value of the data corresponding to the current position to be tested to 0 if the access bit value of the data corresponding to the current position to be tested is non-0, and determine the next buffer position as the current position to be tested according to the rotation sequence, and perform a rotation judgment;

[0118] The second judgment result unit 403 is used to determine that the current position to be tested is a buffer replacement position if the access bit value of the data corresponding to the current position to be tested is 0.

[0119] Furthermore, in the second embodiment of the present invention, the triggering process of the buffer position rotation signal is specifically as follows:

[0120] When receiving the meter data acquisition signal, obtaining the data item name of each data to be collected by parsing the meter data acquisition signal;

[0121] According to the name of each data item to be collected, determine whether all the data to be collected can be obtained in the buffer zone; wherein the buffer zone includes a priority area and a rotation area;

[0122] When all the data to be collected can be obtained in the buffer, each data to be collected is obtained in the buffer according to the data item name of the data to be collected;

[0123] When there is data in the data to be collected that cannot be obtained from the buffer, determining whether there is an idle position in the buffer;

[0124] When there is an idle position in the buffer, the concentrator is started to collect the data to be collected in combination with the idle position in the buffer;

[0125] When there is no free position in the buffer, a buffer position rotation signal is sent.

[0126] Further, in the second embodiment of the present invention, the rotation triggering module 301 includes a first rotation determining unit, a first position generating unit and a second position generating unit;

[0127] The judging unit is used to judge whether the current buffer position rotation is the first rotation;

[0128] The first position generating unit is used for generating an initial position of the rotation by using a random generation function if the current buffer position rotation is the first rotation;

[0129] The second position generating unit is used for adding 1 to the position stored in the rotation pointer as the initial position of the rotation if the current buffer position rotation is not the first rotation; wherein the position stored in the rotation pointer is the end position of the previous rotation.

[0130] Furthermore, in the second embodiment of the present invention, the concentrator is started, and the buffer is used to replace the position to obtain the data to be collected, specifically:

[0131] Get the position information of the buffer replacement position;

[0132] Clearing the storage location corresponding to the data at the replacement position of the buffer, and writing the location information of the replacement position of the buffer into the storage location corresponding to the data to be collected;

[0133] The buffer replacement position is utilized to start the concentrator to collect the data to be collected, and the access bit value of the data to be collected obtained in the rotation area is set to 1.

[0134] Further, in the second embodiment of the present invention, when all the data to be collected can be obtained in the buffer, each data to be collected is obtained in the buffer according to the data item name of the data to be collected, specifically:

[0135] Obtain the corresponding data to be collected in the priority area of ​​the buffer according to the data item name of each data to be collected;

[0136] According to the data item name of each data to be collected, the corresponding data to be collected is obtained in the rotation area of ​​the buffer, and the access bit value of the data to be collected obtained in the rotation area is set to 1.

[0137] Further, in the second embodiment of the present invention, when there is an idle position in the buffer, the concentrator is started to collect the data to be collected in combination with the idle position in the buffer, specifically:

[0138] Get the location information of the free position of the buffer;

[0139] Writing the position information of the free position of the buffer into the storage position corresponding to the data to be collected;

[0140] The concentrator is started to collect the data to be collected, the collected data to be collected is stored in the free position of the buffer, and the access bit value of the collected data to be collected is set to 1.

[0141] Furthermore, in the second embodiment of the present invention, the priority areas of the buffer zone are specifically:

[0142] According to the preset priority data list, the concentrator is started to collect the priority data in the priority data list in real time;

[0143] The collected priority data is stored in the priority area of ​​the buffer, and the priority option of the priority data is set to 1.

[0144] In summary, the second embodiment of the present invention provides a smart meter data scheduling device based on a buffer, which is based on the organic combination of modules. When receiving the meter data acquisition signal, the data to be collected is obtained in the priority area and the rotation area of ​​the buffer. If there is data to be collected that cannot be obtained in the buffer, the buffer idle position and the buffer replacement position are used to collect data immediately, wherein the buffer replacement position is obtained by starting the buffer position rotation and performing a rotation judgment on each buffer position in the rotation area of ​​the buffer, and the object of the rotation judgment is the access bit value of the data stored in the buffer position. The present invention realizes the advance buffering and priority acquisition of smart meter data, which can not only ensure the real-time priority reading of important data, but also find the appropriate buffer position in time to replace the old data item with the new data item when there is a new burst data demand and the buffer pool is full. Through the flexible rotation update of the buffer position, the flexible and fast acquisition needs of smart meter data are guaranteed.

[0145] The specific embodiments described above further illustrate the purpose, technical solutions and beneficial effects of the present invention. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the scope of protection of the present invention. It is particularly pointed out that for those skilled in the art, any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the scope of protection of the present invention.

Claims

1. A smart meter data scheduling method based on a buffer zone, characterized in that: include: When a buffer position rotation signal is received, the buffer position rotation is started, and in the rotation area of ​​the buffer, the rotation initial position and the rotation order are obtained according to the rotation pointer; Determine the rotation initial position as the current position to be tested, perform rotation judgment on each buffer position in the rotation area according to the rotation sequence, and obtain a buffer replacement position; Starting the concentrator, and using the buffer to replace the position to obtain the data to be collected; The step of performing rotation judgment on the positions of the buffer zones in the rotation area according to the rotation sequence to obtain the buffer zone replacement position is specifically as follows: Determine whether the access bit value of the data corresponding to the current position to be tested is 0; If the access bit value of the data corresponding to the current position to be tested is non-0, the access bit value of the data corresponding to the current position to be tested is set to 0, and the next buffer position is determined as the current position to be tested according to the rotation sequence, and a rotation judgment is performed; If the access bit value of the data corresponding to the current position to be tested is 0, it is determined that the current position to be tested is a buffer replacement position.

2. The buffer-based smart meter data scheduling method according to claim 1, characterized in that: The triggering process of the buffer position rotation signal is specifically as follows: When receiving the meter data acquisition signal, obtaining the data item name of each data to be collected by parsing the meter data acquisition signal; According to the name of each data item to be collected, determine whether all the data to be collected can be obtained in the buffer; wherein the buffer includes a priority area and a rotation area; When all the data to be collected can be obtained in the buffer, each data to be collected is obtained in the buffer according to the data item name of the data to be collected; When there is data in the data to be collected that cannot be obtained from the buffer, determining whether there is an idle position in the buffer; When there is an idle position in the buffer, the concentrator is started to collect the data to be collected in combination with the idle position in the buffer; When there is no free position in the buffer, a buffer position rotation signal is sent.

3. The buffer-based smart meter data scheduling method according to claim 2, characterized in that: When all the data to be collected can be obtained in the buffer, each data to be collected is obtained in the buffer according to the data item name of the data to be collected, specifically: Obtain the corresponding data to be collected in the priority area of ​​the buffer according to the data item name of each data to be collected; According to the data item name of each data to be collected, the corresponding data to be collected is obtained in the rotation area of ​​the buffer, and the access bit value of the data to be collected obtained in the rotation area is set to 1.

4. The buffer-based smart meter data scheduling method according to claim 2, characterized in that: When there is an idle position in the buffer, the concentrator is started to collect the data to be collected in combination with the idle position in the buffer, specifically: Get the location information of the free position of the buffer; Writing the position information of the free position of the buffer into the storage position corresponding to the data to be collected; The concentrator is started to collect the data to be collected, the collected data to be collected is stored in the free position of the buffer, and the access bit value of the collected data to be collected is set to 1.

5. The buffer-based smart meter data scheduling method according to claim 3 is characterized in that: The priority areas of the buffer zone are specifically: According to the preset priority data list, the concentrator is started to collect the priority data in the priority data list in real time; The collected priority data is stored in the priority area of ​​the buffer, and the priority option of the priority data is set to 1.

6. The buffer-based smart meter data scheduling method according to any one of claims 1 to 5, characterized in that: The buffer position rotation is started, and in the rotation area of ​​the buffer, the initial rotation position and the rotation order are obtained according to the rotation pointer, specifically: Determine whether the current buffer position rotation is the first rotation; If the current buffer position rotation is the first rotation, the initial rotation position is generated using a random generation function; If the current buffer position rotation is not the first rotation, the position stored in the rotation pointer is increased by 1 to serve as the initial position of the rotation; wherein the position stored in the rotation pointer is the end position of the previous rotation.

7. The buffer-based smart meter data scheduling method according to any one of claims 1 to 5, characterized in that: The starting concentrator uses the buffer to replace the position to obtain the data to be collected, specifically: Get the position information of the buffer replacement position; Clearing the storage location corresponding to the data at the replacement position of the buffer, and writing the location information of the replacement position of the buffer into the storage location corresponding to the data to be collected; The buffer replacement position is utilized to start the concentrator to collect the data to be collected, and the access bit value of the data to be collected obtained in the rotation area is set to 1.

8. A smart meter data dispatching device based on a buffer, characterized in that: include: Rotation trigger module, rotation judgment module and data acquisition module; The rotation trigger module is used to start the buffer position rotation when receiving the buffer position rotation signal, and obtain the rotation initial position and rotation order according to the rotation pointer in the rotation area of ​​the buffer; The rotation judgment module is used to determine the rotation initial position as the current position to be tested, and perform rotation judgment on each buffer position in the rotation area according to the rotation sequence to obtain a buffer replacement position; The data acquisition module is used to start the concentrator and use the buffer to replace the position to obtain the data to be collected; Wherein, the data acquisition module includes an access bit value judgment unit, a first judgment result unit and a second judgment result unit; The access bit value judgment unit is used to judge whether the access bit value of the data corresponding to the current position to be tested is 0; The first judgment result unit is used for setting the access bit value of the data corresponding to the current position to be tested to 0 if the access bit value of the data corresponding to the current position to be tested is non-0, and determining the next buffer position as the current position to be tested according to the rotation sequence, and performing a rotation judgment; The second judgment result unit is used for determining that the current position to be tested is a buffer replacement position if the access bit value of the data corresponding to the current position to be tested is 0.

9. The buffer-based smart meter data dispatching device according to claim 8, characterized in that: The triggering process of the buffer position rotation signal is specifically as follows: When receiving the meter data acquisition signal, obtaining the data item name of each data to be collected by parsing the meter data acquisition signal; According to the name of each data item to be collected, determine whether all the data to be collected can be obtained in the buffer; wherein the buffer includes a priority area and a rotation area; When all the data to be collected can be obtained in the buffer, each data to be collected is obtained in the buffer according to the data item name of the data to be collected; When there is data in the data to be collected that cannot be obtained from the buffer, determining whether there is an idle position in the buffer; When there is an idle position in the buffer, the concentrator is started to collect the data to be collected in combination with the idle position in the buffer; When there is no free position in the buffer, a buffer position rotation signal is sent.

10. The buffer-based smart meter data dispatching device according to claim 8 or claim 9, characterized in that: The rotation trigger module includes a first rotation judgment unit, a first position generation unit and a second position generation unit; The judging unit is used to judge whether the current buffer position rotation is the first rotation; The first position generating unit is used to generate an initial rotation position using a random generation function if the current buffer position rotation is the first rotation; The second position generating unit is used for adding 1 to the position stored in the rotation pointer as the initial position of the rotation if the current buffer position rotation is not the first rotation; wherein the position stored in the rotation pointer is the end position of the previous rotation.

Citation Information

Patent Citations

  • Shared buffer memory controller

    CA2254013A1

  • Centralized scheduling controller for intelligent multi buffer management and dynamic scheduting method

    CN101026540A

  • TCP stream restructuring and / or packetizing method and device

    CN101841545A

  • Method and device for circularly reading and writing in buffer zone

    CN102169420A

  • Electric energy meter power outage display processing method

    CN105301349A