Time synchronization method, device, electronic device and storage medium for monitoring platform

By configuring a camera with a satellite positioning module on the monitoring platform, selecting the target camera according to the confidence level for time synchronization, and using satellite time-granting time synchronization, the problems of low accuracy and cumbersome maintenance in the security monitoring system are solved, and efficient Accurate time synchronization.

CN113176591BActive Publication Date: 2024-12-06ZHEJIANG UNIVIEW TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110546703.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-05-19
Publication Date
2024-12-06
Estimated Expiration
2041-05-19

AI Technical Summary

Technical Problem

In security monitoring systems, the existing time synchronization methods have problems such as low accuracy and cumbersome maintenance, especially the local clock source error is large and requires frequent calibration, which affects the quality of monitoring data.

Method used

By configuring the camera of the satellite positioning module on the monitoring platform, its credibility is determined, and the target camera is selected according to the credibility for time synchronization, and using satellite time to synchronize time, additional server deployment and maintenance are avoided.

Benefits of technology

Improves the accuracy and efficiency of time synchronization, solves the time error problem caused by inaccurate local clock sources, and does not require additional server deployment and maintenance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113176591B_ABST
    Figure CN113176591B_ABST
Patent Text Reader

Abstract

The embodiment of the present invention discloses a time synchronization method, device, electronic device and storage medium for a monitoring platform. The time synchronization method of the monitoring platform includes: determining the credibility of a candidate camera configured with a satellite positioning module on the monitoring platform; wherein the satellite positioning module is used to obtain satellite timing time; determining a target camera according to the size of the credibility; and performing time synchronization on the monitoring platform according to the satellite timing time obtained by the satellite positioning module in the target camera. The embodiment of the present invention performs time synchronization through cameras configured with satellite positioning modules registered on the monitoring platform, without the need for additional deployment of servers and subsequent maintenance, thereby improving the efficiency of time synchronization; at the same time, the use of satellite timing time for time synchronization also ensures the accuracy of time synchronization of the monitoring platform, and solves the time error problem caused to the monitoring platform by inaccurate local clock sources.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to the technical field of time synchronization, and in particular to a time synchronization method, device, electronic device and storage medium for a monitoring platform. Background Art

[0002] In the process of network communication, time synchronization between devices is very important. If the time is not synchronized, it will cause communication confusion, and even cause system abnormality and paralysis. Especially in security monitoring systems, time synchronization is particularly important. If the time of each surveillance camera in the security monitoring system is not synchronized, it will cause errors in the monitoring data and affect the monitoring quality.

[0003] There are two solutions for time synchronization at present. One is to use a professional NTP (Network Time Protocol) server. Such servers usually have their own satellite synchronization system, which can achieve accurate time synchronization. For example, the time on mobile phones and computers is mostly synchronized through the network NTP server. The other solution is to specify a server as the clock source, that is, to use the local clock source for timing synchronization.

[0004] However, in the monitoring industry, for security reasons, servers are generally set up in the intranet and cannot be connected to the Internet for network NTP time synchronization. Professional commercial NTP servers are expensive and require external antennas, which are cumbersome to deploy and maintain. Local servers have inaccurate crystal oscillators and large errors. Using them as clock sources can result in a maximum deviation of up to seconds per day. If long-term operation is required, it needs to be calibrated continuously, and the time synchronization efficiency is low. Summary of the invention

[0005] The embodiments of the present invention provide a time synchronization method, device, electronic device and storage medium for a monitoring platform, which improve the accuracy of time synchronization of the monitoring platform and do not require additional deployment and maintenance, thereby improving synchronization efficiency.

[0006] In a first aspect, an embodiment of the present invention provides a time synchronization method for a monitoring platform, comprising:

[0007] Determine the credibility of a candidate camera on a monitoring platform that is equipped with a satellite positioning module; wherein the satellite positioning module is used to obtain satellite timing time;

[0008] Determine the target camera according to the reliability;

[0009] The monitoring platform is synchronized according to the satellite timing obtained by the satellite positioning module in the target camera.

[0010] In a second aspect, an embodiment of the present invention further provides a time synchronization device for a monitoring platform, comprising:

[0011] A credibility determination module, used to determine the credibility of a candidate camera on a monitoring platform that is equipped with a satellite positioning module; wherein the satellite positioning module is used to obtain satellite timing time;

[0012] A target camera determination module, used for determining the target camera according to the reliability;

[0013] The time synchronization module is used to synchronize the monitoring platform according to the satellite timing obtained by the satellite positioning module in the target camera.

[0014] In a third aspect, an embodiment of the present invention further provides an electronic device, including:

[0015] one or more processors;

[0016] a storage device for storing one or more programs,

[0017] When the one or more programs are executed by the one or more processors, the one or more processors implement the time synchronization method for the monitoring platform as described in any embodiment of the present invention.

[0018] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the time synchronization method for a monitoring platform as described in any embodiment of the present invention.

