CN112860283A - Self-identification upgrading method and device of SP (service provider) upgrading package and computer equipment - Google Patents

Self-identification upgrading method and device of SP (service provider) upgrading package and computer equipment Download PDF

Info

Publication number
CN112860283A
CN112860283A CN201911099076.3A CN201911099076A CN112860283A CN 112860283 A CN112860283 A CN 112860283A CN 201911099076 A CN201911099076 A CN 201911099076A CN 112860283 A CN112860283 A CN 112860283A
Authority
CN
China
Prior art keywords
upgrading
financial self
target financial
module
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.)
Granted
Application number
CN201911099076.3A
Other languages
Chinese (zh)
Other versions
CN112860283B (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

Images

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 suitable for 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 upgrading package used by the target financial self-service equipment for upgrading; reading the device configuration of the target financial self-service device; detecting the module type of each hardware module in the target financial self-service equipment according to the equipment configuration; and for each hardware module in the target financial self-service equipment, importing the upgrading configuration corresponding to the module type of each hardware module in the SP upgrading package into each hardware module.

Description

Self-identification upgrading method and device of SP (service provider) upgrading package 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 upgrading package and computer equipment.
Background
As the functions of the financial self-service equipment are upgraded, the versions of the systems and software on the financial self-service equipment also need to be continuously updated in an iterative mode. A financial self-service device is provided with a plurality of hardware modules, and the hardware of the same type in different financial self-service devices can be of different types, for example, card readers on some financial self-service devices are of the third-party brand, and card readers on some financial self-service devices are of the ohm dragon brand. At present, when financial self-service equipment under a flag of a financial institution is upgraded, in order to meet the upgrading requirements of all financial self-service equipment, a manufactured SP (service pack) upgrade package generally supports all types of hardware, then the SP upgrade package is put down to each branch institution, and maintenance personnel of the branch institutions manually select corresponding upgrade configuration files according to the types of hardware modules on each piece of financial self-service equipment, so that the upgrade of each piece of financial self-service equipment is completed.
However, the method of completing the upgrade by relying on manual configuration is not only inefficient, but also is prone to configuration errors, which results in the failure of the upgrade of the financial self-service equipment and reduces the success rate of the upgrade of the financial self-service equipment.
Disclosure of Invention
The embodiment of the application provides a self-identification upgrading method and device of an SP upgrading packet and computer equipment, and can solve the problem of self-identification upgrading X of the SP upgrading packet.
In a first aspect, an embodiment of the present application provides a self-identification upgrade method for an SP upgrade package, including:
acquiring an SP upgrading package used by the target financial self-service equipment for upgrading;
reading the device configuration of the target financial self-service device;
detecting the module type of each hardware module in the target financial self-service equipment according to the equipment configuration;
and for each hardware module in the target financial self-service equipment, importing the upgrading configuration corresponding to the module type of each hardware module in the SP upgrading package into each hardware module.
The method and the device detect the module type of each hardware module in the target financial self-service device through the device configuration of the target financial self-service device, so that the upgrading configuration corresponding to the module type of each hardware module in the SP upgrading package is led into each hardware module, and the upgrading of the target financial self-service device is completed. Therefore, the upgrading operation of the financial self-service equipment can be completed without manual configuration, the upgrading efficiency of the equipment is improved, the occurrence of configuration error 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, the importing, into each hardware module, an upgrade configuration corresponding to the module type of each hardware module in the SP upgrade package 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 upgrading package is activated through the activation script to complete upgrading, and upgrading efficiency of the financial self-service equipment is improved.
Preferably, after acquiring the SP upgrade package used by the target financial self-service device for this upgrade, the method further includes: and copying the SP upgrading package to a designated installation path of the target financial self-service equipment, so as to facilitate the upgrading of the target financial self-service equipment.
Preferably, the reading of 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 type of each hardware module in the target financial self-service equipment according to the equipment configuration comprises:
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 target financial self-service equipment by the server is 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 completes configuration upgrading;
if all hardware modules in the target financial self-service equipment complete configuration upgrading, determining that the target financial self-service equipment completes upgrading;
and if the hardware modules in the target financial self-service equipment do not finish configuration upgrading, sending information about upgrading failure of the target financial self-service equipment.
Therefore, the target financial self-service equipment can be successfully upgraded or timely known when the target financial self-service equipment fails to be upgraded through verification.
In a second aspect, an embodiment of the present application provides a self-identification upgrading apparatus for an SP upgrade package, including:
the upgrading package obtaining module is used for obtaining an SP upgrading package used by the target financial self-service equipment for upgrading;
the configuration reading module is used for reading the device configuration of the target financial self-service device;
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;
and the configuration import module is used for importing the upgrading configuration corresponding to the module type of each hardware module in the SP upgrading 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, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the above-mentioned self-identification upgrade method for an SP upgrade package when executing the computer program.
In a fourth aspect, the present application provides a computer-readable storage medium, where a computer program is stored, and when executed by a processor, the computer program implements the above-mentioned self-identification upgrade method for an SP upgrade package.
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 a self-identification upgrading method for an SP upgrade package in an embodiment of the present application;
FIG. 2 is a flowchart of a self-identifying upgrade method of an SP upgrade package according to an embodiment of the present application;
FIG. 3 is a schematic flowchart of step 102 of a self-identification upgrading method for an SP upgrade package in an application scenario according to an embodiment of the present application;
fig. 4 is a schematic flowchart of step 103 of a self-identification upgrading method for an SP upgrade package in an application scenario according to an embodiment of the present application;
FIG. 5 is a schematic flowchart of step 104 of a self-identification upgrading method for an SP upgrade package in an application scenario according to an embodiment of the present application;
FIG. 6 is a schematic flow chart illustrating a self-identification upgrading method of an SP upgrade package according to an embodiment of the present application, in an application scenario, to check whether the financial self-service device is upgraded;
FIG. 7 is a schematic structural diagram of a self-identification upgrading apparatus for an SP upgrade package in an embodiment of the present application;
FIG. 8 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 self-identification upgrading method of the SP upgrading package can be applied to the application environment shown in fig. 1, wherein the financial self-service equipment can communicate with a server through a network. The server may be implemented by an independent server or a server cluster composed of a plurality of servers.
In an embodiment, as shown in fig. 2, a self-identification upgrade method for an SP upgrade package 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 an SP upgrading package used by the target financial self-service equipment for upgrading;
in this embodiment, the server first determines which financial self-service device or devices need to be upgraded, and these financial self-service devices are target financial self-service devices. It can be understood that, when a financial institution is to upgrade these financial self-service devices, the SP upgrade package used in this upgrade will be issued to these financial self-service devices or directly issued to a server, and this embodiment is not limited in particular. Or, the server may also initiatively check whether the target financial self-service device needs to be upgraded, specifically, the server may determine a system current version number of the target financial self-service device first, then detect whether the system current version number is a latest version number, and if not, request and acquire an SP upgrade package used by the target financial self-service device for this upgrade. Therefore, the server can obtain the SP upgrading package used by the target financial self-service equipment for upgrading at this time.
In order to facilitate upgrading of the target financial self-service device, in this embodiment, after the SP upgrade package used by the target financial self-service device for the current upgrading is obtained, the server may further copy the SP upgrade package to a specific installation path of the target financial self-service device, and in a subsequent step, the target financial self-service device is facilitated to import relevant configuration from the SP upgrade package.
102. Reading the device configuration of the target financial self-service device;
103. detecting the module type of each hardware module in the target financial self-service equipment according to the equipment configuration;
as for step 102 and step 103, it can be understood that, before the server upgrades the target financial self-service device, since hardware modules assembled in different financial self-service devices are different, it is necessary to first read the device configuration of the target financial self-service device, detect the module type of each hardware module in the target financial self-service device from the device configuration, and accurately find the upgrade configuration matched with each hardware module from the SP upgrade package, 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;
with respect to step 201, 202, it is understood that the target financial self-service device stores therein a configuration file, which is a library file, in which the device configuration of the target financial self-service device is described, including the module types of the respective hardware modules, for example, in one type of financial self-service device, the configuration file is termtypeconfig. The server may retrieve and cache the configuration file to subsequently detect the module type of each hardware module therefrom.
For ease of understanding, the following illustrates the format of a configuration file in a specific application scenario:
the definitions in the configuration file are as follows:
modules: represents a node which contains all device types and small nodes
Module: represents a device type, and the specific terms under the small node are as follows:
id: representing device type representation, being a unique identifier, from which ID content an activation script is generated
English: english name indicating device type
A Chinese: chinese name representing device type
Driver: the detection tool detects whether the hardware is the small node type device, using a dynamic library
Port: port number or pid/vid of device connection
An example of a configuration file is as follows:
<?xml version='1.0'encoding='gb2312'?>
<SetupConfig>
<Modules>
<!--YIHUA_FINGER-->
< Module id ═ YHSpPTRYHTTcsyTCM025, "english ═ csy Finger Print," chip ═ Tiancheng industry general money, "driver ═ Default Detector. dll," port ═ 735F:1301"/>, and
"yhsprwsel 410AFEV10" english ═ WElV30_ CCB Finger, "chicken ═ wiki fingerprint V10" driver ═ yhdrptrwell 410afev10.dll ═ port ═ "/>", and
"yhsprwsel 410AFEV10_ CCB" english ═ WElV30_ CCB Finger print "chicken ═" wier Finger print CCB "driver ═" yhdrptrwell 410afev10.dll ═ "port ═"/>
"yhsprwsel 410AFEV10_ HZ" english ═ WElV30_ HZ Finger print "chicken ═" wier fingerprint "HZ" driver ═ "yhdrptrwell 410afev10.dll" port ═ "/>, for
< Module id ═ YHSPPTRWAL 410AFEV10_ URUMQI "english ═ WELV30_ URUMQI Finger" chip ═ Weierfingerprint URUMQI "driver ═ YHDrptRWELL 410V10. dll" port ═ and "/>"
< Module id ═ YHSPPTRWEL410AFEV10_ TF "english ═ WELV30_ TF Finger" chinensis ═ Weir fingerprint Seffirman bank type "driver ═ YHDrPTRWEL 410VAFE 10.dll" port ═ v >
< Module id ═ YHSpPTRYHTTcsy _ JZT "english ═ Tcsy Finger Print" Chinese ═ rural area Vickers fingerprint apparatus "driver ═ YHDrCHKTcsy.dll" port ═ v >
</Modules>
</ModuleType>
</ModuleType>
</SetupConfig>
The dynamic library exports the following interfaces to the tool call:
function// function: detecting device connection status
// parameters:
StrPort: the port number can be a serial port (such as COM1) or a USB port (such as 0525: a4a4)
strParam: the interface calls parameters, mainly used when the same driver is compatible with a plurality of models of equipment
// return: the equipment state: -1 unconnected or no response, -2 response code error, 0 normal, 1 fault
int CheckModuleStatus(const CString&strPort,const CString&strParam);
On the basis of the above step 201-202, specifically, as shown in fig. 4, the 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.
As for step 301 and 302, it can be known that the server caches the configuration file, and when the module type of the hardware module needs to be detected, 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 from the configuration file. Therefore, the configuration file is cached, so that the upgrading operation of the target financial self-service equipment by the server is 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 as a support, the server may call each Module node in the tag Modules, start from the first Module node, and use a checkmodule status function interface derived from the dynamic library configured by the driver item under the Module node, if the response is successful, the Module type of the detected hardware Module is successful, and then obtain the configuration content of the node id, which is the device type; and if the detection fails, running the next node until the detection is successful.
104. And for each hardware module in the target financial self-service equipment, importing the upgrading configuration corresponding to the module type of each hardware module in the SP upgrading package into each hardware module.
After detecting the module type of each hardware module in the target financial self-service device, the server may import, 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, thereby completing configuration upgrade for each hardware module one by one, and completing upgrade of the target financial self-service device after completing configuration upgrade for all hardware modules.
In particular, in order to reduce the abnormal problems such as crash and the like in the upgrading process and improve the stability of the SP upgrading, the server may check the SP upgrading packet before step 104; if the SP upgrade package is checked to be correct, executing step 104; and otherwise, if the SP upgrading packet is checked to be wrong, alarming and re-acquiring the SP upgrading packet used by the target financial self-service equipment for upgrading.
To improve the upgrading 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 step 401 and step 402, it can be understood that the target financial self-service device completes self-service upgrade by configuring the activation script, so that the upgrade efficiency of the target financial self-service device can be improved, the burden of the server is reduced, and when the server upgrades a large number of financial self-service devices at the same time, the upgrading operation can still be completed by multi-line operation. Specifically, the server may generate, for each hardware module, an activation script corresponding to the module type of each hardware module, and as a result, the activation script is provided to the system of the target financial self-service device to execute the activation script and activate the SP upgrade package. Specifically, in one 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):
YHSpPTRWEL410AFEV10 ccb. bat contents: get. exe/s active. data/YHSpPTRWAL 410AFEV10 ccB. reg
Wherein, YHSpPTRWEL410AFEV10 ccb.reg is a configuration file, and the contents thereof are as follows: windows Registry Editor Version 5.00
(ii) a Activation first
[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"
(ii) a Setting a process name
[HKEY_L0CAL_MACHINE\SOFTWARE\XFS\SERVICE_PROVIDERSVYIHUA_FINGER]
(ii) a Executable file path
"Executable"="YHSpPTRWEL410AFEV10.exe"
"ExeDllMother"=-
(ii) a Type of device
(ii) a [ 0-Wei V101-Wei V30 Hangzhou Bank type 2-V30 Wulu wood Qi commercial Bank type 3-V30 construction type ]
[HKEY_LOCAL_MACHINE\SOFTWARE\XFS\PHYSICAL_SERVICES\YHSpPTRWEL410AFEV10Contro1]
"DevType"=dword:0000003
For step 402, after generating the high-activation script, the server may send the activation script to the target financial self-service device, and as can be seen from the above example, the target financial self-service device may activate the SP upgrade package by executing the activation script, and import 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 target financial self-service device is successfully upgraded or timely knows when the target financial self-service device fails to be upgraded, 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 completes configuration upgrading, if so, executing step 502, and if not, executing step 503;
502. determining that the target financial self-service equipment is upgraded completely;
503. and sending out information about the upgrade failure of the target financial self-service equipment.
For step 501 and 503, it can be understood that the server may determine whether the target financial self-service device has been successfully upgraded by checking whether each hardware module in the target financial self-service device has completed configuration upgrade, if so, it indicates that the target financial self-service device has completed this upgrade, the server may determine that the target financial self-service device has completed this upgrade, and if not, it indicates that the target financial self-service device has failed this upgrade, and the server may send information about the failure of the target financial self-service device in upgrade.
In the embodiment of the application, firstly, an SP upgrading packet used by the target financial self-service equipment for upgrading at this time is obtained; then, reading the device configuration of the target financial self-service device; 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 upgrading configuration corresponding to the module type of each hardware module in the SP upgrading package into each hardware module. Therefore, the upgrading operation of the financial self-service equipment can be completed without manual configuration, the upgrading efficiency of the equipment is improved, the occurrence of configuration error is reduced, and the upgrading success rate 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, a self-identification upgrading device of an SP upgrading package is provided, and the self-identification upgrading device of the SP upgrading package corresponds to the self-identification upgrading method of the SP upgrading package in the above embodiment one to one. As shown in fig. 7, the self-identification upgrade apparatus for SP upgrade packages 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 explained in detail as follows:
an upgrade package obtaining module 601, configured to obtain an SP upgrade package used by the target financial self-service device for the current upgrade;
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;
a configuration import module 604, configured to import, to 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.
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 sending script 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 importing upgrade configuration corresponding to the module type of each hardware module into each hardware module.
Further, the self-identification upgrading device of the SP upgrading packet 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:
a configuration file obtaining unit, configured to obtain a configuration file in the target financial self-service device, where the configuration file is used to manage device configuration of the target financial self-service device, and the device configuration includes a module type of each hardware module in the target financial self-service device;
the file cache 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 type of each hardware module in the target financial self-service equipment from the configuration file.
Further, the self-identification upgrading device of the SP upgrading packet may further include:
the upgrading verification module is used for verifying whether the hardware modules in the target financial self-service equipment are all configured and upgraded;
the upgrading completion determining module is used for determining that the target financial self-service equipment is upgraded completely if the verification result of the upgrading verifying module is positive;
and the upgrading failure determining module is used for sending information about upgrading failure of the target financial self-service equipment if the verification result of the upgrading verifying module is negative.
For the specific limitation of the self-identification upgrading device of the SP upgrading package, reference may be made to the above limitation on the self-identification upgrading method of the SP upgrading package, and details are not described herein again. The modules in the self-identification upgrading device of the SP upgrading package can be completely 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. 8, 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 self-identification upgrade method of the SP upgrade package in the above embodiments, such as steps 101 to 104 shown in fig. 2. Alternatively, the processor, when executing the computer program, implements the functions of each module/unit of the SP upgrade package self-identification upgrade apparatus in the above-described embodiments, such as the functions of the modules 601 to 604 shown in fig. 7. 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 self-identifying upgrade method of the SP upgrade package in the above embodiments, such as steps 101 to 104 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 self-identification upgrade apparatus in the above-described embodiments, such as the functions of the modules 601 to 604 shown in fig. 7. 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 self-recognition upgrading method of an SP upgrading package is characterized by comprising the following steps:
acquiring an SP upgrading package used by the target financial self-service equipment for upgrading;
reading the device configuration of the target financial self-service device;
detecting the module type of each hardware module in the target financial self-service equipment according to the equipment configuration;
and for each hardware module in the target financial self-service equipment, importing the upgrading configuration corresponding to the module type of each hardware module in the SP upgrading package into each hardware module.
2. The method of claim 1, wherein the importing, for each hardware module in the target financial self-service device, an upgrade configuration in the SP upgrade package corresponding to a module type of the each hardware module into the each hardware module comprises:
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.
3. The self-recognition upgrading method of the SP upgrading package as claimed in claim 1, further comprising, after obtaining the SP upgrading package used by the target financial self-service device for the current upgrading:
and copying the SP upgrading package to the appointed installation path of the target financial self-service equipment.
4. The method for self-identifying upgrade of an SP upgrade package as claimed in 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 type of each hardware module in the target financial self-service equipment according to the equipment configuration comprises:
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.
5. The method for self-identifying upgrade of an SP upgrade package as claimed in claim 1, further comprising, prior to importing into each of the hardware modules an upgrade configuration in the SP upgrade package corresponding to the module type of said each hardware module:
checking the SP upgrading packet;
if the SP upgrade package is verified to be correct, the step of importing the upgrade configuration corresponding to the module type of each hardware module in the SP upgrade package into each hardware module is executed;
and if the SP upgrading packet is checked to be wrong, alarming and re-acquiring the SP upgrading packet used by the target financial self-service equipment for upgrading.
6. The self-recognition upgrading method of the SP upgrading packet as claimed in claim 1, wherein the obtaining of the SP upgrading packet used by the target financial self-service device for the current upgrading comprises:
determining the current system version number 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 target financial self-service equipment for upgrading at this time.
7. The method for self-identifying upgrade of an SP upgrade package according to any one of claims 1 to 6, further comprising, after importing, for each hardware module in the target financial self-service device, an upgrade configuration in the SP upgrade package corresponding to a module type of said each hardware module into said each hardware module:
checking whether each hardware module in the target financial self-service equipment completes configuration upgrading;
if all hardware modules in the target financial self-service equipment complete configuration upgrading, determining that the target financial self-service equipment completes upgrading;
and if the hardware modules in the target financial self-service equipment do not finish configuration upgrading, sending information about upgrading failure of the target financial self-service equipment.
8. A self-recognition upgrading device of SP upgrading package is characterized by comprising:
the upgrading package obtaining module is used for obtaining an SP upgrading package used by the target financial self-service equipment for upgrading;
the configuration reading module is used for reading the device configuration of the target financial self-service device;
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;
and the configuration import module is used for importing the upgrading configuration corresponding to the module type of each hardware module in the SP upgrading package into each hardware module aiming at each hardware module in 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, characterized in that the processor implements the self-identifying upgrade method of an SP upgrade package according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, storing a computer program, wherein the computer program, when executed by a processor, implements a self-identifying upgrade method for an SP upgrade package according to any one of claims 1 to 7.
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 true CN112860283A (en) 2021-05-28
CN112860283B 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)

Cited By (1)

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

Citations (11)

* 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
US20140108914A1 (en) * 2012-10-17 2014-04-17 Alibaba Group Holding Limited Webpages with onboard hardware functions
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

Patent Citations (11)

* 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
US20140108914A1 (en) * 2012-10-17 2014-04-17 Alibaba Group Holding Limited Webpages with onboard hardware functions
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 (7)

* Cited by examiner, † Cited by third party
Title
_宇宙浪子_: "通过 Shell 和 Expect 脚本实现对 IBM 刀片服务器高级管理模块固件的大量升级", pages 1 - 6, Retrieved from the Internet <URL:https://blog.csdn.net/bluehawksky/article/details/41443667> *
DAVIDE DI RUSCIO等: "Simulating upgrades of complex systems: The case of Free and Open Source Software", 《INFORMATION AND SOFTWARE TECHNOLOGY》, vol. 56, no. 04, 30 April 2014 (2014-04-30), pages 438 - 462 *
于新乐等: "热轧自动控制***SIMATIC TDC改造升级", 《冶金动力》, no. 08, 31 August 2018 (2018-08-31), pages 69 - 73 *
李云峰: "港口物流信息管理平台核心模块的设计与研究", 《中国优秀硕士学位论文全文数据库(信息科技辑)》, no. 09, 15 September 2011 (2011-09-15), pages 138 - 537 *
李海洋: "基于CAN/LIN混合网络的车身控制***的研究", 《中国优秀硕士学位论文全文数据库(工程科技Ⅱ辑)》, no. 03, 15 March 2014 (2014-03-15), pages 035 - 126 *
李红延等: "中控***升级改造实例", 《数字技术与应用》, no. 07, 31 July 2015 (2015-07-31), pages 14 - 15 *
欧阳: "GPON局端软件升级***的设计与实现", 《中国优秀硕士学位论文全文数据库(信息科技辑)》, no. 3, 15 March 2016 (2016-03-15), pages 138 - 4375 *

Cited By (1)

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

Also Published As

Publication number Publication date
CN112860283B (en) 2024-04-02

Similar Documents

Publication Publication Date Title
CN104793946B (en) Dispositions method and system are applied based on cloud computing platform
US9229844B2 (en) System and method for monitoring web service
JP2019500680A (en) Data processing method and apparatus
CN110825399B (en) Deployment method and device of application program
US10078579B1 (en) Metrics-based analysis for testing a service
CN109446753A (en) Detect method, apparatus, computer equipment and the storage medium of pirate application program
CN107656750A (en) Update of plug-in method and device
CN115328759A (en) Form verification method and device
CN111352997A (en) Test environment verification method and system
CN112860283A (en) Self-identification upgrading method and device of SP (service provider) upgrading package and computer equipment
CN110347735A (en) The data forwarding of configurationization mends processing method, device and readable storage medium storing program for executing extremely
CN109582334B (en) Upgrading method and device for programmable logic device
CN109802866B (en) Network card SR-IOV function testing method, device, terminal and storage medium
CN106570685B (en) Service processing method and device
CN111324537A (en) Test script-based test method and device and computer equipment
CN110865932A (en) Program internal interface testing method, system, terminal and storage medium
CN108241607A (en) Automatically imported method, server and the storage medium of test of heuristics case
CN115599401A (en) Publishing method, device, equipment and medium of user-defined model
CN112925523A (en) Object comparison method, device, equipment and computer readable medium
CN112860284B (en) SP upgrade package generation method and device for equipment remote upgrade and computer equipment
KR101737575B1 (en) Method and device for verifying data based on sql sentences generated automatically
CN112860285B (en) SP upgrade package generation method and device of financial self-service equipment and computer equipment
CN111966387B (en) Firmware upgrading method, device, equipment and storage medium of NTB card
CN113395370B (en) Method and device for automatically configuring user-defined domain name
CN114389948B (en) Function upgrading and verifying method, device, equipment and medium based on white list

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