CN116582213A - Intelligent data acquisition device based on time synchronization processing and time synchronization processing - Google Patents

Intelligent data acquisition device based on time synchronization processing and time synchronization processing Download PDF

Info

Publication number
CN116582213A
CN116582213A CN202310669916.5A CN202310669916A CN116582213A CN 116582213 A CN116582213 A CN 116582213A CN 202310669916 A CN202310669916 A CN 202310669916A CN 116582213 A CN116582213 A CN 116582213A
Authority
CN
China
Prior art keywords
time
data
setting
memory
mapping
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.)
Granted
Application number
CN202310669916.5A
Other languages
Chinese (zh)
Other versions
CN116582213B (en
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.)
Zhongdian Shanhe Digital Technology Nantong Co ltd
Original Assignee
Zhongdian Shanhe Digital Technology Nantong 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 Zhongdian Shanhe Digital Technology Nantong Co ltd filed Critical Zhongdian Shanhe Digital Technology Nantong Co ltd
Priority to CN202310669916.5A priority Critical patent/CN116582213B/en
Publication of CN116582213A publication Critical patent/CN116582213A/en
Application granted granted Critical
Publication of CN116582213B publication Critical patent/CN116582213B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/02Details
    • H04J3/06Synchronising arrangements
    • H04J3/0635Clock or time synchronisation in a network
    • H04J3/0685Clock or time synchronisation in a node; Intranode synchronisation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q9/00Arrangements in telecontrol or telemetry systems for selectively calling a substation from a main station, in which substation desired apparatus is selected for applying a control signal thereto or for obtaining measured values therefrom
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q2209/00Arrangements in telecontrol or telemetry systems
    • H04Q2209/80Arrangements in the sub-station, i.e. sensing device
    • H04Q2209/84Measuring functions
    • H04Q2209/845Measuring functions where the measuring is synchronized between sensing devices
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention provides an intelligent data acquisition device based on time synchronization processing and time synchronization processing, which relates to the technical field of data acquisition, and comprises a timer, a data acquisition module, a processor and a memory, wherein the timer is used for recording the whole flow time, the data acquisition module is used for acquiring data, the memory is used for storing the data, the timer, the data acquisition module and the memory are respectively in data connection with the processor, and the processor comprises a time synchronization module and a time synchronization module; the invention is used for solving the problem that the time and time sequence of data acquisition are difficult to synchronize when the data acquisition process fails or the time zones of the data acquisition are different in the existing data acquisition process.

Description

Intelligent data acquisition device based on time synchronization processing and time synchronization processing
Technical Field
The invention relates to the technical field of data acquisition, in particular to an intelligent data acquisition device based on time synchronization processing and time synchronization processing.
Background
The data acquisition refers to automatically acquiring non-electric quantity or electric quantity signals from analog and digital tested units such as sensors and other devices to be tested, and sending the signals to an upper computer for analysis and processing. The data acquisition system is a flexible and user-defined measurement system realized by combining measurement software and hardware products based on a computer or other special test platforms, and the existing full-data acquisition device can automatically match the data protocol of the accessed data acquisition device and the data protocol of the data receiving device, so that even if one set of process has a plurality of devices and a plurality of protocols, the full-data acquisition device can automatically match and perfectly acquire data to the receiving end.
In the process of time sequence synchronization of collected data of multiple groups of collecting devices, if multiple groups of collecting devices are in the same time zone area or belong to the same collecting system, as long as the collecting process does not generate faults, the time sequence of the collected data is rarely disordered, so that the time sequence synchronization of the collecting devices is mostly kept through improvement of the connection mode of data transmission in the prior art, for example, in China patent application document with the publication number of CN114979409A, a sports vision data collecting method adopting ring topology and time sequence synchronization is disclosed.
Disclosure of Invention
Aiming at the defects in the prior art, the time calibration is carried out on the data acquisition device through the time zone in which the data acquisition device is positioned, and the stored spare positions are set for the data breakpoint in the data acquisition process, so that the problem that the time and the time sequence of the data acquisition are difficult to synchronize when the data acquisition process fails or the time zone of the data acquisition is different in the existing data acquisition process can be solved.
In order to achieve the above object, the present invention provides an intelligent data acquisition device based on time synchronization processing and time synchronization processing, where the intelligent data acquisition device includes a timer, a data acquisition module, a processor and a memory, the timer is used for recording full flow time, the data acquisition module is used for acquiring data, the memory is used for storing data, the timer, the data acquisition module and the memory are respectively connected with the processor, and the processor includes a time synchronization module and a time synchronization module;
the time synchronization module comprises a time setting unit and a time calibration unit, wherein the time setting unit is used for setting initial time based on the time zone of the area where the timer is initially set, and the time calibration unit is used for setting reference time based on the time zone of the area where the timer is calibrated, comparing the reference time with the initial time and then performing calibration synchronization on the time of the timer;
the time sequence synchronization module comprises a mapping setting unit and a time sequence calibration unit, wherein the mapping setting unit is used for setting a data time acquisition interval and setting a mapping acquisition table according to the data time acquisition interval; the time sequence calibration unit is used for acquiring a data breakpoint time period, setting a spare storage bit of the mapping acquisition table according to the data breakpoint time period, and calibrating the time sequence of data acquisition according to the spare storage bit;
the memory is also used for storing the acquired data into a mapping acquisition table according to the acquired time sequence; the memory also comprises a buffer unit, wherein the buffer unit is used for monitoring the storage capacity of the memory and carrying out buffer processing on the acquired data based on the storage capacity.
Further, the time setting unit is configured with a time setting policy including: setting an area in which the timer is located at the time of initial setting as an initial setting area, setting time in a time zone in which the initial setting area is located as initial time, and setting the initial time of the timer.
Further, the time calibration unit is connected with a position acquisition unit and a manual input unit, and is configured with a position acquisition strategy, the position acquisition strategy includes: when the position acquisition unit is connected with a network, acquiring the home position of the I P address through the position acquisition unit, and determining the area of the timer during calibration through the acquired home position of the I P address;
when the position acquisition unit is not connected with a network, the manual input unit is used for inputting the area where the timer is positioned during calibration;
the area where the timer is located during calibration is set as a calibration reference area, and the time corresponding to the time zone where the calibration reference area is located is set as a reference time.
Further, the time alignment unit is further configured with a time alignment strategy comprising: and obtaining the time zone time difference between the reference time and the initial time, and adding the time zone time difference to the real-time of the timer to perform time calibration.
Further, the time alignment strategy further comprises: acquiring the real-time of the timer, and obtaining the running time difference between the initial time and the real-time of the timer;
performing time initial calibration by adding the running time difference to the real-time of the timer;
obtaining the real-time of the timer after the time initial calibration to obtain the initial calibration time, and performing time calibration by adding the time zone time difference to the initial calibration time.
Further, the map setting unit is configured with a map setting policy including: setting a mapping acquisition table as a mapping time table and a mapping data table;
setting a mapping time table according to the data time acquisition interval, and marking the time table;
and setting a data table for the mapping data table, marking the data table, and corresponding the marks of the data table with the marks of the time table in sequence number.
Further, the timing calibration unit is configured with a data breakpoint time acquisition strategy, which includes: acquiring a starting time point when the data is broken and a stopping time point when the data is recovered, and subtracting the starting time point when the data is broken from the stopping time point when the data is recovered to obtain a data break time period.
Further, the timing calibration unit is further configured with a timing calibration strategy, the timing calibration strategy comprising: dividing the data breakpoint time period by the data time acquisition interval to obtain a breakpoint interval number value, and adding one integer bit of the breakpoint interval number value to obtain a breakpoint interval reference number;
the method comprises the steps of referring to a plurality of time tables at intervals of a spare breakpoint from the starting time of a data breakpoint, recording marks of the spare time tables, and setting the marks as the spare marks;
and corresponding the time blank label with the label of the data table to obtain the data blank label, and carrying out blank processing on the data table corresponding to the data blank label.
Further, the cache unit is configured with a storage monitoring policy, the storage monitoring policy comprising: acquiring the residual memory in the storage capacity of the memory;
acquiring the data capacity of the memory stored in a first historical memory time period, setting the data capacity as a reference memory capacity, and dividing the reference memory capacity by the first memory time period to obtain a unit memory capacity;
dividing the residual memory by the unit memory capacity to obtain a reference memory duration;
dividing the reference storage time length by the data time acquisition interval to obtain a residual storage quantity value, and adding one to integer bits of the residual storage quantity value to obtain the residual data storage table number;
and when the number of the residual data storage tables is smaller than the first storage number threshold value, caching the acquired data.
Further, the caching unit is further configured with a caching policy, where the caching policy includes: when a signal for caching the acquired data is received, setting the real-time of a timer as a caching time point, extracting a time table after the caching time point in a mapping time table, and generating the mapping caching time table;
extracting a data table corresponding to the label of the mapping cache time table in the mapping data table to generate a mapping cache data table;
and caching the acquired data through the mapping cache time table and the mapping cache data table.
Further, the memory is further configured with a storage scrubbing policy, the storage scrubbing policy comprising: when a signal for caching the acquired data is received, a storage cleaning signal is output;
when the storage cleaning signal is received, cleaning the data according to the time of data storage from front to back, wherein the cleaned data is stored between a first storage proportion and a second storage proportion of the memory.
Further, the cache unit is further configured with a cache corresponding policy, where the cache corresponding policy includes: and after the memory is cleared, the cached data are remapped into the mapping time table and the mapping data table according to the storage relation of the mapping cache time table and the mapping cache data table.
The invention has the beneficial effects that: according to the invention, the time setting unit of the time synchronization module can set the initial time based on the time zone of the area where the timer is initially set, the time calibration unit can set the reference time based on the time zone of the area where the timer is calibrated, and the reference time is compared with the initial time to calibrate and synchronize the time of the timer;
the invention can set the data time acquisition interval through the mapping setting unit of the time sequence synchronization module, and set the mapping acquisition table according to the data time acquisition interval; the time sequence calibration unit can acquire the data breakpoint time period, the spare storage bits of the mapping acquisition table are set according to the data breakpoint time period, the time sequence of data acquisition is calibrated according to the spare storage bits, the time sequence correspondence of the data acquisition can be conveniently carried out through the mapping acquisition table, the time sequence controllability of the data acquisition is improved, after the mapping acquisition table is set, when the data acquisition fault occurs, the spare time sequence of the data acquisition can be conveniently carried out, and the time sequence correspondence accuracy of the data acquisition is maintained;
the memory further comprises a caching unit, the storage capacity of the memory can be monitored through the caching unit, the acquired data can be cached based on the storage capacity, the acquired data can be cached timely when the residual memory of the storage capacity of the memory is not more, and therefore the safety of data storage is guaranteed, meanwhile, the caching unit can better synchronize the time and time sequence of data acquisition by applying the mapping acquisition table, and the accuracy of data corresponding to the cached data is guaranteed.
Additional aspects of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Drawings
Other features, objects and advantages of the present invention will become more apparent upon reading of the detailed description of non-limiting embodiments, given with reference to the accompanying drawings in which:
FIG. 1 is a schematic block diagram of an intelligent data acquisition device of the present invention;
FIG. 2 is a block diagram of a processor of the present invention.
Detailed Description
It should be noted that the following detailed description is exemplary and is intended to provide further explanation of the invention. Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.
It is noted that the terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of exemplary embodiments according to the present invention.
Embodiments of the invention and features of the embodiments may be combined with each other without conflict.
Example 1
Referring to fig. 1, the present embodiment provides an intelligent data acquisition device based on time synchronization processing and time synchronization processing, which performs time calibration on the data acquisition device through a time zone in which the data acquisition device is located, and sets a stored spare position for a data breakpoint in a data acquisition process, so that the problem that in the existing data acquisition process, when the data acquisition process fails or the time zones of the data acquisition are different, the time and the time sequence of the data acquisition are difficult to synchronize can be solved.
Specifically, the intelligent data acquisition device comprises a timer, a data acquisition module, a processor and a memory, wherein the timer is used for recording the whole flow time, the data acquisition module is used for acquiring data, and the memory is used for storing the acquired data into a mapping acquisition table according to the acquired time sequence; the timer, the data acquisition module and the memory are respectively connected with the processor in a data mode;
referring to fig. 2, the processor includes a time synchronization module and a time synchronization module; the time synchronization module comprises a time setting unit and a time calibration unit, wherein the time setting unit is used for setting initial time based on a time zone of an area where a timer is initially set, the time setting unit is configured with a time setting strategy, and the time setting strategy comprises: setting an area in which the timer is located at the time of initial setting as an initial setting area, setting time in a time zone in which the initial setting area is located as initial time, and setting the initial time of the timer.
The time calibration unit is used for setting reference time based on the time zone of the area where the timer is calibrated, comparing the reference time with the initial time, and then calibrating and synchronizing the time of the timer; the time calibration unit is connected with the position acquisition unit and the manual input unit, the position acquisition unit is in signal connection with the Internet of the area, the attribution position of the I P address of the area can be acquired, the requirement of the area for the staff to input by himself is met through the manual input unit, the staff can input the position of the area through the manual input unit, and the time zone of the area is obtained through the position of the area.
Specifically, the time calibration unit performs time calibration by: when the position acquisition unit is connected with a network, acquiring the home position of the I P address through the position acquisition unit, and determining the area of the timer during calibration through the acquired home position of the I P address; when the position acquisition unit is not connected with a network, the manual input unit is used for inputting the area where the timer is positioned during calibration; setting the area where the timer is located in calibration as a calibration reference area, and setting the time corresponding to the time zone where the calibration reference area is located as reference time; and obtaining the time zone time difference between the reference time and the initial time, and adding the time zone time difference to the real-time of the timer to perform time calibration. When the existing time synchronization calibration is carried out, a plurality of enterprises can not be headache due to the fact that the time and the system time of the data acquisition equipment are not right, if the time is corrected manually, the fact that the protocol between the equipment is different is considered, and the time of the data acquisition equipment is inaccurate is taken into consideration, so that certain difficulty exists in data calibration.
The time sequence synchronization module comprises a mapping setting unit and a time sequence calibration unit, wherein the mapping setting unit is used for setting a data time acquisition interval and setting a mapping acquisition table according to the data time acquisition interval; the map setting unit is configured with a map setting policy including: setting the mapping acquisition table as a mapping time table and a mapping data table, setting the mapping time table as a time table according to a data time acquisition interval, marking the time table, for example, setting the data time acquisition interval as 10 seconds, and generating a next time table every 10 seconds; refer to the following two tables:
in the two tables, the upper-case table corresponds to the mapping data table, the lower-case table corresponds to the mapping time table, and the reference numerals can be Arabic numerals;
and setting a data table for the mapping data table, marking the data table, and corresponding the marks of the data table with the marks of the time table in sequence number.
The time sequence calibration unit is used for acquiring a data breakpoint time period, setting a spare storage bit of the mapping acquisition table according to the data breakpoint time period, and calibrating the time sequence of data acquisition according to the spare storage bit; the time sequence calibration unit is configured with a data breakpoint time acquisition strategy, and the data breakpoint time acquisition strategy comprises: acquiring a starting time point when the data is broken and a stopping time point when the data is recovered, and subtracting the starting time point when the data is broken from the stopping time point when the data is recovered to obtain a data break time period; the timing calibration unit is further configured with a timing calibration strategy comprising: dividing the data breakpoint time period by the data time acquisition interval to obtain a breakpoint interval number value, and adding one integer bit of the breakpoint interval number value to obtain a breakpoint interval reference number; for example, if the data breakpoint time period is 28 seconds, the calculated breakpoint interval number is 2.8, and the breakpoint interval reference number is 2+1=3; the method comprises the steps of referring to a plurality of time tables at intervals of a spare breakpoint from the starting time of a data breakpoint, recording marks of the spare time tables, and setting the marks as the spare marks;
corresponding the time blank marks with the marks of the data table to obtain data blank marks, and carrying out blank processing on the data table corresponding to the data blank marks;
in the existing data acquisition process, for example, two sections of data, namely "ABCDE" and "FGHIJ", are acquired, if a CD in the middle of the data in the "ABCDE" section is not successfully acquired, the latter data can be directly replaced in front, then the sequence becomes "abcfg" and "HIJKL", if the data is missing due to the fact that the time sequence is already wrong, then the reason of the data acquisition error cannot be found and verified, in the scheme of the embodiment, when the problem occurs, the following two tables are referred to, and if the time sequence error occurs during the data acquisition, the intelligent data acquisition device can prompt the vacancy on the basis of ensuring the original number sequence, as follows:
in specific implementation, the actual situation of the data breakpoint is that the data acquisition end of the intelligent data acquisition device has data acquisition failure, no data is acquired for a long time, for example, a connection port of a sensor at the acquisition end is loose, or a network of the sensor at the acquisition end adopting wireless transmission has fluctuation, at this time, the data acquisition has a spare space in a certain period, and the newly acquired data can be directly stored to a time sequence of the last data by adopting an original storage mode, so that the time sequence of the data acquisition is correspondingly disordered.
Example two
The second embodiment is different from the first embodiment in that the time calibration is further improved, specifically, the time calibration process of the time calibration unit further includes the following steps: acquiring the real-time of the timer, and obtaining the running time difference between the initial time and the real-time of the timer;
performing time initial calibration by adding the running time difference to the real-time of the timer;
the method comprises the steps of obtaining initial calibration time by obtaining real-time of a timer after time initial calibration, obtaining time zone time difference between reference time and the initial time, and carrying out time calibration by adding the time zone time difference to the initial calibration time.
Example III
Referring to fig. 1, the difference between the third embodiment and the first embodiment is that another fault problem of the data breakpoint in the data collection process is provided, the fault problem exists in the memory, when the storage capacity of the memory is insufficient, the intelligent data collection device cannot perform data storage, and the collected data will be lost, so that an improved technical solution for this situation is needed, for example, a string like "ABCDE", and a string is saved in a row, as follows:
A B C D E
F G H I J
K L M N O
however, if there is insufficient memory, such as when character G is acquired, the memory is full, then subsequent data will not be acquired, as shown in the following table:
A B C D E
F G
when the situation is met, the memory can only be cleared, and the memory space is released;
the specific solution is that a cache unit is set in a memory, the cache unit is used for monitoring the storage capacity of the memory, the cache unit is used for caching the acquired data based on the storage capacity, the cache unit is configured with a storage monitoring policy, and the storage monitoring policy comprises: acquiring the residual memory in the storage capacity of the memory;
acquiring the data capacity of the memory stored in a first historical memory time period, setting the data capacity as a reference memory capacity, and dividing the reference memory capacity by the first memory time period to obtain a unit memory capacity;
dividing the residual memory by the unit memory capacity to obtain a reference memory duration;
dividing the reference storage time length by the data time acquisition interval to obtain a residual storage quantity value, and adding one to integer bits of the residual storage quantity value to obtain the residual data storage table number;
when the number of the remaining data storage tables is smaller than a first storage number threshold, caching the acquired data, wherein the first storage number threshold corresponds to the number of the data tables when the method is implemented, and the first storage number threshold is set to be 10; setting a first storage quantity threshold value can reserve time for data cleaning;
however, only performing memory cleaning, there is a technical problem that how to synchronize the cached data with the previously stored data, and a caching policy needs to be configured in the caching unit, where the caching policy includes: when a signal for caching the acquired data is received, setting the real-time of a timer as a caching time point, extracting a time table after the caching time point in a mapping time table, and generating the mapping caching time table;
extracting a data table corresponding to the label of the mapping cache time table in the mapping data table to generate a mapping cache data table;
and caching the acquired data through the mapping cache time table and the mapping cache data table.
The memory is further configured with a memory scrubbing policy, the memory scrubbing policy comprising: when a signal for caching the acquired data is received, a storage cleaning signal is output;
when the storage cleaning signal is received, cleaning the data according to the time of data storage from front to back, wherein the cleaned data is stored between a first storage proportion and a second storage proportion of the memory.
Meanwhile, a cache corresponding strategy is also configured in the cache unit, and the cache corresponding strategy comprises: and after the memory is cleared, the cached data are remapped into the mapping time table and the mapping data table according to the storage relation of the mapping cache time table and the mapping cache data table.
Working principle: according to the invention, the time setting unit of the time synchronization module can set the initial time based on the time zone of the area where the timer is initially set, the time calibration unit can set the reference time based on the time zone of the area where the timer is calibrated, and the reference time is compared with the initial time to calibrate and synchronize the time of the timer;
the invention can set the data time acquisition interval through the mapping setting unit of the time sequence synchronization module, and set the mapping acquisition table according to the data time acquisition interval; the time sequence calibration unit can acquire the data breakpoint time period, the spare storage bits of the mapping acquisition table are set according to the data breakpoint time period, the time sequence of data acquisition is calibrated according to the spare storage bits, the time sequence correspondence of the data acquisition can be conveniently carried out through the mapping acquisition table, the time sequence controllability of the data acquisition is improved, after the mapping acquisition table is set, when the data acquisition fault occurs, the spare time sequence of the data acquisition can be conveniently carried out, and the time sequence correspondence accuracy of the data acquisition is maintained;
the memory further comprises a caching unit, the storage capacity of the memory can be monitored through the caching unit, the acquired data can be cached based on the storage capacity, the acquired data can be cached timely when the residual memory of the storage capacity of the memory is not more, and therefore the safety of data storage is guaranteed, meanwhile, the caching unit can better synchronize the time and time sequence of data acquisition by applying the mapping acquisition table, and the accuracy of data corresponding to the cached data is guaranteed.
It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media having computer-usable program code embodied therein. The storage medium may be implemented by any type or combination of volatile or nonvolatile Memory devices, such as static random access Memory (Static Random Access Memory, SRAM), electrically erasable Programmable Read-Only Memory (Electrically Erasable Programmable Read-Only Memory, EEPROM), erasable Programmable Read-Only Memory (Erasable Programmable Read Only Memory, EPROM), programmable Read-Only Memory (PROM), read-Only Memory (ROM), magnetic Memory, flash Memory, magnetic disk, or optical disk. These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
The above examples are only specific embodiments of the present invention, and are not intended to limit the scope of the present invention, but it should be understood by those skilled in the art that the present invention is not limited thereto, and that the present invention is described in detail with reference to the foregoing examples: any person skilled in the art may modify or easily conceive of the technical solution described in the foregoing embodiments, or perform equivalent substitution of some of the technical features, while remaining within the technical scope of the present disclosure; such modifications, changes or substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention, and are intended to be included in the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (12)

1. The intelligent data acquisition device based on time synchronization processing and time synchronization processing comprises a timer, a data acquisition module, a processor and a memory, and is characterized in that the timer is used for recording the whole flow time, the data acquisition module is used for acquiring data, the memory is used for storing the data, the timer, the data acquisition module and the memory are respectively in data connection with the processor, and the processor comprises a time synchronization module and a time synchronization module;
the time synchronization module comprises a time setting unit and a time calibration unit, wherein the time setting unit is used for setting initial time based on the time zone of the area where the timer is initially set, and the time calibration unit is used for setting reference time based on the time zone of the area where the timer is calibrated, comparing the reference time with the initial time and then performing calibration synchronization on the time of the timer;
the time sequence synchronization module comprises a mapping setting unit and a time sequence calibration unit, wherein the mapping setting unit is used for setting a data time acquisition interval and setting a mapping acquisition table according to the data time acquisition interval; the time sequence calibration unit is used for acquiring a data breakpoint time period, setting a spare storage bit of the mapping acquisition table according to the data breakpoint time period, and calibrating the time sequence of data acquisition according to the spare storage bit;
the memory is also used for storing the acquired data into a mapping acquisition table according to the acquired time sequence; the memory also comprises a buffer unit, wherein the buffer unit is used for monitoring the storage capacity of the memory and carrying out buffer processing on the acquired data based on the storage capacity.
2. The intelligent data acquisition device based on time synchronization processing and time synchronization processing according to claim 1, wherein the time setting unit is configured with a time setting policy, the time setting policy comprising: setting an area in which the timer is located at the time of initial setting as an initial setting area, setting time in a time zone in which the initial setting area is located as initial time, and setting the initial time of the timer.
3. The intelligent data acquisition device based on time synchronization processing and time synchronization processing according to claim 2, wherein the time calibration unit is connected with a position acquisition unit and a manual input unit, and is configured with a position acquisition strategy, the position acquisition strategy includes: when the position acquisition unit is connected with a network, acquiring the attribution position of the IP address through the position acquisition unit, and determining the area of the timer during calibration through the acquired attribution position of the IP address;
when the position acquisition unit is not connected with a network, the manual input unit is used for inputting the area where the timer is positioned during calibration;
the area where the timer is located during calibration is set as a calibration reference area, and the time corresponding to the time zone where the calibration reference area is located is set as a reference time.
4. The intelligent data acquisition device based on time synchronization processing and time synchronization processing of claim 3, wherein the time calibration unit is further configured with a time calibration strategy comprising: and obtaining the time zone time difference between the reference time and the initial time, and adding the time zone time difference to the real-time of the timer to perform time calibration.
5. The intelligent data acquisition device based on time synchronization processing and time synchronization processing of claim 4, wherein the time alignment strategy further comprises: acquiring the real-time of the timer, and obtaining the running time difference between the initial time and the real-time of the timer;
performing time initial calibration by adding the running time difference to the real-time of the timer;
obtaining the real-time of the timer after the time initial calibration to obtain the initial calibration time, and performing time calibration by adding the time zone time difference to the initial calibration time.
6. The intelligent data acquisition device based on time synchronization processing and time synchronization processing according to claim 1, wherein the map setting unit is configured with a map setting policy including: setting a mapping acquisition table as a mapping time table and a mapping data table;
setting a mapping time table according to the data time acquisition interval, and marking the time table;
and setting a data table for the mapping data table, marking the data table, and corresponding the marks of the data table with the marks of the time table in sequence number.
7. The intelligent data acquisition device based on time synchronization processing and time synchronization processing according to claim 6, wherein the time sequence calibration unit is configured with a data breakpoint time acquisition strategy, the data breakpoint time acquisition strategy comprising: acquiring a starting time point when the data is broken and a stopping time point when the data is recovered, and subtracting the starting time point when the data is broken from the stopping time point when the data is recovered to obtain a data break time period.
8. The intelligent data acquisition device based on time synchronization processing and time synchronization processing of claim 7, wherein the time sequence calibration unit is further configured with a time sequence calibration strategy comprising: dividing the data breakpoint time period by the data time acquisition interval to obtain a breakpoint interval number value, and adding one integer bit of the breakpoint interval number value to obtain a breakpoint interval reference number;
the method comprises the steps of referring to a plurality of time tables at intervals of a spare breakpoint from the starting time of a data breakpoint, recording marks of the spare time tables, and setting the marks as the spare marks;
and corresponding the time blank label with the label of the data table to obtain the data blank label, and carrying out blank processing on the data table corresponding to the data blank label.
9. The intelligent data acquisition device based on time synchronization processing and time synchronization processing according to claim 8, wherein the cache unit is configured with a storage monitoring policy, the storage monitoring policy comprising: acquiring the residual memory in the storage capacity of the memory;
acquiring the data capacity of the memory stored in a first historical memory time period, setting the data capacity as a reference memory capacity, and dividing the reference memory capacity by the first memory time period to obtain a unit memory capacity;
dividing the residual memory by the unit memory capacity to obtain a reference memory duration;
dividing the reference storage time length by the data time acquisition interval to obtain a residual storage quantity value, and adding one to integer bits of the residual storage quantity value to obtain the residual data storage table number;
and when the number of the residual data storage tables is smaller than the first storage number threshold value, caching the acquired data.
10. The intelligent data acquisition device based on time synchronization processing and time synchronization processing according to claim 9, wherein the caching unit is further configured with a caching policy, the caching policy comprising: when a signal for caching the acquired data is received, setting the real-time of a timer as a caching time point, extracting a time table after the caching time point in a mapping time table, and generating the mapping caching time table;
extracting a data table corresponding to the label of the mapping cache time table in the mapping data table to generate a mapping cache data table;
and caching the acquired data through the mapping cache time table and the mapping cache data table.
11. The intelligent data acquisition device based on time and time synchronized processing of claim 10, wherein the memory is further configured with a storage scrubbing policy comprising: when a signal for caching the acquired data is received, a storage cleaning signal is output;
when the storage cleaning signal is received, cleaning the data according to the time of data storage from front to back, wherein the cleaned data is stored between a first storage proportion and a second storage proportion of the memory.
12. The intelligent data acquisition device based on time synchronization processing and time synchronization processing according to claim 11, wherein the buffer unit is further configured with a buffer correspondence policy, the buffer correspondence policy comprising: and after the memory is cleared, the cached data are remapped into the mapping time table and the mapping data table according to the storage relation of the mapping cache time table and the mapping cache data table.
CN202310669916.5A 2023-06-07 2023-06-07 Intelligent data acquisition device based on time synchronization processing and time synchronization processing Active CN116582213B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310669916.5A CN116582213B (en) 2023-06-07 2023-06-07 Intelligent data acquisition device based on time synchronization processing and time synchronization processing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310669916.5A CN116582213B (en) 2023-06-07 2023-06-07 Intelligent data acquisition device based on time synchronization processing and time synchronization processing

Publications (2)

Publication Number Publication Date
CN116582213A true CN116582213A (en) 2023-08-11
CN116582213B CN116582213B (en) 2023-10-17

Family

ID=87541387

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310669916.5A Active CN116582213B (en) 2023-06-07 2023-06-07 Intelligent data acquisition device based on time synchronization processing and time synchronization processing

Country Status (1)

Country Link
CN (1) CN116582213B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080126408A1 (en) * 2006-06-23 2008-05-29 Invensys Systems, Inc. Presenting continuous timestamped time-series data values for observed supervisory control and manufacturing/production parameters
US20170090052A1 (en) * 2015-09-24 2017-03-30 Fairfield Industries Incorporated Determining node depth and water column transit velocity
CN109286460A (en) * 2017-07-21 2019-01-29 北京智云芯科技有限公司 A kind of method for synchronizing time and system based on wireless communication
CN112073460A (en) * 2020-08-03 2020-12-11 国网山东省电力公司电力科学研究院 Data acquisition unit, data transmission method and comprehensive energy monitoring system
CN114117121A (en) * 2021-10-25 2022-03-01 王甜甜 Data acquisition method for smart city

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080126408A1 (en) * 2006-06-23 2008-05-29 Invensys Systems, Inc. Presenting continuous timestamped time-series data values for observed supervisory control and manufacturing/production parameters
US20170090052A1 (en) * 2015-09-24 2017-03-30 Fairfield Industries Incorporated Determining node depth and water column transit velocity
CN109286460A (en) * 2017-07-21 2019-01-29 北京智云芯科技有限公司 A kind of method for synchronizing time and system based on wireless communication
CN112073460A (en) * 2020-08-03 2020-12-11 国网山东省电力公司电力科学研究院 Data acquisition unit, data transmission method and comprehensive energy monitoring system
CN114117121A (en) * 2021-10-25 2022-03-01 王甜甜 Data acquisition method for smart city

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
王文庆;刘超飞;: "可靠实时数据采集模型设计与开发", 电力信息与通信技术, no. 02 *

Also Published As

Publication number Publication date
CN116582213B (en) 2023-10-17

Similar Documents

Publication Publication Date Title
CN112101554B (en) Abnormality detection method and apparatus, device, and computer-readable storage medium
CN110120935B (en) Method and device for identifying anomalies in data flows in a communication network
CN105015565A (en) Automatic train fault information display method
CN104598342A (en) Internal storage detection method and device
CN116582213B (en) Intelligent data acquisition device based on time synchronization processing and time synchronization processing
CN114495497B (en) Method and system for judging and interpolating traffic abnormal data
US11588827B2 (en) Attack communication detection device, attack communication detection method, and program
CN112637137A (en) Optical fiber time synchronization monitoring method and system based on clock error dynamic model
CN105490777A (en) Satellite telemetry data outlier elimination pre-processing method
CN110493085A (en) Statistical method, system, electronic equipment and the medium of IPv6 active users
CN104809031B (en) Operate the method and storage arrangement of memory
CN110733443B (en) Vehicle-based instrument data processing method and device
CN111008905A (en) Method and device for high-precision measurement of beat of production equipment
CN103546242A (en) Method for detecting error rate of original data of remote sensing satellite
CN108353005B (en) Method and device for monitoring a control system
CN105609141A (en) Apparatus and method for automatically correcting access data of storage apparatus
CN114861774A (en) False data identification method and system in power grid
CN108459920B (en) Method for identifying and correcting wild values of test data
CN117539677A (en) Perception enabling platform of internet of things
EP1908199A1 (en) Virtual concatenation sequence mismatch defect detection
CN105512803B (en) Processing method and processing device of power data
CN114459523B (en) Calibration early warning method of online quality detection instrument
CN105527957A (en) Method for saving fault wave data
CN115511374A (en) Method, device and equipment for calculating correlation of process indexes and storage medium
CN110989531B (en) Data quality diagnosis method for cigarette shred making processing process

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
GR01 Patent grant
GR01 Patent grant