WO2018076905A1 - Pos terminal test method and system running on pc terminal - Google Patents

Pos terminal test method and system running on pc terminal Download PDF

Info

Publication number
WO2018076905A1
WO2018076905A1 PCT/CN2017/098247 CN2017098247W WO2018076905A1 WO 2018076905 A1 WO2018076905 A1 WO 2018076905A1 CN 2017098247 W CN2017098247 W CN 2017098247W WO 2018076905 A1 WO2018076905 A1 WO 2018076905A1
Authority
WO
WIPO (PCT)
Prior art keywords
card
test
test card
pos
tool software
Prior art date
Application number
PCT/CN2017/098247
Other languages
French (fr)
Chinese (zh)
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 WO2018076905A1 publication Critical patent/WO2018076905A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3664Environments for testing or debugging software
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites

Definitions

  • the present invention relates to the field of POS transaction technology, and in particular, to a POS terminal test method and system running on a PC end.
  • the UL Brand Test Tool provides a POS terminal test method and system for testing whether a P0S terminal meets the specifications required by the payment organization, such as EMV Levell certification and EMV Level 2 certification.
  • the workflow of this system is as follows: Firstly, the corresponding card is selected by the PC tool software, and the PC tool software sends the card configuration to the card simulation device. After the card analog device receives the card configuration, it exchanges APDU data with the POS to complete the transaction.
  • UL Brand Test Tool provides a set of analog cards for testing whether the P0S terminal meets the specifications required by the payment organization; test ⁇ , on the PC-side tool software, select a test card, PC tool software will test the card The configuration is sent to the card emulator, and the card emulator uses the card to configure APDU data exchange with the POS to complete a transaction test.
  • test card is limited to the P0S terminal international payment organization specification certification test, and cannot meet the requirements of various test cards required for domestic financial application software testing, such as flash card test card, 9F27 label and 9F10 label value. Inconsistent special test cards.
  • the card simulator is a hardware emulator and is expensive to manufacture. Test cards are customized by the tool provider, are not easy to expand, and cannot add test cards.
  • the technical problem to be solved by the present invention is: a POS terminal testing method and system running on a PC end, solving the existing P 0S terminal testing method and the problem that the test card in the system is not applicable, difficult to expand, and cannot be added, and Existing card simulators are expensive to manufacture.
  • a POS terminal test method running on a PC comprising the following steps: [0007]
  • the card simulation tool software on the PC side selects the simulation test card configured in the test card database;
  • the card simulation tool software includes a simulated cos library and a test card database; and
  • the test card database is configured with multiple simulation test cards.
  • test card database configures a new card through a card configuration template
  • the simulated COS library determines the corresponding COS according to the selected simulated test card
  • the selected analog test card performs APDU data exchange through the corresponding COS and POS, and completes the test of the analog test card;
  • the card simulation tool software on the PC side records the test information of the analog test card.
  • the beneficial effects of the present invention are as follows:
  • the present invention relates to a POS terminal test method running on a PC end, which implements simulation of a card by running a card simulation tool software on a PC side, and completes an APDU of a simulated test card and a POS end by using a card simulation tool software.
  • Data exchange
  • the invention only needs a PC with a Windows system to build a POS terminal test system, which is easy to set up and low in cost.
  • the test card database can be configured according to the test requirements, and the new card can be configured through the card configuration template, which can be updated online. Scalability.
  • FIG. 1 is a flowchart of a method for testing a POS terminal running on a PC according to an embodiment of the present invention
  • FIG. 2 is a flow chart of a step of performing APDU data exchange between a simulated test card and a POS end according to an embodiment of the present invention
  • FIG. 3 is a structural block diagram of a POS terminal test system running on a PC according to an embodiment of the present invention
  • POS a sales terminal, which is a multi-functional terminal, which is installed in a special merchant of a credit card and a network of the receiving network to form a network with the computer, thereby realizing automatic transfer of electronic funds, which has payment consumption, pre-grant Functions such as rights, balance inquiry and transfer are safe, fast and reliable to use;
  • EMV The EMV standard aims to establish a unified standard for cards and terminal interfaces in a financial IC card payment system, so that all cards and terminals can interoperate in this system, and the adoption of the technology will greatly enhance the bank. Card payment security, reducing fraud;
  • EMV Levell certification includes the insertion of the acceptance card without causing damage to the mechanical part; providing power and cuckoo clocks without causing damage to the electrical parts; determining the supported protocols and communicating with the cards, correctly downloading the cards To use the card;
  • EMV Level 2 authentication includes application requirements for defining card transactions; defining application processing specifications between cards and terminals; application software for cards and terminals is usually accessible; application software for terminals can read a list of card applications; Define card holder verification methods, such as password verification;
  • UL Brand Test Tool UL brand testing tool
  • PBOC China Financial IC Card Specification
  • COS smart card operating system
  • APDU an application protocol data unit, a communication unit between the card reader and the smart card;
  • Flash card In the case of non-connected electronic cash offline consumption, the amount in the card has been deducted, but the terminal transaction is unsuccessful;
  • Online transaction refers to a single transaction on the bank's working day, non-working day, and the need for self-service equipment and access to various channels and the response to the response;
  • Offline transaction The terminal does not need to be connected to the network during the transaction, and is directly processed at the terminal. This requires a certain amount of cash records to be stored on the card, the terminal machine directly modifies these records, and updates all transaction records on the day to the server for daily updates.
  • the most critical idea of the present invention is: running the simulation tool software on the PC end, and configuring the new card through the card configuration template according to the test requirements, the method is simple, the cost is low, and the expansion is good.
  • the present invention provides a POS terminal test method running on a PC, which includes the following steps:
  • the card simulation tool software on the PC side selects the simulation test card configured in the test card database; the card simulation tool software includes a simulated cos library and a test card database; and the test card database is configured with multiple simulation test cards.
  • the test card database configures a new card through a card configuration template; [0031]
  • the simulated COS library determines the corresponding COS according to the selected simulated test card;
  • the selected analog test card performs APDU data exchange with the corresponding COS and the POS end to complete the test of the analog test card;
  • the card simulation tool software on the PC side records the test information of the simulated test card.
  • the card simulation is implemented by running the card simulation tool software on the PC side, and the APDU data exchange between the analog test card and the POS end is completed by the card simulation tool software;
  • the PC with Windows system can build a POS terminal test system, which is easy to set up and low in cost.
  • the test card database can be configured according to the test requirements, and the new card can be configured through the card configuration template, which can be updated online and has good scalability.
  • the card simulation tool software of the PC side selects the simulation test card configured in the test card database, and the card simulation tool software of the PC side issues a registration authorization application or an online verification application to the server; the server applies for registration or online according to the registration authorization.
  • the verification application issues registration authorization information or online verification information to the card simulation tool software; the analog card tool software completes the registration authorization or online verification according to the registration authorization information or the online verification information.
  • the card simulation tool software of the PC side obtains the card simulation tool software upgrade information from the server before selecting the simulation test card configured in the test card database; the card simulation tool software of the PC end is based on the acquired card simulation tool software. Upgrade the information upgrade card simulation tool software.
  • the card simulation tool software upgrade information is obtained from the server before the card simulation tool software selects the simulation test card; the card simulation tool software used is guaranteed to be the latest version.
  • the card simulation tool software of the PC side obtains the test card upgrade information from the server before selecting the simulation test card configured in the test card database; the card simulation tool software upgrades the test card database according to the obtained test card upgrade information. Analog test card.
  • test card upgrade information is obtained from the server before the card simulation tool software selects the simulation test card, and the simulated test card information configured in the test card database is ensured to be the latest version.
  • analog test card performs APDU data exchange by using the corresponding COS and the POS end, and the following steps are performed: [0042] COS reads analog test card information;
  • the POS end drives the analog test card according to the information of the analog test card; the POS end loads the analog test card drive library, and is used to drive the analog test card, and the analog test card driver library is loaded in preference to the real card driver library.
  • POS sends an APDU command to the COS
  • COS processes APDU instructions according to the PBOC 3.0 specification
  • the COS returns the instruction processing result to the POS.
  • the POS end processes the instruction by the PBOC 3.0 specification;
  • the PBOC 3.0 specification is mainly supplemented on the PBOC 2.0 specification 2010 edition.
  • the POS terminal sends another analog AUX command with the same APDU command, and the IjCOS continues to receive the APDU command sent by the POS terminal.
  • the simulation test card configured by the test card database includes an international algorithm test card, a national secret algorithm test card, an abnormal card, and a flash card test card; the international algorithm test card uses 3DES and RSA to perform related data.
  • the encrypted or signed card; the national secret algorithm test card is a card for encrypting or signing related data by using the national secret SM4 and SM2 algorithms.
  • test card database of the present invention supports various types of card settings, particularly special test cards such as flash card test cards, to meet the needs of various test cards required for domestic financial application software testing.
  • a POS terminal test system running on a PC, including: [0053] a server, configured to provide a registration authorization or online verification service to the card simulation tool software, and provide an upgrade service of the card simulation tool software and the simulation test card;
  • a PC end configured to install a card simulation tool software;
  • the card simulation tool software includes a simulated COS library and a simulated test card database;
  • a POS end installs a virtual drive library; and the virtual drive library is loaded in preference to the real drive library.
  • the virtual drive library includes an IC card driver and an RF card driver; the IC card driver encapsulates each API of a real IC card driver on the POS; and the RF card driver package POS has a real RF card driver API.
  • the virtual drive library includes the driving of the contact type IC card and the driving of the non-contact RF card; the IC card driver package POS real API card driving API, ICExchangAPDU function implementation will be applied
  • the sent APDU command is sent to the PC card simulation tool software for processing, and then the process is returned to the application; the RF card driver encapsulates the APIs of the real RF card driver on the POS, and the RFExchangAPDU function sends the APDU command sent by the application to the PC card simulation.
  • the tool software processes and then returns the processing to the application; the analog card test system of the present invention supports the simulation of the contact IC card and the contactless RF card.
  • a method for testing a POS terminal running on a PC includes the following steps:
  • the card simulation tool software of the PC side issues a registration authorization application or online verification application to the server; the server issues registration authorization information or online verification information to the card simulation tool software according to the registration authorization application or the online verification application; The tool software completes the registration authorization or online verification according to the registration authorization information or the online verification information.
  • S2 the card simulation tool software on the PC side obtains the card simulation tool software upgrade information from the server; the card simulation tool software on the PC side upgrades the card simulation tool software according to the acquired card simulation tool software upgrade information
  • S3 The card simulation tool software on the PC side obtains the test card upgrade information from the server; the card simulation tool software upgrades the simulation test card configured in the test card database according to the obtained test card upgrade information.
  • the card simulation tool software on the PC side selects the simulation test card configured in the test card database;
  • the card simulation tool software includes a simulated COS library and a test card database; and the test card database is configured with multiple simulations.
  • a test card is configured with a new card by using a card configuration template;
  • the simulated test card configured by the test card database includes an international algorithm test card, a national secret algorithm test card, an abnormal card, and a flash card test card;
  • the test card is a card for encrypting or signing related data by using 3DES and RSA;
  • the national secret algorithm test card is a card for encrypting or signing related data by using the national secret SM4 and SM2 algorithms;
  • S5 The simulation COS library determines the corresponding COS according to the selected simulation test card
  • S6 The selected analog test card performs APDU data exchange with the corresponding COS and the POS end to complete the test of the analog test card;
  • S7 The card simulation tool software on the PC side records the test information of the simulated test card.
  • the analog test card performs APDU data exchange with the POS through the corresponding COS, including the following steps:
  • S601 COS reads analog test card information
  • S602 The POS end drives the analog test card according to the analog test card information; the POS end loads the analog test card driver library, and is used to drive the analog test card, where the analog test card driver library is loaded in preference to the real card driver library. ;
  • S603 The POS sends an APDU command to the COS;
  • S604 The COS processes the APDU command according to the PBOC3.0 specification
  • S605 The COS returns the instruction processing result to the POS.
  • the POS terminal After the COS returns the instruction processing result to the POS terminal, the POS terminal sends another analog AUX command to configure the same APDU command, and the Bay 1JCOS continues to receive the APDU command sent by the POS terminal.
  • a POS terminal test system running on a PC comprising:
  • a server configured to provide a registration authorization or online verification service to the card simulation tool software, and provide an upgrade service of the card simulation tool software and the simulation test card;
  • a PC end configured to install a card simulation tool software;
  • the card simulation tool software includes a simulated COS library and a simulated test card database;
  • a POS end installs a virtual drive library; and the virtual drive library is loaded in preference to the real drive library.
  • the virtual drive library includes an IC card driver and an RF card driver; the IC card driver encapsulates APIs driven by real IC cards on the POS; and the RF card driver encapsulates APIs driven by real RF cards on the POS.
  • the present invention relates to a POS terminal test method running on a PC end, which implements simulation of a card by running a card simulation tool software on a PC side, and completes an APDU of a simulated test card and a P OS end by using a card simulation tool software.
  • Data exchange The invention only needs a PC with a Windows system to build a POS terminal test system, which is easy to set up and low in cost.
  • the test card database can be configured according to the test requirements, and the new card can be configured through the card configuration template, which can be updated online. Scalability.
  • test card upgrade information is obtained from the server before the card simulation tool software selects the simulation test card, and the simulated test card information configured in the test card database is ensured to be the latest version.
  • the analog test card and the POS end perform APDU data exchange steps, and the POS end processes the instructions according to the PBOC3.0 specification;
  • the PBOC3.0 specification is mainly supplemented and revised and upgraded on the basis of the 2010 version of the PBOC 2.0 specification, mainly
  • Industry expansion adapt to the industry needs of electronic cash distribution, segmented bill payment methods, electronic cash freeze and other functions, promote financial IC cards in high-speed rail, public transport, subway and other public service areas
  • innovative payment integration of financial IC card applications with innovative applications such as Internet payment and mobile payment, promoting offline channel integration
  • cross-border use meeting Chinese cardholders, especially in Hong Kong and Macao, using financial IC cards The need for electronic cash payments.
  • the system determines whether the POS end sends the last instruction. If yes, the COS and the POS end perform APDU data exchange, and if not, continue to receive the APDU sent by the POS end. Instruction, this method saves the data processing time.
  • test card database involved in the present invention supports various types of card settings, particularly special test cards such as flash card test cards, to meet the needs of various test cards required for domestic financial application software testing.
  • a POS terminal test system running on a PC comprising:
  • a server configured to provide a registration authorization or online verification service to the card simulation tool software, and provide an upgrade service of the card simulation tool software and the simulation test card;
  • a PC end configured to install a card simulation tool software;
  • the card simulation tool software includes a simulated COS library and a simulated test card database;
  • a POS end a driver for simulating the test card, and a card simulation tool software for transmitting an APDU command to the PC;
  • the POS end is installed with a virtual drive library; and the virtual drive library is loaded in preference to the real drive library.
  • the analog card test system of the present invention supports the simulation of a contact IC card and a contactless RF card.

Abstract

The present invention relates to the technical field of POS transactions, and in particular to a POS terminal test method and system running on a PC terminal. The method comprises the following steps: selecting a simulation test card configured in a test card database of a card simulation tool software of a PC terminal; a simulation COS library determining a corresponding COS according to the selected simulation test card; the selected simulation test card performing APDU data exchange with the POS terminal via the corresponding COS to complete a test of the simulation test card; and the card simulation tool software of the PC terminal recording test information about the simulation test card. The present invention only needs a PC containing a Windows system to construct a POS terminal test system, which is easy to construct and is low in cost. The test card database can configure a new card via a card configuration template according to test requirements, which can be updated on-line and has a good expansibility.

Description

一种运行于 PC端的 POS终端测试方法及系统 技术领域  POS terminal test method and system running on PC side
[0001] 本发明涉及 POS交易技术领域, 特别涉及一种运行于 PC端的 P0S终端测试方法 及系统。  [0001] The present invention relates to the field of POS transaction technology, and in particular, to a POS terminal test method and system running on a PC end.
背景技术  Background technique
[0002] UL Brand Test Tool提供了一种 POS终端测试方法及系统, 用于测试 P0S终端是 否符合支付组织所要求的规范, 如 EMV Levell认证和 EMV Level2认证。 这套系 统的工作流程如下: 先由 PC工具软件中选择相应的卡, PC工具软件将卡配置发 送至卡模拟设备, 卡模拟设备接收卡配置后, 与 POS进行 APDU数据交换, 完成 交易。  [0002] The UL Brand Test Tool provides a POS terminal test method and system for testing whether a P0S terminal meets the specifications required by the payment organization, such as EMV Levell certification and EMV Level 2 certification. The workflow of this system is as follows: Firstly, the corresponding card is selected by the PC tool software, and the PC tool software sends the card configuration to the card simulation device. After the card analog device receives the card configuration, it exchanges APDU data with the POS to complete the transaction.
[0003] UL Brand Test Tool提供了一套模拟卡片, 用于测试 P0S终端是否符合支付组织 所要求的规范; 测试吋, 在 PC端工具软件上, 选择一张测试卡, PC工具软件将 测试卡配置发送到卡模拟器, 卡模拟器使用该卡配置与 POS进行 APDU数据交换 , 完成一笔交易的测试。  [0003] UL Brand Test Tool provides a set of analog cards for testing whether the P0S terminal meets the specifications required by the payment organization; test 吋, on the PC-side tool software, select a test card, PC tool software will test the card The configuration is sent to the card emulator, and the card emulator uses the card to configure APDU data exchange with the POS to complete a transaction test.
[0004] 上述方法及系统中, 测试卡仅限于 P0S终端国际支付组织规范认证测试, 不能 满足国内金融应用软件测试吋需要的各种测试卡片需求, 如闪卡测试卡、 9F27 标签与 9F10标签值不一致等特殊测试卡。 卡模拟器为硬件仿真器, 制造成本昂 贵。 测试卡片都由工具提供商定制好, 不易扩展, 无法新增测试卡片。 [0004] In the above method and system, the test card is limited to the P0S terminal international payment organization specification certification test, and cannot meet the requirements of various test cards required for domestic financial application software testing, such as flash card test card, 9F27 label and 9F10 label value. Inconsistent special test cards. The card simulator is a hardware emulator and is expensive to manufacture. Test cards are customized by the tool provider, are not easy to expand, and cannot add test cards.
技术问题  technical problem
[0005] 本发明所要解决的技术问题是: 一种运行于 PC端的 POS终端测试方法及系统, 解决现有 P0S终端测试方法及系统中测试卡不适用、 不易扩展、 无法新增的问题 以及现有卡模拟器制造成本昂贵的问题。 [0005] The technical problem to be solved by the present invention is: a POS terminal testing method and system running on a PC end, solving the existing P 0S terminal testing method and the problem that the test card in the system is not applicable, difficult to expand, and cannot be added, and Existing card simulators are expensive to manufacture.
问题的解决方案  Problem solution
技术解决方案  Technical solution
[0006] 为了解决上述技术问题, 本发明采用的技术方案为: 一种运行于 PC端的 POS终 端测试方法, 包括以下步骤: [0007] PC端的卡模拟工具软件选择测试卡数据库中配置的模拟测试卡; 所述卡模拟工 具软件包括模拟 cos库和测试卡数据库; 所述测试卡数据库配置多个模拟测试卡[0006] In order to solve the above technical problem, the technical solution adopted by the present invention is: A POS terminal test method running on a PC, comprising the following steps: [0007] The card simulation tool software on the PC side selects the simulation test card configured in the test card database; the card simulation tool software includes a simulated cos library and a test card database; and the test card database is configured with multiple simulation test cards.
; 所述测试卡数据库通过卡配置模板配置新卡; The test card database configures a new card through a card configuration template;
[0008] 模拟 COS库根据所选的模拟测试卡确定相应的 COS;  [0008] The simulated COS library determines the corresponding COS according to the selected simulated test card;
[0009] 所选的模拟测试卡通过相应的 COS与 POS端进行 APDU数据交换, 完成模拟测 试卡的测试;  [0009] The selected analog test card performs APDU data exchange through the corresponding COS and POS, and completes the test of the analog test card;
[0010] PC端的卡模拟工具软件记录模拟测试卡的测试信息。  [0010] The card simulation tool software on the PC side records the test information of the analog test card.
发明的有益效果  Advantageous effects of the invention
有益效果  Beneficial effect
[0011] 本发明的有益效果在于: 本发明涉及的运行于 PC端的 POS终端测试方法, 通过 运行 PC端的卡模拟工具软件实现对卡片的模拟, 通过卡模拟工具软件完成模拟 测试卡与 POS端的 APDU数据交换;  [0011] The beneficial effects of the present invention are as follows: The present invention relates to a POS terminal test method running on a PC end, which implements simulation of a card by running a card simulation tool software on a PC side, and completes an APDU of a simulated test card and a POS end by using a card simulation tool software. Data exchange
[0012] 本发明仅需一台含 Windows系统的 PC即可搭建 POS终端测试系统, 搭建简易, 成本低, 测试卡数据库可以根据测试需要, 通过卡配置模板配置新卡, 可在线 更新, 具有良好的扩展性。  [0012] The invention only needs a PC with a Windows system to build a POS terminal test system, which is easy to set up and low in cost. The test card database can be configured according to the test requirements, and the new card can be configured through the card configuration template, which can be updated online. Scalability.
对附图的简要说明  Brief description of the drawing
附图说明  DRAWINGS
[0013] 图 1为本发明具体实施方式的一种运行于 PC端的 POS终端测试方法流程图; [0014] 图 2为本发明具体实施方式中模拟测试卡与 POS端进行 APDU数据交换的步骤流 程图;  1 is a flowchart of a method for testing a POS terminal running on a PC according to an embodiment of the present invention; [0014] FIG. 2 is a flow chart of a step of performing APDU data exchange between a simulated test card and a POS end according to an embodiment of the present invention; Figure
[0015] 图 3为本发明具体实施方式的一种运行于 PC端的 POS终端测试系统的结构框图  3 is a structural block diagram of a POS terminal test system running on a PC according to an embodiment of the present invention;
具体实施方式 detailed description
[0016] 缩略语和关键术语的定义: [0016] Definitions of abbreviations and key terms:
[0017] POS: 销售终端, 是一种多功能终端, 把它安装在信用卡的特约商户和受理网 点中与计算机联成网络, 就能实现电子资金自动转账, 它具有支付消费、 预授 权、 余额査询和转账等功能, 使用起来安全、 快捷、 可靠; [0017] POS: a sales terminal, which is a multi-functional terminal, which is installed in a special merchant of a credit card and a network of the receiving network to form a network with the computer, thereby realizing automatic transfer of electronic funds, which has payment consumption, pre-grant Functions such as rights, balance inquiry and transfer are safe, fast and reliable to use;
[0018] EMV: EMV标准, 目的是在金融 IC卡支付系统中建立卡片和终端接口的统一 标准, 使得在此体系下所有的卡片和终端能够互通互用, 并且该技术的采用将 大大提高银行卡支付的安全性, 减少欺诈行为; [0018] EMV: The EMV standard aims to establish a unified standard for cards and terminal interfaces in a financial IC card payment system, so that all cards and terminals can interoperate in this system, and the adoption of the technology will greatly enhance the bank. Card payment security, reducing fraud;
[0019] EMV Levell认证: EMV Levell认证包含受理卡片的插入而不引起机械部分的 损坏; 提供电源和吋钟而不引起电器部分的损坏; 确定支持的协议并与卡片进 行通信, 正确地下载卡片以利用卡片; [0019] EMV Levell certification: EMV Levell certification includes the insertion of the acceptance card without causing damage to the mechanical part; providing power and cuckoo clocks without causing damage to the electrical parts; determining the supported protocols and communicating with the cards, correctly downloading the cards To use the card;
[0020] EMV Level2认证: EMV Level2认证包含定义卡片交易的应用需求; 定义卡片 与终端间应用处理规范; 卡片与终端的应用软件通常是可访问的; 终端的应用 软件可读取卡片应用列表; 定义卡片持有者校验方法, 比如密码验证; [0020] EMV Level 2 authentication: EMV Level 2 authentication includes application requirements for defining card transactions; defining application processing specifications between cards and terminals; application software for cards and terminals is usually accessible; application software for terminals can read a list of card applications; Define card holder verification methods, such as password verification;
[0021] UL Brand Test Tool: UL品牌测试工具; [0021] UL Brand Test Tool: UL brand testing tool;
[0022] PBOC: 中国金融集成电路卡规范; [0022] PBOC: China Financial IC Card Specification;
[0023] COS: 智能卡操作系统; [0023] COS: smart card operating system;
[0024] APDU: 应用协议数据单元, 读卡器与智能卡之间的通信单元;  [0024] APDU: an application protocol data unit, a communication unit between the card reader and the smart card;
[0025] 闪卡: 在非接电子现金脱机消费吋, 发生卡片内的金额已扣除、 但终端交易未 成功的现象; [0025] Flash card: In the case of non-connected electronic cash offline consumption, the amount in the card has been deducted, but the terminal transaction is unsuccessful;
[0026] 联机交易: 指银行工作日、 非工作日期间柜台单笔的, 以及由自助设备发起和 各种渠道接入的需要及吋响应的交易;  [0026] Online transaction: refers to a single transaction on the bank's working day, non-working day, and the need for self-service equipment and access to various channels and the response to the response;
[0027] 脱机交易: 交易过程中终端不需要连接到网络, 直接在终端处理。 这需要卡上 储存有一定量的现金记录, 终端机器直接修改这些记录, 并且在每天结算的吋 候将当日所有交易记录上传服务器进行更新。 [0027] Offline transaction: The terminal does not need to be connected to the network during the transaction, and is directly processed at the terminal. This requires a certain amount of cash records to be stored on the card, the terminal machine directly modifies these records, and updates all transaction records on the day to the server for daily updates.
[0028] 本发明最关键的构思在于: PC端上运行模拟工具软件, 可根据测试需要, 通过 卡配置模板配置新卡, 方法简易, 成本低, 具有良好的扩展性。 [0028] The most critical idea of the present invention is: running the simulation tool software on the PC end, and configuring the new card through the card configuration template according to the test requirements, the method is simple, the cost is low, and the expansion is good.
[0029] 请参照图 1至图 3, 本发明提供一种运行于 PC端的 POS终端测试方法, 包括以下 步骤: [0029] Referring to FIG. 1 to FIG. 3, the present invention provides a POS terminal test method running on a PC, which includes the following steps:
[0030] PC端的卡模拟工具软件选择测试卡数据库中配置的模拟测试卡; 所述卡模拟工 具软件包括模拟 cos库和测试卡数据库; 所述测试卡数据库配置多个模拟测试卡 [0030] The card simulation tool software on the PC side selects the simulation test card configured in the test card database; the card simulation tool software includes a simulated cos library and a test card database; and the test card database is configured with multiple simulation test cards.
; 所述测试卡数据库通过卡配置模板配置新卡; [0031] 模拟 COS库根据所选的模拟测试卡确定相应的 COS; The test card database configures a new card through a card configuration template; [0031] The simulated COS library determines the corresponding COS according to the selected simulated test card;
[0032] 所选的模拟测试卡通过相应的 COS与 POS端进行 APDU数据交换, 完成模拟测 试卡的测试;  [0032] The selected analog test card performs APDU data exchange with the corresponding COS and the POS end to complete the test of the analog test card;
[0033] PC端的卡模拟工具软件记录模拟测试卡的测试信息。  [0033] The card simulation tool software on the PC side records the test information of the simulated test card.
[0034] 上述运行于 PC端的 POS终端测试方法中, 通过运行 PC端的卡模拟工具软件实 现对卡片的模拟, 通过卡模拟工具软件完成模拟测试卡与 POS端的 APDU数据交 换; 本发明仅需一台含 Windows系统的 PC即可搭建 POS终端测试系统, 搭建简易 , 成本低, 测试卡数据库可以根据测试需要, 通过卡配置模板配置新卡, 可在 线更新, 具有良好的扩展性。  [0034] In the above-mentioned POS terminal test method running on the PC, the card simulation is implemented by running the card simulation tool software on the PC side, and the APDU data exchange between the analog test card and the POS end is completed by the card simulation tool software; The PC with Windows system can build a POS terminal test system, which is easy to set up and low in cost. The test card database can be configured according to the test requirements, and the new card can be configured through the card configuration template, which can be updated online and has good scalability.
[0035] 进一步的, 所述 PC端的卡模拟工具软件选择测试卡数据库中配置的模拟测试卡 之前 PC端的卡模拟工具软件向服务器发出注册授权申请或联机校验申请; 服务 器根据注册授权申请或联机校验申请向卡模拟工具软件发出注册授权信息或联 机校验信息; 模拟卡工具软件根据注册授权信息或联机校验信息完成注册授权 或联机校验。  [0035] Further, the card simulation tool software of the PC side selects the simulation test card configured in the test card database, and the card simulation tool software of the PC side issues a registration authorization application or an online verification application to the server; the server applies for registration or online according to the registration authorization. The verification application issues registration authorization information or online verification information to the card simulation tool software; the analog card tool software completes the registration authorization or online verification according to the registration authorization information or the online verification information.
[0036] 由上述描述可知, 在卡模拟工具软件选择模拟测试卡之前进行注册授权或联机 校验, 保证模拟卡测试系统的安全性, 只有通过验证才能进行后续的步骤。  [0036] As can be seen from the above description, before the card simulation tool software selects the analog test card, registration authorization or online verification is performed to ensure the security of the analog card test system, and only subsequent steps can be performed through verification.
[0037] 进一步的, 所述 PC端的卡模拟工具软件选择测试卡数据库中配置的模拟测试卡 之前从服务器获取卡模拟工具软件升级信息; 所述 PC端的卡模拟工具软件根据 获取的卡模拟工具软件升级信息升级卡模拟工具软件。  [0037] Further, the card simulation tool software of the PC side obtains the card simulation tool software upgrade information from the server before selecting the simulation test card configured in the test card database; the card simulation tool software of the PC end is based on the acquired card simulation tool software. Upgrade the information upgrade card simulation tool software.
[0038] 由上述描述可知, 在卡模拟工具软件选择模拟测试卡之前从服务器获取卡模拟 工具软件升级信息; 保证所使用的卡模拟工具软件是最新版本。  [0038] As can be seen from the above description, the card simulation tool software upgrade information is obtained from the server before the card simulation tool software selects the simulation test card; the card simulation tool software used is guaranteed to be the latest version.
[0039] 进一步的, 所述 PC端的卡模拟工具软件选择测试卡数据库中配置的模拟测试卡 之前从服务器获取测试卡升级信息; 卡模拟工具软件根据获取的测试卡升级信 息升级测试卡数据库中配置的模拟测试卡。 [0039] Further, the card simulation tool software of the PC side obtains the test card upgrade information from the server before selecting the simulation test card configured in the test card database; the card simulation tool software upgrades the test card database according to the obtained test card upgrade information. Analog test card.
[0040] 由上述描述可知, 在卡模拟工具软件选择模拟测试卡之前从服务器获取测试卡 升级信息, 保证测试卡数据库中配置的模拟测试卡信息为最新版本。 [0040] As can be seen from the above description, the test card upgrade information is obtained from the server before the card simulation tool software selects the simulation test card, and the simulated test card information configured in the test card database is ensured to be the latest version.
[0041] 进一步的, 所述模拟测试卡通过相应的 COS与 POS端进行 APDU数据交换包括 以下步骤: [0042] COS读取模拟测试卡信息; [0041] Further, the analog test card performs APDU data exchange by using the corresponding COS and the POS end, and the following steps are performed: [0042] COS reads analog test card information;
[0043] POS端根据模拟测试卡信息驱动模拟测试卡; 所述 POS端中装载模拟测试卡驱 动库, 用于驱动模拟测试卡, 所述模拟测试卡驱动库优先于真实卡驱动库加载  [0043] The POS end drives the analog test card according to the information of the analog test card; the POS end loads the analog test card drive library, and is used to drive the analog test card, and the analog test card driver library is loaded in preference to the real card driver library.
[0044] POS发送 APDU指令给 COS; [0044] POS sends an APDU command to the COS;
[0045] COS根据 PBOC3.0规范处理 APDU指令;  [0045] COS processes APDU instructions according to the PBOC 3.0 specification;
[0046] COS返回指令处理结果给 POS。  [0046] The COS returns the instruction processing result to the POS.
[0047] 由上述描述可知, 优选模拟测试卡与 POS端进行 APDU数据交换的步骤, POS 端以 PBOC3.0规范处理指令; PBOC3.0规范主要是在 PBOC2.0规范 2010年版的基 础上进行增补和修订升级, 主要为满足以下方面的升级: 行业拓展, 适应公共 服务领域对电子现金分吋、 分段计费支付方式、 电子现金冻结等功能的行业需 求, 促进金融 IC卡在高铁、 公交、 地铁等公共服务领域的应用; 创新支付, 实 现金融 IC卡应用与互联网支付、 移动支付等创新型应用的整合, 促进线下线上 渠道融合; 跨境使用, 满足中国持卡人特别是在港澳地区使用金融 IC卡进行电 子现金支付的需求。  [0047] According to the above description, it is preferable to simulate the step of performing APDU data exchange between the test card and the POS end, and the POS end processes the instruction by the PBOC 3.0 specification; the PBOC 3.0 specification is mainly supplemented on the PBOC 2.0 specification 2010 edition. And revision and upgrade, mainly to meet the following aspects of the upgrade: industry expansion, adapt to the public service sector for the electronic cash distribution, segmented payment methods, electronic cash freeze and other functions of the industry needs, promote financial IC cards in high-speed rail, public transport, Application in public service areas such as subway; innovative payment, integration of innovative applications such as financial IC card application and Internet payment, mobile payment, etc., promoting online channel integration; cross-border use, meeting Chinese cardholders, especially in Hong Kong and Macau The area uses financial IC cards for electronic cash payment needs.
[0048] 进一步的, 在所述 COS返回指令处理结果给 POS端后, POS端发送另一条模拟 测试卡配置相同的 APDU指令, 贝 IjCOS继续接收 POS端发送的 APDU指令。  [0048] Further, after the COS returns the instruction processing result to the POS terminal, the POS terminal sends another analog AUX command with the same APDU command, and the IjCOS continues to receive the APDU command sent by the POS terminal.
[0049] 由上述描述可知, 当 COS返回指令处理结果给 POS端后, 系统判定 POS端发送 的是否是最后一条指令, 若是, 则 COS与 POS端进行 APDU数据交换结束, 若否 , 则继续接收 POS端发送的 APDU指令, 这种方法节省了数据处理的吋间。  [0049] It can be seen from the above description that after the COS returns the command processing result to the POS end, the system determines whether the POS end sends the last instruction, and if so, the COS and the POS end end the APDU data exchange, and if not, continue to receive The APDU command sent by the POS side, this method saves the data processing time.
[0050] 进一步的, 所述测试卡数据库配置的模拟测试卡包括国际算法测试卡、 国密算 法测试卡、 异常卡和闪卡测试卡; 所述国际算法测试卡为使用 3DES、 RSA进行 相关数据加密或签名的卡; 所述国密算法测试卡为使用国密 SM4、 SM2算法进行 相关数据加密或签名的卡。  [0050] Further, the simulation test card configured by the test card database includes an international algorithm test card, a national secret algorithm test card, an abnormal card, and a flash card test card; the international algorithm test card uses 3DES and RSA to perform related data. The encrypted or signed card; the national secret algorithm test card is a card for encrypting or signing related data by using the national secret SM4 and SM2 algorithms.
[0051] 由上述描述可知, 本发明涉及的测试卡数据库支持各种类型的卡片设置, 特别 是如闪卡测试卡等特殊测试卡, 满足国内金融应用软件测试吋需要的各种测试 卡片需求。  [0051] As can be seen from the above description, the test card database of the present invention supports various types of card settings, particularly special test cards such as flash card test cards, to meet the needs of various test cards required for domestic financial application software testing.
[0052] 本发明的另一技术方案为提供一种运行于 PC端的 POS终端测试系统, 包括: [0053] 服务器, 用于向卡模拟工具软件提供注册授权或联机校验服务, 以及提供卡模 拟工具软件及模拟测试卡的升级服务; [0052] Another technical solution of the present invention provides a POS terminal test system running on a PC, including: [0053] a server, configured to provide a registration authorization or online verification service to the card simulation tool software, and provide an upgrade service of the card simulation tool software and the simulation test card;
[0054] PC端, 用于安装卡模拟工具软件; 所述卡模拟工具软件包括模拟 COS库和模拟 测试卡数据库; [0054] a PC end, configured to install a card simulation tool software; the card simulation tool software includes a simulated COS library and a simulated test card database;
[0055] POS端, 用于模拟测试卡的驱动, 以及发送 APDU指令至 PC端的卡模拟工具软 件; 所述 POS端安装虚拟驱动库; 所述虚拟驱动库优先于真实驱动库加载。  [0055] a POS end, a driver for simulating the test card, and a card emulation tool for sending an APDU command to the PC; the POS end installs a virtual drive library; and the virtual drive library is loaded in preference to the real drive library.
[0056] 进一步的, 所述虚拟驱动库包括 IC卡驱动和 RF卡驱动; 所述 IC卡驱动封装 POS 上真实 IC卡驱动的各 API; 所述 RF卡驱动封装 POS上真实 RF卡驱动的各 API。  [0056] Further, the virtual drive library includes an IC card driver and an RF card driver; the IC card driver encapsulates each API of a real IC card driver on the POS; and the RF card driver package POS has a real RF card driver API.
[0057] 由上述描述可知, 所述虚拟驱动库包括了接触式的 IC卡的驱动以及非接触式 RF 卡的驱动; IC卡驱动封装 POS上真实 IC卡驱动的各 API, ICExchangAPDU函数实 现将应用发送的 APDU指令发送到 PC端卡模拟工具软件处理, 然后将处理返回给 应用; RF卡驱动封装 POS上真实 RF卡驱动的各 API, RFExchangAPDU函数实现 将应用发送的 APDU指令发送到 PC端卡模拟工具软件处理, 然后将处理返回给应 用; 使本发明涉及的模拟卡测试系统支持接触式 IC卡及非接触式 RF卡的模拟。  [0057] It can be seen from the above description that the virtual drive library includes the driving of the contact type IC card and the driving of the non-contact RF card; the IC card driver package POS real API card driving API, ICExchangAPDU function implementation will be applied The sent APDU command is sent to the PC card simulation tool software for processing, and then the process is returned to the application; the RF card driver encapsulates the APIs of the real RF card driver on the POS, and the RFExchangAPDU function sends the APDU command sent by the application to the PC card simulation. The tool software processes and then returns the processing to the application; the analog card test system of the present invention supports the simulation of the contact IC card and the contactless RF card.
[0058]  [0058]
[0059] 实施例 1  Embodiment 1
[0060] 请参照图 1至图 3, 一种运行于 PC端的 POS终端测试方法, 包括以下步骤:  [0060] Referring to FIG. 1 to FIG. 3, a method for testing a POS terminal running on a PC includes the following steps:
[0061] SI : PC端的卡模拟工具软件向服务器发出注册授权申请或联机校验申请; 服 务器根据注册授权申请或联机校验申请向卡模拟工具软件发出注册授权信息或 联机校验信息; 模拟卡工具软件根据注册授权信息或联机校验信息完成注册授 权或联机校验。 [0061] SI: the card simulation tool software of the PC side issues a registration authorization application or online verification application to the server; the server issues registration authorization information or online verification information to the card simulation tool software according to the registration authorization application or the online verification application; The tool software completes the registration authorization or online verification according to the registration authorization information or the online verification information.
[0062] S2: PC端的卡模拟工具软件从服务器获取卡模拟工具软件升级信息; 所述 PC 端的卡模拟工具软件根据获取的卡模拟工具软件升级信息升级卡模拟工具软件  [0062] S2: the card simulation tool software on the PC side obtains the card simulation tool software upgrade information from the server; the card simulation tool software on the PC side upgrades the card simulation tool software according to the acquired card simulation tool software upgrade information
[0063] S3: PC端的卡模拟工具软件从服务器获取测试卡升级信息; 卡模拟工具软件 根据获取的测试卡升级信息升级测试卡数据库中配置的模拟测试卡。 [0063] S3: The card simulation tool software on the PC side obtains the test card upgrade information from the server; the card simulation tool software upgrades the simulation test card configured in the test card database according to the obtained test card upgrade information.
[0064] S4: PC端的卡模拟工具软件选择测试卡数据库中配置的模拟测试卡; 所述卡 模拟工具软件包括模拟 COS库和测试卡数据库; 所述测试卡数据库配置多个模拟 测试卡; 所述测试卡数据库通过卡配置模板配置新卡; 所述测试卡数据库配置 的模拟测试卡包括国际算法测试卡、 国密算法测试卡、 异常卡和闪卡测试卡; 所述国际算法测试卡为使用 3DES、 RSA进行相关数据加密或签名的卡; 所述国 密算法测试卡为使用国密 SM4、 SM2算法进行相关数据加密或签名的卡; [0064] S4: the card simulation tool software on the PC side selects the simulation test card configured in the test card database; the card simulation tool software includes a simulated COS library and a test card database; and the test card database is configured with multiple simulations. a test card; the test card database is configured with a new card by using a card configuration template; the simulated test card configured by the test card database includes an international algorithm test card, a national secret algorithm test card, an abnormal card, and a flash card test card; The test card is a card for encrypting or signing related data by using 3DES and RSA; the national secret algorithm test card is a card for encrypting or signing related data by using the national secret SM4 and SM2 algorithms;
[0065] S5: 模拟 COS库根据所选的模拟测试卡确定相应的 COS;  [0065] S5: The simulation COS library determines the corresponding COS according to the selected simulation test card;
[0066] S6: 所选的模拟测试卡通过相应的 COS与 POS端进行 APDU数据交换, 完成模 拟测试卡的测试;  [0066] S6: The selected analog test card performs APDU data exchange with the corresponding COS and the POS end to complete the test of the analog test card;
[0067] S7: PC端的卡模拟工具软件记录模拟测试卡的测试信息。  [0067] S7: The card simulation tool software on the PC side records the test information of the simulated test card.
[0068] 所述模拟测试卡通过相应的 COS与 POS端进行 APDU数据交换包括以下步骤: [0068] The analog test card performs APDU data exchange with the POS through the corresponding COS, including the following steps:
[0069] S601 : COS读取模拟测试卡信息; [0069] S601: COS reads analog test card information;
[0070] S602: POS端根据模拟测试卡信息驱动模拟测试卡; 所述 POS端中装载模拟测 试卡驱动库, 用于驱动模拟测试卡, 所述模拟测试卡驱动库优先于真实卡驱动 库加载;  [0070] S602: The POS end drives the analog test card according to the analog test card information; the POS end loads the analog test card driver library, and is used to drive the analog test card, where the analog test card driver library is loaded in preference to the real card driver library. ;
[0071] S603: POS发送 APDU指令给 COS;  [0071] S603: The POS sends an APDU command to the COS;
[0072] S604: COS根据 PBOC3.0规范处理 APDU指令;  [0072] S604: The COS processes the APDU command according to the PBOC3.0 specification;
[0073] S605: COS返回指令处理结果给 POS。  [0073] S605: The COS returns the instruction processing result to the POS.
[0074] 在所述 COS返回指令处理结果给 POS端后, POS端发送另一条模拟测试卡配置 相同的 APDU指令, 贝 1JCOS继续接收 POS端发送的 APDU指令。  [0074] After the COS returns the instruction processing result to the POS terminal, the POS terminal sends another analog AUX command to configure the same APDU command, and the Bay 1JCOS continues to receive the APDU command sent by the POS terminal.
[0075] 一种运行于 PC端的 POS终端测试系统, 包括: [0075] A POS terminal test system running on a PC, comprising:
[0076] 服务器, 用于向卡模拟工具软件提供注册授权或联机校验服务, 以及提供卡模 拟工具软件及模拟测试卡的升级服务;  [0076] a server, configured to provide a registration authorization or online verification service to the card simulation tool software, and provide an upgrade service of the card simulation tool software and the simulation test card;
[0077] PC端, 用于安装卡模拟工具软件; 所述卡模拟工具软件包括模拟 COS库和模拟 测试卡数据库; [0077] a PC end, configured to install a card simulation tool software; the card simulation tool software includes a simulated COS library and a simulated test card database;
[0078] POS端, 用于模拟测试卡的驱动, 以及发送 APDU指令至 PC端的卡模拟工具软 件; 所述 POS端安装虚拟驱动库; 所述虚拟驱动库优先于真实驱动库加载。  [0078] a POS end, a driver for simulating the test card, and a card emulation tool for sending an APDU command to the PC; the POS end installs a virtual drive library; and the virtual drive library is loaded in preference to the real drive library.
[0079] 所述虚拟驱动库包括 IC卡驱动和 RF卡驱动; 所述 IC卡驱动封装 POS上真实 IC卡 驱动的各 API; 所述 RF卡驱动封装 POS上真实 RF卡驱动的各 API。  [0079] The virtual drive library includes an IC card driver and an RF card driver; the IC card driver encapsulates APIs driven by real IC cards on the POS; and the RF card driver encapsulates APIs driven by real RF cards on the POS.
[0080] [0081] 综上所述, 本发明涉及的运行于 PC端的 POS终端测试方法中, 通过运行 PC端 的卡模拟工具软件实现对卡片的模拟, 通过卡模拟工具软件完成模拟测试卡与 P OS端的 APDU数据交换; 本发明仅需一台含 Windows系统的 PC即可搭建 POS终端 测试系统, 搭建简易, 成本低, 测试卡数据库可以根据测试需要, 通过卡配置 模板配置新卡, 可在线更新, 具有良好的扩展性。 [0080] In summary, the present invention relates to a POS terminal test method running on a PC end, which implements simulation of a card by running a card simulation tool software on a PC side, and completes an APDU of a simulated test card and a P OS end by using a card simulation tool software. Data exchange; The invention only needs a PC with a Windows system to build a POS terminal test system, which is easy to set up and low in cost. The test card database can be configured according to the test requirements, and the new card can be configured through the card configuration template, which can be updated online. Scalability.
[0082] 在卡模拟工具软件选择模拟测试卡之前进行注册授权或联机校验, 保证模拟卡 测试系统的安全性, 只有通过验证才能进行后续的步骤。  [0082] Before the card simulation tool software selects the analog test card, registration authorization or online verification is performed to ensure the security of the analog card test system, and only subsequent steps can be performed through verification.
[0083] 在卡模拟工具软件选择模拟测试卡之前从服务器获取卡模拟工具软件升级信息 ; 保证所使用的卡模拟工具软件是最新版本。  [0083] Obtaining card simulation tool software upgrade information from the server before the card simulation tool software selects the simulation test card; ensuring that the card simulation tool software used is the latest version.
[0084] 在卡模拟工具软件选择模拟测试卡之前从服务器获取测试卡升级信息, 保证测 试卡数据库中配置的模拟测试卡信息为最新版本。  [0084] The test card upgrade information is obtained from the server before the card simulation tool software selects the simulation test card, and the simulated test card information configured in the test card database is ensured to be the latest version.
[0085] 优选模拟测试卡与 POS端进行 APDU数据交换的步骤, POS端以 PBOC3.0规范处 理指令; PBOC3.0规范主要是在 PBOC2.0规范 2010年版的基础上进行增补和修订 升级, 主要为满足以下方面的升级: 行业拓展, 适应公共服务领域对电子现金 分吋、 分段计费支付方式、 电子现金冻结等功能的行业需求, 促进金融 IC卡在 高铁、 公交、 地铁等公共服务领域的应用; 创新支付, 实现金融 IC卡应用与互 联网支付、 移动支付等创新型应用的整合, 促进线下线上渠道融合; 跨境使用 , 满足中国持卡人特别是在港澳地区使用金融 IC卡进行电子现金支付的需求。  [0085] Preferably, the analog test card and the POS end perform APDU data exchange steps, and the POS end processes the instructions according to the PBOC3.0 specification; the PBOC3.0 specification is mainly supplemented and revised and upgraded on the basis of the 2010 version of the PBOC 2.0 specification, mainly In order to meet the following aspects of the upgrade: Industry expansion, adapt to the industry needs of electronic cash distribution, segmented bill payment methods, electronic cash freeze and other functions, promote financial IC cards in high-speed rail, public transport, subway and other public service areas Application; innovative payment, integration of financial IC card applications with innovative applications such as Internet payment and mobile payment, promoting offline channel integration; cross-border use, meeting Chinese cardholders, especially in Hong Kong and Macao, using financial IC cards The need for electronic cash payments.
[0086] 当 COS返回指令处理结果给 POS端后, 系统判定 POS端发送的是否是最后一条 指令, 若是, 则 COS与 POS端进行 APDU数据交换结束, 若否, 则继续接收 POS 端发送的 APDU指令, 这种方法节省了数据处理的吋间。  [0086] After the COS returns the command processing result to the POS end, the system determines whether the POS end sends the last instruction. If yes, the COS and the POS end perform APDU data exchange, and if not, continue to receive the APDU sent by the POS end. Instruction, this method saves the data processing time.
[0087] 本发明涉及的测试卡数据库支持各种类型的卡片设置, 特别是如闪卡测试卡等 特殊测试卡, 满足国内金融应用软件测试吋需要的各种测试卡片需求。  [0087] The test card database involved in the present invention supports various types of card settings, particularly special test cards such as flash card test cards, to meet the needs of various test cards required for domestic financial application software testing.
[0088] 一种运行于 PC端的 POS终端测试系统, 包括:  [0088] A POS terminal test system running on a PC, comprising:
[0089] 服务器, 用于向卡模拟工具软件提供注册授权或联机校验服务, 以及提供卡模 拟工具软件及模拟测试卡的升级服务;  [0089] a server, configured to provide a registration authorization or online verification service to the card simulation tool software, and provide an upgrade service of the card simulation tool software and the simulation test card;
[0090] PC端, 用于安装卡模拟工具软件; 所述卡模拟工具软件包括模拟 COS库和模拟 测试卡数据库; [0091] POS端, 用于模拟测试卡的驱动, 以及发送 APDU指令至 PC端的卡模拟工具软 件; 所述 POS端安装虚拟驱动库; 所述虚拟驱动库优先于真实驱动库加载。 [0090] a PC end, configured to install a card simulation tool software; the card simulation tool software includes a simulated COS library and a simulated test card database; [0091] a POS end, a driver for simulating the test card, and a card simulation tool software for transmitting an APDU command to the PC; the POS end is installed with a virtual drive library; and the virtual drive library is loaded in preference to the real drive library.
[0092] 本发明涉及的模拟卡测试系统支持接触式 IC卡及非接触式 RF卡的模拟。 [0092] The analog card test system of the present invention supports the simulation of a contact IC card and a contactless RF card.
[0093] [0093]

Claims

权利要求书 Claim
[权利要求 1] 一种运行于 PC端的 POS终端测试方法, 其特征在于, 包括以下步骤: 选择 PC端的卡模拟工具软件的测试卡数据库中配置的模拟测试卡; 所述卡模拟工具软件包括模拟 cos库和测试卡数据库; 所述测试卡数 据库配置多个模拟测试卡; 所述测试卡数据库通过卡配置模板配置新 卡;  [Claim 1] A POS terminal testing method running on a PC, comprising the steps of: selecting a simulated test card configured in a test card database of a card simulation tool software of a PC; the card simulation tool software includes a simulation a cos library and a test card database; the test card database is configured with a plurality of simulation test cards; the test card database is configured with a new card through a card configuration template;
模拟 COS库根据所选的模拟测试卡确定相应的 COS;  The simulation COS library determines the corresponding COS according to the selected simulation test card;
所选的模拟测试卡通过相应的 COS与 POS端进行 APDU数据交换, 完 成模拟测试卡的测试;  The selected analog test card performs APDU data exchange with the corresponding COS and POS, and completes the test of the analog test card;
PC端的卡模拟工具软件记录模拟测试卡的测试信息。 The card simulation tool software on the PC side records the test information of the analog test card.
[权利要求 2] 根据权利要求 1所述的运行于 PC端的 POS终端测试方法, 其特征在于[Claim 2] The method for testing a POS terminal running on a PC according to claim 1, wherein
, 所述选择 PC端的卡模拟工具软件的测试卡数据库中配置的模拟测 试卡之前,包括步骤: PC端的卡模拟工具软件向服务器发出注册授权 申请或联机校验申请; 服务器根据注册授权申请或联机校验申请向卡 模拟工具软件发出注册授权信息或联机校验信息; 模拟卡工具软件根 据注册授权信息或联机校验信息完成注册授权或联机校验。 Before the selection of the simulated test card configured in the test card database of the card simulation tool software of the PC, the steps include: the card simulation tool software of the PC side issues a registration authorization application or an online verification application to the server; the server applies or registers according to the registration authorization. The verification application issues registration authorization information or online verification information to the card simulation tool software; the analog card tool software completes the registration authorization or online verification according to the registration authorization information or the online verification information.
[权利要求 3] 根据权利要求 1所述的运行于 PC端的 POS终端测试方法, 其特征在于[Claim 3] The method for testing a POS terminal running on a PC according to claim 1, wherein
, 所述选择 PC端的卡模拟工具软件的测试卡数据库中配置的模拟测 试卡之前, 包括步骤: 从服务器获取卡模拟工具软件升级信息; 所述 PC端的卡模拟工具软件根据获取的卡模拟工具软件升级信息升级卡 模拟工具软件。 Before the selecting the simulated test card configured in the test card database of the card simulation tool software of the PC, the method includes the steps of: obtaining card simulation tool software upgrade information from the server; and the card simulation tool software of the P C end according to the acquired card simulation tool Software upgrade information upgrade card simulation tool software.
[权利要求 4] 根据权利要求 1所述的运行于 PC端的 POS终端测试方法, 其特征在于 [Claim 4] The method for testing a POS terminal running on a PC according to claim 1, wherein
, 所述选择 PC端的卡模拟工具软件的测试卡数据库中配置的模拟测 试卡之前, 包括步骤: 从服务器获取测试卡升级信息; 卡模拟工具软 件根据获取的测试卡升级信息升级测试卡数据库中配置的模拟测试卡 Before selecting the simulated test card configured in the test card database of the card simulation tool software of the PC, the method includes the steps of: obtaining the test card upgrade information from the server; the card simulation tool software is configured according to the obtained test card upgrade information to upgrade the test card database. Analog test card
[权利要求 5] 根据权利要求 1所述的运行于 PC端的 POS终端测试方法, 其特征在于 , 所述模拟测试卡通过相应的 COS与 POS端进行 APDU数据交换具体 为以下步骤: [Claim 5] The method for testing a POS terminal running on a PC according to claim 1, wherein the analog test card performs APDU data exchange through a corresponding COS and POS end. For the following steps:
COS读取模拟测试卡信息; POS端根据模拟测试卡信息驱动模拟测试 卡; 所述 POS端中装载模拟测试卡驱动库, 用于驱动模拟测试卡, 所 述模拟测试卡驱动库优先于真实卡驱动库加载;  The COS reads the analog test card information; the POS end drives the analog test card according to the analog test card information; the POS end loads the analog test card driver library for driving the analog test card, and the analog test card driver library takes precedence over the real card Drive library loading;
POS发送 APDU指令给 COS;  The POS sends an APDU command to the COS;
COS根据 PBOC3.0规范处理 APDU指令;  COS processes APDU commands according to the PBOC 3.0 specification;
COS返回指令处理结果给 POS。  The COS returns the instruction processing result to the POS.
[权利要求 6] 根据权利要求 5所述的运行于 PC端的 POS终端测试方法, 其特征在于[Claim 6] The method for testing a POS terminal running on a PC according to claim 5, characterized in that
, 在所述 COS返回指令处理结果给 POS后, POS端发送另一条模拟测 试卡配置相同的 APDU指令, 贝 IjCOS继续接收 POS端发送的 APDU指 令。 After the COS returns the command processing result to the POS, the POS sends another APDU command with the same analog test card configuration, and the IjCOS continues to receive the APDU command sent by the POS.
[权利要求 7] 根据权利要求 1所述的运行于 PC端的 POS终端测试方法, 其特征在于 [Claim 7] The method for testing a POS terminal running on a PC according to claim 1, wherein
, 所述测试卡数据库配置的模拟测试卡包括国际算法测试卡、 国密算 法测试卡、 异常卡和闪卡测试卡; 所述国际算法测试卡为使用 3DES 、 RSA进行相关数据加密或签名的卡; 所述国密算法测试卡为使用国 密 SM4、 SM2算法进行相关数据加密或签名的卡。 The simulation test card configured by the test card database includes an international algorithm test card, a national secret algorithm test card, an abnormal card and a flash card test card; the international algorithm test card is a card for encrypting or signing related data by using 3DES and RSA. The national secret algorithm test card is a card for encrypting or signing related data using the national secret SM4 and SM2 algorithms.
[权利要求 8] —种运行于 PC端的 POS终端测试系统, 其特征在于, 包括:  [Claim 8] A POS terminal test system running on a PC, characterized in that it comprises:
服务器, 用于向卡模拟工具软件提供注册授权或联机校验服务, 以及 提供卡模拟工具软件及模拟测试卡的升级服务;  a server for providing registration authorization or online verification service to the card simulation tool software, and providing an upgrade service for the card simulation tool software and the simulation test card;
PC端, 用于安装卡模拟工具软件; 所述卡模拟工具软件包括模拟 CO S库和模拟测试卡数据库;  a PC end, configured to install a card simulation tool software; the card simulation tool software includes a simulated CO S library and a simulated test card database;
POS端, 用于模拟测试卡的驱动, 以及发送 APDU指令至 PC端的卡模 拟工具软件; 所述 POS端安装虚拟驱动库; 所述虚拟驱动库优先于真 实驱动库加载。  The POS end is used to simulate the driving of the test card, and the card simulation tool software for sending the APDU command to the PC side; the POS end installs the virtual driver library; the virtual driver library is loaded in preference to the real driver library.
[权利要求 9] 根据权利要求 8所述的运行于 PC端的 POS终端测试系统, 其特征在于 [Claim 9] The POS terminal test system running on the PC side according to claim 8, wherein
, 所述虚拟驱动库包括 IC卡驱动和 RF卡驱动; 所述 IC卡驱动封装 POS 上真实 IC卡驱动的各 API; 所述 RF卡驱动封装 POS上真实 RF卡驱动的 各 API。 The virtual drive library includes an IC card driver and an RF card driver; the IC card driver encapsulates each API of a real IC card driver on the POS; and the RF card driver encapsulates the APIs of the real RF card driver on the POS.
PCT/CN2017/098247 2016-10-31 2017-08-21 Pos terminal test method and system running on pc terminal WO2018076905A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610927930.0A CN106547691A (en) 2016-10-31 2016-10-31 A kind of POS terminal method of testing and system for running on PC ends
CN201610927930.0 2016-10-31

Publications (1)

Publication Number Publication Date
WO2018076905A1 true WO2018076905A1 (en) 2018-05-03

Family

ID=58392505

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/098247 WO2018076905A1 (en) 2016-10-31 2017-08-21 Pos terminal test method and system running on pc terminal

Country Status (2)

Country Link
CN (1) CN106547691A (en)
WO (1) WO2018076905A1 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106547691A (en) * 2016-10-31 2017-03-29 福建联迪商用设备有限公司 A kind of POS terminal method of testing and system for running on PC ends
CN107018523A (en) * 2017-04-13 2017-08-04 美的智慧家居科技有限公司 WIFI module method of testing and device
CN110069952B (en) * 2019-03-27 2021-07-13 百富计算机技术(深圳)有限公司 Terminal test method, device and system
CN110874296B (en) * 2019-11-12 2023-05-16 成都三零嘉微电子有限公司 System for downloading, testing and key injection of security chip or password card program
CN111881015B (en) * 2020-06-19 2024-02-02 无锡融卡科技有限公司 Application testing method and application testing device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104866421A (en) * 2015-05-08 2015-08-26 深圳市新国都技术股份有限公司 Testing method and testing system of POS terminal
CN105590378A (en) * 2015-11-24 2016-05-18 中国银联股份有限公司 POS terminal and testing method by using the same
CN106547691A (en) * 2016-10-31 2017-03-29 福建联迪商用设备有限公司 A kind of POS terminal method of testing and system for running on PC ends

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101126793B (en) * 2007-09-18 2010-05-19 东信和平智能卡股份有限公司 Intelligent card test system and method
CN201993747U (en) * 2011-04-13 2011-09-28 广州中大微电子有限公司 Non-contact intelligent card emulator
CN102495797A (en) * 2011-11-25 2012-06-13 大唐微电子技术有限公司 Smart card testing device and method
CN102567202A (en) * 2011-12-22 2012-07-11 广州中大微电子有限公司 Double-interface intelligent card simulator based on field programmable gata array (FPGA)
CN104199780A (en) * 2014-09-24 2014-12-10 福建联迪商用设备有限公司 Method and system testing POS application program
CN105721024B (en) * 2016-02-26 2021-06-15 努比亚技术有限公司 Card simulation method, terminal and system for near field wireless communication

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104866421A (en) * 2015-05-08 2015-08-26 深圳市新国都技术股份有限公司 Testing method and testing system of POS terminal
CN105590378A (en) * 2015-11-24 2016-05-18 中国银联股份有限公司 POS terminal and testing method by using the same
CN106547691A (en) * 2016-10-31 2017-03-29 福建联迪商用设备有限公司 A kind of POS terminal method of testing and system for running on PC ends

Also Published As

Publication number Publication date
CN106547691A (en) 2017-03-29

Similar Documents

Publication Publication Date Title
US10684848B1 (en) Blocking and non-blocking firmware update
WO2018076905A1 (en) Pos terminal test method and system running on pc terminal
US9778928B1 (en) Compressed firmware update
CN110111087B (en) System and method for authorizing transactions utilizing unpredictable passwords
AU2017245244B2 (en) Compressed firmware update
US10255464B2 (en) Systems and methods for determining clock rates for communicating with processing devices
EP3563328B1 (en) Partial data object acquisition and processing
CN104145285A (en) Method, device and secure element for conducting a secured financial transaction on a device
US10002268B1 (en) Identification of desired clock rate for an externally-driven processing device
WO2018144591A1 (en) Communication protocol speedup and step-down
US20160210617A1 (en) Method for processing transactional data, corresponding devices and computer programs
CN102932146B (en) Electronic signature tool and system
WO2018076906A1 (en) Method and system for testing pos terminal running on mobile phone terminal
CN111801671A (en) Secure end-to-end personalization of smart cards
US11710117B1 (en) Systems and methods for EMV terminal device testing using EMV card emulation
KR20110062620A (en) Financial cooperation services offer system using electronic wallet apparatus and financial cooperation services offer method thereby
CN202856755U (en) Electronic signature tool and system
US20180349885A1 (en) Mobile device, method, computer program product and issuance system for configuring ticket co-branded credit card based on tokenization technology
US11893581B1 (en) Tokenization for payment devices
KR101013162B1 (en) System for Relaying Application and Service Code for Card with ICC and MS
KR100971128B1 (en) Method for Network Card Based on Magnetic Stripe
KR20080102348A (en) Method for updating card terminals by using ic card
KR20080089539A (en) Ic card and method for updating(or registering) card terminals by using ic card
KR20080102347A (en) Method for registering card terminals by using ic card
KR20050007619A (en) Method for Creating and Relaying Application and Service Code for Card with ICC and MS

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

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

Country of ref document: EP

Kind code of ref document: A1