WO2020216160A1 - 一种se的自动路由方法及电子设备 - Google Patents

一种se的自动路由方法及电子设备 Download PDF

Info

Publication number
WO2020216160A1
WO2020216160A1 PCT/CN2020/085520 CN2020085520W WO2020216160A1 WO 2020216160 A1 WO2020216160 A1 WO 2020216160A1 CN 2020085520 W CN2020085520 W CN 2020085520W WO 2020216160 A1 WO2020216160 A1 WO 2020216160A1
Authority
WO
WIPO (PCT)
Prior art keywords
nfc
application
electronic device
target
nfc application
Prior art date
Application number
PCT/CN2020/085520
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
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to US17/440,530 priority Critical patent/US11966910B2/en
Priority to EP20794285.5A priority patent/EP3917182A4/en
Priority to JP2021556961A priority patent/JP7336535B2/ja
Publication of WO2020216160A1 publication Critical patent/WO2020216160A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/30Payment architectures, schemes or protocols characterised by the use of specific devices or networks
    • G06Q20/32Payment architectures, schemes or protocols characterised by the use of specific devices or networks using wireless devices
    • G06Q20/327Short range or proximity payments by means of M-devices
    • G06Q20/3278RFID or NFC payments by means of M-devices
    • 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
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/50Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems
    • G06F21/57Certifying or maintaining trusted computer platforms, e.g. secure boots or power-downs, version controls, system software checks, secure updates or assessing vulnerabilities
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/30Payment architectures, schemes or protocols characterised by the use of specific devices or networks
    • G06Q20/32Payment architectures, schemes or protocols characterised by the use of specific devices or networks using wireless devices
    • G06Q20/326Payment applications installed on the mobile devices
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/30Payment architectures, schemes or protocols characterised by the use of specific devices or networks
    • G06Q20/34Payment architectures, schemes or protocols characterised by the use of specific devices or networks using cards, e.g. integrated circuit [IC] cards or magnetic cards
    • G06Q20/352Contactless payments by cards
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/40Authorisation, e.g. identification of payer or payee, verification of customer or shop credentials; Review and approval of payers, e.g. check credit lines or negative lists
    • G06Q20/401Transaction verification
    • G06Q20/4014Identity check for transactions
    • G06Q20/40145Biometric identity checks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/40Authorisation, e.g. identification of payer or payee, verification of customer or shop credentials; Review and approval of payers, e.g. check credit lines or negative lists
    • G06Q20/401Transaction verification
    • G06Q20/4015Transaction verification using location information
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/70Arrangements for image or video recognition or understanding using pattern recognition or machine learning
    • G06V10/82Arrangements for image or video recognition or understanding using pattern recognition or machine learning using neural networks
    • H04B5/70
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/54Organization of routing tables
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/40Security arrangements using identity modules
    • H04W12/45Security arrangements using identity modules using multiple identity modules
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/40Security arrangements using identity modules
    • H04W12/47Security arrangements using identity modules using near field communication [NFC] or radio frequency identification [RFID] modules
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/16Human faces, e.g. facial parts, sketches or expressions
    • G06V40/172Classification, e.g. identification
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/083Network architectures or network communication protocols for network security for authentication of entities using passwords
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0861Network architectures or network communication protocols for network security for authentication of entities using biometrical features, e.g. fingerprint, retina-scan
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/60Context-dependent security
    • H04W12/63Location-dependent; Proximity-dependent
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/60Context-dependent security
    • H04W12/68Gesture-dependent or behaviour-dependent

Definitions

  • the embodiments of the present application relate to the technical field of Near Field Communication (NFC), and in particular, to a security element (SE) automatic routing method and electronic equipment.
  • NFC Near Field Communication
  • SE security element
  • NFC is a short-range wireless communication technology that allows non-contact point-to-point data transmission between devices.
  • NFC has high security and has been more and more popular and accepted by the public in recent years.
  • the development of electronic devices with NFC functions is particularly rapid.
  • Electronic devices with NFC function can work in three modes: card reader mode, card emulation mode, and point-to-point mode.
  • the card simulation mode is used the most frequently.
  • the electronic device can be simulated as a non-contact integrated circuit (Integrated Circuit, IC) card, and the user can hold the electronic device to interact with the card reader to complete operations such as swiping bank cards, bus cards, or social security cards. Bring a lot of convenience.
  • IC integrated circuit
  • SE can provide a safe execution environment for the operation of NFC applications and a safe storage environment for its sensitive data.
  • an electronic device may have multiple SEs.
  • SE subscriber identification module
  • eSE electronic equipment manufacturers
  • HCE host card emulation
  • the NFC controller of the electronic device can determine which SE will accept the current NFC transaction by pointing the route to a certain SE.
  • One SE can simultaneously carry multiple NFC applications.
  • the electronic device can be simulated as a corresponding non-contact IC card to interact with the card reader.
  • the NFC application can be manually activated by the user or automatically activated by the electronic device.
  • the electronic device can 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.
  • AID Application Identifier
  • the SE pointed to by the route of the NFC controller can accept NFC transactions, that is, process transaction instructions.
  • the transaction instruction wants to access the NFC application carried in other SEs, the transaction cannot be performed.
  • the other SE is not the SE to which the route of the NFC controller points. Therefore, when the electronic device has multiple SEs, how to make the route of the NFC controller point to the SE where the NFC application to be accessed by the transaction instruction is located is an urgent problem to be solved.
  • the embodiments of the present application provide an SE automatic routing method and electronic equipment. Even if the electronic equipment includes multiple SEs, it can be automatically routed to the SE where the NFC application accessed by the transaction instruction is located.
  • an embodiment of the present application provides an electronic device, which includes an NFC controller and at least two SEs.
  • Each of the at least two SEs carries at least one NFC application.
  • the NFC controller stores the first identifiers and SE location information of multiple NFC applications.
  • the SE location information indicates the SE that carries the corresponding NFC application.
  • the NFC controller can receive the transaction instruction; in response to the transaction instruction carrying the first identifier, the NFC controller can search for the SE location information corresponding to the first identifier carried in the transaction instruction from the SE location information stored in the NFC control; the NFC controller according to The searched SE location information determines the first target SE from at least two SEs, and sends the transaction instruction to the first target SE.
  • the NFC controller can store the first identification and SE location information of multiple NFC applications; therefore, after the electronic device receives the transaction instruction carrying the first identification, it can, according to the first identification carried in the transaction instruction, Determine the SE location information of the NFC application to be accessed by the transaction instruction. That is, the electronic device can determine in which SE the NFC application to be accessed by the transaction instruction is carried.
  • the NFC controller can automatically route to the SE where the NFC application to be accessed by the transaction instruction is located according to the first identifier carried in the transaction instruction.
  • the first target SE may receive the transaction instruction, and determine the first target NFC application from the NFC applications carried by the first target SE according to the first identifier carried in the transaction instruction; A target SE runs the first target NFC application and executes transaction instructions.
  • the target SE may send the transaction instruction to the NFC application accessed by the transaction instruction according to the first identifier carried by the transaction instruction, and the NFC application accessed by the transaction instruction executes the transaction instruction to complete the transaction.
  • the above-mentioned first identifier is an AID.
  • the first identifier includes but is not limited to AID.
  • the NFC management application of the first target NFC application carries the first identifier of the first target NFC application and the SE location information of the first target NFC application.
  • the SE location information of the first target NFC application indicates the first target SE carrying the first target NFC application.
  • the NFC management application is used to manage one or more NFC applications.
  • the NFC controller is configured to receive the first identifier of the first target NFC application and the SE location information of the first target NFC application that are transmitted when the NFC management application of the first target NFC application registers with the default payment application of the electronic device.
  • the NFC management application of the first target NFC application when installed, it registers with the default payment application of the electronic device; the NFC controller is also used to save the first identification of the first target NFC application and the SE location information of the first target NFC application .
  • the above sending a transaction instruction to the first target SE may include: if the first target SE is the SE pointed to by the route of the NFC controller, the NFC controller may directly The transaction instruction is received and transmitted to the first target SE, the first target SE sends the transaction instruction to the NFC application accessed by the transaction instruction, and the NFC application accessed by the transaction instruction executes the transaction instruction to complete the transaction.
  • the NFC controller can modify the route to point to the first target SE, and then transmit the received transaction instruction to the SE, and the SE to the one accessed by the transaction instruction.
  • the NFC application accessed by the NFC application sending the transaction instruction, and the NFC application accessed by the transaction instruction executes the transaction instruction to complete the transaction.
  • the SE indicated by the above SE location information may be the SE pointed to by the route of the NFC controller, or may not be the SE pointed to by the route of the NFC controller.
  • the electronic device finds the SE location information corresponding to the first identifier, it can determine that the SE indicated by the SE location information is the SE pointed to by the route of the NFC controller. If the SE indicated by the SE location information is the SE pointed to by the route of the NFC controller, the NFC controller can directly transmit the received transaction instruction to the SE, and the SE will send the transaction instruction to the NFC application accessed by the transaction instruction. The NFC application accessed by the transaction instruction executes the transaction instruction to complete the transaction.
  • the NFC controller can modify the route to point to the SE, and then transmit the received transaction instruction to the SE, and the SE to the one accessed by the transaction instruction
  • the NFC application sends a transaction instruction, and the NFC application accessed by the transaction instruction executes the transaction instruction to complete the transaction.
  • not all NFC applications support and use the first identification (such as AID). Take, for example, that the first identifier is AID. For example, some bus cards do not support and use AID. Therefore, the transaction instruction received by the NFC controller of the electronic device does not include the first identifier. Based on this situation, the processor of the electronic device may store usage scenario information, SE location information, and second identifiers of one or more non-standard NFC applications.
  • the electronic device may maintain a non-standard card information table.
  • the non-standard card information table may include query information of non-standard NFC applications installed in the electronic device.
  • the query information of the non-standard NFC application may include usage scenario information of the non-standard NFC application, SE location information, and the second identifier.
  • non-standard NFC applications do not support AID.
  • the second identifier is used to identify non-standard NFC applications, and the second identifier is not the first identifier (such as AID).
  • the use scene information is used to indicate the use of scene information corresponding to the non-standard NFC application.
  • the processor can obtain the current scene information of the electronic device; the processor searches for the current scene information from the usage scene information of one or more non-standard NFC applications Corresponding usage scenario information, and determine the second identifier and SE location information corresponding to the found usage scenario information; the processor determines the second target SE from the at least two SEs according to the found SE location information, and forwards the second target SE to the second target
  • the SE sends a transaction instruction; the second target SE receives the transaction instruction; the processor indicates the found second identifier to the second target SE; the second target SE uses the NFC application carried by the second target SE according to the second identifier indicated by the processor
  • the second target NFC application is determined in, and the second target NFC application is a non-standard NFC application; the second target SE runs the second target NFC application and executes transaction instructions.
  • the electronic device can determine the SE where the non-standard NFC application to be accessed by the transaction instruction is located according to the current scene information of the electronic device after receiving the transaction instruction. That is, automatic routing of the SE where the non-standard NFC application accessed by the transaction instruction is located can be realized.
  • the non-standard NFC application to be accessed by the transaction instruction can also be determined according to the current scene information of the electronic device. In this way, the SE can send transaction instructions to the non-standard NFC application that the transaction instruction needs to access.
  • the above-mentioned NFC controller may store a routing table, and the routing table includes the first identifiers of multiple NFC applications and SE location information.
  • the routing table may also include a non-standard card default item, which is used to point to the SE corresponding to the current scene information of the electronic device when the transaction instruction does not carry the first identifier.
  • the processor may determine the second target SE from at least two SEs according to the found SE location information, and indicate the second target SE to the NFC controller.
  • the NFC controller can configure the default item of the non-standard card to point to the second target SE.
  • the NFC controller may send a transaction instruction to the second target SE pointed to by the default item of the non-standard card.
  • the second target SE indicated by the SE location information corresponding to the current scene information may be the SE pointed to by the route of the NFC controller, or may not be NFC controlled.
  • the electronic device can determine whether the SE indicated by the SE location information is the SE pointed to by the non-standard card default entry in the routing table. If the SE indicated by the SE location information is the SE pointed to by the default item of the non-standard card, the NFC controller can directly transmit the received transaction instruction to the SE, and the SE will automatically activate the identification corresponding to the current scene information.
  • Non-standard NFC application execute the transaction instruction to complete the transaction.
  • the NFC controller can configure the default item of the non-standard card in the routing table to point to the SE, and then transmit the received transaction instruction to the SE SE, the SE automatically activates the non-standard NFC application indicated by the identifier corresponding to the current scene information, and executes the transaction instruction to complete the transaction.
  • the above-mentioned scene information includes at least one or more of geographic location information, time information, and operation information; the geographic location information is used to indicate that the corresponding non-standard NFC application can be used The geographic location used; the time information is used to indicate the time when the corresponding non-standard NFC application can be used; the operation information is used to indicate the user's operation of the electronic device before the corresponding non-standard NFC application is used.
  • the first SE of the above at least two SEs carries the first NFC application and the second NFC application; wherein, the verification of the NFC service supported by the first NFC application
  • the method is direct card swiping mode without user authentication.
  • the first NFC application may be a "bus card” application.
  • the verification mode of the NFC service supported by the second NFC application is a required verification mode, and user verification is required.
  • the second NFC application may be a "bank card” application.
  • the "bank card” application corresponds to a verification mode that requires user verification (such as password verification, fingerprint verification, face verification, iris verification, voiceprint verification, behavior verification, etc.) to complete the transaction.
  • the "Bus Card” application corresponds to the direct card swiping mode, and transactions can be completed without user verification.
  • the processor of the electronic device activates the first NFC application in response to the user's setting operation to set the first NFC application as the default NFC application in the electronic device; the processor responds to the user's preset shortcut operation to deactivate the first NFC application.
  • the NFC application automatically activates the second NFC application to set the second NFC application as the default NFC application in the electronic device.
  • the aforementioned first NFC application may be a default NFC application under normal conditions
  • the aforementioned second NFC application may be a temporary default NFC application.
  • the default NFC application in the electronic device can be the above-mentioned first NFC application (the first NFC application can be set as the default NFC application by the user); in this way, the user can use the electronic device at any time to communicate with the first NFC application.
  • a card reader or POS device corresponding to an NFC application completes the transaction.
  • the user wants to use the above-mentioned second NFC application to pay he can input a preset shortcut operation in the electronic device.
  • the electronic device can temporarily set the above-mentioned second NFC application as the default NFC application, so that the electronic device can complete the transaction with the card reader or POS device corresponding to the second NFC application.
  • NFC applications do not require the user to frequently set the default NFC application in the NFC management application.
  • the electronic device can complete a transaction with the card reader or POS device corresponding to the first NFC application at any time; and, in response to a preset shortcut operation, the card reader or POS device corresponding to the second NFC application can complete the transaction.
  • an embodiment of the present application provides an electronic device that includes a processor and at least two security units SE, and the first SE of the at least two SEs carries a first NFC application and a second NFC application,
  • the verification method of the NFC service supported by the first NFC application is the direct card swiping mode without user verification;
  • the verification method of the NFC service supported by the second NFC application is the verification mode requiring user verification;
  • user verification is at least password verification, Any of fingerprint verification, face verification, iris verification, voiceprint verification, behavior verification, etc.
  • the processor activates the first NFC application in response to the user's setting operation to set the first NFC application as the default NFC application in the electronic device; the processor deactivates the first NFC application in response to the user's preset shortcut operation, and automatically activates The second NFC application is to set the second NFC application as the default NFC application in the electronic device.
  • an embodiment of the present application provides an SE automatic routing method, which is characterized in that it is applied to electronic equipment.
  • the electronic device includes at least two SEs, and each of the at least two SEs carries at least one NFC application.
  • the electronic device stores the first identifiers of multiple NFC applications and SE location information, and the SE location information indicates the SE carrying the corresponding NFC application.
  • the method may include: the electronic device receives the transaction instruction; in response to the transaction instruction carrying the first identifier, the electronic device searches for the SE location information corresponding to the first identifier carried in the transaction instruction from the stored SE location information;
  • the first target SE is determined from at least two SEs.
  • the above-mentioned electronic device may also determine the first target NFC application from the NFC applications carried by the first target SE according to the first identifier carried in the transaction instruction;
  • the target SE runs the first target NFC application and executes transaction instructions.
  • the above-mentioned first identifier is AID.
  • the NFC management application of the first target NFC application carries the first identification of the first target NFC application and the SE location information of the first target NFC application, and the first target NFC application
  • the location information of the SE indicates the first target SE that carries the first target NFC application; the NFC management application is used to manage one or more NFC applications.
  • the above method may further include: the electronic device obtains the first identifier of the first target NFC application and the SE location information of the first target NFC application that are transmitted when the NFC management application of the first target NFC application registers with the default payment application of the electronic device; Wherein, when the NFC management application is installed, register with the default payment application; the electronic device saves the first identification of the first target NFC application and the SE location information of the first target NFC application.
  • the above-mentioned electronic device also saves usage scenario information, SE location information, and second identification of one or more non-standard NFC applications; non-standard NFC applications do not support AID;
  • the second identifier is used to identify the non-standard NFC application, the second identifier is not the first identifier (such as AID); the usage scenario information is used to indicate the use of the corresponding non-standard NFC application scenario information.
  • the above method may further include: the electronic device obtains current scene information of the electronic device in response to the transaction instruction not carrying the first identifier; the electronic device searches for the usage corresponding to the current scene information from the usage scene information of one or more non-standard NFC applications Scene information, and determine the second identifier and SE location information corresponding to the found use scene information; the electronic device determines the second target SE from at least two SEs according to the found SE location information; the electronic device determines the second target SE according to the found first
  • the second identification is to determine the second target NFC application from the NFC applications carried by the second target SE; the electronic device runs the second target NFC application through the second target SE, and executes the transaction instruction.
  • the above-mentioned electronic device stores a routing table, and the routing table includes first identifiers of multiple NFC applications and SE location information.
  • the routing table also includes a non-standard card default item, which is used to point to the SE corresponding to the current scene information of the electronic device when the transaction instruction does not carry the first identifier.
  • the electronic device determines the second target SE from at least two SEs according to the searched SE location information, including: the electronic device determines the second target SE from the at least two SEs according to the searched SE location information, and configures the non- The standard card default item points to the second target SE.
  • the above-mentioned scene information includes at least one or more of geographic location information, time information, and operation information; the geographic location information is used to indicate that the corresponding non-standard NFC application can be used The geographic location used; the time information is used to indicate the time when the corresponding non-standard NFC application can be used; the operation information is used to indicate the user's operation of the electronic device before the corresponding non-standard NFC application is used.
  • the first SE of the above at least two SEs carries the first NFC application and the second NFC application; wherein, the verification of the NFC service supported by the first NFC application
  • the method is direct card swiping mode, no user verification is required;
  • the verification method of the NFC service supported by the second NFC application is the verification mode that requires user verification;
  • user verification is at least password verification, fingerprint verification, face verification, iris verification, Any one of voiceprint authentication, behavior authentication, etc.
  • the above method may further include: in response to the user's setting operation, the electronic device activates the first NFC application to set the first NFC application as the default NFC application in the electronic device; the electronic device responds to the user's preset shortcut operation to deactivate the first NFC application An NFC application automatically activates the second NFC application to set the second NFC application as the default NFC application in the electronic device.
  • the above electronic device deactivates the second NFC after the second NFC application completes the transaction, or after the electronic device automatically activates the second NFC application for a preset time Application, automatically activate the first NFC application to set the first NFC application as the default NFC application in the electronic device.
  • an embodiment of the present application provides a method for automatically activating an NFC application.
  • the method can be applied to an electronic device.
  • the electronic device includes at least two SEs, and the first SE of the at least two SEs carries the first NFC application.
  • the verification method of the NFC service supported by the first NFC application is the direct swiping mode without user authentication;
  • the verification method of the NFC service supported by the second NFC application is the authentication mode requiring user authentication; users
  • the verification is at least any one of password verification, fingerprint verification, face verification, iris verification, voiceprint verification, behavior verification, etc.
  • the method may include: in response to the user's setting operation, the electronic device activates the first NFC application to set the first NFC application as the default NFC application in the electronic device; and the electronic device responds to the user's preset shortcut operation to deactivate the first NFC application.
  • the NFC application automatically activates the second NFC application to set the second NFC application as the default NFC application in the electronic device.
  • the above method may further include: after the electronic device completes the transaction by the second NFC application, or after a preset time from the automatic activation of the second NFC application, the electronic device The second NFC application is activated, and the first NFC application is automatically activated to set the first NFC application as the default NFC application in the electronic device.
  • an embodiment of the present application provides an NFC chip
  • the NFC chip includes an NFC controller
  • the NFC controller saves the first identification of multiple NFC applications and the location information of the security unit SE, and the SE location information indicates that the corresponding NFC application is carried SE.
  • the NFC controller receives the transaction instruction; in response to the transaction instruction carrying the first identifier, the NFC controller searches for the SE location information corresponding to the first identifier carried in the transaction instruction from the SE location information stored in the NFC control; the NFC controller finds According to the location information of the SE, the first target SE is determined from at least two SEs; the NFC controller sends a transaction instruction to the first target SE.
  • the above-mentioned first identifier may be an AID.
  • the NFC management application of the first target NFC application carries the first identifier of the first target NFC application and the SE location information of the first target NFC application, and the first target NFC application
  • the location information of the SE indicates the first target SE that carries the first target NFC application; the NFC management application is used to manage one or more NFC applications.
  • the NFC controller is configured to receive the first identification of the first target NFC application and the SE location information of the first target NFC application that are transmitted when the NFC management application of the first target NFC application registers with the default payment application of the electronic device; wherein, When the NFC management application of the first target NFC application is installed, it registers with the default payment application of the electronic device; the NFC controller is also used to save the first identification of the first target NFC application and the SE location information of the first target NFC application.
  • the SE location information of a target NFC application indicates the first target SE carrying the first target NFC application.
  • the above-mentioned NFC controller sends a transaction instruction to the first target SE, including: the NFC controller is specifically configured to: if the first target SE is the route of the NFC controller If the first target SE is not the SE pointed to by the route of the NFC controller, the NFC controller can modify the route to point to the first target SE, and then send the transaction instruction to the first target SE. SE sends trading instructions.
  • the above-mentioned NFC controller saves a routing table, and the routing table includes the first identifiers of multiple NFC applications and SE location information.
  • the routing table also includes a non-standard card default item, which is used to point to the SE corresponding to the current scene information of the electronic device when the transaction instruction does not carry the first identifier.
  • the NFC controller is also used to receive indication information for indicating the second target SE when the first identifier is not carried in the transaction instruction; configure the non-standard card default item to point to the second target SE.
  • the NFC controller is also used to send a transaction instruction to the second target SE pointed to by the default item of the non-standard card.
  • the above-mentioned NFC controller is also used to send transaction instructions to the second target SE pointed to by the default item of the non-standard card, including: the NFC controller, specifically used for:
  • the second target SE is the SE pointed to by the default item of the non-standard card, and the NFC controller can directly send a transaction instruction to the second target SE pointed to by the default item of the non-standard card; if the second target SE is not the default item of the non-standard card
  • the NFC controller can configure the non-standard card default item in the routing table to point to the second target SE, and then send a transaction instruction to the second target SE pointed to by the non-standard card default item.
  • an embodiment of the present application provides a computer storage medium.
  • the computer storage medium may include computer instructions.
  • the computer instructions run on an electronic device, the electronic device executes the third and fourth aspects as well as Any one of the possible design methods.
  • the embodiments of the present application provide a computer program product.
  • the computer program product When the computer program product is run on a computer, the computer can execute as described in the third aspect, the fourth aspect and any of the possible design methods. The method described.
  • the computer program product described in the aspect can be implemented in the electronic device described in the first aspect, the second aspect and any one of the possible design methods. Therefore, the beneficial effects that can be achieved can refer to the corresponding The beneficial effects in the electronic equipment will not be repeated here.
  • FIG. 1A is a schematic diagram of an NFC communication system provided by an embodiment of this application.
  • 1B is a schematic diagram of three SEs of an electronic device provided by an embodiment of this application.
  • FIG. 2 is a schematic block diagram of a registration and use process of an NFC application provided by an embodiment of the application
  • FIG. 3 is a schematic diagram of the hardware structure of an electronic device provided by an embodiment of the application.
  • FIG. 4 is a schematic block diagram of another NFC application registration and use process provided by an embodiment of the application.
  • 5A is a flowchart of an SE automatic routing method provided by an embodiment of this application.
  • FIG. 5B is a schematic diagram of a handover example of a default NFC application provided by an embodiment of the application.
  • FIG. 6 is a schematic diagram of another example of switching of a default NFC application provided by an embodiment of the application.
  • FIG. 7 is a schematic diagram of another example of switching of a default NFC application provided by an embodiment of the application.
  • FIG. 8 is a schematic diagram of another example of switching of a default NFC application provided by an embodiment of the application.
  • first and second are only used for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Thus, the features defined with “first” and “second” may explicitly or implicitly include one or more of these features. In the description of the embodiments of the present application, unless otherwise specified, “plurality” means two or more.
  • FIG. 1A shows a schematic diagram of an NFC communication system provided by an embodiment of the present application.
  • the NFC communication system may include an electronic device 100 and an external card reader 101.
  • the electronic device 100 and the external card reader 101 both include an NFC chip, and can communicate through NFC.
  • the external card reader 101 may be a bank POS machine, a bus POS machine, or a car door card reader as shown in FIG. 2.
  • the external card reader 101 may also be a social security card reader or the like. The embodiment of the present application does not limit the specific form of the external card reader 101.
  • NFC application It is an application program used to realize short-distance communication, which has an emulation function for simulating a contactless IC card. According to different application scenarios, NFC applications can be divided into different types. For example, bus applications, access control applications, bank card applications, etc.
  • NFC applications have AID, but not all NFC applications support and use AID.
  • the NFC application using AID supports AID identification, that is, the electronic device 100 can identify the NFC application accessed by the transaction instruction according to the AID carried in the transaction instruction.
  • the electronic device 100 needs to include three functional entities to implement card simulation, namely: a device host (DH), an NFC controller (NFC controller, NFCC), and an SE. among them:
  • DH device host
  • NFC controller NFC controller
  • SE SE. among them:
  • DH Can be responsible for the management of NFCC, such as initialization, configuration and power management.
  • the NFCC It can be responsible for the physical transmission of data through the antenna.
  • the DH may be included in the main chip of the electronic device 100
  • the NFCC may be included in the NFC chip of the electronic device 100.
  • SE It can be responsible for providing a secure execution environment (such as authentication, authorization, etc.) and an environment for sensitive data storage for NFC applications.
  • SE is a security unit chip. The SE can carry multiple NFC applications at the same time.
  • the electronic device 100 may have one or more SEs. If the electronic device 100 has multiple SEs, these SEs may exist in different forms.
  • the electronic device 100 may have three SEs.
  • the three SEs can be: SE 1 in the form of a subscriber identification module (SIM) card, SE 2 packaged with an NFC chip, and the main chip of the electronic device 100 (as shown in Figure 1B) ESE in the form of an application processor (AP).
  • SIM subscriber identification module
  • AP application processor
  • SE 3 the hardware of the SE (SE 3 shown in Figure 1B) is deployed in a server located in the cloud. Among them, SE 3 is called host card emulation (HCE).
  • HCE host card emulation
  • SE may also exist in the electronic device 100 in other forms.
  • SE in the form of SD card is another example.
  • UICC Universal Integrated Circuit Card
  • the NFC application After the NFC application is downloaded to the corresponding SE, the NFC application can be registered in the "default payment application" (that is, S1 shown in FIG. 2 is executed). In this way, when the user uses a certain NFC application, the default NFC application can be set in the selection interface of the default payment application of the electronic device.
  • the user can control the electronic device 100 to display the selection interface of the default payment application through the following operations: the user clicks the application icon of the "Settings" application, the electronic device 100 displays the settings interface; the user clicks the "NFC” option in the settings interface, and the electronic device 100 displays the NFC setting interface; the user clicks on the "default payment application” option in the NFC setting interface, and the electronic device 100 displays the selection interface of the default payment application.
  • the selection interface of the default payment application includes one or more options for NFC management applications (for managing one or more NFC applications) and one or more options for NFC applications.
  • the selection interface of the default payment application can include the "wallet” (such as Huawei wallet) application (ie, the NFC management application) in the NFC APP 201 in Figure 2, as well as the "car key” application, "social security card” application and " NFC payment APP” application (ie NFC application) option.
  • the "wallet” application is an NFC management application used to manage the NFC applications “bank card” application and "bus card” application.
  • the "NFC payment APP" application may be the "JD Pay” application shown in Figure 2.
  • the user clicks an option of an NFC application (a standalone NFC application, such as a "social insurance card” application) in the selection interface of the default payment application, it means that the user selects the NFC application (such as a "social insurance card” application) as the default NFC application.
  • the NFC management application of "standalone NFC application” in the embodiment of the present application only includes one NFC application. That is, only one NCF application is managed in the NFC management application. For example, suppose that the "social security card" application shown in Figure 2 is a standalone NFC application.
  • the NFC management application manages multiple NFC applications, such as the "wallet” application to manage the "bank card” application and the "bus card” application
  • the user You can continue to select an NFC application such as the "bank card” application
  • the NFC applications such as the "bank card” application and the "bus card” application
  • the NFC management application such as the "wallet” application
  • the NFCC can modify the routing table in the NFCC (ie, execute S2 in Figure 2) so that the routing table points to the SE where the default NFC application is located. In this way, after the NFCC receives any transaction instruction, the routing table in the NFCC points to the SE. That is, the route of the NFC controller points to the SE.
  • the NFCC can modify the routing table in the NFCC (that is, execute S2 in FIG. 2), so that the routing table points to SE 1. In this way, after the NFCC receives any transaction instruction, the routing table in the NFCC points to SE 1. That is, the route of the NFC controller points to the SE 1.
  • the NFCC can modify the routing table in the NFCC (that is, execute S2 in Figure 2), so that the routing table points to SE 2.
  • the routing table in the NFCC all points to SE 2. That is, the route of the NFC controller points to the SE 2.
  • the SE pointed to by the NFCC route can accept NFC transactions, that is, process transaction instructions.
  • the transaction instruction wants to access the NFC application carried in other SEs, the transaction cannot be performed.
  • the other SE is not the SE to which the route of the NFC controller points. Specifically, since the route of the NFC controller cannot point to the SE where the NFC application to be accessed by the transaction instruction is located; therefore, the NFC controller cannot send the transaction instruction to the SE, so that the NFC application in the SE cannot execute the transaction instruction, resulting in The transaction could not be completed.
  • the route of the NFCC points to the SE 1 in the form of a SIM card as an example.
  • the electronic device 100 can receive the transaction instruction sent by the card reader (or POS device).
  • the NFC application accessed by the transaction instruction (the "social security card” application shown in Figure 2) is carried in SE 1
  • the NFC controller can send the transaction instruction to SE 1
  • the corresponding NFC application ( The "social security card” application shown in Figure 2) executes a transaction instruction to complete the transaction.
  • the NFC application accessed by the transaction instruction (the "car key” application shown in Figure 2) is not carried in SE 1, but it is carried in SE 2 or SE 3 (the “car key” shown in Figure 2)
  • the application is carried in SE 2). Since the route of the NFC controller cannot point to SE 2 or SE 3, the NFC controller cannot send transaction instructions to SE 2 or SE 3. Therefore, the NFC application in SE 2 or SE 3 cannot execute this Transaction instructions, which in turn caused the transaction to fail to complete.
  • This embodiment provides an SE automatic routing method, which can be applied to an electronic device with multiple SEs, and the electronic device has an NFC function. In the method provided in this embodiment, even if the electronic device has multiple SEs, it can be automatically routed to the SE where the NFC application accessed by the transaction instruction is located.
  • FIG. 3 shows a schematic structural diagram of the electronic device 100 provided in this embodiment.
  • the electronic device 100 may include a processor 310, an external memory interface 320, an internal memory 321, a universal serial bus (USB) interface 330, a charging management module 340, a power management module 341, and a battery 342 , Antenna 1, antenna 2, mobile communication module 350, wireless communication module 360, audio module 370, speaker 370A, receiver 370B, microphone 370C, earphone interface 370D, sensor module 380, buttons 390, motor 391, indicator 392, camera 393 , Display 394, and SIM card interface 395, etc.
  • USB universal serial bus
  • the sensor module 380 may include pressure sensor 380A, gyroscope sensor 380B, air pressure sensor 380C, magnetic sensor 380D, acceleration sensor 380E, distance sensor 380F, proximity light sensor 380G, fingerprint sensor 380H, temperature sensor 380J, touch sensor 380K, environment Light sensor 380L, bone conduction sensor 380M, etc.
  • the structure illustrated in this embodiment does not constitute a specific limitation on the electronic device 200.
  • the electronic device 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 310 may include one or more processing units.
  • the processor 310 may include an AP, a modem processor, a graphics processing unit (GPU), and an image signal processor (ISP), Controller, memory, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (NPU), etc.
  • the different processing units may be independent devices or integrated in one or more processors.
  • the electronic device 100 may include an SE in the form of an AP, which may be referred to as an eSE.
  • an SE in the form of an AP, which may be referred to as an eSE.
  • the hardware of the SE (SE 3 shown in Figure 1B) is deployed in a server located in the cloud.
  • the controller may be the nerve center and command center of the electronic device 100.
  • the controller can generate operation control signals according to the instruction operation code and timing signals to complete the control of fetching and executing instructions.
  • a memory may also be provided in the processor 310 to store instructions and data.
  • the memory in the processor 310 is a cache memory.
  • the memory can store instructions or data that have just been used or recycled by the processor 310. If the processor 310 needs to use the instruction or data again, it can be directly called from the memory. Repeated accesses are avoided, the waiting time of the processor 310 is reduced, and the efficiency of the system is improved.
  • the charging management module 340 is used to receive charging input from the charger.
  • the charger can be a wireless charger or a wired charger.
  • the power management module 341 is used to connect the battery 342, the charging management module 340 and the processor 310.
  • the power management module 341 receives input from the battery 342 and/or the charge management module 340, and supplies power to the processor 310, the internal memory 321, the external memory, the display screen 394, the camera 393, and the wireless communication module 360.
  • the wireless communication function of the electronic device 100 can be implemented by the antenna 1, the antenna 2, the mobile communication module 350, the wireless communication module 360, the modem processor, and the baseband processor.
  • the antenna 1 and the antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in the electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization.
  • antenna 1 can be multiplexed as a diversity antenna of a wireless local area network.
  • the antenna can be used in combination with a tuning switch.
  • the mobile communication module 350 may provide a wireless communication solution including 2G/3G/4G/5G and the like applied to the electronic device 100.
  • the mobile communication module 350 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), and so on.
  • the mobile communication module 350 can receive electromagnetic waves from the antenna 1, and perform processing such as filtering and amplifying the received electromagnetic waves, and then transmitting them to the modem processor for demodulation.
  • the mobile communication module 350 can also amplify the signal modulated by the modem processor, and convert it into electromagnetic waves for radiation by the antenna 1.
  • the wireless communication module 360 can provide applications on the electronic device 100 including NFC, wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (bluetooth, BT), Global navigation 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 360 may be one or more devices integrating at least one communication processing module.
  • the wireless communication module 360 receives electromagnetic waves via the antenna 2, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 310.
  • the wireless communication module 360 may also receive the signal to be sent from the processor 310, perform frequency modulation, amplify, and convert it into electromagnetic waves through the antenna 2 and radiate it out.
  • the wireless communication module 360 may include an NFC chip, and the NFC chip may include NFCC.
  • the NFC chip can perform processing such as signal amplification, analog-to-digital conversion, digital-to-analog conversion, and storage.
  • the DH is included in the main chip of the electronic device 100. The DH may be integrated with the processor of the electronic device 100.
  • the electronic device 100 may include an SE 2 packaged with an NFC chip.
  • the SE 2 is packaged in the NFC chip of the electronic device 100.
  • the antenna 1 of the electronic device 100 is coupled with the mobile communication module 350, and the antenna 2 is coupled with the wireless communication module 360, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology.
  • the electronic device 100 implements a display function through a GPU, a display screen 394, and an application processor.
  • the GPU is a microprocessor for image processing, connected to the display screen 394 and the application processor.
  • the GPU is used to perform mathematical and geometric calculations for graphics rendering.
  • the processor 310 may include one or more GPUs that execute program instructions to generate or change display information.
  • the display screen 394 is used to display text, images, videos, and the like.
  • the electronic device 100 can implement a shooting function through an ISP, a camera 393, a video codec, a GPU, a display screen 394, and an application processor.
  • the ISP is used to process the data fed back by the camera 393. For example, when taking a picture, the shutter is opened, the light is transmitted to the photosensitive element of the camera through the lens, the light signal is converted into an electrical signal, and the photosensitive element of the camera transfers the electrical signal to the ISP for processing and 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 393.
  • the camera 393 is used to capture still images or videos.
  • the object generates an optical image through the lens and projects it to the photosensitive element.
  • the photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor.
  • 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.
  • ISP outputs digital image signals to DSP for processing.
  • DSP converts digital image signals into standard RGB, YUV and other formats.
  • the electronic device 100 may include 1 or N cameras 393, and N is a positive integer greater than 1.
  • Digital signal processors are used to process digital signals. In addition to digital image signals, they can also process other digital signals. For example, when the electronic device 100 selects the frequency point, the digital signal processor is used to perform Fourier transform on the energy of the frequency point.
  • Video codecs are used to compress or decompress digital video.
  • the electronic device 100 may support one or more video codecs. In this way, the electronic device 100 can play or record videos in a variety of encoding formats, such as: moving picture experts group (MPEG) 1, MPEG2, MPEG3, MPEG4, and so on.
  • MPEG moving picture experts group
  • the NPU is a neural-network (NN) computing processor.
  • NN neural-network
  • the NPU can realize applications such as intelligent cognition of the electronic device 100, such as image recognition, face recognition, voice recognition, text understanding, and so on.
  • the external memory interface 320 may be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100.
  • the external memory card communicates with the processor 310 through the external memory interface 320 to realize the data storage function. For example, save music, video and other files in an external memory card.
  • the electronic device 100 may include an SE in the form of an external memory card.
  • the internal memory 321 may be used to store computer executable program code, where the executable program code includes instructions.
  • the processor 310 executes various functional applications and data processing of the electronic device 100 by running instructions stored in the internal memory 321.
  • the internal memory 321 may include a storage program area and a storage data area.
  • the electronic device 100 can implement audio functions through an audio module 370, a speaker 370A, a receiver 370B, a microphone 370C, a headset interface 370D, and an application processor. For example, music playback, recording, etc.
  • the audio module 370 is used to convert digital audio information into an analog audio signal for output, and is also used to convert an analog audio input into a digital audio signal.
  • the audio module 370 can also be used to encode and decode audio signals.
  • the audio module 370 may be provided in the processor 310, or part of the functional modules of the audio module 370 may be provided in the processor 310.
  • the speaker 370A also called a “speaker” is used to convert audio electrical signals into sound signals.
  • the electronic device 100 can listen to music through the speaker 370A, or listen to a hands-free call.
  • the receiver 370B also called “earpiece”, is used to convert audio electrical signals into sound signals. When the electronic device 100 answers a call or voice message, it can receive the voice by bringing the receiver 370B close to the human ear.
  • Microphone 370C also called “microphone”, “microphone”, is used to convert sound signals into electric signals.
  • the electronic device 100 may be provided with at least one microphone 370C.
  • the electronic device 100 can be provided with two microphones 370C, which can implement noise reduction functions in addition to collecting sound signals.
  • the electronic device 100 may also be provided with three, four or more microphones 370C to collect sound signals, reduce noise, identify sound sources, and realize directional recording functions.
  • the earphone interface 370D is used to connect wired earphones.
  • the earphone interface 370D may be a USB interface 330, or a 3.5mm open mobile terminal platform (OMTP) standard interface, or a cellular telecommunications industry association (cellular telecommunications industry association of the USA, CTIA) standard interface.
  • OMTP open mobile terminal platform
  • CTIA cellular telecommunications industry association
  • the button 390 may include a power button, a volume button, and so on.
  • the button 390 may be a mechanical button. It can also be a touch button.
  • the electronic device 100 may receive key input, and generate key signal input related to user settings and function control of the electronic device 100.
  • the motor 391 can generate vibration prompts. Different application scenarios (for example: time reminding, receiving information, alarm clock, games, etc.) can also correspond to different vibration feedback effects.
  • the indicator 392 can be an indicator light, which can be used to indicate the charging status, power change, and can also be used to indicate messages, missed calls, notifications, and so on.
  • the SIM card interface 395 is used to connect to the SIM card.
  • the SIM card can be connected to and separated from the electronic device 100 by inserting into the SIM card interface 395 or pulling out from the SIM card interface 395.
  • the electronic device 100 may support 1 or N SIM card interfaces, and N is a positive integer greater than 1.
  • the SIM card interface 395 can support Nano SIM cards, Micro SIM cards, SIM cards, etc.
  • the electronic device 100 may include an SE 1 in the form of a SIM card.
  • the SE 1 is packaged in the SIM card of the electronic device 100.
  • the technical solutions involved in the following embodiments can all be implemented in the electronic device 100 having the above hardware architecture.
  • the following describes in detail the automatic routing method of SE provided in this embodiment.
  • the electronic device has three SEs (as shown in FIG. 1B) as an example for introduction.
  • the identifier of the NFC application in the embodiment of the present application may be a first identifier or a second identifier
  • the first identifier is an identifier of a standard NFC application
  • the second identifier is an identifier of a non-standard NFC application.
  • the first identifier may be an AID
  • a standard NFC application refers to an NFC application that supports AID.
  • the second identifier is not AID, and non-standard NFC applications do not support AID.
  • the embodiment of the present application provides an automatic routing method for SE.
  • the electronic device 100 can download multiple NFC applications from the server.
  • the multiple NFC applications may be carried in one or more SEs of the electronic device 100.
  • Each SE can carry at least one NFC application.
  • the user can set a default NFC application in the electronic device 100, for example, the user sets the NFC application 1 as the default NFC application in the electronic device 100.
  • the NFC application 1 is carried in the SE 1
  • the route of the NFCC of the electronic device 100 points to the SE 1.
  • the NFC application to be accessed by the transaction instruction received by the electronic device 100 may not be the NFC application in SE 1.
  • the NFC application to be accessed by the transaction instruction may be NFC application 2, and NFC application 2 is carried in SE 2. Since the route of the NFCC of the electronic device 100 does not point to SE 1, the transaction cannot be performed.
  • the electronic device 100 (the NFCC of the electronic device 100) can automatically route to the SE where the NFC application to be accessed by the transaction instruction is located. Interact with card readers or POS devices to complete transactions.
  • the NFCC of the electronic device 100 may store the first identification and SE location information of multiple NFC applications.
  • the SE location information indicates the SE that carries the corresponding NFC application.
  • the NFCC of the electronic device 100 may maintain a routing table.
  • the NFCC of the electronic device 100 may configure one or more NFC application routing information in the routing table, and the NFC application routing information may include the first identification of the NFC application and SE location information.
  • the SE location information indicates the SE carrying the NFC application, that is, in which SE of the electronic device 100 the NFC application is carried.
  • the above-mentioned first identifier may be the AID of the NFC application.
  • the first identifier includes but is not limited to AID.
  • the NFCC of the electronic device 100 can receive the transaction instruction from the card reader or POS device.
  • the transaction instruction may include the first identifier (such as AID), or the transaction instruction may not include the first identifier. Therefore, as shown in FIG. 5A, after receiving the transaction instruction, the NFCC of the electronic device 100 can determine whether the transaction instruction includes an AID. If the transaction instruction includes an AID, the SE location information corresponding to the AID can be searched from the routing table; then, the received transaction instruction is transmitted to the SE (ie, the first target SE) indicated by the SE location information. In other words, the NFCC can automatically route to the SE where the NFC application to be accessed by the transaction instruction is located according to the first identifier carried in the transaction instruction.
  • the first target NFC application (that is, the NFC accessed by the transaction instruction) can be determined from the NFC applications carried by the first target SE. Application), and run the first target NFC application to execute transaction instructions.
  • the first target SE may send a transaction instruction to the NFC application (ie, the first target NFC application) accessed by the transaction instruction, and the first target NFC application executes the transaction instruction to complete the transaction.
  • the NFC application ie, the first target NFC application
  • the electronic device 100 is close to the card reader or the POS machine, specifically: the distance between the electronic device 100 and the card reader or the POS machine is less than the preset distance threshold.
  • the card reader or POS in the embodiment of this application.
  • Table 1 shows the AID identifiers of multiple NFC applications shown in FIG. 2 or FIG. 4.
  • the AID of the "social security card” application is AID-1; the AID of the “bank card” application is AID-2; the AID of the “bus card” application is AID-3; the AID of the "car key” application is AID-4;
  • the AID of the "NFC Payment” application is AID-5.
  • the "NFC payment APP” application can be the “Meituan Pay” application, or the “JD Pay” application shown in Figure 2 and so on.
  • Table 2 shows an example of a routing table provided in an embodiment of the present application.
  • SE location information may be the identity of the SE carrying the NFC application.
  • SE location information 1 may be the identification of SE 1
  • SE location information 2 may be the identification of SE 2
  • SE location information 3 may be the identification of SE 3.
  • AID-1 corresponds to SE location information 1
  • SE 1 ie the SE in the form of a SIM card shown in Figure 4
  • SE 2 the "bank card” application identified by AID-2, the "bus card” application identified by AID-3, and the "car key” application identified by AID-4 shown in Table 1
  • SE 2 the "bank card” application identified by AID-2, the "bus card” application identified by AID-3, and the “car key” application identified by AID-4 shown in Table 1 are carried in SE 2 (see Figure 4 shown in the SE 2) packaged with the NFC chip;
  • the "NFC payment APP" application identified by AID-5 shown in Table 1 is carried on the SE 3 (ie the SE 3 in the form of HCE shown in Figure 4) )in.
  • the SE indicated by the above SE location information may be the SE pointed to by the NFCC route, or may not be the SE pointed by the NFCC route.
  • the electronic device 100 finds the SE location information corresponding to the aforementioned AID, it can determine that the SE indicated by the SE location information is the SE pointed to by the NFCC route. If the SE is the SE pointed to by the route of the NFCC, the NFCC can directly transmit the received transaction instruction to the SE, and the NFC application accessed by the transaction instruction in the SE executes the transaction instruction to complete the transaction.
  • the NFCC can modify the route to point to the SE, and then transmit the received transaction instruction to the SE, and the NFC application accessed by the transaction instruction in the SE executes the transaction instruction to complete the transaction.
  • the default NFC application is the "social security card” application shown in FIG. 4, and the “social security card” application is carried in SE 1 shown in FIG. 4, and the route of NFCC points to SE 1.
  • the NFCC of the electronic device 100 receives a transaction instruction 1 carrying AID-1.
  • the NFCC can find the SE location information 1 corresponding to AID-1 from the routing table shown in Table 2.
  • the SE location information 1 indicates that the NFC application accessed by the transaction instruction 1 is carried in the SE 1.
  • the electronic device 100 can directly transmit transaction instruction 1 to SE 1, and the NFC application accessed by transaction instruction 1 in SE 1 (as shown in Table 1, the "social security card" application corresponding to AID-1) executes transaction instruction 1. Seal the deal.
  • the NFCC of the electronic device 100 receives a transaction instruction 2 carrying AID-3.
  • the NFCC can find the SE location information 2 corresponding to AID-3 from the routing table shown in Table 2.
  • the SE location information 2 indicates that the NFC application accessed by the transaction instruction 2 is carried in the SE 2.
  • the electronic device 100 can modify the route to point to the SE 2; then, the transaction instruction 2 is transmitted to the SE 2, and the NFC application accessed by the transaction instruction 2 in the SE 2 (as shown in Table 1, the "bus card” corresponding to AID-3 "Application) Execute transaction instruction 2 to complete the transaction.
  • one NFC management application can manage one or more NFC applications.
  • the NFC management application carries the first identification and SE location information of the NFC application it manages.
  • the electronic device 100 installs the NFC management application of the NFC application (such as the first target NFC application)
  • the NFC management application may register with the default payment application of the electronic device 100.
  • the default payment application can transmit the first identification and SE location information of the NFC application to the NFCC of the electronic device 100.
  • the NFCC of the electronic device 100 can save the first identification of the NFC application and the SE location information.
  • the NFCC of the electronic device 100 may maintain a routing table, and the routing table includes the corresponding relationship between the AID and SE location information of multiple NFC applications.
  • the electronic device 100 can find the SE location information of the NFC application to be accessed by the transaction instruction in the routing table according to the AID carried in the transaction instruction, and determine to carry the transaction instruction The SE of the NFC application to be accessed. That is, the NFCC can automatically route to the SE where the NFC application to be accessed by the transaction instruction is located according to the first identifier carried in the transaction instruction.
  • the transaction instruction can be any type of card reader (e.g., handheld mobile card reader, fixed card reader) or any type of POS machine (e.g., handheld mobile POS machine, fixed POS machine)
  • the instructions issued can be commands of various types or frame formats.
  • the transaction instruction may be an instruction in a frame format such as Application Protocol Data Unit (APDU) frame format, single-byte short frame format, and long frame format.
  • 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 routing information corresponding to the NFC application in the routing table shown in Table 1 can be configured according to the routing configuration command issued by the DH of the electronic device 100.
  • the routing information of the NFC application may include the AID and SE location information of the NFC application.
  • the SE location information is used to indicate in which SE the NFC application is carried. Among them, the above-mentioned default payment application is managed by DH.
  • a certain NFC application (such as a "social security card” application) is downloaded to a certain SE (such as SE 1 in the form of a SIM card) of the electronic device 100.
  • SE such as SE 1 in the form of a SIM card
  • the SE of the electronic device 100 may send a message indicating that the NFC application has been successfully downloaded to the DH of the electronic device 100.
  • the DH of the electronic device 100 can send a routing configuration command to the NFCC of the electronic device 100.
  • the routing configuration command may be pre-defined locally in the electronic device 100, or may be issued to the DH of the electronic device 100 by the server that provides the NFC application download resource.
  • the routing configuration command is used to instruct the NFCC to configure the routing information of the NFC application in the routing table.
  • the NFCC of the electronic device 100 can configure the routing information of the NFC application in the routing table according to the routing configuration command.
  • the routing information may include the AID and SE location information of the NFC application.
  • routing information configuration process for the "access control card” application in the NFCC is introduced.
  • the specific description of the routing information configuration process for the "social security card” application, the "car key” application, and the "bus card” application is similar to the specific description of the routing information configuration process for the "access control card” application.
  • the electronic device 100 can download the "access card” and apply it to the SE of the electronic device 100.
  • the "access card” application is downloaded to SE 3.
  • the SE 3 may send a message indicating success to the DH of the electronic device 100.
  • the DH of the electronic device 100 may send a routing configuration command to the NFCC of the electronic device 100.
  • the routing configuration command includes: routing information for "access card” applications, such as AID-6 and SE location information 3.
  • the NFCC of the electronic device 100 can perform routing configuration according to the routing configuration command issued by the DH, that is, configure the routing information of the "access control card” application in the routing table shown in Table 2.
  • the configured routing information is the routing information (AID-6 and SE location information 3) in the routing table shown in Table 3.
  • the routing information of the "access control card” application is configured, and the routing information can be subsequently used to determine whether the transaction instruction needs to access the NFC application.
  • the SE 3 may send a message indicating success to the DH of the electronic device 100.
  • the DH of the electronic device 100 can register the "access card” application into the default payment application (that is, execute Sa shown in FIG. 4). Then, the DH of the electronic device 100 can send a routing configuration command to the NFCC of the electronic device 100 to instruct the NFCC of the electronic device 100 to configure the routing information in the routing table (that is, execute Sb shown in FIG. 4).
  • the aforementioned NFC management application can manage one or more NFC applications.
  • the "wallet” application ie, the NFC management application shown in FIG. 2 or FIG. 4 manages two NFC applications, the "bank card” application and the "bus card” application.
  • different NFC applications support different verification methods for NFC services.
  • the "bank card” application corresponds to the verification mode that requires user verification (such as password verification, fingerprint verification, face verification, iris verification, voiceprint verification, behavior verification, etc.) to complete transaction.
  • the "Bus Card” application corresponds to the direct card swiping mode, and transactions can be completed without user verification.
  • the interaction process between the electronic device 100 and the card reader or POS device may include: (1) the bus POS machine always sends NFC field strength signals; (2) the electronic device 100 When approaching the bus POS machine, it can receive the field strength signal sent by the bus POS machine; (3) The NFCC of the electronic device 100 does not require user authentication to respond to the field strength signal to the bus POS machine; (4) Bus POS After receiving the response, the computer sends a transaction instruction to the electronic device 100; (5) The NFCC of the electronic device 100 receives the transaction instruction, and completes the transaction according to the transaction instruction.
  • the interaction process between the electronic device 100 and the supermarket POS machine may include: (1) the supermarket POS machine always sends NFC field strength signals; (2) the electronic device 100 When approaching the supermarket POS machine, it can receive the field strength signal sent by the supermarket POS machine; (3) The electronic device 100 needs to call up user verification (such as password verification, fingerprint verification, face verification, iris verification, voiceprint verification, behavior verification Etc.), after the user is successfully authenticated, the response will be sent to the supermarket POS machine; (4) the supermarket POS machine will send a transaction instruction to the electronic device 100 after receiving the response; (5) the NFCC of the electronic device 100 will receive the transaction instruction, and Complete the transaction according to the transaction instruction.
  • user verification such as password verification, fingerprint verification, face verification, iris verification, voiceprint verification, behavior verification Etc.
  • the electronic device 100 is close to the bus POS machine, the transaction between the electronic device 100 and the bus POS machine will fail. If the user wants to use the "Bus Card” application to pay again, he can re-use the "Wallet” application and set the “Bus Card” application as the default NFC application. In the user's daily life, the user may frequently manually switch and set the default NFC application in the "wallet” application, resulting in a poor user experience.
  • the NFC applications that can be managed by an NFC management application of the electronic device 100 include: the first NFC application (such as the “bus card” application, “Social security card” application, or “car key” application, etc.) and a second NFC application (such as "bank card” application).
  • the verification mode of the NFC service supported by the first NFC application is a direct card swiping mode, and user verification is not required.
  • the verification mode of the NFC service supported by the second NFC application is a required verification mode, and user verification is required.
  • user verification is at least any one of password verification, fingerprint verification, iris verification, voiceprint verification, behavior verification, or face verification.
  • the aforementioned SE automatic routing method and the NFC application automatic activation method provided in the embodiments of the present application may include the following solutions: the first NFC application and the second NFC application in the electronic device 100 are carried in the first SE;
  • the NFC application may be a default NFC application under normal conditions, and the second NFC application may be a temporary default NFC application.
  • the default NFC application in the electronic device 100 may be the aforementioned first NFC application (the first NFC application may be set as the default NFC application by the user); in this way, the user can use the electronic device 100 at any time to communicate with the first NFC application. Use the corresponding card reader or POS device to complete the transaction.
  • the electronic device 100 can temporarily set the aforementioned second NFC application as the default NFC application, so that the electronic device 100 can complete the transaction with a card reader or POS device corresponding to the second NFC application.
  • the electronic device 100 can complete a transaction with the card reader or POS device corresponding to the first NFC application at any time; and, in response to a preset shortcut operation, the card reader or POS device corresponding to the second NFC application completes the transaction.
  • the above-mentioned preset shortcut operations may at least be: a user double-clicks the power button (or called the lock screen key) of the electronic device 100, and the user presets a tap operation on the electronic device 100 (such as the back of the electronic device 100).
  • the user's preset operations on the Home button of the electronic device 100 such as long-press operations, etc.
  • the user inputs preset fingerprint information to the electronic device 100, etc. Any of them.
  • the electronic device 100 completes the transaction with the card reader or POS device corresponding to the second NFC application, or after the electronic device 100 sets the above-mentioned second NFC application as the default NFC application for a preset time, the electronic The default NFC application in the device 100 is switched to the aforementioned first NFC application again.
  • the aforementioned preset time may be 1 minute, 2 minutes or 30 seconds, etc.
  • the preset time may be set by the user, or the preset time may be a fixed time length pre-configured in the electronic device 100.
  • the above-mentioned second NFC application is the "bank card” application in the above-mentioned example
  • the first NFC application is the "bus card” application.
  • the "bank card” application and the “bus card” application are included in the “wallet” application, and users can manage the "bank card” application and the "bus card” application in the “wallet” application.
  • the user can set a "bank card” application or a "bus card” application in the "wallet” application as the default NFC application of the electronic device 100.
  • the user can set the "Bus Card” application as the default NFC application.
  • the method for the user to set the “bus card” application as the default NFC application in the “wallet” application will not be repeated here.
  • the "bus card” application can be used as the default NFC application of the electronic device 100 under normal conditions. If the electronic device 100 is close to the bus POS machine, the NFCC of the electronic device 100 does not require user verification, and the "bus card” application can execute transaction instructions to complete the transaction with the bus POS machine.
  • the electronic device 100 can input a preset shortcut operation into the electronic device 100, and then move the electronic device 100 close to the supermarket POS machine.
  • the electronic device 100 can set the "bank card” application as the temporary default NFC application; therefore, when the electronic device 100 is close to the supermarket POS machine, the electronic device 100 can successfully invoke the user authentication, and After the user is successfully authenticated, the "bank card” application executes the transaction instruction to complete the transaction with the supermarket POS machine. Subsequently, after the electronic device 100 completes the transaction with the supermarket POS machine (not shown in (b) in FIG.
  • the default NFC application in the electronic device 100 is switched to the "bus card” application again. In this way, the default NFC application in the electronic device 100 is switched to the "bus card” application in the direct card swiping mode.
  • the electronic device 100 may set the first NFC application in the direct swiping mode (such as the "bus card” application, the "social security card” application, or the "car key” application, etc.) as the default NFC application under normal conditions;
  • the second NFC application (such as a "bank card” application) that requires a verification mode is set as a temporary default NFC application.
  • the user can use the electronic device 100 at any time to complete the transaction with the card reader or POS device corresponding to the first NFC application.
  • the user wants to use the aforementioned second NFC application to pay he can input a preset shortcut operation in the electronic device 100.
  • the electronic device 100 can temporarily set the aforementioned second NFC application as the default NFC application, so that the electronic device 100 can complete the transaction with a card reader or POS device corresponding to the second NFC application.
  • one NFC management application may include a first NFC application.
  • one NFC management application may include multiple first NFC applications.
  • the "wallet” application may include multiple NFC applications such as the "bus card” application, the “social security card” application, and the "car key” application.
  • the electronic device 100 can follow the AID in the transaction instruction sent by the card reader or POS device, The corresponding NFC application is activated, and the corresponding NFC application executes the transaction instruction to complete the transaction.
  • the above-mentioned user authentication can be performed in a trusted execution environment (TEE).
  • TEE trusted execution environment
  • the user's setting of the default NFC application and the registration of the NFC application and other processes that have relatively low security requirements can be executed in a common execution environment (rich execution environment, REE) that can execute rich instructions.
  • REE rich execution environment
  • the transaction instruction received by the NFCC of the electronic device 100 does not include the AID.
  • the aforementioned routing table may include non-standard card default entries.
  • the non-standard card default item is used to point to the SE corresponding to the current scene information of the electronic device 100 (that is, the second target SE) when the AID is not included in the transaction instruction.
  • the electronic device 100 (such as an NFC management application of the electronic device 100, such as a "wallet" application) can store query information of each non-standard NFC application.
  • the query information of a non-standard NFC application may include: usage scenario information of the non-standard NFC application, SE location information, and second identification.
  • the usage scene information of the non-standard NFC application is used to indicate the usage scene information of the non-standard NFC application.
  • the second identification is used to identify non-standard NFC applications, and the second identification is not the first identification (such as AID).
  • the second identification may be a number assigned by the electronic device 100 to the non-standard NFC application.
  • the use scenario information may include at least one or more of geographic location information, time information, and operation information.
  • the aforementioned geographic location information is used to indicate the geographic location where the non-standard NFC application can be used.
  • the geographic location where the "bus card” application in Xi'an can be used is Xi'an
  • the geographic location where the "bus card” application in Shenzhen can be used is Shenzhen.
  • the geographic location where the "social security card” application at the door can be used is the geographic location corresponding to the home
  • the geographic location where the "car key” application can be used is the garage.
  • the above time information is used to indicate the time when the corresponding non-standard NFC application can be used.
  • the above-mentioned time information may be the time when the user counted by the electronic device 100 frequently uses the non-standard NFC application. For example, if the electronic device 100 calculates that the user often uses the "social security card" application during the two time periods of 7:00-7:30 and 18:00-18:30, then the time information of the "social security card” application can be It is 7:00-7:00 and 18:00-18:30.
  • the above operation information is used to indicate the user's operation on the electronic device 100 before the non-standard NFC application is used.
  • the operation information of the "social security card” application may be a user's double-click operation on the body of the electronic device 100
  • the operation information of the "car key” application may be the user's shaking operation on the body of the electronic device 100.
  • the SE location information indicates the SE carrying the non-standard NFC application, that is, in which SE of the electronic device 100 the non-standard NFC application is carried.
  • the aforementioned electronic device 100 may store usage scene information, SE location information, and second identifiers of one or more non-standard NFC applications.
  • the electronic device 100 (for example, the scene management module 701 shown in FIG. 7) may maintain a non-standard card information table.
  • the non-standard card information table may include query information of non-standard NFC applications installed in the electronic device 100.
  • the query information of the non-standard NFC application may include usage scenario information of the non-standard NFC application, SE location information, and the second identifier.
  • the query information in the non-standard card information table maintained by the scene management module 701 shown in FIG. 7 may be configured when the corresponding non-standard NFC application is installed in the electronic device 100.
  • the method of configuring the query information of the non-standard NFC application in the electronic device 100 is introduced in the following embodiments.
  • the scene management module 701 in the embodiment of the present application may be an NFC management application for managing multiple NFC applications, such as the aforementioned "wallet" application.
  • the electronic device 100 manages the non-standard NFC application 1 (such as the "bus” application in Shenzhen), the non-standard NFC application 2 (such as the "bus” application in Xi'an), and the non-standard NFC application shown in FIG. 3 (Such as the "Bus Card” application in Shanghai) these three non-standard NFC applications.
  • the identifier (such as a number) of the non-standard NFC application 1 is the identifier 1
  • the non-standard NFC application 1 is carried in the SE 1
  • the scene information using the non-standard NFC application 1 is the scene information 1.
  • the identifier (such as a serial number) of the non-standard NFC application 2 is the identifier 2
  • the non-standard NFC application 2 is carried in the SE 2
  • the scene information using the non-standard NFC application 2 is the scene information 2.
  • the identifier (such as a number) of the non-standard NFC application 3 is the identifier 3.
  • the non-standard NFC application 2 is carried in the SE 3, and the scene information using the non-standard NFC application 3 is the scene information 3.
  • Table 4 is an example of a non-standard card information table provided by the embodiments of this application, which shows the above-mentioned non-standard NFC application 1 (such as the "public transport” application in Shenzhen) and non-standard NFC application 2 (such as Xi'an). City’s “Bus” application) and non-standard NFC applications 3 (such as the “Bus Card” application in Shanghai).
  • the NFCC of the electronic device 100 can receive the transaction instruction from the card reader or POS device.
  • the transaction instruction may include AID, or the transaction instruction may not include AID. Therefore, as shown in FIG. 5A, after receiving the transaction instruction, the NFCC of the electronic device 100 can determine whether the transaction instruction includes an AID. If the transaction instruction does not include the AID, the electronic device 100 can obtain the current scene information of the electronic device 100.
  • the electronic device 100 can search the non-standard NFC application identifier (such as identifier 2) and SE location information (such as the SE location information indicating SE 2) corresponding to the current scene information from the above non-standard card information table.
  • the non-standard card default entry in the NFCC configuration routing table of the electronic device 100 points to the SE indicated by the searched SE location information (that is, the second target SE, such as SE 2). In this way, the NFCC of the electronic device 100 can transmit the transaction instruction to the SE pointed to by the default item of the non-standard card (ie, the second target SE, such as SE 2).
  • the electronic device 100 may also notify the SE (such as SE 2) indicated by the SE location information of the identification (such as identification 2) of the found non-standard NFC application.
  • the SE such as SE 2 indicated by the SE location information receives the transaction instruction, it can automatically activate the non-standard NFC application (ie, the second target NFC application) corresponding to the above identifier (such as identifier 2), and execute the Transaction instructions to complete the transaction.
  • the NFCC of the electronic device 100 receives a transaction instruction from the card reader or POS device.
  • the NFCC of the electronic device 100 determines that the transaction instruction does not include AID.
  • the scene information acquiring module 702 of the electronic device 100 acquires current scene information of the electronic device 100.
  • the scene information acquisition module 702 transmits current scene information to the scene management module 701.
  • the scene management module 701 searches the non-standard NFC application identifier (such as identifier 2) and SE location information (such as the SE location information indicating SE 2) corresponding to the current scene information from the above non-standard card information table.
  • the scene management module 701 may indicate the SE location information to the NFCC, so that the default entry of the non-standard card in the NFCC configuration routing table points to the SE (such as SE 2) indicated by the SE location information.
  • the NFCC can transmit the transaction instruction to the SE (such as SE 2) pointed to by the default item of the non-standard card.
  • the scene management module 701 may also notify the SE (such as SE 2) indicated by the above SE location information of the identification (such as identification 2) of the found non-standard NFC application.
  • the SE such as SE 2 indicated by the above SE location information receives the transaction instruction, it can automatically activate the non-standard NFC application corresponding to the above identifier (such as identifier 2) and execute the transaction instruction to complete the transaction.
  • the aforementioned scene information may include at least one or more of geographic location information, time information, and operation information.
  • the aforementioned scene information acquisition module 702 may include a geographic location acquisition module (such as a GPS positioning module) and a time information acquisition module (such as a clock and a calendar in the electronic device 100) and so on.
  • the SE (such as SE 2) indicated by the SE location information corresponding to the current scene information may be the SE to which the NFCC route points, or may not be the SE to which the NFCC route points.
  • the electronic device 100 finds the above-mentioned SE location information, it can determine whether the SE indicated by the SE location information is the SE pointed to by the non-standard card default entry in the routing table. If the SE is the SE pointed to by the default item of the non-standard card, the NFCC can directly transmit the received transaction instruction to the SE, and the SE will automatically activate the non-standard NFC application indicated by the identifier corresponding to the current scene information, and execute the The transaction instruction completes the transaction.
  • NFCC can configure the default item of the non-standard card in the routing table to point to the SE, and then transmit the received transaction instruction to the SE, and the SE will automatically activate and The non-standard NFC application indicated by the identifier corresponding to the current scene information executes the transaction instruction to complete the transaction.
  • the default NFC application is the non-standard NFC application 1 shown in Figure 7.
  • the non-standard NFC application 1 is carried in the SE 1 shown in Figure 7, and the non-standard card default entry in the routing table of the NFCC points to the SE 1.
  • the NFCC of the electronic device 100 receives the carrying transaction instruction 3, the transaction instruction 3 does not include the AID, and the electronic device 100 obtains that the current scene information of the electronic device 100 is the scene information 2 shown in Table 4, then the electronic device 100 can download Table 4 can find the identifier 2 and the SE location information 2 corresponding to the scene information 2.
  • the identifier 2 is the identifier of the non-standard NFC application 2, and the SE location information 2 indicates SE 2.
  • the NFCC of the electronic device 100 can configure the non-standard card default entry in the routing table to point to SE2. Then, the transaction instruction 3 is transmitted to the SE 2, and the non-standard NFC application 2 indicated by the mark 2 is automatically activated by the SE 2, and the activated non-standard NFC application 2 executes the transaction instruction 3 to complete the transaction.
  • the NFCC of the electronic device 100 receives a transaction instruction 4 that does not include AID, and the electronic device 100 obtains that the current scene information of the electronic device 100 is the scene information 1 shown in Table 4, then the electronic device 100 can download Table 4 can find the identifier 1 and the SE location information 1 corresponding to the scene information 1.
  • the identifier 1 is the identifier of the non-standard NFC application 1, and the SE location information 1 indicates SE 1.
  • the NFCC of the electronic device 100 can configure the default entry of the non-standard card in the routing table to point to SE 1, and directly transmit the transaction instruction 4 to SE 1.
  • the SE 1 automatically activates the non-standard NFC application 1 indicated by the identifier 1, and the activated
  • the non-standard NFC application 1 executes the transaction instruction 4 to complete the transaction.
  • the query information corresponding to the NFC application in the non-standard card information table shown in Table 4 may be configured according to the routing configuration command issued by the DH of the electronic device 100.
  • the query information of the non-standard NFC application may include the identification of the non-standard NFC application, SE location information, and scene information.
  • the NFC application when a certain non-standard NFC application (such as the non-standard NFC application 4 shown in FIG. 7) is installed, the NFC application is downloaded to a certain SE (such as SE 2) of the electronic device 100.
  • SE such as SE 2
  • SE SE 2
  • the SE for example, SE 2
  • the DH of the electronic device 100 can register the non-standard NFC application (the non-standard NFC application 4 shown in FIG. 7) into the default payment application (ie, execute the S-A shown in FIG. 7).
  • the DH of the electronic device 100 can configure the query information of the non-standard NFC application (the non-standard NFC application 4 shown in FIG. 7) in the non-standard card information table maintained by the scene management module 701 (that is, execute the query information shown in FIG. 7). SB shown).
  • the query information of the non-standard NFC application 4 is the query information (identification 4, SE location information 4 and scene information 4) in the non-standard card information table shown in Table 5. In this way, the query information of the non-standard NFC application 4 is configured, and the query information can be subsequently used to determine whether the transaction instruction wants to access the NFC application.
  • the scene information of some non-standard NFC cards is configured when downloading the non-standard NFC application according to the above method.
  • the geographic location information of the "transit card” application in various places is configured when the "transit card” application is downloaded.
  • the scene information of part of the non-standard NFC card is the scene information (such as geographic location information and/time information) that the user frequently uses the non-standard NFC application based on statistics obtained by the electronic device 100 after the user uses the non-standard NFC card for a period of time.
  • the scenario information of the "social security card” application is the scenario information of the user frequently using the "social security card” application obtained by the electronic device 100 after the user uses the "social security card” application for a period of time.
  • the aforementioned scene information is geographic location information.
  • the Beijing “Public Transport Card” application is carried in SE 1
  • the Shenzhen “Public Transport Card” application is carried in SE 2
  • the Xi’an “Bus Card” application is carried in SE 3.
  • the Beijing "Bus Card” application, Shenzhen “Bus Card” application and Xi'an “Bus Card” application are all non-standard NFC applications and do not support AID.
  • the identification of Xi'an "Bus Card” application is identification a
  • the scene information is Xi'an
  • the SE location information indicates that the Xi'an "Bus Card” application is carried in SE 3.
  • the NFCC of the electronic device 100 can receive the transaction instruction sent by the POS device. After receiving the transaction instruction, the electronic device 100 can obtain the geographic location information where the user is currently located. If the acquired geographic location indicates that the user is currently in Xi’an, the NFCC of the electronic device 100 can transmit the received transaction instruction to the SE 3, and the SE 3 automatically activates the Xi’an “Bus Card” application and executes the transaction instruction. The corresponding amount is deducted from the "Bus Card” application.
  • the scene information acquisition module (such as the geographic location acquisition module) 702 can acquire the current geographic location information, and execute S(1) to the scene management module (such as the bus card management APP, that is, the NFC management application) 701 sends current geographic location information.
  • the scene management module (such as the bus card management APP, that is, the NFC management application) 701 can look up the identification a of the Xi'an "bus card” application corresponding to the geographic location information "Xi'an” and the SE location indicating SE 3 from the non-standard card information table information.
  • the scene management module 701 may indicate the SE location information to the NFCC, so that the default entry of the non-standard card in the NFCC configuration routing table points to the SE 3 indicated by the SE location information. In this way, the NFCC can transmit the transaction instruction to the SE 3 pointed to by the default item of the non-standard card.
  • the scene management module 701 can also notify the SE 3 of the identification a of the Xi'an "public transportation card” application found. In this way, after the above-mentioned SE 3 receives the transaction instruction, it can automatically activate the Xi'an “Bus Card” application corresponding to the identifier a, and execute the transaction instruction to complete the transaction.
  • the foregoing scene information includes geographic location information and time information.
  • the "car key” application is carried in the SE 1 in the form of a SIM card.
  • the electronic device 100 counts that the user frequently uses the “car key” application in the geographic location 1 (such as the underground garage 1) during the time period of 7:30-7:50.
  • the NFCC receives a transaction instruction, it can obtain the current system time (or the time when the transaction instruction is received) is within the time period of 7:30-7:50, and the electronic device 100 is located at geographic location 1.
  • the car key application 301 can be automatically activated.
  • the SE 1 pointed to by the default item of the non-standard card can automatically run the "car key” application. In this way, when the user uses the electronic device 100 to approach the car door, the user does not need to manually activate the "car key” application to open the car door.
  • the electronic device 100 can automatically route to the non-standard access to the transaction instruction according to the current scene information of the electronic device 100 after receiving the transaction instruction The SE where the NFC application is located.
  • the embodiment of the present application may divide the above-mentioned electronic device into functional modules according to the above-mentioned method examples.
  • each function module may be divided corresponding to each function, or two or more functions may be integrated into one processing module.
  • the above-mentioned integrated modules can be implemented in the form of hardware or software functional modules. It should be noted that the division of modules in the embodiments of the present application is illustrative, and is only a logical function division, and there may be other division methods in actual implementation.
  • the scene management module 701 and the scene information acquisition module 702 in the foregoing method embodiment may be integrated in a processor (such as the processor 310) of the electronic device 100 for implementation.
  • the embodiment of the application provides an NFC chip
  • the NFC chip includes an NFCC (ie, NFC controller);
  • the NFCC stores the first identification of multiple NFC applications and the location information of the security unit SE, and the SE location information indicates the SE carrying the corresponding NFC application .
  • the NFCC receives the transaction instruction; in response to the transaction instruction carrying the first identifier, the NFCC searches for the SE location information corresponding to the first identifier carried in the transaction instruction from the SE location information stored in the NFC control; NFCC searches for the SE location information corresponding to the first identifier carried in the transaction instruction based on the SE location information found
  • the first target SE is determined among at least two SEs; the NFCC sends a transaction instruction to the first target SE.
  • the above-mentioned first identification may be an AID.
  • the aforementioned NFCC is also used to save the first identifier of the first target NFC application and the SE location information of the first target NFC application when downloading the first target NFC application.
  • the above-mentioned NFCC sending a transaction instruction to the first target SE includes: the NFCC is specifically used for: if the first target SE is the SE pointed to by the route of the NFCC, the NFCC can directly send the transaction instruction to the first target SE; The target SE is not the SE pointed to by the route of the NFCC. The NFCC can modify the route to point to the first target SE, and then send a transaction instruction to the first target SE.
  • the aforementioned NFCC saves a routing table, and the routing table includes the first identifiers of multiple NFC applications and SE location information.
  • the routing table also includes a non-standard card default item, which is used to point to the SE corresponding to the current scene information of the electronic device when the transaction instruction does not carry the first identifier.
  • the NFCC is also used to receive indication information for indicating the second target SE when the transaction instruction does not carry the first identifier; configure the non-standard card default item to point to the second target SE.
  • the NFCC is also used to send transaction instructions to the second target SE pointed to by the default item of the non-standard card.
  • NFCC is also used to send transaction instructions to the second target SE pointed to by the default item of the non-standard card, including: NFCC, specifically used for: if the second target SE is the SE pointed to by the default item of the non-standard card, NFCC You can directly send transaction instructions to the second target SE pointed to by the non-standard card default item; if the second target SE is not the SE pointed to by the non-standard card default item, NFCC can configure the non-standard card default item in the routing table Point to the second target SE, and then send a transaction instruction to the second target SE pointed to by the default item of the non-standard card.
  • NFCC specifically used for: if the second target SE is the SE pointed to by the default item of the non-standard card, NFCC You can directly send transaction instructions to the second target SE pointed to by the non-standard card default item; if the second target SE is not the SE pointed to by the non-standard card default item, NFCC can configure the non-standard card default item in the routing table Point to the second target SE,
  • the embodiments of the present application also provide a computer storage medium, which may include computer instructions, which when the computer instructions run on an electronic device, cause the electronic device to execute the aforementioned SE automatic routing method or NFC application automatic activation method .
  • the embodiments of the present application also provide a computer program product, which when the computer program product runs on a computer, causes the computer to execute the aforementioned SE automatic routing method or the automatic activation method of NFC application.
  • the disclosed system, device, and method may be implemented in other ways.
  • the device embodiments described above are merely illustrative.
  • the division of the modules or units is only a logical function division.
  • there may be other division methods for example, multiple units or components may be Combined or can 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 they 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 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-mentioned integrated unit can be implemented in the form of hardware or software functional unit.
  • the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer readable storage medium.
  • a computer readable storage medium includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor to perform all or part of the steps of the methods described in the various embodiments.
  • the aforementioned 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.

Abstract

本申请实施例提供一种SE的自动路由方法及电子设备,涉及NFC技术领域,电子设备中包括多个SE时,可实现交易指令访问的NFC应用的自动激活。该电子设备的多个SE中的每个SE中承载至少一个NFC应用;电子设备保存多个NFC应用的第一标识和SE位置信息(用于指示承载对应NFC应用的SE)。电子设备接收交易指令;响应于交易指令携带第一标识,从保存的SE位置信息中查找交易指令携带的第一标识对应的SE位置信息;根据查找到的SE位置信息从至少两个SE中确定第一目标SE,向第一目标SE发送交易指令。

Description

一种SE的自动路由方法及电子设备
本申请要求在2019年04月26日提交国家知识产权局、申请号为201910345528.5、发明名称为“一种SE的自动路由方法及电子设备”的中国专利申请的优先权,在2019年05月21日提交国家知识产权局、申请号为201910426179.X、发明名称为“一种SE的自动路由方法及电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请实施例涉及近距离无线通信(Near Field Communication,NFC)技术领域,尤其涉及一种安全单元(Security Element,SE)的自动路由方法及电子设备。
背景技术
NFC是一种近距离无线通信技术,允许设备之间进行非接触式点对点数据传输。NFC具有较高的安全性,近年来越来越被大众欢迎和接受。其中,具备NFC功能的电子设备的发展尤为迅速。具备NFC功能电子设备可以工作于三种模式:读卡器模式,卡模拟模式,点对点模式。其中,卡模拟模式的使用频率最高。电子设备可模拟为一张非接触集成电路(Integrated Circuit,IC)卡,用户手持电子设备便可与读卡器进行交互,以完成刷银行卡、刷公交卡或刷社保卡等操作,给生活带来很多便利。
电子设备在模拟为非接触IC卡与读卡器进行交互之前,需下载对应的NFC应用到电子设备的安全单元(Security Element,SE)中。SE可以为NFC应用的运行提供安全的执行环境,为其敏感数据提供安全的存储环境。
目前,一个电子设备可能有多个SE。通常来说,移动运营商倾向于使用以用户标识模块(subscriber identification module,SIM)卡形式存在的SE、电子设备制造商倾向于使用eSE、应用生产商倾向于使用主机卡模拟(host card emulation,HCE)。通常,电子设备的NFC控制器可以通过将路由指向某个SE的方法,来决定当前的NFC交易由哪个SE承接。
一个SE中可同时承载多个NFC应用。在SE中承载的NFC应用被激活时,电子设备便可模拟为对应的非接触IC卡与读卡器进行交互。其中,NFC应用可由用户手动激活,也可由电子设备自动激活。具体的,电子设备在接收到读卡器发送的交易指令后,可以根据交易指令中携带的应用标识符(Application Identifier,AID)来判别该交易指令访问的是SE中承载的哪个NFC应用。
通常,只有NFC控制器的路由所指向的SE可以承接NFC交易,即处理交易指令。而当交易指令要访问承载在其他SE中的NFC应用时,交易则无法进行。该其他SE不是NFC控制器的路由所指向的SE。因此,当电子设备有多个SE时,如何让NFC控制器的路由指向交易指令所要访问的NFC应用所在的SE,是亟待解决的问题。
发明内容
本申请实施例提供一种SE的自动路由方法及电子设备,即使电子设备中包括多个SE,也可以自动路由到交易指令访问的NFC应用所在的SE。
第一方面,本申请实施例提供一种电子设备,该电子设备包括NFC控制器和至少两 个SE。该至少两个SE中的每个SE中承载了至少一个NFC应用。该NFC控制器中保存了多个NFC应用的第一标识和SE位置信息。该SE位置信息指示承载对应NFC应用的SE。NFC控制器可接收交易指令;响应于交易指令中携带第一标识,NFC控制器可从NFC控制保存的SE位置信息中,查找交易指令携带的第一标识对应的SE位置信息;NFC控制器根据查找到的SE位置信息,从至少两个SE中确定第一目标SE,向第一目标SE发送所述交易指令。
本申请实施例中,由于NFC控制器可保存多个NFC应用的第一标识和SE位置信息;因此电子设备接收到携带第一标识的交易指令后,则可以根据交易指令携带的第一标识,确定交易指令所要访问的NFC应用的SE位置信息。即电子设备可以确定交易指令所要访问的NFC应用承载在哪一个SE中。
本申请实施例中,NFC控制器可以根据交易指令中携带的第一标识,自动路由至交易指令所要访问的NFC应用所在的SE。
结合第一方面,在一种可能的设计方式中,第一目标SE可以接收交易指令,根据交易指令携带的第一标识,从第一目标SE承载的NFC应用中确定第一目标NFC应用;第一目标SE运行第一目标NFC应用,执行交易指令。
也就是说,目标SE可以根据交易交易指令携带的第一标识,向交易指令所访问的NFC应用发送该交易指令,由交易指令所访问的NFC应用执行该交易指令,以便完成交易。
结合第一方面,在另一种可能的设计方式中,上述第一标识是AID。当然,第一标识包括但不限于AID。
结合第一方面,在另一种可能的设计方式中,第一目标NFC应用的NFC管理应用携带第一目标NFC应用的第一标识和第一目标NFC应用的SE位置信息。该第一目标NFC应用的SE位置信息指示承载第一目标NFC应用的第一目标SE。其中,NFC管理应用用于管理一个或多个NFC应用。NFC控制器,用于接收第一目标NFC应用的NFC管理应用向电子设备的默认付款应用注册时,传输的第一目标NFC应用的第一标识和第一目标NFC应用的SE位置信息。
其中,第一目标NFC应用的NFC管理应用安装时,向电子设备的默认付款应用注册;NFC控制器,还用于保存第一目标NFC应用的第一标识和第一目标NFC应用的SE位置信息。
结合第一方面,在另一种可能的设计方式中,上述向第一目标SE发送交易指令,可以包括:如果第一目标SE是NFC控制器的路由所指向的SE,NFC控制器可以直接将接收到交易指令传输至该第一目标SE,由第一目标SE向交易指令所访问的NFC应用发送交易指令,由交易指令所访问的NFC应用执行该交易指令完成交易。如果该第一目标SE不是NFC控制器的路由所指向的SE,NFC控制器可以修改路由指向该第一目标SE,然后将接收到交易指令传输至该SE,由该SE向交易指令所访问的NFC应用发送交易指令所访问的NFC应用,由交易指令所访问的NFC应用执行该交易指令完成交易。
可以理解,上述SE位置信息所指示的SE可能是NFC控制器的路由所指向的SE,也可能不是NFC控制器的路由所指向的SE。电子设备查找到上述第一标识对应的SE位置信息后,可以判断该SE位置信息所指示的SE是为NFC控制器的路由所指向的SE。如果该SE位置信息所指示的SE是NFC控制器的路由所指向的SE,NFC控制器可以直接将接收到交易指令传输至该SE,由该SE向交易指令所访问的NFC应用发送交易指令,由交 易指令所访问的NFC应用执行该交易指令完成交易。如果该SE位置信息所指示的SE不是NFC控制器的路由所指向的SE,NFC控制器可以修改路由指向该SE,然后将接收到交易指令传输至该SE,由该SE向交易指令所访问的NFC应用发送交易指令,由交易指令所访问的NFC应用执行该交易指令完成交易。
结合第一方面,在另一种可能的设计方式中,由于不是所有的NFC应用都支持并使用第一标识(如AID)。以第一标识是AID为例。例如,一些公交卡不支持并使用AID。因此,电子设备的NFC控制器接收到的交易指令中是不包括第一标识的。基于这种情况,电子设备的处理器中可以保存一个或多个非标准NFC应用的使用场景信息、SE位置信息和第二标识。
例如,电子设备(例如,电子设备的处理器)可以维护一个非标卡信息表。该非标卡信息表中可以包括电子设备中安装的非标准NFC应用的查询信息。非标准NFC应用的查询信息可以包括非标准NFC应用的使用场景信息、SE位置信息和第二标识。
其中,非标准NFC应用不支持AID。第二标识用于标识非标准NFC应用,第二标识不是第一标识(如AID)。使用场景信息用于指示使用对应非标准NFC应用的场景信息。
具体的,处理器响应于NFC控制器接收的交易指令中未携带第一标识,可以获取电子设备的当前场景信息;处理器从一个或多个非标准NFC应用的使用场景信息中查找当前场景信息对应的使用场景信息,并确定查找到的使用场景信息对应的第二标识和SE位置信息;处理器根据查找到的SE位置信息,从至少两个SE中确定第二目标SE,向第二目标SE发送交易指令;第二目标SE接收交易指令;处理器向第二目标SE指示查找到的第二标识;第二目标SE根据处理器指示的第二标识,从第二目标SE承载的NFC应用中确定第二目标NFC应用,第二目标NFC应用是非标准NFC应用;第二目标SE运行第二目标NFC应用,执行交易指令。
本申请实施例中,即使一些NFC应用不支持AID,电子设备也可以在接收到交易指令后,根据电子设备的当前场景信息,确定交易指令所要访问的非标准NFC应用所在的SE。即可以实现交易指令所访问的非标准NFC应用所在SE的自动路由。
并且,还可以根据电子设备的当前场景信息,确定交易指令所要访问的非标准NFC应用。如此,SE便可以向交易指令所要访问的非标准NFC应用发送交易指令。
结合第一方面,在另一种可能的设计方式中,上述NFC控制器可保存路由表,该路由表中包括多个NFC应用的第一标识和SE位置信息。该路由表还可以包括非标卡缺省项,非标卡缺省项用于在交易指令未携带第一标识的情况下,指向电子设备的当前场景信息对应的SE。其中,处理器可根据查找到的SE位置信息,从至少两个SE中确定第二目标SE,向NFC控制器指示第二目标SE。NFC控制器响应于处理器的指示,可配置非标卡缺省项指向第二目标SE。NFC控制器可向非标卡缺省项指向的第二目标SE发送交易指令。
结合第一方面,在另一种可能的设计方式中,上述与当前的场景信息对应的SE位置信息所指示的第二目标SE可能是NFC控制器的路由所指向的SE,也可能不是NFC控制器的路由所指向的SE。电子设备查找到上述SE位置信息后,可以判断该SE位置信息所指示的SE是否为路由表中的非标卡缺省项所指向的SE。如果该SE位置信息所指示的SE是非标卡缺省项所指向的SE,NFC控制器可以直接将接收到交易指令传输至该SE,由该SE自动激活与当前的场景信息对应的标识所指示的非标准NFC应用,执行该交易指令完成交易。如果该SE位置信息所指示的SE不是非标卡缺省项所指向的SE,NFC控制器则可以配置路由表中的非标卡缺省项指向该SE,然后将接收到交易指令传输至该SE,由该 SE自动激活与当前的场景信息对应的标识所指示的非标准NFC应用,执行该交易指令完成交易。
结合第一方面,在另一种可能的设计方式中,上述场景信息至少包括地理位置信息、时间信息和操作信息中的一项或多项;地理位置信息用于指示对应非标准NFC应用可被使用的地理位置;时间信息用于指示对应非标准NFC应用可被使用的时间;操作信息用于指示对应非标准NFC应用被使用前用户对电子设备的操作。
结合第一方面,在另一种可能的设计方式中,上述至少两个SE中的第一SE中承载有第一NFC应用和第二NFC应用;其中,第一NFC应用支持的NFC业务的验证方式为直接刷卡模式,不需要进行用户验证。例如,第一NFC应用可以是“公交卡”应用。第二NFC应用支持的NFC业务的验证方式为要求验证模式,需要进行用户验证。例如,第二NFC应用可以是“银行卡”应用。其中,“银行卡”应用对应要求验证模式,需要通过用户验证(如密码验证、指纹验证、人脸验证、虹膜认证、声纹认证、行为认证等),才可以完成交易。而“公交卡”应用则对应直接刷卡模式,不需要用户验证便可以完成交易。
其中,电子设备的处理器响应于用户的设置操作,激活第一NFC应用,以设置第一NFC应用为电子设备中默认的NFC应用;处理器响应于用户的预设快捷操作,去激活第一NFC应用,自动激活第二NFC应用,以设置第二NFC应用为电子设备中默认的NFC应用。
上述方案可以理解为本申请实施例提出“直刷为常态,验证为临时”的概念。在该电子设备中,上述第一NFC应用可以为常态下默认的NFC应用,上述第二NFC应用可以为临时默认的NFC应用。
具体的,一般情况下,电子设备中默认的NFC应用可以为上述第一NFC应用(该第一NFC应用可以由用户设置为默认的NFC应用);如此,用户随时使用该电子设备都可以与第一NFC应用对应的读卡器或POS机具完成交易。而当用户想要使用上述第二NFC应用付款时,则可以在电子设备输入预设快捷操作。响应于该预设快捷操作,电子设备可以临时将上述第二NFC应用设置为默认的NFC应用,以使电子设备可以与第二NFC应用对应的读卡器或POS机具完成交易。
本申请实施例中,即使一个NFC管理应用中管理了直接刷卡模式的第一NFC应用(如“公交卡”应用、“社保卡”应用,或者“车钥匙”应用等)和要求验证模式的第二NFC应用(如“银行卡”应用),也不需要用户在该NFC管理应用中频繁设置默认的NFC应用。电子设备可以随时与第一NFC应用对应的读卡器或POS机具完成交易;并且,可以响应于预设快捷操作,与第二NFC应用对应的读卡器或POS机具完成交易。
第二方面,本申请实施例提供一种电子设备,该电子设备包括处理器和至少两个安全单元SE,至少两个SE中的第一SE中承载了第一NFC应用和第二NFC应用,第一NFC应用支持的NFC业务的验证方式为直接刷卡模式,不需要进行用户验证;第二NFC应用支持的NFC业务的验证方式为要求验证模式,需要进行用户验证;用户验证至少为密码验证、指纹验证、人脸验证、虹膜认证、声纹认证、行为认证等中的任一项。处理器响应于用户的设置操作,激活第一NFC应用,以设置第一NFC应用为电子设备中默认的NFC应用;处理器响应于用户的预设快捷操作,去激活第一NFC应用,自动激活第二NFC应用,以设置第二NFC应用为电子设备中默认的NFC应用。
第三方面,本申请实施例提供一种SE的自动路由方法,其特征在于,应用于电子设 备。该电子设备包括至少两个SE,至少两个SE中的每个SE中承载了至少一个NFC应用。电子设备中保存了多个NFC应用的第一标识和SE位置信息,SE位置信息指示承载对应NFC应用的SE。该方法可以包括:电子设备接收交易指令;电子设备响应于交易指令中携带第一标识,从保存的SE位置信息中,查找交易指令携带的第一标识对应的SE位置信息;电子设备根据查找到的SE位置信息,从至少两个SE中确定第一目标SE。
结合第三方面,在一种可能的设计方式中,上述电子设备还可以根据交易指令携带的第一标识,从第一目标SE承载的NFC应用中确定第一目标NFC应用;电子设备通过第一目标SE运行第一目标NFC应用,执行交易指令。
结合第三方面,在另一种可能的设计方式中,上述第一标识是AID。
结合第三方面,在另一种可能的设计方式中,第一目标NFC应用的NFC管理应用携带第一目标NFC应用的第一标识和第一目标NFC应用的SE位置信息,第一目标NFC应用的SE位置信息指示承载第一目标NFC应用的第一目标SE;NFC管理应用用于管理一个或多个NFC应用。上述方法还可以包括:电子设备获取第一目标NFC应用的NFC管理应用向电子设备的默认付款应用注册时,传输的第一目标NFC应用的第一标识和第一目标NFC应用的SE位置信息;其中,NFC管理应用安装时,向默认付款应用注册;电子设备保存第一目标NFC应用的第一标识和第一目标NFC应用的SE位置信息。
结合第三方面,在另一种可能的设计方式中,上述电子设备还保存一个或多个非标准NFC应用的使用场景信息、SE位置信息和第二标识;非标准NFC应用不支持AID;第二标识用于标识非标准NFC应用,第二标识不是第一标识(如AID);使用场景信息用于指示使用对应非标准NFC应用的场景信息。上述方法还可以包括:电子设备响应于交易指令中未携带第一标识,获取电子设备的当前场景信息;电子设备从一个或多个非标准NFC应用的使用场景信息中查找当前场景信息对应的使用场景信息,并确定查找到的使用场景信息对应的第二标识和SE位置信息;电子设备根据查找到的SE位置信息,从至少两个SE中确定第二目标SE;电子设备根据查找到的第二标识,从第二目标SE承载的NFC应用中确定第二目标NFC应用;电子设备通过第二目标SE运行第二目标NFC应用,执行交易指令。
结合第三方面,在另一种可能的设计方式中,上述电子设备中保存路由表,路由表中包括多个NFC应用的第一标识和SE位置信息。路由表还包括非标卡缺省项,非标卡缺省项用于在交易指令未携带第一标识的情况下,指向电子设备的当前场景信息对应的SE。其中,电子设备根据查找到的SE位置信息,从至少两个SE中确定第二目标SE,包括:电子设备根据查找到的SE位置信息,从至少两个SE中确定第二目标SE,配置非标卡缺省项指向第二目标SE。
结合第三方面,在另一种可能的设计方式中,上述场景信息至少包括地理位置信息、时间信息和操作信息中的一项或多项;地理位置信息用于指示对应非标准NFC应用可被使用的地理位置;时间信息用于指示对应非标准NFC应用可被使用的时间;操作信息用于指示对应非标准NFC应用被使用前用户对电子设备的操作。
结合第三方面,在另一种可能的设计方式中,上述至少两个SE中的第一SE中承载有第一NFC应用和第二NFC应用;其中,第一NFC应用支持的NFC业务的验证方式为直接刷卡模式,不需要进行用户验证;第二NFC应用支持的NFC业务的验证方式为要求验证模式,需要进行用户验证;用户验证至少为密码验证、指纹验证、人脸验证、虹膜认证、声纹认证、行为认证等中的任一项。上述方法还可以包括:电子设备响应于用户的 设置操作,激活第一NFC应用,以设置第一NFC应用为电子设备中默认的NFC应用;电子设备响应于用户的预设快捷操作,去激活第一NFC应用,自动激活第二NFC应用,以设置第二NFC应用为电子设备中默认的NFC应用。
结合第三方面,在另一种可能的设计方式中,上述电子设备在第二NFC应用完成交易后,或者,电子设备从自动激活第二NFC应用开始的预设时间后,去激活第二NFC应用,自动激活第一NFC应用,以设置第一NFC应用为电子设备中默认的NFC应用。
第四方面,本申请实施例提供一种NFC应用的自动激活方法,该方法可以应用于电子设备,电子设备包括至少两个SE,至少两个SE中的第一SE中承载了第一NFC应用和第二NFC应用,第一NFC应用支持的NFC业务的验证方式为直接刷卡模式,不需要进行用户验证;第二NFC应用支持的NFC业务的验证方式为要求验证模式,需要进行用户验证;用户验证至少为密码验证、指纹验证、人脸验证、虹膜认证、声纹认证、行为认证等中的任一项。
该方法可以包括:电子设备响应于用户的设置操作,激活第一NFC应用,以设置第一NFC应用为电子设备中默认的NFC应用;电子设备响应于用户的预设快捷操作,去激活第一NFC应用,自动激活第二NFC应用,以设置第二NFC应用为电子设备中默认的NFC应用。
结合第四方面,在一种可能的设计方式中,上述方法还可以包括:电子设备在第二NFC应用完成交易后,或者,电子设备从自动激活第二NFC应用开始的预设时间后,去激活第二NFC应用,自动激活第一NFC应用,以设置第一NFC应用为电子设备中默认的NFC应用。
第五方面,本申请实施例提供一种NFC芯片,该NFC芯片包括NFC控制器;NFC控制器保存了多个NFC应用的第一标识和安全单元SE位置信息,SE位置信息指示承载对应NFC应用的SE。NFC控制器接收交易指令;NFC控制器响应于交易指令中携带第一标识,从NFC控制保存的SE位置信息中,查找交易指令携带的第一标识对应的SE位置信息;NFC控制器根据查找到的SE位置信息,从至少两个SE中确定第一目标SE;NFC控制器向第一目标SE发送交易指令。
结合第五方面,在一种可能的设计方式中,上述第一标识可以是AID。
结合第五方面,在另一种可能的设计方式中,第一目标NFC应用的NFC管理应用携带第一目标NFC应用的第一标识和第一目标NFC应用的SE位置信息,第一目标NFC应用的SE位置信息指示承载第一目标NFC应用的第一目标SE;NFC管理应用用于管理一个或多个NFC应用。NFC控制器,用于接收第一目标NFC应用的NFC管理应用向电子设备的默认付款应用注册时,传输的第一目标NFC应用的第一标识和第一目标NFC应用的SE位置信息;其中,第一目标NFC应用的NFC管理应用安装时,向电子设备的默认付款应用注册;NFC控制器,还用于保存第一目标NFC应用的第一标识和第一目标NFC应用的SE位置信息,第一目标NFC应用的SE位置信息指示承载第一目标NFC应用的第一目标SE。
结合第五方面,在另一种可能的设计方式中,上述NFC控制器向第一目标SE发送交易指令,包括:NFC控制器具体用于:如果第一目标SE是NFC控制器的路由所指向的SE,NFC控制器可以直接向第一目标SE发送交易指令;如果第一目标SE不是NFC控制器的路由所指向的SE,NFC控制器可以修改路由指向第一目标SE,然后向第一目标SE发送交易指令。
结合第五方面,在另一种可能的设计方式中,上述NFC控制器保存路由表,路由表 中包括多个NFC应用的第一标识和SE位置信息。路由表还包括非标卡缺省项,非标卡缺省项用于在交易指令未携带第一标识的情况下,指向电子设备的当前场景信息对应的SE。NFC控制器还用于在交易指令中未携带第一标识的情况下,接收用于指示第二目标SE的指示信息;配置非标卡缺省项指向第二目标SE。NFC控制器还用于向非标卡缺省项指向的第二目标SE发送交易指令。
结合第五方面,在另一种可能的设计方式中,上述NFC控制器还用于向非标卡缺省项指向的第二目标SE发送交易指令,包括:NFC控制器,具体用于:如果第二目标SE是非标卡缺省项所指向的SE,NFC控制器可以直接向非标卡缺省项指向的第二目标SE发送交易指令;如果第二目标SE不是非标卡缺省项所指向的SE,NFC控制器则可以配置路由表中的非标卡缺省项指向第二目标SE,然后向非标卡缺省项指向的第二目标SE发送交易指令。
第六方面,本申请实施例提供一种计算机存储介质,该计算机存储介质可以包括计算机指令,当所述计算机指令在电子设备上运行时,使得电子设备执行如第三方面和第四方面及其任一种可能的设计方式所述的方法。
第七方面,本申请实施例提供一种计算机程序产品,当所述计算机程序产品在计算机上运行时,使得所述计算机执行如第三方面和第四方面及其任一种可能的设计方式所述的方法。
可以理解地,上述提供的第三方面和第四方面及其任一种可能的设计方式所述的方法,第五方面所述的NFC芯片,第六方面所述的计算机存储介质,以及第七方面所述的计算机程序产品均可在第一方面和第二方面及其任一种可能的设计方式所述的电子设备实现,因此,其所能达到的有益效果可参考上文所提供的对应的电子设备中的有益效果,此处不再赘述。
附图说明
图1A为本申请实施例提供的一种NFC通信系统示意图;
图1B为本申请实施例提供的一种电子设备的三个SE的形态示意图;
图2为本申请实施例提供的一种NFC应用的注册以及使用流程示意框图;
图3为本申请实施例提供的一种电子设备的硬件结构示意图;
图4为本申请实施例提供的另一种NFC应用的注册以及使用流程示意框图;
图5A为本申请实施例提供的一种SE的自动路由方法流程图;
图5B为本申请实施例提供的一种默认的NFC应用的切换实例示意图;
图6为本申请实施例提供的另一种默认的NFC应用的切换实例示意图;
图7为本申请实施例提供的另一种默认的NFC应用的切换实例示意图;
图8为本申请实施例提供的另一种默认的NFC应用的切换实例示意图。
具体实施方式
以下,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征。在本申请实施例的描述中,除非另有说明,“多个”的含义是两个或两个以上。
请参考图1A,其示出本申请实施例提供的一种NFC通信系统示意图。如图1A所示,该NFC通信系统可以包括电子设备100和外界读卡器101。
其中,电子设备100和外界读卡器101中均包括NFC芯片,可以通过NFC通信。示 例性的,外界读卡器101可以为图2所示的银行POS机、公交POS机或车门读卡器等。或者,外界读卡器101还可以是社保卡读卡机等。本申请实施例对外界读卡器101的具体形态不作限定。
为了便于理解,示例的给出了部分与本申请实施例相关概念的说明以供参考。如下所示:
NFC应用:是用于实现近距离通信的应用程序,其具备用于模拟非接触IC卡的仿真功能。根据应用场景的不同,NFC应用可以分为不同的类型。如,公交类应用、门禁类应用、银行卡类应用等。
其中,NFC应用具有AID,但并不是所有的NFC应用都支持并使用AID。使用AID的NFC应用支持AID识别,即电子设备100能够根据交易指令中携带的AID识别出交易指令所访问的NFC应用。
电子设备100实现卡模拟需要包括三个功能实体,分别为:设备主机(device host,DH),NFC控制器(NFC controller,NFCC)和SE。其中:
DH:可以负责NFCC的管理,如初始化、配置和电源管理等。
NFCC:可以负责通过天线进行数据的物理传输。其中,DH可以包含在电子设备100的主芯片中,NFCC可以包含在电子设备100的NFC芯片中。
SE:可以负责为NFC应用提供安全执行环境(如认证、授权等)以及敏感数据存储的环境。SE是一个安全单元芯片。SE中可同时承载多个NFC应用。
其中,电子设备100可以有一个或多个SE。如果电子设备100有多个SE,则这些SE可以以不同的形式存在。
例如,如图1B所示,电子设备100可以有三个SE。这三个SE分别可以为:以用户标识模块(subscriber identification module,SIM)卡形式存在的SE 1,与NFC芯片一起封装的SE 2,以及以电子设备100的主芯片(如图1B中所示的应用处理器(application processor,AP))形式存在的eSE。对于eSE而言,SE的硬件(如图1B所示的SE 3)部署在位于云端的服务器中。其中,SE 3称为主机卡模拟(host card emulation,HCE)。
当然,上述SE只是作为示例,在本实施例中,SE还可以以其他形式存在于电子设备100。如,以SD卡形式存在的SE。又如,以通用集成电路卡(Universal Integrated Circuit Card,UICC)形式存在的SE等等,本实施例对此不作限制。
NFC应用下载到对应的SE之后,NFC应用可以在“默认付款应用”中注册(即执行图2所示的S1)。这样,用户使用某项NFC应用时,才可以在电子设备的默认付款应用的选择界面中设置默认的NFC应用。
具体的,用户可以通过如下操作控制电子设备100显示默认付款应用的选择界面:用户点击“设置”应用的应用图标,电子设备100显示设置界面;用户点击设置界面中的“NFC”选项,电子设备100显示NFC设置界面;用户点击NFC设置界面中的“默认付款应用”选项,电子设备100显示默认付款应用的选择界面。其中,默认付款应用的选择界面中包括一个或多个NFC管理应用(用于管理一个或多个NFC应用)的选项和一个或多个NFC应用的选项。
例如,默认付款应用的选择界面中可以包括图2中的NFC APP 201中的“钱包”(如华为钱包)应用(即NFC管理应用),以及“车钥匙”应用、“社保卡”应用和“NFC支付APP”应用(即NFC应用)的选项。其中,“钱包”应用是用于管理NFC应用“银 行卡”应用和“公交卡”应用的NFC管理应用。例如,“NFC支付APP”应用可以为图2所示的“京东支付”应用。
如果用户点击默认付款应用的选择界面中的一个NFC应用(独立NFC应用,如“社保卡”应用)的选项,则表示用户选择该NFC应用(如“社保卡”应用)作为默认的NFC应用。其中,需要注意的是,本申请实施例中的“独立NFC应用”的NFC管理应用仅包括一个NFC应用。即该NFC管理应用中仅管理一个NCF应用。例如,假设图2所示的“社保卡”应用是独立NFC应用。如果用户点击默认付款应用的选择界面中的“社保卡”应用的选项,则表示用户选择“社保卡”应用作为默认的NFC应用。如图2所示,“社保卡”应用承载在SE 1中。
如果用户点击默认付款应用的选择界面中的一个NFC管理应用(该NFC管理应用管理多个NFC应用,如“钱包”应用管理“银行卡”应用和“公交卡”应用)的选项,那么用户则可以继续在该NFC管理应用(如“钱包”应用)所管理的NFC应用(如“银行卡”应用和“公交卡”应用)中选择一个NFC应用(如“银行卡”应用)作为默认付款应用。
用户选择默认的NFC应用后,NFCC则可以修改NFCC中的路由表(即执行图2中的S2),使得路由表指向默认的NFC应用所在的SE。如此,NFCC接收到任意一个交易指令后,NFCC中的路由表均指向该SE。即NFC控制器的路由指向该SE。
例如,假设用户选择默认的NFC应用为图2所示的“社保卡”应用,图2所示的“社保卡”应用承载在SE 1中。那么,NFCC则可以修改NFCC中的路由表(即执行图2中的S2),使得路由表指向SE 1。如此,NFCC接收到任意一个交易指令后,NFCC中的路由表均指向SE 1。即NFC控制器的路由指向该SE 1。
又例如,假设用户选择默认的NFC应用为图2所示的“银行卡”应用,图2所示的“银行卡”应用承载在SE 2中。那么,NFCC则可以修改NFCC中的路由表(即执行图2中的S2),使得路由表指向SE 2。如此,NFCC接收到任意一个交易指令后,NFCC中的路由表均指向SE 2。即NFC控制器的路由指向该SE 2。
一般而言,只有NFCC的路由所指向的SE可以承接NFC交易,即处理交易指令。而当交易指令要访问承载在其他SE中的NFC应用时,交易则无法进行。该其他SE不是NFC控制器的路由所指向的SE。具体的,由于NFC控制器的路由无法指向交易指令所要访问的NFC应用所在的SE;因此,NFC控制器无法向该SE发送交易指令,从而该SE中的NFC应用无法执行该交易指令,进而导致交易无法完成。
例如,结合上述图1和图2,以NFCC的路由指向以SIM卡形式存在的SE 1为例。在电子设备100靠近读卡器(或POS机具)时,电子设备可以接收到读卡器(或POS机具)发送的交易指令。如果该交易指令所访问的NFC应用(如图2所示的“社保卡”应用)承载在SE 1中,则NFC控制器可以向SE 1发送该交易指令,由SE 1中对应的NFC应用(如图2所示的“社保卡”应用)执行交易指令,以完成交易。如果该交易指令所访问的NFC应用(如图2所示的“车钥匙”应用)没有承载在SE 1中,而是承载在SE 2或SE 3中(如图2所示的“车钥匙”应用承载在SE 2中),由于NFC控制器的路由无法指向SE 2或SE 3,NFC控制器则无法向SE 2或SE 3发送交易指令,从而SE 2或SE 3中的NFC应用无法执行该交易指令,进而导致交易无法完成。
本实施例提供一种SE的自动路由方法,该方法可以应用于有多个SE的电子设备,该电子设备具备NFC功能。本实施例提供的方法,即使电子设备有多个SE,也可以自动 路由到交易指令访问的NFC应用所在的SE。
请参考图3。图3示出了本实施例提供的电子设备100的结构示意图。如图3所示,电子设备100可以包括处理器310,外部存储器接口320,内部存储器321,通用串行总线(universal serial bus,USB)接口330,充电管理模块340,电源管理模块341,电池342,天线1,天线2,移动通信模块350,无线通信模块360,音频模块370,扬声器370A,受话器370B,麦克风370C,耳机接口370D,传感器模块380,按键390,马达391,指示器392,摄像头393,显示屏394,以及SIM卡接口395等。
其中,传感器模块380可以包括压力传感器380A,陀螺仪传感器380B,气压传感器380C,磁传感器380D,加速度传感器380E,距离传感器380F,接近光传感器380G,指纹传感器380H,温度传感器380J,触摸传感器380K,环境光传感器380L,骨传导传感器380M等。
可以理解的是,本实施例示意的结构并不构成对电子设备200的具体限定。在另一些实施例中,电子设备200可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。
处理器310可以包括一个或多个处理单元,例如:处理器310可以包括AP,调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。
在一些实施例中,电子设备100可以包括以AP形式存在的SE,可以称为eSE。对于eSE而言,SE的硬件(如图1B所示的SE 3)部署在位于云端的服务器中。
其中,控制器可以是电子设备100的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。
处理器310中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器310中的存储器为高速缓冲存储器。该存储器可以保存处理器310刚用过或循环使用的指令或数据。如果处理器310需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器310的等待时间,因而提高了系统的效率。
充电管理模块340用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。电源管理模块341用于连接电池342,充电管理模块340与处理器310。电源管理模块341接收电池342和/或充电管理模块340的输入,为处理器310,内部存储器321,外部存储器,显示屏394,摄像头393,和无线通信模块360等供电。
电子设备100的无线通信功能可以通过天线1,天线2,移动通信模块350,无线通信模块360,调制解调处理器以及基带处理器等实现。
天线1和天线2用于发射和接收电磁波信号。电子设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。
移动通信模块350可以提供应用在电子设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块350可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块350可以由天线1接收电磁波, 并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块350还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。无线通信模块360可以提供应用在电子设备100上的包括NFC,无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(blue tooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块360可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块360经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器310。无线通信模块360还可以从处理器310接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。
在一些实施例中,无线通信模块360可以包括NFC芯片,该NFC芯片可以包括NFCC。该NFC芯片能够对信号进行放大、模数转换及数模转换、存储等处理。DH包括在电子设备100的主芯片中。DH可以与电子设备100的处理器集成在一起。
在一些实施例中,电子设备100可以包括与NFC芯片一起封装的SE 2。该SE 2封装在电子设备100的NFC芯片中。
在一些实施例中,电子设备100的天线1和移动通信模块350耦合,天线2和无线通信模块360耦合,使得电子设备100可以通过无线通信技术与网络以及其他设备通信。
电子设备100通过GPU,显示屏394,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏394和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器310可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。显示屏394用于显示文字、图像、视频等。
电子设备100可以通过ISP,摄像头393,视频编解码器,GPU,显示屏394以及应用处理器等实现拍摄功能。
ISP用于处理摄像头393反馈的数据。例如,拍照时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将所述电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度,肤色进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。在一些实施例中,ISP可以设置在摄像头393中。
摄像头393用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,电子设备100可以包括1个或N个摄像头393,N为大于1的正整数。
数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。例如,当电子设备100在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。
视频编解码器用于对数字视频压缩或解压缩。电子设备100可以支持一种或多种视频编解码器。这样,电子设备100可以播放或录制多种编码格式的视频,例如:动态图像专家组(moving picture experts group,MPEG)1,MPEG2,MPEG3,MPEG4等。
NPU为神经网络(neural-network,NN)计算处理器,通过借鉴生物神经网络结构, 例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现电子设备100的智能认知等应用,例如:图像识别,人脸识别,语音识别,文本理解等。
外部存储器接口320可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备100的存储能力。外部存储卡通过外部存储器接口320与处理器310通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。在一些实施例中,该电子设备100可以包括以外部存储卡形式存在的SE。
内部存储器321可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器310通过运行存储在内部存储器321的指令,从而执行电子设备100的各种功能应用以及数据处理。内部存储器321可以包括存储程序区和存储数据区。
电子设备100可以通过音频模块370,扬声器370A,受话器370B,麦克风370C,耳机接口370D,以及应用处理器等实现音频功能。例如音乐播放,录音等。
音频模块370用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块370还可以用于对音频信号编码和解码。在一些实施例中,音频模块370可以设置于处理器310中,或将音频模块370的部分功能模块设置于处理器310中。
扬声器370A,也称“喇叭”,用于将音频电信号转换为声音信号。电子设备100可以通过扬声器370A收听音乐,或收听免提通话。受话器370B,也称“听筒”,用于将音频电信号转换成声音信号。当电子设备100接听电话或语音信息时,可以通过将受话器370B靠近人耳接听语音。
麦克风370C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。电子设备100可以设置至少一个麦克风370C。在另一些实施例中,电子设备100可以设置两个麦克风370C,除了采集声音信号,还可以实现降噪功能。在另一些实施例中,电子设备100还可以设置三个,四个或更多麦克风370C,实现采集声音信号,降噪,还可以识别声音来源,实现定向录音功能等。
耳机接口370D用于连接有线耳机。耳机接口370D可以是USB接口330,也可以是3.5mm的开放移动电子设备平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口。
按键390可以包括开机键,音量键等。按键390可以是机械按键。也可以是触摸式按键。电子设备100可以接收按键输入,产生与电子设备100的用户设置以及功能控制有关的键信号输入。马达391可以产生振动提示。不同的应用场景(例如:时间提醒,接收信息,闹钟,游戏等)也可以对应不同的振动反馈效果。指示器392可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。
SIM卡接口395用于连接SIM卡。SIM卡可以通过插入SIM卡接口395,或从SIM卡接口395拔出,实现和电子设备100的接触和分离。电子设备100可以支持1个或N个SIM卡接口,N为大于1的正整数。SIM卡接口395可以支持Nano SIM卡,Micro SIM卡,SIM卡等。在一些实施例中,电子设备100可以包括以SIM卡形式存在的SE 1。该SE 1封装在电子设备100的SIM卡中。
其中,以下实施例中所涉及的技术方案均可以在具有上述硬件架构的电子设备100中实现。以下对本实施例提供的SE的自动路由方法进行详细介绍。为了便于理解,以下 实施例中均以电子设备有三个SE(如参见图1B所示)为例进行介绍。
其中,本申请实施例中NFC应用的标识可以为第一标识或第二标识,第一标识是标准NFC应用的标识,而第二标识是非标准NFC应用的标识。例如,第一标识可以是AID,标准NFC应用是指支持AID的NFC应用。而第二标识不是AID,非标准NFC应用不支持AID。
本申请实施例提供一种SE的自动路由方法。电子设备100可以从服务器下载多个NFC应用。该多个NFC应用可以承载在电子设备100的一个或多个SE中。每个SE可以承载至少一个NFC应用。
其中,用户可以在电子设备100中设置默认的NFC应用,如用户设置NFC应用1为电子设备100中默认的NFC应用。假设该NFC应用1承载在SE 1中,则电子设备100的NFCC的路由指向SE 1。但是,电子设备100靠近读卡器或POS机具时,电子设备100接收到的交易指令所要访问的NFC应用可能不是SE 1中的NFC应用。例如,交易指令所要访问的NFC应用可能是NFC应用2,NFC应用2承载在SE 2中。由于电子设备100的NFCC的路由未指向SE 1,因此,该交易无法进行。
而本申请实施例中,无论NFCC的路由是否指向交易指令所要访问的NFC应用所在的SE,电子设备100(电子设备100的NFCC)都可以自动路由到交易指令所要访问的NFC应用所在的SE,与读卡器或POS机具交互完成交易。
电子设备100的NFCC可保存多个NFC应用的第一标识和SE位置信息。该SE位置信息指示承载对应NFC应用的SE。例如,电子设备100的NFCC可以维护一个路由表。电子设备100的NFCC可以在路由表中配置一个或多个NFC应用的路由信息,该NFC应用的路由信息可以包括该NFC应用的第一标识和SE位置信息。该SE位置信息指示承载该NFC应用的SE,即该NFC应用的承载在电子设备100的哪一个SE中。例如,上述第一标识可以为NFC应用的AID。当然,第一标识包括但不限于AID。
之后,电子设备100靠近读卡器或POS机具时,电子设备100的NFCC可以接收到来自读卡器或POS机具的交易指令。该交易指令中可能包括第一标识(如AID),或者该交易指令中也可能不包括第一标识。因此,如图5A所示,电子设备100的NFCC在接收到交易指令后,可以判断该交易指令中是否包含AID。如果该交易指令中包括AID,则可以从上述路由表中查找该AID对应的SE位置信息;然后,将接收到交易指令传输至该SE位置信息所指示的SE(即第一目标SE)。也就是说,NFCC可以根据交易指令中携带的第一标识,自动路由至交易指令所要访问的NFC应用所在的SE。
进一步的,该SE位置信息所指示的SE(即第一目标SE)接收到交易指令后,则可以从第一目标SE承载的NFC应用中确定第一目标NFC应用(即交易指令所访问的NFC应用),并运行第一目标NFC应用,执行交易指令。
具体的,第一目标SE可以向交易指令所访问的NFC应用(即第一目标NFC应用)发送交易指令,由第一目标NFC应用执行该交易指令,以便完成交易。
其中,本申请实施例中,电子设备100靠近读卡器或POS机具,具体可以为:电子设备100与读卡器或POS机具之间的距离小于预设距离阈值。其中,本申请实施例中的读卡器或POS。
示例性的,请参考表1,其示出图2或图4所示的多个NFC应用的AID标识。
表1
Figure PCTCN2020085520-appb-000001
Figure PCTCN2020085520-appb-000002
如表1所示,“社保卡”应用的AID为AID-1;“银行卡”应用的AID为AID-2;“公交卡”应用的AID为AID-3;“车钥匙”应用的AID为AID-4;“NFC支付”应用的AID为AID-5。例如,“NFC支付APP”应用可以为“美团支付”应用,或者图2所示的“京东支付”应用等。
示例性的,请参考表2,其示出本申请实施例提供的一种路由表实例。
表2
Figure PCTCN2020085520-appb-000003
其中,上述SE位置信息可以为承载该NFC应用的SE的标识。如表2所示,SE位置信息1可以为SE 1的标识,SE位置信息2可以为SE 2的标识,SE位置信息3可以为SE 3的标识。
并且,由表2可知:AID-1对应SE位置信息1,表1所示的AID-1所标识的“社保卡”应用承载在SE 1(即图4所示的以SIM卡形式存在的SE 1);表1所示的AID-2所标识的“银行卡”应用、AID-3所标识的“公交卡”应用和AID-4所标识的“车钥匙”应用承载在SE 2(即图4所示的与NFC芯片一起封装的SE 2)中;表1所示的AID-5所标识的“NFC支付APP”应用承载在SE 3(即图4所示的以HCE形式存在的SE 3)中。
可以理解,上述SE位置信息所指示的SE可能是NFCC的路由所指向的SE,也可能不是NFCC的路由所指向的SE。电子设备100查找到上述AID对应的SE位置信息后,可以判断该SE位置信息所指示的SE是为NFCC的路由所指向的SE。如果该SE是NFCC的路由所指向的SE,NFCC可以直接将接收到交易指令传输至该SE,由该SE中交易指令所访问的NFC应用执行该交易指令,完成交易。如果该SE不是NFCC的路由所指向的SE,NFCC可以修改路由指向该SE,然后将接收到交易指令传输至该SE,由该SE中交易指令所访问的NFC应用执行该交易指令,完成交易。
例如,假设默认的NFC应用为图4所示的“社保卡”应用,该“社保卡”应用承载在图4所示的SE 1中,NFCC的路由指向SE 1。
如果电子设备100的NFCC接收到携带AID-1的交易指令1。NFCC可以从表2所示的路由表中查找到AID-1对应的SE位置信息1。该SE位置信息1指示该交易指令1所访 问的NFC应用承载在SE 1中。电子设备100则可以直接将交易指令1传输至SE 1,由SE 1中交易指令1所访问的NFC应用(如表1所示,AID-1对应的“社保卡”应用)执行交易指令1,完成交易。
如果电子设备100的NFCC接收到携带AID-3的交易指令2。NFCC可以从表2所示的路由表中查找到AID-3对应的SE位置信息2。该SE位置信息2指示该交易指令2所访问的NFC应用承载在SE 2中。电子设备100则可以修改路由指向该SE 2;然后,将交易指令2传输至SE 2,由SE 2中交易指令2所访问的NFC应用(如表1所示,AID-3对应的“公交卡”应用)执行交易指令2,完成交易。
本申请实施例中,一个NFC管理应用可以管理一个或多个NFC应用。NFC管理应用携带其所管理的NFC应用的第一标识和SE位置信息。其中,电子设备100安装NFC应用的(如第一目标NFC应用)NFC管理应用时,该NFC管理应用可以向电子设备100的默认付款应用注册。如此,默认付款应用便可以向电子设备100的NFCC传输该NFC应用的第一标识和SE位置信息。电子设备100的NFCC便可以保存该NFC应用的第一标识和SE位置信息。
示例性的,电子设备100的NFCC可以维护一个路由表,该路由表中包括多个NFC应用的AID和SE位置信息的对应关系。如此,即使电子设备100中包括多个SE,电子设备100也可以根据交易指令中携带的AID,在路由表中查找到该交易指令所要访问的NFC应用的SE位置信息,确定出承载该交易指令所要访问的NFC应用的SE。即NFCC可以根据交易指令中携带的第一标识,自动路由至交易指令所要访问的NFC应用所在的SE。
在本申请实施例中,所述的交易指令可以是任何类型读卡器(如,手持移动读卡器,固定读卡器)或任何类型POS机具(如,手持移动POS机具,固定POS机具)所发出指令。其可以是各种类型或各种帧格式的指令。如,交易指令可以是应用协议数据单元(Application Protocol Data Unit,APDU)帧格式、单字节短帧格式、长帧格式等帧格式的指令。又如,交易指令可以是14443类型(TYPE)A,14443 TYPE B,国际标准化组织(International Standard Organization,ISO)18092,ISO15693等类型的指令。
本申请实施例这里对NFCC配置路由表的方法进行说明。
在一些实施例中,在安装NFC应用的NFC管理应用时,该NFC应用对应在表1所示的路由表中的路由信息可以根据电子设备100的DH下发的路由配置命令来配置。其中,该NFC应用的路由信息可以包括该NFC应用的AID和SE位置信息。SE位置信息用于指示该NFC应用承载在哪一个SE中。其中,上述默认付款应用由DH管理。
具体的,某NFC应用(如“社保卡”应用)下载到了电子设备100的某个SE(如以SIM卡形式存在的SE 1)中。电子设备100的该SE(如SE 1)在确定出该NFC应用下载到该SE成功后,可以向电子设备100的DH发送用于指示该NFC应用已下载成功的消息。电子设备100的DH接收到该消息后,可以向电子设备100的NFCC发送路由配置命令。该路由配置命令可以是在电子设备100的本地预先定义的,也可以是提供该NFC应用下载资源的服务器下发给电子设备100的DH的。该路由配置命令用于指示NFCC在上述路由表中配置该NFC应用的路由信息。电子设备100的NFCC根据该路由配置命令,便可以在上述路由表中配置该NFC应用的路由信息。该路由信息可以包括,该NFC应用的AID与SE位置信息。
例如,以在NFCC中配置“门禁卡”应用的路由信息为例,对在上述路由表中进行路由配置的过程进行介绍。对于“社保卡”应用、“车钥匙”应用以及“公交卡”应用等 的路由信息配置过程的具体描述与“门禁卡”应用对应的路由信息配置过程的具体描述类似。
其中,根据用户的操作,电子设备100可以下载“门禁卡”应用到电子设备100的SE中。如图4所示,该“门禁卡”应用下载到了SE 3中。在该“门禁卡”应用下载到SE 3成功后,该SE 3可以向电子设备100的DH发送指示成功的消息。电子设备100的DH响应于该消息,可以向电子设备100的NFCC发送路由配置命令。如该路由配置命令中包括:“门禁卡”应用的路由信息,如AID-6和SE位置信息3。电子设备100的NFCC根据DH下发的路由配置命令便可以进行路由配置,即在表2所示的路由表中配置“门禁卡”应用的路由信息。例如,配置的路由信息如表3所示的路由表中的路由信息(AID-6和SE位置信息3)。这样,“门禁卡”应用的路由信息便配置完成,后续可利用该路由信息确定出交易指令是否要访问该NFC应用。
表3
Figure PCTCN2020085520-appb-000004
可以理解,在“门禁卡”应用下载到SE 3成功后,该SE 3可以向电子设备100的DH发送指示成功的消息。电子设备100的DH响应于该消息,可以将“门禁卡”应用注册到默认付款应用中(即执行图4所示的Sa)。然后,电子设备100的DH可以通过向电子设备100的NFCC发送路由配置命令,指示电子设备100的NFCC在路由表中配置该路由信息(即执行图4所示的Sb)。
可以理解,上述NFC管理应用(如“钱包”应用)可以管理一个或多个NFC应用。例如,如图2或图4所示的“钱包”应用(即NFC管理应用)管理“银行卡”应用和“公交卡”应用这两个NFC应用。其中,不同的NFC应用所支持的NFC业务的验证方式不同。具体的,如图5B所示,“银行卡”应用对应要求验证模式,需要通过用户验证(如密码验证、指纹验证、人脸验证、虹膜认证、声纹认证、行为认证等),才可以完成交易。而“公交卡”应用则对应直接刷卡模式,不需要用户验证便可以完成交易。
例如,针对“公交卡”应用,电子设备100与读卡器或POS机具(如公交POS机)的交互过程可以包括:(1)公交POS机一直发送NFC场强信号;(2)电子设备100靠近公交POS机时,可接收到公交POS机发送的场强信号;(3)电子设备100的NFCC不需要用户验证便可响应于该场强信号向公交POS机回复响应;(4)公交POS机接收到响应后,向电子设备100发送交易指令;(5)电子设备100的NFCC接收交易指令,并根据交易指令完成交易。
又例如,以使用“银行卡”应用在超市收银台付款为例,电子设备100与超市POS机的交互过程可以包括:(1)超市POS机一直发送NFC场强信号;(2)电子设备100 靠近超市POS机时,可接收到超市POS机发送的场强信号;(3)电子设备100需要调起用户验证(如密码验证、指纹验证、人脸验证、虹膜认证、声纹认证、行为认证等),在用户验证成功后,才会向超市POS机发送响应;(4)超市POS机接收到响应后,向电子设备100发送交易指令;(5)电子设备100的NFCC接收交易指令,并根据交易指令完成交易。
但是,请参考图6中的(a),如果用户在上述“钱包”应用中,将“公交卡”应用设置为默认的NFC应用,那么该“钱包”应用中的其他NFC应用(如“银行卡”应用)则会被禁用。此时,如果电子设备100靠近超市POS机,则电子设备100与超市POS机之间的交易则可能会因为无法调起用户验证而失败。如果用户想要使用“银行卡”应用付款,则可以在“钱包”应用中,将“银行卡”应用设置为默认的NFC应用,那么该“钱包”应用中的其他NFC应用(如“公交卡”应用)则会被禁用。此时,如果电子设备100靠近公交POS机,则电子设备100与公交POS机之间的交易则会失败。如果用户想要再次使用“公交卡”应用付款,则可以重新再“钱包”应用中,将“公交卡”应用设置为默认的NFC应用。在用户的日常生活中,该用户可能要频繁的在“钱包”应用中手动切换设置默认的NFC应用,用户体验较差。
基于此,本申请实施例中,提出“直刷为常态,验证为临时”的概念,电子设备100的一个NFC管理应用可以管理的NFC应用包括:第一NFC应用(如“公交卡”应用、“社保卡”应用,或者“车钥匙”应用等)和第二NFC应用(如“银行卡”应用)。其中,第一NFC应用支持的NFC业务的验证方式为直接刷卡模式,不需要进行用户验证。第二NFC应用支持的NFC业务的验证方式为要求验证模式,需要进行用户验证。其中,用户验证至少为密码验证、指纹验证、虹膜认证、声纹认证、行为认证或人脸验证中的任一项。
上述SE的自动路由方法,以及本申请实施例提供的一种NFC应用自动激活的方法可以包括以下方案:电子设备100中的第一NFC应用和第二NFC应用承载在第一SE中;第一NFC应用可以为常态下默认的NFC应用,第二NFC应用可以为临时默认的NFC应用。具体的,电子设备100中默认的NFC应用可以为上述第一NFC应用(该第一NFC应用可以由用户设置为默认的NFC应用);如此,用户随时使用该电子设备100都可以与第一NFC应用对应的读卡器或POS机具完成交易。而当用户想要使用上述第二NFC应用付款时,则可以在电子设备100输入预设快捷操作。响应于该预设快捷操作,电子设备100可以临时将上述第二NFC应用设置为默认的NFC应用,以使电子设备100可以与第二NFC应用对应的读卡器或POS机具完成交易。
本申请实施例中,即使一个SE中包括直接刷卡模式的第一NFC应用(如“公交卡”应用、“社保卡”应用,或者“车钥匙”应用等)和要求验证模式的第二NFC应用(如“银行卡”应用),也不需要用户频繁设置默认的NFC应用。电子设备100可以随时与第一NFC应用对应的读卡器或POS机具完成交易;并且,可以响应于预设快捷操作,与第二NFC应用对应的读卡器或POS机具完成交易。
例如,上述预设快捷操作至少可以为:用户对电子设备100的电源键(或者称为锁屏键)的双击操作,用户对电子设备100的预设敲击操作(如对电子设备100的后壳的N次连续敲击操作,N≥2,N为正整数),用户对电子设备100的Home键的预设操作(如长按操作等),用户向电子设备100输入预设指纹信息等中的任意一种。
进一步的,在电子设备100与第二NFC应用对应的读卡器或POS机具完成交易后, 或者,从电子设备100将上述第二NFC应用设置为默认的NFC应用开始的预设时间后,电子设备100中默认的NFC应用重新切换为上述第一NFC应用。例如,上述预设时间可以为1分钟,2分钟或者30秒等。该预设时间可以由用户设置,或者预设时间可以是预先配置在电子设备100中的固定时间长度。
示例性的,假设上述第二NFC应用是上述实例中的“银行卡”应用,第一NFC应用是“公交卡”应用。“银行卡”应用和“公交卡”应用包括在“钱包”应用中,用户可以在“钱包”应用中管理“银行卡”应用和“公交卡”应用。例如,用户可以在“钱包”应用中设置“银行卡”应用或“公交卡”应用为电子设备100默认的NFC应用。
例如,请参考图6中的(a),用户可以设置“公交卡”应用为默认的NFC应用。其中,用户在“钱包”应用中,设置“公交卡”应用为默认的NFC应用的方法这里不予赘述。用户设置“公交卡”应用为默认的NFC应用后,该“公交卡”应用可以作为电子设备100常态下默认的NFC应用。如果电子设备100靠近公交POS机,电子设备100的NFCC不需要进行用户验证,便可以由“公交卡”应用执行交易指令,与公交POS机完成交易。用户想要使用“银行卡”应用付款(如超市购物)时,则可以向电子设备100输入预设快捷操作,然后将电子设备100靠近超市POS机。由于响应于预设快捷操作,电子设备100可以将“银行卡”应用设置为临时默认的NFC应用;因此,当电子设备100靠近超市POS机时,电子设备100可以成功调起用户验证,并在用户验证成功后,由“银行卡”应用执行交易指令,与超市POS机完成交易。随后,在电子设备100与超市POS机完成交易后(图6中的(b)未示出),或者,从电子设备100将“银行卡”应用设置为默认的NFC应用开始的预设时间(如1分钟)后,电子设备100中默认的NFC应用重新切换为“公交卡”应用。如此,电子设备100中默认的NFC应用又切换为直接刷卡模式的“公交卡”应用。
本申请实施例中,电子设备100可以将直接刷卡模式的第一NFC应用(如“公交卡”应用、“社保卡”应用,或者“车钥匙”应用等)设置为常态下默认的NFC应用;将要求验证模式的第二NFC应用(如“银行卡”应用)设置为临时默认的NFC应用。如此,用户随时使用该电子设备100都可以与第一NFC应用对应的读卡器或POS机具完成交易。而当用户想要使用上述第二NFC应用付款时,则可以在电子设备100输入预设快捷操作。响应于该预设快捷操作,电子设备100可以临时将上述第二NFC应用设置为默认的NFC应用,以使电子设备100可以与第二NFC应用对应的读卡器或POS机具完成交易。
可以理解,一个NFC管理应用中可以包括一个第一NFC应用。或者,一个NFC管理应用中可以包括多个第一NFC应用。例如,“钱包”应用中可以包括“公交卡”应用、“社保卡”应用和“车钥匙”应用等多个NFC应用。
当“钱包”应用中包括“公交卡”应用、“社保卡”应用和“车钥匙”应用等多个NFC应用时,电子设备100可以根据读卡器或POS机具发送的交易指令中的AID,激活对应的NFC应用,由对应的NFC应用执行该交易指令,完成交易。
需要注意的是,为了保证上述用户验证的安全性,上述用户验证(如图2和图4所示的指纹验证),可以在可信执行环境(trust execution environment,TEE)中进行。而用户对默认的NFC应用的设置,以及NFC应用的注册等对安全性要求比较低的流程则可以在可以执行富指令的普通执行环境(rich execution environment,REE)中执行。
可以理解,不是所有的NFC应用都支持并使用第一标识(如AID)。以第一标识是AID为例。例如,一些公交卡不支持并使用AID。因此,在一些实施例中,电子设备100 的NFCC接收到的交易指令中是不包括AID的。
基于这种情况,上述路由表中可以包括非标卡缺省项。该非标卡缺省项用于在交易指令中不包含AID时,指向电子设备100的当前场景信息对应的SE(即第二目标SE)。电子设备100(如电子设备100的NFC管理应用,如“钱包”应用)可以保存每个非标准NFC应用的查询信息。其中,一个非标准NFC应用的查询信息可以包括:该非标准NFC应用的使用场景信息、SE位置信息和第二标识。非标准NFC应用的使用场景信息用于指示使用该非标准NFC应用的场景信息。
第二标识:该第二标识用于标识非标准NFC应用,第二标识不是第一标识(如AID)。该第二标识可以是电子设备100为该非标准NFC应用分配的编号。
使用场景信息:该使用场景信息至少可以包括地理位置信息、时间信息和操作信息中的一项或多项。
上述地理位置信息用于指示该非标准NFC应用可被使用的地理位置。如西安的“公交卡”应用可被使用的地理位置为西安市,深圳的“公交卡”应用可被使用的地理位置为深圳市。又例如,家门的“社保卡”应用可被使用的地理位置为家对应的地理位置,“车钥匙”应用可被使用的地理位置为车库。
上述时间信息用于指示对应非标准NFC应用可被使用的时间。上述时间信息可以为电子设备100统计的用户经常使用该非标准NFC应用的时间。例如,电子设备100统计得到用户在7:00-7:30和18:00-18:30这两个时间段内经常使用“社保卡”应用,那么该“社保卡”应用的时间信息则可以为7:00-7:00和18:00-18:30。
上述操作信息用于指示非标准NFC应用被使用前用户对电子设备100的操作。例如,假设“社保卡”应用的操作信息可以为用户对电子设备100的机身的双击操作,“车钥匙”应用的操作信息可以为用户对电子设备100的机身的摇晃操作。
SE位置信息:该SE位置信息指示承载该非标准NFC应用的SE,即该非标准NFC应用的承载在电子设备100的哪一个SE中。
例如,上述电子设备100(例如,图7所示的场景管理模块701)可以保存一个或多个非标准NFC应用的使用场景信息、SE位置信息和第二标识。例如,电子设备100(例如,图7所示的场景管理模块701)可以维护一个非标卡信息表。该非标卡信息表中可以包括电子设备100中安装的非标准NFC应用的查询信息。非标准NFC应用的查询信息可以包括非标准NFC应用的使用场景信息、SE位置信息和第二标识。
需要注意的是,图7所示的场景管理模块701维护的非标卡信息表中的查询信息可以是电子设备100中安装对应非标准NFC应用时配置的。其中,电子设备100中安装非标准NFC应用时,在电子设备100(如图7所示的场景管理模块701)中配置该非标准NFC应用的查询信息的方法在以下实施例中介绍。其中,本申请实施例中的场景管理模块701可以为用于管理多个NFC应用的NFC管理应用,如上述“钱包”应用。
例如,假设电子设备100中管理了图7所示的非标准NFC应用1(如深圳市的“公交”应用)、非标准NFC应用2(如西安市的“公交”应用)和非标准NFC应用3(如上海市的“公交卡”应用)这三个非标准NFC应用。其中,非标准NFC应用1的标识(如编号)为标识1、非标准NFC应用1承载在SE 1中,使用非标准NFC应用1的场景信息为场景信息1。非标准NFC应用2的标识(如编号)为标识2、非标准NFC应用2承载在SE 2中,使用非标准NFC应用2的场景信息为场景信息2。非标准NFC应用3的标识(如编号)为标识3、非标准NFC应用2承载在SE 3中,使用非标准NFC应用3的场景信息 为场景信息3。
请参考表4,为本申请实施例提供的一种非标卡信息表实例,其示出了上述非标准NFC应用1(如深圳市的“公交”应用)、非标准NFC应用2(如西安市的“公交”应用)和非标准NFC应用3(如上海市的“公交卡”应用)的查询信息。
表4
Figure PCTCN2020085520-appb-000005
之后,电子设备100靠近读卡器或POS机具时,电子设备100的NFCC可以接收到来自读卡器或POS机具的交易指令。该交易指令中可能包括AID,或者该交易指令中也可能不包括AID。因此,如图5A所示,电子设备100的NFCC在接收到交易指令后,可以判断该交易指令中是否包含AID。如果该交易指令中不包括AID,电子设备100则可以获取该电子设备100当前的场景信息。电子设备100可以从上述非标卡信息表中查找与当前的场景信息对应的非标准NFC应用的标识(如标识2)和SE位置信息(如该SE位置信息指示SE 2)。电子设备100的NFCC配置路由表中的非标卡缺省项指向查找到的SE位置信息所指示的SE(即第二目标SE,如SE 2)。如此,电子设备100的NFCC便可以将交易指令传输至非标卡缺省项所指向的SE(即第二目标SE,如SE 2)。
进一步的,电子设备100还可以向该SE位置信息所指示的SE(如SE 2)通知查找到的非标准NFC应用的标识(如标识2)。如此,该SE位置信息所指示的SE(如SE 2)接收到交易指令后,则可以自动激活上述标识(如标识2)对应的非标准NFC应用(即第二目标NFC应用),并执行该交易指令,以便完成交易。
示例性的,本申请实施例这里结合附图7,对上述NFC的交易过程进行详细介绍:
首先,电子设备100靠近读卡器或POS机具时,电子设备100的NFCC接收到来自读卡器或POS机具的交易指令。电子设备100的NFCC确定该交易指令中不包括AID。电子设备100的场景信息获取模块702获取电子设备100当前的场景信息。
其次,场景信息获取模块702向场景管理模块701传输当前的场景信息。场景管理模块701从上述非标卡信息表中查找与当前的场景信息对应的非标准NFC应用的标识(如标识2)和SE位置信息(如该SE位置信息指示SE 2)。
随后,场景管理模块701可以向NFCC指示该SE位置信息,使得NFCC配置路由表中的非标卡缺省项指向该SE位置信息所指示的SE(如SE 2)。如此,NFCC可以将交易指令传输至非标卡缺省项所指向的SE(如SE 2)。
并且,场景管理模块701还可以向上述SE位置信息所指示的SE(如SE 2)通知查找到的非标准NFC应用的标识(如标识2)。这样,上述SE位置信息所指示的SE(如SE 2)接收到交易指令后,则可以自动激活上述标识(如标识2)对应的非标准NFC应用,并执行该交易指令,以便完成交易。
其中,上述场景信息至少可以包括地理位置信息、时间信息和操作信息中的一项或多项。那么上述场景信息获取模块702则可以包括地理位置获取模块(如GPS定位模块)和时间信息获取模块(如电子设备100中的是时钟和日历等)等。
可以理解,上述与当前的场景信息对应的SE位置信息所指示的SE(如SE 2)可能是NFCC的路由所指向的SE,也可能不是NFCC的路由所指向的SE。电子设备100查找到上述SE位置信息后,可以判断该SE位置信息所指示的SE是否为路由表中的非标卡缺省项所指向的SE。如果该SE是非标卡缺省项所指向的SE,NFCC可以直接将接收到交易指令传输至该SE,由该SE自动激活与当前的场景信息对应的标识所指示的非标准NFC应用,执行该交易指令完成交易。如果该SE不是非标卡缺省项所指向的SE,NFCC则可以配置路由表中的非标卡缺省项指向该SE,然后将接收到交易指令传输至该SE,由该SE自动激活与当前的场景信息对应的标识所指示的非标准NFC应用,执行该交易指令完成交易。
例如,假设默认的NFC应用为图7所示的非标准NFC应用1,该非标准NFC应用1承载在图7所示的SE 1中,NFCC的路由表中的非标卡缺省项指向SE 1。
如果电子设备100的NFCC接收到携带交易指令3,该交易指令3中不包括AID,电子设备100获取到电子设备100当前的场景信息为表4所示的场景信息2,那么电子设备100可以从表4可以查找到场景信息2对应的标识2和SE位置信息2。该标识2是非标准NFC应用2的标识,该SE位置信息2指示SE 2。电子设备100的NFCC则可以配置路由表中的非标卡缺省项指向SE 2。然后,将交易指令3传输至SE 2,由SE 2自动激活标识2所指示的非标准NFC应用2,激活的非标准NFC应用2执行交易指令3完成交易。
如果电子设备100的NFCC接收到携带交易指令4,该交易指令4中不包括AID,电子设备100获取到电子设备100当前的场景信息为表4所示的场景信息1,那么电子设备100可以从表4可以查找到场景信息1对应的标识1和SE位置信息1。该标识1是非标准NFC应用1的标识,该SE位置信息1指示SE 1。电子设备100的NFCC则可以配置路由表中的非标卡缺省项指向SE 1,直接将交易指令4传输至SE 1,由SE 1自动激活标识1所指示的非标准NFC应用1,激活的非标准NFC应用1执行交易指令4完成交易。
本申请实施例这里对电子设备100配置上述非标卡信息表的方法进行说明。
在一些实施例中,在安装NFC应用时,该NFC应用对应在表4所示的非标卡信息表中的查询信息可以根据电子设备100的DH下发的路由配置命令来配置。其中,该非标准NFC应用的查询信息可以包括该非标准NFC应用的标识、SE位置信息和场景信息。
具体的,在安装某非标准NFC应用(如图7所示的非标准NFC应用4)时,该NFC应用下载到了电子设备100的某个SE(如SE 2)中。电子设备100的该SE(如SE 2)在确定出该非标准NFC应用下载到该SE成功后,可以向电子设备100的DH发送用于指示该非标准NFC应用已下载成功的消息。电子设备100的DH响应于该消息,可以将该非标准NFC应用(如图7所示的非标准NFC应用4)注册到默认付款应用中(即执行图7所示的S-A)。其中,DH响应于该消息将图7所示的非标准NFC应用4注册到默认付款应用时,可以在该默认付款应用中配置该非标准NFC应用4的标识4、指示SE 2的SE位置信息和场景信息4。最后,电子设备100的DH可以在上述场景管理模块701维护的非标卡信息表中配置该非标准NFC应用(如图7所示的非标准NFC应用4)的查询信息(即执行图7所示的S-B)。例如,非标准NFC应用4的查询信息如表5所示的非标卡信息表中的查询信息(标识4、SE位置信息4和场景信息4)。这样,非标准NFC应用4的查询信息便配置完成,后续可利用该查询信息确定出交易指令是否要访问该NFC应用。
表5
Figure PCTCN2020085520-appb-000006
需要注意的是,部分非标准NFC卡的场景信息是按照上述方式,在下载该非标准NFC应用时配置的。例如,各地的“公交卡”应用的地理位置信息是下载该“公交卡”应用时配置的。而部分非标准NFC卡的场景信息则是在用户使用该非标准NFC卡一段时间后,电子设备100统计得到的用户经常使用该非标准NFC应用的场景信息(如地理位置信息和/时间信息)。例如,“社保卡”应用的场景信息是在用户使用该“社保卡”应用一段时间后,电子设备100统计得到的用户经常使用“社保卡”应用的场景信息。
在一些实施例中,以上述场景信息是地理位置信息为例。如图8所示,北京“公交卡”应用承载在SE 1中,深圳“公交卡”应用承载在SE 2中,西安“公交卡”应用承载在SE 3中。其中,北京“公交卡”应用、深圳“公交卡”应用和西安“公交卡”应用均为非标准NFC应用,不支持AID。西安“公交卡”应用的标识为标识a、场景信息为西安,SE位置信息指示西安“公交卡”应用承载在SE 3中。
当用户手持电子设备100靠近公交车上的POS机具时,电子设备100的NFCC可以接收POS机具发送的交易指令。电子设备100在接收到交易指令后,可以获取用户当前所处的地理位置信息。如果获取到的地理位置表明用户当前处于西安,电子设备100的NFCC可以将接收到的交易指令传输至SE 3,SE 3自动激活西安“公交卡”应用,并执行该交易指令,如从该西安“公交卡”应用中扣除相应的金额。
例如,如图8所示,场景信息获取模块(如地理位置获取模块)702可以获取当前的地理位置信息,并执行S(1)向场景管理模块(如公交卡管理APP,即NFC管理应用)701发送当前的地理位置信息。场景管理模块(如公交卡管理APP,即NFC管理应用)701可以从非标卡信息表中查找与地理位置信息“西安”对应的西安“公交卡”应用的标识a和指示SE 3的SE位置信息。然后,场景管理模块701可以向NFCC指示该SE位置信息,使得NFCC配置路由表中的非标卡缺省项指向该SE位置信息所指示的SE 3。如此,NFCC可以将交易指令传输至非标卡缺省项所指向的SE 3。并且,场景管理模块701还可以向SE 3通知查找到的西安“公交卡”应用的标识a。这样,上述SE 3接收到交易指令后,则可以自动激活标识a对应的西安“公交卡”应用,并执行该交易指令,以便完成交易。
在一些实施例中,以上述场景信息包括地理位置信息和时间信息为例。假设“车钥匙”应用承载在以SIM卡形式存在的SE 1中。电子设备100统计出用户在7:30-7:50这个时间段内,在地理位置1(如地下车库1)经常使用该“车钥匙”应用。那么如果NFCC接收到了交易指令,可以在获取到当前系统时间(或者说是,接收到交易指令的时间)处于7:30-7:50这个时间段内,且电子设备100的位于地理位置1时,则可以自动激活该车钥匙应用301。也就是说,可以在当前系统时间处于7:30-7:50这个时间段内,且电子设备100的位于地理位置1时,由非标卡缺省项指向的SE 1自动运行“车钥匙”应用。这样,在用户使用电子设备100靠近车门时,无需用户手动激活“车钥匙”应用便 可打开车门。
本申请实施例提供的SE的自动路由方法,即使一些NFC应用不支持AID,电子设备100也可以在接收到交易指令后,根据电子设备100当前的场景信息,自动路由至交易指令所要访问非标准NFC应用所在的SE。
本申请实施例可以根据上述方法示例对上述电子设备进行功能模块的划分,例如,可以对应各个功能划分各个功能模块,也可以将两个或两个以上的功能集成在一个处理模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。需要说明的是,本申请实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。
其中,上述方法实施例中的场景管理模块701和场景信息获取模块702可以集成在电子设备100的处理器(如处理器310)中实现。
本申请实施例提供一种NFC芯片,该NFC芯片包括NFCC(即NFC控制器);NFCC保存了多个NFC应用的第一标识和安全单元SE位置信息,SE位置信息指示承载对应NFC应用的SE。NFCC接收交易指令;NFCC响应于交易指令中携带第一标识,从NFC控制保存的SE位置信息中,查找交易指令携带的第一标识对应的SE位置信息;NFCC根据查找到的SE位置信息,从至少两个SE中确定第一目标SE;NFCC向第一目标SE发送交易指令。例如,上述第一标识可以是AID。
进一步的,上述NFCC还用于在下载第一目标NFC应用时,保存第一目标NFC应用的第一标识和第一目标NFC应用的SE位置信息,第一目标NFC应用的SE位置信息指示承载第一目标NFC应用的第一目标SE。
进一步的,上述NFCC向第一目标SE发送交易指令,包括:NFCC具体用于:如果第一目标SE是NFCC的路由所指向的SE,NFCC可以直接向第一目标SE发送交易指令;如果第一目标SE不是NFCC的路由所指向的SE,NFCC可以修改路由指向第一目标SE,然后向第一目标SE发送交易指令。
进一步的,上述NFCC保存路由表,路由表中包括多个NFC应用的第一标识和SE位置信息。路由表还包括非标卡缺省项,非标卡缺省项用于在交易指令未携带第一标识的情况下,指向电子设备的当前场景信息对应的SE。NFCC还用于在交易指令中未携带第一标识的情况下,接收用于指示第二目标SE的指示信息;配置非标卡缺省项指向第二目标SE。NFCC还用于向非标卡缺省项指向的第二目标SE发送交易指令。
进一步的,上述NFCC还用于向非标卡缺省项指向的第二目标SE发送交易指令,包括:NFCC,具体用于:如果第二目标SE是非标卡缺省项所指向的SE,NFCC可以直接向非标卡缺省项指向的第二目标SE发送交易指令;如果第二目标SE不是非标卡缺省项所指向的SE,NFCC则可以配置路由表中的非标卡缺省项指向第二目标SE,然后向非标卡缺省项指向的第二目标SE发送交易指令。
本申请实施例还提供一种计算机存储介质,该计算机存储介质可以包括计算机指令,当所述计算机指令在电子设备上运行时,使得电子设备执行上述SE的自动路由方法或者NFC应用的自动激活方法。
本申请实施例还提供一种计算机程序产品,当所述计算机程序产品在计算机上运行时,使得所述计算机执行上述SE的自动路由方法或者NFC应用的自动激活方法。
通过以上的实施方式的描述,所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将 上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在本申请实施例所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本申请实施例方案的目的。
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请实施例的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器执行各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:快闪存储器、移动硬盘、只读存储器、随机存取存储器、磁碟或者光盘等各种可以存储程序代码的介质。
以上所述,仅为本申请实施例的具体实施方式,但本申请的保护范围并不局限于此,任何在本申请实施例揭露的技术范围内的变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。

Claims (24)

  1. 一种电子设备,其特征在于,所述电子设备包括近距离通信NFC控制器和至少两个安全单元SE,所述至少两个SE中的每个SE中承载了至少一个NFC应用;所述NFC控制器中保存了多个NFC应用的第一标识和SE位置信息,所述SE位置信息指示承载对应NFC应用的SE;
    所述NFC控制器接收交易指令;
    所述NFC控制器响应于所述交易指令中携带第一标识,从所述NFC控制保存的SE位置信息中,查找所述交易指令携带的第一标识对应的SE位置信息;
    所述NFC控制器根据查找到的SE位置信息,从所述至少两个SE中确定第一目标SE,向所述第一目标SE发送所述交易指令。
  2. 根据权利要求1所述的电子设备,其特征在于,
    所述第一目标SE接收所述交易指令,根据所述交易指令携带的第一标识,从所述第一目标SE承载的NFC应用中确定第一目标NFC应用;
    所述第一目标SE运行所述第一目标NFC应用,执行所述交易指令。
  3. 根据权利要求1或2所述的电子设备,其特征在于,所述第一标识是应用标识符AID。
  4. 根据权利要求1-3中任一项所述的电子设备,其特征在于,所述第一目标NFC应用的NFC管理应用携带所述第一目标NFC应用的第一标识和所述第一目标NFC应用的SE位置信息,所述第一目标NFC应用的SE位置信息指示承载所述第一目标NFC应用的所述第一目标SE;所述NFC管理应用用于管理一个或多个NFC应用;
    所述NFC控制器,用于接收所述第一目标NFC应用的NFC管理应用向所述电子设备的默认付款应用注册时,传输的所述第一目标NFC应用的第一标识和所述第一目标NFC应用的SE位置信息;其中,所述第一目标NFC应用的NFC管理应用安装时,向所述电子设备的默认付款应用注册;
    所述NFC控制器,还用于保存所述第一目标NFC应用的第一标识和所述第一目标NFC应用的SE位置信息。
  5. 根据权利要求1-4中任一项所述的电子设备,其特征在于,所述电子设备还包括处理器;所述处理器中保存一个或多个非标准NFC应用的使用场景信息、SE位置信息和第二标识;所述非标准NFC应用不支持AID;所述第二标识用于标识非标准NFC应用,所述第二标识不是第一标识;所述使用场景信息用于指示使用对应非标准NFC应用的场景信息;
    所述处理器响应于所述NFC控制器接收的所述交易指令中未携带第一标识,获取所述电子设备的当前场景信息;
    所述处理器从所述一个或多个非标准NFC应用的使用场景信息中查找所述当前场景信息对应的使用场景信息,并确定查找到的使用场景信息对应的第二标识和SE位置信息;
    所述处理器根据查找到的SE位置信息,从所述至少两个SE中确定第二目标SE,向所述第二目标SE发送所述交易指令;
    所述第二目标SE接收所述交易指令;
    所述处理器向所述第二目标SE指示查找到的第二标识;
    所述第二目标SE根据所述处理器指示的第二标识,从所述第二目标SE承载的NFC应用中确定第二目标NFC应用,所述第二目标NFC应用是非标准NFC应用;
    所述第二目标SE运行所述第二目标NFC应用,执行所述交易指令。
  6. 根据权利要求5所述的电子设备,其特征在于,所述NFC控制器保存路由表,所述路由表中包括多个NFC应用的第一标识和SE位置信息;
    所述路由表还包括非标卡缺省项,所述非标卡缺省项用于在所述交易指令未携带第一标识的情况下,指向所述电子设备的当前场景信息对应的SE;
    其中,所述处理器根据查找到的SE位置信息,从所述至少两个SE中确定第二目标SE,向所述第二目标SE发送所述交易指令,包括:
    所述处理器根据查找到的SE位置信息,从所述至少两个SE中确定所述第二目标SE,向所述NFC控制器指示所述第二目标SE;
    所述NFC控制器响应于所述处理器的指示,配置所述非标卡缺省项指向所述第二目标SE;
    所述NFC控制器向所述非标卡缺省项指向的所述第二目标SE发送所述交易指令。
  7. 根据权利要求5或6所述的电子设备,其特征在于,所述场景信息至少包括地理位置信息、时间信息和操作信息中的一项或多项;
    所述地理位置信息用于指示对应非标准NFC应用可被使用的地理位置;所述时间信息用于指示对应非标准NFC应用可被使用的时间;所述操作信息用于指示对应非标准NFC应用被使用前用户对所述电子设备的操作。
  8. 根据权利要求1-7中任一项所述的电子设备,其特征在于,所述至少两个SE中的第一SE中承载有第一NFC应用和第二NFC应用;其中,所述第一NFC应用支持的NFC业务的验证方式为直接刷卡模式,不需要进行用户验证;所述第二NFC应用支持的NFC业务的验证方式为要求验证模式,需要进行所述用户验证;所述用户验证至少为密码验证、指纹验证、人脸验证、虹膜认证、声纹认证、行为认证等中的任一项;
    所述电子设备的处理器响应于用户的设置操作,激活所述第一NFC应用,以设置所述第一NFC应用为所述电子设备中默认的NFC应用;
    所述处理器响应于用户的预设快捷操作,去激活所述第一NFC应用,自动激活所述第二NFC应用,以设置所述第二NFC应用为所述电子设备中默认的NFC应用。
  9. 一种电子设备,其特征在于,所述电子设备包括处理器和至少两个安全单元SE,所述至少两个SE中的第一SE中承载了第一近距离通信NFC应用和第二NFC应用,所述第一NFC应用支持的NFC业务的验证方式为直接刷卡模式,不需要进行用户验证;所述第二NFC应用支持的NFC业务的验证方式为要求验证模式,需要进行所述用户验证;所述用户验证至少为密码验证、指纹验证、人脸验证、虹膜认证、声纹认证、行为认证等中的任一项;
    所述处理器响应于用户的设置操作,激活第一NFC应用,以设置所述第一NFC应用为所述电子设备中默认的NFC应用;
    所述处理器响应于用户的预设快捷操作,去激活所述第一NFC应用,自动激活第二NFC应用,以设置所述第二NFC应用为所述电子设备中默认的NFC应用。
  10. 一种近距离通信SE的自动路由方法,其特征在于,应用于电子设备,所述电子设备包括至少两个安全单元SE,所述至少两个SE中的每个SE中承载了至少一个NFC应用;所述电子设备中保存了多个NFC应用的第一标识和SE位置信息,所述SE位置信息 指示承载对应NFC应用的SE;所述方法包括:
    所述电子设备接收交易指令;
    所述电子设备响应于所述交易指令中携带第一标识,从保存的SE位置信息中,查找所述交易指令携带的第一标识对应的SE位置信息;
    所述电子设备根据查找到的SE位置信息,从所述至少两个SE中确定第一目标SE,由所述第一目标SE中的NFC应用执行所述交易指令。
  11. 根据权利要求10所述的方法,其特征在于,所述方法还包括:
    所述电子设备根据所述交易指令携带的第一标识,从所述第一目标SE承载的NFC应用中确定第一目标NFC应用;
    所述电子设备通过所述第一目标SE运行所述第一目标NFC应用,执行所述交易指令。
  12. 根据权利要求10或11所述的方法,其特征在于,所述第一标识是应用标识符AID。
  13. 根据权利要求10-12中任一项所述的方法,其特征在于,所述第一目标NFC应用的NFC管理应用携带所述第一目标NFC应用的第一标识和所述第一目标NFC应用的SE位置信息,所述第一目标NFC应用的SE位置信息指示承载所述第一目标NFC应用的所述第一目标SE;所述NFC管理应用用于管理一个或多个NFC应用;
    所述方法还包括:
    所述电子设备获取所述NFC管理应用向所述电子设备的默认付款应用注册时,传输的所述第一目标NFC应用的第一标识和所述第一目标NFC应用的SE位置信息;其中,所述NFC管理应用安装时,向所述默认付款应用注册;
    所述电子设备保存所述第一目标NFC应用的第一标识和所述第一目标NFC应用的SE位置信息。
  14. 根据权利要求10-13中任一项所述的方法,其特征在于,所述电子设备还保存一个或多个非标准NFC应用的使用场景信息、SE位置信息和第二标识;所述非标准NFC应用不支持AID;所述第二标识用于标识非标准NFC应用,所述第二标识不是第一标识;所述使用场景信息用于指示使用对应非标准NFC应用的场景信息;
    所述方法还包括:
    所述电子设备响应于所述交易指令中未携带第一标识,获取所述电子设备的当前场景信息;
    所述电子设备从所述一个或多个非标准NFC应用的使用场景信息中查找所述当前场景信息对应的使用场景信息,并确定查找到的使用场景信息对应的第二标识和SE位置信息;
    所述电子设备根据查找到的SE位置信息,从所述至少两个SE中确定第二目标SE;
    所述电子设备根据查找到的第二标识,从所述所述第二目标SE承载的NFC应用中确定第二目标NFC应用;
    所述电子设备通过所述第二目标SE运行所述第二目标NFC应用,执行所述交易指令。
  15. 根据权利要求14所述的方法,其特征在于,所述电子设备中保存路由表,所述路由表中包括多个NFC应用的第一标识和SE位置信息;
    所述路由表还包括非标卡缺省项,所述非标卡缺省项用于在所述交易指令未携带第一标识的情况下,指向所述电子设备的当前场景信息对应的SE;
    其中,所述电子设备根据查找到的SE位置信息,从所述至少两个SE中确定第二目 标SE,包括:
    所述电子设备根据查找到的SE位置信息,从所述至少两个SE中确定所述第二目标SE,配置所述非标卡缺省项指向所述第二目标SE。
  16. 根据权利要求14或15所述的方法,其特征在于,所述场景信息至少包括地理位置信息、时间信息和操作信息中的一项或多项;
    所述地理位置信息用于指示对应非标准NFC应用可被使用的地理位置;所述时间信息用于指示对应非标准NFC应用可被使用的时间;所述操作信息用于指示对应非标准NFC应用被使用前用户对所述电子设备的操作。
  17. 根据权利要求10-16中任一项所述的方法,其特征在于,所述至少两个SE中的第一SE中承载有第一NFC应用和第二NFC应用;其中,所述第一NFC应用支持的NFC业务的验证方式为直接刷卡模式,不需要进行用户验证;所述第二NFC应用支持的NFC业务的验证方式为要求验证模式,需要进行所述用户验证;所述用户验证至少为密码验证、指纹验证、人脸验证、虹膜认证、声纹认证、行为认证等中的任一项;所述方法包括:
    所述电子设备响应于用户的设置操作,激活所述第一NFC应用,以设置所述第一NFC应用为所述电子设备中默认的NFC应用;
    所述电子设备响应于用户的预设快捷操作,去激活所述第一NFC应用,自动激活所述第二NFC应用,以设置所述第二NFC应用为所述电子设备中默认的NFC应用。
  18. 一种近距离通信NFC应用自动激活的方法,其特征在于,应用于电子设备,所述电子设备包括至少两个安全单元SE,所述至少两个SE中的第一SE中承载了第一NFC应用和第二NFC应用,所述第一NFC应用支持的NFC业务的验证方式为直接刷卡模式,不需要进行用户验证;所述第二NFC应用支持的NFC业务的验证方式为要求验证模式,需要进行所述用户验证;所述用户验证至少为密码验证、指纹验证、人脸验证、虹膜认证、声纹认证、行为认证等中的任一项;所述方法包括:
    所述电子设备响应于用户的设置操作,激活第一NFC应用,以设置所述第一NFC应用为所述电子设备中默认的NFC应用;
    所述电子设备响应于用户的预设快捷操作,去激活所述第一NFC应用,自动激活第二NFC应用,以设置所述第二NFC应用为所述电子设备中默认的NFC应用。
  19. 一种近距离通信NFC芯片,其特征在于,所述NFC芯片包括NFC控制器;所述NFC控制器保存了多个NFC应用的第一标识和安全单元SE位置信息,所述SE位置信息指示承载对应NFC应用的SE;
    所述NFC控制器接收交易指令;
    所述NFC控制器响应于所述交易指令中携带第一标识,从所述NFC控制保存的SE位置信息中,查找所述交易指令携带的第一标识对应的SE位置信息;
    所述NFC控制器根据查找到的SE位置信息,从至少两个SE中确定第一目标SE;
    所述NFC控制器向所述第一目标SE发送所述交易指令。
  20. 根据权利要求19所述的NFC芯片,其特征在于,所述第一标识是应用标识符AID。
  21. 根据权利要求19或20所述的NFC芯片,其特征在于,所述第一目标NFC应用的NFC管理应用携带所述第一目标NFC应用的第一标识和所述第一目标NFC应用的SE位置信息,所述第一目标NFC应用的SE位置信息指示承载所述第一目标NFC应用的所述第一目标SE;所述NFC管理应用用于管理一个或多个NFC应用;
    所述NFC控制器,用于接收所述第一目标NFC应用的NFC管理应用向电子设备的默认付款应用注册时,传输的所述第一目标NFC应用的第一标识和所述第一目标NFC应用的SE位置信息;其中,所述第一目标NFC应用的NFC管理应用安装时,向所述电子设备的默认付款应用注册;
    所述NFC控制器,还用于保存所述第一目标NFC应用的第一标识和所述第一目标NFC应用的SE位置信息,所述第一目标NFC应用的SE位置信息指示承载所述第一目标NFC应用的所述第一目标SE。
  22. 根据权利要求19-21中任一项所述的NFC芯片,其特征在于,所述NFC控制器保存路由表,所述路由表中包括多个NFC应用的第一标识和SE位置信息;
    所述路由表还包括非标卡缺省项,所述非标卡缺省项用于在所述交易指令未携带第一标识的情况下,指向电子设备的当前场景信息对应的SE;
    所述NFC控制器还用于在所述交易指令中未携带第一标识的情况下,接收用于指示第二目标SE的指示信息;配置所述非标卡缺省项指向所述第二目标SE;
    所述NFC控制器还用于向所述非标卡缺省项指向的所述第二目标SE发送所述交易指令。
  23. 一种计算机存储介质,其特征在于,包括计算机指令,当所述计算机指令在电子设备上运行时,使得所述电子设备执行如权利要求10-18中任一项所述的方法。
  24. 一种计算机程序产品,其特征在于,当所述计算机程序产品在计算机上运行时,使得所述计算机执行如权利要求10-18中任一项所述的方法。
PCT/CN2020/085520 2019-04-26 2020-04-20 一种se的自动路由方法及电子设备 WO2020216160A1 (zh)

Priority Applications (3)

Application Number Priority Date Filing Date Title
US17/440,530 US11966910B2 (en) 2019-04-26 2020-04-20 Automatic routing method for SE and electronic device
EP20794285.5A EP3917182A4 (en) 2019-04-26 2020-04-20 AUTOMATIC ROUTING METHOD FOR SE, AND ELECTRONIC DEVICE
JP2021556961A JP7336535B2 (ja) 2019-04-26 2020-04-20 Se及び電子デバイスの自動ルーティング方法

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
CN201910345528 2019-04-26
CN201910345528.5 2019-04-26
CN201910426179.X 2019-05-21
CN201910426179.XA CN111107525B (zh) 2019-04-26 2019-05-21 一种se的自动路由方法及电子设备

Publications (1)

Publication Number Publication Date
WO2020216160A1 true WO2020216160A1 (zh) 2020-10-29

Family

ID=70420423

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/085520 WO2020216160A1 (zh) 2019-04-26 2020-04-20 一种se的自动路由方法及电子设备

Country Status (5)

Country Link
US (1) US11966910B2 (zh)
EP (1) EP3917182A4 (zh)
JP (1) JP7336535B2 (zh)
CN (1) CN111107525B (zh)
WO (1) WO2020216160A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023043811A1 (en) * 2021-09-14 2023-03-23 Visa International Service Association Mobile device application for account selection on multi-account card

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115018483B (zh) * 2021-11-19 2023-05-30 荣耀终端有限公司 应用处理方法、终端设备以及存储介质
CN114501581A (zh) * 2022-01-18 2022-05-13 无锡融卡科技有限公司 一种减少dh频繁操作nfcc的处理方法及装置
CN115278807B (zh) * 2022-09-28 2022-12-16 北京紫光青藤微系统有限公司 一种nfc通信中的路由方法及装置

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105574723A (zh) * 2015-12-14 2016-05-11 联想(北京)有限公司 信息的安全处理方法及安全处理装置
CN106101989A (zh) * 2016-06-22 2016-11-09 依偎科技(南昌)有限公司 一种选择安全单元的方法及移动终端
WO2017128516A1 (zh) * 2016-01-29 2017-08-03 宇龙计算机通信科技(深圳)有限公司 一种nfc支付方式的选择方法、装置和终端
CN107358432A (zh) * 2017-06-29 2017-11-17 努比亚技术有限公司 移动终端刷卡方法、装置及计算机可读存储介质

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090307140A1 (en) * 2008-06-06 2009-12-10 Upendra Mardikar Mobile device over-the-air (ota) registration and point-of-sale (pos) payment
CN102271012A (zh) * 2011-08-18 2011-12-07 中兴通讯股份有限公司 近场通信终端、系统及方法
US8862767B2 (en) * 2011-09-02 2014-10-14 Ebay Inc. Secure elements broker (SEB) for application communication channel selector optimization
CN103065107B (zh) * 2011-10-21 2015-12-02 中国移动通信集团公司 一种非接触刷卡应用的实现方法以及装置
CA2796615C (en) * 2011-11-23 2017-04-04 Research In Motion Limited Mobile communications device providing secure element data wiping features and related methods
FR2985063B1 (fr) * 2011-12-21 2014-07-04 Morpho Procede de routage au sein d'un terminal mobile emulant une carte de paiement sans contact
CN103942898B (zh) 2013-01-22 2017-02-15 华为终端有限公司 实现近场通信中选择安全单元的方法、移动终端与pos机
EP2775739B1 (en) * 2013-03-05 2018-06-13 Nxp B.V. Near-field communications and routing
CN105722005B (zh) * 2014-12-04 2019-05-10 中国移动通信集团公司 一种近场通信方法及装置
CN105591672A (zh) * 2015-04-30 2016-05-18 中国银联股份有限公司 基于nfc的通信方法和装置
CN107911319B (zh) 2017-11-22 2021-05-11 中兴通讯股份有限公司 一种多安全模块的路由方法、nfc控制器及nfc设备

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105574723A (zh) * 2015-12-14 2016-05-11 联想(北京)有限公司 信息的安全处理方法及安全处理装置
WO2017128516A1 (zh) * 2016-01-29 2017-08-03 宇龙计算机通信科技(深圳)有限公司 一种nfc支付方式的选择方法、装置和终端
CN106101989A (zh) * 2016-06-22 2016-11-09 依偎科技(南昌)有限公司 一种选择安全单元的方法及移动终端
CN107358432A (zh) * 2017-06-29 2017-11-17 努比亚技术有限公司 移动终端刷卡方法、装置及计算机可读存储介质

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023043811A1 (en) * 2021-09-14 2023-03-23 Visa International Service Association Mobile device application for account selection on multi-account card

Also Published As

Publication number Publication date
EP3917182A1 (en) 2021-12-01
CN111107525B (zh) 2022-01-14
CN111107525A (zh) 2020-05-05
US20220156718A1 (en) 2022-05-19
US11966910B2 (en) 2024-04-23
EP3917182A4 (en) 2022-03-16
JP2022528628A (ja) 2022-06-15
JP7336535B2 (ja) 2023-08-31

Similar Documents

Publication Publication Date Title
WO2020182064A1 (zh) 自动选择nfc模拟卡的方法、电子设备及通信系统
WO2020216160A1 (zh) 一种se的自动路由方法及电子设备
WO2021147745A1 (zh) 蓝牙连接方法、系统和电子设备
WO2020041952A1 (zh) 一种基于快递消息控制快递柜的方法及电子设备
WO2021023032A1 (zh) 设备解锁方法、系统和相关设备
WO2020062344A1 (zh) 一种数据传输方法及电子设备
CN111124503B (zh) 一种nfc应用的自动激活方法及终端
CN112312366B (zh) 一种通过nfc标签实现功能的方法、电子设备及系统
WO2020042119A1 (zh) 一种消息传输方法及设备
WO2021093855A1 (zh) 一种移动设备管理方法及设备
WO2021104114A1 (zh) 一种提供无线保真WiFi网络接入服务的方法及电子设备
CN117014859A (zh) 基于通讯录的设备发现方法、音视频通信方法及电子设备
CN113365274B (zh) 一种网络接入方法和电子设备
US20240048950A1 (en) Service processing method and related device
WO2020062304A1 (zh) 一种文件传输方法及电子设备
CN112085872A (zh) 基于nfc的解锁方法、相关装置及系统
WO2023071940A1 (zh) 跨设备的导航任务的同步方法、装置、设备及存储介质
WO2020051916A1 (zh) 一种传输信息的方法及电子设备
US11977946B2 (en) Method for automatically activating NFC application and terminal
CN114285737B (zh) 配置设备的方法及设备
WO2023025059A1 (zh) 一种通信系统及通信方法
WO2023071730A1 (zh) 声纹注册方法及电子设备
WO2023024887A1 (zh) 跨设备认证方法和装置
CN116801248A (zh) 账号管理方法、电子设备及计算机可读存储介质
CN115884140A (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: 20794285

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2020794285

Country of ref document: EP

Effective date: 20210826

ENP Entry into the national phase

Ref document number: 2021556961

Country of ref document: JP

Kind code of ref document: A

NENP Non-entry into the national phase

Ref country code: DE