TW201732703A - Simulation method and device for contactless ic card, and simulation apparatus - Google Patents

Simulation method and device for contactless ic card, and simulation apparatus Download PDF

Info

Publication number
TW201732703A
TW201732703A TW105143379A TW105143379A TW201732703A TW 201732703 A TW201732703 A TW 201732703A TW 105143379 A TW105143379 A TW 105143379A TW 105143379 A TW105143379 A TW 105143379A TW 201732703 A TW201732703 A TW 201732703A
Authority
TW
Taiwan
Prior art keywords
card
information
data
message
storage terminal
Prior art date
Application number
TW105143379A
Other languages
Chinese (zh)
Inventor
Chen-Jie Shi
Ling-Nan Shen
Lei Wang
da-hui Zhang
Original Assignee
Alibaba Group Services Ltd
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 Alibaba Group Services Ltd filed Critical Alibaba Group Services Ltd
Publication of TW201732703A publication Critical patent/TW201732703A/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K19/00Record carriers for use with machines and with at least a part designed to carry digital markings
    • G06K19/06Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code
    • G06K19/067Record carriers with conductive marks, printed circuits or semiconductor circuit elements, e.g. credit or identity cards also with resonating or responding marks without active components
    • G06K19/07Record carriers with conductive marks, printed circuits or semiconductor circuit elements, e.g. credit or identity cards also with resonating or responding marks without active components with integrated circuit chips

Abstract

A simulation method for a contactless IC card, a simulation device for a contactless IC card, and a simulation apparatus. Said method comprises: during the transmission of data information between a load terminal and an IC card, recording, by means of a first channel, a first data message that the data information corresponds to; modifying, according to a preset simulation manner, the first data message to obtain a second data message; and returning, by means of a second channel, the second data message to the load terminal for the load terminal to execute a service process related to the second data message. This invention can simulate the differences between various types of IC cards and the abnormal scenes arising during the data exchange between the load terminal and the IC card, thereby being able to manage the various types of IC cards in a uniform simulation manner.

Description

非接觸式IC卡的模擬方法、裝置及模擬裝置 Simulation method, device and simulation device for non-contact IC card

本發明係關於IC卡技術領域,尤其關於一種非接觸式IC卡片的模擬方法、裝置及模擬裝置。 The invention relates to the technical field of IC cards, in particular to a simulation method, device and simulation device for a non-contact IC card.

IC卡片被廣泛地應用于金融財務、社會保險、交通旅遊、醫療衛生、政府行政、商品零售、休閒娛樂、學校管理及其它領域,從不同使用場合可以分為:城市一卡通、校園一卡通、小區一卡通、辦公大樓一卡通、企業一卡通、酒店一卡通、智慧大廈一卡通等。 IC cards are widely used in financial finance, social insurance, transportation and tourism, medical and health, government administration, commodity retail, leisure and entertainment, school management and other fields. From different occasions, they can be divided into: city card, campus card, community card , office building card, corporate card, hotel card, smart building card, etc.

以城市一卡通為例,現有技術中的公共交通IC卡圈存等操作一般都是在一卡通公司自營的圈存終端上進行,隨著NFC技術以及城市一卡通業務的發展,手機等第三方充值終端出現。為了避免給用戶帶來困擾以及出現可能的資金層面的問題,第三方充值終端上的應用程序與公共交通IC卡、圈存終端之間的報文資料的交互顯得尤為重要。由於公共交通IC卡作為非接觸式的物理硬體,各城市的公共交通IC卡與圈存終端之間的報文資料的交互存在差異性,因此公共交通IC卡向圈存終端返回異常報文 資料的情形不能夠很好地進行模擬,進而無法覆蓋所有異常資料報文的場景,而不充分的檢測會使第三方充值終端的應用程序在接入各城市時埋下一定的隱患。 Taking the city card as an example, the public transportation IC card storage operations in the prior art are generally carried out on the card terminal operated by the card company. With the development of NFC technology and the city card business, mobile phones and other third-party recharge terminals appear. In order to avoid the user's troubles and possible fund-level problems, the interaction between the application on the third-party recharge terminal and the message data between the public transportation IC card and the storage terminal is particularly important. Since the public transportation IC card is a non-contact physical hardware, there is a difference in the interaction of the message data between the public transportation IC card and the storage terminal in each city, so the public transportation IC card returns an abnormal message to the storage terminal. The situation of the data cannot be simulated well, and thus it is impossible to cover the scenes of all abnormal data messages. Insufficient detection may cause the application of the third-party recharge terminal to bury certain hidden dangers when accessing the cities.

有鑑於此,本發明提供一種新的技術方案,確保能夠模擬各種類型的IC卡的差異性以及圈存終端與IC卡片進行資料交互的過程中出現的異常場景,實現對各種類型的IC卡片進行統一的模擬管理。 In view of this, the present invention provides a new technical solution for ensuring that the differences of various types of IC cards can be simulated and abnormal scenes occurring during the process of data exchange between the storage terminal and the IC card, thereby implementing various types of IC cards. Unified simulation management.

為實現上述目的,本發明提供技術方案如下:根據本發明的第一方面,提出了一種非接觸式IC卡片的模擬方法,包括:在圈存終端與IC卡片之間進行資料資訊傳輸的過程中,通過第一通道錄製所述資料資訊對應的第一資料報文;根據預設的模擬方式修改所述第一資料報文,得到第二資料報文;通過第二通道將所述第二資料報文返回給所述圈存終端,以供所述圈存終端執行與所述第二資料報文相關的業務流程。 In order to achieve the above object, the present invention provides a technical solution as follows: According to the first aspect of the present invention, a method for simulating a non-contact IC card is provided, which includes: in the process of transmitting data information between the storage terminal and the IC card Recording, by using the first channel, the first data packet corresponding to the data information; modifying the first data packet according to a preset simulation manner to obtain a second data packet; and using the second channel to send the second data packet The message is returned to the storage terminal, so that the storage terminal performs a business process related to the second data message.

根據本發明的第二方面,提出了一種非接觸式IC卡片的模擬裝置,包括:報文錄製模組,用於在圈存終端與IC卡片之間進行資料資訊傳輸的過程中,通過第一通道錄製所述資料資訊 對應的第一資料報文;報文修改模組,用於根據預設的模擬方式修改所述報文錄製模組錄製得到的所述第一資料報文,得到第二資料報文;報文發送模組,用於通過第二通道將所述報文修改模組得到的所述第二資料報文返回給所述圈存終端,以供所述圈存終端執行與所述第二資料報文相關的業務流程。 According to a second aspect of the present invention, a non-contact IC card emulation device is provided, comprising: a message recording module, configured to pass the first information in the process of transmitting information between the storage terminal and the IC card. Channel recording the information Corresponding first data message; the message modification module is configured to modify the first data message recorded by the message recording module according to a preset simulation manner to obtain a second data message; a sending module, configured to return, by the second channel, the second data packet obtained by the packet modification module to the storage terminal, where the storage terminal executes the second datagram Text related business processes.

根據本發明的第三方面,提出了一種模擬裝置,包括:處理器;用於儲存所述處理器可執行指令的記憶體;網路介面;其中,所述網路介面用於在圈存終端與IC卡片之間進行資料資訊傳輸的過程中,通過第一通道錄製所述資料資訊對應的第一資料報文;所述處理器,用於根據預設的模擬方式修改所述第一資料報文,得到第二資料報文;所述網路介面還用於通過第二通道將所述處理器修改後的所述第二資料報文返回給所述圈存終端,以供所述圈存終端執行與所述第二資料報文相關的業務流程。 According to a third aspect of the present invention, an analog apparatus is provided, comprising: a processor; a memory for storing executable instructions of the processor; a network interface; wherein the network interface is used in the storage terminal The first data message corresponding to the data information is recorded by the first channel in the process of transmitting the information information with the IC card; the processor is configured to modify the first data message according to a preset simulation manner And obtaining a second data message, where the network interface is further configured to return, by using the second channel, the second data packet that is modified by the processor to the storage terminal for the circle storage The terminal executes a business process related to the second data message.

由以上技術方案可見,本發明對圈存終端與IC卡片之間傳輸的資料資訊進行錄製,並根據預設的模擬方式對第一資料報文進行修改,由於預設的模擬方式可以根據第一資料報文中所包含的資訊來確定,因此本發明可以對各種類型的IC卡片的差異性以及圈存終端與IC卡片進行資 料交互的過程中出現的異常場景進行模擬,從而可以對各種類型的IC卡片進行統一的模擬管理。 It can be seen from the above technical solution that the present invention records the data information transmitted between the storage terminal and the IC card, and modifies the first data packet according to a preset simulation manner, because the preset simulation mode can be based on the first The information contained in the data message is determined, so the present invention can carry out the difference of various types of IC cards and the storage of the terminal and the IC card. The abnormal scenes appearing during the material interaction are simulated, so that unified simulation management of various types of IC cards can be performed.

71‧‧‧報文錄製模組 71‧‧‧Message Recording Module

72‧‧‧報文修改模組 72‧‧‧Message Modification Module

73‧‧‧報文發送模組 73‧‧‧Message sending module

714‧‧‧第二獲取單元 714‧‧‧Second acquisition unit

715‧‧‧第二錄製單元 715‧‧‧Second recording unit

716‧‧‧第二轉發單元 716‧‧‧Second forwarding unit

717‧‧‧第三獲取單元 717‧‧‧ third acquisition unit

718‧‧‧第三錄製單元 718‧‧‧ third recording unit

719‧‧‧第三轉發單元 719‧‧‧third forwarding unit

732‧‧‧第二修改單元 732‧‧‧Second Modification Unit

733‧‧‧第三修改單元 733‧‧‧ Third Modification Unit

圖1示出了根據本發明的一示例性實施例的非接觸式IC卡片的模擬方法的流程示意圖;圖2示出了根據本發明的又一示例性實施例的非接觸式IC卡片的模擬方法的流程示意圖;圖3示出了根據本發明的再一示例性實施例的非接觸式IC卡片的模擬方法的流程示意圖;圖4示出了根據本發明的另一示例性實施例的非接觸式IC卡片的模擬方法的流程示意圖;圖5A示出了根據本發明的一示例性實施例的非接觸式IC卡片的模擬方法的信令流程圖之一;圖5B示出了根據本發明的一示例性實施例的非接觸式IC卡片的模擬方法的信令流程圖之二;圖6示出了根據本發明的一示例性實施例的模擬裝置的結構示意圖;圖7示出了根據本發明的一示例性實施例的非接觸式IC卡片的模擬裝置的結構示意圖;圖8示出了根據本發明的又一示例性實施例的非接觸式IC卡片的模擬裝置的結構示意圖;圖9示出了根據本發明的再一示例性實施例的非接觸式IC卡片的模擬裝置的結構示意圖; 圖10示出了根據本發明的另一示例性實施例的非接觸式IC卡片的模擬裝置的結構示意圖。 1 is a flow chart showing a simulation method of a contactless IC card according to an exemplary embodiment of the present invention; and FIG. 2 is a view showing a simulation of a contactless IC card according to still another exemplary embodiment of the present invention. Schematic diagram of a method; FIG. 3 is a flow chart showing a simulation method of a contactless IC card according to still another exemplary embodiment of the present invention; FIG. 4 is a diagram showing a non-contact according to another exemplary embodiment of the present invention. Schematic diagram of a simulation method of a contact IC card; FIG. 5A shows one of signaling flow diagrams of a simulation method of a contactless IC card according to an exemplary embodiment of the present invention; FIG. 5B shows according to the present invention FIG. 6 is a schematic structural diagram of a simulation apparatus according to an exemplary embodiment of the present invention; FIG. 6 is a schematic structural diagram of a simulation apparatus according to an exemplary embodiment of the present invention; A schematic structural view of a non-contact IC card emulating device according to an exemplary embodiment of the present invention; and FIG. 8 is a schematic structural view of a non-contact IC card emulating device according to still another exemplary embodiment of the present invention. Figure 9 shows a schematic configuration of the simulation apparatus of the noncontact IC card of an exemplary embodiment in accordance with another embodiment of the present invention; FIG. 10 is a block diagram showing the construction of a non-contact IC card simulation apparatus according to another exemplary embodiment of the present invention.

這裡將詳細地對示例性實施例進行說明,其示例表示在附圖中。下面的描述關於附圖時,除非另有表示,不同附圖中的相同數字表示相同或相似的要素。以下示例性實施例中所描述的實施方式並不代表與本發明相一致的所有實施方式。相反,它們僅是與如所附申請專利範圍中所詳述的、本發明的一些方面相一致的裝置和方法的例子。 Exemplary embodiments will be described in detail herein, examples of which are illustrated in the accompanying drawings. The following description of the drawings refers to the same or similar elements, unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Instead, they are merely examples of devices and methods consistent with aspects of the invention as detailed in the appended claims.

在本發明使用的術語是僅僅出於描述特定實施例的目的,而非旨在限制本發明。在本發明和所附申請專利範圍書中所使用的單數形式的“一種”、“所述”和“該”也旨在包括多數形式,除非上下文清楚地表示其他含義。還應當理解,本文中使用的術語“和/或”是指並包含一個或多個相關聯的列出項目的任何或所有可能組合。 The terminology used in the present invention is for the purpose of describing particular embodiments, and is not intended to limit the invention. The singular forms "a", "the" and "the" It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.

應當理解,儘管在本發明可能採用術語第一、第二、第三等來描述各種資訊,但這些資訊不應限於這些術語。這些術語僅用來將同一類型的資訊彼此區分開。例如,在不脫離本發明範圍的情況下,第一資訊也可以被稱為第二資訊,類似地,第二資訊也可以被稱為第一資訊。取決於語境,如在此所使用的詞語“如果”可以被解釋成為“在……時”或“當……時”或“響應於確定”。 It should be understood that although the terms first, second, third, etc. may be used in the present invention to describe various information, such information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, the first information may also be referred to as second information without departing from the scope of the invention. Similarly, the second information may also be referred to as first information. Depending on the context, the word "if" as used herein may be interpreted as "when" or "when" or "in response to a determination."

為對本發明進行進一步說明,提供下列實施例: 圖1示出了根據本發明的一示例性實施例的非接觸式IC卡片的模擬方法的流程示意圖;本實施例中的模擬方法可以應用在能夠與圈存終端和非接觸式IC卡片之間進行資料交互的模擬裝置上,該模擬裝置可以為一具體的硬體設備,也可以是硬體設備上安裝的軟體,如圖1所示,包括如下步驟: In order to further illustrate the invention, the following examples are provided: 1 is a flow chart showing a simulation method of a contactless IC card according to an exemplary embodiment of the present invention; the simulation method in this embodiment can be applied between a buffer terminal and a contactless IC card. On the simulation device for data interaction, the simulation device may be a specific hardware device or a software installed on the hardware device, as shown in FIG. 1 , including the following steps:

步驟101,在圈存終端與IC卡片之間進行資料資訊傳輸的過程中,通過第一通道錄製資料資訊對應的第一資料報文。 Step 101: During the process of transmitting data information between the storage terminal and the IC card, the first data message corresponding to the data information is recorded through the first channel.

在一實施例中,圈存終端與IC卡片之間傳輸的資料資訊可以包括IC卡片的餘額、消費記錄和IC卡片的卡號、消息認證碼和隨機數、圈存結果資訊等,可以根據圈存終端與IC卡片之間需要傳輸的資料來確定資料資訊。在一實施例中,第一通道可以為NFC通道,通過NFC通道可以使圈存終端和IC卡片之間實現近距離通信。 In an embodiment, the information information transmitted between the storage terminal and the IC card may include the balance of the IC card, the consumption record, the card number of the IC card, the message authentication code, the random number, the storage result information, etc., and may be stored according to the circle. The information to be transmitted between the terminal and the IC card is used to determine the information. In an embodiment, the first channel may be an NFC channel, and the NFC channel enables short-range communication between the memory terminal and the IC card.

步驟102,根據預設的模擬方式修改第一資料報文,得到第二資料報文。 Step 102: Modify the first data packet according to a preset simulation manner to obtain a second data packet.

在一實施例中,預設的模擬方式可以根據第一資料報文中所包含的資訊來確定,例如,第一資料報文包含有IC卡片的餘額、消費記錄和IC卡片的卡號等資訊,則預設的模擬方式可以為修改第一資料報文中的餘額、消費記錄和IC卡片的卡號等任意一種方式或者任意組合的方式,從而得到第二資料報文,通過預設的模擬方式可以確保能夠模擬各種類型的IC卡片的差異性以及與IC卡片交 互的異常場景,實現對各種類型的IC卡片進行統一的模擬管理。 In an embodiment, the preset simulation mode may be determined according to information included in the first data message. For example, if the first data message includes the balance of the IC card, the consumption record, and the card number of the IC card, The preset simulation mode may be any one of a method of modifying the balance of the first data message, the consumption record, and the card number of the IC card, or any combination thereof, thereby obtaining the second data message, which can be ensured by a preset simulation mode. Simulate the differences between various types of IC cards and communicate with IC cards Mutual anomaly scenarios enable unified simulation management of various types of IC cards.

步驟103,通過第二通道將第二資料報文返回給圈存終端,以供圈存終端執行與第二資料報文相關的業務流程。 Step 103: The second data packet is returned to the storage terminal through the second channel, so that the storage terminal performs a business process related to the second data packet.

在一實施例中,第二通道可以與第一通道相同,也可以與第一通道不相同,可以根據模擬裝置與圈存終端之間的通信協議來定。在一實施例中,第二通道可以為模擬通道,例如,基於socket協議的通道。在一實施例中,如果第二資料報文出現異常,則圈存終端可以進行相應的異常處理。 In an embodiment, the second channel may be the same as the first channel or different from the first channel, and may be determined according to a communication protocol between the analog device and the storage terminal. In an embodiment, the second channel may be an analog channel, such as a channel based on a socket protocol. In an embodiment, if the second data message is abnormal, the circled terminal may perform corresponding exception processing.

由上述描述可知,本發明實施例通過上述步驟101-步驟103,對圈存終端與IC卡片之間傳輸的資料資訊進行錄製,並根據預設的模擬方式對第一資料報文進行修改,由於預設的模擬方式可以根據第一資料報文中所包含的資訊來確定,因此本發明可以對各種類型的IC卡片的差異性以及圈存終端與IC卡片進行資料交互的過程中出現的異常場景進行模擬,從而可以對各種類型的IC卡片進行統一的模擬管理。 It can be seen from the above description that the embodiment of the present invention records the data information transmitted between the storage terminal and the IC card through the above steps 101-103, and modifies the first data packet according to a preset simulation manner, The preset simulation mode can be determined according to the information contained in the first data message, so the present invention can perform the difference between various types of IC cards and the abnormal scenes occurring during the data interaction between the storage terminal and the IC card. Simulation, which enables unified simulation management of various types of IC cards.

圖2示出了根據本發明的又一示例性實施例的非接觸式IC卡片的模擬方法的流程示意圖;本實施例以資料資訊為IC卡片向圈存終端返回的IC卡片的第一卡片資訊為例進行示例性說明,如圖2所示,包括如下步驟: 2 is a schematic flow chart of a method for simulating a non-contact IC card according to still another exemplary embodiment of the present invention; this embodiment uses the data information as the first card information of an IC card returned by the IC card to the storage terminal. For an exemplary example, as shown in FIG. 2, the following steps are included:

步驟201,在圈存終端與IC卡片之間進行資料資訊 傳輸的過程中,通過第一通道獲取IC卡片需要向圈存終端返回的第一卡片資訊,其中,第一卡片資訊包括IC卡片的餘額、消費記錄和IC卡片的卡號。 Step 201: Performing information between the storage terminal and the IC card During the transmission process, the first card information that the IC card needs to return to the storage terminal through the first channel is included, wherein the first card information includes the balance of the IC card, the consumption record, and the card number of the IC card.

步驟202,錄製第一卡片資訊對應的第一資料報文。 Step 202: Record a first data message corresponding to the first card information.

步驟203,通過第一通道將第一卡片資訊轉發給圈存終端。 Step 203: Forward the first card information to the storage terminal through the first channel.

步驟204,根據預設的模擬方式修改第一資料報文中的IC卡片的餘額、消費記錄和IC卡片的卡號,得到第二資料報文。 Step 204: Modify the balance of the IC card in the first data message, the consumption record, and the card number of the IC card according to a preset simulation manner to obtain a second data message.

步驟205,通過第二通道將第二資料報文返回給圈存終端,以供圈存終端執行與第二資料報文相關的業務流程。 Step 205: The second data packet is returned to the storage terminal through the second channel, so that the storage terminal performs a business process related to the second data packet.

在一實施例中,模擬裝置根據預設的模擬方式修改了第一資料報文中的第一卡片資訊,包括IC卡片的餘額,並導致修改後的餘額超出了圈存終端設定的正常範圍,圈存終端在接收到第二資料報文後,讀取到第二資料報文中的餘額,驗證該修改後的餘額是否在圈存終端設定的正常範圍內,如果修改後的餘額在圈存終端設定的正常範圍內,圈存終端繼續執行後續的業務流程,如果修改後的餘額超出了圈存終端設定的正常範圍,圈存終端可以停止執行後續的圈存業務。例如,圈存終端對IC卡片的餘額設定的正常範圍為[0,1000],第一資料報文中的餘額為100,如果模擬裝置將第一資料報文中的100修改為1100,則圈存終端可以在讀取到該修改後的餘額後,可以 停止執行後續的圈存業務。 In an embodiment, the simulation device modifies the first card information in the first data message according to a preset simulation manner, including the balance of the IC card, and causes the modified balance to exceed the normal range set by the storage terminal. After receiving the second data message, the storage terminal reads the balance in the second data message, and verifies whether the modified balance is within the normal range set by the storage terminal, and if the modified balance is set in the storage terminal In the normal range, the storage terminal continues to execute the subsequent business process. If the modified balance exceeds the normal range set by the storage terminal, the storage terminal can stop executing the subsequent storage service. For example, the normal range for setting the balance of the IC card by the storage terminal is [0, 1000], and the balance in the first data message is 100. If the simulation device changes 100 in the first data message to 1100, the terminal is circled. After reading the modified balance, you can Stop performing subsequent inventory operations.

在一實施例中,IC卡片的卡號可以僅設定為數字,如果模擬裝置將IC卡片的卡號修改為包含有字母和數字的組合,則視為異常。本領域技術人員可以理解的是,預設的模擬方式可以根據業務需要來設置,本發明對具體的模擬方式不做限制。當圈存結果未知時,圈存終端可以通過讀取IC卡片最新的消費記錄,通過和圈存前的消費記錄進行比較,以此來判斷本次圈存是否成功,從而可以確定是否需要將用戶支付的金額結算給通卡公司還是退款給用戶。 In an embodiment, the card number of the IC card may be set to only a number, and if the analog device modifies the card number of the IC card to include a combination of letters and numbers, it is regarded as an abnormality. It can be understood by those skilled in the art that the preset simulation mode can be set according to service requirements, and the present invention does not limit the specific simulation mode. When the result of the inventory is unknown, the storage terminal can determine whether the current user needs to be satisfied by reading the latest consumption record of the IC card and comparing it with the consumption record before the inventory. The amount paid is settled to the card company or refunded to the user.

本實施例中,通過對IC卡片需要向圈存終端返回的第一卡片資訊按照預設的模擬方式進行修改,得到第二資料報文,從而可以通過錄製回放的方式來模擬各類非接觸式IC卡片向圈存終端返回的第一卡片資訊,以及模擬IC卡片向圈存終端返回異常資料的場景,從而避免由於不充分的檢測導致的業務風險;此外,由於第二資料報文通過第二通道傳輸,因此可以避免檢測人員手動貼卡的操作,實現IC卡片的自動化檢測。 In this embodiment, the first card information returned by the IC card to the storage terminal is modified according to a preset simulation manner to obtain a second data message, so that various non-contact types can be simulated by means of recording and playback. The first card information returned by the IC card to the storage terminal, and the scenario in which the simulated IC card returns the abnormal data to the storage terminal, thereby avoiding the business risk caused by insufficient detection; in addition, since the second data message passes the second The channel is transmitted, so that the inspection personnel can manually avoid the operation of the card, and the automatic detection of the IC card can be realized.

圖3示出了根據本發明的再一示例性實施例的非接觸式IC卡片的模擬方法的流程示意圖;如圖3所示,包括如下步驟: FIG. 3 is a flow chart showing a simulation method of a contactless IC card according to still another exemplary embodiment of the present invention; as shown in FIG. 3, the following steps are included:

步驟301,在圈存終端與IC卡片之間進行資料資訊傳輸的過程中,通過第一通道獲取IC卡片根據圈存終端的圈存初始化指令返回的第二卡片消息,其中,第二卡片 消息包括第一卡片資訊、消息認證碼和隨機數。 Step 301: In the process of transmitting data information between the storage terminal and the IC card, obtain the second card message returned by the IC card according to the circle initialization instruction of the storage terminal through the first channel, wherein the second card The message includes the first card information, the message authentication code, and the random number.

步驟302,錄製第二卡片資訊對應的第一資料報文。 Step 302: Record a first data message corresponding to the second card information.

步驟303,通過第一通道將第二卡片資訊轉發給圈存終端。 Step 303: Forward the second card information to the storage terminal through the first channel.

步驟304,根據預設的模擬方式修改第一資料報文中的第一卡片資訊、消息認證碼和隨機數,得到第二資料報文。 Step 304: Modify the first card information, the message authentication code, and the random number in the first data packet according to a preset simulation manner to obtain a second data packet.

步驟305,通過第二通道將第二資料報文返回給圈存終端,以供圈存終端執行與第二資料報文相關的業務流程。 Step 305: The second data packet is returned to the storage terminal through the second channel, so that the storage terminal performs a business process related to the second data packet.

在一實施例中,如果模擬裝置根據預設的模擬方式修改了第一資料報文中的消息認證碼或者隨機數,圈存終端在接收到第二資料報文後,如果消息認證碼或者隨機數不合法,則確定第二資料報文中的資料被修改,圈存終端可以停止執行後續的業務流程,如果確認第二資料報文中的資料未被修改,可以控制圈存終端繼續執行後續的圈存業務。在一實施例中,消息認證碼和隨機數可以由IC卡片根據第一卡片資訊產生。 In an embodiment, if the simulation device modifies the message authentication code or the random number in the first data packet according to the preset simulation manner, the circle storage terminal receives the second data packet, if the message authentication code or the random number If it is not legal, it is determined that the data in the second data message is modified, and the storage terminal can stop executing the subsequent business process. If it is confirmed that the data in the second data message has not been modified, the control terminal can continue to execute the subsequent storage. business. In an embodiment, the message authentication code and the random number may be generated by the IC card based on the first card information.

在一實施例中,修改第一卡片資訊的相關描述可以參見上述圖2所示實施例的描述,在此不再詳述。 For an embodiment of the description of the first card information, refer to the description of the embodiment shown in FIG. 2, which is not described in detail herein.

本實施例中,通過對IC卡片需要向圈存終端返回的第一卡片資訊、消息認證碼或者隨機數按照預設的模擬方式進行修改,得到第二資料報文,從而可以通過錄製回放的方式來模擬各類非接觸式IC卡片向圈存終端返回的第 一卡片資訊、消息認證碼或者隨機數,以及模擬IC卡片向圈存終端返回異常資料的場景,從而避免由於不充分的檢測導致的業務風險;此外,由於第二資料報文通過第二通道傳輸,因此可以避免檢測人員手動貼卡的操作,實現IC卡片的自動化檢測。 In this embodiment, the first card information, the message authentication code, or the random number that the IC card needs to return to the storage terminal is modified according to a preset simulation manner to obtain a second data message, thereby enabling recording and playback. To simulate the return of various non-contact IC cards to the storage terminal a card information, a message authentication code or a random number, and a scenario in which an analog IC card returns an abnormal data to a storage terminal, thereby avoiding a business risk caused by insufficient detection; further, since the second data message is transmitted through the second channel Therefore, it is possible to prevent the inspection personnel from manually affixing the card and realize the automatic detection of the IC card.

圖4示出了根據本發明的另一示例性實施例的非接觸式IC卡片的模擬方法的流程示意圖;如圖4所示,包括如下步驟: FIG. 4 is a schematic flow chart of a simulation method of a contactless IC card according to another exemplary embodiment of the present invention; as shown in FIG. 4, the following steps are included:

步驟401,在圈存終端與IC卡片之間進行資料資訊傳輸的過程中,通過第一通道獲取IC卡片需要向圈存終端返回的圈存結果資訊。 Step 401: In the process of transmitting data information between the storage terminal and the IC card, obtaining the storage result information that the IC card needs to return to the storage terminal through the first channel.

步驟402,錄製圈存結果資訊對應的第一資料報文。 Step 402: Record a first data message corresponding to the storage result information.

步驟403,通過第一通道將圈存結果資訊轉發給圈存終端。 Step 403: Forward the storage result information to the storage terminal through the first channel.

步驟404,根據預設的模擬方式修改第一資料報文中的圈存結果資訊,得到第二資料報文。 Step 404: Modify the circled result information in the first data packet according to a preset simulation manner to obtain a second data packet.

步驟405,通過第二通道將第二資料報文返回給圈存終端,以供圈存終端執行與第二資料報文相關的業務流程。 Step 405: The second data packet is returned to the storage terminal through the second channel, so that the storage terminal performs a business process related to the second data packet.

在一實施例中,圈存終端的圈存結果可以包括:圈存成功、圈存失敗以及圈存結果未知,如果圈存成功,則圈存業務成功,圈存終端將支付金額結算給通卡公司,如果圈存失敗,則圈存業務失敗,圈存終端將支付金額退款給用戶,如果圈存結果未知,圈存終端將再次讀取IC卡片 的消費記錄資訊和圈存前的資訊進行比較,如果消費記錄有新增變化,則認為圈存成功,否則認為失敗。 In an embodiment, the circled storage result of the storage terminal may include: successful storage, storage failure, and unknown storage result. If the storage is successful, the storage service is successful, and the storage terminal settles the payment amount to the card. If the company fails to save, the business fails, and the deposit terminal will refund the payment amount to the user. If the storage result is unknown, the storage terminal will read the IC card again. The consumption record information is compared with the information before the inventory. If there is a new change in the consumption record, the storage is considered successful, otherwise it is considered a failure.

如果模擬裝置根據預設的模擬方式修改了第一資料報文中的圈存結果資訊,圈存終端在接收到第二資料報文後,驗證IC卡片的圈存結果資訊是否在預設的業務範圍內,從而實現模擬上述三種情形,確保對圈存終端的全面檢測。 If the simulation device modifies the inventory result information in the first data message according to the preset simulation mode, after the second data message is received, the storage terminal verifies whether the information of the IC card's inventory result is in the preset service range. In order to achieve the above three scenarios, to ensure the full detection of the storage terminal.

本實施例中,通過對IC卡片需要向圈存終端返回的第一卡片資訊按照預設的模擬方式進行修改,得到第二資料報文,從而可以通過錄製回放的方式來模擬各類非接觸式IC卡片向圈存終端返回的第一卡片資訊,以及模擬IC卡片向圈存終端返回異常資料的場景,從而避免由於不充分的檢測導致的業務風險;此外,由於第二資料報文通過第二通道傳輸,因此可以避免檢測人員手動貼卡的操作,實現IC卡片的自動化檢測。 In this embodiment, the first card information returned by the IC card to the storage terminal is modified according to a preset simulation manner to obtain a second data message, so that various non-contact types can be simulated by means of recording and playback. The first card information returned by the IC card to the storage terminal, and the scenario in which the simulated IC card returns the abnormal data to the storage terminal, thereby avoiding the business risk caused by insufficient detection; in addition, since the second data message passes the second The channel is transmitted, so that the inspection personnel can manually avoid the operation of the card, and the automatic detection of the IC card can be realized.

圖5A示出了根據本發明的一示例性實施例的非接觸式IC卡片的模擬方法的信令流程圖之一,圖5B示出了根據本發明的一示例性實施例的非接觸式IC卡片的模擬方法的信令流程圖之二;本實施例以公共交通IC卡為例進行示例性說明,NFC通道以及模擬通道用於控制圈存終端獲取報文資料的來源,其中,圖5A所示的流程通過NFC通道獲取到的是真實IC卡片的報文資料,圖5B所示的流程通過模擬通道獲取到的是用於模擬IC卡片的報文資料;此外,本發明對模擬裝置不做限制,可以為軟體裝置 也可以為硬體裝置,由於圈存終端與IC卡片之間的資料交互均為明文操作,因此模擬裝置可以攔截獲取到圈存終端和IC卡片之間的所有交互報文資料,並通過重放或人為定制構造的方式(本發明所述的預設的模式方式)向圈存終端返回用於模擬IC卡片的報文資料。如圖5A所示,通過NFC通道獲取到真實IC卡片的報文資料包括如下步驟: 5A shows one of signaling flow diagrams of a simulation method of a contactless IC card according to an exemplary embodiment of the present invention, and FIG. 5B illustrates a non-contact IC according to an exemplary embodiment of the present invention. The signaling flow chart of the simulation method of the card is the second embodiment; the embodiment uses the public transportation IC card as an example for example, and the NFC channel and the analog channel are used to control the source of the message data of the storage terminal, wherein FIG. 5A The flow of the process is obtained by the NFC channel, which is the message data of the real IC card. The process shown in FIG. 5B obtains the message data for simulating the IC card through the analog channel; in addition, the present invention does not do the simulation device. Restriction, can be a software device It can also be a hardware device. Since the data interaction between the storage terminal and the IC card is a plaintext operation, the simulation device can intercept all the interactive message data obtained between the storage terminal and the IC card, and replay the data. Or the manner of artificially constructing (the preset mode mode described in the present invention) returns the message data for simulating the IC card to the storage terminal. As shown in FIG. 5A, obtaining the message data of the real IC card through the NFC channel includes the following steps:

步驟501,圈存終端向IC卡片讀取第一卡片資訊的請求消息。 Step 501: The ring terminal reads the request message of the first card information to the IC card.

步驟502,模擬裝置通過NFC通過錄製IC卡的卡片資訊。 In step 502, the simulation device records the card information of the IC card through the NFC.

步驟503,錄製並轉發讀取卡片資訊報文。 In step 503, the card information message is recorded and forwarded.

步驟504,錄製並轉發返回的卡片資訊報文。 Step 504: Record and forward the returned card information message.

步驟505,錄製圈存初始化報文。 In step 505, the recording buffer initializes the message.

步驟506,錄製並轉發圈存終端圈存初始化指令報文。 Step 506: Record and forward the storage terminal to store the initialization instruction message.

步驟507,根據卡片資訊計算MAC1。 In step 507, MAC1 is calculated based on the card information.

步驟508,返回第一資料報文。 Step 508, returning the first data message.

步驟509,錄製並轉發第一資料報文。 In step 509, the first data message is recorded and forwarded.

步驟510,圈存終端根據返回的圈存初始化結果校驗MAC1值,以確保MAC1的合法性。 Step 510: The storage terminal checks the MAC1 value according to the returned buffer initialization result to ensure the validity of the MAC1.

步驟511,計算MAC2。在一實施例中,圈存終端可以根據交易資訊計算圈存用的MAC2值。 In step 511, MAC2 is calculated. In an embodiment, the storage terminal can calculate the MAC2 value for the inventory based on the transaction information.

步驟512,錄製圈存報文。 In step 512, the recorded message is recorded.

步驟513,錄製並轉發圈存指令報文。 In step 513, the circular instruction message is recorded and forwarded.

步驟514,根據圈存終端發送的資料校驗MAC2值。 Step 514, verifying the MAC2 value according to the data sent by the storage terminal.

步驟515,校驗通過後對卡片餘額和交易計數器進行操作,例如,增加餘額,交易計數器+1。 Step 515, after the verification is passed, the card balance and the transaction counter are operated, for example, the balance is increased, and the transaction counter is +1.

步驟516,IC卡片向模擬裝置返回圈存結果資料。 In step 516, the IC card returns the stored result data to the simulation device.

步驟517,模擬裝置錄製並向圈存終端轉發圈存結果報文。 In step 517, the simulation device records and forwards the circled result message to the storage terminal.

如圖5B所示,通過模擬通道獲取到用於模擬IC卡片的報文資料包括如下步驟: As shown in FIG. 5B, obtaining the message data for simulating the IC card through the analog channel includes the following steps:

步驟601,圈存終端向模擬裝置發送用於讀取卡片資訊的請求消息。 Step 601: The circle storage terminal sends a request message for reading card information to the simulation device.

步驟602,模擬裝置根據該請求消息以預設的模擬方式修改卡片消息中的資料,並向圈存終端返回修改後的卡片資訊,此處的修改後的卡片資訊即為上述圖2所示實施例中的第二資料報文。在一實施例中,卡片資訊可以包括IC卡的餘額、消費記錄以及卡號等資訊。 Step 602: The simulation device modifies the data in the card message according to the request message in a preset simulation manner, and returns the modified card information to the storage terminal, where the modified card information is implemented in the foregoing FIG. The second data message in the example. In an embodiment, the card information may include information such as the balance of the IC card, the consumption record, and the card number.

步驟603,圈存終端向模擬裝置發送圈存初始化請求。 Step 603, the circle storage terminal sends a circle initialization request to the simulation device.

步驟604,模擬裝置可以根據圈存初始化請求向圈存終端返回預設的模擬方式的第一卡片資訊、MAC1以及隨機數,在一實施例中,可以通過圖3所示的第二資料報文的方式將第一卡片資訊、MAC1以及隨機數返回給圈存終端。其中,如果模擬裝置不修改MAC1,則圈存終端在接收到上述資訊後,可以在驗證MAC1時驗證通過,如果模 擬裝置修改了MAC1,則可以使圈存終端模擬MAC1驗證失敗的場景。 Step 604: The simulation device may return the first card information, the MAC1, and the random number in the preset simulation mode to the storage terminal according to the buffer initialization request. In an embodiment, the second data packet shown in FIG. 3 may be used. The method returns the first card information, MAC1, and random number to the storage terminal. Wherein, if the analog device does not modify the MAC1, the circled terminal can verify the pass when verifying the MAC1 after receiving the above information, if the mode is If the proposed device modifies MAC1, the storage terminal can simulate the scenario where MAC1 authentication fails.

步驟605,圈存終端驗證MAC1的合法性,在一實施例中,可以根據模擬裝置返回的圈存初始化結果校驗MAC1值。 Step 605, the ring terminal verifies the validity of the MAC1. In an embodiment, the MAC1 value may be verified according to the cache initialization result returned by the simulation device.

步驟606,圈存終端根據交易資訊計算圈存用的MAC2值。 Step 606: The circle storage terminal calculates a MAC2 value for the circle according to the transaction information.

步驟607,圈存終端向模擬裝置發送圈存指令請求。 Step 607: The circle storage terminal sends a reserve instruction request to the simulation device.

步驟608,模擬裝置向圈存終端返回定制的圈存結果資訊,此處的圈存結果資訊即為上述圖4所示實施例中的第二資料報文。 Step 608: The simulation device returns the customized inventory result information to the storage terminal, where the circled result information is the second data message in the embodiment shown in FIG. 4 above.

通過上述實施例,在圈存終端讀取以及圈存IC卡片的過程中,圈存終端側的業務流程依賴IC卡片返回的報文資料,圈存終端需要考慮IC卡片可能返回的各種報文資料的情況,而本發明通過模擬裝置可以實現IC卡片可能返回的各種報文資料的情況,從而可以實現控制或改變返回給圈存終端的報文值,進而能夠模擬並適配各種類型的IC卡片的差異性,繼而通過模擬裝置模擬可能出現的IC卡片的異常場景。 Through the above embodiment, in the process of reading and storing the IC card in the storage terminal, the business process on the storage terminal side depends on the message data returned by the IC card, and the storage terminal needs to consider various message materials that the IC card may return. In the case of the present invention, the simulation device can realize various message materials that the IC card can return, thereby realizing control or changing the message value returned to the storage terminal, thereby being able to simulate and adapt various types of IC cards. The difference is then simulated by the simulation device to simulate an abnormal scene of the IC card.

對應於上述的非接觸式IC卡片的模擬方法,本發明還提出了圖6所示的根據本發明的一示例性實施例的模擬裝置的示意結構圖。請參考圖6,在硬體層面,該模擬裝置的包括處理器、內部匯流排、網路介面、隨機存取記憶體以及非揮發性記憶體,當然還可能包括其他業務所需要 的硬體。 Corresponding to the above-described simulation method of the non-contact type IC card, the present invention also proposes a schematic configuration diagram of the simulation apparatus according to an exemplary embodiment of the present invention shown in FIG. 6. Please refer to FIG. 6. At the hardware level, the analog device includes a processor, an internal bus, a network interface, a random access memory, and a non-volatile memory, and may of course include other services. Hardware.

其中,網路介面用於在圈存終端與IC卡片之間進行資料資訊傳輸的過程中,通過第一通道錄製資料資訊對應的第一資料報文;處理器,用於根據預設的模擬方式修改第一資料報文,得到第二資料報文;網路介面還用於通過第二通道將處理器修改後的第二資料報文返回給圈存終端,以供圈存終端執行與第二資料報文相關的業務流程。 The network interface is configured to record the first data message corresponding to the data information through the first channel during the data information transmission between the storage terminal and the IC card; and the processor is configured to perform the preset simulation mode according to the preset Modifying the first data packet to obtain the second data packet; the network interface is further configured to return the second data packet modified by the processor to the storage terminal through the second channel, for the storage terminal to execute and the second Business process related to data messages.

圖7示出了根據本發明的一示例性實施例的非接觸式IC卡片的模擬裝置的結構示意圖;如圖7所示,該非接觸式IC卡片的模擬裝置可以包括:報文錄製模組71、報文修改模組72、報文發送模組73。其中:報文錄製模組71,用於在圈存終端與IC卡片之間進行資料資訊傳輸的過程中,通過第一通道錄製資料資訊對應的第一資料報文;報文修改模組72,用於根據預設的模擬方式修改報文錄製模組71錄製得到的第一資料報文,得到第二資料報文;報文發送模組73,用於通過第二通道將報文修改模組72得到的第二資料報文返回給圈存終端,以供圈存終端執行與第二資料報文相關的業務流程。 FIG. 7 is a schematic structural diagram of a simulation device of a non-contact IC card according to an exemplary embodiment of the present invention; as shown in FIG. 7, the simulation device of the non-contact IC card may include: a message recording module 71 The message modification module 72 and the message sending module 73. The message recording module 71 is configured to record the first data message corresponding to the data information through the first channel during the data information transmission between the storage terminal and the IC card; the message modification module 72, The first data packet recorded by the message recording module 71 is modified according to a preset simulation manner to obtain a second data packet, and the message sending module 73 is configured to modify the packet through the second channel. The second data message obtained by the 72 is returned to the storage terminal for the storage terminal to execute the business process related to the second data message.

圖8示出了根據本發明的又一示例性實施例的非接觸式IC卡片的模擬裝置的結構示意圖;如圖8所示,在上 述圖7所示實施例的基礎上,資料資訊為IC卡片向圈存終端返回的IC卡片的第一卡片資訊,報文錄製模組71可包括:第一獲取單元711,用於通過第一通道獲取IC卡片需要向圈存終端返回的第一卡片資訊,其中,第一卡片資訊包括IC卡片的餘額、消費記錄和IC卡片的卡號;第一錄製單元712,用於錄製第一獲取單元711獲取到的第一卡片資訊對應的第一資料報文;第一轉發單元713,用於通過第一通道將第一錄製單元712錄製的第一卡片資訊轉發給圈存終端。 FIG. 8 is a block diagram showing a schematic configuration of a non-contact IC card according to still another exemplary embodiment of the present invention; as shown in FIG. On the basis of the embodiment shown in FIG. 7, the data information is the first card information of the IC card returned by the IC card to the storage terminal. The message recording module 71 may include: a first obtaining unit 711, configured to pass the first The first card information that the IC card needs to return to the storage terminal, wherein the first card information includes the balance of the IC card, the consumption record, and the card number of the IC card. The first recording unit 712 is configured to record the first acquiring unit 711. Obtaining the first data message corresponding to the first card information; the first forwarding unit 713 is configured to forward the first card information recorded by the first recording unit 712 to the storage terminal through the first channel.

在一實施例中,報文修改模組73可包括:第一修改單元731,用於根據預設的模擬方式修改第一資料報文中的第一獲取單元711獲取到的第一卡片資訊中的IC卡片的餘額、消費記錄和IC卡片的卡號,得到第二資料報文。 In an embodiment, the message modification module 73 may include: a first modification unit 731, configured to modify, in the first card information acquired by the first acquiring unit 711 in the first data packet, according to a preset simulation manner. The balance of the IC card, the consumption record, and the card number of the IC card receive the second data message.

圖9示出了根據本發明的再一示例性實施例的非接觸式IC卡片的模擬裝置的結構示意圖;如圖9所示,在上述圖7所示實施例的基礎上,資料資訊為IC卡片向圈存終端返回的IC卡片的第二卡片資訊,報文錄製模組71可包括:第二獲取單元714,用於通過第一通道獲取IC卡片根據圈存終端的圈存初始化指令返回的第二卡片消息,其中,第二卡片消息包括第一卡片資訊、消息認證碼和隨機數; 第二錄製單元715,用於錄製第二獲取單元714獲取到的第二卡片資訊對應的第一資料報文;第二轉發單元716,用於通過第一通道將第二錄製單元715錄製的第二卡片資訊轉發給圈存終端。 FIG. 9 is a schematic structural diagram of a simulation apparatus of a non-contact type IC card according to still another exemplary embodiment of the present invention; as shown in FIG. 9, on the basis of the embodiment shown in FIG. 7, the information information is an IC. The second card information of the IC card returned by the card to the storage terminal, the message recording module 71 may include: a second obtaining unit 714, configured to acquire the IC card through the first channel and return according to the circle initialization instruction of the storage terminal a second card message, wherein the second card message includes a first card information, a message authentication code, and a random number; The second recording unit 715 is configured to record the first data message corresponding to the second card information acquired by the second acquiring unit 714, and the second forwarding unit 716 is configured to record the second recording unit 715 by using the first channel. The second card information is forwarded to the storage terminal.

在一實施例中,報文修改模組73可包括:第二修改單元732,用於根據預設的模擬方式修改第二獲取單元714獲取到的第一資料報文中的第一卡片資訊、消息認證碼和隨機數,得到第二資料報文。 In an embodiment, the message modification module 73 may include: a second modification unit 732, configured to modify the first card information and the message in the first data message acquired by the second obtaining unit 714 according to a preset simulation manner. The authentication code and the random number get the second data message.

圖10示出了根據本發明的另一示例性實施例的非接觸式IC卡片的模擬裝置的結構示意圖;如圖10所示,在上述圖7所示實施例的基礎上,資料資訊為IC卡片向圈存終端返回的IC卡片的圈存結果資訊,報文錄製模組71可包括:第三獲取單元717,用於通過第一通道獲取IC卡片需要向圈存終端返回的圈存結果資訊;第三錄製單元718,用於錄製第三獲取單元717獲取到的圈存結果資訊對應的第一資料報文;第三轉發單元719,用於通過第一通道將第三錄製單元718錄製的圈存結果資訊轉發給圈存終端。 FIG. 10 is a schematic structural diagram of a simulation apparatus of a non-contact type IC card according to another exemplary embodiment of the present invention; as shown in FIG. 10, on the basis of the embodiment shown in FIG. 7, the information information is an IC. The card recording result information of the IC card returned by the card to the storage terminal, the message recording module 71 may include: a third obtaining unit 717, configured to acquire the information of the storage result that the IC card needs to return to the storage terminal through the first channel The third recording unit 718 is configured to record the first data message corresponding to the inventory result information acquired by the third obtaining unit 717, and the third forwarding unit 719 is configured to record the third recording unit 718 through the first channel. The storage result information is forwarded to the storage terminal.

在一實施例中,報文錄製模組73可包括:第三修改單元733,用於根據預設的模擬方式修改第三獲取單元717獲取到的第一資料報文中的圈存結果資訊,得到第二資料報文。 In an embodiment, the message recording module 73 may include: a third modifying unit 733, configured to modify the circled result information in the first data packet obtained by the third obtaining unit 717 according to a preset simulation manner, and obtain Second data message.

上述實施例可見,本發明通過預設的模擬方式既可以 模擬不同類型的IC卡片的差異性以及和IC卡片交互的異常場景(包括通常情況下難以出現和難以覆蓋的),也可以模擬其它的非接觸式IC卡片,從而可以消除圈存終端存在的業務隱患,並通過圈存終端對各種類型的IC卡片進行統一的模擬管理,為IC卡類應用的自動化檢測流程提供一種可行的方案。 It can be seen from the above embodiments that the present invention can be implemented by a preset simulation mode. Simulate the differences between different types of IC cards and the anomalous scenes that interact with IC cards (including those that are difficult to find and difficult to cover under normal circumstances), and can also simulate other non-contact IC cards, thereby eliminating the existence of services in the ring terminal. Hidden dangers, and unified simulation management of various types of IC cards through the storage terminal, providing a feasible solution for the automated detection process of IC card applications.

本領域技術人員在考慮說明書及實踐這裡公開的發明後,將容易想到本發明的其它實施方案。本發明旨在涵蓋本發明的任何變型、用途或者適應性變化,這些變型、用途或者適應性變化遵循本發明的一般性原理並包括本發明未公開的本技術領域中的公知常識或慣用技術手段。說明書和實施例僅被視為示例性的,本發明的真正範圍和精神由下面的申請專利範圍指出。 Other embodiments of the invention will be apparent to those skilled in the <RTIgt; The present invention is intended to cover any variations, uses, or adaptations of the present invention, which are in accordance with the general principles of the invention and include common general knowledge or common technical means in the art that are not disclosed in the present invention. . The specification and examples are to be regarded as illustrative only, and the true scope and spirit of the invention

還需要說明的是,術語“包括”、“包含”或者其任何其他變體意在涵蓋非排他性的包含,從而使得包括一系列要素的過程、方法、商品或者設備不僅包括那些要素,而且還包括沒有明確列出的其他要素,或者是還包括為這種過程、方法、商品或者設備所固有的要素。在沒有更多限制的情況下,由語句“包括一個......”限定的要素,並不排除在包括所述要素的過程、方法、商品或者設備中還存在另外的相同要素。 It is also to be understood that the terms "comprises" or "comprising" or "comprising" or any other variations are intended to encompass a non-exclusive inclusion, such that a process, method, article, Other elements not explicitly listed, or elements that are inherent to such a process, method, commodity, or equipment. An element defined by the phrase "comprising a ..." does not exclude the presence of additional equivalent elements in the process, method, item, or device including the element.

以上所述僅為本發明的較佳實施例而已,並不用以限制本發明,凡在本發明的精神和原則之內,所做的任何修改、等同替換、改進等,均應包含在本發明保護的範圍之 內。 The above are only the preferred embodiments of the present invention, and are not intended to limit the present invention. Any modifications, equivalents, improvements, etc., which are made within the spirit and principles of the present invention, should be included in the present invention. Scope of protection Inside.

Claims (15)

一種非接觸式IC卡片的模擬方法,所述方法包括:在圈存終端與IC卡片之間進行資料資訊傳輸的過程中,通過第一通道錄製所述資料資訊對應的第一資料報文;根據預設的模擬方式修改所述第一資料報文,得到第二資料報文;通過第二通道將所述第二資料報文返回給所述圈存終端,以供所述圈存終端執行與所述第二資料報文相關的業務流程。 A method for simulating a non-contact IC card, the method comprising: recording a first data message corresponding to the data information through a first channel during a data transmission between the storage terminal and the IC card; The preset data mode modifies the first data message to obtain a second data message; and the second data message is returned to the storage terminal through the second channel, so that the storage terminal performs The business process related to the second data message. 根據申請專利範圍第1項所述的方法,其中,所述資料資訊為所述IC卡片向所述圈存終端返回的所述IC卡片的第一卡片資訊,所述通過第一通道錄製所述資料資訊對應的第一資料報文,包括:通過第一通道獲取所述IC卡片需要向所述圈存終端返回的第一卡片資訊,其中,所述第一卡片資訊包括所述IC卡片的餘額、消費記錄和所述IC卡片的卡號;錄製所述第一卡片資訊對應的第一資料報文;通過所述第一通道將所述第一卡片資訊轉發給所述圈存終端。 The method of claim 1, wherein the material information is first card information of the IC card returned by the IC card to the storage terminal, and the recording is performed by using the first channel. The first data message corresponding to the data information includes: acquiring, by using the first channel, the first card information that the IC card needs to return to the storage terminal, wherein the first card information includes a balance of the IC card And consuming the card number of the IC card; recording the first data message corresponding to the first card information; and forwarding the first card information to the storage terminal by using the first channel. 根據申請專利範圍第2項所述的方法,其中,所述根據預設的模擬方式修改所述第一資料報文,得到第二資料報文,包括: 根據預設的模擬方式修改所述第一資料報文中的所述IC卡片的餘額、消費記錄和所述IC卡片的卡號,得到所述第二資料報文。 The method of claim 2, wherein the modifying the first data message according to a preset simulation manner to obtain a second data message comprises: And modifying the balance of the IC card, the consumption record, and the card number of the IC card in the first data message according to a preset simulation manner to obtain the second data message. 根據申請專利範圍第1項所述的方法,其中,所述資料資訊為所述IC卡片向所述圈存終端返回的所述IC卡片的第二卡片資訊,所述通過第一通道錄製所述資料資訊對應的第一資料報文,包括:通過第一通道獲取所述IC卡片根據所述圈存終端的圈存初始化指令返回的所述第二卡片消息,其中,所述第二卡片消息包括第一卡片資訊、所述消息認證碼和隨機數;錄製所述第二卡片資訊對應的第一資料報文;通過所述第一通道將所述第二卡片資訊轉發給所述圈存終端。 The method of claim 1, wherein the material information is second card information of the IC card returned by the IC card to the storage terminal, and the recording is performed by using the first channel. The first data message corresponding to the data information includes: acquiring, by using the first channel, the second card message returned by the IC card according to the circle storage initialization instruction of the storage terminal, wherein the second card message includes The first card information, the message authentication code, and the random number; the first data message corresponding to the second card information is recorded; and the second card information is forwarded to the storage terminal by using the first channel. 根據申請專利範圍第4項所述的方法,其中,所述根據預設的模擬方式修改所述第一資料報文,得到第二資料報文,包括:根據預設的模擬方式修改所述第一資料報文中的所述第一卡片資訊、所述消息認證碼和隨機數,得到所述第二資料報文。 The method of claim 4, wherein the modifying the first data message according to a preset simulation manner to obtain a second data message comprises: modifying the first data according to a preset simulation manner The first card information, the message authentication code, and a random number in a data message obtain the second data message. 根據申請專利範圍第1項所述的方法,其中,所述資料資訊為所述IC卡片向所述圈存終端返回的所述IC卡片的圈存結果資訊,所述通過第一通道錄製所述資料資訊對應的第一資料報文,包括: 通過第一通道獲取所述IC卡片需要向所述圈存終端返回的圈存結果資訊;錄製所述圈存結果資訊對應的第一資料報文;通過所述第一通道將所述圈存結果資訊轉發給所述圈存終端。 The method of claim 1, wherein the material information is a result of the storage of the IC card returned by the IC card to the storage terminal, and the recording is performed by the first channel. The first data message corresponding to the information, including: Obtaining, by the first channel, the storage result information that is returned to the storage terminal by the IC card; recording the first data message corresponding to the storage result information; and performing the circle storage result by using the first channel The information is forwarded to the storage terminal. 根據申請專利範圍第6項所述的方法,其中,所述根據預設的模擬方式修改所述第一資料報文,得到第二資料報文,包括:根據預設的模擬方式修改所述第一資料報文中的所述圈存結果資訊,得到所述第二資料報文。 The method of claim 6, wherein the modifying the first data message according to a preset simulation manner to obtain the second data message comprises: modifying the first data according to a preset simulation manner The stored result information in the data message obtains the second data message. 一種非接觸式IC卡片的模擬裝置,所述裝置包括:報文錄製模組,用於在圈存終端與IC卡片之間進行資料資訊傳輸的過程中,通過第一通道錄製所述資料資訊對應的第一資料報文;報文修改模組,用於根據預設的模擬方式修改所述報文錄製模組錄製得到的所述第一資料報文,得到第二資料報文;報文發送模組,用於通過第二通道將所述報文修改模組得到的所述第二資料報文返回給所述圈存終端,以供所述圈存終端執行與所述第二資料報文相關的業務流程。 An analog device for a non-contact IC card, the device comprising: a message recording module, configured to record the data information through the first channel during the process of data information transmission between the storage terminal and the IC card a first data message, the message modification module, configured to modify the first data message recorded by the message recording module according to a preset simulation manner to obtain a second data message; a module, configured to return, by the second channel, the second data packet obtained by the packet modification module to the storage terminal, where the storage terminal executes the second data packet Related business processes. 根據申請專利範圍第8項所述的裝置,其中,所述資料資訊為所述IC卡片向所述圈存終端返回的所述IC卡片的第一卡片資訊,所述報文錄製模組包括: 第一獲取單元,用於通過第一通道獲取所述IC卡片需要向所述圈存終端返回的第一卡片資訊,其中,所述第一卡片資訊包括所述IC卡片的餘額、消費記錄和所述IC卡片的卡號;第一錄製單元,用於錄製所述第一獲取單元獲取到的所述第一卡片資訊對應的第一資料報文;第一轉發單元,用於通過所述第一通道將所述第一錄製單元錄製的所述第一卡片資訊轉發給所述圈存終端。 The device of claim 8, wherein the material information is the first card information of the IC card returned by the IC card to the storage terminal, and the message recording module comprises: a first acquiring unit, configured to acquire, by using the first channel, first card information that the IC card needs to return to the storage terminal, where the first card information includes a balance, a consumption record, and a location of the IC card a card number of the IC card; a first recording unit, configured to record a first data message corresponding to the first card information acquired by the first acquiring unit; and a first forwarding unit, configured to pass the first channel Forwarding the first card information recorded by the first recording unit to the storage terminal. 根據申請專利範圍第9項所述的裝置,其中,所述報文修改模組包括:第一修改單元,用於根據預設的模擬方式修改所述第一資料報文中的所述第一獲取單元獲取到的所述第一卡片資訊中的所述IC卡片的餘額、消費記錄和所述IC卡片的卡號,得到所述第二資料報文。 The device of claim 9, wherein the message modification module comprises: a first modification unit, configured to modify the first acquisition in the first data message according to a preset simulation manner And obtaining, by the unit, the balance of the IC card in the first card information, the consumption record, and the card number of the IC card, to obtain the second data message. 根據申請專利範圍第8項所述的裝置,其中,所述資料資訊為所述IC卡片向所述圈存終端返回的所述IC卡片的第二卡片資訊,所述報文錄製模組包括:第二獲取單元,用於通過第一通道獲取所述IC卡片根據所述圈存終端的圈存初始化指令返回的所述第二卡片消息,其中,所述第二卡片消息包括第一卡片資訊、所述消息認證碼和隨機數;第二錄製單元,用於錄製所述第二獲取單元獲取到的所述第二卡片資訊對應的第一資料報文;第二轉發單元,用於通過所述第一通道將所述第二錄 製單元錄製的所述第二卡片資訊轉發給所述圈存終端。 The device of claim 8, wherein the data information is second card information of the IC card returned by the IC card to the storage terminal, the message recording module comprising: a second acquiring unit, configured to acquire, by using the first channel, the second card message returned by the IC card according to the circle storage initialization instruction of the storage terminal, where the second card message includes first card information, a message encoding code and a random number; a second recording unit, configured to record a first data message corresponding to the second card information acquired by the second acquiring unit; and a second forwarding unit, configured to The first channel will be the second record The second card information recorded by the unit is forwarded to the storage terminal. 根據申請專利範圍第11項所述的裝置,其中,所述報文修改模組包括:第二修改單元,用於根據預設的模擬方式修改所述第二獲取單元獲取到的所述第一資料報文中的所述第一卡片資訊、所述消息認證碼和隨機數,得到所述第二資料報文。 The device of claim 11, wherein the message modification module comprises: a second modification unit, configured to modify the first acquired by the second acquisition unit according to a preset simulation manner The first card information, the message authentication code, and a random number in the data packet obtain the second data message. 根據申請專利範圍第8項所述的裝置,其中,所述資料資訊為所述IC卡片向所述圈存終端返回的所述IC卡片的圈存結果資訊,所述報文錄製模組包括:第三獲取單元,用於通過第一通道獲取所述IC卡片需要向所述圈存終端返回的圈存結果資訊;第三錄製單元,用於錄製所述第三獲取單元獲取到的所述圈存結果資訊對應的第一資料報文;第三轉發單元,用於通過所述第一通道將所述第三錄製單元錄製的所述圈存結果資訊轉發給所述圈存終端。 The device of claim 8, wherein the data information is information about the storage result of the IC card returned by the IC card to the storage terminal, the message recording module comprising: a third acquiring unit, configured to acquire, by using the first channel, the storage result information that the IC card needs to return to the storage terminal; the third recording unit is configured to record the circle acquired by the third acquiring unit The first data packet corresponding to the result information is stored; and the third forwarding unit is configured to forward, by the first channel, the information about the storage result recorded by the third recording unit to the storage terminal. 根據申請專利範圍第13項所述的裝置,其中,所述報文錄製模組包括:第三修改單元,用於根據預設的模擬方式修改所述第三獲取單元獲取到的所述第一資料報文中的所述圈存結果資訊,得到所述第二資料報文。 The device of claim 13, wherein the message recording module comprises: a third modifying unit, configured to modify the first acquired by the third acquiring unit according to a preset simulation manner The stored result information in the data message obtains the second data message. 一種模擬裝置,所述裝置包括:處理器;用於儲存所述處理器可執行指令的記憶體;網路介面; 其中,所述網路介面用於在圈存終端與IC卡片之間進行資料資訊傳輸的過程中,通過第一通道錄製所述資料資訊對應的第一資料報文;所述處理器,用於根據預設的模擬方式修改所述第一資料報文,得到第二資料報文;所述網路介面還用於通過第二通道將所述處理器修改後的所述第二資料報文返回給所述圈存終端,以供所述圈存終端執行與所述第二資料報文相關的業務流程。 An analog device, the device comprising: a processor; a memory for storing executable instructions of the processor; a network interface; The network interface is configured to record, by using a first channel, a first data packet corresponding to the data information in a process of transmitting data information between the storage terminal and the IC card; the processor is configured to: Modifying the first data packet according to a preset simulation manner to obtain a second data packet; the network interface is further configured to return, by using the second channel, the second data packet that is modified by the processor And the storage terminal is configured to perform, by the storage terminal, a business process related to the second data message.
TW105143379A 2016-01-18 2016-12-27 Simulation method and device for contactless ic card, and simulation apparatus TW201732703A (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610031154.6A CN106980889A (en) 2016-01-18 2016-01-18 Analogy method, device and the analogue means of non-contact IC card

Publications (1)

Publication Number Publication Date
TW201732703A true TW201732703A (en) 2017-09-16

Family

ID=59339919

Family Applications (1)

Application Number Title Priority Date Filing Date
TW105143379A TW201732703A (en) 2016-01-18 2016-12-27 Simulation method and device for contactless ic card, and simulation apparatus

Country Status (3)

Country Link
CN (1) CN106980889A (en)
TW (1) TW201732703A (en)
WO (1) WO2017124939A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107862225B (en) * 2017-11-08 2020-12-29 北京银联金卡科技有限公司 Non-contact IC card simulation and data real-time analysis system

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08102772A (en) * 1994-09-30 1996-04-16 Matsushita Electric Ind Co Ltd Protocol analyzer
US7342892B2 (en) * 2002-06-26 2008-03-11 Sbc Properties, L.P. Controlled exception-based routing protocol validation
JP2005070835A (en) * 2003-08-25 2005-03-17 Fujitsu Ltd Test supporting program and test supporting method
CN100387004C (en) * 2005-11-16 2008-05-07 华为技术有限公司 Protocol testing apparatus and method thereof
CN100565597C (en) * 2007-11-16 2009-12-02 北京飞天诚信科技有限公司 A kind of system and method for self-recharging
KR100962532B1 (en) * 2007-12-18 2010-06-14 한국전자통신연구원 System for load regenerating using packets of load test and its method
CN101819695B (en) * 2009-12-15 2012-01-25 北京华大智宝电子系统有限公司 Method for realizing synchronization of IC card/purse transaction and system accounting
CN102594589B (en) * 2012-02-01 2014-05-07 北京经纬恒润科技有限公司 Ethernet fault injection method, device and system
US9385935B2 (en) * 2013-03-06 2016-07-05 Microsoft Technology Licensing, Llc Transparent message modification for diagnostics or testing

Also Published As

Publication number Publication date
WO2017124939A1 (en) 2017-07-27
CN106980889A (en) 2017-07-25

Similar Documents

Publication Publication Date Title
CN107018125B (en) A kind of block catenary system, date storage method and device
US11321783B2 (en) Method and device for data processing based on blockchain
US11572713B1 (en) Smart lock box
CA2905298C (en) Method and system of detecting and using geofencing for fraud detection and modeling
US20210166326A1 (en) Claim settlement method and apparatus employing blockchain technology
CN111026789B (en) Block chain-based electronic bill query method and device and electronic equipment
US20140279403A1 (en) Methods and systems for executing mobile currency transactions
US20220036350A1 (en) Cross-border resource transfer authenticity verification method, device and electronic equipment
US10325262B2 (en) Controlling mobile payment transactions based on risk scores for point-of-sale terminals determined from locations reported by mobile terminals
US20200134713A1 (en) Regulatory inspection in a blockchain network
US10915893B2 (en) Method for processing transaction data, device and corresponding program
US20200097942A1 (en) System and method for loading prepaid card with funds using a mobile device
US10469493B2 (en) Mobile device, authentication device and authentication methods thereof
CN111582868A (en) Transaction request processing method, device and equipment
TW201732703A (en) Simulation method and device for contactless ic card, and simulation apparatus
CN116451280A (en) Asset management method and device based on blockchain
CN111582904A (en) Information verification and cancellation system and method
CN105103180B (en) Method for handling the distribution of mobile credit card
US20140236821A1 (en) Method and system for the transmission of authenticated authorization requests
CN105608576A (en) Method, device and terminal for processing information
US11797975B1 (en) Pre-authorized transfer
CN108171505A (en) The methods, devices and systems of trading processing
TWM556893U (en) Proxy system of financial business
US20170178088A1 (en) Performing a ticketing operation
CN116383890A (en) Asset management method and device based on blockchain