# US 2022/0036017 A1 · Method for automatically activating nfc application and terminal

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2022/0036017 A1
- Document ID: US20220036017A1
- Status: Published application
- Kind: A1
- Application number: 17/290,451
- Filed: 2019-10-23
- Published: 2022-02-03
- Earliest claimed: 2018-11-01
- Assignees: Huawei Technologies Co., Ltd.
- Applicants: Huawei Technologies Co., Ltd.
- Inventors: Tao LI; Jiahao ZHEN; Haw-Wei SHU
- Web page: https://patentgrep.com/patent/US20220036017A1

## CPC

- G06K 7/10297: {arrangements for handling protocols designed for non-contact record carriers such as RFIDs NFCs, e.g. ISO/IEC 14443 and 18092 (cryptographic protocols H04L9/00; network security protocols H04L63/00; real-time communication protocols in data switching networks H04L65/00; network protocols for data switching network services H04L67/00)}
- H04W 4/80: Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
- G06F 9/4401: Bootstrapping (security arrangements therefor G06F21/57)
- G06K 19/0723: {the record carrier comprising an arrangement for non-contact communication, e.g. wireless communication circuits on transponder cards, non-contact smart cards or RFIDs}
- G06K: GRAPHICAL DATA READING (image or video recognition or understanding G06V); PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- H04W: WIRELESS COMMUNICATION NETWORKS (broadcast communication H04H; communication systems using wireless links for non-selective communication, e.g. wireless extensions H04M1/72)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

This application discloses a method for automatically activating an NFC application and a terminal, and relates to the terminal field. When a terminal has a plurality of SEs, an NFC application accessed by a transaction instruction is automatically activated. The terminal may include an NFC controller and at least two SEs, and each of the at least two SEs carries at least one NFC application. A specific solution is as follows: The NFC controller receives a transaction instruction, determines a target SE from the at least two SEs according to the transaction instruction, and sends the transaction instruction to the target SE; the target SE receives the transaction instruction, and determines, according to the transaction instruction, a target NFC application from an NFC application carried in the target SE; and the target SE runs the target NFC application, and executes the transaction instruction.

## Claims

### Claim 1

A terminal, wherein the terminal comprises:
a near field communication (NFC) controller;
at least two secure elements LSEs, and
each of the at least two SEs carries at least one NFC application;
wherein the NFC controller is configured to (1) receive a transaction instruction, (2) determine a target SE from the at least two SEs according to the transaction instruction, and (3) send the transaction instruction to the target SE;
wherein the target SE is configured to (1) receive the transaction instruction, (2) determine, according to the transaction instruction, a target NFC application from an NFC application carried in the target SE; (3) run the target NFC application, and (4) execute the transaction instruction.

### Claim 2 (depends on 1)

The terminal according to claim 1, wherein
the NFC controller is further configured to determine (1) first routing information from a first routing table based on the first routing table and the transaction instruction, wherein the first routing information is routing information that meets a first matching condition in the first routing table, and the first routing information comprises an SE identifier; and
(2) an identified SE by the SE identifier in the at least two SEs; wherein
the first matching condition comprises at least one of the following: a condition (a): an application identifier (AID) in the routing information is the same as an AID carried in the transaction instruction; a condition (b): a first protocol and rule in the routing information is the same as a second protocol and rule that the transaction instruction complies with; a condition (c): an first NFC physical technology in the routing information is the same as a second NFC physical technology used by the transaction instruction; and a condition (d): a routing information transaction instruction is the same as the received transaction instruction.

### Claim 3 (depends on 2)

The terminal according to claim 2, wherein the NFC controller is further configured to
sequentially determine the routing information in the first routing table based on the first routing table and the transaction instruction in a first preset order of the condition (a), the condition (b), the condition (c), and the condition (d), and determine, as the first routing information, the routing information that is in the first routing table and that meets a first condition in the first preset order.

### Claim 4 (depends on 3)

The terminal according to claim 3, wherein the first preset order is: the condition (a)->the condition (b)->the condition (c)->the condition (d).

### Claim 5 (depends on 1)

The terminal according to claim 1, wherein the target SE is further configured to:
carry at least two NFC applications;
determine second routing information from a second routing table based on the second routing table and the transaction instruction, wherein the second routing information is routing information that meets a second matching condition in the second routing table, and the second routing information comprises a handle; and
determine, as the target NFC application, an NFC application corresponding to handle the at least two NFC applications; wherein
the second matching condition comprises at least one of the following: a condition (e): an AID in the routing information is the same as an AID carried in the transaction instruction; a condition (f): a routing information transaction instruction is the same as the received transaction instruction; a condition (g): a mask in the routing information is the same as a mask corresponding to the received transaction instruction; and a condition (h): a variable priority comprised in the routing information is a first priority, and the first priority is a highest variable priority in the routing information in the second routing table.

