CN110809041B - Data synchronization method and device, electronic equipment and storage medium - Google Patents

Data synchronization method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN110809041B
CN110809041B CN201911048188.6A CN201911048188A CN110809041B CN 110809041 B CN110809041 B CN 110809041B CN 201911048188 A CN201911048188 A CN 201911048188A CN 110809041 B CN110809041 B CN 110809041B
Authority
CN
China
Prior art keywords
time
sensing device
service request
frame recording
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.)
Active
Application number
CN201911048188.6A
Other languages
Chinese (zh)
Other versions
CN110809041A (en
Inventor
刘涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201911048188.6A priority Critical patent/CN110809041B/en
Publication of CN110809041A publication Critical patent/CN110809041A/en
Application granted granted Critical
Publication of CN110809041B publication Critical patent/CN110809041B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling 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/62Establishing a time schedule for servicing the requests
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE 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/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing 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 periodically transmits a time service request to the synchronous server; wherein, 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 time stamp and a corresponding first frame recording time of each sensing device; and each sensing device sets own system time according to the starting time, and transmits recording data according to the system time, the corresponding first frame recording time of 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

Data synchronization method and device, electronic equipment and storage medium
Technical Field
The present application relates to the field of data processing technologies, and in particular, to a data synchronization method, a data synchronization device, an electronic device, and a storage medium.
Background
Human body tracking in an unmanned retail setting requires that the data of multiple sensing devices be synchronized, requiring that the data time error between multiple sensors be sufficiently small. In the prior art, different sensing devices are mutually independent, different sensing devices are started in sequence, and each sensing device transmits data in a fixed frame mode, so that only one sensing device has 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 data is recorded, and then one frame data is recorded every 125ms, which is caused by the start time of the sensor device 1 and the start time of the sensor device 2, so that each frame data is not synchronous.
Disclosure of Invention
In view of this, the embodiments of the present application provide a data synchronization method, apparatus, electronic device, and storage medium, which can effectively synchronize recording data sent by each sensing device, and ensure that a data time error is within a proper range.
In a first aspect, an embodiment of the present application provides a data synchronization method, applied to a sensing device, where the method includes:
Periodically sending a time service request to a synchronous server; wherein, 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 time stamp and a corresponding first frame recording time of each sensing device;
and setting the system time of the system according to the starting time, and sending recording data according to the system time, the recording time of the first frame 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, the time service request is sent to the synchronous server, the time service response returned by the synchronous server is received, and each sensing device can acquire a preset starting time stamp and the corresponding first frame recording time of each sensing device; and then each sensing device can set the system time of the starting time per se, and transmit recording data according to the system time, the corresponding first frame recording time of each sensing device and a predetermined time interval, so that the recording data transmitted by each sensing device can be effectively synchronized, and the data time error is ensured to be within a proper range.
In the foregoing embodiment, the sending 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 transmitting 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 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 by the synchronous 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, applied to a synchronization server, where the method includes:
periodically receiving a time service request sent by each sensing device; wherein, the time service request carries the identification of each sensing device;
According to the time of receiving the time service request sent by each sensing device, calculating the corresponding first frame recording time of each sensing device;
returning a time service response to each sensing device; the time service response carries a predetermined starting time stamp and a first frame recording time corresponding to each sensing device, so that each sensing device sets own system time according to the starting time, and transmits 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 unified starting time stamp is determined through a synchronous server, and initial frame recording time is calculated for each sensing device through the synchronous server, wherein each sensing device can acquire a preset starting time stamp and initial frame recording time corresponding to each sensing device; and then each sensing device can set the system time of the starting time per se, and transmit recording data according to the system time, the corresponding first frame recording time of each sensing device and a predetermined time interval, so that the recording data transmitted by each sensing device can be effectively synchronized, and the data time error is ensured to be within a proper range.
In the foregoing embodiment, the calculating, according to the time when the time service request sent by each sensing device is received, 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, adding a first preset duration to the time for receiving the time service request sent by the first sensing device as a first frame recording time corresponding to the first sensing device;
when a synchronous 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 smaller than the first frame recording time corresponding to the N-1 th sensing device minus a second preset duration, taking the first frame recording time corresponding to the N-1 th sensing device as the first frame recording time corresponding to the N-th sensing device; if the time of receiving the time service request sent by the N-1 th sensing device is greater than or equal to the first frame recording time corresponding to the N-1 th sensing device minus a second preset duration, adding the first frame recording time of the N-1 th sensing device to the first preset duration to be used as the first frame recording time corresponding to the N-1 th sensing device; wherein N is a natural number greater than or equal to 2.
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 synchronous server can determine whether the time service request is closer to the first frame recording time corresponding to the last sensing device or the time service request is closer to the first frame recording time corresponding to the next sensing device; if the time service request is closer to the first frame recording time corresponding to the last sensing device, the first frame recording time corresponding to the last sensing device is set as the first frame recording time corresponding to the sensing device; and if the time service request is closer to the first frame recording time corresponding to the next sensing device, the first frame recording time corresponding to the next sensing device is set as the first frame recording time corresponding to the sensing device.
In a third aspect, the present application further provides a data synchronization apparatus, the apparatus including: the device comprises a first sending module, a first receiving module and a synchronizing module; wherein, the liquid crystal display device comprises a liquid crystal display device,
the first sending module is used for periodically sending a time service request to the synchronous server; wherein, the time service request carries the identification of each sensing device;
The first receiving module is used for receiving a time service response returned by the synchronous server; the time service response carries a predetermined starting time stamp and a corresponding first frame recording time of each sensing device;
the synchronization module is used for setting the system time of the synchronous module according to the starting time, and sending recording data according to the system time, the first frame recording time corresponding to each sensing device and a preset time interval.
In the foregoing embodiment, the synchronization module is specifically configured to take the system time as a start time of each sensing device, and send the recording data according to the predetermined time interval when a current time of each sensing device reaches a first frame recording time corresponding to each sensing device.
In a fourth aspect, the present application further provides a data synchronization device, including: the device comprises a second receiving module, a calculating module and a second sending module; wherein, the liquid crystal display device comprises a liquid crystal display device,
the second receiving module is used for periodically receiving time service requests sent by the sensing devices; wherein, 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 time stamp and a first frame recording time corresponding to each sensing device, so that each sensing device sets own system time according to the starting time, and transmits 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 calculating 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 of receiving the time service request sent by the first sensing device as a first frame recording time corresponding to the first sensing device; when a synchronous 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 smaller than the first frame recording time corresponding to the N-1 th sensing device minus a second preset duration, taking the first frame recording time corresponding to the N-1 th sensing device as the first frame recording time corresponding to the N-th sensing device; if the time of receiving the time service request sent by the N-1 th sensing device is greater than or equal to the first frame recording time corresponding to the N-1 th sensing device minus a second preset duration, adding the first frame recording time of the N-1 th sensing device to the first preset duration to be used as the first frame recording time corresponding to the N-1 th sensing device; wherein N is a natural number greater than or equal to 2.
In a fifth aspect, embodiments of the present application provide an electronic device, including:
one or more processors;
a memory for storing one or more programs,
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the data synchronization method described in any of the embodiments of the present application.
In a sixth aspect, embodiments of the present application provide a storage medium having stored thereon a computer program which, when executed by a processor, implements the data synchronization method described in any of the embodiments of the present application.
One embodiment of 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 periodically sends a time service request to the synchronization server; wherein, the time service request carries the identification of each sensing device; the synchronization 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 synchronization server returns a time service response to each sensing device; the time service response carries a predetermined starting time stamp and a corresponding first frame recording time of each sensing device; each sensing device sets own system time according to the starting time, and transmits recording data according to the system time, the corresponding first frame recording time of each sensing device and a predetermined time interval. That is, each sensing device in the application may set its own system time through the synchronization server, and send recording data synchronously according to the system time and the first frame recording time calculated by the synchronization server and corresponding to each sensing device. Because the system time of each sensing device is determined through the synchronous server and the first frame recording time of each sensing device is calculated through the synchronous server, the problem that the recording data sent by each sensing device is not synchronous is solved. By adopting the technical scheme provided by the application, 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 addition, the technical scheme of the embodiment of the application is simple and convenient to realize, convenient to popularize and wider in application range.
Other effects of the above alternative will be described below in connection with specific embodiments.
Drawings
The drawings are for better understanding of the present solution and do not constitute a limitation of the present application. Wherein:
fig. 1 is a flow chart of a data synchronization method according to an embodiment of the present application;
fig. 2 is a flow chart of a data synchronization method according to a second embodiment of the present application;
fig. 3 is a flow chart of a data synchronization method according to a third embodiment of the present application;
fig. 4 is a flow chart 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 device provided in a fifth embodiment of the present application;
fig. 6 is a schematic structural diagram of a data synchronization device according to a sixth embodiment of the present application;
fig. 7 is a block diagram of an electronic device for implementing a data synchronization method of an embodiment of the present application.
Detailed Description
Exemplary embodiments of the present application are described below in conjunction with the accompanying drawings, which include various details of the embodiments of the present application to facilitate understanding, and should be considered as merely exemplary. Accordingly, one 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 1
Fig. 1 is a schematic flow chart of a data synchronization method provided in an embodiment of the present application, where the method may be performed 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 where the apparatus or each sensing device may be integrated into any intelligent device having a network communication function. As shown in fig. 1, the data synchronization method may include the steps of:
s101, periodically sending a time service request to a synchronous server; wherein the time service request carries the identity 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 identity of each sensing device. For example, the camera 1 may periodically send a time service request 1 to the synchronization server; the time service request 1 carries an identifier of the camera 1; the camera 2 can periodically send a time service request 2 to the synchronous server; wherein, the time service request 2 carries the identification 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 a corresponding first frame recording time of 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 a corresponding first frame recording time of 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 time stamp and a corresponding first frame recording time of 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 time stamp and a corresponding first frame recording time of the camera 2. The predetermined start-up time stamp here may be a time predetermined by the synchronization server, for example: 2019, 1 month, 1 day 00:00:00; the first frame recording time corresponding to each camera is calculated by the synchronous 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 own system time according to the starting time, and sending recording data according to the system time, the corresponding first frame recording time of 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 recording data according to the system time, the corresponding first frame recording time of 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 recording time of the first frame 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 time stamp 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 the own system time to 2019, 1 month, 1 day and 00:00:00. assuming that the recording time of the first frame corresponding to the camera 1 carried in the time service response returned by the synchronization server is 2019, 1 month and 1 day 00:00:00:40, when the current time of the camera 1 reaches the recording time of the first frame 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 periodically sends a time service request to a synchronization server; wherein, the time service request carries the identification of each sensing device; the synchronization 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 synchronization server returns a time service response to each sensing device; the time service response carries a predetermined starting time stamp and a corresponding first frame recording time of each sensing device; each sensing device sets own system time according to the starting time, and transmits recording data according to the system time, the corresponding first frame recording time of each sensing device and a predetermined time interval. That is, each sensing device in the application may set its own system time through the synchronization server, and send recording data synchronously according to the system time and the first frame recording time calculated by the synchronization server and corresponding to each sensing device. Because the system time of each sensing device is determined through the synchronous server and the first frame recording time of each sensing device is calculated through the synchronous server, the problem that the recording data sent by each sensing device is not synchronous is solved. By adopting the technical scheme provided by the application, 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 addition, the technical scheme of the embodiment of the application is simple and convenient to realize, convenient to popularize and wider in application range.
Example two
Fig. 2 is a flow chart 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, periodically sending a time service request to a synchronous server; wherein the time service request carries the identity 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 identity of each sensing device. For example, the camera 1 may periodically send a time service request 1 to the synchronization server; the time service request 1 carries an identifier of the camera 1; the camera 2 can periodically send a time service request 2 to the synchronous server; wherein, the time service request 2 carries the identification 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 a corresponding first frame recording time of 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 a corresponding first frame recording time of 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 time stamp and a corresponding first frame recording time of 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 time stamp and a corresponding first frame recording time of the camera 2.
S203, taking the system time as the starting time of each sensing device, and sending recording data according to a predetermined time interval when the current time of each sensing device reaches the recording time of the first frame 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 a current time of each sensing device reaches a first frame recording time corresponding to each sensing device, record data is sent according to a predetermined time interval. For example, assume that the predetermined start time stamp 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 the own system time to 2019, 1 month, 1 day and 00:00:00. assuming that the recording time of the first frame corresponding to the camera 1 carried in the time service response returned by the synchronization server is 2019, 1 month and 1 day 00:00:00:40, when the current time of the camera 1 reaches the recording time of the first frame 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 periodically sends a time service request to a synchronization server; wherein, the time service request carries the identification of each sensing device; the synchronization 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 synchronization server returns a time service response to each sensing device; the time service response carries a predetermined starting time stamp and a corresponding first frame recording time of each sensing device; each sensing device sets own system time according to the starting time, and transmits recording data according to the system time, the corresponding first frame recording time of each sensing device and a predetermined time interval. That is, each sensing device in the application may set its own system time through the synchronization server, and send recording data synchronously according to the system time and the first frame recording time calculated by the synchronization server and corresponding to each sensing device. Because the system time of each sensing device is determined through the synchronous server and the first frame recording time of each sensing device is calculated through the synchronous server, the problem that the recording data sent by each sensing device is not synchronous is solved. By adopting the technical scheme provided by the application, 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 addition, the technical scheme of the embodiment of the application is simple and convenient to realize, convenient to popularize and wider in application range.
Example III
Fig. 3 is a schematic flow chart of a data synchronization method provided in the third embodiment of the present application, where the method may be performed by a data synchronization device or a synchronization server, where the device or the synchronization server may be implemented by software and/or hardware, and the device or the synchronization server may be integrated into any intelligent device having a network communication function. As shown in fig. 3, the data synchronization method may include the steps of:
s301, periodically receiving time service requests sent by all sensing devices; wherein the time service request carries the identity 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 identity of each sensing device. For example, the synchronization server may periodically receive the time service request 1 sent by the camera 1; the time service request 1 carries an 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 identification of the camera 2; and so on.
S302, 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.
In a specific embodiment of the present application, the synchronization server may calculate, according to a time of receiving a time service request sent by each sensing device, a first frame recording time corresponding to each sensing device. Specifically, when the synchronization server receives a time service request sent by the first sensing device, the synchronization server may add a first preset duration to a time of receiving the time service request sent by the first sensing device as a first frame recording time corresponding to the first sensing device; when the synchronization server receives the 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 smaller than the first frame recording time corresponding to the (N-1) th sensing device minus the second preset duration, the synchronization server can take the first frame recording time corresponding to the (N-1) th sensing device as the first frame recording time corresponding to the (N) th sensing device; if the time of receiving the time service request sent by the nth sensing device is greater than or equal to the first frame recording time corresponding to the (N-1) th sensing device minus the second preset duration, the synchronization server can add the first frame recording time corresponding to the (N-1) th sensing device to the first preset duration as the first frame recording time corresponding to the (N) th sensing device; wherein N is a natural number greater than or equal to 2. 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 duration (the first preset duration may be 40 ms) to the time of receiving the time service request 1 sent by the camera 1 as a 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 for 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 duration (the second preset duration may be 15 ms), the synchronization server may use 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 first frame recording time corresponding to the camera 1 minus the second preset duration, the synchronization server can add the first frame recording time corresponding to the camera 1 plus the first preset duration as the first frame recording time corresponding to the camera 2; and so on.
S303, returning time service responses to the sensing devices; the time service response carries a predetermined starting time stamp and a first frame recording time corresponding to each sensing device, so that each sensing device sets own system time according to the starting time, and transmits recording data according to the system time, the first frame recording time corresponding to each sensing device and a predetermined time interval.
In particular embodiments 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 time stamp and a first frame recording time corresponding to each sensing device, so that each sensing device sets own system time according to the starting time, and transmits 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 recording time of the first frame 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 periodically sends a time service request to a synchronization server; wherein, the time service request carries the identification of each sensing device; the synchronization 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 synchronization server returns a time service response to each sensing device; the time service response carries a predetermined starting time stamp and a corresponding first frame recording time of each sensing device; each sensing device sets own system time according to the starting time, and transmits recording data according to the system time, the corresponding first frame recording time of each sensing device and a predetermined time interval. That is, each sensing device in the application may set its own system time through the synchronization server, and send recording data synchronously according to the system time and the first frame recording time calculated by the synchronization server and corresponding to each sensing device. Because the system time of each sensing device is determined through the synchronous server and the first frame recording time of each sensing device is calculated through the synchronous server, the problem that the recording data sent by each sensing device is not synchronous is solved. By adopting the technical scheme provided by the application, 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 addition, the technical scheme of the embodiment of the application is simple and convenient to realize, convenient to popularize and wider in application range.
Example IV
Fig. 4 is a flow chart 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, periodically receiving time service requests sent by each sensing device; wherein the time service request carries the identity 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 identity of each sensing device. For example, the synchronization server may periodically receive the time service request 1 sent by the camera 1; the time service request 1 carries an 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 identification of the camera 2; and so on.
S402, when the synchronization server receives a time service request sent by a first sensing device, adding a first preset duration to the time of receiving the time service request sent by the first sensing device as a first frame recording time corresponding to the first sensing device.
In a specific embodiment of the present application, when the synchronization server receives the time service request sent by the first sensing device, the synchronization server may add the time of receiving the time service request sent by the first sensing device to the first preset duration as the 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 duration (the first preset duration may be 40 ms) to the time of receiving the time service request 1 sent by the camera 1 as the corresponding first frame recording time of the camera 1.
S403, when the synchronous 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 smaller than the first frame recording time corresponding to the N-1 th sensing device minus a second preset duration, taking the first frame recording time corresponding to the N-1 th sensing device as the first frame recording time corresponding to the N-th sensing device; if the time of receiving the time service request sent by the Nth sensing device is greater than or equal to the first frame recording time corresponding to the N-1 th sensing device minus the second preset duration, adding the first frame recording time corresponding to the N-1 th sensing device plus the first preset duration as the first frame recording time corresponding to the N-1 th sensing device; wherein N is a natural number greater than or equal to 2.
In a specific embodiment of the present application, when the synchronization server receives the 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 the second preset duration, the synchronization server may use 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 device is greater than or equal to the first frame recording time corresponding to the (N-1) th sensing device minus the second preset duration, the synchronization server can add the first frame recording time corresponding to the (N-1) th sensing device to the first preset duration as the first frame recording time corresponding to the (N) th sensing device; wherein N is a natural number greater than or equal to 2. For example, when the synchronization server receives the time service request 2 sent by the camera 2, if the time for 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 duration (the second preset duration may be 15 ms), the synchronization server may use 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 first frame recording time corresponding to the camera 1 minus the second preset duration, the synchronization server can add the first frame recording time corresponding to the camera 1 plus the first preset duration as the first frame recording time corresponding to the camera 2; and so on.
S404, returning a time service response to each sensing device; the time service response carries a predetermined starting time stamp and a first frame recording time corresponding to each sensing device, so that each sensing device sets own system time according to the starting time, and transmits recording data according to the system time, the first frame recording time corresponding to each sensing device and a predetermined time interval.
In particular embodiments 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 time stamp and a first frame recording time corresponding to each sensing device, so that each sensing device sets own system time according to the starting time, and transmits 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 recording time of the first frame 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 time stamp 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 the own system time to 2019, 1 month, 1 day and 00:00:00. assuming that the recording time of the first frame corresponding to the camera 1 carried in the time service response returned by the synchronization server is 2019, 1 month and 1 day 00:00:00:40, when the current time of the camera 1 reaches the recording time of the first frame 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 periodically sends a time service request to a synchronization server; wherein, the time service request carries the identification of each sensing device; the synchronization 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 synchronization server returns a time service response to each sensing device; the time service response carries a predetermined starting time stamp and a corresponding first frame recording time of each sensing device; each sensing device sets own system time according to the starting time, and transmits recording data according to the system time, the corresponding first frame recording time of each sensing device and a predetermined time interval. That is, each sensing device in the application may set its own system time through the synchronization server, and send recording data synchronously according to the system time and the first frame recording time calculated by the synchronization server and corresponding to each sensing device. Because the system time of each sensing device is determined through the synchronous server and the first frame recording time of each sensing device is calculated through the synchronous server, the problem that the recording data sent by each sensing device is not synchronous is solved. By adopting the technical scheme provided by the application, 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 addition, the technical scheme of the embodiment of the application is simple and convenient to realize, convenient to popularize and wider in application range.
Example five
Fig. 5 is a schematic structural diagram of a data synchronization device according to a fifth embodiment of the present application. As shown in fig. 5, the apparatus 500 includes: a first transmitting module 501, a first receiving module 502 and a synchronizing module 503; wherein, the liquid crystal display device comprises a liquid crystal display device,
the first sending module 501 is configured to send a time service request to a synchronization server periodically; wherein, 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 time stamp and a corresponding first frame recording time of each sensing device;
the synchronization module 503 is configured to set a system time 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 take the system time as a start time of each sensing device, and send the recording data according to the predetermined time interval when a current time of each sensing device reaches a first frame recording time corresponding to each sensing device.
The data synchronization device can execute the methods provided in the first and second embodiments of the present application, and has the corresponding functional modules and beneficial effects of executing the methods. Technical details not described in detail in this embodiment can be seen in the data synchronization methods provided in the first and second embodiments of the present application.
Example six
Fig. 6 is a schematic structural diagram of a data synchronization device 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 transmitting module 603; wherein, the liquid crystal display device comprises a liquid crystal display device,
the second receiving module 601 is configured to periodically receive a time service request sent by each sensing device; wherein, the time service request carries the identification of each sensing device;
the calculating module 602 is configured to calculate a first frame recording time corresponding to each sensing device according to a time when the time service request sent by each sensing device is received;
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 time stamp and a first frame recording time corresponding to each sensing device, so that each sensing device sets own system time according to the starting time, and transmits 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, add a first preset duration to a time of receiving the time service request sent by the first sensing device as a first frame recording time corresponding to the first sensing device; when a synchronous 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 smaller than the first frame recording time corresponding to the N-1 th sensing device minus a second preset duration, taking the first frame recording time corresponding to the N-1 th sensing device as the first frame recording time corresponding to the N-th sensing device; if the time of receiving the time service request sent by the N-1 th sensing device is greater than or equal to the first frame recording time corresponding to the N-1 th sensing device minus a second preset duration, adding the first frame recording time of the N-1 th sensing device to the first preset duration to be used as the first frame recording time corresponding to the N-1 th sensing device; wherein N is a natural number greater than or equal to 2.
The data synchronization device can execute the methods provided in embodiments 3 and 4 of the present application, and has the corresponding functional modules and beneficial effects of executing the methods. Technical details not described in detail in this embodiment can be seen in the data synchronization methods provided in any of the third and fourth embodiments of the present application.
Example seven
According to embodiments of the present application, an electronic device and a readable storage medium are also provided.
As shown in fig. 7, a block diagram of an electronic device according to a data synchronization method according to an embodiment of the present application is shown. 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 telephones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the application described and/or claimed herein.
As shown in fig. 7, the electronic device includes: one or more processors 701, memory 702, and interfaces for connecting the various components, including high-speed interfaces and low-speed interfaces. 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 executing within the electronic device, including instructions stored in or on memory to display graphical information of the GUI on an external input/output device, such as a display device coupled to the interface. In other embodiments, multiple processors and/or multiple buses may be used, if desired, along with multiple memories and multiple memories. Also, multiple electronic devices may be connected, each providing a portion of the necessary operations (e.g., as a server array, a set of blade servers, or a multiprocessor system). One processor 701 is illustrated in fig. 7.
Memory 702 is a non-transitory computer-readable storage medium provided herein. Wherein the memory stores instructions executable by the at least one processor to cause the at least one processor to perform the data synchronization methods 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 by the present application.
The memory 702 is used as a non-transitory computer readable storage medium for storing non-transitory software programs, non-transitory computer executable programs, and modules, such as program instructions/modules (e.g., the first transmitting module 501, the first receiving module 502, and the synchronizing 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, i.e., implements the data synchronization method in the above-described method embodiments, by running non-transitory software programs, instructions, and modules stored in the memory 702.
Memory 702 may include a storage program area that may store an operating system, at least one application program required for functionality, and a storage data area; the storage data area may store data created according to the use of the electronic device of the data synchronization method, and the like. In addition, 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, memory 702 optionally includes memory remotely located relative to processor 701, which may be connected to the electronic device 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 otherwise, in fig. 7 by way of example.
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 device of the data synchronization method, such as a touch screen, a keypad, a mouse, a track pad, a touch pad, a pointer stick, one or more mouse buttons, a track ball, a joystick, and the like. The output device 704 may include a display apparatus, auxiliary lighting devices (e.g., LEDs), and haptic feedback devices (e.g., vibration 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 may be a touch screen.
Various implementations of the systems and techniques described here can be realized in digital electronic circuitry, integrated circuitry, application specific ASIC (application specific integrated circuit), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
These computing programs (also referred to as programs, software applications, or code) include machine instructions for a programmable processor, and may be implemented in a high-level procedural and/or object-oriented programming language, and/or in assembly/machine language. 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 pointing device (e.g., a mouse or 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 may 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 input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background 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 background, 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 a client and a server. The client and server are typically 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 periodically sends a time service request to the synchronous server; wherein, the time service request carries the identification of each sensing device; the synchronization 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 synchronization server returns a time service response to each sensing device; the time service response carries a predetermined starting time stamp and a corresponding first frame recording time of each sensing device; each sensing device sets own system time according to the starting time, and transmits recording data according to the system time, the corresponding first frame recording time of each sensing device and a predetermined time interval. That is, each sensing device in the application may set its own system time through the synchronization server, and send recording data synchronously according to the system time and the first frame recording time calculated by the synchronization server and corresponding to each sensing device. Because the system time of each sensing device is determined through the synchronous server and the first frame recording time of each sensing device is calculated through the synchronous server, the problem that the recording data sent by each sensing device is not synchronous is solved. By adopting the technical scheme provided by the application, 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 addition, the technical scheme of the embodiment of the application is simple and convenient to realize, convenient to popularize and wider in application range.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps described in the present application may be performed in parallel, sequentially, or in a different order, provided that the desired results of the technical solutions disclosed in the present application can be achieved, and are not limited herein.
The above embodiments do not limit the scope of the application. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present application are intended to be included within the scope of the present application.

Claims (8)

1. A method of data synchronization, for use with a sensing device, the method comprising:
periodically sending a time service request to a synchronous server; wherein, 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 time stamp and a corresponding first frame recording time of each sensing device;
Setting own system time according to the starting time, and sending recording data according to the system time, the corresponding first frame recording time of each sensing device and a preset time interval;
the first frame recording time is determined according to the following mode:
when the synchronization server receives a time service request sent by a first sensing device, adding a first preset duration to the time for receiving the time service request sent by the first sensing device as a first frame recording time corresponding to the first sensing device;
when a synchronous 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 smaller than the first frame recording time corresponding to the N-1 th sensing device minus a second preset duration, taking the first frame recording time corresponding to the N-1 th sensing device as the first frame recording time corresponding to the N-th sensing device; if the time of receiving the time service request sent by the N-1 th sensing device is greater than or equal to the first frame recording time corresponding to the N-1 th sensing device minus a second preset duration, adding the first frame recording time of the N-1 th sensing device to the first preset duration to be used as the first frame recording time corresponding to the N-1 th sensing device; wherein N is a natural number greater than or equal to 2.
2. The method of claim 1, wherein the transmitting the recording data according to the system time and the corresponding first frame recording time of each sensing device and the predetermined time interval comprises:
and taking the system time as the starting time of each sensing device, and transmitting 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.
3. A data synchronization method, applied to a synchronization server, comprising:
periodically receiving a time service request sent by each sensing device; wherein, the time service request carries the identification of each sensing device;
according to the time of receiving the time service request sent by each sensing device, calculating the corresponding first frame recording time of each sensing device;
returning a time service response to each sensing device; the time service response carries a predetermined starting time stamp and a first frame recording time corresponding to each sensing device, so that each sensing device sets own system time according to the starting time, and transmits recording data according to the system time, the first frame recording time corresponding to each sensing device and a predetermined time interval;
The 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 comprises the following steps:
when the synchronization server receives a time service request sent by a first sensing device, adding a first preset duration to the time for receiving the time service request sent by the first sensing device as a first frame recording time corresponding to the first sensing device;
when a synchronous 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 smaller than the first frame recording time corresponding to the N-1 th sensing device minus a second preset duration, taking the first frame recording time corresponding to the N-1 th sensing device as the first frame recording time corresponding to the N-th sensing device; if the time of receiving the time service request sent by the N-1 th sensing device is greater than or equal to the first frame recording time corresponding to the N-1 th sensing device minus a second preset duration, adding the first frame recording time of the N-1 th sensing device to the first preset duration to be used as the first frame recording time corresponding to the N-1 th sensing device; wherein N is a natural number greater than or equal to 2.
4. A data synchronization device, the device comprising: the device comprises a first sending module, a first receiving module and a synchronizing module; wherein, the liquid crystal display device comprises a liquid crystal display device,
the first sending module is used for periodically sending a time service request to the synchronous server; wherein, the time service request carries the identification of each sensing device;
the first receiving module is used for receiving a time service response returned by the synchronous server; the time service response carries a predetermined starting time stamp and a corresponding first frame recording time of each sensing device;
the synchronous module is used for setting the system time of the synchronous module according to the starting time and sending recording data according to the system time, the first frame recording time corresponding to each sensing device and a preset time interval;
the first frame recording time is determined according to the following mode:
when the synchronization server receives a time service request sent by a first sensing device, adding a first preset duration to the time for receiving the time service request sent by the first sensing device as a first frame recording time corresponding to the first sensing device;
when a synchronous 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 smaller than the first frame recording time corresponding to the N-1 th sensing device minus a second preset duration, taking the first frame recording time corresponding to the N-1 th sensing device as the first frame recording time corresponding to the N-th sensing device; if the time of receiving the time service request sent by the N-1 th sensing device is greater than or equal to the first frame recording time corresponding to the N-1 th sensing device minus a second preset duration, adding the first frame recording time of the N-1 th sensing device to the first preset duration to be used as the first frame recording time corresponding to the N-1 th sensing device; wherein N is a natural number greater than or equal to 2.
5. The apparatus according to claim 4, wherein:
the synchronization module is specifically configured to take the system time as a start time of each sensing device, and send the recording data according to the predetermined time interval when a current time of each sensing device reaches a recording time of a first frame corresponding to each sensing device.
6. A data synchronization device, the device comprising: the device comprises a second receiving module, a calculating module and a second sending module; wherein, the liquid crystal display device comprises a liquid crystal display device,
the second receiving module is used for periodically receiving time service requests sent by the sensing devices; wherein, 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 time stamp and a first frame recording time corresponding to each sensing device, so that each sensing device sets own system time according to the starting time, and transmits recording data according to the system time, the first frame recording time corresponding to each sensing device and a predetermined time interval;
The computing 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 of receiving the time service request sent by the first sensing device as a first frame recording time corresponding to the first sensing device; when a synchronous 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 smaller than the first frame recording time corresponding to the N-1 th sensing device minus a second preset duration, taking the first frame recording time corresponding to the N-1 th sensing device as the first frame recording time corresponding to the N-th sensing device; if the time of receiving the time service request sent by the N-1 th sensing device is greater than or equal to the first frame recording time corresponding to the N-1 th sensing device minus a second preset duration, adding the first frame recording time of the N-1 th sensing device to the first preset duration to be used as the first frame recording time corresponding to the N-1 th sensing device; wherein N is a natural number greater than or equal to 2.
7. An electronic device, comprising:
at least one processor; and
A memory communicatively coupled to the at least one processor; wherein, the liquid crystal display device comprises a liquid crystal display device,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the data synchronization method of any one of claims 1-3.
8. A non-transitory computer readable storage medium storing computer instructions for causing the computer to perform the data synchronization method of any one of claims 1-3.
CN201911048188.6A 2019-10-30 2019-10-30 Data synchronization method and device, electronic equipment and storage medium Active CN110809041B (en)

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 CN110809041A (en) 2020-02-18
CN110809041B true 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)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Citations (12)

* Cited by examiner, † Cited by third party
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
CN101778405A (en) * 2010-01-05 2010-07-14 武汉理工大学 Method and system for synchronous acquisition of wireless sensor network for structural health monitoring
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
WO2019033956A1 (en) * 2017-08-14 2019-02-21 杭州海康威视数字技术股份有限公司 Monitoring video synchronization method and video camera

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8193481B2 (en) * 2009-01-26 2012-06-05 Centre De Recherche Industrielle De Quebec Method and apparatus for assembling sensor output data with data representing a sensed location on a moving article
CN101594539A (en) * 2009-06-24 2009-12-02 中兴通讯股份有限公司 Realize method, decoder and the supervisory control system of decoder synchronous polling
US10757485B2 (en) * 2017-08-25 2020-08-25 Honda Motor Co., Ltd. System and method for synchronized vehicle sensor data acquisition processing using vehicular communication
CN109194436B (en) * 2018-11-01 2020-08-07 百度在线网络技术(北京)有限公司 Sensor timestamp synchronous testing 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

Patent Citations (12)

* Cited by examiner, † Cited by third party
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
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
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

Also Published As

Publication number Publication date
CN110809041A (en) 2020-02-18

Similar Documents

Publication Publication Date Title
EP3142304B1 (en) Synchronization method for notification message of electronic device, server and electronic device
JP6906540B2 (en) Web page data processing methods, devices and systems
EP3447631B1 (en) Writing trajectory synchronization method and system for multiple clients
JP7167222B2 (en) APPLET DATA ACQUISITION METHOD, APPARATUS, DEVICE, AND STORAGE MEDIUM
CN103792841B (en) Information generating system during a kind of space camera image pair
CN111664844B (en) Navigation method, navigation device and electronic equipment
CN110809041B (en) Data synchronization method and device, electronic equipment and storage medium
CN111831054B (en) Asynchronous system clock synchronization method, device, system and storage medium
CN111090691B (en) Data processing method and device, electronic equipment and storage medium
WO2023160608A1 (en) Robot control method and apparatus, and storage medium and robot cluster
CN110619100A (en) Method and apparatus for acquiring data
US11783565B2 (en) Image processing method, electronic device and readable storage medium for maintaining a face image buffer queue
CN111787088A (en) Method and device for processing applet data
CN110727736A (en) Data synchronization method and device, electronic equipment and storage medium
CN111510480B (en) Request sending method and device and first server
CN112559194A (en) Application data processing method, device and equipment
CN111339187A (en) Data processing method, device, equipment and storage medium based on intelligent contract
CN112770415B (en) Information processing method and device for wireless hotspots
CN112752323A (en) Method and device for changing hotspot access state
CN112346512A (en) Time synchronization method and device
CN110750424A (en) Resource inspection method and device
CN111177558A (en) Channel service construction method and device
CN115088318B (en) Reference time information using method and device
CN111857887B (en) Data acquisition method, device, electronic equipment and readable storage medium
CN112084263B (en) Data synchronization method, device, equipment and storage medium

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