Movatterモバイル変換


[0]ホーム

URL:


CN105657232A - Restoring method and device for default setting of video camera - Google Patents

Restoring method and device for default setting of video camera
Download PDF

Info

Publication number
CN105657232A
CN105657232ACN201610160901.6ACN201610160901ACN105657232ACN 105657232 ACN105657232 ACN 105657232ACN 201610160901 ACN201610160901 ACN 201610160901ACN 105657232 ACN105657232 ACN 105657232A
Authority
CN
China
Prior art keywords
camera
power
threshold
default setting
duration
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201610160901.6A
Other languages
Chinese (zh)
Inventor
黄轶程
孙飞
孙一飞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang Uniview Technologies Co Ltd
Original Assignee
Zhejiang Uniview Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhejiang Uniview Technologies Co LtdfiledCriticalZhejiang Uniview Technologies Co Ltd
Priority to CN201610160901.6ApriorityCriticalpatent/CN105657232A/en
Publication of CN105657232ApublicationCriticalpatent/CN105657232A/en
Pendinglegal-statusCriticalCurrent

Links

Classifications

Landscapes

Abstract

Translated fromChinese

本发明公开了一种摄像机默认设置的恢复方法,包括将摄像机控制系统所保存的默认设置信息进行备份存储,包括:在摄像机上电后检测摄像机的通电持续时间,对通电持续时间低于预设的正常通电阈值的通电次数进行计数,并在摄像机断电后继续保留计数值:当单次通电持续时间达到正常通电阈值时,清零计数并在下一次通电持续时间低于正常通电阈值时重新开始计数;当计数达到设定的次数阈值时将备份存储的默认设置信息用于摄像机默认设置的恢复。本发明还公开了对应方法的装置。利用本发明,用户不需要接近摄像机机身,只需要进行多次的通断电源即可实现,而且利用现有的供电电路即可实现默认设置的恢复,因此不会增加摄像机本身的按键设置,实现了简单快速地恢复默认设置的目的。

The invention discloses a method for restoring the default setting of a camera, which includes backing up and storing the default setting information saved by the camera control system, including: detecting the power-on duration of the camera after the camera is powered on, and detecting the power-on duration of the camera if the power-on duration is lower than the preset Count the number of power-on times of the normal power-on threshold of the camera, and continue to retain the count value after the camera is powered off: when the duration of a single power-on reaches the normal power-on threshold, the count is cleared and restarted when the next power-on duration is lower than the normal power-on threshold Counting; when the count reaches the set threshold value, the default setting information of the backup storage is used to restore the default setting of the camera. The invention also discloses a device corresponding to the method. With the present invention, the user does not need to be close to the camera body, and only needs to switch on and off the power supply multiple times, and the recovery of the default settings can be realized by using the existing power supply circuit, so the button settings of the camera itself will not be increased. The purpose of restoring default settings simply and quickly is achieved.

Description

Translated fromChinese
摄像机默认设置的恢复方法及装置Method and device for restoring camera default settings

技术领域technical field

本发明涉及摄像机领域,尤其涉及摄像机默认设置的恢复方法及装置。The invention relates to the field of cameras, in particular to a method and device for restoring default settings of cameras.

背景技术Background technique

视频监控行业正在经历从模拟时代向IP时代的转变,IPC网络摄像机的出货量和占有率越来越大。虽然网络摄像机的使用越来越广泛,但在使用过程中也出现了不少问题,经常会出现关键信息的丢失,其中之一就是IP地址的丢失,这样会直接造成网络摄像机无法使用。IP地址的丢失有多种原因,其中不少设备可以通过一定的手段恢复默认IP地址,这样可以在现场快速修复网络摄像机,避免设备返回的成本损失,通常通过复位摄像机的方式进行默认设置的恢复。The video surveillance industry is undergoing a transformation from the analog era to the IP era, and the shipment and market share of IPC network cameras are increasing. Although the use of network cameras is becoming more and more widespread, there are many problems in the process of use, and key information is often lost, one of which is the loss of IP addresses, which will directly cause the network cameras to be unusable. There are many reasons for the loss of the IP address, and many of them can restore the default IP address through certain means, so that the network camera can be quickly repaired on site to avoid the cost loss of equipment return, and the default settings are usually restored by resetting the camera. .

现有技术的方案通常是在网络摄像机内部出一个调试串口,丢失关键信息如IP地址的摄像机如果能够通过串口登陆,则可以通过一段命令行实现IP地址的恢复。The solution in the prior art is usually to open a debugging serial port inside the network camera. If the camera that loses key information such as the IP address can log in through the serial port, the IP address can be recovered through a command line.

现有技术的方案由于调试串口出在摄像机内部,则需要拆开设备操作,此动作在现场无法进行,通常需要将设备返回原厂维修,通过外接电脑操作,代价非常大。In the prior art solution, because the debugging serial port is inside the camera, the device needs to be disassembled for operation. This action cannot be performed on site. Usually, the device needs to be returned to the original factory for maintenance. It is very expensive to operate through an external computer.

因此如何能够在不需要拆卸摄像机的情况下,简单快速地恢复摄像机的默认设置,是现有技术待解决的问题。Therefore, how to restore the default settings of the camera simply and quickly without disassembling the camera is a problem to be solved in the prior art.

发明内容Contents of the invention

为了解决现有技术的问题,现提供一种能够简单快速地恢复默认设置的方法。In order to solve the problems of the prior art, a method for restoring default settings simply and quickly is provided.

一种摄像机默认设置的恢复方法,包括将摄像机控制系统所保存的默认设置信息进行备份存储,包括:A method for restoring the default settings of a camera, including backing up and storing the default setting information saved by the camera control system, including:

在摄像机上电后检测摄像机的通电持续时间,对通电持续时间低于预设的正常通电阈值的通电次数进行计数,并在摄像机断电后继续保留计数值:当单次通电持续时间达到正常通电阈值时,清零计数并在下一次通电持续时间低于正常通电阈值时重新开始计数;当计数达到设定的次数阈值时将备份存储的默认设置信息用于摄像机默认设置的恢复。Detect the power-on duration of the camera after the camera is powered on, count the number of times the power-on duration is lower than the preset normal power-on threshold, and keep the count value after the camera is powered off: when the single power-on duration reaches the normal power-on When the threshold is reached, the count is cleared and restarted when the next power-on duration is lower than the normal power-on threshold; when the count reaches the set threshold, the default setting information of the backup storage is used to restore the default setting of the camera.

由于摄像机通常安装在高处,如果直接在摄像机上设置默认设置的恢复按键,在需要恢复时,用户仍然需要爬到高处对摄像机进行默认设置的恢复,而如果把这个恢复键通过电线延长到地面,则不仅容易造成误触发而且在大部分情况下显得较为多余。而由于摄像机的开关通常接入到用户能够接触到的位置,因此本发明对摄像机的通电持续时间和非正常的通电持续时间次数的判断,当用户多次地通断电源时,一旦次数超过预设的次数阈值就判断为用户需要恢复默认设置,用户不需要接近摄像机机身,只需要进行多次的通断电源即可实现恢复默认设置,而且供电电路是现有的,只需要在摄像机内增加判断的部分,即可实现默认设置的恢复,因此不会增加摄像机本身的按键设置。实现了简单快速地恢复默认设置的目的。Since the camera is usually installed at a high place, if the recovery button of the default setting is directly set on the camera, the user still needs to climb to a high place to restore the default setting of the camera when recovery is required, and if the recovery button is extended to On the ground, it is not only easy to cause false triggers, but also appears redundant in most cases. Since the switch of the camera is usually connected to a position that the user can touch, the present invention judges the power-on duration of the camera and the number of abnormal power-on times. The number of times threshold is set to determine that the user needs to restore the default settings. The user does not need to be close to the camera body. The user only needs to switch on and off the power several times to restore the default settings. Moreover, the power supply circuit is existing and only needs to be installed inside the camera. By adding the judgment part, the default settings can be restored, so the button settings of the camera itself will not be increased. The purpose of restoring default settings simply and quickly is achieved.

进一步而言,还包括判断摄像机的通电持续时间是否达到预设的上电阈值,如果为否,则不计入计数值且保留原有的计数值,其中上电阈值小于正常通电阈值。Further, it also includes judging whether the power-on duration of the camera reaches a preset power-on threshold, and if not, the count value is not counted and the original count value is retained, wherein the power-on threshold is smaller than the normal power-on threshold.

由于电网波动,摄像机可能自身也存在一些非正常上电的,为了排除外界的干扰因素,将通电持续时间低于上电阈值(例如5~10秒)的上电认为是来自外界干扰,而非人为的通断电,从而排除了干扰。Due to the fluctuation of the power grid, the camera itself may also have some abnormal power-on. In order to eliminate external interference factors, the power-on duration lower than the power-on threshold (for example, 5-10 seconds) is considered to be from external interference, not Artificial power on and off, thus eliminating interference.

进一步而言,还包括在摄像机上电后,先判断摄像机的控制系统离线时间是否超过预设的离线时间阈值,在判断为是的情况下再进行摄像机通电持续时间的所述检测。Further, after the camera is powered on, it is first judged whether the offline time of the camera control system exceeds a preset offline time threshold, and if the judgment is yes, then the detection of the camera power-on duration is carried out.

由于电源接在下方,用户有可能会有一些连续插拔的动作(例如更换电源、进行试电等等),为了防止这些动作与真正的默认设置恢复混淆,因此还存在对控制系统进行离线时间的检测,只有控制系统离线较久的情况下,才认为默认设置已经失去了,在这种情况下才进行持续通电时间的检测。Since the power supply is connected to the bottom, the user may have some continuous plugging and unplugging actions (such as replacing the power supply, conducting a power test, etc.), in order to prevent these actions from being confused with the real default setting restoration, there is also an offline time for the control system Only when the control system has been off-line for a long time, it is considered that the default setting has been lost. In this case, the continuous power-on time detection is carried out.

进一步而言,默认设置信息备份存储于包含存储单元的处理器中,用于备份存储的MCU在计数达到设定的次数阈值时先向摄像机的控制系统发送中断信号,在摄像机的控制系统返回中断成功的消息后再发送默认设置信息到摄像机的控制系统以恢复默认设置,其中处理器只有在发送默认设置信息时才与摄像机的控制系统进行通信。Further, the default setting information is backed up and stored in the processor including the storage unit, and the MCU used for backing up and storing sends an interrupt signal to the camera's control system when the count reaches the set number of thresholds, and the camera's control system returns an interrupt Send the default setting information to the control system of the camera to restore the default setting after a successful message, wherein the processor only communicates with the control system of the camera when sending the default setting information.

如果将默认设置信息直接保存在摄像机的控制系统(一般为连接到CPU的FLASH)中,这样在进行通电持续时间的判断会占用CPU的一定资源,从而对控制系统的正常业务造成干扰,拖慢摄像机的正常数据处理。因此通过独立的MCU进行通电持续时间的计时和非正常通电时间的计次,能够保证两者业务既可以并行处理又互不干扰,而通过在发送默认设置信息前进行CPU的中断,使得默认设置信息的恢复不会使CPU的正常业务丢失,也保证了摄像机正常业务的稳定性。另外,MCU只有在发送默认设置信息时才与控制系统通信,在其他时间两者之间保持通信上的隔离,这就保证了用户无法访问到MCU上的默认设置信息,进而无法进行篡改,从而保证默认设置信息的稳定和安全。If the default setting information is directly saved in the camera's control system (usually the FLASH connected to the CPU), the judgment of the power-on duration will occupy a certain amount of CPU resources, thereby causing interference to the normal business of the control system and slowing down Normal data processing of the camera. Therefore, the timing of the power-on duration and the counting of the abnormal power-on time through an independent MCU can ensure that the two services can be processed in parallel without interfering with each other, and by interrupting the CPU before sending the default setting information, the default setting The recovery of information will not cause the normal business of the CPU to be lost, and also ensures the stability of the normal business of the camera. In addition, the MCU communicates with the control system only when sending the default setting information, and keeps communication isolation between the two at other times, which ensures that the user cannot access the default setting information on the MCU, and thus cannot tamper with it. Ensure the stability and security of the default setting information.

进一步而言,包含存储单元的处理器为设有非易失性存储器的MCU,对应地,计数得到的计数值以及备份存储的默认设置信息均存储在MCU的非易失性存储器中。Further, the processor including the storage unit is an MCU provided with a non-volatile memory. Correspondingly, the count value obtained by counting and the default setting information for backup storage are all stored in the non-volatile memory of the MCU.

一般摄像机默认设置存储在控制系统所连接的存储设备上,如果直接将存储设备划分为两个部分,一部分用于正常情况下的默认设置,另一部分用于信息丢失情况下的恢复,则如果存储设备因意外丢失正常所使用的默认设置信息,很有可能也会丢失备份的部分,因此起不到恢复的作用,而将其存储在与控制系统独立的MCU的非易失性存储器中,则由于两个存储设备相互独立,而且备份的部分即使失电也会保存,因此具有很好的稳定性,避免了默认设置信息的丢失,进一步提高了默认设置信息的稳定性。Generally, the default settings of the camera are stored on the storage device connected to the control system. If the storage device is directly divided into two parts, one part is used for the default If the device accidentally loses the default setting information normally used, it is very likely that the backup part will also be lost, so it will not play a role in recovery. If it is stored in the non-volatile memory of the MCU independent of the control system, then Because the two storage devices are independent of each other, and the backup part will be saved even if the power is lost, it has good stability, avoids the loss of the default setting information, and further improves the stability of the default setting information.

一种摄像机默认设置的恢复装置,包括备份存储模块,将摄像机控制系统所保存的默认设置信息进行备份存储,包括:A recovery device for camera default settings, including a backup storage module for backing up and storing the default setting information saved by the camera control system, including:

恢复模块,在摄像机上电后检测摄像机的通电持续时间,对通电持续时间低于预设的正常通电阈值的通电次数进行计数,并在摄像机断电后继续保留计数值:当单次通电持续时间达到正常通电阈值时,清零计数并在下一次通电持续时间低于正常通电阈值时重新开始计数;当计数达到设定的次数阈值时将备份存储的默认设置信息用于摄像机默认设置的恢复。The recovery module detects the power-on duration of the camera after the camera is powered on, counts the number of power-on times for which the power-on duration is lower than the preset normal power-on threshold, and continues to retain the count value after the camera is powered off: when the single power-on duration When the normal power-on threshold is reached, the count is cleared and restarted when the next power-on duration is lower than the normal power-on threshold; when the count reaches the set threshold, the default setting information of the backup storage is used to restore the default setting of the camera.

进一步而言,还包括上电判断模块,判断摄像机的通电持续时间是否达到预设的上电阈值,如果为否,则不计入计数值且保留原有的计数值,其中上电阈值小于正常通电阈值。Further, it also includes a power-on judging module, which judges whether the power-on duration of the camera reaches a preset power-on threshold, and if not, does not include the count value and retains the original count value, wherein the power-on threshold is less than the normal power-on threshold.

进一步而言,还包括离线时间判断模块,在摄像机上电后,先判断摄像机的控制系统离线时间是否超过预设的离线时间阈值,在判断为是的情况下再进行摄像机通电持续时间的所述检测。Further, it also includes an offline time judging module. After the camera is powered on, it first judges whether the offline time of the camera's control system exceeds the preset offline time threshold. detection.

进一步而言,备份存储模块将默认设置信息备份存储于包含存储单元的处理器中,用于备份存储的处理器在计数达到设定的次数阈值时先向摄像机的控制系统发送中断信号,在摄像机的控制系统返回中断成功的消息后再发送默认设置信息到摄像机的控制系统以恢复默认设置,其中处理器只有在发送默认设置信息时才与摄像机的控制系统进行通信。Further, the backup storage module backs up and stores the default setting information in the processor including the storage unit, and the processor used for backup storage sends an interrupt signal to the control system of the camera when the count reaches the set threshold, and the camera The control system returns the interrupt success message and then sends the default setting information to the camera's control system to restore the default settings, wherein the processor only communicates with the camera's control system when sending the default setting information.

进一步而言,包含存储单元的处理器为设有非易失性存储器的MCU,对应地,恢复模块计数得到的计数值以及备份存储模块进行备份存储的默认设置信息均存储在MCU的非易失性存储器中。Further, the processor including the storage unit is an MCU provided with a non-volatile memory. Correspondingly, the count value obtained by recovering the count of the module and the default setting information of the backup storage module for backup storage are all stored in the non-volatile memory of the MCU. in sexual memory.

本发明的突出优点在于,用户不需要接近摄像机机身,只需要进行多次的通断电源即可实现,而且利用现有的供电电路即可实现默认设置的恢复,因此不会增加摄像机本身的按键设置,实现了简单快速地恢复默认设置的目的;通过独立的MCU和发送默认设置信息前进行CPU的中断,能够保证两者业务既可以并行处理又互不干扰,也保证了摄像机正常业务的稳定性;MCU只有在发送默认设置信息时才与控制系统通信,在其他时间两者之间保持通信上的隔离,保证默认设置信息的稳定和安全;存储在与控制系统独立的MCU的非易失性存储器中,则由于两个存储设备相互独立,而且备份的部分即使失电也会保存,因此具有很好的稳定性,避免了默认设置信息的丢失,进一步提高了默认设置信息的稳定性。The outstanding advantage of the present invention is that the user does not need to be close to the camera body, and only needs to switch on and off the power supply several times, and the recovery of the default settings can be realized by using the existing power supply circuit, so the camera itself will not be increased. The button setting realizes the purpose of restoring the default settings simply and quickly; through the independent MCU and the interruption of the CPU before sending the default setting information, it can ensure that the two services can be processed in parallel without interfering with each other, and also ensure the normal operation of the camera. Stability; the MCU only communicates with the control system when sending the default setting information, and maintains communication isolation between the two at other times to ensure the stability and security of the default setting information; non-volatile data stored in the MCU independent of the control system In the volatile memory, because the two storage devices are independent of each other, and the backup part will be saved even if the power is lost, it has good stability, avoids the loss of the default setting information, and further improves the stability of the default setting information .

附图说明Description of drawings

图1为本发明一个实施例所采用的装置结构示意图;Fig. 1 is a schematic diagram of the device structure adopted in an embodiment of the present invention;

图2为当前实施例的工作流程图。Fig. 2 is a working flow chart of the current embodiment.

具体实施方式detailed description

为使本发明更加清楚明了,现结合附图和实施例对本发明加以详细的解释说明。In order to make the present invention more clear, the present invention will be explained in detail in conjunction with the accompanying drawings and embodiments.

图1为本发明一个实施例的示意图。在普通网络摄像机的硬件架构基础上,增加了本发明的默认设置恢复装置,当前实施例的装置集中在图1中MCU所示部分,MCU发起默认IP地址恢复操作的步骤也比较简单,不需要其他额外的工具,仅需进行简单的上下电操作。当前实施例中,以IP地址的恢复为例,MCU进行IP地址恢复操作如图2所示,包括如下步骤:Figure 1 is a schematic diagram of an embodiment of the present invention. On the basis of the hardware architecture of the common network camera, the default setting recovery device of the present invention is added. The device of the current embodiment is concentrated in the part shown in the MCU in Fig. For other additional tools, only a simple power on and off operation is required. In the current embodiment, taking the recovery of the IP address as an example, the MCU performs the IP address recovery operation as shown in Figure 2, including the following steps:

步骤一,备份存储模块将摄像机控制系统所保存的默认设置信息进行备份存储。Step 1, the backup storage module backs up and stores the default setting information saved by the camera control system.

当前实施例,摄像机为IPC,摄像机的默认设置信息为IPC的IP地址,摄像机的控制系统用CPU表示,摄像机用于配置的默认设置信息同时存储于连接到CPU的FLASH和MCU内置的EEPROM中,用户永远无法改变MCU内置EEPROM中的默认设置信息。MCU可通过I2C或其他总线与摄像机主CPU进行通信。正常状态下,MCU与CPU间不进行交互。当前实施例中,非易失性存储器为MCU单片机内置的EEPROM,其他实现方式里,也可以是其他的连接到MCU的非易失性存储器,例如连接到MCU的FLASH,且该FLASH只在需要发送默认设置信息到控制系统时,才与CPU通信。In the current embodiment, the camera is an IPC, and the default setting information of the camera is the IP address of the IPC. The control system of the camera is represented by a CPU, and the default setting information of the camera is stored in the FLASH connected to the CPU and the built-in EEPROM of the MCU at the same time. Users can never change the default setting information in the MCU built-in EEPROM. The MCU can communicate with the main CPU of the camera through I2C or other buses. Under normal conditions, there is no interaction between the MCU and the CPU. In the current embodiment, the non-volatile memory is the EEPROM built into the MCU microcontroller. In other implementations, it can also be other non-volatile memories connected to the MCU, such as the FLASH connected to the MCU, and the FLASH is only used when needed. Communication with the CPU occurs when sending default setting information to the control system.

步骤二,离线时间判断模块在摄像机上电后,判断摄像机的控制系统离线时间是否超过预设的离线时间阈值,当判断为是时,进入步骤三,否则摄像机进行正常上电。Step 2: After the camera is powered on, the offline time judging module judges whether the offline time of the camera's control system exceeds the preset offline time threshold. If it is judged to be yes, go to step 3;

当默认设置丢失时,摄像机的控制系统表现为长期离线状态,因此通过设置离线时间阈值,判断是否控制系统长期离线,在判断为是的情况下再进行通电持续时间的检测。这种方式考虑到了电源接在下方,用户有可能会有一些连续插拔的动作(例如更换电源、进行试电等等)的情况,为了防止这些动作与真正的默认设置恢复混淆,因此对控制系统进行离线时间的检测,只有控制系统离线较久的情况下,才认为默认设置已经失去了,在这种情况下才进行持续通电时间的检测。从而避免误触发默认设置的恢复。When the default setting is lost, the control system of the camera is offline for a long time. Therefore, by setting the offline time threshold, it is judged whether the control system is offline for a long time. If it is judged to be yes, the power-on duration is detected. This method takes into account that the power supply is connected to the bottom, and the user may have some continuous plugging and unplugging actions (such as replacing the power supply, performing a power test, etc.). In order to prevent these actions from being confused with the real default setting restoration, the control The system detects the off-line time. Only when the control system is offline for a long time, it considers that the default setting has been lost. In this case, the continuous power-on time is detected. This avoids triggering the restoration of default settings by mistake.

为防止电网波动造成的误触发动作,在通电持续时间上必须做一定的限制,这样才能保证操作的可靠性。对于摄像机的通电持续时间进行检测,且对非正常的通电持续时间进行计数,且计数值存入MCU中的EEPROM中,在断电后继续保存。In order to prevent false trigger actions caused by power grid fluctuations, certain restrictions must be made on the power-on duration, so as to ensure the reliability of operation. Detect the power-on duration of the camera, and count the abnormal power-on duration, and store the count value in the EEPROM in the MCU, and continue to save after power-off.

步骤三,上电判断模块判断摄像机的通电持续时间是否达到预设的上电阈值,如果为否,则当前这一次上电不计入计数值且保留原有的计数值。Step 3, the power-on judging module judges whether the power-on duration of the camera reaches the preset power-on threshold, if not, the current power-on is not included in the count value and the original count value is retained.

设置上电阈值,当前实施例中设为10秒,则小于10秒的上电可以当作干扰忽略。排除了一些非人为操作的干扰。在这种情况下,原有的计数值仍然保存在MCU的非易失性存储器中,且计数值不会发生改变。Set the power-on threshold, which is set to 10 seconds in the current embodiment, then power-on less than 10 seconds can be regarded as interference and ignored. The interference of some non-human operations is excluded. In this case, the original count value is still stored in the non-volatile memory of the MCU, and the count value will not change.

步骤四,恢复模块在摄像机上电后检测摄像机的通电持续时间,并对通电持续时间低于预设的正常通电阈值的通电次数进行计数:当通电持续时间达到正常通电阈值时,清零计数并在下一次通电持续时间低于正常通电阈值时重新开始计数;当计数达到设定的次数阈值时将备份存储的默认设置信息用于摄像机默认设置的恢复。Step 4: After the camera is powered on, the recovery module detects the power-on duration of the camera, and counts the number of times the power-on duration is lower than the preset normal power-on threshold: when the power-on duration reaches the normal power-on threshold, the count is reset and When the next power-on duration is lower than the normal power-on threshold, the counting will be restarted; when the count reaches the set threshold, the default setting information of the backup storage will be used to restore the default setting of the camera.

在检测到摄像机通电持续时间大于上电阈值后还要判断是否通电持续时间大于正常通电阈值(当前实施例正常通电阈值为20秒),如果大于20秒则认为是设备正常上电。同时在上下电次数上做严格要求,避免误触发,例如当前实施例要求上下电次数不小于N次,N通常不小于5。当计数超过设定阈值时,将MCU中存储的默认设置信息通过CPU发送到FLASH中。After detecting that the power-on duration of the camera is greater than the power-on threshold, it will be judged whether the power-on duration is greater than the normal power-on threshold (the normal power-on threshold of the current embodiment is 20 seconds), and if it is greater than 20 seconds, it is considered that the device is powered on normally. At the same time, there are strict requirements on the number of times of power on and off to avoid false triggering. For example, the current embodiment requires that the number of times of power on and off is not less than N times, and N is usually not less than 5. When the count exceeds the set threshold, the default setting information stored in the MCU is sent to the FLASH through the CPU.

每次上电时间都介于10秒和20秒之间,且上下电次数大于5次时,在最后一次上电时,MCU就可触发默认IP地址恢复操作,通知CPU进行相关操作。Each power-on time is between 10 seconds and 20 seconds, and when the power-on and power-off times are greater than 5 times, at the last power-on, the MCU can trigger the default IP address recovery operation and notify the CPU to perform related operations.

恢复模块的核心器件只有一个低功耗单片机MCU,MCU与摄像机的主系统CPU间通常情况下不进行通信,但CPU与MCU由同一电源供电。The core device of the recovery module is only a low-power single-chip microcomputer MCU. Usually, there is no communication between the MCU and the main system CPU of the camera, but the CPU and the MCU are powered by the same power supply.

当前实施例中,MCU负责摄像机上电状态的实时检测与记录功能,主要通过MCU内部的定时器来实现,并把检测结果实时写入单片机内部的EEPROM或其他非易失性存储器中。In the current embodiment, the MCU is responsible for the real-time detection and recording of the power-on state of the camera, which is mainly realized by the timer inside the MCU, and writes the detection results into the EEPROM or other non-volatile memory inside the single-chip microcomputer in real time.

以IP地址举例,当摄像机FLASH中的IP地址因为不明原因丢失了,需要恢复默认IP地址时,MCU可以把内部保存的默认IP地址通过I2C总线发给CPU,再写入到FLASH中,这样网络摄像机又可以通过默认IP地址进行正常访问了。备份存储模块将默认设置信息备份存储于MCU中,用于备份存储的MCU在计数达到设定的次数阈值时先向摄像机的控制系统发送中断信号,在摄像机的控制系统返回中断成功的消息后再发送默认设置信息到摄像机的控制系统以恢复默认设置。Taking the IP address as an example, when the IP address in the camera’s FLASH is lost due to unknown reasons and the default IP address needs to be restored, the MCU can send the internally stored default IP address to the CPU through the I2C bus, and then write it into the FLASH, so that the network The camera can be accessed normally through the default IP address again. The backup storage module backs up and stores the default setting information in the MCU. The MCU used for backup storage sends an interrupt signal to the camera control system when the count reaches the set number of times threshold. After the camera control system returns a successful interrupt message, Send a default setting message to the camera's control system to restore the default settings.

通过独立于摄像机主系统的MCU检测系统,可以实现精确的上下电计时与计数功能。通过上述的控制逻辑,可以通过简单的上下电,实现恢复网络摄像机默认IP地址的功能,同时能消除电网波动带来的误操作。加入CPU是否处于长期离线状态的判断,也是为了进一步消除误操作。Through the MCU detection system independent of the main camera system, accurate power-on and power-on timing and counting functions can be realized. Through the above control logic, the function of restoring the default IP address of the network camera can be realized by simply powering on and off, and at the same time, it can eliminate the misoperation caused by the fluctuation of the power grid. Adding the judgment of whether the CPU is in a long-term offline state is also to further eliminate misuse.

完成恢复默认IP地址操作后,可利用IPC现有的红外灯闪烁几次,告知用户已成功恢复默认IP,也可现场用笔记本电脑进行连线确认。After the operation of restoring the default IP address is completed, the existing infrared light of the IPC can be used to flash several times to inform the user that the default IP has been successfully restored, and a laptop can also be used to confirm the connection on site.

当前实施例中,MCU与网络摄像机主CPU采用同一套电源供电,同时MCU独立工作,不会影响摄像机的正常工作。在其他的实现方式里,可以不需要MCU,直接利用摄像机原有的CPU也可完成默认设置的检测操作,但实际上,CPU工作时的业务非常复杂,内部的进程非常多,用CPU来进行上下电检测具有较大的不确定性,很容易与CPU内部其他业务形成冲突,所以较佳而言用一颗额外的独立MCU来实现上述功能。MCU只有在发送默认设置信息时才与控制系统通信,在其他时间两者之间保持通信上的隔离,这就保证了用户无法访问到MCU上的默认设置信息,进而无法进行篡改,从而保证默认设置信息的稳定和安全。In the current embodiment, the MCU and the main CPU of the network camera are powered by the same set of power supply, and the MCU works independently, which will not affect the normal operation of the camera. In other implementation methods, the original CPU of the camera can be directly used to complete the detection operation of the default setting without the MCU, but in fact, the business when the CPU is working is very complicated, and there are many internal processes. Power-on and power-off detection has great uncertainty, and it is easy to conflict with other services inside the CPU. Therefore, it is better to use an additional independent MCU to realize the above functions. The MCU communicates with the control system only when sending the default setting information, and keeps communication isolation between the two at other times, which ensures that the user cannot access the default setting information on the MCU, and thus cannot tamper with it, thus ensuring the default Set the stability and security of information.

本发明的突出优点在于,用户不需要接近摄像机机身,只需要进行多次的通断电源即可实现,而且利用现有的供电电路即可实现默认设置的恢复,因此不会增加摄像机本身的按键设置,实现了简单快速地恢复默认设置的目的;通过独立的MCU和发送默认设置信息前进行CPU的中断,能够保证两者业务既可以并行处理又互不干扰,也保证了摄像机正常业务的稳定性;MCU只有在发送默认设置信息时才与控制系统通信,在其他时间两者之间保持通信上的隔离,保证默认设置信息的稳定和安全;存储在与控制系统独立的MCU的非易失性存储器中,则由于两个存储设备相互独立,而且备份的部分即使失电也会保存,因此具有很好的稳定性,避免了默认设置信息的丢失,进一步提高了默认设置信息的稳定性。The outstanding advantage of the present invention is that the user does not need to be close to the camera body, and only needs to switch on and off the power supply several times, and the recovery of the default settings can be realized by using the existing power supply circuit, so the camera itself will not be increased. The button setting realizes the purpose of restoring the default settings simply and quickly; through the independent MCU and the interruption of the CPU before sending the default setting information, it can ensure that the two services can be processed in parallel without interfering with each other, and also ensure the normal operation of the camera. Stability; the MCU only communicates with the control system when sending the default setting information, and maintains communication isolation between the two at other times to ensure the stability and security of the default setting information; non-volatile data stored in the MCU independent of the control system In the volatile memory, because the two storage devices are independent of each other, and the backup part will be saved even if the power is lost, it has good stability, avoids the loss of the default setting information, and further improves the stability of the default setting information .

Claims (10)

Translated fromChinese
1.一种摄像机默认设置的恢复方法,包括将摄像机控制系统所保存的默认设置信息进行备份存储,其特征在于,包括:1. A method for recovering the default settings of a camera, comprising backing up and storing the default setting information saved by the camera control system, characterized in that, comprising:在摄像机上电后检测摄像机的通电持续时间,对通电持续时间低于预设的正常通电阈值的通电次数进行计数,并在摄像机断电后继续保留计数值:当单次通电持续时间达到正常通电阈值时,清零计数并在下一次通电持续时间低于正常通电阈值时重新开始计数;当计数达到设定的次数阈值时将备份存储的默认设置信息用于摄像机默认设置的恢复。Detect the power-on duration of the camera after the camera is powered on, count the number of times the power-on duration is lower than the preset normal power-on threshold, and keep the count value after the camera is powered off: when the single power-on duration reaches the normal power-on When the threshold is reached, the count is cleared and restarted when the next power-on duration is lower than the normal power-on threshold; when the count reaches the set threshold, the default setting information of the backup storage is used to restore the default setting of the camera.2.如权利要求1所述摄像机默认设置的恢复方法,其特征在于,还包括判断摄像机的通电持续时间是否达到预设的上电阈值,如果为否,则不计入计数值且保留原有的计数值,其中上电阈值小于正常通电阈值。2. The method for recovering the default settings of the camera according to claim 1, further comprising judging whether the power-on duration of the camera reaches a preset power-on threshold, if not, not counting the count value and retaining the original The count value of where the power-on threshold is less than the normal power-on threshold.3.如权利要求1所述摄像机默认设置的恢复方法,其特征在于,还包括在摄像机上电后,先判断摄像机的控制系统离线时间是否超过预设的离线时间阈值,在判断为是的情况下再进行摄像机通电持续时间的所述检测。3. The method for restoring the default settings of the camera according to claim 1, further comprising, after the camera is powered on, first judging whether the offline time of the camera's control system exceeds the preset offline time threshold, and if it is judged to be yes Next, the detection of the power-on duration of the camera is performed.4.如权利要求1所述摄像机默认设置的恢复方法,其特征在于,默认设置信息备份存储于包含存储单元的处理器中,用于备份存储的处理器在计数达到设定的次数阈值时先向摄像机的控制系统发送中断信号,在摄像机的控制系统返回中断成功的消息后再发送默认设置信息到摄像机的控制系统以恢复默认设置,其中处理器只有在发送默认设置信息时才与摄像机的控制系统进行通信。4. The recovery method of camera default setting as claimed in claim 1, is characterized in that, default setting information is backed up and stored in the processor that comprises storage unit, and the processor that is used for backing up storage is first when counting reaches the number of times threshold value that is set. Send an interrupt signal to the camera's control system, and then send the default setting information to the camera's control system to restore the default setting after the camera's control system returns a successful interrupt message, and the processor only communicates with the camera's control system when sending the default setting information system to communicate.5.如权利要求所述4摄像机默认设置的恢复方法,其特征在于,包含存储单元的处理器为设有非易失性存储器的MCU,对应地,计数得到的计数值以及备份存储的默认设置信息均存储在MCU的非易失性存储器中。5. The recovery method of 4 camera default settings as claimed in claim 4, wherein the processor comprising the storage unit is an MCU provided with a non-volatile memory, and correspondingly, the count value obtained by counting and the default setting of the backup storage Information is stored in the MCU's non-volatile memory.6.一种摄像机默认设置的恢复装置,包括备份存储模块,将摄像机控制系统所保存的默认设置信息进行备份存储,其特征在于,包括:6. A recovery device for camera default settings, comprising a backup storage module for backing up and storing the default setting information saved by the camera control system, characterized in that it includes:恢复模块,在摄像机上电后检测摄像机的通电持续时间,对通电持续时间低于预设的正常通电阈值的通电次数进行计数,并在摄像机断电后继续保留计数值:当单次通电持续时间达到正常通电阈值时,清零计数并在下一次通电持续时间低于正常通电阈值时重新开始计数;当计数达到设定的次数阈值时将备份存储的默认设置信息用于摄像机默认设置的恢复。The recovery module detects the power-on duration of the camera after the camera is powered on, counts the number of power-on times for which the power-on duration is lower than the preset normal power-on threshold, and continues to retain the count value after the camera is powered off: when the single power-on duration When the normal power-on threshold is reached, the count is cleared and restarted when the next power-on duration is lower than the normal power-on threshold; when the count reaches the set threshold, the default setting information of the backup storage is used to restore the default setting of the camera.7.如权利要求6所述摄像机默认设置的恢复装置,其特征在于,还包括上电判断模块,判断摄像机的通电持续时间是否达到预设的上电阈值,如果为否,则不计入计数值且保留原有的计数值,其中上电阈值小于正常通电阈值。7. The device for recovering default settings of the camera according to claim 6, further comprising a power-on judging module for judging whether the power-on duration of the camera reaches a preset power-on threshold, if not, it is not included in the count value and retain the original count value, where the power-on threshold is less than the normal power-on threshold.8.如权利要求6所述摄像机默认设置的恢复装置,其特征在于,还包括离线时间判断模块,在摄像机上电后,先判断摄像机的控制系统离线时间是否超过预设的离线时间阈值,在判断为是的情况下再进行摄像机通电持续时间的所述检测。8. The device for recovering the default settings of the camera according to claim 6, further comprising an offline time judging module, after the camera is powered on, it first judges whether the offline time of the camera control system exceeds the preset offline time threshold, and then If it is judged to be yes, then the detection of the power-on duration of the camera is performed.9.如权利要求6所述摄像机默认设置的恢复装置,其特征在于,备份存储模块将默认设置信息备份存储于包含存储单元的处理器中,用于备份存储的处理器在计数达到设定的次数阈值时先向摄像机的控制系统发送中断信号,在摄像机的控制系统返回中断成功的消息后再发送默认设置信息到摄像机的控制系统以恢复默认设置,其中处理器只有在发送默认设置信息时才与摄像机的控制系统进行通信。9. The recovery device of camera default setting as claimed in claim 6, wherein the backup storage module stores the default setting information backup in the processor comprising the storage unit, and the processor used for backup storage reaches the set value when the count reaches the set value. When the times threshold is reached, an interrupt signal is first sent to the camera control system, and then the default setting information is sent to the camera control system to restore the default setting after the camera control system returns a successful interrupt message. Communicate with the camera's control system.10.如权利要求9所述摄像机默认设置的恢复装置,其特征在于,包含存储单元的处理器为设有非易失性存储器的MCU,对应地,恢复模块计数得到的计数值以及备份存储模块进行备份存储的默认设置信息均存储在MCU的非易失性存储器中。10. The recovery device of camera default settings as claimed in claim 9, wherein the processor comprising the storage unit is an MCU provided with a non-volatile memory, and correspondingly, the count value obtained by the recovery module and the backup storage module The default setting information for backup storage is stored in the non-volatile memory of the MCU.
CN201610160901.6A2016-03-212016-03-21Restoring method and device for default setting of video cameraPendingCN105657232A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201610160901.6ACN105657232A (en)2016-03-212016-03-21Restoring method and device for default setting of video camera

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201610160901.6ACN105657232A (en)2016-03-212016-03-21Restoring method and device for default setting of video camera

Publications (1)

Publication NumberPublication Date
CN105657232Atrue CN105657232A (en)2016-06-08

Family

ID=56494002

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201610160901.6APendingCN105657232A (en)2016-03-212016-03-21Restoring method and device for default setting of video camera

Country Status (1)

CountryLink
CN (1)CN105657232A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN106500451A (en)*2016-10-212017-03-15合肥美的电冰箱有限公司Household electrical appliance powering detection method and supply electric detection means
CN107071250A (en)*2017-04-172017-08-18浙江宇视科技有限公司Repositioning method and system
CN111757091A (en)*2019-03-272020-10-09浙江宇视科技有限公司 A method and device for equipment maintenance through a hardware interface

Citations (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US20040034872A1 (en)*2002-08-162004-02-19Peter HuygeMethod for triggering an event in an electronic device, and corresponding device
CN101605387A (en)*2009-07-132009-12-16中兴通讯股份有限公司A kind of power supply control apparatus and method
CN102739477A (en)*2011-04-152012-10-17启碁科技股份有限公司 Method and device for restoring factory default values and computer program product
CN103092724A (en)*2012-12-192013-05-08宁波三星电气股份有限公司System self-recovery method for embedded electric power terminal
CN104268033A (en)*2014-09-222015-01-07北京数字天域科技股份有限公司Storage method of terminal data, and method and device for restoring default settings of terminal
CN104375873A (en)*2014-12-132015-02-25李凯Method and system for administrating authority by power supply states

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US20040034872A1 (en)*2002-08-162004-02-19Peter HuygeMethod for triggering an event in an electronic device, and corresponding device
CN101605387A (en)*2009-07-132009-12-16中兴通讯股份有限公司A kind of power supply control apparatus and method
CN102739477A (en)*2011-04-152012-10-17启碁科技股份有限公司 Method and device for restoring factory default values and computer program product
CN103092724A (en)*2012-12-192013-05-08宁波三星电气股份有限公司System self-recovery method for embedded electric power terminal
CN104268033A (en)*2014-09-222015-01-07北京数字天域科技股份有限公司Storage method of terminal data, and method and device for restoring default settings of terminal
CN104375873A (en)*2014-12-132015-02-25李凯Method and system for administrating authority by power supply states

Cited By (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN106500451A (en)*2016-10-212017-03-15合肥美的电冰箱有限公司Household electrical appliance powering detection method and supply electric detection means
CN106500451B (en)*2016-10-212019-04-02合肥美的电冰箱有限公司Household electrical appliance powering detection method and for electric detection means
CN107071250A (en)*2017-04-172017-08-18浙江宇视科技有限公司Repositioning method and system
CN107071250B (en)*2017-04-172019-12-13浙江宇视科技有限公司 Reset method and system
CN111757091A (en)*2019-03-272020-10-09浙江宇视科技有限公司 A method and device for equipment maintenance through a hardware interface
CN111757091B (en)*2019-03-272022-05-13浙江宇视科技有限公司Method and device for maintaining equipment through hardware interface

Similar Documents

PublicationPublication DateTitle
CN100419699C (en)Method and device remotely automatic recovering CMOS date with network
CN104461947B (en)A kind of power-off protection method and solid state hard disk
CN110908841B (en)I2C communication abnormity recovery method and device
US8874886B2 (en)Executing soft reset for intelligent terminal in abnormal instruction state and hard reset for intelligent terminal in dead halt state
US8924785B2 (en)Power shutdown prediction for non-volatile storage devices
EP2824895B1 (en)Information backup method and apparatus, mobile terminal
CN106557145A (en)Power-off protection system and method thereof
CN104734979A (en)Control method for storage device externally connected with router
CN117055822B (en)NVME SSD Raid card board power-carrying system and control method
CN113434915B (en) Chassis intrusion status detection device and method, and edge server
CN105657232A (en)Restoring method and device for default setting of video camera
CN114218037A (en)Hard disk management method, device, equipment and machine readable storage medium
CN103246591B (en) Method and device for signal processing
CN103778024A (en)Server system and message processing method thereof
CN107037868A (en)A kind of cold standby TURP based on storage system changes system and method
CN102810072B (en)Computer system and restarting method thereof
CN111147615A (en)Method and system for taking over IP address, computer readable storage medium and server
CN101303655B (en) Basic input output system management device and method
CN114880187A (en)Method, device and medium for monitoring abnormal state of VR chip
US20140115378A1 (en)System and method for restoring network configuration parameters
US20240394161A1 (en)Method for testing stability and electronic device
CN112214094B (en) A method and device for coping with power jitter of a hard disk
CN114627942B (en) eMMC data protection method, device, eMMC package and storage medium
CN105764128A (en)Power supply control method and device of mobile terminal
US20110185161A1 (en)Electronic device and method for detecting operative states of components in the electronic device

Legal Events

DateCodeTitleDescription
C06Publication
PB01Publication
C10Entry into substantive examination
SE01Entry into force of request for substantive examination
RJ01Rejection of invention patent application after publication
RJ01Rejection of invention patent application after publication

Application publication date:20160608


[8]ページ先頭

©2009-2025 Movatter.jp