CN109347937B - Intelligent remote upgrading method applied to video monitoring equipment - Google Patents

Intelligent remote upgrading method applied to video monitoring equipment Download PDF

Info

Publication number
CN109347937B
CN109347937B CN201811170577.1A CN201811170577A CN109347937B CN 109347937 B CN109347937 B CN 109347937B CN 201811170577 A CN201811170577 A CN 201811170577A CN 109347937 B CN109347937 B CN 109347937B
Authority
CN
China
Prior art keywords
thread
upgrading
memory
video monitoring
monitoring equipment
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.)
Active
Application number
CN201811170577.1A
Other languages
Chinese (zh)
Other versions
CN109347937A (en
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.)
Shenzhen Elink Smart Co Ltd
Original Assignee
Shenzhen Elink Smart 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 Shenzhen Elink Smart Co Ltd filed Critical Shenzhen Elink Smart Co Ltd
Priority to CN201811170577.1A priority Critical patent/CN109347937B/en
Publication of CN109347937A publication Critical patent/CN109347937A/en
Application granted granted Critical
Publication of CN109347937B publication Critical patent/CN109347937B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 

Abstract

The invention provides an intelligent remote upgrading method applied to video monitoring equipment, which comprises the following steps of S1: sending an upgrading instruction by using a remote upgrading APP built in the video monitoring equipment to trigger equipment upgrading action; s2: after receiving the instruction, the video monitoring equipment stops all threads related to network transmission, including an alarm pushing thread, a pull flow thread, a cloud video detection and uploading thread; quitting an ISP debugging thread, an OSD refreshing thread, an audio processing thread, a de-initialization media processing platform and a de-initialization media processing platform video cache pool; s3: the user mode operates MMZ the memory and applies for the memory with the corresponding size according to the size of the current flash memory, in the practical application process, because the invention does not need to rely on the third-party storage device when the device is remotely upgraded, the efficiency can be obviously improved, and the cost is reduced.

Description

Intelligent remote upgrading method applied to video monitoring equipment
[ technical field ]
The invention relates to the technical field of upgrading of video monitoring equipment, in particular to an intelligent remote upgrading method which is high in reliability and high in upgrading speed and is applied to the video monitoring equipment.
[ background art ]
For embedded equipment, timeliness is very important, so most manufacturers can quickly bring products to the market, and then improve the product functions through remote upgrading, wherein the remote upgrading functions mainly comprise downloading actions and actual upgrading actions.
At present, the following problems exist in remote upgrading of a plurality of embedded devices: 1) the downloading is slow, and particularly when the network is not good, the downloading failure is easy to occur; 2) the dependence on a third-party storage device, such as an SD card; 3) when the upgrade file is downloaded to the memory, the upgrade file is easily damaged, namely covered by the place using the memory in the program; 4) most of equipment can only be upgraded at the uboot layer, and cannot be upgraded under a file system.
Based on the above problems, those skilled in the art have made extensive research and development and have achieved good results.
[ summary of the invention ]
In order to overcome the problems in the prior art, the invention provides the intelligent remote upgrading method which has high reliability and high upgrading speed and is applied to the video monitoring equipment.
The invention provides an intelligent remote upgrading method applied to video monitoring equipment, which comprises the following steps,
s1: sending an upgrading instruction by using a remote upgrading APP built in the video monitoring equipment to trigger equipment upgrading action;
s2: after receiving the instruction, the video monitoring equipment stops all threads related to network transmission, including an alarm pushing thread, a pull flow thread, a cloud video detection and uploading thread; quitting an ISP debugging thread, an OSD refreshing thread, an audio processing thread, a de-initialization media processing platform and a de-initialization media processing platform video cache pool;
s3: the user mode operates MMZ the memory, and applies for the memory with corresponding size according to the size of the current flash memory; obtaining a pointer pointing to the virtual address pointer after successful allocation; the obtained pointer is transmitted back to an application layer and then transmitted to an OSS module through the application layer, and the OSS module directly downloads the file to a corresponding memory address from an MMZ video cache;
s4: starting to download the upgrade file, and after the upgrade file is downloaded successfully, performing standard MD5 verification; step S5 is entered if the MD5 is verified successfully; if the MD5 verification fails, the default upgrading fails, and equipment is automatically restarted;
s5: sequentially quitting a network module, a main control module and a watchdog module of the video monitoring equipment; copying necessary files and commands to a memory mounting directory to carry out flash erasing preparation;
s6: checking MD5 information in the upgrade file, if the MD5 information is wrong, not upgrading, and automatically restarting the equipment; if the information of the MD5 is correct, the step S7 is carried out;
s7: sequentially comparing version information of each partition, and if the versions are determined to be inconsistent after comparison, performing flash erasing and flash writing actions; under a file system, opening a flash device file, sequentially reading data in an upgrade file, and writing the data according to the size of 64 KB;
s8: after the upgrade is finished, calling an instruction in a memory, and restarting the system; and after the equipment is restarted, the running program is the new program, and the upgrading is completed.
Preferably, in step S2, after receiving the instruction, the video surveillance device exits MMZ the relevant application.
Compared with the prior art, the intelligent remote upgrading method applied to the video monitoring equipment sends an upgrading instruction by utilizing a remote upgrading APP arranged in the video monitoring equipment, triggers the upgrading action of the equipment, stops all threads related to network transmission after the video monitoring equipment receives the instruction, and comprises an alarm push thread, a stream pulling thread, a cloud video detection and uploading thread, exits an ISP debugging thread, an OSD refreshing thread, an audio processing thread, a de-initialization media processing platform and a de-initialization media processing platform video cache pool, a user state operates MMZ memory, applies for the memory with corresponding size according to the size of the current flash memory, obtains a pointer pointing to a virtual address pointer after successful allocation, returns the obtained pointer to an application layer, and then transmits the pointer to an OSS module through the application layer, and the OSS module directly downloads a file to the corresponding memory address from a MMZ video cache, and then, downloading an upgrade file and the like are started, and in the practical application process, because the invention does not need to rely on third-party storage equipment when the equipment is upgraded remotely, the efficiency can be obviously improved, and the cost is reduced.
[ description of the drawings ]
Fig. 1 is a schematic flow chart of an intelligent remote upgrade method applied to a video monitoring device according to the present invention.
[ detailed description of the invention ]
For the purpose of making the objects, technical solutions and advantages of the present invention more apparent, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Referring to fig. 1, an intelligent remote upgrade method 1 applied to a video monitoring device according to the present invention includes the following steps,
s1: sending an upgrading instruction by using a remote upgrading APP built in the video monitoring equipment to trigger equipment upgrading action;
s2: after receiving the instruction, the video monitoring equipment stops all threads related to network transmission, including an alarm pushing thread, a pull flow thread, a cloud video detection and uploading thread; quitting an ISP debugging thread, an OSD refreshing thread, an audio processing thread, a de-initialization media processing platform and a de-initialization media processing platform video cache pool;
s3: the user mode operates MMZ the memory, and applies for the memory with corresponding size according to the size of the current flash memory; obtaining a pointer pointing to the virtual address pointer after successful allocation; the obtained pointer is transmitted back to an application layer and then transmitted to an OSS module through the application layer, and the OSS module directly downloads the file to a corresponding memory address from an MMZ video cache;
s4: starting to download the upgrade file, and after the upgrade file is downloaded successfully, performing standard MD5 verification; step S5 is entered if the MD5 is verified successfully; if the MD5 verification fails, the default upgrading fails, and equipment is automatically restarted;
s5: sequentially quitting a network module, a main control module and a watchdog module of the video monitoring equipment; copying necessary files and commands to a memory mounting directory to carry out flash erasing preparation;
s6: checking MD5 information in the upgrade file, if the MD5 information is wrong, not upgrading, and automatically restarting the equipment; if the information of the MD5 is correct, the step S7 is carried out;
s7: sequentially comparing version information of each partition, and if the versions are determined to be inconsistent after comparison, performing flash erasing and flash writing actions; under a file system, opening a flash device file, sequentially reading data in an upgrade file, and writing the data according to the size of 64 KB;
s8: after the upgrade is finished, calling an instruction in a memory, and restarting the system; and after the equipment is restarted, the running program is the new program, and the upgrading is completed.
The method comprises the steps of sending an upgrade instruction by using a remote upgrade APP built in the video monitoring equipment, triggering equipment upgrade action, stopping all threads related to network transmission after the video monitoring equipment receives the instruction, wherein the threads comprise an alarm push thread, a pull thread, a cloud video detection and upload thread, exiting an ISP debugging thread, an OSD refreshing thread, an audio processing thread, a de-initialization media processing platform and a de-initialization media processing platform video cache pool, operating MMZ a memory in a user mode, applying for the memory with corresponding size according to the size of a current flash memory, obtaining a pointer pointing to a virtual address pointer after successful allocation, returning the obtained pointer to an application layer, transmitting the pointer to an OSS module through the application layer, directly downloading a file to the corresponding memory address from MMZ video cache by the OSS module, subsequently starting downloading of an upgrade file immediately and the like in the actual application process, when the equipment is remotely upgraded, the invention does not need to rely on third-party storage equipment, so that the efficiency can be obviously improved and the cost can be reduced.
Preferably, in step S2, after receiving the instruction, the video surveillance device exits MMZ the relevant application.
The implementation steps and the flow are as follows:
1) sending an instruction through the APP client to trigger the action of the upgrading equipment;
2) after receiving the instruction, the equipment stops all threads related to network transmission, including an alarm pushing thread, a pull flow thread, a cloud video detection and uploading thread;
3) quitting an ISP debugging thread, refreshing the OSD thread, processing an audio frequency, initializing a media processing platform, and initializing a video cache pool of the media processing platform;
4) and (8) operating MMZ the memory by the user mode, and applying for the memory with the corresponding size according to the size of the current flash. Obtaining a pointer pointing to the virtual address pointer after successful allocation;
5) the pointer obtained in the step 4 is transmitted back to the application layer, and then is transmitted to the OSS module through the application layer, and the OSS module directly downloads the file to the memory address obtained in the step 4; since the address comes from the video cache of MMZ, the situation of being covered never occurs, and the correctness and integrity of the upgrade file can be guaranteed by one hundred percent.
6) After the upgrade file is downloaded successfully, the standard MD5 check is carried out. If the verification is successful, the next step is carried out, if the verification is failed, the upgrading is considered to be failed, and the equipment is automatically restarted.
7) And sequentially quitting all modules and threads in the network module, the main control module, the watchdog module and other equipment.
8) And copying necessary library files and commands to a memory mounting directory to prepare for erasing the flash.
9) And (4) checking MD5 information in the upgrade file, if the MD5 information is wrong, not upgrading, and automatically restarting the equipment.
10) And sequentially comparing version information of each partition, and if the versions are inconsistent, performing flash erasing and flash writing actions.
11) And under the file system, opening the flash equipment file, sequentially reading data in the upgrade file, and writing the data according to the size of 64 KB.
12) And after the upgrading is finished, calling an instruction in the memory, and restarting the system. And after the equipment is restarted, the running program is the new program, and the upgrading is completed.
Compared with the prior art, the intelligent remote upgrading method 1 applied to the video monitoring equipment sends an upgrading instruction by utilizing a built-in remote upgrading APP of the video monitoring equipment, triggers the upgrading action of the equipment, stops all threads related to network transmission after the video monitoring equipment receives the instruction, and comprises an alarm push thread, a stream pulling thread, a cloud video detection and uploading thread, exits an ISP debugging thread, an OSD refreshing thread, an audio processing thread, a de-initialization media processing platform and a de-initialization media processing platform video cache pool, a user state operates MMZ memory, applies for the memory with corresponding size according to the size of the current flash memory, obtains a pointer pointing to a virtual address pointer after successful allocation, returns the obtained pointer to an application layer, and then transmits the pointer to an OSS module through the application layer, and the OSS module directly downloads a file to the corresponding memory address from a MMZ video cache, and then, downloading an upgrade file and the like are started, and in the practical application process, because the invention does not need to rely on third-party storage equipment when the equipment is upgraded remotely, the efficiency can be obviously improved, and the cost is reduced.
The above-described embodiments of the present invention do not limit the scope of the present invention. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the scope of the claims of the present invention.