[0019] The embodiment of the present invention determines the credibility of a candidate camera equipped with a satellite positioning module on a monitoring platform; wherein the satellite positioning module is used to obtain satellite timing; a target camera is determined according to the credibility; and the monitoring platform is time synchronized according to the satellite timing obtained by the satellite positioning module in the target camera. The embodiment of the present invention performs time synchronization through cameras equipped with satellite positioning modules registered on the monitoring platform, without the need for additional deployment of servers and subsequent maintenance, thereby improving the efficiency of time synchronization; at the same time, the use of satellite timing for time synchronization also ensures the accuracy of time synchronization of the monitoring platform, thereby solving the time error problem caused to the monitoring platform by inaccurate local clock sources. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] Figure 1 is a flow chart of a time synchronization method for a monitoring platform in Embodiment 1 of the present invention;

[0021] Figure 2 is a flow chart of a time synchronization method for a monitoring platform in Embodiment 2 of the present invention;

[0022] Figure 3 is a flow chart of a time synchronization method for a monitoring platform in Embodiment 3 of the present invention;

[0023] Figure 4 is a schematic diagram of the structure of a time synchronization device for a monitoring platform in a fourth embodiment of the present invention;

[0024] Figure 5 It is a schematic diagram of the structure of an electronic device in Embodiment 5 of the present invention. DETAILED DESCRIPTION

[0025] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only parts related to the present invention, rather than all structures, are shown in the accompanying drawings.

[0026] Embodiment 1

[0027] Figure 1 This is a flow chart of the time synchronization method of the monitoring platform in the first embodiment of the present invention. This embodiment is applicable to the case of synchronizing the time on the monitoring platform. The method can be executed by a time synchronization device of the monitoring platform. The device can be implemented in software and / or hardware and can be configured in the monitoring platform. For example, the monitoring platform can be a background server or other device with communication and computing capabilities. Figure 1 As shown, the method specifically includes:

[0028] Step 101: Determine the credibility of a candidate camera on a monitoring platform that is equipped with a satellite positioning module; wherein the satellite positioning module is used to obtain satellite timing time.

[0029] Among them, the candidate camera refers to a monitoring image acquisition device registered on the monitoring platform. The satellite positioning module refers to a module configured on the camera so that the camera can communicate with the satellite to obtain positioning information. Exemplarily, the satellite positioning module is configured with a satellite navigation system, such as the Beidou satellite navigation system or the GPS satellite navigation system, and different systems are used to connect to the corresponding satellites, such as each positioning module can be connected to at least one satellite. Satellite time refers to the international standard time provided by the satellite navigation system, and the use of this time for time synchronization can ensure the accuracy of time setting on the monitoring platform. The monitoring platform is used to manage all registered cameras and the monitoring images taken by the camera. Therefore, the accuracy of time synchronization on the monitoring platform is crucial to the accuracy of setting the monitoring image time on the platform. The credibility of the candidate camera is used to characterize the reliability and stability of obtaining the satellite time from the satellite positioning module in the camera, because although the candidate camera is configured with a satellite positioning module, due to interference from other external factors, such as satellite signals and network signals, it will interfere with the candidate camera to obtain the satellite time, so the credibility is introduced for characterization. Furthermore, the credibility can be determined based on the satellite signal and network signal of each candidate camera.

[0030] Specifically, when a camera registers with the monitoring platform, a registration message is sent to the monitoring platform. The registration message carries a tag field to mark whether the camera itself is equipped with a satellite positioning module. After identifying a candidate camera equipped with a satellite positioning module, the monitoring platform marks the candidate camera and uses it as a candidate clock source for time synchronization. The monitoring platform determines the credibility of each camera based on the satellite signal and network signal of the candidate camera position equipped with a satellite positioning module.

[0031] Exemplarily, the monitoring platform recognizes that the registered online camera carries a satellite positioning module, adds the coding information, name, IP address and online status of the camera to the database for recording, and marks the initial credibility of the camera as 0. After all candidate cameras configured with satellite positioning modules are added, the credibility is determined based on the satellite signal and network signal of each camera. After adding a new candidate camera configured with a satellite positioning module, the monitoring platform needs to update the credibility of all candidate cameras configured with satellite positioning modules.

[0032] In a feasible embodiment, the credibility of the candidate camera is determined according to at least one of the following: satellite signal anti-interference capability, network stability, and device stability of the candidate camera;

[0033] Among them, the satellite signal anti-interference ability is determined based on at least one of the following: the camera setting location, the building density around the camera, the camera height, the weather and the number of satellites connected to the camera; the network stability is determined based on the networking method and / or network detection data; the equipment stability is determined based on the camera's own stable operation time.

[0034] Among them, the satellite signal anti-interference ability is used to characterize the reception strength of the satellite signal to which the camera is connected, that is, to characterize the stability of the camera receiving data from the connected satellite; network stability is used to characterize the signal strength of the camera transmitting data, that is, to characterize the stability of data transmission between the camera and the monitoring platform; equipment stability refers to the stability of the camera's own operation.

[0035] Specifically, the credibility score S1 of the satellite signal anti-interference ability is calculated according to at least one of the following items: the location of the camera setting, the building density around the camera, the height of the camera, the weather and the number of satellites connected to the camera; the credibility score S2 of the network stability is determined according to the networking method and / or network detection data; the credibility score S3 of the device stability is determined according to the camera's own stable operation time. Finally, the credibility score S of each candidate camera is determined according to the credibility score S1 of the satellite signal anti-interference ability, the credibility score S2 of the network stability, and the credibility score S3 of the device stability. Exemplarily, S=w1×S1+w2×S2+w3×S3, where w1, w2 and w3 are the weight values ​​of the influence of the satellite signal anti-interference ability, network stability and device stability on the camera credibility, respectively. The specific values ​​can be set according to the actual situation and are not limited here.

[0036] The credibility score of the anti-interference ability of satellite signals is affected by the camera setting position, the density of buildings around the camera, the height of the camera, the weather and the number of satellites connected to the camera. Among them, the camera setting position refers to whether the camera is set indoors or outdoors. Since the satellite signal indoors will be seriously damaged, the satellite signal anti-interference ability of the candidate camera set indoors is lower than that of the one set outdoors. Specifically, if the candidate camera is set indoors, the credibility is deducted according to the preset score; if it is set outdoors, the credibility is increased according to the preset score. The density of buildings around the camera refers to the density of buildings around the camera. The higher the building density, the stronger the interference to the satellite signal. Specifically, if the density of buildings around the camera is greater than the preset density threshold, the credibility is deducted according to the preset score; otherwise, the credibility is increased according to the preset score. Optionally, a mapping relationship between the density of buildings around the camera and the credibility of this item is established in advance, and the mapped credibility score is determined according to the density of buildings around the camera of the candidate camera as the credibility of this item. The camera height refers to the setting height of the camera. The lower the camera is set, the weaker the satellite signal reception capability. Specifically, if the camera height is less than the preset height threshold, the credibility is deducted according to the preset score; otherwise, the credibility is increased according to the preset score. Optionally, a mapping relationship between the camera height and the credibility of this item is established in advance, and the mapped credibility score is determined according to the camera height of the candidate camera as the credibility of this item. Weather refers to the real-time weather or the proportion of good weather throughout the year at the camera location. Severe weather such as rain and snow will interfere with satellite signals, while satellite reception signals in sunny and good weather are better. Specifically, if the real-time weather is bad weather or the proportion of good weather throughout the year at the camera location is lower than the preset weather proportion threshold, the credibility is deducted according to the preset score; otherwise, the credibility is increased according to the preset score. The number of satellites connected to the camera refers to the number of satellites connected to the satellite positioning module of the camera. The more satellites connected, the stronger the anti-interference ability of the received satellite signal. Specifically, a mapping relationship between the number of connected satellites and the credibility of this item is established in advance, and the mapped credibility score is determined according to the number of camera-connected satellites of the candidate camera as the credibility of this item. Optionally, if the number of satellites connected to the camera is less than three, the camera's satellite signal reception anti-interference ability is poor, and the credibility is deducted according to the preset score. The credibility score of the satellite signal anti-interference ability is determined based on the sum of the credibility scores of the camera setting location, the building density around the camera, the camera height, the weather, and the number of satellites connected to the camera.

[0037] The credibility score of network stability is affected by the networking mode and / or network detection data. The networking mode refers to the network connection mode between the camera and the monitoring platform, including wired connection and wireless connection. Since the wireless connection is unstable, it is easy to be disconnected, resulting in high data transmission delay. Specifically, if the networking mode is wireless connection, the credibility of this item is deducted according to the preset score; if it is wired connection, the credibility of this item is increased according to the preset score. Network monitoring data is used to characterize the connectivity of the network. For example, network monitoring data includes network monitoring of the camera, packet loss rate and average delay data, etc. The higher the packet loss rate and average delay data, the worse the network from the camera to the monitoring platform. Specifically, if the network detection data is higher than the preset network threshold, the credibility is deducted according to the preset score; otherwise, the credibility is increased according to the preset score. Optionally, a mapping relationship between the network detection data and the credibility of this item is established in advance, and the mapped credibility score is determined according to the network detection data of the candidate camera as the credibility of this item. The credibility score of network stability is determined according to the credibility scores of each item of the networking mode and / or network detection data.

[0038] The credibility score of device stability is affected by the camera's own stable operation time. Among them, the camera's own stable operation time refers to the current duration of the camera's own normal system operation. The longer the camera's own stable operation time, the more stable the environment in which the camera is located. Specifically, if the camera's own stable operation time is less than the preset time threshold, the credibility is deducted according to the preset score; otherwise, the credibility is increased according to the preset score. Optionally, a mapping relationship between the self-stable operation time and the credibility is pre-established, and the mapped credibility score is determined according to the candidate camera's own stable operation time as the credibility of the device stability.

[0039] Step 102: Determine the target camera according to the reliability.

[0040] Since the credibility represents the reliability and stability of obtaining the satellite timing time from the satellite positioning module in the camera, according to the above credibility determination method, it can be obtained that: the higher the credibility, the more reliable the satellite timing time obtained from the candidate camera. Therefore, the candidate cameras are sorted according to the credibility, and the candidate camera with the highest credibility is the target camera and can be used as the main clock source.

[0041] In a feasible embodiment, after determining the target camera according to the reliability, the method further includes:

[0042] Determine whether the credibility of the target camera is less than a preset credibility threshold;

[0043] If yes, then the local clock source is used;

[0044] If not, then execute: synchronize the monitoring platform according to the satellite timing obtained by the satellite positioning module in the target camera.

[0045] Determining the candidate camera with the highest credibility as the target camera only means that the target camera has the highest credibility in the current environment, but it cannot indicate the credibility of the satellite time obtained by the target camera as the synchronization time. Therefore, before performing time synchronization, the credibility of the target camera is judged against the preset credibility threshold. Among them, the preset credibility threshold is used to characterize the minimum credibility of the target camera as a clock source for time synchronization. The specific value of the preset credibility threshold is set according to the actual situation, for example, it is determined according to the credibility determination method, and is not limited here. For example, the preset credibility threshold is set according to an empirical value.

[0046] Specifically, after determining the target camera according to the size of the credibility, that is, before performing time synchronization according to the target camera, it is determined whether the credibility of the target camera is less than the preset credibility threshold. If so, it means that the target camera still does not meet the requirements of being a clock source for time synchronization, and the monitoring platform cancels the clock source synchronization and continues to use the local clock source. If the credibility of the target camera is greater than or equal to the preset credibility threshold, it means that the target camera meets the requirements of being a clock source for time synchronization. Then execute step 103 to perform time synchronization. Optionally, if the credibility of the target camera is less than the preset credibility threshold, the credibility of the target camera is monitored while continuing to use the local clock source. If the credibility of the target camera changes, the threshold judgment is started again. Optionally, if the credibility of the target camera is less than the preset credibility threshold, the credibility of the candidate cameras on the monitoring platform is periodically updated and judged while continuing to use the local clock source to determine whether there is a target camera with a credibility greater than the preset credibility threshold.

[0047] Step 103: synchronize the monitoring platform according to the satellite timing obtained by the satellite positioning module in the target camera.

[0048] After determining the target camera as the clock source for time synchronization, the monitoring platform obtains the satellite timing time from the satellite positioning module of the target camera, and synchronizes the time on the monitoring platform according to the satellite timing time. Specifically, after receiving the satellite timing time, the system time of the monitoring platform is changed to the satellite timing time to complete the time synchronization.

[0049] In a feasible embodiment, step 103 includes:

[0050] Get the satellite time sent by the target camera;

[0051] Determine the delay compensation time according to the transmission delay between the monitoring platform and the target camera;

[0052] The synchronization time is determined based on the satellite timing time and compensation time.

[0053] After the target camera obtains the satellite time, it needs to transmit it to the monitoring platform through the network. The data transmission between the camera and the monitoring platform will cause a certain delay. If the monitoring platform uses the satellite time directly received as the system synchronization time, it will cause the clock source to be acquired inaccurately. Therefore, before time synchronization, it is necessary to compensate for the delay of the satellite time obtained, and then perform synchronization calibration to ensure that the error caused by the transmission delay is eliminated and the accuracy of time synchronization is improved.

[0054] Specifically, while the monitoring platform obtains the satellite timing time from the target camera, it determines the transmission time of transmitting the satellite timing time from the target camera to the monitoring platform, and uses the transmission time as the delay compensation time. After obtaining the satellite timing time, the monitoring platform compensates the delay compensation time on the satellite timing time as the system time of the monitoring platform, thereby completing the time synchronization.

[0055] In a feasible embodiment, determining the delay compensation time according to the transmission delay between the monitoring platform and the target camera includes:

[0056] Sending a time acquisition request to a target camera and determining a sending time of the time acquisition request;

[0057] Receive the response information carrying the satellite timing time sent by the target camera according to the time acquisition request, and determine the receiving time of the response information;

[0058] The delay compensation time is determined based on the sending time and the receiving time.

[0059] After determining the target camera, the monitoring platform sends a time acquisition request to the target camera, instructing the target camera to obtain the satellite timing time, and sends the satellite timing time to the monitoring platform. When sending the time acquisition request to the target camera, the monitoring platform determines the sending time t1 of the time acquisition request. Exemplarily, the monitoring platform sends an ICMP packet to the target camera and records the sending time t1.

[0060] After receiving the time acquisition request, the target camera obtains the satellite timing time t0 through the satellite positioning module, and generates a response message carrying the satellite timing time and sends it to the monitoring platform. After receiving the response message, the monitoring platform obtains the satellite timing time from the response message, and determines the receiving time t2 of the response time. Exemplarily, based on the above example, after receiving the ICMP packet, the target camera adds a payload to the original message, carrying the satellite timing time obtained by the target camera, and then returns the message to the monitoring platform. After receiving the return message packet, the monitoring platform records the receiving time t2 of the received message packet.

[0061] Since the time between the sending time t1 and the receiving time t2 is the time it takes for the message to be transmitted from the monitoring platform to the target camera and then from the target camera to the monitoring platform, the time it takes to transmit data from the target camera to the monitoring platform can be determined based on the sending time and the receiving time. For example, the time it takes to transmit data from the target camera to the monitoring platform, i.e., the delay compensation time The delay consumption time is compensated, and the compensated synchronization time ST is t0+θ.

[0062] When the monitoring platform receives the satellite time and determines the delay compensation time, it changes the current system time to ST to complete the delay compensation and time synchronization. It realizes the network detection of the target camera as the clock source, and performs secondary time calibration compensation according to the network delay to improve the time accuracy of the clock source.

[0063] The embodiment of the present invention determines the credibility of a candidate camera equipped with a satellite positioning module on a monitoring platform; wherein the satellite positioning module is used to obtain satellite timing; a target camera is determined according to the credibility; and the monitoring platform is time synchronized according to the satellite timing obtained by the satellite positioning module in the target camera. The embodiment of the present invention performs time synchronization through cameras equipped with satellite positioning modules registered on the monitoring platform, without the need for additional deployment of servers and subsequent maintenance, thereby improving the efficiency of time synchronization; at the same time, the use of satellite timing for time synchronization also ensures the accuracy of time synchronization of the monitoring platform, thereby solving the time error problem caused to the monitoring platform by inaccurate local clock sources.

[0064] Embodiment 2

[0065] Figure 2 : is a flow chart of the time synchronization method of the monitoring platform in the second embodiment of the present invention. The second embodiment is further optimized on the basis of the first embodiment, and is used for synchronizing the monitoring platform with the satellite timing time obtained by the satellite positioning module in the target camera. Figure 2 As shown, the method includes:

[0066] Step 201: If the preset time interval is reached, the credibility of the candidate camera on the monitoring platform is updated to obtain the updated credibility of the candidate camera.

[0067] After synchronizing the system time of the monitoring platform according to the satellite time of the target camera, the local clock will continue to be used for timing. In the subsequent timing process, errors will continue to accumulate, so it is necessary to periodically synchronize the time to eliminate the errors caused by the local clock source. Among them, the preset time interval indicates the length of the period for time synchronization. The specific value can be set according to the actual situation and is not limited here.

[0068] Specifically, the timing starts after a time synchronization is performed. If the duration from the last time synchronization reaches the preset time interval, the next time synchronization is started. That is, after the preset time interval is reached, it is necessary to re-determine the credibility of the candidate cameras currently configured with the satellite positioning module on the monitoring platform to obtain the updated credibility of each candidate camera. The method for determining the credibility can refer to Example 1 and will not be repeated here. When time synchronization is performed again, the credibility of the target camera determined last time may change, or a newly registered candidate camera may appear. Therefore, the credibility of the candidate camera needs to be re-updated to ensure the accuracy of subsequent time synchronization.

[0069] Step 202: re-determine the target camera according to the updated credibility.

[0070] A new target camera is re-determined according to the updated credibility. The re-determined target camera may be the target camera of the last time synchronization or may not be the target camera.

[0071] Step 203: synchronize the monitoring platform according to the satellite timing obtained by the satellite positioning module in the re-determined target camera.

[0072] The satellite timing is re-acquired based on the satellite positioning module in the re-determined target camera, and then the monitoring platform is synchronized based on the new satellite timing. Even if the re-determined target camera is the target camera of the last time synchronization, it is still necessary to obtain a new satellite timing through the target camera to ensure that the error caused by the local clock source timing is eliminated.

[0073] The embodiment of the present invention synchronizes the time on the monitoring platform by periodically acquiring satellite timing time with high credibility, so as to eliminate the cumulative error problem caused by the timing of the local clock source and improve the accuracy of the system time on the monitoring platform.

[0074] Embodiment 3

[0075] Figure 3is a flow chart of the time synchronization method of the monitoring platform in the third embodiment of the present invention. The second embodiment is further optimized on the basis of the first embodiment, and is used for synchronizing the monitoring platform with the satellite timing time obtained by the satellite positioning module in the target camera. Figure 3 As shown, the method includes:

[0076] Step 301: If the preset time interval is reached, update the online status and credibility of the target camera.

