CN-121078083-B - Method, system and medium for fusing missing supplementary report of terminal data report
Abstract
The invention relates to the technical field of fusion terminals, in particular to a method, a system and a medium for reporting missing supplementary reports of data of a fusion terminal, wherein the method is used for clearing historical data and reinitializing the data when the fusion terminal is started or a task scheme and a table file are changed through a reporting task initialization mechanism; and combining a two-stage report supplementing mechanism of self-report supplementing and failure linked list report supplementing, wherein the self-report supplementing stage dispatches report supplementing according to protocol timeout time, and the failure linked list stage executes periodic report supplementing, forced report supplementing and redundant data cleaning. Through the steps, the integrity and the reliability of the data reporting of the fusion terminal are effectively improved, and the accuracy of the master station in statistics of the acquisition success rate is ensured.
Inventors
- YANG SHUAI
- Qu Yijia
- GAO SHUAIHUA
- ZHENG JIANZHI
- LIU RUIHUAN
- CHEN HAO
Assignees
- 青岛乾程科技股份有限公司
Dates
- Publication Date
- 20260505
- Application Date
- 20250904
Claims (8)
- 1. The method for reporting missing supplementary report by the fusion terminal data is characterized by comprising the following steps of: Step S1, when a power-on, task scheme change or table file change is detected, initializing a reporting task is executed, and reporting data in a database and a linked list are cleared; step S2, traversing all common acquisition schemes according to the reporting task and schemes, and selecting a matching scheme to report the acquired data; Step S3, storing the reported data into a database, creating a timing task for sending the data, deleting the data in the database and deleting the timing task for sending the data if the timing task receives the reply of the master station after sending the data, and carrying out the report supplement of the timing task according to a protocol if the timing task does not receive the reply of the master station; Step S4, deleting the timing task and putting the report supplement data into a failure linked list to carry out failure linked list report supplement if the report supplement times of the timing task in the step S3 exceeds the overtime times of the 601D report scheme; The failure linked list report in the step S4 specifically comprises the following steps: S41, the data in the failure linked list follows the time period of normally reporting the data, and waits for the completion of normally reporting the data in the time period; S42, after the normal report of the data is finished, reporting the data in the failure linked list, checking whether the data in the failure linked list is subjected to the supplement at intervals of T1, and if not, forcibly carrying out the supplement once; s43, checking whether the number of data re-reporting in the failure linked list exceeds N and whether the re-reporting is successful in the time of T2, and if not, taking the data in the failure linked list as redundant data and deleting the data from the failure linked list.
- 2. The method for reporting missing supplementary report of the fusion terminal data according to claim 1, wherein the step S2 includes: s21, judging whether the current time accords with the reporting time of the reporting task; s22, traversing the common acquisition scheme, and obtaining the common acquisition scheme with the highest matching degree as a matching scheme by comparing object attribute data in the common acquisition scheme.
- 3. The method for reporting missing supplementary report of the fusion terminal data according to claim 2, wherein the step S2 further comprises: S23, when a plurality of common acquisition schemes with the same matching degree exist, selecting the common acquisition scheme with the same calling interval with the reporting task as the matching scheme; and S24, if the calling intervals of the plurality of common acquisition schemes are different, selecting the common acquisition scheme with the calling interval in a multiple relation with the reporting task calling interval as a matching scheme.
- 4. The method for reporting missing supplementary report of the fusion terminal data according to claim 1, wherein if no reply is received from the master station in step S3, reporting the timing task according to 601D, where the interval time of the timing task is 601D, and the number of reporting times is 601D.
- 5. The method for reporting missing supplementary report by fusing terminal data according to claim 2 or 3, wherein the obtaining of the matching scheme in step S22 specifically includes: s221, acquiring data item identifiers of a reporting scheme, and comparing the data item identifiers of the reporting scheme with the data item identifiers of a common acquisition scheme one by one; S222, selecting the common acquisition scheme with the same number as the data item identification of the reporting scheme and the maximum number as the matching scheme.
- 6. The system for reporting missing supplementary report by fusing terminal data is characterized by comprising the following components: the initialization module is used for executing the initialization of the reporting task when the power-on, the task scheme change or the table file change is detected, and clearing the reporting data in the database and the linked list; The matching reporting module is used for traversing all the common acquisition schemes according to reporting tasks and schemes, and selecting a matching scheme to report acquired data; The self-report supplementing module is used for storing the reported data into the database and creating a timing task for sending the data, deleting the data in the database and deleting the timing task for sending the data if the timing task receives the reply of the master station after sending the data; The failure linked list report supplementing module is used for deleting the timing task and putting report supplementing data into the failure linked list to carry out failure linked list report supplementing when the report supplementing times of the timing task in the self-report supplementing module exceed the protocol rule; The failure linked list report supplementing module comprises: the waiting unit is used for enabling the data in the failure linked list to follow the time period of normally reporting the data, and waiting for the completion of normally reporting the data in the time period; The reporting unit is used for reporting the data in the failure linked list after the normal reporting of the data is completed, checking whether the data in the failure linked list is reported or not every T1 time, and if not, forcibly reporting the data once; And the checking unit is used for checking whether the number of times of data report in the failure linked list exceeds N and whether report is successful in the time of T2, and if not, the data in the failure linked list is regarded as redundant data and is deleted from the failure linked list.
- 7. The system for reporting missing supplementary reports of fusion terminal data according to claim 6, wherein said matching reporting module comprises: the first selection unit is used for traversing the common acquisition scheme, and obtaining the common acquisition scheme with the highest matching degree as a matching scheme by comparing object attribute data in the common acquisition scheme; the second selection unit is used for taking a plurality of common acquisition schemes with the same matching degree as a matching scheme according to the common acquisition scheme with the same calling interval of the reporting task; and the third selection unit is used for selecting the common acquisition scheme with the calling interval and the reporting task calling interval being in a multiple relation as a matching scheme when the calling intervals of the plurality of common acquisition schemes are different.
- 8. A computer readable storage medium, characterized in that the computer readable storage medium has a computer program, which when executed by a processor implements a method for reporting missing supplementary reports of converged terminal data according to any one of claims 1 to 4.
Description
Method, system and medium for fusing missing supplementary report of terminal data report Technical Field The invention belongs to the technical field of fusion terminals, and particularly relates to a method, a system and a medium for reporting missing supplementary reports of fusion terminal data. Background The data reporting is used as a core function of the fusion terminal, and the stable operation of the fusion terminal directly relates to the integrity and the accuracy of power consumption data acquisition. In the normal working flow, the fusion terminal is matched with the adaptive execution rule from the meter reading scheme set by the master station according to the report task and the corresponding report scheme which are preconfigured by the master station. When the trigger time of the reporting task arrives, the fusion terminal can extract the collected ammeter data and execute data uploading operation according to the reporting scheme bound by the task. However, the complexity of the field operating environment often results in data reporting anomalies. In the meter reading and reporting process, conditions such as weak 4G signals, sudden network interruption, self-failure of the fusion terminal or power interruption and the like frequently occur, and the anomalies can directly cause data reporting loss, so that the statistical accuracy of the acquisition success rate of the fusion terminal by the master station is affected. In order to ensure the reliability of data reporting, the 22 edition acquisition terminal protocol consistency detection specification clearly specifies that a report supplementing mechanism needs to be executed according to the maximum times set by a protocol field 601D in the reporting process, and the report supplementing timeout time also follows the field configuration. Taking curve data reporting as an example, the method is conventionally configured to have a timeout time of 1 minute and a maximum number of times of report supplement of 3 times. However, uncontrollable factors still exist in practical application, namely if the master station has processing delay or faults, the master station can not respond to 3 reported messages of the fusion terminal within 3 minutes, or the fusion terminal can not receive the master station reply all the time within a 3-minute report supplementing window period due to poor quality of a communication link. The above conditions all can lead to reporting failure of ammeter data, and finally the acquisition success rate of the fusion terminal is reduced. Disclosure of Invention In order to solve the problems in the prior art, the invention provides a method for reporting missing supplementary reports by fusing terminal data, which is used for fusing terminals and comprises the following steps: Step S1, when a power-on, task scheme change or table file change is detected, initializing a reporting task is executed, and reporting data in a database and a linked list are cleared; step S2, traversing all common acquisition schemes according to the reporting task and schemes, and selecting a matching scheme to report the acquired data; Step S3, storing the reported data into a database, creating a timing task for sending the data, deleting the data in the database and deleting the timing task for sending the data if the timing task receives the reply of the master station after sending the data, and carrying out the report supplement of the timing task according to a protocol if the timing task does not receive the reply of the master station; And S4, if the number of times of the complement of the timing task exceeds the overtime number of the 601D report scheme in the step S3, deleting the timing task, and putting the complement data into a failure linked list to carry out the complement of the failure linked list. Based on the above scheme, the failure linked list report in the step S4 specifically includes the following steps: S41, the data in the failure linked list follows the time period of normally reporting the data, and waits for the completion of normally reporting the data in the time period; S42, after the normal report of the data is finished, reporting the data in the failure linked list, checking whether the data in the failure linked list is subjected to the supplement at intervals of T1, and if not, forcibly carrying out the supplement once; s43, checking whether the number of data re-reporting in the failure linked list exceeds N and whether the re-reporting is successful in the time of T2, and if not, taking the data in the failure linked list as redundant data and deleting the data from the failure linked list. Further, the step S2 includes: s21, judging whether the current time accords with the reporting time of the reporting task; s22, traversing the common acquisition scheme, and obtaining the common acquisition scheme with the highest matching degree as a matching scheme by comparing object attribute data in the c