WO2018227772A1 - 柜员机控件更新方法、装置、计算机设备及存储介质 - Google Patents

柜员机控件更新方法、装置、计算机设备及存储介质 Download PDF

Info

Publication number
WO2018227772A1
WO2018227772A1 PCT/CN2017/099732 CN2017099732W WO2018227772A1 WO 2018227772 A1 WO2018227772 A1 WO 2018227772A1 CN 2017099732 W CN2017099732 W CN 2017099732W WO 2018227772 A1 WO2018227772 A1 WO 2018227772A1
Authority
WO
WIPO (PCT)
Prior art keywords
control
current state
server
updated
target control
Prior art date
Application number
PCT/CN2017/099732
Other languages
English (en)
French (fr)
Inventor
凌永辉
Original Assignee
平安科技(深圳)有限公司
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 平安科技(深圳)有限公司 filed Critical 平安科技(深圳)有限公司
Publication of WO2018227772A1 publication Critical patent/WO2018227772A1/zh

Links

Classifications

    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07FCOIN-FREED OR LIKE APPARATUS
    • G07F19/00Complete banking systems; Coded card-freed arrangements adapted for dispensing or receiving monies or the like and posting such transactions to existing accounts, e.g. automatic teller machines
    • G07F19/20Automatic teller machines [ATMs]
    • G07F19/206Software aspects at ATMs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

Definitions

  • the present invention relates to the field of computers, and in particular, to a method, device, computer device and storage medium for updating a teller machine control.
  • the teller machine is a highly sophisticated mechatronic device. It is a small machine set up by banks in different locations. Customers can use the ATM to make bank counter services such as withdrawal, deposit, transfer, etc., providing users with great services. Convenience.
  • the function of the teller machine is more and more powerful.
  • the powerful function of the teller machine is inseparable from the timely update of the control of the teller machine.
  • the control of the teller machine needs to be updated in the conventional technology, it is generally performed manually, and the efficiency is low. .
  • a teller machine control update method, apparatus, storage medium, and terminal are provided that address one or more of the problems involved in the background.
  • a method for updating a teller machine control comprising:
  • a teller machine control updating device comprising:
  • Querying a current status instruction receiving module configured to receive a current status instruction sent by the server
  • a current state obtaining module configured to acquire a current state according to the query current state instruction, and return the current state to the server;
  • a control update instruction receiving module configured to receive a control update instruction sent by the server when the current state is unused
  • an update module configured to update the version number obtaining module of the control according to the control update instruction, to obtain a version number of the control to be updated and a version number of the target control according to the control update instruction;
  • Updating the module when the version number of the to-be-updated control is different from the version number of the target control, updating the to-be-updated control according to the file of the target control.
  • a computer device comprising a memory, a processor, and a computer program stored on the memory and operable on the processor, the processor implementing the program to implement the following steps:
  • the to-be-updated control is updated according to the file of the target control.
  • a computer readable storage medium having stored thereon a computer program that, when executed by a processor, implements the following steps:
  • the to-be-updated control is updated according to the file of the target control.
  • FIG. 1 is a schematic structural diagram of a teller machine control update system in an embodiment
  • FIG. 2 is a flow chart of a method for updating a teller machine control in an embodiment
  • FIG. 3 is a flow chart of step S204 in the embodiment shown in Figure 2;
  • Figure 5 is a flow chart of the verification step in an embodiment
  • FIG. 6 is a flow chart of an alternate control loading step in an embodiment
  • FIG. 7 is a schematic structural diagram of an elevator device control updating device in an embodiment
  • FIG. 8 is a schematic structural diagram of a computer device in an embodiment.
  • FIG. 1 is a schematic structural diagram of an ATM update control system in an embodiment.
  • the ATM update system includes a server and a plurality of teller machines, wherein the teller machine can be deployed in a public place such as a bank or a subway station.
  • the server is a background management center, for example, the server is a terminal set in the teller machine control center, which can communicate with the teller machine.
  • the server may refer to a computer, supercomputer, etc., which is disposed at the bank and can communicate with several teller machines in the bank.
  • FIG. 2 is a flowchart of a method for updating a teller machine control in an embodiment
  • the present embodiment is exemplified by applying the method to the teller machine in the teller machine control system of FIG.
  • the teller machine control program runs on the teller machine, and the teller machine control update method is implemented through the teller machine control program.
  • the method specifically includes the following steps:
  • the current state refers to the current running state of the teller machine, which includes the use state and the unused state
  • the query current state command refers to an instruction to query whether the teller machine is currently in use or not.
  • the instruction for querying the current state may be set based on a specific communication protocol, or may be set by using a customized string.
  • the format of the instruction for querying the current state may be “RQ”+“R”+3 digits, for example, “RQR001” "It can represent the current status command sent by the server to the teller machine.
  • S204 Acquire a current state according to the query current state instruction, and return the current state to the server.
  • the thread in the teller machine that queries the current state is triggered to obtain the current state of the teller machine, wherein the thread in the teller machine that queries the current state may be in a ready state, that is, When the teller is powered on, the thread that queries the current state is in the ready state and is triggered as the wait is made.
  • the returning the current state to the server may also take the form of an instruction, and the instruction may be set based on a specific communication protocol, or may be set by using a customized character string.
  • the format of the instruction may also be “RQ” + “R” + 3 digits, for example, “RQR002” may represent the teller machine to the server.
  • the sent command indicating that the teller machine is not currently used, "RQR003" can indicate the command sent by the teller machine to the server indicating that the teller machine is currently in use.
  • control update instruction refers to an instruction for instructing the teller machine to update the control
  • the control update thread in the teller machine may be triggered to perform the control update
  • the server needs to upload the file and related information of the developer target control to the server before sending the query to the teller machine to query the current state instruction and the control update instruction.
  • the developer can select the teller machine that needs to update the control.
  • the server that needs to update the control can be selected in the interface of the server, and the control and target control to be updated in the teller machine are selected.
  • the control to be updated refers to the control already installed in the teller machine, which needs to be updated.
  • the target control is the control installed in the teller machine after the update is complete. After the developer sets up the teller machine, the to-be-updated control and the target control, which need to update the control, the server sends a query current status command to the teller machine.
  • the server When the teller machine returns to the server teller machine is not currently used, the server sends a control update instruction to the teller machine.
  • the server records the status of the teller machine, and the teller machine can periodically query the current status and return the query result to the server until the teller machine is in an unused state, then the server The teller machine sends a control update command.
  • the teller machine after receiving the control update command sent by the server, the teller machine obtains the version number of the control to be updated and the version number of the target control according to the control update instruction, for example, the control to be updated may be version 3.0, and the target control may be version 1.0.
  • version 4.0 you can update the control to be updated to a later version, you can also update to a lower version.
  • the current version is version 3.0
  • the latest version is version 4.0. In this case, you need to update the current version.
  • the update control is updated according to the file of the target control, so that the version of the teller control can be performed to the high version.
  • the update can also be restored to the original low version, which can be applied to the R&D test and applied to the version update in the actual scenario.
  • the teller machine can be restarted when the teller machine updates the control to be updated according to the file of the target control. For example, the teller machine first copies the file of the target control to the target location, and then writes some necessary dynamic link libraries (DLL, Dynamic) to the operating system directory. Link Library), third, then write the corresponding settings to the operating system registry, and fourth, create a program group and desktop shortcuts in the start menu.
  • DLL Dynamic
  • Link Library third, then write the corresponding settings to the operating system registry, and fourth, create a program group and desktop shortcuts in the start menu.
  • the purpose of restarting the teller machine is to re-activate the necessary dynamic link library in the operating system directory to be activated in the operating system, so that the target control can run normally after the update is successful.
  • the above-mentioned teller machine control update method sends a control update instruction to the teller machine through the server to realize remote update of the teller machine control, does not require manual participation, improves the update efficiency of the teller machine control, and the server first sends a query to the teller machine before the server sends an update instruction to the teller machine.
  • the current status command in order to obtain the current status of the teller machine, will only remotely upgrade the control of the teller machine when the teller machine is not currently used, preventing the user from using the ATM when the remote upgrade is performed, and the situation that the teller machine is unavailable is generated.
  • FIG. 3 is a flowchart of step S204 in the embodiment shown in FIG. 2, that is, acquiring the current state according to the query current state instruction, and returning the current state to the server.
  • the steps can include:
  • the process list refers to a list of all ongoing programs in the teller machine.
  • the process list can be traversed.
  • the process list there are a fingerprint running process and a basic running process, wherein the basic running process refers to a process of keeping the teller machine in a boot state.
  • the teller machine can traverse the processes in the process list in a certain order, for example, in alphabetical order, according to the order in the process list, or directly traverse other processes except the basic running process, for example, when the process list is stored,
  • the underlying running process and the non-base running process have been stored separately, and the teller machine can directly traverse the non-base running process.
  • the preset process refers to a process that can indicate that the teller machine is currently in use, such as a fingerprint running process, a camera running process, a wireless network running process, etc., when these processes are in a running state, that is, in the process list, then Indicates that the teller machine is in use, and only if there is at least one preset process in the process list, the teller machine is in use, for example, only the fingerprint device running process exists in the process list, or the fingerprint device running process exists in the process list.
  • a camera running process it indicates that the teller machine is in use.
  • these processes do not exist in the process list, that is, when the processes may be in the ready state or blocked state, it indicates that the teller machine is currently in an unused state.
  • the running state refers to the process occupying processor resources. Ready means that the process has obtained the required resources except the processor, waiting to allocate processor resources; it can be executed as long as the processor process is allocated. Blocked is because the process waits for a condition and cannot continue execution until the condition is met. Even if the processor is assigned to the process before the event occurs, it will not run.
  • the teller machine if the teller machine queries the current status to the use status according to the query current status instruction, the teller machine periodically queries the current status, for example, every 5 seconds, every 10 seconds, every 8 seconds, etc., if In the first preset time period (for example, 5 minutes, 10 minutes, 15 minutes, etc.), if the teller machine is not in use, the server may send control update information, so that the server determines that the teller machine needs to update the version, The teller machine itself determines whether the teller machine is in use. When the teller machine is not in use, the server sends an instruction to indicate that the server can be updated, so that the server sends a control update command to the teller machine, that is, the remote upgrade can be performed.
  • the server may send control update information, so that the server determines that the teller machine needs to update the version, The teller machine itself determines whether the teller machine is in use.
  • the server sends an instruction to indicate that the server can be updated, so that the server sends a control update command
  • the teller machine may first feed back the result to the server, and the server may record the teller machine, so that the teller machine can be every second preset time period (for example, 1 hour, 2 hours) , 5 hours, etc.) query the current state, wherein the length of the second preset time period is greater than the length of the first preset time period, as long as the teller machine is not in use, sending an instruction to the server indicating that the update can be performed, so that the server sends a control to the teller machine
  • the update command allows you to perform a remote upgrade. If the teller machine is in the third preset time period, for example, 1 day, 1.5 days, 2 days, etc., the upgrade has not been completed, the server displays the teller machine to prompt the developer to fail the upgrade of the control of the teller machine.
  • the process list in the teller machine operating system can conveniently determine whether the teller machine is in use, does not need to introduce an external device, and does not need to disassemble the teller machine, etc., and the operation is simple and convenient.
  • FIG. 4 is a flowchart of an environment determining step in an embodiment.
  • the environment determining step that is, step S306 shown in FIG. 3, may include:
  • S402 Acquire an environment image when a preset process does not exist in the process list.
  • the environmental image refers to an environment image around the teller machine, for example, an image of a range of a preset distance from the teller machine, which is a center of the teller machine, and the preset distance may be 0.5 meters, 1 meter, 1.2 meters, etc., and is not limited herein.
  • the teller machine may call its own camera to obtain an environment image, or obtain a video image by obtaining a video surveillance at the location of the teller machine through a router or the like, for example, when the teller machine is deployed in the bank.
  • the environment image can be obtained by acquiring video monitoring of the corresponding camera of the bank.
  • the user image refers to a human figure image, and may include all humanoid images. For example, whether the user image exists in the environment image may be determined by determining whether there is a head contour in the environment image, or whether the human body contour exists in the environment image may be determined. It is determined whether there is a user image or the like in the environment image, or a method of recognizing the user image from a certain image by other known or future inventions.
  • the teller machine when there is a user image in the environment image, that is, there is a user around the teller machine, it indicates that the teller machine is being used or will be used, so that the teller machine returns to the server the current state of use.
  • the current state of the teller machine may be determined only by whether the user image exists in the environment image, or the current state of the teller machine may be determined together with the environment image and the process list, wherein the method for determining the current state of the teller machine by using the process list See above for description.
  • the current state of the teller machine is judged by the environment image, and the user can be prevented from queuing.
  • the teller machine After the first user uses the teller machine, before the second user uses, the teller machine only judges the current status of the teller machine through the process list.
  • the state is an unused state, so that the second user cannot use the teller machine in time, and the operation of determining whether the user image exists in the environment image is simple and quick, and the application range is wide.
  • FIG. 5 is a flowchart of a verification step in an embodiment, where the verification step, that is, the step S210 of the embodiment shown in FIG. 2, may include:
  • the redundancy check method verifies the version of the target control to improve the security of the target control, so that only the version with successful verification can be installed normally, thus making the file of the illegal target control Cannot be installed.
  • the teller machine updates the update control according to the file of the target control to implement the update of the control.
  • the ATM still keeps the original control to be updated, that is, keeps the ATM running normally, and for convenience, the controller may be prompted to update the update, for example, in the form of a pop-up window.
  • the control of the teller machine fails to update, or the developer of the teller machine may fail to update the icon of the teller machine by highlighting the icon of the teller machine and changing the color of the icon of the teller machine, so that the developer can choose to resend the file of the target control to the teller machine to restart Update the control version, or troubleshoot the error and re-update the control version.
  • the server may display the progress of the update of the teller control at the icon of the corresponding teller machine, such as the updated progress, such as updated 57%, updated 78%, etc., or displayed Unupdated progress, for example, 56% left, 23% left, etc.
  • the file of the target control is first verified, so that only the file of the target control that passes the verification can be used by the ATM to be upgraded, thereby improving the remote upgrade process of the teller machine. safety.
  • FIG. 6 is a flowchart of an alternate control loading step in an embodiment, where the alternate control loading step may be performed when a peripheral corresponding to the to-be-loaded control of the teller machine fails.
  • the alternate control loading step can include:
  • the ATM when the ATM is started or used, it can detect whether there is a fault in each peripheral in the teller machine, for example, through the ROM of the server motherboard.
  • the BIOS ROM-Basic Input/Output System
  • the BIOS which is a basic input/output system that is solidified in read-only memory, detects whether the peripheral is abnormal.
  • the peripheral refers to the hardware device of the teller machine
  • the control refers to the software program of the teller machine.
  • the replacement peripheral of the current peripheral is selected, which can replace the peripheral that the current peripheral continues to complete the specific work. For example, if the fingerprint machine is detected at boot time, the control corresponding to the fingerprint machine is no longer loaded, but the replacement peripheral, such as the verification code module, and the corresponding control of the verification code module are loaded, so as to ensure the normality of the ATM. run.
  • the query replacement peripheral may be performed according to an alternate peripheral table stored in the teller machine.
  • the replacement peripheral table may store a plurality of peripherals and all the replacement peripherals of the peripherals, thereby querying the alternate peripheral table. That is, the alternate peripheral corresponding to the current peripheral can be obtained in real time.
  • the control corresponding to the substitute peripheral is loaded, so that the substitute peripheral can operate normally, thereby ensuring that the teller machine can operate normally.
  • steps in the flowcharts of FIGS. 2 to 6 above are displayed once in accordance with the indication of the arrow, these steps are not necessarily performed once in the order indicated by the arrows. Except as explicitly stated herein, the execution of these steps is not strictly limited, and may be performed in other sequences. Moreover, at least some of the steps in FIGS. 2 to 6 may include a plurality of sub-steps or stages, which are not necessarily performed at the same time, but may be executed at different times, and the execution order thereof is also It is not necessarily sequential, but may be performed alternately or alternately with other steps or at least a portion of the sub-steps or stages of the other steps.
  • FIG. 7 is a schematic structural diagram of an elevator device control updating apparatus according to an embodiment, where the teller machine control apparatus includes:
  • the current status instruction receiving module 110 is configured to receive a query current status command sent by the server.
  • the current state obtaining module 120 is configured to acquire a current state according to the query current state instruction, and return the current state to the server.
  • the control update instruction receiving module 130 is configured to receive a control update instruction sent by the server when the current state is unused.
  • the version number obtaining module 140 is configured to obtain a version number of the control to be updated and a version number of the target control according to the control update instruction.
  • the update module 150 updates the control to be updated according to the file of the target control when the version number of the control to be updated is different from the version number of the target control.
  • the current state obtaining module 120 may include:
  • the traversal unit is configured to traverse the process list according to the query current state instruction.
  • a result returning unit configured to return a current status to the server when the at least one preset process exists in the process list; when the preset process does not exist in the process list, return the current status to the server as Unused results.
  • the current state obtaining module 120 may further include:
  • the obtaining unit is configured to obtain an environment image when a preset process does not exist in the process list.
  • the determining unit is configured to determine whether a user image exists in the environment image.
  • the result returning unit is further configured to return a current status to the server when the user image exists in the environment image; when the user image does not exist in the environment image, return a result that the current state is unused to the server.
  • the update module 150 can also be used to verify the file of the target control; when the file verification of the target control is successful, the update control is updated according to the file of the target control; when the file of the target control is successful; When the verification fails, the update fails.
  • the apparatus may further include:
  • the detecting module is configured to detect, during the startup process, whether there is a fault in the current peripheral corresponding to the control to be loaded.
  • the module is selected to stop loading the control to be loaded when the current peripheral has a fault, and select an alternate peripheral of the current peripheral.
  • Load module for loading controls corresponding to alternate peripherals.
  • Each of the above-described teller machine control updating devices may be implemented in whole or in part by software, hardware, and combinations thereof.
  • Each of the above modules may be embedded in or independent of the processor in the computer device, or may be stored in a memory in the computer device in a software form, so that the processor invokes the operations corresponding to the above modules.
  • the processor can be a central processing unit (CPU), a microprocessor, a microcontroller, or the like.
  • the teller control update device described above can be implemented in the form of a computer program that can be run on a teller machine as shown in FIG.
  • the embodiment of the present invention provides a computer device, which includes a series of computer programs stored in a memory.
  • the computer program is executed by the processor, the method for updating the teller control according to various embodiments of the present invention may be implemented. In an embodiment, the particular operations are implemented based on portions of the computer program.
  • a computer device is provided, which is equivalent to the above-mentioned teller machine.
  • the internal structure of the teller machine may correspond to the structure shown in FIG. 8, wherein the teller machine includes a memory, a processor, and an operating system connected through a system bus.
  • the processor is used to provide computing and control capabilities to support the operation of the entire computer device.
  • the memory is used to store data, program code, and the like.
  • At least one computer executable program is stored on the memory, the computer executable program being executable by the processor to implement the teller control update method provided in various embodiments of the present application.
  • the computer executable program can be executed by a processor for implementing a teller machine control update method provided by the various embodiments described above.
  • the internal memory in the terminal provides a cached operating environment for operating systems, databases, and computer executables in non-volatile storage media.
  • the processor executes the program, the following steps are implemented: receiving a query current status instruction sent by the server. Get the current state according to the query current state instruction and return the current state to the server. When the current state is unused, the control update command sent by the server is received. According to the control update instruction, the version number of the control to be updated and the version number of the target control are obtained. When the version number of the control to be updated is different from the version number of the target control, the update control is updated according to the file of the target control.
  • the processor may also implement the following steps: traversing the process list according to the query current state instruction.
  • the processor may also implement the following steps: traversing the process list according to the query current state instruction.
  • the result of the current state being used is returned to the server.
  • the preset process does not exist in the process list, the result of the current state being unused is returned to the server.
  • the processor executes the program, the following steps may also be implemented: when the preset process does not exist in the process list, the environment image is acquired. Determine whether there is a user image in the environment image. When there is a user image in the environment image, the result of the current state being used is returned to the server. When there is no user image in the environment image, the result of the current state being unused is returned to the server.
  • the processor may also implement the following steps when executing the program: verifying the file of the target control.
  • the update control is updated according to the file of the target control.
  • the update fails.
  • the processor executes the program, the following steps may also be implemented: during the startup process, it is detected whether there is a fault in the current peripheral corresponding to the control to be loaded. When there is a fault in the current peripheral, stop loading the control to be loaded and select the replacement peripheral of the current peripheral. Load controls that correspond to alternate peripherals.
  • a computer readable storage medium having stored thereon a computer program, such as the non-volatile storage medium shown in FIG. 8, wherein the memory may include a disk, an optical disk, a read-only memory.
  • Memory Read-Only A nonvolatile storage medium such as a memory or a ROM, or a random storage memory (Random-Access-Memory, RAM).
  • the memory includes a non-volatile storage medium and an internal memory.
  • a non-volatile storage medium of a computer device stores an operating system, a database, and a computer executable program.
  • the database stores data related to implementing a method for updating the teller machine control provided by the various embodiments described above.
  • the following steps are implemented: receiving a query current status instruction sent by the server. Get the current state according to the query current state instruction and return the current state to the server. When the current state is unused, the control update command sent by the server is received. According to the control update instruction, the version number of the control to be updated and the version number of the target control are obtained. When the version number of the control to be updated is different from the version number of the target control, the update control is updated according to the file of the target control.
  • the following steps may be implemented: traversing the process list according to the query current state instruction.
  • the result of the current state being used is returned to the server.
  • the preset process does not exist in the process list, the result of the current state being unused is returned to the server.
  • the following steps may be further implemented: when the preset process does not exist in the process list, the environment image is acquired. Determine whether there is a user image in the environment image. When there is a user image in the environment image, the result of the current state being used is returned to the server. When there is no user image in the environment image, the result of the current state being unused is returned to the server.
  • the following steps may be implemented: verifying the file of the target control.
  • the update control is updated according to the file of the target control.
  • the update fails.
  • the following steps may be implemented: during the startup process, it is detected whether there is a fault in the current peripheral corresponding to the control to be loaded. When there is a fault in the current peripheral, stop loading the control to be loaded and select the replacement peripheral of the current peripheral. Load controls that correspond to alternate peripherals.
  • the storage medium may be a magnetic disk, an optical disk, or a read-only storage memory (Read-Only) Memory, ROM), etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Computer Security & Cryptography (AREA)
  • Stored Programmes (AREA)

Abstract

一种柜员机控件更新方法、装置、计算机设备和存储介质,该方法包括接收服务器发送的查询当前状态指令(S202);根据所述查询当前状态指令获取当前状态,并将当前状态返回至服务器(S204);当当前状态为未使用时,则接收服务器发送的控件更新指令(S206);根据控件更新指令,获取待更新控件的版本号与目标控件的版本号(S208);当待更新控件的版本号与目标控件的版本号不相同时,则根据目标控件的文件对待更新控件进行更新(S210)。

Description

柜员机控件更新方法、装置、计算机设备及存储介质
本申请要求于2017年6月12日提交中国专利局、申请号为201710445117.4 、发明名称为“柜员机控件更新方法和装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
【技术领域】
本发明涉及计算机领域,特别是涉及一种柜员机控件更新方法、装置、计算机设备及存储介质。
【背景技术】
柜员机是一种高度精密的机电一体化装置,其是银行在不同地点设置的一种小型机器,客户可以通过该柜员机进行提款、存款、转帐等银行柜台服务,给用户办理业务提供了极大的方便。
随着客户业务需求的增加,柜员机的功能也越来越强大,柜员机功能的强大离不开柜员机控件的及时更新,但是传统技术中当柜员机的控件需要更新时,一般是由人工进行,效率低下。
【发明内容】
根据本申请的各种实施例,提供一种柜员机控件更新方法、装置、存储介质和终端,解决了背景技术中所涉及的一个或多个问题。
一种柜员机控件更新方法,包括:
接收服务器发送的查询当前状态指令;
根据所述查询当前状态指令获取当前状态,并将所述当前状态返回至所述服务器;
当所述当前状态为未使用时,则接收所述服务器发送的控件更新指令;
根据所述控件更新指令,获取待更新控件的版本号与目标控件的版本号;及
当所述待更新控件的版本号与所述目标控件的版本号不相同时,则根据所述目标控件的文件对所述待更新控件进行更新根据所述控件更新指令对所述控件进行更新。
一种柜员机控件更新装置,包括:
查询当前状态指令接收模块,用于接收服务器发送的查询当前状态指令;
当前状态获取模块,用于根据所述查询当前状态指令获取当前状态,并将所述当前状态返回至所述服务器;
控件更新指令接收模块,用于当所述当前状态为未使用时,则接收所述服务器发送的控件更新指令;
更新模块,用于根据所述控件更新指令对所述控件进行更新版本号获取模块,用于根据所述控件更新指令,获取待更新控件的版本号与目标控件的版本号;
更新模块,当所述待更新控件的版本号与所述目标控件的版本号不相同时,则根据所述目标控件的文件对所述待更新控件进行更新。
一种计算机设备,包括存储器、处理器以及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时实现以下步骤:
接收服务器发送的查询当前状态指令;
根据所述查询当前状态指令获取当前状态,并将所述当前状态返回至所述服务器;
当所述当前状态为未使用时,则接收所述服务器发送的控件更新指令;
根据所述控件更新指令,获取待更新控件的版本号与目标控件的版本号;
当所述待更新控件的版本号与所述目标控件的版本号不相同时,则根据所述目标控件的文件对所述待更新控件进行更新。
一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现以下步骤:
接收服务器发送的查询当前状态指令;
根据所述查询当前状态指令获取当前状态,并将所述当前状态返回至所述服务器;
当所述当前状态为未使用时,则接收所述服务器发送的控件更新指令;
根据所述控件更新指令,获取待更新控件的版本号与目标控件的版本号;
当所述待更新控件的版本号与所述目标控件的版本号不相同时,则根据所述目标控件的文件对所述待更新控件进行更新。
本发明的一个或多个实施例的细节在下面的附图和描述中提出。本发明的其它特征、目的和优点将从说明书、附图以及权利要求书变得明显。
【附图说明】
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1为一实施例中柜员机控件更新系统的结构示意图;
图2为一实施例中的柜员机控件更新方法的流程图;
图3为图2所示的实施例中的步骤S204的流程图;
图4为一实施例中环境判断步骤的流程图;
图5为一实施例中校验步骤的流程图;
图6为一实施例中的替代控件加载步骤的流程图;
图7为一实施例中柜员机控件更新装置的结构示意图;
图8为一实施例中的计算机设备的结构示意图。
【具体实施方式】
为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用于解释本发明,并不用于限定本发明。
在详细说明根据本发明的实施例前,应该注意到的是,所述的实施例主要在于与柜员机控件更新方法、装置、计算机设备及存储介质相关的步骤和系统组件的组合。因此,所属系统组件和方法步骤已经在附图中通过常规符号在适当的位置表示出来了,并且只示出了与理解本发明的实施例有关的细节,以免因对于得益于本发明的本领域普通技术人员而言显而易见的那些细节模糊了本发明的公开内容。
在本文中,诸如左和右,上和下,前和后,第一和第二之类的关系术语仅仅用来区分一个实体或动作与另一个实体或动作,而不一定要求或暗示这种实体或动作之间的任何实际的这种关系或顺序。术语“包括”、“包含”或任何其他变体旨在涵盖非排他性的包含,由此使得包括一系列要素的过程、方法、物品或者设备不仅包含这些要素,而且还包含没有明确列出的其他要素,或者为这种过程、方法、物品或者设备所固有的要素。
请参阅图1所示,图1为一实施例中柜员机控件更新系统的结构示意图,该柜员机控件更新系统包括服务器和数个柜员机,其中柜员机可以部署在银行、地铁站等公共场合。服务器为后台管理中心,例如服务器为设置在柜员机控制中心的终端,其可以与柜员机进行通信。例如当柜员机控件更新系统仅涉及一个银行中的数个柜员机时,服务器可以是指设置在银行的、可以与银行中的数个柜员机进行通信的计算机、超级计算机等。
参阅图2,为一实施例中的柜员机控件更新方法的流程图,本实施例以该方法应用到上述图1中的柜员机控制系统中的柜员机来举例说明。该柜员机上运行有柜员机控制程序,通过该柜员机控制程序来实施柜员机控件更新方法。该方法具体包括如下步骤:
S202:接收服务器发送的查询当前状态指令。
具体地,当前状态是指柜员机的当前运行状态,其包括使用状态和未使用状态,查询当前状态指令则是指查询柜员机当前是使用状态还是未使用状态的指令。
其中该查询当前状态的指令可以是基于特定的通信协议来进行设置,还可以是采用自定义的字符串来进行设置。可选地,当该查询当前状态的指令是采用自定义的字符串来进行设置的时候,该查询当前状态的指令的格式可以为“RQ”+“R”+3位数字,例如,“RQR001”其可以表示服务器向柜员机发送的查询当前状态指令。
S204:根据查询当前状态指令获取当前状态,并将当前状态返回至服务器。
具体地,当柜员机接收到该查询当前状态指令时,则会触发柜员机中查询当前状态的线程来获取柜员机的当前状态,其中该柜员机中的查询当前状态的线程可以是事先处于就绪状态的,即当柜员机开机时,则该查询当前状态的线程就处于就绪状态,随着等待被触发。
其中,将当前状态返回至服务器也可以采用指令的形式,且该指令可以是基于特定的通信协议来进行设置,还可以是采用自定义的字符串来进行设置。可选地,当该指令是采用自定义的字符串来进行设置的时候,该指令的格式也可以为“RQ”+“R”+3位数字,例如,“RQR002”其可以表示柜员机向服务器发送的、表示柜员机当前未使用的指令,“RQR003”其可以表示柜员机向服务器发送的、表示柜员机当前使用的指令。
S206:当当前状态为未使用时,则接收服务器发送的控件更新指令。
具体地,控件更新指令是指指示柜员机进行控件更新的指令,当柜员机接收到该控件更新指令时,可以触发柜员机中控件更新线程进行控件更新。
其中,服务器在向柜员机发送查询当前状态指令和控件更新指令之前,需要开发人员目标控件的文件和相关信息上传至服务器。开发人员可以选择需要更新控件的柜员机,例如可以在服务器的界面选择需要更新控件的柜员机,并选择该柜员机中待更新控件和目标控件。其中待更新控件是指柜员机中已经安装的控件,其需要更新。目标控件是更新完成后,柜员机中安装的控件。开发人员在设置好需要更新控件的柜员机、待更新控件和目标控件后,服务器向柜员机发送查询当前状态指令,当柜员机返回服务器柜员机当前未使用时,则服务器向柜员机发送控件更新指令。当柜员机返回服务器的是柜员机当前处于使用状态时,则服务器记录该柜员机的状态,柜员机则可以周期性地查询当前状态,并向服务器返回该查询结果,直至柜员机为未使用状态时,则服务器向柜员机发送控件更新指令。
S208:根据控件更新指令,获取待更新控件的版本号与目标控件的版本号。
具体地,当柜员机接收到服务器发送的控件更新指令后,则根据该控件更新指令获取待更新控件的版本号和目标控件的版本号,例如待更新控件可能是3.0版本,目标控件可能是1.0版本或者4.0版本,即可以将待更新控件更新为更高版本,还可以更新为低版本,例如在研发测试时,假设当前版本为3.0版本,研发最新版本为4.0版本,此时需要将当前版本更新为研发最新版本4.0版本,但是如果在研发最新版本的使用过程中出现问题,想要恢复到原来版本,即3.0版本时,也可以通过服务器将研发最新版本4.0更新为3.0版本。
S210:当待更新控件的版本号与目标控件的版本号不相同时,则根据目标控件的文件对待更新控件进行更新。
具体地,如上文所述,只有待更新控件的版本号与目标控件的版本号不相同时,才会根据目标控件的文件对待更新控件进行更新,从而可以使得柜员机控件版本即可以向高版本进行更新,也可以还原至原来的低版本,从而即可以应用到研发测试,又可以应用到实际场景中的版本更新。
可选地,在柜员机在根据目标控件的文件对待更新控件进行更新时,柜员机可以进行重启。例如,柜员机首先将目标控件的文件拷贝到目标位置,然后向操作统目录中写入一些必要的动态连接库(DLL,Dynamic Link Library),第三,再向操作系统注册表中写入相应的设置项,第四,建立开始菜单里的程序组和桌面快捷方式等。其中柜员机重启的目的是重新把向操作统目录中写入一些必要的动态连接库在操作系统中进行激活,从而使得目标控件可以在更新成功后正常运行。
上述柜员机控件更新方法,通过服务器向柜员机发送控件更新指令以实现柜员机控件的远程更新,不需要人工参与,提高柜员机控件的更新效率,且在服务器向柜员机发送更新指令之前,服务器首先向柜员机发送查询当前状态指令,以获取柜员机的当前状态,只有在柜员机当前未使用时,才会对柜员机的控件进行远程升级,防止用户正在使用柜员机时进行远程升级,而导致柜员机不可用的情况发生。
在其中一个实施例中,参阅图3,图3为图2所示的实施例中的步骤S204的流程图,该步骤S204,即根据查询当前状态指令获取当前状态,并将当前状态返回至服务器的步骤,可以包括:
S302:根据查询当前状态指令,遍历进程列表。
具体地,进程列表是指柜员机中所有正在进行的程序的列表,当柜员机接收到服务器发送的查询当前状态指令时,可以遍历进程列表。例如进程列表中存在指纹仪运行进程、基础运行进程,其中基础运行进程是指保持柜员机处于开机状态的进程。柜员机可以按照一定顺序来遍历进程列表中的进程,例如可以按照字母的先后顺序,按照进程列表中的排列顺序,或者也可以直接遍历除了基础运行进程外的其他进程,例如进程列表在存储时即已经将基础运行进程和非基础运行进程进行了分开存储,则柜员机可以直接遍历非基础运行进程。
S304:当进程列表中存在至少一个预设的进程时,则向服务器返回当前状态为正在使用的结果。
S306:当进程列表中不存在预设的进程时,则向服务器返回当前状态为未使用的结果。
具体地,预设的进程是指能够表示柜员机当前在使用状态的进程,例如指纹仪运行进程、摄像头运行进程、无线网络运行进程等,当这些进程处于运行状态,即处于进程列表中时,则表示柜员机处于使用状态,且只有进程列表中存在至少一个该预设的进程时,则柜员机即处于使用状态,例如进程列表中仅存在指纹仪运行进程,或者进程列表中即存在指纹仪运行进程,又存在摄像头运行进程时,均表示柜员机处于使用状态。当进程列表中不存在这些进程时,即该些进程可能处于就绪状态或封锁状态时,则表示柜员机当前处于未使用状态。
其中,运行状态(Running)是指进程占用处理器资源。就绪状态(Ready)是指进程已获得除处理器外的所需资源,等待分配处理器资源;只要分配了处理器进程就可执行。阻塞状态(Blocked)是指由于进程等待某种条件,在条件满足之前无法继续执行。该事件发生前即使把处理机分配给该进程,也无法运行。
优选地,如果柜员机根据查询当前状态指令,查询进程列表得出当前状态为使用状态时,则柜员机周期性地查询当前状态,例如每5秒、每10秒、每8秒查询一次等,若在第一预设时间段(例如,5分钟、10分钟、15分钟等)内,柜员机未处于使用状态,则向服务器发送可进行控件更新信息,这样在服务器确定该柜员机需要更新版本的情况下,通过柜员机本身来确定柜员机是否在使用,只要柜员机不在使用状态时,则向服务器发送指令表示可以更新,这样服务器向柜员机发送控件更新指令,即可以进行远程升级。但是如果在预设时间段内,柜员机一直处于使用状态,则柜员机可以先向服务器反馈该结果,服务器可以记录该柜员机,从而柜员机可以每隔第二预设时间段(例如,1小时、2小时、5小时等)查询当前状态,其中第二预设时间段的长度大于第一预设时间段的长度,只要柜员机不在使用状态时,则向服务器发送指令表示可以更新,这样服务器向柜员机发送控件更新指令,即可以进行远程升级。如果柜员机在第三预设时间段,例如1天、1.5天、2天等,还未升级完成,则服务器显示该柜员机,以提示研发人员该柜员机的控件升级失败。
在本实施例中,通过柜员机操作系统中的进程列表可以方便地判断出柜员机是否处于使用状态,不需要引入外部设备,也不需要对柜员机进行拆机改进等,操作简单方便。
在其中一个实施例中,参阅图4,图4为一实施例中环境判断步骤的流程图,该环境判断步骤即图3所示的步骤S306可以包括:
S402:当进程列表中不存在预设的进程时,获取环境图像。
具体地,环境图像是指柜员机周围的环境图像,例如以柜员机为圆心,距离柜员机预设距离的范围的图像,该预设距离可以是0.5米、1米、1.2米等,在此不作限制。
可选地,当进程列表中不存在预设的进程时,柜员机可以调用自身的摄像头来获取环境图像,或者通过路由器等获取柜员机所在位置处的视频监控来获取环境图像,例如当柜员机部署在银行时,可以通过获取银行的对应的摄像头的视频监控来获取环境图像。
S404:判断环境图像中是否存在用户图像。
具体地,用户图像是指人形图像,可以包括所有的人形图像,例如可以通过判断环境图像中是否存在头部轮廓来判断环境图像中是否存在用户图像,或者可以通过判断环境图像中是否存在人形轮廓来判断环境图像中是否存在用户图像等,或者通过其他的已知的或将来发明实现的可以从某一图像中识别出用户图像的方法来实现。
S406:当环境图像中存在用户图像时,则向服务器返回当前状态为正在使用的结果。
具体地,当环境图像中存在用户图像时,即柜员机的周围存在有用户,则表示柜员机正在使用或者将要被使用,从而柜员机向服务器返回结果为使用的当前状态。
S408:当环境图像中不存在用户图像时,则向服务器返回当前状态为未使用的结果。
具体地,当环境图像中不存在用户图像时,即柜员机的周围不存在用户,则表示柜员机未被使用,从而柜员机向服务器返回当前状态为未使用的结果。
可选地,可以仅通过环境图像中是否存在用户图像来判断柜员机的当前状态,也可以结合环境图像和进程列表两者一起来判断柜员机的当前状态,其中通过进程列表来判断柜员机当前状态的方法可以参见上文所述。
本实施例中,通过环境图像来判断柜员机的当前状态,可以避免存在用户排队的情况下,第一个用户使用完柜员机后,在第二个用户使用之前,柜员机仅通过进程列表判断柜员机的当前状态为未使用状态,从而使得第二个用户不能及时地正常使用该柜员机的情况的发生,且通过判断环境图像中是否存在用户图像的方案操作简单快捷,应用范围较为广泛。
在其中一个实施例中,参阅图5,图5为一实施例中校验步骤的流程图,该校验步骤即图2所示实施例的S210步骤可以包括:
S502:对目标控件的文件进行校验。
具体地,可以通过CRC(Cyclic Redundancy Check,循环冗余校验)冗余校验方式对目标控件的版本进行校验,以提高目标控件的安全性,从而保证只有校验成功的版本才能正常进行安装,从而使得非法目标控件的文件不能进行安装。
S504:当目标控件的文件校验成功时,则根据目标控件的文件对待更新控件进行更新。
S506:当目标控件的文件校验失败时,则提示更新失败。
具体地,当目标控件的文件校验成功时,则柜员机根据目标控件的文件对待更新控件进行更新,以实现控件的更新。但是如果目标控件的文件校验失败,则柜员机处仍保持原来的待更新控件不变,即保持柜员机的正常运行,且为了方便,可以在服务器处提示控件更新失败,例如以弹窗的形式提示该柜员机的控件更新失败,或者还可以通过柜员机的图标高亮、改变柜员机图标的颜色的形式提示研发人员该柜员机的控件更新失败,从而研发人员可以选择重新向柜员机发送目标控件的文件以重新进行控件版本更新,或者排查错误重新进行控件版本更新等。可选地,在柜员机控件更新的过程中,服务器可以在相应的柜员机的图标处,显示该柜员机控件更新的进程,例如已更新的进度,例如已更新57%、已更新78%等,或者显示未更新的进度,例如还剩56%,还剩23%等。
上述实施例中,在柜员机进行控件更新前,首先对目标控件的文件进行校验,从而保证只有校验通过的目标控件的文件才能够被柜员机利用以进行升级,提高了柜员机远程升级过程中的安全性。
在其中一个实施例中,参阅图6,图6为一实施例中的替代控件加载步骤的流程图,该替代控件加载步骤可以是当柜员机的待加载控件所对应的外设出现故障时进行的,例如可以是在图2所示的实施例之后进行,即柜员机完成控件更新之后,在启动的过程中,或者是柜员机由于其他原因启动的过程中,例如断电重新的过程中进行的,该替代控件加载步骤可以包括:
S602:在启动过程中,检测与待加载控件相对应的当前外设是否存在故障。
具体地,在柜员机使用过程中,例如可以是在柜员机控件更新完成后,柜员机开始时或使用时,可以检测柜员机中的各个外设是否存在故障,例如可以通过在服务器主板的ROM BIOS(ROM-Basic Input/Output System,固化在只读存储器中的基本输入输出系统)中检测外设是否异常。
S604:当当前外设存在故障时,则停止加载待加载控件,并选取当前外设的替代外设。
具体地,外设是指柜员机的硬件设备,控件是指柜员机的软件程序,当检测到当前外设存在故障时,就算加载该外设所对应的控件,该控件也不会正常使用,从而导致柜员机不能正常使用,为了避免该种情况的发送,当检测到当前外设存在故障时,则选取当前外设的替代外设,即可以替代当前外设继续完成特定工作的替代外设。例如在开机时检测到指纹机故障,则不再加载指纹机所对应的控件,而是查询替代外设,例如验证码模块,并加载验证码模块的所对应的控件,这样可以保证柜员机的正常运行。其中查询替代外设可以是根据柜员机中存储的替代外设表格进行,例如该替代外设表格中可以存储有数个外设以及该些外设的所有替代外设,从而通过查询该替代外设表即可以实时地获取当前外设所对应的替代外设。
S606:加载与替代外设相对应的控件。
具体地,当查询到替代外设后,则加载该替代外设所对应的控件,从而该替代外设可以正常运行,进而保证柜员机可以正常运行。
上述实施例中,柜员机开始时或使用时,例如柜员机启动过程中,可以检测柜员机中的各个外设是否存在故障,当当前外设存在故障时,则选取当前外设的替代外设,并加载该替代外设所对应的控件,从而保证柜员机可以正常运行。
虽然上文中图2至图6的流程图中的各个步骤按照箭头的指示一次显示,但是这些步骤并不是必然按照箭头指示的顺序一次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,其可以以其他的顺序执行。而且,图2至图6中的至少一部分步骤可以包括多个子步骤或者多个阶段,这些子步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,其执行顺序也不必然是依次进行,而是可以与其他步骤或者其他步骤的子步骤或者阶段的至少一部分轮流或者交替执行。
参阅图7,图7为一实施例中柜员机控件更新装置的结构示意图,该柜员机控制装置包括:
查询当前状态指令接收模块110,用于接收服务器发送的查询当前状态指令。
当前状态获取模块120,用于根据查询当前状态指令获取当前状态,并将当前状态返回至服务器。
控件更新指令接收模块130,用于当当前状态为未使用时,则接收服务器发送的控件更新指令。
版本号获取模块140,用于根据控件更新指令,获取待更新控件的版本号与目标控件的版本号。
更新模块150,当待更新控件的版本号与目标控件的版本号不相同时,则根据目标控件的文件对待更新控件进行更新。
在其中一个实施例中,当前状态获取模块120可以包括:
遍历单元,用于根据查询当前状态指令,遍历进程列表。
结果返回单元,用于当进程列表中存在至少一个预设的进程时,则向服务器返回当前状态为正在使用的结果;当进程列表中不存在预设的进程时,则向服务器返回当前状态为未使用的结果。
在其中一个实施例中,当前状态获取模块120还可以包括:
获取单元,用于当进程列表中不存在预设的进程时,获取环境图像。
判断单元,用于判断环境图像中是否存在用户图像。
结果返回单元还用于当环境图像中存在用户图像时,则向服务器返回当前状态为正在使用的结果;当环境图像中不存在用户图像时,则向服务器返回当前状态为未使用的结果。
在其中一个实施例中,更新模块150还可以用于对目标控件的文件进行校验;当目标控件的文件校验成功时,则根据目标控件的文件对待更新控件进行更新;当目标控件的文件校验失败时,则提示更新失败。
在其中一个实施例中,该装置还可以包括:
检测模块,用于在启动过程中,检测与待加载控件相对应的当前外设是否存在故障。
选取模块,用于当当前外设存在故障时,则停止加载待加载控件,并选取当前外设的替代外设。
加载模块,用于加载与替代外设相对应的控件。
上述对于柜员机控件更新装置的具体限定可以参见上文中对于柜员机控件更新方法的具体限定,在此不再赘述。上述柜员机控件更新装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于计算机设备中的处理器中,也可以以软件形式存储于计算机设备中的存储器中,以便于处理器调用执行以上各个模块对应的操作。该处理器可以为中央处理单元(CPU)、微处理器、单片机等。上述柜员机控件更新装置可以实现为一种计算机程序的形式,计算机程序可在如图1所示的柜员机上运行。
本发明实施例提出了一种计算机设备,该计算机设备包括一系列存储于存储器上的计算机程序,当计算机程序被处理器执行时,可以实现本发明各个实施例提出的柜员机控件更新方法,在一些实施例中,基于该计算机程序各部分所实现的特定的操作。参阅图8,提供一种计算机设备,该计算机设备相当于上述的柜员机,上述柜员机的内部结构可对应于图8所示的结构,其中该柜员机包括通过系统总线连接的存储器、处理器、操作系统,其中,该处理器用于提供计算和控制能力,支撑整个计算机设备的运行。存储器用于存储数据、程序代码等。
该存储器上存储至少一个计算机可执行程序,该计算机可执行程序可被处理器执行,以实现本申请各实施例中提供的柜员机控件更新方法。该计算机可执行程序可被处理器所执行,以用于实现上述各个实施例所提供的一种柜员机控件更新方法。终端中的内存储器为非易失性存储介质中的操作系统、数据库和计算机可执行程序提供高速缓存的运行环境。
其中,处理器执行程序时实现以下步骤:接收服务器发送的查询当前状态指令。根据查询当前状态指令获取当前状态,并将当前状态返回至服务器。当当前状态为未使用时,则接收服务器发送的控件更新指令。根据控件更新指令,获取待更新控件的版本号与目标控件的版本号。当待更新控件的版本号与目标控件的版本号不相同时,则根据目标控件的文件对待更新控件进行更新。
在其中一个实施例中,处理器执行程序时还可以实现以下步骤:根据查询当前状态指令,遍历进程列表。当进程列表中存在至少一个预设的进程时,则向服务器返回当前状态为正在使用的结果。当进程列表中不存在预设的进程时,则向服务器返回当前状态为未使用的结果。
在其中一个实施例中,处理器执行程序时还可以实现以下步骤:当所述进程列表中不存在预设的进程时,获取环境图像。判断环境图像中是否存在用户图像。当环境图像中存在用户图像时,则向服务器返回当前状态为正在使用的结果。当环境图像中不存在用户图像时,则向服务器返回当前状态为未使用的结果。
在其中一个实施例中,处理器执行程序时还可以实现以下步骤:对目标控件的文件进行校验。当目标控件的文件校验成功时,则根据目标控件的文件对待更新控件进行更新。当目标控件的文件校验失败时,则提示更新失败。
在其中一个实施例中,处理器执行程序时还可以实现以下步骤:在启动过程中,检测与待加载控件相对应的当前外设是否存在故障。当当前外设存在故障时,则停止加载待加载控件,并选取当前外设的替代外设。加载与替代外设相对应的控件。
上述对于计算机设备的具体限定可以参见上文中对于柜员机控件更新方法的具体限定,在此不再赘述。
请继续参阅图8,还提供一种计算机可读存储介质,其上存储有计算机程序,如图8中所示的非易失性存储介质,其中,存储器可包括磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)等非易失性存储介质,或随机存储记忆体(Random-Access-Memory,RAM)等。在一个实施例中,存储器包括非易失性存储介质及内存储器。计算机设备的非易失性存储介质存储有操作系统、数据库和计算机可执行程序。该数据库中存储有用于实现上述各个实施例所提供的一种柜员机控件更新方法相关的数据。其中,该程序被处理器执行时实现以下步骤:接收服务器发送的查询当前状态指令。根据查询当前状态指令获取当前状态,并将当前状态返回至服务器。当当前状态为未使用时,则接收服务器发送的控件更新指令。根据控件更新指令,获取待更新控件的版本号与目标控件的版本号。当待更新控件的版本号与目标控件的版本号不相同时,则根据目标控件的文件对待更新控件进行更新。
在其中一个实施例中,该程序被处理器执行时还可以实现以下步骤:根据查询当前状态指令,遍历进程列表。当进程列表中存在至少一个预设的进程时,则向服务器返回当前状态为正在使用的结果。当进程列表中不存在预设的进程时,则向服务器返回当前状态为未使用的结果。
在其中一个实施例中,该程序被处理器执行时还可以实现以下步骤:当所述进程列表中不存在预设的进程时,获取环境图像。判断环境图像中是否存在用户图像。当环境图像中存在用户图像时,则向服务器返回当前状态为正在使用的结果。当环境图像中不存在用户图像时,则向服务器返回当前状态为未使用的结果。
在其中一个实施例中,该程序被处理器执行时还可以实现以下步骤:对目标控件的文件进行校验。当目标控件的文件校验成功时,则根据目标控件的文件对待更新控件进行更新。当目标控件的文件校验失败时,则提示更新失败。
在其中一个实施例中,该程序被处理器执行时还可以实现以下步骤:在启动过程中,检测与待加载控件相对应的当前外设是否存在故障。当当前外设存在故障时,则停止加载待加载控件,并选取当前外设的替代外设。加载与替代外设相对应的控件。
上述对于计算机可读存储介质的具体限定可以参见上文中对于柜员机控件更新方法的具体限定,在此不再赘述。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一非易失性计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)等。
以上所述实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。
以上所述实施例仅表达了本发明的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本发明构思的前提下,还可以做出若干变形和改进,这些都属于本发明的保护范围。因此,本发明专利的保护范围应以所附权利要求为准。

Claims (20)

  1. 一种柜员机控件更新方法,其特征在于,包括:
    接收服务器发送的查询当前状态指令;
    根据所述查询当前状态指令获取当前状态,并将所述当前状态返回至所述服务器;
    当所述当前状态为未使用时,则接收所述服务器发送的控件更新指令;
    根据所述控件更新指令,获取待更新控件的版本号与目标控件的版本号;及
    当所述待更新控件的版本号与所述目标控件的版本号不相同时,则根据所述目标控件的文件对所述待更新控件进行更新。
  2. 根据权利要求1所述的方法,其特征在于,所述根据所述查询当前状态指令获取当前状态,并将所述当前状态返回至所述服务器的步骤,包括:
    根据所述查询当前状态指令,遍历进程列表;
    当所述进程列表中存在至少一个预设的进程时,则向所述服务器返回当前状态为正在使用的结果;及
    当所述进程列表中不存在预设的进程时,则向所述服务器返回当前状态为未使用的结果。
  3. 根据权利要求2所述的方法,其特征在于,所述当所述进程列表中不存在预设的进程时,则向服务器返回当前状态为未使用的结果包括:
    当所述进程列表中不存在预设的进程时,获取环境图像;
    判断所述环境图像中是否存在用户图像;
    当所述环境图像中存在用户图像时,则向所述服务器返回当前状态为正在使用的的结果;及
    当所述环境图像中不存在用户图像时,则向所述服务器返回当前状态为未使用的结果。
  4. 根据权利要求1所述的方法,其特征在于,所述根据所述目标控件的文件对所述待更新控件进行更新的步骤,包括:
    对所述目标控件的文件进行校验;
    当所述目标控件的文件校验成功时,则根据所述目标控件的文件对所述待更新控件进行更新;及
    当所述目标控件的文件校验失败时,则提示更新失败。
  5. 根据权利要求1所述的方法,其特征在于,所述方法还包括:
    在启动过程中,检测与待加载控件相对应的当前外设是否存在故障;
    当所述当前外设存在故障时,则停止加载所述待加载控件,并选取所述当前外设的替代外设;及
    加载与所述替代外设相对应的控件。
  6. 一种柜员机控件更新装置,其特征在于,包括:
    查询当前状态指令接收模块,用于接收服务器发送的查询当前状态指令;
    当前状态获取模块,用于根据所述查询当前状态指令获取当前状态,并将所述当前状态返回至所述服务器;
    控件更新指令接收模块,用于当所述当前状态为未使用时,则接收所述服务器发送的控件更新指令;
    版本号获取模块,用于根据所述控件更新指令,获取待更新控件的版本号与目标控件的版本号;及
    更新模块,当所述待更新控件的版本号与所述目标控件的版本号不相同时,则根据所述目标控件的文件对所述待更新控件进行更新。
  7. 根据权利要求6所述的装置,其特征在于,所述当前状态获取模块包括:
    遍历单元,用于根据所述查询当前状态指令,遍历进程列表;
    结果返回单元,用于当所述进程列表中存在至少一个预设的进程时,则向所述服务器返回当前状态为正在使用的结果;当所述进程列表中不存在预设的进程时,则向所述服务器返回当前状态为未使用的结果。
  8. 根据权利要求7所述的装置,其特征在于,所述当前状态获取模块还包括:
    获取单元,用于当所述进程列表中不存在预设的进程时,获取环境图像;
    判断单元,用于判断所述环境图像中是否存在用户图像;
    所述结果返回单元还用于当所述环境图像中存在用户图像时,则向所述服务器返回当前状态为正在使用的结果;当所述环境图像中不存在用户图像时,则向所述服务器返回当前状态为未使用的结果。
  9. 根据权利要求6所述的装置,其特征在于,所述更新模块还用于对所述目标控件的文件进行校验;当所述目标控件的文件校验成功时,则根据所述目标控件的文件对所述待更新控件进行更新;及当所述目标控件的文件校验失败时,则提示更新失败。
  10. 根据权利要求6所述的装置,其特征在于,所述装置还可以包括:
    检测模块,用于在启动过程中,检测与待加载控件相对应的当前外设是否存在故障;
    选取模块,用于当所述当前外设存在故障时,则停止加载所述待加载控件,并选取所述当前外设的替代外设;
    加载模块,用于加载与所述替代外设相对应的控件。
  11. 一种计算机设备,包括存储器、处理器以及存储在存储器上并可在处理器上运行的计算机程序,其特征在于,所述处理器执行所述程序时实现以下步骤:
    接收服务器发送的查询当前状态指令;
    根据所述查询当前状态指令获取当前状态,并将所述当前状态返回至所述服务器;
    当所述当前状态为未使用时,则接收所述服务器发送的控件更新指令;
    根据所述控件更新指令,获取待更新控件的版本号与目标控件的版本号;及
    当所述待更新控件的版本号与所述目标控件的版本号不相同时,则根据所述目标控件的文件对所述待更新控件进行更新。
  12. 根据权利要求11所述的计算机设备,其特征在于,所述处理器执行的根据所述查询当前状态指令获取当前状态,并将所述当前状态返回至所述服务器的步骤,包括:
    根据所述查询当前状态指令,遍历进程列表;
    当所述进程列表中存在至少一个预设的进程时,则向所述服务器返回当前状态为正在使用的结果;及
    当所述进程列表中不存在预设的进程时,则向所述服务器返回当前状态为未使用的结果。
  13. 根据权利要求12所述的计算机设备,其特征在于,所述处理器执行的当所述进程列表中不存在预设的进程时,则向服务器返回当前状态为未使用的结果的步骤,包括:
    当所述进程列表中不存在预设的进程时,获取环境图像;
    判断所述环境图像中是否存在用户图像;
    当所述环境图像中存在用户图像时,则向所述服务器返回当前状态为正在使用的的结果;及
    当所述环境图像中不存在用户图像时,则向所述服务器返回当前状态为未使用的结果。
  14. 根据权利要求11所述的计算机设备,其特征在于,所述处理器执行的根据所述目标控件的文件对所述待更新控件进行更新的步骤,包括:
    对所述目标控件的文件进行校验;
    当所述目标控件的文件校验成功时,则根据所述目标控件的文件对所述待更新控件进行更新;及
    当所述目标控件的文件校验失败时,则提示更新失败。
  15. 根据权利要求11所述的计算机设备,其特征在于,所述指令被所述处理器执行时,使得所述处理器还执行以下步骤:
    在启动过程中,检测与待加载控件相对应的当前外设是否存在故障;
    当所述当前外设存在故障时,则停止加载所述待加载控件,并选取所述当前外设的替代外设;及
    加载与所述替代外设相对应的控件。
  16. 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,该程序被处理器执行时实现以下步骤:
    接收服务器发送的查询当前状态指令;
    根据所述查询当前状态指令获取当前状态,并将所述当前状态返回至所述服务器;
    当所述当前状态为未使用时,则接收所述服务器发送的控件更新指令;
    根据所述控件更新指令,获取待更新控件的版本号与目标控件的版本号;及
    当所述待更新控件的版本号与所述目标控件的版本号不相同时,则根据所述目标控件的文件对所述待更新控件进行更新。
  17. 根据权利要求16所述的存储介质,其特征在于,所述处理器执行的根据所述查询当前状态指令获取当前状态,并将所述当前状态返回至所述服务器的步骤,包括:
    根据所述查询当前状态指令,遍历进程列表;
    当所述进程列表中存在至少一个预设的进程时,则向所述服务器返回当前状态为正在使用的结果;及
    当所述进程列表中不存在预设的进程时,则向所述服务器返回当前状态为未使用的结果。
  18. 根据权利要求17所述的存储介质,其特征在于,所述处理器执行的当所述进程列表中不存在预设的进程时,则向服务器返回当前状态为未使用的结果的步骤,包括:
    当所述进程列表中不存在预设的进程时,获取环境图像;
    判断所述环境图像中是否存在用户图像;
    当所述环境图像中存在用户图像时,则向所述服务器返回当前状态为正在使用的的结果;及
    当所述环境图像中不存在用户图像时,则向所述服务器返回当前状态为未使用的结果。
  19. 根据权利要求16所述的存储介质,其特征在于,所述处理器执行的根据所述目标控件的文件对所述待更新控件进行更新的步骤,包括:
    对所述目标控件的文件进行校验;
    当所述目标控件的文件校验成功时,则根据所述目标控件的文件对所述待更新控件进行更新;及
    当所述目标控件的文件校验失败时,则提示更新失败。
  20. 根据权利要求16所述的存储介质,其特征在于,所述计算机程序被处理器执行,使得所述处理器还执行以下步骤:
    在启动过程中,检测与待加载控件相对应的当前外设是否存在故障;
    当所述当前外设存在故障时,则停止加载所述待加载控件,并选取所述当前外设的替代外设;及
    加载与所述替代外设相对应的控件。
PCT/CN2017/099732 2017-06-12 2017-08-30 柜员机控件更新方法、装置、计算机设备及存储介质 WO2018227772A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710445117.4 2017-06-12
CN201710445117.4A CN107680295A (zh) 2017-06-12 2017-06-12 柜员机控件更新方法和装置

Publications (1)

Publication Number Publication Date
WO2018227772A1 true WO2018227772A1 (zh) 2018-12-20

Family

ID=61134138

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/099732 WO2018227772A1 (zh) 2017-06-12 2017-08-30 柜员机控件更新方法、装置、计算机设备及存储介质

Country Status (2)

Country Link
CN (1) CN107680295A (zh)
WO (1) WO2018227772A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP4095680A1 (en) * 2021-05-24 2022-11-30 Capital One Services, LLC Updating automatic teller machines methods and systems
US11804111B1 (en) 2022-04-27 2023-10-31 Capital One Services, Llc Systems and methods for management of automatic teller machines

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109035622A (zh) * 2018-07-17 2018-12-18 中国建设银行股份有限公司 金融插件管理方法及装置
CN109144605A (zh) * 2018-08-06 2019-01-04 北京奇艺世纪科技有限公司 一种应用程序处理方法和装置
CN109165082A (zh) * 2018-08-21 2019-01-08 赛尔网络有限公司 基于容器的系统平滑升级方法
CN109598427B (zh) * 2018-11-23 2022-03-01 泰康保险集团股份有限公司 机器人的管理方法、装置及电子设备
CN112015090A (zh) * 2019-05-29 2020-12-01 珠海格力电器股份有限公司 一种电子设备控制方法及装置
CN113256905A (zh) * 2020-06-08 2021-08-13 深圳市怡化时代科技有限公司 自助柜员机现金业务预处理方法、装置、设备及存储介质
CN113467832A (zh) * 2021-06-29 2021-10-01 青岛海尔科技有限公司 设备控制处理方法、装置、存储介质及电子装置

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101656744A (zh) * 2009-09-04 2010-02-24 深圳市新达通科技有限公司 一种出钞机的通讯协议转发装置及方法
CN104407877A (zh) * 2014-10-16 2015-03-11 北京京东尚科信息技术有限公司 一种升级终端的方法和系统
CN104915240A (zh) * 2015-06-30 2015-09-16 新达通科技股份有限公司 一种atm设备软件升级的方法
CN105788066A (zh) * 2016-02-22 2016-07-20 上海古鳌电子科技股份有限公司 一种可远程升级纸币清分存款程序的方法

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006221476A (ja) * 2005-02-10 2006-08-24 Fujitsu Ltd 管理装置、データ受信装置、操作端末及び情報処理装置
CN104375854B (zh) * 2014-07-25 2016-10-19 腾讯科技(深圳)有限公司 一种应用更新下载方法及用户终端
CN104149717B (zh) * 2014-07-31 2016-05-04 北京中瑞蓝科电动汽车技术有限公司 一种用于整车控制的远程无干扰更新系统和方法
CN104410665B (zh) * 2014-10-28 2016-02-17 腾讯科技(深圳)有限公司 一种更新包的下载方法及设备
CN106027580A (zh) * 2015-03-18 2016-10-12 青岛海尔空调电子有限公司 一种程序远程升级方法
CN106066801B (zh) * 2015-04-20 2020-02-21 比亚迪股份有限公司 车辆的远程更新方法、系统、服务器和车辆

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101656744A (zh) * 2009-09-04 2010-02-24 深圳市新达通科技有限公司 一种出钞机的通讯协议转发装置及方法
CN104407877A (zh) * 2014-10-16 2015-03-11 北京京东尚科信息技术有限公司 一种升级终端的方法和系统
CN104915240A (zh) * 2015-06-30 2015-09-16 新达通科技股份有限公司 一种atm设备软件升级的方法
CN105788066A (zh) * 2016-02-22 2016-07-20 上海古鳌电子科技股份有限公司 一种可远程升级纸币清分存款程序的方法

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP4095680A1 (en) * 2021-05-24 2022-11-30 Capital One Services, LLC Updating automatic teller machines methods and systems
US11720339B2 (en) 2021-05-24 2023-08-08 Capital One Services, Llc Systems and methods for updating automatic teller machines
US11804111B1 (en) 2022-04-27 2023-10-31 Capital One Services, Llc Systems and methods for management of automatic teller machines

Also Published As

Publication number Publication date
CN107680295A (zh) 2018-02-09

Similar Documents

Publication Publication Date Title
WO2018227772A1 (zh) 柜员机控件更新方法、装置、计算机设备及存储介质
WO2014071755A1 (zh) 实现移动终端应用程序下载的方法及移动终端
WO2017177769A1 (zh) Ogg 版本部署方法、系统、服务器和存储介质
US7051327B1 (en) System for providing data backup and restore with updated version by creating data package based upon configuration data application data and user response to suggestion
TWI575362B (zh) 備份方法、環境更新預先檢測方法及其系統
EP2539807A2 (en) Method and apparatus for generating minimum boot image
WO2016033929A1 (zh) 一种云数据备份及恢复方法
WO2018036167A1 (zh) 测试任务执行机分配方法、装置、服务器和存储介质
JPH07281934A (ja) システムファイルの更新及び復元方法
WO2018233037A1 (zh) 数据库集成测试方法、装置、服务器及存储介质
WO2015109804A1 (zh) 一种虚拟化环境下针对网络服务的双机热备份容灾系统及其方法
WO2022036901A1 (zh) 一种Redis副本集的实现方法及装置
WO2016137297A1 (en) Method and device for controlling payment function
US20220277071A1 (en) Enforcing policies for unmanaged applications
WO2020233060A1 (zh) 事件通知方法、事件通知服务器、存储介质及装置
WO2009136740A2 (ko) OSGi 서비스 플랫폼에 원격으로 설치된 번들에 대한 바인딩 정보를 관리하는 방법 및 장치
WO2019100589A1 (zh) 虚拟机快速扩容方法、装置、设备以及存储介质
WO2021040167A1 (ko) 소프트웨어 업데이트 에이전트 장치 및 이를 통한 패치방법
WO2017157125A1 (zh) 在云计算环境中删除云主机的方法、装置、服务器及存储介质
WO2015180434A1 (zh) 一种数据库集群管理数据的方法、节点及系统
WO2014185627A1 (ko) 데이터 프로세싱 시스템 보안 장치와 보안방법
WO2014082250A1 (zh) 基于闪存存储的系统、分区方法和装置
WO2014200201A1 (ko) 시스템 보호를 위한 파일 보안용 관리장치와 관리방법
WO2021040168A1 (ko) 신구 데이터간의 차분에 대한 데이터 구조화 방법 및 그 디바이스
WO2019039706A1 (ko) 전자 장치 및 그의 데이터 운용 방법

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17913929

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17913929

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC , EPO FORM 1205A DATED 08.04.2020.

122 Ep: pct application non-entry in european phase

Ref document number: 17913929

Country of ref document: EP

Kind code of ref document: A1