WO2018165950A1 - Emv implementation method and device - Google Patents

Emv implementation method and device Download PDF

Info

Publication number
WO2018165950A1
WO2018165950A1 PCT/CN2017/076973 CN2017076973W WO2018165950A1 WO 2018165950 A1 WO2018165950 A1 WO 2018165950A1 CN 2017076973 W CN2017076973 W CN 2017076973W WO 2018165950 A1 WO2018165950 A1 WO 2018165950A1
Authority
WO
WIPO (PCT)
Prior art keywords
label
tag
target
data
dynamic memory
Prior art date
Application number
PCT/CN2017/076973
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 深圳大趋智能科技有限公司
Priority to CN201780000963.3A priority Critical patent/CN107454953B/en
Priority to PCT/CN2017/076973 priority patent/WO2018165950A1/en
Publication of WO2018165950A1 publication Critical patent/WO2018165950A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0608Saving storage space on storage systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0629Configuration or reconfiguration of storage systems
    • G06F3/0631Configuration or reconfiguration of storage systems by allocating resources to storage systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0638Organizing or formatting or addressing of data
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/0671In-line storage system
    • G06F3/0673Single storage device
    • G06F3/0679Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5011Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
    • G06F9/5016Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals the resource being the memory

Definitions

  • the present invention relates to the field of EMV implementation, and in particular, to an implementation method and apparatus for an EMV.
  • TLV structure is a transmission structure, a buf, through T (tag) index, through L
  • the EMV standard is a bank card developed by the three major international bank card organizations - Europa y (European Card, which has been acquired by MasterCard), MasterCard (MasterCard) and Visa (Visa), from the magnetic stripe card to the smart IC card.
  • the technical standard is based on the financial payment standard of IC cards and has become a recognized global standard.
  • MPOS is a new payment product, which is connected with general intelligent mobile devices such as mobile phones and tablet computers, and transmits information through the Internet.
  • the external device performs operations such as card reading, password input, data encryption and decryption, and prompt information display.
  • the application of the payment function With the popularity of the mobile Internet, the process of using MPOS will be more convenient, the amount of MPOS will be larger and larger, and the cost pressure of the corresponding manufacturers will be greater and greater.
  • MPOS has become a trend with domestically produced less secure security chip solutions. However, due to the security chip storage space and memory limitations, many vendors have simplified EMV, and many functions have not been realized. It is also difficult for peers to be compatible with the non-contact fast payment methods of various card organizations. For the problem of resource shortage, a new type of EMV implementation method is urgently needed.
  • Disadvantage 1 The related TLV fixed length and variable length data add up to more than 100, different cards and different terminals have different TLV data, regardless of the chip resources, the program starts at the beginning The maximum memory is allocated for all TLV data first, or the maximum memory is defined, resulting in insufficient memory in the small-chip security chip solution.
  • Disadvantage 2 The EMV specification states that there is a need for a card, and the terminal needs to send the specified data list to the card. In order to reduce the processing of the data in the IC card, the specified data list is not TLV encoded, only A number of V values.
  • the list of TL (tag and length) used for V is pre-defined in the IC card, called Data Object List (DOL), ie the card will be fixed in format if needed
  • the DOL is transmitted to the terminal, and the terminal organizes the corresponding data in order according to the DOL request and returns it to the card.
  • the basic format of DOL is as follows: label 1 data length label 2 data length... label n data length, if the code processing is performed in the structure of pre-allocated memory, it is very troublesome to implement, need to remember each one
  • the position of the label in the structure, and the maximum length, in each place where the label needs to be used, the position in the structure must be read first, and then the data is retrieved from the structure, which has the problem of troublesome code maintenance.
  • Disadvantage 3 Different cards have the same definition of the same label, such as 9F79, the MasterCard organization uses as the protected data field 5, and the Visa organization indicates the available balance.
  • 9F79 the MasterCard organization uses as the protected data field 5
  • the Visa organization indicates the available balance.
  • Special labels are specially handled in special places. This program is not easy to read, the code is not easy to maintain, and it is easy to make mistakes.
  • the main object of the present invention is to provide an implementation method and device for an EMV, which aims to solve the problem of high memory resource occupancy.
  • the present invention provides an implementation method of an EMV, including,
  • the specific value includes a label identifier, a label minimum length, a label maximum length, a data format, and a supported card organization.
  • the step of allocating a dynamic memory for a plurality of tags includes:
  • the searching for the target label corresponding to the second label data to be written according to the label index table includes the following steps:
  • the second label data is written into the dynamic memory corresponding to the target label
  • the second tag data is written into the dynamic memory corresponding to the target tag.
  • the method includes
  • the present invention provides an apparatus for implementing an EMV, including
  • an initialization unit configured to clear original first tag data in the tag, and read a specific value of each tag
  • a memory allocation unit configured to allocate a piece of dynamic memory for multiple tags, and save the specific value of the tag to the corresponding dynamic memory
  • a table building unit configured to establish a label index table according to the specific value corresponding to the label and the label;
  • a data writing unit configured to search for a second to be written according to the label index table The target tag corresponding to the tag data, and the second tag data is written into the target tag.
  • the specific value includes a label identifier, a minimum length of the label, a maximum length of the label, and a data grid. And supported card organization.
  • the memory allocation unit includes a memory allocation module, and the memory allocation module is configured to allocate a piece of dynamic memory to the plurality of tags according to the specific value information of the tag, and record the use position of the dynamic memory.
  • the data writing unit further includes:
  • a first determining module configured to determine whether a label identifier of the target label exists in the label index table
  • a second determining module configured to determine, if the label of the target label exists, whether the card organization supported by the target label is a card organization corresponding to the second label data
  • the third determining module is configured to determine, if the card organization corresponding to the second tag data is written, whether the data format of the target tag is correct;
  • a fourth determining module configured to determine, if the data format of the target tag is correct, whether the tag identifier of the target tag exists in the tag index
  • a new module is configured to: if there is no label label of the target label in the label index, find an idle index, and create a new label as the target label;
  • a fifth determining module configured to determine whether there is sufficient storage space in the target tag to write the second tag data
  • the writing module is configured to write the second tag data into the dynamic memory corresponding to the target tag if the tag identifier of the target tag exists in the tag index or if there is sufficient storage space in the target tag.
  • the data writing unit further includes a copy module, where the copy module is configured to copy a specific value of the target tag in the tag index table into a tag index, where the tag index points to the dynamic memory. utilized location.
  • the beneficial effects of the present invention are: It is simple and convenient to access the tag data according to the tag, and the specific value and tag data of the specific tag can be obtained through the tag index, which is simple to read and maintain; by setting a piece of dynamic memory for multiple tags The way, multiple different tags share a dynamic memory. Compared to setting a maximum memory for each tag, the required memory resources are greatly reduced, and all the security chips of 4 8K and above can be realized. Complete EMV. Brief description of the drawing
  • FIG. 1 is a schematic flowchart of a method for implementing an EMV according to an embodiment of the present invention
  • FIG. 2 is a schematic flowchart of a method for implementing an EMV according to another embodiment of the present invention.
  • FIG. 3 is a specific flow diagram of a step of writing a corresponding second tag data for a target tag according to an embodiment of the invention.
  • FIG. 4 is a structural block diagram of an apparatus for implementing an EMV according to an embodiment of the present invention.
  • FIG. 5 is a structural block diagram of a data writing unit according to an embodiment of the present invention.
  • FIG. 6 is a structural block diagram of a tag index, a tag, and a dynamic memory according to an embodiment of the present invention.
  • first, second and the like in the present invention are used for the purpose of description only, and are not to be construed as indicating or implying their relative importance or implicitly indicating the number of technical features indicated.
  • features defining “first” and “second” may include at least one of the features, either explicitly or implicitly.
  • the technical solutions between the various embodiments may be combined with each other, but must be based on the realization of those skilled in the art, and when the combination of the technical solutions is contradictory or impossible to implement, it should be considered that the combination of the technical solutions does not exist. It is also within the scope of protection required by the present invention.
  • the present invention provides an implementation method of an EMV, including the following steps:
  • Sl l allocate a piece of dynamic memory for multiple tags, and save the specific value of the tag to the dynamic memory.
  • S12. Create a label index table according to specific values corresponding to the label and the label.
  • step S10 the label index is initialized, and the original first label data in each label is cleared.
  • the current label stores the number of the first label data as 0, and the current memory is used. Is 0.
  • the specific value of each label is read.
  • the specific values include label label, minimum label length, maximum label length, data format, and supported card organization.
  • a plurality of tags are jointly applied for a dynamic memory for writing/storing tag data, that is, multiple tags use the same piece of dynamic memory, and the specific size of the dynamic memory is smaller than that of each tag. Allocate a maximum memory sum size. When used normally, the same dynamic memory tag will not be used, that is, all the tags will not be written to the tag data. There are free tags in the tags of dynamic memory. This part of the tags does not occupy the size of dynamic memory. All dynamic memory can be used only for some tags.
  • step S12 a label index table is created, and all the specific values of the label, that is, the minimum length of the label, the maximum length of the label, the data format, and the data of the card organization are known from the label index table, and the reading is simple, and Easy to maintain.
  • step S13 after the label is initialized and the dynamic memory is allocated to the label, the second label data is written to the label index, where the second label data may be the label data in the terminal or may be obtained from the IC card.
  • the tag data which enables the writing of tag data of a specific tag, is straightforward.
  • Program reads can access data values through tags, rather than by accessing the structure, and define the card organization supported by each tag.
  • the implementation method of the EMV uses a dynamic memory application method to save various tag data, which greatly reduces the required storage resources and memory resources.
  • a complete EMV can be realized;
  • the program accesses the corresponding tag data through the tag, instead of accessing the structure, which can solve the reading, maintenance and compatibility issues, and defines the card organization supported by each tag.
  • the present invention provides an implementation method of an EMV, including the following steps:
  • S20 Clear the original first tag data in the tag, and read the specific value of each tag.
  • S2 allocates a piece of dynamic memory to the plurality of tags according to the specific value information of the tag, records the use position of the dynamic memory, and saves the specific value of the tag to the corresponding dynamic memory.
  • step S20 the label index is initialized, and the original first label data in each label is cleared.
  • the current label stores the number of the first label data as 0, and the current memory used position is also 0.
  • the specific value of each tag is read.
  • the specific values include label label, label minimum length, label maximum length, data format and supported card organization.
  • step S21 a plurality of tags are jointly applied for a dynamic memory for writing/storing tag data, that is, multiple tags use the same dynamic memory, and the specific size of the dynamic memory is smaller than that of each tag.
  • the size of a maximum memory sum when used normally, use the same block of dynamic memory Labels, not all of them will be used, that is, all the labels will not be written to the label data. Therefore, there are free labels in the labels belonging to the same dynamic memory. This part of the labels does not occupy dynamic memory. Size, all dynamic memory can be used only for some tags.
  • step S22 a label index table is created, and all the specific values of the label, that is, the minimum length of the label, the maximum length of the label, the data format, and the data of the card organization, etc., are known from the label index table.
  • step S23 after the label is initialized and the dynamic memory is allocated to the label, the label data is written to the label index, where the second label data may be the second label data in the terminal or may be obtained from the IC card.
  • the second tag data enables the writing of tag data of a specific tag to be simple and straightforward.
  • the program reads the tag data to access the tag data in the dynamic memory, rather than by accessing the structure, and defines the card organization supported by each tag.
  • step S23 specifically includes the following steps:
  • S237 Determine whether there is enough storage space in the target tag to write the second tag data.
  • step S234 write the second tag data into the dynamic memory corresponding to the target tag.
  • step S235 when it is determined that there is no label label of the target tag, an idle index is searched, and a new tag is created as a new target tag, the tag data is written, and then the target is obtained from the tag index table. The specific value of the tag is written to the tag index.
  • An index in which idle is an index of an unsaved label.
  • the label 9F79, the label 9F15, and the label 9F30 share a piece of dynamic memory.
  • the label 9F15 is directly determined by the label index.
  • the corresponding tag data is read from the dynamic memory, the whole structure is simple to program, convenient to maintain, not easy to make mistakes, and the memory resources occupied by the same are greatly reduced.
  • the implementation method of the EMV uses a dynamic memory application method to save various tag data, which greatly reduces the required storage resources and memory resources.
  • a complete EMV can be realized;
  • the program accesses the corresponding tag data through the tag, instead of accessing the structure, which can solve the reading, maintenance and compatibility issues, and defines the card organization supported by each tag.
  • FIG. 4 and FIG. 5 another embodiment of the present invention provides an apparatus for implementing an EMV, including: [0100] an initializing unit 10, configured to clear original first label data in a label, and read Take the specific value of each label; [0101] The memory allocating unit 20 is configured to allocate a piece of dynamic memory for the plurality of tags, and save the specific value of the tag to the dynamic memory;
  • the table building unit 30 is configured to establish a label index table according to the label and the specific value corresponding to the label; [0103] the data writing unit 40 is configured to search for the to-be-written according to the label index table. The target tag corresponding to the second tag data, and the second tag data is written into the target tag.
  • the label index is initialized, and the original first label data in each label is cleared.
  • the current label stores the number of the first label data as 0, and the current memory is used. Is 0.
  • the minimum length of the label the maximum length of the label, the data format, and the supported card organization.
  • a plurality of tags are jointly applied for a piece of dynamic memory for writing/storing tag data, that is, multiple tags use the same piece of dynamic memory, and the specific size of the dynamic memory is smaller than that of each tag.
  • the size of a maximum memory sum is separately allocated.
  • the same dynamic memory label will not be used, that is, all the labels will not be written to the label data.
  • dynamic memory can be A, 1-4
  • A is less than B.
  • a label index table is established, and all the specific values of the label can be known from the label index table, that is, the minimum length of the label, the maximum length of the label, the data format, and the data of the card organization, etc., and the reading is simple. And easy to maintain.
  • the second label data is written to the label, wherein the second label data may be the second label data in the terminal. It is the second tag data obtained from the IC card, and the tag data of the specific tag is written, which is simple. Directly.
  • the program reads the tag data to access the tag data, rather than by accessing the structure, and defines the card organization supported by each tag.
  • the memory allocation unit 20 includes a memory allocation module that allocates a piece of dynamic memory for a plurality of tags according to the specific value information of the tag, and records the use position of the dynamic memory.
  • the data writing unit 40 further includes the following modules:
  • the first determining module 41 is configured to determine whether a label identifier of the target label exists in the label index table.
  • the second determining module 42 is configured to determine, if the label of the target label exists, whether the card organization supported by the target label is a card organization corresponding to the write label data.
  • the third determining module 43 is configured to determine whether the data format of the target tag is correct if the card organization corresponding to the second tag data is written.
  • the fourth determining module 44 is configured to determine, if the data format of the target tag is correct, whether the tag identifier of the target tag exists in the tag index.
  • a new module 45 is configured to find a free index if there is no label label of the target label in the label index.
  • the fifth determining module 46 is configured to determine whether there is enough storage space in the target tag to write the second tag data.
  • the writing module 48 is configured to write the second tag data into the dynamic memory corresponding to the target tag if there is sufficient storage space in the target tag or if the tag identifier of the target tag exists in the tag index.
  • the copy module 47 is configured to copy the specific value of the target tag in the tag index table to the tag index, where the tag index points to the location of the dynamic memory.
  • the first determining module 41, the second determining module 42, the third determining module 43, the fourth determining module 44, and the fifth determining module 46 are determined to enter the next determining module after the former is determined, Step by step to judge, if one of the modules is not satisfied, the judgment process ends, the corresponding second tag data is not written, and the latter judgment module is performed under the premise that the condition of the previous judgment module is satisfied.
  • An apparatus for implementing an EMV which uses a dynamic memory application method to save various tag data, greatly reduces required storage resources and memory resources, and now all security chips of 48K and above can be used.
  • a complete EMV is implemented; the program accesses the corresponding tag data through tags, rather than accessing the structure, which can solve reading, maintenance and compatibility issues, and defines the card organization supported by each tag.

Abstract

Disclosed are an EMV implementation method and device, the method comprising: clearing original tag data within tags, and reading specific values of all the tags; allocating dynamic memory for the plurality of tags; according to the tags and the specific values corresponding to the tags, establishing a tag index table; according to the tag index table, searching for a target tag corresponding to tag data to be written, and writing the tag data into the target tag to use the dynamic memory. Access and maintenance are simple, and the memory requirements are low.

Description

技术领域  Technical field
[0001] 本发明涉及到 EMV实现领域, 特别是涉及到一种 EMV的实现方法及装置。  [0001] The present invention relates to the field of EMV implementation, and in particular, to an implementation method and apparatus for an EMV.
背景技术  Background technique
[0002] EMV采用 TLV(TLV结构是一种传输结构, 一个 buf, 通过 T (tag) 索引, 通过 L  [0002] EMV uses TLV (TLV structure is a transmission structure, a buf, through T (tag) index, through L
(len) 指定后续长度, 通过 V (value) 保存指定长度格式来存储数据, 如卡号 、 磁道数据, 卡片有效期、 证书等。 EMV标准是由国际三大银行卡组织 --Europa y (欧陆卡, 已被万事达收购) 、 MasterCard (万事达卡) 和 Visa (维萨) 共同发 起制定的银行卡从磁条卡向智能 IC卡转移的技术标准, 是基于 IC卡的金融支付 标准, 已成为公认的全球统一标准。  (len) Specify the subsequent length, save the data by V (value) to save the specified length format, such as card number, track data, card expiration date, certificate, etc. The EMV standard is a bank card developed by the three major international bank card organizations - Europa y (European Card, which has been acquired by MasterCard), MasterCard (MasterCard) and Visa (Visa), from the magnetic stripe card to the smart IC card. The technical standard is based on the financial payment standard of IC cards and has become a recognized global standard.
[0003] MPOS是新型支付产品, 与手机、 平板电脑等通用智能移动设备进行连接, 通 过互联网进行信息传输, 外接设备完成卡片读取、 密码输入、 数据加解密、 提 示信息显示等操作, 从而实现支付功能的应用。 随着移动互联网的普及, 用户 使用 MPOS的过程将更加便捷, MPOS的量也越来越大, 相对应的制造商的成本 压力也越来越大。 采用国产的资源比较少的安全芯片方案制造 MPOS已成为趋势 , 但是由于安全芯片存储空间以及内存的限制, 很多厂商对 EMV进行了简化, 很多功能未能实现。 同吋要兼容各个卡组织的非接触式快捷支付方式也比较困 难, 针对资源紧张的问题, 急需一种新型的 EMV实现方法。  [0003] MPOS is a new payment product, which is connected with general intelligent mobile devices such as mobile phones and tablet computers, and transmits information through the Internet. The external device performs operations such as card reading, password input, data encryption and decryption, and prompt information display. The application of the payment function. With the popularity of the mobile Internet, the process of using MPOS will be more convenient, the amount of MPOS will be larger and larger, and the cost pressure of the corresponding manufacturers will be greater and greater. MPOS has become a trend with domestically produced less secure security chip solutions. However, due to the security chip storage space and memory limitations, many vendors have simplified EMV, and many functions have not been realized. It is also difficult for peers to be compatible with the non-contact fast payment methods of various card organizations. For the problem of resource shortage, a new type of EMV implementation method is urgently needed.
[0004] 现有的 EMV技术存在以下缺点:  [0004] Existing EMV technologies have the following disadvantages:
[0005] 缺点一: 相关的 TLV定长与不定长数据加起来有 100多个, 不同的卡片以及不 同的终端都有不同的 TLV数据, 不考虑芯片资源的情况下程序在幵始的吋候会对 所有的 TLV数据先分配最大内存, 或者定义好最大内存, 导致在小内存的安全芯 片方案里内存不足。  [0005] Disadvantage 1: The related TLV fixed length and variable length data add up to more than 100, different cards and different terminals have different TLV data, regardless of the chip resources, the program starts at the beginning The maximum memory is allocated for all TLV data first, or the maximum memory is defined, resulting in insufficient memory in the small-chip security chip solution.
[0006] 缺点二: EMV规范中说明有吋应卡片的需求, 终端需要将指定的数据列表发送 给卡片, 为了减少 IC卡内对这些数据的处理, 这个指定数据列表不进行 TLV编码 , 只包含若干 V值。 而 V对用的 TL (标签和长度)列表则在 IC卡中预先定义, 称为 数据对象列表 (DOL), 即卡片在需要吋将固定格式的 [0006] Disadvantage 2: The EMV specification states that there is a need for a card, and the terminal needs to send the specified data list to the card. In order to reduce the processing of the data in the IC card, the specified data list is not TLV encoded, only A number of V values. The list of TL (tag and length) used for V is pre-defined in the IC card, called Data Object List (DOL), ie the card will be fixed in format if needed
DOL传给终端, 终端根据 DOL要求, 按顺序组织对应的数据返回给卡片。 DOL 的基本格式如下:标签 1数据长度标签 2数据长度 ......标签 n数据长度, 如果采用 预先分配内存的结构体方式进行代码处理的话, 实现起来就很麻烦, 需要记住 每一个标签在结构体里的位置, 以及最大长度, 在每一个需要使用标签的地方 都要先读取到在结构体里的位置, 然后再从结构体里获取数据, 存在代码维护 麻烦的问题。  The DOL is transmitted to the terminal, and the terminal organizes the corresponding data in order according to the DOL request and returns it to the card. The basic format of DOL is as follows: label 1 data length label 2 data length... label n data length, if the code processing is performed in the structure of pre-allocated memory, it is very troublesome to implement, need to remember each one The position of the label in the structure, and the maximum length, in each place where the label needs to be used, the position in the structure must be read first, and then the data is retrieved from the structure, which has the problem of troublesome code maintenance.
[0007] 缺点三: 不同的卡组织相同的标签有不同的定义, 如 9F79, 万事达卡组织用作 为保护的数据域 5, 维萨卡组织表示可用余额, 针对这些特殊的标签, 一般的处 理方法是特殊标签在特殊的地方特别处理, 这样做程序不好阅读, 代码不容易 维护, 也容易出错。  [0007] Disadvantage 3: Different cards have the same definition of the same label, such as 9F79, the MasterCard organization uses as the protected data field 5, and the Visa organization indicates the available balance. For these special labels, the general processing method Special labels are specially handled in special places. This program is not easy to read, the code is not easy to maintain, and it is easy to make mistakes.
技术问题  technical problem
[0008] 本发明的主要目的为提供一种 EMV的实现方法及装置, 旨在解决内存资源占用 率高的问题。  The main object of the present invention is to provide an implementation method and device for an EMV, which aims to solve the problem of high memory resource occupancy.
问题的解决方案  Problem solution
技术解决方案  Technical solution
[0009] 本发明提出一种 EMV的实现方法, 包括, [0009] The present invention provides an implementation method of an EMV, including,
[0010] 清空标签内的原始的第一标签数据, 并读取每一个标签的具体值;  [0010] clearing the original first tag data in the tag, and reading the specific value of each tag;
[0011] 为多个所述标签分配一块动态内存, 并将标签的具体值保存到动态内存中; [0011] allocating a piece of dynamic memory to the plurality of tags, and saving the specific value of the tag to the dynamic memory;
[0012] 根据所述标签和所述标签对应的具体值, 建立标签索引表; [0012] establishing a label index table according to the specific value corresponding to the label and the label;
[0013] 根据所述标签索引表査找待写入的第二标签数据对应的目标标签, 将所述第二 标签数据写入所述目标标签内。  [0013] searching for a target tag corresponding to the second tag data to be written according to the tag index table, and writing the second tag data into the target tag.
[0014] 进一步地, 所述具体值包括标签标示、 标签最小长度、 标签最大长度、 数据格 式和支持的卡组织。 [0014] Further, the specific value includes a label identifier, a label minimum length, a label maximum length, a data format, and a supported card organization.
[0015] 进一步地, 所述为多个标签分配一块动态内存步骤, 包括, [0015] Further, the step of allocating a dynamic memory for a plurality of tags includes:
[0016] 根据所述标签的具体值信息为多个所述标签分配一块动态内存, 并记录动态内 存的使用位置。 [0016] assigning a piece of dynamic memory to the plurality of tags according to the specific value information of the tag, and recording the use location of the dynamic memory.
[0017] 进一步地, 所述根据所述标签索引表査找待写入的第二标签数据对应的目标标 签, 将所述第二标签数据写入所述目标标签内步骤, 包括以下步骤: [0017] Further, the searching for the target label corresponding to the second label data to be written according to the label index table The step of writing the second tag data into the target tag includes the following steps:
[0018] 判断标签索弓 I表中是否存在目标标签的标签标示;  [0018] determining whether the tag label of the target tag exists in the tag cable I table;
[0019] 若存在目标标签的标签标示, 则判断目标标签支持的卡组织是否为第二标签数 据对应的卡组织;  [0019] if there is a label indication of the target label, it is determined whether the card organization supported by the target label is a card organization corresponding to the second label data;
[0020] 若为写入第二标签数据对应的卡组织, 则判断目标标签的数据格式是否正确; [0021] 若目标标签的数据格式正确, 则判断标签索引中是否存在目标标签的标签标示  [0020] If the card organization corresponding to the second tag data is written, it is determined whether the data format of the target tag is correct; [0021] if the data format of the target tag is correct, it is determined whether the tag identifier of the target tag exists in the tag index.
[0022] 若标签索引中存在目标标签的标签标示, 则将第二标签数据写入目标标签对应 的动态内存中; [0022] if the label identifier of the target label exists in the label index, the second label data is written into the dynamic memory corresponding to the target label;
[0023] 若标签索引中不存在目标标签的标签标示, 寻找空闲的索引, 建立新的标签作 为目标标签;  [0023] If the tag identifier of the target tag does not exist in the tag index, look for an idle index, and create a new tag as the target tag;
[0024] 判断目标标签中是否存在足够的储存空间来写入第二标签数据;  [0024] determining whether there is sufficient storage space in the target tag to write the second tag data;
[0025] 若目标标签中存在足够的储存空间, 将第二标签数据写入目标标签对应的动态 内存中。 [0025] If there is sufficient storage space in the target tag, the second tag data is written into the dynamic memory corresponding to the target tag.
[0026] 进一步地, 所述将第二标签数据写入目标标签对应的动态内存中步骤之后, 包 括,  [0026] Further, after the step of writing the second tag data into the dynamic memory corresponding to the target tag, the method includes
[0027] 将所述标签索引表中目标标签的具体值拷贝到标签索引中, 所述标签索引指向 动态内存的使用位置。  [0027] copying the specific value of the target tag in the tag index table into the tag index, where the tag index points to the use position of the dynamic memory.
[0028]  [0028]
[0029] 本发明提出了一种 EMV的实现装置, 包括,  [0029] The present invention provides an apparatus for implementing an EMV, including
[0030] 初始化单元, 用于清空标签内的原始的第一标签数据, 并读取每一个标签的具 体值;  [0030] an initialization unit, configured to clear original first tag data in the tag, and read a specific value of each tag;
[0031] 内存分配单元, 用于为多个标签分配一块动态内存, 并将标签的具体值保存到 对应的动态内存中;  [0031] a memory allocation unit, configured to allocate a piece of dynamic memory for multiple tags, and save the specific value of the tag to the corresponding dynamic memory;
[0032] 建表单元, 用于根据所述标签和所述标签对应的具体值, 建立标签索引表; [0033] 数据写入单元, 用于根据所述标签索引表査找待写入的第二标签数据对应的目 标标签, 将所述第二标签数据写入所述目标标签内。  [0032] a table building unit, configured to establish a label index table according to the specific value corresponding to the label and the label; [0033] a data writing unit, configured to search for a second to be written according to the label index table The target tag corresponding to the tag data, and the second tag data is written into the target tag.
[0034] 进一步地, 所述具体值包括标签标示、 标签最小长度、 标签最大长度、 数据格 式和支持的卡组织。 [0034] Further, the specific value includes a label identifier, a minimum length of the label, a maximum length of the label, and a data grid. And supported card organization.
[0035] 进一步地, 所述内存分配单元包括内存分配模块, 所述内存分配模块用于根据 所述标签的具体值信息为多个所述标签分配一块动态内存, 并记录动态内存的 使用位置。  [0035] Further, the memory allocation unit includes a memory allocation module, and the memory allocation module is configured to allocate a piece of dynamic memory to the plurality of tags according to the specific value information of the tag, and record the use position of the dynamic memory.
[0036] 进一步地, 所述数据写入单元还包括有:  [0036] Further, the data writing unit further includes:
[0037] 第一判断模块, 用于判断标签索引表中是否存在目标标签的标签标示;  [0037] a first determining module, configured to determine whether a label identifier of the target label exists in the label index table;
[0038] 第二判断模块, 用于若存在目标标签的标签标示, 则判断目标标签支持的卡组 织是否为第二标签数据对应的卡组织;  [0038] a second determining module, configured to determine, if the label of the target label exists, whether the card organization supported by the target label is a card organization corresponding to the second label data;
[0039] 第三判断模块, 用于若为写入第二标签数据对应的卡组织, 则判断目标标签的 数据格式是否正确; [0039] The third determining module is configured to determine, if the card organization corresponding to the second tag data is written, whether the data format of the target tag is correct;
[0040] 第四判断模块, 用于若目标标签的数据格式正确, 则判断标签索引中是否存在 目标标签的标签标示;  [0040] a fourth determining module, configured to determine, if the data format of the target tag is correct, whether the tag identifier of the target tag exists in the tag index;
[0041] 新建模块, 用于若标签索引中不存在目标标签的标签标示, 寻找空闲的索引, 建立新的标签作为目标标签;  [0041] a new module is configured to: if there is no label label of the target label in the label index, find an idle index, and create a new label as the target label;
[0042] 第五判断模块, 用于判断目标标签中是否存在足够的储存空间来写入第二标签 数据; [0042] a fifth determining module, configured to determine whether there is sufficient storage space in the target tag to write the second tag data;
[0043] 写入模块, 若标签索引中存在目标标签的标签标示或者若目标标签中存在足够 的储存空间, 用于将第二标签数据写入目标标签对应的动态内存中。  [0043] The writing module is configured to write the second tag data into the dynamic memory corresponding to the target tag if the tag identifier of the target tag exists in the tag index or if there is sufficient storage space in the target tag.
[0044] 进一步地, 所述数据写入单元还包括有拷贝模块, 所述拷贝模块用于将所述标 签索引表中目标标签的具体值拷贝到标签索引中, 所述标签索引指向动态内存 的使用位置。 [0044] Further, the data writing unit further includes a copy module, where the copy module is configured to copy a specific value of the target tag in the tag index table into a tag index, where the tag index points to the dynamic memory. utilized location.
发明的有益效果  Advantageous effects of the invention
有益效果  Beneficial effect
[0045] 本发明的有益效果是: 根据标签来访问标签数据简单方便, 通过标签索引就可 以获取到具体的标签的具体值和标签数据, 阅读和维护简单; 通过为多个标签 设置一块动态内存的方式, 多个不同的标签共用一个动态内存, 相比于为每一 个标签单独设置一个最大内存, 大大缩减了所需内存资源, 能够在现在所有的 4 8K及以上内存的安全芯片都可以实现完整的 EMV。 对附图的简要说明 [0045] The beneficial effects of the present invention are: It is simple and convenient to access the tag data according to the tag, and the specific value and tag data of the specific tag can be obtained through the tag index, which is simple to read and maintain; by setting a piece of dynamic memory for multiple tags The way, multiple different tags share a dynamic memory. Compared to setting a maximum memory for each tag, the required memory resources are greatly reduced, and all the security chips of 4 8K and above can be realized. Complete EMV. Brief description of the drawing
附图说明  DRAWINGS
[0046] 图 1为本发明一实施例 EMV的实现方法的流程示意图;  1 is a schematic flowchart of a method for implementing an EMV according to an embodiment of the present invention;
[0047] 图 2为本发明另一实施例 EMV的实现方法的流程示意图; 2 is a schematic flowchart of a method for implementing an EMV according to another embodiment of the present invention;
[0048] 图 3为本发明一实施例为目标标签写入对应的第二标签数据步骤的具体流程示 3 is a specific flow diagram of a step of writing a corresponding second tag data for a target tag according to an embodiment of the invention.
[0049] 图 4为本发明一实施例 EMV的实现装置的结构框图; 4 is a structural block diagram of an apparatus for implementing an EMV according to an embodiment of the present invention;
[0050] 图 5为本发明一实施例数据写入单元的结构框图; 5 is a structural block diagram of a data writing unit according to an embodiment of the present invention;
[0051] 图 6为本发明一具体实施例标签索引、 标签和动态内存的结构框图。 6 is a structural block diagram of a tag index, a tag, and a dynamic memory according to an embodiment of the present invention.
[0052] [0052]
[0053] 本发明目的的实现、 功能特点及优点将结合实施例, 参照附图做进一步说明。 [0053] The implementation, functional features, and advantages of the present invention will be further described in conjunction with the embodiments.
实施该发明的最佳实施例  BEST MODE FOR CARRYING OUT THE INVENTION
本发明的最佳实施方式  BEST MODE FOR CARRYING OUT THE INVENTION
[0054] 应当理解, 此处所描述的具体实施例仅仅用以解释本发明, 并不用于限定本发 明。  The specific embodiments described herein are intended to be illustrative only and not to limit the invention.
[0055] 在本发明中涉及"第一"、 "第二"等的描述仅用于描述目的, 而不能理解为指示 或暗示其相对重要性或者隐含指明所指示的技术特征的数量。 由此, 限定有 "第 一"、 "第二 "的特征可以明示或者隐含地包括至少一个该特征。 另外, 各个实施 例之间的技术方案可以相互结合, 但是必须是以本领域普通技术人员能够实现 为基础, 当技术方案的结合出现相互矛盾或无法实现吋应当认为这种技术方案 的结合不存在, 也不在本发明要求的保护范围之内。  The descriptions of "first", "second" and the like in the present invention are used for the purpose of description only, and are not to be construed as indicating or implying their relative importance or implicitly indicating the number of technical features indicated. Thus, features defining "first" and "second" may include at least one of the features, either explicitly or implicitly. In addition, the technical solutions between the various embodiments may be combined with each other, but must be based on the realization of those skilled in the art, and when the combination of the technical solutions is contradictory or impossible to implement, it should be considered that the combination of the technical solutions does not exist. It is also within the scope of protection required by the present invention.
[0056] 本技术领域技术人员可以理解, 除非特意声明, 这里使用的单数形式"一"、 " 一个"、 "所述 "和"该"也可包括复数形式。 应该进一步理解的是, 本实用新型的 说明书中使用的措辞"包括"是指存在所述特征、 整数、 步骤、 操作、 元件和 /或 组件, 但是并不排除存在或添加一个或多个其他特征、 整数、 步骤、 操作、 元 件、 组件和 /或它们的组。 这里使用的措辞"和 /或"包括一个或更多个相关联的列 出项的全部或任一单元和全部组合。  [0056] The singular forms "a", "an", "the" It will be further understood that the phrase "comprising", used in the <RTI ID=0.0> </RTI> <RTIgt; </ RTI> <RTIgt; </ RTI> the meaning of the present invention means that the features, integers, steps, operations, components and/or components are present, but one or more other features are not excluded or added. , integers, steps, operations, components, components, and/or groups thereof. The phrase "and/or" used herein includes all or any of the elements and all combinations of one or more of the associated listed.
[0057] 本技术领域技术人员可以理解, 除非另外定义, 这里使用的所有术语 (包括技 术术语和科学术语) , 具有与本实用新型所属领域中的普通技术人员的一般理 解相同的意义。 还应该理解的是, 诸如通用字典中定义的那些术语, 应该被理 解为具有与现有技术的上下文中的意义一致的意义, 并且除非像这里一样被特 定定义, 否则不会用理想化或过于正式的含义来解释。 [0057] Those skilled in the art can understand that all terms (including techniques) used herein are unless otherwise defined. The terminology and scientific terminology have the same meaning as commonly understood by one of ordinary skill in the art to which the invention pertains. It should also be understood that terms such as those defined in a general dictionary should be understood to have meaning consistent with the meaning in the context of the prior art, and will not be idealized or excessive unless specifically defined as here. The formal meaning is explained.
[0058]  [0058]
[0059] 参照图 1, 本发明提出一种 EMV的实现方法, 包括以下步骤:  [0059] Referring to FIG. 1, the present invention provides an implementation method of an EMV, including the following steps:
[0060] S10、 清空标签内的原始的第一标签数据, 并读取每一个标签的具体值。 [0060] S10. Clear the original first tag data in the tag, and read the specific value of each tag.
[0061] Sl l、 为多个标签分配一块动态内存, 并将标签的具体值保存到动态内存中。 [0061] Sl l, allocate a piece of dynamic memory for multiple tags, and save the specific value of the tag to the dynamic memory.
[0062] S12、 根据标签和标签对应的具体值, 建立标签索引表。 [0062] S12. Create a label index table according to specific values corresponding to the label and the label.
[0063] S13、 根据所述标签索引表査找待写入的第二标签数据对应的目标标签, 将所 述第二标签数据写入所述目标标签内。  [0063] S13. Search for a target tag corresponding to the second tag data to be written according to the tag index table, and write the second tag data into the target tag.
[0064] 对于步骤 S10, 初始化标签索引吋, 清空每一个标签内的原始的第一标签数据 , 在初始化完成之后, 当前标签存储有第一标签数据的个数为 0, 当前内存被使 用位置也为 0。 初始化后, 再读取每个标签的具体值, 具体值包括有标签标示、 标签最小长度、 标签最大长度、 数据格式和支持的卡组织。  [0064] In step S10, the label index is initialized, and the original first label data in each label is cleared. After the initialization is completed, the current label stores the number of the first label data as 0, and the current memory is used. Is 0. After initialization, the specific value of each label is read. The specific values include label label, minimum label length, maximum label length, data format, and supported card organization.
[0065] 对于步骤 Sl l, 为多个标签共同申请一块动态内存, 用于写入 /保存标签数据, 也就是多个标签使用同一块动态内存, 该动态内存的具体大小小于为各个标签 各自单独分配一个最大内存总和的大小, 当正常使用吋, 使用同一块动态内存 的标签, 不会全部被使用也就是不会出现所有的标签都写入了标签数据的情况 , 此吋, 相当于属于同一动态内存的标签中存在空闲的标签, 这部分标签不占 用动态内存的大小, 全部动态内存可以只给部分标签使用。 例如, 当 1、 2、 3、 4号标签共同使用一块动态内存, 具体使用吋, 因为 1-4号标签不会全部被使用, 因此在分配动态内存吋, 动态内存可以为 A, A小于 1-4号标签各自可以分配的最 大内存的总和 B, 当使用同一块动态内存的标签数量增加吋, A与 B的差距也会 增大。  [0065] For step S1 l, a plurality of tags are jointly applied for a dynamic memory for writing/storing tag data, that is, multiple tags use the same piece of dynamic memory, and the specific size of the dynamic memory is smaller than that of each tag. Allocate a maximum memory sum size. When used normally, the same dynamic memory tag will not be used, that is, all the tags will not be written to the tag data. There are free tags in the tags of dynamic memory. This part of the tags does not occupy the size of dynamic memory. All dynamic memory can be used only for some tags. For example, when labels 1, 2, 3, and 4 use a piece of dynamic memory together, the specific use of 吋, because 1-4 labels will not be used, so after allocating dynamic memory, dynamic memory can be A, A is less than 1 - The sum of the maximum memory that can be allocated by each of the -4 tags. When the number of tags using the same piece of dynamic memory increases, the difference between A and B also increases.
[0066] 所以不同于现有为每一个标签定义好最大内存的方案, 可以做到在内存资源有 限的前提下, 为每一个标签分配到足够使用的内存大小, 可以在现有所有的 48K 及以上内存的安全芯片中实现 EMV, 降低 EMV成本。 [0067] 对于步骤 S12, 建立标签索引表, 从标签索引表中就可以知道标签所有的具体 值, 也就是的标签最小长度、 标签最大长度, 数据格式以及所属卡组织等数据 , 阅读简单, 且便于维护。 [0066] Therefore, unlike the existing scheme for defining the maximum memory for each tag, it is possible to allocate enough memory for each tag under the premise of limited memory resources, and it can be used in all existing 48K and EMV is implemented in the above memory security chip to reduce EMV cost. [0067] For step S12, a label index table is created, and all the specific values of the label, that is, the minimum length of the label, the maximum length of the label, the data format, and the data of the card organization are known from the label index table, and the reading is simple, and Easy to maintain.
[0068] 对于步骤 S13, 在初始化标签, 为标签分配好动态内存之后, 向标签索引写入 第二标签数据, 其中第二标签数据可以是终端内的标签数据也可以是从 IC卡中 获取到的标签数据, 实现了具体标签的标签数据的写入简单直接。  [0068] In step S13, after the label is initialized and the dynamic memory is allocated to the label, the second label data is written to the label index, where the second label data may be the label data in the terminal or may be obtained from the IC card. The tag data, which enables the writing of tag data of a specific tag, is straightforward.
[0069] 程序读取可以通过标签来访问数据值, 而不是通过访问结构体的方式, 同吋定 义了每个标签支持的卡组织。  [0069] Program reads can access data values through tags, rather than by accessing the structure, and define the card organization supported by each tag.
[0070] EMV的实现方法, 使用动态内存申请的方式保存各种标签数据, 大大缩减了所 需的存储资源及内存资源, 在现在所有的 48K及以上内存的安全芯片都可以实现 完整的 EMV; 程序通过标签来访问对应的标签数据, 而不是通过访问结构体的 方式, 可以解决阅读, 维护及兼容性问题, 同吋定义了每个标签支持的卡组织  [0070] The implementation method of the EMV uses a dynamic memory application method to save various tag data, which greatly reduces the required storage resources and memory resources. In all current security chips of 48K and above, a complete EMV can be realized; The program accesses the corresponding tag data through the tag, instead of accessing the structure, which can solve the reading, maintenance and compatibility issues, and defines the card organization supported by each tag.
[0071] [0071]
[0072] 参照图 2和图 3, 本发明提出一种 EMV的实现方法, 包括以下步骤:  [0072] Referring to FIG. 2 and FIG. 3, the present invention provides an implementation method of an EMV, including the following steps:
[0073] S20、 清空标签内的原始的第一标签数据, 并读取每一个标签的具体值。 [0073] S20. Clear the original first tag data in the tag, and read the specific value of each tag.
[0074] S2 根据所述标签的具体值信息为多个所述标签分配一块动态内存, 记录动 态内存的使用位置, 并将标签的具体值保存到对应的动态内存。 [0074] S2 allocates a piece of dynamic memory to the plurality of tags according to the specific value information of the tag, records the use position of the dynamic memory, and saves the specific value of the tag to the corresponding dynamic memory.
[0075] S22、 根据标签和标签对应的具体值, 建立标签索引表。 [0075] S22. Create a label index table according to specific values corresponding to the label and the label.
[0076] S23、 根据所述标签索引表査找待写入的第二标签数据对应的目标标签, 将所 述第二标签数据写入所述目标标签内。  [0076] S23. Search for a target tag corresponding to the second tag data to be written according to the tag index table, and write the second tag data into the target tag.
[0077] 对于步骤 S20, 初始化标签索引吋, 清空每一个标签内原始的第一标签数据, 在初始化完成之后, 当前标签存储有第一标签数据的个数为 0, 当前内存被使用 位置也为 0。 初始化后, 再读取每个标签的具体值, 具体值包括有标签标示、 标 签最小长度、 标签最大长度、 数据格式和支持的卡组织。  [0077] In step S20, the label index is initialized, and the original first label data in each label is cleared. After the initialization is completed, the current label stores the number of the first label data as 0, and the current memory used position is also 0. After initialization, the specific value of each tag is read. The specific values include label label, label minimum length, label maximum length, data format and supported card organization.
[0078] 对于步骤 S21, 为多个标签共同申请一块动态内存, 用于写入 /保存标签数据, 也就是多个标签使用同一块动态内存, 该动态内存的具体大小小于为各个标签 各自单独分配一个最大内存总和的大小, 当正常使用吋, 使用同一块动态内存 的标签, 不会全部被使用也就是不会出现所有的标签都写入了标签数据的情况 , 此吋, 相当于属于同一动态内存的标签中存在空闲的标签, 这部分标签不占 用动态内存的大小, 全部动态内存可以只给部分标签使用。 例如, 当 1、 2、 3、 4号标签共同使用一块动态内存, 具体使用吋, 因为 1-4号标签不会全部被使用, 因此在分配动态内存吋, 动态内存可以为 A, A小于 1-4号标签各自可以分配的最 大内存的总和 B, 当使用同一块动态内存的标签数量增加吋, A与 B的差距也会 增大。 [0078] In step S21, a plurality of tags are jointly applied for a dynamic memory for writing/storing tag data, that is, multiple tags use the same dynamic memory, and the specific size of the dynamic memory is smaller than that of each tag. The size of a maximum memory sum, when used normally, use the same block of dynamic memory Labels, not all of them will be used, that is, all the labels will not be written to the label data. Therefore, there are free labels in the labels belonging to the same dynamic memory. This part of the labels does not occupy dynamic memory. Size, all dynamic memory can be used only for some tags. For example, when labels 1, 2, 3, and 4 use a piece of dynamic memory together, the specific use of 吋, because 1-4 labels will not be used, so after allocating dynamic memory, dynamic memory can be A, A is less than 1 - The sum of the maximum memory that can be allocated by each of the -4 tags. When the number of tags using the same piece of dynamic memory increases, the difference between A and B also increases.
[0079] 所以不同于现有为每一个标签定义好最大内存的方案, 可以做到在内存资源有 限的前提下, 为每一个标签分配到足够使用的内存大小, 可以在现有所有的 48K 及以上内存的安全芯片中实现 EMV, 降低 EMV成本。  [0079] Therefore, unlike the existing scheme for defining the maximum memory for each tag, it is possible to allocate sufficient memory size for each tag under the premise of limited memory resources, and it can be used in all existing 48K and EMV is implemented in the above memory security chip to reduce EMV cost.
[0080] 对于步骤 S22, 建立标签索引表, 从标签索引表中就可以知道标签所有的具体 值, 也就是的标签最小长度、 标签最大长度, 数据格式以及所属卡组织等数据[0080] For step S22, a label index table is created, and all the specific values of the label, that is, the minimum length of the label, the maximum length of the label, the data format, and the data of the card organization, etc., are known from the label index table.
, 阅读简单, 且便于维护。 Easy to read and easy to maintain.
[0081] 对于步骤 S23, 在初始化标签, 为标签分配好动态内存之后, 向标签索引写入 标签数据, 其中第二标签数据可以是终端内的第二标签数据也可以是从 IC卡中 获取到的第二标签数据, 实现了具体标签的标签数据的写入简单直接。 [0081] In step S23, after the label is initialized and the dynamic memory is allocated to the label, the label data is written to the label index, where the second label data may be the second label data in the terminal or may be obtained from the IC card. The second tag data enables the writing of tag data of a specific tag to be simple and straightforward.
[0082] 程序读取可以通过标签来访问动态内存中的标签数据, 而不是通过访问结构体 的方式, 同吋定义了每个标签支持的卡组织。  [0082] The program reads the tag data to access the tag data in the dynamic memory, rather than by accessing the structure, and defines the card organization supported by each tag.
[0083] 参考图 3, 步骤 S23具体包括以下步骤: [0083] Referring to FIG. 3, step S23 specifically includes the following steps:
[0084] S231、 判断标签索引表中是否存在目标标签的标签标示。 [0084] S231. Determine whether a label identifier of the target label exists in the label index table.
[0085] 若存在目标标签的标签标示, 则进行 S232: 判断目标标签支持的卡组织是否为 第二标签数据对应的卡组织。  [0085] If there is a label indication of the target tag, proceed to S232: determine whether the card organization supported by the target tag is a card organization corresponding to the second tag data.
[0086] 若为写入第二标签数据对应的卡组织, 则进行 S233: 判断目标标签的数据格式 是否正确。 [0086] If the card organization corresponding to the second tag data is written, proceed to S233: determine whether the data format of the target tag is correct.
[0087] 若目标标签的数据格式正确, 则进行 S235: 判断标签索引中是否存在目标标签 的标签标示。  [0087] If the data format of the target tag is correct, proceed to S235: determine whether the tag identifier of the target tag exists in the tag index.
[0088] 若标签索引中存在目标标签的标签标示, 则进行 S234: 将第二标签数据写入目 标标签对应的动态内存中。 [0089] 若标签索引中不存在目标标签的标签标示, 则进行 S236: 寻找空闲的索引, 建 立新的标签作为目标标签。 [0088] If the label of the target label exists in the label index, proceed to S234: write the second label data into the dynamic memory corresponding to the target label. [0089] If the tag identifier of the target tag does not exist in the tag index, proceed to S236: search for an idle index, and create a new tag as the target tag.
[0090] S237、 判断目标标签中是否存在足够的储存空间来写入第二标签数据。 [0090] S237. Determine whether there is enough storage space in the target tag to write the second tag data.
[0091] 若目标标签中存在足够的储存空间, 进行步骤 S234: 将第二标签数据写入目标 标签对应的动态内存中。 [0091] If there is sufficient storage space in the target tag, proceed to step S234: write the second tag data into the dynamic memory corresponding to the target tag.
[0092] S238、 将标签索引表中目标标签的具体值拷贝到标签索引中, 标签索引指向动 态内存的使用位置。 [0092] S238. Copy the specific value of the target tag in the tag index table to the tag index, where the tag index points to the use position of the dynamic memory.
[0093] 对于步骤 S235 , 当判断不存在目标标签的标签标示吋, 寻找空闲的索引, 并建 立新的标签作为新的目标标签, 再将标签数据写入, 然后从标签索引表中获取 到目标标签的具体值, 写入到标签索引中。  [0093] In step S235, when it is determined that there is no label label of the target tag, an idle index is searched, and a new tag is created as a new target tag, the tag data is written, and then the target is obtained from the tag index table. The specific value of the tag is written to the tag index.
[0094] 其中空闲的索引是指未保存标签的索引。  [0094] An index in which idle is an index of an unsaved label.
[0095] 具体的步骤 S232和步骤 S233之间的先后顺序可以互换, 但实际工作吋, 从判断 步骤 S231到判断步骤 S235 , 都是一步一步判断下来, 之中如果有一个步骤不满 足, 则判断过程结束, 不写入相应的标签数据, 后一个判断步骤是在满足前一 判断步骤满足具体条件的前提下进行的。  [0095] The sequence between the specific step S232 and the step S233 may be interchanged, but the actual work 吋, from the determining step S231 to the determining step S235, are determined step by step, if one step is not satisfied, then When the judgment process ends, the corresponding tag data is not written, and the latter judgment step is performed on the premise that the previous judgment step satisfies the specific condition.
[0096] 参考图 6, 在本发明一具体实施例中, 标签 9F79、 标签 9F15和标签 9F30共用一 块动态内存, 当设备需要读取标签 9F15对应的标签数据吋, 直接通过标签索引 来确定标签 9F15 , 并从动态内存中读取出对应的标签数据, 整个结构编程简单 , 维护方便, 不容易出错, 同吋也大大减少了所占用内存资源。  Referring to FIG. 6, in a specific embodiment of the present invention, the label 9F79, the label 9F15, and the label 9F30 share a piece of dynamic memory. When the device needs to read the label data corresponding to the label 9F15, the label 9F15 is directly determined by the label index. And the corresponding tag data is read from the dynamic memory, the whole structure is simple to program, convenient to maintain, not easy to make mistakes, and the memory resources occupied by the same are greatly reduced.
[0097] EMV的实现方法, 使用动态内存申请的方式保存各种标签数据, 大大缩减了所 需的存储资源及内存资源, 在现在所有的 48K及以上内存的安全芯片都可以实现 完整的 EMV; 程序通过标签来访问对应的标签数据, 而不是通过访问结构体的 方式, 可以解决阅读, 维护及兼容性问题, 同吋定义了每个标签支持的卡组织  [0097] The implementation method of the EMV uses a dynamic memory application method to save various tag data, which greatly reduces the required storage resources and memory resources. In all current security chips of 48K and above, a complete EMV can be realized; The program accesses the corresponding tag data through the tag, instead of accessing the structure, which can solve the reading, maintenance and compatibility issues, and defines the card organization supported by each tag.
[0098] [0098]
[0099] 参考图 4和图 5, 本发明另一实施例, 提出了一种 EMV的实现装置, 包括: [0100] 初始化单元 10, 用于清空标签内的原始的第一标签数据, 并读取每一个标签的 具体值; [0101] 内存分配单元 20, 用于为多个标签分配一块动态内存, 并将标签的具体值保存 到动态内存中; [0099] Referring to FIG. 4 and FIG. 5, another embodiment of the present invention provides an apparatus for implementing an EMV, including: [0100] an initializing unit 10, configured to clear original first label data in a label, and read Take the specific value of each label; [0101] The memory allocating unit 20 is configured to allocate a piece of dynamic memory for the plurality of tags, and save the specific value of the tag to the dynamic memory;
[0102] 建表单元 30, 用于根据所述标签和所述标签对应的具体值, 建立标签索引表; [0103] 数据写入单元 40, 用于根据所述标签索引表査找待写入的第二标签数据对应的 目标标签, 将所述第二标签数据写入所述目标标签内。  [0102] The table building unit 30 is configured to establish a label index table according to the label and the specific value corresponding to the label; [0103] the data writing unit 40 is configured to search for the to-be-written according to the label index table. The target tag corresponding to the second tag data, and the second tag data is written into the target tag.
[0104] 对于初始化单元 10, 初始化标签索引吋, 清空每一个标签内原始的第一标签数 据, 在初始化完成之后, 当前标签存储有第一标签数据的个数为 0, 当前内存被 使用位置也为 0。 初始化后, 再读取每个标签的具体值, 具体值包括有标签标示[0104] For the initialization unit 10, the label index is initialized, and the original first label data in each label is cleared. After the initialization is completed, the current label stores the number of the first label data as 0, and the current memory is used. Is 0. After initialization, read the specific value of each label, including specific labels
、 标签最小长度、 标签最大长度、 数据格式和支持的卡组织。 , the minimum length of the label, the maximum length of the label, the data format, and the supported card organization.
[0105] 对于内存分配单元 20, 为多个标签共同申请一块动态内存, 用于写入 /保存标 签数据, 也就是多个标签使用同一块动态内存, 该动态内存的具体大小小于为 各个标签各自单独分配一个最大内存总和的大小, 当正常使用吋, 使用同一块 动态内存的标签, 不会全部被使用也就是不会出现所有的标签都写入了标签数 据的情况, 此吋, 相当于属于同一动态内存的标签中存在空闲的标签, 这部分 标签不占用动态内存的大小, 全部动态内存可以只给部分标签使用。 例如, 当 1 、 2、 3、 4号标签共同使用一块动态内存, 具体使用吋, 因为 1-4号标签不会全部 被使用, 因此在分配动态内存吋, 动态内存可以为 A, 1-4号标签各自可以分配 的最大内存的总和为 B, A小于 B, 当使用同一块动态内存的标签数量增加吋, A 与 B的差距也会增大。  [0105] For the memory allocation unit 20, a plurality of tags are jointly applied for a piece of dynamic memory for writing/storing tag data, that is, multiple tags use the same piece of dynamic memory, and the specific size of the dynamic memory is smaller than that of each tag. The size of a maximum memory sum is separately allocated. When the label is used normally, the same dynamic memory label will not be used, that is, all the labels will not be written to the label data. There are free tags in the same dynamic memory tag. This part of the tag does not occupy the size of dynamic memory. All dynamic memory can be used only for some tags. For example, when labels 1, 2, 3, and 4 use a piece of dynamic memory together, the specific use of 吋, because 1-4 labels will not be used, so after allocating dynamic memory, dynamic memory can be A, 1-4 The sum of the maximum memory that can be assigned to each of the number labels is B, and A is less than B. When the number of labels using the same dynamic memory increases, the difference between A and B also increases.
[0106] 所以不同于现有为每一个标签定义好最大内存的方案, 可以做到在内存资源有 限的前提下, 为每一个标签分配到足够使用的内存大小, 可以在现有所有的 48K 及以上内存的安全芯片中实现 EMV, 降低 EMV成本。  [0106] Therefore, unlike the existing scheme for defining the maximum memory for each tag, it is possible to allocate enough memory for each tag under the premise of limited memory resources, and it can be used in all existing 48K and EMV is implemented in the above memory security chip to reduce EMV cost.
[0107] 对于建表单元 30, 建立标签索引表, 从标签索引表中就可以知道标签所有的具 体值, 也就是的标签最小长度、 标签最大长度, 数据格式以及所属卡组织等数 据, 阅读简单, 且便于维护。  [0107] For the table construction unit 30, a label index table is established, and all the specific values of the label can be known from the label index table, that is, the minimum length of the label, the maximum length of the label, the data format, and the data of the card organization, etc., and the reading is simple. And easy to maintain.
[0108] 对于数据写入单元 30, 在初始化标签, 为标签分配好动态内存之后, 向标签索 弓 I写入第二标签数据, 其中第二标签数据可以是终端内的第二标签数据也可以 是从 IC卡中获取到的第二标签数据, 实现了具体标签的标签数据的写入, 简单 直接。 [0108] For the data writing unit 30, after initializing the label and allocating the dynamic memory for the label, the second label data is written to the label, wherein the second label data may be the second label data in the terminal. It is the second tag data obtained from the IC card, and the tag data of the specific tag is written, which is simple. Directly.
[0109] 程序读取可以通过标签来访问标签数据, 而不是通过访问结构体的方式, 同吋 定义了每个标签支持的卡组织。  [0109] The program reads the tag data to access the tag data, rather than by accessing the structure, and defines the card organization supported by each tag.
[0110] 内存分配单元 20包括内存分配模块, 内存分配模块根据标签的具体值信息为多 个标签分配一块动态内存, 并记录动态内存的使用位置。 [0110] The memory allocation unit 20 includes a memory allocation module that allocates a piece of dynamic memory for a plurality of tags according to the specific value information of the tag, and records the use position of the dynamic memory.
[0111] 数据写入单元 40还包括有以下模块: [0111] The data writing unit 40 further includes the following modules:
[0112] 第一判断模块 41, 用于判断标签索引表中是否存在目标标签的标签标示。  [0112] The first determining module 41 is configured to determine whether a label identifier of the target label exists in the label index table.
[0113] 第二判断模块 42, 用于若存在目标标签的标签标示, 则判断目标标签支持的卡 组织是否为写入标签数据对应的卡组织。 [0113] The second determining module 42 is configured to determine, if the label of the target label exists, whether the card organization supported by the target label is a card organization corresponding to the write label data.
[0114] 第三判断模块 43, 用于若为写入第二标签数据对应的卡组织, 则判断目标标签 的数据格式是否正确。 [0114] The third determining module 43 is configured to determine whether the data format of the target tag is correct if the card organization corresponding to the second tag data is written.
[0115] 第四判断模块 44, 用于若目标标签的数据格式正确, 则判断标签索引中是否存 在目标标签的标签标示。  [0115] The fourth determining module 44 is configured to determine, if the data format of the target tag is correct, whether the tag identifier of the target tag exists in the tag index.
[0116] 新建模块 45, 用于若标签索引中不存在目标标签的标签标示, 寻找空闲的索引[0116] A new module 45 is configured to find a free index if there is no label label of the target label in the label index.
, 建立新的标签作为目标标签。 , create a new label as the target label.
[0117] 第五判断模块 46, 用于判断目标标签中是否存在足够的储存空间来写入第二标 签数据。 [0117] The fifth determining module 46 is configured to determine whether there is enough storage space in the target tag to write the second tag data.
[0118] 写入模块 48, 若目标标签中存在足够的储存空间或者若标签索引中存在目标标 签的标签标示, 用于将第二标签数据写入目标标签对应的动态内存中。  [0118] The writing module 48 is configured to write the second tag data into the dynamic memory corresponding to the target tag if there is sufficient storage space in the target tag or if the tag identifier of the target tag exists in the tag index.
[0119] 拷贝模块 47, 拷贝模块用于将标签索引表中目标标签的具体值拷贝到标签索引 中, 标签索引指向动态内存的使用位置。  [0119] The copy module 47 is configured to copy the specific value of the target tag in the tag index table to the tag index, where the tag index points to the location of the dynamic memory.
[0120] 具体的, 第一判断模块 41、 第二判断模块 42、 第三判断模块 43、 第四判断模块 44和第五判断模块 46, 在前者判断完之后在进入下一个判断模块进行判断, 一 步一步判断下来, 之中如果有一个模块不满足, 则判断过程结束, 不写入相应 的第二标签数据, 后一个判断模块是在前一判断模块条件满足的前提下进行的  [0120] Specifically, the first determining module 41, the second determining module 42, the third determining module 43, the fourth determining module 44, and the fifth determining module 46 are determined to enter the next determining module after the former is determined, Step by step to judge, if one of the modules is not satisfied, the judgment process ends, the corresponding second tag data is not written, and the latter judgment module is performed under the premise that the condition of the previous judgment module is satisfied.
[0121] 一种 EMV的实现装置, 使用动态内存申请的方式保存各种标签数据, 大大缩减 了所需的存储资源及内存资源, 在现在所有的 48K及以上内存的安全芯片都可以 实现完整的 EMV; 程序通过标签来访问对应的标签数据, 而不是通过访问结构 体的方式, 可以解决阅读, 维护及兼容性问题, 同吋定义了每个标签支持的卡 组织。 [0121] An apparatus for implementing an EMV, which uses a dynamic memory application method to save various tag data, greatly reduces required storage resources and memory resources, and now all security chips of 48K and above can be used. A complete EMV is implemented; the program accesses the corresponding tag data through tags, rather than accessing the structure, which can solve reading, maintenance and compatibility issues, and defines the card organization supported by each tag.
[0122]  [0122]
[0123] 以上所述仅为本发明的优选实施例, 并非因此限制本发明的专利范围, 凡是利 用本发明说明书及附图内容所作的等效结构或等效流程变换, 或直接或间接运 用在其他相关的技术领域, 均同理包括在本发明的专利保护范围内。  The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the invention, and the equivalent structure or equivalent process transformations made by the description of the invention and the drawings are used directly or indirectly. Other related technical fields are equally included in the scope of patent protection of the present invention.

Claims

权利要求书 Claim
[权利要求 1] 一种 EMV的实现方法, 其特征在于, 包括,  [Claim 1] An implementation method of an EMV, characterized in that,
清空标签内的原始的第一标签数据, 并读取每一个标签的具体值; 为多个所述标签分配一块动态内存, 并将标签的具体值保存到动态内 存中;  Clearing the original first tag data in the tag, and reading the specific value of each tag; allocating a piece of dynamic memory for the plurality of tags, and saving the specific value of the tag to the dynamic memory;
根据所述标签和所述标签对应的具体值, 建立标签索弓 I表; 根据所述标签索引表査找待写入的第二标签数据对应的目标标签, 将 所述第二标签数据写入所述目标标签内。  And establishing, according to the specific value corresponding to the label and the label, a labeling table; searching for a target label corresponding to the second label data to be written according to the label index table, and writing the second label data to the Within the target label.
[权利要求 2] 如权利要求 1所述的 EMV的实现方法, 其特征在于, 所述具体值包括 标签标示、 标签最小长度、 标签最大长度、 数据格式和支持的卡组织  [Claim 2] The method for implementing an EMV according to claim 1, wherein the specific value includes a label identifier, a minimum label length, a label maximum length, a data format, and a supported card organization.
[权利要求 3] 如权利要求 1所述的 EMV的实现方法, 其特征在于, 所述为多个标签 分配一块动态内存步骤, 包括, [Claim 3] The method for implementing an EMV according to claim 1, wherein the step of allocating a dynamic memory for a plurality of tags comprises:
根据所述标签的具体值信息为多个所述标签分配一块动态内存, 并记 录动态内存的使用位置。  A plurality of the tags are allocated a dynamic memory according to the specific value information of the tag, and the location of the dynamic memory is recorded.
[权利要求 4] 如权利要求 1所述的 EMV的实现方法, 其特征在于, 所述根据所述标 签索引表査找待写入的第二标签数据对应的目标标签, 将所述第二标 签数据写入所述目标标签内步骤, 包括以下步骤: 判断标签索弓 I表中是否存在目标标签的标签标示; 若存在目标标签的标签标示, 则判断目标标签支持的卡组织是否为第 二标签数据对应的卡组织; The method for implementing the EMV according to claim 1, wherein the searching for the target tag corresponding to the second tag data to be written according to the tag index table, and the second tag data The step of writing the target label includes the following steps: determining whether the label label of the target label exists in the label I table; if there is a label label of the target label, determining whether the card organization supported by the target label is the second label data Corresponding card organization;
若为写入第二标签数据对应的卡组织, 则判断目标标签的数据格式是 否正确;  If the card organization corresponding to the second tag data is written, it is determined whether the data format of the target tag is correct;
若目标标签的数据格式正确, 则判断标签索引中是否存在目标标签的 标签标示;  If the data format of the target tag is correct, it is determined whether the tag identifier of the target tag exists in the tag index;
若标签索弓 I中存在目标标签的标签标示, 则将第二标签数据写入目标 标签对应的动态内存中;  If the tag label of the target tag exists in the tag cable I, the second tag data is written into the dynamic memory corresponding to the target tag;
若标签索引中不存在目标标签的标签标示, 寻找空闲的索引, 建立新 的标签作为目标标签; If there is no label label of the target label in the label index, look for the free index and create a new one. Label as the target label;
判断目标标签中是否存在足够的储存空间来写入第二标签数据; 若目标标签中存在足够的储存空间, 将第二标签数据写入目标标签对 应的动态内存中。  It is determined whether there is enough storage space in the target tag to write the second tag data; if there is enough storage space in the target tag, the second tag data is written into the dynamic memory corresponding to the target tag.
[权利要求 5] 如权利要求 4所述的 EMV的实现方法, 其特征在于, 所述将第二标签 数据写入目标标签对应的动态内存中步骤之后, 包括,  [Claim 5] The method for implementing the EMV according to claim 4, wherein after the step of writing the second tag data into the dynamic memory corresponding to the target tag,
将所述标签索引表中目标标签的具体值拷贝到标签索引中, 所述标签 索引指向动态内存的使用位置。  The specific value of the target tag in the tag index table is copied into the tag index, and the tag index points to the use position of the dynamic memory.
[权利要求 6] —种 EMV的实现装置, 其特征在于, 包括,  [Claim 6] An apparatus for implementing an EMV, characterized in that
初始化单元, 用于清空标签内的原始的第一标签数据, 并读取每一个 标签的具体值;  An initializing unit, configured to clear original first label data in the label, and read a specific value of each label;
内存分配单元, 用于为多个标签分配一块动态内存, 并将标签的具体 值保存到对应的动态内存中;  a memory allocation unit, configured to allocate a piece of dynamic memory for multiple tags, and save the specific value of the tag to the corresponding dynamic memory;
建表单元, 用于根据所述标签和所述标签对应的具体值, 建立标签索 引表;  a table building unit, configured to establish a label index table according to the specific value corresponding to the label and the label;
数据写入单元, 用于根据所述标签索引表査找待写入的第二标签数据 对应的目标标签, 将所述第二标签数据写入所述目标标签内。  And a data writing unit, configured to search, according to the label index table, a target label corresponding to the second label data to be written, and write the second label data into the target label.
[权利要求 7] 如权利要求 6所述的 EMV的实现装置, 其特征在于, 所述具体值包括 标签标示、 标签最小长度、 标签最大长度、 数据格式和支持的卡组织 [Claim 7] The EMV implementation apparatus according to claim 6, wherein the specific value includes a label identifier, a label minimum length, a label maximum length, a data format, and a supported card organization.
[权利要求 8] 如权利要求 6所述的 EMV的实现装置, 其特征在于, 所述内存分配单 元包括内存分配模块, 所述内存分配模块用于根据所述标签的具体值 信息为多个所述标签分配一块动态内存, 并记录动态内存的使用位置 The device for implementing the EMV according to claim 6, wherein the memory allocation unit includes a memory allocation module, and the memory allocation module is configured to use the specific value information of the tag as a plurality of The tag allocates a piece of dynamic memory and records the location of the dynamic memory.
[权利要求 9] 如权利要求 6所述的 EMV的实现装置, 其特征在于, 所述数据写入单 元还包括有: The device for implementing an EMV according to claim 6, wherein the data writing unit further includes:
第一判断模块, 用于判断标签索引表中是否存在目标标签的标签标示 第二判断模块, 用于若存在目标标签的标签标示, 则判断目标标签支 持的卡组织是否为第二标签数据对应的卡组织; 第三判断模块, 用于若为写入第二标签数据对应的卡组织, 则判断目 标标签的数据格式是否正确; a first determining module, configured to determine whether a label label of the target label exists in the label index table a second determining module, configured to determine, if the label of the target label is present, whether the card organization supported by the target label is a card organization corresponding to the second label data, and a third determining module, configured to: if the second label data is written Card organization, it is judged whether the data format of the target tag is correct;
第四判断模块, 用于若目标标签的数据格式正确, 则判断标签索引中 是否存在目标标签的标签标示;  a fourth determining module, configured to determine whether a label identifier of the target label exists in the label index if the data format of the target label is correct;
新建模块, 用于若标签索引中不存在目标标签的标签标示, 寻找空闲 的索引, 建立新的标签作为目标标签;  Create a new module, if there is no label label of the target label in the label index, look for an idle index, and create a new label as the target label;
第五判断模块, 用于判断目标标签中是否存在足够的储存空间来写入 第二标签数据;  a fifth determining module, configured to determine whether there is sufficient storage space in the target tag to write the second tag data;
写入模块, 若标签索引中存在目标标签的标签标示或者若目标标签中 存在足够的储存空间, 用于将第二标签数据写入目标标签对应的动态 内存中。  The write module, if there is a label label of the target label in the label index or if there is enough storage space in the target label, the second label data is written into the dynamic memory corresponding to the target label.
[权利要求 10] 如权利要求 6所述的 EMV的实现装置, 其特征在于, 所述数据写入单 元还包括有拷贝模块, 所述拷贝模块用于将所述标签索引表中目标标 签的具体值拷贝到标签索引中, 所述标签索引指向动态内存的使用位 置。  The device for implementing the EMV according to claim 6, wherein the data writing unit further includes a copy module, wherein the copy module is configured to: The value is copied into the tag index, which points to the location of the dynamic memory.
PCT/CN2017/076973 2017-03-16 2017-03-16 Emv implementation method and device WO2018165950A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201780000963.3A CN107454953B (en) 2017-03-16 2017-03-16 EMV (empirical mode decomposition) implementation method and device
PCT/CN2017/076973 WO2018165950A1 (en) 2017-03-16 2017-03-16 Emv implementation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/076973 WO2018165950A1 (en) 2017-03-16 2017-03-16 Emv implementation method and device

Publications (1)

Publication Number Publication Date
WO2018165950A1 true WO2018165950A1 (en) 2018-09-20

Family

ID=60497761

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/076973 WO2018165950A1 (en) 2017-03-16 2017-03-16 Emv implementation method and device

Country Status (2)

Country Link
CN (1) CN107454953B (en)
WO (1) WO2018165950A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112084197B (en) * 2020-09-16 2023-10-31 艾体威尔电子技术(北京)有限公司 Method for storing data in EMV protocol library

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012065266A2 (en) * 2010-11-19 2012-05-24 Shaun Iversen Method for the creation of a dynamic data record within a payment system environment application
CN102521551A (en) * 2011-12-23 2012-06-27 大唐微电子技术有限公司 Personalized IC (integrated circuit) card issuing device and method
CN102867377A (en) * 2012-09-20 2013-01-09 中国农业银行股份有限公司 Method and system for realizing services on point-of-sale (POS) terminal machine and POS terminal machine

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7103575B1 (en) * 2000-08-31 2006-09-05 International Business Machines Corporation Enabling use of smart cards by consumer devices for internet commerce
CN1900982B (en) * 2006-07-05 2012-10-31 飞天诚信科技股份有限公司 Method for supporting multiple financial standard by single sheet smart card
EP2239712A1 (en) * 2009-04-09 2010-10-13 Gemalto SA Method for personalising an electronic device, associated data processing method and device
CN104281529B (en) * 2013-07-12 2018-01-16 北京金辉东方科技有限公司 Large Copacity RFID dynamic zoning method and electronic tag and application
CN104090730B (en) * 2014-07-08 2017-02-22 飞天诚信科技股份有限公司 Method and device for conducting data reading and writing on storage device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012065266A2 (en) * 2010-11-19 2012-05-24 Shaun Iversen Method for the creation of a dynamic data record within a payment system environment application
CN102521551A (en) * 2011-12-23 2012-06-27 大唐微电子技术有限公司 Personalized IC (integrated circuit) card issuing device and method
CN102867377A (en) * 2012-09-20 2013-01-09 中国农业银行股份有限公司 Method and system for realizing services on point-of-sale (POS) terminal machine and POS terminal machine

Also Published As

Publication number Publication date
CN107454953A (en) 2017-12-08
CN107454953B (en) 2020-11-03

Similar Documents

Publication Publication Date Title
US20090182937A1 (en) Semiconductor memory card, and program for controlling the same
WO2003065298A1 (en) Proximity communication system, proximity communication method, data managing apparatus, data managing method, recording medium, and computer program
CN102609741B (en) A kind of method of exchanges data between mobile device and inside and outside portion storage card thereof
US10248598B2 (en) Intelligent storage device signal transmission method for backing up data on intelligent storage module based on system type of electronic device
TWI459202B (en) Data processing method, memory controller and memory storage device
TW201033807A (en) Data processing system, controller, and method thereof for searching specific memory area
CN109669622A (en) A kind of file management method, document management apparatus, electronic equipment and storage medium
CN107479834A (en) A kind of file memory method and device based on COS
WO2017132797A1 (en) Data arrangement method, storage apparatus, storage controller and storage array
CN101620758B (en) Intelligent card supporting Web service
US7024532B2 (en) File management method, and memory card and terminal apparatus that make use of the method
CN106484719A (en) A kind of method of extended mobile phone storage and terminal
CN113064553B (en) Data storage method, device, equipment and medium
CN110460686A (en) A kind of block chain address register method and device
CN114296646A (en) Caching method, device, server and storage medium based on IO service
WO2018165950A1 (en) Emv implementation method and device
JP4486828B2 (en) Semiconductor memory card, computer readable program
CN105303208A (en) IC card management method and system
US8756425B2 (en) Data security authentication system and related multi-function memory card and computer program product
JP2004252968A (en) Semiconductor memory card and control program
CN105574425B (en) Access the method and device of storage data
US8477334B2 (en) Contactless IC chip, portable terminal, information processing method, and program
CN103678427A (en) Method and system for retrieving and using application arranged in smart card
CN111431699A (en) Method, device and system for quickly validating face authentication function
TW200919180A (en) Non-volatile memory apparatus and the access method thereof

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

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

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

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 22/01/2020)

122 Ep: pct application non-entry in european phase

Ref document number: 17900790

Country of ref document: EP

Kind code of ref document: A1