CN112860284B - SP upgrade package generation method and device for equipment remote upgrade and computer equipment - Google Patents

SP upgrade package generation method and device for equipment remote upgrade and computer equipment Download PDF

Info

Publication number
CN112860284B
CN112860284B CN201911099293.2A CN201911099293A CN112860284B CN 112860284 B CN112860284 B CN 112860284B CN 201911099293 A CN201911099293 A CN 201911099293A CN 112860284 B CN112860284 B CN 112860284B
Authority
CN
China
Prior art keywords
code
file
upgrade package
old version
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.)
Active
Application number
CN201911099293.2A
Other languages
Chinese (zh)
Other versions
CN112860284A (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 Yihua Computer Co Ltd
Shenzhen Yihua Time Technology Co Ltd
Shenzhen Yihua Financial Intelligent Research Institute
Original Assignee
Shenzhen Yihua Computer Co Ltd
Shenzhen Yihua Time Technology Co Ltd
Shenzhen Yihua Financial Intelligent Research Institute
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 Yihua Computer Co Ltd, Shenzhen Yihua Time Technology Co Ltd, Shenzhen Yihua Financial Intelligent Research Institute filed Critical Shenzhen Yihua Computer Co Ltd
Priority to CN201911099293.2A priority Critical patent/CN112860284B/en
Publication of CN112860284A publication Critical patent/CN112860284A/en
Application granted granted Critical
Publication of CN112860284B publication Critical patent/CN112860284B/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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The application is suitable for the technical field of financial self-service equipment, and provides a SP upgrade package generation method for equipment remote upgrade, which comprises the following steps: acquiring the latest version system source code and the current version system source code of the target financial self-service equipment, and respectively marking the latest version code and the old version code; recompilation is carried out on the old version code to obtain a first release file; comparing the new version code with the code files with the same name in the old version code, and replacing the corresponding code files with the same name in the old version code by adopting the code file copy with inconsistent comparison results in the new version code to obtain the old version code after the code file replacement; compiling the old version code after the code file replacement to obtain a second release file; comparing the second release file with the first release file, and determining a second release file with inconsistent comparison results; and compressing the second release file with inconsistent comparison results to generate an SP upgrade package of the target financial self-service equipment.

Description

SP upgrade package generation method and device for equipment remote upgrade and computer equipment
Technical Field
The application belongs to the technical field of financial self-service equipment, and particularly relates to an SP upgrade package generation method and device for equipment remote upgrade and computer equipment.
Background
Along with the upgrading of the functions of the self-service financial equipment, the versions of the system and the software on the self-service financial equipment also need to be continuously and iteratively updated, at present, the SP (Service Pack) upgrade package of the self-service financial equipment in the prior art is an SP full package, and although the SP full package can effectively ensure the upgrading of the self-service financial equipment, the upgrade method is suitable for the system versions of all the self-service financial equipment, in a remote upgrade scene, the upgrade method is often limited by network transmission bandwidth, so that the remote upgrading efficiency of the self-service financial equipment is low.
Disclosure of Invention
The embodiment of the application provides a SP (service provider) upgrade package generation method and device for equipment remote upgrade and computer equipment, which can solve the problem of low SP upgrade package generation efficiency of equipment remote upgrade.
In a first aspect, an embodiment of the present application provides a method for generating an SP upgrade package for remote upgrade of a device, including:
acquiring the latest version of system source codes of the target financial self-service equipment, and recording the latest version of system source codes as new version codes;
acquiring a system source code of a current version of the target financial self-service equipment, and recording the system source code as an old version code;
Recompilation is carried out on the old version code to obtain a first release file corresponding to the old version code;
Comparing the new version code with the code files with the same name in the old version code, and replacing the corresponding code files with the same name in the old version code by adopting code file copies with inconsistent comparison results in the new version code to obtain the old version code after the code files are replaced;
compiling the old version code after the code file replacement to obtain a second release file corresponding to the old version code after the code file replacement;
Comparing the second release file with the first release file, and determining a second release file with inconsistent comparison results;
and compressing the second release file with inconsistent comparison results to generate the SP upgrade package of the target financial self-service equipment.
Therefore, the SP upgrade package generated by the method for generating the SP upgrade package for the remote upgrade of the equipment only contains the upgrade code file required by the target financial self-service equipment, so that the data volume of the SP upgrade package is greatly reduced, the network transmission bandwidth limitation in a remote upgrade scene is weakened, and the remote upgrade efficiency of the financial self-service equipment is improved.
Preferably, the comparing the second release file with the first release file, and determining the second release file with inconsistent comparison results includes:
calculating the MD5 value of the first release file;
calculating the MD5 value of the second release file;
and comparing the MD5 values of the first release file and the second release file to determine a second release file with inconsistent MD5 values.
And whether the second release file is consistent with the first release file or not is compared by calculating the MD5 value, so that the calculation efficiency is higher, and the comparison result is more accurate.
Preferably, the comparing the new version code with the code files with the same name in the old version code, and replacing the corresponding code files with the same name in the old version code by using the code file copy with inconsistent comparison result in the new version code, so as to obtain the old version code after the code file replacement includes:
calling Luntbuild to respectively calculate MD5 values of all code files in the new version code and the old version code;
comparing MD5 values between the new version code and each code file with the same name in the old version code to determine code files with inconsistent comparison results;
and copying and replacing corresponding code files with the same name in the old version code by adopting the code files with inconsistent comparison results in the new version code to obtain the old version code with the replaced code files.
The call Luntbuild is used for realizing the comparison of the code files, so that the efficiency is further improved, the MD5 value of each code file with the same name can be rapidly calculated, and the code file with the change between the new version and the old version can be more accurately determined.
Preferably, after compressing the second release file with inconsistent comparison results to generate the SP upgrade package of the target financial self-service device, the method further includes:
Checking the SP upgrade package;
If the SP upgrade package is checked to be correct, the SP upgrade package is sent to the target financial self-service equipment;
And upgrading the target financial self-service equipment according to the SP upgrade package.
After the SP upgrade package is generated, the SP upgrade package is checked first, and then sent to the target financial self-service equipment to finish the upgrade, so that abnormal problems such as breakdown and the like in the upgrade process can be reduced, and the stability of the SP upgrade is improved.
Preferably, after compressing the second release file with inconsistent comparison results to generate the SP upgrade package of the target financial self-service device, the method further includes:
and storing the latest version of system source codes and the SP upgrade package, and recording respective storage paths.
By storing the latest version of the system source code and the SP upgrade package, the latest version of the system source code and the SP upgrade package can be conveniently called next time, and particularly when the problem of breakdown in the upgrade process occurs, the latest version of the system source code can be quickly called to repair a system when repairing a target financial self-service device, or the SP upgrade package is called to upgrade the target financial self-service device again.
In a second aspect, an embodiment of the present application provides an SP upgrade package generating apparatus for remotely upgrading a device, including:
the new version code acquisition module is used for acquiring the latest version of system source code of the target financial self-service equipment and recording the latest version of system source code as new version code;
the old version code acquisition module is used for acquiring a system source code of the current version of the target financial self-service equipment and recording the system source code as an old version code;
The recompilation module is used for recompilating the old version code to obtain a first release file corresponding to the old version code;
The code file comparison module is used for comparing the new version code with the code files with the same names in the old version code, and copying and replacing the corresponding code files with the same names in the old version code by adopting the code files with inconsistent comparison results in the new version code to obtain the old version code with the replaced code files;
the code compiling module is used for compiling the old version code after the code file replacement to obtain a second release file corresponding to the old version code after the code file replacement;
the file determining module is used for comparing the second release file with the first release file and determining a second release file with inconsistent comparison results;
And the upgrade package generation module is used for compressing the second release file with inconsistent comparison results to generate the SP upgrade package of the target financial self-service equipment.
In a third aspect, an embodiment of the present application provides a computer device, including a memory, a processor, and a computer program stored in the memory and capable of running on the processor, where the processor implements the SP upgrade package generating method for remote upgrade of the device when executing the computer program.
In a fourth aspect, an embodiment of the present application provides a computer readable storage medium storing a computer program, where the computer program when executed by a processor implements the SP upgrade package generation method for remote upgrade of a device described above.
It will be appreciated that the advantages of the second to fourth aspects may be found in the relevant description of the first aspect and are not repeated here.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments or the description of the prior art will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic view of an application environment of an SP upgrade package generation method for remote upgrade of a device according to an embodiment of the present application;
FIG. 2 is a flow chart of a SP upgrade package generation method for remote upgrade of a device in an embodiment of the present application;
FIG. 3 is a flowchart of the SP upgrade package generation method step 104 of remote upgrade of a device in an application scenario according to an embodiment of the present application;
FIG. 4 is a flowchart of step 106 of the SP upgrade package generation method for remote upgrade of a device in an application scenario according to an embodiment of the present application;
FIG. 5 is a schematic flow chart of checking an SP upgrade package in an application scenario according to an SP upgrade package generation method for remote upgrade of a device in an embodiment of the present application;
FIG. 6 is a schematic diagram of an SP upgrade package generating apparatus for remote upgrade of a device according to an embodiment of the present application;
FIG. 7 is a schematic diagram of a computer device in accordance with an embodiment of the application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth such as the particular system architecture, techniques, etc., in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It should be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It should also be understood that the term "and/or" as used in the present specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes such combinations.
As used in the present description and the appended claims, the term "if" may be interpreted as "when..once" or "in response to a determination" or "in response to detection" depending on the context. Similarly, the phrase "if a determination" or "if a [ described condition or event ] is detected" may be interpreted in the context of meaning "upon determination" or "in response to determination" or "upon detection of a [ described condition or event ]" or "in response to detection of a [ described condition or event ]".
Furthermore, the terms "first," "second," "third," and the like in the description of the present specification and in the appended claims, are used for distinguishing between descriptions and not necessarily for indicating or implying a relative importance.
Reference in the specification to "one embodiment" or "some embodiments" or the like means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," and the like in the specification are not necessarily all referring to the same embodiment, but mean "one or more but not all embodiments" unless expressly specified otherwise. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless expressly specified otherwise.
The SP upgrade package generation method for equipment remote upgrade provided by the application can be applied to an application environment as shown in figure 1, wherein a client can communicate with a server through a network. The client may be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices. The server may be implemented as a stand-alone server or as a server cluster composed of a plurality of servers.
In one embodiment, as shown in fig. 2, a method for generating an SP upgrade package for remote upgrade of a device is provided, and the method is applied to the server in fig. 1 for illustration, and includes the following steps:
101. Acquiring the latest version of system source codes of the target financial self-service equipment, and recording the latest version of system source codes as new version codes;
In this embodiment, first, the server needs to obtain the latest version of the system source code of the target financial self-service device, where the system source code is written and stored by a programmer. It can be known that the financial self-service devices with different models respectively correspond to different system source codes, and the server can retrieve the latest version of the system source code corresponding to the device model after determining the device model of the target financial self-service device. Specifically, in an application scenario, the server may first determine a device model of the target financial self-service device; and then, retrieving the latest version of system source codes corresponding to the target financial self-service equipment from a source code library according to the equipment model, wherein the source code library is used for storing the system source codes of the financial self-service equipment with various equipment models.
Specifically, the SVN path of the latest version of the system source code may be set in item Luntbuild, through which the latest version of the system source code may be downloaded to the local. In a specific application scenario, the server can automatically download the system source code from the svn path to the local through the Ant script.
102. Acquiring a system source code of a current version of the target financial self-service equipment, and recording the system source code as an old version code;
on the other hand, the server also needs to acquire the system source code of the current version of the target financial self-service device, and records the system source code as the old version code. Specifically, after determining the target self-service financial device, the server may determine the current system version of the target self-service financial device by acquiring the system version number of the target self-service financial device, so that the server may acquire the system source code of the current version of the target self-service financial device from the database storing the system source codes of the historical versions.
103. Recompilation is carried out on the old version code to obtain a first release file corresponding to the old version code;
Specifically, the server may call Rebuild a function to compile the old version code, and after Rebuild, output a release file corresponding to the old version code, that is, the first release file.
104. Comparing the new version code with the code files with the same name in the old version code, and replacing the corresponding code files with the same name in the old version code by adopting code file copies with inconsistent comparison results in the new version code to obtain the old version code after the code files are replaced;
It can be understood that the new and old version codes comprise a plurality of code files, and the writing rules of the codes and the division of the code files are consistent because the new and old version codes are all system source codes of the same system, so that the new version code and the old version code comprise a plurality of code files with the same name. It is known that source codes different from the old code are necessarily present in the new version code, and these changed source codes are present in a certain code file or code files. In step 104, the server may compare the new version code with the code files with the same name in the old version code, determine each code file with inconsistent comparison results, and then replace the corresponding code file with the same name in the old version code by using the code file with inconsistent comparison results in the new version code to obtain the old version code with replaced code file.
For example, the new version code contains 5 code files, namely a1, b1, c1, d1 and e1; the old version code comprises 5 code files which are respectively a2, b2, c2, d2 and e2, wherein a1 is the same name as a2, b1 is the same name as b2, c1 is the same name as c2, d1 is the same name as d2, and e1 is the same name as e 2. Comparing a1 with a2 during comparison, and if the comparison results of a1 and a2 are inconsistent, determining that the comparison results are inconsistent code files; similarly, b1 and b2, c1 and c2, d1 and d2, and e1 and e2 are compared respectively, and if the comparison results are that a1 and a2, and c1 and c2 are inconsistent, and the comparison results of the rest code files are consistent, it can be determined that a1 and c1 are code files inconsistent in comparison result. The server then replaces a2, c2 in the old version code with a1, c1.
To improve the comparison efficiency, the code file that changes between the new version and the old version is more accurately determined, as shown in fig. 3, further, step 104 may include:
201. Calling Luntbuild to respectively calculate MD5 values of all code files in the new version code and the old version code;
202. comparing MD5 values between the new version code and each code file with the same name in the old version code to determine code files with inconsistent comparison results;
203. And copying and replacing corresponding code files with the same name in the old version code by adopting the code files with inconsistent comparison results in the new version code to obtain the old version code with the replaced code files.
For steps 201-203, it may be understood that the server may call the yhspcompare.exe comparison tool on Luntbuild, compare the new version code with each code file in the old version code by the comparison tool, calculate the MD5 value of each code file, determine which code files have been changed from the old version by determining whether the MD5 value of the code file with the same name has been changed, that is, determine the code files with inconsistent comparison results. As can be seen, the code files with inconsistent comparison results are updated, so that the server can replace corresponding code files with the same name in the old version code by adopting the code file copy with inconsistent comparison results in the new version code, and the old version code after the code file replacement is obtained.
105. Compiling the old version code after the code file replacement to obtain a second release file corresponding to the old version code after the code file replacement;
specifically, the server may call the Build function to compile the old version code after the replacement of the code file, and after Build, output a release file corresponding to the old version code after the replacement of the code file, that is, the second release file.
106. Comparing the second release file with the first release file, and determining a second release file with inconsistent comparison results;
After obtaining the second release file and the first release file, the server may compare the second release file with the first release file, and determine a second release file with inconsistent comparison results.
In order to improve the calculation efficiency and the comparison accuracy, as shown in fig. 4, further, step 106 may include:
301. calculating the MD5 value of the first release file;
302. calculating the MD5 value of the second release file;
303. And comparing the MD5 values of the first release file and the second release file to determine a second release file with inconsistent MD5 values.
For steps 301-303, it may be understood that the server calculates MD5 values of the first release file and the second release file respectively, and then compares the MD5 values of the first release file and the second release file, if the MD5 values of the first release file and the MD5 values of the second release file are different, it indicates that the second release file has a change, and the second release file contains the updated data of the current version, so that the server can copy the second release file with inconsistent MD5 values.
107. And compressing the second release file with inconsistent comparison results to generate the SP upgrade package of the target financial self-service equipment.
It can be understood that after determining the second release file with inconsistent comparison results, the server may compress the second release file with inconsistent comparison results to generate an SP upgrade package of the target financial self-service device, where the generated SP upgrade package only includes code data for incremental update, so that the SP upgrade package can meet the upgrade requirement of the target financial self-service device, ensure that the data volume is small enough, and reduce the network bandwidth pressure during remote upgrade.
In order to reduce the abnormal problems such as crashes in the upgrading process and improve the stability of the SP upgrading, as shown in fig. 5, further, after step 107, the method further includes:
401. Checking the SP upgrade package;
402. If the SP upgrade package is checked to be correct, the SP upgrade package is sent to the target financial self-service equipment;
403. and upgrading the target financial self-service equipment according to the SP upgrade package.
For steps 401-403, the server may check the SP upgrade package first, if the check is correct, to indicate that the SP upgrade package data is not abnormal, and may send the SP upgrade package data to the target self-service financial device, so as to upgrade the target self-service financial device according to the SP upgrade package; otherwise, if the checking result is that the SP upgrade package is wrong, the SP upgrade package data is abnormal, and at the moment, the server can alarm and record the abnormal condition or abnormal data of the SP upgrade package.
In this embodiment, further, after compressing the second release file with inconsistent comparison result, the server generates the SP upgrade package of the target financial self-service device, the method further includes: and storing the latest version of system source codes and the SP upgrade package, and recording respective storage paths. By storing the latest version of the system source code and the SP upgrade package, the latest version of the system source code and the SP upgrade package can be conveniently called next time, and particularly when the problem of breakdown in the upgrade process occurs, the latest version of the system source code can be quickly called to repair a system when repairing a target financial self-service device, or the SP upgrade package is called to upgrade the target financial self-service device again.
In the embodiment of the application, firstly, the latest version of system source code of the target financial self-service equipment is acquired and recorded as a new version code; acquiring a system source code of a current version of the target financial self-service equipment, and recording the system source code as an old version code; then, recompilation is carried out on the old version code to obtain a first release file corresponding to the old version code; then, comparing the new version code with the code files with the same name in the old version code, and replacing the corresponding code files with the same name in the old version code by adopting code file copies with inconsistent comparison results in the new version code to obtain the old version code with the replaced code files; compiling the old version code after the code file replacement to obtain a second release file corresponding to the old version code after the code file replacement; secondly, comparing the second release file with the first release file, and determining a second release file with inconsistent comparison results; and finally, compressing the second release file with inconsistent comparison results to generate the SP upgrade package of the target financial self-service equipment. Therefore, the SP upgrade package generated by the method for generating the SP upgrade package for the remote upgrade of the equipment only contains the upgrade code file required by the target financial self-service equipment, so that the data volume of the SP upgrade package is greatly reduced, the network transmission bandwidth limitation in a remote upgrade scene is weakened, and the remote upgrade efficiency of the financial self-service equipment is improved.
It should be understood that the sequence number of each step in the foregoing embodiment does not mean that the execution sequence of each process should be determined by the function and the internal logic, and should not limit the implementation process of the embodiment of the present application.
In an embodiment, an apparatus for generating an SP upgrade package for remote upgrade of a device is provided, where the apparatus for generating an SP upgrade package for remote upgrade of a device corresponds to the method for generating an SP upgrade package for remote upgrade of a device in the above embodiment one by one. As shown in fig. 6, the SP upgrade package generating apparatus of the device remote upgrade includes a new version code acquisition module 501, an old version code acquisition module 502, a recompilation module 503, a code file comparison module 504, a code compilation module 505, a file determination module 506, and an upgrade package generating module 507. The functional modules are described in detail as follows:
The new version code obtaining module 501 is configured to obtain a system source code of a latest version of the target financial self-service device, and record the system source code as a new version code;
the old version code obtaining module 502 is configured to obtain a system source code of a current version of the target financial self-service device, and record the system source code as an old version code;
A recompilation module 503, configured to recompile the old version code to obtain a first release file corresponding to the old version code;
a code file comparison module 504, configured to compare the new version code with the code files with the same names in the old version code, and replace the corresponding code files with the same names in the old version code with the code files with inconsistent comparison results in the new version code, so as to obtain the old version code after the code files are replaced;
a code compiling module 505, configured to compile the replaced old version code of the code file to obtain a second release file corresponding to the replaced old version code of the code file;
a file determining module 506, configured to compare the second release file with the first release file, and determine a second release file with inconsistent comparison results;
And the upgrade package generating module 507 is configured to compress the second release file with inconsistent comparison results, and generate an SP upgrade package of the target financial self-service device.
Further, the file determining module may include:
The first calculating unit is used for calculating the MD5 value of the first release file;
the second calculating unit is used for calculating the MD5 value of the second release file;
And the file comparison unit is used for comparing the MD5 values of the first release file and the second release file and determining a second release file with inconsistent MD5 values.
Further, the code file comparison module may include:
A calling calculation unit, configured to call Luntbuild to calculate MD5 values of each code file in the new version code and the old version code, respectively;
a code file comparison unit, configured to compare MD5 values between the new version code and each code file with the same name in the old version code, and determine code files with inconsistent comparison results;
And the file replacement unit is used for replacing corresponding code files with the same name in the old version code by adopting code file copies with inconsistent comparison results in the new version code to obtain the old version code after the code files are replaced.
Further, the SP upgrade package generating apparatus for remote upgrade of a device may further include:
the checking module is used for checking the SP upgrade package;
The sending-out module is used for sending out the SP upgrade package to the target financial self-service equipment if the SP upgrade package is checked to be correct;
and the upgrading module is used for upgrading the target financial self-service equipment according to the SP upgrading packet.
Further, the SP upgrade package generating apparatus for remote upgrade of a device may further include:
And the storage module is used for storing the system source code of the latest version and the SP upgrade package and recording respective storage paths.
For specific limitations regarding the SP upgrade package generating apparatus for remote upgrade of a device, reference may be made to the above limitation of the SP upgrade package generating method for remote upgrade of a device, and will not be described herein. The modules in the SP upgrade package generation apparatus for remote upgrade of the above-mentioned devices may be all or partially implemented by software, hardware, and combinations thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one embodiment, a computer device is provided, as shown in fig. 7, including a memory, a processor, and a computer program stored on the memory and capable of running on the processor, where the processor executes the computer program to implement the steps of the SP upgrade package generation method for remote upgrade of the device in the above embodiment, such as steps 101 to 107 shown in fig. 2. Or the processor when executing the computer program implements the functions of the modules/units of the SP upgrade package generation apparatus for remote upgrade of the device in the above embodiment, such as the functions of the modules 501 to 507 shown in fig. 6. In order to avoid repetition, a description thereof is omitted.
In one embodiment, there is provided a computer readable storage medium having stored thereon a computer program which when executed by a processor implements the steps of the SP upgrade package generation method of remote upgrade of a device in the above embodiment, such as steps 101 to 107 shown in fig. 2. Or the computer program when executed by the processor, implements the functions of the respective modules/units of the SP upgrade package generation apparatus for remote upgrade of the device in the above-described embodiment, such as the functions of the modules 501 to 507 shown in fig. 6. In order to avoid repetition, a description thereof is omitted.
It should be noted that, because the content of information interaction and execution process between the above devices/units is based on the same concept as the method embodiment of the present application, specific functions and technical effects thereof may be referred to in the method embodiment section, and will not be described herein.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of the functional units and modules is illustrated, and in practical application, the above-described functional distribution may be performed by different functional units and modules according to needs, i.e. the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-described functions. The functional units and modules in the embodiment may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit, where the integrated units may be implemented in a form of hardware or a form of a software functional unit. In addition, the specific names of the functional units and modules are only for distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working process of the units and modules in the above system may refer to the corresponding process in the foregoing method embodiment, which is not described herein again.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the present application may implement all or part of the flow of the method of the above embodiments, and may be implemented by a computer program to instruct related hardware, where the computer program may be stored in a computer readable storage medium, and when the computer program is executed by a processor, the computer program may implement the steps of each of the method embodiments described above. Wherein the computer program comprises computer program code which may be in source code form, object code form, executable file or some intermediate form etc. The computer readable medium may include at least: any entity or device capable of carrying computer program code to a photographing device/terminal apparatus, recording medium, computer Memory, read-Only Memory (ROM), random access Memory (RAM, random Access Memory), electrical carrier signals, telecommunications signals, and software distribution media. Such as a U-disk, removable hard disk, magnetic or optical disk, etc. In some jurisdictions, computer readable media may not be electrical carrier signals and telecommunications signals in accordance with legislation and patent practice.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and in part, not described or illustrated in any particular embodiment, reference is made to the related descriptions of other embodiments.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/network device and method may be implemented in other manners. For example, the apparatus/network device embodiments described above are merely illustrative, e.g., the division of the modules or units is merely a logical functional division, and there may be additional divisions in actual implementation, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection via interfaces, devices or units, which may be in electrical, mechanical or other forms.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
The above embodiments are only for illustrating the technical solution of the present application, and not for limiting the same; although the application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present application, and are intended to be included in the scope of the present application.

Claims (10)

1. The SP upgrade package generation method for remote equipment upgrade is characterized by comprising the following steps:
acquiring the latest version of system source codes of the target financial self-service equipment, and recording the latest version of system source codes as new version codes;
acquiring a system source code of a current version of the target financial self-service equipment, and recording the system source code as an old version code;
Recompilation is carried out on the old version code to obtain a first release file corresponding to the old version code;
Comparing the new version code with the code files with the same name in the old version code, and replacing the corresponding code files with the same name in the old version code by adopting code file copies with inconsistent comparison results in the new version code to obtain the old version code after the code files are replaced;
compiling the old version code after the code file replacement to obtain a second release file corresponding to the old version code after the code file replacement;
Comparing the second release file with the first release file, and determining a second release file with inconsistent comparison results;
and compressing the second release file with inconsistent comparison results to generate the SP upgrade package of the target financial self-service equipment.
2. The method for generating an SP upgrade package for remote upgrade of a device according to claim 1, wherein comparing the second release file with the first release file, and determining the second release file with inconsistent comparison results comprises:
calculating the MD5 value of the first release file;
calculating the MD5 value of the second release file;
and comparing the MD5 values of the first release file and the second release file to determine a second release file with inconsistent MD5 values.
3. The method for generating an SP upgrade package for remote upgrade of a device according to claim 1, wherein comparing the new version code with the code files with the same name in the old version code, replacing the corresponding code files with the code file copies with inconsistent comparison results in the new version code, and obtaining the old version code after the code file replacement comprises:
calling Luntbuild to respectively calculate MD5 values of all code files in the new version code and the old version code;
comparing MD5 values between the new version code and each code file with the same name in the old version code to determine code files with inconsistent comparison results;
and copying and replacing corresponding code files with the same name in the old version code by adopting the code files with inconsistent comparison results in the new version code to obtain the old version code with the replaced code files.
4. The method for generating an SP upgrade package for remote upgrade of a device according to claim 1, wherein after compressing the second release file with inconsistent comparison results, the method further comprises:
Checking the SP upgrade package;
If the SP upgrade package is checked to be correct, the SP upgrade package is sent to the target financial self-service equipment;
And upgrading the target financial self-service equipment according to the SP upgrade package.
5. The SP upgrade package generation method of remote device upgrade of claim 4, further comprising, after checking the SP upgrade package:
If the SP upgrade package is checked by mistake, alarming and recording the abnormal condition or abnormal data of the SP upgrade package.
6. The method for generating an SP upgrade package for remote upgrade of a device according to claim 1, wherein the obtaining the latest version of the system source code of the target financial self-service device, recorded as the new version code, comprises:
Determining the equipment model of the target financial self-service equipment;
And retrieving the latest version of system source codes corresponding to the target financial self-service equipment from a source code library according to the equipment model, and recording the latest version of system source codes as new version codes, wherein the source code library is used for storing the system source codes of the financial self-service equipment with various equipment models.
7. The SP upgrade package generation method of any one of claims 1 to 6, wherein after performing compression processing on the second release file with inconsistent comparison results, generating the SP upgrade package of the target financial self-service device, further comprises:
and storing the latest version of system source codes and the SP upgrade package, and recording respective storage paths.
8. An SP upgrade package generation apparatus for remote upgrade of a device, comprising:
the new version code acquisition module is used for acquiring the latest version of system source code of the target financial self-service equipment and recording the latest version of system source code as new version code;
the old version code acquisition module is used for acquiring a system source code of the current version of the target financial self-service equipment and recording the system source code as an old version code;
The recompilation module is used for recompilating the old version code to obtain a first release file corresponding to the old version code;
The code file comparison module is used for comparing the new version code with the code files with the same names in the old version code, and copying and replacing the corresponding code files with the same names in the old version code by adopting the code files with inconsistent comparison results in the new version code to obtain the old version code with the replaced code files;
the code compiling module is used for compiling the old version code after the code file replacement to obtain a second release file corresponding to the old version code after the code file replacement;
the file determining module is used for comparing the second release file with the first release file and determining a second release file with inconsistent comparison results;
And the upgrade package generation module is used for compressing the second release file with inconsistent comparison results to generate the SP upgrade package of the target financial self-service equipment.
9. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the SP upgrade package generation method of remote upgrade of a device according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium storing a computer program, wherein the computer program when executed by a processor implements the SP upgrade package generation method of remote upgrade of a device according to any one of claims 1 to 7.
CN201911099293.2A 2019-11-12 2019-11-12 SP upgrade package generation method and device for equipment remote upgrade and computer equipment Active CN112860284B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911099293.2A CN112860284B (en) 2019-11-12 2019-11-12 SP upgrade package generation method and device for equipment remote upgrade and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911099293.2A CN112860284B (en) 2019-11-12 2019-11-12 SP upgrade package generation method and device for equipment remote upgrade and computer equipment

Publications (2)

Publication Number Publication Date
CN112860284A CN112860284A (en) 2021-05-28
CN112860284B true CN112860284B (en) 2024-05-10

Family

ID=75984268

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911099293.2A Active CN112860284B (en) 2019-11-12 2019-11-12 SP upgrade package generation method and device for equipment remote upgrade and computer equipment

Country Status (1)

Country Link
CN (1) CN112860284B (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000315157A (en) * 1994-09-19 2000-11-14 Hitachi Ltd Program updating and restoring method
JP2006155375A (en) * 2004-11-30 2006-06-15 Fujitsu Ltd Difference file creation program and difference file distribution program
CN103955363A (en) * 2014-04-08 2014-07-30 国云科技股份有限公司 Manufacturing method of program upgrade and installation package
CN105138347A (en) * 2015-07-17 2015-12-09 广东欧珀移动通信有限公司 Difference upgrade patch generating method, software upgrading method and corresponding apparatus
CN105589725A (en) * 2016-01-11 2016-05-18 武汉虹信通信技术有限责任公司 Upgrade patch manufacture method of electronic equipment, upgrade method and upgrade patch
CN106095500A (en) * 2016-06-08 2016-11-09 江苏中威科技软件系统有限公司 A kind of method and system of automatic software updating
CN106547573A (en) * 2016-12-06 2017-03-29 恒生电子股份有限公司 A kind of program file control methods and device
CN106569865A (en) * 2016-11-14 2017-04-19 青岛海信移动通信技术股份有限公司 Producing method and producing device for system upgrade file of terminal
CN106708581A (en) * 2016-12-27 2017-05-24 北京奇虎科技有限公司 Application update package generation method and device and application update method and device
CN108897562A (en) * 2018-06-27 2018-11-27 腾讯科技(深圳)有限公司 Installation kit update method, device, medium and equipment
CN110377321A (en) * 2019-07-22 2019-10-25 平安科技(深圳)有限公司 Method, apparatus, terminal and the storage medium of application program updating

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000315157A (en) * 1994-09-19 2000-11-14 Hitachi Ltd Program updating and restoring method
JP2006155375A (en) * 2004-11-30 2006-06-15 Fujitsu Ltd Difference file creation program and difference file distribution program
CN103955363A (en) * 2014-04-08 2014-07-30 国云科技股份有限公司 Manufacturing method of program upgrade and installation package
CN105138347A (en) * 2015-07-17 2015-12-09 广东欧珀移动通信有限公司 Difference upgrade patch generating method, software upgrading method and corresponding apparatus
CN105589725A (en) * 2016-01-11 2016-05-18 武汉虹信通信技术有限责任公司 Upgrade patch manufacture method of electronic equipment, upgrade method and upgrade patch
CN106095500A (en) * 2016-06-08 2016-11-09 江苏中威科技软件系统有限公司 A kind of method and system of automatic software updating
CN106569865A (en) * 2016-11-14 2017-04-19 青岛海信移动通信技术股份有限公司 Producing method and producing device for system upgrade file of terminal
CN106547573A (en) * 2016-12-06 2017-03-29 恒生电子股份有限公司 A kind of program file control methods and device
CN106708581A (en) * 2016-12-27 2017-05-24 北京奇虎科技有限公司 Application update package generation method and device and application update method and device
CN108897562A (en) * 2018-06-27 2018-11-27 腾讯科技(深圳)有限公司 Installation kit update method, device, medium and equipment
CN110377321A (en) * 2019-07-22 2019-10-25 平安科技(深圳)有限公司 Method, apparatus, terminal and the storage medium of application program updating

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
一种无操作系统下SOC 软件增量升级方法;武柯安等;《电子设计工程》;20160304;第第24卷卷(第第2期期);第161-164页 *

Also Published As

Publication number Publication date
CN112860284A (en) 2021-05-28

Similar Documents

Publication Publication Date Title
CN110941528B (en) Log buried point setting method, device and system based on fault
US11144308B2 (en) System and method for predicting defects in a computer program
US20060156129A1 (en) System for maintaining data
CN105580032A (en) Method and system for reducing instability when upgrading software
CN111158741B (en) Method and device for monitoring dependency relationship change of service module on third party class library
CN111314238A (en) Token management method and device, storage medium and electronic device
CN109324821B (en) Self-service terminal system version management method
CN104778123A (en) Method and device for detecting system performance
CN104133699A (en) Equipment system software updating method and equipment system software updating system
US20140359077A1 (en) Method and apparatus for transmitting symbol files
CN115292163A (en) Application program detection method and device and computer readable storage medium
CN104363112A (en) Parameter management method and parameter management device
CN114461217A (en) Code compiling method and device, electronic equipment and storage medium
CN112860284B (en) SP upgrade package generation method and device for equipment remote upgrade and computer equipment
CN109684205B (en) System testing method, device, electronic equipment and storage medium
CN112860283B (en) SP upgrade package self-identification upgrade method and device and computer equipment
CN112860285B (en) SP upgrade package generation method and device of financial self-service equipment and computer equipment
CN109002710A (en) A kind of detection method, device and computer readable storage medium
CN114650211A (en) Fault repairing method, device, electronic equipment and computer readable storage medium
CN113568834A (en) SDK code compatibility detection method, device, computer equipment and medium
CN113672514A (en) Test method, test device, server and storage medium
CN113326046A (en) Method and device for acquiring compiling time length
KR101737575B1 (en) Method and device for verifying data based on sql sentences generated automatically
CN111695991B (en) Block-based contract processing method and device, block chain node and storage medium
CN109933573B (en) Database service updating method, device and 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
GR01 Patent grant
GR01 Patent grant