Claims (2)

1. An intelligent remote upgrading method applied to video monitoring equipment is characterized in that: comprises the following steps of (a) carrying out,
s1: sending an upgrading instruction by using a remote upgrading APP built in the video monitoring equipment to trigger equipment upgrading action;
s2: after receiving the instruction, the video monitoring equipment stops all threads related to network transmission, including an alarm pushing thread, a pull flow thread, a cloud video detection and uploading thread; quitting an ISP debugging thread, an OSD refreshing thread, an audio processing thread, a de-initialization media processing platform and a video cache pool of the de-initialization media processing platform;
s3: the user mode operates MMZ the memory, and applies for the memory with corresponding size according to the size of the current flash memory; obtaining a pointer pointing to the virtual address pointer after successful allocation; the obtained pointer is transmitted back to an application layer and then transmitted to an OSS module through the application layer, and the OSS module directly downloads the file to a corresponding memory address from an MMZ video cache;
s4: starting to download the upgrade file, and after the upgrade file is downloaded successfully, performing standard MD5 verification; step S5 is entered if the MD5 is verified successfully; if the MD5 verification fails, the default upgrading fails, and equipment is automatically restarted;
s5: sequentially quitting a network module, a main control module and a watchdog module of the video monitoring equipment; copying necessary files and commands to a memory mounting directory to carry out flash erasing preparation;
s6: checking MD5 information in the upgrade file, if the MD5 information is wrong, not upgrading, and automatically restarting the equipment; if the information of the MD5 is correct, the step S7 is carried out;
s7: sequentially comparing version information of each partition, and if the versions are determined to be inconsistent after comparison, performing flash erasing and flash writing actions; under a file system, opening a flash device file, sequentially reading data in an upgrade file, and writing the data according to the size of 64 KB;
s8: after the upgrade is finished, calling an instruction in a memory, and restarting the system; and after the equipment is restarted, the running program is the new program, and the upgrading is completed.
2. The intelligent remote upgrade method applied to the video monitoring equipment as claimed in claim 1, wherein: in step S2, after receiving the instruction, the video surveillance device exits MMZ related applications.
CN201811170577.1A 2018-10-09 2018-10-09 Intelligent remote upgrading method applied to video monitoring equipment Active CN109347937B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811170577.1A CN109347937B (en) 2018-10-09 2018-10-09 Intelligent remote upgrading method applied to video monitoring equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811170577.1A CN109347937B (en) 2018-10-09 2018-10-09 Intelligent remote upgrading method applied to video monitoring equipment

Publications (2)

Publication Number Publication Date
CN109347937A CN109347937A (en) 2019-02-15
CN109347937B true CN109347937B (en) 2021-08-27

Family

ID=65308478

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811170577.1A Active CN109347937B (en) 2018-10-09 2018-10-09 Intelligent remote upgrading method applied to video monitoring equipment

Country Status (1)

Country Link
CN (1) CN109347937B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111352730B (en) * 2020-02-11 2023-07-14 浙江大华技术股份有限公司 Caching method and device for application program upgrade, computer equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1619600A2 (en) * 2004-07-19 2006-01-25 Microsoft Corporation Remote file updates through remote protocol
CN103699421A (en) * 2014-01-08 2014-04-02 金三立视频科技(深圳)有限公司 Method and device for upgrading embedded device system
CN105117253A (en) * 2015-08-27 2015-12-02 常州大学 BootLoader based remote upgrade method for UV LED (Ultraviolet Light Emitting Diode) curing system
CN105808292A (en) * 2016-03-07 2016-07-27 西安诺瓦电子科技有限公司 Firmware upgrade method of embedded terminal device
CN106020884A (en) * 2016-05-20 2016-10-12 江苏华辉云控科技有限公司 Network camera system online update method

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101557583B (en) * 2009-03-19 2011-05-18 珠海银邮光电技术发展股份有限公司 Remote-updating and version-switching method of repeater equipment embedded software
CN102571462B (en) * 2012-04-06 2015-05-13 烽火通信科技股份有限公司 Self-protecting method for long-distance upgrading of optical network unit
US9891907B2 (en) * 2014-07-07 2018-02-13 Harman Connected Services, Inc. Device component status detection and illustration apparatuses, methods, and systems
US20160294605A1 (en) * 2014-07-07 2016-10-06 Symphony Teleca Corporation Remote Embedded Device Update Platform Apparatuses, Methods and Systems

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1619600A2 (en) * 2004-07-19 2006-01-25 Microsoft Corporation Remote file updates through remote protocol
CN103699421A (en) * 2014-01-08 2014-04-02 金三立视频科技(深圳)有限公司 Method and device for upgrading embedded device system
CN105117253A (en) * 2015-08-27 2015-12-02 常州大学 BootLoader based remote upgrade method for UV LED (Ultraviolet Light Emitting Diode) curing system
CN105808292A (en) * 2016-03-07 2016-07-27 西安诺瓦电子科技有限公司 Firmware upgrade method of embedded terminal device
CN106020884A (en) * 2016-05-20 2016-10-12 江苏华辉云控科技有限公司 Network camera system online update method

Also Published As

Publication number Publication date
CN109347937A (en) 2019-02-15

Similar Documents

Publication Publication Date Title
CN109460245B (en) Remote upgrading method for embedded system
US20190235993A1 (en) Generating an inner cloud environment within an outer cloud environment for testing a microservice application
US20170052854A1 (en) Method and system for performing automatic system recovery
CN106201552A (en) A kind of method for upgrading software, client, server and system
US9286046B2 (en) Method and apparatus for distributed operating system image deployment
WO2014146256A1 (en) Upgrade method, intelligent terminal, and upgrade system
CN112416406B (en) Terminal equipment upgrading method, device, terminal equipment and medium
CN109413164B (en) Access service recovery method, device, equipment and readable storage medium
KR101674975B1 (en) System upgrade method, apparatus, device, program, and recording medium
CN108509215B (en) System software replacing method and device, terminal equipment and storage medium
CN106095621B (en) The restoration methods and system that Launcher is operating abnormally in a kind of Android system
US20150347153A1 (en) System management controller and method of configuration file backup and recovery
CN104918114A (en) Method and device for upgrading operation system
WO2011088701A1 (en) Method and device for online upgrading cross-platform version
CN111651352B (en) Warehouse code merging method and device
CN103106083A (en) Loading method and loading device of firmware
CN112882734A (en) Upgrading method and device, computer equipment and medium
CN111104147A (en) BMC upgrading method, device, terminal and storage medium
CN112214227A (en) Edge server mirror image customization and deployment system and method
CN109347937B (en) Intelligent remote upgrading method applied to video monitoring equipment
CN105700903A (en) User terminal upgrading method and user terminal
CN111782231B (en) Service deployment method and device
CN106933604B (en) System upgrading method and device
CN109495298B (en) Method and device for managing nodes in OpenStack system
CN111782236A (en) System software upgrading method and device, storage medium and all-in-one machine equipment

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
GR01 Patent grant
GR01 Patent grant