CN112559505A - Real-time data complementary acquisition device and method, computer equipment and storage medium - Google Patents

Real-time data complementary acquisition device and method, computer equipment and storage medium Download PDF

Info

Publication number
CN112559505A
CN112559505A CN202011520476.XA CN202011520476A CN112559505A CN 112559505 A CN112559505 A CN 112559505A CN 202011520476 A CN202011520476 A CN 202011520476A CN 112559505 A CN112559505 A CN 112559505A
Authority
CN
China
Prior art keywords
real
time data
complementary
data
acquisition
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011520476.XA
Other languages
Chinese (zh)
Inventor
周云霄
丁成
尹运良
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
SHENZHEN TECHRISE ELECTRONICS CO Ltd
Original Assignee
SHENZHEN TECHRISE ELECTRONICS CO Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by SHENZHEN TECHRISE ELECTRONICS CO Ltd filed Critical SHENZHEN TECHRISE ELECTRONICS CO Ltd
Priority to CN202011520476.XA priority Critical patent/CN112559505A/en
Publication of CN112559505A publication Critical patent/CN112559505A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/21Design, administration or maintenance of databases
    • G06F16/215Improving data quality; Data cleansing, e.g. de-duplication, removing invalid entries or correcting typographical errors
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution
    • G06F16/24552Database cache management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2458Special types of queries, e.g. statistical queries, fuzzy queries or distributed queries
    • G06F16/2477Temporal data queries
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K17/00Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations
    • G06K17/0022Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations arrangements or provisions for transferring data to distant stations, e.g. from a sensing device
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/06Energy or water supply

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Business, Economics & Management (AREA)
  • Computational Linguistics (AREA)
  • Economics (AREA)
  • Health & Medical Sciences (AREA)
  • Software Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Mathematical Physics (AREA)
  • Fuzzy Systems (AREA)
  • Quality & Reliability (AREA)
  • Public Health (AREA)
  • Water Supply & Treatment (AREA)
  • Probability & Statistics with Applications (AREA)
  • Human Resources & Organizations (AREA)
  • Marketing (AREA)
  • Primary Health Care (AREA)
  • Strategic Management (AREA)
  • Tourism & Hospitality (AREA)
  • General Business, Economics & Management (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application relates to the field of network data acquisition, in particular to a real-time data complementary acquisition device, a real-time data complementary acquisition method, a computer device and a storage medium, wherein the real-time data complementary acquisition device comprises a master station, a concentrator and a data acquisition terminal, wherein the concentrator is respectively communicated with the master station and the data acquisition terminal; the main station is used for determining real-time data to be complemented and collected, generating a complementing and collecting command according to the real-time data to be complemented and collected and sending the complementing and collecting command to the concentrator; the concentrator is used for sending a complementary acquisition command to the data acquisition terminal; the data acquisition terminal is used for supplementing and acquiring real-time data according to the supplementing and acquiring command; the data acquisition terminal sends the acquired real-time data to the concentrator for caching, and the concentrator sends the received real-time data to the master station for storage. The method and the device have the effect of improving the accuracy of the real-time data.

Description

Real-time data complementary acquisition device and method, computer equipment and storage medium
Technical Field
The present application relates to the field of network data acquisition, and in particular, to a real-time data complementary acquisition apparatus, method, computer device, and storage medium.
Background
The acquisition end often needs to transmit the acquired real-time data to the processing end to process the acquired real-time data, but the real-time data may be lost or lost in the uploading process, and at this time, the data which is not uploaded or acquired needs to be acquired again, namely, complementary acquisition is carried out.
In the related technology, the real-time data which is not collected or lost is not subjected to complementary collection generally, that is, the real-time data is not updated, and the real-time data is updated when new real-time data exists next time.
With respect to the related art in the above, the inventors consider that there is a drawback that real-time data is inaccurate.
Disclosure of Invention
In order to improve the accuracy of real-time data, the application provides a real-time data complementary acquisition device, a real-time data complementary acquisition method, computer equipment and a storage medium.
In a first aspect, the present application provides a real-time data complementary acquisition apparatus, which adopts the following technical scheme:
a real-time data complementary acquisition device comprises a main station, a concentrator and a data acquisition terminal, wherein the concentrator is respectively communicated with the main station and the data acquisition terminal; wherein,
the main station is used for determining real-time data to be complementarily acquired, generating a complementary acquisition command according to the real-time data to be complementarily acquired and sending the complementary acquisition command to the concentrator;
the concentrator is used for sending a complementary acquisition command to the data acquisition terminal;
the data acquisition terminal is used for supplementing and acquiring real-time data according to the supplementing and acquiring command;
the data acquisition terminal sends the acquired real-time data to the concentrator for caching, and the concentrator sends the received real-time data to the master station for storage.
By adopting the technical scheme, the real-time data to be complementarily acquired is determined by the main station, the complementary acquisition command of the real-time data to be complementarily acquired is generated based on the real-time data to be complementarily acquired, the generated complementary acquisition command is sent to the data acquisition terminal through the concentrator, further, the data acquisition terminal performs complementary acquisition on the real-time data to be complementarily acquired, the complementary acquisition real-time data is sent to the concentrator for caching, then the data is sent to the main station through the concentrator for storage, further, the real-time data stored in the main station can be guaranteed to be the latest data, further, the latest stored data can be displayed, and the accuracy of the real-time data is improved.
Optionally, the master station includes a unique identification code generation module and a complementary acquisition protocol generation module; wherein,
the unique identification code generating module is used for generating a unique identification code of real-time data;
the complementary mining protocol generation module is used for generating a complementary mining protocol of real-time data to be complementary mined;
the complementary mining protocol comprises a complementary mining identification mechanism, the unique identification code is identified based on the complementary mining identification mechanism, if the identification is correct, a complementary mining command of real-time data is generated, and if the identification is wrong, the complementary mining command is re-identified.
By adopting the technical scheme, the unique identification code of the real-time data is generated by the unique identification code generation module, the supplement and acquisition protocol of the real-time data to be supplemented and acquired is generated by the supplement and acquisition protocol generation module, the supplement and acquisition protocol comprises a supplement and acquisition identification mechanism, the unique identification code is identified by the supplement and acquisition identification mechanism, the identification result is judged, if the supplement and acquisition command is correct, the supplement and acquisition command of the real-time data is generated, if the identification is wrong, the unique identification code is re-identified, the accuracy of the supplement and acquisition command generated by the main station is ensured, the supplement and acquisition command is sent to the data acquisition terminal through the concentrator, and the accuracy of the supplement and acquisition of the real-time data of the data acquisition terminal can be improved.
Optionally, the data acquisition terminal includes a supplementary acquisition result judgment module; wherein,
the complementary mining result judging module is used for judging whether the complementary mining of the real-time data is successful or not;
and if the complementary mining is successful, uploading the complementary mining real-time data, and if the complementary mining fails, performing the re-complementary mining on the real-time data to be subjected to the complementary mining.
By adopting the technical scheme, whether the supplement of the real-time data is successful or not is judged by the supplement and acquisition result judgment module, if the supplement and acquisition of the real-time data is successful, the supplement and acquisition real-time data is uploaded, and if the supplement and acquisition result judgment module fails, the supplement and acquisition of the real-time data to be supplemented and acquired is carried out again, so that the success rate of the supplement and acquisition of the real-time data can be improved.
Optionally, the master station further includes a data call module; wherein,
the data calling module is used for calling the real-time data cached in the concentrator under the condition of failure of re-complementing so as to cover the existing data to be complemented and collected stored in the main station.
By adopting the technical scheme, under the condition of unsuccessful re-compensation and acquisition, the cached real-time data in the concentrator is called through the data calling module, and the called cached real-time data covers the existing data to be compensated and acquired.
Optionally, the system further comprises a transmission judging module; wherein,
the transmission judging module is used for judging whether the uploading of the real-time data is successful or not;
and if the uploading is successful, the real-time data is stored in the main station, and if the uploading is failed, the real-time data is transmitted in a transparent transmission or direct transmission mode.
By adopting the technical scheme, whether the uploading of the real-time data is successful or not is judged by the transmission judging module, if the uploading is successful, the uploaded real-time data is stored in the main station, and if the uploading is failed, the real-time data is uploaded in a transparent transmission or direct transmission mode, so that the transmission of the real-time data can be ensured, and the transmission success rate of the real-time data is improved.
In a second aspect, the present application provides a method for supplementing and acquiring real-time data, which adopts the following technical scheme:
a real-time data complementary mining method comprises the following steps:
generating a unique identification code of the real-time data based on the real-time data, acquiring the real-time data based on an acquisition command of the real-time data, and caching the acquired real-time data;
determining real-time data to be subsidized based on the unique identification code of the real-time data, wherein the real-time data to be subsidized comprises real-time data which are not collected and are missing;
generating a complementary mining protocol of the real-time data to be complementarily mined based on the real-time data to be complementarily mined, wherein the complementary mining protocol comprises a complementary mining identification mechanism;
identifying the unique identification code based on a complementary acquisition identification mechanism, if the identification is correct, generating a complementary acquisition command of the real-time data to be subjected to complementary acquisition, and if the identification is wrong, re-identifying;
and executing a complementary acquisition task on the real-time data to be complementarily acquired based on the complementary acquisition command, uploading the complementary acquired real-time data if the complementary acquisition is successful, and performing re-complementary acquisition on the real-time data to be complementarily acquired if the complementary acquisition is failed.
By adopting the technical scheme, the real-time data is collected, the collected real-time data is cached and stored, the unique identification code of the real-time data is generated according to the stored real-time data, the real-time data which is not collected or is missed, namely the real-time data to be complemented and collected is determined according to the unique identification code, the complementing protocol of the real-time data to be complemented and collected is generated according to the real-time data to be complemented and collected, the complementing and collecting protocol comprises a complementing and collecting identification mechanism, the unique identification code is identified by the complementing and collecting identification mechanism, if the identification is correct, the complementing and collecting command of the real-time data to be complemented and collected is generated, if the identification is wrong, the recognition is carried out again, the accuracy of the generated complementing and collecting command can be ensured, the real-time data to be complemented and collected is complemented according to the complementing and collecting command, if the complementing and collecting is successful, the complemented and collected real-time data, if the complementary mining fails, the real-time data to be subjected to complementary mining is subjected to complementary mining again, so that the success rate of the complementary mining of the real-time data can be improved, and the display accuracy of the real-time data is ensured.
Optionally, if the re-feeding fails, a call command for the cached real-time data is generated, the cached real-time data is called based on the call command, and the cached real-time data covers the existing data to be fed.
By adopting the technical scheme, if the re-complementing is failed, the call command of the cached real-time data is generated, and then the cached real-time data is called, and the cached real-time data covers the existing data to be complemented and acquired.
Optionally, if the uploading of the supplemented real-time data fails, a transparent transmission or direct transmission command for the supplemented real-time data is generated, and the supplemented real-time data is transmitted based on the transparent transmission or direct transmission command.
By adopting the technical scheme, if the uploading of the supplemented real-time data fails, a command of transparent transmission or direct transmission of the supplemented real-time data is generated, and then the supplemented real-time data is subjected to transparent transmission or direct transmission, so that the transmission success rate of the real-time data can be improved.
In a third aspect, the present application provides a computer device, which adopts the following technical solution:
a computer device comprising a memory, a processor and a computer program stored in the memory and capable of running on the processor, the processor when loading and executing the computer program employing the method of the second aspect.
By adopting the technical scheme, the computer program is generated based on the real-time data complementary acquisition method of the second aspect and is stored in the memory so as to be loaded and executed by the processor, so that the computer equipment is manufactured according to the memory and the processing, and the use by a user is facilitated.
In a fourth aspect, the present application provides a computer-readable storage medium, which adopts the following technical solutions:
a computer-readable storage medium having stored thereon a computer program which, when loaded and executed by a processor, carries out the method of the second aspect.
By adopting the technical scheme, the computer program is generated based on the real-time data complementary acquisition method of the second aspect and is stored in the computer readable storage medium to be loaded and executed by the processor, and the computer program can be conveniently read and stored through the computer readable storage medium, so that a user can conveniently call and use the computer program.
In summary, the present application includes at least one of the following beneficial technical effects:
1. the method comprises the steps of collecting real-time data, generating a unique identification code of the real-time data, determining the real-time data to be subjected to complementary acquisition according to the unique identification code, generating a complementary acquisition protocol of the real-time data to be subjected to complementary acquisition according to the real-time data to be subjected to complementary acquisition, distinguishing the unique identification code by using the complementary acquisition protocol, generating a complementary acquisition command of the real-time data to be subjected to complementary acquisition if the real-time data to be subjected to complementary acquisition is correctly identified, re-identifying if the real-time data to be subjected to complementary acquisition is incorrectly identified, further ensuring the accuracy of the generated complementary acquisition command, performing complementary acquisition on the real-time data to be subjected to complementary acquisition according to the complementary acquisition command, uploading the complementary acquisition real-time data to be subjected to complementary acquisition if the complementary acquisition is successful, and further improving the complementary acquisition success rate of the real-time data and ensuring the display;
2. if the re-complementing is failed, calling the cached real-time data, and covering the cached real-time data with the existing data to be complemented and acquired, so that the error of the real-time data can be reduced as much as possible under the condition that the data complementing and acquiring is unsuccessful;
3. if uploading of the supplemented real-time data fails, the supplemented real-time data is transmitted transparently or directly, and therefore the transmission success rate of the real-time data can be improved.
Drawings
Fig. 1 is a first schematic diagram of a framework of a real-time data complementary acquisition device according to the present application.
Fig. 2 is a schematic diagram of a framework of the real-time data complementary acquisition device according to the present application.
Fig. 3 is a block diagram of a real-time data complementary acquisition apparatus according to the present application.
Fig. 4 is a flowchart of a method of the present application for real-time data complementary mining.
Description of reference numerals: 1. a master station; 11. a unique identification code generation module; 12. a supplementary mining protocol generation module; 13. a data calling module; 2. a concentrator; 3. a data acquisition terminal; 31. a supplementary mining result judgment module; 4. and a transmission judging module.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is further described in detail below with reference to fig. 1-4 and the embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
Along with the comprehensive online of a metering automation system, the acquisition of data completely departs from the manual acquisition era, and the acquisition efficiency is greatly improved by a remote automatic acquisition mode of metering automation, wherein the real-time data of the application takes electric power real-time data as an example, but the acquisition success rate of the electric power real-time data is limited due to a series of reasons such as planned power failure, fault power failure, network fault and the like at present, so that the display accuracy of the electric power real-time data is influenced, and therefore, the accuracy of the real-time data can be effectively improved by supplementing and acquiring the electric power real-time data.
The embodiment of the application discloses a real-time data complementary acquisition device. Referring to fig. 1, the real-time data complementary acquisition device comprises a main station 1, a concentrator 2 and a data acquisition terminal 3, the concentrator 2 is in communication with the master station 1 and the data acquisition terminal 3, respectively, and in this embodiment, the communication mode can be wired communication or wireless communication, preferably, wireless communication is adopted, the wireless communication mode can adopt any one of 5G, WIFI, Zigbee, a switch and the like, wherein, the main station 1 is used for determining the real-time data of the electric power to be compensated and collected, generating a compensation and collection command according to the real-time data of the electric power to be compensated and collected, and the complementary acquisition command is sent to the concentrator 2 in a wireless communication mode, after the concentrator 2 receives the complementary acquisition command, and the supplement and acquisition command is sent to the data acquisition terminal 3 in a wireless communication mode, and the data acquisition terminal 3 starts to supplement and acquire the real-time electric power data after receiving the supplement and acquisition command.
After the data acquisition terminal 3 acquires the electric power real-time data, the acquired electric power real-time data is transmitted to the concentrator 2 in a wireless communication mode, after the concentrator 2 receives the electric power real-time data, on one hand, the electric power real-time data are cached, on the other hand, the electric power real-time data are transmitted to the main station 1 in a wireless communication mode, and then, the electric power real-time data are stored through the main station 1, so that when the electric power real-time data are displayed externally, the stored electric power real-time data can be directly extracted.
Referring to fig. 2, in the embodiment, the master station 1 includes a unique identification code generation module 11 and a complementary acquisition protocol generation module 12, according to the real-time power data, the unique identification code of the real-time power data is generated by using the unique identification code generation module 11, the complementary acquisition protocol of the real-time power data is generated by using the complementary acquisition protocol generation module 12, the complementary acquisition protocol includes a complementary acquisition identification mechanism, the complementary acquisition identification mechanism is further used for identifying the unique identification code of the real-time power data, and an identification result is obtained, the identification result includes correct and error, further, if the identification is correct, a complementary acquisition command is generated for the real-time power data, and if the identification is incorrect, the real-time power data is re-identified.
In this embodiment, the data collecting terminal 3 may be configured as an electric meter for collecting electric power data, the unique identification code of the electric power real-time data is the measuring point number of the electric power real-time data, and the measuring point number is the code of the electric meter, for example, the code of the electric meter is set to 1-N, that is, each electric meter corresponds to one unique code, the complementary collection protocol mechanism includes the identification number of the unique code of the electric meter corresponding to the electric power real-time data to be complementary collected, the identification number adopts an identification rule, and further, the unique code of the electric meter is identified by the identification rule to obtain an identification result, and then, the identification result is judged, if the identification rule corresponds to the identified unique code of the electric meter, the identification is determined to be correct, and further, the complementary collection command is generated for the electric power real-time data, if the identification rule does not correspond to the identified unique code, and determining that the identification result is wrong, further replacing the unique codes of other electric meters, then re-identifying the replaced electric meter codes by adopting an identification rule, and if the identification result is wrong, continuing replacing the unique codes of other electric meters for identification.
Referring to fig. 2, the data acquisition terminal 3 includes a supplement and acquisition result determination module 31 for determining a supplement and acquisition result of the real-time power data, determining whether the supplement and acquisition of the real-time power data is successful, uploading the supplemented and acquired real-time power data if the supplement and acquisition is successful, and performing the re-supplement and acquisition of the real-time power data if the supplement and acquisition is failed, so as to avoid a phenomenon that the uploaded real-time power data is neutral, and preferably, performing the repeated supplement and acquisition of the real-time power data if the supplement and acquisition is failed, in this embodiment, two to three times of re-supplement and acquisition is taken as an example.
Referring to fig. 2, the master station 1 further includes a data calling module 13, and the data calling module 13 is configured to, in the event of a re-feeding failure, call the real-time power data cached in the concentrator 2 to cover the existing power data to be fed and collected stored in the master station 1, that is, in the event of a re-feeding failure occurring after two to three times of re-feeding, call the power data cached in the concentrator 2 by using the data calling module 13 of the master station 1, and cover the called power data with the existing power data to be fed and collected stored in the master station 1, that is, call the last collected real-time power data as the current real-time power data, in this process, it is ensured that the called power data and the power data to be fed and collected belong to the same code, that is, the point-to-point coverage is performed, because the last collection time is different from the present collection time by a short time, therefore, the called last electric power real-time data can be used as the current temporary electric power real-time data, and the called last electric power real-time data can be stored, so that the effectiveness of the electric power real-time data can be improved.
Referring to fig. 3, specifically, an acquisition timeout period for acquiring the power real-time data by the master station 1 is set, and the acquisition timeout period is greater than a time for updating the power real-time data by the concentrator 2, that is, the power real-time data updating time and less than two power real-time data updating times, if the time elapsed after the master station 1 last acquired the power real-time data exceeds the acquisition timeout period, the master station 1 generates a command for supplementing and acquiring the power real-time data and sends an additional acquisition command to the concentrator 2, if the missing power real-time data is not acquired or is acquired, the power real-time data is re-supplemented and an additional acquisition timeout period is set, the additional acquisition timeout period starts to be timed after the acquisition timeout period expires, and if the additional acquisition timeout period is reached before the next power real-time data updating time, the master station 1 stops sending the command for supplementing and acquiring the power real-time data to the concentrator 2 after the expiration period expires, that is, the supplementary collection of the real-time power data is stopped to ensure that the next update and upload of the real-time power data are not affected, and meanwhile, the main station 1 copies and stores the last stored real-time power data into the database to become new real-time data, namely, the new real-time data are used as temporary real-time power data.
Referring to fig. 2 and 3, the device for supplementing and acquiring real-time data further includes a transmission determination module 4, and the transmission determination module 4 is configured to determine whether uploading of the supplemented and acquired real-time power data is successful, and obtain a determination result, in this embodiment, the determination result includes success and failure, if uploading of the supplemented and acquired real-time power data is successful, the supplemented and acquired real-time power data is stored in the master station 1, and if uploading of the supplemented and acquired real-time power data is failed, the transparent transmission mode is adopted to transmit the real-time power data, that is, in the transmission process of the real-time power data, the real-time power data is not changed in any form in a wireless manner, and meanwhile, the quality of transmission of the real-time power data is ensured and is transmitted to the master station 1 intact.
Specifically, the transparent transmission is that the concentrator assists the master station to identify the complementary acquisition command sent by the master station 1 according to the identification rule, and send the result of the unique code to the corresponding data acquisition terminal 3, but does not identify and process the complementary acquisition command in the central station, that is, the complementary acquisition command is directly forwarded, the acquisition of the concentrator 2 is executed through the protocol command existing in the concentrator 2, the master station 1 sends the complementary acquisition command to the concentrator 2, and the concentrator 2 generates the command corresponding to the acquisition terminal protocol according to the protocol rule to perform acquisition, that is, the transparent transmission or the direct transmission is that the master station 1 directly processes the protocol command of the acquisition terminal, so that the concentrator 2 directly sends the command to the corresponding data acquisition terminal 3.
The implementation principle of the real-time data complementary acquisition device in the embodiment of the application is as follows: the data acquisition terminal 3 acquires power data, transmits the acquired power data to the concentrator 2 for caching, the concentrator 2 transmits the received power data to the main station 1 for storage, further, according to the power real-time data stored in the main station 1, a unique identification code of the power real-time data is generated by using a unique identification code generation module 11, further, the power real-time data to be complemented and acquired is determined according to the unique identification code, after the determination is completed, a complementary acquisition protocol of the power real-time data to be complemented and acquired is generated by using a complementary acquisition protocol generation module 12, the complementary acquisition protocol comprises an identification mechanism for identifying the unique identification code, further, the unique identification code is identified by using the identification mechanism, if the identification is successful, a complementary acquisition command of the power real-time data is generated, if the identification is failed, the identification is carried out again, the main station 1 transmits the generated complementary acquisition command to the data acquisition terminal 3 through the concentrator, furthermore, the data acquisition terminal 3 executes the supplement and acquisition task of the real-time power data, supplements and acquires the real-time power data, judges the supplement and acquisition result by the supplement and acquisition result judgment module 31, uploads the supplemented and acquired real-time power data if the supplement and acquisition is successful, recharges the real-time power data two to three times if the supplement and acquisition is failed, calls the power data cached in the concentrator 2 as the real-time power data by the data call module 13 if the supplement and acquisition is failed, covers the existing power data to be supplemented and acquired stored in the main station 1, stores the power data in the main station 1, judges the uploading result of the real-time power data by the transmission judgment module 4, stores the uploaded real-time power data in the main station 1 if the uploading is successful, transmits the supplemented and acquired real-time power data in a transparent transmission or direct transmission mode if the uploading is failed, furthermore, the electric power real-time data for the complementary mining can be stored in the main station 1.
The embodiment of the application discloses a method for supplementing and acquiring real-time data, and referring to fig. 4, the real-time data recorded in the embodiment is electric power real-time data, and specifically, the method for supplementing and acquiring the real-time data comprises the following steps:
and generating a unique identification code of the real-time data based on the real-time data, acquiring the real-time data based on an acquisition command of the real-time data, and caching the acquired real-time data.
In this embodiment, the unique identification code of the real-time power data may be the unique code of the real-time power data, and the unique code of the real-time power data may also be the unique code of the electric meter, that is, the unique codes are respectively configured for the electric meters collecting different real-time power data, each electric meter corresponds to one code, for example, 1 to N, and of course, according to actual use requirements, the unique identification code may also be set as any to-be-identified code convenient to identify.
And determining real-time data to be subsidized based on the unique identification code of the real-time data, wherein the real-time data to be subsidized comprises the real-time data which is not collected and is missing.
The electric power real-time data are inquired and analyzed according to the unique code of the electric meter, so that the electric power real-time data which are not collected and the unique code corresponding to the electric meter which lacks the electric power real-time data are obtained, and further, the electric power real-time data which are not collected and the missing electric power real-time data are determined as the electric power real-time data to be complementarily collected.
Specifically, the query analysis of the real-time power data comprises the following steps: according to the collected electric power real-time data, checking the electric power real-time data obtained last time and the electric power real-time data obtained this time, comparing and analyzing the electric power real-time data twice, if the electric power real-time data obtained last time is completely the same as the electric power real-time data obtained this time, determining that the electric power real-time data is not collected this time, if the electric power real-time data obtained this time is partially the same as the electric power real-time data obtained last time, determining that the electric power real-time data obtained this time has a defect, and further determining the electric power real-time data to be supplemented.
And generating a supplementary acquisition protocol of the real-time data to be subjected to supplementary acquisition based on the real-time data to be subjected to supplementary acquisition, wherein the supplementary acquisition protocol comprises a supplementary acquisition identification mechanism.
In the embodiment, the supplementary acquisition identification mechanism is an identification number corresponding to the unique code of the electric meter containing the electric real-time data to be supplemented, that is, the identification number can identify the corresponding unique code, and of course, according to actual use requirements, the identification mechanism can be set to any identification rule convenient for identifying the unique code.
And identifying the unique identification code based on the complementary acquisition identification mechanism, if the identification is correct, generating a complementary acquisition command of the real-time data to be subjected to complementary acquisition, and if the identification is wrong, re-identifying.
In the embodiment, the identification result comprises correct and wrong, if the identification is correct, a supplement and acquisition command of the electric power real-time data to be supplemented and acquired is generated, if the identification is wrong, the unique code of the electric power real-time data to be supplemented and acquired is re-identified, namely, the electric meters with other unique codes are replaced, the unique identification number is adopted to identify the unique code of the replaced electric meter, if the identification is successful, a supplement and acquisition command of the electric power real-time data to be supplemented and acquired is also generated, and if the identification is wrong, the identification is continuously replaced.
And executing a complementary acquisition task on the real-time data to be complementarily acquired based on the complementary acquisition command, uploading the complementary acquired real-time data if the complementary acquisition is successful, and performing re-complementary acquisition on the real-time data to be complementarily acquired if the complementary acquisition is failed.
In the embodiment, the judged supplement and mining results comprise success and failure, if the supplement and mining is successful, the supplement and mining electric power real-time data to be supplemented and mined are uploaded, if the supplement and mining is failed, the supplement and mining electric power real-time data to be supplemented and mined are re-supplemented and mined, namely, when the supplement and mining is failed, the same supplement and mining means is adopted to re-supplement and mine the electric power real-time data to be supplemented and mined.
Wherein, if the electric power real-time data to be subsidized and collected again fails, preferably, the number of times of the resupply and collection is limited, this embodiment takes two to three resupply and collection as an example, that is, if the electric power real-time data to be subsidized and collected again fails or two to three resupply and collection, then a call command for the cached electric power data is automatically generated, and based on the generated call command, the cached electric power data is called, and the called cached electric power data covers the existing electric power real-time data to be subsidized and collected, that is, the last collected electric power real-time data is called as the current electric power real-time data, in this process, it is ensured that the called electric power data and the electric power data to be subsidized and collected belong to the same code, that is, the point-to-point coverage is performed, because the last collection time is different from the current collection time, therefore, the called last electric power real-time data can be used as the current temporary electric power real-time data, and the called last electric power real-time data can be stored, so that the effectiveness of the electric power real-time data can be improved.
Specifically, an acquisition timeout time for acquiring the real-time power data is set, the span of the acquisition timeout time is larger than the updating time of the real-time power data and smaller than the updating time of two real-time power data, if the time elapsed after the last acquisition of the real-time power data exceeds the acquisition timeout time, a command for supplementing and acquiring the real-time power data is generated and sent, if the missing real-time power data is not acquired or is acquired, the real-time power data is re-supplemented, the supplementation and acquisition timeout time is set, the supplementation and acquisition timeout time starts to be timed after the acquisition timeout time is up, if the supplementation and acquisition timeout time is reached before the next updating time of the real-time power data, the supplementation and acquisition command is stopped after the time is up, namely, the supplementation and acquisition of the real-time power data is stopped, so as to ensure that the next updating and uploading of the real-time power data is not influenced, and copying and storing the last stored real-time power data in a database as new real-time data to serve as temporary real-time power data.
In this embodiment, the uploading result includes success and failure, if the uploading is successful, the uploaded electric power real-time data is stored, if the uploading is failed, the uploading mode of the electric power real-time data is changed, that is, a command for changing the uploading mode of the electric power real-time data to be subsidized is generated, based on the command for changing the uploading mode, the existing uploading mode is changed into a transparent transmission mode or a direct transmission mode, the transparent transmission mode is transparent transmission, and it should be understood by a person skilled in the art that details are omitted here, the existing uploading mode is active uploading, that is, the electric power real-time data is collected, and the collected electric power real-time data is actively uploaded.
The implementation principle of the method for supplementing and acquiring real-time data in the embodiment of the application is as follows: generating a unique identification code through the electric power real-time data, further determining the electric power real-time data to be complementarily acquired according to the unique identification code, generating an complementary acquisition protocol of the electric power real-time data to be complementarily acquired according to the electric power real-time data to be complementarily acquired, wherein the complementary acquisition protocol comprises a complementary acquisition identification mechanism, further identifying the unique identification code by using the complementary acquisition identification mechanism, if the identification is correct, generating a complementary acquisition command of the electric power real-time data to be complementarily acquired, if the identification is wrong, re-identifying the unique identification code, and according to the generated complementary acquisition command, performing complementary acquisition on the electric power real-time data to be complementarily acquired, if the complementary acquisition is successful, uploading the complementary acquired electric power real-time data, if the complementary acquisition fails, re-complementing the electric power real-time data to be complementarily acquired, and if the two to three times of re-complementary acquisition still fail, generating a calling command of the cached electric power real-time data, and then, calling the cached electric power real-time data, covering the cached electric power real-time data with the existing electric power data to be supplemented to be used as temporary electric power real-time data, if uploading of the supplemented electric power real-time data is successful, storing the uploaded electric power real-time data, and if uploading of the supplemented electric power real-time data is failed, uploading the supplemented electric power real-time data in a transparent transmission or direct transmission mode.
The embodiment of the application discloses computer equipment, which comprises a memory, a processor and a computer program which is stored in the memory and can run on the processor, wherein when the processor loads and executes the computer program, the real-time data complementary acquisition method is adopted.
The computer device may be a desktop computer, a notebook computer, or a cloud server, and the computer device includes but is not limited to a processor and a memory, for example, the computer device may further include an input/output device, a network access device, a bus, and the like.
The processor may be a Central Processing Unit (CPU), and of course, according to an actual use situation, other general processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, and the like may also be used, and the general processor may be a microprocessor or any conventional processor, and the present application does not limit the present invention.
The memory may be an internal storage unit of the computer device, for example, a hard disk or a memory of the computer device, or an external storage device of the computer device, for example, a plug-in hard disk, a Smart Memory Card (SMC), a secure digital card (SD) or a flash memory card (FC) equipped on the computer device, or a combination of the internal storage unit of the computer device and the external storage device, and the memory is used for storing a computer program and other programs and data required by the computer device, and may also be used for temporarily storing data that has been output or will be output, which is not limited in this application.
The method for supplementing and acquiring real-time data of the embodiment is stored in a memory of the computer device through the computer device, and is loaded and executed on a processor of the computer device, so that the computer device is convenient for a user to use.
The embodiment of the application discloses a computer-readable storage medium, and a computer program is stored in the computer-readable storage medium, wherein the computer program is loaded and executed by a processor, and the method for supplementing and acquiring real-time data is adopted.
The computer program may be stored in a computer readable medium, the computer program includes computer program code, the computer program code may be in a source code form, an object code form, an executable file or some intermediate form, and the like, the computer readable medium includes any entity or device capable of carrying the computer program code, a recording medium, a usb disk, a removable hard disk, a magnetic disk, an optical disk, a computer memory, a Read Only Memory (ROM), a Random Access Memory (RAM), an electrical carrier signal, a telecommunication signal, a software distribution medium, and the like, and the computer readable medium includes but is not limited to the above components.
The method for supplementing and acquiring real-time data of the embodiment is stored in the computer-readable storage medium through the computer-readable storage medium, and is loaded and executed on the processor, so that the method for supplementing and acquiring real-time data is conveniently stored and applied.
The foregoing is a preferred embodiment of the present application and is not intended to limit the scope of the application in any way, and any features disclosed in this specification (including the abstract and drawings) may be replaced by alternative features serving equivalent or similar purposes, unless expressly stated otherwise. That is, unless expressly stated otherwise, each feature is only an example of a generic series of equivalent or similar features.

Claims (10)

1. The device for supplementing and acquiring real-time data is characterized by comprising a master station (1), a concentrator (2) and a data acquisition terminal (3), wherein the concentrator (2) is respectively communicated with the master station (1) and the data acquisition terminal (3); wherein,
the main station (1) is used for determining real-time data to be complemented and collected, generating a complementing and collecting command according to the real-time data to be complemented and collected, and sending the complementing and collecting command to the concentrator (2);
the concentrator (2) is used for sending a complementary acquisition command to the data acquisition terminal (3);
the data acquisition terminal (3) is used for supplementing and acquiring real-time data according to a supplementing and acquiring command;
the data acquisition terminal (3) sends the supplemented real-time data to the concentrator (2) for caching, and the concentrator (2) sends the received real-time data to the main station (1) for storage.
2. The device for complementary mining of real-time data according to claim 1, characterized in that the master station (1) comprises a unique identification code generating module (11) and a complementary mining protocol generating module (12); wherein,
the unique identification code generating module (11) is used for generating a unique identification code of real-time data;
the complementary mining protocol generation module (12) is used for generating a complementary mining protocol of real-time data to be complementary mined;
the complementary mining protocol comprises a complementary mining identification mechanism, the unique identification code is identified based on the complementary mining identification mechanism, if the identification is correct, a complementary mining command of the real-time data to be complementary mined is generated, and if the identification is wrong, the complementary mining command is re-identified.
3. The device for complementary collection of real-time data according to claim 2, wherein the data collection terminal (3) comprises a complementary collection result judgment module (31); wherein,
the complementary mining result judging module (31) is used for judging whether the complementary mining of the real-time data is successful or not;
and if the complementary mining is successful, uploading the complementary mining real-time data, and if the complementary mining fails, performing the re-complementary mining on the real-time data to be subjected to the complementary mining.
4. The device for complementary mining of real-time data according to claim 3, characterized in that said master station (1) further comprises a data calling module (13); wherein,
the data calling module (13) is used for calling the real-time data cached in the concentrator (2) under the condition of the failure of re-complementing so as to cover the existing data to be complemented and collected stored in the main station (1).
5. The device for complementary mining of real-time data according to claim 3, characterized in that it further comprises a transmission decision module (4); wherein,
the transmission judging module (4) is used for judging whether the uploading of the real-time data is successful or not;
if the uploading is successful, the real-time data are stored in the main station (1), and if the uploading is failed, the real-time data are transmitted in a transparent transmission or direct transmission mode.
6. A method for complementary acquisition of real-time data is characterized by comprising the following steps:
generating a unique identification code of the real-time data based on the real-time data, acquiring the real-time data based on an acquisition command of the real-time data, and caching the acquired real-time data;
determining real-time data to be subsidized based on the unique identification code of the real-time data, wherein the real-time data to be subsidized comprises real-time data which are not collected and are missing;
generating a complementary mining protocol of the real-time data to be complementarily mined based on the real-time data to be complementarily mined, wherein the complementary mining protocol comprises a complementary mining identification mechanism;
identifying the unique identification code based on a complementary acquisition identification mechanism, if the identification is correct, generating a complementary acquisition command of the real-time data to be subjected to complementary acquisition, and if the identification is wrong, re-identifying;
and executing a complementary acquisition task on the real-time data to be complementarily acquired based on the complementary acquisition command, uploading the complementary acquired real-time data if the complementary acquisition is successful, and performing re-complementary acquisition on the real-time data to be complementarily acquired if the complementary acquisition is failed.
7. The method according to claim 6, wherein if re-feeding fails, a call command for the cached real-time data is generated, the cached real-time data is called based on the call command, and the cached real-time data is used to cover the existing data to be fed.
8. The method according to claim 6, wherein if the uploading of the supplemented real-time data fails, a transparent transmission or direct transmission command for the supplemented real-time data is generated, and the supplemented real-time data is transmitted based on the transparent transmission or direct transmission command.
9. A computer arrangement comprising a memory, a processor and a computer program stored in the memory and being executable on the processor, characterized in that the method of any of claims 6-8 is used when the processor loads and executes the computer program.
10. A computer-readable storage medium, in which a computer program is stored, which, when being loaded and executed by a processor, carries out the method of any one of claims 6 to 8.
CN202011520476.XA 2020-12-21 2020-12-21 Real-time data complementary acquisition device and method, computer equipment and storage medium Pending CN112559505A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011520476.XA CN112559505A (en) 2020-12-21 2020-12-21 Real-time data complementary acquisition device and method, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011520476.XA CN112559505A (en) 2020-12-21 2020-12-21 Real-time data complementary acquisition device and method, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112559505A true CN112559505A (en) 2021-03-26

Family

ID=75030681

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011520476.XA Pending CN112559505A (en) 2020-12-21 2020-12-21 Real-time data complementary acquisition device and method, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112559505A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113656388A (en) * 2021-08-12 2021-11-16 全球能源互联网研究院有限公司 Multi-source data processing system and method
CN113704341A (en) * 2021-08-30 2021-11-26 远景智能国际私人投资有限公司 Data acquisition system and method
CN115442678A (en) * 2022-08-16 2022-12-06 成都长城开发科技股份有限公司 Meter equipment data acquisition method based on concentrator

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110489407A (en) * 2019-07-29 2019-11-22 南方电网数字电网研究院有限公司 Data filling mining method, apparatus, computer equipment and storage medium
KR20190140535A (en) * 2018-05-31 2019-12-20 한전케이디엔주식회사 Power system for acquisition, storage and analysis of real-time power data
CN110765166A (en) * 2019-10-23 2020-02-07 山东浪潮通软信息科技有限公司 Method, device and medium for managing data
CN111131378A (en) * 2019-10-31 2020-05-08 国电南瑞科技股份有限公司 Method and system for supplementing and acquiring real-time data after communication recovery
CN111209271A (en) * 2019-12-25 2020-05-29 深圳供电局有限公司 Electric power data complementary acquisition method and device, computer equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20190140535A (en) * 2018-05-31 2019-12-20 한전케이디엔주식회사 Power system for acquisition, storage and analysis of real-time power data
CN110489407A (en) * 2019-07-29 2019-11-22 南方电网数字电网研究院有限公司 Data filling mining method, apparatus, computer equipment and storage medium
CN110765166A (en) * 2019-10-23 2020-02-07 山东浪潮通软信息科技有限公司 Method, device and medium for managing data
CN111131378A (en) * 2019-10-31 2020-05-08 国电南瑞科技股份有限公司 Method and system for supplementing and acquiring real-time data after communication recovery
CN111209271A (en) * 2019-12-25 2020-05-29 深圳供电局有限公司 Electric power data complementary acquisition method and device, computer equipment and storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113656388A (en) * 2021-08-12 2021-11-16 全球能源互联网研究院有限公司 Multi-source data processing system and method
CN113704341A (en) * 2021-08-30 2021-11-26 远景智能国际私人投资有限公司 Data acquisition system and method
CN115442678A (en) * 2022-08-16 2022-12-06 成都长城开发科技股份有限公司 Meter equipment data acquisition method based on concentrator

Similar Documents

Publication Publication Date Title
CN112559505A (en) Real-time data complementary acquisition device and method, computer equipment and storage medium
US9916331B2 (en) Method and device for automatically processing static test data of rail transit vehicle
CN107179971B (en) Automatic coding method and system for CAN bus fault processing
CN106326116B (en) The method and apparatus of product test
CN105468507B (en) Branch standard reaching detection method and device
CN107704365B (en) Monitoring data reporting method and device for mobile terminal hybrid application
CN111651358B (en) Method for generating test case, software test method, device and server
CN110906507A (en) Air conditioner fault processing method and device
CN106909615B (en) Method and device for verifying data information consistency between master station and substation
CN115345444A (en) Information tracing method and device based on carrier
CN112637888B (en) Coverage hole area identification method, device, equipment and readable storage medium
CN106291159B (en) Intelligent acceptance device and acceptance method for main station side power distribution automatic signals
CN109508204B (en) Front-end code quality detection method and device
CN107229567A (en) A kind of IPMI firmwares automatization test system
CN116541277A (en) Interface testing method, device, equipment and medium
CN116010204A (en) Program memory overflow early warning method and related device
CN115293652A (en) Product line testing method and system
CN111159988B (en) Model processing method, device, computer equipment and storage medium
CN113626302B (en) Information processing method, device and equipment for hardware in loop test
CN117491960B (en) Radar product detection method, device, equipment and medium
CN113641576B (en) Database testing method and device and terminal equipment
CN112637355B (en) Multi-concurrency single-channel based wireless data processing method, device, equipment and medium
CN108108176B (en) Redundancy target machine software upgrading method based on Android system
CN110602057B (en) Server login approval method and device, equipment and storage medium
CN116317097A (en) Power grid fault analysis system and method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination