CN110809041A - Data synchronization method and device, electronic equipment and storage medium - Google Patents
Data synchronization method and device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN110809041A CN110809041A CN201911048188.6A CN201911048188A CN110809041A CN 110809041 A CN110809041 A CN 110809041A CN 201911048188 A CN201911048188 A CN 201911048188A CN 110809041 A CN110809041 A CN 110809041A
- Authority
- CN
- China
- Prior art keywords
- time
- sensing device
- frame recording
- service request
- time service
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 61
- 230000004044 response Effects 0.000 claims abstract description 65
- 230000001360 synchronised effect Effects 0.000 claims abstract description 41
- 230000015654 memory Effects 0.000 claims description 18
- 238000004364 calculation method Methods 0.000 claims description 2
- 230000005540 biological transmission Effects 0.000 abstract description 2
- 230000009286 beneficial effect Effects 0.000 description 6
- 230000008901 benefit Effects 0.000 description 6
- 238000004891 communication Methods 0.000 description 6
- 238000004590 computer program Methods 0.000 description 6
- 238000010586 diagram Methods 0.000 description 6
- 230000006870 function Effects 0.000 description 6
- 230000004048 modification Effects 0.000 description 3
- 238000012986 modification Methods 0.000 description 3
- 238000012545 processing Methods 0.000 description 3
- 101100134058 Caenorhabditis elegans nth-1 gene Proteins 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 239000004973 liquid crystal related substance Substances 0.000 description 2
- 230000001413 cellular effect Effects 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000001151 other effect Effects 0.000 description 1
- 230000008569 process Effects 0.000 description 1
- 230000001953 sensory effect Effects 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1095—Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/12—Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/60—Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
- H04L67/62—Establishing a time schedule for servicing the requests
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Health & Medical Sciences (AREA)
- Computing Systems (AREA)
- General Health & Medical Sciences (AREA)
- Medical Informatics (AREA)
- Synchronisation In Digital Transmission Systems (AREA)
Abstract
The application discloses a data synchronization method, a data synchronization device, electronic equipment and a storage medium, and relates to the field of data transmission. The specific implementation scheme is as follows: each sensing device sends a time service request to a synchronization server periodically; the time service request carries the identification of each sensing device; each sensing device receives a time service response returned by the synchronous server; the time service response carries a predetermined starting timestamp and the first frame recording time corresponding to each sensing device; and each sensing device sets the system time of the sensing device according to the starting time, and sends the recorded data according to the system time, the first frame recording time corresponding to each sensing device and a predetermined time interval. The embodiment of the application can effectively synchronize the recorded data sent by each sensing device, and ensure that the data time error is within a proper range.
Description
Technical Field
The present application relates to the field of data processing technologies, and further relates to a data transmission technology, and in particular, to a data synchronization method, apparatus, electronic device, and storage medium.
Background
Human body tracking in an unmanned retail scene requires that data of multiple sensing devices can be synchronized, and data time errors among multiple sensors are required to be small enough. In the prior art, different sensing devices are independent from each other, the different sensing devices are started in sequence, and data transmitted by each sensing device is transmitted in a fixed frame manner, so that only some sensing devices have data at a certain moment, and other sensing devices have data at other moments. For example, after the sensor device 1 and the sensor device 2 are started, the first frame of data is recorded, and then one frame of data is recorded every 125ms, at this time, each frame of data is not synchronized since the start time of the sensor device 1 and the start time of the sensor device 2 are consecutive.
Disclosure of Invention
In view of this, embodiments provided in the present application provide a data synchronization method, an apparatus, an electronic device, and a storage medium, which can effectively synchronize recorded data sent by each sensing device, and ensure that a data time error is within an appropriate range.
In a first aspect, an embodiment of the present application provides a data synchronization method, which is applied to a sensing device, and the method includes:
periodically sending a time service request to a synchronization server; the time service request carries the identification of each sensing device;
receiving a time service response returned by the synchronous server; the time service response carries a predetermined starting timestamp and the first frame recording time corresponding to each sensing device;
and setting the system time of the self according to the starting time, and sending the recording data according to the system time, the first frame recording time corresponding to each sensing device and a predetermined time interval.
The above embodiment has the following advantages or beneficial effects: according to the method and the device, each sensing device can acquire a predetermined starting timestamp and the first frame recording time corresponding to each sensing device by sending a time service request to the synchronization server and receiving a time service response returned by the synchronization server; then each sensing device can set the starting time to the system time of itself, and send the recorded data according to the system time, the first frame recording time corresponding to each sensing device and the predetermined time interval, so that the recorded data sent by each sensing device can be effectively synchronized, and the data time error is ensured to be within the proper range.
In the above embodiment, the sending the recording data according to the system time, the first frame recording time corresponding to each sensing device, and a predetermined time interval includes:
and taking the system time as the starting time of each sensing device, and sending the recorded data according to the predetermined time interval when the current time of each sensing device reaches the first frame recording time corresponding to each sensing device.
The above embodiment has the following advantages or beneficial effects: each sensing device takes the acquired starting time as a reference, the first frame recording time corresponding to each sensing device is calculated through the synchronization server, and when the current time of each sensing device reaches the first frame recording time corresponding to each sensing device, each sensing device can send recording data according to a predetermined time interval, so that the recording data sent by each sensing device can be effectively synchronized, and the data time error is ensured to be within a proper range.
In a second aspect, an embodiment of the present application further provides a data synchronization method, which is applied to a synchronization server, and the method includes:
receiving time service requests sent by each sensing device regularly; the time service request carries the identification of each sensing device;
calculating the first frame recording time corresponding to each sensing device according to the time of receiving the time service request sent by each sensing device;
returning time service responses to the sensing devices; the time service response carries a predetermined starting timestamp and the first frame recording time corresponding to each sensing device, so that each sensing device sets the system time of the sensing device according to the starting time, and sends recording data according to the system time, the first frame recording time corresponding to each sensing device and a predetermined time interval.
The above embodiment has the following advantages or beneficial effects: the method comprises the steps that a uniform starting timestamp is determined through a synchronization server, the first frame recording time is calculated for each sensing device through the synchronization server, and each sensing device can obtain the predetermined starting timestamp and the first frame recording time corresponding to each sensing device; then each sensing device can set the starting time to the system time of itself, and send the recorded data according to the system time, the first frame recording time corresponding to each sensing device and the predetermined time interval, so that the recorded data sent by each sensing device can be effectively synchronized, and the data time error is ensured to be within the proper range.
In the above embodiment, the calculating, according to the time of receiving the time service request sent by each sensing device, the first frame recording time corresponding to each sensing device includes:
when the synchronization server receives a time service request sent by a first sensing device, the time of receiving the time service request sent by the first sensing device plus a first preset time length is used as the first frame recording time corresponding to the first sensing device;
when the synchronization server receives a time service request sent by an Nth sensing device, if the time for receiving the time service request sent by the Nth sensing device is less than the subtraction of a second preset time length from the first frame recording time corresponding to the (N-1) th sensing device, taking the first frame recording time corresponding to the (N-1) th sensing device as the first frame recording time corresponding to the Nth sensing device; if the time of receiving the time service request sent by the Nth sensing equipment is greater than or equal to the sum of the first frame recording time corresponding to the (N-1) th sensing equipment and a second preset time length, taking the first frame recording time of the (N-1) th sensing equipment and the first preset time length as the first frame recording time corresponding to the Nth sensing equipment; wherein N is a natural number of 2 or more.
The above embodiment has the following advantages or beneficial effects: when receiving a time service request sent by a second sensing device and a subsequent sensing device, the synchronization server can determine whether the time service request is closer to the recording time of the first frame corresponding to the last sensing device or closer to the recording time of the first frame corresponding to the next sensing device; if the time service request is closer to the first frame recording time corresponding to the last sensing equipment, the first frame recording time corresponding to the last sensing equipment is set as the first frame recording time corresponding to the sensing equipment; and if the time service request is closer to the first frame recording time corresponding to the next sensing equipment, grouping the first frame recording time corresponding to the next sensing equipment as the first frame recording time corresponding to the sensing equipment.
In a third aspect, the present application further provides a data synchronization apparatus, including: the device comprises a first sending module, a first receiving module and a synchronization module; wherein,
the first sending module is used for sending a time service request to the synchronous server periodically; the time service request carries the identification of each sensing device;
the first receiving module is used for receiving the time service response returned by the synchronous server; the time service response carries a predetermined starting timestamp and the first frame recording time corresponding to each sensing device;
and the synchronization module is used for setting the system time of the synchronization module according to the starting time, and sending the recording data according to the system time, the first frame recording time corresponding to each sensing device and a predetermined time interval.
In the foregoing embodiment, the synchronization module is specifically configured to use the system time as a start time of each sensing device, and send the recording data according to the predetermined time interval when the current time of each sensing device reaches the first frame recording time corresponding to each sensing device.
In a fourth aspect, the present application further provides a data synchronization apparatus, including: the device comprises a second receiving module, a calculating module and a second sending module; wherein,
the second receiving module is used for periodically receiving the time service requests sent by each sensing device; the time service request carries the identification of each sensing device;
the calculating module is used for calculating the first frame recording time corresponding to each sensing device according to the time of receiving the time service request sent by each sensing device;
the second sending module is used for returning time service responses to the sensing devices; the time service response carries a predetermined starting timestamp and the first frame recording time corresponding to each sensing device, so that each sensing device sets the system time of the sensing device according to the starting time, and sends recording data according to the system time, the first frame recording time corresponding to each sensing device and a predetermined time interval.
In the above embodiment, the calculation module is specifically configured to, when the synchronization server receives a time service request sent by a first sensing device, take a time of receiving the time service request sent by the first sensing device plus a first preset time length as a first frame recording time corresponding to the first sensing device; when the synchronization server receives a time service request sent by an Nth sensing device, if the time for receiving the time service request sent by the Nth sensing device is less than the subtraction of a second preset time length from the first frame recording time corresponding to the (N-1) th sensing device, taking the first frame recording time corresponding to the (N-1) th sensing device as the first frame recording time corresponding to the Nth sensing device; if the time of receiving the time service request sent by the Nth sensing equipment is greater than or equal to the sum of the first frame recording time corresponding to the (N-1) th sensing equipment and a second preset time length, taking the first frame recording time of the (N-1) th sensing equipment and the first preset time length as the first frame recording time corresponding to the Nth sensing equipment; wherein N is a natural number of 2 or more.
In a fifth aspect, an embodiment of the present application provides an electronic device, including:
one or more processors;
a memory for storing one or more programs,
when the one or more programs are executed by the one or more processors, the one or more processors implement the data synchronization method according to any embodiment of the present application.
In a sixth aspect, the present application provides a storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the data synchronization method according to any embodiment of the present application.
One embodiment in the above application has the following advantages or benefits: according to the data synchronization method, the data synchronization device, the electronic equipment and the storage medium, each sensing equipment sends a time service request to the synchronization server periodically; wherein, the time service request carries the identification of each sensing device; the synchronous server calculates the first frame recording time corresponding to each sensing device according to the time of receiving the time service request sent by each sensing device; the synchronous server returns time service response to each sensing device; the time service response carries a predetermined starting timestamp and the first frame recording time corresponding to each sensing device; each sensing device sets the system time of the sensing device according to the starting time, and sends the recording data according to the system time, the first frame recording time corresponding to each sensing device and a predetermined time interval. That is to say, each sensing device in the present application may set its own system time through the synchronization server, and send the recorded data synchronously according to the system time and the first frame recording time calculated by the synchronization server and corresponding to each sensing device. The system time of each sensing device is determined through the synchronization server, and the first frame recording time of each sensing device is calculated through the synchronization server, so that the problem that the data sent by each sensing device are not synchronous is solved. By adopting the technical scheme provided by the application, the recorded data sent by each sensing device can be effectively synchronized, and the time error of the data is ensured to be within a proper range; moreover, the technical scheme of the embodiment of the application is simple and convenient to implement, convenient to popularize and wide in application range.
Other effects of the above-described alternative will be described below with reference to specific embodiments.
Drawings
The drawings are included to provide a better understanding of the present solution and are not intended to limit the present application. Wherein:
fig. 1 is a schematic flowchart of a data synchronization method according to an embodiment of the present application;
fig. 2 is a schematic flowchart of a data synchronization method according to a second embodiment of the present application;
fig. 3 is a schematic flowchart of a data synchronization method according to a third embodiment of the present application;
fig. 4 is a schematic flowchart of a data synchronization method according to a fourth embodiment of the present application;
fig. 5 is a schematic structural diagram of a data synchronization apparatus according to a fifth embodiment of the present application;
fig. 6 is a schematic structural diagram of a data synchronization apparatus according to a sixth embodiment of the present application;
fig. 7 is a block diagram of an electronic device for implementing the data synchronization method according to the embodiment of the present application.
Detailed Description
The following description of the exemplary embodiments of the present application, taken in conjunction with the accompanying drawings, includes various details of the embodiments of the application for the understanding of the same, which are to be considered exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present application. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
Example one
Fig. 1 is a schematic flowchart of a data synchronization method according to an embodiment of the present application, where the method may be executed by a data synchronization apparatus or each sensing device, where the apparatus or each sensing device may be implemented by software and/or hardware, and the apparatus or each sensing device may be integrated in any intelligent device with a network communication function. As shown in fig. 1, the data synchronization method may include the steps of:
s101, sending a time service request to a synchronization server periodically; wherein, the time service request carries the identification of each sensing device.
In a specific embodiment of the present application, each sensing device may periodically send a time service request to the synchronization server; wherein, the time service request carries the identification of each sensing device. For example, camera 1 may periodically send a time service request 1 to the synchronization server; wherein, the time service request 1 carries the identifier of the camera 1; the camera 2 may periodically send a time service request 2 to the synchronization server; wherein, the time service request 2 carries the identifier of the camera 2; and so on.
S102, receiving a time service response returned by the synchronous server; the time service response carries a predetermined starting time stamp and the first frame recording time corresponding to each sensing device.
In a specific embodiment of the present application, each sensing device may receive a time service response returned by the synchronization server; the time service response carries a predetermined starting time stamp and the first frame recording time corresponding to each sensing device. For example, the camera 1 receives a time service response 1 returned by the synchronization server; the time service response 1 carries a predetermined starting timestamp and the first frame recording time corresponding to the camera 1; the camera 2 receives a time service response 2 returned by the synchronous server; the time service response 2 carries a predetermined start timestamp and the first frame recording time corresponding to the camera 2. The predetermined start time stamp here may be a time predetermined by the synchronization server, for example: 1 month 1 day 00 in 2019: 00: 00; the first frame recording time corresponding to each camera is calculated by the synchronization server according to the received time service request sent by each camera, and different first frame recording times can be calculated for different cameras.
S103, setting the system time of the sensor according to the starting time, and sending the recording data according to the system time, the first frame recording time corresponding to each sensing device and a predetermined time interval.
In a specific embodiment of the present application, each sensing device may set its own system time according to the start time, and send recorded data according to the system time, the first frame recording time corresponding to each sensing device, and a predetermined time interval. Specifically, each sensing device may use the system time as the start time of each sensing device, and when the current time of each sensing device reaches the first frame recording time corresponding to each sensing device, each sensing device may send the recording data at a predetermined time interval. For example, assume that the predetermined start timestamp carried in the time service response returned by the synchronization server received by the camera 1 is 2019, 1 month, 1 day 00: 00: 00, the camera 1 can set its own system time to be set as 00 on 1 month and 1 day 2019: 00: 00. suppose that the recording time of the first frame corresponding to the camera 1 carried in the time service response returned by the synchronization server received by the camera 1 is 2019, 1 month, 1 day 00: 00: 00: 40, when the current time of the camera 1 reaches the first frame recording time corresponding to the camera 1, the camera 1 may send the recording data according to a predetermined time interval. And so on.
According to the data synchronization method provided by the embodiment of the application, each sensing device sends a time service request to a synchronization server periodically; wherein, the time service request carries the identification of each sensing device; the synchronous server calculates the first frame recording time corresponding to each sensing device according to the time of receiving the time service request sent by each sensing device; the synchronous server returns time service response to each sensing device; the time service response carries a predetermined starting timestamp and the first frame recording time corresponding to each sensing device; each sensing device sets the system time of the sensing device according to the starting time, and sends the recording data according to the system time, the first frame recording time corresponding to each sensing device and a predetermined time interval. That is to say, each sensing device in the present application may set its own system time through the synchronization server, and send the recorded data synchronously according to the system time and the first frame recording time calculated by the synchronization server and corresponding to each sensing device. The system time of each sensing device is determined through the synchronization server, and the first frame recording time of each sensing device is calculated through the synchronization server, so that the problem that the data sent by each sensing device are not synchronous is solved. By adopting the technical scheme provided by the application, the recorded data sent by each sensing device can be effectively synchronized, and the time error of the data is ensured to be within a proper range; moreover, the technical scheme of the embodiment of the application is simple and convenient to implement, convenient to popularize and wide in application range.
Example two
Fig. 2 is a schematic flowchart of a data synchronization method according to a second embodiment of the present application. As shown in fig. 2, the data synchronization method may include the steps of:
s201, sending a time service request to a synchronous server periodically; wherein, the time service request carries the identification of each sensing device.
In a specific embodiment of the present application, each sensing device may periodically send a time service request to the synchronization server; wherein, the time service request carries the identification of each sensing device. For example, camera 1 may periodically send a time service request 1 to the synchronization server; wherein, the time service request 1 carries the identifier of the camera 1; the camera 2 may periodically send a time service request 2 to the synchronization server; wherein, the time service request 2 carries the identifier of the camera 2; and so on.
S202, receiving a time service response returned by the synchronous server; the time service response carries a predetermined starting time stamp and the first frame recording time corresponding to each sensing device.
In a specific embodiment of the present application, each sensing device may receive a time service response returned by the synchronization server; the time service response carries a predetermined starting time stamp and the first frame recording time corresponding to each sensing device. For example, the camera 1 receives a time service response 1 returned by the synchronization server; the time service response 1 carries a predetermined starting timestamp and the first frame recording time corresponding to the camera 1; the camera 2 receives a time service response 2 returned by the synchronous server; the time service response 2 carries a predetermined start timestamp and the first frame recording time corresponding to the camera 2.
And S203, taking the system time as the starting time of each sensing device, and sending the recorded data according to a predetermined time interval when the current time of each sensing device reaches the first frame recording time corresponding to each sensing device.
In a specific embodiment of the present application, each sensing device may use the system time as a start time of each sensing device, and when the current time of each sensing device reaches the first frame recording time corresponding to each sensing device, send the recording data according to a predetermined time interval. For example, assume that the predetermined start timestamp carried in the time service response returned by the synchronization server received by the camera 1 is 2019, 1 month, 1 day 00: 00: 00, the camera 1 can set its own system time to be set as 00 on 1 month and 1 day 2019: 00: 00. suppose that the recording time of the first frame corresponding to the camera 1 carried in the time service response returned by the synchronization server received by the camera 1 is 2019, 1 month, 1 day 00: 00: 00: 40, when the current time of the camera 1 reaches the first frame recording time corresponding to the camera 1, the camera 1 may send the recording data according to a predetermined time interval. And so on.
According to the data synchronization method provided by the embodiment of the application, each sensing device sends a time service request to a synchronization server periodically; wherein, the time service request carries the identification of each sensing device; the synchronous server calculates the first frame recording time corresponding to each sensing device according to the time of receiving the time service request sent by each sensing device; the synchronous server returns time service response to each sensing device; the time service response carries a predetermined starting timestamp and the first frame recording time corresponding to each sensing device; each sensing device sets the system time of the sensing device according to the starting time, and sends the recording data according to the system time, the first frame recording time corresponding to each sensing device and a predetermined time interval. That is to say, each sensing device in the present application may set its own system time through the synchronization server, and send the recorded data synchronously according to the system time and the first frame recording time calculated by the synchronization server and corresponding to each sensing device. The system time of each sensing device is determined through the synchronization server, and the first frame recording time of each sensing device is calculated through the synchronization server, so that the problem that the data sent by each sensing device are not synchronous is solved. By adopting the technical scheme provided by the application, the recorded data sent by each sensing device can be effectively synchronized, and the time error of the data is ensured to be within a proper range; moreover, the technical scheme of the embodiment of the application is simple and convenient to implement, convenient to popularize and wide in application range.
EXAMPLE III
Fig. 3 is a flowchart of a data synchronization method provided in the third embodiment of the present application, where the method may be performed by a data synchronization apparatus or a synchronization server, where the apparatus or the synchronization server may be implemented by software and/or hardware, and the apparatus or the synchronization server may be integrated in any intelligent device with a network communication function. As shown in fig. 3, the data synchronization method may include the steps of:
s301, receiving time service requests sent by each sensing device regularly; wherein, the time service request carries the identification of each sensing device.
In a specific embodiment of the present application, the synchronization server may periodically receive a time service request sent by each sensing device; wherein, the time service request carries the identification of each sensing device. For example, the synchronization server may periodically receive a time service request 1 sent by the camera 1; wherein, the time service request 1 carries the identifier of the camera 1; the synchronization server can also periodically receive a time service request 2 sent by the camera 2; wherein, the time service request 2 carries the identifier of the camera 2; and so on.
S302, calculating the first frame recording time corresponding to each sensing device according to the time of receiving the time service request sent by each sensing device.
In a specific embodiment of the present application, the synchronization server may calculate, according to the time of receiving the time service request sent by each sensing device, the first frame recording time corresponding to each sensing device. Specifically, when the synchronization server receives a time service request sent by a first sensing device, the synchronization server may take the time of receiving the time service request sent by the first sensing device plus a first preset time length as a first frame recording time corresponding to the first sensing device; when the synchronization server receives a time service request sent by an nth sensing device, if the time for receiving the time service request sent by the nth sensing device is less than the subtraction of a second preset time length from the first frame recording time corresponding to an nth-1 sensing device, the synchronization server may use the first frame recording time corresponding to the nth-1 sensing device as the first frame recording time corresponding to the nth sensing device; if the time for receiving the time service request sent by the nth sensing device is greater than or equal to the sum of the first frame recording time corresponding to the N-1 st sensing device and the second preset time length, the synchronization server may take the first frame recording time corresponding to the N-1 st sensing device and the first preset time length as the first frame recording time corresponding to the nth sensing device; wherein N is a natural number of 2 or more. For example, when the synchronization server receives the time service request 1 sent by the camera 1, the synchronization server may add a first preset time length (the first preset time length may be 40ms) to the time when the time service request 1 sent by the camera 1 is received as the first frame recording time corresponding to the camera 1; when the synchronization server receives the time service request 2 sent by the camera 2, if the time of receiving the time service request 2 sent by the camera 2 is less than the first frame recording time corresponding to the camera 1 minus a second preset time (the second preset time may be 15 milliseconds), the synchronization server may take the first frame recording time corresponding to the camera 1 as the first frame recording time corresponding to the camera 2; if the time of receiving the time service request 2 sent by the camera 2 is greater than or equal to the time obtained by subtracting a second preset time length from the first frame recording time corresponding to the camera 1, the synchronization server may take the first frame recording time corresponding to the camera 1 plus the first preset time length as the first frame recording time corresponding to the camera 2; and so on.
S303, returning time service response to each sensing device; the time service response carries a predetermined starting timestamp and the first frame recording time corresponding to each sensing device, so that each sensing device sets the system time of the sensing device according to the starting time, and sends the recording data according to the system time, the first frame recording time corresponding to each sensing device and a predetermined time interval.
In a specific embodiment of the present application, the synchronization server may return a time service response to each sensing device; the time service response carries a predetermined starting timestamp and the first frame recording time corresponding to each sensing device, so that each sensing device sets the system time of the sensing device according to the starting time, and sends the recording data according to the system time, the first frame recording time corresponding to each sensing device and a predetermined time interval. Specifically, each sensing device may use the system time as the start time of each sensing device, and when the current time of each sensing device reaches the first frame recording time corresponding to each sensing device, each sensing device may send the recording data at a predetermined time interval.
According to the data synchronization method provided by the embodiment of the application, each sensing device sends a time service request to a synchronization server periodically; wherein, the time service request carries the identification of each sensing device; the synchronous server calculates the first frame recording time corresponding to each sensing device according to the time of receiving the time service request sent by each sensing device; the synchronous server returns time service response to each sensing device; the time service response carries a predetermined starting timestamp and the first frame recording time corresponding to each sensing device; each sensing device sets the system time of the sensing device according to the starting time, and sends the recording data according to the system time, the first frame recording time corresponding to each sensing device and a predetermined time interval. That is to say, each sensing device in the present application may set its own system time through the synchronization server, and send the recorded data synchronously according to the system time and the first frame recording time calculated by the synchronization server and corresponding to each sensing device. The system time of each sensing device is determined through the synchronization server, and the first frame recording time of each sensing device is calculated through the synchronization server, so that the problem that the data sent by each sensing device are not synchronous is solved. By adopting the technical scheme provided by the application, the recorded data sent by each sensing device can be effectively synchronized, and the time error of the data is ensured to be within a proper range; moreover, the technical scheme of the embodiment of the application is simple and convenient to implement, convenient to popularize and wide in application range.
Example four
Fig. 4 is a schematic flowchart of a data synchronization method according to a fourth embodiment of the present application. As shown in fig. 4, the data synchronization method may include the steps of:
s401, receiving time service requests sent by each sensing device regularly; wherein, the time service request carries the identification of each sensing device.
In a specific embodiment of the present application, the synchronization server may periodically receive a time service request sent by each sensing device; wherein, the time service request carries the identification of each sensing device. For example, the synchronization server may periodically receive a time service request 1 sent by the camera 1; wherein, the time service request 1 carries the identifier of the camera 1; the synchronization server can also periodically receive a time service request 2 sent by the camera 2; wherein, the time service request 2 carries the identifier of the camera 2; and so on.
S402, when the synchronization server receives a time service request sent by a first sensing device, the time of receiving the time service request sent by the first sensing device plus a first preset time length is used as the first frame recording time corresponding to the first sensing device.
In a specific embodiment of the present application, when the synchronization server receives a time service request sent by a first sensing device, the synchronization server may use the time of receiving the time service request sent by the first sensing device plus a first preset time length as a first frame recording time corresponding to the first sensing device. For example, when the synchronization server receives the time service request 1 sent by the camera 1, the synchronization server may add a first preset time duration (the first preset time duration may be 40ms) to the time when the time service request 1 sent by the camera 1 is received as the first frame recording time corresponding to the camera 1.
S403, when the synchronization server receives a time service request sent by the Nth sensing device, if the time for receiving the time service request sent by the Nth sensing device is less than the first frame recording time corresponding to the (N-1) th sensing device minus a second preset time length, taking the first frame recording time corresponding to the (N-1) th sensing device as the first frame recording time corresponding to the Nth sensing device; if the time for receiving the time service request sent by the Nth sensing equipment is greater than or equal to the sum of the first frame recording time corresponding to the (N-1) th sensing equipment and the second preset time length, taking the first frame recording time corresponding to the (N-1) th sensing equipment and the first preset time length as the first frame recording time corresponding to the Nth sensing equipment; wherein N is a natural number of 2 or more.
In a specific embodiment of the present application, when the synchronization server receives a time service request sent by an nth sensing device, if the time for receiving the time service request sent by the nth sensing device is less than the subtraction of a second preset duration from the recording time of the first frame corresponding to an N-1 st sensing device, the synchronization server may use the recording time of the first frame corresponding to the N-1 st sensing device as the recording time of the first frame corresponding to the nth sensing device; if the time for receiving the time service request sent by the nth sensing device is greater than or equal to the sum of the first frame recording time corresponding to the N-1 st sensing device and the second preset time length, the synchronization server may take the first frame recording time corresponding to the N-1 st sensing device and the first preset time length as the first frame recording time corresponding to the nth sensing device; wherein N is a natural number of 2 or more. For example, when the synchronization server receives the time service request 2 sent by the camera 2, if the time of receiving the time service request 2 sent by the camera 2 is less than the first frame recording time corresponding to the camera 1 minus a second preset time (the second preset time may be 15 milliseconds), the synchronization server may take the first frame recording time corresponding to the camera 1 as the first frame recording time corresponding to the camera 2; if the time of receiving the time service request 2 sent by the camera 2 is greater than or equal to the time obtained by subtracting a second preset time length from the first frame recording time corresponding to the camera 1, the synchronization server may take the first frame recording time corresponding to the camera 1 plus the first preset time length as the first frame recording time corresponding to the camera 2; and so on.
S404, returning time service response to each sensing device; the time service response carries a predetermined starting timestamp and the first frame recording time corresponding to each sensing device, so that each sensing device sets the system time of the sensing device according to the starting time, and sends the recording data according to the system time, the first frame recording time corresponding to each sensing device and a predetermined time interval.
In a specific embodiment of the present application, the synchronization server may return a time service response to each sensing device; the time service response carries a predetermined starting timestamp and the first frame recording time corresponding to each sensing device, so that each sensing device sets the system time of the sensing device according to the starting time, and sends the recording data according to the system time, the first frame recording time corresponding to each sensing device and a predetermined time interval. Specifically, each sensing device may use the system time as the start time of each sensing device, and when the current time of each sensing device reaches the first frame recording time corresponding to each sensing device, each sensing device may send the recording data at a predetermined time interval. For example, assume that the predetermined start timestamp carried in the time service response returned by the synchronization server received by the camera 1 is 2019, 1 month, 1 day 00: 00: 00, the camera 1 can set its own system time to be set as 00 on 1 month and 1 day 2019: 00: 00. suppose that the recording time of the first frame corresponding to the camera 1 carried in the time service response returned by the synchronization server received by the camera 1 is 2019, 1 month, 1 day 00: 00: 00: 40, when the current time of the camera 1 reaches the first frame recording time corresponding to the camera 1, the camera 1 may send the recording data according to a predetermined time interval. And so on.
According to the data synchronization method provided by the embodiment of the application, each sensing device sends a time service request to a synchronization server periodically; wherein, the time service request carries the identification of each sensing device; the synchronous server calculates the first frame recording time corresponding to each sensing device according to the time of receiving the time service request sent by each sensing device; the synchronous server returns time service response to each sensing device; the time service response carries a predetermined starting timestamp and the first frame recording time corresponding to each sensing device; each sensing device sets the system time of the sensing device according to the starting time, and sends the recording data according to the system time, the first frame recording time corresponding to each sensing device and a predetermined time interval. That is to say, each sensing device in the present application may set its own system time through the synchronization server, and send the recorded data synchronously according to the system time and the first frame recording time calculated by the synchronization server and corresponding to each sensing device. The system time of each sensing device is determined through the synchronization server, and the first frame recording time of each sensing device is calculated through the synchronization server, so that the problem that the data sent by each sensing device are not synchronous is solved. By adopting the technical scheme provided by the application, the recorded data sent by each sensing device can be effectively synchronized, and the time error of the data is ensured to be within a proper range; moreover, the technical scheme of the embodiment of the application is simple and convenient to implement, convenient to popularize and wide in application range.
EXAMPLE five
Fig. 5 is a schematic structural diagram of a data synchronization apparatus according to a fifth embodiment of the present application. As shown in fig. 5, the apparatus 500 includes: a first sending module 501, a first receiving module 502 and a synchronization module 503; wherein,
the first sending module 501 is configured to send a time service request to a synchronization server periodically; the time service request carries the identification of each sensing device;
the first receiving module 502 is configured to receive a time service response returned by the synchronization server; the time service response carries a predetermined starting timestamp and the first frame recording time corresponding to each sensing device;
the synchronization module 503 is configured to set a system time of the sensor device according to the start time, and send recording data according to the system time, a first frame recording time corresponding to each sensing device, and a predetermined time interval.
Further, the synchronization module 503 is specifically configured to use the system time as a start time of each sensing device, and send the recording data according to the predetermined time interval when the current time of each sensing device reaches the recording time of the first frame corresponding to each sensing device.
The data synchronization device can execute the methods provided by the first embodiment and the second embodiment of the application, and has the corresponding functional modules and beneficial effects of the execution method. For details of the data synchronization method, reference may be made to the data synchronization method provided in the first embodiment and the second embodiment of the present application.
EXAMPLE six
Fig. 6 is a schematic structural diagram of a data synchronization apparatus according to a sixth embodiment of the present application. As shown in fig. 6, the apparatus 600 includes: a second receiving module 601, a calculating module 602 and a second sending module 603; wherein,
the second receiving module 601 is configured to periodically receive a time service request sent by each sensing device; the time service request carries the identification of each sensing device;
the calculating module 602 is configured to calculate, according to the time of receiving the time service request sent by each sensing device, a first frame recording time corresponding to each sensing device;
the second sending module 603 is configured to return a time service response to each sensing device; the time service response carries a predetermined starting timestamp and the first frame recording time corresponding to each sensing device, so that each sensing device sets the system time of the sensing device according to the starting time, and sends recording data according to the system time, the first frame recording time corresponding to each sensing device and a predetermined time interval.
Further, the calculating module 602 is specifically configured to, when the synchronization server receives a time service request sent by a first sensing device, take the time of receiving the time service request sent by the first sensing device plus a first preset time length as the first frame recording time corresponding to the first sensing device; when the synchronization server receives a time service request sent by an Nth sensing device, if the time for receiving the time service request sent by the Nth sensing device is less than the subtraction of a second preset time length from the first frame recording time corresponding to the (N-1) th sensing device, taking the first frame recording time corresponding to the (N-1) th sensing device as the first frame recording time corresponding to the Nth sensing device; if the time of receiving the time service request sent by the Nth sensing equipment is greater than or equal to the sum of the first frame recording time corresponding to the (N-1) th sensing equipment and a second preset time length, taking the first frame recording time of the (N-1) th sensing equipment and the first preset time length as the first frame recording time corresponding to the Nth sensing equipment; wherein N is a natural number of 2 or more.
The data synchronization device can execute the methods provided by the embodiments 3 and 4 of the application, and has the corresponding functional modules and beneficial effects of the execution method. For details of the data synchronization method, reference may be made to the data synchronization method provided in any of the third embodiment and the fourth embodiment of the present application.
EXAMPLE seven
According to an embodiment of the present application, an electronic device and a readable storage medium are also provided.
Fig. 7 is a block diagram of an electronic device according to an embodiment of the present application. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of the present application that are described and/or claimed herein.
As shown in fig. 7, the electronic apparatus includes: one or more processors 701, a memory 702, and interfaces for connecting the various components, including a high-speed interface and a low-speed interface. The various components are interconnected using different buses and may be mounted on a common motherboard or in other manners as desired. The processor may process instructions for execution within the electronic device, including instructions stored in or on the memory to display graphical information of a GUI on an external input/output apparatus (such as a display device coupled to the interface). In other embodiments, multiple processors and/or multiple buses may be used, along with multiple memories and multiple memories, as desired. Also, multiple electronic devices may be connected, with each device providing portions of the necessary operations (e.g., as a server array, a group of blade servers, or a multi-processor system). In fig. 7, one processor 701 is taken as an example.
The memory 702 is a non-transitory computer readable storage medium as provided herein. The memory stores instructions executable by at least one processor to cause the at least one processor to perform the data synchronization method provided herein. The non-transitory computer readable storage medium of the present application stores computer instructions for causing a computer to perform the data synchronization method provided herein.
The memory 702, which is a non-transitory computer readable storage medium, may be used to store non-transitory software programs, non-transitory computer executable programs, and modules, such as program instructions/modules (e.g., the first receiving module 501, the first sending module 502, and the synchronization module 503 shown in fig. 5) corresponding to the data synchronization method in the embodiments of the present application. The processor 701 executes various functional applications of the server and data processing by running non-transitory software programs, instructions, and modules stored in the memory 702, that is, implements the data synchronization method in the above-described method embodiments.
The memory 702 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to use of the electronic device of the data synchronization method, and the like. Further, the memory 702 may include high speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, the memory 702 may optionally include memory located remotely from the processor 701, which may be connected to the electronics of the data synchronization method via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The electronic device of the data synchronization method may further include: an input device 703 and an output device 704. The processor 701, the memory 702, the input device 703 and the output device 704 may be connected by a bus or other means, and fig. 7 illustrates an example of a connection by a bus.
The input device 703 may receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic apparatus of the data synchronization method, such as an input device of a touch screen, a keypad, a mouse, a track pad, a touch pad, a pointing stick, one or more mouse buttons, a track ball, a joystick, or the like. The output devices 704 may include a display device, auxiliary lighting devices (e.g., LEDs), and tactile feedback devices (e.g., vibrating motors), among others. The display device may include, but is not limited to, a Liquid Crystal Display (LCD), a Light Emitting Diode (LED) display, and a plasma display. In some implementations, the display device can be a touch screen.
Various implementations of the systems and techniques described here can be realized in digital electronic circuitry, integrated circuitry, application specific ASICs (application specific integrated circuits), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
These computer programs (also known as programs, software applications, or code) include machine instructions for a programmable processor, and may be implemented using high-level procedural and/or object-oriented programming languages, and/or assembly/machine languages. As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, apparatus, and/or device (e.g., magnetic discs, optical disks, memory, Programmable Logic Devices (PLDs)) used to provide machine instructions and/or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal used to provide machine instructions and/or data to a programmable processor.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), Wide Area Networks (WANs), and the Internet.
The computer system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other.
According to the technical scheme of the embodiment of the application, each sensing device sends a time service request to a synchronization server periodically; wherein, the time service request carries the identification of each sensing device; the synchronous server calculates the first frame recording time corresponding to each sensing device according to the time of receiving the time service request sent by each sensing device; the synchronous server returns time service response to each sensing device; the time service response carries a predetermined starting timestamp and the first frame recording time corresponding to each sensing device; each sensing device sets the system time of the sensing device according to the starting time, and sends the recording data according to the system time, the first frame recording time corresponding to each sensing device and a predetermined time interval. That is to say, each sensing device in the present application may set its own system time through the synchronization server, and send the recorded data synchronously according to the system time and the first frame recording time calculated by the synchronization server and corresponding to each sensing device. The system time of each sensing device is determined through the synchronization server, and the first frame recording time of each sensing device is calculated through the synchronization server, so that the problem that the data sent by each sensing device are not synchronous is solved. By adopting the technical scheme provided by the application, the recorded data sent by each sensing device can be effectively synchronized, and the time error of the data is ensured to be within a proper range; moreover, the technical scheme of the embodiment of the application is simple and convenient to implement, convenient to popularize and wide in application range.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present application may be executed in parallel, sequentially, or in different orders, and the present invention is not limited thereto as long as the desired results of the technical solutions disclosed in the present application can be achieved.
The above-described embodiments should not be construed as limiting the scope of the present application. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims (10)
1. A data synchronization method is applied to a sensing device, and the method comprises the following steps:
periodically sending a time service request to a synchronization server; the time service request carries the identification of each sensing device;
receiving a time service response returned by the synchronous server; the time service response carries a predetermined starting timestamp and the first frame recording time corresponding to each sensing device;
and setting the system time of the self according to the starting time, and sending the recording data according to the system time, the first frame recording time corresponding to each sensing device and a predetermined time interval.
2. The method according to claim 1, wherein the sending the recording data according to the system time, the first frame recording time corresponding to each sensing device, and a predetermined time interval comprises:
and taking the system time as the starting time of each sensing device, and sending the recorded data according to the predetermined time interval when the current time of each sensing device reaches the first frame recording time corresponding to each sensing device.
3. A data synchronization method is applied to a synchronization server, and the method comprises the following steps:
receiving time service requests sent by each sensing device regularly; the time service request carries the identification of each sensing device;
calculating the first frame recording time corresponding to each sensing device according to the time of receiving the time service request sent by each sensing device;
returning time service responses to the sensing devices; the time service response carries a predetermined starting timestamp and the first frame recording time corresponding to each sensing device, so that each sensing device sets the system time of the sensing device according to the starting time, and sends recording data according to the system time, the first frame recording time corresponding to each sensing device and a predetermined time interval.
4. The method according to claim 3, wherein the calculating the recording time of the first frame corresponding to each sensing device according to the time of receiving the time service request sent by each sensing device comprises:
when the synchronization server receives a time service request sent by a first sensing device, the time of receiving the time service request sent by the first sensing device plus a first preset time length is used as the first frame recording time corresponding to the first sensing device;
when the synchronization server receives a time service request sent by an Nth sensing device, if the time for receiving the time service request sent by the Nth sensing device is less than the subtraction of a second preset time length from the first frame recording time corresponding to the (N-1) th sensing device, taking the first frame recording time corresponding to the (N-1) th sensing device as the first frame recording time corresponding to the Nth sensing device; if the time of receiving the time service request sent by the Nth sensing equipment is greater than or equal to the sum of the first frame recording time corresponding to the (N-1) th sensing equipment and a second preset time length, taking the first frame recording time of the (N-1) th sensing equipment and the first preset time length as the first frame recording time corresponding to the Nth sensing equipment; wherein N is a natural number of 2 or more.
5. A data synchronization apparatus, the apparatus comprising: the device comprises a first sending module, a first receiving module and a synchronization module; wherein,
the first sending module is used for sending a time service request to the synchronous server periodically; the time service request carries the identification of each sensing device;
the first receiving module is used for receiving the time service response returned by the synchronous server; the time service response carries a predetermined starting timestamp and the first frame recording time corresponding to each sensing device;
and the synchronization module is used for setting the system time of the synchronization module according to the starting time, and sending the recording data according to the system time, the first frame recording time corresponding to each sensing device and a predetermined time interval.
6. The apparatus of claim 5, wherein:
the synchronization module is specifically configured to use the system time as a start time of each sensing device, and send the recording data according to the predetermined time interval when the current time of each sensing device reaches the first frame recording time corresponding to each sensing device.
7. A data synchronization apparatus, the apparatus comprising: the device comprises a second receiving module, a calculating module and a second sending module; wherein,
the second receiving module is used for periodically receiving the time service requests sent by each sensing device; the time service request carries the identification of each sensing device;
the calculating module is used for calculating the first frame recording time corresponding to each sensing device according to the time of receiving the time service request sent by each sensing device;
the second sending module is used for returning time service responses to the sensing devices; the time service response carries a predetermined starting timestamp and the first frame recording time corresponding to each sensing device, so that each sensing device sets the system time of the sensing device according to the starting time, and sends recording data according to the system time, the first frame recording time corresponding to each sensing device and a predetermined time interval.
8. The apparatus of claim 7, wherein:
the calculation module is specifically configured to, when the synchronization server receives a time service request sent by a first sensing device, add a first preset duration to a time when the time service request sent by the first sensing device is received, as a first frame recording time corresponding to the first sensing device; when the synchronization server receives a time service request sent by an Nth sensing device, if the time for receiving the time service request sent by the Nth sensing device is less than the subtraction of a second preset time length from the first frame recording time corresponding to the (N-1) th sensing device, taking the first frame recording time corresponding to the (N-1) th sensing device as the first frame recording time corresponding to the Nth sensing device; if the time of receiving the time service request sent by the Nth sensing equipment is greater than or equal to the sum of the first frame recording time corresponding to the (N-1) th sensing equipment and a second preset time length, taking the first frame recording time of the (N-1) th sensing equipment and the first preset time length as the first frame recording time corresponding to the Nth sensing equipment; wherein N is a natural number of 2 or more.
9. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the sensing device of claims 1-2 or the synchronization server of any of claims 3-4.
10. A non-transitory computer readable storage medium storing computer instructions for causing a computer to execute the sensing device of any one of claims 1-2 or the synchronization server of any one of claims 3-4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911048188.6A CN110809041B (en) | 2019-10-30 | 2019-10-30 | Data synchronization method and device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911048188.6A CN110809041B (en) | 2019-10-30 | 2019-10-30 | Data synchronization method and device, electronic equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110809041A true CN110809041A (en) | 2020-02-18 |
CN110809041B CN110809041B (en) | 2023-06-27 |
Family
ID=69489724
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911048188.6A Active CN110809041B (en) | 2019-10-30 | 2019-10-30 | Data synchronization method and device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110809041B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113556366A (en) * | 2020-04-07 | 2021-10-26 | 舜宇光学(浙江)研究院有限公司 | Multi-sensor data synchronization method and system and electronic equipment |
CN115250159A (en) * | 2022-07-18 | 2022-10-28 | 重庆长安汽车股份有限公司 | Time synchronization method, device, electronic equipment, storage medium and program product |
Citations (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2005275305A (en) * | 2004-03-26 | 2005-10-06 | Tokyo Electric Power Co Inc:The | High-speed continuous photographing system, high-speed continuous photographing method, photographic image deviation calibration system, photographic image deviation calibration method, computer program, movement vector calculation system, and movement vector calculation method |
DE102007043465A1 (en) * | 2006-10-25 | 2008-04-30 | Oerlikon Textile Gmbh & Co. Kg | Controlling textile machine, e.g. loom, with multiple operating sites, by transmitting time synchronization signal from central device to each operating site and/or its drive |
CN101562489A (en) * | 2009-05-30 | 2009-10-21 | 华中科技大学 | Method for time synchronization in wireless sensor network |
CN101594539A (en) * | 2009-06-24 | 2009-12-02 | 中兴通讯股份有限公司 | Realize method, decoder and the supervisory control system of decoder synchronous polling |
CN101778405A (en) * | 2010-01-05 | 2010-07-14 | 武汉理工大学 | Method and system for synchronous acquisition of wireless sensor network for structural health monitoring |
US20100189135A1 (en) * | 2009-01-26 | 2010-07-29 | Centre De Recherche Industrielle Du Quebec | Method and apparatus for assembling sensor output data with sensed location data |
CN103795979A (en) * | 2014-01-23 | 2014-05-14 | 浙江宇视科技有限公司 | Method and device for synchronizing distributed image stitching |
CN105142210A (en) * | 2015-08-25 | 2015-12-09 | 深圳市晓渡云科技有限公司 | Synchronous calibration method for real-time clocks of wireless sensor network and sensors |
CN105745604A (en) * | 2013-11-03 | 2016-07-06 | 微软技术许可有限责任公司 | Sensor data time alignment |
WO2017011811A1 (en) * | 2015-07-16 | 2017-01-19 | Blast Motion Inc. | Event analysis and tagging system |
CN108366283A (en) * | 2018-02-12 | 2018-08-03 | 苏州佳世达电通有限公司 | The media sync playback method of more equipment rooms |
CN108683852A (en) * | 2018-05-23 | 2018-10-19 | 努比亚技术有限公司 | A kind of video recording method, terminal and computer readable storage medium |
CN108923876A (en) * | 2018-06-27 | 2018-11-30 | 北京艾瑞思机器人技术有限公司 | Method for synchronizing time, apparatus and system |
CN109194436A (en) * | 2018-11-01 | 2019-01-11 | 百度在线网络技术(北京)有限公司 | Sensor time stabs synchronous detecting method, device, equipment, medium and vehicle |
WO2019033956A1 (en) * | 2017-08-14 | 2019-02-21 | 杭州海康威视数字技术股份有限公司 | Monitoring video synchronization method and video camera |
CN109426259A (en) * | 2017-08-25 | 2019-03-05 | 本田技研工业株式会社 | The system and method that vehicle sensor data obtains processing are synchronized using vehicle communication |
CN109450582A (en) * | 2018-11-01 | 2019-03-08 | 百度在线网络技术(北京)有限公司 | Sensor time stabs synchronous detecting method, device, equipment, medium and vehicle |
-
2019
- 2019-10-30 CN CN201911048188.6A patent/CN110809041B/en active Active
Patent Citations (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2005275305A (en) * | 2004-03-26 | 2005-10-06 | Tokyo Electric Power Co Inc:The | High-speed continuous photographing system, high-speed continuous photographing method, photographic image deviation calibration system, photographic image deviation calibration method, computer program, movement vector calculation system, and movement vector calculation method |
DE102007043465A1 (en) * | 2006-10-25 | 2008-04-30 | Oerlikon Textile Gmbh & Co. Kg | Controlling textile machine, e.g. loom, with multiple operating sites, by transmitting time synchronization signal from central device to each operating site and/or its drive |
US20100189135A1 (en) * | 2009-01-26 | 2010-07-29 | Centre De Recherche Industrielle Du Quebec | Method and apparatus for assembling sensor output data with sensed location data |
CN101562489A (en) * | 2009-05-30 | 2009-10-21 | 华中科技大学 | Method for time synchronization in wireless sensor network |
CN101594539A (en) * | 2009-06-24 | 2009-12-02 | 中兴通讯股份有限公司 | Realize method, decoder and the supervisory control system of decoder synchronous polling |
CN101778405A (en) * | 2010-01-05 | 2010-07-14 | 武汉理工大学 | Method and system for synchronous acquisition of wireless sensor network for structural health monitoring |
CN105745604A (en) * | 2013-11-03 | 2016-07-06 | 微软技术许可有限责任公司 | Sensor data time alignment |
CN103795979A (en) * | 2014-01-23 | 2014-05-14 | 浙江宇视科技有限公司 | Method and device for synchronizing distributed image stitching |
WO2017011811A1 (en) * | 2015-07-16 | 2017-01-19 | Blast Motion Inc. | Event analysis and tagging system |
CN105142210A (en) * | 2015-08-25 | 2015-12-09 | 深圳市晓渡云科技有限公司 | Synchronous calibration method for real-time clocks of wireless sensor network and sensors |
WO2019033956A1 (en) * | 2017-08-14 | 2019-02-21 | 杭州海康威视数字技术股份有限公司 | Monitoring video synchronization method and video camera |
CN109426259A (en) * | 2017-08-25 | 2019-03-05 | 本田技研工业株式会社 | The system and method that vehicle sensor data obtains processing are synchronized using vehicle communication |
CN108366283A (en) * | 2018-02-12 | 2018-08-03 | 苏州佳世达电通有限公司 | The media sync playback method of more equipment rooms |
CN108683852A (en) * | 2018-05-23 | 2018-10-19 | 努比亚技术有限公司 | A kind of video recording method, terminal and computer readable storage medium |
CN108923876A (en) * | 2018-06-27 | 2018-11-30 | 北京艾瑞思机器人技术有限公司 | Method for synchronizing time, apparatus and system |
CN109194436A (en) * | 2018-11-01 | 2019-01-11 | 百度在线网络技术(北京)有限公司 | Sensor time stabs synchronous detecting method, device, equipment, medium and vehicle |
CN109450582A (en) * | 2018-11-01 | 2019-03-08 | 百度在线网络技术(北京)有限公司 | Sensor time stabs synchronous detecting method, device, equipment, medium and vehicle |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113556366A (en) * | 2020-04-07 | 2021-10-26 | 舜宇光学(浙江)研究院有限公司 | Multi-sensor data synchronization method and system and electronic equipment |
CN113556366B (en) * | 2020-04-07 | 2023-09-26 | 舜宇光学(浙江)研究院有限公司 | Multi-sensor data synchronization method and system and electronic equipment thereof |
CN115250159A (en) * | 2022-07-18 | 2022-10-28 | 重庆长安汽车股份有限公司 | Time synchronization method, device, electronic equipment, storage medium and program product |
Also Published As
Publication number | Publication date |
---|---|
CN110809041B (en) | 2023-06-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103792841B (en) | Information generating system during a kind of space camera image pair | |
CN111664844B (en) | Navigation method, navigation device and electronic equipment | |
CN111782365A (en) | Timed task processing method, device, equipment and storage medium | |
CN111831054B (en) | Asynchronous system clock synchronization method, device, system and storage medium | |
JP6921277B2 (en) | Target detection and tracking methods, devices, electronic devices, storage media, and programs | |
CN111309547A (en) | Webpage information acquisition method and device and electronic equipment | |
CN110809041B (en) | Data synchronization method and device, electronic equipment and storage medium | |
CN111669438A (en) | Live broadcast message transmission method and device, electronic equipment and medium | |
WO2023160608A1 (en) | Robot control method and apparatus, and storage medium and robot cluster | |
CN110619100A (en) | Method and apparatus for acquiring data | |
CN112435313A (en) | Method and device for playing frame animation, electronic equipment and readable storage medium | |
CN111339187A (en) | Data processing method, device, equipment and storage medium based on intelligent contract | |
KR102595664B1 (en) | Image processing method, device, electronic equipment and readable storage medium | |
CN112346512A (en) | Time synchronization method and device | |
CN111966471A (en) | Access method, device, electronic equipment and computer storage medium | |
CN110620701A (en) | Data stream monitoring processing method, device, equipment and storage medium | |
CN112084263B (en) | Data synchronization method, device, equipment and storage medium | |
CN110645995B (en) | Map navigation simulation method and device | |
CN114281469A (en) | Distributed simulation method and system | |
CN110580322B (en) | Independent visitor information processing method and device, electronic equipment and storage medium | |
CN112581157A (en) | Information delivery control method, device, equipment, system and medium | |
EP2888660A1 (en) | Systems and methods for data synchronization in a network application | |
CN113765985B (en) | Method and apparatus for synchronizing messages | |
CN111857887B (en) | Data acquisition method, device, electronic equipment and readable storage medium | |
CN112860603A (en) | Positioning data sending method, hardware-in-the-loop testing device and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |