WO2020088318A1 - 一种nfc应用的自动激活方法及终端 - Google Patents

一种nfc应用的自动激活方法及终端 Download PDF

Info

Publication number
WO2020088318A1
WO2020088318A1 PCT/CN2019/112689 CN2019112689W WO2020088318A1 WO 2020088318 A1 WO2020088318 A1 WO 2020088318A1 CN 2019112689 W CN2019112689 W CN 2019112689W WO 2020088318 A1 WO2020088318 A1 WO 2020088318A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal
nfc
transaction instruction
routing information
condition
Prior art date
Application number
PCT/CN2019/112689
Other languages
English (en)
French (fr)
Inventor
李涛
甄家灏
许浩维
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Priority claimed from CN201811561669.2A external-priority patent/CN111124503B/zh
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to EP19880697.8A priority Critical patent/EP3855309B1/en
Priority to US17/290,451 priority patent/US11977946B2/en
Publication of WO2020088318A1 publication Critical patent/WO2020088318A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/10009Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation sensing by radiation using wavelengths larger than 0.1 mm, e.g. radio-waves or microwaves
    • G06K7/10297Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation sensing by radiation using wavelengths larger than 0.1 mm, e.g. radio-waves or microwaves arrangements for handling protocols designed for non-contact record carriers such as RFIDs NFCs, e.g. ISO/IEC 14443 and 18092
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • 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
    • G06K19/0723Record 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 the record carrier comprising an arrangement for non-contact communication, e.g. wireless communication circuits on transponder cards, non-contact smart cards or RFIDs

Definitions

  • the present application relates to the field of terminals, and in particular to an automatic activation method and terminal for Near Field Communication (NFC) applications.
  • NFC Near Field Communication
  • NFC is a short-range wireless communication technology based on a 13.56 megahertz (MHz) carrier frequency that allows non-contact point-to-point data transmission between devices. Since NFC has high security, it has become more and more popular and accepted by the public in recent years. Among them, the development of NFC-capable terminals is particularly rapid. Terminals with NFC function can work in three modes: card reader mode, card emulation mode, and point-to-point mode. The most used is the card simulation mode, that is, the terminal can be simulated as a non-contact integrated circuit (Integrated Circuit, IC) card, and the user can interact with the card reader by holding the terminal to complete the bank card, bus card or card Access control cards and other operations bring a lot of convenience to life.
  • IC integrated Circuit
  • SE can provide a secure execution environment for the operation of NFC applications and a secure storage environment for its sensitive data.
  • One NSE can carry multiple NFC applications simultaneously.
  • the terminal can simulate the corresponding contactless IC card to interact with the card reader.
  • the NFC application can be manually activated by the user.
  • NFC applications can also be activated automatically by the terminal. Specifically, after receiving the transaction instruction sent by the card reader, the terminal may determine which NFC application carried in the SE is accessed by the transaction instruction according to the application identifier (AID) carried in the transaction instruction, and Automatically activate NFC applications accessed by transaction orders.
  • AID application identifier
  • a terminal may have multiple SEs. Generally, only when the SE is in the activated state, the terminal can automatically activate the NFC application to be accessed by the transaction instruction according to the AID carried in the transaction instruction. At present, only one SE in the terminal is active at the same time. In this way, when the transaction instruction accesses the NFC application carried in the inactive state of the SE, the terminal cannot automatically activate the corresponding NFC application. In this case, the user can only manually activate the corresponding NFC application to complete the interaction with the card reader. Therefore, when there are multiple SEs in the terminal, how to automatically activate the NFC application accessed by the transaction order has become a key topic for those skilled in the art.
  • Embodiments of the present application provide an automatic activation method and terminal of an NFC application.
  • the terminal has multiple SEs, automatic activation of the NFC application accessed by a transaction instruction is realized.
  • a terminal may include an NFC controller and at least two security units SE.
  • Each of the at least two SEs carries at least one NFC application;
  • the NFC controller receives a transaction instruction , Determine the target SE from at least two SEs according to the transaction instruction, and send the received transaction instruction to the target SE;
  • the target SE receives the transaction instruction, and determines the target NFC application from the NFC applications carried by the target SE according to the received transaction instruction;
  • the target SE runs the target NFC application and executes transaction instructions.
  • the terminal after receiving the transaction instruction, the terminal can automatically identify the corresponding NFC application according to the transaction instruction and automatically activate it to complete the transaction. No manual switching by the user is required, which improves the interaction efficiency between the terminal and the user and improves the terminal's intelligence. Greatly improve the user experience.
  • the foregoing determining the target SE from at least two SEs according to the transaction instruction may specifically include: the NFC controller determines the first route from the first routing table according to the first routing table and the transaction instruction Information, the first routing information is routing information that satisfies the first matching condition in the first routing table, and the first routing information includes the SE identifier; the NFC controller determines the SE identified by the SE identifier in at least two SEs as the target SE;
  • the first matching condition may include at least one of the following: Condition a: the AID in the routing information is the same as the application identifier AID carried in the transaction instruction, and condition b: the protocol and rules in the routing information and the protocol and the agreement followed by the transaction instruction The rules are the same, condition c: the NFC physical technology in the routing information is the same as the NFC physical technology used in the transaction instruction, and condition d: the transaction instruction in the routing information is the same as the received transaction instruction.
  • the foregoing NFC controller determines the first routing information from the first routing table according to the first routing table and the transaction instruction, which may specifically include: the NFC controller according to the first routing table and the transaction An instruction to sequentially determine the routing information in the first routing table according to the first preset order of condition a, condition b, condition c and condition d, and convert the routing information in the first routing table that satisfies the first condition in the first preset order Determined as the first routing information.
  • the first preset sequence may be: condition a, condition b, condition c, and condition d.
  • the first preset order may also be other orders, such as condition a, condition c, condition d, condition b, etc.
  • the SE for example, the target SE may carry at least two NFC applications.
  • the above-mentioned determination of the target NFC application from the NFC applications carried by the target SE according to the transaction instruction may specifically include: The second routing table and the transaction instruction determine the second routing information from the second routing table.
  • the second routing information may be routing information in the second routing table that satisfies the second matching condition.
  • the second routing information includes a handle; the target SE The NFC application corresponding to the handle in at least two NFC applications is determined as the target NFC application; wherein, the second matching condition may include at least one of the following: Condition e: the AID in the routing information is the same as the AID carried in the transaction instruction, and the condition f : The transaction instruction in the routing information is the same as the received transaction instruction.
  • Condition h The variable priority included in the routing information is A priority, the first priority is the priority with the highest variable priority in the routing information of the second routing table.
  • the above-mentioned target SE determines the second routing information from the second routing table according to the second routing table and the transaction instruction, which may specifically include: the target SE according to the second routing table and the transaction instruction, According to the second preset order of condition e, condition f, condition g and condition h, the routing information in the second routing table is determined in sequence, and the routing information in the second routing table that meets the first condition in the second preset order is determined as Second routing information.
  • the second preset order may be condition e, condition f, condition g, and condition h.
  • the second preset order may also be other orders, such as condition e, condition g, condition f, condition h, and so on.
  • the NFC controller when downloading the target NFC application, may configure first routing information in the first routing table, and the first routing information may further include at least one of the following: the target NFC application AID, the protocol and rules followed by accessing the target NFC application's transaction instructions, accessing the target NFC application's transaction instructions using NFC physical technology, and accessing the target NFC application's transaction instructions.
  • the first routing information may further include power consumption requirements for the terminal when accessing the target NFC application.
  • the target SE when downloading the target NFC application, may configure second routing information in the second routing table, and the second routing information may further include at least one of the following: the AID of the target NFC application , Access the target NFC application's transaction instruction, access the target NFC application's transaction instruction corresponding mask, and target NFC application's variable priority.
  • the second routing information may further include: protocols and rules followed by accessing the transaction instruction of the target NFC application, and NFC physical technology used for accessing the transaction instruction of the target NFC application.
  • the power consumption state in the first routing information is the same as the current power consumption state of the terminal. In this way, by matching the current power consumption state of the terminal with the power consumption state when the NFC application is running, the security of automatically activating the NFC application can be improved.
  • the protocols and rules in the second routing information are the same as the protocols and rules followed by the received transaction instruction.
  • the NFC physical technology is the same as the NFC physical technology used in the received transaction instruction.
  • a second aspect of the present application provides an automatic activation method of an NFC application.
  • the method may be applied to a terminal, and the terminal may include at least two SEs. Each of the at least two SEs carries at least one NFC application.
  • the method may include: the terminal receives a transaction instruction and determines a target SE from at least two SEs based on the received transaction instruction; the terminal determines the target NFC application from the NFC applications carried by the target SE according to the transaction instruction; the terminal runs the target through the target SE NFC application, execute transaction instructions.
  • the terminal determines the target SE from at least two SEs according to the transaction instruction, which may specifically include: the terminal determines the first routing information from the first routing table according to the first routing table and the transaction instruction
  • the first routing information may be routing information that satisfies the first matching condition in the first routing table.
  • the first routing information includes the SE identifier; the terminal determines the SE identified by the SE identifier in at least two SEs as the target SE; wherein,
  • the first matching condition may include at least one of the following: condition a: the AID in the routing information is the same as the application identifier AID carried in the transaction instruction, and condition b: the protocol and rules in the routing information are the same as the protocol and rules followed by the transaction instruction , Condition c: The NFC physical technology in the routing information is the same as the NFC physical technology used in the transaction instruction, Condition d: The transaction instruction in the routing information is the same as the received transaction instruction.
  • the terminal determines the first routing information from the first routing table according to the first routing table and the transaction instruction, which may specifically include: the terminal according to the first routing table and the transaction instruction, according to the conditions a, the first preset order of condition b, condition c, and condition d sequentially determine the routing information in the first routing table, and determine the routing information in the first routing table that satisfies the first condition in the first preset order as the first Routing information.
  • the first preset sequence may be: condition a, condition b, condition c, and condition d.
  • the SE carries at least two NFC applications
  • the terminal determines the target NFC application from the NFC applications carried by the target SE according to the transaction instruction, which may specifically include: the terminal according to the second routing table and The transaction instruction determines the second routing information from the second routing table.
  • the second routing information may be routing information that satisfies the second matching condition in the second routing table.
  • the second routing information includes a handle; the terminal applies at least two NFC applications.
  • the NFC application corresponding to the handle in is determined to be the target NFC application; wherein, the second matching condition may include at least one of the following: Condition e: the AID in the routing information is the same as the AID carried in the transaction instruction, and condition f: the transaction in the routing information The instruction is the same as the received transaction instruction, condition g: the mask in the routing information is the same as the corresponding mask of the received transaction instruction, condition h: the variable priority included in the routing information is the first priority, the first The priority is the priority with the highest variable priority in the routing information of the second routing table.
  • Condition e the AID in the routing information is the same as the AID carried in the transaction instruction
  • condition f the transaction in the routing information
  • the instruction is the same as the received transaction instruction
  • condition g the mask in the routing information is the same as the corresponding mask of the received transaction instruction
  • condition h the variable priority included in the routing information is the first priority
  • the first The priority is the priority with the highest variable priority in the routing information of the second
  • the terminal determines the second routing information from the second routing table according to the second routing table and the transaction instruction, which may specifically include: the terminal according to the second routing table and the transaction instruction, according to the conditions e, the second preset order of condition f, condition g and condition h sequentially judges the routing information in the second routing table, and determines the routing information in the second routing table that satisfies the first condition in the second preset order as the second Routing information.
  • the second preset order may be condition e, condition f, condition g, and condition h.
  • the method may further include: when downloading the target NFC application, the terminal configures the first routing information in the first routing table, and the first routing information may further include at least one of the following: the target The AID of the NFC application, the protocol and rules followed to access the transaction instructions of the target NFC application, the NFC physical technology used to access the transaction instructions of the target NFC application, and the transaction instructions of the target NFC application.
  • the method may further include: when downloading the target NFC application, the terminal configures second routing information in the second routing table, and the second routing information further includes at least one of the following: the target NFC The AID of the application, the transaction instruction to access the target NFC application, the mask corresponding to the transaction instruction to access the target NFC application, and the variable priority of the target NFC application.
  • the power consumption state in the first routing information is the same as the current power consumption state of the terminal.
  • the protocols and rules in the second routing information are the same as the protocols and rules followed by the received transaction instruction.
  • the NFC physical technology is the same as the NFC physical technology used in the received transaction instruction.
  • the second aspect and the method provided in the possible implementation manner of the second aspect correspond one-to-one with the terminal provided in the first aspect or the possible implementation manner of the first aspect.
  • the beneficial effects achieved reference may be made to the beneficial effects in the corresponding terminal provided above, which will not be repeated here.
  • a third aspect of the present application provides an automatic activation method of an NFC application.
  • the method may be applied to a terminal, and the terminal may include at least two SEs.
  • the first SE of the at least two SEs is activated by default.
  • the first SE For any one of at least two SEs, the first SE carries an NFC application in the terminal that supports identification by an application identifier AID; the method may include: the terminal receives a first transaction instruction, and the first transaction instruction may include an AID;
  • the terminal runs the NFC application identified by the AID in the first transaction instruction through the first SE to execute the first transaction instruction.
  • the NFC application that supports AID identification in the terminal includes the first NFC application.
  • the method may further include: when downloading the first NFC application, the terminal determines that the first NFC application supports AID identification; An NFC application is downloaded into the first SE.
  • the terminal determines that the first NFC application supports AID identification, which may specifically include: the terminal determines that the AID of the first NFC application is included in a white list, and the white list includes NFC supporting AID identification The AID of the application.
  • the at least two SEs further include a second SE
  • the NFC application that supports AID identification in the terminal includes a second NFC application.
  • the method may further include that: the second NFC application is carried in the second When in the SE, the terminal determines that the second NFC application supports AID recognition; the terminal moves the second NFC application from the second SE to the first SE.
  • the first SE also carries an NFC application whose frequency of use in the terminal is greater than a threshold; the method may further include: the terminal receives the second transaction instruction; the terminal obtains when the second transaction instruction is received Time and / or geographic location; the terminal determines the NFC application to be accessed by the second transaction instruction according to the time and / or geographic location when the second transaction instruction is received; the terminal runs the NFC to be accessed by the second transaction instruction through the first SE Application, execute the second transaction instruction.
  • the NFC application with a high frequency of use in the terminal's SE which is activated by default, and in combination with the time and / or geographic location when the transaction instruction is received, the corresponding NFC application is automatically activated to complete the transaction. No manual switching by the user is required, which further improves the interaction efficiency between the terminal and the user, and improves the terminal's intelligence. Greatly improve the user experience.
  • a fourth aspect of the present application provides an automatic activation method of an NFC application.
  • the method may be applied to a terminal, and the terminal carries at least two NFC applications; the method may include: the terminal receives a push message sent by a server, the push The message may be used to instruct the terminal to activate the first NFC application of at least two NFC applications; in response to the push message, the terminal automatically activates the first NFC application.
  • the terminals of these users may report information indicating that the NFC application was used at that time and place to the server.
  • the user's terminal may receive a push message sent by the server, where the push message is used to instruct the terminal to recommend the user to use the corresponding NFC application.
  • the terminal can automatically activate the corresponding NFC application according to the push message. No manual switching by the user is required, which improves the interaction efficiency between the terminal and the user and improves the terminal's intelligence. Greatly improve the user experience.
  • a fifth aspect of the present application provides an NFC chip system.
  • the NFC chip system may include an NFC chip and at least two SEs; the target SE of the NFC chip and the at least two SEs is used to perform the second aspect or the third aspect.
  • FIG. 1 is a schematic diagram of an SE deployment in a terminal provided by some embodiments
  • FIG. 2 is a schematic structural diagram of a terminal according to an embodiment of the present application.
  • FIG. 3 is a schematic diagram of the distribution of an NFC application in a terminal SE provided by an embodiment of this application;
  • FIG. 4 is a schematic diagram of a display interface of a terminal provided by an embodiment of the present application.
  • FIG. 5 is a schematic diagram of a scenario of an automatic activation method of an NFC application provided by an embodiment of the present application
  • FIG. 6 is a schematic diagram of a scenario of another method for automatically activating an NFC application provided by an embodiment of this application;
  • FIG. 7 is a schematic diagram of another NFC application provided in the terminal SE according to an embodiment of the present application.
  • FIG. 8 is a schematic diagram of another terminal display interface provided by an embodiment of the present application.
  • FIG. 9 is a schematic diagram of the composition of an NFC chip system provided by an embodiment of the present application.
  • first and second are used for description purposes only, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features.
  • the features defined as “first” and “second” may explicitly or implicitly include one or more of the features.
  • the meaning of “plurality” is two or more.
  • NFC application It is an application program for realizing short-range communication, which has a simulation function for simulating a non-contact IC card.
  • NFC applications can be divided into different types. For example, bus applications, access control applications, bank card applications, etc. Among them, NFC applications have AID, but not all NFC applications will use AID.
  • the NFC application using AID supports AID identification, that is, the terminal can identify the NFC application accessed by the transaction instruction according to the AID carried in the transaction instruction.
  • the terminal emulation card needs to include three functional entities, namely: device host (device, host, DH), NFC controller (NFC controller (NFCC), and SE). among them:
  • DH Can be responsible for NFCC management, such as initialization, configuration and power management.
  • NFCC can be responsible for the physical transmission of data through the antenna.
  • DH may be included in the main chip of the terminal, and NFCC may be included in the NFC chip of the terminal.
  • SE It can be responsible for providing a secure execution environment (such as authentication, authorization, etc.) for NFC applications and an environment for storing sensitive data.
  • SE is a security unit chip. Multiple NFC applications can be carried simultaneously in the SE.
  • the terminal may have one or more SEs. If the terminal has multiple SEs, these SEs may exist in different forms. For example, as shown in Figure 1, the terminal has three SEs. These three SEs can be: SE1 in the form of subscriber identification module (SIM) card, SE2 packaged with NFC chip, and the main chip of the terminal (application shown in Figure 1 InSE in the form of an application processor (AP).
  • SIM subscriber identification module
  • AP application processor
  • SE hardware as shown in Figure 1 is deployed in a server located in the cloud.
  • SE may also exist in the terminal in other forms.
  • SE in the form of an SD card for example, a SE that exists in the form of a universal integrated circuit card (Universal Integrated Circuit Card, UICC), etc., this embodiment does not limit this.
  • UICC Universal Integrated Circuit Card
  • the terminal can automatically activate the NFC application accessed by the received transaction instruction only when the SE is in the activated state. However, since only one SE is active in the terminal at the same time. In this way, in the case where the terminal has multiple SEs, if the transaction instruction accesses the NFC application carried in the SE in the inactive state, the terminal cannot automatically activate the corresponding NFC application. For example, with reference to FIG. 1 above, take the currently activated SE in the form of a SIM card as an example. When the terminal is close to the card reader (or POS machine), the terminal can receive the transaction instruction sent by the card reader (or POS machine). If the NFC application accessed by the transaction instruction is carried in SE1, the terminal can automatically activate the corresponding NFC application to complete the transaction.
  • the terminal cannot automatically activate the NFC application accessed by the transaction instruction. At this time, the transaction can only be completed by the user manually activating the corresponding NFC application.
  • This embodiment provides an automatic activation method of an NFC application.
  • the method can be applied to a terminal with multiple SEs, and the terminal has an NFC function.
  • the method provided in this embodiment can automatically activate the NFC application to be accessed by the transaction instruction when the terminal has multiple SEs.
  • the terminal described in this embodiment may be a mobile phone, tablet computer, desktop, laptop, handheld computer, notebook computer, ultra-mobile personal computer (Ultra-mobile Personal Computer, UMPC), netbook, cellular Telephones, and personal digital assistants (Personal Digital Assistants, PDAs), wearable devices (such as smart watches), augmented reality (AR) ⁇ virtual reality (VR) devices, etc.
  • PDAs Personal Digital Assistants
  • wearable devices such as smart watches
  • AR augmented reality
  • VR virtual reality
  • FIG. 2 shows a schematic structural diagram of the terminal 200 provided by this embodiment.
  • the terminal 200 may include a processor 210, an external memory interface 220, an internal memory 221, a universal serial bus (USB) interface 230, a charging management module 240, a power management module 241, and a battery 242, Antenna 1, antenna 2, mobile communication module 250, wireless communication module 260, audio module 270, speaker 270A, receiver 270B, microphone 270C, headphone jack 270D, sensor module 280, button 290, motor 291, indicator 292, camera 293, Display screen 294, and SIM card interface 295, etc.
  • USB universal serial bus
  • the sensor module 280 may include a pressure sensor 280A, a gyro sensor 280B, an air pressure sensor 280C, a magnetic sensor 280D, an acceleration sensor 280E, a distance sensor 280F, a proximity light sensor 280G, a fingerprint sensor 280H, a temperature sensor 280J, a touch sensor 280K, and ambient light Sensor 280L, bone conduction sensor 280M, etc.
  • the structure illustrated in this embodiment does not constitute a specific limitation on the terminal 200.
  • the terminal 200 may include more or fewer components than shown, or combine certain components, or split certain components, or arrange different components.
  • the illustrated components can be implemented in hardware, software, or a combination of software and hardware.
  • the processor 210 may include one or more processing units.
  • the processor 210 may include an AP, a modem processor, a graphics processor (GPU), an image signal processor (ISP), Controller, memory, video codec, digital signal processor (DSP), baseband processor, and / or neural-network processing unit (NPU), etc.
  • different processing units may be independent devices, or may be integrated in one or more processors.
  • the terminal 200 may include an SE in the form of an AP, which may be referred to as inSE.
  • the controller may be the nerve center and command center of the terminal 200.
  • the controller can generate operation control signals according to the instruction operation codes and timing signals to complete the control of instruction fetch and execution.
  • the processor 210 may also be provided with a memory for storing instructions and data.
  • the memory in the processor 210 is a cache memory.
  • the memory may store instructions or data that the processor 210 has just used or recycled. If the processor 210 needs to use the instruction or data again, it can be directly called from the memory. The repeated access is avoided, and the waiting time of the processor 210 is reduced, thereby improving the efficiency of the system.
  • the processor 210 may include one or more interfaces.
  • Interfaces can include integrated circuit (inter-integrated circuit, I2C) interface, integrated circuit built-in audio (inter-integrated circuit, sound, I2S) interface, pulse code modulation (pulse code modulation (PCM) interface, universal asynchronous transceiver (universal asynchronous) receiver / transmitter, UART) interface, mobile industry processor interface (MIPI), general-purpose input / output (GPIO) interface, subscriber identity module (SIM) interface, and And / or universal serial bus (USB) interface, etc.
  • I2C integrated circuit
  • I2S integrated circuit built-in audio
  • PCM pulse code modulation
  • PCM pulse code modulation
  • UART universal asynchronous transceiver
  • MIPI mobile industry processor interface
  • GPIO general-purpose input / output
  • SIM subscriber identity module
  • USB universal serial bus
  • the I2C interface is a bidirectional synchronous serial bus, including a serial data line (serial data line, SDA) and a serial clock line (derail clock line, SCL).
  • the processor 210 may include multiple sets of I2C buses.
  • the processor 210 may be coupled to the touch sensor 280K, charger, flash, camera 293, etc. through different I2C bus interfaces.
  • the processor 210 may couple the touch sensor 280K through the I2C interface, so that the processor 210 and the touch sensor 280K communicate through the I2C bus interface to realize the touch function of the terminal 200.
  • the I2S interface can be used for audio communication.
  • the processor 210 may include multiple sets of I2S buses.
  • the processor 210 may be coupled to the audio module 270 through an I2S bus to implement communication between the processor 210 and the audio module 270.
  • the audio module 270 can transmit audio signals to the wireless communication module 260 through the I2S interface, to realize the function of answering the phone call through the Bluetooth headset.
  • the PCM interface can also be used for audio communication, sampling, quantizing and encoding analog signals.
  • the audio module 270 and the wireless communication module 260 may be coupled through a PCM bus interface.
  • the audio module 270 can also transmit audio signals to the wireless communication module 260 through the PCM interface to realize the function of answering the call through the Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
  • the UART interface is a universal serial data bus used for asynchronous communication.
  • the bus may be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication.
  • the UART interface is generally used to connect the processor 210 and the wireless communication module 260.
  • the processor 210 communicates with the Bluetooth module in the wireless communication module 260 through the UART interface to implement the Bluetooth function.
  • the audio module 270 can transfer audio signals to the wireless communication module 260 through the UART interface, so as to realize the function of playing music through the Bluetooth headset.
  • the MIPI interface can be used to connect the processor 210 with a peripheral device such as a display screen 294 and a camera 293.
  • MIPI interface includes camera serial interface (camera serial interface, CSI), display serial interface (display serial interface, DSI) and so on.
  • the processor 210 and the camera 293 communicate through a CSI interface to implement the shooting function of the terminal 200.
  • the processor 210 and the display screen 294 communicate through the DSI interface to realize the display function of the terminal 200.
  • the GPIO interface can be configured via software.
  • the GPIO interface can be configured as a control signal or a data signal.
  • the GPIO interface may be used to connect the processor 210 and the camera 293, the display screen 294, the wireless communication module 260, the audio module 270, the sensor module 280, and the like.
  • GPIO interface can also be configured as I2C interface, I2S interface, UART interface, MIPI interface, etc.
  • the USB interface 230 is an interface that conforms to the USB standard specifications, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc.
  • the USB interface 230 can be used to connect a charger to charge the terminal 200, and can also be used to transfer data between the terminal 200 and peripheral devices. It can also be used to connect headphones and play audio through the headphones.
  • the interface can also be used to connect other terminals, such as AR devices.
  • the interface connection relationship between the modules illustrated in this embodiment is only a schematic description, and does not constitute a limitation on the structure of the terminal 200.
  • the terminal 200 may also use different interface connection methods in the foregoing embodiments, or a combination of multiple interface connection methods.
  • the charging management module 240 is used to receive charging input from the charger.
  • the charger may be a wireless charger or a wired charger.
  • the charging management module 240 may receive the charging input of the wired charger through the USB interface 230.
  • the charging management module 240 may receive wireless charging input through the wireless charging coil of the terminal 200. While the charging management module 240 charges the battery 242, it can also supply power to the terminal through the power management module 241.
  • the power management module 241 is used to connect the battery 242, the charging management module 240 and the processor 210.
  • the power management module 241 receives input from the battery 242 and / or the charging management module 240, and supplies power to the processor 210, internal memory 221, external memory, display screen 294, camera 293, and wireless communication module 260.
  • the power management module 241 can also be used to monitor battery capacity, battery cycle times, battery health status (leakage, impedance) and other parameters.
  • the power management module 241 may also be disposed in the processor 210.
  • the power management module 241 and the charging management module 240 may also be set in the same device.
  • the wireless communication function of the terminal 200 can be realized by the antenna 1, the antenna 2, the mobile communication module 250, the wireless communication module 260, the modem processor, and the baseband processor.
  • Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in the terminal 200 may be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization.
  • the antenna 1 can be multiplexed as a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
  • the mobile communication module 250 may provide a wireless communication solution including 2G / 3G / 4G / 5G and the like applied to the terminal 200.
  • the mobile communication module 250 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), and the like.
  • the mobile communication module 250 can receive electromagnetic waves from the antenna 1 and filter, amplify, etc. the received electromagnetic waves, and transmit them to the modem processor for demodulation.
  • the mobile communication module 250 can also amplify the signal modulated by the modulation and demodulation processor, and convert it to electromagnetic wave radiation through the antenna 1.
  • at least part of the functional modules of the mobile communication module 250 may be provided in the processor 210.
  • at least part of the functional modules of the mobile communication module 250 and at least part of the modules of the processor 210 may be provided in the same device.
  • the modem processor may include a modulator and a demodulator.
  • the modulator is used to modulate the low-frequency baseband signal to be transmitted into a high-frequency signal.
  • the demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal.
  • the demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing.
  • the low-frequency baseband signal is processed by the baseband processor and then passed to the application processor.
  • the application processor outputs a sound signal through an audio device (not limited to a speaker 270A, a receiver 270B, etc.), or displays an image or video through a display screen 294.
  • the modem processor may be a separate device.
  • the modem processor may be independent of the processor 210, and may be set in the same device as the mobile communication module 250 or other functional modules.
  • the wireless communication module 260 can provide NFC, wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (bluetooth, BT), and global navigation that are applied to the terminal 200. Satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), infrared technology (infrared, IR) and other wireless communication solutions.
  • the wireless communication module 260 may be one or more devices integrating at least one communication processing module.
  • the wireless communication module 260 receives electromagnetic waves via the antenna 2, frequency-modulates and filters electromagnetic wave signals, and transmits the processed signals to the processor 210.
  • the wireless communication module 260 may also receive the signal to be transmitted from the processor 210, frequency-modulate it, amplify it, and convert it to electromagnetic waves through the antenna 2 to radiate it out.
  • the wireless communication module 260 may specifically be an NFC chip, and the NFC chip may include DH and NFCC.
  • the NFC chip can amplify the signal, analog-to-digital conversion, digital-to-analog conversion, storage and other processing.
  • the antenna 1 of the terminal 200 is coupled to the mobile communication module 250, and the antenna 2 is coupled to the wireless communication module 260, so that the terminal 200 can communicate with the network and other devices through wireless communication technology.
  • the wireless communication technology may include a global mobile communication system (global system for mobile communications, GSM), general packet radio service (general packet radio service, GPRS), code division multiple access (code division multiple access, CDMA), broadband Wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long-term evolution (LTE), BT, GNSS, WLAN, NFC , FM, and / or IR technology, etc.
  • the GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a beidou navigation system (BDS), and a quasi-zenith satellite system (quasi -zenith satellite system (QZSS) and / or satellite-based augmentation systems (SBAS).
  • GPS global positioning system
  • GLONASS global navigation satellite system
  • BDS beidou navigation system
  • QZSS quasi-zenith satellite system
  • SBAS satellite-based augmentation systems
  • the terminal 200 implements a display function through a GPU, a display screen 294, and an application processor.
  • the GPU is a microprocessor for image processing, connecting the display screen 294 and the application processor.
  • the GPU is used to perform mathematical and geometric calculations, and is used for graphics rendering.
  • the processor 210 may include one or more GPUs that execute program instructions to generate or change display information.
  • the display screen 294 is used to display images, videos and the like.
  • the display screen 294 includes a display panel.
  • the display panel may use a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active matrix organic light-emitting diode or an active matrix organic light-emitting diode (active-matrix organic light) emitting diode (AMOLED), flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, quantum dot light emitting diode (QLED), etc.
  • the terminal 200 may include 1 or N display screens 294, where N is a positive integer greater than 1.
  • the terminal 200 can realize a shooting function through an ISP, a camera 293, a video codec, a GPU, a display screen 294, and an application processor.
  • the ISP is used to process the data fed back by the camera 293. For example, when taking a picture, the shutter is opened, the light is transmitted to the camera photosensitive element through the lens, and the optical signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing, which is converted into an image visible to the naked eye.
  • ISP can also optimize the image noise, brightness and skin color. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene.
  • the ISP may be provided in the camera 293.
  • the camera 293 is used to capture still images or videos.
  • the object generates an optical image through the lens and projects it onto the photosensitive element.
  • the photosensitive element may be a charge coupled device (charge coupled device, CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor.
  • CCD charge coupled device
  • CMOS complementary metal-oxide-semiconductor
  • the photosensitive element converts the optical signal into an electrical signal, and then transmits the electrical signal to the ISP to convert it into a digital image signal.
  • the ISP outputs the digital image signal to the DSP for processing.
  • DSP converts digital image signals into standard RGB, YUV and other image signals.
  • the terminal 200 may include 1 or N cameras 293, where N is a positive integer greater than 1.
  • the digital signal processor is used to process digital signals. In addition to digital image signals, it can also process other digital signals. For example, when the terminal 200 is selected at a frequency point, the digital signal processor is used to perform Fourier transform on the energy at the frequency point.
  • Video codec is used to compress or decompress digital video.
  • the terminal 200 may support one or more video codecs. In this way, the terminal 200 can play or record videos in various encoding formats, such as: moving picture expert group (moving picture experts, MPEG) 1, MPEG2, MPEG3, MPEG4, and so on.
  • MPEG moving picture experts
  • NPU is a neural-network (NN) computing processor.
  • NN neural-network
  • the NPU can realize applications such as intelligent recognition of the terminal 200, such as image recognition, face recognition, voice recognition, and text understanding.
  • the external memory interface 220 can be used to connect an external memory card, such as a Micro SD card, to realize the expansion of the storage capacity of the terminal 200.
  • the external memory card communicates with the processor 210 through the external memory interface 220 to realize the data storage function. For example, save music, video and other files in an external memory card.
  • the terminal 200 may include an SE in the form of an external memory card.
  • the internal memory 221 may be used to store computer executable program code, where the executable program code includes instructions.
  • the processor 210 executes instructions stored in the internal memory 221 to execute various functional applications and data processing of the terminal 200.
  • the internal memory 221 may include a storage program area and a storage data area.
  • the storage program area may store an operating system, at least one function required application programs (such as sound playback function, image playback function, etc.).
  • the storage data area may store data (such as audio data, phone book, etc.) created during the use of the terminal 200 and the like.
  • the internal memory 221 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash memory (universal flash storage, UFS), and so on.
  • a non-volatile memory such as at least one disk storage device, a flash memory device, a universal flash memory (universal flash storage, UFS), and so on.
  • the terminal 200 may implement audio functions through an audio module 270, a speaker 270A, a receiver 270B, a microphone 270C, a headphone jack 270D, and an application processor. For example, music playback, recording, etc.
  • the audio module 270 is used to convert digital audio information into analog audio signal output, and also used to convert analog audio input into digital audio signal.
  • the audio module 270 may also be used to encode and decode audio signals.
  • the audio module 270 may be disposed in the processor 210, or a part of the functional modules of the audio module 270 may be disposed in the processor 210.
  • the speaker 270A also called “speaker” is used to convert audio electrical signals into sound signals.
  • the terminal 200 can listen to music through the speaker 270A or listen to a hands-free call.
  • the receiver 270B also known as "handset" is used to convert audio electrical signals into sound signals.
  • the terminal 200 answers a call or voice message, it can answer the voice by bringing the receiver 270B close to the ear.
  • Microphone 270C also known as “microphone”, “microphone”, is used to convert sound signals into electrical signals.
  • the user can make a sound by approaching the microphone 270C through the human mouth, and input the sound signal to the microphone 270C.
  • the terminal 200 may be provided with at least one microphone 270C. In some other embodiments, the terminal 200 may be provided with two microphones 270C. In addition to collecting sound signals, it may also implement a noise reduction function. In other embodiments, the terminal 200 may also be provided with three, four, or more microphones 270C to collect sound signals, reduce noise, identify sound sources, and implement directional recording functions.
  • the headset interface 270D is used to connect wired headsets.
  • the earphone interface 270D may be a USB interface 230, or a 3.5mm open mobile electronic device (open terminal) platform (OMTP) standard interface, and the American Telecommunications Industry Association (cellular telecommunications industry association of the United States, CTIA) standard interface.
  • OMTP open mobile electronic device
  • CTIA American Telecommunications Industry Association
  • the pressure sensor 280A is used to sense the pressure signal and can convert the pressure signal into an electrical signal.
  • the pressure sensor 280A may be provided on the display screen 294.
  • the capacitive pressure sensor may be at least two parallel plates with conductive materials. When force is applied to the pressure sensor 280A, the capacitance between the electrodes changes.
  • the terminal 200 determines the intensity of the pressure according to the change in capacitance.
  • the terminal 200 detects the intensity of the touch operation according to the pressure sensor 280A.
  • the terminal 200 may calculate the touched position based on the detection signal of the pressure sensor 280A.
  • touch operations that act on the same touch position but have different touch operation intensities may correspond to different operation instructions. For example, when a touch operation with a touch operation intensity less than the first pressure threshold acts on the short message application icon, an instruction to view the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, an instruction to create a new short message is executed.
  • the gyro sensor 280B may be used to determine the movement posture of the terminal 200. In some embodiments, the angular velocity of the terminal 200 around three axes (ie, x, y, and z axes) may be determined by the gyro sensor 280B.
  • the gyro sensor 280B can be used for image stabilization. Exemplarily, when the shutter is pressed, the gyro sensor 280B detects the jitter angle of the terminal 200, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to counteract the jitter of the terminal 200 through reverse movement to achieve anti-shake.
  • the gyro sensor 280B can also be used for navigation and somatosensory game scenes.
  • the air pressure sensor 280C is used to measure air pressure.
  • the terminal 200 calculates the altitude by using the air pressure value measured by the air pressure sensor 280C to assist positioning and navigation.
  • the magnetic sensor 280D includes a Hall sensor.
  • the terminal 200 may use the magnetic sensor 280D to detect the opening and closing of the flip holster.
  • the terminal 200 may detect the opening and closing of the clamshell according to the magnetic sensor 280D.
  • features such as automatic unlocking of the flip cover are set.
  • the acceleration sensor 280E can detect the magnitude of the acceleration of the terminal 200 in various directions (generally three axes). When the terminal 200 is stationary, the magnitude and direction of gravity can be detected. It can also be used to recognize the posture of the terminal, and be used in applications such as horizontal and vertical screen switching and pedometers.
  • the distance sensor 280F is used to measure the distance.
  • the terminal 200 can measure the distance by infrared or laser. In some embodiments, when shooting scenes, the terminal 200 may use the distance sensor 280F to measure distance to achieve fast focusing.
  • the proximity light sensor 280G may include, for example, a light emitting diode (LED) and a light detector, such as a photodiode.
  • the light emitting diode may be an infrared light emitting diode.
  • the terminal 200 emits infrared light outward through the light emitting diode.
  • the terminal 200 uses a photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it may be determined that there is an object near the terminal 200. When insufficient reflected light is detected, the terminal 200 may determine that there is no object near the terminal 200.
  • the terminal 200 can use the proximity light sensor 280G to detect that the user is holding the terminal 200 close to the ear to talk, so as to automatically turn off the screen to save power.
  • the proximity light sensor 280G can also be used in leather case mode, pocket mode automatically unlocks and locks the screen.
  • the ambient light sensor 280L is used to sense the ambient light brightness.
  • the terminal 200 can adaptively adjust the brightness of the display screen 294 according to the perceived brightness of the ambient light.
  • the ambient light sensor 280L can also be used to automatically adjust the white balance when taking pictures.
  • the ambient light sensor 280L can also cooperate with the proximity light sensor 280G to detect whether the terminal 200 is in a pocket to prevent accidental touch.
  • the fingerprint sensor 280H is used to collect fingerprints.
  • the terminal 200 can use the collected fingerprint characteristics to unlock the fingerprint, access the application lock, take a picture of the fingerprint, and answer the call with the fingerprint.
  • the temperature sensor 280J is used to detect the temperature.
  • the terminal 200 uses the temperature detected by the temperature sensor 280J to execute a temperature processing strategy. For example, when the temperature reported by the temperature sensor 280J exceeds the threshold, the terminal 200 performs to reduce the performance of the processor located near the temperature sensor 280J in order to reduce power consumption and implement thermal protection. In other embodiments, when the temperature is lower than another threshold, the terminal 200 heats the battery 242 to avoid abnormal shutdown of the terminal 200 due to low temperature. In some other embodiments, when the temperature is below another threshold, the terminal 200 performs boosting on the output voltage of the battery 242 to avoid abnormal shutdown due to low temperature.
  • Touch sensor 280K also known as "touch panel”.
  • the touch sensor 280K may be provided on the display screen 294, and the touch sensor 280K and the display screen 294 form a touch screen, also called a "touch screen”.
  • the touch sensor 280K is used to detect a touch operation acting on or near it.
  • the touch sensor can pass the detected touch operation to the application processor to determine the type of touch event.
  • the visual output related to the touch operation can be provided through the display screen 294.
  • the touch sensor 280K may also be disposed on the surface of the terminal 200, which is different from the position where the display screen 294 is located.
  • the bone conduction sensor 280M can acquire vibration signals.
  • the bone conduction sensor 280M can acquire the vibration signal of the vibrating bone mass of the human voice.
  • the bone conduction sensor 280M can also contact the pulse of the human body and receive a blood pressure beating signal.
  • the bone conduction sensor 280M may also be provided in the earphone and combined into a bone conduction earphone.
  • the audio module 270 can parse out the voice signal based on the vibration signal of the vibrating bone block of the voice part acquired by the bone conduction sensor 280M to realize the voice function.
  • the application processor may analyze the heart rate information based on the blood pressure beating signal acquired by the bone conduction sensor 280M to implement the heart rate detection function.
  • the key 290 includes a power-on key, a volume key, and the like.
  • the key 290 may be a mechanical key. It can also be a touch button.
  • the terminal 200 may receive key input and generate key signal input related to user settings and function control of the terminal 200.
  • the motor 291 may generate a vibration prompt.
  • the motor 291 can be used for vibration notification of incoming calls and can also be used for touch vibration feedback.
  • touch operations applied to different applications may correspond to different vibration feedback effects.
  • the motor 291 can also correspond to different vibration feedback effects.
  • Different application scenarios for example: time reminder, receiving information, alarm clock, game, etc.
  • Touch vibration feedback effect can also support customization.
  • the indicator 292 can be an indicator light, which can be used to indicate the charging state, the amount of power change, and can also be used to indicate messages, missed calls, notifications, and the like.
  • the SIM card interface 295 is used to connect a SIM card.
  • the SIM card can be inserted into or removed from the SIM card interface 295 to achieve contact and separation with the terminal 200.
  • the terminal 200 may support 1 or N SIM card interfaces, and N is a positive integer greater than 1.
  • the SIM card interface 295 can support Nano SIM cards, Micro SIM cards, SIM cards, etc.
  • the same SIM card interface 295 can insert multiple cards at the same time. The types of the multiple cards may be the same or different.
  • the SIM card interface 295 can also be compatible with different types of SIM cards.
  • the SIM card interface 295 can also be compatible with external memory cards.
  • the terminal 200 interacts with the network through the SIM card to realize functions such as call and data communication.
  • the terminal 200 uses eSIM, that is, an embedded SIM card.
  • the eSIM card can be embedded in the terminal 200 and cannot be separated from the terminal 200.
  • the terminal 200 may include an SE in the form of a SIM card.
  • the technical solutions involved in the following embodiments may be implemented in the terminal 200 having the above hardware architecture.
  • the automatic activation method of the NFC application provided in this embodiment is described in detail below.
  • the terminal has three SEs (as shown in FIG. 1) as an example for introduction.
  • the terminal in a scenario where the terminal has multiple SEs (such as three SEs), there will be one SE that is activated by default.
  • some specific NFC applications may be carried in the SE that is activated by default.
  • the first SE in this application may be the SE in the activated state by default.
  • the specific NFC application may be an NFC application that supports AID identification. That is to say, all NFC applications that support AID identification can be carried in the SE that is activated by default on the terminal.
  • SE1 in the form of a SIM card is activated by default.
  • the terminal may download the NFC application to the SE1.
  • the terminal may store the identification of the NFC application that supports AID identification.
  • a white list is stored in the terminal.
  • the whitelist contains all AIDs of NFC applications that support AID identification.
  • the terminal may determine whether the downloaded AID of the NFC application is included in the white list. If the downloaded AID of the NFC application is included in the white list, the terminal downloads the NFC application to the SE that is activated by default.
  • the white list stored in the terminal is shown in Table 1. As can be seen from Table 1, NFC applications with AIDs of AID 1, AID 2, AID 3, and AID 4 are NFC applications that support AID identification.
  • the currently downloaded NFC application is Xi'an's bus card application, and its AID is AID1.
  • the terminal may determine that the AID of the bus card application is included in the white list, which is an NFC application that supports AID identification.
  • the terminal can download the bus card application to SE1.
  • the user may manually select the SE to be downloaded to. If the downloaded SE selected by the user is not the SE that is activated by default.
  • the second SE in this application may be the SE that is not in the activated state by default.
  • the terminal may determine whether the AID of the NFC application is included in the white list. If the AID of the NFC application is included in the white list, the NFC application can be transferred from the current SE to the SE that is activated by default. In some embodiments, after the terminal transfers the NFC application from the current SE to the SE that is activated by default, the terminal may also display prompt information.
  • the prompt information is used to remind the user that the NFC application has been transferred to the SE in the activated state by default, which is convenient for automatic activation in subsequent use.
  • the terminal may determine whether the AID of the NFC application is included in the white list. If the AID of the NFC application is included in the white list, the terminal downloads the NFC application to the SE that is activated by default instead of the SE selected by the user. In some embodiments, the terminal may also display a prompt message to remind the user that the NFC application is downloaded to the SE in the activated state by default, rather than the SE selected by the user, so that it can be automatically activated during subsequent use.
  • the terminal may determine whether the AID of the NFC application is included in the white list. If it is determined that the AID of the NFC application is included in the white list, the terminal may transfer the NFC application from the current SE to the SE that is activated by default. For example, combining the above example and Table 1, the terminal downloads a bank card of a certain bank and applies it to SE 2 of the terminal, and its AID is AID 2. The terminal determines that the AID 2 of the bank card application is included in the white list stored in the terminal. The terminal can transfer the bank card application from SE 2 to SE 1.
  • the terminal may receive the transaction instruction (for example, the first transaction instruction in this application may be the transaction instruction).
  • the transaction instruction may include AID. Based on the AID included in the transaction instruction, the terminal can find the corresponding NFC application in the SE in the activated state by default and automatically activate the NFC application.
  • the card reader or POS machine
  • the card reader may send a transaction instruction carrying the AID.
  • the NFCC of the terminal can receive the transaction instruction.
  • the NFCC of the terminal can send the received transaction instruction to the SE that is activated by default (such as SE 1 above).
  • the SE that is activated by default can automatically run the NFC application identified by the AID according to the AID carried in the transaction instruction and execute the transaction instruction.
  • the terminal when downloading the Xi'an bus card application, the terminal downloads it to SE1, which is activated by default.
  • the AID of Xi'an's bus card application is AID 1.
  • the POS machine can send a transaction instruction with AID 1, which is used to indicate the deduction of the user's bus card by 1 yuan.
  • the NFCC of the terminal receives the transaction instruction, it can send the transaction instruction to SE1.
  • SE1 can determine that the NFC application accessed by the POS machine is the Xi'an bus card application according to the AID1 carried in the received transaction instruction. SE1 can automatically run the Xi'an bus card application and deduct 1 yuan.
  • the terminal transfers the bank card application downloaded from the factory default in SE 2 to SE 1 that is activated by default.
  • the AID of the bank card application is AID 2.
  • the POS machine can send a transaction instruction carrying AID 2 which is used to indicate the deduction of the user's bank card amount of 268 yuan.
  • the NFCC of the terminal receives the transaction instruction, it can send the transaction instruction to SE1.
  • SE1 can determine the NFC application accessed by the POS machine as a bank card application according to the AID2 carried in the received transaction instruction. SE1 can automatically run the bank card application and deduct 268 yuan.
  • the terminal can download the NFC application to the SE1, or download the NFC application to other SEs of the terminal, such as SE2 or SE3 in.
  • the specific NFC application may be an NFC application frequently used by users.
  • all NFC applications frequently used by users can be carried in the SE that is activated by default in the terminal.
  • the first SE in this application may be the SE that is activated by default.
  • the terminal may obtain the usage frequency of the NFC application in the terminal. For example, the terminal may count the number of times the user manually activates the NFC application within a period of time to obtain its frequency of use. If the terminal obtains that the usage frequency of an NFC application is greater than a predetermined threshold, but the NFC application is not currently carried in the SE that is activated by default, the terminal may transfer the NFC application from the current SE to the activated state by default SE.
  • the terminal may also count information such as the time and / or geographic location where the user frequently uses the NFC application, so that when a transaction instruction is received subsequently (for example, the second transaction instruction in this application may be the transaction instruction), Based on the information, it can be determined whether the user's current intention to use the terminal is to use the NFC application. When it is determined that the user's intention to use the terminal is to use the NFC application, it can be automatically activated.
  • the terminal may obtain the geographic location through various positioning technologies. For example, the terminal may obtain the geographic location where the user is located through GPS in the terminal.
  • the terminal For example, with reference to FIG. 1, take the case that the SE in the form of a SIM card is activated by default as an example.
  • the terminal As shown in (a) of FIG. 3, the terminal ’s SE2 packaged with the NFC chip carries an NFC application, such as a car key application 301. According to the number of times the user manually activates the car key application 301 within a period of time, the terminal obtains that the use frequency of the car key application 301 is frequency 1. The terminal judges whether the frequency 1 is greater than a predetermined threshold. If the frequency 1 is greater than a predetermined threshold, the terminal may transfer the car key application 301 from SE 2 to SE 1 that is activated by default, as shown in (b) in FIG. 3.
  • the terminal also statistics that users often use the car key application 301 during the time period of 7: 30-7: 50. Then, if the terminal receives the transaction instruction, it can automatically activate the car key application 301 when the current system time (or the time when the transaction instruction is received) is within the time period of 7: 30-7: 50. That is to say, when the current system time is within the time period of 7: 30-7: 50, the car key application 301 can be automatically run by SE1, which is activated by default. In this way, when the user uses the mobile phone to approach the car door, the user can open the car door without the user manually activating the car key application 301.
  • the terminal's inSE in the form of the terminal's AP carries an NFC application, such as an access control card application 302.
  • the terminal obtains that the frequency of use of the access control card application 302 is frequency 2 according to the number of times the user manually activates the access control card application 302 within a period of time.
  • the terminal determines whether the frequency 2 is greater than a predetermined threshold. If the frequency 2 is greater than a predetermined threshold, the terminal may transfer the access control card application 302 from inSE to SE1 which is activated by default, as shown in (b) in FIG. 3.
  • the terminal also statistics that the user is in the time period of 18: 00-18: 30, and the access control card application 302 is often used within a certain geographic location range (such as the geographic location range is the user's home). Then if the terminal receives the transaction instruction, it can obtain the current system time (or the time when the transaction instruction is received) within the time period of 18: 00-18: 30, and the current geographical location (or Yes, the geographic location when the transaction instruction is received) is within the geographic location range, the access card application 302 is automatically activated. That is to say, when the current system time is within the time period of 18: 00-18: 30 and the current geographic location is within the geographic location range, the access card application 302 can be automatically run by SE1, which is activated by default. In this way, when the user uses the mobile phone to approach the room door, the user does not need to manually activate the access control card application 302 to open the room door.
  • SE1 which is activated by default.
  • the terminal can also count information such as the time and / or geographic location where the user often uses the NFC application, so that the user's current intention to use the terminal can be determined based on the information Whether to use the NFC application. If yes, the NFC application can be automatically activated.
  • the terminal when downloading the NFC application, the terminal may store the relevant information of the NFC application and the handle of the NFC application in the routing table of the SE that is activated by default. After receiving the transaction instruction, the terminal may determine the NFC application accessed by the transaction instruction from the NFC application carried by the SE that is activated by default according to the routing table, and automatically activate it to complete the transaction. It should be noted that, for the specific process of determining the NFC application accessed by the transaction instruction according to the routing table, reference may be made to the specific description of the corresponding content in the following embodiments, and details are not repeated here.
  • the terminal in a scenario where the terminal has multiple SEs (such as three SEs), there may be one SE that is activated by default, and the other SEs are in an inactive state.
  • the terminal may implement automatic activation of the corresponding NFC application according to the scenario where the user uses the NFC application.
  • SE1 in the form of a SIM card is activated by default, and SE2 and SE3 are in an inactive state as an example.
  • the NFCC of the terminal can determine the NFC application accessed by the transaction request according to the usage scenario. If the NFC application accessed by the transaction request is carried in SE1, the NFCC of the terminal may transmit the received transaction request to the SE1, so that the SE1 automatically activates the corresponding NFC application to complete the transaction. If the NFC application accessed by the transaction request is not carried in SE1, but is carried in an inactive state, such as SE2, then the terminal may deactivate SE1 and activate SE2. In this way, the NFCC of the terminal can transmit the received transaction request to the currently active SE 2. SE2 can automatically activate the corresponding NFC application according to the received transaction instruction, and then complete the transaction.
  • SE1 in the form of a SIM card is activated by default, and SE2 and SE3 are not activated.
  • the terminal's SE 1 carries the Shenzhen bus card application, and the SE 2 carries the Xi'an bus card application.
  • the terminal can implement automatic activation of the corresponding NFC application according to the geographic location where the user is located.
  • the NFCC of the terminal can receive the transaction instruction sent by the POS machine.
  • the terminal After receiving the transaction instruction, the terminal can obtain the current geographic location of the user. If the acquired geographic location indicates that the user is currently in Shenzhen, the NFCC of the terminal can transmit the received transaction instruction to SE 1.
  • SE1 automatically activates the Shenzhen bus card application and executes the transaction instruction, such as deducting the corresponding amount from the bus card application. If the acquired geographic location indicates that the user is currently in Xi'an, the terminal may deactivate SE1 and activate SE2. The NFCC of the terminal can transmit the received transaction instruction to SE2. After receiving the transaction instruction, SE2 can automatically activate the bus card application in Xi'an and execute the transaction instruction to complete the transaction.
  • the terminal may determine the NFC application that needs to be automatically activated based on the recommendation information sent by the server deployed on the Internet, and activate it automatically.
  • the recommendation information sent by the server may be determined according to information reported by other users' terminals, and the information may be used to indicate that the terminal uses an NFC application in a certain scenario. Generally, most users use an NFC application at a certain time and place. The terminals of these users may report information indicating that the NFC application was used at that time and place to the server.
  • the user's terminal may receive a push message sent by the server, where the push message is used to instruct the terminal to recommend the user to use the corresponding NFC application.
  • the terminal can automatically activate the corresponding NFC application according to the push message.
  • the server determines that Starbucks is somewhere based on information reported by most users, and everyone uses China Merchants Bank's bank card application.
  • a bank card application of China Merchants Bank was downloaded from a user's terminal.
  • the terminal can receive the push message sent by the server, and the terminal can automatically activate the bank card application of China Merchants Bank in the terminal according to the push message.
  • the terminal may display a prompt window including prompt information 401, which is used to prompt the user to automatically activate the bank card of China Merchants Bank application.
  • the prompt window may further include an OK button 402 and a cancel button 403.
  • the terminal When the user wants to use the bank card application of China Merchants Bank, he can perform a click operation on the OK button 402. In response to the click operation, the terminal can automatically activate the application. If the user does not want to use the bank card application of China Merchants Bank, he can click the cancel button 403. In response to the click operation, the terminal does not activate the application. In some embodiments, when the bank card application of the China Merchants Bank is carried in the inactive state of the SE, after receiving the push message, the terminal may first activate the SE bearing the bank card application.
  • the terminal in a scenario where the terminal has multiple SEs (such as three SEs), after the user approaches the card reader (or POS machine) with the handheld terminal, the terminal can receive the card reader (or POS machine) ) The transaction order sent.
  • the terminal determines which of the multiple SEs of the terminal the NFC application accessed by the transaction instruction is carried according to the received transaction instruction.
  • the SE carrying the NFC application accessed by the transaction instruction is called the target SE.
  • the received transaction instruction can be transmitted to the target SE.
  • the target SE may determine the NFC application accessed by the transaction instruction from the NFC applications carried by the target SE.
  • the NFC application accessed by the transaction instruction is called the target NFC application.
  • the target SE can automatically activate the target NFC application.
  • the target SE can automatically run the target NFC application and execute the transaction instruction of the card reader (or POS machine) to complete the transaction.
  • the transaction instruction may be any type of card reader (eg, handheld mobile card reader, fixed card reader) or any type of POS machine (eg, handheld mobile POS machine, fixed POS machine). give an order. It can be instructions of various types or various frame formats.
  • the transaction instruction may be an application protocol data unit (Application Protocol Data Unit, APDU) frame format, single byte short frame format, long frame format and other frame format instructions.
  • APDU Application Protocol Data Unit
  • the transaction instruction may be 14443 type (TYPE) A, 14443 TYPE B, International Standard Organization (ISO) 18092, ISO15693 and other types of instructions.
  • the terminal may transmit the received transaction instruction to the target SE after determining the target SE. If the target SE determined by the terminal is in an inactive state, the terminal may activate the target SE after determining the target SE, and then transmit the received transaction instruction to the target SE. Of course, if the target SE is in an inactive state, other SEs of the terminal are in an activated state, and the terminal may also deactivate other SEs in an activated state.
  • the terminal may determine which of the multiple SEs of the terminal the NFC application accessed by the transaction instruction is carried according to the first routing table maintained by the terminal. That is, the terminal may determine the target SE according to the first routing table.
  • the first routing table may include: all the NFC application related information installed by the terminal and the SE identifier of the SE carrying each NFC application (but not limited to the SE identifier. For example, the physical relationship between the SE carrying each NFC application and the NFCC Channel ID or logical channel ID, etc.).
  • the first routing table includes the correspondence between all the NFC application-related information installed by the terminal and the SE identifier of the SE carrying each NFC application as an example.
  • the terminal may determine the NFC application accessed by the transaction instruction from the at least one NFC application carried by the target SE according to the second routing table maintained by the terminal, that is, determine the target NFC application.
  • the terminal may maintain a second routing table for each SE in the terminal.
  • the second routing table may include: the correspondence between the relevant information of each NFC application carried in the SE and the handle of the NFC application.
  • each SE of the multiple SEs of the terminal may carry at least one NFC application.
  • the NFC application may be downloaded from the server by the terminal.
  • the terminal may configure the routing information corresponding to the NFC application in the first routing table and the second routing table, respectively. After that, the terminal can determine the target NFC application based on the routing information and automatically activate it to complete the transaction.
  • the first routing table includes: the correspondence between the relevant information of the NFC application and the SE identifier of the SE carrying the NFC application.
  • AID is the identifier of the NFC application, which exists uniquely in the same SE.
  • an AID can be used to uniquely identify a bus card application, bank card application, ID card application, or social security health card application.
  • AIDs of NFC applications carried in different SEs may be the same or different.
  • NFC applications can also be identified in other ways. For different NFC applications, the protocol and rules followed to access the transaction instructions may be the same or different.
  • the protocol and rules followed by the transaction instructions for accessing the NFC application can be determined during installation, and can also be changed dynamically during use.
  • the transaction instructions for accessing the bus card application, access control card application, and bank card application all have their own protocols and rules to follow.
  • the protocol and rules followed by the transaction instructions for accessing the NFC application may include user-defined protocols and rules.
  • the NFC physical technologies used to access the transaction instructions of NFC applications are: TYPEA technology, TYPEB technology, TYPEF technology, etc.
  • the NFC physical technology used to access the transaction instructions may be the same or different.
  • the NFC physical technology used to access the transaction instructions of the NFC application can be determined at the time of installation.
  • TYPEB technology is used for transaction instructions to access ID card applications.
  • the transaction instructions to access the bus card application use TYPEA technology.
  • the transaction instruction to access the NFC application can be a string.
  • the string can be fixed or dynamic.
  • the character string can be one byte or several bits.
  • the strings to access different NFC applications can be the same or different.
  • the character string to access the NFC application can be determined during installation, and can also be dynamically changed during use.
  • the requirements on the power consumption status of the terminal may include: inductive charging, power on, power off, bright screen, off screen, etc.
  • the requirements on the power consumption state of the terminal may be the same or different.
  • the power consumption state of the terminal when running a bank card application, the power consumption state of the terminal is required to be bright. When running the access control card application, the power consumption state of the terminal is required to be off the screen.
  • the power consumption state of the terminal may include a predefined power consumption state, such as power and no power. It can also include some user-defined states, such as the terminal's power level. If it is defined to run an NFC application, the power requirement of the terminal is greater than 50%.
  • the routing information corresponding to the NFC application in the first routing table shown in Table 2 may be configured according to the routing configuration command issued by the DH of the terminal.
  • the routing information corresponding to the actually configured NFC application may include at least one of the relevant information of the NFC application. That is to say, the routing information corresponding to the actually configured NFC application may include at least one of the following information: the AID of the NFC application, the protocol and rules followed by the transaction instruction to access the NFC application, and the NFC used by the transaction instruction to access the NFC application Physical technology, transaction instructions to access NFC applications, and requirements for the power consumption status of the terminal when running NFC applications.
  • the NFC application when downloading an NFC application, the NFC application is downloaded to a certain SE of the terminal. After determining that the NFC application is successfully downloaded to the SE, the SE of the terminal may send a message indicating that the NFC application has been successfully downloaded to the DH of the terminal. After receiving the message, the DH of the terminal may send a routing configuration command to the NFCC of the terminal.
  • the routing configuration command may be predefined locally on the terminal, or may be issued to the DH of the terminal by a server that provides download resources of the NFC application.
  • the routing configuration command is used to instruct the NFCC to configure routing information corresponding to the NFC application in the first routing table.
  • the routing configuration command may include: information to be configured when configuring routing information in the first routing table, and specific values of the information to be configured.
  • the routing configuration command also includes: the SE identifier of the SE carrying the NFC application.
  • the NFCC of the terminal can configure routing information corresponding to the NFC application in the first routing table.
  • the routing information may include the correspondence between the relevant information of the NFC application and the SE identifier.
  • the NFCC of the terminal may determine in which SE of the terminal the NFC application accessed by the transaction instruction is carried according to the first routing table shown in Table 2, that is, the target SE.
  • the NFCC of the terminal may determine a piece of routing information from the first routing table according to the first routing table and the transaction instruction (for example, the first routing information in this application may be the routing information).
  • the routing information may be routing information that satisfies the matching condition in the first routing table (the first matching condition in this application may be the matching condition).
  • the matching condition may include at least one of the following: condition a: the AID in the routing information is the same as the application identifier AID carried in the transaction instruction, and condition b: the protocol and rules in the routing information are the same as the protocols and rules followed by the transaction instruction, Condition c: The NFC physical technology in the routing information is the same as the NFC physical technology used in the transaction instruction. Condition d: The transaction instruction in the routing information is the same as the received transaction instruction.
  • the NFCC of the terminal may follow the preset order of the above four conditions (the first preset order in this application may be the preset order) to satisfy the first in the preset order in the first routing table
  • the conditional routing information is used as the determined routing information.
  • the information about the power consumption status of the terminal when running the NFC application can be used as an auxiliary condition, so that the security of automatically activating the NFC application can be improved.
  • condition a For example, as shown in FIG. 5, taking the above preset order as condition a, condition b, condition c, and condition d as an example.
  • the specific implementation of the terminal's NFCC determining, according to the first routing table, in which SE of the terminal the NFC application accessed by the transaction instruction is carried may include:
  • the NFCC of the terminal can determine whether the transaction instruction includes the AID. If it is determined that the transaction instruction includes the AID, the order of the routing information in the first routing table may be configured or the priority order of the SE included in the terminal (the priority of the SE may be predefined or may be (Set by the user), traverse the routing information in the first routing table to determine whether there is routing information in the first routing table with the same AID as the AID in the received transaction instruction.
  • the value of this information is the same as the current power consumption status of the terminal, Then, the SE identified by the SE identifier included in the routing information is the target SE.
  • the routing information of the AID is the same, but the routing information includes the requirements for the power consumption status of the terminal when running the NFC application. The value of this information is different from the current power consumption status of the terminal. Configure the routing information of each routing information in the routing table or follow the priority order of the SE included in the terminal to traverse the routing information in the first routing table to determine whether there are protocols and rules and received transactions in the first routing table Routing information followed by the same protocol and rules as the instructions. If it exists, and the requirement of the terminal's power consumption state when running the NFC application included in the route information is the same as the current power consumption state of the terminal, the SE identifier included in the route information is identified by The SE is the target SE.
  • the terminal's NFCC can follow the first route
  • the configuration order of each routing information in the table or according to the priority order of the SE included in the terminal traverse the routing information in the first routing table to determine whether the NFC physical technology and the received transaction instruction exist in the first routing table Use the same routing information as the NFC physical technology. If it exists, and the requirement of the terminal's power consumption state when running the NFC application included in the route information is the same as the current power consumption state of the terminal, the SE identifier included in the route information is identified by The SE is the target SE.
  • routing information in the first routing table that is the same as the NFC physical technology used in the received transaction instruction, or if the NFC physical technology in the first routing table and the NFC physical technology used in the received transaction instruction exist
  • the routing information is the same technology, but the routing information included in the routing information requires the terminal's power consumption state when running the NFC application. The value of this information is different from the current power consumption state of the terminal.
  • the terminal's NFCC can follow the first route The configuration order of each routing information in the table or according to the priority order of the SE included in the terminal, traverse the routing information in the first routing table to determine whether the first routing table has the same transaction command as the received transaction command Routing information. If it exists, and the requirement of the terminal's power consumption state when running the NFC application included in the route information is the same as the current power consumption state of the terminal, the SE identifier included in the route information is identified by The SE is the target SE.
  • routing information in the first routing table that has the same transaction instruction as the received transaction instruction or if there is routing information in the first routing table that has the same transaction instruction as the received transaction instruction, but the routing information includes
  • the NFC application is running, the value of the power consumption status of the terminal is different from the current power consumption status of the terminal, and the NFCC of the terminal may use the SE with the highest priority as the target SE.
  • the information “access transaction instructions for accessing the NFC application” in the related information of the NFC application in Table 2 above may be replaced with “mask corresponding to transaction instructions for accessing the NFC application”.
  • the mask corresponding to the transaction instruction for accessing the NFC application may be a part of character bits included in the fixed character string corresponding to the transaction instruction.
  • the masks corresponding to the strings for accessing different NFC applications may be the same or different. Therefore, it is possible to determine in which SE of the terminal the NFC application accessed by the transaction instruction is carried by the mask corresponding to the received transaction instruction.
  • the terminal After the terminal determines in which SE of the terminal the NFC application accessed by the received transaction instruction is loaded, that is, determines the target SE, it can select from at least one NFC application carried by the target SE according to the second routing table of the target SE Determine the NFC application accessed by the transaction instruction, that is, determine the target NFC application.
  • the second routing table includes the correspondence between the relevant information of the NFC application and the handle of the NFC application.
  • the relevant information of the NFC application the AID of the NFC application, the transaction instruction to access the NFC application, the mask corresponding to the transaction instruction to access the NFC application, the protocol and rules followed by the transaction instruction to access the NFC application, and the transaction instruction to access the NFC application
  • the relevant description of the NFC physical technology used reference may be made to the specific description of the corresponding information in the first routing table shown in Table 2, which will not be repeated here.
  • the terminal may be automatically set according to the download order of the NFC application, or may be manually set by the user when downloading the NFC application.
  • the initial setting may be null.
  • the terminal can be dynamically adjusted according to the user's habit of using the NFC application and the current scene information. If the user frequently uses an NFC application at a certain time and a certain geographic location, the terminal may set the variable priority of the NFC application to the highest when the current time and the current geographic location are the same.
  • the handle of the NFC application can uniquely determine the NFC application in the SE.
  • the routing information corresponding to the NFC application in the second routing table shown in Table 3 can be issued according to the installation command of the terminal DH and the actual situation (fixed priority and variable priority are triggered according to the scenario Or user settings to configure) to configure.
  • the routing information corresponding to the actually configured NFC application may include: the AID of the NFC application, the transaction instruction to access the NFC application, the mask corresponding to the transaction instruction to access the NFC application, the fixed priority of the NFC application, At least one of the variable priority of the NFC application, the protocol and rules followed by the transaction instruction to access the NFC application, and the NFC physical technology used by the transaction instruction to access the NFC application.
  • the DH of the terminal may also send an installation command to the SE that hosts the NFC application.
  • the installation command may be issued by the server of China Merchants Bank to the DH of the terminal.
  • the installation command is used to instruct the SE to configure routing information corresponding to the NFC application in the second routing table.
  • the installation command may include information to be configured when configuring routing information in the second routing table, and specific values of the information to be configured.
  • the installation command also includes: the handle of the NFC application. According to the installation command, the SE bearing the NFC application can configure routing information corresponding to the NFC application in the second routing table.
  • the routing information may include the correspondence between the related information of the NFC application and the handle of the NFC application.
  • the terminal SE Since the identifiers of NFC applications carried in the same SE are different, the transaction instructions for accessing different NFC applications may be different, the corresponding masks of the transaction instructions may be different, and the variable priorities are different. Therefore, after the terminal SE receives the transaction instruction, it can According to the second routing table, it is determined which NFC application in the SE the NFC application accessed by the transaction instruction is. Therefore, the corresponding NFC application is automatically activated, and the transaction instruction is executed to complete the transaction.
  • the SE of the terminal may determine routing information from the second routing table according to the second routing table and the transaction instruction (for example, the second routing information in this application may be the routing information).
  • the routing information may be routing information that satisfies the matching condition in the second routing table (the second matching condition in this application may be the matching condition).
  • the matching condition may include at least one of the following: condition e: the AID in the routing information is the same as the AID carried in the transaction instruction, condition f: the transaction instruction in the routing information is the same as the received transaction instruction, and condition g: in the routing information
  • condition e the AID in the routing information is the same as the AID carried in the transaction instruction
  • condition f the transaction instruction in the routing information is the same as the received transaction instruction
  • condition g in the routing information
  • the mask of is the same as the corresponding mask of the received transaction instruction
  • condition h the variable priority included in the routing information is the first priority
  • the first priority is the variable priority in the routing information of the second routing table The highest priority.
  • the SE of the terminal may follow the preset order of the above four conditions (the second preset order in this application may be the preset order) to satisfy the first in the preset order in the second routing table
  • the conditional routing information is used as the determined routing information.
  • one or both of the information and the protocol and rules followed by accessing the NFC application's transaction instructions and the NFC physical technology used can be used as an auxiliary condition.
  • Application security when determining the target NFC application, one or both of the information and the protocol and rules followed by accessing the NFC application's transaction instructions and the NFC physical technology used can be used as an auxiliary condition.
  • the target NFC application is determined by using the protocol and rules followed by the transaction instructions to access the NFC application and the NFC physical technology used as auxiliary conditions.
  • the preset order is condition e, condition f, condition g, and condition h
  • the SE of the terminal determines the NFC application accessed by the transaction instruction from the at least one NFC application carried by the SE according to the second routing table of the SE, that is, determining the specific implementation of the target NFC application may include:
  • the SE of the terminal can determine whether the transaction instruction includes the AID. If the transaction instruction includes the AID, the SE may traverse the routing information in the second routing table to determine whether there is routing information in the second routing table with the same AID as the AID in the transaction instruction. If there is routing information in the second routing table with the same AID as the AID in the transaction instruction, the SE can determine the protocol and rules followed by the transaction instruction included in the routing information to access the NFC application and the NFC physical technology used Whether the value of this information is the same as the protocol and rules followed by the currently received transaction instruction and the NFC physical technology used.
  • the handle of the NFC application included in the routing information corresponds to The NFC application is the target NFC application.
  • the terminal SE can traverse to find the first Routing information in the second routing table to determine whether there is routing information in the second routing table with the same transaction instruction as the received transaction instruction. If there is the same routing information in the second routing table as the transaction instruction and the received transaction instruction, the SE can determine the protocol and rules followed by the transaction instruction to access the NFC application included in the routing information and the NFC physical technology used.
  • the handle of the NFC application included in the routing information corresponds to The NFC application is the target NFC application.
  • the terminal SE can traverse the routing information in the second routing table to determine the second routing table Whether there is routing information with the same mask as the mask corresponding to the received transaction instruction.
  • the SE can determine the protocol and rules followed by the transaction instruction for accessing the NFC application included in the routing information and the NFC used Whether the value of the two information of physical technology is the same as the protocol and rules followed by the currently received transaction instruction and the NFC physical technology used. If the protocol and rules included in the routing information and the NFC physical technology used are the same as the protocol and rules followed by the currently received transaction instruction and the NFC physical technology used, the handle of the NFC application included in the routing information corresponds to The NFC application is the target NFC application.
  • the SE of the terminal can change the second routing table to The NFC application corresponding to the handle of the NFC application included in the routing information with the highest priority is the target NFC application.
  • the SE of the terminal may use the default NFC application as the target NFC application.
  • the default NFC application may be set by the user or may be predefined.
  • the SE of the terminal may combine the information of the fixed priority in the second routing table to traverse the second routing table in order of priority from high to low. In some other embodiments, the SE of the terminal may also combine the variable priority information in the second routing table to search and traverse the second routing table in order of priority from high to low. In some other embodiments, the SE of the terminal may also combine the fixed priority and the variable priority in the second routing table to search through the second routing table. In this way, the matching efficiency can be improved, and the NFC application accessed by the received transaction instruction can be quickly determined.
  • the terminal can run the target NFC application in the target SE and execute the received transaction instruction to complete the transaction.
  • the terminal has three SEs, namely, SE1 in the form of a SIM card, SE2 packaged with an NFC chip, and inSE in the form of a terminal AP, such as SE3.
  • NFC applications are downloaded in the terminal, and these NFC applications can be carried in the three SEs of the terminal.
  • the terminal has downloaded the bank card application 701, car key application 702, social security health card application 703, and access control card application 704 of China Merchants Bank.
  • the bank card application 701 and the access control card application 704 of China Merchants Bank are carried in SE 1.
  • the car key application 702 is hosted in SE2.
  • the social security health card application 703 is hosted in SE3.
  • the terminal configures the routing information of each NFC application in the first routing table and the second routing table, respectively.
  • the second routing table in SE1 after configuring the corresponding routing information is shown in Table 5.
  • the second routing table in SE 2 after configuring the corresponding routing information is shown in Table 6.
  • the second routing table in SE 3 after configuring the corresponding routing information is shown in Table 7.
  • the first routing information is routing information corresponding to the bank card application 701 of China Merchants Bank.
  • the second piece of routing information is the routing information corresponding to the car key application 702.
  • the third routing information is the routing information corresponding to the social security health card application 703.
  • the fourth routing information is the routing information corresponding to the access control card application 704.
  • the first routing information is the routing information corresponding to the bank card application 701 of China Merchants Bank.
  • the second routing information is the routing information corresponding to the access control card application 704.
  • the first routing information is the routing information corresponding to the car key application 702.
  • the first piece of routing information is the routing information corresponding to the social security health card application 703.
  • routing information of the bank card application 701 of China Merchants Bank As an example, the process of routing configuration in the first routing table and the second routing table will be described.
  • the specific description of the routing information configuration process corresponding to the access control card application 704, the car key application 702, and the social security health card application 703 is similar to the specific description of the routing information configuration process corresponding to the bank card application 701 of China Merchants Bank.
  • the user wants the terminal to be able to model the bank card application 701 of China Merchants Bank.
  • the terminal can download the bank card application 701 of China Merchants Bank to the SE of the terminal.
  • the bank card application 701 is downloaded to SE 1.
  • the SE 1 can send a message indicating success to the DH of the terminal.
  • the DH of the terminal may send a routing configuration command to the NFCC of the terminal.
  • the routing configuration command includes: the information that needs to be configured when configuring routing information in the first routing table: the AID of China Merchants Bank ’s bank card application 701, the protocol and rules followed by the transaction instructions to access the bank card application 701, and running NFC Application requirements for the power consumption status of the terminal. And the specific values of these three pieces of information that need to be configured are: AID 1, protocol and rule 1 and bright screen.
  • the routing configuration command also includes the SE identifier of the SE carrying the bank card application 701 of the China Merchants Bank, such as SE 1.
  • the NFCC of the terminal can perform routing configuration according to the routing configuration command issued by the DH, that is, configure routing information corresponding to the bank card application 701 of China Merchants Bank in the first routing table.
  • the configured routing information is shown in the first routing information in the first routing table shown in Table 4.
  • the NFCC of the terminal can set other information that does not need to be configured to be null.
  • the DH of the terminal may also send an installation command to SE 1 of the terminal.
  • the installation command is issued to the DH of the terminal by the server of China Merchants Bank.
  • the installation command includes: the information that needs to be configured when configuring routing information in the second routing table: the AID of the bank card application 701 of China Merchants Bank, the protocol and rules followed by the transaction instructions to access the bank card application 701, and access to the The bank card application 701 uses NFC physical technology for transaction instructions. And the specific values of these three pieces of information that need to be configured are: AID 1, protocol and rule 1 and NFC physical technology 1.
  • the installation command also includes the handle of the bank card application 701, such as handle 1.
  • the SE1 of the terminal can perform routing configuration according to the installation command issued by the DH, that is, configure routing information corresponding to the bank card application 701 of China Merchants Bank in the second routing table in the SE1.
  • the configured routing information is shown in the first routing information in Table 5.
  • the fixed priority of the bank card application 701 is set according to the download order, such as set to 1 (the larger the value, the lower the fixed priority).
  • the variable priority is null, and other information that does not need to be configured is also set to null.
  • routing information corresponding to the bank card application 701 of China Merchants Bank is configured, and the routing information can be used later to determine whether the transaction instruction is to access the NFC application.
  • the NFCC of the terminal can receive the transaction instruction sent by the POS machine, and the transaction instruction carries AID 1.
  • the NFCC of the terminal can determine whether the received transaction instruction contains AID.
  • the NFCC of the terminal may traverse the routing information in the first routing table shown in the lookup table 4 according to the SE priority order to determine whether the first routing table shown in the table 4 There is the same routing information as AID and AID. It can be seen from Table 4 that the AID of the first piece of routing information in the first routing table shown in Table 4 is the same as the AID 1.
  • the NFCC of the terminal can obtain the current power consumption state of the terminal.
  • the obtained current power consumption state is a bright screen, which is related to the information about the power consumption state of the terminal when running the NFC application included in the routing information.
  • the value of "Bright Screen" is the same.
  • the NFCC of the terminal can determine that SE1 is the target SE based on the first routing information. After determining that SE1 is the target SE, the NFCC of the terminal can send the transaction instruction to the SE1.
  • the SE 1 After the SE 1 receives the transaction instruction, it can determine which NFC application in the SE 1 is the NFC application accessed by the transaction instruction according to the transaction instruction. For example, after receiving the transaction order, SE1 can determine whether the transaction order contains AID. When it is determined that the transaction instruction includes AID, the SE1 can traverse the routing information in the second routing table shown in the lookup table 5 in a fixed priority order to determine whether AID and AID exist in the second routing table The same routing information. It can be seen from Table 5 that the AID of the first piece of routing information in the first routing table shown in Table 5 is the same as the AID 1. The SE 1 can determine whether the protocol and rules followed by the received transaction instruction and the NFC physical technology used are the protocol and rules 1 and NFC physical technology 1.
  • the SE 1 may determine that the NFC application corresponding to the handle 1 in the routing information is the target NFC application, that is, the bank card application 701 of China Merchants Bank carried in the SE 1 is the NFC application accessed by the transaction instruction. SE1 can run the bank card application 701 and execute transaction instructions to complete the deduction.
  • the NFCC of the terminal can receive the transaction instruction sent by the card reader on the vehicle door, and the transaction instruction does not carry the AID.
  • the NFCC of the terminal can determine whether the received transaction instruction contains AID.
  • the NFCC of the terminal may traverse the routing information in the first routing table shown in the lookup table 4 according to the SE priority order to determine the first routing table shown in the table 4 Whether there is routing information with the same protocol and rules as the protocol and rules followed by the received transaction instruction.
  • the NFCC of the terminal searches for the first routing information to determine the protocol and rules contained in it according to the SE priority order The value is different from the protocol and rule 2, and then look for the fourth routing information to determine the protocols and rules contained in it. The value of the information is also different from the protocol and rule 2, and then find the second routing information to determine the contained The value of this protocol and rule is the same as that of protocol and rule 2.
  • the NFCC of the terminal can obtain the current power consumption state of the terminal. For example, the obtained current power consumption state is powered, which is related to the information about the power consumption state of the terminal when running the NFC application included in the routing information. The value of "live" is the same. Then the NFCC of the terminal can determine that SE 2 is the target SE based on the second routing information. After determining that SE2 is the target SE, the terminal's NFCC can send a transaction instruction to the SE2.
  • the SE 2 After the SE 2 receives the transaction instruction, it can determine which NFC application in the SE 2 is the NFC application accessed by the transaction instruction according to the transaction instruction. For example, after receiving the transaction order, SE 2 can determine whether the transaction order contains AID. When it is determined that the transaction instruction does not include the AID, the SE 2 may traverse the routing information in the second routing table shown in the lookup table 6 to determine whether the transaction instruction in the second routing table is the same as the received transaction instruction Routing information. If no routing information of the same transaction instruction as the received transaction instruction is found, then it is searched according to Table 6 whether there is routing information with the same mask as the corresponding mask of the received transaction instruction. For example, the mask corresponding to the received transaction instruction is mask 2.
  • SE 2 can determine whether the protocol and rules followed by the received transaction instruction and the NFC physical technology used are the protocol and rules 2 and NFC physical technology 2. If yes, the SE 2 may determine that the NFC application corresponding to the handle 2 in the routing information is the target NFC application, that is, the car key application 702 carried in the SE 2 is the NFC application accessed by the transaction instruction. SE2 can run the car key application 702 and execute transaction instructions in order to open the car door.
  • the NFCC of the terminal can receive the transaction instruction sent by the door lock, and the transaction instruction does not carry the AID.
  • the NFCC of the terminal can determine whether the received transaction instruction contains AID.
  • the NFCC of the terminal may traverse the routing information in the first routing table shown in the lookup table 4 according to the SE priority order to determine the first routing table shown in the table Whether there is routing information with the same protocol and rules as the protocol and rules followed by the received transaction instruction.
  • the protocol and rule followed by the received transaction instruction are protocol and rule 4, as can be seen from Table 4, there is no route in the first routing table that has the same protocol and rule as the protocol and rule 4 followed by the received transaction instruction information.
  • the NFCC of the terminal can traverse the routing information in the first routing table shown in Table 4 according to the priority order of SE to determine whether the NFC physical technology and the received transaction instruction exist in the first routing table shown in Table 4.
  • the routing information is the same as the NFC physical technology used.
  • the NFC physical technology used by the received transaction instruction is NFC physical technology 4, as can be seen from Table 4, the first routing table does not have the same route as the NFC physical technology 4 used by the received transaction instruction. information.
  • the NFCC of the terminal can traverse the routing information in the first routing table shown in Table 4 according to the priority order of SE to determine whether there is a transaction instruction in the first routing table shown in Table 4 that is the same as the received transaction instruction Routing information. If the transaction order received is transaction order 4. It can be seen from Table 4 that the transaction instruction of the fourth routing information in the first routing table shown in Table 4 is the same as the transaction instruction 4.
  • the NFCC of the terminal can obtain the current power consumption state of the terminal. For example, the obtained current power consumption state is off-screen, which is related to the information about the power consumption state of the terminal when running the NFC application included in the routing information. The value of "off screen" is the same. Then the NFCC of the terminal can determine that SE1 is the target SE based on the fourth routing information. After determining that SE1 is the target SE, the NFCC of the terminal can send the transaction instruction to the SE1.
  • the SE 1 After the SE 1 receives the transaction instruction, it can determine which NFC application in the SE 1 is the NFC application accessed by the transaction instruction according to the transaction instruction. For example, after receiving the transaction order, SE1 can determine whether the transaction order contains AID. When it is determined that the transaction instruction does not include the AID, the SE 1 may traverse the routing information in the second routing table shown in the lookup table 5 in a fixed priority order to determine whether the transaction instruction exists in the second routing table. The same routing information for transaction order 4. It can be seen from Table 5 that the transaction instruction of the second piece of routing information in the first routing table shown in Table 5 is the same as the transaction instruction 4. The SE 1 can determine whether the protocol and rules followed by the received transaction instruction and the NFC physical technology used are the protocol and rules 4 and NFC physical technology 4.
  • the SE 1 may determine that the NFC application corresponding to the handle 4 in the routing information is the target NFC application, that is, the access control card application 704 carried in the SE 1 is the NFC application accessed by the transaction instruction. SE1 can run the access control card application 704 and execute transaction instructions to open the room door.
  • the terminal can recognize the corresponding NFC application and automatically activate it to complete transaction. No manual switching by the user is required, which improves the interaction efficiency between the terminal and the user and improves the terminal's intelligence. Greatly improve the user experience.
  • a prompt message may be displayed on the display screen of the terminal, prompting the user to activate the target NFC application, Seal the deal.
  • the terminal determines that the target NFC application is the bank card application 701 of China Merchants Bank as an example.
  • a prompt window may be displayed, and the prompt window includes prompt information 801, which may prompt the user to activate the bank card application 701 of China Merchants Bank to complete the payment.
  • the terminal may also display a cancel button 802 in the prompt window.
  • the user can perform a click operation on the cancel button 802.
  • the terminal may not perform the operation of activating the bank card application 701 of China Merchants Bank.
  • the terminal can also display a countdown countdown 803 in the prompt window to prompt the user that at the end of the countdown countdown (such as after 3 seconds), the bank card application 701 of China Merchants Bank will be activated, and the prompt window will be automatically closed.
  • the terminal may store the SE and the SE Correspondence of NFC applications carried in.
  • the terminal stores the correspondence between the SE identifier and the NFC application carried in the SE.
  • the SE marked as SE1 carries NFC application 1, NFC application 3, and NFC application 6.
  • the SE marked as SE 2 carries NFC application 4 and NFC application 5.
  • the SE marked as SE3 carries NFC application 2 and NFC application 7.
  • the transaction instruction can be received, and the transaction instruction can carry the SE identifier of the SE where the NFC application to be accessed by the transaction instruction is carried.
  • the terminal can determine the SE carried by the NFC accessed by the transaction instruction, that is, the target SE, according to the SE identifier carried in the transaction instruction and Table 8. If the target SE is not activated, the terminal can activate the target SE. Then, the NFC application to be accessed by the transaction instruction, that is, the target NFC application, can be determined from the target SE and automatically activated.
  • the target NFC application from the target SE reference may be made to the specific description of the corresponding content in other embodiments of the present application, and details are not repeated here.
  • the NFC chip system may include an NFC chip 901 and at least two SEs 902 (as shown in FIG. 9 by including three SEs as an example).
  • the target SE of the NFC chip 901 and the at least two SEs 902 may be used to execute the automatic activation method of the NFC application provided in any of the foregoing embodiments.
  • the target SE may be any one of the at least two SEs mentioned above.
  • the disclosed system, device, and method may be implemented in other ways.
  • the device embodiments described above are only schematic.
  • the division of the modules or units is only a division of logical functions.
  • the combination can either be integrated into another system, or some features can be ignored, or not implemented.
  • the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical, or other forms.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments of the present application.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
  • the above integrated unit may be implemented in the form of hardware or software functional unit.
  • the integrated unit may be stored in a computer-readable storage medium.
  • the technical solutions of the embodiments of the present application may essentially be part of or contribute to the existing technology, or all or part of the technical solutions may be embodied in the form of software products, and the computer software products are stored in a storage
  • the medium includes several instructions to enable a computer device (which may be a personal computer, server, or network device, etc.) or processor to perform all or part of the steps in the methods described in the various embodiments.
  • the foregoing storage media include: flash memory, mobile hard disk, read-only memory, random access memory, magnetic disk or optical disk and other media that can store program codes.

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • General Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Toxicology (AREA)
  • Software Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • Artificial Intelligence (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Microelectronics & Electronic Packaging (AREA)
  • Electromagnetism (AREA)
  • Signal Processing (AREA)
  • General Engineering & Computer Science (AREA)
  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

本申请公开了一种NFC应用的自动激活方法及终端,涉及终端领域,在终端有多个SE时,实现了交易指令所访问的NFC应用的自动激活。终端可以包括NFC控制器和至少两个SE,至少两个SE中的每个SE中承载了至少一个NFC应用;具体方案为:NFC控制器接收交易指令,根据交易指令从至少两个SE中确定目标SE,向目标SE发送交易指令;目标SE接收交易指令,根据交易指令从目标SE承载的NFC应用中确定目标NFC应用;目标SE运行目标NFC应用,执行交易指令。

Description

一种NFC应用的自动激活方法及终端
本申请要求于2018年12月19日提交中国国家知识产权局、申请号为201811561669.2、申请名称为“一种NFC应用的自动激活方法及终端”以及于2018年11月1日提交中国专利局、申请号为201811294647.4、申请名称为“一种NFC应用的激活方法及终端”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及终端领域,尤其涉及一种近距离无线通信(Near Field Communication,NFC)应用的自动激活方法及终端。
背景技术
NFC是一种基于13.56兆赫兹(MHz)载波频率的近距离无线通信技术,允许设备之间进行非接触式点对点数据传输。由于NFC具有较高的安全性,因此,近年来越来越被大众欢迎和接受。其中具备NFC功能的终端的发展尤为迅速。具备NFC功能终端可以工作于三种模式:读卡器模式,卡模拟模式,点对点模式。使用最多的是卡模拟模式,即终端可以模拟为一张非接触集成电路(Integrated Circuit,IC)卡,用户手持终端便可与读卡器进行交互,以完成刷银行卡、刷公交卡或刷门禁卡等操作,给生活带来很多便利。
终端在模拟为非接触IC卡与读卡器进行交互之前,需下载对应的NFC应用到安全单元(Security Element,SE)中。SE可以为NFC应用的运行提供安全的执行环境,为其敏感数据提供安全的存储环境。一个SE中可同时承载多个NFC应用。在SE中承载的NFC应用被激活时,终端便可模拟为对应的非接触IC卡与读卡器进行交互。其中,NFC应用可由用户手动激活。NFC应用也可由终端自动激活。具体的,终端可在接收到读卡器发送的交易指令后,可以根据交易指令中携带的应用标识符(Application Identifier,AID)来判别该交易指令访问的是SE中承载的哪个NFC应用,并自动将交易指令访问的NFC应用激活。
但是,由于目前NFC应用没有形成统一的规范,移动运营商、电子设备制造商、应用生产商等多方均在主导定制SE,因此,一个终端可能有多个SE。通常,SE只有处于激活状态下时,终端才可以根据交易指令携带的AID自动激活该交易指令所要访问的NFC应用。而目前终端同时仅有一个SE处于激活状态。这样,在交易指令访问的是处于未激活状态的SE中承载的NFC应用时,终端是无法自动激活对应NFC应用的。这种情况下,用户只能手动选择激活对应的NFC应用,方可与读卡器完成交互。因此,在终端有多个SE时,如何自动激活交易指令所访问的NFC应用,已成为本领域技术人员研究的重点课题。
发明内容
本申请实施例提供一种NFC应用的自动激活方法及终端,在终端有多个SE时, 实现了交易指令所访问的NFC应用的自动激活。
本申请采用如下技术方案:
本申请的第一方面,提供一种终端,该终端可以包括NFC控制器和至少两个安全单元SE,至少两个SE中的每个SE中承载了至少一个NFC应用;NFC控制器接收交易指令,根据交易指令从至少两个SE中确定目标SE,向目标SE发送接收到的该交易指令;目标SE接收交易指令,根据接收到的交易指令从目标SE承载的NFC应用中确定目标NFC应用;目标SE运行目标NFC应用,执行交易指令。
采用该技术方案,终端在接收到交易指令后,能够根据交易指令自动识别出对应的NFC应用并自动激活,以完成交易。无需用户手动切换,提高了终端与用户的交互效率,提高了终端的智能性。极大的提高了用户的使用体验。
在一种可能的实现方式中,上述根据交易指令从至少两个SE中确定目标SE,具体的可以包括:NFC控制器根据第一路由表和交易指令,从第一路由表中确定第一路由信息,该第一路由信息是第一路由表中满足第一匹配条件的路由信息,第一路由信息包括SE标识;NFC控制器将至少两个SE中SE标识所标识的SE确定为目标SE;其中,第一匹配条件可以包括以下至少一种:条件a:路由信息中的AID与交易指令中携带的应用标识符AID相同,条件b:路由信息中的协议和规则与交易指令遵循的协议和规则相同,条件c:路由信息中的NFC物理技术与交易指令使用的NFC物理技术相同,条件d:路由信息中的交易指令与接收到的交易指令相同。
在另一种可能的实现方式中,上述NFC控制器根据第一路由表和交易指令,从第一路由表中确定第一路由信息,具体的可以包括:NFC控制器根据第一路由表和交易指令,按照条件a,条件b,条件c以及条件d的第一预设顺序依次判断第一路由表中的路由信息,将第一路由表中满足第一预设顺序中首个条件的路由信息确定为第一路由信息。
在另一种可能的实现方式中,上述第一预设顺序可以为:条件a,条件b,条件c,条件d。当然,该第一预设顺序也可以是其他顺序,如条件a,条件c,条件d,条件b等。
在另一种可能的实现方式中,SE,如目标SE中可以承载了至少两个NFC应用,上述根据交易指令从目标SE承载的NFC应用中确定目标NFC应用,具体的可以包括:目标SE根据第二路由表和交易指令,从第二路由表中确定第二路由信息,该第二路由信息可以是第二路由表中满足第二匹配条件的路由信息,第二路由信息包括句柄;目标SE将至少两个NFC应用中句柄对应的NFC应用确定为目标NFC应用;其中,第二匹配条件可以包括以下至少一种:条件e:路由信息中的AID与交易指令中携带的AID相同,条件f:路由信息中的交易指令与接收到的交易指令相同,条件g:路由信息中的掩码与接收到的交易指令对应的掩码相同,条件h:路由信息中包括的可变优先级为第一优先级,第一优先级为第二路由表的路由信息中可变优先级最高的优先级。
在另一种可能的实现方式中,上述目标SE根据第二路由表和交易指令,从第二路由表中确定第二路由信息,具体的可以包括:目标SE根据第二路由表和交易指令,按照条件e,条件f,条件g以及条件h的第二预设顺序依次判断第二路由表中的路由 信息,将第二路由表中满足第二预设顺序中首个条件的路由信息确定为第二路由信息。
在另一种可能的实现方式中,上述第二预设顺序可以为条件e,条件f,条件g,条件h。当然,该第二预设顺序也可以是其他顺序,如条件e,条件g,条件f,条件h等。
在另一种可能的实现方式中,在下载目标NFC应用时,NFC控制器可以在第一路由表中配置第一路由信息,该第一路由信息还可以包括以下至少一种:目标NFC应用的AID,访问目标NFC应用的交易指令遵循的协议和规则,访问目标NFC应用的交易指令使用的NFC物理技术,访问目标NFC应用的交易指令。该第一路由信息还可以包括访问该目标NFC应用时对终端的功耗要求。
在另一种可能的实现方式中,在下载目标NFC应用时,目标SE可以在第二路由表中配置第二路由信息,该第二路由信息还可以包括以下至少一种:目标NFC应用的AID,访问目标NFC应用的交易指令,访问目标NFC应用的交易指令对应的掩码,目标NFC应用的可变优先级。该第二路由信息还可以包括:访问目标NFC应用的交易指令遵循的协议和规则,访问目标NFC应用的交易指令使用的NFC物理技术。
在另一种可能的实现方式中,第一路由信息在满足第一匹配条件的同时,第一路由信息中的功耗状态与终端当前的功耗状态相同。这样,通过将终端当前的功耗状态与运行NFC应用时的功耗状态进行匹配,可以提高自动激活NFC应用的安全性。
在另一种可能的实现方式中,第二路由信息满足第二匹配条件的同时,第二路由信息中的协议和规则与接收到的交易指令所遵循的协议和规则相同,第二路由信息中的NFC物理技术与接收到的交易指令使用的NFC物理技术相同。这样,在确定目标NFC应用时,访问NFC应用的交易指令遵循的协议和规则以及使用的NFC物理技术这两信息中的一个或两个,可以作为辅助条件来使用,这样,可以提高自动激活NFC应用的安全性。
本申请的第二方面,提供一种NFC应用的自动激活方法,该方法可以应用于终端,该终端可以包括至少两个SE,该至少两个SE中的每个SE中承载了至少一个NFC应用;该方法可以包括:终端接收交易指令,根据接收到的交易指令从至少两个SE中确定目标SE;终端根据交易指令从目标SE承载的NFC应用中确定目标NFC应用;终端通过目标SE运行目标NFC应用,执行交易指令。
在一种可能的实现方式中,上述终端根据交易指令从至少两个SE中确定目标SE,具体的可以包括:终端根据第一路由表和交易指令,从第一路由表中确定第一路由信息,该第一路由信息可以是第一路由表中满足第一匹配条件的路由信息,第一路由信息包括SE标识;终端将至少两个SE中SE标识所标识的SE确定为目标SE;其中,第一匹配条件可以包括以下至少一种:条件a:路由信息中的AID与交易指令中携带的应用标识符AID相同,条件b:路由信息中的协议和规则与交易指令遵循的协议和规则相同,条件c:路由信息中的NFC物理技术与交易指令使用的NFC物理技术相同,条件d:路由信息中的交易指令与接收到的交易指令相同。
在另一种可能的实现方式中,上述终端根据第一路由表和交易指令,从第一路由表中确定第一路由信息,具体的可以包括:终端根据第一路由表和交易指令,按照条件a,条件b,条件c以及条件d的第一预设顺序依次判断第一路由表中的路由信息, 将第一路由表中满足第一预设顺序中首个条件的路由信息确定为第一路由信息。
在另一种可能的实现方式中,上述第一预设顺序可以为:条件a,条件b,条件c,条件d。
在另一种可能的实现方式中,SE中承载了至少两个NFC应用,上述终端根据交易指令从目标SE承载的NFC应用中确定目标NFC应用,具体的可以包括:终端根据第二路由表和交易指令,从第二路由表中确定第二路由信息,该第二路由信息可以是第二路由表中满足第二匹配条件的路由信息,第二路由信息包括句柄;终端将至少两个NFC应用中句柄对应的NFC应用确定为目标NFC应用;其中,第二匹配条件可以包括以下至少一种:条件e:路由信息中的AID与交易指令中携带的AID相同,条件f:路由信息中的交易指令与接收到的交易指令相同,条件g:路由信息中的掩码与接收到的交易指令对应的掩码相同,条件h:路由信息中包括的可变优先级为第一优先级,第一优先级为第二路由表的路由信息中可变优先级最高的优先级。
在另一种可能的实现方式中,上述终端根据第二路由表和交易指令,从第二路由表中确定第二路由信息,具体的可以包括:终端根据第二路由表和交易指令,按照条件e,条件f,条件g以及条件h的第二预设顺序依次判断第二路由表中的路由信息,将第二路由表中满足第二预设顺序中首个条件的路由信息确定为第二路由信息。
在另一种可能的实现方式中,上述第二预设顺序可以为条件e,条件f,条件g,条件h。
在另一种可能的实现方式中,该方法还可以包括:在下载目标NFC应用时,终端在第一路由表中配置第一路由信息,该第一路由信息还可以包括以下至少一种:目标NFC应用的AID,访问目标NFC应用的交易指令遵循的协议和规则,访问目标NFC应用的交易指令使用的NFC物理技术,访问目标NFC应用的交易指令。
在另一种可能的实现方式中,该方法还可以包括:在下载目标NFC应用时,终端在第二路由表中配置第二路由信息,该第二路由信息还包括以下至少一种:目标NFC应用的AID,访问目标NFC应用的交易指令,访问目标NFC应用的交易指令对应的掩码,目标NFC应用的可变优先级。
在另一种可能的实现方式中,第一路由信息在满足第一匹配条件的同时,第一路由信息中的功耗状态与终端当前的功耗状态相同。
在另一种可能的实现方式中,第二路由信息满足第二匹配条件的同时,第二路由信息中的协议和规则与接收到的交易指令所遵循的协议和规则相同,第二路由信息中的NFC物理技术与接收到的交易指令使用的NFC物理技术相同。
需要说明的是,第二方面以及第二方面的可能的实现方式中所提供的方法,与第一方面或第一方面的可能的实现方式中所提供的终端一一对应,因此,其所能达到的有益效果可参考上文所提供的对应的终端中的有益效果,此处不再赘述。
本申请的第三方面,提供一种NFC应用的自动激活方法,该方法可以应用于终端,该终端可以包括至少两个SE,至少两个SE中的第一SE默认处于激活状态,第一SE为至少两个SE中的任意一个,第一SE中承载有终端中支持应用标识符AID识别的NFC应用;该方法可以包括:终端接收第一交易指令,该第一交易指令中可以包括AID;终端通过第一SE,运行第一交易指令中的AID所标识的NFC应用,执行第一 交易指令。
采用该技术方案,通过将终端中支持AID识别的NFC应用均承载在终端的默认处于激活状态的SE中。这样,终端在接收到交易指令后,能够根据交易指令中的AID自动识别出对应的NFC应用并自动激活,以完成交易。无需用户手动切换,提高了终端与用户的交互效率,提高了终端的智能性。极大的提高了用户的使用体验。
在一种可能的实现方式中,终端中支持AID识别的NFC应用包括第一NFC应用,该方法还可以包括:在下载第一NFC应用时,终端确定第一NFC应用支持AID识别;终端将第一NFC应用下载到第一SE中。
在另一种可能的实现方式中,上述终端确定第一NFC应用支持AID识别,具体的可以包括:终端确定第一NFC应用的AID包含在白名单中,该白名单中包括支持AID识别的NFC应用的AID。
在另一种可能的实现方式中,至少两个SE中还包括第二SE,终端中支持AID识别的NFC应用包括第二NFC应用,该方法还可以包括:在第二NFC应用承载在第二SE中时,终端确定第二NFC应用支持AID识别;终端将第二NFC应用从第二SE中移动到第一SE中。
在另一种可能的实现方式中,第一SE中还承载有终端中使用频率大于阈值的NFC应用;该方法还可以包括:终端接收第二交易指令;终端获取接收到第二交易指令时的时间和/或地理位置;终端根据接收到第二交易指令时的时间和/或地理位置,确定第二交易指令所要访问的NFC应用;终端通过第一SE,运行第二交易指令所要访问的NFC应用,执行第二交易指令。这样,通过将使用频率较大的NFC应用承载在终端的默认处于激活状态的SE中,且结合接收到交易指令时的时间和/或地理位置,自动激活对应的NFC应用,以完成交易。无需用户手动切换,进一步的提高了终端与用户的交互效率,提高了终端的智能性。极大的提高了用户的使用体验。
本申请的第四方面,提供一种NFC应用的自动激活方法,该方法可以应用于终端,该终端中承载了至少两个NFC应用;该方法可以包括:终端接收服务器发送的推送消息,该推送消息可以用于指示终端激活至少两个NFC应用中的第一NFC应用;响应于推送消息,终端自动激活第一NFC应用。
如果大多数用户在某时间、地点均使用了某NFC应用。这些用户的终端可以将用于指示在该时间、地点使用了该NFC应用的信息上报至服务器。在用户在该时间到达该地点后,用户的终端可以接收到服务器发送的推送消息,该推送消息用于指示终端向用户推荐使用对应的NFC应用。这样,终端可以根据该推送消息,自动激活对应的NFC应用。无需用户手动切换,提高了终端与用户的交互效率,提高了终端的智能性。极大的提高了用户的使用体验。
本申请的第五方面,提供一种NFC芯片***,该NFC芯片***可以包括NFC芯片和至少两个SE;NFC芯片和至少两个SE中的目标SE用于执行如第二方面或第三方面的可能的实现方式,或者第三方面或第三方面的可能的实现方式,或者第四方面中任一项所述的NFC应用的自动激活方法。可以理解地,该NFC芯片***用于执行上文所提供的对应的方法,因此,其所能达到的有益效果可参考上文所提供的对应的方法中的有益效果,此处不再赘述。
附图说明
图1为一些实施例提供的一种SE在终端中的部署示意图;
图2为本申请实施例提供的一种终端的结构示意图;
图3为本申请实施例提供的一种NFC应用在终端的SE中的分布示意图;
图4为本申请实施例提供的一种终端的显示界面的示意图;
图5为本申请实施例提供的一种NFC应用的自动激活方法的场景示意图;
图6为本申请实施例提供的另一种NFC应用的自动激活方法的场景示意图;
图7为本申请实施例提供的另一种NFC应用在终端的SE中的分布示意图;
图8为本申请实施例提供的另一种终端的显示界面的示意图;
图9为本申请实施例提供的一种NFC芯片***的组成示意图。
具体实施方式
以下,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征。在本申请实施例的描述中,除非另有说明,“多个”的含义是两个或两个以上。
为了便于理解,示例的给出了部分与本申请实施例相关概念的说明以供参考。如下所示:
NFC应用:是用于实现近距离通信的应用程序,其具备用于模拟非接触IC卡的仿真功能。根据应用场景的不同,NFC应用可以分为不同的类型。如,公交类应用、门禁类应用、银行卡类应用等。其中,NFC应用具有AID,但并不是所有的NFC应用都会使用AID。使用AID的NFC应用支持AID识别,即终端能够根据交易指令中携带的AID识别出交易指令所访问的NFC应用。
终端实现卡模拟需要包括三个功能实体,分别为:设备主机(device host,DH),NFC控制器(NFC controller,NFCC)和SE。其中:
DH:可以负责NFCC的管理,如初始化、配置和电源管理等。
NFCC:可以负责通过天线进行数据的物理传输。其中,DH可以包含在终端的主芯片中,NFCC可以包含在终端的NFC芯片中。
SE:可以负责为NFC应用提供安全执行环境(如认证、授权等)以及敏感数据存储的环境。SE是一个安全单元芯片。SE中可同时承载多个NFC应用。
终端可以有一个或多个SE。如果终端有多个SE,则这些SE可以以不同的形式存在。例如,如图1所示,终端有三个SE。这三个SE分别可以为:以用户标识模块(subscriber identification module,SIM)卡形式存在的SE 1,与NFC芯片一起封装的SE 2,以及以终端的主芯片(如图1中所示的应用处理器(application processor,AP))形式存在的inSE。对于inSE而言,SE的硬件,如图1所示的SE 3部署在位于云端的服务器中。
当然,上述SE只是作为示例,在本实施例中,SE还可以以其他形式存在于终端。如,以SD卡形式存在的SE。又如,以通用集成电路卡(Universal Integrated Circuit Card,UICC)形式存在的SE等等,本实施例对此不作限制。
一般的,SE只有处于激活状态下时,终端才可以自动激活接收到的交易指令所访 问的NFC应用。但是,由于终端同时仅有一个SE处于激活状态。这样,在终端有多个SE的情况下,如果交易指令所访问的是处于未激活状态的SE中承载的NFC应用,则终端是无法自动激活对应NFC应用的。例如,结合上述图1,以当前处于激活状态的是以SIM卡形式存在的SE 1为例。在终端靠近读卡器(或POS机具)时,终端可以接收到读卡器(或POS机具)发送的交易指令。如果该交易指令所访问的NFC应用承载在SE 1中,则终端可以自动激活对应的NFC应用,以完成交易。如果该交易指令所访问的NFC应用没有承载在SE 1中,而是承载在SE 2或SE 3中,则终端是无法自动激活交易指令所访问的NFC应用的。此时,只能通过用户手动激活对应的NFC应用才能完成交易。
本实施例提供一种NFC应用的自动激活方法,该方法可以应用于有多个SE的终端,该终端具备NFC功能。本实施例提供的方法,在终端有多个SE时,能够自动激活的交易指令所要访问的NFC应用。
举例来说,本实施例中所述的终端,可以为手机、平板电脑、桌面型、膝上型、手持计算机、笔记本电脑、超级移动个人计算机(Ultra-mobile Personal Computer,UMPC)、上网本、蜂窝电话、以及个人数字助理(Personal Digital Assistant,PDA)、可穿戴式设备(如智能手表)、增强现实(augmented reality,AR)\虚拟现实(virtual reality,VR)设备等设备,本实施例对该设备的具体形式不做特殊限制。
请参考图2。图2示出了本实施例提供的终端200的结构示意图。
如图2所示,终端200可以包括处理器210,外部存储器接口220,内部存储器221,通用串行总线(universal serial bus,USB)接口230,充电管理模块240,电源管理模块241,电池242,天线1,天线2,移动通信模块250,无线通信模块260,音频模块270,扬声器270A,受话器270B,麦克风270C,耳机接口270D,传感器模块280,按键290,马达291,指示器292,摄像头293,显示屏294,以及SIM卡接口295等。其中传感器模块280可以包括压力传感器280A,陀螺仪传感器280B,气压传感器280C,磁传感器280D,加速度传感器280E,距离传感器280F,接近光传感器280G,指纹传感器280H,温度传感器280J,触摸传感器280K,环境光传感器280L,骨传导传感器280M等。
可以理解的是,本实施例示意的结构并不构成对终端200的具体限定。在另一些实施例中,终端200可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。
处理器210可以包括一个或多个处理单元,例如:处理器210可以包括AP,调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。
在一些实施例中,终端200可以包括以AP形式存在的SE,可以称为inSE。
其中,控制器可以是终端200的神经中枢和指挥中心。控制器可以根据指令操作 码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。
处理器210中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器210中的存储器为高速缓冲存储器。该存储器可以保存处理器210刚用过或循环使用的指令或数据。如果处理器210需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器210的等待时间,因而提高了***的效率。
在一些实施例中,处理器210可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。
I2C接口是一种双向同步串行总线,包括一根串行数据线(serial data line,SDA)和一根串行时钟线(derail clock line,SCL)。在一些实施例中,处理器210可以包含多组I2C总线。处理器210可以通过不同的I2C总线接口分别耦合触摸传感器280K,充电器,闪光灯,摄像头293等。例如:处理器210可以通过I2C接口耦合触摸传感器280K,使处理器210与触摸传感器280K通过I2C总线接口通信,实现终端200的触摸功能。
I2S接口可以用于音频通信。在一些实施例中,处理器210可以包含多组I2S总线。处理器210可以通过I2S总线与音频模块270耦合,实现处理器210与音频模块270之间的通信。在一些实施例中,音频模块270可以通过I2S接口向无线通信模块260传递音频信号,实现通过蓝牙耳机接听电话的功能。
PCM接口也可以用于音频通信,将模拟信号抽样,量化和编码。在一些实施例中,音频模块270与无线通信模块260可以通过PCM总线接口耦合。在一些实施例中,音频模块270也可以通过PCM接口向无线通信模块260传递音频信号,实现通过蓝牙耳机接听电话的功能。所述I2S接口和所述PCM接口都可以用于音频通信。
UART接口是一种通用串行数据总线,用于异步通信。该总线可以为双向通信总线。它将要传输的数据在串行通信与并行通信之间转换。在一些实施例中,UART接口通常被用于连接处理器210与无线通信模块260。例如:处理器210通过UART接口与无线通信模块260中的蓝牙模块通信,实现蓝牙功能。在一些实施例中,音频模块270可以通过UART接口向无线通信模块260传递音频信号,实现通过蓝牙耳机播放音乐的功能。
MIPI接口可以被用于连接处理器210与显示屏294,摄像头293等***器件。MIPI接口包括摄像头串行接口(camera serial interface,CSI),显示屏串行接口(display serial interface,DSI)等。在一些实施例中,处理器210和摄像头293通过CSI接口通信,实现终端200的拍摄功能。处理器210和显示屏294通过DSI接口通信,实现终端200的显示功能。
GPIO接口可以通过软件配置。GPIO接口可以被配置为控制信号,也可被配置为数据信号。在一些实施例中,GPIO接口可以用于连接处理器210与摄像头293,显示 屏294,无线通信模块260,音频模块270,传感器模块280等。GPIO接口还可以被配置为I2C接口,I2S接口,UART接口,MIPI接口等。
USB接口230是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口230可以用于连接充电器为终端200充电,也可以用于终端200与***设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。该接口还可以用于连接其他终端,例如AR设备等。
可以理解的是,本实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对终端200的结构限定。在另一些实施例中,终端200也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。
充电管理模块240用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块240可以通过USB接口230接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块240可以通过终端200的无线充电线圈接收无线充电输入。充电管理模块240为电池242充电的同时,还可以通过电源管理模块241为终端供电。
电源管理模块241用于连接电池242,充电管理模块240与处理器210。电源管理模块241接收电池242和/或充电管理模块240的输入,为处理器210,内部存储器221,外部存储器,显示屏294,摄像头293,和无线通信模块260等供电。电源管理模块241还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块241也可以设置于处理器210中。在另一些实施例中,电源管理模块241和充电管理模块240也可以设置于同一个器件中。
终端200的无线通信功能可以通过天线1,天线2,移动通信模块250,无线通信模块260,调制解调处理器以及基带处理器等实现。
天线1和天线2用于发射和接收电磁波信号。终端200中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。
移动通信模块250可以提供应用在终端200上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块250可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块250可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块250还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块250的至少部分功能模块可以被设置于处理器210中。在一些实施例中,移动通信模块250的至少部分功能模块可以与处理器210的至少部分模块被设置在同一个器件中。
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器270A,受话器270B等)输出声音信号,或通过显示屏294显示图像或视频。在一些实施例 中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器210,与移动通信模块250或其他功能模块设置在同一个器件中。
无线通信模块260可以提供应用在终端200上的包括NFC,无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星***(global navigation satellite system,GNSS),调频(frequency modulation,FM),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块260可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块260经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器210。无线通信模块260还可以从处理器210接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。在一些实施例中,无线通信模块260具体的可以是NFC芯片,该NFC芯片可以包括DH和NFCC。该NFC芯片能够对信号进行放大、模数转换及数模转换、存储等处理。
在一些实施例中,终端200的天线1和移动通信模块250耦合,天线2和无线通信模块260耦合,使得终端200可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯***(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(code division multiple access,CDMA),宽带码分多址(wideband code division multiple access,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA),长期演进(long term evolution,LTE),BT,GNSS,WLAN,NFC,FM,和/或IR技术等。所述GNSS可以包括全球卫星定位***(global positioning system,GPS),全球导航卫星***(global navigation satellite system,GLONASS),北斗卫星导航***(beidou navigation satellite system,BDS),准天顶卫星***(quasi-zenith satellite system,QZSS)和/或星基增强***(satellite based augmentation systems,SBAS)。
终端200通过GPU,显示屏294,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏294和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器210可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。
显示屏294用于显示图像,视频等。显示屏294包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,终端200可以包括1个或N个显示屏294,N为大于1的正整数。
终端200可以通过ISP,摄像头293,视频编解码器,GPU,显示屏294以及应用处理器等实现拍摄功能。
ISP用于处理摄像头293反馈的数据。例如,拍照时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将所述电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度,肤色进行 算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。在一些实施例中,ISP可以设置在摄像头293中。
摄像头293用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,终端200可以包括1个或N个摄像头293,N为大于1的正整数。
数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。例如,当终端200在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。
视频编解码器用于对数字视频压缩或解压缩。终端200可以支持一种或多种视频编解码器。这样,终端200可以播放或录制多种编码格式的视频,例如:动态图像专家组(moving picture experts group,MPEG)1,MPEG2,MPEG3,MPEG4等。
NPU为神经网络(neural-network,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现终端200的智能认知等应用,例如:图像识别,人脸识别,语音识别,文本理解等。
外部存储器接口220可以用于连接外部存储卡,例如Micro SD卡,实现扩展终端200的存储能力。外部存储卡通过外部存储器接口220与处理器210通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。在一些实施例中,该终端200可以包括以外部存储卡形式存在的SE。
内部存储器221可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器210通过运行存储在内部存储器221的指令,从而执行终端200的各种功能应用以及数据处理。内部存储器221可以包括存储程序区和存储数据区。其中,存储程序区可存储操作***,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储终端200使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器221可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。
终端200可以通过音频模块270,扬声器270A,受话器270B,麦克风270C,耳机接口270D,以及应用处理器等实现音频功能。例如音乐播放,录音等。
音频模块270用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块270还可以用于对音频信号编码和解码。在一些实施例中,音频模块270可以设置于处理器210中,或将音频模块270的部分功能模块设置于处理器210中。
扬声器270A,也称“喇叭”,用于将音频电信号转换为声音信号。终端200可以通过扬声器270A收听音乐,或收听免提通话。
受话器270B,也称“听筒”,用于将音频电信号转换成声音信号。当终端200接听电话或语音信息时,可以通过将受话器270B靠近人耳接听语音。
麦克风270C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风270C发声,将声音信号输入到麦克风270C。终端200可以设置至少一个麦克风270C。在另一些实施例中,终端200可以设置两个麦克风270C,除了采集声音信号,还可以实现降噪功能。在另一些实施例中,终端200还可以设置三个,四个或更多麦克风270C,实现采集声音信号,降噪,还可以识别声音来源,实现定向录音功能等。
耳机接口270D用于连接有线耳机。耳机接口270D可以是USB接口230,也可以是3.5mm的开放移动电子设备平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口。
压力传感器280A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器280A可以设置于显示屏294。压力传感器280A的种类很多,如电阻式压力传感器,电感式压力传感器,电容式压力传感器等。电容式压力传感器可以是包括至少两个具有导电材料的平行板。当有力作用于压力传感器280A,电极之间的电容改变。终端200根据电容的变化确定压力的强度。当有触摸操作作用于显示屏294,终端200根据压力传感器280A检测所述触摸操作强度。终端200也可以根据压力传感器280A的检测信号计算触摸的位置。在一些实施例中,作用于相同触摸位置,但不同触摸操作强度的触摸操作,可以对应不同的操作指令。例如:当有触摸操作强度小于第一压力阈值的触摸操作作用于短消息应用图标时,执行查看短消息的指令。当有触摸操作强度大于或等于第一压力阈值的触摸操作作用于短消息应用图标时,执行新建短消息的指令。
陀螺仪传感器280B可以用于确定终端200的运动姿态。在一些实施例中,可以通过陀螺仪传感器280B确定终端200围绕三个轴(即,x,y和z轴)的角速度。陀螺仪传感器280B可以用于拍摄防抖。示例性的,当按下快门,陀螺仪传感器280B检测终端200抖动的角度,根据角度计算出镜头模组需要补偿的距离,让镜头通过反向运动抵消终端200的抖动,实现防抖。陀螺仪传感器280B还可以用于导航,体感游戏场景。
气压传感器280C用于测量气压。在一些实施例中,终端200通过气压传感器280C测得的气压值计算海拔高度,辅助定位和导航。
磁传感器280D包括霍尔传感器。终端200可以利用磁传感器280D检测翻盖皮套的开合。在一些实施例中,当终端200是翻盖机时,终端200可以根据磁传感器280D检测翻盖的开合。进而根据检测到的皮套的开合状态或翻盖的开合状态,设置翻盖自动解锁等特性。
加速度传感器280E可检测终端200在各个方向上(一般为三轴)加速度的大小。当终端200静止时可检测出重力的大小及方向。还可以用于识别终端姿态,应用于横竖屏切换,计步器等应用。
距离传感器280F,用于测量距离。终端200可以通过红外或激光测量距离。在一 些实施例中,拍摄场景,终端200可以利用距离传感器280F测距以实现快速对焦。
接近光传感器280G可以包括例如发光二极管(LED)和光检测器,例如光电二极管。发光二极管可以是红外发光二极管。终端200通过发光二极管向外发射红外光。终端200使用光电二极管检测来自附近物体的红外反射光。当检测到充分的反射光时,可以确定终端200附近有物体。当检测到不充分的反射光时,终端200可以确定终端200附近没有物体。终端200可以利用接近光传感器280G检测用户手持终端200贴近耳朵通话,以便自动熄灭屏幕达到省电的目的。接近光传感器280G也可用于皮套模式,口袋模式自动解锁与锁屏。
环境光传感器280L用于感知环境光亮度。终端200可以根据感知的环境光亮度自适应调节显示屏294亮度。环境光传感器280L也可用于拍照时自动调节白平衡。环境光传感器280L还可以与接近光传感器280G配合,检测终端200是否在口袋里,以防误触。
指纹传感器280H用于采集指纹。终端200可以利用采集的指纹特性实现指纹解锁,访问应用锁,指纹拍照,指纹接听来电等。
温度传感器280J用于检测温度。在一些实施例中,终端200利用温度传感器280J检测的温度,执行温度处理策略。例如,当温度传感器280J上报的温度超过阈值,终端200执行降低位于温度传感器280J附近的处理器的性能,以便降低功耗实施热保护。在另一些实施例中,当温度低于另一阈值时,终端200对电池242加热,以避免低温导致终端200异常关机。在其他一些实施例中,当温度低于又一阈值时,终端200对电池242的输出电压执行升压,以避免低温导致的异常关机。
触摸传感器280K,也称“触控面板”。触摸传感器280K可以设置于显示屏294,由触摸传感器280K与显示屏294组成触摸屏,也称“触控屏”。触摸传感器280K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏294提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器280K也可以设置于终端200的表面,与显示屏294所处的位置不同。
骨传导传感器280M可以获取振动信号。在一些实施例中,骨传导传感器280M可以获取人体声部振动骨块的振动信号。骨传导传感器280M也可以接触人体脉搏,接收血压跳动信号。在一些实施例中,骨传导传感器280M也可以设置于耳机中,结合成骨传导耳机。音频模块270可以基于所述骨传导传感器280M获取的声部振动骨块的振动信号,解析出语音信号,实现语音功能。应用处理器可以基于所述骨传导传感器280M获取的血压跳动信号解析心率信息,实现心率检测功能。
按键290包括开机键,音量键等。按键290可以是机械按键。也可以是触摸式按键。终端200可以接收按键输入,产生与终端200的用户设置以及功能控制有关的键信号输入。
马达291可以产生振动提示。马达291可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照,音频播放等)的触摸操作,可以对应不同的振动反馈效果。作用于显示屏294不同区域的触摸操作,马达291也可对应不同的振动反馈效果。不同的应用场景(例如:时间提醒,接收信息,闹钟,游戏等) 也可以对应不同的振动反馈效果。触摸振动反馈效果还可以支持自定义。
指示器292可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。
SIM卡接口295用于连接SIM卡。SIM卡可以通过***SIM卡接口295,或从SIM卡接口295拔出,实现和终端200的接触和分离。终端200可以支持1个或N个SIM卡接口,N为大于1的正整数。SIM卡接口295可以支持Nano SIM卡,Micro SIM卡,SIM卡等。同一个SIM卡接口295可以同时***多张卡。所述多张卡的类型可以相同,也可以不同。SIM卡接口295也可以兼容不同类型的SIM卡。SIM卡接口295也可以兼容外部存储卡。终端200通过SIM卡和网络交互,实现通话以及数据通信等功能。在一些实施例中,终端200采用eSIM,即:嵌入式SIM卡。eSIM卡可以嵌在终端200中,不能和终端200分离。在一些实施例中,终端200可以包括以SIM卡形式存在的SE。
示例性的,以下实施例中所涉及的技术方案均可以在具有上述硬件架构的终端200中实现。以下对本实施例提供的NFC应用的自动激活方法进行详细介绍。为了便于理解,以下实施例中均以终端有三个SE(如参见图1所示)为例进行介绍。
在本申请一些实施例中,在终端有多个SE(如三个SE)的场景下,会存在一个SE默认处于激活状态。在本实施例中,可以将某些特定的NFC应用承载在该默认处于激活状态的SE中。以便能够在接收到交易指令后,终端可以自动激活交易指令所访问的NFC应用。其中,本申请中的第一SE可以是上述默认处于激活状态的SE。
在一些实施例中,上述特定的NFC应用可以是支持AID识别的NFC应用。也就会说,可以将支持AID识别的NFC应用均承载在终端的默认处于激活状态的SE中。
示例性的,结合图1,以以SIM卡形式存在的SE 1默认处于激活状态为例。在下载NFC应用(如,本申请中的第一NFC应用可以是该NFC应用)时,如果该NFC应用是支持AID识别的NFC应用,那么终端可以将该NFC应用下载到该SE 1中。
其中,在一种可能的实现方式中,终端中可以存储有支持AID识别的NFC应用的标识。例如,终端中存储有白名单。该白名单中包含所有支持AID识别的NFC应用的AID。在一些实施例中,在下载NFC应用时,终端可以判断下载的该NFC应用的AID是否包含在白名单中。如果下载的该NFC应用的AID包含在该白名单中,则终端将该NFC应用下载到默认处于激活状态的SE中。例如,终端中存储的白名单如表1所示。由表1可知,AID分别为AID 1、AID 2、AID 3以及AID 4的NFC应用均是支持AID识别的NFC应用。
表1
白名单
AID 1
AID 2
AID 3
AID 4
例如,当前下载的NFC应用为西安的公交卡应用,其AID为AID1。终端可以确定出该公交卡应用的AID包含在白名单中,其是支持AID识别的NFC应用。终端可 以将该公交卡应用下载到SE 1中。
又示例性的,在下载NFC应用时,也可以由用户手动选择想要下载到的SE。如果用户选择的下载到的SE不是默认处于激活状态的SE。其中,本申请中的第二SE可以是所述的不是默认处于激活状态的SE。终端可以在NFC应用(如,本申请中的第二NFC应用可以是该NFC应用)下载完成后,判断该NFC应用的AID是否包含在白名单中。如果该NFC应用的AID包含在白名单中,则可以将该NFC应用由当前的SE转移到默认处于激活状态的SE中。在一些实施例中,终端在将该NFC应用由当前的SE转移到默认处于激活状态的SE中后,终端还可以显示提示信息。该提示信息用于提示用户已将NFC应用转移到了默认处于激活状态的SE中,方便后续使用时能够自动激活。或者,如果用户选择的下载到的SE不是默认处于激活状态的SE,终端可以判断NFC应用的AID是否包含在白名单中。如果该NFC应用的AID包含在白名单中,则终端将该NFC应用下载到默认处于激活状态的SE,而不是用户选择的SE。在一些实施例中,终端也可以显示提示信息,提示用户NFC应用下载到了默认处于激活状态的SE,而不是用户选择的SE,方便后续使用时能够自动激活。
对于已经下载到终端的SE中的NFC应用(如,本申请中的第二NFC应用也可以是该NFC应用),如出厂时已经下载到终端的SE中的NFC应用。如果该NFC应用并未下载到默认处于激活状态的SE中,终端可以确定该NFC应用的AID是否包含在上述白名单中。如果确定该NFC应用的AID包含在白名单中,那么终端可以将该NFC应用由当前的SE中转移到默认处于激活状态的SE中。例如,结合上述示例和表1所示,终端出厂时下载了某银行的银行卡应用到终端的SE 2中,其AID为AID 2。终端确定出该银行卡应用的AID 2包含在终端存储的白名单中。终端可以将银行卡应用由SE 2转移到SE 1中。
之后,在终端靠近读卡器或POS机具时,终端可以接收交易指令(如,本申请中的第一交易指令可以是该交易指令)。该交易指令中可以包括AID。终端根据交易指令中包括的AID,便可以在默认处于激活状态的SE中查找到对应的NFC应用并自动激活该NFC应用。示例性的,在用户手持终端靠近读卡器(或POS机具)时,读卡器(或POS机具)可以发送携带AID的交易指令。终端的NFCC可以接收该交易指令。终端的NFCC可以将接收到的交易指令发送至默认处于激活状态的SE(如上述SE 1)。默认处于激活状态的SE接收到交易指令后,可以根据该交易指令中携带的AID,自动运行该AID所标识的NFC应用,并执行该交易指令。
例如,结合上述示例,在下载西安的公交卡应用时,终端将其下载到了默认处于激活状态的SE 1中。西安的公交卡应用的AID为AID 1。用户在手持终端靠近西安公交车上的POS机具时,该POS机具可以发送携带AID 1的交易指令,该交易指令用于指示扣除用户公交卡的金额1元钱。终端的NFCC收到该交易指令时,可以将该交易指令发送至SE 1。SE 1可以根据接收到的交易指令中携带的AID 1确定POS机具所访问的NFC应用为西安的公交卡应用。SE 1可以自动运行该西安的公交卡应用,并扣除1元钱。
又例如,结合上述示例,终端将出厂默认下载在SE 2的银行卡应用转移到了默认处于激活状态的SE 1中。该银行卡应用的AID为AID 2。用户在手持终端靠近POS 机具时,该POS机具可以发送携带AID 2的交易指令,该交易指令用于指示扣除用户银行卡的金额268元钱。终端的NFCC收到该交易指令时,可以将该交易指令发送至SE 1。SE 1可以根据接收到的交易指令中携带的AID 2,确定POS机具所访问的NFC应用为银行卡应用。SE 1可以自动运行该银行卡应用,并扣除268元钱。
在本实施例中,如果NFC应用不是支持AID识别的NFC应用,那么终端可以将该NFC应用下载到SE 1中,也可以将该NFC应用下载在终端的其他SE中,如SE 2或SE 3中。
在其他一些实施例中,上述特定的NFC应用可以是用户经常用到的NFC应用。也就是说,可以将用户经常用到的NFC应用均承载在终端的默认处于激活状态的SE中。其中,本申请中的第一SE可以是该默认处于激活状态的SE。
示例性的,终端可以获取终端中的NFC应用的使用频率。例如,终端可以统计用户在一段时间内手动激活NFC应用的次数来获取其使用频率。如果终端获取到某NFC应用的使用频率大于预定的阈值,但该NFC应用当前并未承载在默认处于激活状态的SE中,则终端可以将该NFC应用由当前的SE中转移到默认处于激活状态的SE中。
示例性的,终端还可以统计用户经常使用该NFC应用的时间和/或地理位置等信息,以便后续在接收到交易指令(如,本申请中的第二交易指令可以是该交易指令)时,可以根据这些信息确定用户当前使用终端的意图是否是使用该NFC应用。在确定用户使用终端的意图是使用该NFC应用时,可以自动将其激活。在一些实施例中,终端可以通过各种定位技术来获取地理位置。例如,终端可以通过终端中的GPS来获取用户所处的地理位置。
例如,结合图1,以以SIM卡形式存在的SE 1默认处于激活状态为例。如图3中的(a)所示,终端的与NFC芯片一起封装的SE 2中承载了某NFC应用,如车钥匙应用301。终端根据用户在一段时间内手动激活该车钥匙应用301的次数,获取到该车钥匙应用301的使用频率为频率1。终端判断该频率1是否大于预定的阈值。如果该频率1大于预定的阈值,终端可以将该车钥匙应用301由SE 2中转移到默认处于激活状态的SE 1中,如图3中的(b)所示。另外,终端还统计出了用户在7:30-7:50这个时间段内经常使用该车钥匙应用301。那么如果终端接收到了交易指令,可以在获取到当前***时间(或者说是,接收到交易指令的时间)处于7:30-7:50这个时间段内时,自动激活该车钥匙应用301。也就是说,可以在当前***时间处于7:30-7:50这个时间段内时,由默认处于激活状态的SE 1自动运行该车钥匙应用301。这样,在用户使用手机靠近车门时,无需用户手动激活车钥匙应用301,可打开车门。
又例如,结合图1,以以SIM卡形式存在的SE 1默认处于激活状态为例。如图3中的(a)所示,终端的以终端的AP形式存在的inSE中承载了某NFC应用,如门禁卡应用302。终端根据用户在一段时间内手动激活该门禁卡应用302的次数,获取到该门禁卡应用302的使用频率为频率2。终端判断该频率2是否大于预定的阈值。如果该频率2大于预定的阈值,终端可以将该门禁卡应用302由inSE中转移到默认处于激活状态的SE 1中,如图3中的(b)所示。另外,终端还统计出了用户在18:00-18:30这个时间段内,且某个地理位置范围内(如该地理位置范围是用户的家)经常使用该门禁卡应用302。那么如果终端接收到了交易指令,可以在获取到当前***时间(或 者说是,接收到交易指令的时间)处于18:00-18:30这个时间段内,且当前所处的地理位置(或者说是,接收到交易指令时的地理位置)位于上述地理位置范围内时,自动激活该门禁卡应用302。也就是说,可以在当前***时间处于18:00-18:30这个时间段内,且当前地理位置处于地理位置范围内时,由默认处于激活状态的SE 1自动运行该门禁卡应用302。这样,在用户使用手机靠近房间门时,无需用户手动激活门禁卡应用302,可打开房间门。
当然,对于承载在默认处于激活状态的SE中的NFC应用,终端也可以统计出用户经常使用该NFC应用的时间和/或地理位置等信息,以便后续可以根据这些信息确定用户当前使用终端的意图是否是使用该NFC应用。若是,则可以将该NFC应用的自动激活。
又示例性的,终端可以在下载NFC应用时,将NFC应用的相关信息和NFC应用的句柄对应存储在该默认处于激活状态的SE的路由表中。终端在接收到交易指令后,可以根据该路由表,从该默认处于激活状态的SE承载的NFC应用中确定出交易指令所访问的NFC应用,并自动将其激活,以便完成交易。需要说明的是,根据路由表来确定交易指令所访问的NFC应用的具体过程,可参考下述实施例中对应内容的具体描述,此处不再详细赘述。
在本申请其他一些实施例中,在终端有多个SE(如三个SE)的场景下,会存在一个SE默认处于激活状态,其他的SE处于未激活状态。在本实施例中,终端可以根据用户使用NFC应用的场景来实现对应NFC应用的自动激活。
示例性的,结合图1,以以SIM卡形式存在的SE 1默认处于激活状态,SE 2和SE 3处于未激活状态为例。终端的NFCC在接收到交易请求后,可以根据使用场景来确定交易请求所访问的NFC应用。如果交易请求所访问的NFC应用承载在SE 1中,则终端的NFCC可以将接收到的交易请求传输至该SE 1,以便该SE 1自动激活对应的NFC应用,进而完成交易。如果交易请求所访问的NFC应用不是承载在SE 1中,而是承载在处于未激活状态的SE,如SE 2中,那么终端可以将该SE 1去激活,并将SE 2激活。这样,终端的NFCC可以将接收到的交易请求传输至当前处于激活状态的SE 2。SE 2根据接收到的交易指令,可以自动激活对应的NFC应用,进而完成交易。
例如,结合图1,以以SIM卡形式存在的SE 1默认处于激活状态,SE 2和SE 3处于未激活状态为例。终端的SE 1中承载了深圳的公交卡应用,SE 2中承载了西安的公交卡应用。终端可以根据用户所处的地理位置来实现对应NFC应用的自动激活。当用户手持终端靠近公交车上的POS机具时,终端的NFCC可以接收POS机具发送的交易指令。终端在接收到交易指令后,可以获取用户当前所处的地理位置。如果获取到的地理位置表明用户当前处于深圳,则终端的NFCC可以将接收到的交易指令传输至SE 1。此时,SE 1自动激活深圳的公交卡应用,并执行该交易指令,如从该公交卡应用中扣除相应的金额。如果获取到的地理位置表明用户当前处于西安,则终端可以将SE 1去激活,将SE 2激活。终端的NFCC可以将接收到交易指令传输至SE 2。SE 2接收到交易指令后,可以自动激活西安的公交卡应用,并执行该交易指令,以便完成交易。
在本申请另外一些实施例中,在终端下载有多个NFC应用的场景下,终端可以根 据部署在互联网的服务器发送的推荐信息,来确定出需要自动激活的NFC应用,并将其自动激活。该服务器发送的推荐信息可以是根据其他用户的终端上报的信息确定的,该信息可以用于指示该终端在某场景下,使用了某NFC应用。一般的,大多数用户在某时间、地点均使用了某NFC应用。这些用户的终端可以将用于指示在该时间、地点使用了该NFC应用的信息上报至服务器。在用户在该时间到达该地点后,用户的终端可以接收到服务器发送的推送消息,该推送消息用于指示终端向用户推荐使用对应的NFC应用。终端可以根据该推送消息,自动激活对应的NFC应用。
例如,服务器根据大多数用户上报的信息确定出在某地方的星巴克,大家都使用了招商银行的银行卡应用。某用户的终端中下载了招商银行的银行卡应用。当用户来到该地方的星巴克时,终端可以接收到的服务器发送的推送消息,终端根据该推送消息,可以自动激活终端中的招商银行的银行卡应用。在一些实施例中,如图4所示,终端在接收到推送消息后,可以显示提示窗口,该提示窗口中包括提示信息401,该提示信息401用于提示用户将自动激活招商银行的银行卡应用。在一些实施例中,该提示窗口中还可以包括确定按钮402和取消按钮403。当用户想要使用该招商银行的银行卡应用时,可以对确定按钮402执行点击操作。响应于该点击操作,终端可以自动激活该应用。如果用户不想使用该招商银行的银行卡应用时,可以对取消按钮403执行点击操作。响应于该点击操作,终端则不激活该应用。在一些实施例中,当该招商银行的银行卡应用承载在处于未激活状态的SE中时,终端在接收到推送消息后,可以先将承载该银行卡应用的SE激活。
在本申请另外一些实施例中,在终端有多个SE(如三个SE)的场景下,用户在手持终端靠近读卡器(或POS机具)后,终端可以接收读卡器(或POS机具)发送的交易指令。终端根据接收到的交易指令,确定交易指令所访问的NFC应用承载在终端的多个SE中的哪个SE。如将承载交易指令所访问的NFC应用的SE称为目标SE。在确定出目标SE后,可以将接收到的交易指令传输至该目标SE。目标SE根据接收到的交易指令,可以从目标SE承载的NFC应用中确定交易指令所访问的NFC应用,如将交易指令所访问的NFC应用称为目标NFC应用。目标SE可以自动激活该目标NFC应用。也就是说,目标SE可以自动运行该目标NFC应用,并执行读卡器(或POS机具)的交易指令,以便完成交易。
在本实施例中,所述的交易指令可以是任何类型读卡器(如,手持移动读卡器,固定读卡器)或任何类型POS机具(如,手持移动POS机具,固定POS机具)所发出指令。其可以是各种类型或各种帧格式的指令。如,交易指令可以是应用协议数据单元(Application Protocol Data Unit,APDU)帧格式、单字节短帧格式、长帧格式等帧格式的指令。又如,交易指令可以是14443类型(TYPE)A,14443TYPE B,国际标准化组织(International Standard Organization,ISO)18092,ISO15693等类型的指令。
在一些实施例中,如果终端确定出的目标SE处于激活状态,则终端在确定出目标SE后,可以将接收到的交易指令传输至该目标SE。如果终端确定出的目标SE处于未激活状态,则终端在确定出目标SE后,可以将该目标SE激活,然后将接收到的交易指令传输至该目标SE。当然,如果目标SE处于未激活状态,终端的其他SE处 于激活状态,终端还可以将处于激活状态的其他SE去激活。
在一些实施例中,终端可以根据终端维护的第一路由表来确定交易指令所访问的NFC应用承载在终端的多个SE中的哪个SE。即终端可以根据第一路由表确定目标SE。该第一路由表中可以包括:终端安装的所有NFC应用相关信息与承载每个NFC应用的SE的SE标识(但不限于SE标识。如,承载每个NFC应用的SE与NFCC之间的物理通道标识或者逻辑通道标识等)的对应关系。以下实施例中,以第一路由表中包括终端安装的所有NFC应用相关信息与承载每个NFC应用的SE的SE标识的对应关系为例进行介绍。
终端可以根据终端维护的第二路由表从目标SE承载的至少一个NFC应用中确定交易指令所访问的NFC应用,即确定目标NFC应用。终端可以为终端中的每个SE维护一个第二路由表。该第二路由表中可以包括:该SE中承载的每个NFC应用的相关信息与该NFC应用的句柄(handle)的对应关系。
其中,终端的多个SE中的每个SE可以承载至少一个NFC应用。NFC应用可以是终端由服务器处下载的。在下载NFC应用时,终端可以分别在上述第一路由表和第二路由表中配置该NFC应用对应的路由信息。之后,终端根据这些路由信息便可以确定出目标NFC应用,并自动将其激活,以便完成交易。
示例性的,以第一路由表为表2所示为例。由表2可知,该第一路由表中包括:NFC应用的相关信息与承载该NFC应用的SE的SE标识的对应关系。其中,NFC应用的相关信息中,AID是该NFC应用的标识,其在同一个SE中唯一存在。例如,在同一个SE中,一个AID可以用来唯一标识一个公交卡应用、银行卡应用、身份证应用或社保健康卡应用。另外,在不同的SE中承载的NFC应用的AID可以相同,也可以不同。在本实施例中,还可用其他的方式来标识NFC应用。对于不同的NFC应用,访问其的交易指令遵循的协议和规则可以相同,也可以不同。访问NFC应用的交易指令遵循的协议和规则可以在安装时确定,在使用过程中也可以动态改变。例如,访问公交卡应用、门禁卡应用、银行卡应用的交易指令都有其各自遵循的协议和规则。访问NFC应用的交易指令遵循的协议和规则可以包括用户自定义的协议和规则。访问NFC应用的交易指令使用的NFC物理技术有:TYPEA技术,TYPEB技术,TYPEF技术等。对于不同的NFC应用,访问其的交易指令使用的NFC物理技术可以相同,也可以不同。访问NFC应用的交易指令使用的NFC物理技术可以在安装时确定。例如,访问身份证应用的交易指令使用的是TYPEB技术。访问公交卡应用的交易指令使用的是TYPEA技术。访问NFC应用的交易指令,可以是一个字符串。该字符串可以是固定不变的,也可以是动态变化的。该字符串可以是一个字节或几个比特位。访问不同NFC应用的字符串可以相同,也可以不同。访问NFC应用的字符串可以在安装时确定,在使用过程中也可以动态改变。运行NFC应用时,对终端的功耗状态的要求可以包括:感应充电、有电、无电、亮屏、灭屏等。运行不同NFC应用时,对终端的功耗状态的要求可以是相同的,也可以是不同的。例如,运行银行卡应用时,要求终端的功耗状态为亮屏。运行门禁卡应用时,要求终端的功耗状态是灭屏。运行NFC应用时,对终端的功耗状态可以包括预定义的功耗状态,如有电、无电等。还可以包括用户自定义的一些状态,如终端的电量等。如定义运行某NFC应用时,终端的电量 要求大于50%。
表2
Figure PCTCN2019112689-appb-000001
在下载NFC应用时,该NFC应用对应在表2所示的第一路由表中的路由信息可以根据终端的DH下发的路由配置命令来配置。在第一路由表中,实际配置的NFC应用对应的路由信息中可以包括NFC应用的相关信息中的至少一种。也就是说,实际配置的NFC应用对应的路由信息中可以包括以下信息中的至少一种:NFC应用的AID、访问NFC应用的交易指令遵循的协议和规则、访问NFC应用的交易指令使用的NFC物理技术、访问NFC应用的交易指令以及运行NFC应用时对终端的功耗状态的要求。
例如,在下载某NFC应用时,该NFC应用下载到了终端的某个SE中。终端的该SE在确定出该NFC应用下载到该SE成功后,可以向终端的DH发送用于指示该NFC应用已下载成功的消息。终端的DH接收到该消息后,可以向终端的NFCC发送路由配置命令。该路由配置命令可以是在终端的本地预先定义的,也可以是提供该NFC应用下载资源的服务器下发给终端的DH的。该路由配置命令用于指示NFCC在上述第一路由表中配置与该NFC应用对应的路由信息。该路由配置命令中可以包括:在第一路由表中配置路由信息时需要配置的信息,以及需要配置的信息的具体取值。该路由配置命令中还包括:承载该NFC应用的SE的SE标识。终端的NFCC根据该路由配置命令,便可以在上述第一路由表中配置该NFC应用对应的路由信息。该路由信息中可以包括,该NFC应用的相关信息与SE标识的对应关系。
由于不同SE中承载的NFC应用的AID可能不同,访问不同NFC应用的交易指令遵循的协议和规则可能不同,使用的NFC物理技术可能不同,交易指令可能不同,运行NFC应用时终端的功耗状态可能不同。因此,终端的NFCC在接收到交易指令后,可以根据表2所示的第一路由表来确定该交易指令所访问的NFC应用承载在终端的哪个SE中,即确定目标SE。示例性的,终端的NFCC可以根据第一路由表和交易指令,从第一路由表中确定一路由信息(如本申请中的第一路由信息可以为该路由信息)。该路由信息可以是第一路由表中满足匹配条件(本申请中的第一匹配条件可以为该匹配条件)的路由信息。该匹配条件可以包括以下至少一种:条件a:路由信息中的AID与交易指令中携带的应用标识符AID相同,条件b:路由信息中的协议和规则与交易指令遵循的协议和规则相同,条件c:路由信息中的NFC物理技术与交易指令使用的NFC物理技术相同,条件d:路由信息中的交易指令与接收到的交易指令相同。在一些实施例中,终端的NFCC可以按照上述四个条件的预设顺序(本申请中的第一预设顺序可以为该预设顺序)将第一路由表中满足该预设顺序中首个条件的路由信息作为确定的路由信息。
另外,在确定目标SE时,运行NFC应用时对终端的功耗状态的要求这一信息可 以作为辅助条件来使用,这样,可以提高自动激活NFC应用的安全性。
例如,如图5所示,以上述预设顺序为条件a,条件b,条件c,条件d为例。终端的NFCC根据第一路由表确定交易指令所访问的NFC应用承载在终端的哪个SE中的具体实现可以包括:
终端的NFCC在接收到交易指令后,可以判断该交易指令中是否包含AID。如果确定出该交易指令中包括AID,则可以按照第一路由表中各条路由信息的配置顺序或者按照终端中包括的SE的优先级顺序(SE的优先级可以是预定义的,也可以是用户设置的),遍历查找第一路由表中的路由信息,以确定第一路由表中是否存在AID与接收到的交易指令中的AID相同的路由信息。如果存在AID与该交易指令中的AID相同的路由信息,且该条路由信息中包括的运行NFC应用时对终端的功耗状态的要求这一信息的取值与终端当前的功耗状态相同,则该条路由信息中包括的SE标识所标识的SE即为目标SE。
如果接收到交易指令中不包含AID,或者,第一路由表中不存在AID与接收到的交易指令中的AID相同的路由信息,或者,第一路由表中存在AID与接收到的交易指令中的AID相同的路由信息,但该条路由信息中包括的运行NFC应用时对终端的功耗状态的要求这一信息的取值与终端当前的功耗状态不同,则终端的NFCC可以按照第一路由表中各条路由信息的配置顺序或者按照终端中包括的SE的优先级顺序,遍历查找第一路由表中的路由信息,以确定第一路由表中是否存在协议和规则与接收到的交易指令所遵循的协议和规则相同的路由信息。如果存在,且该条路由信息中包括的运行NFC应用时对终端的功耗状态的要求这一信息的取值与终端当前的功耗状态相同,则该条路由信息中包括的SE标识所标识的SE即为目标SE。
如果第一路由表中不存在协议和规则与接收到的交易指令所遵循的协议和规则相同的路由信息,或者,第一路由表中存在协议和规则与接收到的交易指令所遵循的协议和规则相同的路由信息,但该条路由信息中包括的运行NFC应用时对终端的功耗状态的要求这一信息的取值与终端当前的功耗状态不同,则终端的NFCC可以按照第一路由表中各条路由信息的配置顺序或者按照终端中包括的SE的优先级顺序,遍历查找第一路由表中的路由信息,以确定第一路由表中是否存在NFC物理技术与接收到的交易指令使用的NFC物理技术相同的路由信息。如果存在,且该条路由信息中包括的运行NFC应用时对终端的功耗状态的要求这一信息的取值与终端当前的功耗状态相同,则该条路由信息中包括的SE标识所标识的SE即为目标SE。
如果第一路由表中不存在NFC物理技术与接收到的交易指令所使用的NFC物理技术相同的路由信息,或者,第一路由表中存在NFC物理技术与接收到的交易指令所使用的NFC物理技术相同的路由信息,但该条路由信息中包括的运行NFC应用时对终端的功耗状态的要求这一信息的取值与终端当前的功耗状态不同,则终端的NFCC可以按照第一路由表中各条路由信息的配置顺序或者按照终端中包括的SE的优先级顺序,遍历查找第一路由表中的路由信息,以确定第一路由表中是否存在交易指令与接收到的交易指令相同的路由信息。如果存在,且该条路由信息中包括的运行NFC应用时对终端的功耗状态的要求这一信息的取值与终端当前的功耗状态相同,则该条路由信息中包括的SE标识所标识的SE即为目标SE。
如果第一路由表中不存在交易指令与接收到的交易指令相同的路由信息,或者,第一路由表中存在交易指令与接收到的交易指令相同的路由信息,但该条路由信息中包括的运行NFC应用时对终端的功耗状态的要求这一信息的取值与终端当前的功耗状态不同,则终端的NFCC可以将优先级最高的SE作为目标SE。
在一些实施例中,上述表2中NFC应用的相关信息中“访问NFC应用的交易指令”这一信息可以替换为“访问NFC应用的交易指令对应的掩码”。其中,访问NFC应用的交易指令对应的掩码,可以是交易指令对应的固定字符串包括的部分字符比特。访问不同NFC应用的字符串对应的掩码可以相同,也可以不同。因此,可以通过接收到的交易指令对应的掩码来判断交易指令所访问的NFC应用承载于终端的哪个SE中。
在终端确定出接收到的交易指令所访问的NFC应用承载在终端的哪个SE中,即确定出目标SE之后,可以根据该目标SE的第二路由表,从目标SE承载的至少一个NFC应用中确定交易指令所访问的NFC应用,即确定目标NFC应用。
示例性的,以第二路由表为表3为例。由表3可知,该第二路由表中包括:NFC应用的相关信息与NFC应用的句柄(handle)的对应关系。其中,NFC应用的相关信息中,NFC应用的AID、访问NFC应用的交易指令、访问NFC应用的交易指令对应的掩码、访问NFC应用的交易指令遵循的协议和规则以及访问NFC应用的交易指令使用的NFC物理技术的相关描述,可以参考表2所示的第一路由表中对应信息的具体描述,此处不再赘述。另外,对于固定优先级,可以是终端根据NFC应用的下载顺序自动设置的,也可以是用户在下载NFC应用时手动设置的。对于可变优先级,初始设置可以为空值(null)。之后终端可以根据用户使用NFC应用的习惯以及当前的场景信息动态调整。如用户在某个时间、某个地理位置经常使用某NFC应用,则在当前时间和当前地理位置与其相同时,终端可以将该NFC应用的可变优先级设置为最高。NFC应用的句柄可以在SE中唯一确定NFC应用。
表3
Figure PCTCN2019112689-appb-000002
在下载NFC应用时,该NFC应用对应在表3所示的第二路由表中的路由信息可以根据终端的DH下发的安装命令以及实际情况(固定优先级和可变优先级是根据场景触发或用户设置来配置的)来配置。在第二路由表中,实际配置的NFC应用对应的路由信息中可以包括:NFC应用的AID、访问NFC应用的交易指令、访问NFC应用的交易指令对应的掩码、NFC应用的固定优先级、NFC应用的可变优先级、访问NFC应用的交易指令遵循的协议和规则以及访问NFC应用的交易指令使用的NFC物理技 术中的至少一种。
例如,终端的DH接收到用于指示NFC应用已下载成功的消息后,还可以向承载该NFC应用的SE发送安装命令。该安装命令可以是招商银行的服务器下发给终端的DH的。该安装命令用于指示该SE在上述第二路由表中配置与该NFC应用对应的路由信息。该安装命令中可以包括:在第二路由表中配置路由信息时需要配置的信息,以及需要配置的信息的具体取值。该安装命令中还包括:该NFC应用的句柄。承载该NFC应用的SE根据该安装命令,便可以在上述第二路由表中配置该NFC应用对应的路由信息。该路由信息中可以包括,该NFC应用的相关信息与NFC应用的句柄的对应关系。
由于同一个SE中承载的NFC应用的标识不同,访问不同NFC应用的交易指令可能不同,交易指令对应的掩码可能不同、可变优先级不同,因此终端的SE在接收到交易指令后,可以根据该第二路由表来确定该交易指令所访问的NFC应用是该SE中的哪个NFC应用。从而自动激活对应的NFC应用,并执行交易指令以完成交易。示例性的,终端的SE可以根据第二路由表和交易指令,从第二路由表中确定一路由信息(如本申请中的第二路由信息可以为该路由信息)。该路由信息可以是第二路由表中满足匹配条件(本申请中的第二匹配条件可以为该匹配条件)的路由信息。该匹配条件可以包括以下至少一种:条件e:路由信息中的AID与交易指令中携带的AID相同,条件f:路由信息中的交易指令与接收到的交易指令相同,条件g:路由信息中的掩码与接收到的交易指令对应的掩码相同,条件h:路由信息中包括的可变优先级为第一优先级,该第一优先级为第二路由表的路由信息中可变优先级最高的优先级。在一些实施例中,终端的SE可以按照上述四个条件的预设顺序(本申请中的第二预设顺序可以为该预设顺序)将第二路由表中满足该预设顺序中首个条件的路由信息作为确定的路由信息。
另外,在确定目标NFC应用时,访问NFC应用的交易指令遵循的协议和规则以及使用的NFC物理技术这两信息中的一个或两个,可以作为辅助条件来使用,这样,可以提高自动激活NFC应用的安全性。
例如,以将访问NFC应用的交易指令遵循的协议和规则以及使用的NFC物理技术这两个信息作为辅助条件来确定目标NFC应用,预设顺序为条件e,条件f,条件g,条件h为例,如图6所示,终端的SE根据该SE的第二路由表,从该SE承载的至少一个NFC应用中确定交易指令所访问的NFC应用,即确定目标NFC应用的具体实现可以包括:
终端的SE接收到交易指令后,可以判断该交易指令中是否包含AID。如果该交易指令中包含AID,则该SE可以遍历查找第二路由表中的路由信息,以确定第二路由表中是否存在AID与该交易指令中的AID相同的路由信息。如果第二路由表中存在AID与该交易指令中的AID相同的路由信息,该SE可以判断该条路由信息中包括的访问NFC应用的交易指令遵循的协议和规则以及使用的NFC物理技术这两个信息的取值与当前接收到的交易指令遵循的协议和规则以及使用的NFC物理技术是否相同。如果该条路由信息中包括的协议和规则以及使用的NFC物理技术与当前接收到的交易指令遵循的协议和规则以及使用的NFC物理技术相同,则该条路由信息中包括的 NFC应用的句柄对应的NFC应用即为目标NFC应用。
如果上述交易指令中不包含AID,或者,第二路由表中不存在AID与接收到的交易指令中的AID相同的路由信息,或者第二路由表中存在AID与接收到的交易指令中的AID相同的路由信息,但该条路由信息中包括的协议和规则或使用的NFC物理技术与当前接收到的交易指令遵循的协议和规则以及使用的NFC物理技术不同,则终端的SE可以遍历查找第二路由表中的路由信息,以确定第二路由表中是否存在交易指令与接收到的交易指令相同的路由信息。如果第二路由表中存在交易指令与接收到的交易指令相同的路由信息,该SE可以判断该条路由信息中包括的访问NFC应用的交易指令遵循的协议和规则以及使用的NFC物理技术这两个信息的取值与当前接收到的交易指令遵循的协议和规则以及使用的NFC物理技术是否相同。如果该条路由信息中包括的协议和规则以及使用的NFC物理技术与当前接收到的交易指令遵循的协议和规则以及使用的NFC物理技术相同,则该条路由信息中包括的NFC应用的句柄对应的NFC应用即为目标NFC应用。
如果第二路由表中不存在交易指令与接收到的交易指令相同的路由信息,或者第二路由表中存在交易指令与接收到的交易指令相同的路由信息,但该条路由信息中包括的协议和规则或使用的NFC物理技术与当前接收到的交易指令遵循的协议和规则以及使用的NFC物理技术不同,则终端的SE可以遍历查找第二路由表中的路由信息,以确定第二路由表中是否存在掩码与接收到的交易指令对应的掩码相同的路由信息。如果第二路由表中存在掩码与接收到的交易指令对应的掩码相同的路由信息,该SE可以判断该条路由信息中包括的访问NFC应用的交易指令遵循的协议和规则以及使用的NFC物理技术这两个信息的取值与当前接收到的交易指令遵循的协议和规则以及使用的NFC物理技术是否相同。如果该条路由信息中包括的协议和规则以及使用的NFC物理技术与当前接收到的交易指令遵循的协议和规则以及使用的NFC物理技术相同,则该条路由信息中包括的NFC应用的句柄对应的NFC应用即为目标NFC应用。
如果第二路由表中不存在掩码与接收到的交易指令对应的掩码相同的路由信息,或者第二路由表中存在掩码与接收到的交易指令对应的掩码相同的路由信息,但该条路由信息中包括的协议和规则或使用的NFC物理技术与当前接收到的交易指令遵循的协议和规则以及使用的NFC物理技术不同,则终端的SE可以将第二路由表中,可变优先级最高的路由信息中包括的NFC应用的句柄对应的NFC应用即为目标NFC应用。
如果第二路由表中没有可变优先级这一信息,也就是说,经过上述匹配,未能确定出目标NFC应用,则终端的SE可以将默认的NFC应用作为目标NFC应用。该默认的NFC应用可以是用户设置的,也可以是预定义的。
在一些实施例中,终端的SE可以结合第二路由表中的固定优先级这一信息,按照优先级从高到低的顺序遍历查找第二路由表。在其他一些实施例中,终端的SE也可以结合第二路由表中的可变优先级这一信息,按照优先级从高到低的顺序查找遍历查找第二路由表。在另外一些实施例中,终端的SE也可以同时结合第二路由表中的固定优先级和可变优先级,遍历查找第二路由表。这样,可以提高匹配效率,能快速的确定出接收到的交易指令所访问的NFC应用。
这样,终端在确定出目标NFC应用后,便可在目标SE中运行该目标NFC应用,并执行接收到的交易指令,以完成交易。
为了便于理解,以下结合具体示例,对目标SE和目标NFC应用的确定过程进行举例介绍。例如,结合图1所示,终端有三个SE,分别为以SIM卡形式存在的SE 1,与NFC芯片一起封装的SE 2,以及以终端的AP形式存在的inSE,如称为SE 3。
终端中下载了多个NFC应用,这些NFC应用可以承载在终端的三个SE中。如,终端中下载了招商银行的银行卡应用701、车钥匙应用702、社保健康卡应用703、门禁卡应用704。其中,如图7所示,招商银行的银行卡应用701和门禁卡应用704承载在SE 1中。车钥匙应用702承载在SE 2中。社保健康卡应用703承载在SE 3中。在下载招商银行的银行卡应用701、车钥匙应用702、社保健康卡应用703、门禁卡应用704时,终端在第一路由表和第二路由表中分别配置每个NFC应用的路由信息。配置对应路由信息后的第一路由表可以参见表4所示。配置对应路由信息后的SE 1中的第二路由表如表5。配置对应路由信息后的SE 2中的第二路由表如表6所示。配置对应路由信息后的SE 3中的第二路由表如表7所示。
表4第一路由表
Figure PCTCN2019112689-appb-000003
其中,在表4所示的第一路由表中,第一条路由信息为招商银行的银行卡应用701对应的路由信息。第二条路由信息为车钥匙应用702对应的路由信息。第三条路由信息为社保健康卡应用703对应的路由信息。第四条路由信息为门禁卡应用704对应的路由信息。
表5 SE 1中的第二路由表
Figure PCTCN2019112689-appb-000004
Figure PCTCN2019112689-appb-000005
其中,在表5所示的SE 1中的第二路由表中,第一条路由信息为招商银行的银行卡应用701对应的路由信息。第二条路由信息为门禁卡应用704对应的路由信息。
表6 SE 2中的第二路由表
Figure PCTCN2019112689-appb-000006
其中,在表6所示的SE 2中的第二路由表中,第一条路由信息为车钥匙应用702对应的路由信息。
表7 SE 3中的第二路由表
Figure PCTCN2019112689-appb-000007
其中,在表7所示的SE 3中的第二路由表中,第一条路由信息为社保健康卡应用703对应的路由信息。
以配置招商银行的银行卡应用701的路由信息为例,对在第一路由表和第二路由 表中进行路由配置的过程进行介绍。对于门禁卡应用704、车钥匙应用702以及社保健康卡应用703对应路由信息配置过程的具体描述与招商银行的银行卡应用701对应的路由信息配置过程的具体描述类似。
例如,用户想要终端能够模式招商银行的银行卡应用701。根据用户的操作,终端可以下载该招商银行的银行卡应用701到终端的SE中。如该银行卡应用701下载到了SE 1中。在该银行卡应用701下载到SE 1成功后,该SE 1可以向终端的DH发送指示成功的消息。终端的DH响应于该消息,可以向终端的NFCC发送路由配置命令。如该路由配置命令中包括:在第一路由表中配置路由信息时需要配置的信息:招商银行的银行卡应用701的AID、访问该银行卡应用701的交易指令遵循的协议和规则以及运行NFC应用时对终端的功耗状态的要求。且需要配置的这三个信息的具体取值依次为:AID 1,协议和规则1和亮屏。该路由配置命令中还包括承载该招商银行的银行卡应用701的SE的SE标识,如SE 1。
终端的NFCC根据DH下发的路由配置命令便可以进行路由配置,即在第一路由表中配置招商银行的银行卡应用701对应的路由信息。如,配置的路由信息如表4所示的第一路由表中的第一条路由信息所示。终端的NFCC可以将其他不需要配置的信息设置为空值(null)。
终端的DH响应于接收到的消息,还可以向终端的SE 1发送安装命令。该安装命令是招商银行的服务器下发给终端的DH的。如,该安装命令中包括:在第二路由表中配置路由信息时需要配置的信息:招商银行的银行卡应用701的AID、访问该银行卡应用701的交易指令遵循的协议和规则以及访问该银行卡应用701的交易指令使用的NFC物理技术。且需要配置的这三个信息的具体取值依次为:AID 1,协议和规则1和NFC物理技术1。该安装命令中还包括该银行卡应用701的句柄,如句柄1。
终端的SE 1根据DH下发的安装命令便可以进行路由配置,即在SE 1中的第二路由表中配置招商银行的银行卡应用701对应的路由信息。配置的路由信息如表5中的第一条路由信息所示。其中,银行卡应用701的固定优先级是根据下载顺序设置的,如设置为1(数值越大固定优先级越低)。可变优先级为空值(null),其他不需要配置的信息也设置为空值。
这样,招商银行的银行卡应用701对应的路由信息便配置完成,后续可利用该路由信息确定出交易指令是否要访问该NFC应用。
例如,用户在超市购物结束需要付款时,可以用终端靠近收银台的POS机具。终端的NFCC可以接收到POS机具发送的交易指令,该交易指令中携带AID 1。终端的NFCC可以判断接收到的交易指令中是否包含AID。在确定该交易指令中包括AID时,终端的NFCC可以按照SE的优先级顺序,遍历查找表4所示的第一路由表中的路由信息,以确定表4所示的第一路由表中是否存在AID与AID 1相同的路由信息。由表4可知,表4所示的第一路由表中第一条路由信息的AID与该AID 1相同。终端的NFCC可以获取终端当前的功耗状态,如获取到的当前的功耗状态为亮屏,其与该条路由信息中包括的运行NFC应用时对终端的功耗状态的要求这一信息的取值“亮屏”相同。那么终端的NFCC根据该第一条路由信息,可以确定SE 1即为目标SE。在确定出SE 1为目标SE之后,终端的NFCC可以将交易指令发送至该SE 1。
SE 1接收到交易指令后,可以根据该交易指令确定该SE 1中的哪个NFC应用是交易指令所访问的NFC应用。如,SE 1接收到交易指令后,可以判断该交易指令中是否包含AID。在确定该交易指令中包含AID时,该SE 1可以按照固定优先级的顺序,遍历查找表5所示的第二路由表中的路由信息,以确定第二路由表中是否存在AID与AID 1相同的路由信息。由表5可知,表5所示的第一路由表中第一条路由信息的AID与该AID 1相同。该SE 1可以判断接收到的交易指令所遵循的协议和规则以及使用的NFC物理技术是否为协议和规则1以及NFC物理技术1。如果是,则该SE 1可以确定该条路由信息中句柄1对应的NFC应用即为目标NFC应用,即SE 1中承载的招商银行的银行卡应用701为交易指令所访问的NFC应用。SE 1可以运行该银行卡应用701,并执行交易指令,以完成扣款。
又例如,用户想要驾车回家,可以用终端靠近汽车的车门。终端的NFCC可以接收到车门上的读卡器发送的交易指令,该交易指令中未携带AID。终端的NFCC可以判断接收到的交易指令中是否包含AID。在确定该交易指令中未包括AID时,终端的NFCC可以按照SE的优先级顺序,遍历查找表4所示的第一路由表中的路由信息,以确定表4所示的第一路由表中是否存在协议和规则与接收到的交易指令遵循的协议和规则相同的路由信息。如接收到的交易指令所遵循的协议和规则为协议和规则2,由表4可知,终端的NFCC按照SE的优先级顺序,查找第一条路由信息确定其包含的协议和规则这一信息的取值与协议和规则2不相同,再查找第四条路由信息确定其包含的协议和规则这一信息的取值与协议和规则2也不相同,然后查找第二条路由信息确定其包含的协议和规则这一信息的取值与协议和规则2相同。终端的NFCC可以获取终端当前的功耗状态,如获取到的当前的功耗状态为有电,其与该条路由信息中包括的运行NFC应用时对终端的功耗状态的要求这一信息的取值“有电”相同。那么终端的NFCC根据该第二条路由信息,可以确定SE 2即为目标SE。在确定出SE 2为目标SE之后,终端的NFCC可以将交易指令发送至该SE 2。
SE 2接收到交易指令后,可以根据该交易指令确定该SE 2中的哪个NFC应用是交易指令所访问的NFC应用。如,SE 2接收到交易指令后,可以判断该交易指令中是否包含AID。在确定该交易指令中不包含AID时,该SE 2可以遍历查找表6所示的第二路由表中的路由信息,以确定第二路由表中是否存在交易指令与接收到的交易指令相同的路由信息。如果未查找到交易指令与接收到的交易指令相同的路由信息,则根据表6查找是否存在掩码与接收到的交易指令对应的掩码相同的路由信息。例如,接收到的交易指令对应的掩码为掩码2。那么,SE 2可以判断接收到的交易指令所遵循的协议和规则以及使用的NFC物理技术是否为协议和规则2以及NFC物理技术2。如果是,则该SE 2可以确定该条路由信息中句柄2对应的NFC应用即为目标NFC应用,即SE 2中承载的车钥匙应用702为交易指令所访问的NFC应用。SE 2可以运行该车钥匙应用702,并执行交易指令,以便打开车门。
再例如,用户驾车回到家,想要打开房门时,可以用终端靠近房间门的门锁。终端的NFCC可以接收到门锁发送的交易指令,该交易指令中未携带AID。终端的NFCC可以判断接收到的交易指令中是否包含AID。在确定该交易指令中未包括AID时,终端的NFCC可以按照SE的优先级顺序,遍历查找表4所示的第一路由表中的路由信 息,以确定表4所示的第一路由表中是否存在协议和规则与接收到的交易指令所遵循的协议和规则相同的路由信息。如,接收到的交易指令所遵循的协议和规则为协议和规则4,由表4可知,第一路由表中不存在协议和规则与接收到的交易指令所遵循的协议和规则4相同的路由信息。终端的NFCC可以按照SE的优先级顺序,遍历查找表4所示的第一路由表中的路由信息,以确定表4所示的第一路由表中是否存在NFC物理技术与接收到的交易指令所使用的NFC物理技术相同的路由信息。如,接收到的交易指令所使用的NFC物理技术为NFC物理技术4,由表4可知,第一路由表中不存在NFC物理技术与接收到的交易指令所使用的NFC物理技术4相同的路由信息。终端的NFCC可以按照SE的优先级顺序,遍历查找表4所示的第一路由表中的路由信息,以确定表4所示的第一路由表中是否存在交易指令与接收到的交易指令相同的路由信息。如接收到的交易指令为交易指令4。由表4可知,表4所示的第一路由表中第四条路由信息的交易指令与该交易指令4相同。终端的NFCC可以获取终端当前的功耗状态,如获取到的当前的功耗状态为灭屏,其与该条路由信息中包括的运行NFC应用时对终端的功耗状态的要求这一信息的取值“灭屏”相同。那么终端的NFCC根据该第四条路由信息,可以确定SE 1即为目标SE。在确定出SE 1为目标SE之后,终端的NFCC可以将交易指令发送至该SE 1。
SE 1接收到交易指令后,可以根据该交易指令确定该SE 1中的哪个NFC应用是交易指令所访问的NFC应用。如,SE 1接收到交易指令后,可以判断该交易指令中是否包含AID。在确定该交易指令中不包含AID时,该SE 1可以按照固定优先级的顺序,遍历查找表5所示的第二路由表中的路由信息,以确定第二路由表中是否存在交易指令与交易指令4相同的路由信息。由表5可知,表5所示的第一路由表中第二条路由信息的交易指令与该交易指令4相同。该SE 1可以判断接收到的交易指令所遵循的协议和规则以及使用的NFC物理技术是否为协议和规则4以及NFC物理技术4。如果是,则该SE 1可以确定该条路由信息中句柄4对应的NFC应用即为目标NFC应用,即SE 1中承载的门禁卡应用704为交易指令所访问的NFC应用。SE 1可以运行该门禁卡应用704,并执行交易指令,以便打开房门。
由上可以看到的是,用户从付款,到开车门,到开房门,只需将终端靠近对应的读卡器或POS机具,终端便可识别到对应的NFC应用并自动激活,以完成交易。无需用户手动切换,提高了终端与用户的交互效率,提高了终端的智能性。极大的提高了用户的使用体验。
在一些实施例中,为了访问终端自动激活的NFC应用不是用户想要使用的,在终端确定出目标NFC应用后,可以在终端的显示屏上显示提示信息,提示用户将要激活目标NFC应用,以完成交易。例如,如图8所示,以上述在用户在超市购物结束需要付款时,终端确定出目标NFC应用为招商银行的银行卡应用701为例。在终端确定出目标NFC应用为招商银行的银行卡应用701后,可以显示提示窗口,该提示窗口中包括提示信息801,该提示信息801可以提示用户将要激活招商银行的银行卡应用701完成付款。终端还可以在提示窗口中显示取消按钮802。当用户不想要使用招商银行的银行卡应用701付款时,可以对该取消按钮802执行点击操作。终端响应于该点击操作,可以不执行激活该招商银行的银行卡应用701的操作。终端还可以在提示窗口 中显示倒计时读秒803,以提示用户在倒计时读秒结束时(如3秒后),将激活招商银行的银行卡应用701,提示窗口也将自动关闭。
在本申请另外一些实施例中,在终端有多个SE(如三个SE,三个SE的SE标识分别为SE 1,SE 2以及SE 3)的场景下,终端可以存储有SE与该SE中承载的NFC应用的对应关系。例如,如表8所示,终端存储有SE标识与该SE中承载的NFC应用的对应关系。其中,标识为SE 1的SE中承载了NFC应用1、NFC应用3以及NFC应用6。标识为SE 2的SE中承载了NFC应用4以及NFC应用5。标识为SE 3的SE中承载了NFC应用2以及NFC应用7。
表8
Figure PCTCN2019112689-appb-000008
在用户将终端靠近POS机具或读卡器时,可以接收到交易指令,该交易指令中可以携带交易指令所要访问NFC应用所在的SE的SE标识。这样,终端便可以根据交易指令中携带的SE标识和表8,确定交易指令所访问的NFC所承载的SE,即确定目标SE。如果该目标SE未激活,终端可以激活该目标SE。然后,可以从目标SE中确定出交易指令所要访问的NFC应用,即目标NFC应用,并自动将其激活。其中,从目标SE中确定目标NFC应用的具体实现可以参考本申请其他实施例中对应内容的具体描述,此处不再详细赘述。
如图9所示,本申请另一实施例提供一种NFC芯片***。该NFC芯片***可以包括NFC芯片901和至少两个SE 902(如图9中以包括三个SE为例示出)。其中,NFC芯片901和至少两个SE 902中的目标SE可以用于执行上述任一实施例所提供的NFC应用的自动激活方法。目标SE可以为上述至少两个SE中的任意一个。
通过以上的实施方式的描述,所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。上述描述的***,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在本申请实施例所提供的几个实施例中,应该理解到,所揭露的***,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个***,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的 形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本申请实施例方案的目的。
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请实施例的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器执行各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:快闪存储器、移动硬盘、只读存储器、随机存取存储器、磁碟或者光盘等各种可以存储程序代码的介质。
以上所述,仅为本申请实施例的具体实施方式,但本申请的保护范围并不局限于此,任何在本申请实施例揭露的技术范围内的变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。

Claims (29)

  1. 一种终端,其特征在于,所述终端包括近距离通信NFC控制器和至少两个安全单元SE,所述至少两个SE中的每个SE中承载了至少一个NFC应用;
    所述NFC控制器接收交易指令,根据所述交易指令从所述至少两个SE中确定目标SE,向所述目标SE发送所述交易指令;
    所述目标SE接收所述交易指令,根据所述交易指令从所述目标SE承载的NFC应用中确定目标NFC应用;
    所述目标SE运行所述目标NFC应用,执行所述交易指令。
  2. 根据权利要求1所述的终端,其特征在于,所述根据所述交易指令从所述至少两个SE中确定目标SE,包括:
    所述NFC控制器根据第一路由表和所述交易指令,从所述第一路由表中确定第一路由信息,所述第一路由信息是所述第一路由表中满足第一匹配条件的路由信息,所述第一路由信息包括SE标识;
    所述NFC控制器将所述至少两个SE中所述SE标识所标识的SE确定为所述目标SE;
    其中,所述第一匹配条件包括以下至少一种:条件a:路由信息中的AID与所述交易指令中携带的应用标识符AID相同,条件b:路由信息中的协议和规则与所述交易指令遵循的协议和规则相同,条件c:路由信息中的NFC物理技术与所述交易指令使用的NFC物理技术相同,条件d:路由信息中的交易指令与接收到的所述交易指令相同。
  3. 根据权利要求2所述的终端,其特征在于,所述NFC控制器根据第一路由表和所述交易指令,从所述第一路由表中确定第一路由信息,包括:
    所述NFC控制器根据所述第一路由表和所述交易指令,按照所述条件a,所述条件b,所述条件c以及所述条件d的第一预设顺序依次判断所述第一路由表中的路由信息,将所述第一路由表中满足所述第一预设顺序中首个条件的路由信息确定为所述第一路由信息。
  4. 根据权利要求3所述的终端,其特征在于,所述第一预设顺序为:所述条件a,所述条件b,所述条件c,所述条件d。
  5. 根据权利要求1-4中任一项所述的终端,其特征在于,所述SE中承载了至少两个NFC应用,所述根据所述交易指令从所述目标SE承载的NFC应用中确定目标NFC应用,包括:
    所述目标SE根据第二路由表和所述交易指令,从所述第二路由表中确定第二路由信息,所述第二路由信息是所述第二路由表中满足第二匹配条件的路由信息,所述第二路由信息包括句柄;
    所述目标SE将所述至少两个NFC应用中所述句柄对应的NFC应用确定为所述目标NFC应用;
    其中,所述第二匹配条件包括以下至少一种:条件e:路由信息中的AID与所述交易指令中携带的AID相同,条件f:路由信息中的交易指令与接收到的所述交易指令相同,条件g:路由信息中的掩码与接收到的所述交易指令对应的掩码相同,条件h: 路由信息中包括的可变优先级为第一优先级,所述第一优先级为所述第二路由表的路由信息中可变优先级最高的优先级。
  6. 根据权利要求5所述的终端,其特征在于,所述目标SE根据第二路由表和所述交易指令,从所述第二路由表中确定第二路由信息,包括:
    所述目标SE根据所述第二路由表和所述交易指令,按照所述条件e,所述条件f,所述条件g以及所述条件h的第二预设顺序依次判断所述第二路由表中的路由信息,将所述第二路由表中满足所述第二预设顺序中首个条件的路由信息确定为所述第二路由信息。
  7. 根据权利要求6所述的终端,其特征在于,所述第二预设顺序为所述条件e,所述条件f,所述条件g,所述条件h。
  8. 根据权利要求2-4中任一项所述的终端,其特征在于,
    在下载所述目标NFC应用时,所述NFC控制器在所述第一路由表中配置所述第一路由信息,所述第一路由信息还包括以下至少一种:所述目标NFC应用的AID,访问所述目标NFC应用的交易指令遵循的协议和规则,访问所述目标NFC应用的交易指令使用的NFC物理技术,访问所述目标NFC应用的交易指令。
  9. 根据权利要求5-7中任一项所述的终端,其特征在于,
    在下载所述目标NFC应用时,所述目标SE在所述第二路由表中配置所述第二路由信息,所述第二路由信息还包括以下至少一种:所述目标NFC应用的AID,访问所述目标NFC应用的交易指令,访问所述目标NFC应用的交易指令对应的掩码,所述目标NFC应用的可变优先级。
  10. 根据权利要求2-4中任一项所述的终端,其特征在于,
    所述第一路由信息在满足所述第一匹配条件的同时,所述第一路由信息中的功耗状态与所述终端当前的功耗状态相同。
  11. 根据权利要求5-7中任一项所述的终端,其特征在于,
    所述第二路由信息满足所述第二匹配条件的同时,所述第二路由信息中的协议和规则与接收到的所述交易指令所遵循的协议和规则相同,所述第二路由信息中的NFC物理技术与接收到的所述交易指令使用的NFC物理技术相同。
  12. 一种近距离通信NFC应用的自动激活方法,其特征在于,应用于终端,所述终端包括至少两个安全单元SE,所述至少两个SE中的每个SE中承载了至少一个NFC应用;该方法包括:
    所述终端接收交易指令,根据所述交易指令从所述至少两个SE中确定目标SE;
    所述终端根据所述交易指令从所述目标SE承载的NFC应用中确定目标NFC应用;
    所述终端通过所述目标SE运行所述目标NFC应用,执行所述交易指令。
  13. 根据权利要求12所述的方法,其特征在于,所述终端根据所述交易指令从所述至少两个SE中确定目标SE,包括:
    所述终端根据第一路由表和所述交易指令,从所述第一路由表中确定第一路由信息,所述第一路由信息是所述第一路由表中满足第一匹配条件的路由信息,所述第一路由信息包括SE标识;
    所述终端将所述至少两个SE中所述SE标识所标识的SE确定为所述目标SE;
    其中,所述第一匹配条件包括以下至少一种:条件a:路由信息中的AID与所述交易指令中携带的应用标识符AID相同,条件b:路由信息中的协议和规则与所述交易指令遵循的协议和规则相同,条件c:路由信息中的NFC物理技术与所述交易指令使用的NFC物理技术相同,条件d:路由信息中的交易指令与接收到的所述交易指令相同。
  14. 根据权利要求13所述的方法,其特征在于,所述终端根据第一路由表和所述交易指令,从所述第一路由表中确定第一路由信息,包括:
    所述终端根据所述第一路由表和所述交易指令,按照所述条件a,所述条件b,所述条件c以及所述条件d的第一预设顺序依次判断所述第一路由表中的路由信息,将所述第一路由表中满足所述第一预设顺序中首个条件的路由信息确定为所述第一路由信息。
  15. 根据权利要求14所述的方法,其特征在于,所述第一预设顺序为:所述条件a,所述条件b,所述条件c,所述条件d。
  16. 根据权利要求12-15中任一项所述的方法,其特征在于,所述SE中承载了至少两个NFC应用,所述终端根据所述交易指令从所述目标SE承载的NFC应用中确定目标NFC应用,包括:
    所述终端根据第二路由表和所述交易指令,从所述第二路由表中确定第二路由信息,所述第二路由信息是所述第二路由表中满足第二匹配条件的路由信息,所述第二路由信息包括句柄;
    所述终端将所述至少两个NFC应用中所述句柄对应的NFC应用确定为所述目标NFC应用;
    其中,所述第二匹配条件包括以下至少一种:条件e:路由信息中的AID与所述交易指令中携带的AID相同,条件f:路由信息中的交易指令与接收到的所述交易指令相同,条件g:路由信息中的掩码与接收到的所述交易指令对应的掩码相同,条件h:路由信息中包括的可变优先级为第一优先级,所述第一优先级为所述第二路由表的路由信息中可变优先级最高的优先级。
  17. 根据权利要求16所述的方法,其特征在于,所述终端根据第二路由表和所述交易指令,从所述第二路由表中确定第二路由信息,包括:
    所述终端根据所述第二路由表和所述交易指令,按照所述条件e,所述条件f,所述条件g以及所述条件h的第二预设顺序依次判断所述第二路由表中的路由信息,将所述第二路由表中满足所述第二预设顺序中首个条件的路由信息确定为所述第二路由信息。
  18. 根据权利要求17所述的方法,其特征在于,所述第二预设顺序为所述条件e,所述条件f,所述条件g,所述条件h。
  19. 根据权利要求13-15中任一项所述的方法,其特征在于,所述方法还包括:
    在下载所述目标NFC应用时,所述终端在所述第一路由表中配置所述第一路由信息,所述第一路由信息还包括以下至少一种:所述目标NFC应用的AID,访问所述目标NFC应用的交易指令遵循的协议和规则,访问所述目标NFC应用的交易指令使用的NFC物理技术,访问所述目标NFC应用的交易指令。
  20. 根据权利要求16-18中任一项所述的方法,其特征在于,所述方法还包括:
    在下载所述目标NFC应用时,所述终端在所述第二路由表中配置所述第二路由信息,所述第二路由信息还包括以下至少一种:所述目标NFC应用的AID,访问所述目标NFC应用的交易指令,访问所述目标NFC应用的交易指令对应的掩码,所述目标NFC应用的可变优先级。
  21. 根据权利要求13-15中任一项所述的方法,其特征在于,
    所述第一路由信息在满足所述第一匹配条件的同时,所述第一路由信息中的功耗状态与所述终端当前的功耗状态相同。
  22. 根据权利要求16-18中任一项所述的方法,其特征在于,
    所述第二路由信息满足所述第二匹配条件的同时,所述第二路由信息中的协议和规则与接收到的所述交易指令所遵循的协议和规则相同,所述第二路由信息中的NFC物理技术与接收到的所述交易指令使用的NFC物理技术相同。
  23. 一种近距离通信NFC应用的自动激活方法,其特征在于,应用于终端,所述终端包括至少两个安全单元SE,所述至少两个SE中的第一SE默认处于激活状态,所述第一SE为所述至少两个SE中的任意一个,所述第一SE中承载有所述终端中支持应用标识符AID识别的NFC应用;所述方法包括:
    所述终端接收第一交易指令,所述第一交易指令中包括AID;
    所述终端通过所述第一SE,运行所述第一交易指令中的AID所标识的NFC应用,执行所述第一交易指令。
  24. 根据权利要求23所述的方法,其特征在于,所述终端中支持AID识别的NFC应用包括第一NFC应用,所述方法还包括:
    在下载所述第一NFC应用时,所述终端确定所述第一NFC应用支持AID识别;
    所述终端将所述第一NFC应用下载到所述第一SE中。
  25. 根据权利要求24所述的方法,其特征在于,所述终端确定所述第一NFC应用支持AID识别,包括:
    所述终端确定所述第一NFC应用的AID包含在白名单中,所述白名单中包括支持AID识别的NFC应用的AID。
  26. 根据权利要求23-25中任一项所述的方法,其特征在于,所述至少两个SE中还包括第二SE,所述终端中支持AID识别的NFC应用包括第二NFC应用,所述方法还包括:
    在所述第二NFC应用承载在所述第二SE中时,所述终端确定所述第二NFC应用支持AID识别;
    所述终端将所述第二NFC应用从所述第二SE中移动到所述第一SE中。
  27. 根据权利要求23-26中任一项所述的方法,其特征在于,所述第一SE中还承载有所述终端中使用频率大于阈值的NFC应用;所述方法还包括:
    所述终端接收第二交易指令;
    所述终端获取接收到所述第二交易指令时的时间和/或地理位置;
    所述终端根据接收到所述第二交易指令时的时间和/或地理位置,确定所述第二交易指令所要访问的NFC应用;
    所述终端通过所述第一SE,运行所述第二交易指令所要访问的NFC应用,执行所述第二交易指令。
  28. 一种近距离通信NFC应用的自动激活方法,其特征在于,应用于终端,所述终端中承载了至少两个NFC应用;所述方法包括:
    所述终端接收服务器发送的推送消息;所述推送消息用于指示所述终端激活所述至少两个NFC应用中的第一NFC应用;
    响应于所述推送消息,所述终端自动激活所述第一NFC应用。
  29. 一种近距离通信NFC芯片***,其特征在于,所述NFC芯片***包括NFC芯片和至少两个安全单元SE;
    所述NFC芯片和所述至少两个SE中的目标SE用于执行如权利要求12-28中任一项所述的NFC应用的自动激活方法。
PCT/CN2019/112689 2018-11-01 2019-10-23 一种nfc应用的自动激活方法及终端 WO2020088318A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP19880697.8A EP3855309B1 (en) 2018-11-01 2019-10-23 Automatic activation method for nfc application, and terminal
US17/290,451 US11977946B2 (en) 2018-11-01 2019-10-23 Method for automatically activating NFC application and terminal

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
CN201811294647.4 2018-11-01
CN201811294647 2018-11-01
CN201811561669.2A CN111124503B (zh) 2018-11-01 2018-12-19 一种nfc应用的自动激活方法及终端
CN201811561669.2 2018-12-19

Publications (1)

Publication Number Publication Date
WO2020088318A1 true WO2020088318A1 (zh) 2020-05-07

Family

ID=70462064

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/112689 WO2020088318A1 (zh) 2018-11-01 2019-10-23 一种nfc应用的自动激活方法及终端

Country Status (2)

Country Link
US (1) US11977946B2 (zh)
WO (1) WO2020088318A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112825173A (zh) * 2020-11-03 2021-05-21 ***股份有限公司 卡片交易安全验证方法以及移动终端

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120178366A1 (en) * 2011-01-06 2012-07-12 Koby Levy Multiple NFC Card Applications in Multiple Execution Environments
CN103222291A (zh) * 2010-11-17 2013-07-24 捷讯研究有限公司 用于支持多个nfc执行环境nfcee的nfc控制器的应用路由配置
CN103503323A (zh) * 2013-03-05 2014-01-08 华为终端有限公司 近场通信射频通信方法、装置和终端设备
CN103701506A (zh) * 2013-12-17 2014-04-02 南京邮电大学 一种基于nfc和蓝牙融合的电子书报亭装置及实现方法
CN109257071A (zh) * 2017-07-12 2019-01-22 深圳如探索科技有限公司 设备控制方法、装置及设备

Family Cites Families (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8290433B2 (en) * 2007-11-14 2012-10-16 Blaze Mobile, Inc. Method and system for securing transactions made through a mobile communication device
ATE554593T1 (de) 2008-03-27 2012-05-15 Motorola Mobility Inc Verfahren und vorrichtung für die automatische nahfeld-kommunikations-anwendungsauswahl in einem elektronischen gerät
EP2447872B1 (en) * 2010-10-27 2020-03-11 ST Microelectronics (Rousset) SAS Method and device for managing information exchange between for example a NFC controller and a set of at least two secure elements.
CN103299317B (zh) * 2010-12-15 2016-09-07 意法半导体(鲁塞)公司 用于管理主元件与一组至少两个辅助元件之间的信息交换的方法和设备
CN103065107B (zh) 2011-10-21 2015-12-02 ***通信集团公司 一种非接触刷卡应用的实现方法以及装置
KR101895220B1 (ko) * 2012-05-08 2018-09-07 삼성전자주식회사 근거리 무선 통신 장치에서 보안 요소를 선택하는 장치 및 방법
WO2014030876A1 (en) 2012-08-24 2014-02-27 Samsung Electronics Co., Ltd. Method and apparatus for determining item based on interaction environment
CN103778395B (zh) 2012-10-25 2016-12-21 ***通信集团公司 近场通信nfc终端上的应用安装方法和nfc终端
CN104463255B (zh) 2013-09-12 2018-03-23 ***股份有限公司 用于与nfc芯片自动连接并切换安全载体的切换装置及方法
US10333844B2 (en) 2014-09-30 2019-06-25 Huawei Technologies Co., Ltd. Routing method, near field communication controller, device host, and terminal
US9916575B2 (en) * 2014-11-19 2018-03-13 Qualcomm Incorporated Systems and methods for adaptive routing for multiple secure elements
CN105574749A (zh) 2015-03-24 2016-05-11 西安酷派软件科技有限公司 一种安全元件se中卡片应用的选择方法、装置及***
US10861004B2 (en) * 2015-04-24 2020-12-08 Capital One Services, Llc One use wearable
US11354390B2 (en) * 2017-06-04 2022-06-07 Apple Inc. Biometric authentication with user input

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103222291A (zh) * 2010-11-17 2013-07-24 捷讯研究有限公司 用于支持多个nfc执行环境nfcee的nfc控制器的应用路由配置
US20120178366A1 (en) * 2011-01-06 2012-07-12 Koby Levy Multiple NFC Card Applications in Multiple Execution Environments
CN103503323A (zh) * 2013-03-05 2014-01-08 华为终端有限公司 近场通信射频通信方法、装置和终端设备
CN103701506A (zh) * 2013-12-17 2014-04-02 南京邮电大学 一种基于nfc和蓝牙融合的电子书报亭装置及实现方法
CN109257071A (zh) * 2017-07-12 2019-01-22 深圳如探索科技有限公司 设备控制方法、装置及设备

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112825173A (zh) * 2020-11-03 2021-05-21 ***股份有限公司 卡片交易安全验证方法以及移动终端
CN112825173B (zh) * 2020-11-03 2024-02-09 ***股份有限公司 卡片交易安全验证方法以及移动终端

Also Published As

Publication number Publication date
US11977946B2 (en) 2024-05-07
US20220036017A1 (en) 2022-02-03

Similar Documents

Publication Publication Date Title
CN111124503B (zh) 一种nfc应用的自动激活方法及终端
WO2021023032A1 (zh) 设备解锁方法、***和相关设备
WO2021185105A1 (zh) SIM卡和eSIM卡的切换方法及电子设备
WO2020062344A1 (zh) 一种数据传输方法及电子设备
WO2021063311A1 (zh) 具有折叠屏的电子设备的显示控制方法及电子设备
WO2020029094A1 (zh) 一种语音控制命令生成方法及终端
WO2020238890A1 (zh) 信息处理方法和设备
WO2021052204A1 (zh) 基于通讯录的设备发现方法、音视频通信方法及电子设备
WO2021253975A1 (zh) 应用程序的权限管理方法、装置和电子设备
WO2020216160A1 (zh) 一种se的自动路由方法及电子设备
WO2020088633A1 (zh) 支付方法、装置和用户设备
WO2021093855A1 (zh) 一种移动设备管理方法及设备
CN111859418B (zh) 原子能力调用方法及终端设备
WO2021175266A1 (zh) 身份验证方法、装置和电子设备
WO2020056778A1 (zh) 一种屏蔽触摸事件的方法及电子设备
CN113641488A (zh) 一种基于用户使用场景进行资源优化的方法和装置
CN114090102B (zh) 启动应用程序的方法、装置、电子设备和介质
EP4210363A1 (en) Communicational connection establishment method and system, electronic device, and storage medium
US20240224357A1 (en) Data Download Method, Apparatus, and Terminal Device
CN114528581A (zh) 一种安全显示方法及电子设备
CN113676339A (zh) 组播方法、装置、终端设备及计算机可读存储介质
CN111492678B (zh) 一种文件传输方法及电子设备
WO2022048453A1 (zh) 解锁方法及电子设备
WO2020088318A1 (zh) 一种nfc应用的自动激活方法及终端
WO2020124447A1 (zh) 面向多卡的网络管理

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19880697

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2019880697

Country of ref document: EP

Effective date: 20210420

NENP Non-entry into the national phase

Ref country code: DE