[go: up one dir, main page]

CN107846238A - A kind of method and device of control NFC routes - Google Patents

A kind of method and device of control NFC routes Download PDF

Info

Publication number
CN107846238A
CN107846238A CN201610828374.1A CN201610828374A CN107846238A CN 107846238 A CN107846238 A CN 107846238A CN 201610828374 A CN201610828374 A CN 201610828374A CN 107846238 A CN107846238 A CN 107846238A
Authority
CN
China
Prior art keywords
application
type
routing table
instruction
disabled
Prior art date
Legal status (The legal status 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 status listed.)
Granted
Application number
CN201610828374.1A
Other languages
Chinese (zh)
Other versions
CN107846238B (en
Inventor
张庆立
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201610828374.1A priority Critical patent/CN107846238B/en
Priority to PCT/CN2017/077340 priority patent/WO2018049802A1/en
Publication of CN107846238A publication Critical patent/CN107846238A/en
Application granted granted Critical
Publication of CN107846238B publication Critical patent/CN107846238B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B5/00Near-field transmission systems, e.g. inductive or capacitive transmission systems
    • H04B5/70Near-field transmission systems, e.g. inductive or capacitive transmission systems specially adapted for specific purposes
    • H04B5/77Near-field transmission systems, e.g. inductive or capacitive transmission systems specially adapted for specific purposes for interrogation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B5/00Near-field transmission systems, e.g. inductive or capacitive transmission systems
    • H04B5/70Near-field transmission systems, e.g. inductive or capacitive transmission systems specially adapted for specific purposes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B5/00Near-field transmission systems, e.g. inductive or capacitive transmission systems
    • H04B5/20Near-field transmission systems, e.g. inductive or capacitive transmission systems characterised by the transmission technique; characterised by the transmission medium
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2209/00Additional information or applications relating to cryptographic mechanisms or cryptographic arrangements for secret or secure communication H04L9/00
    • H04L2209/80Wireless
    • H04L2209/805Lightweight hardware, e.g. radio-frequency identification [RFID] or sensor

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephone Function (AREA)

Abstract

本发明公开了一种控制NFC路由的方法及装置,涉及终端技术领域,所述方法包括:终端确定用户需要禁用的安全单元SE类型的应用;所述终端根据所述需要禁用的SE类型的应用,对路由表进行修改,使需要禁用的SE类型的应用路由到操作系统;所述终端根据修改后的路由表,发送来自NFC读卡器的用于选择某一应用的指令。通过本发明实施例可以使用户动态激活或者禁用存在于SE上的应用,提升用户体验。

The present invention discloses a method and device for controlling NFC routing, and relates to the technical field of terminals. The method includes: the terminal determines that the user needs to disable the application of the security element SE type; the terminal according to the need to disable the SE type of application , modifying the routing table, so that the SE-type application that needs to be disabled is routed to the operating system; the terminal sends an instruction for selecting a certain application from the NFC card reader according to the modified routing table. Through the embodiment of the present invention, the user can dynamically activate or deactivate the applications existing on the SE, so as to improve the user experience.

Description

一种控制NFC路由的方法及装置A method and device for controlling NFC routing

技术领域technical field

本发明涉及终端技术领域,特别涉及一种控制近距离无线通信(Near FieldCommunication,NFC)路由的方法及装置。The present invention relates to the technical field of terminals, in particular to a method and device for controlling routing of Near Field Communication (NFC).

背景技术Background technique

近期NFC技术发展很快,NFC的卡模拟功能也被越来越多的使用。NFC的卡模拟可以有多个执行环境(NFCEE),但是可以分为基于主机的卡模拟(Host-based Card Emulation,HCE)类型的和安全单元(Secure Element,SE,基于硬件的用于实现安全卡模拟的智能卡芯片)类型的两类。其中,HCE类型的是主机模拟的,操作系统可以对卡模拟的流程进行管控,但是SE是一个独立的智能卡芯片,SE类型的卡模拟操作,SE可以不经过操作系统而通过近场通信模拟前端芯片(ContactLess Front-end,CLF)直接与NFC读卡器进行交互,这样存在一定的安全隐患,即用户无法去控制这个过程。Recently, NFC technology has developed rapidly, and the card simulation function of NFC has also been used more and more. NFC card emulation can have multiple execution environments (NFCEE), but can be divided into host-based card emulation (Host-based Card Emulation, HCE) type and secure element (Secure Element, SE, hardware-based for implementing security) There are two types of card emulation smart card chip) types. Among them, the HCE type is simulated by the host, and the operating system can control the process of card simulation, but SE is an independent smart card chip, and the SE type of card simulation operation, SE can simulate the front end through near-field communication without the operating system The chip (ContactLess Front-end, CLF) directly interacts with the NFC card reader, so there are certain security risks, that is, the user cannot control this process.

具体地说,目前不管是HCE类型的还是SE类型的卡模拟应用,都会注册一组应用唯一标识(Application ID,AID),在NFC芯片中存在一个路由表。路由表记录每个AID需要被路由的方向,路由的方向可以是主机(对应于HCE),也可以是某个SE,同时还有一个默认路由设置,若在路由表中无法找到某个AID,则按照默认路由去路由。Specifically, at present, regardless of the card simulation application of the HCE type or the SE type, a set of application unique identifiers (Application ID, AID) will be registered, and a routing table exists in the NFC chip. The routing table records the direction in which each AID needs to be routed. The routing direction can be the host (corresponding to HCE) or a certain SE. There is also a default routing setting. If an AID cannot be found in the routing table, Then follow the default route to route.

