CN112860283B - SP upgrade package self-identification upgrade method and device and computer equipment - Google Patents

SP upgrade package self-identification upgrade method and device and computer equipment Download PDF

Info

Publication number
CN112860283B
CN112860283B CN201911099076.3A CN201911099076A CN112860283B CN 112860283 B CN112860283 B CN 112860283B CN 201911099076 A CN201911099076 A CN 201911099076A CN 112860283 B CN112860283 B CN 112860283B
Authority
CN
China
Prior art keywords
upgrade
module
self
target financial
financial self
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
CN201911099076.3A
Other languages
Chinese (zh)
Other versions
CN112860283A (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 CN201911099076.3A priority Critical patent/CN112860283B/en
Publication of CN112860283A publication Critical patent/CN112860283A/en
Application granted granted Critical
Publication of CN112860283B publication Critical patent/CN112860283B/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

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 applicable to the technical field of financial self-service equipment, and provides a self-identification upgrading method of an SP upgrading package, which comprises the following steps: acquiring an SP upgrade package used for upgrading the target financial self-service equipment; reading the equipment configuration of the target financial self-service equipment; detecting the module type of each hardware module in the target financial self-service equipment according to the equipment configuration; and aiming at each hardware module in the target financial self-service equipment, importing upgrading configuration corresponding to the module type of each hardware module in the SP upgrading package into each hardware module.

Description

SP upgrade package self-identification upgrade method and device and computer equipment
Technical Field
The application belongs to the technical field of financial self-service equipment, and particularly relates to a self-identification upgrading method and device of an SP (service provider) upgrading package and computer equipment.
Background
As the functions of the financial self-service equipment are upgraded, the versions of the system and the software on the financial self-service equipment also need to be continuously and iteratively updated. The financial self-service equipment is provided with a plurality of hardware modules, the same hardware in different financial self-service equipment can be of different types, for example, card readers on some financial self-service equipment are of three-assistant brands, and card readers on some financial self-service equipment are of ohm brands. Currently, when a financial institution upgrades the financial self-service equipment under a flag, in order to meet the requirement of upgrading all the financial self-service equipment, a manufactured SP (Service Pack) upgrade package generally supports all types of hardware, then the SP upgrade package is downloaded to each branch institution, and a maintainer of the branch institution manually selects a corresponding upgrade configuration file according to the type of each hardware module on each financial self-service equipment, thereby completing the upgrading of each financial self-service equipment.
However, the method of completing the upgrade by relying on manual configuration is low in efficiency, is easy to configure in error, causes failure of upgrading the self-service financial equipment, and reduces the success rate of upgrading the self-service financial equipment.
Disclosure of Invention
The embodiment of the application provides a self-identification upgrading method and device of an SP upgrading package and computer equipment, and can solve the problem of self-identification upgrading X of the SP upgrading package.
In a first aspect, an embodiment of the present application provides a self-identifying upgrade method of an SP upgrade package, including:
acquiring an SP upgrade package used for upgrading the target financial self-service equipment;
reading the equipment configuration of the target financial self-service equipment;
detecting the module type of each hardware module in the target financial self-service equipment according to the equipment configuration;
and aiming at each hardware module in the target financial self-service equipment, importing upgrading configuration corresponding to the module type of each hardware module in the SP upgrading package into each hardware module.
According to the method and the device, the module types of the hardware modules in the target financial self-service equipment are detected through the equipment configuration of the target financial self-service equipment, so that the upgrade configuration corresponding to the module types of the hardware modules in the SP upgrade package is imported into the hardware modules, and the upgrade of the target financial self-service equipment is completed. Therefore, the upgrading operation of the financial self-service equipment can be completed without manual configuration, so that the upgrading efficiency of the equipment is improved, the occurrence of configuration error conditions is reduced, and the upgrading success rate of the financial self-service equipment is improved.
Preferably, for each hardware module in the target financial self-service device, importing the upgrade configuration corresponding to the module type of each hardware module in the SP upgrade package into each hardware module includes:
generating an activation script corresponding to the module type of each hardware module aiming at each hardware module in the target financial self-service equipment;
and sending the activation script to the target financial self-service equipment so that the target financial self-service equipment activates the SP upgrade package by executing the activation script, and importing upgrade configuration corresponding to the module type of each hardware module into each hardware module.
The SP upgrade package is activated by the activation script to complete the upgrade, so that the upgrade efficiency of the financial self-service equipment is improved.
Preferably, after obtaining the SP upgrade package used by the current upgrade of the target financial self-service device, the method further comprises: copying the SP upgrade package to the appointed installation path of the target financial self-service equipment, so that the upgrade of the target financial self-service equipment is facilitated.
Preferably, the device configuration for reading the target financial self-service device includes:
acquiring a configuration file in the target financial self-service equipment, wherein the configuration file is used for managing equipment configuration of the target financial self-service equipment, and the equipment configuration comprises module types of all hardware modules in the target financial self-service equipment;
storing the configuration file into a preset cache;
the detecting the module types of each hardware module in the target financial self-service equipment according to the equipment configuration comprises the following steps:
reading the configuration file from the preset cache;
and detecting the module type of each hardware module in the target financial self-service equipment from the configuration file.
Therefore, the configuration file is cached, so that the upgrading operation of the server on the target financial self-service equipment can be more flexible, the configuration file can be cached in advance, and when the target financial self-service equipment is in an idle state, the subsequent steps are executed to complete the upgrading operation.
Preferably, after importing, for each hardware module in the target financial self-service device, an upgrade configuration corresponding to a module type of the each hardware module in the SP upgrade package into the each hardware module, the method further includes:
checking whether each hardware module in the target financial self-service equipment is finished with configuration upgrading;
if all hardware modules in the target financial self-service equipment are configured and upgraded, determining that the upgrading of the target financial self-service equipment is completed;
and if all the hardware modules in the target financial self-service equipment do not complete configuration upgrading, sending information about failure in upgrading the target financial self-service equipment.
Therefore, the target financial self-service equipment can be ensured to be successfully upgraded through verification, or the target financial self-service equipment can be timely known when the financial self-service equipment is failed to be upgraded.
In a second aspect, an embodiment of the present application provides a self-identifying upgrade apparatus of an SP upgrade package, including:
the upgrade package acquisition module is used for acquiring an SP upgrade package used for upgrading the target financial self-service equipment at this time;
the configuration reading module is used for reading the equipment configuration of the target financial self-service equipment;
the module type detection module is used for detecting the module type of each hardware module in the target financial self-service equipment according to the equipment configuration;
the configuration importing module is used for importing the upgrade configuration corresponding to the module type of each hardware module in the SP upgrade package into each hardware module aiming at each hardware module in 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 self-identifying upgrade method of the SP upgrade package when executing the computer program.
In a fourth aspect, embodiments of the present application provide a computer readable storage medium storing a computer program, where the computer program when executed by a processor implements the above-described self-identification upgrade method of an SP upgrade package.
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 required for 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 diagram of an application environment of a method for self-identifying an upgrade package of an SP according to an embodiment of the present application;
FIG. 2 is a flow chart of a self-identifying upgrade method of an SP upgrade package in an embodiment of the present application;
fig. 3 is a schematic flow chart of a self-identifying upgrade method step 102 of an SP upgrade package in an application scenario in an embodiment of the present application;
fig. 4 is a schematic flow chart of a self-identifying upgrade method step 103 of the SP upgrade package in an application scenario in an embodiment of the present application;
fig. 5 is a schematic flow chart of a self-identifying upgrade method step 104 of an SP upgrade package in an application scenario in an embodiment of the present application;
FIG. 6 is a schematic flow chart of a self-identification upgrade method of an SP upgrade package in an embodiment of the present application for checking whether a financial self-service device is upgraded in an application scenario;
FIG. 7 is a schematic diagram of a self-identifying upgrade apparatus of an SP upgrade package in an embodiment of the present application;
FIG. 8 is a schematic diagram of a computer device in 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 configurations, 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 this 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 this specification 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 ]".
In addition, in the description of the present application and the appended claims, the terms "first," "second," "third," and the like are used merely to distinguish between descriptions and are not to be construed as indicating or implying 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 self-identification upgrading method of the SP upgrading package can be applied to an application environment as shown in fig. 1, wherein financial self-service equipment can communicate with a server through a network. The server may be implemented as a stand-alone server or as a server cluster formed by a plurality of servers.
In one embodiment, as shown in fig. 2, a self-identifying upgrade method of an SP upgrade package is provided, and the method is applied to the server in fig. 1 for illustration, and includes the following steps:
101. acquiring an SP upgrade package used for upgrading the target financial self-service equipment;
in this embodiment, the server determines which one or more financial self-service devices need to be upgraded, and these financial self-service devices are the target financial self-service devices. It can be understood that, when the financial institution upgrades the self-service financial devices, the SP upgrade package used in the upgrade is issued to the self-service financial devices or directly issued to the server, which is not limited in detail in this embodiment. Or the server can actively check whether the target self-service financial equipment needs to be upgraded or not, specifically, the server can firstly determine the current version number of the system of the target self-service financial equipment, then detect whether the current version number of the system is the latest version number, and if not, request and acquire the SP upgrade package used by the current upgrade of the target self-service financial equipment. Therefore, the server can acquire the SP upgrade package used by the current upgrade of the target financial self-service equipment.
In order to facilitate the upgrade of the target self-service financial device, in this embodiment, after the SP upgrade package used by the current upgrade of the target self-service financial device is obtained, the server may further copy the SP upgrade package to the designated installation path of the target self-service financial device, and in the subsequent step, the target self-service financial device is facilitated to import relevant configuration from the SP upgrade package.
102. Reading the equipment configuration of the target financial self-service equipment;
103. detecting the module type of each hardware module in the target financial self-service equipment according to the equipment configuration;
for step 102 and step 103, it may be understood that, before upgrading the target self-service financial device, the server needs to first read the device configuration of the target self-service financial device, detect the module type of each hardware module in the target self-service financial device from the device configuration, and find the upgrade configuration matched with each hardware module from the SP upgrade package accurately, so as to complete the upgrade successfully.
Specifically, as shown in fig. 3, step 102 may include:
201. acquiring a configuration file in the target financial self-service equipment, wherein the configuration file is used for managing equipment configuration of the target financial self-service equipment, and the equipment configuration comprises module types of all hardware modules in the target financial self-service equipment;
202. storing the configuration file into a preset cache;
for steps 201-202, it may be understood that the target self-service financial device stores a configuration file, where the configuration file is a library file, and describes a device configuration of the target self-service financial device, including a module type of each hardware module, for example, in a type of self-service financial device, the configuration file is termtypeconfig. The server may obtain the configuration file and cache it to later detect the module type of each hardware module therefrom.
For ease of understanding, the following illustrates the format of a configuration file in one particular application scenario:
the definition in the configuration file is as follows:
modules: representing a node comprising all device type small nodes
Module: representing a device type, the concrete terms under this small node mean as follows:
id: representing the device type representation, being a unique indicator, generating an activation script based on the ID content
English: english name indicating device type
Chinese: chinese name representing device type
Driver: detection tool detects whether hardware is a small node type device and uses dynamic library
Port: port number or pid/vid of device connection
Examples of configuration files are as follows:
<?xml version='1.0'encoding='gb2312'?>
<SetupConfig>
<Modules>
<!--YIHUA_FINGER-->
< Module id= "yhspptttctcsytcm 025" englist= "csy Finger Print" Chinese= "driver =" Techn Cheng Yetong "driver =" Defaultdetector dll "port =" 735f:1301"/>
< Module id= "yhspprvol 410AFEV10" englist= "welv30_ccb Finger" wrench= "wil fingerprinter V10" driver= "yhdrptprwell 410AFEV10.Dll" port= "" "/>"
< Module id= "yhspprvol 410AFEV10_ccb" englist= "WElV30_ccb Finger" chip= "wil fingerprint apparatus CCB" driver= "yhdrplrvolv 410afev10.Dll" port= "/>"
< Module id= "yhspprvol 410AFEV10_hz" englist= "WElV30_hz Finger" chip= "wil fingerprint device HZ" driver= "yhdrplrvolv 410afev10.Dll" port= "/>"
< Module id= "yhsppropriate 410afev10_urumqi" englist= "welv30_urumqi Finger" wrench= "wil fingerprinter URUMQI" driver= "yhdrptpyr 410afev10.Dll" port= "/"
< Module id= "yhspprvol 410AFEV10_tf" englist= "WElV30_tf Finger" wrench= "wil fingerprinting" bank style "driver=" yhdr ptrvolv 410afev10.Dll "port="/> "
< Module id= "yhspptttcsy_jzt" englist= "Tcsy Finger Print" chinese= "farm-line wil fingerprint" driver= "yhdrchktcsy dll" port= "/>"
</Modules>
</ModuleType>
</ModuleType>
</SetupConfig>
The dynamic library exports the following interfaces to the tool call:
function/: detecting device connection status
Parameter//:
strPort: the port number can be a serial port (such as COM 1) or a USB port (such as 0525: a 4)
strParam: interface calling parameter, mainly used when the same drive is compatible with multiple types of equipment
V/return: device status: -1 = unconnected or unresponsive, -2 = responsive code error, 0 = normal, 1 = failed
int CheckModuleStatus(const CString&strPort,const CString&strParam);
Based on the steps 201-202, specifically, as shown in fig. 4, step 103 may include:
301. reading the configuration file from the preset cache;
302. and detecting the module type of each hardware module in the target financial self-service equipment from the configuration file.
For steps 301-302, it may be known that, when the server needs to detect the module type of the hardware module, the server caches the configuration file, reads the configuration file from the preset cache, and then detects the module type of each hardware module in the target financial self-service device. Therefore, the configuration file is cached, so that the upgrading operation of the server on the target financial self-service equipment can be more flexible, the configuration file can be cached in advance, and when the target financial self-service equipment is in an idle state, the subsequent steps are executed to complete the upgrading operation.
For step 302, specifically, taking the above example, the server may call each Module node in the label Modules, starting from the first Module node, substituting a checkmodule function interface derived from a dynamic library configured by a driver item under the Module node, if the return is successful, representing that the Module type of the detection hardware Module is successful, and then obtaining the configuration content of the node id as the device type; if the detection fails, the next lower node is operated again until the detection is successful.
104. And aiming at each hardware module in the target financial self-service equipment, importing upgrading configuration corresponding to the module type of each hardware module in the SP upgrading package into each hardware module.
After detecting the module types of the hardware modules in the target financial self-service equipment, the server can guide the upgrade configuration corresponding to the module types of the hardware modules in the SP upgrade package into each hardware module aiming at each hardware module in the target financial self-service equipment, so that configuration upgrade is completed for each hardware module one by one, and the upgrade of the target financial self-service equipment can be completed after configuration upgrade is completed for all the hardware modules.
In particular, in order to reduce the abnormal problems such as crashes in the upgrade process and improve the stability of the SP upgrade, the server may check the SP upgrade package before step 104; if the SP upgrade package is checked without errors, executing step 104; otherwise, if the SP upgrade package is checked to be wrong, alarming and acquiring the SP upgrade package used by the current upgrade of the target financial self-service equipment again.
To improve the upgrade efficiency of the financial self-service device, further, as shown in fig. 5, step 104 may include:
401. generating an activation script corresponding to the module type of each hardware module aiming at each hardware module in the target financial self-service equipment;
402. and sending the activation script to the target financial self-service equipment so that the target financial self-service equipment activates the SP upgrade package by executing the activation script, and importing upgrade configuration corresponding to the module type of each hardware module into each hardware module.
For steps 401-402, it can be understood that, by configuring an activation script, the target self-service financial device completes self-service upgrade, so that the upgrade efficiency of the target self-service financial device can be improved, the burden of a server is reduced, and when the server upgrades a large number of self-service financial devices at the same time, multi-line operation can still be realized to complete upgrade work. Specifically, the server may generate, for each hardware module, an activation script corresponding to a module type of the each hardware module, where it is known that the activation script provides the system of the target financial self-service device with the execution of the activation script and the activation of the SP upgrade package. Specifically, in an application scenario, the dynamically generated activation script content may be as follows (taking a fingerprint instrument in a financial self-service device as an example):
the content of yhspptprwel 410AFEV10 ccB.bat is: regedit. Exe/s active. Data/YHSpPTRWEL 410AFEV10 ccB.reg
Wherein, the yhsppptrvel 410AFEV10 ccB.reg is a configuration file, and the content thereof is as follows: windows Registry Editor Version 5.00.00
The method comprises the steps of carrying out a first treatment on the surface of the First activate
[HKEY_IUSERS\.DEFAIULTXFS\L0GICAL__SERVICES\PTR30]
"Class"="PTR
"Provider"="YIHUA_FINGER"
"Type"="PTR"
[HKEY_USERS\.DEFAULTVXFS\LOGICAL_SERVICES\FingerPrint]
"Class"="PTR
"Provider"="YIHUA_FINGER"
"Type"="PTR"
The method comprises the steps of carrying out a first treatment on the surface of the Setting a process name
[HKEY_L0CAL_MACHINE\SOFTWARE\XFS\SERVICE_PROVIDERSVYIHUA_FINGER]
The method comprises the steps of carrying out a first treatment on the surface of the Executable file path
"Executable"="YHSpPTRWEL410AFEV10.exe"
"ExeDllMother"=-
The method comprises the steps of carrying out a first treatment on the surface of the Device type
The method comprises the steps of carrying out a first treatment on the surface of the [ 0-Vial V10-Vial V30 Hangzhou Bank 2-V30 Uluwood commercial Bank 3-V30 Jiansheng ]
[HKEY_LOCAL_MACHINE\SOFTWARE\XFS\PHYSICAL_SERVICES\YHSpPTRWEL410AFEV10Contro1]
"DevType"=dword:0000003
For step 402, after the server generates the high activation script, the activation script may be sent to the target self-service financial device, which may also be known by the above example to activate the SP upgrade package by executing the activation script, and introduce the upgrade configuration corresponding to the module type of each hardware module into each hardware module.
In this embodiment, in order to ensure that the upgrading of the target self-service financial device is successful or known in time when the upgrading of the self-service financial device fails, further, as shown in fig. 6, after step 104, the method may further include:
501. checking whether each hardware module in the target financial self-service equipment has completed configuration upgrading, if yes, executing step 502, and if not, executing step 503;
502. determining that the upgrading of the target financial self-service equipment is completed;
503. and sending out information about the upgrade failure of the target financial self-service equipment.
For steps 501-503, it may be understood that the server may determine whether the target self-service financial device has been successfully upgraded by checking whether each hardware module in the target self-service financial device has completed configuration upgrade, if so, it indicates that the current upgrade of the target self-service financial device has been completed, the server may determine that the current upgrade of the target self-service financial device has been completed, if not, it indicates that the current upgrade of the target self-service financial device has failed, and the server may send information about the upgrade failure of the target self-service financial device.
In the embodiment of the application, firstly, an SP upgrade package used for upgrading the target financial self-service equipment at this time is obtained; then, reading the equipment configuration of the target financial self-service equipment; then, detecting the module type of each hardware module in the target financial self-service equipment according to the equipment configuration; and finally, aiming at each hardware module in the target financial self-service equipment, importing the upgrade configuration corresponding to the module type of each hardware module in the SP upgrade package into each hardware module. Therefore, the upgrading operation of the financial self-service equipment can be completed without manual configuration, so that the upgrading efficiency of the equipment is improved, the occurrence of configuration error conditions is reduced, and the upgrading success rate 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 of each process, and should not limit the implementation process of the embodiment of the present application in any way.
In an embodiment, a self-identification upgrade apparatus of an SP upgrade package is provided, where the self-identification upgrade apparatus of the SP upgrade package corresponds to the self-identification upgrade method of the SP upgrade package in the above embodiment one by one. As shown in fig. 7, the self-identification upgrade apparatus of the SP upgrade package includes an upgrade package acquisition module 601, a configuration reading module 602, a module type detection module 603, and a configuration import module 604. The functional modules are described in detail as follows:
the upgrade package acquisition module 601 is configured to acquire an SP upgrade package used for the current upgrade of the target financial self-service device;
a configuration reading module 602, configured to read a device configuration of the target financial self-service device;
a module type detection module 603, configured to detect a module type of each hardware module in the target financial self-service device according to the device configuration;
and a configuration importing module 604, configured to import, for each hardware module in the target financial self-service device, an upgrade configuration corresponding to a module type of the each hardware module in the SP upgrade package into the each hardware module.
Further, the configuration import module may include:
the activation script generation unit is used for generating an activation script corresponding to the module type of each hardware module aiming at each hardware module in the target financial self-service equipment;
and the script sending unit is used for sending the activation script to the target financial self-service equipment so that the target financial self-service equipment activates the SP upgrade package by executing the activation script, and the upgrade configuration corresponding to the module type of each hardware module is imported into each hardware module.
Further, the self-identifying upgrade apparatus of the SP upgrade package may further include:
and the upgrade package copying module is used for copying the SP upgrade package to the appointed installation path of the target financial self-service equipment.
Further, the configuration reading module may include:
the configuration file acquisition unit is used for acquiring a configuration file in the target financial self-service equipment, wherein the configuration file is used for managing equipment configuration of the target financial self-service equipment, and the equipment configuration comprises module types of all hardware modules in the target financial self-service equipment;
the file caching unit is used for storing the configuration file into a preset cache;
the module type detection module may include:
the file reading unit is used for reading the configuration file from the preset cache;
and the type detection unit is used for detecting the module types of all hardware modules in the target financial self-service equipment from the configuration file.
Further, the self-identifying upgrade apparatus of the SP upgrade package may further include:
the upgrade checking module is used for checking whether each hardware module in the target financial self-service equipment is configured and upgraded;
the upgrade completion determining module is used for determining that the upgrade of the target financial self-service equipment is completed if the verification result of the upgrade verification module is yes;
and the upgrade failure determining module is used for sending out information about upgrade failure of the target financial self-service equipment if the verification result of the upgrade verification module is negative.
For specific limitation of the self-identification upgrade apparatus of the SP upgrade package, reference may be made to the limitation of the self-identification upgrade method of the SP upgrade package hereinabove, and no further description is given herein. The modules in the self-identification upgrade apparatus of the SP upgrade package 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. 8, 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 self-identifying upgrade method of the SP upgrade package in the above embodiment, such as steps 101 to 104 shown in fig. 2. Alternatively, the processor may implement the functions of the modules/units of the self-identifying upgrade apparatus of the SP upgrade package in the above embodiment, such as the functions of the modules 601 to 604 shown in fig. 7, when executing the computer program. In order to avoid repetition, a description thereof is omitted.
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 self-identifying upgrade method of the SP upgrade package in the above embodiment, such as steps 101 to 104 shown in fig. 2. Alternatively, the computer program when executed by the processor implements the functions of the respective modules/units of the self-identification upgrade apparatus of the SP upgrade package in the above-described embodiment, such as the functions of the modules 601 to 604 shown in fig. 7. 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 again.
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, 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 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 implements 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, where the computer program, when executed by a processor, 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 are not limiting; 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 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 (9)

1. A self-identifying upgrade method of an SP upgrade package, comprising:
acquiring an SP upgrade package used for upgrading the target financial self-service equipment;
reading the equipment configuration of the target financial self-service equipment;
detecting the module type of each hardware module in the target financial self-service equipment according to the equipment configuration;
aiming at each hardware module in the target financial self-service equipment, importing upgrade configuration corresponding to the module type of each hardware module in the SP upgrade package into each hardware module, and configuring upgrade for each hardware module;
the importing, for each hardware module in the target financial self-service device, the upgrade configuration corresponding to the module type of each hardware module in the SP upgrade package into each hardware module includes:
generating an activation script corresponding to the module type of each hardware module aiming at each hardware module in the target financial self-service equipment;
and sending the activation script to the target financial self-service equipment so that the target financial self-service equipment activates the SP upgrade package by executing the activation script, and importing upgrade configuration corresponding to the module type of each hardware module into each hardware module.
2. The method for self-identifying an SP upgrade package according to claim 1, further comprising, after obtaining the SP upgrade package used by the current upgrade of the target financial self-service device:
copying the SP upgrade package to the appointed installation path of the target financial self-service equipment.
3. The SP upgrade package self-identification upgrade method of claim 1, wherein said reading the device configuration of the target financial self-service device comprises:
acquiring a configuration file in the target financial self-service equipment, wherein the configuration file is used for managing equipment configuration of the target financial self-service equipment, and the equipment configuration comprises module types of all hardware modules in the target financial self-service equipment;
storing the configuration file into a preset cache;
the detecting the module types of each hardware module in the target financial self-service equipment according to the equipment configuration comprises the following steps:
reading the configuration file from the preset cache;
and detecting the module type of each hardware module in the target financial self-service equipment from the configuration file.
4. The self-identification upgrade method of the SP upgrade package according to claim 1, further comprising, before importing an upgrade configuration corresponding to a module type of the each hardware module in the SP upgrade package into the each hardware module:
checking the SP upgrade package;
if the SP upgrade package is checked to be correct, executing the step of importing upgrade configuration corresponding to the module type of each hardware module in the SP upgrade package into each hardware module;
if the SP upgrade package is checked by mistake, alarming and acquiring the SP upgrade package used by the current upgrade of the target financial self-service equipment again.
5. The method for self-identifying and upgrading an SP upgrade package according to claim 1, wherein the step of obtaining the SP upgrade package used by the current upgrade of the target financial self-service device comprises:
determining the current version number of the system of the target financial self-service equipment;
detecting whether the current version number of the system is the latest version number;
and if the current version number of the system is not the latest version number, requesting and acquiring an SP upgrade package used by the current upgrade of the target financial self-service equipment.
6. The self-identification upgrade method of the SP upgrade package according to any one of claims 1 to 5, further comprising, after importing, for each hardware module in the target financial self-service apparatus, an upgrade configuration in the SP upgrade package corresponding to a module type of the each hardware module into the each hardware module:
checking whether each hardware module in the target financial self-service equipment is finished with configuration upgrading;
if all hardware modules in the target financial self-service equipment are configured and upgraded, determining that the upgrading of the target financial self-service equipment is completed;
and if all the hardware modules in the target financial self-service equipment do not complete configuration upgrading, sending information about failure in upgrading the target financial self-service equipment.
7. A self-identifying upgrade apparatus of an SP upgrade package, comprising:
the upgrade package acquisition module is used for acquiring an SP upgrade package used for upgrading the target financial self-service equipment at this time;
the configuration reading module is used for reading the equipment configuration of the target financial self-service equipment;
the module type detection module is used for detecting the module type of each hardware module in the target financial self-service equipment according to the equipment configuration;
the configuration importing module is used for importing upgrade configuration corresponding to the module type of each hardware module in the SP upgrade package into each hardware module aiming at each hardware module in the target financial self-service equipment, and configuring upgrade for each hardware module;
the configuration import module comprises:
the activation script generation unit is used for generating an activation script corresponding to the module type of each hardware module aiming at each hardware module in the target financial self-service equipment;
and the script sending unit is used for sending the activation script to the target financial self-service equipment so that the target financial self-service equipment activates the SP upgrade package by executing the activation script, and the upgrade configuration corresponding to the module type of each hardware module is imported into each hardware module.
8. 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 self-identifying upgrade method of the SP upgrade package of any one of claims 1 to 6 when the computer program is executed by the processor.
9. A computer readable storage medium storing a computer program, wherein the computer program when executed by a processor implements the self-identification upgrade method of the SP upgrade package according to any one of claims 1 to 6.
CN201911099076.3A 2019-11-12 2019-11-12 SP upgrade package self-identification upgrade method and device and computer equipment Active CN112860283B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911099076.3A CN112860283B (en) 2019-11-12 2019-11-12 SP upgrade package self-identification upgrade method and device and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911099076.3A CN112860283B (en) 2019-11-12 2019-11-12 SP upgrade package self-identification upgrade method and device and computer equipment

Publications (2)

Publication Number Publication Date
CN112860283A CN112860283A (en) 2021-05-28
CN112860283B true CN112860283B (en) 2024-04-02

Family

ID=75984209

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911099076.3A Active CN112860283B (en) 2019-11-12 2019-11-12 SP upgrade package self-identification upgrade method and device and computer equipment

Country Status (1)

Country Link
CN (1) CN112860283B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114936037B (en) * 2022-07-21 2022-12-09 天津七一二移动通信有限公司 Clamp implementation method compatible with multi-model railway CIR program upgrading

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7177920B1 (en) * 2002-01-30 2007-02-13 Bellsouth Intellectual Property Corporation Method for configuring an upgraded administrative module computer in an electronic switching system
CN101436141A (en) * 2008-11-21 2009-05-20 深圳创维数字技术股份有限公司 Firmware upgrading and encapsulating method and device based on digital signing
KR20110108143A (en) * 2010-03-26 2011-10-05 (주)이지위드 Embeded system based on script programming language and operation method thereof
CN104094226A (en) * 2011-11-28 2014-10-08 韦斯技术有限公司 Automatic updating of an application or a driver on a client device using a deployment configuration file
CN104834537A (en) * 2014-12-30 2015-08-12 沈阳东软医疗***有限公司 Data processing method, server and client
CN108255503A (en) * 2016-12-28 2018-07-06 北京普源精电科技有限公司 The firmware upgrade method and device of measuring instrument
CN108270806A (en) * 2016-12-30 2018-07-10 航天信息股份有限公司 A kind of more application upgrade method and systems
CN108279947A (en) * 2018-01-03 2018-07-13 深圳怡化电脑股份有限公司 The method and device of financial self-service equipment SP installation kits adaptation
CN109582325A (en) * 2017-09-28 2019-04-05 深圳市优必选科技有限公司 Robot software upgrading method, robot and computer readable storage medium
CN109669708A (en) * 2018-11-02 2019-04-23 金卡智能集团股份有限公司 Remote upgrade method for modularization internet-of-things terminal equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103777967B (en) * 2012-10-17 2017-08-04 阿里巴巴集团控股有限公司 Page returning method, page generation method and device

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7177920B1 (en) * 2002-01-30 2007-02-13 Bellsouth Intellectual Property Corporation Method for configuring an upgraded administrative module computer in an electronic switching system
CN101436141A (en) * 2008-11-21 2009-05-20 深圳创维数字技术股份有限公司 Firmware upgrading and encapsulating method and device based on digital signing
KR20110108143A (en) * 2010-03-26 2011-10-05 (주)이지위드 Embeded system based on script programming language and operation method thereof
CN104094226A (en) * 2011-11-28 2014-10-08 韦斯技术有限公司 Automatic updating of an application or a driver on a client device using a deployment configuration file
CN104834537A (en) * 2014-12-30 2015-08-12 沈阳东软医疗***有限公司 Data processing method, server and client
CN108255503A (en) * 2016-12-28 2018-07-06 北京普源精电科技有限公司 The firmware upgrade method and device of measuring instrument
CN108270806A (en) * 2016-12-30 2018-07-10 航天信息股份有限公司 A kind of more application upgrade method and systems
CN109582325A (en) * 2017-09-28 2019-04-05 深圳市优必选科技有限公司 Robot software upgrading method, robot and computer readable storage medium
CN108279947A (en) * 2018-01-03 2018-07-13 深圳怡化电脑股份有限公司 The method and device of financial self-service equipment SP installation kits adaptation
CN109669708A (en) * 2018-11-02 2019-04-23 金卡智能集团股份有限公司 Remote upgrade method for modularization internet-of-things terminal equipment

Non-Patent Citations (6)

* Cited by examiner, † Cited by third party
Title
GPON局端软件升级***的设计与实现;欧阳;《中国优秀硕士学位论文全文数据库(信息科技辑)》;20160315(第3期);I138-4375 *
Simulating upgrades of complex systems: The case of Free and Open Source Software;Davide Di Ruscio等;《Information and Software Technology》;20140430;第56卷(第04期);438-462 *
中控***升级改造实例;李红延等;《数字技术与应用》;20150731(第07期);14-15 *
基于CAN/LIN混合网络的车身控制***的研究;李海洋;《中国优秀硕士学位论文全文数据库(工程科技Ⅱ辑)》;20140315(第03期);C035-126 *
港口物流信息管理平台核心模块的设计与研究;李云峰;《中国优秀硕士学位论文全文数据库(信息科技辑)》;20110915(第09期);I138-537 *
热轧自动控制***SIMATIC TDC改造升级;于新乐等;《冶金动力》;20180831(第08期);69-73 *

Also Published As

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

Similar Documents

Publication Publication Date Title
CN103150231B (en) The method of computer booting and computer system
EP0498130A2 (en) Apparatus and method for verifying compatibility of system components
CN107577175A (en) MCU method for upgrading software, system and the storage device of vehicle-mounted multimedia equipment
CN114003538B (en) Identification method of intelligent network card and intelligent network card
CN110825399B (en) Deployment method and device of application program
CN108509215B (en) System software replacing method and device, terminal equipment and storage medium
CN111813428A (en) Method and device for upgrading terminal firmware, electronic equipment and storage medium
CN112181459B (en) CPLD upgrade optimization method and system
CN112860283B (en) SP upgrade package self-identification upgrade method and device and computer equipment
CN110515671B (en) Initialization method, initialization device, terminal device and readable storage medium
CN117687664A (en) Online upgrade configuration method and device for DSP
CN117391099B (en) Data downloading and checking method and system for smart card and storage medium
CN114185571A (en) Firmware upgrading method and device of CPLD, terminal and readable storage medium
CN101663666B (en) Binary verification service
CN109582334B (en) Upgrading method and device for programmable logic device
CN106570685B (en) Service processing method and device
US20030084380A1 (en) Method and system for capturing in-service date information
US9058184B2 (en) Run time generation and functionality validation of device drivers
US20110185353A1 (en) Mitigating Problems Arising From Incompatible Software
CN114510751A (en) Hardware replacement prevention device and method based on processor security kernel
CN114116027A (en) Method, system, terminal and storage medium for automatically installing drive for PCIE equipment
US20100049373A1 (en) Method for modular software removal
CN109783031B (en) Method, device, terminal and storage medium for checking drive letter and slot number of RAID card
CN112860284B (en) SP upgrade package generation method and device for equipment remote upgrade and computer equipment
CN112860285B (en) SP upgrade package generation method and device of financial self-service equipment and computer equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant