CN116165868B - Time calibration method and device for data acquisition instrument - Google Patents
Time calibration method and device for data acquisition instrument Download PDFInfo
- Publication number
- CN116165868B CN116165868B CN202310272475.5A CN202310272475A CN116165868B CN 116165868 B CN116165868 B CN 116165868B CN 202310272475 A CN202310272475 A CN 202310272475A CN 116165868 B CN116165868 B CN 116165868B
- Authority
- CN
- China
- Prior art keywords
- time
- instrument
- target
- information
- data acquisition
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 55
- 230000009471 action Effects 0.000 claims abstract description 8
- 238000012790 confirmation Methods 0.000 claims description 16
- 238000012986 modification Methods 0.000 claims description 9
- 230000004048 modification Effects 0.000 claims description 9
- 238000003860 storage Methods 0.000 claims description 6
- 230000008859 change Effects 0.000 claims description 3
- 238000004891 communication Methods 0.000 description 11
- 230000005540 biological transmission Effects 0.000 description 10
- 230000008569 process Effects 0.000 description 9
- 230000006870 function Effects 0.000 description 8
- 238000012545 processing Methods 0.000 description 8
- 238000010586 diagram Methods 0.000 description 4
- 238000012937 correction Methods 0.000 description 3
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000001514 detection method Methods 0.000 description 3
- 230000009286 beneficial effect Effects 0.000 description 2
- 238000013480 data collection Methods 0.000 description 2
- 238000013461 design Methods 0.000 description 2
- 230000006978 adaptation Effects 0.000 description 1
- 238000007405 data analysis Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000009776 industrial production Methods 0.000 description 1
- 239000007788 liquid Substances 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000009877 rendering Methods 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- XLYOFNOQVPJJNP-UHFFFAOYSA-N water Substances O XLYOFNOQVPJJNP-UHFFFAOYSA-N 0.000 description 1
Classifications
-
- G—PHYSICS
- G04—HOROLOGY
- G04G—ELECTRONIC TIME-PIECES
- G04G5/00—Setting, i.e. correcting or changing, the time-indication
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Electric Clocks (AREA)
Abstract
The application provides a time calibration method and a device of a data acquisition instrument, wherein the method comprises the following steps: responding to time calibration actions of a user, and acquiring first data acquisition information of a target instrument at a first time point, wherein the first data acquisition information comprises the first time information and first acquisition data; when the first time information has time deviation with preset first time information, changing the current meter time of the target meter; after the preset duration, receiving second data acquisition information sent by the target instrument at a second time point, wherein the second data acquisition information comprises second time information and second acquisition data; and when the second time information is the same as the preset second time information, confirming that the time adjustment of the target instrument is completed. By adopting the method, the problem that the accuracy of data sent by the data acquisition instrument is reduced due to the fact that the time of the instrument system is increased along with the use time of the instrument and certain deviation is generated between the time of the instrument system and the standard time of the server is solved.
Description
Technical Field
The application relates to the technical field of time calibration, in particular to a time calibration method and device of a data acquisition instrument.
Background
The data acquisition instrument comprises various water meters, electric meters, gas meters and the like, and is widely used in industrial production, equipment control and daily life. The data acquisition instrument can acquire data regularly according to actual demands and transmit the data back to the server. In the process of transmitting data by the instrument, the instrument can realize timed data transmission according to the system time of the instrument, and simultaneously record the time generated by collecting the data. The user can perform corresponding data analysis according to the change of the obtained data with time.
However, in the actual working process of the data acquisition instrument, the system time of the data acquisition instrument is increased along with the use time of the instrument, and certain deviation is generated between the system time and the standard time of the server, so that the accuracy of data sent by the data acquisition instrument is reduced.
Currently, there is a need for a time calibration method and apparatus for a data acquisition instrument to solve the above problems.
Disclosure of Invention
The application provides a time calibration method and device of a data acquisition instrument, which are used for solving the problem that the accuracy of data sent by the data acquisition instrument is reduced due to the fact that the time of an instrument system is increased along with the use time of the instrument and a certain deviation is generated between the time and the standard time of a server.
The first method of the application provides a time calibration method of a data acquisition instrument, which is applied to an instrument control server and comprises the following steps: responding to time calibration actions of a user, acquiring first data acquisition information of a target instrument at a first time point, wherein the first data acquisition information comprises first time information and first acquisition data, the first time information is used for representing instrument metering time of the target instrument, and the target instrument is used for sending the acquisition data to an instrument control server at intervals of preset time; when the first time information has time deviation with preset first time information, changing the current meter time of the target meter; after the preset duration, receiving second data acquisition information sent by the target instrument at a second time point, wherein the second data acquisition information comprises second time information and second acquisition data; and when the second time information is the same as the preset second time information, confirming that the time adjustment of the target instrument is completed.
By adopting the method, the deviation of the system time of the instrument is detected and corrected in the process that the data acquisition instrument sends the acquired data to the instrument control server, so that the accuracy of the acquired data received by the instrument control server is improved. And the data acquisition instrument transmits acquired data to the instrument control server, and meanwhile, whether the deviation correction of the system time of the detection instrument is finished or not is confirmed, so that the number of times of message transmission is reduced.
Optionally, changing the current meter time of the target meter specifically includes: when the time deviation is greater than or equal to a deviation threshold value, a first adjustment instruction is sent to a target instrument according to preset first time information; confirming that the target instrument receives a first adjustment instruction, wherein the first adjustment instruction is used for setting preset first time information as new instrument time, and the new instrument time is used for replacing the current instrument time of the target instrument so as to finish changing the time information of the target instrument.
By adopting the method, when the data acquisition instrument is confirmed to have deviation and has larger deviation, the present standard time data is directly sent to the data acquisition instrument to replace the system time of the data acquisition instrument, so that the time calibration of the data acquisition instrument is realized.
Optionally, changing the current meter time of the target meter specifically includes: when the time deviation is smaller than the deviation threshold value, a second adjusting instruction is sent to the target instrument according to the time deviation; confirming that the target instrument receives a second adjustment instruction; the second adjustment instruction is used for adding the time length corresponding to the time deviation to the current meter time of the target meter to obtain newly-built current meter time so as to finish changing the time information of the target meter.
By adopting the method, when the deviation of the data acquisition instrument is confirmed and the deviation amount is smaller, the data acquisition instrument can calibrate the system time through the deviation amount by sending the deviation amount of the system time and the standard time of the instrument to the data acquisition instrument. The stability of the meter system is prevented from being damaged by directly replacing the system time of the data acquisition meter by the standard time data. Meanwhile, the transmission quantity of data is reduced, and the fidelity in the information transmission process is improved.
Optionally, a first adjustment instruction is sent to the target instrument according to preset first time information; the method specifically comprises the following steps: after the first time point, a first adjustment instruction is sent to the target instrument at a third time point, and the third time point is before the second time point.
Optionally, the confirming that the target meter receives the second adjustment instruction specifically includes: and at a second time point, when receiving the return message of the target instrument, confirming that the target instrument receives a second adjustment instruction.
By adopting the method, the sending time of the first adjusting instruction is limited after the first time point and before the second time point, so that the number of times of communication required can be reduced when the instrument sends the acquired data at the second time point and the return message can be simultaneously generated when the instrument sends the acquired data at the second time point.
Optionally, the method further comprises: and adjusting the first time information according to the time deviation to obtain third time information so as to enable the time information in the data acquisition information of the target instrument to be matched with the acquired data.
By adopting the method, when the time information in the data acquisition information sent by the data acquisition instrument has deviation, the time information is corrected, so that the data acquisition information with higher accuracy is obtained.
Optionally, the method further comprises: when the second time information is different from the preset second time information, confirming that the time adjustment of the target instrument fails; and sending a time adjustment failure early warning to the user equipment so as to prompt the user to detect the target instrument.
By adopting the method, whether the time adjustment of the data acquisition instrument is successful or not is judged by comparing whether the second time information is the same as the preset second time information, and when the system time adjustment of the data acquisition instrument fails, a time adjustment failure early warning is timely sent to the user equipment, so that the time deviation of the data acquisition information sent by the data acquisition instrument later still exists is avoided.
The second aspect of the application provides a time calibration device of a data acquisition instrument, which is an instrument control server, wherein the instrument control server comprises a first data acquisition module, a time changing module, a second data acquisition module and a confirmation module; the first data acquisition module is used for responding to the time calibration action of the user, acquiring first data acquisition information of the target instrument at a first time point, wherein the first data acquisition information comprises first time information and first acquisition data, the first time information is used for representing the instrument metering time of the target instrument, and the target instrument is used for sending the acquisition data to the instrument control server at intervals of preset time; the time changing module is used for changing the current meter time of the target meter when the time deviation exists between the first time information and the preset first time information; the second data acquisition module is used for receiving second data acquisition information sent by the target instrument at a second time point after the preset time length is elapsed, wherein the second data acquisition information comprises second time information and second acquisition data; and the confirmation module is used for confirming that the time adjustment of the target instrument is completed when the second time information is the same as the preset second time information.
Optionally, the time modification module includes a first instruction unit and a first confirmation unit; the first instruction unit is used for sending a first adjustment instruction to the target instrument according to preset first time information when the time deviation is greater than or equal to a deviation threshold value; the first confirmation unit is used for confirming that the target instrument receives a first adjustment instruction, the first adjustment instruction is used for setting preset first time information to be new instrument time, and the new instrument time is used for replacing the current instrument time of the target instrument so as to conveniently finish changing the time information of the target instrument.
Optionally, the time modification module includes a second instruction unit and a second confirmation unit; the second index unit is used for sending a second adjustment instruction to the target instrument according to the time deviation when the time deviation is smaller than the deviation threshold value; the second confirmation unit is used for confirming that the target instrument receives a second adjustment instruction; the second adjustment instruction is used for adding the time length corresponding to the time deviation to the current meter time of the target meter to obtain newly-built current meter time so as to finish changing the time information of the target meter.
Optionally, the first instruction unit is specifically configured to send the first adjustment instruction to the target meter at a third time point after the first time point, where the third time point is before the second time point.
Optionally, the first confirmation unit is specifically configured to confirm that the target meter receives the second adjustment instruction when receiving the return message of the target meter at the second time point.
Optionally, the meter control server further comprises an information adjustment module; and the information adjustment module is used for adjusting the first time information according to the time deviation to obtain third time information so as to enable the time information in the data acquisition information of the target instrument to be matched with the acquired data.
Optionally, the meter control server further comprises an early warning module; the early warning module is used for confirming that the time adjustment of the target instrument fails when the second time information is different from the preset second time information; and sending a time adjustment failure early warning to the user equipment so as to prompt the user to detect the target instrument.
A third aspect of the application provides an electronic device comprising a processor, a memory, a user interface and a network interface, the memory for storing instructions, the user interface and the network interface for communicating to other devices, the processor for executing the instructions stored in the memory to cause the electronic device to perform the method of any of the above.
A fourth aspect of the application provides a computer readable storage medium storing instructions that, when executed, perform a method of any one of the above.
Compared with the related art, the application has the beneficial effects that: the accuracy of the acquired data received by the instrument control server is improved by detecting the deviation of the instrument system time and correcting the deviation in the process that the data acquisition instrument sends the acquired data to the instrument control server. And the data acquisition instrument transmits acquired data to the instrument control server, and meanwhile, whether the deviation correction of the system time of the detection instrument is finished or not is confirmed, so that the number of times of message transmission is reduced. When the deviation of the data acquisition instrument is confirmed and the deviation amount is large, the current standard time data is directly sent to the data acquisition instrument to replace the system time of the data acquisition instrument, so that the time calibration of the data acquisition instrument is realized. When the deviation of the data acquisition instrument is confirmed and the deviation amount is smaller, the data acquisition instrument can calibrate the system time through the deviation amount by sending the deviation amount of the system time and the standard time of the instrument to the data acquisition instrument. The stability of the meter system is prevented from being damaged by directly replacing the system time of the data acquisition meter by the standard time data. Meanwhile, the transmission quantity of data is reduced, and the fidelity in the information transmission process is improved. By limiting the sending time of the first adjustment instruction after the first time point and before the second time point, when the meter sends the acquired data of the second time point at the second time point, the times of communication need to be reduced when the return message can occur at the same time. When the time information in the data acquisition information sent by the data acquisition instrument has deviation, correcting the time information to obtain the data acquisition information with higher accuracy. And judging whether the time adjustment of the data acquisition instrument is successful or not by comparing whether the second time information is the same as the preset second time information, and timely sending a time adjustment failure early warning to the user equipment when the system time adjustment of the data acquisition instrument fails, so that the situation that the time deviation exists in the data acquisition information sent by the data acquisition instrument later is avoided.
Drawings
Fig. 1 is a first flow chart of a time calibration method of a data acquisition instrument according to an embodiment of the present application;
FIG. 2 is a schematic diagram of a second flow chart of a time calibration method of a data acquisition instrument according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of a time calibration device of a data acquisition instrument according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Reference numerals: 301. a first data acquisition module; 302. a time modification module; 303. a second data acquisition module; 304. a confirmation module; 400. an electronic device; 401. a processor; 402. a communication bus; 403. a user interface; 404. a network interface; 405. a memory.
Detailed Description
In order to make the technical solutions in the present specification better understood by those skilled in the art, the technical solutions in the embodiments of the present specification will be clearly and completely described below with reference to the drawings in the embodiments of the present specification, and it is obvious that the described embodiments are only some embodiments of the present application, not all embodiments.
In describing embodiments of the present application, words such as "exemplary," "such as" or "for example" are used to mean serving as examples, illustrations or explanations. Any embodiment or design described herein as "illustrative," "such as" or "for example" is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "illustratively," "such as" or "for example," etc., is intended to present related concepts in a concrete fashion.
In the description of embodiments of the present application, the terms "first," "second," and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the indicated technical characteristics. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include one or more such feature. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless expressly specified otherwise.
The data acquisition instrument in the embodiment of the application comprises various precise instruments for acquiring data such as liquid, gas, hydrological and the like, and the acquired data can be considered to have time certainty under specific conditions so as to achieve more accurate data processing results in the process of using the acquired data.
The method in the embodiment of the application can be applied to the instrument control server to solve the problem of the related technology. The time of the instrument system is increased along with the use time of the instrument, and certain deviation is generated between the time and the standard time of the server, so that the accuracy of data sent by the data acquisition instrument is reduced. In the embodiment of the application, the target instrument is used for representing various data acquisition instruments.
Fig. 1 is a flowchart of a time calibration method of a data acquisition instrument according to an embodiment of the present application. Comprising steps S11-S14.
S11, responding to time calibration actions of a user, acquiring first data acquisition information of a target instrument at a first time point, wherein the first data acquisition information comprises first time information and first acquisition data, the first time information is used for representing instrument metering time of the target instrument, and the target instrument is used for sending the acquisition data to an instrument control server at intervals of preset time.
Specifically, in the embodiment of the application, the target instrument can send the data acquisition information of each time point to the instrument control server according to the interval corresponding to the preset time length by setting the preset time length for the target instrument. The meter control server responds to the time calibration action of the user, and obtains first data acquisition information of the target meter at a first time point, wherein the first data acquisition information comprises first time information and first acquisition data, the first time information is used for representing meter metering time of the target meter, and in the embodiment of the application, the meter metering time is the time of the first time point obtained according to the system time of the target meter. In the embodiment of the present application, the first time point, the second time point, and the third time point are used to represent the actual time when the target instrument performs data acquisition at a certain actual time point. The interval between each adjacent time points can be considered as a preset duration.
And S12, when the first time information has time deviation with the preset first time information, changing the current meter time of the target meter.
In one possible implementation, as shown in FIG. 2, step S12 includes S121-S122.
S121, when the time deviation is greater than or equal to a deviation threshold value, a first adjustment instruction is sent to a target instrument according to preset first time information; confirming that the target instrument receives a first adjustment instruction, wherein the first adjustment instruction is used for setting preset first time information as new instrument time, and the new instrument time is used for replacing the current instrument time of the target instrument so as to finish changing the time information of the target instrument.
In the embodiment of the application, the first time information T is preset 1 And at the first time point, the standard time acquired by the meter control server.
For example, in the embodiment of the present application, the first data acquisition information of the target meter is acquired at the first time point, and the first time information t in the first data acquisition information is compared 1 And preset first time information T 1 When the difference of the first time information t 1 And preset first time information T 1 When the deviation is large, the instrument control server sends a first adjustment instruction to the target instrument, and the coding information attached to the first adjustment instruction comprises first time information. The target instrument can reset the preset first time information to the current time of the instrument according to the first time information, and the system time information of the target instrument is changed.
In one possible implementation, a first adjustment instruction is sent to the target instrument according to preset first time information; the method specifically comprises the following steps: after the first time point, a first adjustment instruction is sent to the target instrument at a third time point, and the third time point is before the second time point.
S122, when the time deviation is smaller than the deviation threshold, a second adjustment instruction is sent to the target instrument according to the time deviation; confirming that the target instrument receives a second adjustment instruction; the second adjustment instruction is used for adding the time length corresponding to the time deviation to the current meter time of the target meter to obtain newly-built current meter time so as to finish changing the time information of the target meter.
For example, in the embodiment of the present application, when the first time information t 1 And preset first time information T 1 And when the deviation is smaller, the instrument control server sends a second adjustment instruction to the target instrument, and the coding information attached to the second adjustment instruction comprises a data value corresponding to the time deviation. The target instrument can reset the current time of the instrument according to the time deviation, and the system time information of the target instrument is changed.
In an embodiment of the present application, the first time information t 1 And preset first time information T 1 The magnitude of the deviation of (2) determines the different adjustment commands. When the time deviation is smaller, a corresponding second instruction can be sent, so that the target instrument directly modifies the system time in a small amplitude, and the system time modification can be completed. When the time deviation time is smaller, according to the preset first time information T 1 The system time of the target instrument is replaced, and the system stability of the target instrument is greatly influenced. Considering the above, when the time deviation time is large, the first time information T is preset 1 The system time of the target meter is replaced.
In one possible implementation manner, the confirming that the target meter receives the second adjustment instruction specifically includes: and at a second time point, when receiving the return message of the target instrument, confirming that the target instrument receives a second adjustment instruction.
And S13, after the preset time length, receiving second data acquisition information sent by the target instrument at a second time point, wherein the second data acquisition information comprises second time information and second acquisition data.
For example, in the embodiment of the present application, after the target meter receives the second adjustment instruction, the target meter sends the data acquisition information to the meter control server according to the interval of the preset duration. Thus, at a second point in time, the return message of the target meter is sent to the meter control server along with the second data information.
And S14, when the second time information is the same as the preset second time information, confirming that the time adjustment of the target instrument is completed.
At a second time point, the meter control server receives a return message of the target meter and simultaneously receives second data information sent by the target meter. At this time, it can be considered that the target meter completes the adjustment of the system time according to the second adjustment instruction. Meanwhile, second time information in the second data information transmitted at the second time point is determined according to the adjusted system time. Therefore, the meter control server can confirm whether the time adjustment of the target meter is finished by comparing the second time information with the preset second time information. When the second time information is the same as the preset second time information, confirming that the time adjustment of the target instrument is completed; and when the second time information is different from the preset second time information, confirming that the time adjustment of the target instrument fails.
In one possible embodiment, the first time information is adjusted according to the time deviation to obtain third time information, so that the time information in the data acquisition information of the target instrument is matched with the acquired data.
For example, when the second time information is the same as the preset second time information, the completion of the time adjustment of the target meter is confirmed, and at this time, the first data information acquired at the first time point exists in the meter control server, and since the first time information in the first data information is inaccurate, the first time information can be calibrated after the system time calibration of the target meter is completed, so as to obtain more accurate first data information.
In one possible implementation manner, when the second time information is different from the preset second time information, confirming that the time adjustment of the target instrument fails; and sending a time adjustment failure early warning to the user equipment so as to prompt the user to detect the target instrument.
The embodiment of the application has the beneficial effects that the method can realize: the accuracy of the acquired data received by the instrument control server is improved by detecting the deviation of the instrument system time and correcting the deviation in the process that the data acquisition instrument sends the acquired data to the instrument control server. And the data acquisition instrument transmits acquired data to the instrument control server, and meanwhile, whether the deviation correction of the system time of the detection instrument is finished or not is confirmed, so that the number of times of message transmission is reduced. When the deviation of the data acquisition instrument is confirmed and the deviation amount is large, the current standard time data is directly sent to the data acquisition instrument to replace the system time of the data acquisition instrument, so that the time calibration of the data acquisition instrument is realized. When the deviation of the data acquisition instrument is confirmed and the deviation amount is smaller, the data acquisition instrument can calibrate the system time through the deviation amount by sending the deviation amount of the system time and the standard time of the instrument to the data acquisition instrument. The stability of the meter system is prevented from being damaged by directly replacing the system time of the data acquisition meter by the standard time data. Meanwhile, the transmission quantity of data is reduced, and the fidelity in the information transmission process is improved. By limiting the sending time of the first adjustment instruction after the first time point and before the second time point, when the meter sends the acquired data of the second time point at the second time point, the times of communication need to be reduced when the return message can occur at the same time. When the time information in the data acquisition information sent by the data acquisition instrument has deviation, correcting the time information to obtain the data acquisition information with higher accuracy. And judging whether the time adjustment of the data acquisition instrument is successful or not by comparing whether the second time information is the same as the preset second time information, and timely sending a time adjustment failure early warning to the user equipment when the system time adjustment of the data acquisition instrument fails, so that the situation that the time deviation exists in the data acquisition information sent by the data acquisition instrument later is avoided.
The embodiment of the application provides a time calibration device of a data acquisition instrument, and as shown in the figure, an instrument control server comprises a first data acquisition module 301, a time modification module 302, a second data acquisition module 303 and a confirmation module 304.
The first data acquisition module 301 is configured to acquire, at a first time point, first data acquisition information of a target meter in response to a time calibration action of a user, where the first data acquisition information includes first time information and first acquisition data, the first time information is used to represent a meter metering time of the target meter, and the target meter is used to send the acquisition data to a meter control server at intervals of a preset duration.
The time changing module 302 changes the current meter time of the target meter when the first time information has time deviation from the preset first time information.
And the second data acquisition module 303 is configured to receive, after a preset period of time, second data acquisition information sent by the target meter at a second time point, where the second data acquisition information includes second time information and second acquisition data.
And the confirmation module 304 is configured to confirm that the time adjustment of the target meter is completed when the second time information is the same as the preset second time information.
In one possible implementation, the time modification module 302 includes a first instruction unit and a first acknowledgement unit; the first instruction unit is used for sending a first adjustment instruction to the target instrument according to preset first time information when the time deviation is greater than or equal to a deviation threshold value; the first confirmation unit is used for confirming that the target instrument receives a first adjustment instruction, the first adjustment instruction is used for setting preset first time information to be new instrument time, and the new instrument time is used for replacing the current instrument time of the target instrument so as to conveniently finish changing the time information of the target instrument.
In one possible implementation, the time modification module 302 includes a second instruction unit and a second confirmation unit; the second index unit is used for sending a second adjustment instruction to the target instrument according to the time deviation when the time deviation is smaller than the deviation threshold value; the second confirmation unit is used for confirming that the target instrument receives a second adjustment instruction; the second adjustment instruction is used for adding the time length corresponding to the time deviation to the current meter time of the target meter to obtain newly-built current meter time so as to finish changing the time information of the target meter.
In one possible embodiment, the first command unit is specifically configured to send the first adjustment command to the target meter at a third time point after the first time point, and the third time point is before the second time point.
In one possible implementation, the first confirmation unit is specifically configured to confirm that the target meter receives the second adjustment instruction when receiving the return message of the target meter at the second time point.
In one possible embodiment, the meter control server further comprises an information adjustment module; and the information adjustment module is used for adjusting the first time information according to the time deviation to obtain third time information so as to enable the time information in the data acquisition information of the target instrument to be matched with the acquired data.
In one possible implementation, the meter control server further includes an early warning module; the early warning module is used for confirming that the time adjustment of the target instrument fails when the second time information is different from the preset second time information; and sending a time adjustment failure early warning to the user equipment so as to prompt the user to detect the target instrument.
It should be noted that: in the device provided in the above embodiment, when implementing the functions thereof, only the division of the above functional modules is used as an example, in practical application, the above functional allocation may be implemented by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules, so as to implement all or part of the functions described above. In addition, the embodiments of the apparatus and the method provided in the foregoing embodiments belong to the same concept, and specific implementation processes of the embodiments of the method are detailed in the method embodiments, which are not repeated herein.
Referring to fig. 4, a schematic structural diagram of an electronic device is provided in an embodiment of the present application. As shown in fig. 4, the electronic device 400 may include: at least one processor 401, at least one network interface 404, a user interface 403, a memory 405, and at least one communication bus 402.
Wherein communication bus 402 is used to enable connected communications between these components.
The user interface 403 may include a Display screen (Display) and a Camera (Camera), and the optional user interface 403 may further include a standard wired interface and a standard wireless interface.
The network interface 404 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface), among others.
Wherein the processor 401 may include one or more processing cores. The processor 401 connects the various parts within the entire server using various interfaces and lines, performs various functions of the server and processes data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 405, and invoking data stored in the memory 405. Alternatively, the processor 401 may be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), programmable logic array (Programmable Logic Array, PLA). The processor 401 may integrate one or a combination of several of a central processing unit (Central Processing Unit, CPU), an image processor (Graphics Processing Unit, GPU), a modem, etc. The CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing the content required to be displayed by the display screen; the modem is used to handle wireless communications. It will be appreciated that the modem may not be integrated into the processor 401 and may be implemented by a single chip.
The Memory 405 may include a random access Memory (Random Access Memory, RAM) or a Read-Only Memory (Read-Only Memory). Optionally, the memory 405 includes a non-transitory computer readable medium (non-transitory computer-readable storage medium). Memory 405 may be used to store instructions, programs, code sets, or instruction sets. The memory 405 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing the above-described various method embodiments, etc.; the storage data area may store data or the like involved in the above respective method embodiments. The memory 405 may also optionally be at least one storage device located remotely from the aforementioned processor 401. As shown in fig. 4, an operating system, a network communication module, a user interface module, and a time-aligned application of the data collection meter may be included in the memory 405, which is a type of computer storage medium.
In the electronic device 400 shown in fig. 4, the user interface 403 is mainly used as an interface for providing input for a user, and obtains data input by the user; and processor 401 may be used to invoke a time-aligned application of the data collection meter stored in memory 405, which when executed by one or more processors, causes electronic device 400 to perform the method as described in one or more of the embodiments above.
It should be noted that, for simplicity of description, the foregoing method embodiments are all described as a series of acts, but it should be understood by those skilled in the art that the present application is not limited by the order of acts described, as some steps may be performed in other orders or concurrently in accordance with the present application. Further, those skilled in the art will also appreciate that the embodiments described in the specification are all of the preferred embodiments, and that the acts and modules referred to are not necessarily required for the present application.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and for parts of one embodiment that are not described in detail, reference may be made to related descriptions of other embodiments.
In the several embodiments provided by the present application, it should be understood that the disclosed apparatus may be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative, such as the division of the units, merely a logical function division, and there may be additional manners of dividing the actual implementation, such as multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some service interface, device or unit indirect coupling or communication connection, electrical or otherwise.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable memory. Based on this understanding, the technical solution of the present application may be embodied essentially or partly in the form of a software product, or all or part of the technical solution, which is stored in a memory, and includes several instructions for causing a computer device (which may be a personal computer, a server, a network device, or the like) to perform all or part of the steps of the method according to the embodiments of the present application. And the aforementioned memory includes: various media capable of storing program codes, such as a U disk, a mobile hard disk, a magnetic disk or an optical disk.
The foregoing is merely exemplary embodiments of the present disclosure and is not intended to limit the scope of the present disclosure. That is, equivalent changes and modifications are contemplated by the teachings of this disclosure, which fall within the scope of the present disclosure. Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains.
Claims (7)
1. A method for time calibration of a data acquisition meter, for use in a meter control server, the method comprising:
responding to time calibration actions of a user, acquiring first data acquisition information of a target instrument at a first time point, wherein the first data acquisition information comprises first time information and first acquisition data, the first time information is used for representing instrument metering time of the target instrument, and the target instrument is used for sending the acquisition data to an instrument control server at intervals of preset time;
when the first time information has time deviation with preset first time information, changing the current meter time of the target meter;
after the preset duration, receiving second data acquisition information sent by the target instrument at a second time point, wherein the second data acquisition information comprises second time information and second acquisition data;
when the second time information is the same as the preset second time information, confirming that the time adjustment of the target instrument is completed;
the changing the current meter time of the target meter specifically comprises the following steps:
when the time deviation is greater than or equal to a deviation threshold value, a first adjustment instruction is sent to the target instrument according to the preset first time information;
confirming that the target instrument receives the first adjustment instruction, wherein the first adjustment instruction is used for setting the preset first time information to be new instrument time, and the new instrument time is used for replacing the current instrument time of the target instrument so as to finish changing the time information of the target instrument;
when the time deviation is smaller than a deviation threshold value, a second adjustment instruction is sent to the target instrument according to the time deviation;
confirming that the target instrument receives the second adjustment instruction;
the second adjustment instruction is used for adding the time length corresponding to the time deviation to the current meter time of the target meter to obtain new current meter time so as to finish the change of the time information of the target meter;
the first adjustment instruction is sent to the target instrument according to the preset first time information; the method specifically comprises the following steps:
after the first time point, sending a first adjustment instruction to the target instrument at a third time point, wherein the third time point is before the second time point;
the preset first time information is standard time acquired by the instrument control server at the first time point.
2. The method of claim 1, wherein the confirming that the target meter received the second adjustment instruction specifically comprises:
and at the second time point, when receiving a return message of the target instrument, confirming that the target instrument receives the second adjustment instruction.
3. The method according to claim 1, wherein the method further comprises:
and adjusting the first time information according to the time deviation to obtain third time information so as to enable the time information in the data acquisition information of the target instrument to be matched with the acquired data.
4. The method according to claim 1, wherein the method further comprises:
when the second time information is different from the preset second time information, confirming that the time adjustment of the target instrument fails;
and sending a time adjustment failure early warning to user equipment so as to prompt the user to detect the target instrument.
5. The time calibration device of the data acquisition instrument is characterized by being an instrument control server, wherein the instrument control server comprises a first data acquisition module (301), a time modification module (302), a second data acquisition module (303) and a confirmation module (304);
the first data acquisition module (301) is configured to respond to a time calibration action of a user, and acquire first data acquisition information of a target meter at a first time point, where the first data acquisition information includes first time information and first acquisition data, the first time information is used to represent meter metering time of the target meter, and the target meter is used to send the acquisition data to a meter control server at intervals of a preset duration;
the time changing module (302) is used for changing the current meter time of the target meter when the first time information has time deviation from preset first time information;
the second data acquisition module (303) is configured to receive second data acquisition information sent by the target instrument at a second time point after the preset duration, where the second data acquisition information includes second time information and second acquired data;
the confirmation module (304) is configured to confirm that time adjustment of the target meter is completed when the second time information is the same as a preset second time information;
the changing the current meter time of the target meter specifically comprises the following steps:
when the time deviation is greater than or equal to a deviation threshold value, a first adjustment instruction is sent to the target instrument according to the preset first time information;
confirming that the target instrument receives the first adjustment instruction, wherein the first adjustment instruction is used for setting the preset first time information to be new instrument time, and the new instrument time is used for replacing the current instrument time of the target instrument so as to finish changing the time information of the target instrument;
when the time deviation is smaller than a deviation threshold value, a second adjustment instruction is sent to the target instrument according to the time deviation;
confirming that the target instrument receives the second adjustment instruction;
the second adjustment instruction is used for adding the time length corresponding to the time deviation to the current meter time of the target meter to obtain new current meter time so as to finish the change of the time information of the target meter;
the first adjustment instruction is sent to the target instrument according to the preset first time information; the method specifically comprises the following steps:
after the first time point, sending a first adjustment instruction to the target instrument at a third time point, wherein the third time point is before the second time point;
the preset first time information is standard time acquired by the instrument control server at the first time point.
6. A computer readable storage medium storing instructions which, when executed, perform the method of any one of claims 1-4.
7. An electronic device comprising a processor (401), a memory (405), a user interface (403) and a network interface (404), the memory (405) being configured to store instructions, the user interface (403) and the network interface (404) being configured to communicate to other devices, the processor (401) being configured to execute the instructions stored in the memory (405) to cause the electronic device (400) to perform the method according to any of claims 1-4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310272475.5A CN116165868B (en) | 2023-03-20 | 2023-03-20 | Time calibration method and device for data acquisition instrument |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310272475.5A CN116165868B (en) | 2023-03-20 | 2023-03-20 | Time calibration method and device for data acquisition instrument |
Publications (2)
Publication Number | Publication Date |
---|---|
CN116165868A CN116165868A (en) | 2023-05-26 |
CN116165868B true CN116165868B (en) | 2023-12-15 |
Family
ID=86414782
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310272475.5A Active CN116165868B (en) | 2023-03-20 | 2023-03-20 | Time calibration method and device for data acquisition instrument |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116165868B (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101410765A (en) * | 2006-03-31 | 2009-04-15 | 卡西欧计算机株式会社 | Time correction control apparatus and method of time correction control |
JP2013168884A (en) * | 2012-02-16 | 2013-08-29 | Nec Saitama Ltd | Time synchronization system, time transmission apparatus, time reception apparatus, time synchronization method and program |
WO2019012636A1 (en) * | 2017-07-12 | 2019-01-17 | 三菱電機株式会社 | Time correction device and time correction method |
CN110940948A (en) * | 2019-11-22 | 2020-03-31 | 广东电力交易中心有限责任公司 | Method, device and equipment for calculating settlement deviation generated by ammeter clock drift |
CN113783649A (en) * | 2021-08-06 | 2021-12-10 | 深圳市科陆电子科技股份有限公司 | Terminal timing method, system, electronic equipment and storage medium |
CN115657440A (en) * | 2022-10-14 | 2023-01-31 | 广西电网有限责任公司柳州供电局 | Manual adjustment timing and intelligent automatic timing device for electric energy meter clock |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP6866760B2 (en) * | 2017-05-17 | 2021-04-28 | カシオ計算機株式会社 | Electronic clock, date and time acquisition control method and program |
-
2023
- 2023-03-20 CN CN202310272475.5A patent/CN116165868B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101410765A (en) * | 2006-03-31 | 2009-04-15 | 卡西欧计算机株式会社 | Time correction control apparatus and method of time correction control |
JP2013168884A (en) * | 2012-02-16 | 2013-08-29 | Nec Saitama Ltd | Time synchronization system, time transmission apparatus, time reception apparatus, time synchronization method and program |
WO2019012636A1 (en) * | 2017-07-12 | 2019-01-17 | 三菱電機株式会社 | Time correction device and time correction method |
CN110940948A (en) * | 2019-11-22 | 2020-03-31 | 广东电力交易中心有限责任公司 | Method, device and equipment for calculating settlement deviation generated by ammeter clock drift |
CN113783649A (en) * | 2021-08-06 | 2021-12-10 | 深圳市科陆电子科技股份有限公司 | Terminal timing method, system, electronic equipment and storage medium |
CN115657440A (en) * | 2022-10-14 | 2023-01-31 | 广西电网有限责任公司柳州供电局 | Manual adjustment timing and intelligent automatic timing device for electric energy meter clock |
Also Published As
Publication number | Publication date |
---|---|
CN116165868A (en) | 2023-05-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20220205834A1 (en) | Calibration Precision Enhancement Method for Digital Scale | |
CN109587001A (en) | A kind of performance indicator method for detecting abnormality and device | |
CN111045921A (en) | Automatic interface testing method and device, computer equipment and storage medium | |
JP6736706B2 (en) | Data analysis processing method of elasticity detection device and elasticity detection device | |
KR102247051B1 (en) | Apparatus and method for performing a simple urinalysis | |
KR101781415B1 (en) | Apparatus and Method for Managing Learning Ability, Apparatus for Providing Cloud Computing Service and Method for Managing Learning Ability by Using Cloud Computing | |
CN104013410A (en) | Method, device and system for audio playing | |
US11860027B2 (en) | Weight measurement system, weigh head apparatus and methods | |
CN116165868B (en) | Time calibration method and device for data acquisition instrument | |
CN114166913B (en) | Automatic calibration method and device, system for monitoring analyte concentration level | |
CN109341836B (en) | Method and device for calibrating symmetrical platform | |
JP5862614B2 (en) | Field device and data processing method | |
CN112423337B (en) | Network coverage diagnosis model construction method, network coverage diagnosis method and device | |
CN112566170A (en) | Network quality evaluation method, device, server and storage medium | |
CN111796938A (en) | Cluster dynamic concurrency control method and device | |
CN110108296A (en) | Step counting method, electronic equipment and computer readable storage medium | |
CN115051762B (en) | Line loss calibration method, device, system, medium and equipment | |
JP2017050600A (en) | Transmitter detection system, server, transmitter detection method and program | |
CN113518304A (en) | Indoor positioning method and device | |
CN111307195A (en) | Universal sensor calibration method, device, equipment and computer readable storage medium | |
CN115146007A (en) | Map data processing method and device | |
CN111273221A (en) | Sonar receiving beam horizontal directivity measuring method, device and storage medium | |
CN114885231B (en) | Communication protocol self-adaptive signal acquisition method, system, terminal and medium | |
CN116974908B (en) | Cloud platform-based software compatibility testing method and system | |
CN117129236B (en) | Remote control-based motor vehicle equipment calibration detection method and system |
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 |