Device restart time determination method, device, computer device and storage medium

By analyzing the channel event information of the back-end storage device to determine the optimal restart time, the problem of video data loss caused by the user's arbitrary decision on the restart time is solved, and the integrity and security of the video data are ensured during the restart process.

CN114579360BActive Publication Date: 2025-09-19ZHEJIANG DAHUA TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202210086306.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-25
Publication Date
2025-09-19
Estimated Expiration
2042-01-25

AI Technical Summary

Technical Problem

In the prior art, the restart time of the back-end storage device is arbitrarily determined by the user, resulting in the problem of loss of important video data not being effectively solved.

Method used

By analyzing the real-time and historical event information of each channel of the device to be restarted and its associated device channels at the preset restartable time point, the optimal restart time is determined to avoid restarting when there are important monitored objects, and when necessary, the video data is hosted on other devices to ensure data integrity.

Benefits of technology

This effectively avoids the loss of important video data during the restart process, ensures the integrity of the video data of the monitored object during the restart, and improves the data security of the device restart.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114579360B_ABST
    Figure CN114579360B_ABST
Patent Text Reader

Abstract

The present application relates to a device restart time determination method, apparatus, computer device, and computer-readable storage medium. The method determines the restart time of a device to be restarted by analyzing real-time event information occurring at a preset restartable time point and historical event information occurring before the preset restartable time point based on each channel of the device to be restarted and its corresponding associated device channels. The method can effectively determine the likelihood of the presence of an important monitored object in the surveillance footage of the device to be restarted at the preset restartable time point, thereby preventing the device to be restarted from restarting when an important monitored object is present, effectively reducing the likelihood of important video data loss during the restart process, and thus effectively resolving the problem of important video data loss during the restart process.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of video surveillance technology, and in particular to a method and apparatus for determining a device restart time, a computer device, and a computer-readable storage medium. Background Art

[0002] In the field of video surveillance, back-end storage devices have multiple channels and can simultaneously connect to multiple front-end devices, monitoring the front-end devices' surveillance footage and saving their video data. When new programs are released, back-end storage devices need to be upgraded. Furthermore, for maintenance, back-end storage devices need to be restarted after a set period of time to ensure normal operation.

[0003] In existing technology, when a new program is detected, a pop-up window appears on the user's screen, prompting them to decide whether to upgrade or to enter the upgrade interface. The user can also choose the upgrade time. Furthermore, the user can set a fixed time for device maintenance. Whether the back-end storage device is undergoing an upgrade or maintenance, it must be restarted. During this restart, the monitoring screens of each channel on the back-end storage device will be interrupted.

[0004] However, since the restart time is arbitrarily determined by the user, if the restart time is not selected properly, the problem of loss of important video data may occur.

[0005] With respect to the problem of important video data loss during the restart process in the prior art, no effective solution has been proposed yet. Summary of the Invention

[0006] Based on this, it is necessary to provide a method, device, computer device and computer-readable storage medium for determining the device restart time in order to solve the problem of important video data loss during the restart process in the related art.

[0007] In a first aspect, an embodiment of the present application provides a method for determining a device restart time, for determining a restart time of a device to be restarted, the method comprising the following steps:

[0008] The restart time of the device to be restarted is determined based on each channel of the device to be restarted and its corresponding associated device channel, real-time event information occurring at a preset restartable time point, and historical event information occurring before the preset restartable time point.

[0009] In some embodiments, determining the restart time of the device to be restarted based on each channel of the device to be restarted and its corresponding associated device channel, real-time event information occurring at a preset restartable time point, and historical event information occurring before the preset restartable time point, includes the following steps:

[0010] Determine whether the real-time event information of each channel of the device to be restarted and its corresponding associated device channel occurring at the preset restartable time point and the historical event information occurring before the preset restartable time point meet the preset optimal restart conditions;

[0011] If the conditions are met, the preset restartable time point is used as the restart time of the device to be restarted.

[0012] In some embodiments, determining whether the real-time event information of each channel of the device to be restarted and its corresponding associated device channel occurring at the preset restartable time point and the historical event information occurring before the preset restartable time point meet the preset optimal restart condition includes the following steps:

[0013] Assigning different impact factors to real-time events and historical events occurring on the monitoring screen of the device to be restarted, and assigning different impact factors to real-time events and historical events occurring on the monitoring screen of the associated device channel;

[0014] The impact factors of each channel of the device to be restarted and its corresponding associated device channels at the preset restartable time point are accumulated as the total impact factor at the preset restartable time point, and it is determined whether the total impact factor meets the condition of not exceeding the preset minimum impact factor.

[0015] In some embodiments, before accumulating the impact factors of each channel of the device to be restarted and its corresponding associated device channel at the preset restartable time point, the method further includes:

[0016] The real-time events and the historical events are divided into event types, and different impact factors are assigned to different event types.

[0017] In some embodiments, determining the restart time of the device to be restarted based on each channel of the device to be restarted and its corresponding associated device channel, real-time event information occurring at a preset restartable time point, and historical event information occurring before the preset restartable time point, includes the following steps:

[0018] A preset restart period, determining whether the current time point has reached the preset restartable time point within the preset restart period;

[0019] If the preset restartable time point is reached, the restart time of the device to be restarted is determined based on the various channels of the device to be restarted and their corresponding associated device channels, the real-time event information occurring at the preset restartable time point, and the historical event information occurring before the preset restartable time point.

[0020] In some embodiments, the preset restart period, determining whether the current time point has reached the preset restartable time point within the preset restart period, includes the following steps:

[0021] A preset restart cycle is set, and a preset number of restartable time points are randomly set within the preset restart cycle as the preset restartable time points, and it is determined whether the current time point has reached the preset restartable time point.

[0022] In some embodiments, the method further comprises:

[0023] If the real-time event information of each channel of the device to be restarted and its corresponding associated device channels occurring at the preset restartable time point and the historical event information occurring before the preset restartable time point do not meet the preset optimal restart condition, another device in the same network as the device to be restarted and with idle channels will be used as the hosting device of the device to be restarted;

[0024] Use the front-end device connected to each channel of the device to be restarted as a managed device, send the configuration of the managed device to the managing device, and instruct the managing device to connect the managed device;

[0025] After the hosting device completes accessing the hosted device, the device to be restarted is instructed to restart.

[0026] In some embodiments, if the real-time event information of each channel of the device to be restarted and its corresponding associated device channel occurring at the preset restartable time point and the historical event information occurring before the preset restartable time point do not meet the preset optimal restart conditions, other devices that are in the same network as the device to be restarted and have idle channels are used as the hosting device of the device to be restarted, including the following steps:

[0027] Determine whether each channel of the device to be restarted is a full digital channel;

[0028] If the channels of the device to be restarted are all-digital channels, other devices that are in the same network as the device to be restarted and have idle channels will be used as hosting devices for the device to be restarted.

[0029] In some embodiments, the method further comprises:

[0030] The video data of the hosted device during the restart of the device to be restarted is obtained from the hosting device, and the video data is sent to the device to be restarted.

[0031] In some embodiments, the method further comprises:

[0032] When the device to be restarted completes restarting, the hosting device is instructed to disconnect the hosted device.

[0033] In some embodiments, the method further comprises:

[0034] If the channels of the device to be restarted are not all-digital channels, then finding a time point that meets the preset suboptimal restart condition based on the channels of the device to be restarted and their corresponding associated device channels, real-time event information occurring at each time point within a preset time range after the preset restartable time point, and historical event information occurring before each time point;

[0035] The time point at which the preset suboptimal restart condition is satisfied is used as the restart time of the device to be restarted.

[0036] In a second aspect, an apparatus for determining a device restart time is provided in this embodiment, for determining a restart time of a device to be restarted, the apparatus comprising a determination module;

[0037] The determination module is used to determine the restart time of the device to be restarted based on the real-time event information of each channel of the device to be restarted and its corresponding associated device channel occurring at a preset restartable time point and the historical event information occurring before the preset restartable time point.

[0038] In a third aspect, a computer device is provided in this embodiment, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method described in the first aspect when executing the computer program.

[0039] In a fourth aspect, a computer-readable storage medium is provided in this embodiment, on which a computer program is stored. When the computer program is executed by a processor, the steps of the method described in the first aspect are implemented.

[0040] The above-mentioned device restart time determination method, apparatus, computer device, and computer-readable storage medium determine the restart time of the device to be restarted based on real-time event information occurring at a preset restartable time point and historical event information occurring before the preset restartable time point for each channel of the device to be restarted and its corresponding associated device channels. Based on real-time event information occurring at a preset restartable time point and historical event information occurring before the preset restartable time point for each channel of the device to be restarted and its corresponding associated device channels, it is possible to effectively determine the possibility of the presence of an important monitored object in the surveillance image of the device to be restarted at the preset restartable time point, thereby avoiding the device to be restarted from restarting when an important monitored object is present, effectively reducing the possibility of loss of important video data during the restart process, and thus effectively resolving the problem of loss of important video data during the restart process. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0042] Figure 1 This is an application scenario diagram of the method for determining the device restart time provided in an embodiment of the present application;

[0043] Figure 2 The process of the device restart time determination method provided in the embodiment of the present application is as follows Figure 1 ;

[0044] Figure 3 The process of the device restart time determination method provided in the embodiment of the present application is as follows Figure 2 ;

[0045] Figure 4 This is a flowchart of the hosting strategy for the device to be restarted provided in accordance with an embodiment of the present application;

[0046] Figure 5 This is a flowchart of a hosting strategy for a hosting device provided according to an embodiment of the present application;

[0047] Figure 6 This is a structural diagram of a method and apparatus for determining a device restart time according to an embodiment of the present application;

[0048] Figure 7 It is a structural diagram of a computer device provided according to an embodiment of the present application. DETAILED DESCRIPTION

[0049] In order to make the purpose, technical solutions and advantages of this application more clearly understood, the present application is described and illustrated below in conjunction with the accompanying drawings and examples. It should be understood that the specific embodiments described herein are merely used to explain this application and are not intended to limit this application. Based on the embodiments provided in this application, all other embodiments obtained by those of ordinary skill in the art without making any creative efforts are within the scope of protection of this application.

[0050] Obviously, the drawings described below are merely examples or embodiments of the present application. Those skilled in the art can, without inventive effort, apply the present application to other similar scenarios based on these drawings. Furthermore, it is also understood that, although the effort involved in such a development process may be complex and lengthy, for those skilled in the art related to the content disclosed in this application, changes in design, manufacturing, or production based on the technical content disclosed in this application are merely conventional technical means and should not be construed as an insufficiency of the content disclosed in this application.

[0051] References to "embodiments" in this application mean that a particular feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment of the application. The appearance of this phrase in various places in the specification does not necessarily refer to the same embodiment, nor does it refer to independent or alternative embodiments that are mutually exclusive of other embodiments. It is understood, both explicitly and implicitly, by those skilled in the art that the embodiments described in this application may be combined with other embodiments unless there is a conflict.

[0052] Unless otherwise defined, the technical or scientific terms used in this application should have the ordinary meaning understood by a person of ordinary skill in the technical field to which this application belongs. The words "one", "a", "the" and the like used in this application do not indicate a limit on quantity and may indicate the singular or plural. The terms "include", "comprise", "have" and any variations thereof used in this application are intended to cover non-exclusive inclusions; for example, a process, method, system, product or device that includes a series of steps or modules (units) is not limited to the listed steps or units, but may also include steps or units that are not listed, or may also include other steps or units that are inherent to these processes, methods, products or devices. The words "connect", "connected", "coupled" and the like used in this application are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. The word "multiple" used in this application refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships can exist. For example, "A and / or B" can mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the objects before and after are in an "or" relationship. The terms "first", "second", "third", etc. involved in this application are only used to distinguish similar objects and do not represent a specific order for the objects.

[0053] Figure 1 This is an application scenario diagram of the device restart time determination method provided by an embodiment of the present application. Figure 1As shown, the server 101 and the mobile terminals 102 and 103 can all transmit data through the network. Among them, the mobile terminals 102 and 103 transmit the monitoring screens of each channel to the server 101. After obtaining the monitoring screens of each channel of the mobile terminals 102 and 103, the server 101 determines the associated device channels corresponding to each channel of the mobile terminal 102 according to the monitoring screens of each channel of the mobile terminals 102 and 103; the mobile terminal 102 sends the real-time event information occurring at the preset restartable time point and the historical event information occurring before the preset restartable time point to the server 101, and the mobile terminal 103 associated with the mobile terminal 102 sends the associated device channels corresponding to each channel of the mobile terminal 102 at the preset restartable time point. The real-time event information occurring at the preset restartable time point and the historical event information occurring before the preset restartable time point are sent to the server 101. After obtaining the real-time event information occurring at the preset restartable time point and the historical event information occurring before the preset restartable time point of each channel of the mobile terminal 102 and its corresponding associated device channels, the server 101 determines the restart time of the mobile terminal 102 based on the real-time event information occurring at the preset restartable time point and the historical event information occurring before the preset restartable time point of each channel of the mobile terminal 102 and its corresponding associated device channels. Among them, the server 101 can be implemented by an independent server or a server cluster consisting of multiple servers. The mobile terminal 102 is a back-end storage device, and the mobile terminal 103 can be implemented by an independent back-end storage device or multiple back-end storage devices.

