CN109086065A - A kind of method for upgrading software, system and terminal device - Google Patents

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

Info

Publication number
CN109086065A
CN109086065A CN201810936644.XA CN201810936644A CN109086065A CN 109086065 A CN109086065 A CN 109086065A CN 201810936644 A CN201810936644 A CN 201810936644A CN 109086065 A CN109086065 A CN 109086065A
Authority
CN
China
Prior art keywords
software
upgrading
file
update
upgrade
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
CN201810936644.XA
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.)
Shenzhen Yijian Car Service Technology Co.,Ltd.
Original Assignee
Shenzhen Launch 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 Launch Technology Co Ltd filed Critical Shenzhen Launch Technology Co Ltd
Priority to CN201810936644.XA priority Critical patent/CN109086065A/en
Publication of CN109086065A publication Critical patent/CN109086065A/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

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 application belongs to field of communication technology, more particularly to a kind of method for upgrading software, system and terminal device, it include: the upgrade command for receiving software, the upgrading source for upgrading the software is determined according to the upgrade command, the connection status of inspection software and the upgrading source, if being in connection status with the upgrading source, is obtained from the upgrading source and update file;According to software described in the update document upgrading.Terminal device can not only obtain update file from different upgrading sources during this, such as server or external storage, to ensure that terminal device can also carry out the upgrading of software under the single cpu mode of no network.

Description

A kind of method for upgrading software, system and terminal device
Technical field
The application belongs to field of communication technology more particularly to a kind of method for upgrading software, system and terminal device.
Background technique
During software development and maintenance, it is often necessary to upgrade to software, software can be corrected existing by upgrading There are the loophole or addition new opplication function of version, improves software more handy.The upgrading of software generally have automatic upgrading and User upgrades manually, and the software upgrade procedure of Most current is generally embedded in the software, can only support the liter of this software Grade.Traditional automatic upgrading generally requires terminal device after being connected to the network, and downloading software installation packet is to corresponding soft Part is upgraded, but for single machine user, can not connect server network at it and can not upgrade is also pain spot, separately It outside, is also a problem to be solved without the upgrading for embedding upgrade procedure software.
Summary of the invention
In view of this, the embodiment of the present application provides a kind of method for upgrading software, system and terminal device, to solve existing skill The single problem of upgrade method in art software upgrade process.
The embodiment of the present application first aspect provides a kind of method for upgrading software, and the method for upgrading software includes:
The upgrade command for receiving software determines the upgrading source for upgrading the software according to the upgrade command;
The connection status of inspection software and the upgrading source, if connection status is in the upgrading source, from the liter Grade source, which obtains, updates file;
According to software described in the update document upgrading.
Optionally, in the upgrade command for receiving software, the liter for upgrading the software is determined according to the upgrade command Grade source includes: later
According to the upgraded version of the upgrade command inspection software of the software;
If the upgraded version is customer upgrade, detect whether the software needs to upgrade.
Correspondingly, described obtain from the upgrading source updates file, comprising:
If the software is upgraded, is obtained from the upgrading source and update file.
Optionally, it if the software is upgraded, is obtained from the upgrading source and updates file, comprising:
If being in connection status with the upgrading source, upgrade file is obtained from the upgrading source;
The listed files of the upgrade file and the listed files in the first configuration file are compared, obtain it is described more New file.
Optionally, include: after the software according to the update document upgrading
The update file is stored into the listed files of first configuration file.
Optionally, after the connection status in the inspection software and the upgrading source, further includes:
Obtain the upgrade file in the second configuration file;
Judge whether the size of the upgrade file in second configuration file and the update file of downloading is consistent;
If the two is in the same size, according to software described in the update document upgrading.
Optionally, the software according to the update document upgrading, comprising:
Judge in local program installation directory whether existing file of the same name identical with the update file name;
If it does not exist, then the update file is stored into the local program installation directory, according to the update text Part upgrades corresponding software.
If the existing file of the same name, changes the filename of the file of the same name in the local program installation directory The file of the same name is stored in the form of backing up file afterwards.
Optionally, in software software corresponding according to the update document upgrading, if there is software upgrading mistake, Then it is updated error rollback.
The embodiment of the present application second aspect provides a kind of software update system, and the software update system includes:
Receiving unit determines the liter for upgrading the software according to the upgrade command for receiving the upgrade command of software Grade source;
Acquiring unit, for the connection status of inspection software and the upgrading source, if being in connection shape with the upgrading source State then obtains from the upgrading source and updates file;
Upgrade unit, for according to the corresponding software of the update document upgrading.
Optionally, the software update system further include:
Upgraded version detection unit, for the upgraded version according to the upgrade command inspection software of the software;
If the upgraded version is customer upgrade, detect whether the software needs to upgrade.
Correspondingly, described obtain from the upgrading source updates file, comprising:
If the software is upgraded, is obtained from the upgrading source and update file.
Optionally, the acquiring unit is specifically used for:
If being in connection status with the upgrading source, upgrade file is obtained from the upgrading source;
The listed files of the upgrade file and the listed files in the first configuration file are compared, obtain it is described more New file.
Optionally, the software update system further include:
Storage unit, for after the corresponding software according to the update document upgrading, storing the update text Part is into the listed files of first configuration file.
Optionally, the software update system is also used to:
Obtain the upgrade file in the second configuration file;
Judge whether the size of the upgrade file in second configuration file and the update file of downloading is consistent;
If the two is in the same size, according to software described in the update document upgrading.
The upgrade unit further include:
Second judgment module, it is whether existing with the update file name phase for judging in local program installation directory Same file of the same name;
If it does not exist, then the update file is stored into the local program installation directory, according to the update text Part upgrades corresponding software.
If the existing file of the same name, changes the filename of the file of the same name in the local program installation directory The file of the same name is stored in the form of backing up file afterwards.
Optionally, the software update system of the mobile unit is also used in the software according to the update document upgrading When corresponding software, if there is software upgrading mistake, it is updated error rollback.
The embodiment of the present application third aspect provides a kind of terminal device, including memory, processor and is stored in institute State the computer program that can be run in memory and on the processor, which is characterized in that the processor executes the meter It is realized when calculation machine program as described in above-mentioned first aspect the step of any one of method for upgrading software the method.
The embodiment of the present application fourth aspect provides a kind of computer readable storage medium, the computer-readable storage medium Matter is stored with computer program, realizes when the computer program is executed by processor such as the software liter as described in above-mentioned first aspect The step of any one of grade method the method.
In embodiment provided by the present application when receiving software upgrade instruction, determined first according to above-mentioned upgrade command soft The upgrading source of part upgrading, at this point, if terminal device opens upgrade status and is in connection status with upgrading source, from above-mentioned upgrading It is obtained in source after updating file, according to above-mentioned update file by corresponding software upgrading.Terminal device is not only during this It can be obtained from different upgrading sources and update file, such as server or external storage, to ensure that terminal device The upgrading of software can also be carried out under the single cpu mode of no network.
Detailed description of the invention
Technical solution in ord to more clearly illustrate embodiments of the present application, below will be to needed in the embodiment attached Figure is briefly described.
Fig. 1 is a kind of composed structure schematic diagram of method for upgrading software provided by the embodiments of the present application;
Fig. 2 is a kind of implementation process schematic diagram of method for upgrading software provided by the embodiments of the present application;
Fig. 3 is a kind of structural schematic diagram of software update system provided by the embodiments of the present application;
Fig. 4 is a kind of schematic diagram of terminal device provided by the embodiments of the present application.
Specific embodiment
It is with reference to the accompanying drawings and embodiments, right in order to which the objects, technical solutions and advantages of the application are more clearly understood The application is further elaborated.It should be appreciated that specific embodiment described herein is only used to explain the application, and It is not used in restriction the application.Meanwhile in the description of the present application, term " first ", " second " etc. are only used for distinguishing description, without It can be interpreted as indication or suggestion relative importance.In other situations, omit to well-known system, system, circuit and The detailed description of method, so as not to obscure the description of the present application with unnecessary details.
In order to illustrate technical solution described herein, the following is a description of specific embodiments.
Fig. 1 shows a kind of composed structure schematic diagram of method for upgrading software provided by the embodiments of the present application, and the application exists 3 parts: an AutoUpdater.exe file, one can be divided by carrying out program performed by software upgrading AutoUpdaterConfig.xml file, a CreateXmlTools.exe file.
Wherein, AutoUpdater.exe file is the main program of software upgrading, and which provide different upgrading sources, such as Server updating (automatic upgrading) and external storage such as (USB flash disk upgrading), the external storage of the application by taking USB flash disk as an example into Row explanation.The AutoUpdater.exe file also provides the interface for carrying out software upgrading, and the interface is for checking whether there is Software upgrading carries out software upgrading when there is software to need to update (software upgrading is identical as the update meaning of software in the application) And rollback is carried out when the error occurs in software upgrading, above-mentioned main program also provides the functions such as log recording.
AutoUpdaterConfig.xml file is a configuration file, is mainly used for opening for configuration software more new procedures With or disabling, main program title, the type (server, USB flash disk) in selected upgrading source, server URL, USB flash disk path and updated The information such as listed files.
CreateXmlTools.exe is executable file, is one and generates the backman for updating listed files configuration file Tool, it is used when publication, obtains cryptographic Hash as this article according to filename, version number, file size when realizing The sequence version of part.It can generate the configuration file of an entitled AutoupdateService.xml, each file include with Properties: whether path server URL, last version number, file size, will restart, sequence version.
In order to illustrate technical solution described herein, the following is a description of specific embodiments.
Embodiment one
Fig. 2 shows one embodiments of the application to provide a kind of implementation process schematic diagram of method for upgrading software, above-mentioned software Upgrade method includes step S21- step S24, and details are as follows:
Step S21 receives the upgrade command of software, and the upgrading source for upgrading the software is determined according to the upgrade command.
Terminal device receives the upgrade command of software first in embodiment provided by the present application, due to the process of software upgrading In can generally exist system automatically to software upgrading and user manually to software carry out upgrading two kinds of situations, it is therefore, above-mentioned soft The upgrade command of part is either the software upgrade instruction that system is initiated from trend software upgrade procedure, it is manual to be also possible to user Or the upgrade command for the software otherwise initiated.Software can obtain the soft of latest edition when being upgraded from server Part installation kit (the software installation packet for being also possible to user's indicated release) can also be dodged from other external storages, such as USB Software installation packet for (i.e. USB flash disk) middle acquisition latest edition of depositing, naturally it is also possible to be obtained from other pre-set storage dishes Therefore the software installation packet of latest edition can be used for (such as server, USB flash disk or other storage dishes there are many upgrading sources of software upgrading Deng), it can also can choose from different upgrading sources is selected according to upgrade command after the upgrade command for receiving above-mentioned software The upgrading source in the upgrading source of default, the default is configured by user.Such as in terminal device connectable to network, it can incite somebody to action Upgrading source of the server as default;It can be using USB flash disk as default when terminal device cannot connect network or carry out single machine work Upgrading source.
Optionally, in another embodiment provided by the present application, in the upgrade command for receiving software, according to the upgrading Instruction determines that the upgrading source for upgrading the software includes: later
According to the upgraded version of the upgrade command inspection software of the software;
If the upgraded version is customer upgrade, detect whether the software needs to upgrade.
Correspondingly, described obtain from the upgrading source updates file, comprising:
If the software is upgraded, is obtained from the upgrading source and update file.
In the step, either user, which carries out upgrading to software manually, is also possible to system default when due to software upgrading Upgrading, therefore, it is necessary to differentiate to the upgrade mode that Current software upgrades.Specifically, user's input is detected whether Upgraded version parameter, for example, user has input the upgraded version parameter 1 that confirmation carries out software upgrading if detecting, judgement is worked as Preceding software upgrading form is customer upgrade.Optionally, if the upgrade mode of system default, then the upgrading mould of the system default The corresponding upgraded version parameter of formula can be 0 or other numerical value, naturally it is also possible to without input.
When actively upgrading to a certain software due to user, which might not really be upgraded, example As user wants to upgrade software A, but the current version of software A has been latest edition, then it is assumed that do not need to software A into Row upgrading.Therefore, judge whether software needs to upgrade, when judging that software needs to upgrade, obtain phase from upgrading source The update file answered.
Further, it if the software is upgraded, is obtained from the upgrading source and updates file, comprising:
If being in connection status with the upgrading source, upgrade file is obtained from the upgrading source;
The listed files of the upgrade file and the listed files in the first configuration file are compared, obtain it is described more New file, wherein the listed files of upgrade file when record has a preceding software upgrading in first configuration file.
In the step, if terminal device (terminal device refers to the terminal device for being equipped with software to be upgraded) rises with corresponding Grade source is in connection status, then AutoupdateService.xml file (the referred to as second configuration text provided from upgrading source Part) in read update listed files (i.e. the listed files of upgrade file), meanwhile, read AutoUpdaterConfig.xml text Updated listed files in part (referred to as the first configuration file).The listed files obtained twice is compared, is compared The information such as path, the sequence version of the listed files obtained twice, if the two has difference, then it is assumed that there is the text for needing to update Part, at this point, above-mentioned terminal device obtains the different file of the two as above-mentioned update file.For example, terminal device from upgrading source In the listed files that obtains in the second configuration file include A, B, C, the preceding software obtained from above-mentioned first configuration file Listed files when upgrading is C, D, E, then it is assumed that above-mentioned A, B be the update file that needs are downloaded, if two listed files is interior It is identical to hold identical and FileVersion, then it is assumed that there is no the update files for needing terminal device to download.Using comparison in the step The mode of listed files in different editions file skips updated file, and only obtaining needs in this upgraded version The file to be updated saves time and the network flow of software upgrading.In addition, upgrade procedure only updates procedure subject, as exe, Dll file, will not employ registration table, configuration data, the database at family, so asking for user data configuration loss will not be caused Topic.
Step S22, the connection status of inspection software and the upgrading source, if being in connection status with the upgrading source, It is obtained from the upgrading source and updates file.
Embodiment provided by the present application calls above-mentioned configuration after receiving above-mentioned upgrade command, from unified standard interface File AutoUpdaterConfig.xml is configured with software upgrading journey in the configuration file referred to herein as the first configuration file Therefore the state of sequence enabled or disabled determines according to the state of software upgrading program in the configuration file enabled or disabled The current upgrade status for whether entering software, if so, further judging whether currently selected upgrading source is in connection State updates file if so, obtaining from selected upgrading source.
Further, it if currently selected upgrading source is server, is positioned by the unified resource of detection service device (Uniform Resource Locator, URL) is accorded with to determine whether upgrading source is in connection status, if server can be got The correct status code (such as status code can be 200) returned, then explanation is in connection status with server;Similarly, if currently Selected upgrading source is USB flash disk, then whether the path for detecting USB flash disk is eligible, and terminal device and upgrading source U are illustrated if meeting Disk is in connection status.If the upgrading source currently selected is in connection status, by unified standard interface from above-mentioned upgrading It is obtained in source and updates file.This upgrade procedure uses independent application program, and provides the interface of standard, and need to only configure can be real Now upgrading is to repeat, easily call associated documents.
Step S23, according to the corresponding software of the update document upgrading.
In embodiment provided by the present application, if terminal device gets update file, the journey in part of more composing a piece of writing is run Sequence upgrades corresponding software.Specifically, detect currently whether have the business being currently running after getting update file Process initializes more new environment if so, then terminating ongoing business process, then execute corresponding upgrade procedure again.
Optionally, described according to before the corresponding software of the update document upgrading further includes judging the update file It is whether complete, it specifically includes:
Obtain the upgrade file in the second configuration file;
Judge whether the size of the upgrade file in second configuration file and the update file of downloading is consistent;
If the two is in the same size, determine that the update file is complete file.
It is right in the step, due to from upgrading source obtain file during be tampered there are file or file acquisition not Situations such as complete, therefore the integrality of file to be updated is judged.It specifically, can be by acquired update file Size is compared with the size for updating file same in upgrading source, if the two is in the same size, then it is assumed that the update file of acquisition When it is complete.Further, when whether completely judging update file, it can also obtain and be risen in above-mentioned second configuration file The grade cryptographic Hash of file and the cryptographic Hash of above-mentioned update file, if the cryptographic Hash of the two is identical, then it is assumed that above-mentioned update file It is complete.
It is optionally, described according to the corresponding software of the update document upgrading, comprising:
Judge in local program installation directory whether existing file of the same name identical with the update file name;
If it does not exist, then the update file is stored into the local program installation directory, according to the update text Part upgrades corresponding software.
If the existing file of the same name, changes the filename of the file of the same name in the local program installation directory The file of the same name is stored in the form of backing up file afterwards.
In the step, before operationally stating the program updated in file, whether to judge in local program installation directory Through there is the file of the same name with the update file, file referred to as of the same name changes the file of above-mentioned file of the same name if existing Name (such as changing its file name suffix, such as increase suffix " .old "), stores above-mentioned file of the same name as backup file;If no In the presence of then storing it in local program installation directory and then operation program therein, to reach the mesh of upgrading software 's.
Optionally, include: after the corresponding software according to the update document upgrading
The update file is stored into the listed files of first configuration file.
The relevant information of this upgrade file is updated into the listed files of above-mentioned first configuration file in the step, such as The information such as version, more new route that this software upgrading is recorded in above-mentioned first configuration file.
It further, will if being stored with the file of the same name of change file name suffix in above-mentioned local program installation directory The file of the same name is deleted.
Optionally, if occurring staging error in above-mentioned software upgrade process and software upgrading being caused to be not normally functioning, By it is of the same name with the update file under above-mentioned local program installation directory and with ' .old ' be suffix file, remove suffix and save In same first class catalogue.
Further, in software software corresponding according to the update document upgrading, if there is software upgrading mistake Accidentally, then it is updated error rollback.
Embodiment provided by the present application determines software according to above-mentioned upgrade command first when receiving software upgrade instruction The upgrading source of upgrading, at this point, if terminal device opens upgrade status and is in connection status with upgrading source, from above-mentioned upgrading source After middle acquisition updates file, according to above-mentioned update file by corresponding software upgrading.Terminal device not only may be used during this File is updated to obtain from different upgrading sources, is such as obtained from server or external storage and updates file, to protect The upgrading of software can also be carried out under the single cpu mode of no network by having demonstrate,proved terminal device, in addition, from different when software upgrading Upgrading source, which obtains, updates file to ensure that the software without embedded more new procedures can also successfully be upgraded.
Embodiment two
It is a kind of structural frames of software update system provided by the embodiments of the present application with above-mentioned method for upgrading software corresponding diagram 3 Figure, for ease of description, illustrates only part relevant to the embodiment of the present application.The software update system includes: as shown in Figure 3
Receiving unit 31 determines according to the upgrade command for receiving the upgrade command of software and upgrades the software Upgrading source;
Acquiring unit 32, for the connection status of inspection software and the upgrading source, if being in connection with the upgrading source State then obtains from the upgrading source and updates file;
Upgrade unit 33, for according to the corresponding software of the update document upgrading.
Optionally, the software update system further include:
Upgraded version detection unit, for the upgraded version according to the upgrade command inspection software of the software;
If the upgraded version is customer upgrade, detect whether the software needs to upgrade.
Correspondingly, described obtain from the upgrading source updates file, comprising:
If the software is upgraded, is obtained from the upgrading source and update file.
Optionally, the acquiring unit 32 is specifically used for:
If being in connection status with the upgrading source, upgrade file is obtained from the upgrading source;
The listed files of the upgrade file and the listed files in the first configuration file are compared, obtain it is described more New file.
Optionally, the software update system further include:
Storage unit, for after the corresponding software according to the update document upgrading, storing the update text Part is into the listed files of first configuration file.
Optionally, the software update system is also used to:
Obtain the upgrade file in the second configuration file;
Judge whether the size of the upgrade file in second configuration file and the update file of downloading is consistent;
If the two is in the same size, according to software described in the update document upgrading.
The upgrade unit further include:
Second judgment module, it is whether existing with the update file name phase for judging in local program installation directory Same file of the same name;
If it does not exist, then the update file is stored into the local program installation directory, according to the update text Part upgrades corresponding software.
If the existing file of the same name, changes the filename of the file of the same name in the local program installation directory The file of the same name is stored in the form of backing up file afterwards.
Optionally, the software update system of the mobile unit is also used in the software according to the update document upgrading When corresponding software, if there is software upgrading mistake, it is updated error rollback.
It should be understood that the size of the serial number of each step is not meant that the order of the execution order in above-described embodiment, each process Execution sequence should be determined by its function and internal logic, the implementation process without coping with the embodiment of the present application constitutes any limit It is fixed.
Embodiment three
Fig. 4 shows the embodiment of the present application and provides a kind of structural schematic diagram of terminal device, the terminal device 4 of the embodiment Include: processor 40, memory 41 and is stored in the calculating that can be run in the memory 41 and on the processor 40 Machine program 42, such as the program in method for upgrading software.The processor 40 is realized above-mentioned when executing the computer program 42 Step in each method for upgrading software embodiment, such as step S21 to 23 shown in Fig. 2, the processor 40 execute described Step S21 to S23 shown in Fig. 2 is realized when computer program 42.
The terminal device 4 may include, but be not limited only to, processor 40, memory 41.Those skilled in the art can manage Solution, Fig. 4 is only the example of terminal device 4, does not constitute the restriction to terminal device 4, may include more or more than illustrating Few component perhaps combines certain components or different components, such as the terminal device 4 can also include input and output Equipment, network access equipment, bus etc..
The processor 40 can be central processing unit (Central Processing Unit, CPU), can also be Other general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit (Application Specific Integrated Circuit, ASIC), field programmable gate array (Field- Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic, Discrete hardware components etc..General processor can be microprocessor or the processor is also possible to any conventional processor Deng.
The memory 41 can be the internal storage unit of the terminal device 4, such as the hard disk or interior of terminal device 4 It deposits.The memory 41 is also possible to the External memory equipment of the terminal device 4, such as be equipped on the terminal device 4 Plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card dodge Deposit card (Flash Card) etc..Further, the memory 41 can also both include the storage inside list of the terminal device 4 Member also includes External memory equipment.The memory 41 is for storing needed for the computer program and the insurance underwriting Other programs and data.The memory 41 can be also used for temporarily storing the data that has exported or will export.
Illustratively, when the terminal device 4 carries out software upgrading, the execution of processor 40 is stored in the meter of memory 41 Calculation machine program 42 includes:
The upgrade command for receiving software determines the upgrading source for upgrading the software according to the upgrade command;
The connection status of inspection software and the upgrading source, if connection status is in the upgrading source, from the liter Grade source, which obtains, updates file;
According to the corresponding software of the update document upgrading.
Optionally, in the upgrade command for receiving software, the liter for upgrading the software is determined according to the upgrade command After grade source, the processor calls the executable computer program in the memory, is specifically used for:
According to the upgraded version of the upgrade command inspection software of the software;
If the upgraded version is customer upgrade, detect whether the software needs to upgrade.
Correspondingly, described obtain from the upgrading source updates file, comprising:
If the software is upgraded, is obtained from the upgrading source and update file.
Optionally, described when obtaining update file from the upgrading source if being upgraded in the software Processor calls the executable computer program in the memory, is specifically used for:
If being in connection status with the upgrading source, upgrade file is obtained from the upgrading source;
The listed files of the upgrade file and the listed files in the first configuration file are compared, obtain it is described more New file.
Optionally, it after the corresponding software according to the update document upgrading, is deposited described in the processor calling Executable computer program in reservoir, is used for:
The update file is stored into the listed files of first configuration file.
Optionally,
After the connection status in the inspection software and the upgrading source, further includes:
Obtain the upgrade file in the second configuration file;
Judge whether the size of the upgrade file in second configuration file and the update file of downloading is consistent;
If the two is in the same size, according to software described in the update document upgrading.
Optionally, in the software corresponding according to the update document upgrading, the processor calls the storage Executable computer program in device, is specifically used for:
Judge in local program installation directory whether existing file of the same name identical with the update file name;
If it does not exist, then the update file is stored into the local program installation directory, according to the update text Part upgrades corresponding software.
If the existing file of the same name, changes the filename of the file of the same name in the local program installation directory The file of the same name is stored in the form of backing up file afterwards.
Optionally, in software software corresponding according to the update document upgrading, if there is software upgrading mistake, Then it is updated error rollback.
Illustratively, above-mentioned computer program 42 can be divided into one or more units/modules, said one or Multiple units/modules are stored in above-mentioned memory 41, and are executed by above-mentioned processor 40, to complete the application.
Above-mentioned terminal device 4 can be cloud server, smart machine, and computer, notebook and palm PC etc. calculate Equipment.Above-mentioned terminal device 4 may include, but be not limited only to, processor 40, memory 41.It will be understood by those skilled in the art that Fig. 4 is only the example of terminal device 4, does not constitute the restriction to terminal device 4, may include more more or fewer than illustrating Component, perhaps combines certain components or different components, for example, above-mentioned terminal device 4 can also include input-output equipment, Network access equipment, bus etc..
It is apparent to those skilled in the art that for convenience and simplicity of description, foregoing description it is specific The course of work can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In several embodiments provided herein, it should be understood that disclosed system, server and method, it can To realize by another way.The unit as illustrated by the separation member may or may not be physically separate , component shown as a unit may or may not be physical unit.It can select according to the actual needs wherein Some or all of unit achieve the purpose of the solution of this embodiment.
It, can be with if the function is realized in the form of SFU software functional unit and when sold or used as an independent product It is stored in a computer readable storage medium.Based on this understanding, the technical solution of the application is substantially in other words The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, the meter Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be a People's computer, server or network equipment etc.) execute each embodiment the method for the application all or part of the steps. And storage medium above-mentioned includes: that USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), arbitrary access are deposited The various media that can store program code such as reservoir (RAM, Random Access Memory), magnetic or disk.
The above is only the preferred embodiments of the application, not to limit the application, it is all in spirit herein and Made any modifications, equivalent replacements, and improvements etc., should be included within the scope of protection of this application within principle.

Claims (10)

1. a kind of method for upgrading software, which is characterized in that the method for upgrading software includes:
The upgrade command for receiving software determines the upgrading source for upgrading the software according to the upgrade command;
The connection status of inspection software and the upgrading source, if being in connection status with the upgrading source, from the upgrading source It obtains and updates file;
According to software described in the update document upgrading.
2. method for upgrading software according to claim 1, which is characterized in that in the upgrade command for receiving software, root Determine that the upgrading source for upgrading the software includes: later according to the upgrade command
According to the upgraded version of the upgrade command inspection software of the software;
If the upgraded version is customer upgrade, detect whether the software needs to upgrade.
Correspondingly, described obtain from the upgrading source updates file, comprising:
If the software is upgraded, is obtained from the upgrading source and update file.
3. method for upgrading software according to claim 2, which is characterized in that if the software is upgraded, It is then obtained from the upgrading source and updates file, comprising:
If being in connection status with the upgrading source, upgrade file is obtained from the upgrading source;
The listed files of the upgrade file and the listed files in the first configuration file are compared, the update text is obtained Part.
4. method for upgrading software according to claim 3, which is characterized in that described according to update document upgrading institute State software includes: later
The update file is stored into the listed files of first configuration file.
5. method for upgrading software according to claim 1, which is characterized in that the company of the inspection software and the upgrading source After connecing state, further includes:
Obtain the upgrade file in the second configuration file;
Judge whether the size of the upgrade file in second configuration file and the update file of downloading is consistent;
If the two is in the same size, according to software described in the update document upgrading.
6. method for upgrading software according to any one of claims 1 to 5, which is characterized in that described according to the update text Part upgrades the software, comprising:
Judge in local program installation directory whether existing file of the same name identical with the update file name;
If it does not exist, then the update file is stored into the local program installation directory, according to the update file liter The corresponding software of grade;
If the existing file of the same name in the local program installation directory, change after the filename of the file of the same name with The form of backup file stores the file of the same name.
7. method for upgrading software according to claim 6, which is characterized in that in the software according to the update file liter When the grade software, if there is software upgrading mistake, it is updated error rollback.
8. a kind of software update system, which is characterized in that the software update system includes:
Receiving unit determines the upgrading source for upgrading the software according to the upgrade command for receiving the upgrade command of software;
Acquiring unit, for the connection status of inspection software and the upgrading source, if being in connection status with the upgrading source, It is obtained from the upgrading source and updates file;
Upgrade unit is used for the software according to the update document upgrading.
9. a kind of terminal device, including memory, processor and storage are in the memory and can be on the processor The computer program of operation, which is characterized in that the processor realizes such as claim 1 to 7 when executing the computer program The step of any one the method.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, and feature exists In when the computer program is executed by processor the step of any one of such as claim 1 to 7 of realization the method.
CN201810936644.XA 2018-08-16 2018-08-16 A kind of method for upgrading software, system and terminal device Pending CN109086065A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810936644.XA CN109086065A (en) 2018-08-16 2018-08-16 A kind of method for upgrading software, system and terminal device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810936644.XA CN109086065A (en) 2018-08-16 2018-08-16 A kind of method for upgrading software, system and terminal device

Publications (1)

Publication Number Publication Date
CN109086065A true CN109086065A (en) 2018-12-25

Family

ID=64793639

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810936644.XA Pending CN109086065A (en) 2018-08-16 2018-08-16 A kind of method for upgrading software, system and terminal device

Country Status (1)

Country Link
CN (1) CN109086065A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111610996A (en) * 2020-05-26 2020-09-01 东信和平科技股份有限公司 Method and system for upgrading, producing and sampling inspection of IC card personalized software
CN112241283A (en) * 2020-10-30 2021-01-19 深圳市广和通无线股份有限公司 Software upgrading method and device, computer equipment and storage medium
CN112445705A (en) * 2020-11-17 2021-03-05 中国南方电网有限责任公司 Software running system, method, device, computer equipment and storage medium
CN113038441A (en) * 2021-03-15 2021-06-25 读书郎教育科技有限公司 Method for upgrading telephone watch without network
CN114095788A (en) * 2021-11-16 2022-02-25 深圳康佳电子科技有限公司 Wifi drive and firmware hot update processing method, device, terminal and medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101042651A (en) * 2006-03-22 2007-09-26 华为技术有限公司 Software updating method and system thereof
CN101110788A (en) * 2006-07-20 2008-01-23 阿里巴巴公司 Method and system for updating client software
CN104156244A (en) * 2014-08-06 2014-11-19 北京奇虎科技有限公司 Method and device for software upgrading
CN104756076A (en) * 2012-10-28 2015-07-01 谷歌股份有限公司 Configuration file updater
CN104820611A (en) * 2015-05-22 2015-08-05 中国科学院上海高等研究院 Equipment software upgrade method based on Bluetooth and upgrade device
CN105208446A (en) * 2014-06-30 2015-12-30 中兴通讯股份有限公司 Terminal upgrading method and apparatus
CN106648725A (en) * 2016-09-07 2017-05-10 努比亚技术有限公司 Terminal, server and configuration file upgrading method
CN107577474A (en) * 2017-09-12 2018-01-12 青岛海信电器股份有限公司 The processing method and processing device of upgrade file, electronic equipment
CN108089874A (en) * 2017-12-27 2018-05-29 北京海泰方圆科技股份有限公司 Upgrade method, the device and system of software
US20180219972A1 (en) * 2017-02-02 2018-08-02 Microsoft Technology Licensing, Llc Joint servicing of software packages

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101042651A (en) * 2006-03-22 2007-09-26 华为技术有限公司 Software updating method and system thereof
CN101110788A (en) * 2006-07-20 2008-01-23 阿里巴巴公司 Method and system for updating client software
CN104756076A (en) * 2012-10-28 2015-07-01 谷歌股份有限公司 Configuration file updater
CN105208446A (en) * 2014-06-30 2015-12-30 中兴通讯股份有限公司 Terminal upgrading method and apparatus
CN104156244A (en) * 2014-08-06 2014-11-19 北京奇虎科技有限公司 Method and device for software upgrading
CN104820611A (en) * 2015-05-22 2015-08-05 中国科学院上海高等研究院 Equipment software upgrade method based on Bluetooth and upgrade device
CN106648725A (en) * 2016-09-07 2017-05-10 努比亚技术有限公司 Terminal, server and configuration file upgrading method
US20180219972A1 (en) * 2017-02-02 2018-08-02 Microsoft Technology Licensing, Llc Joint servicing of software packages
CN107577474A (en) * 2017-09-12 2018-01-12 青岛海信电器股份有限公司 The processing method and processing device of upgrade file, electronic equipment
CN108089874A (en) * 2017-12-27 2018-05-29 北京海泰方圆科技股份有限公司 Upgrade method, the device and system of software

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111610996A (en) * 2020-05-26 2020-09-01 东信和平科技股份有限公司 Method and system for upgrading, producing and sampling inspection of IC card personalized software
CN111610996B (en) * 2020-05-26 2023-04-07 东信和平科技股份有限公司 Method and system for upgrading, producing and sampling inspection of IC card personalized software
CN112241283A (en) * 2020-10-30 2021-01-19 深圳市广和通无线股份有限公司 Software upgrading method and device, computer equipment and storage medium
CN112445705A (en) * 2020-11-17 2021-03-05 中国南方电网有限责任公司 Software running system, method, device, computer equipment and storage medium
CN112445705B (en) * 2020-11-17 2022-05-03 中国南方电网有限责任公司 Software running system, method and device based on trusted verification and computer equipment
CN113038441A (en) * 2021-03-15 2021-06-25 读书郎教育科技有限公司 Method for upgrading telephone watch without network
CN114095788A (en) * 2021-11-16 2022-02-25 深圳康佳电子科技有限公司 Wifi drive and firmware hot update processing method, device, terminal and medium

Similar Documents

Publication Publication Date Title
CN109086065A (en) A kind of method for upgrading software, system and terminal device
CN102087615B (en) Messages merger method and system in message queue
US8032880B2 (en) Multi-branch management for updating software
CN101589592B (en) Multi-protocol removable storage device
CN101268620B (en) Device management system and method for managing device management object
CN105159718B (en) Firmware upgrade method and device
CN110225078B (en) Application service updating method, system and terminal equipment
CN102999349B (en) A kind of method for upgrading software
CN109639818B (en) Service discovery method and device under cloud environment, server and storage medium
CN109144534A (en) Service module dynamic updating method, device and electronic equipment
CN104346206A (en) Method and system for recovering installation of unloaded software
CN111258850A (en) Method and device for updating software information based on Linux system
US9235437B2 (en) Method and integration component for integrating OSGi environments into a Service-oriented Architecture
CN109376072A (en) Application development method and apparatus based on third party's Component Gallery
US8949423B2 (en) Autonomically co-locating first and second components on a select server
US8250558B2 (en) Dynamic linked library add-on features
CN110912779A (en) Cluster host health detection method, system, equipment and readable storage medium
CN115167896A (en) Method and device for updating software version, storage medium and electronic equipment
EP3166030A1 (en) Exporting hierarchical data from a product lifecycle management (plm) system to a source code management (scm) system
US9983866B1 (en) Upgrade compatibility checks in a client-server environment
CN110221952B (en) Service data processing method and device and service data processing system
CN110597536B (en) Software upgrading method, system and terminal equipment
CN110399138A (en) A kind of method, apparatus, equipment and the storage medium of software unloading
CN110825417A (en) Application program updating method and system
CN108389617A (en) Portfolio management/firmware upgrading method/system, medium and electronic equipment of firmware

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20220110

Address after: 518000 3310, building 11, phase II (plot 02-08), Tianan Yungu Industrial Park, Gangtou community, Bantian street, Longgang District, Shenzhen City, Guangdong Province

Applicant after: Shenzhen Yijian Car Service Technology Co.,Ltd.

Address before: 518000 Guangdong province Shenzhen Longgang District Bantian Street five and Avenue North 4012 Yuan Zheng Industrial Park.

Applicant before: LAUNCH TECH Co.,Ltd.

RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20181225