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

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

Info

Publication number
CN112860284A
CN112860284A CN201911099293.2A CN201911099293A CN112860284A CN 112860284 A CN112860284 A CN 112860284A CN 201911099293 A CN201911099293 A CN 201911099293A CN 112860284 A CN112860284 A CN 112860284A
Authority
CN
China
Prior art keywords
code
file
old version
upgrade package
release
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201911099293.2A
Other languages
Chinese (zh)
Other versions
CN112860284B (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

Images

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 method for generating an SP upgrade package for remote upgrading of equipment, which comprises the following steps: acquiring a system source code of a latest version and a system source code of a current version of a target financial self-service device, and respectively recording the system source codes as a new version code and an old version code; recompiling the old version code to obtain a first release file; comparing the new version code with the same-name code file in the old version code, copying and replacing the corresponding same-name code file in the old version code by adopting the code file with inconsistent comparison result in the new version code, and obtaining the old version code after the code file is replaced; compiling the old version code after the code file is replaced to obtain a second release file; comparing the second release file with the first release file, and determining the second release file with inconsistent comparison result; and compressing the second release file with inconsistent comparison result to generate an SP upgrade package of the target financial self-service equipment.

Description

SP upgrade package generation method and device for remote upgrade of equipment and computer equipment
Technical Field
The application belongs to the technical field of financial self-service equipment, and particularly relates to a method and a device for generating an SP upgrade package for equipment remote upgrade and computer equipment.
Background
With the function upgrade of the financial self-service equipment, the versions of the system and software on the financial self-service equipment also need to be continuously updated iteratively, at present, an SP (service pack) upgrade package of the financial self-service equipment in the prior art is an SP full package, although the SP full package can effectively guarantee the upgrade of the financial self-service equipment and is suitable for the system versions of all financial self-service equipment, in a remote upgrade scene, the efficiency of remote upgrade of the financial self-service equipment is often low due to the limitation of network transmission bandwidth.
Disclosure of Invention
The embodiment of the application provides a method and a device for generating an SP upgrade package for remote upgrading of equipment and computer equipment, and can solve the problem of low generation efficiency of the SP upgrade package for remote upgrading of equipment.
In a first aspect, an embodiment of the present application provides a method for generating an SP upgrade package for remotely upgrading a device, including:
acquiring a system source code of the latest version of the target financial self-service equipment, and recording the system source code as a new version code;
acquiring a system source code of a current version of target financial self-service equipment, and recording the system source code as an old version code;
recompiling the old version code to obtain a first release file corresponding to the old version code;
comparing the new version code with the same-name code file in the old version code, and copying and replacing the corresponding same-name code file in the old version code by adopting the code file with inconsistent comparison result in the new version code to obtain the old version code after the code file is replaced;
compiling the old version code after the code file is replaced to obtain a second release file corresponding to the old version code after the code file is replaced;
comparing the second release file with the first release file, and determining the second release file with inconsistent comparison result;
and compressing the second release file with inconsistent comparison result to generate an SP upgrade package of the target financial self-service equipment.
Therefore, the SP upgrade package generated by the SP upgrade package generation method for equipment remote upgrade provided by the application only contains the upgrade code files required by the target financial self-service equipment, so that the data volume of the SP upgrade package is greatly reduced, the limitation of network transmission bandwidth 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 that the second release file with inconsistent comparison result 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.
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 same-name code file in the old version code, and replacing the corresponding same-name code file in the old version code with the code file copy with inconsistent comparison result in the new version code to obtain the old version code after the code file replacement includes:
calling Luntbuild to respectively calculate the MD5 value of each code file in the new version code and the old version code;
comparing MD5 values between each code file with the same name in the new version code and the old version code, and determining the code files with inconsistent comparison results;
and copying the code files with inconsistent comparison results in the new version codes to replace the corresponding code files with the same name in the old version codes to obtain the old version codes after the code files are replaced.
And the Luntbuild is called to realize the comparison of the code files, so that the efficiency is further improved, the MD5 values of the code files with the same name can be quickly calculated, and the code files with the changes between the new version and the old version can be more accurately determined.
Preferably, after compressing the second release file with the inconsistent comparison result and generating the SP upgrade package of the target financial self-service device, the method further includes:
checking the SP upgrading packet;
if the SP upgrading packet is verified to be correct, the SP upgrading packet is sent out to the target financial self-service equipment;
and upgrading the target financial self-service equipment according to the SP upgrading package.
After the SP upgrading packet is generated, the SP upgrading packet is verified firstly and then sent to the target financial self-service equipment to complete upgrading after no error exists, so that the abnormal problems of collapse and the like in the upgrading process can be reduced, and the stability of SP upgrading is improved.
Preferably, after compressing the second release file with the inconsistent comparison result and generating the SP upgrade package of the target financial self-service device, the method further includes:
and storing the system source code of the latest version and the SP upgrade package, and recording respective storage paths.
By storing the system source code of the latest version and the SP upgrade package, the system source code of the latest version and the SP upgrade package can be conveniently called next time, and particularly when a problem of crash in an upgrade process occurs, the system source code of the latest version can be quickly called to repair a system when a target financial self-service device is repaired, 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 system source code of the latest version of the target financial self-service equipment and recording the system source code as the 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 recompiling 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 same-name code file in the old version code, and replacing the corresponding same-name code file in the old version code by adopting the code file copy with inconsistent comparison result in the new version code to obtain the old version code after the code file is replaced;
the code compiling module is used for compiling the old version code after the code file is replaced to obtain a second release file corresponding to the old version code after the code file is replaced;
the file determining module is used for comparing the second release file with the first release file and determining the second release file with inconsistent comparison result;
and the upgrade package generation module is used for compressing the second release file with inconsistent comparison result to generate an 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 executable on the processor, where the processor implements the SP upgrade package generation method for remotely upgrading the device when executing the computer program.
In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the SP upgrade package generation method for remotely upgrading a device as described above is implemented.
It is understood that the beneficial effects of the second to fourth aspects can be seen from the description of the first aspect, and are not described herein again.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a schematic diagram of an application environment of an SP upgrade package generation method for remote upgrading of a device in an embodiment of the present application;
FIG. 2 is a flowchart of an SP upgrade package generation method for remote upgrade of a device according to an embodiment of the present application;
fig. 3 is a schematic flowchart of step 104 of an SP upgrade package generation method for remotely upgrading a device in an application scenario according to an embodiment of the present application;
fig. 4 is a schematic flowchart of step 106 of an 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 flowchart illustrating an SP upgrade package verification method for remote upgrade of a device in an application scenario according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of an SP upgrade package generation apparatus for remotely upgrading a device according to an embodiment of the present application;
FIG. 7 is a schematic diagram of a computer device according to an embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, 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 will 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 this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when", "upon" or "in response to" determining "or" in response to detecting ". Similarly, the phrase "if it is determined" or "if a [ described condition or event ] is detected" may be interpreted contextually to mean "upon determining" or "in response to determining" or "upon detecting [ described condition or event ]" or "in response to detecting [ described condition or event ]".
Furthermore, in the description of the present application and the appended claims, the terms "first," "second," "third," and the like are used for distinguishing between descriptions and not necessarily for describing or implying relative importance.
Reference throughout this 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 present application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," or the like, in various places throughout this specification are not necessarily all referring to the same embodiment, but rather "one or more but not all embodiments" unless specifically stated otherwise. The terms "comprising," "including," "having," and variations thereof mean "including, but not limited to," unless expressly specified otherwise.
The method for generating the SP upgrade package for remotely upgrading the device provided by the application can be applied to an application environment as shown in FIG. 1, wherein a client can communicate with a server through a network. Wherein the client may be, but is not limited to, various personal computers, laptops, smartphones, tablets, and portable wearable devices. The server may be implemented as a stand-alone server or as a server cluster consisting of a plurality of servers.
In an embodiment, as shown in fig. 2, an SP upgrade package generating method for remotely upgrading a device is provided, which is described by taking the method as an example applied to the server in fig. 1, and includes the following steps:
101. acquiring a system source code of the latest version of the target financial self-service equipment, and recording the system source code as a new version code;
in this embodiment, first, the server needs to obtain the system source code of the latest version of the target financial self-service device, and the system source code is written and stored by a programmer. Therefore, the financial self-service devices of different models respectively correspond to different system source codes, and the server can retrieve the system source code of the latest version corresponding to the device model according to the device model after determining the device model of the target financial self-service device. Specifically, in an application scenario, the server may determine the device model of the target financial self-service device first; and then, retrieving the system source code of the latest version 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 of various equipment models.
Specifically, a SVN path of the latest version of the system source code can be set in the Luntbuild project, and the latest version of the system source code can be downloaded to the local through the SVN path. In a specific application scenario, the server can automatically download 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 target financial self-service equipment, and recording the system source code as an old version code;
on the other hand, the server needs to acquire the system source code of the current version of the target financial self-service device, and the system source code is marked as the old version code. Specifically, after determining the target financial self-service device, the server may determine the current system version of the target financial self-service device by obtaining the system version number of the target financial self-service device, so that the server may obtain the system source code of the current version of the target financial self-service device from a database storing system source codes of historical versions.
103. Recompiling the old version code to obtain a first release file corresponding to the old version code;
specifically, the server may call a build function to compile the old version code, and after build is completed, output a release file corresponding to the old version code, that is, the first release file.
104. Comparing the new version code with the same-name code file in the old version code, and copying and replacing the corresponding same-name code file in the old version code by adopting the code file with inconsistent comparison result in the new version code to obtain the old version code after the code file is replaced;
it can be understood that the new version code and the old version code both include a plurality of code files, and since the system source code of the same system has to be consistent in writing rules of the code and division of the code files, the new version code and the old version code both include a plurality of code files with the same name. It can be known that the new version code must have source code different from the old version code, and the changed source code exists in one or several code files. In step 104, the server may compare the new version code with the same-name code files in the old version code, determine each code file with an inconsistent comparison result, and then replace the corresponding same-name code file in the old version code with the code file copy with an inconsistent comparison result in the new version code, so as to obtain the old version code after the code file replacement.
For example, the new version code includes 5 code files, namely a1, b1, c1, d1 and e 1; the old version code contains 5 code files, namely a2, b2, c2, d2 and e2, wherein a1 is the same as a2, b1 is the same as b2, c1 is the same as c2, d1 is the same as d2, and e1 is the same as e 2. When in comparison, comparing a1 with a2, and if the comparison results of a1 and a2 are inconsistent, determining that the code files are code files with inconsistent comparison results; similarly, b1 and b2, c1 and c2, d1 and d2, and e1 and e2 are respectively compared, and if the comparison results are a1 and a2, and the comparison results of 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 with inconsistent comparison results. The server then replaces a2, c2 in the old version code with a1, c 1.
In order to improve the comparison efficiency and more accurately determine the code file with the changes between the new version and the old version, as shown in fig. 3, further, step 104 may include:
201. calling Luntbuild to respectively calculate the MD5 value of each code file in the new version code and the old version code;
202. comparing MD5 values between each code file with the same name in the new version code and the old version code, and determining the code files with inconsistent comparison results;
203. and copying the code files with inconsistent comparison results in the new version codes to replace the corresponding code files with the same name in the old version codes to obtain the old version codes after the code files are replaced.
As for step 201-. Therefore, the server can replace the corresponding code file with the same name in the old version code with the code file copy with the inconsistent comparison result in the new version code, so as to obtain the old version code after the code file is replaced.
105. Compiling the old version code after the code file is replaced to obtain a second release file corresponding to the old version code after the code file is replaced;
specifically, the server may call a Build function to compile the old version code after the code file is replaced, and after the Build, output a release file corresponding to the old version code after the code file is replaced, that is, the second release file.
106. Comparing the second release file with the first release file, and determining the second release file with inconsistent comparison result;
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 an inconsistent comparison result.
To improve the calculation efficiency and the contrast 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.
As for step 301-.
107. And compressing the second release file with inconsistent comparison result to generate an SP upgrade package of the target financial self-service equipment.
It can be understood that, after the second release files with inconsistent comparison results are determined, the server may compress the second release files with inconsistent comparison results to generate the SP upgrade package of the target financial self-service device, and it is known that the generated SP upgrade package only contains code data for incremental updating, so that the SP upgrade package can meet the upgrade requirements of the target financial self-service device, and ensure that the data volume is small enough, thereby reducing the network bandwidth pressure during remote upgrade.
In order to reduce the abnormal problems such as crash during the upgrade process and improve the stability of the SP upgrade, as shown in fig. 5, further, after step 107, the method further includes:
401. checking the SP upgrading packet;
402. if the SP upgrading packet is verified to be correct, the SP upgrading packet is sent out to the target financial self-service equipment;
403. and upgrading the target financial self-service equipment according to the SP upgrading package.
For step 401-; otherwise, if the check result shows that the SP upgrade package is wrong, it indicates that the SP upgrade package data is abnormal, and at this time, the server may 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 the inconsistent comparison result and generating the SP upgrade package of the target financial self-service device, the server further includes: and storing the system source code of the latest version and the SP upgrade package, and recording respective storage paths. By storing the system source code of the latest version and the SP upgrade package, the system source code of the latest version and the SP upgrade package can be conveniently called next time, and particularly when a problem of crash in an upgrade process occurs, the system source code of the latest version can be quickly called to repair a system when a target financial self-service device is repaired, or the SP upgrade package is called to upgrade the target financial self-service device again.
In the embodiment of the application, firstly, a system source code of the latest version of the target financial self-service equipment is obtained and recorded as a new version code; 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; then, recompiling the old version code to obtain a first release file corresponding to the old version code; then, comparing the new version code with the same-name code file in the old version code, and copying and replacing the corresponding same-name code file in the old version code by adopting the code file with inconsistent comparison result in the new version code to obtain the old version code after the code file is replaced; compiling the old version code after the code file is replaced to obtain a second release file corresponding to the old version code after the code file is replaced; secondly, comparing the second release file with the first release file, and determining the second release file with inconsistent comparison result; and finally, compressing the second release file with inconsistent comparison result to generate an SP upgrade package of the target financial self-service equipment. Therefore, the SP upgrade package generated by the SP upgrade package generation method for equipment remote upgrade provided by the application only contains the upgrade code files required by the target financial self-service equipment, so that the data volume of the SP upgrade package is greatly reduced, the limitation of network transmission bandwidth 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 numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
In an embodiment, an SP upgrade package generation apparatus for remote upgrade of a device is provided, where the SP upgrade package generation apparatus for remote upgrade of a device corresponds to the SP upgrade package generation method for remote upgrade of a device in the foregoing embodiment one to one. As shown in fig. 6, the SP upgrade package generation apparatus for remote upgrade of the device 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 generation module 507. The functional modules are explained in detail as follows:
a new version code obtaining module 501, 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;
an old version code obtaining module 502, configured to obtain a system source code of a current version of the target financial self-service device, which is marked 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 a same-name code file in the old version code, and replace a corresponding same-name code file in the old version code with a code file copy with an inconsistent comparison result in the new version code, so as to obtain an old version code after the code file is replaced;
a code compiling module 505, configured to compile 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;
a file determining module 506, configured to compare the second release file with the first release file, and determine a second release file with an inconsistent comparison result;
and an upgrade package generation module 507, configured to compress the second release file with the inconsistent comparison result, and generate an SP upgrade package of the target financial self-service device.
Further, the file determination module may include:
a first calculating unit, configured to calculate an MD5 value of the first release file;
a second calculating unit, configured to calculate an 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 the second release file with inconsistent MD5 values.
Further, the code file comparison module may include:
the calling calculation unit is used for calling the Luntbuild to calculate the MD5 value of each code file in the new version code and the old version code respectively;
the code file comparison unit is used for comparing MD5 values between each code file with the same name in the new version code and the old version code and determining the code files with inconsistent comparison results;
and the file replacing unit is used for replacing the corresponding code file with the same name in the old version code by adopting the code file copy with inconsistent comparison result in the new version code to obtain the old version code after the code file is replaced.
Further, the SP upgrade package generation apparatus for remotely upgrading a device may further include:
the checking module is used for checking the SP upgrading packet;
the outward sending module is used for outward sending the SP upgrading packet to the target financial self-service equipment if the SP upgrading packet is verified to be correct;
and the upgrading module is used for upgrading the target financial self-service equipment according to the SP upgrading package.
Further, the SP upgrade package generation apparatus for remotely upgrading 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.
The specific definition of the SP upgrade package generation apparatus for device remote upgrade may refer to the above definition of the SP upgrade package generation method for device remote upgrade, and is not described herein again. The modules in the device for generating the SP upgrade package for remote upgrading of the equipment can be wholly or partially realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, as shown in fig. 7, and includes a memory, a processor, and a computer program stored on the memory and executable on the processor, and the processor executes the computer program to implement the steps of the SP upgrade package generation method for remotely upgrading a device in the above embodiments, such as steps 101 to 107 shown in fig. 2. Alternatively, the processor, when executing the computer program, implements the functions of each module/unit of the SP upgrade package generation apparatus for remote upgrade of a device in the above-described embodiments, for example, the functions of modules 501 to 507 shown in fig. 6. To avoid repetition, further description is omitted here.
In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, which when executed by a processor implements the steps of the SP upgrade package generation method for remote upgrade of a device in the above embodiments, such as steps 101 to 107 shown in fig. 2. Alternatively, the computer program, when executed by the processor, implements the functions of the modules/units of the SP upgrade package generation apparatus for remote upgrade of a device in the above-described embodiments, such as the functions of the modules 501 to 507 shown in fig. 6. To avoid repetition, further description is omitted here.
It should be noted that, for the information interaction, execution process, and other contents between the above-mentioned devices/units, the specific functions and technical effects thereof are based on the same concept as those of the embodiment of the method of the present application, and specific reference may be made to the part of the embodiment of the method, which is not described herein again.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, all or part of the processes in the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium and can implement the steps of the embodiments of the methods described above when the computer program is executed by a processor. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an 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 apparatus/terminal apparatus, a recording medium, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), an electrical carrier signal, a telecommunications signal, and a software distribution medium. Such as a usb-disk, a removable hard disk, a magnetic or optical disk, etc. In certain jurisdictions, computer-readable media may not be an electrical carrier signal or a telecommunications signal in accordance with legislative and patent practice.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
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 implementation. 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 ways. For example, the above-described apparatus/network device embodiments are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implementing, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed 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 can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (10)

1. A method for generating an SP upgrade package for remote upgrade of a device is characterized by comprising the following steps:
acquiring a system source code of the latest version of the target financial self-service equipment, and recording the system source code as a new version code;
acquiring a system source code of a current version of target financial self-service equipment, and recording the system source code as an old version code;
recompiling the old version code to obtain a first release file corresponding to the old version code;
comparing the new version code with the same-name code file in the old version code, and copying and replacing the corresponding same-name code file in the old version code by adopting the code file with inconsistent comparison result in the new version code to obtain the old version code after the code file is replaced;
compiling the old version code after the code file is replaced to obtain a second release file corresponding to the old version code after the code file is replaced;
comparing the second release file with the first release file, and determining the second release file with inconsistent comparison result;
and compressing the second release file with inconsistent comparison result to generate an 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 as claimed in claim 1, wherein the comparing the second release file with the first release file, and the determining the second release file whose comparison result is inconsistent 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.
3. The method for generating an SP upgrade package for remote upgrade of a device according to claim 1, wherein the comparing the new version code with the same-name code file in the old version code, and replacing the corresponding same-name code file in the old version code with a code file copy whose comparison result is inconsistent in the new version code, to obtain the old version code after the code file replacement comprises:
calling Luntbuild to respectively calculate the MD5 value of each code file in the new version code and the old version code;
comparing MD5 values between each code file with the same name in the new version code and the old version code, and determining the code files with inconsistent comparison results;
and copying the code files with inconsistent comparison results in the new version codes to replace the corresponding code files with the same name in the old version codes to obtain the old version codes after the code files are replaced.
4. The method for generating the SP upgrade package for the remote upgrade of the device according to claim 1, wherein after compressing the second release file with inconsistent comparison result to generate the SP upgrade package of the target financial self-service device, the method further comprises:
checking the SP upgrading packet;
if the SP upgrading packet is verified to be correct, the SP upgrading packet is sent out to the target financial self-service equipment;
and upgrading the target financial self-service equipment according to the SP upgrading package.
5. The method for generating an SP upgrade package for remote upgrade of a device as claimed in claim 4, further comprising, after verifying the SP upgrade package:
and if the SP upgrading packet is checked to be wrong, alarming and recording the abnormal condition or abnormal data of the SP upgrading packet.
6. The method for generating an SP upgrade package for remote upgrade of a device as claimed in claim 1, wherein said obtaining a latest version of system source code of a target financial self-service device, denoted as new version code, comprises:
determining the equipment model of the target financial self-service equipment;
and retrieving the system source code of the latest version corresponding to the target financial self-service equipment from a source code library according to the equipment model, and recording the system source code as a new version code, 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 method for generating the SP upgrade package of the device remote upgrade of any one of claims 1 to 6, wherein after compressing the second release file with inconsistent comparison result to generate the SP upgrade package of the target financial self-service device, the method further comprises:
and storing the system source code of the latest version and the SP upgrade package, and recording respective storage paths.
8. An apparatus for generating an SP upgrade package for remote upgrade of a device, comprising:
the new version code acquisition module is used for acquiring the system source code of the latest version of the target financial self-service equipment and recording the system source code as the 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 recompiling 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 same-name code file in the old version code, and replacing the corresponding same-name code file in the old version code by adopting the code file copy with inconsistent comparison result in the new version code to obtain the old version code after the code file is replaced;
the code compiling module is used for compiling the old version code after the code file is replaced to obtain a second release file corresponding to the old version code after the code file is replaced;
the file determining module is used for comparing the second release file with the first release file and determining the second release file with inconsistent comparison result;
and the upgrade package generation module is used for compressing the second release file with inconsistent comparison result to generate an 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 a SP upgrade package generation method for remote upgrade of a device as claimed in 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 a SP upgrade package generation method for 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 true CN112860284A (en) 2021-05-28
CN112860284B 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 (2)

* Cited by examiner, † Cited by third party
Title
LOOPERJING: "增量更新---服务端与客户端的处理方案", pages 1 - 8, Retrieved from the Internet <URL:https://www.jianshu.com/p/2551a01916df> *
武柯安等: "一种无操作系统下SOC 软件增量升级方法", 《电子设计工程》, vol. 24, no. 2, 4 March 2016 (2016-03-04), pages 161 - 164 *

Also Published As

Publication number Publication date
CN112860284B (en) 2024-05-10

Similar Documents

Publication Publication Date Title
CN110941528B (en) Log buried point setting method, device and system based on fault
KR20210011513A (en) Method and system for providing validated, auditable, and immutable inputs to a smart contract
CN109445837B (en) Application program publishing method and device
CN111158741B (en) Method and device for monitoring dependency relationship change of service module on third party class library
CN115039084A (en) Unit testing of components of a dataflow graph
US11520651B2 (en) Software code change reversal tool
JP2018505506A (en) Machine-based instruction editing
CN111258832B (en) Interface parameter verification method, device, equipment and medium
US20140359077A1 (en) Method and apparatus for transmitting symbol files
CN112561690A (en) Method, system, equipment and storage medium for testing credit card staging service interface
CN111352997A (en) Test environment verification method and system
CN112860284B (en) SP upgrade package generation method and device for equipment remote upgrade and computer equipment
US11100131B2 (en) Simulation of a synchronization of records
CN115018621A (en) Contract changing method, device, equipment and medium
CN112860285B (en) SP upgrade package generation method and device of financial self-service equipment and computer equipment
CN113568834A (en) SDK code compatibility detection method, device, computer equipment and medium
CN113672514A (en) Test method, test device, server and storage medium
KR101737575B1 (en) Method and device for verifying data based on sql sentences generated automatically
CN117632114B (en) FMU file importing method and device based on file analysis
CN116661758B (en) Method, device, electronic equipment and medium for optimizing log framework configuration
CN110008073B (en) Hardware platform differential shielding method, device, equipment and readable storage medium
CN111695991B (en) Block-based contract processing method and device, block chain node and storage medium
CN112749091A (en) Software regression testing method
CN111158694A (en) Compiling alarm processing method and device
CN114924762A (en) Component upgrade adaptation detection method and device

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