[0054] This embodiment provides a method for determining a device restart time, which can be used to determine the restart time of a device to be restarted, such as Figure 2 As shown, the method includes the following steps: Step S210, determining the restart time of the device to be restarted based on each channel of the device to be restarted and its corresponding associated device channels, real-time event information occurring at a preset restartable time point and historical event information occurring before the preset restartable time point.

[0055] Specifically, the device to be restarted here refers to the back-end storage device. Since the back-end storage device has multiple channels, the back-end storage device can be connected to multiple front-end devices at the same time, monitor the surveillance images of the front-end devices and save the video data of the surveillance images of the front-end devices. When a new program is launched, the back-end storage device needs to be upgraded. In addition, in order to maintain the back-end storage device, the back-end storage device needs to be restarted frequently to ensure the normal operation of the back-end storage device. Regardless of whether the back-end storage device is upgraded or maintained, the back-end storage device needs to be restarted. In the same network, there are generally multiple back-end storage devices. If the surveillance image passing through a channel of the device to be restarted must first pass through the surveillance image of a channel of other back-end storage devices, then the current channel of the device to be restarted and the current channel of this back-end storage device are considered to be associated device channels. For example, the monitoring screen of channel 1 of the device to be restarted is the elevator entrance of Building M, while the monitoring screen of channel 2 of back-end storage device A on the same network is the building entrance of Building M. If an important monitored object wants to pass through the monitoring screen of channel 1 of the device to be restarted, it must first pass through the monitoring screen of channel 2 of back-end storage device A. In this case, it is determined that the associated device channel of channel 1 of the device to be restarted is channel 2 of back-end storage device A. Similarly, based on the monitoring screens of each channel of the device to be restarted and the monitoring screens of each channel of other devices on the same network, the associated device channels corresponding to each channel of the device to be restarted can be determined one by one. In addition, if the monitoring screen passing through the current channel of the device to be restarted must pass through the monitoring screen of a certain front-end device on the same network, this front-end device can also be used as the associated device channel of the current channel of the device to be restarted.

[0056] As one implementation method, the correspondence between each channel of the device to be restarted and the channels of associated devices can be obtained based on the monitoring images of each channel of the device to be restarted and the monitoring images of each channel of other devices on the same network. Alternatively, the correspondence between each channel of the device to be restarted and the channels of associated devices can be obtained based on the installation location of the front-end devices to which each channel of the device to be restarted is connected and the installation location of the front-end devices to which each channel of other devices on the same network is connected. In addition, the correspondence between each channel of the device to be restarted and the channels of associated devices can be stored in a cache, and then the correspondence between each channel of the device to be restarted and the channels of associated devices can be obtained from the cache.

[0057] Specifically, the preset restartable time point is set in advance, indicating the time point at which the device to be restarted can be restarted. A user setting interface can be provided for the user to select, or it can be randomly set by the server. In addition, the preset restartable time point can be one or more, and can be set according to actual needs. The event information is which preset events have occurred in the monitoring screen, such as dynamic detection events, face recognition events, area intrusion events, and video loss events. The event information here will be saved in real time in the back-end storage device, and the event information occurring in each channel of the back-end storage device can be obtained in real time from the back-end storage device. If a real-time event currently occurs in the monitoring screen of the device to be restarted and there is real-time event information, it is considered that there is a high possibility that an important monitoring object currently exists in the current monitoring screen. Therefore, the real-time event information occurring in each channel of the device to be restarted at the preset restartable time point can be used as a reference for whether there is an important monitoring object in the monitoring screen of the device to be restarted at the preset restartable time point. In addition, the historical event information of each channel of the device to be restarted before the preset restartable time point can also be used as a reference for whether there are important monitoring objects in the monitoring screen of the device to be restarted at the preset restartable time point. For example, although no real-time events occur in the monitoring screen of the device to be restarted at the preset restartable time point, there is historical event information at about the same time as the preset restartable time point every day before. If the device to be restarted is restarted at the preset restartable time point, then the possibility of the presence of important monitoring objects in the monitoring screen of the device to be restarted during the restart period cannot be ruled out.

[0058] Secondly, since the monitored object needs to enter the monitoring screen of a certain channel of the device to be restarted, it must first pass through the monitoring screen of the corresponding associated device channel. If an important monitored object appears in the monitoring screen of the associated device channel at the preset restartable time point, if the device to be restarted is restarted at this time, the important monitored object appearing in the monitoring screen of the associated device channel cannot be recorded in the monitoring screen of the device to be restarted, then this important monitored object is lost by the device to be restarted. Therefore, the real-time event information of the associated device channel at the preset restartable time point and the historical event information that occurred before the preset restartable time point can also be used as a reference for whether there is an important monitored object in the monitoring screen of the device to be restarted at the preset restartable time point.

[0059] Based on the various channels of the device to be restarted and its corresponding associated device channels, the real-time event information occurring at the preset restartable time point and the historical event information occurring before the preset restartable time point can be effectively determined. If it is determined that the possibility of the existence of important monitoring objects in the monitoring screen of the device to be restarted at the preset restartable time point is relatively small, the preset restartable time point can be used as the restart time of the device to be restarted, and the device to be restarted can be instructed to complete the restart at the preset restartable time point.

[0060] In related technologies, when a new program is detected, the user decides whether to upgrade via a pop-up window or enters the upgrade interface to upgrade. The upgrade time is user-selectable. Furthermore, the user sets a fixed time for device maintenance. Whether the back-end storage device is being upgraded or undergoing maintenance, it must be restarted. During this restart, the monitoring images of each channel on the back-end storage device will be interrupted. However, since the restart time is user-selected, if the restart time is not selected appropriately, important video data may be lost.

[0061] The present application determines the restart time of the device to be restarted through the above-mentioned step S210 by, based on the real-time event information that occurred at the preset restartable time point and the historical event information that occurred before the preset restartable time point for each channel of the device to be restarted and its corresponding associated device channels. Based on the real-time event information that occurred at the preset restartable time point and the historical event information that occurred before the preset restartable time point for each channel of the device to be restarted and its corresponding associated device channels, it is possible to effectively determine the possibility that an important monitoring object exists in the monitoring screen of the device to be restarted at the preset restartable time point, thereby avoiding the device to be restarted from being restarted when an important monitoring object exists, effectively reducing the possibility of important video data loss during the restart process, and thus effectively solving the problem of important video data loss during the restart process.

[0062] As an implementation method, before determining the restart time of the device to be restarted in the above step S210 based on each channel of the device to be restarted and its corresponding associated device channel, real-time event information occurring at a preset restartable time point and historical event information occurring before the preset restartable time point, the following steps may be further included:

[0063] The time period for obtaining historical event information is determined based on the preset restartable time point.

[0064] Specifically, the acquisition time period of historical event information is determined, that is, the historical event information that occurred before the preset restartable time point is only included in the historical event information that occurred within the acquisition time period. For example, the acquisition time period can be three months before the preset restartable time point. Further, the acquisition time period can be the same time point as the preset restartable time point every day in the three months before the preset restartable time point. First, historical event information that is far away from the preset restartable time point may no longer have a high reference value for the current preset restartable time point. In addition, only selecting historical event information that occurred within the acquisition time period can effectively reduce the current transmission volume of historical event information data and the current server's computing power.

[0065] In one embodiment, step S210 determines the restart time of the device to be restarted based on each channel of the device to be restarted and its corresponding associated device channel, real-time event information occurring at a preset restartable time point, and historical event information occurring before the preset restartable time point, and includes the following steps:

[0066] Step S211: Determine whether the real-time event information of each channel of the device to be restarted and its corresponding associated device channel occurring at a preset restartable time point and the historical event information occurring before the preset restartable time point meet the preset optimal restart conditions;

[0067] Step S212: If the conditions are met, the preset restartable time point is used as the restart time of the device to be restarted.

[0068] Specifically, the preset optimal restart condition is set in advance, and is based on the low likelihood of the presence of a critical monitored object in the monitoring image of the device to be restarted. If real-time event information occurring at a preset restartable time point and historical event information occurring before the preset restartable time point on each channel of the device to be restarted and its corresponding associated device channels meet the preset optimal restart condition, the preset restartable time point will be used as the restart time for the device to be restarted.

[0069] In one embodiment, step S211 determines whether the real-time event information of each channel of the device to be restarted and its corresponding associated device channel occurring at a preset restartable time point and the historical event information occurring before the preset restartable time point meet the preset optimal restart conditions, including the following steps:

[0070] Different impact factors are assigned to real-time events and historical events occurring on the monitoring screen of the device to be restarted, and different impact factors are assigned to real-time events and historical events occurring on the monitoring screen of the associated device channels;

[0071] The impact factors of each channel of the device to be restarted and its corresponding associated device channels at the preset restartable time point are accumulated as the total impact factor at the preset restartable time point, and it is determined whether the total impact factor meets the condition of not exceeding the preset minimum impact factor.

[0072] Specifically, taking the following example, the impact factor of real-time events occurring on the monitoring screen of the device to be restarted at the current time is set to 5, and the impact factor of real-time events occurring on the monitoring screen of the associated device channel at the current time is set to 3*K, where K represents the time correlation between the person or object in the monitoring screen from the monitoring screen of the associated device channel to the monitoring screen of the device to be restarted. The smaller the time, the larger the K value. When the time from the monitoring screen of the associated device channel to the monitoring screen of the device to be restarted is less than 1 minute, the maximum K value is 1. The impact factor of historical events occurring before the current time of the monitoring screen of the device to be restarted is set to 2*E*P, where E represents the correlation between the date of the historical event and the day of the week at the current time, and P represents the distance correlation between the time point of the historical event and the current time. When the day of the week corresponding to the date of the historical event is the same as the day of the week at the current time, E = 1; otherwise, E = 0.5. The difference in months between the time of the historical event and the current time is denoted as M, and P = 1-M*0.2. The smaller the difference in months between the time of the historical event and the current time, the larger P is, and the maximum value of P is 1. Set the impact factor of historical events that occurred before the current time on the monitoring screen of the associated device channel to be 2*K*E*P. The values ​​of the K, E, and P parameters in this calculation formula are consistent with the above. Set the preset minimum impact factor to 4. After setting the preset optimal restart conditions, calculate the real-time event impact factor of each channel of the device to be restarted and its corresponding associated device channel at the preset restartable time point and the historical event information that occurred before the preset restartable time point based on the real-time event information that occurred at the preset restartable time point and the historical event impact factor that occurred before the preset restartable time point on the monitoring screen of each channel of the device to be restarted and its corresponding associated device channel. Add all the impact factors to determine whether they do not exceed the preset minimum impact factor. If they do not exceed the preset minimum impact factor, use the preset restartable time point as the restart time of the device to be restarted.

[0073] In addition, the event types in real-time events and historical events can be further subdivided, and different event types can be assigned different impact factors. For example, events related to the movement of people and objects can be set as first-category events, such as motion detection events and face recognition events, and other events can be set as second-category events, such as video loss events and video diagnosis events. For example, the impact factor of the first-category real-time event occurring at the current time on the monitoring screen of the device to be restarted is set to 5, and the impact factor of the second-category real-time event occurring at the current time on the monitoring screen of the device to be restarted is set to 4. The impact factor of the first-category real-time event occurring at the current time on the monitoring screen of the associated device channel is set to 3*K, and the impact factor of the second-category real-time event occurring at the current time on the monitoring screen of the associated device channel is set to 2*K, where K represents the time correlation between the person or object in the monitoring screen from the monitoring screen of the associated device channel to the monitoring screen of the device to be restarted. The smaller the time, the larger the K value. When the time from the monitoring screen of the associated device channel to the monitoring screen of the device to be restarted is less than 1 minute, the maximum K value is 1. Set the impact factor of the first-category historical events that occurred before the current time on the monitoring screen of the device to be restarted to 2*E*P, and the impact factor of the second-category historical events that occurred before the current time on the monitoring screen of the device to be restarted to 1*E*P. E represents the correlation between the day of the week and the current time, and P represents the distance correlation between the time of the historical event and the current time. If the day of the week corresponding to the date of the historical event is the same as the current day of the week, E = 1; otherwise, E = 0.5. The difference in months between the time of the historical event and the current time is M, and P = 1-M*0.2. The smaller the difference in months between the time of the historical event and the current time, the larger P is, with the maximum value of P being 1. Set the impact factor of both the first-category and second-category historical events that occurred before the current time on the monitoring screen of the associated device channel to 2*K*E*P. The values ​​of the K, E, and P parameters in this calculation formula are consistent with those described above.

[0074] Since the possibility of important monitoring objects existing in the monitoring screen varies due to events of different event types, the event types are subdivided and different impact factors are assigned to different event types. This can more accurately determine the possibility of important monitoring objects existing in the monitoring screen of the device to be restarted at the preset restartable time point.

[0075] Furthermore, in one embodiment, the above step S210, determining the restart time of the device to be restarted based on each channel of the device to be restarted and its corresponding associated device channel, real-time event information occurring at a preset restartable time point, and historical event information occurring before the preset restartable time point, includes the following steps:

[0076] Preset restart cycle, determine whether the current time point has reached the preset restartable time point within the preset restart cycle;

[0077] If the preset restartable time point is reached, the restart time of the device to be restarted is determined based on the various channels of the device to be restarted and its corresponding associated device channels, the real-time event information occurring at the preset restartable time point and the historical event information occurring before the preset restartable time point.

[0078] Specifically, since the device to be restarted does not need to be restarted every day, a restart cycle can be preset based on actual needs, allowing the device to be restarted to restart periodically. For example, the device to be restarted can be restarted once every 6 or 8 days. As one implementation method, the preset restart cycle is not set in weeks. If the preset restart cycle is set in weeks, the device to be restarted will restart on a fixed day of the week, which is too regular and prevents the use of this regularity to evade monitoring.

[0079] To further prevent attempts to evade monitoring during the reboot period of the device to be rebooted, one implementation method involves randomly setting a preset number of restartable time points within a preset reboot cycle as the preset restartable time points. A random algorithm can be used to set the preset number of restartable time points. For example, the preset number can be 3, and a restartable time point can be randomly set every hour from 1:00 to 4:00. For example, if 1:35, 2:44, and 3:27 are randomly selected, 1:35, 2:44, and 3:27 can be used as the preset restartable time points.

[0080] Furthermore, in one embodiment, the method for determining the device restart time further includes the following steps:

[0081] In step S220, if the real-time event information of each channel of the device to be restarted and its corresponding associated device channels that occurred at the preset restartable time point and the historical event information that occurred before the preset restartable time point do not meet the preset optimal restart conditions, another device that is on the same network as the device to be restarted and has idle channels will be used as a hosting device for the device to be restarted;

[0082] Step S230: The front-end device connected to each channel of the device to be restarted is used as a managed device, the configuration of the managed device is sent to the managing device, and the managing device is instructed to connect the managed device;

[0083] Step S240: After the hosting device completes access to the hosted device, the hosting device instructs the device to be restarted to restart.

[0084] Specifically, it is possible that the real-time event information occurring at the preset restartable time point and the historical event information occurring before the preset restartable time point for each channel of the device to be restarted and its corresponding associated device channels do not meet the preset optimal restart conditions. This indicates that there is a high probability that an important monitored object exists in the surveillance image of the device to be restarted at the preset restartable time point. In this case, the preset restartable time point cannot be used as the restart time of the device to be restarted, that is, the restart time of the device to be restarted cannot be determined. In this case, other devices on the same network as the device to be restarted and with idle channels are used as hosting devices for the device to be restarted. There can be multiple hosting devices, and the total number of idle channels of all hosting devices must exceed the total number of channels of the device to be restarted to ensure that the front-end devices connected to each channel of the device to be restarted can all be accessed by the hosting device. The front-end devices connected to each channel of the device to be restarted are called managed devices. The configuration of the managed device typically includes the device IP address, username, and password. After the hosting device completes the connection of the managed device, it will monitor the managed device and save the video data of the monitoring image. Therefore, after the hosting device completes the connection of the hosted device, it instructs the device to be restarted to restart. The video data during the restart process of the device to be restarted is backed up, and there is no possibility of important video data being lost during the restart process of the device to be restarted. If there are multiple preset restartable time points, each channel of the device to be restarted and its corresponding associated device channels can be determined at any number of preset restartable time points. If the real-time event information occurring at the preset restartable time point and the historical event information occurring before the preset restartable time point do not meet the preset optimal restart conditions, the above steps S220 to S240 are executed to complete the restart of the device to be restarted.

[0085] As one of the implementation methods, if the total number of idle channels of all hosted devices does not exceed the number of front-end devices connected to each channel of the device to be restarted, then based on the total number of idle channels of all hosted devices, the front-end devices connected to the devices to be restarted in the same number are used as hosted devices, and the hosting devices are instructed to connect to the hosted devices. After the hosting devices have completed the connection to the hosted devices, the devices to be restarted are instructed to restart.

[0086] In one embodiment, if the real-time event information of each channel of the device to be restarted and its corresponding associated device channel occurring at the preset restartable time point and the historical event information occurring before the preset restartable time point do not meet the preset optimal restart conditions in step S220, another device in the same network as the device to be restarted and having idle channels is used as a hosting device for the device to be restarted, including the following steps:

[0087] Step S221, determining whether each channel of the device to be restarted is a full digital channel;

[0088] In step S222, if all channels of the device to be restarted are all-digital channels, other devices that are in the same network as the device to be restarted and have idle channels are used as hosting devices for the device to be restarted.

[0089] Specifically, the channels of the back-end storage device are generally digital channels, that is, the way the channels of the back-end storage device are connected to the front-end device is through network access. However, it is inevitable that the channels of the back-end storage device are connected to the front-end device through coaxial cables or other methods. The channels through which such storage devices are connected to the front-end device are analog channels, and the hosting device cannot directly access the front-end device connected through analog channels. Therefore, before the hosting device accesses the front-end device connected to each channel of the device to be restarted, it is necessary to determine whether each channel of the device to be restarted is a fully digital channel. Only when each channel of the device to be restarted is a fully digital channel can the hosting device complete access to the front-end device connected to each channel of the device to be restarted.

[0090] As one of the implementation methods, if the channels of the device to be restarted are not all digital channels, the front-end device to which the digital channels of the device to be restarted are connected is used as the hosted device, and the hosting device is instructed to access the hosted device. After the hosting device completes the access to the hosted device, the device to be restarted is instructed to restart.

[0091] Furthermore, in one embodiment, the method for determining the device restart time further includes the following steps:

[0092] Step S250: Obtain the video data of the managed device during the restart of the device to be restarted from the hosting device, and send the video data to the device to be restarted.

[0093] Through the above step S250, the integrity of the video data of the device to be restarted can be guaranteed, in order to provide convenience for subsequent users.

[0094] In one embodiment, the method for determining the device restart time further includes the following steps:

[0095] When the device to be restarted completes the restart, the hosting device is instructed to disconnect the managed device.

[0096] Specifically, the above steps can effectively release the idle channels of the hosting device, making it easier for the hosting device to access other front-end devices.

[0097] In one embodiment, the method for determining the device restart time further includes the following steps:

[0098] Step S223: If the channels of the device to be restarted are not all-digital channels, then find a time point that meets the preset suboptimal restart condition based on the channels of the device to be restarted and their corresponding associated device channels, real-time event information that occurs at each time point within a preset time range after the preset restartable time point, and historical event information that occurs before each time point.

[0099] Step S224: The time point that satisfies the preset suboptimal restart condition is used as the restart time of the device to be restarted.

[0100] Specifically, the preset suboptimal restart condition is set in advance and is much more relaxed than the preset optimal restart condition. If the real-time event information occurring at the preset restartable time point and the historical event information occurring before the preset restartable time point for each channel of the device to be restarted and its corresponding associated device channel do not meet the preset optimal restart condition, and if the device to be restarted is not a fully digital channel, the restart condition is relaxed, and the real-time event information occurring at each time point within a preset time range after the preset restartable time point and the historical event information occurring before each time point are used to find a time point that meets the preset suboptimal restart condition, and the time point that meets the preset suboptimal restart condition is used as the restart time for the device to be restarted. For example, the preset restartable time points are 1:35, 2:44, and 3:27, and the preset time range is from three o'clock to four o'clock. If the device to be restarted does not meet the preset optimal restart condition at these three preset restartable time points, and the device to be restarted is not a full digital channel, then find the time points that meet the preset suboptimal restart condition at 3:28, 3:29, 3:30, 3:31... in the time range from three o'clock to four o'clock after 3:27, and use the time points that meet the preset suboptimal restart condition as the restart time of the device to be restarted, effectively ensuring that the device to be restarted completes the restart.

[0101] like Figure 3 As shown, this embodiment also provides a method for determining a device restart time, the method comprising the following steps:

[0102] Step S310 , determining the associated device channels corresponding to the channels of the device to be restarted based on the monitoring images of the channels of the device to be restarted and the monitoring images of the channels of other devices in the same network.

[0103] Step S320, determine whether the real-time event information of each channel of the device to be restarted and its corresponding associated device channel occurring at the preset restartable time point and the historical event information occurring before the preset restartable time point meet the preset optimal restart conditions. If so, execute step S330; if not, execute step S340.

[0104] Step S330: Using the preset restartable time point as the restart time of the device to be restarted.

[0105] Step S340 , determining whether each channel of the device to be restarted is a full digital channel, if so, executing step S350 , if not, executing step S400 .

[0106] In step S350, other devices that are in the same network as the device to be restarted and have idle channels are used as hosting devices for the device to be restarted.

[0107] Step S360: Send the configuration of the front-end device connected to each channel of the device to be restarted to the hosting device, and instruct the hosting device to connect the front-end device connected to each channel of the device to be restarted.

[0108] Step S370: After the hosting device completes connecting the front-end devices to the various channels of the device to be restarted, it instructs the device to be restarted to restart.

[0109] Step S380: Obtain the video data of the front-end devices connected to each channel of the device to be restarted during the restart period of the device to be restarted from the hosting device, and send the video data to the device to be restarted.

[0110] Step S390: After the device to be restarted is restarted, the hosting device is instructed to disconnect the front-end devices connected to each channel of the device to be restarted.

[0111] Step S400, based on each channel of the device to be restarted and its corresponding associated device channels, real-time event information occurring at each time point within a preset time range after the preset restartable time point and historical event information occurring before each time point, find a time point that meets the preset suboptimal restart condition.

[0112] Step S410: The time point that satisfies the preset suboptimal restart condition is used as the restart time of the device to be restarted.

[0113] like Figure 4 As shown, Figure 4 This is a flowchart of the hosting strategy for devices to be restarted. First, the IPC (IP Camera) connection information of the digital channel of the device to be restarted is sent to the hosting device. Then, it is determined whether a message indicating that the hosting device has completed the hosting is received. If so, the device to be restarted restarts. After the device to be restarted completes the reboot, a message is sent to the hosting device, and the IPC recording during the hosting period is received from the hosting device.

[0114] like Figure 5 As shown, Figure 5This is a flowchart for the hosting strategy for managed devices. First, the process checks whether a hosting request has been received. If so, it saves the information of the IPC to be hosted. Then, based on the received IPC information, it connects the IPC to an idle channel. Once connected, it sends a hosting completion message to the device to be restarted and waits for a message indicating the device has restarted. After receiving the message indicating the device has restarted, it disconnects the managed IPC and sends a video of the managed IPC to the device to be restarted.

[0115] Figure 6 FIG. 1 is a schematic diagram of a device for determining a device restart time according to an embodiment of the present invention. Figure 6 As shown, a device restart time determination device 30 is provided, which includes a determination module 31:

[0116] The determination module 31 is used to determine the restart time of the device to be restarted based on the real-time event information of each channel of the device to be restarted and its corresponding associated device channel occurring at the preset restartable time point and the historical event information occurring before the preset restartable time point.

[0117] The device restart time determination device 30 determines the restart time of the device to be restarted based on real-time event information occurring at a preset restartable time point and historical event information occurring before the preset restartable time point for each channel of the device to be restarted and its corresponding associated device channels. Based on the real-time event information occurring at a preset restartable time point and historical event information occurring before the preset restartable time point for each channel of the device to be restarted and its corresponding associated device channels, it is possible to effectively determine the possibility that an important monitored object is present in the surveillance image of the device to be restarted at the preset restartable time point, thereby preventing the device to be restarted from restarting when an important monitored object is present, effectively reducing the possibility of important video data being lost during the restart process, and thus effectively resolving the problem of important video data being lost during the restart process.

[0118] In one embodiment, the determination module 31 is further configured to determine whether the real-time event information of each channel of the device to be restarted and its corresponding associated device channel occurring at a preset restartable time point and the historical event information occurring before the preset restartable time point meet a preset optimal restart condition;

[0119] If the conditions are met, the preset restartable time point is used as the restart time of the device to be restarted.

[0120] In one embodiment, the determination module 31 is further configured to assign different impact factors to real-time events and historical events occurring on the monitoring screen of the device to be restarted, and to assign different impact factors to real-time events and historical events occurring on the monitoring screen of the associated device channel;

[0121] The impact factors of each channel of the device to be restarted and its corresponding associated device channels at the preset restartable time point are accumulated as the total impact factor at the preset restartable time point, and it is determined whether the total impact factor meets the condition of not exceeding the preset minimum impact factor.

[0122] In one embodiment, the determination module 31 is further configured to classify real-time events and historical events into event types, and assign different impact factors to different event types.

[0123] In one embodiment, the determination module 31 is further configured to preset a restart period, and determine whether the current time point has reached a preset restartable time point within the preset restart period;

[0124] If the preset restartable time point is reached, the restart time of the device to be restarted is determined based on the various channels of the device to be restarted and its corresponding associated device channels, the real-time event information occurring at the preset restartable time point and the historical event information occurring before the preset restartable time point.

[0125] In one embodiment, the determination module 31 is further configured to preset a restart cycle, randomly set a preset number of restartable time points within the preset restart cycle as preset restartable time points, and determine whether the current time point has reached the preset restartable time point.

[0126] In one embodiment, the device restart time determination apparatus 30 further includes a trusteeship module configured to, if the real-time event information of each channel of the device to be restarted and its corresponding associated device channels occurring at a preset restartable time point and the historical event information occurring before the preset restartable time point do not meet a preset optimal restart condition, use another device in the same network as the device to be restarted and having an idle channel as a trustee device for the device to be restarted;

[0127] The front-end devices connected to each channel of the device to be restarted are used as managed devices, the configuration of the managed devices is sent to the managing device, and the managing device is instructed to connect to the managed devices;

[0128] After the hosting device completes connecting the hosted device, it instructs the device to be restarted to restart.

[0129] In one embodiment, the hosting module is further configured to determine whether the channels of the device to be restarted and their corresponding associated device channels, real-time event information occurring at a preset restartable time point and historical event information occurring before the preset restartable time point, do not meet a preset optimal restart condition, and determine whether the channels of the device to be restarted are all-digital channels;

[0130] If all channels of the device to be restarted are all-digital channels, other devices that are on the same network as the device to be restarted and have idle channels will be used as hosting devices for the device to be restarted.

[0131] In one embodiment, the hosting module is further configured to obtain video data of the hosted device during the restart of the device to be restarted from the hosting device, and send the video data to the device to be restarted.

[0132] In one embodiment, the hosting module is further configured to instruct the hosting device to disconnect the hosted device after the device to be restarted is restarted.

[0133] In one embodiment, the device restart time determination apparatus 30 further includes a suboptimal module configured to find a time point that satisfies a preset suboptimal restart condition based on real-time event information occurring at each time point within a preset time range after a preset restartable time point and historical event information occurring before each time point, if each channel of the device to be restarted is not a fully digital channel;

[0134] The time point that meets the preset suboptimal restart condition is used as the restart time of the device to be restarted.

[0135] It should be noted that each of the above modules can be a functional module or a program module, and can be implemented by software or hardware. Each of the above modules can be embedded in or independent of the processor in the computer device in hardware form, or can be stored in the memory of the computer device in software form, so that the processor can call and execute the operations corresponding to each of the above modules.

[0136] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Figure 7 As shown. The computer device includes a processor, a memory, a network interface, and a database connected via a system bus. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The memory provides an environment for the operation of the operating system and computer program in the non-volatile storage medium. The database of the computer device is used to store a set of preset configuration information. The network interface of the computer device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, it implements the above-mentioned device restart time determination method.

[0137] In one embodiment, a computer device is provided, which may be a terminal. The computer device includes a processor, memory, a network interface, a display screen, and an input device connected via a system bus. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and internal memory. The non-volatile storage medium stores an operating system and a computer program. The memory provides an environment for the operation of the operating system and computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, a method for determining a device restart time is implemented. The display screen of the computer device may be a liquid crystal display or an electronic ink display screen. The input device of the computer device may be a touch layer covering the display screen, or may be a key, trackball, or touchpad provided on the computer device housing, or may be an external keyboard, touchpad, or mouse.

[0138] Those skilled in the art will understand that Figure 7 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement.

[0139] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented:

[0140] The restart time of the device to be restarted is determined based on each channel of the device to be restarted and its corresponding associated device channels, real-time event information occurring at a preset restartable time point, and historical event information occurring before the preset restartable time point.

[0141] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0142] Determine whether the real-time event information of each channel of the device to be restarted and its corresponding associated device channels occurring at the preset restartable time point and the historical event information occurring before the preset restartable time point meet the preset optimal restart conditions;

[0143] If the conditions are met, the preset restartable time point is used as the restart time of the device to be restarted.

[0144] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0145] Different impact factors are assigned to real-time events and historical events occurring on the monitoring screen of the device to be restarted, and different impact factors are assigned to real-time events and historical events occurring on the monitoring screen of the associated device channels;

[0146] The impact factors of each channel of the device to be restarted and its corresponding associated device channels at the preset restartable time point are accumulated as the total impact factor at the preset restartable time point, and it is determined whether the total impact factor meets the condition of not exceeding the preset minimum impact factor.

[0147] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0148] Real-time events and historical events are divided into event types, and different impact factors are assigned to different event types.

[0149] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0150] Preset restart cycle, determine whether the current time point has reached the preset restartable time point within the preset restart cycle;

[0151] If the preset restartable time point is reached, the restart time of the device to be restarted is determined based on the various channels of the device to be restarted and its corresponding associated device channels, the real-time event information occurring at the preset restartable time point and the historical event information occurring before the preset restartable time point.

[0152] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0153] A preset restart cycle is set, and a preset number of restartable time points are randomly set within the preset restart cycle as the preset restartable time points, and it is determined whether the current time point has reached the preset restartable time point.

[0154] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0155] If the real-time event information of each channel of the device to be restarted and its corresponding associated device channels at the preset restartable time point and the historical event information that occurred before the preset restartable time point do not meet the preset optimal restart conditions, other devices in the same network as the device to be restarted and with idle channels will be used as the hosting device for the device to be restarted;

[0156] The front-end devices connected to each channel of the device to be restarted are used as managed devices, the configuration of the managed devices is sent to the managing device, and the managing device is instructed to connect to the managed devices;

[0157] After the hosting device completes connecting the hosted device, it instructs the device to be restarted to restart.

[0158] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0159] If the real-time event information of each channel of the device to be restarted and its corresponding associated device channels occurring at the preset restartable time point and the historical event information occurring before the preset restartable time point do not meet the preset optimal restart conditions, determine whether each channel of the device to be restarted is a full digital channel;

[0160] If all channels of the device to be restarted are all-digital channels, other devices that are on the same network as the device to be restarted and have idle channels will be used as hosting devices for the device to be restarted.

[0161] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0162] The video data of the managed device during the restart period of the device to be restarted is obtained from the managing device, and the video data is sent to the device to be restarted.

[0163] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0164] When the device to be restarted completes the restart, the hosting device is instructed to disconnect the managed device.

[0165] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0166] If the channels of the device to be restarted are not all-digital channels, then find a time point that meets the preset suboptimal restart conditions based on the channels of the device to be restarted and their corresponding associated device channels, real-time event information occurring at each time point within a preset time range after the preset restartable time point, and historical event information occurring before each time point;

[0167] The time point that meets the preset suboptimal restart condition is used as the restart time of the device to be restarted.

[0168] The above-mentioned storage medium determines the restart time of the device to be restarted based on the real-time event information that occurred at the preset restartable time point and the historical event information that occurred before the preset restartable time point for each channel of the device to be restarted and its corresponding associated device channels. Based on the real-time event information that occurred at the preset restartable time point and the historical event information that occurred before the preset restartable time point for each channel of the device to be restarted and its corresponding associated device channels, it can effectively determine the possibility that an important monitoring object exists in the surveillance image of the device to be restarted at the preset restartable time point, thereby avoiding the device to be restarted from restarting when an important monitoring object exists, effectively reducing the possibility of important video data loss during the restart process, and thus effectively solving the problem of important video data loss during the restart process.

[0169] It should be understood that the specific embodiments described herein are only used to explain this application and are not used to limit it. Based on the embodiments provided in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0170] Obviously, the accompanying drawings are merely examples or embodiments of the present application. A person skilled in the art can also apply the present application to other similar situations based on these drawings without inventive effort. Furthermore, it is understandable that, although the work involved in this development process may be complex and lengthy, certain design, manufacturing, or production changes based on the technical content disclosed in this application are merely routine technical means for a person skilled in the art and should not be considered to constitute a deficiency in the disclosure of the present application.

[0171] The term "embodiment" as used in this application refers to specific features, structures, or characteristics described in conjunction with the embodiment that can be included in at least one embodiment of this application. The appearance of this phrase in various places in the specification does not necessarily mean that the embodiment is the same, nor does it mean that it is mutually exclusive with other embodiments and is independent or optional. It is understood, either explicitly or implicitly, by those skilled in the art that the embodiments described in this application can be combined with other embodiments when there is no conflict.

[0172] The above-described embodiments merely represent several implementation methods of the present application. While the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of patent protection. It should be noted that a person of ordinary skill in the art may make various modifications and improvements without departing from the spirit of the present application, and these modifications and improvements fall within the scope of protection of the present application. Therefore, the scope of protection of the present application shall be determined by the appended claims.

Claims

1. A method for determining a device restart time, for determining a restart time of a device to be restarted, characterized in that: The device to be restarted is a backend storage device; the method comprises the following steps: A preset restart cycle, randomly setting a preset number of restartable time points within the preset restart cycle as the preset restartable time points, and determining whether the current time point has reached the preset restartable time point; If the preset restartable time point has arrived, determining the restart time of the device to be restarted based on the real-time event information occurring at the preset restartable time point and the historical event information occurring before the preset restartable time point for each channel of the device to be restarted and its corresponding associated device channels; Determining a restart time of the device to be restarted based on each channel of the device to be restarted and its corresponding associated device channel, real-time event information occurring at a preset restartable time point, and historical event information occurring before the preset restartable time point, includes the following steps: Assigning different impact factors to real-time events and historical events occurring on the monitoring screen of the device to be restarted, and assigning different impact factors to real-time events and historical events occurring on the monitoring screen of the associated device channel; Accumulate the impact factors of each channel of the device to be restarted and its corresponding associated device channels at the preset restartable time point as the total impact factor at the preset restartable time point, and determine whether the total impact factor satisfies a condition of not exceeding a preset minimum impact factor; If the conditions are met, the preset restartable time point is used as the restart time of the device to be restarted.

2. The method for determining device restart time according to claim 1, wherein: Before accumulating the impact factors of the channels of the device to be restarted and their corresponding associated device channels at the preset restartable time point, the method further includes: The real-time events and the historical events are divided into event types, and different impact factors are assigned to different event types.

3. The method for determining device restart time according to claim 1 or 2, characterized in that: The method further comprises: If the real-time event information of each channel of the device to be restarted and its corresponding associated device channels occurring at the preset restartable time point and the historical event information occurring before the preset restartable time point do not meet the preset optimal restart condition, another device in the same network as the device to be restarted and with idle channels will be used as the hosting device of the device to be restarted; Use the front-end device connected to each channel of the device to be restarted as a managed device, send the configuration of the managed device to the managing device, and instruct the managing device to connect the managed device; After the hosting device completes accessing the hosted device, the device to be restarted is instructed to restart.

4. The method for determining the device restart time according to claim 3, wherein: If the real-time event information of each channel of the device to be restarted and its corresponding associated device channels occurring at the preset restartable time point and the historical event information occurring before the preset restartable time point do not meet the preset optimal restart conditions, other devices that are in the same network as the device to be restarted and have idle channels are used as the hosting devices of the device to be restarted, including the following steps: Determine whether each channel of the device to be restarted is a full digital channel; If the channels of the device to be restarted are all-digital channels, other devices that are in the same network as the device to be restarted and have idle channels will be used as hosting devices for the device to be restarted.

5. The method for determining device restart time according to claim 3, wherein: The method further comprises: The video data of the hosted device during the restart of the device to be restarted is obtained from the hosting device, and the video data is sent to the device to be restarted.

6. The method for determining device restart time according to claim 3, wherein: The method further comprises: When the device to be restarted completes restarting, the hosting device is instructed to disconnect the hosted device.

7. The method for determining device restart time according to claim 4, wherein: The method further comprises: If the channels of the device to be restarted are not all-digital channels, then finding a time point that meets the preset suboptimal restart condition based on the channels of the device to be restarted and their corresponding associated device channels, real-time event information occurring at each time point within a preset time range after the preset restartable time point, and historical event information occurring before each time point; The time point at which the preset suboptimal restart condition is satisfied is used as the restart time of the device to be restarted.

8. A device restart time determination device, used to determine the restart time of a device to be restarted, characterized in that: The device to be restarted is a backend storage device; the apparatus includes a determination module; The determination module is configured to preset a restart cycle, randomly set a preset number of restartable time points within the preset restart cycle as the preset restartable time points, and determine whether the current time point has reached the preset restartable time point; if the preset restartable time point has been reached, determine the restart time of the device to be restarted based on real-time event information occurring at the preset restartable time point for each channel of the device to be restarted and its corresponding associated device channel, and historical event information occurring before the preset restartable time point; The determination module is further configured to assign different impact factors to real-time events and historical events occurring on the monitoring screen of the device to be restarted, and to assign different impact factors to real-time events and historical events occurring on the monitoring screen of the associated device channels; accumulate the impact factors of each channel of the device to be restarted and its corresponding associated device channel at the preset restartable time point as the total impact factor at the preset restartable time point, and determine whether the total impact factor satisfies a condition of not exceeding a preset minimum impact factor; If the conditions are met, the preset restartable time point is used as the restart time of the device to be restarted.

9. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Monitor processing method and system

    CN103888310A

  • Information processing apparatus and restart executing method

    US20170264768A1

  • Determining reboot times of computing nodes

    US20190155714A1