Method for automatically and complementarily reading historical data by concentrator
By generating virtual replication tasks and schemes in the concentrator, prioritize the daily frozen and sub -frozen replenishment tasks, and screen and report the data when the collection is successfully collected. The problem realizes the automatic replication and stability improvement of the data.
Patent Information
- Application Number
- CN202411766710.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-04
- Publication Date
- 2025-01-28
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
In the prior art, the collection of electricity meter data by the concentrator under abnormal conditions (such as carrier abnormality, 485 communication abnormality, concentrator abnormality, power outage, etc.), resulting in incomplete data, and the reprint task plan is written in the database. , unable to meet the needs of on-site changes.
Provide a method of automatic replenishment of historical data. Through the initialization of virtual replenishment tasks and schemes and the steps of data replication and reporting, it generates virtual supplementary tasks and solutions. The data is screened and reported to the data when the collection is successfully collected.
In the case of the concentrator collection abnormality, to maximize the data integrity, reduce the probability of errors, improve stability, and dynamically adjust the replenishment task scheme to meet the demand on the spot.
Smart Images

Figure CN119383492A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of supplementary copying, and in particular to a method for automatically supplementary copying historical data by a concentrator. Background Art
[0002] The concentrator is the central management and control device of the remote centralized meter reading system. It is responsible for functions such as regular reading of terminal data, system command transmission, data communication, network management, event recording, and horizontal transmission of data. Meter reading is the most important part of the concentrator's work. The concentrator will collect meter data according to the meter reading tasks and meter reading plans configured by the master station. When the execution time of the meter reading task arrives, the concentrator will execute the meter reading plan corresponding to the meter reading task. On site, a concentrator usually hangs up to 1,000 meters, usually consisting of a total meter (485 meter) and household meters. The master station will issue different collection tasks for different meters (485 meter / single-phase meter / three-phase meter), including daily freezing, hourly freezing, and minute freezing tasks. In the case of abnormal collection, such as abnormal carrier, abnormal 485 communication, abnormal concentrator, power outage, etc., the concentrator will lack data for the meter collection.
[0003] In the prior art, the supplementary copying task is described in the "Object-oriented Electricity Usage Information Data Exchange Protocol".
[0004] Among them, the supplementary copying task is described in the 6015 general collection plan: Attribute 2 (normal collection scheme) ∷=structure { Scheme number unsigned, Storage depth long-unsigned, Collection method structure { Collection type unsigned, Collection contentData }, Select array CSD for the record column. Meter set MS, Storage time stamp selection enum { undefined (0), Task start time (1), Relative to 0:00 of the day (2), Compared to 23:59 (3) of the previous day, Relative to 0:00 of the previous day (4), Relative to 0:00 on the 1st of the month (5), Data freeze time stamp (6), Relative to the end of the previous month 23:59 (7) } } The data format of the collection method is as follows:
[0005] The definitions of time interval and number of supplementary copies are as follows: RetryMetering ∷= structure { Data time stamp interval TI, Supplementary copy cycle (last N) long-unsigned }.
[0006] The configuration of the collection task is described in the 6013 task configuration unit: Property 2 (task configuration unit) ∷=structure { Task ID unsigned, Execution time interval TI, Solution type enum { Normal collection scheme (1), Event collection scheme (2), Transparency plan (3), Reporting plan (4), Script solution (5), encryption solution (6) }, Scheme number unsigned, Start time date_time_s, End time date_time_s, Delay TI, Execution priority unsigned, Status enum {normal (1), disabled (2)}, Before the task starts, the script id is long-unsigned. After the task is completed, the script id is long-unsigned. Task runtime structure } When the solution type is script, the solution number is the script id.
[0007] Task running time: structrue { Type enum { Close before opening (0), Front open and back closed (1), Front closed and back closed (2), Front opening and rear opening (3) }, Time table array time period } Time period ∷=structure { start hour unsigned, Starting minute unsigned, End hour unsigned, End minute unsigned }.
[0008] Most of the existing technologies hard-code the supplementary copying task plan into the database, and then load it after each startup. When the task plan is changed, it cannot meet the on-site requirements, or special processing is required when supplementary copying is required, which is not in accordance with the protocol and is prone to errors. Summary of the invention
[0009] The present invention aims to solve the above problems and provides a method for automatically copying historical data by a concentrator, thereby solving the above technical problems.
[0010] A method for automatically copying historical data by a concentrator comprises the following steps: Step S1: Initialization of virtual copying tasks and plans; Step S2: Supplementary copying and reporting of data.
[0011] Furthermore, the step S1 includes the following steps: Step S11: determine whether the current task is to copy and read according to the frozen time mark; Step S12: Generate a supplementary copy task for the current task and initialize a virtual supplementary copy task; Step S13: generating a supplementary copying plan for the plan corresponding to the current supplementary copying task, and initializing a virtual supplementary copying plan.
[0012] Furthermore, the step S11 initializes the supplementary copying task when the concentrator is powered on or when the concentrator detects a change in the task plan.
[0013] Furthermore, the step S12 includes the following steps: Step S121: patrol each task of 485 and carrier port; Step S122: Detect whether the task is daily freezing and collect according to the minute freezing collected at the collection and storage time scale; Step S123: when it is detected that the task is a daily freeze and the acquisition is performed according to the minute freeze acquired at the acquisition storage time scale, the task is generated into a virtual supplementary copying task.
[0014] Furthermore, the parameters of the virtual supplementary copying task are set as follows: Make-up copy task number: set a task number that does not exist in the tasks sent by the master station as the task number that needs to be made-up copy; Task execution interval: set to 1 day / time, the daily freeze and curve supplementary copying tasks are reinitialized at 0:00 every day, and the time range of the required supplementary copying data is calculated together with the supplementary copying plan; Supplementary plan number: set a plan number that does not exist in the plan issued by the master station as the plan number that needs to be supplemented; Task delay: Set the delay to 0; Task priority: daily freeze is 254, minute freeze is 255. The priority of the make-up copy task is lower than that of the normal task. When executing the make-up copy task, daily freeze is executed first, and then minute freeze make-up copy is executed; Other parameters: The same as the parameters of the task that needs to be copied.
[0015] Further, step S13 includes: for the generated virtual supplementary copying task, the concentrator generates a virtual supplementary copying plan for the plan corresponding to the original task corresponding to the virtual task, and the parameters are set as follows: Plan number: the supplementary copying plan number defined when the supplementary copying task is initialized; Collection type: defined as 4 (supplementary copy); Collection content: The time interval of the supplementary copy data is set as the execution interval of the tasks that need to be supplemented, and the supplementary copy cycle is the number of supplementary copies made according to the supplementary copy data execution interval on the previous day; Other parameters: The same as those of the solution that needs to be copied.
[0016] Furthermore, step S14 includes: the generated supplementary copying task and supplementary copying plan are stored in the system memory, and are reinitialized each time the system is powered on or the task plan is changed.
[0017] Furthermore, the step S2 comprises the following steps: Step S21: The concentrator reads the daily freeze and curve tasks configured by the master station Step S22: After the concentrator completes the normal task, it executes the virtual copying task. Step S23: reporting the data collected by the virtual supplementary copying task.
[0018] Furthermore, in step S21, the concentrator performs meter reading tasks according to the State Grid's "Object-oriented Electricity Information Data Exchange Protocol", performs daily freezing and minute freezing of reading data according to task priorities, and collects data from meters belonging to each task to the concentrator; Step S22: After all the tasks sent by the master station are completed, the concentrator executes the virtual supplementary copying task generated when the supplementary copying task is initialized, and supplements the daily frozen data of the past three days and the curve data of the past day; Step S23: the concentrator screens the data according to the acquisition success time stamp, and reports the supplementary meter data to the master station.
[0019] The present invention has the following advantages: the virtual supplementary copying task in the present invention is generated in full accordance with the State Grid specification "Object-oriented Power Information Data Exchange Protocol", and will not run until all the tasks sent by the master station to the concentrator are completed. The virtual task will only be executed when it is detected that the concentrator has idle time, and the data will be supplemented and actively reported to the master station. In the case of abnormal collection in the concentrator, the integrity of the data is guaranteed to the maximum extent, the probability of error is reduced, and the stability is improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only one embodiment of the present invention, and for ordinary technicians in this field, other implementation drawings can be derived from the provided drawings without creative work.
[0021] Figure 1 : Schematic diagram of step S1; Figure 2 : Schematic diagram of step S2. DETAILED DESCRIPTION
[0022] The present invention will be further described below in conjunction with the accompanying drawings and examples: Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and cannot be understood as limiting the present invention.
[0023] In the description of the present invention, it should be noted that, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be directly connected or indirectly connected through an intermediate medium. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0024] In the description of the present invention, it should be understood that the terms "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside" and "outside" etc., indicating orientations or positional relationships, are based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the present invention. like Figure 1 and Figure 2 As shown, a method for automatically copying historical data by a concentrator includes the following steps: Step S1: Initialization of virtual copying tasks and plans; Step S2: Supplementary copying and reporting of data.
[0025] Furthermore, the step S1 includes the following steps: Step S11: determine whether the current task is to copy and read according to the frozen time mark; Step S12: Generate a supplementary copy task for the current task and initialize a virtual supplementary copy task; Step S13: generating a supplementary copying plan for the plan corresponding to the current supplementary copying task, and initializing a virtual supplementary copying plan.
[0026] Furthermore, the step S11 initializes the supplementary copying task when the concentrator is powered on or when the concentrator detects a change in the task plan.
[0027] Furthermore, the step S12 includes the following steps: Step S121: patrol each task of 485 and carrier port; Step S122: Detect whether the task is daily freezing and collect according to the minute freezing collected at the collection and storage time scale; Step S123: when it is detected that the task is a daily freeze and the acquisition is performed according to the minute freeze acquired at the acquisition storage time scale, the task is generated into a virtual supplementary copying task.
[0028] Furthermore, the parameters of the virtual supplementary copying task are set as follows: Make-up copy task number: set a task number that does not exist in the tasks sent by the master station as the task number that needs to be made-up copy; Task execution interval: set to 1 day / time, the daily freeze and curve supplementary copying tasks are reinitialized at 0:00 every day, and the time range of the required supplementary copying data is calculated together with the supplementary copying plan; Supplementary plan number: set a plan number that does not exist in the plan issued by the master station as the plan number that needs to be supplemented; Task delay: Set the delay to 0; Task priority: daily freeze is 254, minute freeze is 255. The priority of the make-up copy task is lower than that of the normal task. When executing the make-up copy task, daily freeze is executed first, and then minute freeze make-up copy is executed; Other parameters: The same as the parameters of the task that needs to be copied.
[0029] Further, step S13 includes: for the generated virtual supplementary copying task, the concentrator generates a virtual supplementary copying plan for the plan corresponding to the original task corresponding to the virtual task, and the parameters are set as follows: Plan number: the supplementary copying plan number defined when the supplementary copying task is initialized; Collection type: defined as 4 (supplementary copy); Among them, the above 4 is the collection type in the 6015 general collection scheme in the "Object-oriented Electricity Information Data Exchange Protocol", as shown in the following table: The data format of the collection method is as follows:
[0030] Collection content: The time interval of the supplementary copy data is set as the execution interval of the tasks that need to be supplemented, and the supplementary copy cycle is the number of supplementary copies made according to the supplementary copy data execution interval on the previous day; Other parameters: The same as those of the solution that needs to be copied.
[0031] Further, step S14 includes: the generated supplementary copying task and supplementary copying plan are stored in the system memory, and will be reinitialized each time the power is turned on and the task plan is changed. They will not be stored in the database together with the task plan issued by the master station. Therefore, the master station will not call back the virtual supplementary copying task plan when calling the task plan.
[0032] Furthermore, the step S2 comprises the following steps: Step S21: The concentrator reads the daily freeze and curve tasks configured by the master station Step S22: After the concentrator completes the normal task, it executes the virtual copying task. Step S23: reporting the data collected by the virtual supplementary copying task.
[0033] Further, Step S21: The concentrator performs meter reading tasks according to the State Grid's "Object-oriented Electricity Information Data Exchange Protocol", performs daily freezing and minute freezing of reading data according to task priorities, and collects data from meters belonging to each task to the concentrator; Step S22: After all the tasks sent by the master station are completed, the concentrator executes the virtual supplementary reading task generated when the supplementary reading task is initialized, and performs supplementary reading on the daily frozen data of the past 3 days and the curve data of the past 1 day; in the State Grid protocol, the priority is 1-255, and 1 is defined as the highest priority and 255 is the lowest priority. Since the priority of the daily frozen supplementary reading task is 254 and the priority of the minute frozen supplementary reading task is 255, the concentrator will give priority to the meter reading task sent by the master station. Only when all the tasks sent by the master station are completed, the concentrator will execute the virtual supplementary reading task generated when the supplementary reading task is initialized, and perform supplementary reading on the daily frozen data of the past 3 days and the curve data of the past 1 day.
[0034] Step S23: When performing the supplementary meter reading task, the concentrator screens the data according to the successful collection time stamp, and reports the supplementary meter data to the master station.
[0035] The present invention realizes automatic supplementary copying of missing data when the concentrator is abnormal in data collection, such as abnormal carrier, abnormal 485 communication, abnormal concentrator, power outage, etc. The data of the last 3 days are supplemented for daily freezing, and the data of the last day are supplemented for curve. After the data is supplemented, the concentrator will report the data to the main station according to the successful data collection time stamp.
[0036] The present invention is described above by way of examples, but the present invention is not limited to the above specific embodiments, and any changes or modifications made based on the present invention belong to the scope of protection claimed by the present invention.
Claims
1. A method for automatically copying historical data by a concentrator, characterized in that: The following steps are involved: Step S1: Initialization of virtual copying tasks and plans; Step S2: Supplementary copying and reporting of data.
2. The method for automatically copying historical data by a concentrator according to claim 1, characterized in that: The step S1 comprises the following steps: Step S11: determine whether the current task is to copy and read according to the frozen time mark; Step S12: Generate a supplementary copy task for the current task and initialize a virtual supplementary copy task; Step S13: generating a supplementary copying plan for the plan corresponding to the current supplementary copying task, and initializing a virtual supplementary copying plan.
3. The method for automatically copying historical data by a concentrator according to claim 2, characterized in that: The step S11 initializes the supplementary copying task when the concentrator is turned on or when the concentrator detects a change in the task plan.
4. The method for automatically copying historical data by a concentrator according to claim 2, characterized in that: The step S12 comprises the following steps: Step S121: patrol each task of 485 and carrier port; Step S122: Detect whether the task is daily freezing and collect according to the minute freezing collected at the collection and storage time scale; Step S123: when it is detected that the task is a daily freeze and the acquisition is performed according to the minute freeze acquired at the acquisition storage time scale, the task is generated into a virtual supplementary copying task.
5. The method for automatically copying historical data by a concentrator according to claim 4, characterized in that: The parameters of the virtual copying task are set as follows: Make-up copy task number: set a task number that does not exist in the tasks sent by the master station as the task number that needs to be made-up copy; Task execution interval: set to 1 day / time, the daily freeze and curve supplementary copying tasks are reinitialized at 0:00 every day, and the time range of the required supplementary copying data is calculated together with the supplementary copying plan; Supplementary plan number: set a plan number that does not exist in the plan issued by the master station as the plan number that needs to be supplemented; Task delay: Set the delay to 0; Task priority: daily freeze is 254, minute freeze is 255. The priority of the make-up copy task is lower than that of the normal task. When executing the make-up copy task, daily freeze is executed first, and then minute freeze make-up copy is executed; Other parameters: The same as the parameters of the task that needs to be copied.
6. The method for automatically copying historical data by a concentrator according to claim 2, characterized in that: Step S13 includes: for the generated virtual supplementary copying task, the concentrator generates a virtual supplementary copying plan for the plan corresponding to the original task corresponding to the virtual task, and the parameters are set as follows: Plan number: the supplementary copying plan number defined when the supplementary copying task is initialized; Collection type: defined as 4 (supplementary copy); Collection content: The time interval of the supplementary copy data is set as the execution interval of the tasks that need to be supplemented, and the supplementary copy cycle is the number of supplementary copies made according to the supplementary copy data execution interval on the previous day; Other parameters: The same as those of the solution that needs to be copied.
7. The method for automatically copying historical data by a concentrator according to claim 2, characterized in that: Step S14 includes: the generated supplementary copying task and supplementary copying plan are stored in the system memory, and are reinitialized each time the system is powered on or the task plan is changed.
8. The method for automatically copying historical data by a concentrator according to claim 1, characterized in that: The step S2 comprises the following steps: Step S21: The concentrator reads the daily freeze and curve tasks configured by the master station Step S22: After the concentrator completes the normal task, it executes the virtual copying task. Step S23: reporting the data collected by the virtual supplementary copying task.
9. The method for automatically copying historical data by a concentrator according to claim 8, characterized in that: Step S21: The concentrator performs meter reading tasks according to the State Grid's "Object-oriented Electricity Information Data Exchange Protocol", performs daily freezing and minute freezing of reading data according to task priorities, and collects data from meters belonging to each task to the concentrator; Step S22: After all the tasks sent by the master station are completed, the concentrator executes the virtual supplementary copying task generated when the supplementary copying task is initialized, and supplements the daily frozen data of the past three days and the curve data of the past day; Step S23: the concentrator screens the data according to the acquisition success time stamp, and reports the supplementary meter data to the master station.
Citation Information
Patent Citations
Internet of things gas meter reading data supplementing method
CN109682436A
Complementary reading acquisition scheme execution method of concentrator
CN116567450A
Real-time remote meter reading method and apparatus
WO2022114319A1
Cited By
Method and system for supplementing missing report of data report of fusion terminal, and medium
CN121078083A
Intelligent fusion terminal reporting and supplementary reporting optimization method, terminal and medium
CN122316952A
A method for optimizing reporting and supplementary reporting by intelligent fusion terminals, the terminal and the medium
CN122316952B