### Claim 6 (depends on 5)

The terminal according to claim 5, wherein the
target SE is further configured to route information in the second routing table based on the second routing table and the transaction instruction in a second preset order of the condition (e), the condition (f), the condition (g), and the condition (h), and determine, as the second routing information, the routing information that is in the second routing table and that meets a first condition in the second preset order.

### Claim 7 (depends on 6)

The terminal according to claim 6, wherein the second preset order is: the condition (e)->the condition (f)->the condition (g)->the condition (h).

### Claim 8 (depends on 2)

The terminal according to claim 2, wherein the NFC controller is further configured to, when the target NFC application is being downloaded, configure the first routing information in the first routing table, wherein the first routing information further comprises at least one of the following: (1) an AID of the target NFC application, (2) a third protocol and rule that the transaction instruction accessing the target NFC application complies with, a third NFC physical technology used by the transaction instruction accessing the target NFC application, and (3) the transaction instruction accessing the target NFC application.

### Claim 9 (depends on 5)

The terminal according to claim 5, wherein the target SE is further configured to, when the target NFC application is being downloaded, configure the second routing information in the second routing table, wherein the second routing information further comprises at least one of the following: (1) an AID of the target NFC application, (2) a second routing information transaction instruction accessing the target NFC application, (3) a mask corresponding to the transaction instruction accessing the target NFC application, and (4) a variable priority of the target NFC application.

### Claim 10 (depends on 2)

The terminal according to claim 2, wherein when the first routing information meets the first matching condition, a power consumption status in the first routing information is the same as a current power consumption status of the terminal.

### Claim 11 (depends on 5)

The terminal according to claim 5, wherein
when the second routing information meets the second matching condition, a first protocol and rule in the second routing information is the same as a second protocol and rule that the received transaction instruction complies with, and an NFC physical technology in the second routing information is the same as the NFC physical technology used by the received transaction instruction.

### Claim at position 12

12-22. (canceled)

### Claim 23

A method for automatically activating a near field communication (NFC) application, applied to a terminal, wherein the terminal comprises at least two secure elements (SEs), a first SE in the at least two SEs is in an active state by default, the first SE is any one of the at least two SEs, and the first SE carries an NFC application that supports application identifier (AID) in the terminal; and the method comprises:
receiving, by the terminal, a first transaction instruction, wherein the first transaction instruction comprises the AID; and
running, by the terminal by using the first SE, an identified NFC application identified by the AID in the first transaction instruction, to execute the first transaction instruction.

### Claim 24 (depends on 23)

The method according to claim 23, wherein the NFC application that supports the AID in the terminal comprises a first NFC application, and the method further comprises:
responsive to downloading the first NFC application, determining, by the terminal, that the first NFC application supports the AID; and
downloading, by the terminal, the first NFC application to the first SE.

### Claim 25 (depends on 24)

The method according to claim 24, wherein the determining, by the terminal, that the first NFC application supports the AID comprises:
determining, by the terminal, that a first NFC application AID is comprised in a whitelist, wherein the whitelist comprises one or more NFC application AIDs supporting the AID.

### Claim 26 (depends on 23)

The method according to claim 23, wherein the at least two SEs further comprise a second SE, and the NFC application that supports the AID in the terminal comprises a second NFC application; and the method further comprises:
responsive to the second NFC application being carried in the second SE, determining, by the terminal, that the second NFC application supports the AID; and
moving, by the terminal, the second NFC application from the second SE to the first SE.

### Claim 27 (depends on 23)

The method according to claim 23, wherein the first SE further carries an NFC application whose use frequency is greater than a threshold; and the method further comprises:
receiving, by the terminal, a second transaction instruction;
obtaining, by the terminal, a time and/or a geographical location at which the second transaction instruction is received;
determining, by the terminal based on the time and/or the geographical location at which the second transaction instruction is received, an NFC application to be accessed by the second transaction instruction; and
running, by the terminal by using the first SE, the NFC application to be accessed by the second transaction instruction, and executing the second transaction instruction.

### Claim 28

A method for automatically activating a near field communication NFC application, applied to a terminal, wherein the terminal carries at least two NFC applications; and the method comprises:
receiving, by the terminal, a push message sent by a server, wherein the push message is used to indicate the terminal to activate a first NFC application in the at least two NFC applications; and
automatically activating, by the terminal, the first NFC application in response to the push message.

### Claim 29

(canceled)
