CN108897565A - Method for upgrading software, device and electronic equipment in a kind of electronic equipment - Google Patents

Method for upgrading software, device and electronic equipment in a kind of electronic equipment Download PDF

Info

Publication number
CN108897565A
CN108897565A CN201810628238.7A CN201810628238A CN108897565A CN 108897565 A CN108897565 A CN 108897565A CN 201810628238 A CN201810628238 A CN 201810628238A CN 108897565 A CN108897565 A CN 108897565A
Authority
CN
China
Prior art keywords
application program
electronic equipment
information
upgrade
program
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.)
Granted
Application number
CN201810628238.7A
Other languages
Chinese (zh)
Other versions
CN108897565B (en
Inventor
李昭早
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Autel Intelligent Aviation Technology Co Ltd
Original Assignee
Shenzhen Autel Intelligent Aviation 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 Shenzhen Autel Intelligent Aviation Technology Co Ltd filed Critical Shenzhen Autel Intelligent Aviation Technology Co Ltd
Priority to CN201810628238.7A priority Critical patent/CN108897565B/en
Priority to PCT/CN2018/106554 priority patent/WO2019242133A1/en
Publication of CN108897565A publication Critical patent/CN108897565A/en
Application granted granted Critical
Publication of CN108897565B publication Critical patent/CN108897565B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • G06F8/654Updates using techniques specially adapted for alterable solid state memories, e.g. for EEPROM or flash memories

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 present embodiments relate to software upgrading technical field, method for upgrading software, device and the electronic equipment in a kind of electronic equipment are disclosed.Wherein, the method includes:Obtain the version information of the first application program in the system of the electronic equipment;According to the version information of first application program, from the upgrade information of the systematic difference program prestored, determine the upgrade information of first application program, wherein the upgrade information of the systematic difference program prestored is stored in the storage device in the electronic equipment;First application program is upgraded according to the upgrade information.By the method for upgrading software in the electronic equipment, the stability of software upgrading can be effectively improved.

Description

Method for upgrading software, device and electronic equipment in a kind of electronic equipment
Technical field
The present embodiments relate to the software upgrading sides in software upgrading technical field more particularly to a kind of electronic equipment Software updating apparatus and electronic equipment in method, electronic equipment.
Background technique
The purpose of for the demand for better meeting user or preventing the invasion of virus, it usually needs to various electronic equipments Software upgrading is carried out, for example, carrying out software upgrading to electronic equipments such as aircraft, remote control equipments.Software upgrading, namely apply journey The upgrading of sequence refers to the update of software or application program from lowest version to highest version.Usual software developer is writing software When, due to designer considered that not comprehensive or program function was not perfect etc. at that time, after software publishing, need to program New function is modified or is added, that is, high software version to be replaced to low software version, to repair the portion of lowest version Divide BUG etc..The software of electronic equipment can have after upgrading than original version better performance, and more optimized effect allows user There can be better experience.
In the implementation of the present invention, inventor has found that the relevant technologies have at least the following problems:Electronic equipment at present Software upgrading stability it is poor.The stability difference of software upgrading refers in software upgrade process, if encountering emergency case, such as When power-off, software upgrading failure will lead to.And software upgrading failure may seriously affect the normal of electronic equipment Use function.
Summary of the invention
The present application embodiment provides method for upgrading software, device and the electronic equipment in a kind of electronic equipment, can be with The stability of the software upgrading of electronic equipment is improved, even if guaranteeing to encounter the emergency cases such as power-off in software upgrade process, After re-powering, software upgrading can be re-started.
The embodiment of the invention discloses following technical solutions:
In a first aspect, the embodiment of the invention provides the method for upgrading software in a kind of electronic equipment, the method includes:
Obtain the version information of the first application program in the system of the electronic equipment;
According to the version information of first application program, from the upgrade information of the systematic difference program prestored In, determine the upgrade information of first application program, wherein the upgrade information of the systematic difference program prestored It is stored in the storage device in the electronic equipment;
First application program is upgraded according to the upgrade information.
In some embodiments, the version number that the version information is used to indicate first application program whether there is.
In some embodiments, the version information according to first application program, from the system prestored In the upgrade information of application program, the upgrade information of first application program is determined, including:
When in the version information of acquisition there are version number, and the version number in the version information obtained be less than prestore it is described When the version number of the first application program of system, from the upgrade information of the systematic difference program prestored, described in determination The upgrade information of first application program.
In some embodiments, the version information according to first application program, from the system prestored In the upgrade information of application program, the upgrade information of first application program is determined, including:
In the absence of the version information of acquisition is used to indicate the version number of first application program, described in prestoring In the upgrade information of systematic difference program, the upgrade information of first application program is determined.
In some embodiments, the version information of first application program is the system operation starting script, to open It moves and generates after the first application program in the system.
In some embodiments, the starting script is also used to start the upgrade script in the storage device, so that institute It states storage device and runs the upgrade script.
In some embodiments, the version information of the first application program in the system for obtaining the electronic equipment, Including:
By running the upgrade script, the version letter of the first application program in system to obtain the electronic equipment Breath.
In some embodiments, the upgrade information includes matching for the second application program and/or second application program Set file;Wherein, second application program is the upgraded version of first application program.
In some embodiments, described that first application program is upgraded according to the upgrade information, including:
The upgrade information is covered into first application program and/or first application in the systematic difference layer The configuration information of program.
Second aspect, the embodiment of the invention provides the software updating apparatus in a kind of electronic equipment, described device includes:
Version information obtains module, the version letter of the first application program in system for obtaining the electronic equipment Breath;
Upgrade information determining module, for the version information according to first application program, from the system prestored Application program upgrade information in, determine the upgrade information of first application program, wherein the system prestored The upgrade information of application program be stored in the storage device in the electronic equipment;
Upgraded module, for being upgraded according to the upgrade information to first application program.
In some embodiments, the version number that the version information is used to indicate first application program whether there is.
In some embodiments, the upgrade information determining module is specifically used for:
When in the version information of acquisition there are version number, and the version number in the version information obtained be less than prestore it is described When the version number of the first application program of system, from the upgrade information of the systematic difference program prestored, described in determination The upgrade information of first application program.
In some embodiments, the upgrade information determining module is specifically used for:
In the absence of the version information of acquisition is used to indicate the version number of first application program, described in prestoring In the upgrade information of systematic difference program, the upgrade information of first application program is determined.
In some embodiments, the version information of first application program is the system operation starting script, to open It moves and generates after the first application program in the system.
In some embodiments, the starting script is also used to start the upgrade script in the storage device, so that institute It states storage device and runs the upgrade script.
In some embodiments, the version information obtains module and is specifically used for:
By running the upgrade script, the version letter of the first application program in system to obtain the electronic equipment Breath.
In some embodiments, the upgrade information includes matching for the second application program and/or second application program Set file;Wherein, second application program is the upgraded version of first application program.
In some embodiments, the upgraded module is specifically used for:
The upgrade information is covered into first application program and/or first application in the systematic difference layer The configuration information of program.
The third aspect, the embodiment of the invention provides a kind of electronic equipment, including:
At least one processor;And
The memory being connect at least one described processor communication;Wherein,
The memory is stored with the instruction that can be executed by least one described processor, and described instruction is by described at least one A processor executes, so that at least one described processor is able to carry out the software upgrading side in electronic equipment as described above Method.
Fourth aspect, the embodiment of the invention provides a kind of computer program product, the computer program product includes The computer program being stored on non-volatile computer readable storage medium storing program for executing, the computer program include program instruction, when When described program instruction is computer-executed, computer is made to execute the method for upgrading software in electronic equipment as described above.
5th aspect, the embodiment of the invention also provides a kind of non-volatile computer readable storage medium storing program for executing, the calculating Machine readable storage medium storing program for executing is stored with computer executable instructions, and the computer executable instructions are as above for executing computer Method for upgrading software in the electronic equipment.
The embodiment of the present invention, determined by from the upgrade information of the systematic difference program of the electronic equipment prestored Upgrade information, is upgraded with the first application program in the system to electronic equipment, and what it is due to the electronic equipment prestored is The upgrade information of the application program of system is stored in the storage device in electronic equipment, even if encountering power-off etc. in escalation process Emergency case can't also damage the systematic difference of the electronic equipment prestored in the storage device being stored in electronic equipment The upgrade information of program can be believed from the upgrading of the systematic difference program of the electronic equipment prestored again after re-powering Upgrade information is determined in breath, to re-start upgrading, to improve the stability of the software upgrading in electronic equipment, and then is guaranteed The normal use of electronic equipment.
Detailed description of the invention
Fig. 1 is the signal of the application environment of the method for upgrading software in a kind of electronic equipment provided in an embodiment of the present invention Figure;
Fig. 2 is the flow diagram of the software upgrading in a kind of electronic equipment provided in an embodiment of the present invention;
Fig. 3 is the structural schematic diagram of the system of electronic equipment provided in an embodiment of the present invention;
Fig. 4 is the software updating apparatus schematic diagram in a kind of electronic equipment provided in an embodiment of the present invention;
Fig. 5 is the hardware structural diagram of the system in electronic equipment provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention is described, and shows So, described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on the implementation in the present invention Example, every other embodiment obtained by those of ordinary skill in the art without making creative efforts belong to The scope of protection of the invention.
In addition, as long as technical characteristic involved in the various embodiments of the present invention described below is each other not Constituting conflict can be combined with each other.
Fig. 1 is showing for one of application environment of the method for upgrading software in electronic equipment provided in an embodiment of the present invention It is intended to.Wherein, include in the application environment:Upgrading terminals 10 and electronic equipment 20, the upgrading terminals 10 and the electronic equipment Communication connection.
Wherein, which includes:Storage device 21, system 22 and ontology (not shown).Storage device 21 can be with It is fixed in the ontology of electronic equipment 20 or storage device 21 can be detachable with the progress of the ontology of electronic equipment 20 Ground connection.For example, 20 ontology of electronic equipment is provided with the interface for accommodating storage device 21, which can be placed in In the interface, and it is electrically connected by the interface with the realization of system 22 in electronic equipment 20.System 22 refers in electronic equipment Computer system may include hardware;For controlling the system software of hardware, such as operating system, compiler;And application Program etc..Wherein, electronic equipment 20 may include multiple systems, may include flight such as when electronic equipment 20 is aircraft Multiple systems such as control system, master control system, vision system, image transmission system, may include in each system operating system or Person does not include operating system.
Wherein, application program relevant to electronic equipment upgrading, upgrading terminals 10 can be installed in the upgrading terminals 10 The application program in the system 22 of electronic equipment 20 can be upgraded using application program, such as upgrading terminals can will rise Grade information is transmitted in the corresponding system 22 of electronic equipment 20 namely upgrading terminals 10 may be implemented to transmit to electronic equipment 20 The upgrade information of the application program of system 22.Upgrade information may include upgrade package and configuration file of application program etc..The liter Grade information can be what upgrading terminals 10 were requested to server, alternatively, the upgrade information can be server to upgrading end 10 push of end.
In the embodiment of the present application, before electronic equipment 20 carries out software upgrading, upgrading terminals 10 can be first by system 22 The upgrade information of application program be transmitted to the storage device 21 of electronic equipment 20.
For example, the mode of transmission may include:When storage device 21 is fixed in electronic equipment 20, upgrading terminals 10 can be sent to the upgrade information of the application program of system 22 in storage device 21 by radio connection;Alternatively, rising Grade terminal 10, will be in the upgrade information write storage device 21 of the application program of system 22 by wired connection mode.Work as storage When device 21 is removably arranged in electronic equipment 20, upgrading terminals 10 can be by for accommodating the storage device 21 Interface, realization is attached with storage device 21, and then the upgrade information of the application program of system 22 can be transmitted to storage In device 21.
In the embodiment of the present application, which may include smart phone, PC, wearable smart machine etc. Terminal device.
Electronic equipment 20 is the executing subject for executing the method for upgrading software in electronic equipment provided in an embodiment of the present invention. Particularly, when the embodiment of the present application is applied to unmanned plane field, which can be aircraft or remote control equipment.Its In, aircraft may include:Fixed Wing AirVehicle, multi-rotor aerocraft etc..Here, aircraft can refer to unmanned vehicle (Unmanned Aerial Vehicle, UAV).
A kind of application scenarios of the embodiment of the present application are illustratively illustrated by taking UAV as an example below.
UAV includes:Storage device 21, system 22 and fuselage (not shown).
Wherein, storage device 21 can be the device for arbitrarily having store function, can be built in UAV, either Movably, such as SD card.Upgrade information of the storage device 21 for the application program of storage system 22.
Wherein, system 22 is the system in UAV including application program.For example, the system 22 can be:Image transmission system, electricity One in adjusting system, camera system, flight control system, vision system etc., it is multiple or whole.Wherein, it can be configured in system 22 There is independent operating system, there is one or more application program in system 22, the method for upgrading software in the electronic equipment is applicable in In one or more of above system, or whole application programs.In software upgrading namely system 22 in electronic equipment The upgrading of application program.
In order to enable UAV can better meet the demand of user, it usually needs carry out software upgrading namely right to UAV The application program of the system 22 of UAV is upgraded, and to optimize the function of UAV, allows user that can have better experience.
In conjunction with above-mentioned application scenarios, main purpose of the embodiment of the present invention is to provide the software upgrading in a kind of electronic equipment Method, apparatus and electronic equipment can be improved the stability of the software upgrading of the electronic equipments such as UAV, and then guarantee electronic equipment Normal use.
With reference to the accompanying drawing, the embodiment of the present invention is further elaborated.
Embodiment 1:
Fig. 2 is the flow diagram of the method for upgrading software in a kind of electronic equipment provided in an embodiment of the present invention.The party Method can be executed by the various electronic equipments with certain logical operation process ability, such as aircraft, remote control equipment.This method can For upgrading to various softwares, such as embedded software to the embedded software of tape operation system or non-tape operation system (application program) upgrades etc..
Referring to Fig. 2, the method for upgrading software in the electronic equipment includes:
201:Obtain the version information of the first application program in the system of the electronic equipment.
The first application program in the system of the electronic equipment refers in the system to be to complete a certain or multinomial spy Surely the computer program to work.Wherein, the first application program can refer to any one application program in system.For example, such as Shown in Fig. 3, electronic equipment includes:System and storage device.The system of electronic equipment is by taking embedded system as an example, for the insertion For formula system, Flash partition includes three parts:Uboot subregion, kernel kernel subregion and rootfs subregion.Wherein, Several application programs (such as App11、App12、...、App1N) and the first application program configuration file (such as Config11、 Config12、...、Config1N) it is placed on the rootfs subregion of embedded system namely the application layer of embedded system.Its In, the corresponding configuration file of each application program, such as App11With Config11It is corresponding.The above-mentioned software in electronic equipment Upgrade namely the application program in the system of electronic equipment is upgraded.
The version information of first application program is system operation starting script (loader script), to start It states and generates after the first application program in system.For example, operation loader script, is answered with starting first in rootfs subregion With program, to generate the version information of the first application program.
Optionally, the starting script is also used to start the upgrade script (upgrade in the storage device of electronic equipment Loader script) so that the storage device runs the upgrade script, to upgrade to the first application program.
Specifically, the version information of the first application program in the system of the electronic equipment is obtained, including:Pass through operation The upgrade script, the version information of the first application program in system to obtain the electronic equipment.
Specifically, the trigger condition of the upgrade script in the storage device of starting script startup electronic equipment includes but unlimited In it is following any one:1, after the starting of the system of electronic equipment or electronic equipment;2, the system of electronic equipment enters upgrade mode When;3, the system cut-off of electronic equipment or electronic equipment, then after re-powering.For example, since emergency case causes electronics to set Standby or electronic equipment system cut-off, after the system of electronic equipment or electronic equipment re-powers, loader script can be certainly The dynamic upgrade script (upgrade loader script) for finding storage device, and start upgrade loader script, so that institute Storage device operation upgrade loader script is stated, thus guarantee to continue to upgrade the first application program in system, To improve the stability of upgrading.Also, after re-powering, loader script can be automatically found upgrade loader foot This simultaneously starts, and runs the upgrade script will pass through, the first application program in system to obtain the electronic equipment Version information, and then subsequent upgrading is carried out, the entire escalation process after re-powering is participated in without artificial, can be certainly Dynamic, intelligence realization upgrading, effectively improves updating speed.
The version number that the version information is used to indicate first application program whether there is.That is, working as described first When application program operates normally, the version number of first application program is generated, for example, currently running application program is App1n(n =1,2 ... N), application program App1nCorresponding configuration file Config1n, then currently running application program App1nNormal fortune Row generates corresponding current version number after getting up and corresponds to V1n, such as generate version number " 1.0.0 ";When due to maloperation or first There are the reasons such as BUG will not then generate version number when first application program being caused to be not normally functioning for application program.Base It whether there is in the version number of first application program, so as to the upgrade information of subsequent the first application program of determination.
202:According to the version information of first application program, believe from the upgrading of the systematic difference program prestored In breath, the upgrade information of first application program is determined.
Wherein, the upgrade information of the systematic difference program prestored is stored in the storage in the electronic equipment In device.
Current upgrade method, usually by downloading or copying upgrade file to complete software upgrading, which liter The stability of grade is poor, if which encounters the emergency cases such as power-off or maloperation, will lead to the upgrade file quilt of downloading or copy Damage, since upgrade file has been damaged, after re-powering, cannot re-start software upgrading, that is, encountering power-off or mistake The emergency cases such as operation will lead to software upgrading failure.Software upgrading failure may seriously affect the normal of electronic equipment Use function.
And in the present embodiment, since the upgrade information of systematic difference program has been stored in advance, that is, the system prestored The upgrade information of the application program of system is stored in the storage device in the electronic equipment, and according to first application program Version information determine the upgrading of first application program from the upgrade information of the systematic difference program prestored Therefore information even if encountering the emergency cases such as power-off or maloperation in escalation process, can't also damage being stored in electronics and set The upgrade information of the systematic difference program of the electronic equipment prestored in storage device in standby, after re-powering, Again upgrade information is determined from the upgrade information of the systematic difference program of the electronic equipment prestored, to re-start upgrading, To improve the stability of the software upgrading in electronic equipment, and then guarantee the normal use of electronic equipment.
Wherein, the upgrade information includes the configuration file of the second application program and/or second application program;Its In, second application program is the upgraded version of first application program.For example, as described in Figure 2, the system of electronic equipment In include the first application program be App11、App12、...、App1N, corresponding configuration file is Config11、 Config12、...、Config1N;It is corresponding then in the storage device of electronic equipment, the first application program App11、 App12、...、App1NUpgrade information be the second application program App21、App22、...、App2NAnd/or described second apply journey The configuration file Config of sequence21、Config22、...、Config2N
The version number for being used to indicate first application program based on the version information in step 202 whether there is, Therefore, the version information according to first application program, from the upgrade information of the systematic difference program prestored In, it determines the upgrade information of first application program, may include following two mode:
1, when there are version number, and the version number in the version information obtained is less than the institute prestored in the version information of acquisition When stating the version number of the first application program of system, from the upgrade information of the systematic difference program prestored, institute is determined State the upgrade information of the first application program.For example, obtaining the first application program App in the system of the electronic equipment1nVersion There are version number V in this information1n, version number V1nCorresponding be stored in the system prestored in storage device first The version number V of application program2nIf version number V1nLess than version number V2n, such as version number V1nFor " 1.0.0 ", version number V2nFor " 2.0.0 " determines the upgrading letter of first application program then from the upgrade information of the systematic difference program prestored Otherwise breath indicates the version number of first application program indicated by the version information obtained for first application program most New version number namely first application program are without upgrading, to improve upgrading efficiency.At this point it is possible to export the first prompting letter Breath, the version number which is used to characterize first application program is latest edition number.
2, in the absence of the version information of acquisition is used to indicate the version number of first application program, from the institute prestored In the upgrade information for stating systematic difference program, the upgrade information of first application program is determined.When the version information of acquisition It is used to indicate in the absence of the version number of first application program and characterizes first application program and be in abnormal operating condition, such as The first application program as caused by power-off or maloperation is in abnormal operating condition, then needs answering from the system prestored With the upgrade information in the upgrade information of program, determining first application program, so as to it is subsequent to first application program into Row upgrading.
203:First application program is upgraded according to the upgrade information.
It, can will be in upgrade information in a covered manner writing system in a kind of implementation.Wherein, upgrade information can be with The upgrade package or installation kit of upgraded version including the first application program, it can be not understood as the second application program and second The corresponding configuration file of application program.
It is specifically included specifically, electronic equipment carries out upgrading to first application program according to the upgrade information:? The upgrade information is covered the configuration of first application program and/or first application program by the systematic difference layer Information, to further increase the stability of upgrading.Rootfs subregion in the systematic difference layer namely Fig. 2.Compared to right The mode that the area Flash is write with a brush dipped in Chinese ink can promote the stability of upgrading.Simultaneously as remaining uboot points in the area Flash Content in area, kernel kernel subregion, therefore improve upgrading efficiency.
It, can be with when there are multiple application programs due to including one or more application program in the system of electronic equipment Successively each application program is upgraded.Upgrading sequence can be the upgrading sequence of system default, be also possible to user certainly Definition setting, for example, successively being upgraded to each application program according to the number of each application program of system default;Or Person, for the severity level of user, successively each application program such as upgrades according to application program.Successively to the application Program carries out upgrading can be as follows:
Wherein, in order to improve the efficiency of upgrading, breakpoint mark can also be set in upgrade information, and breakpoint mark is used for Record the mark of the application program upgraded.In turn, when encounter power-off etc. emergency cases, after re-powering, loader Script finds the upgrade loader script of storage device and runs, and is identified according to breakpoint, upgrade loader script meeting The first application program upgraded when being quickly found out breakpoint, and according to the upgrade information to first application program again into Row upgrading, the configuration file of corresponding second application program and the second application program is also covered replace first application program With the configuration file of the first application program, the upgrading stability of the first application program ensure that.
Further, breakpoint mark can be also used for the Upgrade process for the application program that record is upgrading, Jin Er After re-powering, it can continue further to improve using journey the first application program updating based on the record in breakpoint mark The upgrading efficiency of sequence.
Also, after the application program updating in the complete paired systems of electronic equipment, the second prompting message can be exported, this Two prompting messages be used for characterize the first application program updating finish namely electronic equipment in software upgrade success.
In embodiments of the present invention, by from the upgrade information of the systematic difference program of the electronic equipment prestored institute really Fixed upgrade information is upgraded with the first application program in the system to electronic equipment, due to the electronic equipment prestored The upgrade information of systematic difference program be stored in the storage device in electronic equipment, even if being encountered in escalation process disconnected The emergency cases such as electricity or maloperation, can't also damage the electronic equipment prestored in the storage device being stored in electronic equipment The upgrade information of systematic difference program can be again from the systematic difference of the electronic equipment prestored after re-powering Upgrade information is determined in the upgrade information of program, to re-start upgrading, to improve the steady of the software upgrading in electronic equipment It is qualitative, and then guarantee the normal use of electronic equipment.
Embodiment 2:
Fig. 4 is the software updating apparatus schematic diagram in a kind of electronic equipment provided in an embodiment of the present invention.Wherein, described soft Part update device is configured in various electronic equipments, such as aircraft.Specifically, the aircraft can be unmanned plane etc..
Referring to Fig. 4, the software upgrading 40 in the electronic equipment includes:It is true that version information obtains module 401, upgrade information Cover half block 402 and upgraded module 403.
Specifically, version information obtains the first application program in system of the module 401 for obtaining the electronic equipment Version information.
The first application program in the system of the electronic equipment refers in the system to be to complete a certain or multinomial spy Surely the computer program to work.Wherein, the first application program can refer to any one application program in system.Above-mentioned upgrading Module 403 upgrades to the software upgrading in electronic equipment namely to the application program in the system of electronic equipment.
The version information of first application program is system operation starting script (loader script), to start It states and generates after the first application program in system.For example, operation loader script, is answered with starting first in rootfs subregion With program, to generate the version information of the first application program.
Optionally, the starting script is also used to start the upgrade script (upgrade in the storage device of electronic equipment Loader script) so that the storage device runs the upgrade script, to upgrade to the first application program.
It is specifically used for specifically, version information obtains module 401:By running the upgrade script, to obtain the electricity The version information of the first application program in the system of sub- equipment.
The version number that the version information is used to indicate first application program whether there is.That is, working as described first When application program operates normally, the version number of first application program is generated;When due to maloperation or the presence of the first application program The reasons such as BUG will not then generate version number when first application program being caused to be not normally functioning.It is answered based on described first It whether there is with the version number of program, so as to the upgrade information of subsequent the first application program of determination.
Specifically, upgrade information determining module 402 is used for the version information according to first application program, from what is prestored In the upgrade information of the systematic difference program, the upgrade information of first application program is determined.
Wherein, the upgrade information of the systematic difference program prestored is stored in the storage in the electronic equipment In device.
Current upgrade method, usually by downloading or copying upgrade file to complete software upgrading, which liter The stability of grade is poor, if which encounters the emergency cases such as power-off or maloperation, will lead to the upgrade file quilt of downloading or copy Damage, since upgrade file has been damaged, after re-powering, cannot re-start software upgrading, that is, encountering power-off or mistake The emergency cases such as operation will lead to software upgrading failure.Software upgrading failure may seriously affect the normal of electronic equipment Use function.
And in the present embodiment, since the upgrade information of systematic difference program has been stored in advance, that is, the system prestored The upgrade information of the application program of system is stored in the storage device in the electronic equipment, therefore, upgrade information determining module 402 can according to the version information of first application program, from the upgrade information of the systematic difference program prestored, The upgrade information of first application program is determined, therefore, even if encountering the burst feelings such as power-off or maloperation in escalation process Condition can't also damage the systematic difference program of the electronic equipment prestored in the storage device being stored in electronic equipment Upgrade information, after re-powering, upgrade information determining module 402 can be again from the systematic difference of the electronic equipment prestored Upgrade information is determined in the upgrade information of program, so that subsequent upgrade module 403 re-starts upgrading, to improve electronic equipment In software upgrading stability, and then guarantee electronic equipment normal use.
Wherein, the upgrade information includes the configuration file of the second application program and/or second application program;Its In, second application program is the upgraded version of first application program.
Upgrade information determining module 402 is according to the version information of first application program, from the system prestored In the upgrade information of application program, the upgrade information of first application program is determined, may include following two mode:
1, when there are version number, and the version number in the version information obtained is less than the institute prestored in the version information of acquisition When stating the version number of the first application program of system, from the upgrade information of the systematic difference program prestored, institute is determined State the upgrade information of the first application program.For example, obtaining the first application program App in the system of the electronic equipment1nVersion There are version number V in this information1n, version number V1nCorresponding be stored in the system prestored in storage device first The version number V of application program2nIf version number V1nLess than version number V2n, such as version number V1nFor " 1.0.0 ", version number V2nFor " 2.0.0 " determines the upgrading letter of first application program then from the upgrade information of the systematic difference program prestored Otherwise breath indicates the version number of first application program indicated by the version information obtained for first application program most New version number namely first application program are without upgrading, to improve upgrading efficiency.At this point it is possible to export the first prompting letter Breath, the version number which is used to characterize first application program is latest edition number.
2, in the absence of the version information of acquisition is used to indicate the version number of first application program, from the institute prestored In the upgrade information for stating systematic difference program, the upgrade information of first application program is determined.When the version information of acquisition It is used to indicate in the absence of the version number of first application program and characterizes first application program and be in abnormal operating condition, such as The first application program as caused by power-off or maloperation is in abnormal operating condition, then needs answering from the system prestored With the upgrade information in the upgrade information of program, determining first application program, so as to it is subsequent to first application program into Row upgrading.
Specifically, upgraded module 403 is for upgrading first application program according to the upgrade information.
It, can will be in upgrade information in a covered manner writing system in a kind of implementation.Wherein, upgrade information can be with The upgrade package or installation kit of upgraded version including the first application program, it can be not understood as the second application program and second The corresponding configuration file of application program.
Specifically, upgraded module 403 covering rather than upgrades application program by way of wiping.Specifically, rising Grade module 403 is specifically used for:The upgrade information is covered into first application program and/or institute in the systematic difference layer The configuration information of the first application program is stated, to further increase the stability of upgrading.In the systematic difference layer namely Fig. 2 Rootfs subregion.Compared to the mode write with a brush dipped in Chinese ink to the area Flash, the stability of upgrading can be promoted.Simultaneously as remaining The content in uboot subregion, kernel kernel subregion in the area Flash, therefore improve upgrading efficiency.
It, can be with when there are multiple application programs due to including one or more application program in the system of electronic equipment Successively each application program is upgraded.Upgrading sequence can be the upgrading sequence of system default, be also possible to user certainly Definition setting.
Wherein, in order to improve the efficiency of upgrading, breakpoint mark can also be set in upgrade information, and breakpoint mark is used for Record the mark of the application program upgraded.In turn, when encounter power-off etc. emergency cases, after re-powering, loader Script finds the upgrade loader script of storage device and runs, and is identified according to breakpoint, upgrade loader script meeting The first application program upgraded when being quickly found out breakpoint, upgraded module 403 can according to the upgrade information to this first Application program re-starts upgrading, also covers the configuration file of corresponding second application program and the second application program and replaces The configuration file of first application program and the first application program, without being risen since first the first application program again Grade, ensure that the upgrading stability of the first application program.
Further, breakpoint mark can be also used for the Upgrade process for the application program that record is upgrading, Jin Er After re-powering, it can continue further to improve using journey the first application program updating based on the record in breakpoint mark The upgrading efficiency of sequence.
Also, after the application program updating in the complete paired systems of upgraded module 403, the second prompting message can be exported, Second prompting message be used for characterize the first application program updating finish namely electronic equipment in software upgrade success.
It should be noted that in embodiments of the present invention, the executable side of software updating apparatus 40 in the electronic equipment Method for upgrading software in electronic equipment provided by method embodiment has the corresponding functional module of execution method and beneficial to effect Fruit.Not in the embodiment of software updating apparatus 40 in the electronic device detailed description technical detail, reference can be made to method implement Method for upgrading software in electronic equipment provided by example.
Embodiment 3:
Fig. 5 is the hardware structural diagram of the system in electronic equipment provided in an embodiment of the present invention.As shown in figure 5, institute The system 50 stated in electronic equipment includes:
One or more processors 501 and memory 502, in Fig. 5 by taking a processor 501 as an example.
Processor 501 can be connected with memory 502 by bus or other modes, to be connected by bus in Fig. 5 For.
Memory 502 is used as a kind of non-volatile computer readable storage medium storing program for executing, can be used for storing non-volatile software journey Sequence, non-volatile computer executable program and module, such as the software upgrading side in the electronic equipment in the embodiment of the present invention Corresponding program instruction/the module of method is (for example, attached version information shown in Fig. 4 obtains module 401, upgrade information determining module 402 And upgraded module 403).Processor 501 by operation be stored in memory 502 non-volatile software program, instruction with And module, thereby executing the various function application and data processing of the system 50 in electronic equipment, i.e. realization the method is real Apply the method for upgrading software in the electronic equipment of example.
Memory 502 may include storing program area and storage data area, wherein storing program area can store operation system Application program required for system, at least one function;Storage data area, which can be stored, uses institute according to the system 50 in electronic equipment The data etc. of creation.In addition, memory 502 may include high-speed random access memory, it can also include non-volatile memories Device, for example, at least a disk memory, flush memory device or other non-volatile solid state memory parts.In some embodiments In, optional memory 502 includes the memory remotely located relative to processor 501, these remote memories can pass through net Network is connected to the system 50 in electronic equipment.The embodiment of the network includes but is not limited to internet, intranet, local Net, mobile radio communication and combinations thereof.
One or more of modules are stored in the memory 502, when by one or more of processors When 501 execution, the method for upgrading software in the electronic equipment in the method embodiment is executed, for example, executing described above Method and step 201 in Fig. 2 realizes the function of the 401-403 module in Fig. 4 to step 203.
Illustratively, the system 50 in the electronic equipment can also include communication interface, the communication interface to realize with Other equipment, such as terminal device, are communicated.Other devices that system 50 in electronic equipment includes not limit herein.
Software upgrading side in electronic equipment provided by 50 executing method embodiment of system in the electronic equipment Method has the corresponding functional module of execution method and beneficial effect.Not detailed description in system embodiment in the electronic device Technical detail, reference can be made to the method for upgrading software in electronic equipment provided by embodiment of the method.
The embodiment of the invention provides a kind of computer program product, the computer program product is non-easy including being stored in Computer program on the property lost computer readable storage medium, the computer program includes program instruction, when described program refers to When order is computer-executed, computer is made to execute the method for upgrading software in electronic equipment as described above.For example, more than executing Method and step 201 in Fig. 2 of description realizes the function of the 401-403 module in Fig. 4 to step 203.
The embodiment of the invention provides a kind of non-volatile computer readable storage medium storing program for executing, the computer-readable storage mediums Matter is stored with computer executable instructions, and the computer executable instructions are set for making computer execute electronics as described above Method for upgrading software in standby.For example, executing method and step 201 in Fig. 2 described above to step 203, realize in Fig. 4 The function of 401-403 module.
It should be noted that the apparatus embodiments described above are merely exemplary, wherein described be used as separation unit The module that part illustrates may or may not be physically separated, and the component shown as module can be or can also Not to be physical module, it can it is in one place, or may be distributed on multiple network modules.It can be according to reality Need that some or all of the modules therein is selected to achieve the purpose of the solution of this embodiment.
By the description of above embodiment, those of ordinary skill in the art can be understood that each embodiment can borrow Help software that the mode of general hardware platform is added to realize, naturally it is also possible to pass through hardware.Those of ordinary skill in the art can manage All or part of the process in the solution realization embodiment method is can be by the relevant hardware of computer program instructions come complete At the program can be stored in computer-readable storage medium, and the program is when being executed, it may include such as each method Embodiment process.Wherein, the storage medium can be magnetic disk, CD, read-only memory (Read-Only Memory, ROM) or random access memory (RandomAccessMemory, RAM) etc..
Finally it should be noted that:The above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;At this It under the thinking of invention, can also be combined between the technical characteristic in above embodiments or different embodiment, step can be with It is realized with random order, and there are many other variations of different aspect present invention as described above, for simplicity, they do not have Have and is provided in details;Although the present invention is described in detail referring to the foregoing embodiments, the ordinary skill people of this field Member should understand that:It is still possible to modify the technical solutions described in the foregoing embodiments, or to part of skill Art feature is equivalently replaced;And these are modified or replaceed, each reality of the present invention that it does not separate the essence of the corresponding technical solution Apply the range of a technical solution.

Claims (11)

1. the method for upgrading software in a kind of electronic equipment, which is characterized in that including:
Obtain the version information of the first application program in the system of the electronic equipment;
According to the version information of first application program, from the upgrade information of the systematic difference program prestored, really The upgrade information of fixed first application program, wherein the upgrade information of the systematic difference program prestored stores In storage device in the electronic equipment;
First application program is upgraded according to the upgrade information.
2. the method according to claim 1, wherein the version information is used to indicate first application program Version number whether there is.
3. according to the method described in claim 2, it is characterized in that, the version information according to first application program, From the upgrade information of the systematic difference program prestored, the upgrade information of first application program is determined, including:
When there are version number, and the version number in the version information obtained is less than the system prestored in the version information of acquisition The first application program version number when, from the upgrade information of the systematic difference program prestored, determine described first The upgrade information of application program.
4. according to the method described in claim 2, it is characterized in that, the version information according to first application program, From the upgrade information of the systematic difference program prestored, the upgrade information of first application program is determined, including:
In the absence of the version information of acquisition is used to indicate the version number of first application program, from the system prestored Application program upgrade information in, determine the upgrade information of first application program.
5. method described in -4 according to claim 1, which is characterized in that the version information of first application program is the system System operation starting script is generated after the first application program in the system with starting.
6. according to the method described in claim 5, it is characterized in that, the starting script is also used to start in the storage device Upgrade script so that the storage device runs the upgrade script.
7. according to the method described in claim 6, it is characterized in that, first in the system for obtaining the electronic equipment answers With the version information of program, including:
By running the upgrade script, the version information of the first application program in system to obtain the electronic equipment.
8. method according to claim 1-7, which is characterized in that the upgrade information includes the second application program And/or the configuration file of second application program;Wherein, second application program is the upgrading of first application program Version.
9. according to the method described in claim 8, it is characterized in that, described apply journey to described first according to the upgrade information Sequence is upgraded, including:
The upgrade information is covered into first application program and/or first application program in the systematic difference layer Configuration information.
10. the software updating apparatus in a kind of electronic equipment, which is characterized in that described device includes:
Version information obtains module, the version information of the first application program in system for obtaining the electronic equipment;
Upgrade information determining module, for the version information according to first application program, from answering for the system prestored With the upgrade information in the upgrade information of program, determining first application program, wherein the system prestored is answered It is stored in the storage device in the electronic equipment with the upgrade information of program;
Upgraded module, for being upgraded according to the upgrade information to first application program.
11. a kind of electronic equipment, which is characterized in that the electronic equipment includes:
At least one processor;And
The memory being connect at least one described processor communication;Wherein,
The memory is stored with the instruction that can be executed by least one described processor, and described instruction is by described at least one It manages device to execute, so that at least one described processor is able to carry out the described in any item methods of claim 1-9.
CN201810628238.7A 2018-06-19 2018-06-19 Software upgrading method and device in electronic equipment and electronic equipment Active CN108897565B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201810628238.7A CN108897565B (en) 2018-06-19 2018-06-19 Software upgrading method and device in electronic equipment and electronic equipment
PCT/CN2018/106554 WO2019242133A1 (en) 2018-06-19 2018-09-19 Software upgrading method in electronic device, apparatus and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810628238.7A CN108897565B (en) 2018-06-19 2018-06-19 Software upgrading method and device in electronic equipment and electronic equipment

Publications (2)

Publication Number Publication Date
CN108897565A true CN108897565A (en) 2018-11-27
CN108897565B CN108897565B (en) 2021-06-18

Family

ID=64345009

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810628238.7A Active CN108897565B (en) 2018-06-19 2018-06-19 Software upgrading method and device in electronic equipment and electronic equipment

Country Status (2)

Country Link
CN (1) CN108897565B (en)
WO (1) WO2019242133A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109511012A (en) * 2018-11-30 2019-03-22 深圳创维数字技术有限公司 Set top box upgrading test method, device, electronic equipment and medium
CN110502271A (en) * 2019-07-22 2019-11-26 平安科技(深圳)有限公司 Application program based on block chain sends out version method and system

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030100297A1 (en) * 2001-11-27 2003-05-29 Riordan Kenneth B. Method of software configuration assurance in programmable terminal devices
JP2008027149A (en) * 2006-07-20 2008-02-07 Hitachi Ltd Maintenance information management system
CN102004657A (en) * 2010-12-15 2011-04-06 周佳 Electronic equipment and updating method thereof
CN102955699A (en) * 2011-08-17 2013-03-06 施耐德电器工业公司 Software upgrade package creating method and software upgrading method
CN103324507A (en) * 2013-06-25 2013-09-25 宇龙计算机通信科技(深圳)有限公司 Method and apparatus for updating terminal preset application program
US20140059534A1 (en) * 2012-08-22 2014-02-27 General Electric Company Method and system for software management
CN104461594A (en) * 2013-09-22 2015-03-25 杭州海康威视数字技术股份有限公司 Updating method and device of embedded operating system
CN106484450A (en) * 2015-08-28 2017-03-08 青岛海信移动通信技术股份有限公司 A kind of method for upgrading software and device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030100297A1 (en) * 2001-11-27 2003-05-29 Riordan Kenneth B. Method of software configuration assurance in programmable terminal devices
JP2008027149A (en) * 2006-07-20 2008-02-07 Hitachi Ltd Maintenance information management system
CN102004657A (en) * 2010-12-15 2011-04-06 周佳 Electronic equipment and updating method thereof
CN102955699A (en) * 2011-08-17 2013-03-06 施耐德电器工业公司 Software upgrade package creating method and software upgrading method
US20140059534A1 (en) * 2012-08-22 2014-02-27 General Electric Company Method and system for software management
CN103324507A (en) * 2013-06-25 2013-09-25 宇龙计算机通信科技(深圳)有限公司 Method and apparatus for updating terminal preset application program
CN104461594A (en) * 2013-09-22 2015-03-25 杭州海康威视数字技术股份有限公司 Updating method and device of embedded operating system
CN106484450A (en) * 2015-08-28 2017-03-08 青岛海信移动通信技术股份有限公司 A kind of method for upgrading software and device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109511012A (en) * 2018-11-30 2019-03-22 深圳创维数字技术有限公司 Set top box upgrading test method, device, electronic equipment and medium
CN110502271A (en) * 2019-07-22 2019-11-26 平安科技(深圳)有限公司 Application program based on block chain sends out version method and system

Also Published As

Publication number Publication date
WO2019242133A1 (en) 2019-12-26
CN108897565B (en) 2021-06-18

Similar Documents

Publication Publication Date Title
CN108228209B (en) System, method, and medium for automatically updating firmware of elements of a server system
US11467823B2 (en) Constructing software delta updates for controller software and abnormality detection based on toolchain
US7809836B2 (en) System and method for automating bios firmware image recovery using a non-host processor and platform policy to select a donor system
US10002054B2 (en) Method and system for performing automatic system recovery
CN107980119B (en) Server management method and server
CN108958774A (en) Module updating method and module to be upgraded in UAV system
US8893114B1 (en) Systems and methods for executing a software package from within random access memory
CN105450759A (en) System mirror image management method and device
EP4095678A1 (en) Method and apparatus of deploying a cluster, device and storage medium
CN108897565A (en) Method for upgrading software, device and electronic equipment in a kind of electronic equipment
US20230229481A1 (en) Provisioning dpu management operating systems
US20230229480A1 (en) Provisioning dpu management operating systems using firmware capsules
CN111913719B (en) Deployment method, device and apparatus of high-availability software and computer storage medium
CN114489701A (en) Configuration method and device of artificial intelligence software deployment environment and electronic equipment
CN111343011A (en) Openstack network fusion control method and system for cloud management platform
CN113419813B (en) Method and device for deploying bare engine management service based on container platform
US11295018B1 (en) File system modification
CN109426511A (en) Soft core update method and system
CN110502238A (en) A kind of method and device of front and back end joint debugging
CN111142885A (en) eSIM device management method, device, equipment and storage medium
US10579431B2 (en) Systems and methods for distributed management of computing resources
CN110688130A (en) Physical machine deployment method, physical machine deployment device, readable storage medium and electronic equipment
US20230229417A1 (en) Technologies for over-the-air updates for telematics systems
CN109558179A (en) Program code on-line loaded method, program code online upgrading method and system
CN104657240A (en) Failure control method and failure control device of multi-kernel operating system

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
CB02 Change of applicant information

Address after: 518055 Guangdong city of Shenzhen province Nanshan District Xili Street Xueyuan Road No. 1001 Chi Yuen Building 9 layer B1

Applicant after: Shenzhen daotong intelligent Aviation Technology Co.,Ltd.

Address before: 518055 Guangdong city of Shenzhen province Nanshan District Xili Street Xueyuan Road No. 1001 Chi Yuen Building 9 layer B1

Applicant before: AUTEL ROBOTICS Co.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant