WO2017113970A1 - 近场通信方法及移动终端 - Google Patents
近场通信方法及移动终端 Download PDFInfo
- Publication number
- WO2017113970A1 WO2017113970A1 PCT/CN2016/103747 CN2016103747W WO2017113970A1 WO 2017113970 A1 WO2017113970 A1 WO 2017113970A1 CN 2016103747 W CN2016103747 W CN 2016103747W WO 2017113970 A1 WO2017113970 A1 WO 2017113970A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- aid
- link
- nfc
- card
- mobile terminal
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Ceased
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/80—Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K7/00—Methods or arrangements for sensing record carriers, e.g. for reading patterns
- G06K7/10—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
- G06K7/10009—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation sensing by radiation using wavelengths larger than 0.1 mm, e.g. radio-waves or microwaves
- G06K7/10297—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation sensing by radiation using wavelengths larger than 0.1 mm, e.g. radio-waves or microwaves arrangements for handling protocols designed for non-contact record carriers such as RFIDs NFCs, e.g. ISO/IEC 14443 and 18092
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06Q—INFORMATION 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/00—Payment architectures, schemes or protocols
- G06Q20/30—Payment architectures, schemes or protocols characterised by the use of specific devices or networks
- G06Q20/32—Payment architectures, schemes or protocols characterised by the use of specific devices or networks using wireless devices
- G06Q20/322—Aspects of commerce using mobile devices [M-devices]
- G06Q20/3227—Aspects of commerce using mobile devices [M-devices] using secure elements embedded in M-devices
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06Q—INFORMATION 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/00—Payment architectures, schemes or protocols
- G06Q20/30—Payment architectures, schemes or protocols characterised by the use of specific devices or networks
- G06Q20/32—Payment architectures, schemes or protocols characterised by the use of specific devices or networks using wireless devices
- G06Q20/327—Short range or proximity payments by means of M-devices
- G06Q20/3278—RFID or NFC payments by means of M-devices
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06Q—INFORMATION 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/00—Payment architectures, schemes or protocols
- G06Q20/30—Payment architectures, schemes or protocols characterised by the use of specific devices or networks
- G06Q20/34—Payment 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/352—Contactless payments by cards
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B5/00—Near-field transmission systems, e.g. inductive or capacitive transmission systems
- H04B5/70—Near-field transmission systems, e.g. inductive or capacitive transmission systems specially adapted for specific purposes
- H04B5/77—Near-field transmission systems, e.g. inductive or capacitive transmission systems specially adapted for specific purposes for interrogation
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/302—Route determination based on requested QoS
- H04L45/306—Route determination based on the nature of the carried application
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/74—Address processing for routing
- H04L45/745—Address table lookup; Address filtering
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W40/00—Communication routing or communication path finding
- H04W40/24—Connectivity information management, e.g. connectivity discovery or connectivity update
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
- H04W76/14—Direct-mode setup
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
- H04W76/15—Setup of multiple wireless link connections
- H04W76/16—Involving different core network technologies, e.g. a packet-switched [PS] bearer in combination with a circuit-switched [CS] bearer
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W88/00—Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
- H04W88/02—Terminal devices
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W12/00—Security arrangements; Authentication; Protecting privacy or anonymity
- H04W12/40—Security arrangements using identity modules
- H04W12/45—Security arrangements using identity modules using multiple identity modules
Definitions
- the present invention relates to the field of computer technologies, and in particular, to a near field communication method and a mobile terminal.
- NFC Near Field Communication
- the NFC operating frequency is 13.56 Hz, and the effective range is less than 20 cm.
- the transmission speed is 106 Kbit/s, 212 Kbit/s, or 424 Kbit/s.
- NFC has three working modes: card reader mode, point-to-point mode, and card emulation mode.
- the NFC device In the reader mode, the NFC device generates a radio frequency field to read and write data from the outside using the same standard NFC tag.
- point-to-point mode NFC can communicate with other NFC devices for point-to-point data transmission.
- the card reader is an active device that generates a radio frequency field; the NFC device is a passive device that simulates an NFC-compliant contactless card to interact with the card reader.
- the mobile terminal can implement functions such as swiping or payment.
- the mobile terminal implements the following three functions: an SD card (Secure Digital Memory Card), and a SIM ( Subscriber Identity Module, customer identification module, or full terminal implementation.
- SD card Secure Digital Memory Card
- SIM Subscriber Identity Module, customer identification module, or full terminal implementation.
- FIG. 1 is a schematic diagram of a system framework for implementing near field communication in the prior art.
- the mobile terminal includes an AP (Application Processor), an NFC controller, and an SE (Secure Element). ).
- the AP and the NFC controller are coupled through the I 2 C bus
- the NFC controller and the SE module are coupled by the SWP (Single Wire Protocol) bus
- the AP and the SE module are connected by the SPI (Serial Peripheral Interface, Serial peripheral interface) coupling.
- SPI Serial Peripheral Interface, Serial peripheral interface
- the NFC controller is configured with an AID (application identification) routing table, and the entry is composed of an AID and a target object.
- the AID is an application identifier, which is composed of a registered application provider identifier (RID) and an extended dedicated application identifier (PIX). Therefore, one application corresponds to one AID.
- the target object can be an SE module coupled to the AP.
- the NFC controller After the NFC reader sends a "Select AID" instruction, the NFC controller receives the instruction, parses the AID in the instruction, and queries the AID routing table to obtain the target object corresponding to the AID. If the target object is an SE, the NFC controller must send the received service data to the SE through the SWP interface.
- a near field communication method and a mobile terminal are provided to reduce the complexity and cost of the mobile terminal.
- the present invention provides a near field communication method, the method being applied to a mobile terminal, the mobile terminal comprising: an application processor AP, a near field communication NFC controller, and a security unit SE, the NFC controller Coupled to the AP, the SE is coupled to the AP, the working mode of the AP includes a security mode; the method includes: the NFC controller receiving an AID selection command for initiating an NFC service, and The AID selection command is forwarded to the AP, where the AID selection command carries a target AID; the AP obtains the target AID by parsing the AID selection command; and queries the storage corresponding to the AP security mode by querying Obtaining a first destination address corresponding to the target AID, where the AID routing table includes a one-to-one correspondence between at least one AID and at least one destination address; When the object corresponding to the first destination address is the SE, the AP establishes a first link between the AP and the SE; the NFC controller receives at
- the AID routing table is stored in a storage space accessible by the AP in the secure mode, and the AID routing table includes a one-to-one correspondence between the AID and the destination address.
- the AP directly sends the AID selection command to the SE, and sends the subsequent service data of the NFC service corresponding to the AID selection command.
- the SE is sent to the SE instead of the NFC controller. Therefore, the SE does not need to support the SWP protocol, thereby reducing the complexity and cost of the NFC service architecture in the mobile terminal.
- the AP establishes a relationship between the AP and the SE.
- a link specifically includes: the AP establishing the first link based on an inter-process communication IPC bus.
- the AP establishes between the AP and the SE.
- the first link specifically includes: the AP establishing the first link based on a serial peripheral interface SPI bus.
- the mobile terminal further includes: a customer identification module SIM card, if the object corresponding to the first destination address is a SIM card, the AP Establishing a second link between the AP and the SIM card, and sending the at least one service data to the SIM card by using the second link;
- a customer identification module SIM card if the object corresponding to the first destination address is a SIM card, the AP Establishing a second link between the AP and the SIM card, and sending the at least one service data to the SIM card by using the second link;
- the mobile terminal further includes a secure digital SD card
- the method further includes: if the object corresponding to the first destination address is an SD card, And the AP establishes a third link between the AP and the SD card, and sends the at least one service data to the SD card by using the third link.
- the working mode of the AP further includes a non-secure mode
- the method further includes: if the object corresponding to the first destination address is the The AP runs an NFC card emulation application in the non-secure mode, and the AP establishes a fourth link between the AP and the NFC card emulation application, and the at least one service is performed by the fourth link. Data is sent to the NFC card emulation application.
- the present invention further provides a system on chip for use in a mobile terminal including a near field communication NFC controller and a security unit SE, the system on chip including an application processor AP, and an operation mode of the AP includes a security mode; the AP receives an AID selection command for initiating an NFC service forwarded by the NFC controller, where the AID selection command includes a target AID; the AP obtains a target AID by parsing the AID selection command; The security mode corresponds to the pre-stored AID routing table in the storage space.
- the AP establishes a first link between the AP and the SE; and the AP receives at least one service data that is forwarded by the NFC controller and corresponds to the NFC service, and sends the at least one service data by using the first link.
- the present invention further provides another system-on-a-chip for use in a mobile terminal including a near field communication NFC controller, where the system on chip includes an application processor AP and a security unit SE, and the working mode of the AP includes a security mode; the AP receives an AID selection command for initiating an NFC service forwarded by the NFC controller, the AID selection command includes a target AID; and the AP obtains the target AID by parsing the AID selection command; Obtaining a first destination address corresponding to the target AID by querying a pre-stored AID routing table in a storage space corresponding to the security mode of the AP, where the AID routing table includes at least one AID and at least one destination address a one-to-one correspondence; when the object corresponding to the first destination address is the SE, the AP establishes a first link between the AP and the SE; then, the AP receives the NFC service forwarded by the NFC controller Corresponding at least one service data,
- the present invention further provides a mobile terminal, comprising: an application processor AP, a near field communication NFC controller, and a security unit SE, wherein the working mode of the AP includes a security mode, and is in the same manner as the AP
- the application identifier AID routing table is pre-stored in the storage space corresponding to the security mode, and the AID routing table includes a one-to-one correspondence between at least one AID and at least one destination address; wherein the NFC controller is configured to execute The method flow related to the NFC controller in the near field communication method provided by the first aspect; the AP is configured to execute the method flow related to the AP in the near field communication method provided by the first aspect.
- the AID routing table is stored in a storage space corresponding to the security mode of the AP, and the AID routing table includes at least one AID and at least one destination address.
- the AID routing table includes at least one AID and at least one destination address.
- the AP receives the AID selection command including the target AID sent by the NFC controller, the target AID is obtained by parsing the AID selection command. Then, the AP queries the AID routing table to obtain the first destination address corresponding to the target AID. If the object corresponding to the first destination address is the SE, the AP establishes a first link between itself and the SE. And, all the service data corresponding to the NFC service received subsequently is sent to the SE until a new AID selection command is received.
- the near field communication method provided by the present invention when the AP queries the AID routing table to obtain the object corresponding to the destination address is the SE, The AP directly sends the service data of the NFC service to the SE instead of being forwarded to the SE by the NFC controller. Therefore, there is no need to set the SWP interface and the SWP communication line between the SE and the NFC controller, that is, the SE does not need to support the SWP protocol. Thereby reducing the complexity and cost of the NFC service architecture in the mobile terminal.
- FIG. 1 is a schematic diagram of a system framework for near field communication in the prior art
- FIG. 2 is a schematic diagram of a system framework for near field communication according to an embodiment of the present invention.
- FIG. 3 is a flowchart of a near field communication method applied to the system shown in FIG. 2 according to an embodiment of the present invention
- FIG. 4 is a schematic diagram of a frame of a mobile terminal according to an embodiment of the present disclosure.
- FIG. 5 is a schematic diagram of another mobile terminal according to an embodiment of the present disclosure.
- FIG. 6 is a schematic diagram of another frame of a mobile terminal according to an embodiment of the present disclosure.
- FIG. 7 is a schematic diagram of another frame of a mobile terminal according to an embodiment of the present disclosure.
- FIG. 8 is a schematic diagram of still another framework of a mobile terminal according to an embodiment of the present invention.
- FIG. 2 is a schematic diagram of a system framework for near field communication according to an embodiment of the present invention.
- the system framework includes a mobile terminal and an NFC card reader.
- Mobile terminals include, but are not limited to, smartphones, tablets, and the like.
- the mobile terminal includes an AP, an NFC controller, and an SE, wherein the working mode of the AP includes a security mode, It is called TEE (TEE, Trust Execute Environment).
- TEE Trust Execute Environment
- the AP is coupled to the SE, wherein the AP can be coupled to the NFC controller via the I2C bus.
- the AID routing table is stored in the storage space corresponding to the security mode (TEE) of the AP, and can ensure the security of the AID routing table.
- the AID routing table includes a one-to-one correspondence between at least one AID and at least one destination address.
- the NFC card reader When the mobile terminal is attached to an NFC card reader (for example, a bus card reader, a company card puncher, etc.) for NFC non-contact service, the NFC card reader sends a "Select AID" AID selection command.
- "Select AID” is the command header, and the command header is followed by the data field containing the value corresponding to the AID.
- the service data can be encapsulated into an APDU (Application Protocol Data Unit) data format for transmission; the APDU is an information transmission unit between the smart card and the smart card reader.
- APDU Application Protocol Data Unit
- FIG. 3 is a flowchart of a near field communication method applied to the system shown in FIG. 2 according to an embodiment of the present invention. As shown in FIG. 3, the method may include the following steps:
- the NFC card reader sends an AID selection command for initiating an NFC service to the NFC controller.
- the AID selection command contains the target AID.
- the NFC controller sends an AID selection command to the AP.
- the NFC controller sends an AID selection command to the AP over the I2C bus.
- the AP parses the AID selection command to obtain the target AID.
- the AP parsing AID selection command running in the secure mode obtains the target AID carried by the AID selection command.
- the NFC card reader is a bank POS (Point Of Sale) card reader that supports the NFC function
- the NFC card reader will send a "Select AID" APDU data, wherein the AID in the APDU data is sixteen.
- the hexadecimal data is "325041592E5359532E4444463031", and the hexadecimal data is registered as the AID of the SE.
- S140 The AP queries the pre-stored AID routing table in the storage space corresponding to the security mode of the AP, and obtains the first destination address corresponding to the target AID.
- the APDU data sent by the bank POS machine is used as an example.
- the AP queries the AID routing table to obtain the first destination address corresponding to the SE.
- the storage space corresponding to the security mode of the AP means that the AP can operate in the secure mode.
- the storage space may be the internal cache space of the AP, or may be other storages coupled to the AP.
- the specific form of the storage space of the present invention is not limited.
- the AP establishes a first link between itself and the SE, and sends an AID selection command to the SE through the first link.
- FIG. 4 is a schematic diagram of a framework of a mobile terminal according to an embodiment of the present invention.
- an SE and an AP are integrated on a SoC (System-on-a-Chip), and the AP is based on itself.
- the first link is established between the InterProcess Communication (IPC) bus and the SE. That is, in such an application scenario, the AP sends an AID selection command to the SE through the IPC bus.
- IPC InterProcess Communication
- the AP described here establishes a first link based on the IPC bus, which means that the AP and the SE pass the IPC.
- the bus and the corresponding interface circuit implement communication between the AP and the SE.
- the establishment of the first link here can be understood as activating or enabling the IPC bus between the AP and the SE so that it can be Implement further business data transfer.
- FIG. 5 is a schematic diagram of another mobile terminal according to an embodiment of the present invention.
- the SE is not integrated with an AP on an SoC, and the AP is based on an SPI (Serial Peripheral Interface) between the SE and the SE.
- the serial peripheral interface establishes the first link. That is, in such an application scenario, the AP sends an AID selection command to the SE through the SPI bus.
- the AP described here establishes the first link based on the SPI bus, which means that the communication between the AP and the SE is realized between the AP and the SE through the SPI bus and the corresponding interface circuit; further, the AP and the AP The bus between the SEs is already set up when the mobile terminal is manufactured. Therefore, establishing the first link can be understood as activating or enabling the SPI bus between the AP and the SE, so that further service data transmission can be realized.
- the NFC controller receives at least one service data that is sent by the NFC card reader and corresponds to the NFC service, and sends the at least one service data to the AP.
- the service data is data received after the AID selection command received by the NFC controller, and the service data and the AID selection command form a complete NFC service (for example, a card swipe service).
- the number of business data can be one or more.
- the NFC card reader is still a bank POS card swipe machine. After the NFC card reader sends the AID selection command, it will send the business data of the bank card information bound to the mobile terminal, and the business data such as the amount to be paid.
- the embodiments of the invention collectively refer to these data as business data.
- the AP sends the service data to the SE through the first link until a new AID selection command is received.
- the AP forwards all service data received after receiving the AID selection command to the SE until a new AID selection command is received.
- the new AID selection command it indicates that the NFC service corresponding to the last received AID selection command is completed, and a new NFC service will be performed.
- the AID routing table is stored in a storage space accessible by the AP in the secure mode, and the AID routing table includes a one-to-one correspondence between the at least one AID and the at least one destination address.
- the subsequently received service data belonging to the same NFC service as the AID selection command is all sent to the SE until a new AID selection command is received.
- the AP queries the AID routing table to obtain the object corresponding to the destination address
- the AP directly sends the data of the NFC service to the SE instead of being forwarded to the SE by the NFC controller. Therefore, there is no need to set the SWP interface and the SWP communication line between the SE and the NFC controller, that is, the SE does not need to support the SWP protocol. Thereby reducing the complexity and cost of the NFC service architecture in the mobile terminal.
- FIG. 6 is a schematic diagram of a frame of a mobile terminal according to an embodiment of the present invention. The embodiment is applied to an application scenario in which a SIM card in a mobile terminal communicates with an NFC card reader.
- the AP parses the AID selection command for the NFC service sent by the NFC controller, and learns that the target AID is a SIM card, and queries the AID routing table pre-stored in the storage space corresponding to the security mode of the AP, and obtains the second purpose corresponding to the SIM card. address. The AP then establishes a second link between the AP and the SIM card. Then, all the service data of the NFC service corresponding to the AID selection command sent by the received NFC controller are sent to the SIM card until a new AID selection command is received.
- the AP establishes a second link based on the communication bus between the AP and the SIM card; the communication bus between the SIM card and the AP can use the communication between the AP and the SIM card disclosed in the prior art, for example, SCI (Serial Communication) Interface, serial communication interface) bus.
- SCI Serial Communication
- serial communication interface serial communication interface
- the AP described here establishes a second link based on the communication bus between the AP and the SIM card, which means that the AP and the SIM card pass through the communication bus and the corresponding interface circuit to implement the AP and the SIM card. Communication between. Further, since the communication bus between the AP and the SIM card is It is set up when the mobile terminal is produced. Therefore, the establishment of the second link here can be understood as activating or enabling the communication bus between the AP and the SIM card, so that further service data transmission can be realized.
- the AP after determining that the target AID included in the AID selection command is a SIM card, the AP queries the AID routing table to obtain the second destination address of the SIM card. A second link between the AP and the SIM card is established, and all subsequent received service data are all sent to the SIM card through the second link.
- FIG. 7 is a schematic diagram of a frame of a mobile terminal according to an embodiment of the present invention. The embodiment is applied to an application scenario in which an SD card in a mobile terminal communicates with an NFC card reader.
- the AP queries the AID selection command sent by the NFC controller to initiate the NFC service, and learns that the target AID is an SD card, and queries the AID routing table stored in the storage space corresponding to the security mode to obtain the third destination address corresponding to the SD card. Then, the AP establishes a third link between the AP and the SD card, and sends an AID selection command to the SD card through the third link. And, all the service data sent by the subsequently received NFC controller is sent to the SD card until a new AID selection command is received.
- the AP establishes a third link based on the communication bus between the AP and the SD card, and may use a communication bus between the AP and the SD card disclosed in the prior art, for example, an I/O bus.
- the AP mentioned here establishes a third link based on the communication bus between the AP and the SD card, which means that the AP and the SD card pass through the communication bus and the corresponding interface circuit to implement the AP and the SD card. Communication between. Further, since the communication bus between the AP and the SD card is set when the mobile terminal is produced, the establishment of the third link herein can be understood as activating or enabling the communication bus between the AP and the SD card. It enables further business data transmission.
- the AID routing table is queried to obtain the destination address of the SD card, and all subsequent NFC services corresponding to the AID selection command are received.
- the business data is sent to the SD card through the third link.
- the system framework for near field communication provided by the present application does not need to set the SWP interface between the SE and the AP. Therefore, the three data interaction modes of the SIM card, the SD card, and the full terminal can be simultaneously implemented in the same mobile terminal.
- FIG. 8 is a schematic diagram of still another framework of a mobile terminal according to an embodiment of the present invention.
- the software system running on the AP is configured to operate in two modes, and the other is a security mode, and only the trusted command can be executed.
- Called TEE environment; the other is non-secure mode (or normal mode) can execute rich instructions, called REE (Rich Execution Environment) environment, both modes are integrated in one kernel, according to different needs in two Simple switching in the mode.
- REE ich Execution Environment
- the AID selection command is sent to the AP running in the TEE environment, and the AP obtains the target AID included in the AID selection command. And determine the application corresponding to the target AID.
- the HCE application runs in the AP's REE environment. Then, the AP queries the AID routing table to determine the fourth destination address corresponding to the HCE application, switches from the TEE environment to the REE environment, and establishes a fourth link between the TEE environment and the REE environment. The received AID selection command and subsequent service data are sent to the HCE application through the fourth link until a new AID selection command is received.
- HCE Home-based Card Emulation
- the mobile terminal provided in this embodiment, after the AP in the TEE environment determines that the target AID is the HCE application, switches from the TEE environment to the REE environment, and passes the AID selection command and subsequent service data between the TEE environment and the REE environment.
- the fourth link is sent to the HCE application in the REE environment to complete the NFC contactless service between the HCE application and the NFC reader in the mobile terminal.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Business, Economics & Management (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Accounting & Taxation (AREA)
- Strategic Management (AREA)
- General Business, Economics & Management (AREA)
- Health & Medical Sciences (AREA)
- Toxicology (AREA)
- Microelectronics & Electronic Packaging (AREA)
- Computer Security & Cryptography (AREA)
- Electromagnetism (AREA)
- General Health & Medical Sciences (AREA)
- Artificial Intelligence (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Mobile Radio Communication Systems (AREA)
- Telephone Function (AREA)
Abstract
本发明实施例公开了一种近场通信方法及移动终端,AID路由表存储在与AP的安全模式相对应的存储空间中,AID路由表中包括至少一个AID与至少一个目的地址之间的一一对应关系。当AP接收到NFC控制器发送的用于发起NFC业务的AID选择命令后,通过解析该AID选择命令获得目标AID。然后,AP查询AID路由表得到目标AID对应的第一目的地址。如果第一目的地址对应的对象是SE时,AP建立自身与SE之间的第一链接。以及,将后续接收到的与所述AID选择命令属于同一NFC业务的业务数据全部发送给SE,直到接收到新的AID选择命令。该近场通信方法,AP直接将NFC业务的数据发送给SE,因此,SE不需要支持SWP协议。从而降低了移动终端中NFC业务构架的复杂度及成本。
Description
本申请要求于2015年12月31日提交中国专利局、申请号为201511030631.9、发明名称为“近场通信方法及移动终端”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
本发明涉及计算机技术领域,特别是涉及一种近场通信方法及移动终端。
近场通信(Near Field Communication,NFC)是一种短距高频的无线电技术,由RFID(Radio Frequency Identification,射频识别)演变而来。NFC工作频率为13.56Hz,有效范围为20cm以内,其传输速度有106Kbit/秒、212Kbit/秒,或者,424Kbit/秒三种。NFC有3种工作模式:读卡器模式、点对点模式、卡模拟模式。在读卡器模式时,NFC设备产生射频场从外部采用相同标准的NFC标签中读写数据。在点对点模式中,NFC可以与其他的NFC设备通信,进行点对点的数据传输。卡模拟模式中,读卡器是主动设备,产生射频场;NFC设备为被动设备,模拟一张符合NFC标准的非接触式卡片与读卡器进行交互。
越来越多的移动终端支持NFC通信功能,即移动终端能够实现刷卡或支付等功能,目前移动终端实现该功能包括以下三种方式:SD卡(Secure Digital Memory Card,安全数码卡)、SIM(Subscriber Identity Module,客户识别模块)卡或全终端等方案实现。
下面以全终端支付方案为例,介绍下NFC的数据交互过程:
图1是现有技术中一种用于实现近场通信的系统框架示意图,如图1所示,移动终端包含AP(Application Processor,应用处理器)、NFC控制器和SE(Secure Element,安全单元)。其中,AP与NFC控制器之间通过I2C总线耦合,NFC控制器与SE模块之间通过SWP(Single Wire Protocol,单线协议)总线耦合,AP与SE模块之间通过SPI(Serial Peripheral Interface,串行外设接口)耦合。
其中,NFC控制器中配置有一张AID(应用标识)路由表,表项由AID和目标对象组成。其中,AID是应用标识,由注册的应用提供商标识(RID)和扩展的专用应用标识符(PIX)组成,因此,一个应用对应一个AID。目标对象可以是与AP耦合的SE模块。
当NFC读卡器发送一个“Select AID”的指令后,NFC控制器接收该指令,解析该指令中的AID,并在AID路由表中查询获得该AID对应的目标对象。如果目标对象是SE,NFC控制器必须通过SWP接口将接收到的业务数据发送给SE。
但是,SWP软件协议栈实现比较复杂,从而使得SE支持SWP协议实现过程的复杂度及成本很高。
发明内容
本发明实施例中提供了一种近场通信方法及移动终端,以降低移动终端的复杂度及成本。
为了解决上述技术问题,本发明实施例公开了如下技术方案:
第一方面,本发明提供了一种近场通信方法,所述方法应用于移动终端,所述移动终端包括:应用处理器AP、近场通信NFC控制器和安全单元SE,所述NFC控制器耦合至所述AP,所述SE耦合至所述AP,所述AP的工作模式包括安全模式;所述方法包括:所述NFC控制器接收用于发起NFC业务的AID选择命令,并将所述AID选择命令转发给所述AP,其中,所述AID选择命令携带有目标AID;所述AP通过解析所述AID选择命令,获得所述目标AID;并通过查询与AP的安全模式相对应的存储空间中预先存储的AID路由表,获得与所述目标AID所对应的第一目的地址,其中,所述AID路由表中包括至少一个AID与至少一个目的地址之间的一一对应关系;当所述第一目的地址对应的对象是所述SE时,所述AP建立所述AP与所述SE之间的第一链接;所述NFC控制器接收与NFC业务对应的至少一个业务数据,并将所述至少一个业务数据发送给所述AP;所述AP通过所述第一链接将所述至少一个业务数据发送给所述SE。
第一方面提供的近场通信方法,AID路由表存储在AP在安全模式下可访问的存储空间中,AID路由表中包括AID与目的地址之间的一一对应关系。当查询
AID路由表获知AID选择命令中携带的目标AID对应的第一目的地址是SE的地址时,直接有AP将AID选择命令发送给SE,以及将AID选择命令对应的NFC业务的后续业务数据全部发送给SE,而不是NFC控制器将业务数据发送给SE,因此,SE不需要支持SWP协议,从而降低了移动终端中NFC业务构架的复杂度及成本。
结合第一方面,在第一方面的第一种可能的实现方式中,若所述SE与所述AP集成在一个片上系统中,则所述AP建立所述AP与所述SE之间的第一链接,具体包括:所述AP基于进程间通信IPC总线建立所述第一链接。
结合第一方面,在第一方面的第二种可能的实现方式中,若所述SE与所述AP未集成在同一个片上系统中,则所述AP建立所述AP与所述SE之间的第一链接,具体包括:所述AP基于串行外设接口SPI总线建立所述第一链接。
结合第一方面,在第一方面的第三种可能的实现方式中,所述移动终端还包括:客户识别模块SIM卡,若所述第一目的地址对应的对象是SIM卡,则所述AP建立所述AP与所述SIM卡之间的第二链接,并通过所述第二链接将所述至少一个业务数据发送给所述SIM卡;
结合第一方面,在第一方面的第四种可能的实现方式中,所述移动终端还包括安全数码SD卡,所述方法还包括:若所述第一目的地址对应的对象是SD卡,则所述AP建立所述AP与所述SD卡之间的第三链接,并通过所述第三链接将所述至少一个业务数据发送给所述SD卡。
结合第一方面,在第一方面的第五种可能的实现方式中,所述AP的工作模式还包括非安全模式,所述方法还包括:若所述第一目的地址对应的对象是所述AP运行在非安全模式下的NFC卡模拟应用程序,则所述AP建立所述AP与所述NFC卡模拟应用程序之间的第四链接,通过所述第四链接,将所述至少一个业务数据发送给所述NFC卡模拟应用程序。
第二方面,本发明还提供了一种片上系统,应用于包括近场通信NFC控制器和安全单元SE的移动终端中,所述片上系统包括应用处理器AP,且所述AP的工作模式包括安全模式;所述AP接收所述NFC控制器转发的用于发起NFC业务的AID选择命令,所述AID选择命令包含目标AID;AP通过解析所述AID选择命令得到目标AID;并通过查询与AP的安全模式相对应的存储空间内预先存储的AID路由表,获
得所述目标AID所对应的第一目的地址,所述AID路由表中包括至少一个AID与至少一个目的地址之间的一一对应关系;当所述目的地址对应的对象是所述SE时,所述AP建立AP与SE之间的第一链接;以及,AP接收NFC控制器转发的与所述NFC业务对应的至少一个业务数据,并将所述至少一个业务数据通过所述第一链接发送给所述SE。
第三方面,本发明还提供了另一种片上系统,应用于包括近场通信NFC控制器的移动终端中,所述片上系统包括应用处理器AP和安全单元SE,所述AP的工作模式包括安全模式;所述AP接收所述NFC控制器转发的用于发起NFC业务的AID选择命令,所述AID选择命令包含目标AID;所述AP通过解析所述AID选择命令获得所述目标AID;并通过查询与AP的安全模式相对应的存储空间中预先存储的AID路由表,获得所述目标AID所对应的第一目的地址,所述AID路由表中包括至少一个AID与至少一个目的地址之间的一一对应关系;当所述第一目的地址对应的对象是所述SE时,所述AP建立AP与SE之间的第一链接;然后,AP接收NFC控制器转发的与所述NFC业务对应的至少一个业务数据,并将所述至少一个业务数据通过所述第一链接发送给所述SE。
第四方面,本发明还提供了一种移动终端,包括:应用处理器AP、近场通信NFC控制器和安全单元SE,其中,所述AP的工作模式包括安全模式,且在与所述AP的安全模式相对应的存储空间中预先存储有应用标识AID路由表,所述AID路由表中包括至少一个AID与至少一个目的地址之间的一一对应关系;其中,所述NFC控制器用于执行第一方面提供的近场通信方法中的有关NFC控制器的方法流程;所述AP用于执行第一方面提供的近场通信方法中有关AP的方法流程。
由以上技术方案可见,本发明实施例提供的近场通信方法,AID路由表存储在AP的安全模式相对应的的存储空间中,AID路由表中包括至少一个AID与至少一个目的地址之间的一一对应关系。当AP接收到NFC控制器发送的包含目标AID的AID选择命令后,通过解析该AID选择命令获得目标AID。然后,AP查询AID路由表得到目标AID对应的第一目的地址。如果第一目的地址对应的对象是SE时,AP建立自身与SE之间的第一链接。以及,将后续接收到的与NFC业务对应的业务数据全部发送给SE,直到接收到新的AID选择命令。本发明提供的近场通信方法,当AP查询AID路由表得到目的地址对应的对象是SE时,
AP直接将NFC业务的业务数据发送给SE,而不是由NFC控制器转发给SE。因此,不需要在SE与NFC控制器之间设置SWP接口和SWP通信线,即SE不需要支持SWP协议。从而降低了移动终端中NFC业务构架的复杂度及成本。
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,对于本领域普通技术人员而言,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。
图1为现有技术中一种用于近场通信的系统框架示意图;
图2为本发明实施例提供的一种用于近场通信的系统框架示意图;
图3为本发明实施例提供的一种应用于图2所示的系统中的近场通信方法的流程图;
图4为本发明实施例提供的一种移动终端的框架示意图;
图5为本发明实施例提供的另一种移动终端的框架示意图;
图6为本发明实施例提供的又一种移动终端的框架示意图;
图7为本发明实施例提供的又一种移动终端的框架示意图;
图8为本发明实施例提供的又一种移动终端的框架的示意图。
为了使本技术领域的人员更好地理解本发明中的技术方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本发明保护的范围。
参见图2,为本发明实施例提供的一种用于近场通信的系统框架示意图,该系统框架包括移动终端和NFC读卡器。移动终端包括但不限于智能手机、平板电脑等产品形态。
移动终端包括AP、NFC控制器和SE,其中,AP的工作模式包括安全模式,
称为TEE(TEE,Trust Execute Environment,可信环境)。其中,AP与SE耦合,其中,AP可以通过I2C总线与NFC控制器耦合。
AID路由表存储在AP的安全模式(TEE)相对应的存储空间中,能够保证AID路由表的安全性。其中,AID路由表包括至少一个AID与至少一个目的地址之间的一一对应关系。
当移动终端贴到NFC读卡器(例如,公交刷卡机、公司打卡机等)进行NFC非接业务时,NFC读卡器会发送一条“Select AID”的AID选择命令。“Select AID”是命令头,命令头后面是包含AID对应的数值在内的数据字段。其中,业务数据均可以封装成APDU(Application Protocol Data Unit,应用协议数据单元)数据形式进行传输;APDU是智能卡与智能卡读卡器之间的信息传输单元。
参见图3,为本发明实施例提供的一种应用于图2所示的系统中的近场通信方法的流程图,如图3所示,该方法可以包括以下步骤:
S110,NFC读卡器向NFC控制器发送用于发起NFC业务的AID选择命令。其中,AID选择命令包含目标AID。
S120,NFC控制器将AID选择命令发送给AP。
在本发明的一个实施方式中,NFC控制器通过I2C总线将AID选择命令发送给AP。
S130,AP解析AID选择命令得到目标AID。
运行在安全模式下的AP解析AID选择命令得到该AID选择命令携带的目标AID。
例如,NFC读卡器是支持NFC功能的银行POS(Point Of Sale,销售终端)刷卡机,则NFC读卡器会发送一条“Select AID”的APDU数据,其中,APDU数据中的AID是十六进制数据“325041592E5359532E4444463031”,该十六进制数据被注册为SE的AID。
S140,AP查询AP的安全模式相对应的存储空间中预先存储的AID路由表,得到目标AID对应的第一目的地址。
仍以银行POS机发送的APDU数据为例,AP查询AID路由表获得SE对应的第一目的地址。
其中,AP的安全模式相对应的存储空间是指AP运行在安全模式下才能访问
的存储空间,该存储空间可以是AP自身内部的缓存空间,或者,也可以是耦合到AP的其它存储器,本发明该存储空间的具体形式不做限定。
S150,当第一目的地址对应的对象是SE时,AP建立自身与SE之间的第一链接,并通过第一链接将AID选择命令发送给SE。
参见图4,为本发明实施例提供的一种移动终端的框架示意图,如图4所示,SE与AP集成于一个SoC(System-on-a-Chip,系统级芯片)上,AP基于自身与SE之间的进程间通信(InterProcess Communication,IPC)总线建立第一链接。即,此种应用场景中,AP通过该IPC总线将AID选择命令发送给SE,本领域技术人员应当知道,这里所说的AP基于IPC总线建立第一链接,是指AP与SE之间通过IPC总线以及相应的接口电路,实现AP与SE之间的通信。进一步地,由于AP和SE之间的总线是在生产移动终端时就设置好的,因此,这里的建立第一链接,可以理解为激活或者使能AP与SE之间的IPC总线,使之可以实现进一步的业务数据传输。
参见图5,为本发明实施例提供的另一种移动终端的框架示意图,如图5所示,SE没有与AP集成于一个SoC上,AP基于自身与SE之间的SPI(Serial Peripheral Interface,串行外设接口)建立第一链接。即,此种应用场景中,AP通过该SPI总线将AID选择命令发送给SE。本领域技术人员应该知道,这里所说的AP基于SPI总线建立第一链接,是指AP与SE之间通过SPI总线以及相应的接口电路,实现AP与SE之间的通信;进一步地,AP与SE之间的总线在生产移动终端时已经设置好,因此,建立第一链接可以理解为激活或使能AP与SE之间的SPI总线,使之可以实现进一步的业务数据传输。
S160,NFC控制器接收NFC读卡器发送的与NFC业务对应的至少一个业务数据,并将至少一个业务数据发送给AP。
其中,业务数据是在NFC控制器接收到的AID选择命令之后收到的数据,且该业务数据与该AID选择命令构成一个完整NFC业务(例如,一次刷卡业务)。业务数据的数量可以是一个或多个。
仍以NFC读卡器是银行POS刷卡机,则NFC读卡器发送AID选择命令后,会发送读取移动终端所绑定的银行卡信息的业务数据,以及需要支付的金额等业务数据,本发明实施例将这些数据统称为业务数据。
S170,AP通过第一链接将业务数据发送给SE,直到接收到新的AID选择命令。
AP将在接收AID选择命令之后所接收的全部业务数据转发给SE,直到接收到新的AID选择命令。当接收到新AID选择命令时,表明上一次接收到的AID选择命令所对应的NFC业务完成,将进行新的NFC业务。
本实施例提供的近场通信方法,AID路由表存储在AP在安全模式下可访问的存储空间中,AID路由表中包括至少一个AID与至少一个目的地址之间的一一对应关系。当AP接收到NFC控制器发送的用于发起NFC业务的AID选择命令后,通过解析该AID选择命令获得目标AID。然后,AP查询AID路由表得到目标AID对应的第一目的地址。如果第一目的地址对应的对象是SE时,AP建立自身与SE之间的第一链接。以及,将后续接收到的与AID选择命令属于同一NFC业务的业务数据全部发送给SE,直到接收到新的AID选择命令。本发明提供的近场通信方法,当AP查询AID路由表得到目的地址对应的对象是SE时,AP直接将NFC业务的数据发送给SE,而不是由NFC控制器转发给SE。因此,不需要在SE与NFC控制器之间设置SWP接口和SWP通信线,即SE不需要支持SWP协议。从而降低了移动终端中NFC业务构架的复杂度及成本。
参见图6,为本发明实施例提供的又一种移动终端的框架示意图,本实施例应用于移动终端内的SIM卡与NFC读卡器进行通信的应用场景。
AP解析NFC控制器发送的用于NFC业务的AID选择命令,获知目标AID是SIM卡,查询与AP的安全模式相对应的存储空间中预先存储的AID路由表,获得SIM卡对应的第二目的地址。然后,AP建立AP与SIM卡之间的第二链接。然后,将接收到的NFC控制器后续发送的与AID选择命令对应的NFC业务的业务数据全部发送给SIM卡,直到接收到新的AID选择命令为止。
其中,AP基于AP与SIM卡之间的通信总线建立第二链接;SIM卡与AP之间的通信总线可以采用现有技术所公开的AP与SIM卡之间的通信,例如,SCI(Serial Communication Interface,串行通信接口)总线。
本领域技术人员应当知道,这里所说的AP基于AP与SIM卡之间的通信总线建立第二链接,是指AP与SIM卡之间通过该通信总线以及相应的接口电路,实现AP与SIM卡之间的通信。进一步地,由于AP和SIM卡之间的通信总线是
在生产移动终端时就设置好的,因此,这里的建立第二链接,可以理解为激活或者使能AP与SIM卡之间的通信总线,使之可以实现进一步的业务数据传输。
本实施例提供的移动终端,AP确定AID选择命令所包含的目标AID是SIM卡后,查询AID路由表获得SIM卡的第二目的地址。建立AP与SIM卡之间的第二链接,并通过第二链接将后续接收到的全部业务数据全部发送给SIM卡。
参见图7,为本发明实施例提供的又一种移动终端的框架示意图,本实施例应用于移动终端内的SD卡与NFC读卡器进行通信的应用场景。
AP查询NFC控制器发送的用于发起NFC业务的AID选择命令,获知目标AID是SD卡,查询与安全模式对应的存储空间中存储的AID路由表,获得SD卡对应的第三目的地址。然后,AP建立AP与SD卡之间的第三链接,并通过第三链接将AID选择命令发送给SD卡。以及,将后续接收到的NFC控制器发送的业务数据全部发送给SD卡,直到接收到新的AID选择命令。
其中,AP基于AP与SD卡之间的通信总线建立第三链接,可以采用现有技术所公开的AP与SD卡之间的通信总线,例如,I/O总线。
本领域技术人员应当知道,这里所说的AP基于AP与SD卡之间的通信总线建立第三链接,是指AP与SD卡之间通过该通信总线以及相应的接口电路,实现AP与SD卡之间的通信。进一步地,由于AP和SD卡之间的通信总线是在生产移动终端时就设置好的,因此,这里的建立第三链接,可以理解为激活或者使能AP与SD卡之间的通信总线,使之可以实现进一步的业务数据传输。
本实施例提供的移动终端,AP确定AID选择命令所包含的目标AID是SD卡后,查询AID路由表获得SD卡的目的地址,并将后续接收到的与AID选择命令对应的NFC业务的全部业务数据通过第三链接发送给SD卡。而且,本申请提供的用于近场通信的系统框架,不需要SE与AP之间设置SWP接口,因此,能够在同一移动终端内同时实现SIM卡、SD卡和全终端三种数据交互方式。
参见图8,为本发明实施例提供的又一种移动终端的框架的示意图,其中,运行在AP上的软件系统是运行包括两种工作模式,一种是安全模式,只能执行受信指令,称为TEE环境;另一种是非安全模式(或,正常模式),可以执行富指令,称为REE(Rich Execution Environment)环境,这两种模式都集成在一个内核中,根据不同的需要在两种模式中简单切换。
当NFC控制器接收到的NFC读卡器发送的用于发起NFC业务的AID选择命令后,将该AID选择命令发送给运行在TEE环境中的AP,AP获得AID选择命令所包含的目标AID,并确定该目标AID对应的应用。
如果目标AID被注册为HCE(Host-based Card Emulation,基于主机的卡模拟)应用程序,HCE应用程序运行于AP的REE环境中。则AP查询AID路由表确定HCE应用程序对应的第四目的地址,从TEE环境切换到REE环境,并建立TEE环境与REE环境之间的第四链接。将接收到的AID选择命令及后续的业务数据,通过第四链接发送给HCE应用程序,直到接收到新的AID选择命令。
本实施例提供的移动终端,运行在TEE环境中的AP确定目标AID是HCE应用程序后,从TEE环境切换到REE环境,并将AID选择命令及后续的业务数据通过TEE环境与REE环境之间的第四链接发送给REE环境中的HCE应用程序,从而完成移动终端内的HCE应用程序与NFC读卡器之间的NFC非接触业务。
本说明书中的各个实施例均采用递进的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于装置或系统实施例而言,由于其基本相似于方法实施例,所以描述得比较简单,相关之处参见方法实施例的部分说明即可。以上所描述的装置及系统实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性劳动的情况下,即可以理解并实施。
以上所述仅是本发明的具体实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也应视为本发明的保护范围。
Claims (12)
- 一种近场通信方法,其特征在于,所述方法应用于移动终端,所述移动终端包括:应用处理器AP、近场通信NFC控制器和安全单元SE,其中,所述NFC控制器耦合至所述AP,所述SE耦合至所述AP,所述AP的工作模式包括安全模式;所述方法包括:所述NFC控制器接收用于发起NFC业务的应用标识AID选择命令,并将所述AID选择命令转发给所述AP,其中,所述AID选择命令携带有目标AID;所述AP通过解析所述AID选择命令,获得所述目标AID;并通过查询与所述AP的安全模式相对应的存储空间中预先存储的AID路由表,获得与所述目标AID所对应的第一目的地址,其中,所述AID路由表中包括至少一个AID与至少一个目的地址之间的一一对应关系;当所述第一目的地址对应的对象是所述SE时,所述AP建立所述AP与所述SE之间的第一链接;所述NFC控制器接收与所述NFC业务对应的至少一个业务数据,并将所述至少一个业务数据发送给所述AP;所述AP通过所述第一链接将所述至少一个业务数据发送给所述SE。
- 根据权利要求1所述的方法,其特征在于,若所述SE与所述AP集成在一个片上系统中,则所述AP建立所述AP与所述SE之间的第一链接,具体包括:所述AP基于进程间通信IPC总线建立所述第一链接。
- 根据权利要求1所述的方法,其特征在于,若所述SE与所述AP未集成在同一个片上系统中,则所述AP建立所述AP与所述SE之间的第一链接,具体包括:所述AP基于串行外设接口SPI总线建立所述第一链接。
- 根据权利要求1-3任一项所述的方法,其特征在于,所述移动终端还包括:客户识别模块SIM卡,所述方法还包括:若所述第一目的地址对应的对象是所述SIM卡,则所述AP建立所述AP与所述SIM卡之间的第二链接,并通过所述第二链接将所述至少一个业务数据发送给所述SIM卡。
- 根据权利要求1-3任一项所述的方法,其特征在于,所述移动终端还包括:安全数码SD卡,所述方法还包括:若所述第一目的地址对应的对象是所述SD卡,则所述AP建立所述AP与所述SD卡之间的第三链接,并通过所述第三链接将所述至少一个业务数据发送给所述SD卡。
- 根据权利要求1-3任一项所述的方法,其特征在于,所述AP的工作模式还包括非安全模式,所述方法还包括:若所述第一目的地址对应的对象是所述AP运行在非安全模式下的NFC卡模拟应用程序,则所述AP建立所述AP与所述NFC卡模拟应用程序之间的第四链接,通过所述第四链接,将所述至少一个业务数据发送给所述NFC卡模拟应用程序。
- 一种移动终端,其特征在于,包括:应用处理器AP、近场通信NFC控制器和安全单元SE,其中,所述NFC控制器耦合至所述AP,所述SE耦合至所述AP,所述AP的工作模式包括安全模式,且在所述AP的安全模式相对应的存储空间中预先存储有应用标识AID路由表,所述AID路由表中包括至少一个AID与至少一个目的地址之间的一一对应关系;所述NFC控制器,用于接收用于发起NFC业务的AID选择命令,并将所述AID选择命令发送给所述AP,其中,所述AID选择命令携带有目标AID;所述AP,用于通过解析所述AID选择命令,获得所述目标AID;并通过查询所述AID路由表获得所述目标AID对应的第一目的地址;以及,当所述第一目的地址对应的对象是所述SE时,所述AP建立所述AP与所述SE之间的第一链接;所述NFC控制器,还用于接收与所述NFC业务对应的至少一个业务数据, 并将所述至少一个业务数据发送给所述AP;所述AP,还用于通过所述第一链接将所述至少一个业务数据发送给所述SE。
- 根据权利要求7所述的移动终端,其特征在于,若所述SE与所述AP集成在一个片上系统中的,则所述AP用于建立所述AP与所述SE之间的第一链接时,具体用于:基于进程间通信IPC总线建立所述第一链接。
- 根据权利要求7所述的移动终端,其特征在于,若所述SE与所述AP未集成在同一个片上系统中,则所述AP用于建立所述AP与所述SE之间的第一链接时,具体用于:基于所述AP与所述SE之间的串行外设接口SPI总线建立所述第一链接。
- 根据权利要求7-9任一项所述的移动终端,其特征在于,所述移动终端还包括客户识别模块SIM卡,若所述第一目的地址对应的对象是客户识别模块SIM卡,则所述AP还用于:建立所述AP与所述SIM卡之间的第二链接,并通过所述第二链接将所述至少一个业务数据发送给所述SIM卡。
- 根据权利要求7-9任一项所述的移动终端,其特征在于,所述移动终端还包括安全数码SD卡,若所述第一目的地址对应的对象是安全数码SD卡,则所述AP还用于:建立所述AP与所述SD卡之间的第三链接,并通过所述第三链接将所述至少一个业务数据发送给所述SD卡。
- 根据权利要求7-9任一项所述的移动终端,其特征在于,所述AP的工作模式还包括非安全模式,若所述第一目的地址对应的对象是所述AP运行在非安全模式下的NFC卡模拟应用程序,则所述AP还用于:建立所述AP与所述NFC卡模拟应用程序之间的第四链接,通过所述第四 链接,将所述至少一个业务数据发送给所述NFC卡模拟应用程序。
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| EP16880761.8A EP3389287A4 (en) | 2015-12-31 | 2016-10-28 | Near field communication method and mobile terminal |
| US16/023,138 US20180310157A1 (en) | 2015-12-31 | 2018-06-29 | Near field communication method and mobile terminal |
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201511030631.9 | 2015-12-31 | ||
| CN201511030631.9A CN105472546B (zh) | 2015-12-31 | 2015-12-31 | 近场通信方法及移动终端 |
Related Child Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| US16/023,138 Continuation US20180310157A1 (en) | 2015-12-31 | 2018-06-29 | Near field communication method and mobile terminal |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2017113970A1 true WO2017113970A1 (zh) | 2017-07-06 |
Family
ID=55609746
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2016/103747 Ceased WO2017113970A1 (zh) | 2015-12-31 | 2016-10-28 | 近场通信方法及移动终端 |
Country Status (4)
| Country | Link |
|---|---|
| US (1) | US20180310157A1 (zh) |
| EP (1) | EP3389287A4 (zh) |
| CN (1) | CN105472546B (zh) |
| WO (1) | WO2017113970A1 (zh) |
Families Citing this family (20)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105472546B (zh) * | 2015-12-31 | 2019-05-24 | 华为技术有限公司 | 近场通信方法及移动终端 |
| US10602337B2 (en) | 2016-05-25 | 2020-03-24 | Huawei Technologies Co., Ltd. | Route configuration method and apparatus for contactless application |
| WO2018133178A1 (zh) * | 2017-01-20 | 2018-07-26 | 华为技术有限公司 | 基于nfc进行数据传输的方法及移动设备 |
| CN109478904B (zh) * | 2017-06-02 | 2020-12-15 | 华为技术有限公司 | 一种nfc业务处理方法、终端及存储介质 |
| US10068114B1 (en) * | 2017-09-12 | 2018-09-04 | Nxp B.V. | System and method for implementing a host card emulation (HCE) command stack in a mobile phone |
| US11334862B2 (en) | 2017-09-28 | 2022-05-17 | Huawei Technologies Co., Ltd. | Terminal transaction method, and terminal |
| CN107659921B (zh) * | 2017-11-08 | 2023-12-26 | 上海坤锐电子科技有限公司 | Nfc的通用实现电路及芯片 |
| CN108415512B (zh) * | 2018-03-06 | 2020-05-19 | 三星半导体(中国)研究开发有限公司 | 具有近场通信功能的可穿戴设备以及近场通信控制系统 |
| CN109151777B (zh) * | 2018-06-11 | 2020-11-24 | 中国银联股份有限公司 | 一种非接通信方法以及通信装置 |
| DE102018124680A1 (de) * | 2018-10-08 | 2020-04-09 | Infineon Technologies Ag | Schaltkreis, Verfahren und Vorrichtung zum Ausführen einer Nahfeldkommunikation |
| CN109451130B (zh) * | 2018-12-04 | 2021-08-03 | 惠州Tcl移动通信有限公司 | 移动终端测试方法、装置、移动终端及存储介质 |
| FR3094514A1 (fr) * | 2019-03-25 | 2020-10-02 | Proton World International N.V. | Système électronique |
| FR3094517A1 (fr) * | 2019-03-25 | 2020-10-02 | Proton World International N.V. | Système électronique |
| CN111178832A (zh) * | 2019-12-23 | 2020-05-19 | 金华航大北斗应用技术有限公司 | 一种基于校园移动支付平台的学生就寝打卡方法 |
| CN113329379B (zh) * | 2020-02-29 | 2023-04-18 | 华为技术有限公司 | 基于nfc的通信方法、装置及系统 |
| US11483299B2 (en) * | 2020-10-21 | 2022-10-25 | Arm Limited | Method and apparatus for encrypted communication |
| FR3130489B1 (fr) * | 2021-12-14 | 2024-08-30 | St Microelectronics Rousset | Transaction NFC |
| CN114302404B (zh) * | 2021-12-23 | 2024-11-19 | 汇顶科技(成都)有限责任公司 | 近场通信方法、配置方法、nfc主机以及电子设备 |
| CN114422989A (zh) * | 2021-12-27 | 2022-04-29 | 无锡融卡科技有限公司 | 智能终端内的nfc通信装置及方法 |
| CN114286345B (zh) * | 2021-12-27 | 2024-04-02 | 无锡融卡科技有限公司 | 智能终端内的nfc通信装置及方法 |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103065107A (zh) * | 2011-10-21 | 2013-04-24 | 中国移动通信集团公司 | 一种非接触刷卡应用的实现方法以及装置 |
| CN103856245A (zh) * | 2012-12-03 | 2014-06-11 | Nxp股份有限公司 | 控制能够实现近场通信的移动通信设备中的操作的方法及系统 |
| WO2015147413A1 (en) * | 2014-03-27 | 2015-10-01 | Lg Electronics Inc. | Mobile terminal and method for controlling the same |
| WO2015183551A1 (en) * | 2014-05-29 | 2015-12-03 | Apple Inc. | Apparatus and methods for managing payment applets on a secure element to conduct mobile payment transactions |
| CN105472546A (zh) * | 2015-12-31 | 2016-04-06 | 华为技术有限公司 | 近场通信方法及移动终端 |
Family Cites Families (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20120180063A1 (en) * | 2010-11-24 | 2012-07-12 | Nokia Corporation | Method and Apparatus for Providing Management of Parallel Library Implementation |
| US8862767B2 (en) * | 2011-09-02 | 2014-10-14 | Ebay Inc. | Secure elements broker (SEB) for application communication channel selector optimization |
| EP2677790B8 (en) * | 2012-06-21 | 2019-03-27 | Telefonaktiebolaget LM Ericsson (publ) | NFC system comprising a plurality of secure elements |
| US9021563B2 (en) * | 2013-01-02 | 2015-04-28 | Htc Corporation | Accessory interface system |
| CN104253840B (zh) * | 2013-06-28 | 2017-12-12 | 中国银联股份有限公司 | 用于支持多种类型安全载体之间通信的装置及其通信方法 |
| US9071971B2 (en) * | 2013-07-24 | 2015-06-30 | Cellco Partnership | Adaptive and context based NFC access control filtering |
| EP2903302A1 (en) * | 2014-01-30 | 2015-08-05 | Gemalto SA | Method of managing a transaction between a secure element and a NFC terminal |
| WO2015144879A1 (en) * | 2014-03-28 | 2015-10-01 | Sony Corporation | Electronic device and communication method for nfc |
-
2015
- 2015-12-31 CN CN201511030631.9A patent/CN105472546B/zh active Active
-
2016
- 2016-10-28 EP EP16880761.8A patent/EP3389287A4/en not_active Withdrawn
- 2016-10-28 WO PCT/CN2016/103747 patent/WO2017113970A1/zh not_active Ceased
-
2018
- 2018-06-29 US US16/023,138 patent/US20180310157A1/en not_active Abandoned
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103065107A (zh) * | 2011-10-21 | 2013-04-24 | 中国移动通信集团公司 | 一种非接触刷卡应用的实现方法以及装置 |
| CN103856245A (zh) * | 2012-12-03 | 2014-06-11 | Nxp股份有限公司 | 控制能够实现近场通信的移动通信设备中的操作的方法及系统 |
| WO2015147413A1 (en) * | 2014-03-27 | 2015-10-01 | Lg Electronics Inc. | Mobile terminal and method for controlling the same |
| WO2015183551A1 (en) * | 2014-05-29 | 2015-12-03 | Apple Inc. | Apparatus and methods for managing payment applets on a secure element to conduct mobile payment transactions |
| CN105472546A (zh) * | 2015-12-31 | 2016-04-06 | 华为技术有限公司 | 近场通信方法及移动终端 |
Non-Patent Citations (1)
| Title |
|---|
| See also references of EP3389287A4 * |
Also Published As
| Publication number | Publication date |
|---|---|
| CN105472546B (zh) | 2019-05-24 |
| US20180310157A1 (en) | 2018-10-25 |
| CN105472546A (zh) | 2016-04-06 |
| EP3389287A1 (en) | 2018-10-17 |
| EP3389287A4 (en) | 2018-12-19 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| WO2017113970A1 (zh) | 近场通信方法及移动终端 | |
| JP6193879B2 (ja) | 非接触型支払いカードをエミュレートする移動端末内でのルーティングのための方法 | |
| US20150339659A1 (en) | System And Method For Payment Credential-Based Mobile Commerce | |
| CN104253840B (zh) | 用于支持多种类型安全载体之间通信的装置及其通信方法 | |
| US20220180351A1 (en) | Method, electronic device, and communications system for automatically selecting nfc emulation card | |
| CN104471600B (zh) | 一种安全单元的管理方法及终端 | |
| US11039299B2 (en) | ESIM card activation method, wireless router, and user terminal | |
| EP2816825B1 (en) | NFC-enabled Mobile Device, NFC reader and NFC system for Supporting a Plurality of Proximity Services | |
| US10708744B2 (en) | NFC-based communication method and apparatus | |
| CN105592403B (zh) | 一种基于nfc的通信装置和方法 | |
| US9924302B2 (en) | Mobile communication device and cloud-based computer system | |
| CN102770850B (zh) | 用于与主设备通信的令牌,对应的通信系统和方法 | |
| US20130174266A1 (en) | Data exchange between a secure element and a terminal | |
| CN106845974A (zh) | 一种实现近场通信的点对点通信的方法及装置 | |
| CN111132129B (zh) | Sim卡信息获取装置和通信终端装置 | |
| CN103326752B (zh) | 为电子设备之间通信借助接口去活的控制方法和相应设备 | |
| WO2023124258A1 (zh) | 远程访问用户识别模块sim卡的方法和装置 | |
| KR101803972B1 (ko) | Uicc를 포함하는 단말장치 및 그를 이용한 파일 등록방법과 p2p 전송방법 | |
| CN112291772B (zh) | 一种蓝牙装置及其通信方法 | |
| JP5848741B2 (ja) | ホストと無線インターネットアクセスモジュールとの間の通信方法、及びホスト通信モジュール | |
| HK1224879B (zh) | 一种基於nfc的通信装置和方法 | |
| HK1224879A1 (zh) | 一種基於nfc的通信裝置和方法 | |
| HK1224879A (zh) | 一种基於nfc的通信装置和方法 |
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: 16880761 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| WWE | Wipo information: entry into national phase |
Ref document number: 2016880761 Country of ref document: EP |
|
| ENP | Entry into the national phase |
Ref document number: 2016880761 Country of ref document: EP Effective date: 20180709 |