[0077] In order to eliminate the error caused by the local clock source, the system time on the monitoring platform needs to be synchronized periodically. In order to improve the synchronization efficiency and avoid the need to update the credibility of all candidate cameras every time synchronization, in an embodiment of the present invention, a priority determination scheme for health checks on target cameras during periodic synchronization is provided. That is, when the time of the monitoring platform needs to be resynchronized, first determine whether the target camera synchronized last time is still credible. If the target camera is still credible, then use the camera as the target camera for a new round of time synchronization; if the target camera is not credible, then update the credibility of the candidate cameras on the monitoring platform, and re-determine the new target camera based on the updated credibility.

[0078] Specifically, the timing starts after a time synchronization is performed, and if the time from the last time synchronization reaches the preset time interval, the next time synchronization is started. That is, after the preset time interval is reached, a health check needs to be performed on the target camera determined in the previous round. The health check includes an online status check and a credibility update check to determine whether the target camera needs to be re-determined based on the results of the health check.

[0079] Step 302: If the target camera is online and the updated credibility is greater than or equal to the preset credibility threshold, the target camera is not updated.

[0080] If the health check result of the target camera is: still online, and the updated current credibility is greater than or equal to the preset credibility threshold, it means that the target camera is still credible and can still be used as the target camera for a new round of time synchronization.

[0081] Step 303: If the target camera is offline, or the updated credibility is less than the preset credibility threshold, the target camera is re-determined according to the updated credibility of the candidate cameras on the monitoring platform.

[0082] If the health check result of the target camera is: offline, or the updated current credibility is less than the preset credibility threshold, it means that the target camera of the previous round is no longer credible and cannot be used as the target camera of the new round. The target camera needs to be re-determined. The re-determination process can refer to the second embodiment and will not be repeated here.

[0083] When an abnormality occurs in the target camera serving as the clock source, the monitoring platform can proactively sense the abnormality and autonomously switch the clock source, thus achieving high availability and reliability of time synchronization.

[0084] Step 304: synchronize the monitoring platform according to the satellite timing obtained by the satellite positioning module in the target camera.

[0085] After determining the target camera for time synchronization, the monitoring platform is time synchronized according to the satellite time service time obtained by the target camera. The specific method can be referred to in Example 1 and will not be described in detail here.

[0086] When periodically synchronizing the time on the monitoring platform, the embodiment of the present invention first determines whether the target camera of the previous round of time synchronization is credible. If it is credible, the target camera is continued to be used to obtain the satellite time. If it is not credible, a new target camera is re-determined. This avoids the need to update the credibility of all candidate cameras every time the time is synchronized, thereby improving the efficiency of time synchronization.

[0087] Embodiment 4

[0088] Figure 4 Schematic diagram of the structure of the time synchronization device of the monitoring platform in the fourth embodiment of the present invention. This embodiment is applicable to the situation of synchronizing the time on the monitoring platform. Figure 4 As shown, the device comprises:

[0089] The credibility determination module 410 is used to determine the credibility of the candidate camera configured with a satellite positioning module on the monitoring platform; wherein the satellite positioning module is used to obtain satellite timing time;

[0090] A target camera determination module 420, configured to determine a target camera according to the reliability;

[0091] The time synchronization module 430 is used to synchronize the monitoring platform according to the satellite timing obtained by the satellite positioning module in the target camera.

[0092] The embodiment of the present invention determines the credibility of a candidate camera equipped with a satellite positioning module on a monitoring platform; wherein the satellite positioning module is used to obtain satellite timing; a target camera is determined according to the credibility; and the monitoring platform is time synchronized according to the satellite timing obtained by the satellite positioning module in the target camera. The embodiment of the present invention performs time synchronization through cameras equipped with satellite positioning modules registered on the monitoring platform, without the need for additional deployment of servers and subsequent maintenance, thereby improving the efficiency of time synchronization; at the same time, the use of satellite timing for time synchronization also ensures the accuracy of time synchronization of the monitoring platform, thereby solving the time error problem caused to the monitoring platform by inaccurate local clock sources.

[0093] Optional, time synchronization module, including:

[0094] A satellite timing time acquisition unit, used to acquire the satellite timing time sent by the target camera;

[0095] A delay determination unit, used to determine a delay compensation time according to a transmission delay between the monitoring platform and the target camera;

[0096] The synchronization time determination unit is used to determine the synchronization time according to the satellite timing time and the compensation time.

[0097] Optionally, the delay determination unit comprises:

[0098] Sending a time acquisition request to the target camera, and determining a sending time of the time acquisition request;

[0099] Receiving a response message carrying the satellite timing time sent by the target camera according to the time acquisition request, and determining a receiving time of the response message;

[0100] Delay compensation time is determined according to the sending time and the receiving time.

[0101] Optionally, the device further comprises: a synchronization time updating module, which is used for, after synchronizing the monitoring platform with the satellite timing time acquired by the satellite positioning module in the target camera:

[0102] If the preset time interval is reached, the credibility of the candidate camera on the monitoring platform is updated to obtain the updated credibility of the candidate camera;

[0103] re-determine the target camera based on the updated credibility;

[0104] The monitoring platform is time synchronized according to the satellite timing obtained by the satellite positioning module in the re-determined target camera.

[0105] Optionally, the device further includes a target camera determination module, which is used to, after determining the target camera according to the reliability:

[0106] Determining whether the credibility of the target camera is less than a preset credibility threshold;

[0107] If yes, then the local clock source is used;

[0108] If not, then executing: synchronizing the monitoring platform according to the satellite timing obtained by the satellite positioning module in the target camera.

[0109] Optionally, the device further comprises a target camera updating module, which is used for, after synchronizing the monitoring platform with the satellite timing time acquired by the satellite positioning module in the target camera:

[0110] If the preset time interval is reached, updating and judging the online status and credibility of the target camera;

[0111] If the target camera is online and the updated credibility is greater than or equal to the preset credibility threshold, the target camera is not updated;

[0112] If the target camera is offline, or the updated credibility is less than a preset credibility threshold, the target camera is re-determined according to the updated credibility of the candidate camera on the monitoring platform;

[0113] The monitoring platform is synchronized according to the satellite timing obtained by the satellite positioning module in the target camera.

[0114] Optionally, the credibility of the candidate camera is determined according to at least one of the following: satellite signal anti-interference capability, network stability, and device stability of the candidate camera;

[0115] Among them, the satellite signal anti-interference ability is determined according to at least one of the following: the camera setting location, the building density around the camera, the camera height, the weather and the number of satellites connected to the camera; the network stability is determined according to the networking method and / or network detection data; the equipment stability is determined according to the camera's own stable operation time.

[0116] The time synchronization device for a monitoring platform provided in an embodiment of the present invention can execute the time synchronization method for a monitoring platform provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects for executing the time synchronization method for a monitoring platform.

[0117] Embodiment 5

[0118] Figure 5 It is a structural schematic diagram of an electronic device provided in Embodiment 5 of the present invention. Figure 5 A block diagram of an exemplary electronic device 12 suitable for use in implementing embodiments of the present invention is shown. Figure 5 The electronic device 12 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0119] like Figure 5 As shown, the electronic device 12 is in the form of a general purpose computing device. The components of the electronic device 12 may include, but are not limited to: one or more processors or processing units 16, system memory 28, and a bus 18 connecting various system components (including the system memory 28 and the processing unit 16).

[0120] Bus 18 represents one or more of several types of bus structures, including a storage device bus or storage device controller, a peripheral bus, an accelerated graphics port, a processor or a local bus using any of a variety of bus architectures. By way of example, these architectures include, but are not limited to, an Industry Standard Architecture (ISA) bus, a Micro Channel Architecture (MAC) bus, an Enhanced ISA bus, a Video Electronics Standards Association (VESA) local bus, and a Peripheral Component Interconnect (PCI) bus.

[0121] The electronic device 12 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by the electronic device 12, including volatile and non-volatile media, removable and non-removable media.

[0122] The system storage device 28 may include computer system readable media in the form of volatile storage devices, such as random access memory devices (RAM) 30 and / or cache memory devices 32. The electronic device 12 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, the storage system 34 may be used to read and write non-removable, non-volatile magnetic media ( Figure 5 not shown, usually called a "hard drive"). Although Figure 5 Not shown in the figure, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk"), and an optical disk drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, a DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to the bus 18 via one or more data medium interfaces. The storage device 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to perform the functions of the various embodiments of the present invention.

[0123] A program / utility 40 having a set (at least one) of program modules 42 may be stored, for example, in the storage device 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment. The program modules 42 generally perform the functions and / or methods of the embodiments described herein.

[0124] The electronic device 12 may also communicate with one or more external devices 14 (e.g., keyboards, pointing devices, displays 24, etc.), one or more devices that enable a user to interact with the device 12, and / or any device that enables the device 12 to communicate with one or more other computing devices (e.g., network cards, modems, etc.). Such communication may be performed via an input / output (I / O) interface 22. Furthermore, the electronic device 12 may also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) via a network adapter 20. Figure 5 As shown, the network adapter 20 communicates with other modules of the electronic device 12 via the bus 18. It should be understood that although Figure 5 Not shown, other hardware and / or software modules may be used in conjunction with the electronic device 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0125] The processing unit 16 executes various functional applications and data processing by running the programs stored in the system storage device 28, for example, implementing the time synchronization method of the monitoring platform provided in the embodiment of the present invention, including:

[0126] Determine the credibility of a candidate camera on a monitoring platform that is equipped with a satellite positioning module; wherein the satellite positioning module is used to obtain satellite timing time;

[0127] Determine the target camera according to the reliability;

