CN112269692A - Remote upgrading power-off self-recovery mechanism for network camera - Google Patents

Remote upgrading power-off self-recovery mechanism for network camera Download PDF

Info

Publication number
CN112269692A
CN112269692A CN202011332234.8A CN202011332234A CN112269692A CN 112269692 A CN112269692 A CN 112269692A CN 202011332234 A CN202011332234 A CN 202011332234A CN 112269692 A CN112269692 A CN 112269692A
Authority
CN
China
Prior art keywords
equipment
upgrading
file
firmware
power failure
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
CN202011332234.8A
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.)
Hangzhou Shidong Technology Co ltd
Original Assignee
Hangzhou Shidong Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Shidong Technology Co ltd filed Critical Hangzhou Shidong Technology Co ltd
Priority to CN202011332234.8A priority Critical patent/CN112269692A/en
Publication of CN112269692A publication Critical patent/CN112269692A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1415Saving, restoring, recovering or retrying at system level
    • G06F11/1433Saving, restoring, recovering or retrying at system level during software upgrading
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1458Management of the backup or restore process
    • G06F11/1464Management of the backup or restore process for networked environments
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

Abstract

The invention discloses a remote upgrading power failure self-recovery mechanism of a network camera, which comprises the following steps of; s1, starting upgrading; s2, storing url of the remote server upgrading firmware; s3, downloading the new firmware to the memory and saving an upgrade flag file; s4, erasing and writing; s5, judging whether power failure occurs in the upgrading process; s6, erasing is completed; s7, deleting the upgrading mark file; s8, restarting the equipment; and S9, normal operation of the equipment. The invention can solve the abnormal conditions such as sudden power failure and the like in the remote upgrading process without adopting a ROM backup mechanism under the condition of limited ROM storage space, the network camera can automatically recover to work, the problem of crash in the remote upgrading process of the network camera can be reliably solved, the maintenance cost of hardware and personnel of embedded equipment is saved, and the user experience is improved.

Description

Remote upgrading power-off self-recovery mechanism for network camera
Technical Field
The invention relates to the technical field of remote upgrading of embedded equipment, in particular to a power-off self-recovery mechanism for remote upgrading of a network camera.
Background
In daily life, the network camera is visible everywhere and acts as a recorder of traffic violation; defenders playing campus and family protection; the invention aims to solve the problem that network camera equipment cannot work normally due to abnormal conditions such as sudden power failure and the like in the remote upgrading process of a network camera.
Disclosure of Invention
The invention aims to provide a power-off self-recovery mechanism for remote upgrade of a network camera, which aims to solve the problem that network camera equipment cannot work normally due to abnormal conditions such as sudden power-off and the like in the remote upgrade process of the network camera, which is provided in the background technology.
In order to achieve the purpose, the invention provides the following technical scheme: a network camera remote upgrading power failure self-recovery mechanism comprises the following steps; s1, starting upgrading; s2, storing url of the remote server upgrading firmware; s3, downloading the new firmware to the memory and saving an upgrade flag file; s4, erasing and writing; s5, judging whether power failure occurs in the upgrading process; s6, erasing is completed; s7, deleting the upgrading mark file; s8, restarting the equipment; and S9, normal operation of the equipment.
Preferably, before burning a new upgrade firmware into a ROM storage medium of the device, the device first saves a url file recording a download link of the remote upgrade firmware in the system partition.
Preferably, a new firmware program is downloaded to the RAM according to the url, and an upgraded mark file is recorded, wherein the mark file exists and is mainly used for detecting the completion degree of the burning work, and the mark file can be deleted after the burning work is completed; not completed, the file will be retained.
Preferably, the firmware burning operation is started, the firmware program in the RAM is burned into the ROM, if no abnormal condition occurs, the execution continues to S6, and when abnormal conditions such as power failure occur, the device is jumped to and powered on again.
Preferably, no abnormal condition occurs, and after the burning is finished, the equipment deletes the mark file and restarts the equipment.
Preferably, the device is powered on again when abnormal conditions such as power failure occur, the device detects the upgraded logo file, and if the file is detected, the process goes to S3; if the file is not detected, it indicates that the burning work is completed before the abnormal condition occurs, and the process continues to execute S9.
The invention has the beneficial effects that: the invention can solve the abnormal conditions such as sudden power failure and the like in the remote upgrading process without adopting a ROM backup mechanism under the condition of limited ROM storage space, the network camera can automatically recover to work, the problem of crash in the remote upgrading process of the network camera can be reliably solved, the maintenance cost of hardware and personnel of embedded equipment is saved, and the user experience is improved.
Drawings
FIG. 1 is a flow chart of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example 1, please refer to fig. 1, the present invention provides a technical solution: a network camera remote upgrading power failure self-recovery mechanism comprises the following steps;
firstly, before burning new upgrade firmware to a ROM storage medium of equipment, the equipment stores a url file for recording a download link of the remote upgrade firmware in a system partition;
step two, downloading a new firmware program to an RAM according to url, and simultaneously recording an upgraded mark file, wherein the mark file exists and is mainly used for detecting the completion degree of the burning work, and the mark file can be deleted after the burning work is completed; not completed, the file will be retained;
step three, starting firmware burning work, burning a firmware program in the RAM into the ROM, and if no abnormal condition occurs, continuing to execute the step four; jumping to the fifth step when abnormal conditions such as power failure occur;
step four, no abnormal condition occurs, after the burning is finished, the equipment deletes the mark file, the equipment is restarted, and the step six is skipped;
step five, when abnormal conditions such as power failure occur, the equipment is electrified again, the equipment can detect the upgraded mark file, and if the file is detected, the step two is skipped; if the file is not detected, before the abnormal condition is shown, the burning work is finished, and the step six is continuously executed;
and step six, successfully upgrading, and enabling the equipment to normally work.
During the remote upgrade of the network camera, the download link of the upgrade firmware of the remote server can be stored, when the abnormal phenomenon of power failure occurs, the network camera marks the abnormal emergency, when the network is electrified again, the abnormality of the original upgrade process can be detected, at the moment, a backup ROM storage mechanism is not needed, the network camera can request the remote server to continuously download the upgrade firmware, and after the download installation action is executed, the network camera can work normally again.
All the electrical components in the present application are connected with the power supply adapted to the electrical components through the wires, and an appropriate controller should be selected according to actual conditions to meet the control requirements, and specific connection and control sequences should be obtained.
Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that changes, modifications, substitutions and alterations can be made in these embodiments without departing from the principles and spirit of the invention, the scope of which is defined in the appended claims and their equivalents.

Claims (6)

1. A remote upgrading power failure self-recovery mechanism of a network camera is characterized in that: comprises the following steps;
s1, starting upgrading;
s2, storing url of the remote server upgrading firmware;
s3, downloading the new firmware to the memory and saving an upgrade flag file;
s4, erasing and writing;
s5, judging whether power failure occurs in the upgrading process;
s6, erasing is completed;
s7, deleting the upgrading mark file;
s8, restarting the equipment;
and S9, normal operation of the equipment.
2. The mechanism of claim 1, wherein the mechanism comprises: before burning new upgrade firmware into a ROM storage medium of the equipment, the equipment stores a url file recording a download link of the remote upgrade firmware in a system partition.
3. The mechanism of claim 1, wherein the mechanism comprises: downloading a new firmware program to an RAM (random access memory) according to url (url), and recording an upgraded mark file, wherein the mark file exists and is mainly used for detecting the completion degree of the burning work, and the mark file can be deleted when the burning work is completed; not completed, the file will be retained.
4. The mechanism of claim 1, wherein the mechanism comprises: and starting firmware burning work, burning a firmware program in the RAM into the ROM, if no abnormal condition occurs, continuing to execute S6, and jumping to the equipment to be electrified again when abnormal conditions such as power failure occur.
5. The mechanism of claim 1, wherein the mechanism comprises: and if no abnormal condition occurs, after the burning is finished, the equipment deletes the mark file and restarts the equipment.
6. The mechanism of claim 1, wherein the mechanism comprises: when abnormal conditions such as power failure occur, the equipment is electrified again, the equipment can detect the upgraded mark file, and if the file is detected, the operation goes to S3; if the file is not detected, it indicates that the burning work is completed before the abnormal condition occurs, and the process continues to execute S9.
CN202011332234.8A 2020-11-25 2020-11-25 Remote upgrading power-off self-recovery mechanism for network camera Pending CN112269692A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011332234.8A CN112269692A (en) 2020-11-25 2020-11-25 Remote upgrading power-off self-recovery mechanism for network camera

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011332234.8A CN112269692A (en) 2020-11-25 2020-11-25 Remote upgrading power-off self-recovery mechanism for network camera

