[go: up one dir, main page]

CN107092469A - A kind of method for upgrading software, apparatus and system - Google Patents

A kind of method for upgrading software, apparatus and system Download PDF

Info

Publication number
CN107092469A
CN107092469A CN201610089437.6A CN201610089437A CN107092469A CN 107092469 A CN107092469 A CN 107092469A CN 201610089437 A CN201610089437 A CN 201610089437A CN 107092469 A CN107092469 A CN 107092469A
Authority
CN
China
Prior art keywords
headend equipment
equipment
information
version information
software
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
CN201610089437.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.)
Hangzhou Hikvision Digital Technology Co Ltd
Original Assignee
Hangzhou Hikvision Digital 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 Hikvision Digital Technology Co Ltd filed Critical Hangzhou Hikvision Digital Technology Co Ltd
Priority to CN201610089437.6A priority Critical patent/CN107092469A/en
Publication of CN107092469A publication Critical patent/CN107092469A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

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 embodiments of the invention provide a kind of method for upgrading software, device and system.This method is applied to the rear end equipment in safety-protection system.This method includes:According to very first time interval, the type information and version information of headend equipment are obtained;According to the information of acquisition, judge whether the corresponding first version information of the type information locally preserved is identical with the version information of headend equipment;If differing, the corresponding first software installation bag of the first version information being locally stored is sent to headend equipment, with the software for headend equipment of upgrading.Specifically, type information, first version information and the first software installation bag of its headend equipment for supporting access can be previously stored with rear end equipment, and the first version information can be newest version information.As can be seen that in the present invention, operating personnel no longer need to the erecting bed of bad environments to go to upgrade to headend equipment, therefore the updating operation of headend equipment is easy to implement, so as to reduce the labor intensity of operating personnel.

Description

A kind of method for upgrading software, apparatus and system
Technical field
The present invention relates to technical field of security and protection, more particularly to a kind of method for upgrading software, apparatus and system.
Background technology
For safety-protection system, in order that headend equipment, the energy such as analog video camera, digital camera Enough preferably to meet actual demand, staff is generally accomplished by the installation of headend equipment at regular intervals Headend equipment of upgrading is removed at scene.In general, the environment of the erecting bed of headend equipment is more severe.Can be with Find out, the updating operation of headend equipment is bothered very much, is wasted time and energy, also, its upgrade cost is also very high.
The content of the invention
The purpose of the embodiment of the present invention is to provide a kind of method for upgrading software, apparatus and system, existing to simplify The escalation process of headend equipment in some safety-protection systems, and reduce the upgrade cost of headend equipment.
On the one hand, the embodiments of the invention provide a kind of method for upgrading software, after in safety-protection system End equipment, the rear end equipment is connected by the communications cable with the headend equipment in the safety-protection system, institute The method of stating comprises the following steps:
According to the very first time interval of setting, the type information and version information of the headend equipment are obtained;
According to the type information and version information of the headend equipment, the type information pair locally preserved is judged Whether the first version information answered is identical with the version information of the headend equipment;
If differing, the corresponding first software installation bag of the first version information being locally stored is passed through The communications cable is sent to the headend equipment, is upgraded with the software to the headend equipment.
Further, in the above method, there is the non-loss memory block of power down in the headend equipment, it is described to incite somebody to action The corresponding first software installation bag of the first version information being locally stored is sent by the communications cable To the headend equipment, including:
The corresponding first software installation bag of the first version information being locally stored is passed through into the order wire Cable is sent to the headend equipment, makes the headend equipment by the first software installation bag storage to before described In the non-loss memory block of power down of end equipment.
Further, it is described by the first version information corresponding first being locally stored in the above method Software installation bag is sent to the headend equipment by the communications cable, including:
Reset instruction is sent to the headend equipment by the communications cable, and resetted in the headend equipment The corresponding first software installation bag of the first version information being locally stored is passed through into the communications cable afterwards It is sent to the headend equipment.
Further, in the above method, the rear end equipment is also connected with server, and methods described is also wrapped Include:
According to the second time interval of setting, the type information of the headend equipment is obtained from the server With second edition information;
According to the type information and second edition information of the headend equipment of acquisition, described in locally preserving The first version information of headend equipment is updated.
Further, it is described to the first version information of the headend equipment locally preserved in the above method It is updated, including:
The institute locally preserved is replaced using the type information and second edition information of the headend equipment of acquisition State the type information and first version information of headend equipment.
Further, it is described to the first version information of the headend equipment locally preserved in the above method It is updated, including:
According to the type information of the headend equipment of acquisition, searched in each memory block locally preserved described The type information of headend equipment;
Using the second edition information of the headend equipment of the acquisition, replace described in find it is described before The corresponding first version information of type information of end equipment.
The embodiment of the present invention additionally provides a kind of software updating apparatus, is set applied to the rear end in safety-protection system Standby, the rear end equipment is connected by the communications cable with the headend equipment in the safety-protection system, the dress Put including:
First acquisition module, for the very first time interval according to setting, obtains the type of the headend equipment Information and version information;
First judge module, for the type information and version information according to the headend equipment, judges local Whether the corresponding first version information of the type information of preservation is identical with the version information of the headend equipment;
Software installation bag sending module, the corresponding first version information of the type information for ought locally preserve It is when being differed with the version information of the headend equipment, the first version information being locally stored is corresponding First software installation bag is sent to the headend equipment by the communications cable, with to the headend equipment Software is upgraded.
Further, in said apparatus, there is the non-loss memory block of power down in the headend equipment, it is described soft Part installation kit sending module specifically for:
The corresponding first software installation bag of the first version information being locally stored is passed through into the order wire Cable is sent to the headend equipment, makes the headend equipment by the first software installation bag storage to before described In the non-loss memory block of power down of end equipment.
Further, in said apparatus, the software installation bag sending module specifically for:
Reset instruction is sent to the headend equipment by the communications cable, and resetted in the headend equipment The corresponding first software installation bag of the first version information being locally stored is passed through into the communications cable afterwards It is sent to the headend equipment.
Further, in said apparatus, the rear end equipment is also connected with server, and described device is also wrapped Include:
Second acquisition module, for the second time interval according to setting, obtains described from the server The type information and second edition information of headend equipment;
Update module is right for the type information and second edition information of the headend equipment according to acquisition The first version information of the headend equipment locally preserved is updated.
Further, in said apparatus, the update module specifically for:
The institute locally preserved is replaced using the type information and second edition information of the headend equipment of acquisition State the type information and first version information of headend equipment.
Further, in said apparatus, the update module includes:
Searching modul, for the type information of the headend equipment according to acquisition, is respectively deposited what is locally preserved The type information of the headend equipment is searched in storage area;
Replacement module, for the second edition information of the headend equipment using the acquisition, replaces described The corresponding first version information of type information of the headend equipment found.
Another further aspect, the embodiment of the present invention additionally provides a kind of software update system, including:Rear end equipment and Headend equipment;Wherein, the rear end equipment is connected by the communications cable with the headend equipment;
The rear end equipment, for the very first time interval according to setting, obtains the type of the headend equipment Information and version information, and according to the type information and version information of the headend equipment, judge local preserve The corresponding first version information of the type information it is whether identical with the version information of the headend equipment, if not It is identical, then the corresponding first software installation bag of the first version information being locally stored is passed through into the communication Cable is sent to the headend equipment;
The headend equipment, for according to the first software installation bag received, being risen to the software of itself Level.
Further, there is backup memory block and the non-loss of power down to deposit in said system, in the headend equipment Storage area, the headend equipment for detecting the state of itself, and when itself is in running order, will connect The the first software installation bag received is stored in the backup memory block, and is after the reset stored the backup The first software installation bag in area is dumped in the non-loss memory block of the power down.
Further, in said system, the headend equipment, be additionally operable to receive the rear end equipment pass through it is logical Believe the reset instruction that cable is sent, and after the reset according to the first software installation bag for receiving, to itself Software is upgraded.
The embodiments of the invention provide a kind of method for upgrading software, apparatus and system.Wherein, this method application Rear end equipment in safety-protection system, rear end equipment passes through the communications cable and the headend equipment phase in safety-protection system Connection.This method comprises the following steps:According to the very first time interval of setting, the type of headend equipment is obtained Information and version information;According to the type information and version information of headend equipment, judge locally to preserve such Whether the corresponding first version information of type information is identical with the version information of headend equipment;, will if differing The corresponding first software installation bag of first version information being locally stored is sent to front end by the communications cable and set It is standby, upgraded with the software to headend equipment.Specifically, its branch can be previously stored with rear end equipment Hold the part of access or the type information of all types of headend equipments, first version information and with first The first corresponding software installation bag of version, and the first version information can be the newest of manufacturer's issue Version information, correspondingly, the first software installation bag are the corresponding software of newest version of manufacturer's issue Installation kit.As can be seen that compared with prior art, in the present embodiment, operating personnel no longer need environment Severe erecting bed is gone to upgrade to headend equipment, therefore the updating operation of headend equipment is implemented more It is convenient, so that the labor intensity of operating personnel is reduced, while the upgrading efficiency of headend equipment is also improved, The upgrade cost of headend equipment can also be greatly reduced.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to implementing The accompanying drawing used required in example or description of the prior art is briefly described, it should be apparent that, describe below In accompanying drawing be only some embodiments of the present invention, for those of ordinary skill in the art, do not paying On the premise of going out creative work, other accompanying drawings can also be obtained according to these accompanying drawings.
Fig. 1 is the flow chart of method for upgrading software provided in an embodiment of the present invention;
Fig. 2 is a kind of structural representation of safety-protection system;
Fig. 3 is the another structural representation of safety-protection system;
Fig. 4 is the data composition figure in generated data bag;
Fig. 5 is the structured flowchart of software updating apparatus provided in an embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear Chu, it is fully described by, it is clear that described embodiment is only a part of embodiment of the invention, rather than Whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art are not making creation Property work under the premise of the every other embodiment that is obtained, belong to the scope of protection of the invention.
Method for upgrading software embodiment:
The embodiments of the invention provide a kind of method for upgrading software.The method for upgrading software can apply to security protection Rear end equipment in system, rear end equipment is connected by the communications cable with the headend equipment in safety-protection system. In the present embodiment, headend equipment can for rear end equipment support access a variety of headend equipments in one or Multiple, so, the data file in rear end equipment can be transmitted into headend equipment by the communications cable.Tool Body, rear end equipment can for DVR DVR, network hard disk video recorder NVR, optical transmitter and receiver or Video synthesis platform, the communications cable can be netting twine or optical fiber cable, headend equipment can for analog video camera, One or more in digital camera or web camera.Certainly, rear end equipment, headend equipment and The particular type of the communications cable is not limited to above-mentioned situation, can specifically be determined according to actual conditions, this reality Apply example and do not do any restriction to this.
Referring to Fig. 1, the flow chart of method for upgrading software provided in an embodiment of the present invention is shown in figure.As schemed Shown in 1, this method comprises the following steps:
Step S101, according to the very first time interval of setting, obtains the type information and version letter of headend equipment Breath.
Wherein, very first time interval can be one day, one week or one month, certainly, the very first time interval Duration value be not limited to above-mentioned situation, can specifically be determined according to actual conditions, the present embodiment to this not Do any restriction.In the present embodiment, the model of headend equipment can be included in the type information of headend equipment, The version number of headend equipment can be included in the version information of headend equipment.When it is implemented, rear end equipment can So that according to the very first time interval of setting, by the communications cable, end equipment sends acquisition type information and version forward The instruction of this information, after headend equipment receives the instruction, headend equipment can be by the type information of its own Headend equipment is sent to by the communications cable with version information.
Step S102, according to the type information and version information of headend equipment, judges the type locally preserved Whether the corresponding first version information of information is identical with the version information of headend equipment, if differing, performs step Rapid S103.
Step S103, order wire is passed through by the corresponding first software installation bag of the first version information being locally stored Cable is sent to headend equipment, is upgraded with the software to headend equipment.
Wherein, its part or all types of front ends for supporting access can be previously stored with rear end equipment Type information, first version information and the first software installation bag corresponding with first version of equipment.This In embodiment, the newest version that first version can be issued for manufacturer, correspondingly, the first software installation Bag is the corresponding software installation bag of newest version of manufacturer's issue.
When it is implemented, type information, first version information due to the headend equipment of rear end equipment memory storage And first the quantity of software installation bag be multiple, therefore rear end equipment passes through the communications cable getting with it After the type information and version information of the headend equipment being connected, rear end equipment needs first to determine what it got Type information is corresponding with which type in the multiple type informations being locally stored.Specifically, rear end is set It is standby can be using traversal by the way of, the type information got and the multiple type informations one being locally stored One ground is compared, until being found in the type information being locally stored identical with the type information got Type information.Then, rear end equipment can judge that the type that its version information got is found with it is believed Whether the corresponding first version information of manner of breathing is identical.If both are identical, illustrate with rear end equipment by communicating Current software version is the software of newest version, now headend equipment in the headend equipment that cable is connected It need not be upgraded, therefore rear end equipment does not perform the operation for sending the first software installation bag.If both not phases Together, then illustrate that the current software version of the headend equipment being connected with rear end equipment by communication cable is not Newest version, now, rear end equipment can be by corresponding first software installations of the latest edition being locally stored Bag is sent to headend equipment by the communications cable, and so, headend equipment can store the first software installation bag, So that the first software installation bag replaces original software installation bag in headend equipment, so, deposited in headend equipment The newest software installation bag that will be issued for manufacturer of storage, therefore headend equipment realizes software version more Newly, i.e. the upgrading of software.
As can be seen that in the embodiment of the present invention, it is only necessary to which storage backend device is supported in rear end equipment in advance The type information of the part of access or all types of headend equipments, newest version information and with it is newest Corresponding the first software installation bag of version information, the software version that rear end equipment just can be in headend equipment In the case that this is not latest edition, end equipment sends the newest corresponding software installation of version information forward Bag, so that headend equipment is upgraded according to the first software installation bag.Compared with prior art, this implementation In example, operating personnel no longer need to the erecting bed of bad environments to go to upgrade to headend equipment, therefore preceding The updating operation of end equipment implements more convenient, so as to reduce the labor intensity of operating personnel, simultaneously The upgrading efficiency of headend equipment is also improved, the upgrade cost of headend equipment can also be greatly reduced.
It should be noted that in above-described embodiment, before each upgrading, the version of the software in headend equipment This information can have two kinds of different situations.In the case of one kind, the version number in headend equipment is the version of acquiescence This number, accordingly, the software installation bag in headend equipment is installed before dispatching from the factory, and the software installation bag is main It is that, for testing the performance of headend equipment hardware, and the actual demand of user can not be met;In another case, Version number in headend equipment is not the version number of acquiescence, accordingly, and the software installation bag is after dispatching from the factory Install, the software installation bag can be such that whole headend equipment normally runs, preferably to meet the reality of user Border demand.
As can be seen that in the present embodiment, after new headend equipment is connected by the communications cable with rear end equipment, Rear end equipment can automatically end equipment sends the first software installation bag forward, to realize software journey in headend equipment The installation of sequence, without artificially, manually going to install software program in headend equipment, so that preceding The installation of software program is more convenient in end equipment, while also reducing the labor intensity of operating personnel.
It should be noted that in above-described embodiment, rear end equipment can be set by the communications cable with multiple front ends It is standby to be connected.So, corresponding first software installation bag can be sent to each front end by the rear end equipment simultaneously Equipment, so that each headend equipment completes the upgrading of software, the installation without arriving each headend equipment respectively shows Field is gone artificially, manually to remove each headend equipment of tableland upgrading, it is achieved thereby that the software of headend equipment Batch upgrade.
In the present embodiment, there can be the non-loss memory block of power down in headend equipment.Specifically, power down is non-loses Losing memory block can be located in the plug-in NAND Flash (one kind in Flash internal memories) of headend equipment.This Art personnel should be appreciated that the data being stored in the non-loss memory block of power down will not be due to power down Lose.So, the corresponding first software installation bag of the first version information being locally stored is passed through into the communications cable Headend equipment is sent to, including:
The corresponding first software installation bag of the first version information being locally stored is sent to by the communications cable Headend equipment, makes headend equipment that the first software installation bag to be stored to the non-loss memory block of power down to headend equipment In.
Specifically, the central processor CPU that the plug-in NAND Flash of headend equipment can be with headend equipment Or micro-control unit MCU is connected.The first software installation bag is sent to headend equipment in rear end equipment When, headend equipment can first pass through CPU or MCU and receive the first software installation bag, then headend equipment CPU or MCU can dump to the first software installation bag in the non-loss memory block of power down.As can be seen that , so can due to the non-loss memory block of power down that the first software installation bag is finally stored in headend equipment The first software installation bag is avoided to be lost due to the shutdown of headend equipment by ground, so as to preferably ensure that front end The normal work of equipment.
In above-described embodiment, it is however generally that, can also generally have a backup memory block in headend equipment.Tool Body, backup memory block can also be located in the plug-in NAND Flash of headend equipment.So, if rear end is set Standby end equipment sends the first software installation bag forward under the normal operating conditions of headend equipment, because power down is non- Lose existing software installation bag in memory block to be currently running, in order to avoid having influence on existing software installation bag Normal operation, headend equipment can first pass through CPU or MCU and receive the first software installation bag, then by the One software installation bag is dumped in backup memory block, then, after headend equipment is restarted and goes up electricity again, the One software installation Bao Caihui is dumped in the non-loss memory block of power down out of backup memory block, to replace non-power-failure Lose existing software installation bag in memory block, to complete the renewal of headend equipment software version.As can be seen that The setting of backup memory block can effectively ensure the normal work of headend equipment.
In the case of above-mentioned, because the renewal of headend equipment software version needs first to store the first software installation bag Into backup memory block, then just dump to non-power-failure and lose in memory block, therefore the software version of headend equipment Whole renewal process more bother.
In order to be effectively prevented from above mentioned problem, above-described embodiment, by the first version information pair being locally stored The the first software installation bag answered is sent to headend equipment by the communications cable, including:
By the communications cable, end equipment sends reset instruction forward, and will be locally stored after headend equipment reset First version information corresponding first software installation bag headend equipment is sent to by the communications cable.
So, resetted in headend equipment, that is, after restarting, headend equipment can first pass through CPU or MCU The first software installation bag is received, then CPU or MCU directly loses the first software installation bag write-in non-power-failure Lose memory block, it is not necessary to perform and store the first software installation bag to the step in backup memory block.Can To find out, the present embodiment can effectively shorten headend equipment software version upgraded needed for time.
In above-described embodiment, for rear end equipment, what is prestored inside it can be that it supports access Part or the type informations of all types of headend equipments, latest version information and with newest version The first corresponding software installation bag of information.In general, the actual demand in order to preferably meet user, The function of Improving Equipment simultaneously, manufacturer may at regular intervals will be for before a part of or all End equipment releases version updating, function more powerful software installation bag, and at this moment, the first software installation bag can Can no longer be just newest software installation bag, correspondingly, when headend equipment enters according to the first software installation bag During row software upgrading, the software version of headend equipment can not also update current newest version.
In order to efficiently solve above mentioned problem, rear end equipment can also be connected with server.At this moment, this reality Applying the method for upgrading software version of example offer can also comprise the following steps:
According to the second time interval of setting, the type information and the second edition of headend equipment are obtained from server This information.
Wherein, the second time interval can be one day, one week or one month, certainly, the very first time interval Specific duration be not limited to above-mentioned situation, can specifically be determined according to actual conditions, the present embodiment is to this Any restriction is not done.
When it is implemented, the part or all that rear end equipment supports access can be previously stored with server The type information of the headend equipment of type, second edition information and corresponding with second edition information second Software installation bag.When it is implemented, second edition information can be newest version information, second edition letter Breath and the second software installation bag can be periodically updated, so that the headend equipment of server memory storage Second software installation bag is always the corresponding software installation bag of latest edition of the headend equipment of manufacturer's issue.
According to the type information of the headend equipment of acquisition and second edition information, to the headend equipment locally preserved First version information be updated.
For each headend equipment that access is supported generally, for rear end equipment, manufacturer may be not The newest software installation bag of each headend equipment can be issued simultaneously, and manufacturer may only issue rear end equipment The newest software installation bag of the part headend equipment in the headend equipment of access is supported, at this moment to local preservation The first version information of headend equipment be updated just and can have two kinds of different situations.
In the case of one kind, the first version information of the headend equipment to locally preserving be updated including:
The front end locally preserved is replaced using the type information and second edition information of the headend equipment of acquisition to set Standby type information and first version information.
In the present embodiment, due to needing to store its part or all types of for supporting access in rear end equipment Type information, first version information and first software installation corresponding with first version of headend equipment Bag, therefore the type information of the headend equipment of multiple types, first version information and the first software can be pacified Dress inclusion turns into a big packet, then by the storage of this big data bag into rear end equipment.Correspondingly, Can also by the type information of the headend equipment of multiple types, second edition information and with second edition information Corresponding the second software installation inclusion turns into a big packet, is then stored in this big data bag In server.So, as long as the version information of any one headend equipment of rear end equipment memory storage is not newest Version information when, rear end equipment will replace local big data bag with the big data bag in server, with The the first software installation bag for storing up local memory is always the software installation bag of the latest edition of manufacturer's issue.
As can be seen that the mode so all replaced operates very simply, it is convenient to carry out.
In another case, the first version information of the headend equipment to locally preserving be updated including:
According to the type information of the headend equipment of acquisition, headend equipment is searched in each memory block locally preserved Type information.
In the present embodiment, can have multiple memory blocks, each species of memory block memory storage one in rear end equipment Type information, first version information and the first software installation bag of the headend equipment of type.So, when rear end is set Standby to get after the type information and version information of headend equipment, rear end equipment can travel through each memory block, with Find out that memory block where the type identical type information for being stored with and getting.
Using the second edition information of the headend equipment of acquisition, the type information of the headend equipment found is replaced Corresponding first version information.
Specifically, when rear end equipment judges that the version information of its some internal memory block memory storage is not newest Version information when, rear end equipment will be using the second edition information that is obtained out of server and the second software Installation kit replaces in this memory block the first software installation bag of storage originally, each final memory block internal memory The second edition information of storage by be always manufacturer issue latest version information, the second software installation bag is all the time The software installation bag for the latest edition issued for manufacturer.
Come to carry out in detail method for upgrading software provided in an embodiment of the present invention with a specific example below Explanation.
As shown in Fig. 2 rear end equipment 1 and multiple headend equipments, rear end equipment 1 can be included in safety-protection system It is connected with each headend equipment.As shown in figure 3, rear end equipment 1 can be NRV, the quantity of headend equipment can Think two, the two headend equipments are respectively the first headend equipment 2 and the second headend equipment 3.Specifically, First headend equipment 2 can be personal computer IPC1, and the second headend equipment 3 can be personal computer IPC2.Rear end equipment 1 is set by first communications cable 4 (UART1 i.e. shown in Fig. 3) with the first front end Standby 2 are connected, and rear end equipment 1 also passes through second communications cable 5 (UART2 i.e. shown in Fig. 3) and second Headend equipment 3 is connected.Specifically, the type of the first communication cable 4 and second communications cable 5 can be Universal asynchronous receiving-transmitting transmitter uart.
During practical application, NVR is firstly the need of the part or all types of headend equipments for supporting it access Unit type and latest edition number carry out ID demarcation.In the present embodiment, NVR can be by each headend equipment Unit type is demarcated as DEV_ID, and the version number of each headend equipment can be demarcated as Soft_ID by NVR, this Sample, two bit arrays can be generated as according to the relation between unit type and version number, two bit array For (DEV_ID1x, DEV_ID2x ..., DEV_IDnx) (Soft_ID1x, Soft_ID2x ..., Soft_IDnx), wherein, DEV_ID1x is that the headend equipment for first type that NVR supports access is set Standby model, Soft_ID1x is the version number of the headend equipment for the first type that NVR supports access, DEV_ID2x is the unit type of the headend equipment for second of type that NVR supports access, and Soft_ID2x is NVR supports the version number of the headend equipment of second of type of access, the like.
Then can be by each unit type and first version number and corresponding with the first version number One software installation Bao Jun is stored., can be first by each unit type and each first version during specific storage Number and the first software installation bag corresponding with the first version number and NRV itself software installation include As a synthesis installation kit, the data composition in the generated data bag is referred to Fig. 4, then closes this Pass through NVR local high-speed interface or remote high-speed interface direct burning to rear end equipment into installation kit In memory cell, such as in NAND Flash 6 plug-in NVR shown in Fig. 3.Certainly, synthesis is installed Bag directly can also be burnt in the NAND Flash 6 of rear end equipment offline, specifically can be according to actual conditions To determine, the present embodiment does not do any restriction to this.Obviously, generated data bag includes IPC1 and IPC2 Software upgrading needed for software installation bag.
Next, NVR can obtain IPC1 type information and software version information by the first connection cables 4, IPC2 type information and software version information, then, NVR meetings are obtained by the second connection cables 5 simultaneously The IPC1 corresponding first version information of type information is found in synthesis installation kit, when the current versions of IPC1 When being differed with the corresponding first version of type information of IPC1 in synthesis installation kit, that is, illustrate that IPC1 is current Version is not newest version, and now NVR first can send reset instruction to IPC1, and after IPC1 resets The corresponding first software installation bag of IPC1 type information is sent to IPC1, so that IPC1 is first soft according to this Part installation kit completes the upgrading of software.Similarly, when version current IPC2 and IPC2 in synthesis installation kit Type information corresponding first version when differing, that is, it is not newest version to illustrate the current versions of IPC2 This, now NVR first can send reset instruction to IPC2, and by IPC2 type information pair after IPC2 resets The the first software installation bag answered is sent to IPC2, so that IPC2 completes software according to the first software installation bag Upgrading.So, IPC1 and IPC2 just complete the upgrading of software.
It should be noted that can have in IPC1 in Flash1 (a kind of memory), IPC2 to have There can be the non-loss memory block of power down in Flash2 (a kind of memory), Flash1 and Flash2, to prevent Loss of data in IPC1 or IPC2.
It should be noted that in above-described embodiment, order wire is passed through except it can be given by rear end equipment The headend equipment that cable is connected is carried out outside software upgrading, and it can also be given by rear end equipment and passes through communication The another rear end equipment progress software upgrading that cable is connected, specific escalation process reference described above, It will not be repeated here.
To sum up, in the present embodiment, the software upgrading operation of headend equipment implements more convenient, reduces The labor intensity of operating personnel, while also improve the upgrading efficiency of headend equipment, headend equipment is escalated into This can also be greatly reduced.
Software updating apparatus embodiment:
The embodiment of the present invention additionally provides a kind of software updating apparatus.The device can apply in safety-protection system Rear end equipment, rear end equipment is connected by the communications cable with the headend equipment in safety-protection system.Referring to figure 5, the structured flowchart of software updating apparatus provided in an embodiment of the present invention is shown in figure.As shown in figure 5, should Device includes:
First acquisition module 51, for the very first time interval according to setting, obtains the type letter of headend equipment Breath and version information;
First judge module 52, for the type information and version information according to headend equipment, judges local protect Whether the corresponding first version information of the type information deposited is identical with the version information of headend equipment;
Software installation bag sending module 53, the corresponding first version letter of the type information for ought locally preserve It is when breath is differed with the version information of headend equipment, the first version information being locally stored is corresponding first soft Part installation kit is sent to headend equipment by the communications cable, is upgraded with the software to headend equipment.
Further, in said apparatus, there is the non-loss memory block of power down, software installation bag in headend equipment Sending module specifically for:
The corresponding first software installation bag of the first version information being locally stored is sent to by the communications cable Headend equipment, makes headend equipment that the first software installation bag to be stored to the non-loss memory block of power down to headend equipment In.
Further, in said apparatus, software installation bag sending module specifically for:
By the communications cable, end equipment sends reset instruction forward, and will be locally stored after headend equipment reset First version information corresponding first software installation bag headend equipment is sent to by the communications cable.
Further, in said apparatus, rear end equipment is also connected with server, and the device also includes:
Second acquisition module, for the second time interval according to setting, obtains headend equipment from server Type information and second edition information;
Update module, for the type information and second edition information of the headend equipment according to acquisition, to local The first version information of preservation is updated.
Further, in said apparatus, update module specifically for:
The front end locally preserved is replaced using the type information and second edition information of the headend equipment of acquisition to set Standby type information and first version information.
Further, in said apparatus, update module includes:
Searching modul, for the type information of the headend equipment according to acquisition, in each memory block locally preserved The middle type information for searching headend equipment;
Replacement module, for the second edition information using the headend equipment obtained, replaces the front end found The corresponding first version information of type information of equipment.
To sum up, in the present embodiment, the updating operation of headend equipment implements more convenient, reduces operation The labor intensity of personnel, while also improving the upgrading efficiency of headend equipment, the upgrade cost of headend equipment It can greatly reduce.
Software update system embodiment:
The embodiment of the present invention additionally provides a kind of software update system.The system includes:Rear end equipment and front end Equipment.Wherein, rear end equipment is connected by the communications cable with headend equipment.
Rear end equipment, for the very first time interval according to setting, obtains the type information and version of headend equipment This information, and according to the type information and version information of headend equipment, judge the type information locally preserved Whether corresponding first version information is identical with the version information of headend equipment, if differing, and will locally deposit The corresponding first software installation bag of first version information of storage is sent to headend equipment by the communications cable;
Headend equipment, for according to the first software installation bag received, upgrading to the software of itself.
Further, in said system, there is backup memory block and the non-loss memory block of power down in headend equipment, Headend equipment, for detecting the state of itself, and when itself is in running order, by receive first Software installation bag is stored in backup memory block, and the first software installation that will be backed up after the reset in memory block Bag is dumped in the non-loss memory block of power down.
Further, in said system, headend equipment is additionally operable to reception rear end equipment and sent out by the communications cable The reset instruction sent, and the software of itself is carried out according to the first software installation bag received after the reset Upgrading.
To sum up, in the present embodiment, the updating operation of headend equipment implements more convenient, reduces operation The labor intensity of personnel, while also improving the upgrading efficiency of headend equipment, the upgrade cost of headend equipment It can greatly reduce.
It should be noted that herein, such as first and second or the like relational terms be used merely to by One entity or operation make a distinction with another entity or operation, and not necessarily require or imply these There is any this actual relation or order between entity or operation.Moreover, term " comprising ", " bag Containing " or any other variant thereof is intended to cover non-exclusive inclusion, so that including a series of key elements Process, method, article or equipment not only include those key elements, but also including being not expressly set out Other key elements, or also include for this process, method, article or the intrinsic key element of equipment. In the case of there is no more limitations, the key element limited by sentence "including a ...", it is not excluded that including Also there is other identical element in process, method, article or the equipment of the key element.
Each embodiment in this specification is described by the way of related, identical phase between each embodiment As part mutually referring to, what each embodiment was stressed be it is different from other embodiment it Place.For system embodiment, because it is substantially similar to embodiment of the method, so description Fairly simple, the relevent part can refer to the partial explaination of embodiments of method.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the protection model of the present invention Enclose.Any modification, equivalent substitution and improvements made within the spirit and principles of the invention etc., are wrapped Containing within the scope of the present invention.

Claims (10)

1. a kind of method for upgrading software, it is characterised in that applied to the rear end equipment in safety-protection system, institute State rear end equipment by the communications cable with the headend equipment in the safety-protection system to be connected, methods described includes Following steps:
According to the very first time interval of setting, the type information and version information of the headend equipment are obtained;
According to the type information and version information of the headend equipment, the type information pair locally preserved is judged Whether the first version information answered is identical with the version information of the headend equipment;
If differing, the corresponding first software installation bag of the first version information being locally stored is passed through The communications cable is sent to the headend equipment, is upgraded with the software to the headend equipment.
2. the method as described in claim 1, it is characterised in that have power down is non-to lose in the headend equipment Memory block is lost, it is described that the corresponding first software installation bag of the first version information being locally stored is passed through into institute State the communications cable and be sent to the headend equipment, including:
The corresponding first software installation bag of the first version information being locally stored is passed through into the order wire Cable is sent to the headend equipment, makes the headend equipment by the first software installation bag storage to before described In the non-loss memory block of power down of end equipment.
3. the method as described in claim 1, it is characterised in that described by the first edition being locally stored The corresponding first software installation bag of this information is sent to the headend equipment by the communications cable, including:
Reset instruction is sent to the headend equipment by the communications cable, and resetted in the headend equipment The corresponding first software installation bag of the first version information being locally stored is passed through into the communications cable afterwards It is sent to the headend equipment.
4. the method as described in claim 1, it is characterised in that the rear end equipment is also connected with server Connect, methods described also includes:
According to the second time interval of setting, the type information of the headend equipment is obtained from the server With second edition information;
According to the type information and second edition information of the headend equipment of acquisition, described in locally preserving The first version information of headend equipment is updated.
5. method as claimed in claim 4, it is characterised in that the front end to locally preserving is set Standby first version information is updated, including:
The institute locally preserved is replaced using the type information and second edition information of the headend equipment of acquisition State the type information and first version information of headend equipment.
6. method as claimed in claim 4, it is characterised in that the front end to locally preserving is set Standby first version information is updated, including:
According to the type information of the headend equipment of acquisition, searched in each memory block locally preserved described The type information of headend equipment;
Using the second edition information of the headend equipment of the acquisition, replace described in find it is described before The corresponding first version information of type information of end equipment.
7. a kind of software updating apparatus, it is characterised in that applied to the rear end equipment in safety-protection system, institute State rear end equipment by the communications cable with the headend equipment in the safety-protection system to be connected, described device bag Include:
First acquisition module, for the very first time interval according to setting, obtains the type of the headend equipment Information and version information;
First judge module, for the type information and version information according to the headend equipment, judges local Whether the corresponding first version information of the type information of preservation is identical with the version information of the headend equipment;
Software installation bag sending module, the corresponding first version information of the type information for ought locally preserve It is when being differed with the version information of the headend equipment, the first version information being locally stored is corresponding First software installation bag is sent to the headend equipment by the communications cable, with to the headend equipment Software is upgraded.
8. a kind of software update system, it is characterised in that including:Rear end equipment and headend equipment;Wherein, The rear end equipment is connected by the communications cable with the headend equipment;
The rear end equipment, for the very first time interval according to setting, obtains the type of the headend equipment Information and version information, and according to the type information and version information of the headend equipment, judge local preserve The corresponding first version information of the type information it is whether identical with the version information of the headend equipment, if not It is identical, then the corresponding first software installation bag of the first version information being locally stored is passed through into the communication Cable is sent to the headend equipment;
The headend equipment, for according to the first software installation bag received, being risen to the software of itself Level.
9. system as claimed in claim 8, it is characterised in that there is backup storage in the headend equipment Area and the non-loss memory block of power down, the headend equipment are in for detecting the state of itself, and at itself During working condition, the first software installation bag received is stored in the backup memory block, and resetted The first software installation bag in the backup memory block is dumped in the non-loss memory block of the power down afterwards.
10. system as claimed in claim 8, it is characterised in that the headend equipment, is additionally operable to receive The reset instruction that the rear end equipment is sent by the communications cable, and it is soft according to receive first after the reset Part installation kit, upgrades to the software of itself.
CN201610089437.6A 2016-02-17 2016-02-17 A kind of method for upgrading software, apparatus and system Pending CN107092469A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610089437.6A CN107092469A (en) 2016-02-17 2016-02-17 A kind of method for upgrading software, apparatus and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610089437.6A CN107092469A (en) 2016-02-17 2016-02-17 A kind of method for upgrading software, apparatus and system

Publications (1)

Publication Number Publication Date
CN107092469A true CN107092469A (en) 2017-08-25

Family

ID=59646061

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610089437.6A Pending CN107092469A (en) 2016-02-17 2016-02-17 A kind of method for upgrading software, apparatus and system

Country Status (1)

Country Link
CN (1) CN107092469A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111813427A (en) * 2019-04-12 2020-10-23 杭州海康威视数字技术股份有限公司 Equipment repairing method and device, electronic equipment and storage medium
CN112910958A (en) * 2021-01-15 2021-06-04 浙江大华技术股份有限公司 Method, device, communication system and storage medium for unifying feature vectors
CN113760859A (en) * 2020-10-30 2021-12-07 北京沃东天骏信息技术有限公司 Local data management method and device for online application

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6437229B1 (en) * 1999-11-09 2002-08-20 Itautec Phico S/A Equipment and process for music digitalization storage, access, and listening
CN101770375A (en) * 2008-12-26 2010-07-07 新奥特(北京)视频技术有限公司 Method for realizing automatic update of software as well as system and device therefor
CN104850422A (en) * 2014-05-21 2015-08-19 北汽福田汽车股份有限公司 Method and system for remotely updating terminal equipment program
CN105100690A (en) * 2014-05-14 2015-11-25 杭州海康威视数字技术股份有限公司 Device remote upgrade method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6437229B1 (en) * 1999-11-09 2002-08-20 Itautec Phico S/A Equipment and process for music digitalization storage, access, and listening
CN101770375A (en) * 2008-12-26 2010-07-07 新奥特(北京)视频技术有限公司 Method for realizing automatic update of software as well as system and device therefor
CN105100690A (en) * 2014-05-14 2015-11-25 杭州海康威视数字技术股份有限公司 Device remote upgrade method
CN104850422A (en) * 2014-05-21 2015-08-19 北汽福田汽车股份有限公司 Method and system for remotely updating terminal equipment program

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111813427A (en) * 2019-04-12 2020-10-23 杭州海康威视数字技术股份有限公司 Equipment repairing method and device, electronic equipment and storage medium
CN113760859A (en) * 2020-10-30 2021-12-07 北京沃东天骏信息技术有限公司 Local data management method and device for online application
CN112910958A (en) * 2021-01-15 2021-06-04 浙江大华技术股份有限公司 Method, device, communication system and storage medium for unifying feature vectors
CN112910958B (en) * 2021-01-15 2022-08-09 浙江大华技术股份有限公司 Method, device, communication system and storage medium for unifying feature vectors

Similar Documents

Publication Publication Date Title
CN103875229B (en) asynchronous replication method, device and system
EP0411497B1 (en) Data processing system and data transmission and processing method
US5754785A (en) Communications network equipment
CN100518082C (en) Long-distance on-line updating method with self-recovery function
CN102890682A (en) Method for creating index, searching method, device and system
CN107092469A (en) A kind of method for upgrading software, apparatus and system
CN102915249A (en) Method and device for remotely realizing firmware updating
CN102541595A (en) Method and device for upgrading intelligent device and intelligent device
CN102685018A (en) Method and system for processing network instant messaging message and instant massaging equipment
CN107491322A (en) A kind of control method and device of parameter storage
CN102195798A (en) Method for upgrading optical network unit
CN109036212A (en) A kind of tourist explaining apparatus data-updating method and cabinet
CN106708960A (en) Restoration method for file system of NAS device and NAS device
CN103559198A (en) Data synchronizing method and equipment
CN102542376A (en) Method for processing computer accounts in active directory and system
CN110474793A (en) A kind of upgrade method and device of the network equipment
CN103648033B (en) The method and system that a kind of programs of set-top box list recovers
CN109597639B (en) Software upgrading method, device, equipment and medium
CN103714059A (en) Data updating method and device
CN103942120B (en) A kind of reading/writing method and system based on Intel Virtualization Technology
Cisco Database Management
Cisco Database Management
Cisco Database Management
Cisco Database Management
Cisco Database Management

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20170825