[0128] The monitoring platform is synchronized according to the satellite timing obtained by the satellite positioning module in the target camera.

[0129] Embodiment 6

[0130] Embodiment 6 of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the program is executed by a processor, the time synchronization method of the monitoring platform provided in the embodiment of the present invention is implemented, including:

[0131] Determine the credibility of a candidate camera on a monitoring platform that is equipped with a satellite positioning module; wherein the satellite positioning module is used to obtain satellite timing time;

[0132] Determine the target camera according to the reliability;

[0133] The monitoring platform is synchronized according to the satellite timing obtained by the satellite positioning module in the target camera.

[0134] The computer storage medium of the embodiment of the present invention can adopt any combination of one or more computer-readable media. The computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium can be, for example, but not limited to, a system, device or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples (non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this document, a computer-readable storage medium can be any tangible medium containing or storing a program, which can be used by an instruction execution system, a device or a device or used in combination with it.

[0135] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, which carry computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0136] The program code embodied on the computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

[0137] Computer program code for performing the operation of the present invention may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0138] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims

1. A time synchronization method for a monitoring platform, characterized in that: include: Determine the credibility of a candidate camera on a monitoring platform that is equipped with a satellite positioning module; wherein the satellite positioning module is used to obtain satellite timing time; Determine the target camera according to the reliability; Synchronize the monitoring platform according to the satellite timing obtained by the satellite positioning module in the target camera; Wherein, the time synchronization of the monitoring platform according to the satellite timing time obtained by the satellite positioning module in the target camera includes: Obtaining the satellite timing time sent by the target camera; Determining a delay compensation time according to a transmission delay between the monitoring platform and the target camera; The synchronization time is determined according to the satellite timing time and the delay compensation time.

2. The method according to claim 1, characterized in that Determining the delay compensation time according to the transmission delay between the monitoring platform and the target camera includes: Sending a time acquisition request to the target camera, and determining a sending time of the time acquisition request; Receiving a response message carrying the satellite timing time sent by the target camera according to the time acquisition request, and determining a receiving time of the response message; Delay compensation time is determined according to the sending time and the receiving time.

3. The method according to claim 1, characterized in that: After synchronizing the monitoring platform according to the satellite timing obtained by the satellite positioning module in the target camera, the method further includes: If the preset time interval is reached, the credibility of the candidate camera on the monitoring platform is updated to obtain the updated credibility of the candidate camera; re-determine the target camera based on the updated credibility; The monitoring platform is time synchronized according to the satellite timing obtained by the satellite positioning module in the re-determined target camera.

4. The method according to claim 1, characterized in that: After determining the target camera according to the reliability, the method further includes: Determining whether the credibility of the target camera is less than a preset credibility threshold; If yes, then the local clock source is used; If not, then executing: synchronizing the monitoring platform according to the satellite timing obtained by the satellite positioning module in the target camera.

5. The method according to claim 1, characterized in that After synchronizing the monitoring platform according to the satellite timing obtained by the satellite positioning module in the target camera, the method further includes: If the preset time interval is reached, updating and judging the online status and credibility of the target camera; If the target camera is online and the updated credibility is greater than or equal to the preset credibility threshold, the target camera is not updated; If the target camera is offline, or the updated credibility is less than a preset credibility threshold, the target camera is re-determined according to the updated credibility of the candidate camera on the monitoring platform; The monitoring platform is synchronized according to the satellite timing obtained by the satellite positioning module in the target camera.

6. The method according to claim 1, characterized in that Determining the credibility of the candidate camera according to at least one of the following: satellite signal anti-interference capability, network stability, and device stability of the candidate camera; Among them, the satellite signal anti-interference ability is determined according to at least one of the following: the camera setting location, the building density around the camera, the camera height, the weather and the number of satellites connected to the camera; the network stability is determined according to the networking method and / or network detection data; the equipment stability is determined according to the camera's own stable operation time.

7. A time synchronization device for a monitoring platform, characterized in that: include: A credibility determination module, used to determine the credibility of a candidate camera on a monitoring platform that is equipped with a satellite positioning module; wherein the satellite positioning module is used to obtain satellite timing time; A target camera determination module, used for determining the target camera according to the reliability; A time synchronization module, used to synchronize the monitoring platform according to the satellite timing obtained by the satellite positioning module in the target camera; Wherein, the time synchronization module includes: A satellite timing time acquisition unit, used to acquire the satellite timing time sent by the target camera; A delay determination unit, used to determine a delay compensation time according to a transmission delay between the monitoring platform and the target camera; The synchronization time determination unit is used to determine the synchronization time according to the satellite timing time and the delay compensation time.

8. An electronic device, characterized in that: include: one or more processors; a storage device 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 time synchronization method for the monitoring platform as described in any one of claims 1-6.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the time synchronization method for a monitoring platform as described in any one of claims 1 to 6 is implemented.