CN108446128A - A kind of method for upgrading software and device - Google Patents

A kind of method for upgrading software and device Download PDF

Info

Publication number
CN108446128A
CN108446128A CN201710082705.6A CN201710082705A CN108446128A CN 108446128 A CN108446128 A CN 108446128A CN 201710082705 A CN201710082705 A CN 201710082705A CN 108446128 A CN108446128 A CN 108446128A
Authority
CN
China
Prior art keywords
information
software
upgraded
equipment
upgrading
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
CN201710082705.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 CN201710082705.6A priority Critical patent/CN108446128A/en
Publication of CN108446128A publication Critical patent/CN108446128A/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

Abstract

An embodiment of the present invention provides a kind of method for upgrading software and devices, wherein method for upgrading software includes:Update device sends handshake to terminal device, and corresponding answer signal is generated with drives terminal equipment;The answer signal that update device receiving terminal apparatus is sent, and according to the answer signal, judge the type of terminal device;When the type of terminal device is terminal server, update device receives the more new command that terminal server is sent, and according to the facility information in this more new command, upgrade certainly;When the type of terminal device is equipment to be upgraded, update device receives the attribute information that equipment to be upgraded is sent, and according to the attribute information, obtains corresponding software upgrade package and be sent to equipment to be upgraded, so that equipment to be upgraded carries out software upgrading.The software of equipment to be upgraded can be upgraded in time through the invention, improve user experience.

Description

A kind of method for upgrading software and device
Technical field
The present invention relates to software upgrading technical fields, more particularly to a kind of method for upgrading software and device.
Background technology
Software upgrading refers to the software version in equipment from lowest version liter to highest version, usually due to highest version software Repair loophole present in lowest version software or have the function of it is new, so compared to lowest version software, the highest version after upgrading The performance of software is more preferable, and the pattern effect that can be optimized, user can also have better experience.
Currently, in the method for upgrading software of such as video monitoring equipment, mainly utilize cable or data line etc. will Equipment to be upgraded is connected on personal computer, and local upgrade is carried out by means of the client on personal computer;Either will Equipment to be upgraded is connected on internet, and remote online upgrading is carried out by internet.But for be deployed in it is remote in the market Equipment, can not ensure that all areas all have good network environment, hence for the region that the network facilities is poor, network connects Connect unstable can not may normally realize so as to cause remote online upgrading.For can not normal remote online upgrading wait rising Grade equipment, can only be upgraded by locality connection, and still, remote equipment in the market is nearby often difficult to ensure certain again There are personal computers, accordingly, it may be desirable to by artificial, equipment to be upgraded are moved near personal computer and carries out this Ground connection carries out software upgrading again, and the software upgrading for the larger equipment to be upgraded of volume is extremely time-consuming and laborious, and is led Cause equipment to be upgraded upgrading not in time, influence user usage experience.
Invention content
The embodiment of the present invention is designed to provide a kind of method for upgrading software and device, with realize upgrade in time it is to be upgraded The software of equipment improves user experience.Specific technical solution is as follows:
In a first aspect, an embodiment of the present invention provides a kind of method for upgrading software, the method includes:
Update device transmission handshake is to terminal device, to drive the terminal device to generate corresponding answer signal, Wherein, the connection type of the terminal device and the update device is locality connection;
The update device receives the answer signal that the terminal device is sent, and according to the answer signal, sentences The type of the disconnected terminal device;
When the type of the terminal device is terminal server, the update device receives the terminal server and sends More new command carry out from upgrading and according to the facility information in the more new command;
When the type of the terminal device is equipment to be upgraded, the update device receives the equipment to be upgraded and sends Attribute information, and according to the attribute information, obtain corresponding software upgrade package and be sent to the equipment to be upgraded, so that institute It states equipment to be upgraded and carries out software upgrading.
Optionally, before the transmission handshake to terminal device, the method further includes:
The update device sends starting and upgrading and instructs to terminal device, so that the terminal device is from normal operating condition It is switched to software upgrading state.
Optionally, the facility information in more new command described in the basis is carried out from upgrading, including:
The facility information that the terminal server received is sent all is set with stored in the update device Standby information is compared one by one;
It all is set with stored in the update device in the facility information that the terminal server that receives is sent When standby information does not all match that, the update device transmission updates request to the terminal server, to drive the terminal to take Business device sends corresponding software upgrade package;
The update device receives the software upgrade package that the terminal server is sent, to carry out from upgrading.
Optionally, the facility information includes:The hardware version letter that software version number and the software version number are supported Breath;
The facility information sent in the terminal server received and stored institute in the update device When having facility information all not match that, the update device transmission updates request to the terminal server, to drive the end Server is held to send corresponding software upgrade package, including:
Hardware revision information in the facility information that the terminal server received is sent and the update device In stored any hardware revision information when all not matching that, the update device determines that the terminal server sent sets Hardware revision information in standby information is adding hardware version information;The update device transmission updates request to the terminal clothes Business device, to drive the terminal server to send the corresponding software upgrade package of the adding hardware version information;
Hardware revision information in the facility information that the terminal server received is sent and the update device In stored hardware revision information match, and the terminal server send facility information in hardware revision information pair When the software version number answered is higher than the corresponding software version number of stored hardware revision information in the update device, the liter Stage arrangement determines that the corresponding software version number of hardware revision information in the facility information that the terminal server is sent is update Software version number;The update device transmission updates request to the terminal server, to drive the terminal server to send out Send the newer software version number corresponding software upgrade package.
Optionally, before the attribute information for receiving the equipment transmission to be upgraded, the method further includes:
The update device sends attribute retrieval request message to equipment to be upgraded.
Optionally, the method further includes:
All devices information in the terminal server storage received and stored institute in the update device When thering is facility information all to match, or not receiving the software upgrade package of the terminal server storage, the update device Upgrading failed message is generated, and shows that the update device upgrades failure certainly;
The equipment to be upgraded is not received after the transmission attribute retrieval request message to equipment to be upgraded to send Attribute information, or there is the attribute to match completely with the attribute information of the equipment to be upgraded in the update device The hardware revision information of any hardware revision information and the equipment to be upgraded not phases in information or the update device Timing, the update device generate upgrading failed message, and show the device upgrade failure to be upgraded.
Optionally, the attribute information includes:The hardware revision information and software version number of the equipment to be upgraded;
It is described according to the attribute information, obtain corresponding software upgrade package and be sent to the equipment to be upgraded, so that institute It states equipment to be upgraded and carries out software upgrading, including:
By it is stored in the update device, match with the hardware revision information that the equipment to be upgraded is sent it is hard Part version information is determined as matching hardware revision information;
It is stored with the matching hardware revision information in the update device and the matching hardware revision information corresponds to Software version number when being higher than the software version number of the equipment to be upgraded, the update device reads the matching hardware version The corresponding software upgrade package of information is sent to the equipment to be upgraded, so that the equipment to be upgraded carries out software upgrading.
Second aspect, an embodiment of the present invention provides a kind of software updating apparatus, described device includes:
Handshake sending module, for sending handshake to terminal device, to drive the terminal device to generate phase The answer signal answered, wherein the connection type of the terminal device and the software updating apparatus is locality connection;
Receiving module, the answer signal sent for receiving the terminal device, and according to the answer signal, sentence The type of the disconnected terminal device;
First upgraded module, for when the type of the terminal device is terminal server, receiving the terminal service The more new command that device is sent, and according to the facility information in the more new command, carry out from upgrading;
Second upgraded module, for when the type of the terminal device is equipment to be upgraded, receiving described to be upgraded set The attribute information that preparation is sent, and according to the attribute information, obtain corresponding software upgrade package and be sent to the equipment to be upgraded, So that the equipment to be upgraded carries out software upgrading.
Optionally, described device further includes:
Instruction sending module is instructed for sending starting and upgrading to terminal device, so that the terminal device is transported from normal Row state is switched to software upgrading state.
Optionally, first upgraded module, is specifically used for:
The facility information that the terminal server received is sent all is set with stored in the update device Standby information is compared one by one;
It all is set with stored in the update device in the facility information that the terminal server that receives is sent When standby information does not all match that, the update device transmission updates request to the terminal server, to drive the terminal to take Business device sends corresponding software upgrade package;
The update device receives the software upgrade package that the terminal server is sent, to carry out from upgrading.
Optionally, the facility information includes:The hardware version letter that software version number and the software version number are supported Breath;
First upgraded module, is specifically additionally operable to:
It is filled with the software upgrading in the hardware revision information for the facility information that the terminal server received is sent When stored any hardware revision information does not all match that in the storage chip set, setting for the terminal server transmission is determined Hardware revision information in standby information is adding hardware version information;Transmission updates request to the terminal server, with driving The terminal server sends the corresponding software upgrade package of the adding hardware version information;
Hardware revision information in the facility information that the terminal server received is sent and the software upgrading Stored hardware revision information matches in the storage chip of device, and in the facility information of terminal server transmission The corresponding software version number of hardware revision information is higher than the corresponding software of stored hardware revision information in the update device When version number, determine that the corresponding software version number of hardware revision information in the facility information that the terminal server is sent is more New software version number;Transmission updates request to the terminal server, to drive the terminal server to send the update The corresponding software upgrade package of software version number.
Optionally, described device further includes:
Request signal sending module, for sending attribute retrieval request message to equipment to be upgraded.
Optionally, described device further includes:
First directive generation module, for receive the terminal server storage all devices information with it is described Stored all devices information all matches in the storage chip of software updating apparatus, or does not receive the terminal service When the software upgrade package of device storage, upgrading failed message is generated;
Second directive generation module waits rising for sending a request signal in the attribute retrieval request message transmission module The attribute information that the equipment to be upgraded is sent, or the storage core in the software updating apparatus are not received after grade equipment There is the attribute information or the software updating apparatus to match completely with the attribute information of the equipment to be upgraded in piece When any hardware revision information and the hardware revision information of the equipment to be upgraded are different from storage chip, generate upgrading and lose Lose message;
Display module, for generating upgrading failure in first directive generation module or second directive generation module When message, show the software updating apparatus from upgrading failure or the device upgrade failure to be upgraded.
Optionally, the attribute information includes:The hardware revision information and software version number of the equipment to be upgraded;
Second upgraded module, is specifically used for:
By it is stored in the update device, match with the hardware revision information that the equipment to be upgraded is sent it is hard Part version information is determined as matching hardware revision information;
It is stored with the matching hardware revision information in the update device and the matching hardware revision information corresponds to Software version number when being higher than the software version number of the equipment to be upgraded, the update device reads the matching hardware version The corresponding software upgrade package of information is sent to the equipment to be upgraded, so that the equipment to be upgraded carries out software upgrading.
A kind of method for upgrading software and device provided in an embodiment of the present invention, by sending handshake to terminal device, The answer signal replied according to terminal device judges terminal device for terminal server or equipment to be upgraded;It is taken if it is terminal Stored software upgrade package, then is replaced with the software upgrade package of the highest version in terminal server by business device automatically;If it is Stored highest version software data are then sent to equipment to be upgraded by equipment to be upgraded, realize the software liter of equipment to be upgraded Grade.Through the embodiment of the present invention, what can be connected with automatic decision is equipment to be upgraded or terminal server, automatically updates and has deposited The software version of storage, and realize the automatic upgrading of equipment to be upgraded, it can ensure timely updating and waiting for for the software version of storage The automatic upgrading of updating apparatus, to improve the experience of user when in use.
Description of the drawings
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with Obtain other attached drawings according to these attached drawings.
Fig. 1 is a kind of flow diagram of the method for upgrading software of the embodiment of the present invention;
Fig. 2 be the embodiment of the present invention update device in storage chip internal data structure schematic diagram;
Fig. 3 is another flow diagram of the method for upgrading software of the embodiment of the present invention;
Fig. 4 is the structural schematic diagram of the update device of the embodiment of the present invention;
Fig. 5 is the idiographic flow schematic diagram that the equipment to be upgraded 420 of embodiment illustrated in fig. 4 is upgraded;
Fig. 6 is that the update device 410 of embodiment illustrated in fig. 4 carries out the idiographic flow schematic diagram from upgrading;
Fig. 7 is a kind of structural schematic diagram of the software updating apparatus of the embodiment of the present invention;
Fig. 8 is another structural schematic diagram of the software updating apparatus of the embodiment of the present invention.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation describes, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
In order to upgrade the software of equipment to be upgraded in time, user experience is improved, an embodiment of the present invention provides a kind of softwares Upgrade method and device.
A kind of method for upgrading software is provided for the embodiments of the invention first below to be introduced.
It should be noted that a kind of executive agent for method for upgrading software that the embodiment of the present invention is provided can be one kind Update device, the update device are similar to portable USB flash disk or mobile hard disk.Wherein, realize that the embodiment of the present invention is carried A kind of mode of the method for upgrading software supplied can be the software, hardware circuit and/or logic circuit being set in update device.
As shown in Figure 1, a kind of method for upgrading software that the embodiment of the present invention is provided, may include steps of:
S101, update device send handshake to terminal device, corresponding answer signal are generated with drives terminal equipment.
Wherein, the connection type of terminal device and update device is locality connection;Terminal device can be terminal server, Or it is equipment to be upgraded;It can be carried out by local modes such as data line, bluetooth, straight cuttings between terminal device and update device Connection;Terminal server can be computer, server etc.;Equipment to be upgraded can be video monitoring equipment etc., due to video Monitoring device is higher for security requirement, therefore, the software upgrading of video monitoring equipment often in the way of locally-attached into Row software upgrading, to avoid network hacker when network upgrade for video monitoring equipment attack, lead to the leakage of monitoring content.
It should be noted that update device actively sends handshake to terminal device, terminal device is shaken hands receiving After signal, an answer signal can be sent to update device, show success of shaking hands.Handshake is a kind of drive signal, is used for Drives terminal equipment generates answer signal, and the type identification of terminal device is included at least in answer signal.
S102, the answer signal that update device receiving terminal apparatus is sent, and according to the answer signal, judge terminal device Type;If the type of terminal device is terminal server, S103 is executed to S104;If the type of terminal device is to wait for Updating apparatus then executes S105 to S106.
It should be noted that the upgrading mode of traditional equipment to be upgraded directly connects often by cable, data line etc. Be connected to terminal server, wired upgrading carried out by the client software on terminal server, or by network connection into Row remote upgrade;And different equipment to be upgraded needs to complete to upgrade by different client softwares, needs user There is certain understanding to the software version of client software and equipment to be upgraded, in the type and software version of equipment to be upgraded In the case of numerous, operation error, trivial operations are easy to cause, also, upgrade in time to treat updating apparatus, needed frequently It is connect with terminal server, it, can be very inconvenient if equipment appurtenance to be upgraded does not have terminal server.So the present embodiment carries For a kind of update device, different equipment to be upgraded and corresponding software information are stored in the update device, can by with Terminal server connects, and progress is updated from updating operation, in time to the software information of storage;Can also by with it is to be upgraded Equipment connects, and the software for treating updating apparatus upgraded, due to being stored with different equipment to be upgraded and right in update device The software information answered can carry out software upgrading to different equipment to be upgraded.In order to realize update device from the automatic of upgrading Change and treat updating apparatus software upgrading automation, when being connected to terminal device, class of the update device to terminal device Type is judged that terminal device can send answer signal after receiving handshake to update device, and update device receives After the answer signal, according to the type identification position of the terminal device in answer signal, the type of terminal device is judged.For example, eventually The type identification position of end equipment can be the 1st of answer signal, the 1st terminal device when being 0 be terminal server, the 1st Terminal device is equipment to be upgraded when being 1.
S103, update device receive the more new command that terminal server is sent.
Wherein, more new command includes:The facility information of terminal server storage;May include in facility information:Equipment The hardware revision information that software version number and software version number are supported;May include in hardware revision information:Device name or The hardware version numbers of equipment.It should be noted that when judging the type of terminal device according to answer signal for terminal server, When being exactly that update device is connect with terminal server, terminal server sends more new command as main equipment to update device, In, update device is from equipment.
S104, update device are carried out according to the facility information in more new command from upgrading.
It should be noted that the facility information in the more new command that the terminal server that update device receives is sent includes The software version number and hardware revision information of equipment, it is also possible to which, including identification information, update device can pass through software version Number judge whether the software stored in terminal server is software after edition upgrading, it can also be by hardware revision information Device name or hardware version numbers judge whether the software stored in terminal server is the equipment not stored in update device The corresponding software version of hardware;It is, of course, also possible to judge whether the software stored in terminal server is upgrading by mark Software, marking type here can be associated with generation for many kinds, such as a hardware revision information with a software version number Number etc..This belongs to the protection domain of the embodiment of the present invention.
Optionally, the step of S104 may include:
First, stored all devices are believed in the facility information and update device that the terminal server received are sent Breath is compared one by one;
Secondly, the stored all devices letter in the facility information and update device that the terminal server received is sent When breath does not all match that, update device transmission updates request to terminal server, is sent with drives terminal server corresponding soft Part upgrade package;
Finally, update device receives the software upgrade package that terminal server is sent, to carry out from upgrading.
It should be noted that if in the more new command that the terminal server that receives of update device is sent, all devices When in information simply by the presence of with stored facility information does not match that in update device facility information, illustrate in update device Stored facility information needs are updated, and facility information, which does not match that, may include:Hardware revision information do not match that, or Person's software version number does not match that.Hardware revision information mentioned here does not match that, refers to that two hardware revision informations are endless It is exactly the same, such as the device name of two hardware is identical, is video camera 1, but hardware version numbers are different, one is 001, and another is 002, then two hardware revision informations do not match that;Or hardware revision information does not match that, it can also Refer to two hardware revision informations to differ completely, i.e. device name and hardware version numbers is different from, then two hardware version letters Breath does not match that.Software version number do not match that, refers to that two software version numbers differ completely, such as a software version number For Version A, another software version number is Version B, then the two software version numbers do not match that.In update device Facility information be stored in the storage chip of update device, as shown in Fig. 2, for storage chip internal data structure illustrate Figure, in order to ensure to store simultaneously all kinds of models equipment to be upgraded different software versions software upgrade package, this implementation The storage chip of example can be the storage chip of large capacity, and storage chip includes that N number of subregion, each subregion include one altogether Subregion head and program sectioning, for example, the 1st subregion 210 includes the 1st subregion head 211 and the 1st program sectioning 212, the 2nd subregion 220 packet Include the 3rd subregion head 231 and the 3rd program sectioning 232, N containing the 2nd subregion head 221 and the 2nd program sectioning 222, the 3rd subregion 230 Subregion 240 includes N subregions head 241 and N program sectionings 242, and the information stored in subregion head includes:Subregion Magic number divides Area's serial number, device name, hardware version numbers, software version number, software upgrade package size and data check and, deposited in program sectioning Storage is software upgrade package.For software version number is identical and facility information that hardware revision information is different, update device can be with A list is formed for the software version number, corresponds to multiple hardware revision informations.Wherein, subregion Magic number represents the program Subregion is legal program sectioning, and subregion serial number adds 1 successively since 0, and device name is the software journey that equipment to be upgraded uses The start context of sequence, software upgrade package size are the size for the software upgrade package occupied space that equipment to be upgraded uses, data inspection It tests and the legitimacy for verifying software upgrading bag data.
It is emphasized that after terminal server receives update request, corresponding software upgrading is sent to update device Packet, update device are carried out when receiving software upgrade package from upgrading.For example, if software upgrade package is adding hardware version The corresponding software upgrade package of information, then update device newly-increased subregion in storage chip, new in the subregion head storage of newly-increased subregion Increase the information such as device name, hardware version numbers, the software version number of hardware revision information, is deposited in the program sectioning of newly-increased subregion Store up the corresponding software upgrade package of adding hardware version information;If software upgrade package is the corresponding software of newer software version number Upgrade package, then update device the corresponding subregion of hardware revision information, the software in regeneration block head are found in storage chip Version number, and update the software upgrade package content in program sectioning.
Optionally, described stored all in the facility information and update device that the terminal server received is sent When facility information does not all match that, update device transmission updates request to terminal server, with the transmission pair of drives terminal server The step of software upgrade package answered, may include:
The first step, in the hardware revision information and update device for the facility information that the terminal server received is sent When any hardware revision information of storage does not all match that, update device determines hard in the facility information that terminal server is sent Part version information is adding hardware version information;Update device transmission updates request to terminal server, with drives terminal service Device sends the corresponding software upgrade package of adding hardware version information.
It should be noted that terminal server send facility information in hardware revision information and update device in Any hardware revision information of storage is not when all matching that, illustrates not store the hardware revision information in update device corresponding Facility information, then the hardware revision information is the hardware revision information increased newly for update device.Then update device needs should The corresponding facility information of hardware revision information and software upgrade package are stored in storage chip, and therefore, update device takes to terminal Business device sends update request, and update request is equivalent to a drive signal, and drives terminal server, which sends the hardware version, to be believed Cease corresponding software upgrade package.
Second step, in the hardware revision information and update device for the facility information that the terminal server received is sent The hardware revision information of storage matches, and the corresponding software of hardware revision information in the facility information of terminal server transmission When version number is higher than the corresponding software version number of stored hardware revision information in update device, update device determines that terminal takes The corresponding software version number of hardware revision information being engaged in the facility information that device is sent is newer software version number;Update device Transmission updates request to terminal server, and the corresponding software upgrading of newer software version number is sent with drives terminal server Packet.
It should be noted that terminal server send facility information in hardware revision information and update device in When the hardware revision information of storage matches, if the hardware revision information in the facility information that terminal server is sent is corresponding Software version number then illustrates the hardware version higher than the corresponding software version number of stored hardware revision information in update device The software upgrade package of information updates in terminal server, then the hardware version in the facility information that terminal server is sent The corresponding software version number of information is newer software version number for update device.Therefore, update device is to terminal server Update request is sent, update request is equivalent to a drive signal, and drives terminal server sends what terminal server was sent The corresponding software upgrade package of hardware revision information in facility information.
It is emphasized that the first step and second step can execute parallel, can also serially execute.
S105, update device receive the attribute information that equipment to be upgraded is sent.
Wherein, attribute information includes:The hardware revision information and software version number of equipment to be upgraded.It should be noted that When judging terminal device by answer signal for equipment to be upgraded, illustrates that update device is connected with equipment to be upgraded, then wait rising Grade equipment can send the attribute information of the equipment to be upgraded to update device, newer soft to obtain needs from update device Part upgrade package, to carry out software upgrading.
Optionally, before the step of S105, can also include:
Update device sends attribute retrieval request message to equipment to be upgraded.
It should be noted that in order to improve the interaction capabilities between update device and equipment to be upgraded, prevent from receiving multiple Update device, can be defined as main equipment, will be to be upgraded by congestion caused by when attribute information and a large amount of packet drops occurred Device definition is from equipment, then update device is receiving answer signal, judges connected terminal device as equipment to be upgraded When, attribute retrieval request message is sent to the equipment to be upgraded, equipment to be upgraded is when receiving the acquisition request message, then sends out Attribute information is sent, can ensure the accuracy in transmission process.
S106, update device obtain corresponding software upgrade package and are sent to equipment to be upgraded, so as to wait for according to attribute information Updating apparatus carries out software upgrading.
It should be noted that the attribute information that the equipment to be upgraded that update device receives is sent includes equipment to be upgraded Software version number and hardware revision information, it is also possible to including identification information, update device can be judged by software version number Hardware revision information judge whether to be stored with device-dependent software upgrade package to be upgraded, then by software version number judgement be The no software treated in update device is upgraded.It is, of course, also possible to judge whether to treat by mark soft in update device Part is upgraded, and marking type here can be many kinds, such as a hardware revision information and a software version number pass Join the number etc. generated.This belongs to the protection domain of the embodiment of the present invention.
Optionally, the step of S106 may include:
First, hardware hardware revision information that is stored in update device, being sent with equipment to be upgraded to be matched Version information is determined as matching hardware revision information;
Secondly, matching hardware revision information and the corresponding software of matching hardware revision information are stored in update device When version number is higher than the software version number of equipment to be upgraded, update device reads the corresponding software upgrading of matching hardware revision information Packet is sent to equipment to be upgraded, so that equipment to be upgraded carries out software upgrading.
It should be noted that if in update device in stored hardware revision information exist with receive it is to be upgraded Hardware revision information in the attribute information that equipment is sent matches and stored hardware revision information in update device When corresponding software version number is higher than the software version number in the attribute information that equipment to be upgraded is sent, illustrate in update device Store the newer software version of the equipment to be upgraded, then update device read from storage chip corresponding software upgrade package, It is sent to equipment to be upgraded, so that equipment to be upgraded carries out software upgrading.
Using the present embodiment, by sending handshake to terminal device, the answer signal replied according to terminal device is sentenced Disconnected terminal device is terminal server or equipment to be upgraded;If it is terminal server, by stored software upgrade package The automatic software upgrade package for replacing with the highest version in terminal server;If it is equipment to be upgraded, by stored high version This software data is sent to equipment to be upgraded, realizes the software upgrading of equipment to be upgraded.It through the embodiment of the present invention, can be automatic Judge connection is equipment to be upgraded or terminal server, automatically updates stored software version, and realize to be upgraded set Standby automatic upgrading can ensure the automatic upgrading of the software version of storage to timely update with equipment to be upgraded, to improve The experience of user when in use.
Optionally, which can also include:
First, it all is set with stored in update device in all devices information of the terminal server storage received When all matching for information, or not receiving the software upgrade package of terminal server storage, update device generates upgrading failure Message, and show that update device upgrades failure certainly.
It should be noted that if all devices information for the terminal server storage that update device receives is filled with upgrading Stored all devices information all matches in setting, that is to say, that stored facility information contains end in update device The all devices information for holding server storage then illustrates that the facility information of terminal server storage does not update, then for rising This of stage arrangement and terminal server connect, and are not upgraded, and may be defined as update device and upgrade failure certainly, and are shown Show;Also, if update device sends update request to terminal server, and terminal server feedback is not received always Software upgrade package then illustrates that the connection between update device and terminal server goes wrong, and cannot complete this and upgrade certainly, can It is defined as update device and upgrades failure certainly, and shown;It provide the user intuitive observation in this way, it can be straight by display It connects and judges failing from upgrading for update device.
Secondly, the category that equipment to be upgraded is sent is not received after sending attribute retrieval request message to equipment to be upgraded Property information, or there is the attribute information to match completely with the attribute information of equipment to be upgraded, Huo Zhesheng in update device When any hardware revision information and the hardware revision information of equipment to be upgraded all do not match that in stage arrangement, update device, which generates, to be risen Grade failed message, and show device upgrade failure to be upgraded.
It should be noted that if update device does not connect after sending attribute retrieval request message to equipment to be upgraded The attribute information of equipment feedback to be upgraded is received, then possible update device is directly connect with equipment to be upgraded goes wrong, meeting The software upgrading of equipment to be upgraded is caused to fail;Also, if existed in update device complete with the attribute information of equipment to be upgraded The attribute information to match entirely illustrates the hardware to match with the hardware revision information of equipment to be upgraded stored in update device The corresponding software version of version information does not update, and therefore, the software of this equipment to be upgraded can not upgrade, and define equipment to be upgraded Software upgrading failure;Alternatively, any hardware revision information and the hardware revision information of equipment to be upgraded be not in update device Match, then illustrate to store in update device without the corresponding attribute information of equipment to be upgraded and software upgrade package, then can not The software upgrading for carrying out this equipment to be upgraded may be defined as the software upgrading failure of equipment to be upgraded;And by equipment to be upgraded Software upgrading unsuccessfully shown, provide the user intuitive observation in this way, by display can directly judge it is to be upgraded The upgrading of equipment fails.
As shown in figure 3, a kind of method for upgrading software of the embodiment of the present invention provided, based on implementation as described in Figure 1 , before S101, can also include:
S301, update device sends starting and upgrading and instructs to terminal device, so that terminal device is cut from normal operating condition It is changed to software upgrading state.
It should be noted that before the operation for carrying out software upgrading, terminal device may be in normal operating condition, For example, equipment to be upgraded is shooting video or terminal server is handling other programs, end is connected in update device When end equipment, cause the normal operation for influencing terminal device or routine call excessive in order to avoid directly initiating updating operation Terminal device is caused to collapse, when update device is connected to terminal device, update device sends starting and upgrading to terminal device and refers to It enables, terminal device is switched to software upgrading state from normal operating condition, avoids multiple when receiving starting and upgrading instruction The case where program is run simultaneously.Wherein, the switching of state can pause immediately end when receiving starting and upgrading instruction The normal operating condition of end equipment, and switch to software upgrading state;Can also be to be waited for when receiving starting and upgrading instruction The normal operation of terminal device terminates, then state is switched to software upgrading state, this belongs to the range of the present embodiment protection.
It is emphasized that S101 to S106 is identical as embodiment illustrated in fig. 1, which is not described herein again.
Using the present embodiment, by sending handshake to terminal device, the answer signal replied according to terminal device is sentenced Disconnected terminal device is terminal server or equipment to be upgraded;If it is terminal server, by stored software upgrade package The automatic software upgrade package for replacing with the highest version in terminal server;If it is equipment to be upgraded, by stored high version This software data is sent to equipment to be upgraded, realizes the software upgrading of equipment to be upgraded.It through the embodiment of the present invention, can be automatic Judge connection is equipment to be upgraded or terminal server, automatically updates stored software version, and realize to be upgraded set Standby automatic upgrading can ensure the automatic upgrading of the software version of storage to timely update with equipment to be upgraded, to improve The experience of user when in use.And when update device is connected to terminal device, starting and upgrading instruction is sent to terminal device, To make terminal device be switched to software upgrading state from normal operating condition, multiple same lucks of program on terminal device are avoided The case where row causes device software to be collapsed.
With reference to specific application example, it is provided for the embodiments of the invention method for upgrading software and is introduced.
As shown in figure 4, the structural schematic diagram of the update device for the embodiment of the present invention.Update device 410 includes:Storage Circuit 411, indicating circuit 412, governor circuit 413, power circuit 414 and telecommunication circuit 415, update device 410 can connect Enter equipment 420 to be upgraded and treat updating apparatus to be upgraded, can also access terminal server 430 update device 410 is carried out From upgrading.
The lower microcontroller of price may be used as main control chip in governor circuit 413, and it is right to be responsible for control update device 410 The software upgrading of equipment 420 to be upgraded and upgrading certainly for update device 410;Power circuit 414 is responsible for entire update device 410 Power supply, and configure a power switch, control update device 410 power on and lower electricity;Storage circuit 411 is relatively low using price Large capacity Flash as storage chip, the different software version of the equipment to be upgraded of all kinds of models is store with partitioned mode This software upgrading bag data;Indicating circuit 412 is used to show the progress of upgrading and upgrading is prompted to fail;Telecommunication circuit 415 can With using USB (Universal Serial Bus, universal serial bus), serial communication interface RS232 or serial communication interface The communication interfaces such as RS485 are responsible for carrying out the communication of upgrading data with equipment 420 to be upgraded or terminal server 430.Wherein, Indicating circuit 412 indicates update device 410 from upgrading or equipment to be upgraded 420 using four LED lamps Upgrading progress, often upgrades 25%, lights a LED light, when upgrading failure, four LED light cycle flickers.
When update device 410 is connected with equipment 420 to be upgraded, treats updating apparatus 420 and upgraded, detailed process Schematic diagram, as shown in Figure 5.
Update device 410 is linked into the communication interface of equipment 420 to be upgraded by S501, opens the electricity of update device 410 Source switch;
S502, the transmission attribute retrieval request message of update device 410 to equipment 420 to be upgraded, and equipment to be upgraded 420 Generate answer signal;
S503, update device 410 judge whether the answer signal for being properly received the transmission of equipment 420 to be upgraded, if it is, S504 is executed, S509 is otherwise executed;
S504, update device 410 traverse the partition information in storage chip, judge whether to set with to be upgraded Otherwise the standby 420 matched attribute information of attribute information executes S509 if it is, executing S505;
S505, update device 410 obtain the program size of software upgrade package from subregion head, and are read from program sectioning Length is the upgrade procedure of the program size, is sent to equipment 420 to be upgraded;For example, the program size of software upgrade package is 10MB then reads the upgrade procedure that length is 10MB from program sectioning;
S506, update device 410 send verification request signal to equipment 420 to be upgraded;Equipment 420 to be upgraded receives verification Data check processing is carried out to the software program of upgrading after request, if verification passes through, one is sent to update device 410 and answers Signal is answered, shows to upgrade successfully, and starts the new software program of equipment 420 to be upgraded;
S507, update device 410, which judges whether to receive, upgrades successfully answer signal, if it is, executing S508, otherwise Execute S509;
S508, four LED light all lights on update device 410;
S509, four LED light cycle flicker on update device 410;
S510, the upgrading of equipment 420 to be upgraded terminate.
When update device 410 is connected with terminal server 430, update device 410 is carried out from upgrading, and detailed process is shown It is intended to, as shown in Figure 6.
Update device 410 is linked into the communication interface of terminal server 430 by S601, opens the electricity of update device 410 Source switch;
S602, update device 410 judge whether to receive the regeneration block order that terminal server 430 is sent, if so, S603 is then executed, S602 is otherwise executed;
S603, update device 410 traverse partition information, judge whether to store with terminal server 430 All devices information matches program sectioning, if it is, execute S610, otherwise execute S604;
S604, update device 410 send regeneration block request signal to terminal server 430;Terminal server 430 receives After the regeneration block request signal, complete partition data will be sent to update device 410;
S605, update device 410 judge whether the reception of partition data succeeds, if it is, executing S606, otherwise execute S610;
S606, update device 410 are received by communication interface and partition data are stored on storage chip after partition data;
S607, update device 410 judge whether to receive check command, if it is execute S608, otherwise execute S607; Update device 410 to terminal server 430 send an answer signal, terminal server 430 after receiving the answer signal, Issue check command;
S608, update device 410 verify newer subregion, and judge whether verification succeeds, if it is, executing Otherwise S609 executes S610;
S609, four LED light on update device 410 recycle all light;
S610, four LED light cycle flicker on update device 410;
S611, update device 410 terminate from upgrading.
Compared to the prior art, this programme connects terminal device by update device, judges terminal device for terminal service Device or equipment to be upgraded;If it is terminal server, stored software upgrade package is replaced with into terminal server automatically In highest version software upgrade package;If it is equipment to be upgraded, stored highest version software data are sent to and wait rising Grade equipment, realizes the software upgrading of equipment to be upgraded.What this programme can be connected with automatic decision is equipment or terminal to be upgraded Server automatically updates stored software version, and realizes the automatic upgrading of equipment to be upgraded, can ensure the software of storage The automatic upgrading of version to timely update with equipment to be upgraded, to improve the experience of user when in use;Entire updating operation, Without manual intervention, it can be achieved that automatic updating;The storage chip of large capacity ensure that can store waiting for for all kinds of models simultaneously The software upgrading bag data of the different software versions of updating apparatus, and support automatic upgrading;The work that upgrading is brought can be mitigated significantly It measures, accelerates the manufacturing schedule of equipment to be upgraded.And update device can be similar to USB flash disk, easy to carry, need not rely on number According to line and client software and network, plug and play is easy to operate.
Corresponding to above-described embodiment, an embodiment of the present invention provides a kind of software updating apparatus, as shown in fig. 7, software liter Stage arrangement may include:
Handshake sending module 710, for sending handshake to terminal device, to drive the terminal device to generate Corresponding answer signal, wherein the connection type of the terminal device and the software updating apparatus is locality connection;
Receiving module 720, the answer signal sent for receiving the terminal device, and believed according to the response Number, judge the type of the terminal device;
First upgraded module 730, for when the type of the terminal device is terminal server, receiving the terminal clothes The more new command that business device is sent, and according to the facility information in the more new command, carry out from upgrading;
Second upgraded module 740, for when the type of the terminal device is equipment to be upgraded, receiving described to be upgraded The attribute information that equipment is sent, and according to the attribute information obtains corresponding software upgrade package and is sent to described to be upgraded set It is standby, so that the equipment to be upgraded carries out software upgrading.
Using the present embodiment, by sending handshake to terminal device, the answer signal replied according to terminal device is sentenced Disconnected terminal device is terminal server or equipment to be upgraded;If it is terminal server, by stored software upgrade package The automatic software upgrade package for replacing with the highest version in terminal server;If it is equipment to be upgraded, by stored high version This software data is sent to equipment to be upgraded, realizes the software upgrading of equipment to be upgraded.It through the embodiment of the present invention, can be automatic Judge connection is equipment to be upgraded or terminal server, automatically updates stored software version, and realize to be upgraded set Standby automatic upgrading can ensure the automatic upgrading of the software version of storage to timely update with equipment to be upgraded, to improve The experience of user when in use.
Optionally, first upgraded module 730, specifically can be used for:
The facility information that the terminal server received is sent all is set with stored in the update device Standby information is compared one by one;
It all is set with stored in the update device in the facility information that the terminal server that receives is sent When standby information does not all match that, the update device transmission updates request to the terminal server, to drive the terminal to take Business device sends corresponding software upgrade package;
The update device receives the software upgrade package that the terminal server is sent, to carry out from upgrading.
Optionally, the facility information may include:The hardware version that software version number and the software version number are supported This information;
First upgraded module 730, specifically can be also used for:
Hardware revision information in the facility information that the terminal server received is sent and the software upgrading When stored any hardware revision information does not all match that in the storage chip of device, determine what the terminal server was sent Hardware revision information in facility information is adding hardware version information;Transmission updates request to the terminal server, to drive The dynamic terminal server sends the corresponding software upgrade package of the adding hardware version information;
Hardware revision information in the facility information that the terminal server received is sent and the software upgrading Stored hardware revision information matches in the storage chip of device, and in the facility information of terminal server transmission The corresponding software version number of hardware revision information is higher than the corresponding software of stored hardware revision information in the update device When version number, determine that the corresponding software version number of hardware revision information in the facility information that the terminal server is sent is more New software version number;Transmission updates request to the terminal server, to drive the terminal server to send the update The corresponding software upgrade package of software version number.
Optionally, the software updating apparatus can also include:
Request signal sending module, for sending attribute retrieval request message to equipment to be upgraded.
Optionally, the software updating apparatus can also include:
First directive generation module, for receive the terminal server storage all devices information with it is described Stored all devices information all matches in the storage chip of software updating apparatus, or does not receive the terminal service When the software upgrade package of device storage, upgrading failed message is generated;
Second directive generation module waits rising for sending a request signal in the attribute retrieval request message transmission module The attribute information that the equipment to be upgraded is sent, or the storage core in the software updating apparatus are not received after grade equipment There is the attribute information or the software updating apparatus to match completely with the attribute information of the equipment to be upgraded in piece When any hardware revision information and the hardware revision information of the equipment to be upgraded are different from storage chip, generate upgrading and lose Lose message;
Display module, for generating upgrading failure in first directive generation module or second directive generation module When message, show the software updating apparatus from upgrading failure or the device upgrade failure to be upgraded.
It should be noted that the display module for upgrading failure, can be that LED lamp is shown, it can also It is that display screen is shown.Specifically, LED light is shown, and can be the multiple LED light of setting, when upgrading failure, multiple LED light cycles Flicker, with prompt upgrading failure;Display screen shows, can be directly displayed on a display screen from upgrading failure or to be upgraded Device upgrade fails.In comparison, LED light shows shared space smaller, and display screen show it is more intuitive.
Optionally, the attribute information includes:The hardware revision information and software version number of the equipment to be upgraded;
Second upgraded module 740, specifically can be used for:
By it is stored in the update device, match with the hardware revision information that the equipment to be upgraded is sent it is hard Part version information is determined as matching hardware revision information;
It is stored with the matching hardware revision information in the update device and the matching hardware revision information corresponds to Software version number when being higher than the software version number of the equipment to be upgraded, the update device reads the matching hardware version The corresponding software upgrade package of information is sent to the equipment to be upgraded, so that the equipment to be upgraded carries out software upgrading.
Further, including handshake sending module 710, receiving module 720, the first upgraded module 730, second On the basis of upgraded module 740, as shown in figure 8, a kind of software updating apparatus that the embodiment of the present invention is provided can also include:
Instruction sending module 810 is instructed for sending starting and upgrading to terminal device, so that the terminal device is from normal Operating status is switched to software upgrading state.
Using the present embodiment, by sending handshake to terminal device, the answer signal replied according to terminal device is sentenced Disconnected terminal device is terminal server or equipment to be upgraded;If it is terminal server, by stored software upgrade package The automatic software upgrade package for replacing with the highest version in terminal server;If it is equipment to be upgraded, by stored high version This software data is sent to equipment to be upgraded, realizes the software upgrading of equipment to be upgraded.It through the embodiment of the present invention, can be automatic Judge connection is equipment to be upgraded or terminal server, automatically updates stored software version, and realize to be upgraded set Standby automatic upgrading can ensure the automatic upgrading of the software version of storage to timely update with equipment to be upgraded, to improve The experience of user when in use.And when update device is connected to terminal device, starting and upgrading instruction is sent to terminal device, To make terminal device be switched to software upgrading state from normal operating condition, multiple same lucks of program on terminal device are avoided The case where row causes device software to be collapsed.
It should be noted that the software updating apparatus of the embodiment of the present invention is the device using above-mentioned method for upgrading software, Then all embodiments of above-mentioned method for upgrading software are suitable for the device, and can reach same or analogous advantageous effect.
It is understood that in another embodiment of the embodiment of the present invention, software updating apparatus can include simultaneously:It shakes hands Signal transmitting module 710, receiving module 720, the first upgraded module 730, the second upgraded module 740, request signal sending module, First directive generation module, the second directive generation module, display module and instruction sending module 810.
It should be noted that herein, relational terms such as first and second and the like are used merely to a reality Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those Element, but also include other elements that are not explicitly listed, or further include for this process, method, article or equipment Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that There is also other identical elements in process, method, article or equipment including the element.
Each embodiment in this specification is all made of relevant mode and describes, identical similar portion between each embodiment Point just to refer each other, and each embodiment focuses on the differences from other embodiments.Especially for system reality For applying example, since it is substantially similar to the method embodiment, so description is fairly simple, related place is referring to embodiment of the method Part explanation.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the scope of the present invention.It is all Any modification, equivalent replacement, improvement and so within the spirit and principles in the present invention, are all contained in protection scope of the present invention It is interior.

Claims (14)

1. a kind of method for upgrading software, which is characterized in that the method includes:
Update device sends handshake to terminal device, to drive the terminal device to generate corresponding answer signal, wherein The connection type of the terminal device and the update device is locality connection;
The update device receives the answer signal that the terminal device is sent, and according to the answer signal, judges institute State the type of terminal device;
When the type of the terminal device is terminal server, the update device receives the terminal server and sends more New command, and according to the facility information in the more new command, carry out from upgrading;
When the type of the terminal device is equipment to be upgraded, the update device receives the category that the equipment to be upgraded is sent Property information, and according to the attribute information, obtain corresponding software upgrade package and be sent to the equipment to be upgraded, so that described wait for Updating apparatus carries out software upgrading.
2. method for upgrading software according to claim 1, which is characterized in that in the transmission handshake to terminal device Before, the method further includes:
The update device sends starting and upgrading and instructs to terminal device, so that the terminal device switches from normal operating condition For software upgrading state.
3. method for upgrading software according to claim 1, which is characterized in that the equipment in more new command described in the basis Information is carried out from upgrading, including:
The facility information that the terminal server received is sent is believed with stored all devices in the update device Breath is compared one by one;
Believe in the facility information that the terminal server received is sent and stored all devices in the update device When breath does not all match that, the update device transmission updates request to the terminal server, to drive the terminal server Send corresponding software upgrade package;
The update device receives the software upgrade package that the terminal server is sent, to carry out from upgrading.
4. method for upgrading software according to claim 3, which is characterized in that the facility information includes:Software version number And the hardware revision information that the software version number is supported;
The facility information sent in the terminal server that receives all is set with stored in the update device When standby information does not all match that, the update device transmission updates request to the terminal server, to drive the terminal to take Business device sends corresponding software upgrade package, including:
In hardware revision information and the update device in the facility information that the terminal server received is sent When any hardware revision information of storage does not all match that, the update device determines the equipment letter that the terminal server is sent Hardware revision information in breath is adding hardware version information;The update device transmission updates request to the terminal service Device, to drive the terminal server to send the corresponding software upgrade package of the adding hardware version information;
In hardware revision information and the update device in the facility information that the terminal server received is sent The hardware revision information of storage matches, and the hardware revision information in the facility information of terminal server transmission is corresponding When software version number is higher than the corresponding software version number of stored hardware revision information in the update device, the upgrading fills The corresponding software version number of hardware revision information set in the facility information for determining the terminal server transmission is newer soft Part version number;The update device transmission updates request to the terminal server, to drive the terminal server to send institute State the corresponding software upgrade package of newer software version number.
5. method for upgrading software according to claim 1, which is characterized in that described to receive what the equipment to be upgraded was sent Before attribute information, the method further includes:
The update device sends attribute retrieval request message to equipment to be upgraded.
6. method for upgrading software according to claim 5, which is characterized in that the method further includes:
It all is set with stored in the update device in all devices information of the terminal server storage received When all matching for information, or not receiving the software upgrade package of the terminal server storage, the update device generates Upgrade failed message, and shows that the update device upgrades failure certainly;
The category that the equipment to be upgraded is sent is not received after the transmission attribute retrieval request message to equipment to be upgraded Property information, or there is the attribute to match completely with the attribute information of the equipment to be upgraded in the update device and believe Any hardware revision information and the hardware revision information of the equipment to be upgraded all do not match that in breath or the update device When, the update device generates upgrading failed message, and shows the device upgrade failure to be upgraded.
7. method for upgrading software according to claim 1, which is characterized in that the attribute information includes:It is described to be upgraded The hardware revision information and software version number of equipment;
It is described according to the attribute information, obtain corresponding software upgrade package and be sent to the equipment to be upgraded, so that described wait for Updating apparatus carries out software upgrading, including:
The hardware version that hardware revision information that is stored in the update device, being sent with the equipment to be upgraded is matched This information is determined as matching hardware revision information;
It is stored with the matching hardware revision information in the update device and the matching hardware revision information is corresponding soft When part version number is higher than the software version number of the equipment to be upgraded, the update device reads the matching hardware revision information Corresponding software upgrade package is sent to the equipment to be upgraded, so that the equipment to be upgraded carries out software upgrading.
8. a kind of software updating apparatus, which is characterized in that described device includes:
Handshake sending module, for sending handshake to terminal device, to drive the terminal device to generate accordingly Answer signal, wherein the connection type of the terminal device and the software updating apparatus is locality connection;
Receiving module, the answer signal sent for receiving the terminal device, and according to the answer signal, judge institute State the type of terminal device;
First upgraded module, for when the type of the terminal device is terminal server, receiving the terminal server hair The more new command sent, and according to the facility information in the more new command, carry out from upgrading;
Second upgraded module, for when the type of the terminal device is equipment to be upgraded, receiving the equipment hair to be upgraded The attribute information sent, and according to the attribute information, obtain corresponding software upgrade package and be sent to the equipment to be upgraded, so that The equipment to be upgraded carries out software upgrading.
9. software updating apparatus according to claim 8, which is characterized in that described device further includes:
Instruction sending module is instructed for sending starting and upgrading to terminal device, so that the terminal device is from normal operation shape State is switched to software upgrading state.
10. software updating apparatus according to claim 8, which is characterized in that first upgraded module is specifically used for:
The facility information that the terminal server received is sent is believed with stored all devices in the update device Breath is compared one by one;
Believe in the facility information that the terminal server received is sent and stored all devices in the update device When breath does not all match that, the update device transmission updates request to the terminal server, to drive the terminal server Send corresponding software upgrade package;
The update device receives the software upgrade package that the terminal server is sent, to carry out from upgrading.
11. software updating apparatus according to claim 10, which is characterized in that the facility information includes:Software version Number and the hardware revision information supported of the software version number;
First upgraded module, is specifically additionally operable to:
Hardware revision information in the facility information that the terminal server received is sent and the software updating apparatus Storage chip in stored any hardware revision information when all not matching that, determine the equipment that the terminal server is sent Hardware revision information in information is adding hardware version information;Transmission updates request to the terminal server, to drive It states terminal server and sends the corresponding software upgrade package of the adding hardware version information;
Hardware revision information in the facility information that the terminal server received is sent and the software updating apparatus Storage chip in stored hardware revision information match, and the terminal server send facility information in hardware The corresponding software version number of version information is higher than the corresponding software version of stored hardware revision information in the update device Number when, determine that the corresponding software version number of hardware revision information in the facility information that the terminal server is sent is newer Software version number;Transmission updates request to the terminal server, described newer soft to drive the terminal server to send The corresponding software upgrade package of part version number.
12. software updating apparatus according to claim 8, which is characterized in that described device further includes:
Request signal sending module, for sending attribute retrieval request message to equipment to be upgraded.
13. software updating apparatus according to claim 12, which is characterized in that described device further includes:
First directive generation module, all devices information for being stored in the terminal server received and the software Stored all devices information all matches in the storage chip of update device, or does not receive the terminal server and deposit When the software upgrade package of storage, upgrading failed message is generated;
Second directive generation module, for sending a request signal to be upgraded set in the attribute retrieval request message transmission module The attribute information that the equipment to be upgraded is sent is not received after standby, or in the storage chip of the software updating apparatus In the presence of the storage of attribute information or the software updating apparatus that the attribute information with the equipment to be upgraded matches completely When any hardware revision information and the hardware revision information of the equipment to be upgraded are different from chip, generate upgrading and unsuccessfully disappear Breath;
Display module, for generating upgrading failed message in first directive generation module or second directive generation module When, show the software updating apparatus from upgrading failure or the device upgrade failure to be upgraded.
14. software updating apparatus according to claim 8, which is characterized in that the attribute information includes:It is described to be upgraded The hardware revision information and software version number of equipment;
Second upgraded module, is specifically used for:
The hardware version that hardware revision information that is stored in the update device, being sent with the equipment to be upgraded is matched This information is determined as matching hardware revision information;
It is stored with the matching hardware revision information in the update device and the matching hardware revision information is corresponding soft When part version number is higher than the software version number of the equipment to be upgraded, the update device reads the matching hardware revision information Corresponding software upgrade package is sent to the equipment to be upgraded, so that the equipment to be upgraded carries out software upgrading.
CN201710082705.6A 2017-02-16 2017-02-16 A kind of method for upgrading software and device Pending CN108446128A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710082705.6A CN108446128A (en) 2017-02-16 2017-02-16 A kind of method for upgrading software and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710082705.6A CN108446128A (en) 2017-02-16 2017-02-16 A kind of method for upgrading software and device

Publications (1)

Publication Number Publication Date
CN108446128A true CN108446128A (en) 2018-08-24

Family

ID=63190513

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710082705.6A Pending CN108446128A (en) 2017-02-16 2017-02-16 A kind of method for upgrading software and device

Country Status (1)

Country Link
CN (1) CN108446128A (en)

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109189434A (en) * 2018-09-20 2019-01-11 安徽南瑞中天电力电子有限公司 A kind of online upgrading method of electric energy meter
CN109271188A (en) * 2018-09-18 2019-01-25 郑州云海信息技术有限公司 A kind of CPLD upgrade method and relevant apparatus
CN109343874A (en) * 2018-08-30 2019-02-15 百度在线网络技术(北京)有限公司 Upgrade method, device, equipment and computer readable storage medium
CN109343877A (en) * 2018-08-31 2019-02-15 中国电力科学研究院有限公司 A kind of method and system for the upgrading of acquisition terminal remote software upgrade package
CN110175489A (en) * 2018-08-30 2019-08-27 永康市胜时电机有限公司 Camera assembly search site platform
CN110865826A (en) * 2018-08-27 2020-03-06 北京猎户星空科技有限公司 Robot software upgrading method, device, equipment and storage medium
CN110908683A (en) * 2019-10-22 2020-03-24 深圳市广和通无线通信软件有限公司 Software system upgrading method and device of hardware module, storage medium and terminal
CN110963381A (en) * 2018-10-01 2020-04-07 奥的斯电梯公司 Automated software upgrade assistant for remote elevator monitoring experts using machine learning
CN111209018A (en) * 2019-12-20 2020-05-29 上海淇玥信息技术有限公司 Application upgrading prompt information processing method and device and electronic equipment
CN112394959A (en) * 2020-11-18 2021-02-23 深圳市元征科技股份有限公司 Tire pressure sensor upgrading method, handheld tire pressure tool and tire pressure sensor
CN112732299A (en) * 2021-01-04 2021-04-30 北京无线电测量研究所 Method and system for updating program on line
CN112764773A (en) * 2020-12-31 2021-05-07 北京谊安医疗系统股份有限公司 Embedded software upgrading method
CN112817620A (en) * 2021-01-08 2021-05-18 日立楼宇技术(广州)有限公司 Controller terminal program updating method, device, computer equipment and storage medium
CN113055653A (en) * 2021-03-22 2021-06-29 深圳市安软科技股份有限公司 Automatic updating method and device of image acquisition equipment and related equipment
CN114978896A (en) * 2022-04-18 2022-08-30 中国电子科技集团公司第二十九研究所 Online reconstruction method for embedded software of heterogeneous platform

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101442834A (en) * 2008-12-18 2009-05-27 深圳华为通信技术有限公司 Method, apparatus, equipment and system for updating mobile terminal software
CN104182258A (en) * 2014-08-25 2014-12-03 福建升腾资讯有限公司 Device and method for upgrading POS (point-of-sale) terminals
US10469526B2 (en) * 2016-06-06 2019-11-05 Paypal, Inc. Cyberattack prevention system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101442834A (en) * 2008-12-18 2009-05-27 深圳华为通信技术有限公司 Method, apparatus, equipment and system for updating mobile terminal software
CN104182258A (en) * 2014-08-25 2014-12-03 福建升腾资讯有限公司 Device and method for upgrading POS (point-of-sale) terminals
US10469526B2 (en) * 2016-06-06 2019-11-05 Paypal, Inc. Cyberattack prevention system

Cited By (23)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110865826A (en) * 2018-08-27 2020-03-06 北京猎户星空科技有限公司 Robot software upgrading method, device, equipment and storage medium
CN110865826B (en) * 2018-08-27 2024-02-02 北京猎户星空科技有限公司 Robot software upgrading method, device, equipment and storage medium
CN110175489A (en) * 2018-08-30 2019-08-27 永康市胜时电机有限公司 Camera assembly search site platform
CN109343874A (en) * 2018-08-30 2019-02-15 百度在线网络技术(北京)有限公司 Upgrade method, device, equipment and computer readable storage medium
CN109343877A (en) * 2018-08-31 2019-02-15 中国电力科学研究院有限公司 A kind of method and system for the upgrading of acquisition terminal remote software upgrade package
CN109271188A (en) * 2018-09-18 2019-01-25 郑州云海信息技术有限公司 A kind of CPLD upgrade method and relevant apparatus
CN109189434A (en) * 2018-09-20 2019-01-11 安徽南瑞中天电力电子有限公司 A kind of online upgrading method of electric energy meter
US11472663B2 (en) 2018-10-01 2022-10-18 Otis Elevator Company Automatic software upgrade assistant for remote elevator monitoring experts using machine learning
CN110963381A (en) * 2018-10-01 2020-04-07 奥的斯电梯公司 Automated software upgrade assistant for remote elevator monitoring experts using machine learning
CN110963381B (en) * 2018-10-01 2022-02-01 奥的斯电梯公司 Automated software upgrade assistant for remote elevator monitoring experts using machine learning
CN110908683A (en) * 2019-10-22 2020-03-24 深圳市广和通无线通信软件有限公司 Software system upgrading method and device of hardware module, storage medium and terminal
CN110908683B (en) * 2019-10-22 2023-11-03 深圳市广和通无线通信软件有限公司 Software system upgrading method and device of hardware module, storage medium and terminal
CN111209018A (en) * 2019-12-20 2020-05-29 上海淇玥信息技术有限公司 Application upgrading prompt information processing method and device and electronic equipment
CN111209018B (en) * 2019-12-20 2023-09-19 上海淇玥信息技术有限公司 Method and device for processing application upgrading prompt information and electronic equipment
CN112394959A (en) * 2020-11-18 2021-02-23 深圳市元征科技股份有限公司 Tire pressure sensor upgrading method, handheld tire pressure tool and tire pressure sensor
CN112764773A (en) * 2020-12-31 2021-05-07 北京谊安医疗系统股份有限公司 Embedded software upgrading method
CN112732299A (en) * 2021-01-04 2021-04-30 北京无线电测量研究所 Method and system for updating program on line
CN112817620B (en) * 2021-01-08 2023-09-26 日立楼宇技术(广州)有限公司 Controller terminal program updating method, device, computer equipment and storage medium
CN112817620A (en) * 2021-01-08 2021-05-18 日立楼宇技术(广州)有限公司 Controller terminal program updating method, device, computer equipment and storage medium
CN113055653B (en) * 2021-03-22 2023-05-30 深圳市安软科技股份有限公司 Automatic updating method and device of image acquisition equipment and related equipment
CN113055653A (en) * 2021-03-22 2021-06-29 深圳市安软科技股份有限公司 Automatic updating method and device of image acquisition equipment and related equipment
CN114978896A (en) * 2022-04-18 2022-08-30 中国电子科技集团公司第二十九研究所 Online reconstruction method for embedded software of heterogeneous platform
CN114978896B (en) * 2022-04-18 2024-01-23 中国电子科技集团公司第二十九研究所 Online reconstruction method for embedded software of heterogeneous platform

Similar Documents

Publication Publication Date Title
CN108446128A (en) A kind of method for upgrading software and device
CN110024362B (en) Bluetooth test system and method
CN103809996B (en) The method and its broadcasting system for being updated over driver are propagated mobile computing device
CN104503796B (en) A kind of configurable whole network remote node firmware upgrade method based on IAP
CN104199706A (en) Firmware upgrade method and device for eMMC
CN110781085B (en) Game automatic testing method, device, terminal and computer storage medium
CN111651180B (en) Firmware updating method and device, processor and intelligent gateway equipment
CN103580942B (en) A kind of simulative serial port method of testing and device
CN109669714A (en) Firmware upgrade method, device and computer readable storage medium
CN109656597A (en) Firmware upgrade method, device and computer readable storage medium
CN107592338B (en) Dynamic library updating system, method and related equipment
CN109189421A (en) Burning management method, device and programming system based on programming system server
CN110032507A (en) Applied program testing method, device, system, electronic equipment and storage medium
CN109189409A (en) Programming system, programming system server and its parallel programming management method and device
CN107741950A (en) Processing method, device, processor and the service end of data syn-chronization task
US9983867B2 (en) Software image provisioning and charging system
CN110750463A (en) Applet testing method, device, system, equipment and medium
CN109408090A (en) Upgrade method, data converter and the readable storage medium storing program for executing of device software
CN103533164A (en) Method and device for controlling document display by utilizing wireless terminal
CN109086060A (en) The method of system, electronic equipment and online upgrading firmware
CN104053030A (en) Combined television starting method and combined television
CN113743143B (en) Distribution network binding method and system of intelligent equipment of Internet of things
CN111683372B (en) Attribute information processing method, attribute information processing device, processor and terminal
CN106201555A (en) Application resource updating method, device and system
CN104123160A (en) Element level updating method for navigation 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
RJ01 Rejection of invention patent application after publication

Application publication date: 20180824

RJ01 Rejection of invention patent application after publication