目前的普遍做法是把HCE或者SE的AID写入路由表,然后把默认路由设置为SE或者HCE,这样路由表中不需要存储所有的AID,可以节省路由表的空间。图1是现有技术提供的NFC读卡器、CLF与HCE、SE的关系图,如图1所示,NFC读卡器的指令发给CLF,CLF根据路由表的情况确定是路由到HCE还是各个SE。The current common practice is to write the AID of HCE or SE into the routing table, and then set the default route as SE or HCE, so that there is no need to store all AIDs in the routing table, which can save the space of the routing table. Fig. 1 is the relationship diagram of NFC card reader, CLF and HCE, SE provided by prior art, as shown in Fig. 1, the instruction of NFC card reader is sent to CLF, and CLF determines whether to route to HCE or SE according to the situation of routing table Each SE.

一般来说,终端产品在出厂的时候会设置好默认路由,并且目前默认路由一般都会设置为SE。如果默认路由是SE并把所有HCE相关的AID写入路由表,那么所有SE相关的AID可以不经过操作系统的控制,而由SE直接通过CLF与NFC读卡器进行交互。SE中可能会有多个支付类型的应用,但用户不一定希望使用所有的支付类型的应用,或者希望可以自己动态的选择支付应用。由于SE与NFC读卡器的交互不会经过操作系统的控制,因此无法做到由用户动态选择SE中的支付应用是否被激活。Generally speaking, the terminal product will set the default route when it leaves the factory, and the current default route is generally set to SE. If the default route is SE and all HCE-related AIDs are written into the routing table, then all SE-related AIDs can interact with the NFC card reader directly through the CLF without being controlled by the operating system. There may be multiple payment-type applications in SE, but users do not necessarily want to use all payment-type applications, or hope to be able to dynamically select payment applications by themselves. Since the interaction between the SE and the NFC card reader will not be controlled by the operating system, it is impossible for the user to dynamically select whether the payment application in the SE is activated.

如果默认路由是HCE并把所有SE相关的AID写入路由表,情况与上面是类似的,所有SE相关的AID可以不经过操作系统的控制,由SE直接通过CLF与读卡器进行交互。If the default route is HCE and all SE-related AIDs are written into the routing table, the situation is similar to the above. All SE-related AIDs can interact with the card reader directly through CLF without the control of the operating system.

发明内容Contents of the invention

根据本发明实施例提供的技术方案解决的技术问题是将用户禁用或需要动态选择的SE类型的应用路由至操作系统,从而使用户动态激活或者禁用存在于SE上的应用。The technical problem solved by the technical solution provided according to the embodiments of the present invention is to route the SE-type applications that are disabled by the user or need to be dynamically selected to the operating system, so that the user can dynamically activate or disable the applications existing on the SE.

根据本发明实施例提供的一种控制NFC路由的方法,包括:A method for controlling NFC routing provided according to an embodiment of the present invention includes:

终端确定用户需要禁用的SE类型的应用;The terminal determines the application of the SE type that the user needs to disable;

所述终端根据所述需要禁用的SE类型的应用,对路由表进行修改,使需要禁用的SE类型的应用路由到操作系统;The terminal modifies the routing table according to the application of the SE type that needs to be disabled, so that the application of the SE type that needs to be disabled is routed to the operating system;

所述终端根据修改后的路由表,发送来自NFC读卡器的用于选择某一应用的指令。The terminal sends an instruction for selecting an application from the NFC card reader according to the modified routing table.

优选地,所述终端根据所述需要禁用的SE类型的应用,对路由表进行修改,使需要禁用的SE类型的应用路由到操作系统的步骤包括:Preferably, the terminal modifies the routing table according to the SE-type application that needs to be disabled, so that the step of routing the SE-type application that needs to be disabled to the operating system includes:

所述终端将所述路由表中的默认路由调整为HCE;The terminal adjusts the default route in the routing table to HCE;

所述终端根据所述需要禁用的SE类型的应用,确定不需要禁用的SE类型的应用,并将所述不需要禁用的SE类型的应用写入所述路由表。The terminal determines an SE type application that does not need to be disabled according to the SE type application that needs to be disabled, and writes the SE type application that does not need to be disabled into the routing table.

优选地,所述终端根据所述需要禁用的SE类型的应用,对路由表进行修改,使需要禁用的SE类型的应用路由到操作系统的步骤还包括:Preferably, the terminal modifies the routing table according to the SE-type application that needs to be disabled, so that the step of routing the SE-type application that needs to be disabled to the operating system further includes:

所述终端删除所述路由表中的HCE类型的应用。The terminal deletes the application of the HCE type in the routing table.

优选地,所述终端根据修改后的路由表,发送其收到的来自NFC读卡器的用于选择某一应用的指令步骤包括:Preferably, according to the modified routing table, the terminal sends the instruction step received from the NFC card reader for selecting an application comprising:

所述终端收到来自NFC读卡器的用于选择SE类型的应用的指令时,查询所述修改后的路由表;When the terminal receives an instruction from the NFC card reader for selecting an application of the SE type, query the modified routing table;

若所述修改后的路由表中不存在所述SE类型的应用,则根据所述修改后的路由表中的默认路由,将所述指令发送至HCE,以供操作系统处理所述指令;If the SE-type application does not exist in the modified routing table, send the instruction to the HCE according to the default route in the modified routing table, so that the operating system can process the instruction;

若所述修改后的路由表中存在所述SE类型的应用,则根据所述修改后的路由表,将所述指令发送至SE,以供所述NFC读卡器选择的SE类型的应用进行处理。If there is an application of the SE type in the modified routing table, then according to the modified routing table, the instruction is sent to the SE for the SE type of application selected by the NFC card reader to perform deal with.

优选地,所述终端根据修改后的路由表,发送其收到的来自NFC读卡器的用于选择某一应用的指令步骤包括:Preferably, according to the modified routing table, the terminal sends the instruction step received from the NFC card reader for selecting an application comprising:

所述终端收到来自NFC读卡器的用于选择HCE类型的应用的指令时,根据所述修改后的路由表中的默认路由,将所述指令发送至HCE,以供所述NFC读卡器选择的HCE类型的应用进行处理。When the terminal receives an instruction from the NFC card reader for selecting an application of the HCE type, according to the default route in the modified routing table, the instruction is sent to the HCE for the NFC card reader The application of the HCE type selected by the controller is processed.

根据本发明实施例提供的存储介质,其存储用于实现上述控制NFC路由的方法的程序。According to a storage medium provided by an embodiment of the present invention, it stores a program for implementing the above method for controlling NFC routing.

根据本发明实施例提供的一种控制NFC路由的装置,包括:A device for controlling NFC routing provided according to an embodiment of the present invention includes:

获取模块,用于确定用户需要禁用的SE类型的应用;An acquisition module, which is used to determine the application of the SE type that the user needs to disable;

调整模块,用于根据所述需要禁用的SE类型的应用,对路由表进行修改,使需要禁用的SE类型的应用路由到操作系统;An adjustment module, configured to modify the routing table according to the application of the SE type that needs to be disabled, so that the application of the SE type that needs to be disabled is routed to the operating system;

处理模块,用于根据修改后的路由表,发送来自NFC读卡器的用于选择某一应用的指令。The processing module is configured to send an instruction for selecting an application from the NFC card reader according to the modified routing table.

优选地,所述调整模块将所述路由表中的默认路由调整为HCE,并根据所述需要禁用的SE类型的应用,确定不需要禁用的SE类型的应用,将所述不需要禁用的SE类型的应用写入所述路由表。Preferably, the adjustment module adjusts the default route in the routing table to HCE, and according to the application of the SE type that needs to be disabled, determines the application of the SE type that does not need to be disabled, and assigns the SE type that does not need to be disabled type of application writes to the routing table.

优选地,所述调整模块还用于删除所述路由表中的HCE类型的应用。Preferably, the adjustment module is further configured to delete the HCE-type application in the routing table.

优选地,所述处理模块收到来自NFC读卡器的用于选择SE类型的应用的指令时,查询所述修改后的路由表,若所述修改后的路由表中不存在所述SE类型的应用,则根据所述修改后的路由表中的默认路由,将所述指令发送至HCE,以供操作系统处理所述指令,若所述修改后的路由表中存在所述SE类型的应用,则根据所述修改后的路由表,将所述指令发送至SE,以供所述NFC读卡器选择的SE类型的应用进行处理。Preferably, when the processing module receives an instruction from the NFC card reader for selecting an application of the SE type, it queries the modified routing table, if the SE type does not exist in the modified routing table According to the default route in the modified routing table, the instruction is sent to the HCE for the operating system to process the instruction, if there is an application of the SE type in the modified routing table , then according to the modified routing table, the instruction is sent to the SE for processing by the application of the SE type selected by the NFC card reader.

优选地,所述处理模块收到来自NFC读卡器的用于选择HCE类型的应用的指令时,根据所述修改后的路由表中的默认路由,将所述指令发送至HCE,以供所述NFC读卡器选择的HCE类型的应用进行处理。Preferably, when the processing module receives an instruction from the NFC card reader for selecting an application of the HCE type, it sends the instruction to the HCE according to the default route in the modified routing table for all The application of the HCE type selected by the NFC card reader is processed.

本发明实施例提供的技术方案具有如下有益效果:The technical solutions provided by the embodiments of the present invention have the following beneficial effects:

通过本发明实施例可以使用户动态激活或者禁用存在于SE上的应用,提升用户体验。Through the embodiment of the present invention, the user can dynamically activate or deactivate the applications existing on the SE, so as to improve the user experience.

附图说明Description of drawings

图1是现有技术提供的NFC读卡器、CLF与HCE、SE的关系图;Fig. 1 is the relation diagram of NFC card reader, CLF and HCE, SE provided by prior art;

图2是本发明实施例提供的控制NFC路由的方法框图;Fig. 2 is a block diagram of a method for controlling NFC routing provided by an embodiment of the present invention;

图3是本发明实施例提供的控制NFC路由的装置框图;Fig. 3 is a block diagram of a device for controlling NFC routing provided by an embodiment of the present invention;

图4是本发明实施例提供的初始情况下各个AID的路由情况图;FIG. 4 is a routing diagram of each AID in an initial situation provided by an embodiment of the present invention;

图5是本发明实施例提供的路由表的变化示意图;FIG. 5 is a schematic diagram of changes in a routing table provided by an embodiment of the present invention;

图6是本发明实施例提供的路由表变更后各个AID的路由情况图。Fig. 6 is a diagram of the routing situation of each AID after the routing table is changed according to the embodiment of the present invention.

具体实施方式Detailed ways

以下结合附图对本发明的优选实施例进行详细说明,应当理解,以下所说明的优选实施例仅用于说明和解释本发明,并不用于限定本发明。The preferred embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings. It should be understood that the preferred embodiments described below are only used to illustrate and explain the present invention, and are not intended to limit the present invention.

图2是本发明实施例提供的控制NFC路由的方法框图,如图2所示,步骤包括:Fig. 2 is a block diagram of a method for controlling NFC routing provided by an embodiment of the present invention. As shown in Fig. 2, the steps include:

步骤S101:终端确定用户需要禁用的安全单元SE类型的应用。Step S101: the terminal determines the application of the security element SE type that the user needs to disable.

终端通过将其支持的SE类型的应用展示给用户,例如,将SE类型的应用的AID和/或图标展示给用户,使用户选择需要禁用的或需要动态选择的SE类型的应用,从而确定用户需要禁用的或需要动态选择的SE类型的应用。The terminal displays the SE-type applications it supports to the user, for example, displays the AID and/or icon of the SE-type application to the user, so that the user selects the SE-type application that needs to be disabled or needs to be dynamically selected, so as to determine the user's Applications that require disabled or dynamically selected SE types.

步骤S102:所述终端根据所述需要禁用的SE类型的应用,对路由表进行修改,使需要禁用的SE类型的应用路由到操作系统。Step S102: The terminal modifies the routing table according to the SE-type application that needs to be disabled, so that the SE-type application that needs to be disabled is routed to the operating system.

所述终端将路由表中的默认路由调整为HCE,并根据所述需要禁用的SE类型的应用,确定不需要禁用的SE类型的应用,将所述不需要禁用的SE类型的应用写入所述路由表,从而可以将不需要禁用的SE类型的应用按照路由表路由至指定目标,将需要禁用的SE类型的应用和HCE的应用路由至HCE。The terminal adjusts the default route in the routing table to HCE, and according to the application of the type of SE that needs to be disabled, determines the application of the type of SE that does not need to be disabled, and writes the application of the type of SE that does not need to be disabled into the The aforementioned routing table can be used to route SE-type applications that do not need to be disabled to a specified target according to the routing table, and route SE-type applications that need to be disabled and HCE applications to the HCE.

进一步地,所述终端删除所述路由表中的HCE类型的应用。Further, the terminal deletes the application of the HCE type in the routing table.

步骤S103:所述终端根据修改后的路由表,发送来自NFC读卡器的用于选择某一应用的指令。Step S103: The terminal sends an instruction for selecting an application from the NFC card reader according to the modified routing table.

NFC读卡器向终端发送用于选择SE类型的应用的指令时,终端根据该指令,查询所述修改后的路由表中是否存在该SE类型的应用,若存在所述SE类型的应用,则根据所述修改后的路由表,将所述指令发送至相应的SE,以供所述NFC读卡器选择的SE类型的应用处理该指令,否则根据所述修改后的路由表中的默认路由,将所述指令发送至HCE,以供操作系统处理所述指令。When the NFC card reader sends an instruction for selecting an application of the SE type to the terminal, the terminal queries whether there is an application of the SE type in the modified routing table according to the instruction, and if there is an application of the SE type, then According to the modified routing table, send the instruction to the corresponding SE, so that the application of the SE type selected by the NFC card reader processes the instruction, otherwise according to the default route in the modified routing table , sending the instruction to the HCE, so that the operating system can process the instruction.

NFC读卡器向终端发送用于选择HCE类型的应用的指令时,终端根据该指令,按照所述修改后的路由表中的默认路由,将所述指令发送至HCE,以供所述NFC读卡器选择的HCE类型的应用处理该指令。When the NFC card reader sends an instruction for selecting an application of the HCE type to the terminal, the terminal sends the instruction to the HCE according to the instruction and the default route in the modified routing table for the NFC to read The application of the HCE type selected by the card handles this instruction.

本领域普通技术人员可以理解,实现上述实施例方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,所述的程序可以存储于计算机可读取存储介质中,该程序在执行时,包括步骤S101至步骤S103。其中,所述的存储介质可以为ROM/RAM、磁碟、光盘等。Those of ordinary skill in the art can understand that all or part of the steps in the method of the above-mentioned embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium. , including step S101 to step S103. Wherein, the storage medium may be ROM/RAM, magnetic disk, optical disk, etc.

图3是本发明实施例提供的控制NFC路由的装置框图,如图3所示,包括:Fig. 3 is a block diagram of an apparatus for controlling NFC routing provided by an embodiment of the present invention, as shown in Fig. 3 , including:

获取模块10,用于确定用户需要禁用的SE类型的应用。具体地说,获取模块10通过将其支持的SE类型的应用展示给用户,例如,SE类型的应用的AID和/或图表等,使用户选择需要禁用的或需要动态选择的SE类型的应用,从而终端确定用户需要禁用的或需要动态选择的SE类型的应用。The acquiring module 10 is configured to determine the SE-type applications that the user needs to disable. Specifically, the acquisition module 10 displays the SE-type applications that it supports to the user, for example, the AID and/or chart of the SE-type applications, etc., so that the user can select the SE-type applications that need to be disabled or need to be dynamically selected, Thus, the terminal determines the SE-type application that needs to be disabled or dynamically selected by the user.

调整模块20,用于根据所述需要禁用的SE类型的应用,对路由表进行修改,使需要禁用的SE类型的应用路由到操作系统。具体地说,调整模块20将所述路由表中的默认路由调整为HCE,并需要禁用的SE类型的应用,确定不需要禁用的SE类型的应用,将所述不需要禁用的SE类型的应用写入所述路由表。进一步地,调整模块20还用于删除所述路由表中的HCE类型的应用。The adjustment module 20 is configured to modify the routing table according to the application of the SE type that needs to be disabled, so that the application of the SE type that needs to be disabled is routed to the operating system. Specifically, the adjustment module 20 adjusts the default route in the routing table to HCE and needs to disable the SE type of application, determines that the SE type of application that does not need to be disabled is determined, and the SE type that does not need to be disabled Write to the routing table. Further, the adjustment module 20 is further configured to delete the HCE-type application in the routing table.

处理模块30,用于根据修改后的路由表,发送来自NFC读卡器的用于选择某一应用的指令。处理模块30在收到来自NFC读卡器的用于选择SE类型的应用的指令时,查询所述修改后的路由表,若所述修改后的路由表中不存在所述SE类型的应用,则说明所述SE类型的应用是用户需要禁用的或需要动态选择的应用,此时根据所述修改后的路由表中的默认路由,将所述指令发送至HCE,以供操作系统处理所述指令,若所述修改后的路由表中存在所述SE类型的应用,则说明所述SE类型的应用是用户希望使用的应用,此时根据所述修改后的路由表,将所述指令发送至SE,以供所述NFC读卡器选择的SE类型的应用进行处理。处理模块30在收到来自NFC读卡器的用于选择HCE类型的应用的指令时,根据所述修改后的路由表中的默认路由,将所述指令发送至HCE,以供所述NFC读卡器选择的HCE类型的应用进行处理。The processing module 30 is configured to send an instruction for selecting an application from the NFC card reader according to the modified routing table. When the processing module 30 receives an instruction from the NFC card reader for selecting an application of the SE type, it queries the modified routing table, and if there is no application of the SE type in the modified routing table, It means that the SE-type application is an application that needs to be disabled or dynamically selected by the user. At this time, according to the default route in the modified routing table, the instruction is sent to the HCE for the operating system to process the Instructions, if the SE-type application exists in the modified routing table, it means that the SE-type application is the application that the user wants to use, and at this time, the instruction is sent according to the modified routing table To SE, for processing by the application of the SE type selected by the NFC card reader. When the processing module 30 receives an instruction from the NFC card reader for selecting an application of the HCE type, according to the default route in the modified routing table, the instruction is sent to the HCE for the NFC to read The application of the HCE type selected by the carder is processed.

下面结合图4至图6对本发明实施例进行进一步说明。The embodiment of the present invention will be further described below with reference to FIG. 4 to FIG. 6 .

在实际应用过程中,本发明实施例可以包括设置模块(能够实现图3中的获取模块10的功能)和路由控制模块(能够实现图3中的调整模块20和处理模块30的功能)。In practical application, the embodiment of the present invention may include a setting module (capable of realizing the function of the acquisition module 10 in FIG. 3 ) and a routing control module (capable of realizing the functions of the adjustment module 20 and the processing module 30 in FIG. 3 ).

设置模块是提供给用户的交互界面,根据设置模块的情况,路由控制模块进行不同的控制。The setting module is an interactive interface provided to the user. According to the situation of the setting module, the routing control module performs different controls.

路由控制模块是实际操作的模块,根据设置模块提供的信息,操作路由表完成本发明实施例所要解决的问题。The routing control module is a module for actual operation. According to the information provided by the setting module, the routing table is operated to complete the problem to be solved by the embodiment of the present invention.

设置模块会把当前终端所支持的所有SE相关的AID或者应用列举出来展示给用户,同时显示AID或者应用当前的状态,默认情况下所有的AID和应用都是激活的。用户可以选择禁用掉其中的一个或者多个AID或者应用,在用户操作完成后,设置模块把用户的操作结果发给路由控制模块来处理。The setting module will list and display to the user all SE-related AIDs or applications supported by the current terminal, and display the current status of AIDs or applications. By default, all AIDs and applications are activated. The user can choose to disable one or more AIDs or applications. After the user operation is completed, the setting module sends the user's operation result to the routing control module for processing.

路由控制模块会根据用户的设置情况修改路由表的设置。如果用户禁止掉某个AID或者应用,路由控制模块会把默认路由切换为HCE,并把除禁用掉的AID或者应用以外的其他AID或者应用都写入到路由表中。这样,如果NFC读卡器去选择(SELECT)用户禁止掉的AID或者应用,那么会被路由到操作系统,操作系统可以根据用户的偏好采取丢弃请求、回复拒绝,或者提示用户是否需要激活相关应用等操作。The routing control module will modify the setting of the routing table according to the setting of the user. If the user disables a certain AID or application, the routing control module will switch the default route to HCE, and write all other AIDs or applications except the disabled AID or application into the routing table. In this way, if the NFC card reader selects (SELECT) the AID or application banned by the user, it will be routed to the operating system, and the operating system can take a discard request, reply a rejection, or prompt the user whether to activate the relevant application according to the user's preference and so on.

图4是本发明实施例提供的初始情况下各个AID的路由情况图,如图4所示,用户终端具备HCE功能和多功能集成电路卡(Universe Integrate Circuit Card,UICC)的SE,AID1和AID2分别对应于HCE的应用APP1和APP2,AID3和AID4分别对应于UICC的应用APP3和APP4。当前默认路由设置为UICC,路由表中存储的信息是AID1和AID2路由到HCE。在这种情况下,如果NFC读卡器SELECT AID1或者AID2,那么会被路由到操作系统,并且由APP1或者APP2来响应请求(即用于SELECT AID1或者AID2的指令);如果读卡器SELECT AID3或者AID4,那么会被路由到UICC,并且由UICC中的APP3或者APP4来响应请求,这个过程在不经过操作系统介入的情况下完成。如图4所示,AID1和AID2的路由方向如图4中的分别指向APP1和APP2的箭头所示,NFC读卡器的请求是到达HCE的,AID3和AID4的路由方向如图4中的分别指向APP3和APP4的箭头所示,NFC读卡器的请求是到达UICC的。Fig. 4 is a routing diagram of each AID in the initial situation provided by the embodiment of the present invention. As shown in Fig. 4, the user terminal has the HCE function and the SE, AID1 and AID2 of the multifunctional integrated circuit card (Universe Integrate Circuit Card, UICC) Corresponding to the applications APP1 and APP2 of the HCE, AID3 and AID4 respectively corresponding to the applications APP3 and APP4 of the UICC. The current default route is set to UICC, and the information stored in the routing table is that AID1 and AID2 are routed to HCE. In this case, if the NFC card reader SELECT AID1 or AID2, it will be routed to the operating system, and APP1 or APP2 will respond to the request (that is, the instruction for SELECT AID1 or AID2); if the card reader SELECT AID3 Or AID4, then it will be routed to UICC, and APP3 or APP4 in UICC will respond to the request. This process is completed without the intervention of the operating system. As shown in Figure 4, the routing directions of AID1 and AID2 are shown by the arrows pointing to APP1 and APP2 respectively in Figure 4. The request of the NFC card reader is to reach HCE, and the routing directions of AID3 and AID4 are respectively shown in Figure 4. As indicated by the arrows pointing to APP3 and APP4, the request from the NFC reader reaches the UICC.

如果用户暂时不想使用APP2,那么用户可以简单的通过操作系统的设置就可以拦截SELECT AID2的指令,不发送给APP2;但是如果用户暂时不想使用APP3,由于SELECT APP3的指令可以不经过操作系统的处理,直接由UICC中的APP3响应,用户是无法控制的,除非关闭NFC的卡模拟功能。If the user does not want to use APP2 for the time being, the user can simply intercept the SELECT AID2 command through the setting of the operating system and not send it to APP2; but if the user does not want to use APP3 for the time being, because the SELECT APP3 command can not be processed by the operating system , which is directly responded by APP3 in UICC, which cannot be controlled by the user unless the card simulation function of NFC is turned off.

图5是本发明实施例提供的路由表的变化示意图,如图5所示,初始情况下的路由表中,当前默认路由设置为UICC,路由表中存储的信息是AID1和AID2路由到HCE。使用本发明实施例进行如下操作:把默认路由切换为HCE,在路由表中清除AID1和AID2的信息,然后在路由表中写入AID4路由到UICC。Fig. 5 is a schematic diagram of changes in the routing table provided by the embodiment of the present invention. As shown in Fig. 5, in the routing table in the initial situation, the current default route is set to UICC, and the information stored in the routing table is that AID1 and AID2 are routed to HCE. Using the embodiment of the present invention to perform the following operations: switch the default route to HCE, clear the information of AID1 and AID2 in the routing table, and then write the route of AID4 to the UICC in the routing table.

图6是本发明实施例提供的路由表变更后各个AID的路由情况图,如图6所示,通过上述操作就可以解决图4的问题,对于AID1和AID2的SELECT请求会被路由到HCE,由APP1和APP2处理;对于AID3的SELECT请求会被路由到HCE,操作系统可以选择丢弃请求,回复拒绝,或者提示用户是否需要激活相关应用等操作;对于AID4的SELECT请求仍然会被路由到UICC,由APP4正常处理。如图6所示,AID1和AID2的路由方向如6图中的分别指向APP1和APP2的箭头所示,NFC读卡器的请求是到达HCE的;AID4的路由方向如图6中的指向APP4的箭头所示,NFC读卡器的请求是到达UICC的;AID3的路由方向会被路由到HCE,对于这个请求是拒绝,丢弃还是提示用户是可以由操作系统决定的。Fig. 6 is a diagram of the routing situation of each AID after the routing table is changed provided by the embodiment of the present invention. As shown in Fig. 6, the problem in Fig. 4 can be solved through the above operations, and the SELECT requests for AID1 and AID2 will be routed to HCE, It is processed by APP1 and APP2; the SELECT request for AID3 will be routed to HCE, and the operating system can choose to discard the request, reply to reject, or prompt the user whether to activate the relevant application; the SELECT request for AID4 will still be routed to UICC, Handled normally by APP4. As shown in Figure 6, the routing directions of AID1 and AID2 are shown by the arrows pointing to APP1 and APP2 respectively in Figure 6, and the request from the NFC card reader reaches HCE; the routing direction of AID4 points to APP4 in Figure 6 As shown by the arrow, the request from the NFC card reader arrives at the UICC; the routing direction of AID3 will be routed to the HCE. It is up to the operating system to decide whether to reject, discard or prompt the user for this request.

SE可以包括UICC,SD,eSE等多种载体,终端也可以使用其中的一种或者多种SE。对于本发明实施例而言,不管初始状态下默认路由是什么,如果需要实现禁用SE中的AID或者应用,都可以通过把默认路由设置为HCE,然后把除需要禁用的AID或者应用以外的其他所有SE的AID或者应用都写入路由表中的方式即可。SE may include various bearers such as UICC, SD, and eSE, and the terminal may also use one or more of them. For the embodiment of the present invention, no matter what the default route is in the initial state, if it is necessary to disable the AID or application in the SE, it is possible to set the default route as HCE, and then set the AID or application other than the AID or application that needs to be disabled. All SE AIDs or applications are written into the routing table.

尽管上文对本发明进行了详细说明,但是本发明不限于此,本技术领域技术人员可以根据本发明的原理进行各种修改。因此,凡按照本发明原理所作的修改,都应当理解为落入本发明的保护范围。Although the present invention has been described in detail above, the present invention is not limited thereto, and various modifications can be made by those skilled in the art based on the principle of the present invention. Therefore, any modifications made according to the principles of the present invention should be understood as falling within the protection scope of the present invention.

Claims (10)

1.一种控制NFC路由的方法,包括:1. A method of controlling NFC routing, comprising: 终端确定用户需要禁用的安全单元SE类型的应用;The terminal determines the application of the security element SE type that the user needs to disable; 所述终端根据所述需要禁用的SE类型的应用,对路由表进行修改,使需要禁用的SE类型的应用路由到操作系统;The terminal modifies the routing table according to the application of the SE type that needs to be disabled, so that the application of the SE type that needs to be disabled is routed to the operating system; 所述终端根据修改后的路由表,发送来自近距离无线通信NFC读卡器的用于选择某一应用的指令。According to the modified routing table, the terminal sends an instruction for selecting a certain application from the short-range wireless communication NFC card reader. 2.根据权利要求1所述的方法,所述终端根据所述需要禁用的SE类型的应用,对路由表进行修改,使需要禁用的SE类型的应用路由到操作系统的步骤包括:2. The method according to claim 1, wherein the terminal modifies the routing table according to the application of the SE type that needs to be disabled, so that the step of routing the application of the SE type that needs to be disabled to the operating system includes: 所述终端将所述路由表中的默认路由调整为基于主机的卡模拟HCE;The terminal adjusts the default route in the routing table to be a host-based card emulation HCE; 所述终端根据所述需要禁用的SE类型的应用,确定不需要禁用的SE类型的应用,并将所述不需要禁用的SE类型的应用写入所述路由表。The terminal determines an SE type application that does not need to be disabled according to the SE type application that needs to be disabled, and writes the SE type application that does not need to be disabled into the routing table. 3.根据权利要求2所述的方法,所述终端根据所述需要禁用的SE类型的应用,对路由表进行修改,使需要禁用的SE类型的应用路由到操作系统的步骤还包括:3. The method according to claim 2, wherein the terminal modifies the routing table according to the application of the SE type that needs to be disabled, so that the step of routing the SE type application that needs to be disabled to the operating system further includes: 所述终端删除所述路由表中的HCE类型的应用。The terminal deletes the application of the HCE type in the routing table. 4.根据权利要求2或3所述的方法,所述终端根据修改后的路由表,发送其收到的来自NFC读卡器的用于选择某一应用的指令步骤包括:4. according to the method described in claim 2 or 3, described terminal, according to the routing table after modification, sends the instruction step that it receives from NFC card reader for selecting a certain application and comprises: 所述终端收到来自NFC读卡器的用于选择SE类型的应用的指令时,查询所述修改后的路由表;When the terminal receives an instruction from the NFC card reader for selecting an application of the SE type, query the modified routing table; 若所述修改后的路由表中不存在所述SE类型的应用,则根据所述修改后的路由表中的默认路由,将所述指令发送至HCE,以供操作系统处理所述指令;If the SE-type application does not exist in the modified routing table, send the instruction to the HCE according to the default route in the modified routing table, so that the operating system can process the instruction; 若所述修改后的路由表中存在所述SE类型的应用,则根据所述修改后的路由表,将所述指令发送至SE,以供所述NFC读卡器选择的SE类型的应用进行处理。If there is an application of the SE type in the modified routing table, then according to the modified routing table, the instruction is sent to the SE for the SE type of application selected by the NFC card reader to perform deal with. 5.根据权利要求2或3所述的方法,所述终端根据修改后的路由表,发送其收到的来自NFC读卡器的用于选择某一应用的指令步骤包括:5. according to the method described in claim 2 or 3, described terminal, according to the routing table after modification, sends the instruction step that it receives from NFC card reader for selecting a certain application and comprises: 所述终端收到来自NFC读卡器的用于选择HCE类型的应用的指令时,根据所述修改后的路由表中的默认路由,将所述指令发送至HCE,以供所述NFC读卡器选择的HCE类型的应用进行处理。When the terminal receives an instruction from the NFC card reader for selecting an application of the HCE type, according to the default route in the modified routing table, the instruction is sent to the HCE for the NFC card reader The application of the HCE type selected by the controller is processed. 6.一种控制NFC路由的装置,包括:6. A device for controlling NFC routing, comprising: 获取模块,用于确定用户需要禁用的安全单元SE类型的应用;An acquisition module, configured to determine the application of the security element SE type that the user needs to disable; 调整模块,用于根据所述需要禁用的SE类型的应用,对路由表进行修改,使需要禁用的SE类型的应用路由到操作系统;An adjustment module, configured to modify the routing table according to the application of the SE type that needs to be disabled, so that the application of the SE type that needs to be disabled is routed to the operating system; 处理模块,用于根据修改后的路由表,发送来自近距离无线通信NFC读卡器的用于选择某一应用的指令。The processing module is configured to send an instruction for selecting an application from the short-range wireless communication NFC card reader according to the modified routing table. 7.根据权利要求6所述的装置,所述调整模块将所述路由表中的默认路由调整为基于主机的卡模拟HCE,并根据所述需要禁用的SE类型的应用,确定不需要禁用的SE类型的应用,将所述不需要禁用的SE类型的应用写入所述路由表。7. The device according to claim 6, wherein the adjustment module adjusts the default route in the routing table to a host-based card emulation HCE, and determines that the SE type that needs to be disabled does not need to be disabled according to the application of the SE type that needs to be disabled. For SE type applications, write the SE type applications that do not need to be disabled into the routing table. 8.根据权利要求7所述的装置,所述调整模块还用于删除所述路由表中的HCE类型的应用。8. The device according to claim 7, the adjustment module is further configured to delete the HCE-type application in the routing table. 9.根据权利要求7或8所述的装置,所述处理模块收到来自NFC读卡器的用于选择SE类型的应用的指令时,查询所述修改后的路由表,若所述修改后的路由表中不存在所述SE类型的应用,则根据所述修改后的路由表中的默认路由,将所述指令发送至HCE,以供操作系统处理所述指令,若所述修改后的路由表中存在所述SE类型的应用,则根据所述修改后的路由表,将所述指令发送至SE,以供所述NFC读卡器选择的SE类型的应用进行处理。9. The device according to claim 7 or 8, when the processing module receives an instruction from the NFC card reader for selecting an application of the SE type, query the modified routing table, if the modified There is no application of the SE type in the routing table of the above-mentioned, then according to the default route in the modified routing table, the instruction is sent to the HCE for the operating system to process the instruction, if the modified If the SE-type application exists in the routing table, then according to the modified routing table, the instruction is sent to the SE for processing by the SE-type application selected by the NFC card reader. 10.根据权利要求7或8所述的装置,所述处理模块收到来自NFC读卡器的用于选择HCE类型的应用的指令时,根据所述修改后的路由表中的默认路由,将所述指令发送至HCE,以供所述NFC读卡器选择的HCE类型的应用进行处理。10. The device according to claim 7 or 8, when the processing module receives an instruction from the NFC card reader for selecting an application of the HCE type, according to the default route in the modified routing table, the The instruction is sent to the HCE for processing by the application of the HCE type selected by the NFC card reader.
CN201610828374.1A 2016-09-18 2016-09-18 Method and device for controlling NFC (near field communication) route Active CN107846238B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201610828374.1A CN107846238B (en) 2016-09-18 2016-09-18 Method and device for controlling NFC (near field communication) route
PCT/CN2017/077340 WO2018049802A1 (en) 2016-09-18 2017-03-20 Method and device for controlling nfc routing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610828374.1A CN107846238B (en) 2016-09-18 2016-09-18 Method and device for controlling NFC (near field communication) route

Publications (2)

Publication Number Publication Date
CN107846238A true CN107846238A (en) 2018-03-27
CN107846238B CN107846238B (en) 2020-06-09

Family

ID=61618589

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610828374.1A Active CN107846238B (en) 2016-09-18 2016-09-18 Method and device for controlling NFC (near field communication) route

Country Status (2)

Country Link
CN (1) CN107846238B (en)
WO (1) WO2018049802A1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111008680A (en) * 2018-10-08 2020-04-14 英飞凌科技股份有限公司 Circuits, methods and apparatus for implementing near field communication
CN111741161A (en) * 2019-03-25 2020-10-02 质子世界国际公司 electronic system
CN111741160A (en) * 2019-03-25 2020-10-02 质子世界国际公司 electronic system
US11303745B2 (en) 2019-03-25 2022-04-12 Proton World International N.V. Electronic system

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112788604B (en) * 2019-11-01 2023-03-28 中国移动通信有限公司研究院 Near field communication route configuration method, device and computer readable storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104936129A (en) * 2014-03-18 2015-09-23 质子世界国际公司 Secure NFC routing
CN105556551A (en) * 2013-09-30 2016-05-04 苹果公司 Online payments using a secure element of an electronic device
CN105657637A (en) * 2014-11-28 2016-06-08 质子世界国际公司 Data access in a mobile device with nfc

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105556551A (en) * 2013-09-30 2016-05-04 苹果公司 Online payments using a secure element of an electronic device
CN104936129A (en) * 2014-03-18 2015-09-23 质子世界国际公司 Secure NFC routing
CN105657637A (en) * 2014-11-28 2016-06-08 质子世界国际公司 Data access in a mobile device with nfc

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111008680A (en) * 2018-10-08 2020-04-14 英飞凌科技股份有限公司 Circuits, methods and apparatus for implementing near field communication
CN111741161A (en) * 2019-03-25 2020-10-02 质子世界国际公司 electronic system
CN111741160A (en) * 2019-03-25 2020-10-02 质子世界国际公司 electronic system
US11303745B2 (en) 2019-03-25 2022-04-12 Proton World International N.V. Electronic system
US11561921B2 (en) 2019-03-25 2023-01-24 Proton World International N.V. Electronic system
US11593905B2 (en) 2019-03-25 2023-02-28 Proton World International N.V. Electronic system
US12056785B2 (en) 2019-03-25 2024-08-06 Proton World International N.V. Electronic system

Also Published As

Publication number Publication date
WO2018049802A1 (en) 2018-03-22
CN107846238B (en) 2020-06-09

Similar Documents

Publication Publication Date Title
CN107846238B (en) Method and device for controlling NFC (near field communication) route
RU2611241C2 (en) Method of routing in mobile terminal, emulating contactless payment card
KR102318877B1 (en) Apparatus and method for displaying user interface
CN111581994A (en) Near Field Communication (NFC) communication method and device and electronic equipment
US9658748B2 (en) System and method of managing states of computer screen and controlling mobile communication terminal
US20140222670A1 (en) Contactless payment application management
KR102441737B1 (en) Method for authentication and electronic device supporting the same
US20160357394A1 (en) Mobile terminal and method for controlling the same
EP3281141A1 (en) Cloud-based cross-device digital pen pairing
EP3635524A1 (en) Connecting multiple mobile devices to a smart home assistant account
JP2016508677A (en) Method for realizing selection of secure element in short-range wireless communication, mobile terminal, and POS machine
CN107635290B (en) Mobile terminal, Bluetooth Key, connection method, storage medium and system
JP2013137669A (en) Screen sharing device and screen sharing method
CN107612941B (en) Authority management method, device, equipment and storage medium
WO2023109452A1 (en) Control method, electronic device, and computer-readable storage medium
WO2017128516A1 (en) Nfc payment method selection method and apparatus, and terminal
KR20190064792A (en) Electronic device and method for processing remote payment
JP6923582B2 (en) Information processing equipment, information processing methods, and programs
CN106027738B (en) A kind of synchronous method of message registration, device and mobile terminal
US9843361B2 (en) Communicating via near field communications
CN104617990B (en) Document transmission method and device based on close range wireless communication
CN105550870B (en) A method, device and terminal for routing policy processing
CN105635873B (en) NFC bluetooth headset, system and control method thereof
CN106411745B (en) Method and device for modifying non-contact front-end chip routing table
US20170344347A1 (en) Rendering interface objects defined by a separate application

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant