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 PDFInfo
- 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
- data
- time
- complementary
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 35
- 230000000295 complement effect Effects 0.000 title claims 35
- 238000013480 data collection Methods 0.000 claims abstract description 12
- 238000005065 mining Methods 0.000 claims description 55
- 230000005540 biological transmission Effects 0.000 claims description 33
- 238000004590 computer program Methods 0.000 claims description 19
- 230000009365 direct transmission Effects 0.000 claims description 13
- 230000001502 supplementing effect Effects 0.000 claims 3
- 238000004891 communication Methods 0.000 abstract description 9
- 230000003139 buffering effect Effects 0.000 abstract description 4
- 230000000694 effects Effects 0.000 abstract description 2
- 238000005070 sampling Methods 0.000 description 14
- 230000005611 electricity Effects 0.000 description 4
- 238000012545 processing Methods 0.000 description 4
- 239000013589 supplement Substances 0.000 description 4
- 238000010586 diagram Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 2
- 238000005259 measurement Methods 0.000 description 2
- 238000011084 recovery Methods 0.000 description 2
- 238000004458 analytical method Methods 0.000 description 1
- 238000003491 array Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000012790 confirmation Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/21—Design, administration or maintenance of databases
- G06F16/215—Improving data quality; Data cleansing, e.g. de-duplication, removing invalid entries or correcting typographical errors
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/24—Querying
- G06F16/245—Query processing
- G06F16/2455—Query execution
- G06F16/24552—Database cache management
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/24—Querying
- G06F16/245—Query processing
- G06F16/2458—Special types of queries, e.g. statistical queries, fuzzy queries or distributed queries
- G06F16/2477—Temporal data queries
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K17/00—Methods 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/0022—Methods 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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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/00—Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
- G06Q50/06—Energy 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 present application relates to the field of network data collection, in particular to a real-time data supplementary collection device, method, computer equipment and storage medium, which include a main station, a concentrator and a data acquisition terminal, the concentrator is respectively connected with the main station and the main station and the data acquisition terminal. Data acquisition terminal communication; wherein, the master station is used to determine the real-time data to be supplemented, generate supplementary acquisition commands according to the real-time data to be supplemented, and send the supplementary acquisition commands to the concentrator; the concentrator is used to send The data acquisition terminal sends a supplementary acquisition command; the data acquisition terminal is used for supplementary acquisition of real-time data according to the supplementary acquisition command; wherein, the data acquisition terminal sends the supplementary acquisition real-time data to the concentrator for buffering, and the concentrator will receive The real-time data is sent to the master station for storage. The present application has the effect of improving the accuracy of real-time data.
Description
技术领域technical field
本申请涉及网络数据采集的领域,尤其是涉及一种实时数据补采装置、方法、计算机设备及存储介质。The present application relates to the field of network data collection, in particular to a real-time data supplementary collection device, method, computer equipment and storage medium.
背景技术Background technique
采集端往往需要将所采集的实时数据传送给处理端,以对采集的实时数据进行处理,但是,实时数据在上传过程中有可能会发生丢失或遗失的问题,这时就需要对没有上传或采集的数据进行再次采集,即进行补采。The collection end often needs to transmit the collected real-time data to the processing end to process the collected real-time data. However, the real-time data may be lost or lost during the uploading process. The collected data is collected again, that is, supplementary collection.
相关技术对未采集到的或缺失的实时数据通常不进行补采,也即,不更新实时数据,等下一次有新实时数据时再更新,这种实时数据采集或更新方式对场景实时数据要求不高时影响不大,但是,对于实时数据要求准确有效的场景则使用效果不好。Relevant technologies usually do not perform supplementary collection of uncollected or missing real-time data, that is, do not update real-time data, and update it when new real-time data is available next time. This real-time data collection or update method requires real-time data of the scene. When it is not high, it has little impact, but it is not effective for scenarios that require accurate and effective real-time data.
针对上述中的相关技术,发明人认为存在实时数据不准确的缺陷。Regarding the above-mentioned related technologies, the inventor believes that there is a defect of inaccurate real-time data.
发明内容SUMMARY OF THE INVENTION
为了提升实时数据的准确性,本申请提供了一种实时数据补采装置、方法、计算机设备及存储介质。In order to improve the accuracy of real-time data, the present application provides a real-time data supplementary collection device, method, computer equipment and storage medium.
第一方面,本申请提供的一种实时数据的补采装置,采用如下的技术方案:The first aspect, a kind of real-time data supplementary mining device provided by this application adopts the following technical scheme:
一种实时数据的补采装置,包括主站、集中器及数据采集终端,所述集中器分别与主站及数据采集终端通信;其中,A real-time data supplementary acquisition device, comprising a main station, a concentrator and a data acquisition terminal, wherein the concentrator communicates with the main station and the data acquisition terminal respectively; wherein,
所述主站用于确定待补采的实时数据,并根据待补采的实时数据生成补采命令,并将补采命令发送至集中器;The master station is used to determine the real-time data to be supplemented, and to generate a supplementary acquisition order according to the real-time data to be supplemented, and send the supplementary acquisition order to the concentrator;
所述集中器用于向数据采集终端发送补采命令;The concentrator is used to send a supplementary acquisition command to the data acquisition terminal;
所述数据采集终端用于根据补采命令补采实时数据;The data acquisition terminal is used for supplementary acquisition of real-time data according to supplementary acquisition commands;
其中,所述数据采集终端将补采的实时数据发送至集中器进行缓存,所述集中器将接收的实时数据发送至主站进行存储。Wherein, the data collection terminal sends the real-time data of supplementary collection to the concentrator for buffering, and the concentrator sends the received real-time data to the main station for storage.
通过采用上述技术方案,通过主站确定待补采的实时数据,并基于待补采的实时数据,生成对待补采的实时数据的补采命令,并将生成的补采命令通过集中器发送至数据采集终端,进而,数据采集终端对待补采的实时数据进行补采,并将补采的实时数据发送至集中器进行缓存,然后,通过集中器再发送至主站进行存储,进而,能够保证主站内存储的实时数据为最新数据,从而,能够展示存储的最新数据,以提升实时数据的准确性。By adopting the above technical solution, the master station determines the real-time data to be supplemented, and based on the real-time data to be supplemented, generates a supplementary acquisition command for the real-time data to be supplemented, and sends the generated supplementary acquisition command to the concentrator to The data acquisition terminal, and further, the data acquisition terminal performs supplementary acquisition of the real-time data to be supplemented, and sends the supplementary real-time data to the concentrator for buffering, and then sends it to the master station for storage through the concentrator. The real-time data stored in the master station is the latest data, so that the latest stored data can be displayed to improve the accuracy of the real-time data.
可选的,所述主站包括唯一标识码生成模块及补采协议生成模块;其中,Optionally, the master station includes a unique identification code generation module and a supplementary procurement protocol generation module; wherein,
所述唯一标识码生成模块用于生成实时数据的唯一标识码;The unique identification code generation module is used to generate the unique identification code of real-time data;
所述补采协议生成模块用于生成待补采的实时数据的补采协议;The supplementary acquisition protocol generation module is used to generate a supplementary acquisition protocol of the real-time data to be supplemented;
其中,所述补采协议中包括补采识别机制,基于补采识别机制识别唯一标识码,若识别正确,则生成实时数据的补采命令,若识别错误,则重新识别。Wherein, the supplementary acquisition protocol includes a supplementary acquisition identification mechanism, based on the supplementary acquisition identification mechanism to identify a unique identification code, if the identification is correct, a supplementary acquisition command of real-time data is generated, and if the identification is incorrect, it is re-identified.
通过采用上述技术方案,通过唯一标识码生成模块生成实时数据的唯一标识码,通过补采协议生成模块生成待补采的实时数据的补采协议,并且,补采协议中包括补采识别机制,进而,利用补采识别机制识别唯一标识码,并对识别结果进行判断,若正确,则生成实时数据的补采命令,若识别错误,则对唯一标识码进行重新识别,从而,以保证主站生成的补采命令的准确性,并将补采命令通过集中器发送至数据采集终端,进而,也能够提升数据采集终端补采实时数据的准确性。By adopting the above technical solution, the unique identification code of the real-time data is generated by the unique identification code generation module, the supplementary acquisition protocol of the real-time data to be supplemented is generated by the supplementary acquisition protocol generation module, and the supplementary acquisition protocol includes a supplementary acquisition identification mechanism, Further, the unique identification code is identified by the supplementary acquisition identification mechanism, and the identification result is judged. If it is correct, the supplementary acquisition command of the real-time data is generated. If the identification is wrong, the unique identification code is re-identified, so as to ensure the master The accuracy of the generated supplementary sampling command, and the supplementary sampling command is sent to the data acquisition terminal through the concentrator, and further, the accuracy of the supplementary acquisition real-time data of the data acquisition terminal can also be improved.
可选的,所述数据采集终端包括补采结果判断模块;其中,Optionally, the data collection terminal includes a supplementary collection result judgment module; wherein,
所述补采结果判断模块用于判断实时数据的补采是否成功;The supplementary mining result judgment module is used for judging whether the supplementary mining of real-time data is successful;
其中,若补采成功,则上传补采的实时数据,若补采失败,则对待补采实时数据进行重新补采。Among them, if the supplementary collection is successful, the real-time data of supplementary collection will be uploaded, and if the supplementary collection fails, the real-time data to be supplemented will be recollected.
通过采用上述技术方案,通过补采结果判断模块判断实时数据的补采是否成功,若成功,则将补采的实时数据进行上传,若失败,则对待补采的实时数据进行重新补采,进而,能够提升实时数据的补采成功率。By adopting the above technical solution, whether the supplementary acquisition of real-time data is successful is determined by the supplementary acquisition result judgment module. If successful, the real-time data of supplementary acquisition is uploaded. If it fails, the supplementary acquisition of the real-time data to be supplemented is performed again. , which can improve the success rate of real-time data recovery.
可选的,所述主站还包括数据调用模块;其中,Optionally, the master station further includes a data calling module; wherein,
所述数据调用模块用于在重新补采失败的情况下,调用集中器中缓存的实时数据,以覆盖主站中存储的已有的待补采数据。The data calling module is used to call the real-time data buffered in the concentrator to cover the existing data to be supplemented collected stored in the master station in the case of failure to re-collection.
通过采用上述技术方案,在重新补采失败的情况下,通过数据调用模块调用集中器中已缓存的实时数据,并将调用的已缓存的实时数据覆盖已有的待补采数据,由于已缓存的实时数据的采集时间与补采实时数据的时间相差较短,以作为临时实时数据,进而,在数据补采不成功的情况下,能够尽量缩小实时数据的误差。By adopting the above technical solution, in the case of failure to re-collection, the real-time data that has been cached in the concentrator is called through the data calling module, and the called cached real-time data overwrites the existing data to be re-collected. The difference between the acquisition time of the real-time data and the time of supplementary acquisition of real-time data is relatively short, which is used as temporary real-time data, and further, in the case of unsuccessful data supplementary acquisition, the error of real-time data can be minimized.
可选的,还包括传送判断模块;其中,Optionally, it also includes a transmission judgment module; wherein,
所述传送判断模块用于判断实时数据的上传是否成功;The transmission judgment module is used for judging whether the upload of the real-time data is successful;
其中,若上传成功,则存储于主站,若上传失败,则采用透传或直传的模式传送实时数据。Among them, if the upload is successful, it will be stored in the master station, and if the upload fails, the real-time data will be transmitted in the mode of transparent transmission or direct transmission.
通过采用上述技术方案,通过传送判断模块判断实时数据的上传是否成功,若上传成功,则将上传的实时数据存储于主站,若上传失败,则采用透传或直传的模式上传实时数据,进而,能够保证实时数据的传输,提升实时数据的传送成功率。By adopting the above technical solution, the transmission judgment module determines whether the upload of real-time data is successful. If the upload is successful, the uploaded real-time data is stored in the main station. If the upload fails, the real-time data is uploaded in the transparent transmission or direct transmission mode. Furthermore, the transmission of real-time data can be ensured, and the success rate of real-time data transmission can be improved.
第二方面,本申请提供的一种实时数据的补采方法,采用如下的技术方案:In the second aspect, the supplementary mining method of a kind of real-time data provided by the application adopts the following technical scheme:
一种实时数据的补采方法,包括:A method for supplementary collection of real-time data, including:
基于实时数据生成实时数据的唯一标识码,基于实时数据的采集命令采集实时数据,并对采集的实时数据进行缓存;Generate a unique identification code of real-time data based on real-time data, collect real-time data based on real-time data collection commands, and cache the collected real-time data;
基于实时数据的唯一标识码确定待补采的实时数据,所述待补采的实时数据包括未采集到的及缺失的实时数据;Determine real-time data to be supplemented based on the unique identification code of the real-time data, where the real-time data to be supplemented includes uncollected and missing real-time data;
基于待补采的实时数据生成对待补采的实时数据的补采协议,所述补采协议包括补采识别机制;Generate a supplementary acquisition protocol for the real-time data to be supplemented based on the real-time data to be supplemented, and the supplementary acquisition protocol includes a supplementary acquisition identification mechanism;
基于补采识别机制识别唯一标识码,若识别正确,则生成对待补采的实时数据的补采命令,若识别错误,则重新进行识别;Identify the unique identification code based on the supplementary acquisition identification mechanism. If the recognition is correct, a supplementary acquisition command of the real-time data to be supplemented is generated. If the recognition is incorrect, the recognition is performed again;
基于补采命令对待补采的实时数据执行补采任务,若补采成功,则上传补采的实时数据,若补采失败,则对待补采的实时数据进行重新补采。The supplementary acquisition task is performed based on the supplementary acquisition command for the real-time data to be supplemented. If the supplementary acquisition is successful, the real-time data of supplementary acquisition is uploaded. If the supplementary acquisition fails, the supplementary acquisition of the real-time data to be supplemented is performed again.
通过采用上述技术方案,对实时数据进行采集,并将采集的实时数据进行缓存及存储,根据存储的实时数据,生成实时数据的唯一标识码,根据唯一标识码确定未采集到的或缺失的实时数据,也即,待补采的实时数据,并且,根据待补采的实时数据生成对待补采的实时数据的补采协议,且补采协议中包括补采识别机制,进而,利用补采识别机制识别唯一标识码,若识别正确,则生成对待补采的实时数据的补采命令,若识别错误,则重新进行识别,进而,能够保证生成的补采命令的准确性,并且,根据补采命令对待补采的实时数据进行补采,若补采成功,则将补采的实时数据上传,若补采失败,则对待补采的实时数据进行重新补采,进而,能够提升实时数据的补采成功率,保证实时数据的展示准确性。By adopting the above technical solution, 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, and the uncollected or missing real-time data is determined according to the unique identification code. data, that is, the real-time data to be supplemented, and a supplementary acquisition protocol for the real-time data to be supplemented is generated according to the real-time data to be supplemented, and the supplementary acquisition agreement includes a supplementary acquisition identification mechanism, and then uses supplementary acquisition identification The mechanism identifies the unique identification code. If the identification is correct, a supplementary acquisition command for the real-time data to be supplemented is generated. If the recognition is incorrect, the identification is re-identified, thereby ensuring the accuracy of the generated supplementary acquisition order. Order the real-time data to be supplemented to be supplemented. If the supplementary acquisition is successful, the real-time data of supplementary acquisition will be uploaded. If the supplementary acquisition fails, the real-time data to be supplemented will be supplemented again, which can improve the supplementary acquisition of real-time data. The acquisition success rate ensures the accuracy of real-time data display.
可选的,若重新补采失败,则生成对已缓存的实时数据的调用命令,基于调用命令调用已缓存的实时数据,并以已缓存的实时数据覆盖已有的待补采数据。Optionally, if the re-sampling 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 existing data to be re-collected is overwritten with the cached real-time data.
通过采用上述技术方案,若重新补采还是出现失败,则生成对已缓存的实时数据的调用命令,进而,以调用已缓存的实时数据,并将已缓存的实时数据覆盖已有的待补采数据,由于已缓存的实时数据的采集时间与待补采的实时数据的采集时间相差较短,所以,可以将调用的已缓存的实时数据作为临时实时数据,从而,在数据补采不成功的情况下,能够尽量缩小实时数据的误差。By adopting the above technical solution, if the re-sampling still fails, a call command for the cached real-time data is generated, and then the cached real-time data is called, and the cached real-time data is overwritten with the existing to-be-replenished sampling. Since the difference between the collection time of the cached real-time data and the real-time data to be supplemented is relatively short, the called cached real-time data can be used as temporary real-time data. In this case, the error of real-time data can be minimized.
可选的,若补采的实时数据上传失败,则生成对补采的实时数据的透传或直传命令,基于透传或直传命令传送补采的实时数据。Optionally, if the upload of the real-time data of the supplementary collection fails, a transparent transmission or direct transmission command for the real-time data of the supplementary collection is generated, and the real-time data of the supplementary collection is transmitted based on the transparent transmission or the direct transmission command.
通过采用上述技术方案,若补采的实时数据上传失败,则生成对补采的实时数据的透传或直传的命令,进而,以对补采的实时数据进行透传或直传,从而,能够提升实时数据的传送成功率。By adopting the above technical solution, if the uploading of the real-time data of the supplementary mining fails, a command for transparent transmission or direct transmission of the real-time data of the supplementary mining is generated, and further, the real-time data of the supplementary mining is transparently or directly transmitted, thereby, It can improve the success rate of real-time data transmission.
第三方面,本申请提供的一种计算机设备,采用如下的技术方案:The third aspect, a kind of computer equipment provided by the application, adopts the following technical scheme:
一种计算机设备,包括存储器、处理器及存储在存储器中并能够在处理器上运行的计算机程序,所述处理器加载并执行计算机程序时,采用了第二方面的方法。A computer device includes a memory, a processor and a computer program stored in the memory and capable of running on the processor, when the processor loads and executes the computer program, the method of the second aspect is adopted.
通过采用上述技术方案,基于第二方面的实时数据的补采方法生成计算机程序,并存储于存储器中,以被处理器加载并执行,从而,根据存储器及处理制作计算机设备,方便用户使用。By adopting the above technical solution, a computer program is generated based on the real-time data supplementary acquisition method of the second aspect, and stored in the memory to be loaded and executed by the processor, thereby making computer equipment according to the memory and processing, which is convenient for users to use.
第四方面,本申请提供的一种计算机可读存储介质,采用如下的技术方案:In the fourth aspect, a computer-readable storage medium provided by the present application adopts the following technical solutions:
一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机程序,所述计算机程序被处理器加载并执行时,采用了第二方面的方法。A computer-readable storage medium stores a computer program, and when the computer program is loaded and executed by a processor, the method of the second aspect is adopted.
通过采用上述技术方案,基于第二方面的实时数据的补采方法生成计算机程序,并存储于计算机可读存储介质中,以被处理器加载并执行,通过计算机可读存储介质,方便计算机程序的可读及存储,进而,方便用户调取使用。By adopting the above technical solution, a computer program is generated based on the real-time data supplementary sampling method of the second aspect, and stored in a computer-readable storage medium to be loaded and executed by the processor, and the computer program is facilitated by the computer-readable storage medium. It can be read and stored, and further, it is convenient for users to recall and use.
综上所述,本申请包括以下至少一种有益技术效果:To sum up, the present application includes at least one of the following beneficial technical effects:
1.对实时数据进行采集,生成实时数据的唯一标识码,根据唯一标识码确定待补采的实时数据,并且,根据待补采的实时数据生成对待补采的实时数据的补采协议,利用补采协议别唯一标识码,若识别正确,则生成对待补采的实时数据的补采命令,若识别错误,则重新进行识别,进而,能够保证生成的补采命令的准确性,并且,根据补采命令对待补采的实时数据进行补采,若补采成功,则将补采的实时数据上传,若补采失败,则对待补采的实时数据进行重新补采,进而,能够提升实时数据的补采成功率,保证实时数据的展示准确性;1. Collect real-time data, generate a unique identification code of the real-time data, determine the real-time data to be supplemented according to the unique identification code, and generate a supplementary acquisition protocol for the real-time data to be supplemented according to the real-time data to be supplemented, using The unique identification code of the supplementary acquisition protocol. If the identification is correct, the supplementary acquisition command of the real-time data to be supplemented is generated. If the identification is incorrect, the identification is performed again, which can ensure the accuracy of the generated supplementary acquisition order. The supplementary acquisition command performs supplementary acquisition of the real-time data to be supplemented. If the supplementary acquisition is successful, the real-time data of supplementary acquisition will be uploaded. If the supplementary acquisition fails, the real-time data to be supplemented will be supplemented again, thereby improving the real-time data. The success rate of supplementary mining is guaranteed to ensure the accuracy of real-time data display;
2.若重新补采还是出现失败,则调用已缓存的实时数据,并将已缓存的实时数据覆盖已有的待补采数据,从而,在数据补采不成功的情况下,能够尽量缩小实时数据的误差;2. If the re-sampling still fails, the cached real-time data will be called, and the cached real-time data will be overwritten with the existing data to be re-collected, so that in the case of unsuccessful data re-collection, the real-time data can be reduced as much as possible. data errors;
3.若补采的实时数据上传失败,则对补采的实时数据进行透传或直传,从而,能够提升实时数据的传送成功率。3. If the upload of the real-time data of the supplementary collection fails, the real-time data of the supplementary collection will be transparently or directly transmitted, thereby improving the success rate of real-time data transmission.
附图说明Description of drawings
图1是本申请的实时数据的补采装置的框架示意图一。FIG. 1 is a schematic diagram 1 of the framework of the real-time data supplementary collection device of the present application.
图2是本申请的实时数据的补采装置的框架示意图二。FIG. 2 is a second schematic diagram of the framework of the real-time data supplementary collection device of the present application.
图3是本申请的实时数据的补采装置的框架示意图三。FIG. 3 is a third schematic diagram of the framework of the real-time data supplementary collection device of the present application.
图4是本申请的实时数据的补采方法的方法流程图。FIG. 4 is a method flowchart of the real-time data supplementary collection method of the present application.
附图标记说明:1、主站;11、唯一标识码生成模块;12、补采协议生成模块;13、数据调用模块;2、集中器;3、数据采集终端;31、补采结果判断模块;4、传送判断模块。Description of reference numerals: 1. Master station; 11. Unique identification code generation module; 12. Supplementary sampling protocol generation module; 13. Data calling module; 2. Concentrator; 3. Data acquisition terminal; 31. Supplementary sampling result judgment module ; 4. Transmission judgment module.
具体实施方式Detailed ways
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图1-4及实施例,对本申请进行进一步详细说明。应当理解,此处所描述的具体实施例仅用以解释本申请,并不用于限定本申请。In order to make the objectives, technical solutions and advantages of the present application clearer, the present application will be described in further detail below with reference to the accompanying drawings 1-4 and the embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application, but not to limit the present application.
随着计量自动化系统的全面上线,数据的获取彻底告别了手工采集的时代,计量自动化的远程自动采集方式极大的提升了采集效率,其中,本申请的实时数据以电力实时数据为例,但是,目前由于计划停电、故障停电、网络故障等一系列原因牵制了电力实时数据的采集成功率,进而,影响电力实时数据的展示准确性,从而,通过补采电力实时数据可以有效的提升实时数据的准确性。With the full launch of the metering automation system, the acquisition of data has completely bid farewell to the era of manual collection, and the remote automatic collection method of metering automation has greatly improved the collection efficiency. At present, due to a series of reasons such as planned power outages, fault power outages, and network failures, the success rate of real-time power data collection is hindered, which in turn affects the display accuracy of real-time power data. accuracy.
本申请实施例公开一种实时数据补采装置。参照图1,实时数据补采装置包括主站1、集中器2及数据采集终端3,并且,集中器2分别与主站1及数据采集终端3进行通信,本实施例中,通信方式可以为有线通信或者无线通信,优选的,采用无线通信,无线通信的方式可以采用5G、WIFI、Zigbee及交换机等中的任意一种,其中,主站1用于确定待补采的电力实时数据,并且,根据待补采的电力实时数据生成补采命令,并将补采命令通过无线通信的方式发送至集中器2,集中器2接收到补采命令后,并将补采命令以无线通信的方式发送至数据采集终端3,数据采集终端3接收到补采命令后,开始对电力实时数据进行补采。The embodiment of the present application discloses a real-time data supplementary acquisition device. 1, the real-time data supplementary acquisition device includes a main station 1, a
其中,数据采集终端3采集完成电力实时数据后,将采集的电力实时数据以无线通信的方式传送至集中器2,集中器2接收到电力实时数据后,一方面对电力实时数据进行缓存,另一方面将电力实时数据以无线通信的方式传送至主站1,进而,通过主站1对电力实时数据进行存储,从而,若对外展示电力实时数据时,则直接提取存储的电力实时数据即可。Among them, after the
参照图2,其中,主站1包括唯一标识码生成模块11及补采协议生成模块12,本实施例中,根据电力实时数据,采用唯一标识码生成模块11生成电力实时数据的唯一标识码,采用补采协议生成模块12生成电力实时数据的补采协议,并且,补采协议中包括补采识别机制,进而,采用补采识别机制对电力实时数据的唯一标识码进行识别,并获得识别结果,识别结果包括正确与错误,进而,若识别正确,则对电力实时数据生成补采命令,若识别错误,则对电力实时数据进行重新识别。2, wherein, the master station 1 includes a unique identification
其中,本实施例中,数据采集终端3可以设置为用于采集电力数据的电表,电力实时数据的唯一标识码采用电力实时数据的测量点号,而测量点号为电表的编码,例如,电表的编码设定为1-N,也即,每个电表对应一个唯一编码,而补采协议机制中包括对待补采的电力实时数据所对应的电表的唯一编码的识别号,识别号采用识别规则,进而,采用识别规则对电表的唯一编码进行识别,以获得识别结果,然后,并对识别结果进行判断,若识别规则与所识别的电表的唯一编码相对应,则认定为识别正确,进而,以对电力实时数据生成补采命令,若识别规则与所识别的电表的唯一编码不对应,则认定识别结果错误,进而,以更换其他电表的唯一编码,然后,采用识别规则对更换的电表编码进行重新识别,若还是识别错误,则继续更换其他电表的唯一编码进行识别。Wherein, in this embodiment, the
参照图2,其中,数据采集终端3包括补采结果判断模块31,以对电力实时数据的补采结果进行判断,确定电力实时数据的补采是否成功,若补采成功,则对补采的电力实时数据进行上传,若补采失败,则对电力实时数据进行重新补采,以免出现所上传的电力实时数据为空档的现象,优选的,若补采失败,则对电力实时数据进行多次重新补采,本实施例中,以两到三次重新补采为例。Referring to FIG. 2, the
参照图2,其中,主站1还包括数据调用模块13,并且,数据调用模块13用于在重新补采失败的情况下,调用集中器2中缓存的电力实时数据,以覆盖主站1中存储的已有的待补采电力数据,也即,若重新补采两到三次后还是出现补采失败的情况,则采用主站1的数据调用模块13调用集中器2中缓存的电力数据,并将调用的电力数据覆盖主站1中存储的已有的待补采的电力数据,也即,调用上一次采集的电力实时数据作为本次的电力实时数据,在此过程中,保证调用的电力数据与待补采的电力数据属于同一编码,也即,点对点的进行覆盖,由于上一次的采集时间与本次的采集时间相差较短,故而,可以将调用的上一次的电力实时数据作为本次的临时电力实时数据,并存储调用的上一次电力实时数据,进而,能够提升电力实时数据的实效性。Referring to FIG. 2 , the main station 1 further includes a
参照图3,具体地,设定一个主站1获取电力实时数据的获取超时时间,且获取超时时间大于一个集中器2更新电力实时数据的时间,即电力实时数据更新时间,并小于两个电力实时数据更新时间,若主站1在上一次获取电力实时数据之后经过的时间超过获取超时时间,则主站1生成补采电力实时数据的命令,并向集中器2发送补采命令,若未采集到或采集到缺失的电力实时数据,则对电力实时数据进行重新补采,并设定补采超时时间,补采超时时间在获取超时时间到后开始计时,若在下一次电力实时数据更新时间之前达到补采超时时间,则过后主站1停止向集中器2发送补采电力实时数据的命令,也即,停止对电力实时数据的补采,以保证下一次电力实时数据更新上传不受影响,同时,主站1将上一次存入的电力实时数据复制存储于数据库中成为新的实时数据,即作为临时电力实时数据。Referring to FIG. 3, specifically, set a time-out time for the master station 1 to obtain real-time power data, and the time-out time for acquisition is greater than the time for a
参照图2及图3,其中,实时数据的补采装置还包括传送判断模块4,并且,传送判断模块4用于判断补采的电力实时数据的上传是否成功,并获得判断结果,本实施例中,判断结果包括成功与失败,若补采的电力实时数据上传成功,则存储于主站1内,若补采的电力实时数据上传失败,则采用透传或直传的模式传送电力实时数据,透传即为透明传送,也即,在电力实时数据的传输过程中,通过无线的方式此电力实时数据不发生任何形式的改变,同时,保证电力实时数据传输的质量,并原封不动地传输到主站1。2 and 3, wherein the real-time data supplementary mining device further includes a transmission judgment module 4, and the transmission judgment module 4 is used to judge whether the uploading of the supplementary power real-time data is successful, and obtain the judgment result, this embodiment , the judgment result includes success and failure. If the real-time power data of the supplementary mining is uploaded successfully, it will be stored in the main station 1. If the real-time data of the supplementary mining power fails to be uploaded, the real-time power data will be transmitted in the mode of transparent transmission or direct transmission. , Transparent transmission is transparent transmission, that is, in the process of real-time power data transmission, the real-time power data does not change in any form through wireless means, and at the same time, the quality of real-time power data transmission is guaranteed, and it is intact. transfer to master 1.
具体地,透传为集中器帮主站把主站1发送来的补采命令,根据识别规则识别唯一编码的结果,发送给对应的数据采集终端3,而不识别处理里面的补采命令,即直接转发下去,而集中器2采集是通过集中器2中已有的协议命令执行,主站1向集中器2发送补采命令,集中器2根据协议规则生成采集终端协议对应的命令进行采集,也即,透传或直传是主站1直接处理获得采集终端的协议命令,以使集中器2直接发送给对应的数据采集终端3。Specifically, the transparent transmission is for the concentrator to help the master station to send the supplementary acquisition command sent by the main station 1, identify the result of the unique code according to the identification rule, and send it to the corresponding
本申请实施例一种实时数据的补采装置的实施原理为:数据采集终端3对电力数据进行采集,并将采集的电力数据发送至集中器2进行缓存,集中器2再将接收到的电力数据发送至主站1进行存储,进而,根据主站1内存储的电力实时数据,采用唯一标识码生成模块11生成电力实时数据的唯一标识码,进而,根据唯一标识码确定待补采的电力实时数据,确定完成后,利用补采协议生成模块12生成待补采的电力实时数据的补采协议,补采协议中包括对唯一标识码识别的识别机制,进而,利用识别机制识别唯一标识码,若识别成功,则生成电力实时数据的补采命令,若识别失败,则重新进行识别,主站1将生成的补采命令通过集中器2发送至数据采集终端3,进而,数据采集终端3执行电力实时数据的补采任务,对电力实时数据进行补采,并采用补采结果判断模块31对补采结果进行判断,若补采成功,则将补采的电力实时数据进行上传,若补采失败,则对电力实时数据进行两到三次的重新补采,若重新补采还是失败,则利用数据调用模块13调用集中器2中缓存的电力数据作为电力实时数据,并覆盖主站1中存储的已有的待补采的电力数据,然后存储于主站1内,再利用传送判断模块4对电力实时数据的上传结果进行判断,若上传成功,则将上传的电力实时数据存储于主站1内,若上传失败,则采用透传或直传的模式传送补采的电力实时数据,进而,以保证补采的电力实时数据能够存储于主站1内。The implementation principle of a real-time data supplementary collection device in this embodiment of the present application is as follows: the
本申请实施例公开一种实时数据的补采方法,参照图4,本实施例所记载的实时数据为电力实时数据,具体地,其补采方法包括:The embodiment of the present application discloses a method for supplementary mining of real-time data. Referring to FIG. 4 , the real-time data recorded in this embodiment is real-time power data. Specifically, the supplementary mining method includes:
基于实时数据生成实时数据的唯一标识码,基于实时数据的采集命令采集实时数据,并对采集的实时数据进行缓存。The unique identification code of the real-time data is generated based on the real-time data, the real-time data is collected based on the collection command of the real-time data, and the collected real-time data is cached.
其中,根据采集的电力实时数据,生成电力实时数据的唯一标识码,并对采集的电力实时数据进行缓存,本实施例中,电力实时数据的唯一标识码可以采用电力实时数据的唯一编码,电力实时数据的唯一编码也可以为电表的唯一编码,也即,对采集不同电力实时数据的电表分别配置唯一编码,每一个电表对应一个编码,例如1-N,当然,根据实际的使用需求,也可以将唯一标识码设定为任意便于识别的待识别码。The unique identification code of the real-time power data is generated according to the collected real-time power data, and the collected real-time power data is cached. In this embodiment, the unique identification code of the real-time power data can be the unique code of the real-time power data. The unique code of the real-time data can also be the unique code of the electric meter, that is, the electric meter that collects real-time data of different electric power is configured with a unique code, and each electric meter corresponds to a code, such as 1-N, of course, according to the actual use requirements, also The unique identification code can be set to any code to be identified that is convenient for identification.
基于实时数据的唯一标识码确定待补采的实时数据,所述待补采的实时数据包括未采集到的及缺失的实时数据。The real-time data to be supplemented is determined based on the unique identification code of the real-time data, and the real-time data to be supplemented includes uncollected and missing real-time data.
其中,根据电表的唯一编码,对电力实时数据进行查询分析,以获取未采集到的电力实时数据及缺失电力实时数据的电表对应的唯一编码,进而,以将未采集到的电力实时数据及缺失的电力实时数据确定为待补采的电力实时数据。Among them, according to the unique code of the electric meter, the real-time power data is queried and analyzed to obtain the uncollected real-time electric power data and the unique code corresponding to the electric meter that lacks the real-time electric power data. The real-time data of the power is determined as the real-time data of the power to be mined.
具体地,对电力实时数据的查询分析包括:根据采集到的电力实时数据,查看上一次获取的电力实时数据与本次获取的电力实时数据,并对两次的电力实时数据进行比对分析,若上一次获取的电力实时数据与本次获取的电力实时数据完全相同,则认定为本次未采集到电力实时数据,若本次获取的电力实时数据与上一次获取的电力实时数据存在部分相同,则认定为本次获取的电力实时数据存在缺失,进而,以确定待补采的电力实时数据。Specifically, the query and analysis of the real-time power data includes: according to the collected real-time power data, checking the real-time power data obtained last time and the real-time power data obtained this time, and comparing and analyzing the two real-time power data, If the real-time power data acquired last time is exactly the same as the real-time power data acquired this time, it is deemed that no real-time power data has been collected this time. If the real-time power data acquired this time is partially identical to the real-time power data acquired last , it is determined that the real-time power data obtained this time is missing, and further, the real-time power data to be supplemented is determined.
基于待补采的实时数据生成待补采的实时数据的补采协议,所述补采协议包括补采识别机制。Based on the real-time data to be supplemented, a supplementary acquisition protocol of the real-time data to be supplemented is generated, and the supplementary acquisition protocol includes a supplementary acquisition identification mechanism.
其中,根据待补采的电力实时数据,生成待补采的电力实时数据的补采协议,并且,补采协议中包括补采识别机制,本实施例中,补采识别机制为与包含有待补采的电力实时数据的电表的唯一编码相对应的识别号,也即,采用识别号能够识别对应的唯一编码,当然,根据实际的使用需求,可以将识别机制设定为任意便于识别唯一编码的识别规则。Wherein, according to the real-time data of electric power to be supplemented, a supplementary acquisition protocol of the real-time power data to be supplemented is generated, and the supplementary acquisition protocol includes a supplementary acquisition identification mechanism. In this embodiment, the supplementary acquisition identification mechanism is the same as that including The identification number corresponding to the unique code of the electricity meter of the real-time power data collected, that is, the identification number can be used to identify the corresponding unique code. Of course, according to the actual use requirements, the identification mechanism can be set to any convenient identification of the unique code. Identify rules.
基于补采识别机制识别唯一标识码,若识别正确,则生成对待补采的实时数据的补采命令,若识别错误,则重新进行识别。The unique identification code is identified based on the supplementary acquisition identification mechanism. If the identification is correct, a supplementary acquisition command of the real-time data to be supplemented is generated. If the identification is incorrect, the identification is performed again.
其中,根据唯一识别号识别待补采的电力实时数据对应的电表的唯一编码,并获得识别结果,本实施例中,识别结果包括正确与错误,若识别正确,则生成对待补采的电力实时数据的补采命令,若识别错误,则对待补采的电力实时数据对应的电表的唯一编码进行重新识别,也即,更换其他唯一编码的电表,并采用唯一识别号对更换的电表的唯一编码进行识别,若识别成功,则同样生成对待补采的电力实时数据的补采命令,若还是识别错误,则继续更换识别。Among them, the unique code of the electric meter corresponding to the real-time power data to be supplemented is identified according to the unique identification number, and the identification result is obtained. In this embodiment, the identification result includes correctness and error. If the identification is correct, the real-time electric power to be supplemented is generated. If the data supplementary acquisition command is incorrectly identified, the unique code of the meter corresponding to the real-time power data to be supplemented will be re-identified, that is, the meter with other unique codes will be replaced, and the unique code of the replaced meter will be used with the unique identification number. Recognition is performed, and if the recognition is successful, a supplementary acquisition command of the real-time power data to be supplemented is also generated, and if the recognition is still wrong, the replacement recognition is continued.
基于补采命令对待补采的实时数据执行补采任务,若补采成功,则上传补采的实时数据,若补采失败,则对待补采的实时数据进行重新补采。The supplementary acquisition task is performed based on the supplementary acquisition command for the real-time data to be supplemented. If the supplementary acquisition is successful, the real-time data of supplementary acquisition is uploaded. If the supplementary acquisition fails, the supplementary acquisition of the real-time data to be supplemented is performed again.
其中,根据生成的对待补采的电力实时数据的补采命令,对相对应的待补采的电力实时数据进行补采,以获得补采结果,并对补采结果进行判断,本实施例中,判断的补采结果包括成功与失败,若补采成功,则将补采的电力实时数据进行上传,若补采失败,则对待补采的电力实时数据进行重新补采,也即,补采失败时,采用相同的补采手段对待补采的电力实时数据进行重新补采。Wherein, according to the generated supplementary acquisition command of the real-time power data to be supplemented, supplementary acquisition is performed on the corresponding real-time power data to be supplemented to obtain supplementary acquisition results, and the supplementary acquisition results are judged. , The judged result of supplementary mining includes success and failure. If supplementary mining is successful, the real-time data of supplementary mining will be uploaded. In case of failure, the same supplementary mining method is used to supplement the real-time data of the power to be supplemented.
其中,若对待补采的电力实时数据进行重新补采还是出现失败,优选的,限定重新补采的次数,本实施例以重新补采两到三次为例,也即,若重新对待补采的电力实时数据进行两到三次的补采还是失败,则自动生成对已缓存的电力数据的调用命令,并且,基于生成的调用命令,调用已缓存的电力数据,并将调用的已缓存的电力数据覆盖已有的待补采的电力实时数据,也即,调用上一次采集的电力实时数据作为本次的电力实时数据,在此过程中,保证调用的电力数据与待补采的电力数据属于同一编码,也即,点对点的进行覆盖,由于上一次的采集时间与本次的采集时间相差较短,故而,可以将调用的上一次的电力实时数据作为本次的临时电力实时数据,并存储调用的上一次电力实时数据,进而,能够提升电力实时数据的实效性。Among them, if the real-time power data to be supplemented is still failed to be supplemented, it is preferable to limit the number of times of supplementary recovery. If the real-time electric power data fails to be collected two or three times, a call command for the cached power data is automatically generated, and based on the generated call command, the cached power data is called, and the cached power data is called. Cover the existing real-time power data to be supplemented, that is, call the real-time power data collected last time as the current real-time power data. During this process, ensure that the called power data and the power data to be supplemented are the same. Coding, that is, point-to-point coverage, because the difference between the last acquisition time and the current acquisition time is relatively short, the last real-time power data that was called can be used as the current temporary power real-time data, and the calling The last real-time power data, and then, can improve the effectiveness of the real-time power data.
具体地,设定一个获取电力实时数据的获取超时时间,且获取超时时间的跨度大于一个电力实时数据的更新时间,并小于两个电力实时数据的更新时间,若在上一次获取电力实时数据之后经过的时间超过获取超时时间时,则生成并发出补采电力实时数据的命令,若未采集到或采集到缺失的电力实时数据,则对电力实时数据进行重新补采,并设定补采超时时间,补采超时时间在获取超时时间到后开始计时,若在下一次电力实时数据更新时间之前达到补采超时时间,则过后停止发出补采命令,也即,停止对电力实时数据的补采,以保证下一次电力实时数据更新上传不受影响,同时,将上一次存入的电力实时数据复制存储于数据库作为新的实时数据,以作为临时电力实时数据。Specifically, an acquisition timeout period for acquiring real-time power data is set, and the span of the acquisition timeout period is greater than the update time of one real-time power data and less than the update time of two real-time power data. When the elapsed time exceeds the acquisition timeout time, a command to supplement the real-time power data collection will be generated and issued. If the missing real-time power data is not collected or collected, the power real-time data will be supplemented again, and the supplementary acquisition timeout will be set. Time, the supplementary sampling timeout time starts timing after the acquisition timeout time expires. If the supplementary sampling timeout time is reached before the next power real-time data update time, the supplementary sampling command will be stopped after that, that is, the supplementary sampling of the power real-time data will be stopped. In order to ensure that the next real-time power data update and upload will not be affected, at the same time, the last stored power real-time data is copied and stored in the database as new real-time data as temporary power real-time data.
其中,若对待补采的电力实时数据补采成功,则上传补采的电力实时数据,以获得上传结果,本实施例中,上传结果包括成功与失败,若上传成功,则对上传的电力实时数据进行存储,若上传失败,则更改电力实时数据的上传模式,也即,生成对补采的电力实时数据更换上传模式的命令,基于生成更换上传模式的命令,将已有的上传模式更改为透传或直传模式,透传即为透明传送,本领域技术人员应当可以理解,故在此不再赘述,已有的上传模式为主动上传,也即,采集完电力实时数据,则将采集的电力实时数据进行主动上传。Wherein, if the supplementary acquisition of the real-time power data to be supplemented is successful, upload the real-time data of the supplementary power to obtain the uploading result. In this embodiment, the uploading result includes success and failure. If the uploading is successful, the real-time power The data is stored. If the upload fails, the upload mode of the real-time power data will be changed, that is, a command to change the upload mode of the real-time power data of the supplementary mining is generated. Based on the command to change the upload mode, the existing upload mode will be changed to Transparent transmission or direct transmission mode, transparent transmission is transparent transmission, which should be understood by those skilled in the art, so it will not be repeated here. The existing upload mode is active upload, that is, after collecting real-time power data, the The real-time data of electric power is actively uploaded.
本申请实施例一种实时数据的补采方法的实施原理为:通过电力实时数据生成唯一标识码,进而,根据唯一标识码确定待补采的电力实时数据,并且,根据待补采的电力实时数据生成待补采的电力实时数据的补采协议,补采协议中包括补采识别机制,进而,利用补采识别机制识别唯一标识码,若识别正确,则生成对待补采的电力实时数据的补采命令,若识别错误,则对唯一标识码进行重新识别,并且,根据生成的补采命令,对待补采的电力实时数据进行补采,若补采成功,则将补采的电力实时数据进行上传,若补采失败,则对待补采的电力实时数据进行重新补采,若重新补采两到三次后还是失败,则生成对已缓存的电力实时数据的调用命令,进而,调用已缓存的电力实时数据,并将已缓存的电力实时数据覆盖已有的待补采的电力数据,以作为临时电力实时数据,若对补采的电力实时数据上传成功,则存储上传的电力实时数据,若对补采的电力实时数据上传失败,则采用透传或直传的模式上传补采的电力实时数据。The implementation principle of a method for supplementary mining of real-time data in the embodiment of the present application is as follows: generating a unique identification code through real-time power data, then determining the real-time power data to be supplemented mining according to the unique identification code, and, according to the real-time power to be supplemented mining The data generates a supplementary mining protocol for the real-time power data to be supplemented. The supplementary mining protocol includes a supplementary mining identification mechanism. Further, the supplementary mining identification mechanism is used to identify the unique identification code. If the identification is correct, a real-time power data to be supplemented is generated. For the supplementary collection command, if the identification is wrong, the unique identification code will be re-identified, and according to the generated supplementary collection command, the real-time data of the power to be supplemented will be supplemented. Upload, if the supplementary collection fails, the real-time power data to be supplemented will be re-collected. If the re-collection fails two or three times, a call command for the cached real-time power data will be generated, and then the cached real-time power data will be called. The real-time power data of the power source is stored, and the cached real-time power data is overwritten with the existing power data to be supplemented as the temporary real-time power data. If the upload of the real-time power data of the supplementary mining fails, the real-time power data of the supplementary mining shall be uploaded in the mode of transparent transmission or direct transmission.
本申请实施例公开一种计算机设备,包括存储器、处理器及存储在存储器中并能够在处理器上运行的计算机程序,其中,处理器加载并执行计算机程序时,采用了上述的实时数据的补采方法。The embodiment of the present application discloses a computer device, including a memory, a processor, and a computer program stored in the memory and capable of running on the processor, wherein, when the processor loads and executes the computer program, the above-mentioned real-time data supplement is used. take method.
其中,计算机设备可以采用台式电脑、笔记本电脑或者云端服务器等,并且,计算机设备包括但不限于处理器以及存储器,例如,计算机设备还可以包括输入输出设备、网络接入设备以及总线等。Wherein, the computer device can be a desktop computer, a notebook computer, a cloud server, etc., and the computer device includes but is not limited to a processor and a memory. For example, the computer device can also include an input and output device, a network access device, and a bus.
其中,处理器可以采用中央处理单元(CPU),当然,根据实际的使用情况,也可以采用其他通用处理器、数字信号处理器(DSP)、专用集成电路(ASIC)、现成可编程门阵列(FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等,通用处理器可以采用微处理器或者任何常规的处理器等,本申请对此不做限制。Among them, the processor can be a central processing unit (CPU), of course, other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), off-the-shelf programmable gate arrays ( FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc., the general-purpose processor may use a microprocessor or any conventional processor, etc., which is not limited in this application.
其中,存储器可以为计算机设备的内部存储单元,例如,计算机设备的硬盘或者内存,也可以为计算机设备的外部存储设备,例如,计算机设备上配备的插接式硬盘、智能存储卡(SMC)、安全数字卡(SD)或者闪存卡(FC)等,并且,存储器还可以为计算机设备的内部存储单元与外部存储设备的组合,存储器用于存储计算机程序以及计算机设备所需的其他程序和数据,存储器还可以用于暂时地存储已经输出或者将要输出的数据,本申请对此不做限制。The memory may be an internal storage unit of a computer device, such as a hard disk or a memory of a computer device, or an external storage device of the computer device, such as a plug-in hard disk, a smart memory card (SMC), A secure digital card (SD) or a flash memory card (FC), etc., and the memory can also be a combination of an internal storage unit of a computer device and an external storage device, the memory is used to store computer programs and other programs and data required by the computer device, The memory may also be used to temporarily store data that has been output or will be output, which is not limited in this application.
其中,通过本计算机设备,将上述实施例的实时数据的补采方法存储于计算机设备的存储器中,并且,被加载并执行于计算机设备的处理器上,以方便用户使用。Wherein, through the computer device, the method for supplementary sampling of real-time data in the above-mentioned embodiment is stored in the memory of the computer device, and loaded and executed on the processor of the computer device, so as to be convenient for the user to use.
本申请实施例公开一种计算机可读存储介质,并且,计算机可读存储介质中存储有计算机程序,其中,计算机程序被处理器加载并执行时,采用了上述的实时数据的补采方法。The embodiment of the present application discloses a computer-readable storage medium, and the computer-readable storage medium stores a computer program, wherein, when the computer program is loaded and executed by a processor, the above-mentioned real-time data supplementary acquisition method is adopted.
其中,计算机程序可以存储于计算机可读介质中,计算机程序包括计算机程序代码,计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间件形式等,计算机可读介质包括能够携带计算机程序代码的任何实体或装置、记录介质、U盘、移动硬盘、磁碟、光盘、计算机存储器、只读存储器(ROM)、随机存取存储器(RAM)、电载波信号、电信信号以及软件分发介质等,需要说明的是,计算机可读介质包括但不限于上述元器件。The computer program may be stored in a computer-readable medium, and the computer program includes computer program code, which may be in the form of source code, object code, executable file or some middleware, etc. Any entity or device, recording medium, USB flash drive, removable hard disk, magnetic disk, optical disc, computer memory, read only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal, and software carrying computer program code Distribution medium, etc. It should be noted that the computer-readable medium includes but is not limited to the above-mentioned components.
其中,通过本计算机可读存储介质,将上述实施例的实时数据的补采方法存储于计算机可读存储介质中,并且,被加载并执行于处理器上,以方便实时数据的补采方法的存储及应用。Wherein, through the computer-readable storage medium, the real-time data supplementary collection method of the above-mentioned embodiment is stored in the computer-readable storage medium, and is loaded and executed on the processor, so as to facilitate the real-time data supplementary collection method. storage and application.
以上均为本申请的较佳实施例,并非依此限制本申请的保护范围,本说明书(包括摘要和附图)中公开的任一特征,除非特别叙述,均可被其他等效或者具有类似目的的替代特征加以替换。即,除非特别叙述,每个特征只是一系列等效或类似特征中的一个例子而已。The above are all preferred embodiments of the present application, which are not intended to limit the protection scope of the present application. Any feature disclosed in this specification (including the abstract and drawings), unless otherwise specified, may be equivalent to other or have similar Replacement features of the purpose. That is, unless expressly stated otherwise, each feature is but one example of a series of equivalent or similar features.
Claims (10)
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)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113656388A (en) * | 2021-08-12 | 2021-11-16 | 全球能源互联网研究院有限公司 | A 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)
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 | 深圳供电局有限公司 | Power data supplementary collection method, device, computer equipment and storage medium |
-
2020
- 2020-12-21 CN CN202011520476.XA patent/CN112559505A/en active Pending
Patent Citations (5)
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 | 深圳供电局有限公司 | Power data supplementary collection method, device, computer equipment and storage medium |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113656388A (en) * | 2021-08-12 | 2021-11-16 | 全球能源互联网研究院有限公司 | A 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 |
CN115442678B (en) * | 2022-08-16 | 2025-06-06 | 成都长城开发科技股份有限公司 | A data collection method for meter equipment based on concentrator |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN114048217B (en) | Incremental data synchronization method and device, electronic device and storage medium | |
CN112559505A (en) | Real-time data complementary acquisition device and method, computer equipment and storage medium | |
CN106815254B (en) | Data processing method and device | |
WO2015010482A1 (en) | Cross-system ems status estimation method based on cim/e interaction | |
CN112380046B (en) | Calculation result verification method, system, device, equipment and storage medium | |
US9413542B2 (en) | Managing data feeds | |
CN107655515A (en) | A kind of acquisition terminal and live defect elimination method of the main website without communication failure | |
CN109656797B (en) | Log data association method and device | |
CN109409948B (en) | Transaction abnormality detection method, apparatus, device, and computer-readable storage medium | |
CN112486748B (en) | Test system and test method thereof | |
CN110580220A (en) | Method and terminal device for measuring execution time of code segment | |
CN109743133A (en) | Data reconciliation method and device | |
CN103279702A (en) | Method for monitoring full-substation model file version during debugging of intelligent substation | |
CN112313964B (en) | Clearance data collection for low energy devices | |
CN103927384A (en) | Multi-hierarchy data synchronism method and system between heterogeneous systems through HTML script analysis | |
CN116400165A (en) | A smart grid fault monitoring method and system | |
CN105022834A (en) | Metering equipment calibrating method | |
CN114416596A (en) | A method, device, computer equipment and storage medium for testing application | |
CN114116488A (en) | Method, device and equipment for acquiring test coverage rate information and storage medium | |
CN114114134A (en) | Time synchronization method of intelligent electric energy meter | |
CN116208532B (en) | Abnormality detection method, abnormality detection device, storage medium, and electronic apparatus | |
JP2022544988A (en) | Sequential storage of collected data from heterogeneous sections | |
CN116582772B (en) | Electric energy data acquisition method, system, electronic equipment and medium | |
CN114683856B (en) | Vehicle mileage processing method, system, electronic device and storage medium | |
CN105049460A (en) | Smart preservation technology for power quality data |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20210326 |