Network camera reset method, device, electronic device and storage medium
Through the back-end video recorder, the power value of the front-end video camera is monitored and analyzed, the reset strategy is determined and the control signal is output for hardware or software reset, which solves the problem of low reset efficiency in the existing technology and realizes efficient network camera reset.
Patent Information
- Application Number
- CN202110163639.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-02-05
- Publication Date
- 2025-08-22
- Estimated Expiration
- 2041-02-05
AI Technical Summary
In the prior art, when the network camera is abnormal, it is necessary to re-plug and unplug the power supply for resetting, resulting in low reset efficiency, especially inconvenient operation of cameras installed at high places.
Obtain the power value of the front-end network camera through the back-end network recorder, compare it with the preset threshold, determine the reset strategy, and output the control signal for hardware or software reset to avoid direct power off and restart.
It improves the reset efficiency of network cameras, avoids direct power-off operations of high-altitude cameras, and improves work efficiency and reliability.
Smart Images

Figure CN114885149B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the technical field of electronic devices, and in particular to a network camera resetting method, device, electronic device and storage medium. Background Art
[0002] Network cameras are a new generation of cameras that combine traditional cameras with network technology. With the advancement of society, network cameras are widely used in various surveillance applications. Front-end network cameras are typically connected to a network with devices such as network video recorders (NVRs). The front-end network camera is responsible for capturing image information, while the back-end NVRs and other devices are responsible for image storage and management.
[0003] When an abnormality occurs to the front-end network camera, such as an abnormal hang, the network connection with the back-end network video recorder fails and the network message sent by the back-end network video recorder cannot be received. The front-end network camera cannot actively initiate a reset and can only be passively reset with the help of the outside world.
[0004] Currently, the only way to reset the front-end network camera is to reconnect the power supply by replugging it. However, front-end network cameras operate in complex environments. For example, dome cameras, tube cameras, and conch cameras are typically installed at heights of 3 to 5 meters, while dome cameras and pan / tilt cameras are typically installed at heights ranging from tens to several hundred meters. Replugging the power supply significantly impacts the reset operation, resulting in low reset efficiency. Summary of the Invention
[0005] The embodiments of the present invention provide a network camera resetting method, device, electronic device and storage medium to improve the efficiency of network camera resetting.
[0006] In a first aspect, an embodiment of the present invention provides a network camera reset method, which is applied to a back-end network video recorder, comprising:
[0007] Obtaining a power value output to a target front-end network camera; wherein the target front-end network camera is abnormally connected to the back-end network video recorder;
[0008] Determining a reset strategy for the target front-end network camera based on a comparison result of the power value and a preset power threshold;
[0009] A control signal is output to the target front-end network camera according to the reset strategy, so that the target front-end network camera performs a reset response.
[0010] In a second aspect, an embodiment of the present invention provides a network camera reset method, which is applied to a front-end network camera, comprising:
[0011] Monitor signal changes caused by control signals output by back-end network video recorders;
[0012] Determining a reset strategy for responding according to the signal change;
[0013] An associated reset operation is performed according to the reset policy.
[0014] In a third aspect, an embodiment of the present invention further provides a network camera reset device, which is applied to a back-end network video recorder, comprising:
[0015] An output power value acquisition module is used to acquire a power value output to a target front-end network camera; wherein the target front-end network camera is abnormally connected to the back-end network video recorder;
[0016] A reset strategy determination module, configured to determine a reset strategy for the target front-end network camera based on a comparison result between the power value and a preset power threshold;
[0017] The control signal output module is used to determine the control signal to be output to the target front-end network camera according to the reset strategy, so that the target front-end network camera can perform a reset response.
[0018] In a fourth aspect, an embodiment of the present invention provides a network camera reset device, which is applied to a front-end network camera, comprising:
[0019] Signal change monitoring module, used to monitor signal changes caused by the control signal output by the back-end network video recorder;
[0020] A reset strategy response module, configured to determine a reset strategy to respond to according to the signal change;
[0021] A reset operation execution module is used to execute the associated reset operation according to the reset strategy.
[0022] In a fifth aspect, an embodiment of the present invention further provides an electronic device, including:
[0023] one or more processors;
[0024] a storage device for storing one or more programs,
[0025] When the one or more programs are executed by the one or more processors, the one or more processors implement the network camera resetting method as described in any embodiment of the present invention.
[0026] In a sixth 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 network camera resetting method as described in any embodiment of the present invention.
[0027] The embodiment of the present invention predicts the cause of the abnormal connection of the front-end network camera by measuring the power value output by the back-end network video recorder to the front-end network camera with abnormal connection, and then determines the reset strategy of the front-end network camera, thereby realizing abnormal detection of the front-end network camera only through the network cable including power supply without adding cables between the front-end and the back-end, and improving the efficiency of resetting the front-end network camera; by sending control information to the front-end network camera, the front-end network camera is controlled to perform corresponding reset, thereby avoiding the front-end network camera from being in an abnormal hanging state all the time, and avoiding directly powering off and restarting the front-end network camera, thereby improving the reset efficiency and work efficiency of the camera. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] Figure 1 is a flowchart of a method for resetting a network camera in a first embodiment of the present invention;
[0029] Figure 2 is a flowchart of a method for resetting a network camera in a second embodiment of the present invention;
[0030] Figure 3 1 is a schematic diagram of the structure of the network camera reset system in the third embodiment of the present invention;
[0031] Figure 4 is a flow chart of an algorithm executed by the network camera reset system in the fourth embodiment of the present invention;
[0032] Figure 5 2 is a schematic structural diagram of a network camera resetting device in a fifth embodiment of the present invention;
[0033] Figure 6 2 is a schematic structural diagram of a network camera resetting device in a sixth embodiment of the present invention;
[0034] Figure 7 It is a structural diagram of an electronic device in Embodiment 7 of the present invention. DETAILED DESCRIPTION
[0035] The present invention will be further described in detail below with reference to the accompanying drawings and examples. It will be understood that the specific embodiments described herein are intended only to illustrate the present invention and are not intended to limit the present invention. It should also be noted that, for ease of description, the accompanying drawings only illustrate portions relevant to the present invention, not all structures.
[0036] Example 1
[0037] Figure 1This is a flow chart of the network camera reset method in the first embodiment of the present invention. This embodiment is applicable to the case of resetting the front-end network camera with abnormal connection. The method can be executed by the network camera reset device, which can be implemented in software and / or hardware and can be configured in the back-end network video recorder. Figure 1 As shown, the method specifically includes:
[0038] Step 101: Acquire a power value output to a target front-end network camera; wherein the target front-end network camera is abnormally connected to a back-end network video recorder.
[0039] The back-end network video recorder (NVR) refers to the storage and forwarding portion of a network video surveillance system. The NVR works in conjunction with network cameras to record, store, and forward videos. The front-end IP camera (IPC) is a new generation camera that combines traditional cameras with network technology. It encodes and compresses captured analog video signals into digital signals, directly connecting to network switching and routing equipment. In an embodiment of the present invention, the IPC and NVR are networked together. The front-end IPC is responsible for acquiring image information, while the back-end NVR is responsible for image storage and managing the front-end IPC. The back-end NVR can connect to and manage at least one IPC.
[0040] A connection anomaly occurs when an IPC becomes abnormally hung, resulting in a loss of network connectivity with the NVR. When the connection between the IPC and the NVR is abnormal, the NVR cannot receive the image information sent by the IPC. Specifically, the NVR can determine whether there is a target IPC with a connection anomaly among its managed IPCs by receiving information. For example, if no messages from the target IPC are received within a preset time period, the target IPC is determined to have a connection anomaly with the NVR.
[0041] Specifically, when the NVR detects a connection anomaly with the target IPC, it obtains the power output to the abnormal IPC. For example, the NVR and IPC are networked using POE technology, which allows data to be transmitted over an Ethernet twisted pair cable while also transmitting power to the remote IPC. The NVR provides POE power to the IPC and determines the output power value for the abnormal IPC based on power supply data.
[0042] Step 102: Determine a reset strategy for the target front-end network camera based on a comparison result between the power value and a preset power threshold.
[0043] The preset power threshold is used to distinguish the cause of anomalies in the target IPC. Because an IPC includes many modules, its power consumption comes not only from the main chip CPU but also from service modules such as the PHY chip, infrared / warning lights, and sensors. IPC anomalies caused by anomalies in different modules will have different impacts on the IPC's power consumption. For example, anomalies in key modules such as the main chip CPU can significantly impact device power consumption, resulting in significant fluctuations. Therefore, a preset power threshold is used to distinguish different anomaly causes.
[0044] The reset strategy includes reset methods that are specifically set for different abnormal causes. In the prior art, when an IPC has an abnormality, a power-off and restart reset operation is generally performed directly. However, since power-off and restart take a long time, it will have a greater impact on the work of the IPC. If the abnormality is caused by a non-critical module in the IPC, such as the PHY chip, a software reset can be performed first to solve the abnormality problem. The recovery time of software reset is shorter than the recovery time of power-off and restart reset, so the work efficiency of the IPC can be improved.
[0045] Specifically, based on the comparison of the power output to the abnormal IPC terminal with a preset power threshold, the cause of the abnormal IPC is predicted, and a corresponding reset strategy is determined based on the predicted cause. The reset strategy includes a software reset strategy and a hardware reset strategy. The software reset strategy prioritizes software reset operations, while the hardware reset strategy prioritizes hardware reset operations. Determining the predicted cause based on the power value comparison improves the accuracy of determining IPC anomalies, and determining an appropriate reset strategy based on the predicted cause improves the efficiency of resetting the abnormal IPC and reduces losses caused by unnecessary reset operations.
[0046] In a feasible embodiment, step 102 includes:
[0047] If the power value is less than a preset first power threshold, or greater than a preset second power threshold, determining that the reset policy of the target front-end network camera is a hardware reset policy;
[0048] If the power value is greater than or equal to a preset first power threshold and less than or equal to a preset second power threshold, determining that the reset policy of the target front-end network camera is a software reset policy;
[0049] Among them, the preset first power threshold is smaller than the preset second power threshold, the preset first power threshold is determined according to the lowest power when the target front-end network camera is normally connected, and the preset second power threshold is determined according to the highest power when the target front-end network camera is normally connected.
[0050] From the above description, it can be seen that the power consumption of the IPC comes from business modules such as the CPU, PHY chip, infrared / warning light, and sensor. If a peripheral device dies, such as a PHY chip dies abnormally, or a key component such as a CPU dies, the NVR will detect that the IPC is not in place. Abnormalities in different devices will cause abnormalities in the IPC, which will have different effects on the power consumption of the IPC. Furthermore, when peripheral devices such as the PHY chip die, it will not have a big impact on the power consumption of the IPC, that is, the power output of the NVR to the target IPC will not change significantly, and it will basically remain stable within the normal power consumption range; when key components such as the CPU die, the power of the target IPC will fluctuate greatly, that is, the power output of the NVR to the target IPC will change significantly, exceeding the normal power consumption range.
[0051] The preset first power threshold and the preset second power threshold are used to determine the normal power consumption range of the target IPC, and can be determined based on the minimum power and maximum power when the target IPC is normally connected. Because different IPC models consume different power, the corresponding preset first power threshold and preset second power threshold are also different. Specifically, the normal operation information of the IPC connected to the NVR is pre-determined, and the determined preset first power threshold and preset second power threshold are stored in the NVR. When the NVR recognizes the IPC connection, it adapts the associated preset power threshold based on the model of the IPC device.
[0052] For example, in order to avoid the influence of power consumption fluctuation on the misjudgment of the abnormal cause, the preset first power threshold = Pmin*A, and the preset second power threshold = Pmax*B are determined, wherein A<1, B>1, Pmin is the minimum power output by the NVR when the target front-end network camera is normally connected, and Pmax is the maximum power output by the NVR when the target front-end network camera is normally connected. Pmin and Pmax are determined according to the model of the target IPC and the actual work. The values of A and B can be determined according to the actual detection accuracy, and no restriction is imposed on the specific values here.
[0053] If the power value is less than the preset first power threshold, or greater than the preset second power threshold, and the NVR output power fluctuates significantly, the target IPC's anomaly may be caused by a key component failure, such as a CPU failure, requiring a hardware reset. Therefore, the target front-end network camera's reset policy is determined to be a hardware reset policy. If the power value is greater than or equal to the preset first power threshold and less than or equal to the preset second power threshold, and the NVR output power fluctuates slightly, the target IPC's anomaly may be caused by a peripheral component failure, such as a PHY chip failure. In this case, a software reset is prioritized. Therefore, the target front-end network camera's reset policy is determined to be a software reset policy.
[0054] Determining the appropriate reset strategy based on the fluctuation range of the power output from the NVR to the abnormal IPC facilitates improving the accuracy of the reset strategy determination and thereby improving the reset efficiency of the target IPC.
[0055] Step 103: Determine a control signal to be output to the target front-end network camera according to the reset strategy, so that the target front-end network camera can perform a reset response.
[0056] The control signal is used to represent different reset strategies. Specifically, the associated control signal is determined according to the determined reset strategy, and the control signal is sent to the target IPC so that the target IPC can perform a corresponding reset response based on the received signal.
[0057] Since the network connection between the NVR and the target IPC is abnormal, the control information may be an electrical signal.
[0058] In a feasible embodiment, the target front-end network camera is powered by a back-end network video recorder, and the control signal is a voltage signal;
[0059] Accordingly, step 103 includes:
[0060] If the reset strategy is a hardware reset strategy, determining the voltage signal is to adjust the voltage output to the target front-end network camera to a preset first output voltage, so that the target front-end network camera performs a hardware reset response according to the received voltage change;
[0061] If the reset strategy is a software reset strategy, determining the voltage signal is to adjust the voltage output to the target front-end network camera to a preset second output voltage, so that the target front-end network camera performs a software reset response according to the received voltage change;
[0062] The difference between the preset first output voltage and the preset second output voltage is greater than a preset voltage threshold.
[0063] Since in the embodiment of the present invention, the NVR and the IPC are networked based on the POE (Power Over Ethernet) power supply technology, that is, the NVR is the power supply of the IPC, the control signal is set to a voltage signal. Since the reset strategy includes a hardware reset strategy and a software reset strategy, the preset first output voltage and the preset second output voltage are set accordingly. Due to the problem of cable resistance loss during the transmission process, in order to facilitate the IPC to distinguish the received control signal, the difference between the preset first output voltage and the preset second output voltage needs to be greater than the preset voltage threshold. The specific size of the preset voltage threshold can be determined according to the actual voltage value and the detection accuracy of the detection equipment. In the embodiment of the present invention, there is no restriction on the specific value. There is no restriction on the size of the preset first output voltage and the preset second output voltage compared to the standard normal voltage value, that is, the control signal can be a voltage increase or a voltage decrease.
[0064] If it is determined that the reset policy of the target IPC is a hardware reset policy, the control signal sent to the target IPC is determined to adjust the voltage output by the NVR to the target IPC to a preset first output voltage, so that the target front-end network camera can perform a hardware reset response according to the received voltage change; if it is determined that the reset policy of the target IPC is a software reset policy, the control signal sent to the target IPC is determined to adjust the voltage output by the NVR to the target IPC to a preset second output voltage, so that the target front-end network camera can perform a software reset response according to the received voltage change.
[0065] In a feasible embodiment, the hardware reset strategy is that the front-end network camera first performs a CPU hardware reset operation; if the target front-end network camera and the back-end network video recorder are still in an abnormal connection state after the CPU hardware reset operation, a power-off restart reset operation is performed;
[0066] The software reset strategy is that the front-end network camera first performs a CPU software system reset operation; if the target front-end network camera and the back-end network video recorder are still in an abnormal connection state after the CPU software system reset operation, the CPU hardware reset operation is performed; if the target front-end network camera and the back-end network video recorder are still in an abnormal connection state after the CPU hardware reset operation, the power-off restart reset operation is performed.
[0067] The hardware reset strategy prioritizes hardware reset, while the software reset strategy prioritizes software reset. The specific reset operation can be triggered by the reset chip built into the IPC.
[0068] Specifically, the hardware reset strategy is to automatically trigger the CPU hardware reset in the IPC. The reset function is implemented in conjunction with the reset chip. When the reset chip recognizes that the voltage change triggers the CPU hardware reset, it delays for a period of time to detect whether the IPC is connected. If the IPC is detected to be in place after a preset time period, the initial state is restored; if the IPC is detected to be not in place, the IPC is powered off and restarted. If the IPC is still not in place after the preset number of restarts, an alarm is triggered to notify the staff and report to the WEB, and the log is saved.
[0069] The software reset strategy is to automatically trigger the reset of the CPU software system in the IPC. The reset function is implemented in conjunction with the reset chip. When the reset chip recognizes that the voltage change triggers the CPU software reset, it delays for a period of time to detect whether the IPC is connected. If the IPC is detected in place after a preset time period, the initial state is restored; if the IPC is not detected in place, the CPU hardware of the IPC is reset, and the IPC connection is detected after a period of delay. If the IPC is detected in place after a preset time period, the initial state is restored; if the IPC is still not in place, the IPC is powered off and restarted. If the IPC is still not in place after the preset number of restarts, an alarm is triggered to notify the staff and report to the WEB, and the log is saved.
[0070] In a feasible embodiment, before step 101, the method further includes:
[0071] Send monitoring messages to the front-end network camera according to the preset period;
[0072] If the presence response message returned by the target front-end network camera is not received within the preset time interval, it is determined that the connection between the target front-end network camera and the back-end network video recorder is abnormal.
[0073] The NVR needs to maintain a detection operation to confirm that the target IPC is not in place. Specifically, the NVR sends a monitoring message to all managed IPCs at a preset period. If the IPC is in place, it returns a presence response message to the NVR after receiving the monitoring message. If the NVR does not receive a presence response message from a managed IPC within a preset time interval, it determines that the IPC is a target IPC with an abnormal connection.
[0074] The embodiment of the present invention predicts the cause of the abnormal connection of the front-end network camera through the power value output by the back-end network video recorder to the front-end network camera with an abnormal connection, and then determines the reset strategy of the front-end network camera. That is, it realizes the abnormal detection of the front-end network camera only through the network cable containing power supply without adding cables between the front-end and the back-end, and improves the efficiency of resetting the front-end network camera. By sending control information to the front-end network camera, the front-end network camera is controlled to perform corresponding reset, thereby avoiding the front-end network camera being in an abnormal hanging state.
[0075] Example 2
[0076] Figure 2 This is a flow chart of the network camera reset method in the second embodiment of the present invention. This embodiment is applicable to the case of resetting the front-end network camera with abnormal connection. The method can be executed by the network camera reset device, which can be implemented in software and / or hardware and can be configured in the front-end network camera. Figure 1 As shown, the method specifically includes:
[0077] Step 201: Monitor signal changes caused by a control signal output by a back-end network video recorder.
[0078] The IPC keeps monitoring the changes of its own electrical signals. For example, the IPC can keep monitoring, or trigger the operation of monitoring signal changes after not receiving the monitoring message sent by the NVR within a preset time period.
[0079] The IPC determines whether the signal change is caused by the control signal output by the back-end NVR. Specifically, the NVR and IPC pre-agreed on the control signal. That is, when the NVR determines that the control signal is a voltage signal, the IPC monitors the changes in the voltage signal input by the NVR.
[0080] Step 202: Determine a reset strategy for response according to the signal change.
[0081] Based on the association between the control signal and the reset strategy determined by the NVR, the IPC determines the association between its own signal changes and the reset strategy. Specifically, the signal changes caused by the control signal on the IPC are pre-determined, and the association between the signal changes and the reset strategy is established. When the corresponding signal change is actually detected, the reset strategy is determined based on the pre-determined association.
[0082] In a feasible embodiment, the target front-end network camera is powered by a back-end network video recorder, the control signal is a voltage signal, and the signal change is a voltage change;
[0083] Accordingly, step 202 includes:
[0084] If the signal change is that the input voltage becomes a preset first input voltage, determining that the reset strategy to be responded to is a hardware reset strategy;
[0085] If the signal change is that the input voltage becomes a preset second input voltage, determining that the reset strategy to respond is a software reset strategy;
[0086] The preset first input voltage is determined according to a preset first output voltage output by the back-end network video recorder, and the preset second input voltage is determined according to a preset second output voltage output by the back-end network video recorder.
[0087] Specifically, the corresponding preset first input voltage and preset second input voltage at the IPC are determined in advance based on the preset first output voltage and preset second output voltage set at the NVR. Due to the influence of the cable resistance of the power line on the attenuation of the voltage output adjusted by the NVR to the IPC in actual projects, the actual preset first input voltage is equal to the preset first output voltage minus the cable loss voltage, and the actual preset second input voltage is equal to the preset second output voltage minus the cable loss voltage, which can be expressed as follows:
[0088] U NVR =U IPC +I×R;
[0089] Among them, U NVR Indicates the voltage output by the NVR, that is, the preset first output voltage or the preset second output voltage; U IPC Indicates the input voltage received by the IPC, that is, the preset first input voltage or the preset second input voltage; I represents the line current, which can be detected by the NVR; R represents the cable resistance.
[0090] The cable resistance R is calculated by the following process: When the target IPC and NVR are connected normally, the IPC end obtains the input voltage U during normal operation. IPC0 , and U IPC0 The NVR terminal obtains the current I0 and output voltage U on the line connected to the IPC at this time. NVR0 , according to the formula U NVR =U IPC +I×R can be obtained That is to say, the cable resistance value is obtained according to U IPC =U NVR -I×R, and the preset first output voltage U NVR1 The corresponding U IPC1 value, and the preset first output voltage U NVR2 The corresponding U IPC2 value.
[0091] Specifically, according to UNVR1 The corresponding relationship with the hardware reset strategy is pre-established IPC1 Corresponding relationship with hardware reset strategy; according to U NVR2 The corresponding relationship with the hardware reset strategy is pre-established IPC2 Corresponding relationship with the hardware reset strategy. If it is detected that the voltage of the target IPC terminal becomes the preset first input voltage U IPC1 , it is determined that the reset strategy to respond is a hardware reset strategy; if it is detected that the voltage of the target IPC terminal becomes the preset second input voltage U IPC2 , it is determined that the reset strategy for response is the software reset strategy.
[0092] By pre-establishing the correlation between electrical signal changes and reset strategies, when the network connection between the IPC and NVR is abnormal, after the NVR determines the reset strategy of the IPC, the reset strategy information is sent to the IPC end via electrical signals, making the reset operation on the IPC end more convenient and faster.
[0093] Step 203: Execute the associated reset operation according to the reset policy.
[0094] The associated reset operation is determined according to the corresponding reset policy.
[0095] Specifically, the reset operation associated with the hardware reset strategy is to automatically trigger the CPU hardware reset in the IPC. The reset function is implemented in conjunction with the reset chip. When the reset chip recognizes that the voltage change triggers the CPU hardware reset, it delays for a period of time to detect whether the IPC is connected. If the IPC is detected to be in place after a preset time period, the initial state is restored; if the IPC is detected to be not in place, the IPC is powered off and restarted. If the IPC is still not in place after the preset number of restarts, an alarm is triggered to notify the staff and report to the WEB, and the log is saved.
[0096] The reset operation associated with the software reset strategy is to automatically trigger the reset of the CPU software system in the IPC. The reset function is implemented in conjunction with the reset chip. When the reset chip recognizes that the voltage change triggers the CPU software reset, it delays for a period of time to detect whether the IPC is connected. If the IPC is detected in place after the preset time period, the initial state is restored; if the IPC is not detected in place, the CPU hardware of the IPC is reset, and the IPC connection is detected after a period of delay. If the IPC is detected in place after the preset time period, the initial state is restored; if the IPC is still not in place, the IPC is powered off and restarted. If the IPC is still not in place after the preset number of restarts, an alarm is triggered to notify the staff and report to the WEB, and the log is saved.
[0097] The present invention improves the reset efficiency of front-end network cameras by monitoring signal changes caused by control signals output by a back-end network video recorder and determining the appropriate reset strategy based on these signal changes. This eliminates the need for manual intervention to reconnect and unplug the power supply to the front-end network camera for a passive reset. Furthermore, by determining the associated reset strategy based on signal changes, the reset efficiency of the front-end network camera is improved, avoiding the problem of inefficient camera operation caused by immediate power-off and restart upon an abnormality.
[0098] Example 3
[0099] Figure 3 1 is a schematic diagram of the structure of the network camera reset system in the third embodiment of the present invention;
[0100] As a power sourcing equipment (PSE), the NVR includes a power supply unit, an algorithm processing unit, a presence detection unit, a power detection unit, a power processing unit, and a PSE power module.
[0101] As a powered device (PD), the IPC includes a PD power module, a power adjustment and detection module, a logic algorithm unit, and IPC components.
[0102] The power supply unit is used to provide a power source to power the NVR and IPC.
[0103] The presence detection unit is used to determine whether the front-end IPC is in place, that is, whether the connection is abnormal, and transmits the detection result to the algorithm processing unit. If a sudden abnormality occurs in the front-end IPC, such as an abnormal hang, the NVR can detect the abnormality of the front-end IPC through the presence detection unit. For example, the presence detection unit sends monitoring messages to the front-end network camera at a preset period. If a presence response message is not received from the target front-end network camera within a preset time interval, it is determined that the connection between the target front-end network camera and the back-end network video recorder is abnormal.
[0104] The power detection unit is used to obtain the power value output by the NVR to the target IPC, and send the obtained power value to the algorithm processing unit.
[0105] The algorithm processing unit is configured to control the power detection unit to obtain the output power value of the target IPC based on the detection result of whether the IPC is in place provided by the presence detection unit, determine a reset strategy for the target front-end network camera based on the comparison result of the power value with a preset power threshold, determine a control signal to be output to the target front-end network camera based on the reset strategy, and control the power supply processing unit to adjust the output signal to the target IPC based on the control signal. The specific control algorithm can be referred to the network camera reset method in Example 1 and will not be described in detail here.
[0106] The power supply processing unit is configured to adjust the electrical signal output to the target IPC according to the determined control signal. For example, according to the control instruction provided by the algorithm processing unit, the output power voltage value of the port of the PSE power module of the NVR is adjusted to the preset first output voltage or the preset second output voltage, or turned on or off.
[0107] The PSE power module is used to supply power to the IPC. The PD power module is used to supply power to the IPC based on the power received from the PSE.
[0108] The power adjustment detection module and logic algorithm unit are used to determine the reset strategy by detecting changes in the input voltage signal of the PD power module under the control of the logic algorithm. Based on the reset strategy, the IPC components are controlled to perform the corresponding reset operation. The specific control algorithm can be referred to the network camera reset method in Example 2 and will not be repeated here.
[0109] The IPC component is used to respond to the reset strategy sent by the power adjustment detection module and the logic algorithm unit and perform corresponding reset operations.
[0110] Example 4
[0111] Figure 4 is a flow chart of an algorithm executed by the network camera reset system in the fourth embodiment of the present invention;
[0112] First, the IPC and NVR are powered on and initialized, and a network connection is established between the IPC and NVR. After the network connection is established, the IPC obtains image information, and the back-end NVR determines whether the front-end IPC is in place. If the front-end IPC is in place, the back-end NVR normally supplies power to the front-end IPC; if the front-end IPC is not in place, the NVR obtains the output power value of the channel through the power detection unit and determines whether it is between the preset first power threshold P1 and the preset second power threshold P2. The detection results and processing methods are as follows:
[0113] In the initial state, the IPC is detected as not in place and the PSE output power value is not between the preset first power threshold P1 and the preset second power threshold P2. The reset strategy of the target front-end network camera is determined to be a hardware reset strategy. The specific operation is as follows: the algorithm processing unit controls the power supply processing unit to adjust the output voltage of the PSE power module to the IPC to the preset first output voltage U2. The PD power module in the PD device detects the voltage change to the preset first input voltage Ub and automatically triggers a CPU hardware reset. The reset function can be implemented in conjunction with a reset chip. The reset chip recognizes the voltage change and triggers a CPU hardware reset. The IPC presence is then continuously checked after a delay of T2. If the IPC is detected to be in place after T2, the default initial state of continuous IPC presence detection is restored. If the IPC is detected to be not in place after T2, the IPC is powered off and restarted. If the IPC is still not in place after N restarts, an alarm is triggered to notify the staff and report to the website, and the log is saved.
[0114] In the initial state, it is detected that the IPC is not in place and the PSE output power value is between the preset first power threshold P1 and the preset second power threshold P2, and the reset strategy of the target front-end network camera is determined to be a software reset strategy. The specific operations are as follows: the algorithm processing unit controls the power supply processing unit to adjust the output voltage of the PSE power module to the IPC to the preset second output voltage U1. The PD power module in the PD device detects that the voltage change is the preset second input voltage Ua, and automatically triggers a CPU software reset. The reset function can be implemented in conjunction with the reset chip. The reset chip recognizes the voltage change and triggers the CPU software reset. The delay T1 continues to detect the presence of the IPC. If the IPC is detected to be in place, the default initial state of always detecting whether the IPC is in place is restored. If the IPC is not in place, the hardware reset strategy is initiated. The specific reset operation is described above and will not be repeated here.
[0115] The embodiment of the present invention can detect abnormalities in the front-end network camera device only through the network cable (including power supply) without adding any cables between the NVR and the IPC, and determine different reset strategies in combination with the recognition of the output power value. The response to the reset strategy is achieved by controlling the voltage change at the IPC end, which can effectively prevent the front-end camera from being in an abnormal hanging state for a long time, and can also avoid manual intervention in re-plugging and plugging the power supply of the front-end camera to perform a passive reset.
[0116] Example 5
[0117] Figure 5 This is a schematic diagram of the structure of the network camera reset device in the fifth embodiment of the present invention. This embodiment is applicable to the situation where the front-end network camera with abnormal connection is reset and controlled, and is applied to the back-end network video recorder. Figure 5 As shown, the device includes:
[0118] The output power value acquisition module 510 is used to obtain the power value output to the target front-end network camera; wherein the target front-end network camera is abnormally connected to the back-end network video recorder;
[0119] A reset strategy determination module 520 is configured to determine a reset strategy for the target front-end network camera based on a comparison result between the power value and a preset power threshold;
[0120] The control signal output module 530 is used to determine the control signal to be output to the target front-end network camera according to the reset strategy, so that the target front-end network camera can perform a reset response.
[0121] The embodiment of the present invention predicts the cause of the abnormal connection of the front-end network camera through the power value output by the back-end network video recorder to the front-end network camera with an abnormal connection, and then determines the reset strategy of the front-end network camera. That is, it realizes the abnormal detection of the front-end network camera only through the network cable containing power supply without adding cables between the front-end and the back-end, and improves the efficiency of resetting the front-end network camera. By sending control information to the front-end network camera, the front-end network camera is controlled to perform corresponding reset, thereby avoiding the front-end network camera being in an abnormal hanging state.
[0122] Optionally, the reset strategy determination module 520 is specifically configured to:
[0123] If the power value is less than a preset first power threshold, or greater than a preset second power threshold, determining that the reset policy of the target front-end network camera is a hardware reset policy;
[0124] If the power value is greater than or equal to a preset first power threshold and less than or equal to a preset second power threshold, determining that the reset policy of the target front-end network camera is a software reset policy;
[0125] Among them, the preset first power threshold is less than the preset second power threshold, the preset first power threshold is determined according to the lowest power when the target front-end network camera is normally connected, and the preset second power threshold is determined according to the highest power when the target front-end network camera is normally connected.
[0126] Optionally, the target front-end network camera is powered by the back-end network video recorder, and the control signal is a voltage signal;
[0127] Accordingly, the control signal output module 530 is specifically configured to:
[0128] If the reset strategy is a hardware reset strategy, determining that the voltage signal is to adjust the voltage output to the target front-end network camera to a preset first output voltage, so that the target front-end network camera performs a hardware reset response according to the received voltage change;
[0129] If the reset strategy is a software reset strategy, determining that the voltage signal is to adjust the voltage output to the target front-end network camera to a preset second output voltage, so that the target front-end network camera performs a software reset response according to the received voltage change;
[0130] Wherein, the difference between the preset first output voltage and the preset second output voltage is greater than a preset voltage threshold.
[0131] Optionally, the hardware reset strategy is that the front-end network camera first performs a CPU hardware reset operation; if the target front-end network camera and the back-end network video recorder are still in an abnormal connection state after the CPU hardware reset operation is performed, a power-off restart reset operation is performed;
[0132] The software reset strategy is that the front-end network camera first performs a CPU software system reset operation; if the target front-end network camera and the back-end network video recorder are still in an abnormal connection state after the CPU software system reset operation is performed, a CPU hardware reset operation is performed; if the target front-end network camera and the back-end network video recorder are still in an abnormal connection state after the CPU hardware reset operation is performed, a power-off restart reset operation is performed.
[0133] Optionally, the device further includes a connection determination module, which is configured to send a monitoring message to the front-end network camera according to a preset period before obtaining the power value output to the target front-end network camera;
[0134] If no presence response message returned by the target front-end network camera is received within the preset time interval, it is determined that the connection between the target front-end network camera and the back-end network video recorder is abnormal.
[0135] The network camera reset device provided by the embodiment of the present invention can execute the network camera reset method provided by any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of executing the network camera reset method.
[0136] Example 6
[0137] Figure 6 This is a schematic diagram of the structure of the network camera reset device in the sixth embodiment of the present invention. This embodiment is applicable to the situation where the front-end network camera with abnormal connection is reset and controlled. Figure 6 As shown, the device includes:
[0138] The signal change monitoring module 610 is used to monitor the signal changes caused by the control signal output by the back-end network video recorder;
[0139] A reset strategy response module 620, configured to determine a reset strategy to respond to according to the signal change;
[0140] The reset operation execution module 630 is configured to execute the associated reset operation according to the reset policy.
[0141] The present invention improves the reset efficiency of front-end network cameras by monitoring signal changes caused by control signals output by a back-end network video recorder and determining the appropriate reset strategy based on these signal changes. This eliminates the need for manual intervention to reconnect and unplug the power supply to the front-end network camera for a passive reset. Furthermore, by determining the associated reset strategy based on signal changes, the reset efficiency of the front-end network camera is improved, avoiding the problem of inefficient camera operation caused by immediate power-off and restart upon an abnormality.
[0142] Optionally, the target front-end network camera is powered by the back-end network video recorder, the control signal is a voltage signal, and the signal change is a voltage change;
[0143] Accordingly, the reset strategy response module 620 is specifically configured to:
[0144] If the signal change is that the input voltage becomes a preset first input voltage, determining that the reset strategy to be responded to is a hardware reset strategy;
[0145] If the signal change is that the input voltage becomes a preset second input voltage, determining that the reset strategy to be responded to is a software reset strategy;
[0146] The preset first input voltage is determined according to the preset first output voltage output by the back-end network video recorder, and the preset second input voltage is determined according to the preset second output voltage output by the back-end network video recorder.
[0147] The network camera reset device provided by the embodiment of the present invention can execute the network camera reset method provided by any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of executing the network camera reset method.
[0148] Example 7
[0149] Figure 7 This is a structural diagram of an electronic device provided in Example 7 of the present invention. Figure 7 A block diagram of an exemplary electronic device 12 suitable for implementing embodiments of the present invention is shown. Figure 7 The electronic device 12 shown is only an example and should not limit the functionality and scope of use of the embodiments of the present invention.
[0150] like Figure 7 As shown, electronic device 12 is implemented as a general-purpose computing device. Components of 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 system memory 28 and processing unit 16).
[0151] 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. Examples of 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.
[0152] 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.
[0153] 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 7 Not shown, often called a "hard drive"). Although Figure 7 Not shown, 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, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 18 via one or more data media interfaces. Storage device 28 may include at least one program product having a set (e.g., at least one) of program modules configured to perform the functions of various embodiments of the present invention.
[0154] A program / utility 40 having a set (at least one) of program modules 42 may be stored, for example, in storage device 28. Such program modules 42 include, but are not limited to, an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may include an implementation of a network environment. Program modules 42 generally implement the functions and / or methods of the embodiments described herein.
[0155] The electronic device 12 may also communicate with one or more external devices 14 (e.g., a keyboard, a pointing device, a display 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., a network card, a modem, etc.). Such communication may be performed through an input / output (I / O) interface 22. Furthermore, the electronic device 12 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) through a network adapter 20. Figure 7 As shown, the network adapter 20 communicates with other modules of the electronic device 12 via the bus 18. Figure 7 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.
[0156] The processing unit 16 executes various functional applications and data processing by running programs stored in the system storage device 28, such as implementing the network camera reset method provided in an embodiment of the present invention, which is applied to a back-end network video recorder, including:
[0157] Obtaining a power value output to a target front-end network camera; wherein the target front-end network camera is abnormally connected to the back-end network video recorder;
[0158] Determining a reset strategy for the target front-end network camera based on a comparison result of the power value and a preset power threshold;
[0159] A control signal is output to the target front-end network camera according to the reset strategy, so that the target front-end network camera performs a reset response.
[0160] Alternatively, the network camera reset method provided in the embodiment of the present invention is implemented and applied to a front-end network camera, including:
[0161] Monitor signal changes caused by control signals output by back-end network video recorders;
[0162] Determining a reset strategy for responding according to the signal change;
[0163] An associated reset operation is performed according to the reset policy.
[0164] Example 8
[0165] Embodiment 8 of the present invention further provides a computer-readable storage medium having a computer program stored thereon. When the program is executed by a processor, the network camera reset method provided in the embodiment of the present invention is implemented, and the method is applied to a back-end network video recorder, including:
[0166] Obtaining a power value output to a target front-end network camera; wherein the target front-end network camera is abnormally connected to the back-end network video recorder;
[0167] Determining a reset strategy for the target front-end network camera based on a comparison result of the power value and a preset power threshold;
[0168] A control signal is output to the target front-end network camera according to the reset strategy, so that the target front-end network camera performs a reset response.
[0169] Alternatively, the network camera reset method provided in the embodiment of the present invention is implemented and applied to a front-end network camera, including:
[0170] Monitor signal changes caused by control signals output by back-end network video recorders;
[0171] Determining a reset strategy for responding according to the signal change;
[0172] An associated reset operation is performed according to the reset policy.
[0173] The computer storage medium of the embodiment of the present invention can adopt any combination of one or more computer-readable media. Computer-readable media can be computer-readable signal media or computer-readable storage media. Computer-readable storage media can be, for example, but not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or components, or any combination thereof. 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 thereof. In this document, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by an instruction execution system, device or device or used in combination with it.
[0174] A computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, which carries computer-readable program code. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0175] Program code embodied on a 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.
[0176] The computer program code for performing the operations of the present invention can 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 can be executed entirely on the user's computer, partially on the user's computer, as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer can 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 can be connected to an external computer (e.g., through the Internet using an Internet service provider).
[0177] Note that the above are only preferred embodiments of the present invention and the technical principles employed. 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 detail through the above embodiments, the present invention is not limited to the above embodiments and may include many other equivalent embodiments without departing from the concept of the present invention. The scope of the present invention is determined by the scope of the appended claims.
Claims
1. A method for resetting a network camera, characterized in that: Applicable to back-end network video recorders, including: When the back-end network video recorder learns that there is a connection anomaly with the target front-end network camera, the power value output to the target front-end network camera is obtained; wherein the connection anomaly between the target front-end network camera and the back-end network video recorder is abnormal, and the connection anomaly is that the network connection between the target front-end network camera and the back-end network video recorder is unavailable; Determining a reset strategy for the target front-end network camera based on a comparison result of the power value and a preset power threshold; Determining a control signal to be output to the target front-end network camera according to the reset strategy, for the target front-end network camera to perform a reset response; Wherein, determining the reset strategy of the target front-end network camera according to the comparison result of the power value and the preset power threshold includes: If the power value is less than a preset first power threshold, or greater than a preset second power threshold, determining that the reset policy of the target front-end network camera is a hardware reset policy; If the power value is greater than or equal to a preset first power threshold and less than or equal to a preset second power threshold, determining that the reset policy of the target front-end network camera is a software reset policy; Among them, the preset first power threshold is less than the preset second power threshold, the preset first power threshold is determined according to the lowest power when the target front-end network camera is normally connected, and the preset second power threshold is determined according to the highest power when the target front-end network camera is normally connected; the reset strategy includes a software reset strategy and a hardware reset strategy, the software reset strategy gives priority to the software reset operation, and the hardware reset operation gives priority to the hardware reset operation; the reset strategy is determined based on the predicted cause of the abnormality of the target front-end network camera determined by comparing the power value with the preset power threshold.
2. The method according to claim 1, characterized in that The target front-end network camera is powered by the back-end network video recorder, and the control signal is a voltage signal; Correspondingly, determining a control signal to be output to the target front-end network camera according to the reset strategy, so that the target front-end network camera performs a reset response, includes: If the reset strategy is a hardware reset strategy, determining that the voltage signal is to adjust the voltage output to the target front-end network camera to a preset first output voltage, so that the target front-end network camera performs a hardware reset response according to the received voltage change; If the reset strategy is a software reset strategy, determining that the voltage signal is to adjust the voltage output to the target front-end network camera to a preset second output voltage, so that the target front-end network camera performs a software reset response according to the received voltage change; Wherein, the difference between the preset first output voltage and the preset second output voltage is greater than a preset voltage threshold.
3. The method according to any one of claims 1-2, characterized in that The hardware reset strategy is that the front-end network camera first performs a CPU hardware reset operation; if the target front-end network camera and the back-end network video recorder are still in an abnormal connection state after the CPU hardware reset operation, a power-off restart reset operation is performed; The software reset strategy is that the front-end network camera first performs a CPU software system reset operation; if the target front-end network camera and the back-end network video recorder are still in an abnormal connection state after the CPU software system reset operation is performed, a CPU hardware reset operation is performed; if the target front-end network camera and the back-end network video recorder are still in an abnormal connection state after the CPU hardware reset operation is performed, a power-off restart reset operation is performed.
4. The method according to claim 1, wherein Before obtaining the power value output to the target front-end network camera, the following steps are also included: Send monitoring messages to the front-end network camera according to the preset period; If no presence response message returned by the target front-end network camera is received within the preset time interval, it is determined that the connection between the target front-end network camera and the back-end network video recorder is abnormal.
5. A method for resetting a network camera, characterized in that: Applicable to target front-end network cameras, including: Monitor signal changes caused by control signals output by back-end network video recorders; A reset strategy for responding is determined based on the signal change; wherein the reset strategy includes a software reset strategy and a hardware reset strategy, wherein the software reset strategy prioritizes a software reset operation, and the hardware reset strategy prioritizes a hardware reset operation; the reset strategy is determined based on a predicted cause of an abnormality in the target front-end network camera determined by comparing a power value with a preset power threshold; the power value is a power value output by the back-end network video recorder to the target front-end network camera when the back-end network video recorder learns that there is a connection abnormality in the target front-end network camera, wherein the connection abnormality is a network connection failure between the target front-end network camera and the back-end network video recorder; if the power value is less than a preset first power threshold or greater than a preset second power threshold, the reset strategy of the target front-end network camera is determined to be a hardware reset strategy; if the power value is greater than or equal to the preset first power threshold and less than or equal to the preset second power threshold, the reset strategy of the target front-end network camera is determined to be a software reset strategy; wherein the preset first power threshold is less than a preset second power threshold, the preset first power threshold is determined based on the lowest power of the target front-end network camera when it is normally connected, and the preset second power threshold is determined based on the highest power of the target front-end network camera when it is normally connected; An associated reset operation is performed according to the reset policy.
6. The method according to claim 5, characterized in that The target front-end network camera is powered by the back-end network video recorder, the control signal is a voltage signal, and the signal change is a voltage change; Accordingly, determining a reset strategy for responding according to the signal change includes: If the signal change is that the input voltage becomes a preset first input voltage, determining that the reset strategy to be responded to is a hardware reset strategy; If the signal change is that the input voltage becomes a preset second input voltage, determining that the reset strategy to be responded to is a software reset strategy; The preset first input voltage is determined according to a preset first output voltage output by a back-end network video recorder, and the preset second input voltage is determined according to a preset second output voltage output by the back-end network video recorder.
7. A network camera reset device, characterized in that: Applicable to back-end network video recorders, including: an output power value acquisition module, configured to acquire a power value output to a target front-end network camera when a back-end network video recorder learns that a connection anomaly exists with the target front-end network camera; wherein the connection anomaly between the target front-end network camera and the back-end network video recorder is abnormal, and the connection anomaly is a network failure between the target front-end network camera and the back-end network video recorder; A reset strategy determination module, configured to determine a reset strategy for the target front-end network camera based on a comparison result between the power value and a preset power threshold; A control signal output module, configured to determine a control signal to be output to the target front-end network camera according to the reset strategy, so that the target front-end network camera performs a reset response; The reset strategy determination module is specifically used to: If the power value is less than a preset first power threshold, or greater than a preset second power threshold, determining that the reset policy of the target front-end network camera is a hardware reset policy; If the power value is greater than or equal to a preset first power threshold and less than or equal to a preset second power threshold, determining that the reset policy of the target front-end network camera is a software reset policy; Among them, the preset first power threshold is less than the preset second power threshold, the preset first power threshold is determined according to the lowest power when the target front-end network camera is normally connected, and the preset second power threshold is determined according to the highest power when the target front-end network camera is normally connected; the reset strategy includes a software reset strategy and a hardware reset strategy, the software reset strategy gives priority to the software reset operation, and the hardware reset operation gives priority to the hardware reset operation; the reset strategy is determined based on the predicted cause of the abnormality of the target front-end network camera determined by comparing the power value with the preset power threshold.
8. A network camera reset device, characterized in that: Applied to front-end network cameras, including: Signal change monitoring module, used to monitor signal changes caused by the control signal output by the back-end network video recorder; A reset strategy response module is used to determine a reset strategy to respond to according to the signal change; wherein, the reset strategy includes a software reset strategy and a hardware reset strategy, the software reset strategy is to give priority to the software reset operation, and the hardware reset operation is to give priority to the hardware reset operation; the reset strategy is determined based on the predicted cause of the abnormality of the target front-end network camera determined by the comparison result of the power value and the preset power threshold; the power value is the power value output by the back-end network video recorder to the target front-end network camera when the back-end network video recorder learns that there is a connection abnormality in the target front-end network camera, and the connection abnormality is the power value output by the target front-end network camera to the back-end network video recorder The network connection between the target front-end network camera and the target front-end network camera is not connected; if the power value is less than a preset first power threshold, or greater than a preset second power threshold, the reset policy of the target front-end network camera is determined to be a hardware reset policy; if the power value is greater than or equal to the preset first power threshold, and less than or equal to the preset second power threshold, the reset policy of the target front-end network camera is determined to be a software reset policy; wherein the preset first power threshold is less than the preset second power threshold, the preset first power threshold is determined according to the lowest power when the target front-end network camera is normally connected, and the preset second power threshold is determined according to the highest power when the target front-end network camera is normally connected; A reset operation execution module is used to execute the associated reset operation according to the reset strategy.
9. 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 network camera reset method according to any one of claims 1 to 4 or the network camera reset method according to any one of claims 5 to 6.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the network camera reset method according to any one of claims 1 to 4 or the network camera reset method according to any one of claims 5 to 6 is implemented.
Citation Information
Patent Citations
Method and system for automatically reporting power supply and network connection states of AR camera
CN111010533A