CN106020884A - Network camera system online update method - Google Patents
Network camera system online update method Download PDFInfo
- Publication number
- CN106020884A CN106020884A CN201610341101.4A CN201610341101A CN106020884A CN 106020884 A CN106020884 A CN 106020884A CN 201610341101 A CN201610341101 A CN 201610341101A CN 106020884 A CN106020884 A CN 106020884A
- Authority
- CN
- China
- Prior art keywords
- upgrading
- web camera
- version
- kernel
- update
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
The invention provides a network camera system online update method. Five subareas are employed. The subareas comprise a Boot subarea, a kernel subarea, a Ramdisk Rootfs subarea, a Ubifs App subarea and a Ubifs Config subarea. Moreover, a whole update process is divided into three parts. A first part comprises signal interaction. A second part comprises mirror downloading and application replacement. The second part can be divided into kernel update, file system update and application update. A third part comprises device reboot and update edition confirmation. According to the method, the waste of hardware storage resources resulting from a network camera update mechanism is reduced; the hardware cost is reduced; the problem that a system cannot be booted due to accidental power failure in an online update process of a network camera device can be solved. The interaction in the network camera update process is increased. The update progress is accurately tracked.
Description
Technical field
The invention belongs to web camera technical field, be specifically related to a kind of internet protocol camera system online upgrading method.
Background technology
Along with developing rapidly of network, digital security monitoring development is advanced by leaps and bounds, and increasing web camera starts to replace
Change traditional analog video camera and become the main flow of safety monitoring.Web camera can be installed to the whole world Anywhere, passes through
The long-range preview of monitoring software, the multiformity of the demand that extensively introduces of use, the remote maintenance upgrading of video camera also seems to pass
Important.
Industry Normal practice is employing system double copies mechanism at present, and system partitioning is illustrated such as Fig. 1.System uses four points
District, is boot partition Boot respectively, kernel subregion kernel, and host file system subregion A uses Ubifs form,
Backup file partition B uses Ubifs form.
Fig. 2 is upgrading tool and the internal interaction diagrams of video camera in escalation process.Whole escalation process is divided into two parts,
Part I signals, Part II image download and self renewal.Upgrading Fig. 3 describes firmware and downloads in video camera
Portion, video camera self renewal schematic diagram.
Detailed process is shown in Fig. 4, it is described as follows:
The first step: upgrading tool builds WEB server, creates Client simultaneously.
Second step: web camera starts upgrading, and the Client of upgrading tool actively connects the liter within web camera
Level service Server.
3rd step: after upgrading tool Client connects the upgrading Server success within web camera, send network and take the photograph
Camera upgrade command.
4th step: after the upgrading Server within web camera receives upgrade command, web camera enables automatically
Wget downloads firmware updating.
5th step: the firmware of web camera has been downloaded, the firmware size that verification is downloaded is the most correct.
6th step: firmware updating inspection OK, web camera upgrade service starts to automatically update replacement backup partition content.
7th step: web camera backup subregion has updated, carry backup subregion, will be current to internet protocol camera system
The configuration file of main system copies backup subregion to.
8th step: the configuration file of internet protocol camera system updates replacement to be completed, and revises system start-up subregion sign, by standby
Part subregion loads as main partition, by current main partition as backup subregion.
9th step: system start-up mark has updated, occurs to notify that client, device upgrade complete, system weighs automatically
Open.
Tenth step: web camera is restarted successfully, upgrading tool actively connects web camera, and detection version is the most successful.
But this way has following defects that the wasting of resources, whole file system backup, memory space money can be increased
Source.Such as: host file system size 60M, standby system is also required to the space resources of 60M, and only backs up subregion
For upgrading, it is not use this space under normal operation, greatly adds hardware cost.
Escalation process cannot be avoided to interrupt conductance cause to upgrade unsuccessfully, the serious system that causes cannot start.Whole escalation process
It is divided into three phases, updates backup zone time T1, more new configuration file time T2, revise active flag time T3.
Occurring that accident power-off can cause upgrading unsuccessfully in T1 and the T2 stage, after power-off, system can be again started up, if at T3
Stage occurs that accident power-off, situation there will be severe system and cannot start.Power-off occur in any stage, being all cannot
Avoid, all can cause upgrading unsuccessfully.This is also the critical defect of the program.
Escalation process does not have information mutual, it is impossible to be accurately positioned escalation process, especially after download firmware to video camera,
Operated by be all to complete inside video camera, externally do not have any alternately, it has not been convenient to track and localization upgrading progress.
Summary of the invention
It is an object of the invention to provide a kind of internet protocol camera system online upgrading method, reduce web camera upgrade mechanism
The hardware store wasting of resources caused, saves hardware cost.Solve accident during web cam device online upgrading
Power-off causes the system cannot starting problem.Increase web camera escalation process mutual, accurately follow the tracks of upgrading progress.
The invention provides following technical scheme:
A kind of internet protocol camera system online upgrading method, takes five subregions, is boot partition Boot respectively, and kernel divides
District kernel, root file system district Ramdisk Rootfs, application partition Ubifs App, and configuration file subregion
Ubifs Config;
Meanwhile, whole escalation process is divided into three parts, and Part I is Signalling exchange;Part II be image download and
Program is replaced, and this part can be divided into the upgrading of kernel upgrading, file system and application program updating;Part III is
Equipment is restarted and is confirmed with upgraded version.
Specifically include following steps:
S1, upgrading tool create Tcp Client, send upgrade information xml message to web camera, web camera
TCP Server receives this xml message;
The packet parsing that S2, web camera receive, the platform information of response upgrading tool equipment self and version information;
S3, upgrading tool are according to the platform information received and version information, and packing currently prepares the version information of upgrading,
Again web camera is issued;
S4, web camera resolve the version information that upgrading tool sends, it may be judged whether need upgrading, if the version of upgrading
This is newer than web camera version, returns firmware updating order, if the version of upgrading does not has radiography unit version new, stops
Upgrading;
S5, web camera receive instrument and the firmware information of coming occur, and start to update kernel, and renewal completes, and occur to rise
Level completion status;
S6, kernel upgrading complete, and start to download file system, and the state that sends is to upgrading tool;File system has been downloaded
Starting self renewal, the state that sends is to upgrading tool;
S7, repetition S6, download application program;Then self renewal;
After S8, kernel, file system, application program three part have updated, the state that sends, to upgrading tool, then sets
For starting to restart;
S9, web camera are restarted successfully, and upgrading tool actively connects web camera, and detection version is the most successful.
The invention has the beneficial effects as follows: save hardware resource, reduce product cost, add finished product competitiveness;Solve
Escalation process of having determined interrupt the equipment that causes cannot starting problem, facilitate product maintenance, saved what product up-gradation produced
Extra human cost resource;Escalation process implements mutual monitoring, facilitates operator to position upgrading progress, improves efficiency.
Accompanying drawing explanation
Accompanying drawing is for providing a further understanding of the present invention, and constitutes a part for description, with the enforcement of the present invention
Example is used for explaining the present invention together, is not intended that limitation of the present invention.In the accompanying drawings:
Fig. 1 is prior art systems subregion schematic diagram;
Fig. 2 is prior art upgrading flow process interaction figure;
Fig. 3 is that prior art firmware updates schematic diagram;
Fig. 4 is prior art implementing procedure figure;
Fig. 5 is present system subregion schematic diagram;
Fig. 6 is that the present invention upgrades flow process interaction figure;
Fig. 7 is that firmware of the present invention updates schematic diagram;
Fig. 8 is implementing procedure figure of the present invention.
Detailed description of the invention
As viewed in figures 5-8, what the present invention proposed is the method for a kind of internet protocol camera system upgrading, is in the industry cycle main flow side
On the basis of case, having redesigned system partitioning, new block plan is shown in Fig. 5.New departure amendment root file system zoned format,
It is revised as ramdisk form by ubifs, greatly reducing the size of root file system subregion, original 60M subtract
It is 6M less.Add application partition App partition size 42M and configuration file subregion config subregion 8M size,
Whole system needs resource 60M.
Table 1 present invention and prior art resource use contrast table
Fig. 6 is internal interaction figure in escalation process.Whole escalation process is divided into three parts, and Part I is Signalling exchange;
Part II is image download and program replacement, and this part can be divided into the upgrading of kernel upgrading, file system and application
Program is upgraded;Part III is that equipment is restarted and upgraded version confirmation.
Fig. 7 describes firmware and downloads to inside video camera, web camera self renewal schematic diagram.
Enforcement step:
S1, upgrading tool create Tcp Client, send upgrade information xml message to web camera, web camera
TCP Server receives this xml message;
The packet parsing that S2, web camera receive, the platform information of response upgrading tool equipment self and version information;
S3, upgrading tool are according to the platform information received and version information, and packing currently prepares the version information of upgrading,
Again web camera is issued;
S4, web camera resolve the version information that upgrading tool sends, it may be judged whether need upgrading, if the version of upgrading
This is newer than web camera version, returns firmware updating order, if the version of upgrading does not has radiography unit version new, stops
Upgrading;
S5, web camera receive instrument and the firmware information of coming occur, and start to update kernel, and renewal completes, and occur to rise
Level completion status;
S6, kernel upgrading complete, and start to download file system, and the state that sends is to upgrading tool;File system has been downloaded
Starting self renewal, the state that sends is to upgrading tool;
S7, repetition S6, download application program;Then self renewal;
After S8, kernel, file system, application program three part have updated, the state that sends, to upgrading tool, then sets
For starting to restart;
S9, web camera are restarted successfully, and upgrading tool actively connects web camera, and detection version is the most successful.
To sum up, present invention saves hardware resource, reduce product cost, add finished product competitiveness;Solve
Escalation process interrupt the equipment that causes cannot starting problem, facilitate product maintenance, saved by product up-gradation produce extra
Human cost resource;Escalation process implements mutual monitoring, facilitates operator to position upgrading progress, improves efficiency.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, although with reference to aforementioned enforcement
The present invention has been described in detail by example, and for a person skilled in the art, it still can be to aforementioned each enforcement
Technical scheme described in example is modified, or wherein portion of techniques feature is carried out equivalent.All the present invention's
Within spirit and principle, any modification, equivalent substitution and improvement etc. made, should be included in protection scope of the present invention
Within.
Claims (2)
1. an internet protocol camera system online upgrading method, it is characterised in that take five subregions, is to guide respectively
Subregion Boot, kernel subregion kernel, root file system district Ramdisk Rootfs, application partition Ubifs App,
And configuration file subregion Ubifs Config;
Meanwhile, whole escalation process is divided into three parts, and Part I is Signalling exchange;Part II be image download and
Program is replaced, and this part can be divided into the upgrading of kernel upgrading, file system and application program updating;Part III is
Equipment is restarted and is confirmed with upgraded version.
Internet protocol camera system online upgrading method the most according to claim 1, it is characterised in that specifically include
Following steps:
S1, upgrading tool create Tcp Client, send upgrade information xml message to web camera, web camera
TCP Server receives this xml message;
The packet parsing that S2, web camera receive, the platform information of response upgrading tool equipment self and version information;
S3, upgrading tool are according to the platform information received and version information, and packing currently prepares the version information of upgrading,
Again web camera is issued;
S4, web camera resolve the version information that upgrading tool sends, it may be judged whether need upgrading, if the version of upgrading
This is newer than web camera version, returns firmware updating order, if the version of upgrading does not has radiography unit version new, stops
Upgrading;
S5, web camera receive instrument and the firmware information of coming occur, and start to update kernel, and renewal completes, and occur to rise
Level completion status;
S6, kernel upgrading complete, and start to download file system, and the state that sends is to upgrading tool;File system has been downloaded
Starting self renewal, the state that sends is to upgrading tool;
S7, repetition S6, download application program;Then self renewal;
After S8, kernel, file system, application program three part have updated, the state that sends, to upgrading tool, then sets
For starting to restart;
S9, web camera are restarted successfully, and upgrading tool actively connects web camera, and detection version is the most successful.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610341101.4A CN106020884A (en) | 2016-05-20 | 2016-05-20 | Network camera system online update method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610341101.4A CN106020884A (en) | 2016-05-20 | 2016-05-20 | Network camera system online update method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106020884A true CN106020884A (en) | 2016-10-12 |
Family
ID=57095591
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610341101.4A Pending CN106020884A (en) | 2016-05-20 | 2016-05-20 | Network camera system online update method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106020884A (en) |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108419006A (en) * | 2017-12-13 | 2018-08-17 | 天津天地伟业机器人技术有限公司 | A kind of big packet upgrade method based on web camera |
CN108804034A (en) * | 2018-05-22 | 2018-11-13 | 无锡辰云科技股份有限公司 | A kind of cloud terminal processing method and system based on read and write abruption |
CN109347937A (en) * | 2018-10-09 | 2019-02-15 | 深圳市亿联智能有限公司 | A kind of intelligent remote upgrade method applied to video monitoring equipment |
CN109558160A (en) * | 2017-09-26 | 2019-04-02 | 阿里巴巴集团控股有限公司 | Upgrade method, embedded system |
CN110045971A (en) * | 2018-01-16 | 2019-07-23 | 浙江宇视科技有限公司 | System upgrade restoration methods and device |
CN110134426A (en) * | 2019-04-18 | 2019-08-16 | 深圳市致宸信息科技有限公司 | A kind of embedded system upgrade method, device and terminal device |
CN110798654A (en) * | 2018-08-01 | 2020-02-14 | 华为技术有限公司 | Method and system for defining camera by software and camera |
CN110990038A (en) * | 2019-11-29 | 2020-04-10 | 中化信息技术有限公司 | Method, apparatus, electronic device, and medium for applying local updates |
CN111093070A (en) * | 2019-09-30 | 2020-05-01 | 杭州视洞科技有限公司 | Automatic testing flow method for OTA (over the air) upgrading of camera firmware |
CN112214235A (en) * | 2020-10-23 | 2021-01-12 | Oppo广东移动通信有限公司 | Method and device for upgrading quick-charging firmware, mobile terminal and storage medium |
WO2023151372A1 (en) * | 2022-02-14 | 2023-08-17 | 西安广和通无线软件有限公司 | Module upgrade method and system |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102253850A (en) * | 2011-07-08 | 2011-11-23 | 烽火通信科技股份有限公司 | Incremental software updating method of internet protocol television (IPTV) set top box |
CN101841536B (en) * | 2010-04-01 | 2013-01-02 | 深圳英飞拓科技股份有限公司 | Remote automatic upgrading method for digital monitoring equipment |
CN105045718A (en) * | 2015-08-18 | 2015-11-11 | 上海斐讯数据通信技术有限公司 | Linux embedded system based debug system, method and modification method |
-
2016
- 2016-05-20 CN CN201610341101.4A patent/CN106020884A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101841536B (en) * | 2010-04-01 | 2013-01-02 | 深圳英飞拓科技股份有限公司 | Remote automatic upgrading method for digital monitoring equipment |
CN102253850A (en) * | 2011-07-08 | 2011-11-23 | 烽火通信科技股份有限公司 | Incremental software updating method of internet protocol television (IPTV) set top box |
CN105045718A (en) * | 2015-08-18 | 2015-11-11 | 上海斐讯数据通信技术有限公司 | Linux embedded system based debug system, method and modification method |
Cited By (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109558160A (en) * | 2017-09-26 | 2019-04-02 | 阿里巴巴集团控股有限公司 | Upgrade method, embedded system |
CN108419006A (en) * | 2017-12-13 | 2018-08-17 | 天津天地伟业机器人技术有限公司 | A kind of big packet upgrade method based on web camera |
CN110045971A (en) * | 2018-01-16 | 2019-07-23 | 浙江宇视科技有限公司 | System upgrade restoration methods and device |
CN108804034A (en) * | 2018-05-22 | 2018-11-13 | 无锡辰云科技股份有限公司 | A kind of cloud terminal processing method and system based on read and write abruption |
CN110798654A (en) * | 2018-08-01 | 2020-02-14 | 华为技术有限公司 | Method and system for defining camera by software and camera |
EP3809697A4 (en) * | 2018-08-01 | 2021-10-20 | Huawei Technologies Co., Ltd. | Method and system for defining camera by using software, and camera |
US11979686B2 (en) | 2018-08-01 | 2024-05-07 | Huawei Technologies Co., Ltd. | Method and system for software-defined camera and camera |
CN109347937A (en) * | 2018-10-09 | 2019-02-15 | 深圳市亿联智能有限公司 | A kind of intelligent remote upgrade method applied to video monitoring equipment |
CN109347937B (en) * | 2018-10-09 | 2021-08-27 | 深圳市亿联智能有限公司 | Intelligent remote upgrading method applied to video monitoring equipment |
CN110134426A (en) * | 2019-04-18 | 2019-08-16 | 深圳市致宸信息科技有限公司 | A kind of embedded system upgrade method, device and terminal device |
CN111093070A (en) * | 2019-09-30 | 2020-05-01 | 杭州视洞科技有限公司 | Automatic testing flow method for OTA (over the air) upgrading of camera firmware |
CN110990038A (en) * | 2019-11-29 | 2020-04-10 | 中化信息技术有限公司 | Method, apparatus, electronic device, and medium for applying local updates |
CN110990038B (en) * | 2019-11-29 | 2023-08-22 | 中化信息技术有限公司 | Method, apparatus, electronic device and medium for applying local update |
CN112214235A (en) * | 2020-10-23 | 2021-01-12 | Oppo广东移动通信有限公司 | Method and device for upgrading quick-charging firmware, mobile terminal and storage medium |
WO2023151372A1 (en) * | 2022-02-14 | 2023-08-17 | 西安广和通无线软件有限公司 | Module upgrade method and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106020884A (en) | Network camera system online update method | |
US9875133B2 (en) | Virtual machine disk image installation | |
EP2946293B1 (en) | Healing cloud services during upgrades | |
US11010157B2 (en) | Container based application reification | |
CN107193607B (en) | Method and apparatus for updating code file, storage medium, processor, and terminal | |
US9197499B2 (en) | Virtual server migration plan making method and system | |
CN113569987A (en) | Model training method and device | |
TWI533216B (en) | Operating system updating method | |
JP2001027940A (en) | Printing system and software update method in the same | |
US9268662B2 (en) | Method and system for a high availability framework | |
CN105260209A (en) | Hot-update solution of program | |
CN105204910A (en) | Script hot updating method and system | |
CN114637496A (en) | Configuration data processing system, method and electronic equipment | |
CN102164314B (en) | Data management method and device based on digital television terminal middleware | |
CN109766207A (en) | Restoration methods, device, monitoring device and the storage medium of firmware remote upgrade | |
EP2131279A1 (en) | System and method for a generic integration of a database into a high availability cluster | |
JP2007280415A (en) | Management device, version management system and program version management method | |
CN108270832B (en) | Fault replaying method and device | |
CN106708541A (en) | Version upgrading processing method and apparatus | |
CN108874405A (en) | A kind of OpenStack environment upgrade method | |
CN102323885B (en) | Dynamic configuration method of sensing network node operation system | |
CN115277398A (en) | Cluster network configuration method and device | |
CN113568770B (en) | Emergency rescue method of real-time operating system, electronic equipment and computer storage medium | |
TWI690849B (en) | Method and device for upgrading and closing applications | |
JP2006129362A (en) | Digital composite machine |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20161012 |