Publications (1)

Publication Number Publication Date
CN112269692A true CN112269692A (en) 2021-01-26

Family

ID=74339189

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011332234.8A Pending CN112269692A (en) 2020-11-25 2020-11-25 Remote upgrading power-off self-recovery mechanism for network camera

Country Status (1)

Country Link
CN (1) CN112269692A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112988201A (en) * 2021-04-27 2021-06-18 上海飞斯信息科技有限公司 Program updating method and device and electronic equipment
CN113626059A (en) * 2021-10-13 2021-11-09 北京创米智汇物联科技有限公司 System upgrade method, camera and computer readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103347095A (en) * 2013-07-22 2013-10-09 广州市交通信息中心 Wireless firmware updating method used in vehicle networking system
CN103761122A (en) * 2013-12-31 2014-04-30 青岛歌尔声学科技有限公司 Chip firmware updating method and system
CN104090802A (en) * 2014-07-14 2014-10-08 深圳市欧林克科技有限公司 Protection method for network camera power failure
US20140325496A1 (en) * 2013-04-26 2014-10-30 Core Logic Inc. Apparatus and method for firmware upgrade using usb
CN108958767A (en) * 2018-06-21 2018-12-07 厦门亿联网络技术股份有限公司 A kind of safe mode automatically updating method realized based on minimum system backup

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140325496A1 (en) * 2013-04-26 2014-10-30 Core Logic Inc. Apparatus and method for firmware upgrade using usb
CN103347095A (en) * 2013-07-22 2013-10-09 广州市交通信息中心 Wireless firmware updating method used in vehicle networking system
CN103761122A (en) * 2013-12-31 2014-04-30 青岛歌尔声学科技有限公司 Chip firmware updating method and system
CN104090802A (en) * 2014-07-14 2014-10-08 深圳市欧林克科技有限公司 Protection method for network camera power failure
CN108958767A (en) * 2018-06-21 2018-12-07 厦门亿联网络技术股份有限公司 A kind of safe mode automatically updating method realized based on minimum system backup

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
李朝青: "《PC机与单片机&DSP数据通信技术选编 3》", vol. 1, 31 March 2004, 北京航空航天大学出版社, pages: 795 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112988201A (en) * 2021-04-27 2021-06-18 上海飞斯信息科技有限公司 Program updating method and device and electronic equipment
CN113626059A (en) * 2021-10-13 2021-11-09 北京创米智汇物联科技有限公司 System upgrade method, camera and computer readable storage medium
CN113626059B (en) * 2021-10-13 2022-02-08 北京创米智汇物联科技有限公司 System upgrade method, camera and computer readable storage medium

Similar Documents

Publication Publication Date Title
CN101221508B (en) Equipment starting method and device
CN105930236A (en) Application program version returning method based on BMS Bootloaderupgrade
CN112269692A (en) Remote upgrading power-off self-recovery mechanism for network camera
CN102243594A (en) Method for safely and remotely upgrading embedded Linux system software
CN103488498A (en) Computer booting method and computer
JP2014130585A (en) Firmware upgrade error detection and automatic rollback
CN102360298A (en) Software upgrading method of terminal equipment
CN103902399B (en) Software system repair processing method and software system repair processing device
CN104636217A (en) Root file system automatic backup and exception recovery method and partition structure
CN107918568B (en) Method for preventing Linux system from failing to restart
CN110445638B (en) Switch system fault protection method and device
CN103984585A (en) Method for upgrading Linux kernel in running process of kernel module capable of being plugged in thermal mode
CN111917576B (en) Storage cluster control method and device, computer readable storage medium and processor
CN113032183A (en) System management method, device, computer equipment and storage medium
CN116382753A (en) High-reliability remote upgrading method for equipment firmware based on network
CN110597532A (en) Data acquisition module, firmware upgrading method thereof and storage medium
CN109104314B (en) Method and device for modifying log configuration file
CN113568768B (en) Energy controller container state monitoring method
CN102541585A (en) Remote upgrade method and embedded system
CN111611000B (en) High-reliability firmware air upgrading method and system
CN114546455A (en) MCU software upgrading method and device for double partitions
CN102999365B (en) A kind of fetal monitor software network security upgrading method and system
CN112783535A (en) Firmware upgrading method, embedded device and storage medium
CN100455091C (en) Method for remote maintaining base station
CN111475339A (en) BIOS firmware updating method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination