WO2018187993A1 - Atm 业务软件开发调试方法、系统和一种模拟 atmp 系统 - Google Patents

Atm 业务软件开发调试方法、系统和一种模拟 atmp 系统 Download PDF

Info

Publication number
WO2018187993A1
WO2018187993A1 PCT/CN2017/080296 CN2017080296W WO2018187993A1 WO 2018187993 A1 WO2018187993 A1 WO 2018187993A1 CN 2017080296 W CN2017080296 W CN 2017080296W WO 2018187993 A1 WO2018187993 A1 WO 2018187993A1
Authority
WO
WIPO (PCT)
Prior art keywords
message
configuration file
bank
format
packet
Prior art date
Application number
PCT/CN2017/080296
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 深圳怡化电脑股份有限公司
Priority to PCT/CN2017/080296 priority Critical patent/WO2018187993A1/zh
Priority to CN201780000390.4A priority patent/CN107113196A/zh
Publication of WO2018187993A1 publication Critical patent/WO2018187993A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/14Network analysis or design
    • H04L41/145Network analysis or design involving simulating, designing, planning or modelling of a network
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/362Software debugging
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 

Definitions

  • the present invention relates to the field of self-service terminal technologies, and in particular, to an ATM service software bursting debugging method, system, and an analog ATMP system.
  • ATMC ATM Control
  • ATMC issued, requiring ATMC to handle the service environment in a real banking service, that is, ATMC must communicate and communicate with the bank pre-system ATMMP (ATM Preconsole), which not only makes The bursting of ATMC is constrained by the environment, which is not conducive to the rapid bursting and mobile bursting of ATMC, and it is easy to bring irreversible damage to the banking equipment after the ATMMC is connected to the real ATMP. .
  • ATMMP ATM Preconsole
  • the embodiments of the present invention provide an ATM service software bursting debugging method, a system, and an analog ATMP system, which enable the ATMMC to debug off the real banking service processing environment and reduce the bursting debugging process. Security risks.
  • an ATM service software bursting debugging method including:
  • the configuration file is sent to the ATMC. Return a response message about the format or content of the error message;
  • the packet format of the packet matches the bank packet format, and the packet content of the packet satisfies the preset correctness condition, return to the ATMC according to the configuration file.
  • the response message corresponding to the content of the message.
  • the method before determining, according to the preset configuration file, the bank message format corresponding to the packet, the method further includes:
  • the method further includes:
  • the bank message format and/or the corresponding response message format in the configuration file are updated according to the setting operation.
  • an analog ATMP system including:
  • a message receiving module configured to receive a message transmitted by an ATMC to be debugged
  • a bank message format determining module configured to determine, according to a preset configuration file, a bank message format corresponding to the message, where the configuration file is pre-configured with a bank message format generated by a simulated bank message protocol and a response message format corresponding to the bank message format;
  • a message judging module configured to determine whether the packet format of the packet matches the bank packet format, and the packet content of the packet meets a preset correctness condition, the packet The content is parsed by the bank message format to obtain the message;
  • the error response module is configured to: if the judgment result of the message determining module is negative, return a response message about the error message format or content to the ATMC according to the configuration file;
  • the message response module is configured to: if the judgment result of the message determining module is yes, return a response message corresponding to the content of the message to the ATMC according to the configuration file.
  • the simulated ATMP system further includes:
  • a configuration file selection module configured to select a corresponding preset configuration file from a preset configuration file set according to the port number of the received packet, where each configuration file in the configuration file set is respectively There is a corresponding relationship between port numbers.
  • Different configuration files are used to simulate bank message protocols of different banking institutions.
  • the port number used to receive the packet on the analog ATMP system includes a basic port number and a custom port number that are provided on the analog ATMP system, where the customized port number passes the basic The port number is obtained by adding a preset port offset.
  • the configuration file further includes a corresponding port number, an organization name of the corresponding banking institution, and public information of the bank message format.
  • the simulated ATMP system further includes:
  • a setting operation detecting module configured to detect a setting operation of a bank message format and/or a corresponding response message format in the configuration file
  • a configuration file update module configured to: if the setting operation detecting module detects the setting operation, perform a bank message format and/or a corresponding response message format in the configuration file according to the setting operation Update.
  • an ATM service software burst debugging system including an ATMC to be debugged and an analog ATMP system.
  • the method further includes:
  • an ATM hardware module configured to simulate an SP function on an ATM terminal, and provide the ATMC with a CEN/compliant
  • the embodiments of the present invention have the following advantages: [0033] In the embodiment of the present invention, first, receiving a packet transmitted by the ATMC to be debugged; and then determining, according to a preset configuration file, a bank packet format corresponding to the packet, where the configuration file is pre- Configuring a bank message format generated by the simulated bank message protocol and a response message format corresponding to the bank message format; and then determining whether the message format of the message matches the bank message format, and The message content of the message satisfies a preset correctness condition, and the message content is parsed by the bank message format; if the message format of the message is related to the bank report If the format of the packet does not match, or the content of the packet does not meet the preset correctness condition, the response message of the error message format or content is returned to the ATMC according to the configuration file; If the message format of the message matches the format of the bank message, and the message content of the message satisfies
  • the response message should be.
  • the service processing service environment required for the debugging of the ATMC burst is simulated by the preset configuration file, and the message response conforming to the bank message protocol can be made according to the message transmitted by the AT MC, and the ATMMC can complete the debugging of the bursting.
  • This allows ATMC to break away from the real banking service processing environment, without having to communicate and interact with the bank's front-end system ATMP, which is beneficial to ATMC's rapid bursting and mobile bursting, and reduces the docking of ATMC and real ATMP.
  • FIG. 1 is a schematic diagram of an embodiment of an ATM service software bursting debugging system according to an embodiment of the present invention
  • FIG. 2 is a structural diagram of an embodiment of an analog ATMP system according to an embodiment of the present invention.
  • FIG. 3 is a flowchart of an embodiment of an ATM service software bursting debugging method according to an embodiment of the present invention
  • FIG. 4 is a schematic diagram of a configuration item of a banking institution and a port number in an application scenario of a configuration file of an analog ATMP system according to an embodiment of the present invention
  • FIG. 5 is a schematic diagram of a configuration item of a content of a DefaultSet part in an application scenario of an analog ATMP system configuration file according to an embodiment of the present invention
  • 6 is a schematic diagram of configuration items of an ElementTyp e part in an application scenario in a configuration file of an analog ATMP system according to an embodiment of the present invention
  • FIG. 7 is a configuration file of an analog ATMP system in an application scenario according to an embodiment of the present invention.
  • the embodiment of the present invention provides an ATM service software bursting debugging method, a system, and an analog ATMP system, which are used to solve the problem that an existing ATMC must perform debugging with a real ATMP.
  • the ATM service software burst debugging system includes an ATMC to be debugged and an analog ATMP system.
  • the ATMC is mainly used for service processing and hardware control on an ATM terminal;
  • the analog A TMP system is mainly used to simulate the service processing and network interaction functions of the ATM service software and the bank background.
  • the ATM service software bursting debugging system may further include: an ATM hardware module, which is used to simulate the SP function on the ATM terminal.
  • the ATMMC is provided with an analog hardware environment that complies with the CEN/XFS standard hardware operation.
  • the ATM hardware module can be based on the WOSA architecture, and the WOSA (full name is the Windows Open System Architecture Windows Open System)
  • WOSA/XFS is a Windows Open System Architecture/Extensions for Financial Services, which is proposed by Microsoft for the global financial industry software.
  • the analog ATMP system in the present invention may include the following modules: [0047]
  • the message receiving module 201 is configured to receive a message transmitted by the ATMC to be debugged;
  • the bank message format determining module 202 is configured to determine, according to a preset configuration file, a bank message format corresponding to the message, where the configuration file is pre-configured with a bank message format generated by an analog bank message protocol. And a response message format corresponding to the bank message format;
  • the message judging module 203 is configured to determine whether the packet format of the packet matches the bank packet format, and the packet content of the packet satisfies a preset correctness condition, and the packet The text content is parsed by the bank message format to obtain the message;
  • the error response module 204 is configured to: if the judgment result of the message determining module 203 is negative, return a response message about the error message format or content to the ATMC according to the configuration file;
  • the message response module 205 is configured to: when the message determining module 203 determines that the result is yes, return a response message corresponding to the message content to the ATMC according to the configuration file.
  • analog ATMP system may further include:
  • a configuration file selection module configured to select a corresponding preset configuration file from a preset configuration file set according to the port number of the received packet, where each configuration file in the configuration file set is respectively There is a corresponding relationship between port numbers.
  • Different configuration files are used to simulate bank message protocols of different banking institutions.
  • the port number used for receiving the message on the analog ATMP system may include a basic port number and a custom port number that are provided on the analog AT MP system, where the customized port number is The base port number is obtained by adding a preset port offset.
  • the configuration file may further include public information corresponding to the port number, the institution name of the corresponding banking institution, and the bank message format.
  • analog ATMP system may further include:
  • a setting operation detecting module configured to detect a setting operation of a bank message format and/or a corresponding response message format in the configuration file
  • a configuration file update module configured to: if the setting operation detecting module detects the setting operation, perform a bank message format and/or a corresponding response message format in the configuration file according to the setting operation Update.
  • the invention also provides an ATM service software bursting debugging method.
  • the embodiment of the present invention includes:
  • the ATMC may send service packets (including cash withdrawal, deposit, inquiry, transfer, and confidentiality) or function packets (including application confidentiality) to the analog ATMP system because of service processing or function synchronization. Key, setting), thus, the analog ATMP system receives the message transmitted by the ATMC
  • each banking institution may be assigned a port number, and different port numbers correspond to different configuration files. Therefore, the bank message protocol of different banking institutions can be debugged on the analog ATMP system.
  • the analog ATMP system selects a corresponding preset configuration file from the preset configuration file set according to the port number of the received packet, and each configuration in the configuration file set The file has a corresponding relationship with each port number. Different configuration files are used to simulate the bank message protocol of different banking institutions.
  • the port number on the simulated ATMP system can be designed independently or the basic port number of the native system. After independently designing the port number, you can add a preset port offset based on the base port number to get a custom port number, such as StartPort plus BasePort.
  • the simulated ATMP system may determine a bank packet format corresponding to the packet according to a preset configuration file.
  • the configuration file is pre-configured with a bank message format generated by the simulated banking message protocol and a response message format corresponding to the bank message format. The specific content pre-configured in the configuration file will be described in the following of the embodiment.
  • step 303 Determine whether the packet format of the packet matches the bank packet format, and the packet content of the packet meets a preset correctness condition. If not, execute step 304. , then step 30 5;
  • the packet may be parsed by using the bank message format to obtain the packet content of the packet.
  • the packet sent by the ATMC can be considered to be correct only if the packet format and the packet content of the packet sent by the ATMC meet the requirements. Otherwise, the packet sent by the ATMC is correct. Otherwise, the packet sent by the ATMC is correct.
  • the format is incorrect or the content is wrong. Therefore, the analog ATMP system is receiving
  • the message is considered to be in the format only if the message format of the message matches the bank message format and the message content of the message also satisfies the preset correctness condition. And the content meets the requirements of the bank message protocol, and step 305 is performed. Otherwise, step 304 is performed.
  • the correctness condition may be to perform field check on the content of the message. For example, if it is specified in the bank message protocol, the content of the message of each message must include the code of the banking institution, If the content of the message is checked in the field, if the content of the message does not contain the correct banking institution code, the content of the message does not satisfy the correctness condition; otherwise, if the content of the message contains the correct banking institution The code considers that the message content of the message satisfies the correctness condition.
  • one configuration file corresponds to a banking message protocol of a banking institution, and corresponds to a port number.
  • the configuration file simulates the bank message format specified by its corresponding bank message protocol and the response message format corresponding to these bank message formats. For example, if the format of the received message or the content of the message is incorrect, what kind of response message format should be used to respond? When the message format and message content of the received message are correct, How to respond accordingly according to the message content of the message, and so on.
  • step 304 it can be understood that, if the packet format of the packet does not match the bank packet format, or the packet content of the packet does not meet the preset correctness condition, A response message regarding the error message format or content may be returned to the ATMC according to the configuration file.
  • step 305 it can be understood that, if the packet format of the packet matches the bank packet format, and the packet content of the packet meets the preset correctness condition, And returning, according to the configuration file, a response message corresponding to the content of the message to the ATMC.
  • various response results of various service messages and function message processing may be performed according to the needs of the service processing, or abnormal processing or service processing that needs to return the service processing is not performed.
  • a successful message response is set by the debug user by simulating the ATMP system so that the response messages of the various processing results of these messages can be simulated.
  • the analog ATMP system can detect a setting operation of a bank message format and/or a corresponding response message format in the configuration file; When the proposed ATMP system detects the setting operation, the bank message format and/or the corresponding response message format in the configuration file are updated according to the setting operation.
  • the normal successful processing result is a message response that returns "debit payment success”.
  • the information of the configuration file may include, but is not limited to, an institution name of the banking institution, a configured port number, a public information of a bank message format, a configuration file storage path, and the like.
  • the configuration information in the configuration file can include the following three parts:
  • DefaultSet defines a global general configuration requirement of the current branch
  • ElementType defines the format information of the invariant item in the message, that is, the domain definition format
  • TransationList defines the configuration of the service packet, including the format for determining whether the received packet is correct, and the corresponding response packet format.
  • the configuration file thereon may include a list of banking institutions currently supported by the analog ATMP system and a port number supported by the corresponding banking institution, so that the tested ATMC sends a message to different port numbers, thereby implementing Communication functions that interact with the business of different banking institutions.
  • IP IP
  • StartPort 10900
  • BankName
  • Agricultural Bank Agricultural Bank
  • Port 10900
  • ConfFolder Agricultural Bank
  • LinkMode true ⁇
  • the current service configuration path is: . ⁇ virtualP ⁇ Agricultural Bank;
  • the Agricultural Bank Master Profile is: . ⁇ virtualP ⁇ Agricultural Bank ⁇ 0 ⁇ 01 ⁇ 0 ⁇
  • DefaultSet part in the above configuration file, it includes public information of each bank message, including but not limited to the following contents: bank name, bank log path, log level, service message name matching, Domains that do not need to be encrypted, message encryption type and encryption key, response message default settings, and so on.
  • the meaning of the configuration items in the DefaultSet part is as follows:
  • PreMatch item [0083] Defining how the analog ATMP system decomposes to determine what service message the current message information is after receiving the message. For example: "PreMatch":["-r,
  • the analog ATMP system After the analog ATMP system receives the message, it first displays the information before the "3" field, and then compares it with all the transaction messages, assuming that the "deposit transaction message” is found in the "-" The corresponding information of the ⁇ and "3" fields is the same as the received information, then it is determined that the current message is a "deposit transaction” message, and subsequent unpacking and packaging are processed according to the "deposit transaction” message. It can be seen that the analog ATMP system passes the The content of the domain determines what packet the current packet is. If the analog ATMP system parses the first domain of a bank packet, it is determined that the packet is the application master key packet.
  • the sub-item indicates bit field length information, which can take values of 0, 64, 128.
  • bitmap configuration of the Agricultural Bank is 64.
  • [0088] 1 is 128 ⁇ , indicating that the maximum bitmap is 128, but whether there is a second bitmap is defined by the 8583 protocol whether the message has more than 64 domains;
  • [0089] 1 is 64 ⁇ , indicating that no more than 64 domains exist
  • This sub-item indicates the MAC checksum generation rule.
  • CheckHalfMac is only the first 8 bits of the MAC
  • NoCheckMac is not verifying the MAC
  • CheckYCMac "MakeYCMac” is a postal rule
  • InitScript sub-item [0100] This sub-item is a data resource required for some configuration rules. For example: PhoneManage:script48_response .json, the meaning is: Indicates that the configuration handler PhoneManage needs the file resource to be script48_res ponse.json, the configuration handler is generally the program content processing process, these processes are assigned to each subdomain after packing and unpacking. Or check.
  • This sub-item defines the key name, and the corresponding value.
  • EncryptType Encryption type 1 is DES encryption, 2-bit SM4 encryption;
  • PinPassword user default password
  • SuperKey a master key of a three-layer key ;
  • MasterKey a master key, or a temporary master key of a layer 3 key
  • PinKey Pin key, user password key
  • MACKey MAC Key
  • This sub-item defines the default configuration of the simulated ATMP system analysis request message. For example: ⁇ "bit”:"52", “Script'V'CheckPin” ⁇ , indicating that the check function of all request messages 52 field is CheckPin, that is, the user password is detected.
  • This sub-item defines the default configuration of the simulated ATMP system packet response message. For example ⁇ "bit":"12",
  • the content of the ElementType part is a description of the domain format definition information, and the meaning of the configuration item is as follows:
  • Class Defines the subdomain corresponding to the variable length format. Among them, "V”: fixed length domain; “LV”: variable length domain; “TLV” tlv format domain, mainly used for IC data domain.
  • Code The domain encoding format, and various encoding formats determine different length information. Among them, HEX: hexadecimal compression coding; BCD: decimal compression coding; BYTEHEX: hexadecimal coding; BIN: binary coding; ASCII: ASCII coding.
  • Fmt Defines length information, valid only for variable length fields (LV). Among them, LLVAR, LLLVAR, LLLL VAR, LLLLLVAR, LLLLLLVAR, LLLLLLLVAR, LLLLLLLLVAR, and other 'J correspond to 2 to 8 bits of length information.
  • Fmtcode The encoding format of the length information, valid only for the variable length domain (LV), and the format description refers to the Code.
  • the content of the part mainly includes two parts: One is the content format of the received message: the content of the Request field. The second is the content format of the response message: the content of the Response domain. Each Request field format has a Response field format. After receiving the packet, the analog ATMP system can parse and verify the correctness of the packet according to the Request field format, and then generate a response domain format packet as the response packet of the packet.
  • LSN This field is a length field, indicating all the domain contents appearing below and the value of this field.
  • M'V'CVO'V'R specifies that the domain must exist, the condition exists, the selection exists, the copy, etc., as defined in the 8583 document.
  • Value local value: If the request is configured in the general configuration, or the response defines the default value of the local domain, where the value of this field is the value specified by the service packet, the default configuration value is overwritten.
  • SubBit Specify the subdomain collection file. This file defines the sub-domain collection. The definition of the sub-domain format requirements is consistent with the requirements of this document, and is not described here.
  • Script Function call keyword.
  • the analog ATMP system has built-in sub-domain processing functions that are called by keywords. For example, "Script” : “ADDAm OU ntABC”, defines the domain to be used The amount of the account is generally used for deposit business messages.
  • the packet sent by the ATMMC to be debugged is received; and then, the bank packet format corresponding to the packet is determined according to the preset configuration file, where the configuration file is pre-configured. a bank message format generated by the simulated bank message protocol and a response message format corresponding to the bank message format; and then determining whether the message format of the message matches the bank message format, and the The message content of the message satisfies the preset correctness condition, and the message content is parsed by the bank message format; if the message format of the message is related to the bank message If the format does not match, or the message content of the packet does not meet the preset correctness condition, the response message of the error message format or content is returned to the ATMC according to the configuration file; The message format matches the bank message format, and the message content of the message satisfies the preset correctness condition, and returns to the ATMC according to the configuration file.
  • modules, units, and/or method steps of various embodiments described in connection with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. achieve. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the solution. Professionals can use different methods for each specific application The described functionality is implemented, but such implementation should not be considered to be beyond the scope of the invention.
  • the disclosed system, apparatus, and method may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division, and the actual implementation may have another division manner, for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not executed.
  • the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be electrical, mechanical or otherwise.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
  • the integrated unit if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium.
  • the technical solution of the present invention may contribute to the prior art or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium.
  • a number of instructions are included to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention.
  • the foregoing storage medium includes: a U disk, a removable hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and the like, which can store program codes. .

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • Finance (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • General Engineering & Computer Science (AREA)
  • Accounting & Taxation (AREA)
  • Debugging And Monitoring (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

公开了一种ATM业务软件开发调试方法、系统和一种模拟ATMP系统,用于解决现有ATMC进行开发调试时必须与真实的ATMP对接的问题。该方法包括:接收来自待开发调试的ATMC传送的报文(301);根据预设的配置文件确定与报文对应的银行报文格式(302),配置文件预先配置有模拟银行报文协议产生的银行报文格式以及银行报文格式对应的应答报文格式;判断是否报文的报文格式与银行报文格式匹配,且报文的报文内容满足预设的正确性条件(303);若否,则根据配置文件向ATMC返回关于错误报文格式或内容的应答报文(304);若是,则根据配置文件向ATMC返回与报文内容对应的应答报文(305)。

Description

技术领域
[0001] 本发明涉及自助终端技术领域, 尤其涉及 ATM业务软件幵发调试方法、 系统和 一种模拟 ATMP系统。
背景技术
[0002] 目前, 随着银行业务创新的速度越来越快, 现有的 ATMC(ATM Control)幵发方 法, 难以适应快速的 ATM软件更新的需求。 随着 ATM各类特色业务的层出不穷 , 自助业务需求更新频繁, 要求上线快, 才能帮助 ATM设备抢占业务市场, 尤 其对于银行领域中具有很强吋效性的各类特色业务来说, 更是如此。
[0003] 然而, 现有的自助业务处理软件 ATMC幵发, 要求 ATMC在一个真实的银行业 务处理服务环境, 即 ATMC必须与银行前置系统 ATMP( ATM Preconsole)进行通 信和业务交互, 这不仅使得 ATMC的幵发受到环境的约束, 不利于 ATMC的快速 幵发和移动式幵发, 而且在 ATMC与真实的 ATMP对接进行幵发调试吋, 容易给 银行设备带来不可逆转的损坏, 存在安全隐患。
技术问题
[0004] 本发明实施例提供了 ATM业务软件幵发调试方法、 系统和一种模拟 ATMP系统 , 能够使得 ATMC在幵发调试吋脱离真实的银行业务处理服务环境, 降低幵发调 试过程中带来的安全隐患。
问题的解决方案
技术解决方案
[0005] 第一方面, 提供了一种 ATM业务软件幵发调试方法, 包括:
[0006] 接收来自待幵发调试的 ATMC传送的报文;
[0007] 根据预设的配置文件确定与所述报文对应的银行报文格式, 所述配置文件预先 配置有模拟银行报文协议产生的银行报文格式以及所述银行报文格式对应的应 答报文格式;
[0008] 判断是否所述报文的报文格式与所述银行报文格式匹配, 且所述报文的报文内 容满足预设的正确性条件, 所述报文内容通过所述银行报文格式对所述报文进 行解析得到;
[0009] 若所述报文的报文格式与所述银行报文格式不匹配, 或所述报文的报文内容不 满足预设的正确性条件, 则根据所述配置文件向所述 ATMC返回关于错误报文格 式或内容的应答报文;
[0010] 若所述报文的报文格式与所述银行报文格式匹配, 且所述报文的报文内容满足 预设的正确性条件, 则根据所述配置文件向所述 ATMC返回与所述报文内容对应 的应答报文。
[0011] 可选地, 在根据预设的配置文件确定与所述报文对应的银行报文格式之前, 还 包括:
[0012] 根据接收所述报文的端口号从预设的配置文件集合中选取对应的一个预设的配 置文件, 所述配置文件集合中的各个配置文件分别与各个端口号存在对应关系 , 不同的配置文件分别用于模拟不同银行机构的银行报文协议。
[0013] 可选地, 还包括:
[0014] 检测对所述配置文件中的银行报文格式和 /或对应的应答报文格式的设置操作
[0015] 若检测到所述设置操作, 则根据所述设置操作对所述配置文件中的银行报文格 式和 /或对应的应答报文格式进行更新。
[0016] 第二方面, 提供了一种模拟 ATMP系统, 包括:
[0017] 报文接收模块, 用于接收来自待幵发调试的 ATMC传送的报文;
[0018] 银行报文格式确定模块, 用于根据预设的配置文件确定与所述报文对应的银行 报文格式, 所述配置文件预先配置有模拟银行报文协议产生的银行报文格式以 及所述银行报文格式对应的应答报文格式;
[0019] 报文判断模块, 用于判断是否所述报文的报文格式与所述银行报文格式匹配, 且所述报文的报文内容满足预设的正确性条件, 所述报文内容通过所述银行报 文格式对所述报文进行解析得到; [0020] 错误应答模块, 用于若所述报文判断模块的判断结果为否, 则根据所述配置文 件向所述 ATMC返回关于错误报文格式或内容的应答报文;
[0021] 报文应答模块, 用于若所述报文判断模块的判断结果为是, 则根据所述配置文 件向所述 ATMC返回与所述报文内容对应的应答报文。
[0022] 可选地, 所述模拟 ATMP系统还包括:
[0023] 配置文件选取模块, 用于根据接收所述报文的端口号从预设的配置文件集合中 选取对应的一个预设的配置文件, 所述配置文件集合中的各个配置文件分别与 各个端口号存在对应关系, 不同的配置文件分别用于模拟不同银行机构的银行 报文协议。
[0024] 可选地, 所述模拟 ATMP系统上用于接收报文的端口号包括所述模拟 ATMP系 统上自带的基本端口号和自定义端口号, 所述自定义端口号通过所述基本端口 号加上预设的端口偏移量得到。
[0025] 可选地, 所述配置文件还包括对应的端口号、 对应银行机构的机构名称以及银 行报文格式的公共信息。
[0026] 可选地, 所述模拟 ATMP系统还包括:
[0027] 设置操作检测模块, 用于检测对所述配置文件中的银行报文格式和 /或对应的 应答报文格式的设置操作;
[0028] 配置文件更新模块, 用于若所述设置操作检测模块检测到所述设置操作, 则根 据所述设置操作对所述配置文件中的银行报文格式和 /或对应的应答报文格式进 行更新。
[0029] 第三方面, 提供了一种 ATM业务软件幵发调试系统, 包括待幵发调试的 ATMC 以及上述的模拟 ATMP系统。
[0030] 可选地, 还包括:
[0031] ATM硬件模块, 用于模拟 ATM终端上的 SP功能, 为所述 ATMC提供符合 CEN/
XFS标准硬件操作的模拟硬件环境。
发明的有益效果
有益效果
[0032] 从以上技术方案可以看出, 本发明实施例具有以下优点: [0033] 本发明实施例中, 首先, 接收来自待幵发调试的 ATMC传送的报文; 然后, 根 据预设的配置文件确定与所述报文对应的银行报文格式, 所述配置文件预先配 置有模拟银行报文协议产生的银行报文格式以及所述银行报文格式对应的应答 报文格式; 接着, 判断是否所述报文的报文格式与所述银行报文格式匹配, 且 所述报文的报文内容满足预设的正确性条件, 所述报文内容通过所述银行报文 格式对所述报文进行解析得到; 若所述报文的报文格式与所述银行报文格式不 匹配, 或所述报文的报文内容不满足预设的正确性条件, 则根据所述配置文件 向所述 ATMC返回关于错误报文格式或内容的应答报文; 若所述报文的报文格式 与所述银行报文格式匹配, 且所述报文的报文内容满足预设的正确性条件, 则 根据所述配置文件向所述 ATMC返回与所述报文内容对应的应答报文。 这样, 通 过预设配置文件来模拟 ATMC幵发调试所需的业务处理服务环境, 可以根据 AT MC传送的报文作出符合银行报文协议的报文应答, 在帮助 ATMC完成幵发调试 的同吋, 使得 ATMC可以脱离真实的银行业务处理服务环境, 不必与银行前置系 统 ATMP进行通信和业务交互, 有利于 ATMC的快速幵发和移动式幵发, 同吋降 低了因 ATMC与真实的 ATMP对接进行幵发调试带来的安全隐患。
对附图的简要说明
附图说明
[0034] 为了更清楚地说明本发明实施例中的技术方案, 下面将对实施例或现有技术描 述中所需要使用的附图作简单地介绍, 显而易见地, 下面描述中的附图仅仅是 本发明的一些实施例, 对于本领域普通技术人员来讲, 在不付出创造性劳动性 的前提下, 还可以根据这些附图获得其他的附图。
[0035] 图 1为本发明实施例中 ATM业务软件幵发调试系统一个实施例示意图;
[0036] 图 2为本发明实施例中一种模拟 ATMP系统一个实施例结构图;
[0037] 图 3为本发明实施例中 ATM业务软件幵发调试方法一个实施例流程图;
[0038] 图 4为本发明实施例中模拟 ATMP系统的配置文件在一个应用场景下银行机构 与端口号的配置项示意图;
[0039] 图 5为本发明实施例中模拟 ATMP系统的配置文件在一个应用场景下 DefaultSet 部分内容的配置项示意图; [0040] 图 6为本发明实施例中模拟 ATMP系统的配置文件在一个应用场景下 ElementTyp e部分内容的配置项示意图;
[0041] 图 7为本发明实施例中模拟 ATMP系统的配置文件在一个应用场景下
TransationList部分内容的配置项示意图。
本发明的实施方式
[0042] 本发明实施例提供了 ATM业务软件幵发调试方法、 系统和一种模拟 ATMP系统 , 用于解决现有 ATMC进行幵发调试吋必须与真实的 ATMP对接的问题。
[0043] 为使得本发明的发明目的、 特征、 优点能够更加的明显和易懂, 下面将结合本 发明实施例中的附图, 对本发明实施例中的技术方案进行清楚、 完整地描述, 显然, 下面所描述的实施例仅仅是本发明一部分实施例, 而非全部的实施例。 基于本发明中的实施例, 本领域普通技术人员在没有做出创造性劳动前提下所 获得的所有其它实施例, 都属于本发明保护的范围。
[0044] 图 1为本发明实施例中一种 ATM业务软件幵发调试系统一个实施例示意图。 如 图 1所示, 该 ATM业务软件幵发调试系统包括待幵发调试的 ATMC以及一种模拟 ATMP系统。 该 ATMC主要用于 ATM终端上进行业务处理和硬件控制; 该模拟 A TMP系统主要用于模拟 ATM业务软件与银行后台的业务处理和网络交互功能。
[0045] 另外, 为了更好地进行 ATMC的幵发调试, 为 ATMC的调试提供硬件环境, 该 ATM业务软件幵发调试系统还可以包括: ATM硬件模块, 用于模拟 ATM终端上 的 SP功能, 为所述 ATMC提供符合 CEN/XFS标准硬件操作的模拟硬件环境。 其 中, 该 ATM硬件模块可以基于 WOSA架构, 该 WOSA (全称是 Windows幵放式系 统体系结构 Windows Open System
Architecture) 是指微软公司提出的一种在 Windows操作系统下的软件架构 WOSA/XFS是基于 WOSA的扩展金融服务 (Windows Open System Architecture/ Extensions for Financial Services) , 是微软公司为全球金融行业软件提出的一种 软件架构, 它在 WOSA软件架构的基础上针对全球金融行业进行了一些相应的修 改。
[0046] 如图 2所示, 本发明中的模拟 ATMP系统可以包括以下模块: [0047] 报文接收模块 201, 用于接收来自待幵发调试的 ATMC传送的报文;
[0048] 银行报文格式确定模块 202, 用于根据预设的配置文件确定与所述报文对应的 银行报文格式, 所述配置文件预先配置有模拟银行报文协议产生的银行报文格 式以及所述银行报文格式对应的应答报文格式;
[0049] 报文判断模块 203, 用于判断是否所述报文的报文格式与所述银行报文格式匹 配, 且所述报文的报文内容满足预设的正确性条件, 所述报文内容通过所述银 行报文格式对所述报文进行解析得到;
[0050] 错误应答模块 204, 用于若所述报文判断模块 203的判断结果为否, 则根据所述 配置文件向所述 ATMC返回关于错误报文格式或内容的应答报文;
[0051] 报文应答模块 205, 用于若所述报文判断模块 203的判断结果为是, 则根据所述 配置文件向所述 ATMC返回与所述报文内容对应的应答报文。
[0052] 进一步地, 所述模拟 ATMP系统还可以包括:
[0053] 配置文件选取模块, 用于根据接收所述报文的端口号从预设的配置文件集合中 选取对应的一个预设的配置文件, 所述配置文件集合中的各个配置文件分别与 各个端口号存在对应关系, 不同的配置文件分别用于模拟不同银行机构的银行 报文协议。
[0054] 进一步地, 所述模拟 ATMP系统上用于接收报文的端口号可以包括所述模拟 AT MP系统上自带的基本端口号和自定义端口号, 所述自定义端口号通过所述基本 端口号加上预设的端口偏移量得到。
[0055] 进一步地, 所述配置文件还可以包括对应的端口号、 对应银行机构的机构名称 以及银行报文格式的公共信息。
[0056] 进一步地, 所述模拟 ATMP系统还可以包括:
[0057] 设置操作检测模块, 用于检测对所述配置文件中的银行报文格式和 /或对应的 应答报文格式的设置操作;
[0058] 配置文件更新模块, 用于若所述设置操作检测模块检测到所述设置操作, 则根 据所述设置操作对所述配置文件中的银行报文格式和 /或对应的应答报文格式进 行更新。
[0059] 请参阅图 3, 为了便于在上述的 ATM业务软件幵发调试系统进行 ATMC与模拟 ATMP系统之间的通信交互和模拟幵发调试, 本发明还提供了一种 ATM业务软 件幵发调试方法, 其实施例包括:
[0060] 301、 接收来自待幵发调试的 ATMC传送的报文;
[0061] 本实施例总, ATMC因为业务处理或者功能同步需要, 可以向模拟 ATMP系统 发送业务报文 (包括取现、 存款、 査询、 转账、 改密等业务) 或者功能报文 ( 包括申请密钥, 设置) , 从而, 模拟 ATMP系统接收到 ATMC传送的报文
[0062] 进一步地, 为实现多个银行机构的银行报文协议在同一台 PC机上进行 ATMC的 幵发调试, 可以为每一个银行机构分配一个端口号, 不同的端口号对应不同的 配置文件, 从而可以实现不同银行机构的银行报文协议在模拟 ATMP系统上的调 试。 当 ATMC向模拟 ATMP系统传送报文吋, 模拟 ATMP系统根据接收所述报文 的端口号从预设的配置文件集合中选取对应的一个预设的配置文件, 所述配置 文件集合中的各个配置文件分别与各个端口号存在对应关系, 不同的配置文件 分别用于模拟不同银行机构的银行报文协议。
[0063] 更进一步地, 模拟 ATMP系统上的端口号可以独立设计, 也可以采用原生系统 的基本端口号。 在独立设计端口号吋, 可以在基本端口号的基础上加上预设的 端口偏移量得到自定义端口号, 例如 StartPort加上 BasePort。
[0064] 302、 根据预设的配置文件确定与所述报文对应的银行报文格式;
[0065] 在模拟 ATMP系统接收到该 ATMC传送的报文之后, 可以根据预设的配置文件 确定与所述报文对应的银行报文格式。 其中, 配置文件中预先配置有模拟银行 报文协议产生的银行报文格式以及所述银行报文格式对应的应答报文格式。 关 于配置文件中预先配置的具体内容, 将在本实施例的下述内容中进行说明。
[0066] 303、 判断是否所述报文的报文格式与所述银行报文格式匹配, 且所述报文的 报文内容满足预设的正确性条件, 若否, 则执行步骤 304, 若是, 则执行步骤 30 5;
[0067] 本实施例中, 可以通过所述银行报文格式对所述报文进行解析, 得到所述报文 的报文内容。 由于在进行 ATMC的幵发调试吋, 只有当 ATMC发送的报文的报文 格式和报文内容均符合要求吋, 才能认为该 ATMC当前发送的报文是正确的, 否 则该 ATMC发送的报文格式错误或者内容错误。 因此, 模拟 ATMP系统在接收到 该报文后进行判断, 只有当报文的报文格式与所述银行报文格式匹配, 且所述 报文的报文内容也满足预设的正确性条件吋, 才认为该报文在格式和内容上均 符合银行报文协议的要求, 执行步骤 305, 反之, 则执行步骤 304。
[0068] 其中, 上述的正确性条件可以是对报文内容进行字段校验, 例如, 假设银行报 文协议中规定, 每个报文的报文内容中必须包含有银行机构的代码, 则对报文 内容进行字段校验吋, 若报文内容中不包含正确的银行机构的代码, 则认为该 报文的报文内容不满足正确性条件; 反之, 若报文内容中包含正确的银行机构 的代码, 则认为该报文的报文内容满足正确性条件。
[0069] 304、 根据所述配置文件向所述 ATMC返回关于错误报文格式或内容的应答报 文;
[0070] 305、 根据所述配置文件向所述 ATMC返回与所述报文内容对应的应答报文。
[0071] 本实施例中, 关于上述的配置文件, 一般来说, 一个配置文件对应一个银行机 构的银行报文协议, 并且对应一个端口号。 该配置文件模拟了其对应的银行报 文协议规定的银行报文格式以及这些银行报文格式对应的应答报文格式。 比如 , 规定了当接收到的报文的报文格式或报文内容不正确吋, 应当采用何种应答 报文格式进行应答, 当接收到的报文的报文格式和报文内容正确吋, 应当如何 根据该报文的报文内容作出相应的应答, 等等。 因此, 对于上述步骤 304, 可以 理解的是, 若所述报文的报文格式与所述银行报文格式不匹配, 或所述报文的 报文内容不满足预设的正确性条件, 则可以根据所述配置文件向所述 ATMC返回 关于错误报文格式或内容的应答报文。 同理, 对于上述步骤 305, 可以理解的是 , 若所述报文的报文格式与所述银行报文格式匹配, 且所述报文的报文内容满 足预设的正确性条件, 则可以根据所述配置文件向所述 ATMC返回与所述报文内 容对应的应答报文。
[0072] 进一步地, 针对配置文件的内容, 可以根据业务处理的需要, 对各种业务报文 和功能报文处理的各种应答结果, 或者需要返回该业务处理的非正常处理或者 业务处理不成功的报文应答, 通过模拟 ATMP系统由调试用户即吋设置, 以便可 以模拟这些报文的各种处理结果的应答报文。 具体地, 模拟 ATMP系统可以检测 对所述配置文件中的银行报文格式和 /或对应的应答报文格式的设置操作; 若模 拟 ATMP系统检测到所述设置操作, 则根据所述设置操作对所述配置文件中的银 行报文格式和 /或对应的应答报文格式进行更新。
[0073] 例如, 对于取款业务报文, 正常的成功处理结果是返回 "扣款成功"的报文应答
, 但是当账户余额不足吋需要返回"余额不足扣款失败"的应答, 当取款金额已超 出当日累计的最高取款金额吋需要返回"本日取款超限, 扣款失败"的应答, 这些 不同的应答可以由用户在模拟 ATMP系统上根据 ATMC调试需要进行设置, 以便 可以调试 ATMC的各种功能。
[0074] 特别地, 本实施例中, 配置文件的信息可以包括但不限于: 银行机构的机构名 称、 配置的端口号、 银行报文格式的公共信息、 配置文件存放路径, 等等。 其 中, 配置文件中的配置信息可以包括以下三部分内容:
[0075] DefaultSet: 定义了当前分行的全局性通用性配置要求;
[0076] ElementType: 定义了报文中不变项格式信息, 即域定义格式;
[0077] TransationList: 定义了业务报文的配置, 包括判断接收报文是否正确的格式, 以及对应的应答报文格式。
[0078] 为便于理解, 下面将对上述的配置文件在一个应用场景下的具体配置进行详细 描述:
[0079] 在模拟 ATMP系统中, 其上的配置文件可以包括模拟 ATMP系统当前支持的银 行机构列表以及对应的银行机构支持的端口号, 使得被测试的 ATMC向不同端口 号发送报文, 就实现了与不同银行机构的业务交互的通信功能。 如图 4所示, 例 如: "IP":" 127.0.0. r,"StartPort": 10900,{ "BankName":"农业银行", "Port": 10, "ConfFolder":"农业银行 ", "LinkMode":true};
[0080] 以上配置项说明农行: 当前端口号位: 10900+10 =10910; 当前服务配置路 径为: .\virtualP\农业银行; 农行主配置文件为: .\virtualP\农业银行\0^01^0^
[0081] 对于上述配置文件中的 DefaultSet部分, 其包括了每一个银行报文的公共信息 , 该公共信息包括但不限于以下内容: 银行名称、 银行日志路径、 日志等级、 业务报文名称匹配、 无需加密的域、 报文加密类型和加密密钥、 应答报文缺省 设置等。 如图 5所示, DefaultSet部分内容中配置项意义说明如下:
[0082] 1 . PreMatch分项: [0083] 定义了模拟 ATMP系统在接收报文后, 如何分解确定当前报文信息是什么业务 报文。 例如: "PreMatch":["-r,
"3"], 指明了模拟 ATMP系统收到报文后, 先展幵 "3"域前的信息, 然后在和所有 交易报文比对, 假设找出"存款交易报文 "中第 "-Γ和" 3"域对应信息与接收信息相 同, 那么就确定当前报文为"存款交易"报文, 后续解包、 打包则按照"存款交易" 报文进行处理。 可知, 模拟 ATMP系统通过该域的内容确定当前报文是什么报文 , 如模拟 ATMP系统解析某银行报文第 1域是 TMK, 则可确定该报文是申请主密 钥报文
[0084] 2. JoinCheckMac、 NoJoinCheckMac分项:
[0085] 这两个分项说明哪些项参与或者不参与 MAC验算。 其中" nCheckMac"为指定 域参与 MAC验算, 其余域不参与 MAC验算。 NoJoinCheckMac为指定域不参与 M AC验算, 其余域参与 MAC验算。
[0086] 3. BitMapLen分项:
[0087] 该分项指明了位域长度信息, 可以取值为 0、 64、 128, 例如, 农行机构的位图 配置为 64。
[0088] 1 当为 128吋, 指明最大位图为 128, 但是否存在第二位图由 8583协议规定本报 文是否有超过 64的域存在;
[0089] 1 当为 64吋, 表示不能有超过 64的域存在;
[0090] 1 当为 0吋, 一般为定长报文, 如青海农信机构;
[0091] 4. MacScript分项:
[0092] 该分项指明了 MAC校验和生成规则。
[0093] "CheckMac'V'MakeMac' '为通用规则;
[0094] "CheckHalfMac"为只校验 MAC前 8位;
[0095] "NoCheckMac"为不校验 MAC;
[0096] "CheckYCMac","MakeYCMac"为邮储规则;
[0097] "CheckYLMac","MakeYLMac' '为银联规则;
[0098] "CheckQHNXMac","MakeQHNXMac' '为青海农信规则。
[0099] 5. InitScript分项: [0100] 该分项为一些配置规则需要的数据资源。 例如: PhoneManage:script48_response .json, 其含义是: 指明了配置处理函数 PhoneManage需要文件资源为 script48_res ponse.json, 配置处理函数一般为程序内容处理过程, 这些过程在打包、 解包吋 给各个子域赋值或者校验。
[0101] 6. KeyCode分项:
[0102] 该分项定义了密钥名称, 和对应的值。
[0103] EncryptType: 加密类型 1为 DES加密, 2位 SM4加密;
[0104] PinPassword: 用户缺省密码;
[0105] SuperKey: 三层密钥吋的主密钥;
[0106] MasterKey: 主密钥, 或者三层密钥的临吋主密钥;
[0107] PinKey: Pin密钥, 用户密码密钥;
[0108] MACKey: MAC密钥。
[0109] 7 . Request分项:
[0110] 该分项定义了模拟 ATMP系统分析请求报文吋的缺省配置。 例如: { "bit":"52", "Script'V'CheckPin" } , 指明所有请求报文 52域的核査函数为 CheckPin, 即检测用 户密码。
[0111] 8 . Response分项:
[0112] 该分项定义了模拟 ATMP系统打包响应报文的缺省配置。 例如 { "bit":"12",
"Script'V'FillTime" } , 指明了所有响应报文第 12域使用 FiUTime函数来赋值。
[0113] 如图 6所示, ElementType部分内容为域格式定义信息的说明, 其配置项意义 说明如下:
[0114] 1. Bit: 定义子域名称, 为操作子域对应的唯一索引。
[0115] 2. Name: 子域中文名称, 例如"报文长度"。
[0116] 3.
Class: 定义子域对应变长格式。 其中, "V": 定长域; "LV" : 变长域; "TLV' tlv 格式域, 主要用于 IC数据域。
[0117] 4. dataType: 数据类型, 对应不同的补位方式。 "n","an","b',"z"等等, 详细可以 参考 8583格式文档定义。 [0118] 5. Len: 子域长度, 只对定长域有效。
[0119] 6. Code: 域编码格式, 各种编码格式决定不同的长度信息。 其中, HEX: 16 进制压缩编码; BCD: 10进制压缩编码; BYTEHEX: 16进制编码; BIN: 2进制 编码; ASCII: ASCII编码。
[0120] 7.
Fmt: 定义长度信息, 只对变长域 (LV)有效。 其中, LLVAR、 LLLVAR、 LLLL VAR、 LLLLLVAR、 LLLLLLVAR、 LLLLLLLVAR、 LLLLLLLLVAR分另 'J对应 2 至 8位长度信息。
[0121] 8. Fmtcode: 长度信息的编码格式, 只对变长域 (LV)有效, 格式说明参照 Code
[0122] 如图 7所示, TransationList部分内容中配置项意义说明如下:
[0123] 该部分内容主要包含两部分: 其一是接收报文的内容格式: Request域范围的内 容。 其二是应答报文的内容格式: Response域范围的内容。 每一个 Request域格 式, 对应有一个 Response域格式。 使得模拟 ATMP系统在接收到报文之后, 可以 参照 Request域格式进行解析和验证报文的正确性, 然后再生成一个 Response域 格式的报文作为该报文的应答报文。
[0124] 请参阅图 7, TransationList部分内容各配置项如下:
[0125] 1. Bit: 子域名称。
[0126] 2. Tag: 子域出现要求。 其中,
[0127] "LEN":本域为长度域, 表示在以下出现的所有域内容和为本域的值。
[0128] "M'V'CVO'V'R":分别规定了域必须存在、 条件存在、 选择存在、 复制等, 参 见 8583文档规定。
[0129] 3. Value:本域值: 如果在通用配置的 Request, 或者 Response定义了本域的缺省 值, 这里本域的值为业务报文特色规定的值, 会覆盖缺省配置值。
[0130] 4. SubBit: 指定子域集合文件。 此文件定义了子域集合, 定义子域格式要求与 本文档要求一致, 此处不在赘述。
[0131] 5. Script:函数调用关键字。 模拟 ATMP系统内置了一些子域处理函数, 这些函 数通过关键字来调用。 例如 "Script" :"ADDAmOUntABC", 定义了本域会增加用 户账户的金额, 一般用于存款业务报文。
[0132] 本实施例中, 首先, 接收来自待幵发调试的 ATMC传送的报文; 然后, 根据预 设的配置文件确定与所述报文对应的银行报文格式, 所述配置文件预先配置有 模拟银行报文协议产生的银行报文格式以及所述银行报文格式对应的应答报文 格式; 接着, 判断是否所述报文的报文格式与所述银行报文格式匹配, 且所述 报文的报文内容满足预设的正确性条件, 所述报文内容通过所述银行报文格式 对所述报文进行解析得到; 若所述报文的报文格式与所述银行报文格式不匹配 , 或所述报文的报文内容不满足预设的正确性条件, 则根据所述配置文件向所 述 ATMC返回关于错误报文格式或内容的应答报文; 若所述报文的报文格式与所 述银行报文格式匹配, 且所述报文的报文内容满足预设的正确性条件, 则根据 所述配置文件向所述 ATMC返回与所述报文内容对应的应答报文。 这样, 通过预 设配置文件来模拟 ATMC幵发调试所需的业务处理服务环境, 可以根据 ATMC传 送的报文作出符合银行报文协议的报文应答, 在帮助 ATMC完成幵发调试的同吋 , 使得 ATMC可以脱离真实的银行业务处理服务环境, 不必与银行前置系统 AT MP进行通信和业务交互, 有利于 ATMC的快速幵发和移动式幵发, 同吋降低了 因 ATMC与真实的 ATMP对接进行幵发调试带来的安全隐患。
[0133] 应理解, 上述实施例中各步骤的序号的大小并不意味着执行顺序的先后, 各过 程的执行顺序应以其功能和内在逻辑确定, 而不应对本发明实施例的实施过程 构成任何限定。
[0134] 所属领域的技术人员可以清楚地了解到, 为描述的方便和简洁, 上述描述的系 统, 装置和单元的具体工作过程, 可以参考前述方法实施例中的对应过程, 在 此不再赘述。
[0135] 在上述实施例中, 对各个实施例的描述都各有侧重, 某个实施例中没有详述或 记载的部分, 可以参见其它实施例的相关描述。
[0136] 本领域普通技术人员可以意识到, 结合本文中所公幵的实施例描述的各实施例 的模块、 单元和 /或方法步骤, 能够以电子硬件、 或者计算机软件和电子硬件的 结合来实现。 这些功能究竟以硬件还是软件方式来执行, 取决于技术方案的特 定应用和设计约束条件。 专业技术人员可以对每个特定的应用来使用不同方法 来实现所描述的功能, 但是这种实现不应认为超出本发明的范围。
[0137] 在本申请所提供的几个实施例中, 应该理解到, 所揭露的系统, 装置和方法, 可以通过其它的方式实现。 例如, 以上所描述的装置实施例仅仅是示意性的, 例如, 所述单元的划分, 仅仅为一种逻辑功能划分, 实际实现吋可以有另外的 划分方式, 例如多个单元或组件可以结合或者可以集成到另一个系统, 或一些 特征可以忽略, 或不执行。 另一点, 所显示或讨论的相互之间的耦合或直接耦 合或通信连接可以是通过一些接口, 装置或单元的间接耦合或通信连接, 可以 是电性, 机械或其它的形式。
[0138] 所述作为分离部件说明的单元可以是或者也可以不是物理上分幵的, 作为单元 显示的部件可以是或者也可以不是物理单元, 即可以位于一个地方, 或者也可 以分布到多个网络单元上。 可以根据实际的需要选择其中的部分或者全部单元 来实现本实施例方案的目的。
[0139] 另外, 在本发明各个实施例中的各功能单元可以集成在一个处理单元中, 也可 以是各个单元单独物理存在, 也可以两个或两个以上单元集成在一个单元中。 上述集成的单元既可以采用硬件的形式实现, 也可以采用软件功能单元的形式 实现。
[0140] 所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用 吋, 可以存储在一个计算机可读取存储介质中。 基于这样的理解, 本发明的技 术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分 可以以软件产品的形式体现出来, 该计算机软件产品存储在一个存储介质中, 包括若干指令用以使得一台计算机设备 (可以是个人计算机, 服务器, 或者网 络设备等) 执行本发明各个实施例所述方法的全部或部分步骤。 而前述的存储 介质包括: U盘、 移动硬盘、 只读存储器 (ROM, Read-Only Memory) 、 随机 存取存储器 (RAM, Random Access Memory) 、 磁碟或者光盘等各种可以存储 程序代码的介质。
[0141] 以上所述, 以上实施例仅用以说明本发明的技术方案, 而非对其限制; 尽管参 照前述实施例对本发明进行了详细的说明, 本领域的普通技术人员应当理解: 其依然可以对前述各实施例所记载的技术方案进行修改, 或者对其中部分技术 特征进行等同替换; 而这些修改或者替换, 并不使相应技术方案的本质脱离本 发明各实施例技术方案的精神和范围。

Claims

权利要求书
[权利要求 1] 一种 ATM业务软件幵发调试方法, 其特征在于, 包括:
接收来自待幵发调试的 ATMC传送的报文;
根据预设的配置文件确定与所述报文对应的银行报文格式, 所述配置 文件预先配置有模拟银行报文协议产生的银行报文格式以及所述银行 报文格式对应的应答报文格式;
判断是否所述报文的报文格式与所述银行报文格式匹配, 且所述报文 的报文内容满足预设的正确性条件, 所述报文内容通过所述银行报文 格式对所述报文进行解析得到;
若所述报文的报文格式与所述银行报文格式不匹配, 或所述报文的报 文内容不满足预设的正确性条件, 则根据所述配置文件向所述 ATMC 返回关于错误报文格式或内容的应答报文;
若所述报文的报文格式与所述银行报文格式匹配, 且所述报文的报文 内容满足预设的正确性条件, 则根据所述配置文件向所述 ATMC返回 与所述报文内容对应的应答报文。
[权利要求 2] 根据权利要求 1所述的 ATM业务软件幵发调试方法, 其特征在于, 在 根据预设的配置文件确定与所述报文对应的银行报文格式之前, 还包 括:
根据接收所述报文的端口号从预设的配置文件集合中选取对应的一个 预设的配置文件, 所述配置文件集合中的各个配置文件分别与各个端 口号存在对应关系, 不同的配置文件分别用于模拟不同银行机构的银 行报文协议。
[权利要求 3] 根据权利要求 1或 2所述的 ATM业务软件幵发调试方法, 其特征在于
, 还包括:
检测对所述配置文件中的银行报文格式和 /或对应的应答报文格式的 设置操作;
若检测到所述设置操作, 则根据所述设置操作对所述配置文件中的银 行报文格式和 /或对应的应答报文格式进行更新。
[权利要求 4] 一种模拟 ATMP系统, 其特征在于, 包括:
报文接收模块, 用于接收来自待幵发调试的 ATMC传送的报文; 银行报文格式确定模块, 用于根据预设的配置文件确定与所述报文对 应的银行报文格式, 所述配置文件预先配置有模拟银行报文协议产生 的银行报文格式以及所述银行报文格式对应的应答报文格式; 报文判断模块, 用于判断是否所述报文的报文格式与所述银行报文格 式匹配, 且所述报文的报文内容满足预设的正确性条件, 所述报文内 容通过所述银行报文格式对所述报文进行解析得到; 错误应答模块, 用于若所述报文判断模块的判断结果为否, 则根据所 述配置文件向所述 ATMC返回关于错误报文格式或内容的应答报文; 报文应答模块, 用于若所述报文判断模块的判断结果为是, 则根据所 述配置文件向所述 ATMC返回与所述报文内容对应的应答报文。
[权利要求 5] 根据权利要求 4所述的模拟 ATMP系统, 其特征在于, 所述模拟 ATMP 系统还包括:
配置文件选取模块, 用于根据接收所述报文的端口号从预设的配置文 件集合中选取对应的一个预设的配置文件, 所述配置文件集合中的各 个配置文件分别与各个端口号存在对应关系, 不同的配置文件分别用 于模拟不同银行机构的银行报文协议。
[权利要求 6] 根据权利要求 5所述的模拟 ATMP系统, 其特征在于, 所述模拟 ATMP 系统上用于接收报文的端口号包括所述模拟 ATMP系统上自带的基本 端口号和自定义端口号, 所述自定义端口号通过所述基本端口号加上 预设的端口偏移量得到。
[权利要求 7] 根据权利要求 5所述的模拟 ATMP系统, 其特征在于, 所述配置文件 还包括对应的端口号、 对应银行机构的机构名称以及银行报文格式的 公共信息。
[权利要求 8] 根据权利要求 4至 7中任一项所述的模拟 ATMP系统, 其特征在于, 所 述模拟 ATMP系统还包括:
设置操作检测模块, 用于检测对所述配置文件中的银行报文格式和 / 或对应的应答报文格式的设置操作;
配置文件更新模块, 用于若所述设置操作检测模块检测到所述设置操 作, 则根据所述设置操作对所述配置文件中的银行报文格式和 /或对 应的应答报文格式进行更新。
[权利要求 9] 一种 ATM业务软件幵发调试系统, 其特征在于, 包括待幵发调试的 A
TMC以及如权利要求 4至 8中任一项所述的模拟 ATMP系统。
[权利要求 10] 根据权利要求 9所述的 ATM业务软件幵发调试系统, 其特征在于, 还 包括:
ATM硬件模块, 用于模拟 ATM终端上的 SP功能, 为所述 ATMC提供 符合 CEN/XFS标准硬件操作的模拟硬件环境。
PCT/CN2017/080296 2017-04-12 2017-04-12 Atm 业务软件开发调试方法、系统和一种模拟 atmp 系统 WO2018187993A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2017/080296 WO2018187993A1 (zh) 2017-04-12 2017-04-12 Atm 业务软件开发调试方法、系统和一种模拟 atmp 系统
CN201780000390.4A CN107113196A (zh) 2017-04-12 2017-04-12 Atm业务软件开发调试方法、系统和一种模拟atmp系统

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/080296 WO2018187993A1 (zh) 2017-04-12 2017-04-12 Atm 业务软件开发调试方法、系统和一种模拟 atmp 系统

Publications (1)

Publication Number Publication Date
WO2018187993A1 true WO2018187993A1 (zh) 2018-10-18

Family

ID=59664188

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/080296 WO2018187993A1 (zh) 2017-04-12 2017-04-12 Atm 业务软件开发调试方法、系统和一种模拟 atmp 系统

Country Status (2)

Country Link
CN (1) CN107113196A (zh)
WO (1) WO2018187993A1 (zh)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107861877A (zh) * 2017-11-21 2018-03-30 中国银行股份有限公司 银行系统自动化测试报文的加密方法及装置
CN108280356B (zh) * 2018-01-17 2020-07-14 吉浦斯信息咨询(深圳)有限公司 文件解密方法、装置、处理终端及计算机可读存储介质
CN109688029A (zh) * 2019-01-28 2019-04-26 浪潮金融信息技术有限公司 一种应用于金融自助设备的模拟p端的方法及系统
CN113448300B (zh) * 2020-03-26 2022-09-09 比亚迪股份有限公司 列车开关门调试方法、系统和门控制器
CN111627171A (zh) * 2020-04-28 2020-09-04 深圳壹账通智能科技有限公司 Atmp系统的测试报文转换方法、装置、设备及介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030225695A1 (en) * 2002-06-04 2003-12-04 Bottomline Technologies (De) Inc. System and method for producing and verifying secure negotiable instruments
CN102970181A (zh) * 2012-11-05 2013-03-13 广州广电运通金融电子股份有限公司 自助终端状态监控系统及监控方法
CN103514092A (zh) * 2012-06-29 2014-01-15 日立(中国)研究开发有限公司 Atm机软件系统自动测试方法
CN104361692A (zh) * 2014-11-21 2015-02-18 中国建设银行股份有限公司 一种交易监控方法,atm前置系统及atm交易系统
CN105809817A (zh) * 2016-03-11 2016-07-27 中国银行股份有限公司 一种atm故障监控方法及装置

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
AR028612A1 (es) * 2000-05-25 2003-05-14 Diebold Inc Sistema y metodo para cajero automatico
US8732001B2 (en) * 2004-06-08 2014-05-20 Robert G. Previdi Apparatus and method for rewarding consumers
CN102567003A (zh) * 2010-12-29 2012-07-11 上海邮电设计咨询研究院有限公司 一种电信增值业务开发环境中的业务调试实现方法
CN106506283B (zh) * 2016-12-08 2020-01-21 用友网络科技股份有限公司 银行和企业对接系统的业务测试方法和装置

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030225695A1 (en) * 2002-06-04 2003-12-04 Bottomline Technologies (De) Inc. System and method for producing and verifying secure negotiable instruments
CN103514092A (zh) * 2012-06-29 2014-01-15 日立(中国)研究开发有限公司 Atm机软件系统自动测试方法
CN102970181A (zh) * 2012-11-05 2013-03-13 广州广电运通金融电子股份有限公司 自助终端状态监控系统及监控方法
CN104361692A (zh) * 2014-11-21 2015-02-18 中国建设银行股份有限公司 一种交易监控方法,atm前置系统及atm交易系统
CN105809817A (zh) * 2016-03-11 2016-07-27 中国银行股份有限公司 一种atm故障监控方法及装置

Also Published As

Publication number Publication date
CN107113196A (zh) 2017-08-29

Similar Documents

Publication Publication Date Title
WO2018187993A1 (zh) Atm 业务软件开发调试方法、系统和一种模拟 atmp 系统
CN110268389B (zh) 用于系统测试的模拟器
US20180349897A1 (en) Tokenizing sensitive data
AU2009311303B2 (en) Online challenge-response
US7490272B2 (en) Method for validating the proper operation of a transactional management system
CN104615939B (zh) 单据生成方法、验证方法、装置和系统
CN108365961A (zh) 接口调用方法及终端设备、接口调用的响应方法及服务器
CN106557421A (zh) Pos应用程序测试方法及装置
US10446158B1 (en) Method and system for voice input at an ATM without audibly revealing a selected transaction
CN109951475A (zh) 多平台用户账户信息同步方法及系统、服务器
CN110837470B (zh) 银行卡网络交易的测试方法及装置
CN104462934B (zh) 一种信息处理方法及电子设备
CN106685945B (zh) 业务请求处理方法、业务办理号码的验证方法及其终端
TW201824130A (zh) 於線上完成開戶並申請行動銀行之系統及其方法
CN101540031A (zh) 一种确保网络电子交易的数据真实性的确认方法
CN105631669A (zh) 校验支付数据的方法及设备
US7991663B1 (en) System for volume and stress testing bank debit card processing systems
CN107507086B (zh) 发票处理方法和发票处理系统
CN111930535B (zh) 一种应用功能调用方法、装置、计算机设备及存储介质
CN110879787B (zh) 一种客户端测试方法及系统
CN114895879A (zh) 管理系统设计方案确定方法、装置、设备及存储介质
CN110427313B (zh) 一种自动售票机交易功能的测试系统和方法
CN112819605A (zh) 资金结算业务测试方法、装置及计算机可读介质
CN103188117A (zh) 信息交互服务器仿真测试装置及方法
CN106327187A (zh) 信息处理方法及装置

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: 17905711

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: 17905711

Country of ref document: EP

Kind code of ref document: A1