WO2023056775A1 - Method for extending simulation function of nfc card, nfc extension device and nfc terminal - Google Patents

Method for extending simulation function of nfc card, nfc extension device and nfc terminal Download PDF

Info

Publication number
WO2023056775A1
WO2023056775A1 PCT/CN2022/109287 CN2022109287W WO2023056775A1 WO 2023056775 A1 WO2023056775 A1 WO 2023056775A1 CN 2022109287 W CN2022109287 W CN 2022109287W WO 2023056775 A1 WO2023056775 A1 WO 2023056775A1
Authority
WO
WIPO (PCT)
Prior art keywords
nfc
card
static data
nfc terminal
read
Prior art date
Application number
PCT/CN2022/109287
Other languages
French (fr)
Chinese (zh)
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 深圳市汇顶科技股份有限公司
Publication of WO2023056775A1 publication Critical patent/WO2023056775A1/en

Links

Images

Classifications

    • H04B5/77
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/10009Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation sensing by radiation using wavelengths larger than 0.1 mm, e.g. radio-waves or microwaves
    • G06K7/10297Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation sensing by radiation using wavelengths larger than 0.1 mm, e.g. radio-waves or microwaves arrangements for handling protocols designed for non-contact record carriers such as RFIDs NFCs, e.g. ISO/IEC 14443 and 18092
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/18Multiprotocol handlers, e.g. single devices capable of handling multiple protocols
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72409User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
    • H04M1/72412User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories using two-way short-range wireless interfaces
    • 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

Definitions

  • This application relates to the field of near field communication (Near Field Communication, NFC), in particular to a method for expanding the simulation function of an NFC card, an NFC extension device and an NFC terminal.
  • NFC Near Field Communication
  • Terminals are usually designed to operate a defined set of cards, holding specific applications, this is also known as a closed system approach. End customers are struggling with a large number of different cards in their wallets, all carrying a single application. Therefore, there is a strong trend to require devices or methods capable of carrying multiple applications.
  • NFC terminals such as mobile phones, tablet computers, wearable electronic devices with wireless communication functions, etc.
  • NFC terminals can support many corresponding applications.
  • many physical card simulation applications cannot be downloaded and copied by NFC mobile devices, mainly due to security factors and system compatibility issues.
  • social security cards and ID cards cannot be emulated on mobile phones, and some other Advanced Encryption Standard (AES) encryption cards cannot be cracked and copied.
  • AES Advanced Encryption Standard
  • Some cards cannot be successfully implemented by NFC terminals because they are not compatible with the actual application specifications of mobile phone systems such as NFC forum/EMVco. Due to the above-mentioned reasons, in practical applications, physical cards still cannot be completely replaced. In real life, there are many physical cards. The existence of card and other processes and the existence of situations such as the target user forgets to take the card after swiping the card also increase the risk of losing the physical card.
  • the first aspect of the present application provides a method for extending the NFC card simulation function.
  • the NFC terminal realizes the simulation of the physical card through the NFC expansion device, and the NFC card reader obtains the standard static data and/or additional static data of the physical card from the NFC terminal.
  • data and/or dynamic data the method specifically includes:
  • the NFC terminal obtains the standard static data of the entity card through the NFC extension device, the NFC extension device communicates with the entity card based on a first communication protocol, and the NFC terminal communicates with the NFC extension device based on a second communication protocol;
  • the NFC card reader obtains the standard static data of the physical card through the NFC terminal;
  • the NFC card reader obtains the additional static data and/or dynamic data of the entity card through the NFC terminal and the NFC extension device; or the NFC card reader obtains the additional static data of the entity card through the NFC terminal; and
  • the NFC card reader manages the physical card through standard static data and/or additional static data and/or dynamic data of the physical card.
  • the second aspect of the embodiment of the present application provides a method applied to an NFC terminal, a method of NFC card simulation, the NFC terminal realizes the simulation of a physical card through an NFC expansion device, and the method includes:
  • the NFC terminal obtains standard static data of the entity card through the NFC extension device, the NFC extension device communicates with the entity card based on a first communication protocol, and the NFC terminal communicates with the NFC extension device based on a second communication protocol;
  • mapping relationship between the simulated card and the physical card is generated on the NFC terminal.
  • the embodiment of the present application provides a method for emulating an NFC card applied to an NFC extension device, the method is used to realize the card emulation of an entity card in an NFC terminal through an NFC extension device, and the NFC extension device is connected to the entity card Communication based on the first communication protocol, the NFC terminal and the NFC extension device communicate based on the second communication protocol, the method includes:
  • the NFC extension device receives a card search command sent by the NFC terminal for obtaining standard static data of the entity card
  • the NFC extension device sends the card search command to the physical card
  • the NFC extension device receives the standard static data returned by the physical card and sends it to the NFC terminal, so that the NFC terminal generates a mapping relationship between the simulated card and the physical card on the NFC terminal according to the standard static data of the physical card.
  • an embodiment of the present application provides a terminal, the NFC terminal supports the first communication protocol and the second communication protocol, and the NFC terminal includes: a memory, a chip supporting the first communication protocol and the second communication protocol, and one or A plurality of processors; the memory is coupled with the one or more processors, the memory is used to store computer program codes, the computer program codes include computer instructions, and the one or more processors call the computer instructions to make the NFC terminal implement:
  • the standard static data of the entity card is obtained through the NFC extension device, the NFC extension device communicates with the entity card based on a first communication protocol, and the NFC terminal communicates with the NFC extension device based on a second communication protocol;
  • mapping relationship between the simulated card and the physical card is generated on the NFC terminal.
  • the present application provides an NFC extension device, which is used for communicating with an NFC terminal and a physical card, including: a processor, an application module, an operating system module, a transmission module, and a radio frequency identification module, wherein,
  • the transmission module is used for communicating with the NFC terminal based on the second communication protocol, receiving a card search command sent by the NFC terminal for obtaining standard static data of the entity card, sending the card search command to the entity card, and receiving the standard static data of the entity card.
  • the static data is sent to the NFC terminal based on the second communication protocol, so that the NFC terminal generates a mapping relationship between the analog card and the physical card on the NFC terminal according to the standard static data of the physical card;
  • the radio frequency identification module is used for communicating with the entity card based on the first communication protocol; receiving standard static data returned by the entity card.
  • FIG. 1 A schematic flow diagram of a method for extending the NFC card simulation function provided by the embodiment of the present application in Fig. 1;
  • FIG. 2 is a schematic diagram of a graphical user interface of an NFC terminal provided in an embodiment of the application
  • Fig. 3 shows the flow chart of the method for the NFC terminal to obtain the standard static data of the physical card through the NFC extension device;
  • FIG. 4 is a schematic interaction diagram of an NFC card reader obtaining additional static data and/or dynamic data of a physical card through an NFC terminal and an NFC extension device according to an embodiment of the present application;
  • FIG. 5 is a schematic flow diagram of obtaining additional static data provided by the embodiment of the present application.
  • FIG. 6 is a schematic flowchart of a logic for processing read and write requests provided by an embodiment of the present application
  • FIG. 7 is a flow chart of a method for dealing with a communication timeout problem provided by an embodiment of the present application.
  • FIG. 8 is a schematic interaction diagram of stages provided by the embodiment of the present application.
  • FIG. 9 is a schematic diagram of a hardware structure of an NFC terminal provided in an embodiment of the present application.
  • FIG. 10 is a schematic diagram of a hardware structure of an NFC extension device provided in an embodiment of the present application.
  • Figure 11 is a schematic diagram of a product form provided by the embodiment of the present application.
  • Figure 12 is a second schematic diagram of a product form provided by the embodiment of the present application.
  • Fig. 13 is a third schematic diagram of a product form provided by the embodiment of the present application.
  • the embodiment of the present application provides a method for expanding the NFC card simulation function, an NFC expansion device and an NFC terminal, which are used to solve the problem that the target user needs to repeatedly search for and take out the card and cause the card to be lost due to the presence of encrypted cards and other cards that cannot be simulated.
  • the problem of increased risk that is, the embodiment of the present application can expand the NFC card simulation function. Described technical scheme is as follows:
  • the target user can realize the card swiping operation without taking out the physical card that cannot be simulated by the NFC terminal.
  • the target user selects the card through the NFC terminal and is close to the NFC
  • the card reader can realize the physical card swiping, which improves the efficiency of swiping the card and reduces the risk of card loss caused by the target user looking for and taking the card.
  • the target user can put the NFC extension device into the wallet or luggage, etc., and does not need to take out the NFC extension device frequently when swiping the card, which increases safety and convenience.
  • the target user has multiple cards that cannot be simulated by the NFC terminal
  • the target user can put these cards together with the NFC expansion device at the same time, and select the card through the NFC terminal, making the card easy to manage.
  • this solution can assist the NFC card simulation expansion operation, expanding the scope of the NFC terminal card simulation function.
  • processing steps described herein may be performed out of the specified order, that is, each step may be performed in the specified order, substantially simultaneously. steps, perform each step in reverse order, or perform each step in a different order.
  • Card emulation (cardemulation, CE) mode at this time the NFC terminal is simulated as a contactless card, such as access control card, bank card, transportation card, coupon, ID card, etc.
  • the card simulation mode is mainly used in contactless mobile payment scenarios such as shopping malls and transportation.
  • the NFC controller the NFC controller (near field communication controller, NFCC) is responsible for the physical transmission of data through the radio frequency (radio frequency, RF) interface and antenna, so as to realize the communication between the NFC terminal and the peer device. That is to say, the communication between the NFC terminal and the peer device needs to be realized through the NFC controller.
  • NFCC near field communication controller
  • the hardware entity corresponding to NFCC is usually an NFC chip.
  • NFCC is a term used in the NFC control interface (NFC controller interface, NCI) specification developed by the NFC Forum (NFC Forum), which can correspond to the host control interface (host controller) developed by the European Telecommunications Standards Institute (ETSI). interface (HCI) specification in the contactless front-end (contactless front-end, CLF).
  • NCI NFC controller interface
  • host controller host controller
  • ETSI European Telecommunications Standards Institute
  • HCI contactless front-end
  • NFCEE is an entity that provides a secure execution environment for NFC applications (such as various card simulation applications such as bank cards and bus cards) on the first terminal.
  • NFCEE is a term used in the NCI specification formulated by NFCForum. It can correspond to the Universal Integrated Circuit Card (Universal Integrated Circuit Card, UICC), Embedded Secure Element (Embedded Secure Element, eSE) and Secure Digital Memory Card (Secure Digital Memory Card, SD) in the HCI specification formulated by ETSI. Card), etc.; it can also correspond to the Security Element (Secure Element, SE) in the specifications formulated by GP, or the Card Emulation Environment (CEE).
  • UICC Universal Integrated Circuit Card
  • eSE Embedded Secure Element
  • SD Secure Digital Memory Card
  • SE Security Element
  • CEE Card Emulation Environment
  • DH NFCEE which is an NFCEE directly connected to DH or within DH. That is to say, the physical carrier of NFCEE or SE can be eSE, UICC, SD card, etc.
  • the NFC application on the above-mentioned first terminal can also be point-to-point applications such as business card sharing and card reader applications such as bank POS and bus POS. Download and install these NFC applications.
  • these applications can also be preset in the eSE of the mobile phone when the mobile phone leaves the factory or in the UICC when the UICC card leaves the factory.
  • Radio frequency identification technology (Radio Frequency Identification, RFID) is a kind of automatic identification technology. It performs non-contact two-way data communication through radio frequency, and uses radio frequency to read and write recording media (electronic tags or radio frequency cards), so as to achieve Identify the target and purpose of the data exchange.
  • NFC terminal can be widely used in access control, bus, mobile payment, smart poster, data transmission and other fields.
  • the NFC device in the embodiment of the present application may be various devices configured with a near field communication function (i.e. supporting NFC communication standards and/or RFID communication standards), including but not limited to: (1) Mobile communication devices: characteristics of such devices It has the function of mobile communication, and its main goal is to provide voice and data communication.
  • Such terminals include: smart phones (such as iPhone), multimedia phones, feature phones, and low-end phones.
  • Ultra-mobile personal computer equipment This type of equipment belongs to the category of personal computers, with computing and processing functions, and generally also has the characteristics of mobile Internet access.
  • Such terminals include: PDA, MID and UMPC equipment, such as iPad.
  • Portable entertainment equipment This type of equipment can display and play multimedia content. Such devices include: audio and video players (such as iPod), handheld game consoles, e-books, as well as smart toys and portable car navigation devices. (4) Other electronic devices with data interaction functions. Specifically, the simulation of non-contact smart cards such as bank cards, bus cards, and access control cards can be realized through the NFC controller and secure element unit contained in the mobile terminal, in conjunction with the software system.
  • the NFC terminal can also be implemented as an Internet of Things (Internet of Things, IOT) device.
  • IOT Internet of Things
  • the NFC card reader is a POS machine supporting the NFC protocol, or a device supporting the RFID communication protocol.
  • the POS in the embodiment of the present application can be understood as a POS that supports NFC.
  • the POS in this embodiment of the application includes but is not limited to bank POS machines, bus POS machines, and access control POS machines.
  • POS is a multi-functional terminal.
  • the POS installed at the designated merchant or the acceptance outlet is connected to a computer to form a network. Through the communication between the POS and the NFC device, functions such as consumption, pre-authorization, balance inquiry and transfer can be realized.
  • NFC Forum in order to better realize the above functions and scenarios, NFCforum has developed a variety of NFC specifications.
  • the Digital specification stipulates the encoding format, modulation mode, transmission rate, frame format, transmission protocol and command set of the three technologies of NFC-A, NFC-B and NFC-F.
  • the NFC reader sends a radio frequency electromagnetic field carrying information to the NFC tag, and the NFC tag performs load modulation on the radio frequency electromagnetic field to send data to the NFC reader.
  • the frame of the NFC technology of the physical card can be understood as the encoding format, modulation method, transmission rate, frame format, transmission protocol and command set of the three technologies of NFC-A, NFC-B and NFC-F.
  • SE-based mobile payment SE-based mobile payment
  • HCE-based mobile payment HCE-based mobile payment
  • SE-based mobile payment For the SE-based mobile payment method, refer to FIG. 1.
  • the NFC application is stored in the SE, so the information of the NFC application is isolated from the operating system (OS).
  • OS operating system
  • the NFC controller After receiving the business command sent by the NFC card reader (POS), the NFC controller routes the business command to the SE, and the corresponding NFC application stored in the SE executes the mobile payment transaction.
  • HCE-based mobile payment In order to bypass the constraints of card issuers and meet the needs of rapid deployment of NFC applications, HCE-based mobile payment technology has emerged. At this time, the NFC application is stored in a trusted execution environment (trusted execution environment, TEE) or a rich execution environment (rich execution environment, REE).
  • TEE trusted execution environment
  • REE rich execution environment
  • the HCE-based mobile payment technology can route the business instructions sent by the NFC card reader (POS) to a chip with computing processing capabilities such as an application processor (application processor, AP) by the NFC controller without the need for SE, and Notified by the operating system to the NFC application.
  • the HCE-based mobile payment can enable any application in the NFC device to simulate a contactless card to communicate directly with the NFC card reader (POS).
  • ISO-DEP is ISO 14443 Data Exchange Protocol, which is a transmission protocol defined in ISO 14443-4. It is used for data interaction through the ISO-DEP protocol after the type 4A and 4B label platforms complete device activation.
  • Transparent transmission transparent transmission (pass-through), refers to the transmission of the content from the source address to the destination address regardless of the business content transmitted during the communication, without making any changes to the content of the business data.
  • Standard static data such as UID (User Identification), protocol type, interactive negotiation parameters, etc., are used to mark and distinguish physical cards, and can generate the corresponding relationship between physical cards and simulated cards.
  • Additional static data Data that will not change during the card swiping process. Including: 1. The inherent information of the physical card, but not used to mark the physical card. Take the ID card as an example, the user's photo, name, etc.; 2. The ciphertext data information corresponding to the static key, which is generally related to security authentication. The difference between additional static data and standard static data lies in the acquisition time. Standard static data can generally be read and stored by NFC terminals during the card simulation (copy) stage, while additional static data generally needs to be stored in NFC readers and physical cards. Obtained in the data interaction phase. In addition, in the data interaction stage, it generally takes two or more times to obtain additional static data.
  • Dynamic data data that will change during the card swiping process, such as the information corresponding to the dynamic key, which is generally related to security authentication and is used for authentication; for example, it is used to make the connection between the NFC card reader and the physical card Mutual authentication to confirm whether the physical card is a real and valid card and whether the NFC card reader has legal read and write permissions.
  • One of the ways of expressing dynamic data is random numbers, but not limited to this.
  • the financial related information of the physical card such as the card balance information, because the card balance information will change as the target user swipes the card, so the card balance information is dynamic data.
  • Smart card selection strategy intelligently select the required NFC analog cards based on the multi-directional information collected by the system without manual card selection, for example, associating different geographic location information with different cards, when the user enters different sensing areas , the system selects a card for the user in advance and switches to a card associated with the location according to the positioning and multi-directional sensor information movement data; or, associate different time information with different cards, when in different time intervals , the system selects a card for the user in advance and switches to a card associated with the location according to the time and multi-directional sensor information and motion data.
  • the first aspect of the embodiment of the present application provides a method for extending the NFC card simulation function, the method enables the NFC terminal to realize the simulation of the physical card through the NFC expansion device, and the NFC card reader obtains the standard static data of the physical card from the NFC terminal , additional static data, and dynamic data.
  • FIG. 1 is a schematic flow chart of a method for expanding the simulation function of an NFC card provided by an embodiment of the present application. Specifically, as follows:
  • the NFC terminal obtains standard static data of the physical card through the NFC extension device, the NFC extension device communicates with the physical card based on a first communication protocol, and the NFC terminal communicates with the NFC extension device based on a second communication protocol.
  • the protocol between the NFC extension device and the physical card is a near field communication protocol, including: NFC protocol or RFID protocol.
  • the protocol between the NFC extension device and the NFC terminal is a wireless communication protocol, including: Bluetooth protocol, WiFi protocol, 3G protocol, 4G protocol or 5G protocol. It can be understood that the communication protocol between the NFC terminal and the NFC extension device supports communication between the NFC terminal and the NFC extension device within a range of several meters to thousands of meters.
  • the NFC terminal obtains the standard static data of the physical card through the NFC extension device to simulate the physical card into the NFC terminal. After the physical card completes the card simulation, the target user can perform card swiping operations on the NFC terminal.
  • the NFC card reader obtains standard static data of the physical card through the NFC terminal. Specifically, in this step, since the physical card has been emulated into the NFC terminal in step S101, the target user can perform a card selection operation on the NFC terminal, which activates the physical card. It should be understood that the NFC terminal may also activate the physical card required by the target user based on the smart card selection policy, without the target user performing a card selection operation. After the specific physical card is activated, the NFC terminal touches or approaches the NFC card reader, so that the NFC terminal and the NFC card reader are within the effective communication range (for example, 0-40cm).
  • the NFC card reader acts as the initiator, generating a radio frequency field
  • the NFC terminal as the receiver, is generally in listening mode and obtains energy from the radio frequency field.
  • the NFC card reader selects the transmission rate for data transmission, and the NFC terminal passes the load Modulation, data response at the same transmission rate, sending the standard static data of the physical card to the NFC reader.
  • the NFC card reader obtains the additional static data and/or dynamic data of the physical card through the NFC terminal and the NFC extension device; or the NFC card reader obtains the additional static data of the physical card through the NFC terminal. Specifically, in this step, there are two processing logics for the read and write requests sent by the NFC card reader.
  • One logic is that the read and write requests sent by the NFC card reader can be transparently transmitted to the physical card through the NFC extension device, It is used to obtain additional static data and/or dynamic data of the physical card; another logic is that for the read and write request sent by the NFC card reader, if the read and write request is to obtain the additional static data of the physical card, it can be sent by NFC The terminal directly returns additional static data without transparent transmission to the physical card.
  • the NFC card reader manages the physical card through standard static data and/or additional static data and/or dynamic data of the physical card.
  • managing the physical card refers to, for example: obtaining the information of the target user in the physical card (such as the target user's name, age, photo, etc.), performing security authentication, such as performing security verification between the NFC card reader and the physical card. Authentication, to confirm that the physical card is the target physical card required by the target user.
  • the financial information of the physical card such as the card balance, etc. can be obtained.
  • financial payment is also a form of management of the physical card.
  • the embodiment of the present application can obtain the standard static information of the physical card through the NFC expansion device to perform the card simulation operation, can also realize the card selection and swiping operation through the NFC terminal, and can also obtain the physical card information through the NFC expansion device.
  • the NFC extension device and the NFC terminal are based on the wireless communication protocol, and the physical card is based on the near-field communication protocol, so that the user does not need to take out the physical card (the combination of the NFC expansion device and the physical card needs to be placed on the Carrying wallets, backpacks, suitcases, etc.), card selection and card swiping can be realized through the NFC terminal.
  • FIG. 2 is a schematic diagram of a graphical user interface of an NFC terminal provided in the embodiment of the application.
  • the NFC terminal 200 can display the corresponding relationship between the physical card and the simulated card on the graphical user interface 201, and the target user is on the NFC terminal 200.
  • the required physical card can be clicked according to the above corresponding relationship, so as to activate the required physical card.
  • the NFC terminal can realize automatic card selection based on a smart card selection strategy, without the need for the user to click on the NFC terminal 200, and the NFC terminal performs an automatic card selection operation based on geographic location information or time information, and such During the card selection operation, the NFC terminal can be in the following states: screen off, screen on, on or off.
  • Fig. 3 is a flowchart of a method for an NFC terminal to obtain standard static data of a physical card through an NFC extension device. as the picture shows:
  • the NFC terminal sends a card search command to allow the NFC extension device to send a first card search request; specifically, the NFC terminal and the extension device send a card search command based on a second communication protocol, such as Bluetooth, and the card search command uses So that the NFC extension device sends the first card-seeking request.
  • a second communication protocol such as Bluetooth
  • the card search command uses So that the NFC extension device sends the first card-seeking request.
  • the NFC extension device when the NFC extension device receives the request sent by the NFC terminal, the NFC extension device is activated and in a working state; when the NFC extension device does not receive the request sent by the NFC terminal for a certain period of time, the NFC The extension device enters a low power consumption state, which can reduce the power consumption of the NFC extension device and reduce the heat generation of the extension device.
  • the NFC extension device sends a first card finding request to the physical card, for obtaining standard static data of the physical card.
  • S1023 The physical card sends standard static data to the NFC extension device in response to the first card finding request.
  • the NFC extension device sends standard static data to the NFC terminal.
  • the physical card completes card simulation, and generates a simulated card corresponding to the physical card at the NFC terminal.
  • the standard static data can be stored in the NFC terminal (exemplarily, a memory, a secure element (Secure Element, SE), a host-based card simulation application (Host-based Card Emulation, HCE), a Universal Integrated Circuit Card (Universal Integrated Circuit Card, UICC).
  • Fig. 4 is a schematic interaction diagram of an NFC card reader obtaining additional static data and/or dynamic data of a physical card through an NFC terminal and an NFC extension device according to an embodiment of the present application. as the picture shows:
  • the NFC card reader sends to the NFC terminal a read and write request for obtaining additional static data and/or dynamic data of the physical card.
  • the number of read and write requests may be more than two, and the embodiment of the present application does not specifically limit the number of read and write requests for obtaining additional static data and/or dynamic data of the physical card.
  • the NFC terminal transparently transmits the read and write request to the NFC extension device. Specifically, the NFC terminal sends the read and write request to the NFC extension device through data forwarding.
  • the communication standard of the NFC terminal and the NFC extension device may be Bluetooth, Bluetooth Low Energy (Bluetooth Low Energy, BLE), WIFI, 4G or 5G, etc., which are not specifically limited in this embodiment.
  • S1033 The NFC extension device transparently transmits the read and write request to the physical card.
  • read and write responses correspond to read and write requests, so according to different read and write requests, read and write responses may include the following situations: 1. Only dynamic data; 2. Only additional static data; 3. Both dynamic data and additional static data.
  • the NFC extension device sends a read and write response to the NFC terminal.
  • S1036 The NFC terminal sends a read-write response to the NFC card reader. It should be understood that the NFC terminal sends the read-write response to the NFC card reader, and communicates with the card reader until the interaction is successful.
  • FIG. 5 is a schematic flowchart of obtaining additional static data provided by the embodiment of the present application.
  • the NFC terminal stores M read-write requests and read-write responses. That is, the NFC terminal can store a record of read and write requests and read and write responses every time the target user swipes the card.
  • NFC terminal When M is a natural number less than 2, that is, when M is 0 or 1, the NFC terminal cannot calculate (comparison) through the algorithm to obtain additional static data because it does not store a sufficient number of read-write requests and read-write responses. Therefore, NFC The terminal needs to continue to store read and write requests and read and write responses during the target user's card swiping process.
  • the NFC terminal stores more than 2 (including 2) read-write requests and read-write responses.
  • the NFC terminal traverses the read and write requests to determine whether there are the same read and write requests, and the NFC terminal traverses the read and write responses. If the read and write responses corresponding to the same read and write requests are also the same, the read and write responses are additional static data.
  • the request corresponding to the extra static data is an extra static data request, and the NFC terminal obtains the extra static data and the extra static data request.
  • M 2
  • the purpose of obtaining the additional static data in this embodiment can be achieved, but the larger the value of M, the more accurate the result of the NFC obtaining the additional static data.
  • the value of M can be adjusted according to actual needs, that is, this embodiment is a method of dynamically correcting and distinguishing to obtain additional static data.
  • FIG. 6 is a schematic flowchart of a logic for processing read and write requests provided by an embodiment of the present application.
  • the NFC terminal receives the read and write request sent by the NFC card reader to obtain the additional static data and/dynamic data of the physical card, the NFC terminal can judge that if the read and write request is an additional static data request, the NFC terminal returns the additional static data , because this type of data has been stored in the NFC terminal (exemplarily, additional static data information can be stored in a memory, a secure element (SE, Secure Element), a host-based card simulation application (Host-based Card Emulation, HCE) application 1.
  • SE Secure Element
  • HCE host-based Card Emulation
  • Universal Integrated Circuit Card Universal Integrated Circuit Card
  • UICC Universal Integrated Circuit Card
  • the NFC terminal transparently transmits the dynamic data request to the NFC extension device.
  • the effect of this embodiment for distinguishing between dynamic data and additional static data is that, generally speaking, the content of dynamic data is relatively short, and the probability of communication timeout is relatively low, while the data content of additional static data is long, which is likely to cause timeout.
  • the system responds faster, which can improve the efficiency of swiping the card; on the other hand, the occurrence of communication timeout is reduced, and the stability of the system is increased.
  • dynamic data generally changes every time the card is swiped. Even if it is stored in the NFC terminal, returning it from the NFC terminal in the next swiping of the card cannot meet the purpose of this application, and even a communication error occurs.
  • standard static data and additional static data are obtained and stored by the NFC terminal.
  • the effect of distinguishing standard static data, additional static data, and dynamic data and adopting different processing logics is that the responses corresponding to standard static data and additional static data are directly returned by the NFC terminal, which shortens the communication link and speeds up the communication response , Improve the efficiency of card swiping, reduce data loss, reduce the possibility of timeout, and increase the success rate of communication.
  • the dynamic data changes every time the card is swiped. Therefore, every time the card is swiped, the dynamic data request needs to be routed to the physical card to obtain the dynamic data of the physical card.
  • the dynamic data is related to security authentication.
  • the basic data processing logic of this application is that when the NFC terminal receives the read and write requests, it does not identify, judge or distinguish the read and write requests, but sends them all to the NFC extension device, and then the NFC extension The device sends to the physical card to obtain additional static data and/or dynamic data of the physical card.
  • This scheme is applicable to all physical cards, has a wide range of applications and has a low probability of error; another optional data processing logic is, The NFC terminal sends the read and write request for dynamic data to the NFC extension device, and then the NFC extension device sends it to the physical card. However, when the NFC terminal receives the read and write request for additional static data, the NFC terminal directly returns the additional static data.
  • the scope of application of the second processing logic for cards is narrower than that of physical cards under the basic processing logic.
  • the target user can choose different processing logics on the NFC terminal, or the NFC terminal can decide independently to obtain the optimal processing logic.
  • the NFC terminal includes an HCE application, configured to transparently transmit the read-write request to the NFC extension device and send a read-write response to the NFC card reader.
  • the communication between the NFC terminal and the NFC card reader times out, and the NFC card reader resends overtime, resending N read and write requests to form N resent read and write requests, and the NFC extension device filters the The resent read/write request, and the read/write response corresponding to the read/write request is used as the resend response of the Nth resent read/write request, where N is a natural number greater than or equal to 1.
  • the NFC extension device filters the retransmitted read and write requests, and uses the read and write response of the first read and write request sent by the NFC card reader (that is, the first read and write request sent by the NFC card reader) as the third resent read and write request.
  • the retransmission response of the write request therefore, in fact, the read and write responses within 270 milliseconds after the two or more read and write requests are sent are all received by the NFC card reader, that is, the timeout period of the extended NFC card reader is reached Effect. In this way, the disadvantage of terminating communication caused by multiple overtime retransmissions can be avoided, and the system stability can be increased.
  • This embodiment is not limited by a specific communication protocol and has good adaptability.
  • the NFC extension device uses the first communication protocol to request the NFC card reader to set a longer timeout period.
  • the entity card can use the WTOX req in ISO-DEP to apply for the NFC card reader to set a larger timeout period, so that the communication termination caused by multiple timeout retransmissions can be avoided.
  • WTOX req to apply for NFC card reader to set a larger timeout time, which is flexible and can be adjusted accordingly for different read and write requests. It should be understood that this embodiment needs to be used under the ISO-DEP protocol.
  • FIG. 7 is a flow chart of a method for dealing with a communication timeout problem provided by an embodiment of the present application.
  • the NFC terminal can judge (that is, according to the program , algorithm, etc.) whether the FWI parameter is appropriate, and set different FWI parameters based on different physical cards.
  • the FWI parameter is large, the response time requirement is relatively low, and the compatibility is better. In this way, the disadvantage of terminating communication caused by multiple overtime retransmissions can be avoided, and the compatibility of the scheme can be improved.
  • the FWI parameter is large, the response time requirement is relatively low, and the compatibility is better.
  • the NFC terminal sets the FWI parameter based on the FWI of the physical card and the parameters of the card reader at the same time.
  • the parameter can be a communication timeout parameter. Setting the FWI parameter based on two different data information can make the NFC terminal set More precise FWI parameters.
  • the NFC terminal sets the FWI parameter to apply for the NFC card reader to set the timeout period, there is still a situation of overtime retransmission, then the NFC terminal resets the frame waiting integer time to apply for the NFC card reader Set a larger timeout.
  • the NFC terminal sets the FWI parameters according to the standard static data of the physical card and/or the communication timeout parameters of the card reader during the card simulation stage, but in the actual swiping of the card by the target user, there is still a timeout situation.
  • the NFC terminal resets the FWI parameter at this time to apply for a larger timeout period for the NFC card reader to avoid re-swiping after timeout again, that is, the reset FWI parameter replaces the NFC terminal in the card simulation
  • the stage is based on standard static data and/or the FWI parameters set by the communication timeout parameters of the card reader, so that the NFC card reader can be better adapted to improve the success rate and efficiency of card swiping. It should be understood that this embodiment needs to be used under the ISO-DEP protocol.
  • the NFC terminal records the reset FWI parameter, and this parameter forms a mapping with the physical card and the NFC card reader, and can be called in the subsequent communication between the NFC terminal and the NFC card reader. It should be understood that this embodiment needs to be used under the ISO-DEP protocol.
  • timeout retransmission can be used in conjunction with each other, or can be used independently.
  • the NFC terminal notifies the target user that the physical card cannot be compatible.
  • FIG. 8 is a schematic interaction diagram of stages provided by the embodiment of the present application. As shown in the figure, it includes three phases: card simulation phase, card activation phase and card interaction phase.
  • Card emulation stage S801-S805.
  • the NFC terminal sends a card search command to the NFC extension device, where the card search command is used to make the NFC extension device send a first card search request.
  • the NFC extension device sends a first card finding request to the physical card, where the first card finding request is used to obtain standard static data of the physical card.
  • S803 The entity card sends standard static data to the NFC extension device in response to the first card finding request.
  • S804 The NFC extension device sends standard static data to the NFC terminal.
  • S805 Generate, on the NFC terminal, a mapping relationship between the simulated card and the physical card according to the standard static data.
  • S806 The NFC terminal receives a card selection instruction.
  • the NFC card reader sends a second card finding request to the NFC terminal, where the second card finding request is used to acquire standard static data of the physical card.
  • S808 The NFC terminal sends the standard static data to the NFC card reader.
  • the NFC card reader sends a read and write request to the NFC terminal, for acquiring dynamic data and/or additional static data of the physical card.
  • S810 The NFC terminal transparently transmits the read and write request to the NFC extension device.
  • S811 The NFC extension device transparently transmits the read and write request to the physical card.
  • the physical card sends a read/write response to the extension device.
  • the read/write response may be in the following three situations: 1 only additional static data; 2 only dynamic data; 3 additional static data and dynamic data.
  • the NFC extension device sends a read and write response to the NFC terminal.
  • S814 The NFC terminal sends a read-write response to the NFC card reader, and communicates with the NFC card reader until the interaction is successful.
  • the second aspect of the present application provides a method applied to an NFC terminal.
  • the NFC terminal can realize card simulation through an NFC expansion device, specifically including:
  • the NFC terminal obtains the standard static data of the entity card through the NFC extension device, and the NFC terminal and the entity card communicate based on a near-field communication protocol, such as: NFC protocol or RFID protocol; the NFC terminal and the NFC extension device are based on wireless Communication protocol communication, such as: Bluetooth protocol, WiFi protocol, 3G protocol, 4G protocol or 5G protocol.
  • a near-field communication protocol such as: NFC protocol or RFID protocol
  • the NFC terminal and the NFC extension device are based on wireless Communication protocol communication, such as: Bluetooth protocol, WiFi protocol, 3G protocol, 4G protocol or 5G protocol.
  • the NFC terminal After obtaining the standard static data of the physical card, the NFC terminal can generate a mapping relationship between the simulated card and the physical card.
  • the NFC terminal receives a card selection instruction
  • the card selection instruction includes two types: one is that the target user selects a card according to the mapping relationship between the simulated card and the physical card and his actual needs, that is, the user needs to manually operate; It is a smart card selection strategy, that is, the NFC terminal receives an operation instruction to intelligently select the required NFC analog card based on the multi-directional information collected by the system without manual card selection. It should be understood that no matter what kind of card selection instruction is used, the target user does not need to take out the physical card to swipe the card, and the NFC terminal can realize card selection and card swipe operations.
  • the NFC terminal receives a read/write request for acquiring additional static data and/or dynamic data of the entity card sent by the NFC card reader, and receives a read/write response containing the additional static data and/or dynamic data. That is, the read and write responses received by the NFC terminal include three situations: 1 only additional static data; 2 only dynamic data; 3 additional static data and dynamic data. And, the NFC terminal sends additional static data and/or dynamic data to the NFC card reader.
  • the NFC terminal has two processing logics: one of them is transparently transmitted to the NFC extension device.
  • the NFC extension device receives After receiving the data on the Bluetooth channel, the NFC technology frame corresponding to the physical card will be used to transparently transmit the read and write request to the physical card.
  • the NFC terminal receives a read-write request. If the read-write request requires additional static data of the physical card, the data can be directly returned to the NFC card reader by the NFC terminal without transparently transmitting it to the NFC expansion device.
  • the read-write request if the read-write request needs the dynamic data of the physical card, the read-write request is still routed to the NFC extension device.
  • This processing logic can shorten the communication link, reduce the occurrence of timeouts, and increase communication efficiency and success rate .
  • the NFC terminal needs to obtain additional static data first.
  • the embodiment of the present application provides an NFC card simulation method applied to an NFC extension device, which is used to realize the card simulation of the physical card in the NFC terminal through the NFC extension device, and the NFC extension device and the entity card are based on the first Communication protocol communication, NFC terminal and NFC extension device communicate based on the second communication protocol,
  • the first communication protocol is near field communication protocol
  • near field communication protocol includes: NFC protocol or RFID protocol
  • the second communication protocol is wireless communication protocol
  • wireless communication Protocols include: Bluetooth protocol, WiFi protocol, 3G protocol, 4G protocol or 5G protocol. Specifically include:
  • the NFC extension device receives the card search command sent by the NFC terminal to obtain the standard static data of the physical card
  • the NFC expansion device sends the card search command to the physical card
  • the NFC extension device receives the standard static data returned by the physical card and sends it to the NFC terminal, so that the NFC terminal generates a mapping relationship between the analog card and the physical card on the NFC terminal according to the standard static data of the physical card.
  • the NFC extension device receives the read and write request sent by the NFC terminal for obtaining additional static data and/or dynamic data of the entity card, and the NFC extension device obtains the additional static data and/or dynamic data of the entity card from the entity card;
  • the NFC extension device communicates with the NFC terminal and the physical card based on different protocols, and communicates with the NFC terminal based on a wireless communication protocol. Taking Bluetooth as an example, the distance between the NFC extension device and the NFC terminal can be several meters to tens of meters.
  • the communication distance between the NFC expansion device and the physical card is based on the near-field communication protocol, that is, the NFC expansion device is generally attached or set on the physical card (for example, the communication distance between the expansion device and the physical card is 20m).
  • the target user puts the miniaturized NFC expansion device and the physical card together, and then puts them in the wallet or backpack, or puts them in the pocket of the trousers, and then selects and swipes the card through the NFC terminal.
  • the effect of swiping the card without taking out the physical card can be realized, the operation is simple, and the safety and convenience are increased.
  • FIG. 9 is a schematic diagram of a hardware structure of an NFC terminal provided by an embodiment of the present application. It should be understood that the NFC terminal shown in FIG. 9 is only an example, and that the NFC terminal may have more or fewer components than those shown in FIG. 9, may combine two or more components, or may have Different component configurations.
  • the various components shown in the figures may be implemented in hardware, software, or a combination of hardware and software including one or more signal processing and/or application specific integrated circuits.
  • the NFC terminal includes: a memory 910, a processor 920, and a chip 930 supporting the first communication protocol and the second communication protocol.
  • the processor 920 may include one or more processing units, for example: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processing unit (graphics processing unit, GPU), an image signal Processor (image signal processor, ISP), controller, memory, video codec, digital signal processor (digital signal processor, DSP), baseband processor, etc.
  • a memory may also be provided in the processor 920 for storing instructions and data.
  • the memory 910 is coupled to the processor 920, and the memory 910 is used for storing computer program codes.
  • the memory 910 may be used to store computer-executable program code, which includes instructions.
  • the processor 920 executes various functional applications and data processing of the NFC terminal by executing instructions stored in the memory 910 .
  • the processor 920 calls the computer instructions to make the NFC terminal execute:
  • the standard static data of the physical card is obtained through the NFC expansion device, the communication between the NFC expansion device and the physical card is based on the first communication protocol, and the communication between the NFC terminal and the NFC expansion device is based on the second communication protocol; wherein, the first communication protocol is near field communication Protocol, the near-field communication protocol includes: NFC protocol or RFID protocol; the second communication protocol is a wireless communication protocol, and the wireless communication protocol includes: Bluetooth protocol, WiFi protocol, 3G protocol, 4G protocol or 5G protocol.
  • mapping relationship between the simulated card and the physical card is generated on the NFC terminal;
  • the processor 920 can be used to judge whether the memory 910 reads and writes requests and reads and writes corresponding storage times M is a natural number greater than or equal to 2.
  • the specific judgment process can refer to the relevant description of the method embodiment in FIG. 5 above. Here I won't go into details for now.
  • processor 920 may also be used to judge and obtain additional static data.
  • the processor 920 may also be used to judge and obtain additional static data. For a specific judgment method, refer to the related description of the method embodiment in FIG. 5 above.
  • processor 920 may also be used to determine whether the read/write request is an additional static data request, and for a specific determination method, refer to the related description of the method embodiment in FIG. 6 above.
  • the memory 910 is coupled to the processor 920, and the memory 910 is used for storing computer program codes.
  • the memory 910 may be used to store computer-executable program code, which includes instructions.
  • the processor 110 executes various functional applications and data processing of the electronic device 100 by executing instructions stored in the memory 910 .
  • the memory 910 may be used to store application programs required for executing the method based on the extended NFC card simulation function provided by the embodiment of the present application.
  • the memory 910 can also be used to store data generated or created by the electronic device when executing the method for extending the emulation function of the NFC card, such as standard static data, additional static data, dynamic data, and the like. For example, the UID of the physical card, the FWI parameter, the radio frequency parameter used when successfully executing the NFC communication process with the physical card, and the like.
  • the embodiment of the present application does not limit the type of the NFC terminal.
  • the NFC terminal can be a mobile phone, a tablet computer, a personal digital assistant (personal digital assistant, PDA), a wearable device (such as a smart bracelet, a smart watch), a laptop computer (laptop), a computer with a touch-sensitive surface (such as a touch panel)
  • Portable electronic devices such as laptops.
  • Exemplary embodiments of portable electronic devices include, but are not limited to, portable electronic devices running iOS, android, microsoft, or other operating systems.
  • FIG. 10 is a schematic diagram of a hardware structure of an NFC extension device provided in an embodiment of the present application.
  • the NFC extension device includes: a processor 1001, an application module 1002 (Application), an operating system module 1003 (Operating System, OS), a transmission module 1003, and a radio frequency identification module 1005.
  • the processor 1001 specifically, the processor may be a Microcontroller Unit (MCU).
  • MCU Microcontroller Unit
  • the transmission module 1004 is used to communicate with the NFC terminal based on the second communication protocol, receive the card search command sent by the NFC terminal for obtaining the standard static data of the physical card, send the card search command to the physical card, and transfer the standard static data based on the second
  • the communication protocol is sent to the NFC terminal, so that the NFC terminal generates a mapping relationship between the simulated card and the physical card on the NFC terminal according to the standard static data of the physical card.
  • the communication between the transmission module 1004 and the NFC terminal may be based on different types of communication standards.
  • the communication standard in this embodiment may be Bluetooth Low Energy (Bluetooh Low Energy, BLE), or WiFi, 3G, 4G or 5G, which is not specifically limited in this embodiment of the present application.
  • BLE Bluetooth Low Energy
  • WiFi Wireless Fidelity
  • 3G, 4G or 5G 3G, 4G or 5G
  • the NFC extension device When the transmission module 1004 receives the request sent by the NFC terminal, the NFC extension device is activated and in a working state. When the NFC terminal does not receive the request sent by the NFC terminal for more than a certain period of time, the NFC extension device enters a low power consumption state, which can Reduce the power consumption of the NFC extension device and reduce the heat generation of the extension device.
  • the radio frequency identification module 1005 is used for communicating with the entity card based on the first communication protocol, and receiving the standard static data returned by the entity card.
  • the first communication protocol is a near field communication protocol, including: NFC protocol or RFID protocol.
  • the transmission module 1004 is also configured to receive a read and write request for acquiring additional static data and/or dynamic data of the physical card sent by the NFC terminal, and send the additional static data and/or dynamic data of the physical card to the NFC terminal.
  • radio frequency identification module 1005 is further configured to acquire additional static data and/or dynamic data of the physical card from the physical card.
  • Fig. 11 is a schematic diagram of a product form provided by the embodiment of the present application.
  • the wallet 1100 is a wallet installed with an NFC extension device 1101, a physical card 1102 is placed in the wallet 1000, and the physical card 1102 and the NFC extension device 1101 are within an effective communication distance.
  • the target user can put the wallet 1100 into the pocket of the jacket or trousers worn by the target user, or it can be placed in the backpack carried by the target user.
  • the NFC extension device communicates with the mobile phone of the target user based on communication standards such as Bluetooth, and the communication of Bluetooth
  • the distance is generally several meters or more than tens of meters, so the degree of freedom for the target user to swipe the card is increased.
  • the user does not need to take out the physical card, and can swipe the card by putting the mobile phone close to the NFC card reader, which increases the efficiency of card swiping and reduces the risk of card loss.
  • This embodiment does not limit the form of the NFC extension device, as long as the NFC extension device and the physical card are within the effective communication range, and the implementation of the NFC extension device and the NFC terminal within the effective communication range falls within the scope of protection of this application.
  • the target user can place the NFC extension device in the suitcase 1200 and the physical card in the suitcase 1200 as long as the physical card and the NFC extension device 1201 are within an effective communication distance.
  • the target user does not need to take out the physical card that cannot be simulated by the NFC terminal to swipe the card, which increases the convenience of swiping the card and reduces the risk of losing the physical card.
  • This embodiment does not limit the form of the NFC extension device, as long as the NFC extension device and the physical card are within the effective communication range, and the implementation of the NFC extension device and the NFC terminal within the effective communication range falls within the scope of protection of this application.
  • the extension device 1301 may be in the form of a thin and light card sticker, and attached to the physical card 1300 .
  • the target user can put the physical card 1000 attached with the extension device 1301 in the pocket of clothes and/or trousers; or in the wallet, as long as the extension device 1301 and the NFC terminal are within an effective communication range.
  • the expansion device 1301 can be in the form of a card holder, so that the physical card 1300 can be placed in the expansion device 1301 .

Abstract

Embodiments of the present application disclose a method for extending a simulation function of an NFC card, an NFC extension device, and an NFC terminal. The method comprises: an NFC terminal obtaining standard static data of a physical card by means of an NFC extension device, wherein the NFC extension device and the physical card communicate on the basis of a first communication protocol, and the NFC terminal and the NFC extension device communicate on the basis of a second communication protocol; when the physical card is activated by means of the NFC terminal, an NFC card reader obtaining the standard static data of the physical card by means of the NFC terminal; the NFC card reader obtaining additional static data and/or dynamic data of the physical card by means of the NFC terminal and the NFC extension device; or the NFC card reader obtaining the additional static data of the physical card by means of the NFC terminal; and the NFC card reader managing the physical card by means of the standard static data and/or additional static data and /or dynamic data of the physical card.

Description

扩展NFC卡模拟功能的方法、NFC扩展设备和NFC终端Method for extending NFC card simulation function, NFC extension device and NFC terminal
交叉引用cross reference
本申请基于申请号为“202111172375.2”、申请日为2021年10月08日的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此以引入方式并入本申请。This application is based on the Chinese patent application with the application number "202111172375.2" and the filing date is October 8, 2021, and claims the priority of the Chinese patent application. The entire content of the Chinese patent application is hereby incorporated by reference. Apply.
技术领域technical field
本申请涉及近场通讯(Near Field Communication,NFC)领域,尤其涉及一种扩展NFC卡模拟功能的方法、NFC扩展设备和NFC终端。This application relates to the field of near field communication (Near Field Communication, NFC), in particular to a method for expanding the simulation function of an NFC card, an NFC extension device and an NFC terminal.
背景技术Background technique
交通票务、访问管理、忠诚度管理以及更多的系统在其基础设施中使用符合ISO/IEC 14443标准的非接触卡。终端的设计通常是为了操作一系列确定的卡片,持有特定的应用,这也被称为封闭式系统方法。终端客户正在为他们钱包里的大量不同的卡而苦恼,这些卡都承载着单一的应用。因此,有一个强烈的趋势,需要能够承载多种应用的装置或者方法。Transportation ticketing, access management, loyalty management and many more systems use ISO/IEC 14443 compliant contactless cards in their infrastructure. Terminals are usually designed to operate a defined set of cards, holding specific applications, this is also known as a closed system approach. End customers are struggling with a large number of different cards in their wallets, all carrying a single application. Therefore, there is a strong trend to require devices or methods capable of carrying multiple applications.
NFC终端(例如手机、平板电脑、具备无线通信功能的可穿戴电子设备等)是指带有NFC硬件的移动设备。NFC终端可以支持很多相应的应用程序。目前,很多实体卡模拟应用无法被NFC手机设备下载复制,主要出于安全因素和系统兼容问题的考虑。比如,社保卡和身份证卡等尚且无法在手机端实现卡模拟,其他的一些高级加密标准(Advanced Encryption Standard,AES)加密卡也无法被破解复制。部分卡由于不兼容NFC forum/EMVco等手机系统的实际应用规范,也无法被NFC终端成功实现卡模拟功能。由于上述种种原因,在实际应用中,实体卡依然无法完全被取代,实际生活中实体卡较多,从卡包中寻卡、取卡等流程浪费时间,降低效率,此外,因为寻卡、取卡等流程的存在以及目标用户刷卡后忘记取卡等情况的存在也增加了实体卡丢失的风险。NFC terminals (such as mobile phones, tablet computers, wearable electronic devices with wireless communication functions, etc.) refer to mobile devices with NFC hardware. NFC terminals can support many corresponding applications. At present, many physical card simulation applications cannot be downloaded and copied by NFC mobile devices, mainly due to security factors and system compatibility issues. For example, social security cards and ID cards cannot be emulated on mobile phones, and some other Advanced Encryption Standard (AES) encryption cards cannot be cracked and copied. Some cards cannot be successfully implemented by NFC terminals because they are not compatible with the actual application specifications of mobile phone systems such as NFC forum/EMVco. Due to the above-mentioned reasons, in practical applications, physical cards still cannot be completely replaced. In real life, there are many physical cards. The existence of card and other processes and the existence of situations such as the target user forgets to take the card after swiping the card also increase the risk of losing the physical card.
发明内容Contents of the invention
本申请第一方面提供了一种扩展NFC卡模拟功能的方法,NFC终端通过NFC扩展设备实现实体卡的模拟,NFC读卡器从该NFC终端获得该实体卡的标准静态数据和/或额外静态数据和/或动态数据,该方法具体包括:The first aspect of the present application provides a method for extending the NFC card simulation function. The NFC terminal realizes the simulation of the physical card through the NFC expansion device, and the NFC card reader obtains the standard static data and/or additional static data of the physical card from the NFC terminal. data and/or dynamic data, the method specifically includes:
该NFC终端通过该NFC扩展设备获得该实体卡的该标准静态数据,该NFC扩展设备与该实体卡之间基于第一通信协议通信,该NFC终端与该NFC扩展设备基于第二通信协议通信;The NFC terminal obtains the standard static data of the entity card through the NFC extension device, the NFC extension device communicates with the entity card based on a first communication protocol, and the NFC terminal communicates with the NFC extension device based on a second communication protocol;
当该实体卡通过该NFC终端被激活,该NFC读卡器通过该NFC终端获得该实体卡的标准静态数据;When the physical card is activated through the NFC terminal, the NFC card reader obtains the standard static data of the physical card through the NFC terminal;
该NFC读卡器通过该NFC终端和该NFC扩展设备获得该实体卡的额外静态数据和/或动态数据;或者该NFC读卡器通过该NFC终端获得该实体卡的额外静态数据;以及The NFC card reader obtains the additional static data and/or dynamic data of the entity card through the NFC terminal and the NFC extension device; or the NFC card reader obtains the additional static data of the entity card through the NFC terminal; and
该NFC读卡器通过该实体卡的标准静态数据和/或额外静态数据和/或动态数据对该实体卡进行管理。The NFC card reader manages the physical card through standard static data and/or additional static data and/or dynamic data of the physical card.
本申请实施例的第二方面提供一种应用于NFC终端的方法,一种NFC卡模拟的方法,NFC终端通过NFC扩展设备实现实体卡的模拟,该方法包括:The second aspect of the embodiment of the present application provides a method applied to an NFC terminal, a method of NFC card simulation, the NFC terminal realizes the simulation of a physical card through an NFC expansion device, and the method includes:
该NFC终端通过该NFC扩展设备获得该实体卡的标准静态数据,该NFC扩展设备与该实体卡之间基于第一通信协议通信,该NFC终端与该NFC扩展设备基于第二通信协议通信;The NFC terminal obtains standard static data of the entity card through the NFC extension device, the NFC extension device communicates with the entity card based on a first communication protocol, and the NFC terminal communicates with the NFC extension device based on a second communication protocol;
根据该实体卡的标准静态数据,在NFC终端上生成模拟卡与该实体卡的映射关系。According to the standard static data of the physical card, a mapping relationship between the simulated card and the physical card is generated on the NFC terminal.
第三方面,本申请实施例提供了一种应用于NFC扩展设备的NFC卡模拟的方法,该方法用于通过NFC扩展设备实现实体卡在NFC终端的卡模拟,该NFC扩展设备与该实体卡之间基于第一通信协议通信,该NFC终端与该NFC扩展设备基于第二通信协议通信,该方法包括:In the third aspect, the embodiment of the present application provides a method for emulating an NFC card applied to an NFC extension device, the method is used to realize the card emulation of an entity card in an NFC terminal through an NFC extension device, and the NFC extension device is connected to the entity card Communication based on the first communication protocol, the NFC terminal and the NFC extension device communicate based on the second communication protocol, the method includes:
该NFC扩展设备接收该NFC终端发送的用于获取该实体卡的标准静态数据的寻卡命令;The NFC extension device receives a card search command sent by the NFC terminal for obtaining standard static data of the entity card;
该NFC扩展设备将该寻卡命令发送给该实体卡;The NFC extension device sends the card search command to the physical card;
该NFC扩展设备接收该实体卡返回的标准静态数据,并发送给该NFC终端,使得该NFC终端根据该实体卡的标准静态数据,在该NFC终端上生成模拟卡与该实体卡的映射关系。The NFC extension device receives the standard static data returned by the physical card and sends it to the NFC terminal, so that the NFC terminal generates a mapping relationship between the simulated card and the physical card on the NFC terminal according to the standard static data of the physical card.
第四方面,本申请实施例提供了一种终端,该NFC终端支持第一通信协议和第二通信协议,该NFC终端包括:存储器、支持第一通信协议和第二通信协议的芯片以及一个或多个处理器;该存储器与该一个或多个处理器耦合,该存储器用于存储计算机程序代码,该计算机程序代码包括计算机指令,该一个或多个处理器调用该计算机指令以使得该NFC终端执行:In a fourth aspect, an embodiment of the present application provides a terminal, the NFC terminal supports the first communication protocol and the second communication protocol, and the NFC terminal includes: a memory, a chip supporting the first communication protocol and the second communication protocol, and one or A plurality of processors; the memory is coupled with the one or more processors, the memory is used to store computer program codes, the computer program codes include computer instructions, and the one or more processors call the computer instructions to make the NFC terminal implement:
通过NFC扩展设备获得该实体卡的标准静态数据,该NFC扩展设备与该实体卡之间基于第一通信协议通信,该NFC终端与该NFC扩展设备基于第二通信协议通信;The standard static data of the entity card is obtained through the NFC extension device, the NFC extension device communicates with the entity card based on a first communication protocol, and the NFC terminal communicates with the NFC extension device based on a second communication protocol;
根据该实体卡的标准静态数据,在NFC终端上生成模拟卡与该实体卡的映射关系。According to the standard static data of the physical card, a mapping relationship between the simulated card and the physical card is generated on the NFC terminal.
第五方面,本申请提供一种NFC扩展设备,该NFC扩展设备用于同NFC终端以及实体卡通信,包括:处理器、应用模块、操作系统模块、传输模块和射频识别模块,其中,In a fifth aspect, the present application provides an NFC extension device, which is used for communicating with an NFC terminal and a physical card, including: a processor, an application module, an operating system module, a transmission module, and a radio frequency identification module, wherein,
该传输模块用于与NFC终端基于第二通信协议通信,接收该NFC终端发送的用于获取该实体卡的标准静态数据的寻卡命令,将该寻卡命令发送给该实体卡,将该标准静态数据基于第二通信协议发送给该NFC终端,使得该NFC终端根据该实体卡的标准静态数据,在该NFC终端上生成模拟卡与该实体卡的映射关系;The transmission module is used for communicating with the NFC terminal based on the second communication protocol, receiving a card search command sent by the NFC terminal for obtaining standard static data of the entity card, sending the card search command to the entity card, and receiving the standard static data of the entity card. The static data is sent to the NFC terminal based on the second communication protocol, so that the NFC terminal generates a mapping relationship between the analog card and the physical card on the NFC terminal according to the standard static data of the physical card;
该射频识别模块用于与该实体卡基于第一通信协议通信;接收该实体卡返回的标准静态数据。The radio frequency identification module is used for communicating with the entity card based on the first communication protocol; receiving standard static data returned by the entity card.
附图说明Description of drawings
一个或多个实施例通过与之对应的附图中的图片进行示例性说明,这些示例性说明并不构成对实施例的限定,附图中具有相同参考数字标号的元器件表示为基本相同的元器件。除非有特别申明,附图中的图不构成比例限制。One or more embodiments are exemplified by the pictures in the corresponding drawings, these exemplifications do not constitute a limitation to the embodiments, and components with the same reference numerals in the drawings represent substantially the same components. Unless otherwise stated, the drawings in the drawings are not limited to scale.
图1本申请实施例提供的一种扩展NFC卡模拟功能的方法的流程示意图;A schematic flow diagram of a method for extending the NFC card simulation function provided by the embodiment of the present application in Fig. 1;
图2为申请实施例提供的一种NFC终端的图形用户界面示意图;FIG. 2 is a schematic diagram of a graphical user interface of an NFC terminal provided in an embodiment of the application;
图3所示为NFC终端通过NFC扩展设备获得实体卡的标准静态数据的方法流程图;Fig. 3 shows the flow chart of the method for the NFC terminal to obtain the standard static data of the physical card through the NFC extension device;
图4为本申请实施例提供的一种NFC读卡器通过NFC终端和NFC扩展设备获得实体卡的额外静态数据和/或动态数据的示意性交互图;FIG. 4 is a schematic interaction diagram of an NFC card reader obtaining additional static data and/or dynamic data of a physical card through an NFC terminal and an NFC extension device according to an embodiment of the present application;
图5为本申请实施例提供的一种得到额外静态数据的流程示意图;FIG. 5 is a schematic flow diagram of obtaining additional static data provided by the embodiment of the present application;
图6为本申请实施例提供的一种对读写请求处理逻辑的流程示意图;FIG. 6 is a schematic flowchart of a logic for processing read and write requests provided by an embodiment of the present application;
图7为本申请实施例提供的一种处理通信超时问题的方法流程图;FIG. 7 is a flow chart of a method for dealing with a communication timeout problem provided by an embodiment of the present application;
图8为本申请实施例提供的一种分阶段的示意性交互图;FIG. 8 is a schematic interaction diagram of stages provided by the embodiment of the present application;
图9为本申请实施例提供的一种NFC终端的硬件结构示意图;FIG. 9 is a schematic diagram of a hardware structure of an NFC terminal provided in an embodiment of the present application;
图10为本申请实施例提供的一种NFC扩展设备的硬件结构示意图;FIG. 10 is a schematic diagram of a hardware structure of an NFC extension device provided in an embodiment of the present application;
图11为本申请实施例提供的一种产品形态示意图一;Figure 11 is a schematic diagram of a product form provided by the embodiment of the present application;
图12为本申请实施例提供的一种产品形态示意图二;Figure 12 is a second schematic diagram of a product form provided by the embodiment of the present application;
图13为本申请实施例提供的一种产品形态示意图三。Fig. 13 is a third schematic diagram of a product form provided by the embodiment of the present application.
具体实施方式Detailed ways
下面将结合附图对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请的一部分实施例,而不是全部的实施例。The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings. Apparently, the described embodiments are part of the embodiments of the present application, but not all of the embodiments.
本申请实施例提供了一种扩展NFC卡模拟功能的方法、NFC扩展设备和NFC终端,用于解决当前由于存在加密卡等无法被模拟的卡,目标用户需要反复寻卡、取卡导致卡丢失风险增加的问题,即本申请实施例可以扩展NFC卡模拟功能。所述技术方案如下:The embodiment of the present application provides a method for expanding the NFC card simulation function, an NFC expansion device and an NFC terminal, which are used to solve the problem that the target user needs to repeatedly search for and take out the card and cause the card to be lost due to the presence of encrypted cards and other cards that cannot be simulated. The problem of increased risk, that is, the embodiment of the present application can expand the NFC card simulation function. Described technical scheme is as follows:
通过NFC扩展设备同实体卡和NFC终端之间进行通信,可以使得目标用户在不用取出无法被NFC终端模拟的实体卡的情况下即可实现刷卡操作,目标用户通过NFC终端实现选卡,贴近NFC读卡器即可实现该实体卡刷卡,提高了刷卡效率,并且降低了目标用户寻卡、取卡所导致的卡丢失的风险。此外,目标用户可以将NFC扩展设备放入钱包或者行李箱等里面,在刷卡时不用经常将此NFC扩展设备拿出来,增大了安全性和便利性。在目标用户拥有多张无法被NFC终端模拟的卡片的情况下,目标用户可以将这些卡片同时和NFC扩展 设备放在一处,并通过NFC终端选卡,使得卡片易于管理。此外,本方案可以辅助NFC卡模拟扩展操作,扩大了NFC终端卡模拟功能的范围。Through the communication between the NFC expansion device and the physical card and the NFC terminal, the target user can realize the card swiping operation without taking out the physical card that cannot be simulated by the NFC terminal. The target user selects the card through the NFC terminal and is close to the NFC The card reader can realize the physical card swiping, which improves the efficiency of swiping the card and reduces the risk of card loss caused by the target user looking for and taking the card. In addition, the target user can put the NFC extension device into the wallet or luggage, etc., and does not need to take out the NFC extension device frequently when swiping the card, which increases safety and convenience. In the case that the target user has multiple cards that cannot be simulated by the NFC terminal, the target user can put these cards together with the NFC expansion device at the same time, and select the card through the NFC terminal, making the card easy to manage. In addition, this solution can assist the NFC card simulation expansion operation, expanding the scope of the NFC terminal card simulation function.
本申请使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本申请。在本申请和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。The terminology used herein is for the purpose of describing particular embodiments only and is not intended to limit the application. As used in this application and the appended claims, the singular forms "a", "the", and "the" are intended to include the plural forms as well, unless the context clearly dictates otherwise.
本申请中,“上”、“下”、“前”、“后”等方位术语是相对于附图中的部件示意置放的方位来定义的,应当理解到,这些方向性术语是相对的概念,它们用于相对于的描述和澄清,其可以根据附图中部件所放置的方位的变化而相应地发生变化。In this application, directional terms such as "upper", "lower", "front", and "rear" are defined relative to the schematic placement of components in the drawings, and it should be understood that these directional terms are relative Concepts, which are used for description and clarification relative to one another, may change accordingly according to changes in the orientation of parts in the drawings.
另外,除非在本申请的上下文中清楚地说明了指定的顺序,否则可与指定的顺序不同地执行在此描述的处理步骤,即,可以以指定的顺序执行每个步骤、基本上同时执行每个步骤、以相反的顺序执行每个步骤或者以不同的顺序执行每个步骤。In addition, unless the specified order is clearly stated in the context of the application, the processing steps described herein may be performed out of the specified order, that is, each step may be performed in the specified order, substantially simultaneously. steps, perform each step in reverse order, or perform each step in a different order.
下面,对本申请涉及的基本概念进行解释。需要说明的是,这些解释是为了让本申请实施例更容易被理解,而不应该视为对本申请实施例所要求的保护范围的限定。Below, the basic concepts involved in this application are explained. It should be noted that these explanations are for the purpose of making the embodiments of the present application easier to understand, and should not be regarded as limiting the scope of protection required by the embodiments of the present application.
卡模拟(cardemulation,CE)模式,此时NFC终端被模拟成一张非接触卡,如门禁卡、银行卡、交通卡、优惠券、身份证等。卡模拟模式主要用于商场、交通等非接触移动支付场景中。Card emulation (cardemulation, CE) mode, at this time the NFC terminal is simulated as a contactless card, such as access control card, bank card, transportation card, coupon, ID card, etc. The card simulation mode is mainly used in contactless mobile payment scenarios such as shopping malls and transportation.
NFC控制器,NFC控制器(near field communication controller,NFCC)负责通过射频(radio frequency,RF)接口和天线进行数据的物理传输,以实现NFC终端与对端设备的通信。也就是说,NFC终端与对端设备的通信需要通过NFC控制器实现。The NFC controller, the NFC controller (near field communication controller, NFCC) is responsible for the physical transmission of data through the radio frequency (radio frequency, RF) interface and antenna, so as to realize the communication between the NFC terminal and the peer device. That is to say, the communication between the NFC terminal and the peer device needs to be realized through the NFC controller.
在NFC终端中,NFCC对应的硬件实体通常是NFC芯片。In an NFC terminal, the hardware entity corresponding to NFCC is usually an NFC chip.
NFCC是在NFC论坛(NFC Forum)制定的NFC控制接口(NFC controller interface,NCI)规范中使用的术语,它可以对应欧洲电信标准协会(european telecommunication standards institute,ETSI)制定的主机控制接口(host controller interface,HCI)规范中的非接触前端(contactless front-end,CLF)。NFCC is a term used in the NFC control interface (NFC controller interface, NCI) specification developed by the NFC Forum (NFC Forum), which can correspond to the host control interface (host controller) developed by the European Telecommunications Standards Institute (ETSI). interface (HCI) specification in the contactless front-end (contactless front-end, CLF).
NFCEE,NFCEE是为第一终端上的NFC应用(如银行卡、公交卡等各种卡模拟应用)提供安全的执行环境的实体。NFCEE是NFCForum制定的NCI规范中使用的术语,它可以对应ETSI制定的HCI规范中的通用集成电路卡(UniversalIntegratedCircuitCard,UICC)、嵌入式安全单元(EmbeddedSecureElement,eSE)、安全数码内存卡(SecureDigitalMemoryCard,SD卡)等;还可以对应GP制定的规范中的安全单元(Secure Element,SE),或者卡模拟环境(Card Emulation Environment,CEE)。其中一种特别的NFCEE为DH NFCEE,是与DH直接相连或者在DH内的NFCEE。也就是说,NFCEE或SE的物理载体可以是eSE、UICC、SD卡等。此外,上述第一终端上的NFC应用还可以是如名片分享等点对点应用以及如银行POS、公交POS等读卡器应用,目标用户可通过某种方式(如手机应用市场等)在第一终端上下载与安装这些NFC应用,当然,这些应用也可以在手机出厂时预置到手机的eSE中或者在UICC卡出厂时预置到UICC中等等。NFCEE, NFCEE is an entity that provides a secure execution environment for NFC applications (such as various card simulation applications such as bank cards and bus cards) on the first terminal. NFCEE is a term used in the NCI specification formulated by NFCForum. It can correspond to the Universal Integrated Circuit Card (Universal Integrated Circuit Card, UICC), Embedded Secure Element (Embedded Secure Element, eSE) and Secure Digital Memory Card (Secure Digital Memory Card, SD) in the HCI specification formulated by ETSI. Card), etc.; it can also correspond to the Security Element (Secure Element, SE) in the specifications formulated by GP, or the Card Emulation Environment (CEE). One of the special NFCEEs is DH NFCEE, which is an NFCEE directly connected to DH or within DH. That is to say, the physical carrier of NFCEE or SE can be eSE, UICC, SD card, etc. In addition, the NFC application on the above-mentioned first terminal can also be point-to-point applications such as business card sharing and card reader applications such as bank POS and bus POS. Download and install these NFC applications. Of course, these applications can also be preset in the eSE of the mobile phone when the mobile phone leaves the factory or in the UICC when the UICC card leaves the factory.
射频识别技术(Radio Frequency Identification,RFID),是自动识别技术的一种,通过无线射频方式进行非接触双向数据通信,利用无线射频方式对记录媒体(电子标签或射频卡)进行读写,从而达到识别目标和数据交换的目的。Radio frequency identification technology (Radio Frequency Identification, RFID) is a kind of automatic identification technology. It performs non-contact two-way data communication through radio frequency, and uses radio frequency to read and write recording media (electronic tags or radio frequency cards), so as to achieve Identify the target and purpose of the data exchange.
NFC终端,NFC终端可以广泛地应用在门禁、公交车、手机支付、智能海报、数据传输等领域。本申请实施例的NFC设备可以为配置有近场通信功能(即支持NFC通信标准和/或RFID通信标准)的各种设备,包括但不限于:(1)移动通信设备:这类设备的特点是具备移动通信功能,并且以提供话音、数据通信为主要目标。这类终端包括:智能手机(例如iPhone)、多媒体手机、功能性手机,以及低端手机等。(2)超移动个人计算机设备:这类设备属于个人计算机的范畴,有计算和处理功能,一般也具备移动上网特性。这类终端包括:PDA、MID和UMPC设备等,例如iPad。(3)便携式娱乐设备:这类设备可以显示和播放多媒体内容。该类设备包括:音频、视频播放器(例如iPod),掌上游戏机,电子书,以及智能玩具和便携式车载导航设备。(4)其他具有数据交互功能的电子设备。具体的,可通过手机终端内含有的NFC控制器和安全元件单元,配合软件系统,实现对银行卡、公交卡、门禁卡等非接触智能卡的模拟。NFC终端还可以实现为物联网(Internetofthings,IOT)设备。NFC terminal, NFC terminal can be widely used in access control, bus, mobile payment, smart poster, data transmission and other fields. The NFC device in the embodiment of the present application may be various devices configured with a near field communication function (i.e. supporting NFC communication standards and/or RFID communication standards), including but not limited to: (1) Mobile communication devices: characteristics of such devices It has the function of mobile communication, and its main goal is to provide voice and data communication. Such terminals include: smart phones (such as iPhone), multimedia phones, feature phones, and low-end phones. (2) Ultra-mobile personal computer equipment: This type of equipment belongs to the category of personal computers, with computing and processing functions, and generally also has the characteristics of mobile Internet access. Such terminals include: PDA, MID and UMPC equipment, such as iPad. (3) Portable entertainment equipment: This type of equipment can display and play multimedia content. Such devices include: audio and video players (such as iPod), handheld game consoles, e-books, as well as smart toys and portable car navigation devices. (4) Other electronic devices with data interaction functions. Specifically, the simulation of non-contact smart cards such as bank cards, bus cards, and access control cards can be realized through the NFC controller and secure element unit contained in the mobile terminal, in conjunction with the software system. The NFC terminal can also be implemented as an Internet of Things (Internet of Things, IOT) device.
NFC读卡器,在本申请中,NFC读卡器的表现形态为支持NFC协议的POS机,或者为支持RFID通信协议的设备。NFC card reader. In this application, the NFC card reader is a POS machine supporting the NFC protocol, or a device supporting the RFID communication protocol.
POS机,本申请实施例中的POS可以理解为支持NFC的POS。示例性地,本申请实施例中的POS包括但不限于银行POS机、公交POS机、门禁POS机。POS是一种多功能终端,在特约商户或受理网点安装的POS与计算机联成网络,通过POS与NFC设备进行通信可以实现消费、预授权、余额查询和转账等功能。POS machine, the POS in the embodiment of the present application can be understood as a POS that supports NFC. Exemplarily, the POS in this embodiment of the application includes but is not limited to bank POS machines, bus POS machines, and access control POS machines. POS is a multi-functional terminal. The POS installed at the designated merchant or the acceptance outlet is connected to a computer to form a network. Through the communication between the POS and the NFC device, functions such as consumption, pre-authorization, balance inquiry and transfer can be realized.
NFC规范,为了更好地实现上述功能和场景,NFCforum制定了多种NFC规范。其中,Digital规范规定了NFC-A、NFC-B和NFC-F三种技术的编码格式、调制方式、传输速率、帧格式、传输协议和命令集。NFC读写器向NFC标签发送携带有信息的射频电磁场,NFC标签对射频电磁场进行负载调制,以向NFC读写器发送数据。在本申请中,实体卡的NFC技术的Frame,可以理解为NFC-A、NFC-B和NFC-F三种技术的编码格式、调制方式、传输速率、帧格式、传输协议和命令集。NFC specification, in order to better realize the above functions and scenarios, NFCforum has developed a variety of NFC specifications. Among them, the Digital specification stipulates the encoding format, modulation mode, transmission rate, frame format, transmission protocol and command set of the three technologies of NFC-A, NFC-B and NFC-F. The NFC reader sends a radio frequency electromagnetic field carrying information to the NFC tag, and the NFC tag performs load modulation on the radio frequency electromagnetic field to send data to the NFC reader. In this application, the frame of the NFC technology of the physical card can be understood as the encoding format, modulation method, transmission rate, frame format, transmission protocol and command set of the three technologies of NFC-A, NFC-B and NFC-F.
当NFC设备处于卡模拟工作模式时,通常存在两种移动支付方式:基于SE的移动支付和基于HCE的移动支付。When the NFC device is in the card simulation mode, there are generally two mobile payment methods: SE-based mobile payment and HCE-based mobile payment.
1、基于SE的移动支付,基于SE的移动支付方式可参考图1,此时NFC应用保存在SE中,因而NFC应用的信息与操作系统(operatingsystem,OS)隔离。NFC控制器在接收到NFC读卡器(POS)发送的业务指令后将业务指令路由至SE,由SE中保存的相应NFC应用执行移动支付交易。1. SE-based mobile payment. For the SE-based mobile payment method, refer to FIG. 1. At this time, the NFC application is stored in the SE, so the information of the NFC application is isolated from the operating system (OS). After receiving the business command sent by the NFC card reader (POS), the NFC controller routes the business command to the SE, and the corresponding NFC application stored in the SE executes the mobile payment transaction.
2、基于HCE的移动支付,为绕开卡片发行方的制约,满足快速部署NFC应用的需求,出现了基于HCE的移动支付技术。此时NFC应用保存在可信执行环境(trustedexecutionenvironments,TEE)或富执行环境(richexecutionenvironments,REE)等中。基于HCE的移动支付技术可以在不需要SE的情况下,由NFC控制器将NFC读卡器(POS)发送的业务指令路由至应用处理器(applicationprocessor,AP)等具有计算处理能力的芯片,并由操作系统通知到NFC应用。与基于SE的移动支付方式相比,基于HCE的移动支付可以使得NFC设备中的任何应用程序都可以模拟成一张非接触卡来与NFC读卡器(POS)直接通信。2. HCE-based mobile payment. In order to bypass the constraints of card issuers and meet the needs of rapid deployment of NFC applications, HCE-based mobile payment technology has emerged. At this time, the NFC application is stored in a trusted execution environment (trusted execution environment, TEE) or a rich execution environment (rich execution environment, REE). The HCE-based mobile payment technology can route the business instructions sent by the NFC card reader (POS) to a chip with computing processing capabilities such as an application processor (application processor, AP) by the NFC controller without the need for SE, and Notified by the operating system to the NFC application. Compared with the SE-based mobile payment method, the HCE-based mobile payment can enable any application in the NFC device to simulate a contactless card to communicate directly with the NFC card reader (POS).
ISO-DEP:ISO-DEP即ISO 14443 Data Exchange Protocol,是ISO 14443-4中定义的传输协议,用于类型4A和4B标签平台完成设备激活后,数据交互通过ISO-DEP协议传输。ISO-DEP: ISO-DEP is ISO 14443 Data Exchange Protocol, which is a transmission protocol defined in ISO 14443-4. It is used for data interaction through the ISO-DEP protocol after the type 4A and 4B label platforms complete device activation.
透传:透明传输(pass-through),指的是在通讯中不管传输的业务内容如何,只负责将传输的内容由源地址传输到目的地址,而不对业务数据内容做任何改变。Transparent transmission: transparent transmission (pass-through), refers to the transmission of the content from the source address to the destination address regardless of the business content transmitted during the communication, without making any changes to the content of the business data.
标准静态数据:如UID(User Identification)、协议类型、交互协商参数等,用来标志、区分实体卡,可以生成实体卡和模拟卡的对应关系。Standard static data: such as UID (User Identification), protocol type, interactive negotiation parameters, etc., are used to mark and distinguish physical cards, and can generate the corresponding relationship between physical cards and simulated cards.
额外静态数据:在刷卡过程中,不会发生变化的数据。包括:1、实体卡的固有信息,但不用作标记实体卡,以身份证为例,用户的照片、姓名等;2、静态密钥所对应的密文数据信息,一般和安全认证相关。额外静态数据与标准静态数据的区别在于获取的时间,标准静态数据一般在卡模拟(复制)阶段即可被NFC终端读取并存储,而额外静态数据一般要在NFC读卡器和实体卡的数据交互阶段得到。此外,在数据交互阶段,额外静态数据一般需要两次及以上才能获得。Additional static data: Data that will not change during the card swiping process. Including: 1. The inherent information of the physical card, but not used to mark the physical card. Take the ID card as an example, the user's photo, name, etc.; 2. The ciphertext data information corresponding to the static key, which is generally related to security authentication. The difference between additional static data and standard static data lies in the acquisition time. Standard static data can generally be read and stored by NFC terminals during the card simulation (copy) stage, while additional static data generally needs to be stored in NFC readers and physical cards. Obtained in the data interaction phase. In addition, in the data interaction stage, it generally takes two or more times to obtain additional static data.
动态数据:在刷卡过程中会发生变化的数据,比如动态密钥所对应的信息,一般和安全认证相关,是用来认证的数据信息;例如,用于使得NFC读卡器和实体卡之间相互认证,来确认实体卡是否为真实有效的卡片以及NFC读卡器是否有合法的读写权限,动态数据的表现方式之一为随机数,但不限于此。此外,实体卡的金融相关信息,比如卡余额的信息,由于卡余额信息会随着目标用户刷卡而发生变动,所以,卡余额信息属于动态数据。Dynamic data: data that will change during the card swiping process, such as the information corresponding to the dynamic key, which is generally related to security authentication and is used for authentication; for example, it is used to make the connection between the NFC card reader and the physical card Mutual authentication to confirm whether the physical card is a real and valid card and whether the NFC card reader has legal read and write permissions. One of the ways of expressing dynamic data is random numbers, but not limited to this. In addition, the financial related information of the physical card, such as the card balance information, because the card balance information will change as the target user swipes the card, so the card balance information is dynamic data.
智能选卡策略:根据系统收集的多方位信息智能选调出所需NFC模拟卡而无需人工手动选卡的操作,比如,将不同的地理位置信息和不同的卡片关联,当用户进入不同感知区域后,系统据定位及多方位传感器信息运动数据,预先为用户选卡并切换成关联该位置的卡片等操作;或者,将不同的时间信息和不同的卡片关联,当处在不同的时间区间范围时,系统根据时间,及多方位传感器信息运动数据,预先为用户选卡并切换成关联该位置的卡片等操作。Smart card selection strategy: intelligently select the required NFC analog cards based on the multi-directional information collected by the system without manual card selection, for example, associating different geographic location information with different cards, when the user enters different sensing areas , the system selects a card for the user in advance and switches to a card associated with the location according to the positioning and multi-directional sensor information movement data; or, associate different time information with different cards, when in different time intervals , the system selects a card for the user in advance and switches to a card associated with the location according to the time and multi-directional sensor information and motion data.
本申请实施例的第一方面提供了一种扩展NFC卡模拟功能的方法,该方法在使得NFC终端通过NFC扩展设备实现实体卡的模拟,NFC读卡器从NFC终 端获得实体卡的标准静态数据、额外静态数据和动态数据。The first aspect of the embodiment of the present application provides a method for extending the NFC card simulation function, the method enables the NFC terminal to realize the simulation of the physical card through the NFC expansion device, and the NFC card reader obtains the standard static data of the physical card from the NFC terminal , additional static data, and dynamic data.
图1为本申请实施例提供的一种扩展NFC卡模拟功能的方法的流程示意图。具体而言,如下:FIG. 1 is a schematic flow chart of a method for expanding the simulation function of an NFC card provided by an embodiment of the present application. Specifically, as follows:
S101:NFC终端通过NFC扩展设备获得实体卡的标准静态数据,NFC扩展设备与实体卡之间基于第一通信协议通信,NFC终端与NFC扩展设备基于第二通信协议通信。具体地,在该步骤中,NFC扩展设备和实体卡之间的协议为近场通信协议,包括:NFC协议或RFID协议。NFC扩展设备和NFC终端之间的协议为无线通信协议,包括:蓝牙协议、WiFi协议、3G协议、4G协议或5G协议。可以理解,NFC终端与NFC扩展设备之间的通信协议支持NFC终端和NFC扩展设备在数米至数千米的范围内进行通信。NFC终端通过NFC扩展设备获得实体卡的标准静态数据用于将实体卡模拟进NFC终端,实体卡完成卡模拟后,目标用户可以在NFC终端上执行刷卡操作。S101: The NFC terminal obtains standard static data of the physical card through the NFC extension device, the NFC extension device communicates with the physical card based on a first communication protocol, and the NFC terminal communicates with the NFC extension device based on a second communication protocol. Specifically, in this step, the protocol between the NFC extension device and the physical card is a near field communication protocol, including: NFC protocol or RFID protocol. The protocol between the NFC extension device and the NFC terminal is a wireless communication protocol, including: Bluetooth protocol, WiFi protocol, 3G protocol, 4G protocol or 5G protocol. It can be understood that the communication protocol between the NFC terminal and the NFC extension device supports communication between the NFC terminal and the NFC extension device within a range of several meters to thousands of meters. The NFC terminal obtains the standard static data of the physical card through the NFC extension device to simulate the physical card into the NFC terminal. After the physical card completes the card simulation, the target user can perform card swiping operations on the NFC terminal.
S102:当实体卡通过NFC终端被激活,NFC读卡器通过NFC终端获得实体卡的标准静态数据。具体地,在该步骤中,由于实体卡已经在步骤S101中模拟进NFC终端,因此,目标用户可以在NFC终端上执行选卡操作,该操作激活实体卡。应理解,NFC终端也可以基于智能选卡策略激活目标用户所需的实体卡,无需目标用户执行选卡操作。特定实体卡被激活后,NFC终端触碰或靠近NFC读卡器,使得NFC终端与NFC读卡器在有效通信范围(例如0-40cm)内。此时,NFC读卡器作为发起方,产生射频场,NFC终端作为接收方,一般处于侦听模式,并从射频场中获取能量,NFC读卡器选择传输速率进行数据传输,NFC终端通过负载调制,以相同的传输速率进行数据应答,向NFC读卡器发送实体卡的标准静态数据。S102: When the physical card is activated through the NFC terminal, the NFC card reader obtains standard static data of the physical card through the NFC terminal. Specifically, in this step, since the physical card has been emulated into the NFC terminal in step S101, the target user can perform a card selection operation on the NFC terminal, which activates the physical card. It should be understood that the NFC terminal may also activate the physical card required by the target user based on the smart card selection policy, without the target user performing a card selection operation. After the specific physical card is activated, the NFC terminal touches or approaches the NFC card reader, so that the NFC terminal and the NFC card reader are within the effective communication range (for example, 0-40cm). At this time, the NFC card reader acts as the initiator, generating a radio frequency field, and the NFC terminal, as the receiver, is generally in listening mode and obtains energy from the radio frequency field. The NFC card reader selects the transmission rate for data transmission, and the NFC terminal passes the load Modulation, data response at the same transmission rate, sending the standard static data of the physical card to the NFC reader.
S103:NFC读卡器通过NFC终端和NFC扩展设备获得实体卡的额外静态数据和/或动态数据;或者NFC读卡器通过NFC终端获得实体卡的额外静态数据。具体地,在该步骤中,对于NFC读卡器发送的读写请求有两种处理逻辑,一种逻辑是,对于NFC读卡器发送的读写请求可以通过NFC扩展设备透传给实体卡,用以获得实体卡的额外静态数据和/或动态数据;另一种逻辑是,对于NFC读卡器发送的读写请求,如果该读写请求是要获取实体卡的额外静态数据,可以由NFC终端直接返回额外静态数据,而不需要透传至实体卡。S103: The NFC card reader obtains the additional static data and/or dynamic data of the physical card through the NFC terminal and the NFC extension device; or the NFC card reader obtains the additional static data of the physical card through the NFC terminal. Specifically, in this step, there are two processing logics for the read and write requests sent by the NFC card reader. One logic is that the read and write requests sent by the NFC card reader can be transparently transmitted to the physical card through the NFC extension device, It is used to obtain additional static data and/or dynamic data of the physical card; another logic is that for the read and write request sent by the NFC card reader, if the read and write request is to obtain the additional static data of the physical card, it can be sent by NFC The terminal directly returns additional static data without transparent transmission to the physical card.
S104:NFC读卡器通过实体卡的标准静态数据和/或额外静态数据和/或动态数据对实体卡进行管理。具体地,对实体卡进行管理是指例如:获取实体卡中目标用户的信息(如目标用户的姓名、年龄、照片等信息)、进行安全认证,比如NFC读卡器和实体卡之间进行安全认证,以确认实体卡为目标用户所需的目标实体卡、此外还可以获取实体卡的金融信息,比如卡余额等、此外,金融支付也是对实体卡进行管理的一种表现形式。S104: The NFC card reader manages the physical card through standard static data and/or additional static data and/or dynamic data of the physical card. Specifically, managing the physical card refers to, for example: obtaining the information of the target user in the physical card (such as the target user's name, age, photo, etc.), performing security authentication, such as performing security verification between the NFC card reader and the physical card. Authentication, to confirm that the physical card is the target physical card required by the target user. In addition, the financial information of the physical card, such as the card balance, etc. can be obtained. In addition, financial payment is also a form of management of the physical card.
不同于现有技术,本申请实施例可以通过NFC扩展设备获取实体卡的标准静态信息以执行卡模拟操作,也可以通过NFC终端实现选卡、刷卡操作,还可以通过NFC扩展设备获取实体卡的动态数据和/额外静态数据,NFC扩展设备与NFC终端基于无线通信协议,与实体卡之间基于近场通信协议,可以实现用户不用取出实体卡(需要将NFC扩展设备和实体卡的组合放在随身携带的钱包、背包、行李箱等中),通过NFC终端即可实现选卡、刷卡。Different from the prior art, the embodiment of the present application can obtain the standard static information of the physical card through the NFC expansion device to perform the card simulation operation, can also realize the card selection and swiping operation through the NFC terminal, and can also obtain the physical card information through the NFC expansion device. For dynamic data and/or additional static data, the NFC extension device and the NFC terminal are based on the wireless communication protocol, and the physical card is based on the near-field communication protocol, so that the user does not need to take out the physical card (the combination of the NFC expansion device and the physical card needs to be placed on the Carrying wallets, backpacks, suitcases, etc.), card selection and card swiping can be realized through the NFC terminal.
图2为申请实施例提供的一种NFC终端的图形用户界面示意图,如图所示,NFC终端200可以在图形用户界面201上显示实体卡和模拟卡的对应关系,目标用户在NFC终端200的图形用户界面201上可以根据上述对应关系点击所需的实体卡,用以激活所需实体卡。2 is a schematic diagram of a graphical user interface of an NFC terminal provided in the embodiment of the application. As shown in the figure, the NFC terminal 200 can display the corresponding relationship between the physical card and the simulated card on the graphical user interface 201, and the target user is on the NFC terminal 200. On the graphical user interface 201, the required physical card can be clicked according to the above corresponding relationship, so as to activate the required physical card.
在另一种可选的实施方式中,NFC终端基于智能选卡策略可以实现自动选卡,无需用户点击NFC终端200,NFC终端基于地理位置信息或时间信息进行自动选卡操作,并且,此种选卡操作的过程中,NFC终端可以处于以下状态:熄屏、亮屏、开机或关机。In another optional implementation manner, the NFC terminal can realize automatic card selection based on a smart card selection strategy, without the need for the user to click on the NFC terminal 200, and the NFC terminal performs an automatic card selection operation based on geographic location information or time information, and such During the card selection operation, the NFC terminal can be in the following states: screen off, screen on, on or off.
图3所示为NFC终端通过NFC扩展设备获得实体卡的标准静态数据的方法流程图。如图所示:Fig. 3 is a flowchart of a method for an NFC terminal to obtain standard static data of a physical card through an NFC extension device. as the picture shows:
S1021:NFC终端发送寻卡命令,用于让NFC扩展设备发送第一寻卡请求;具体地,NFC终端与扩展设备之间基于第二通信协议,例如蓝牙发送寻卡命令,该寻卡命令用于让NFC扩展设备发送第一寻卡请求。优选地,在该实施例中,当NFC扩展设备接收到NFC终端发送的请求时,NFC扩展设备被激活并处于工作状态,当NFC扩展设备没有接收到NFC终端发送的请求超过一定时间后,NFC扩展设备进入低功耗状态,这样可以降低NFC扩展设备的功耗,减少扩展设备发热。S1021: The NFC terminal sends a card search command to allow the NFC extension device to send a first card search request; specifically, the NFC terminal and the extension device send a card search command based on a second communication protocol, such as Bluetooth, and the card search command uses So that the NFC extension device sends the first card-seeking request. Preferably, in this embodiment, when the NFC extension device receives the request sent by the NFC terminal, the NFC extension device is activated and in a working state; when the NFC extension device does not receive the request sent by the NFC terminal for a certain period of time, the NFC The extension device enters a low power consumption state, which can reduce the power consumption of the NFC extension device and reduce the heat generation of the extension device.
S1022:NFC扩展设备向实体卡发送第一寻卡请求,用于获取所述实体卡的标准静态数据。S1022: The NFC extension device sends a first card finding request to the physical card, for obtaining standard static data of the physical card.
S1023:实体卡响应于第一寻卡请求,向NFC扩展设备发送标准静态数据。S1023: The physical card sends standard static data to the NFC extension device in response to the first card finding request.
S1024:NFC扩展设备向NFC终端发送标准静态数据。经过以上步骤,实体卡完成卡模拟,在NFC终端生成与实体卡对应的模拟卡。应理解,标准静态数据可以存储在NFC终端(示例性地,存储器、安全单元(Secure Element,SE)、基于主机的卡模拟应用(Host-based Card Emulation,HCE)、通用集成电路卡(UniversalIntegratedCircuitCard,UICC)中。S1024: The NFC extension device sends standard static data to the NFC terminal. After the above steps, the physical card completes card simulation, and generates a simulated card corresponding to the physical card at the NFC terminal. It should be understood that the standard static data can be stored in the NFC terminal (exemplarily, a memory, a secure element (Secure Element, SE), a host-based card simulation application (Host-based Card Emulation, HCE), a Universal Integrated Circuit Card (Universal Integrated Circuit Card, UICC).
图4为本申请实施例提供的一种NFC读卡器通过NFC终端和NFC扩展设备获得实体卡的额外静态数据和/或动态数据的示意性交互图。如图所示:Fig. 4 is a schematic interaction diagram of an NFC card reader obtaining additional static data and/or dynamic data of a physical card through an NFC terminal and an NFC extension device according to an embodiment of the present application. as the picture shows:
S1031:NFC读卡器向NFC终端发送用以获取实体卡的额外静态数据和/或动态数据的读写请求。读写请求的数量可能为两条以上,本申请实施例对于获取实体卡的额外静态数据和/或动态数据的读写请求的数量不进行具体限制。S1031: The NFC card reader sends to the NFC terminal a read and write request for obtaining additional static data and/or dynamic data of the physical card. The number of read and write requests may be more than two, and the embodiment of the present application does not specifically limit the number of read and write requests for obtaining additional static data and/or dynamic data of the physical card.
S1032:NFC终端将读写请求透传给NFC扩展设备。具体地,NFC终端将读写请求通过数据转发的方式发送给NFC扩展设备。具体地,NFC终端和NFC扩展设备的通信标准可以为蓝牙、低功耗蓝牙(Bluetooth Low Energy,BLE)、WIFI、4G或5G等,本实施例不做具体限制。S1032: The NFC terminal transparently transmits the read and write request to the NFC extension device. Specifically, the NFC terminal sends the read and write request to the NFC extension device through data forwarding. Specifically, the communication standard of the NFC terminal and the NFC extension device may be Bluetooth, Bluetooth Low Energy (Bluetooth Low Energy, BLE), WIFI, 4G or 5G, etc., which are not specifically limited in this embodiment.
S1033:NFC扩展设备将读写请求透传给实体卡。S1033: The NFC extension device transparently transmits the read and write request to the physical card.
S1034:实体卡响应于读写请求,向NFC扩展设备发送读写响应,读写响应包含动态数据和\或所述额外静态数据。具体地,读写响应与读写请求对应,因此根据读写请求的不同,读写响应可能包含以下几种情况:1、仅为动态数据;2、仅为额外静态数据;3、同时具有动态数据和额外静态数据。S1034: In response to the read-write request, the physical card sends a read-write response to the NFC extension device, where the read-write response includes dynamic data and/or the additional static data. Specifically, read and write responses correspond to read and write requests, so according to different read and write requests, read and write responses may include the following situations: 1. Only dynamic data; 2. Only additional static data; 3. Both dynamic data and additional static data.
S1035:NFC扩展设备将读写响应发送给NFC终端。S1035: The NFC extension device sends a read and write response to the NFC terminal.
S1036:NFC终端将读写响应发送到NFC读卡器。应理解,NFC终端将读写响应发送到NFC读卡器,与读卡器通信直到交互成功。S1036: The NFC terminal sends a read-write response to the NFC card reader. It should be understood that the NFC terminal sends the read-write response to the NFC card reader, and communicates with the card reader until the interaction is successful.
图5为本申请实施例提供的一种得到额外静态数据的流程示意图。结合图4,如图所示,在步骤S1035之后,即在NFC扩展设备将读写响应发送给NFC终端之后,NFC终端存储M次读写请求和读写响应。即目标用户每一次刷卡的过程中,NFC终端可以存储一份读写请求和读写响应的记录。FIG. 5 is a schematic flowchart of obtaining additional static data provided by the embodiment of the present application. Referring to FIG. 4, as shown in the figure, after step S1035, that is, after the NFC extension device sends the read-write response to the NFC terminal, the NFC terminal stores M read-write requests and read-write responses. That is, the NFC terminal can store a record of read and write requests and read and write responses every time the target user swipes the card.
当M为小于2的自然数时,即M为0或1时,NFC终端因为没有存储到足够数量的读写请求和读写响应,无法通过算法做计算(比较)得到额外静态数据,因此,NFC终端需要继续在目标用户刷卡的过程中存储读写请求和读写响应。When M is a natural number less than 2, that is, when M is 0 or 1, the NFC terminal cannot calculate (comparison) through the algorithm to obtain additional static data because it does not store a sufficient number of read-write requests and read-write responses. Therefore, NFC The terminal needs to continue to store read and write requests and read and write responses during the target user's card swiping process.
当M为大于等于2的自然数时,此时NFC终端存储了2次以上(包括2次)的读写请求和读写响应。NFC终端遍历读写请求,判断其中是否有相同的读写请求,并且,NFC终端遍历读写响应,若相同的读写请求所对应的读写响应也相同,则读写响应为额外静态数据,与额外静态数据对应的请求为额外静态数据请求,NFC终端得到额外静态数据和额外静态数据请求。应理解,M为2时,该实施例的得到额外静态数据的目的即可实现,但是M的数值越大,NFC获得额外静态数据的结果越精确。M的数值可以根据实际需要进行调整,即本实施例是一种动态校正、区分得到额外静态数据的方法。When M is a natural number greater than or equal to 2, the NFC terminal stores more than 2 (including 2) read-write requests and read-write responses. The NFC terminal traverses the read and write requests to determine whether there are the same read and write requests, and the NFC terminal traverses the read and write responses. If the read and write responses corresponding to the same read and write requests are also the same, the read and write responses are additional static data. The request corresponding to the extra static data is an extra static data request, and the NFC terminal obtains the extra static data and the extra static data request. It should be understood that when M is 2, the purpose of obtaining the additional static data in this embodiment can be achieved, but the larger the value of M, the more accurate the result of the NFC obtaining the additional static data. The value of M can be adjusted according to actual needs, that is, this embodiment is a method of dynamically correcting and distinguishing to obtain additional static data.
在本实施方式中,可以通过在NFC终端中写入算法的方法来进行上述判断、比较等操作,但本申请实施例不限定具体的实现方式。In this implementation manner, operations such as the above judgment and comparison can be performed by writing an algorithm into the NFC terminal, but this embodiment of the application does not limit the specific implementation manner.
图6为本申请实施例提供的一种对读写请求处理逻辑的流程示意图。NFC终端接收由NFC读卡器发送的用于获取实体卡额外静态数据和/动态数据的读写请求时,NFC终端可以判断,若读写请求为额外静态数据请求,则NFC终端返回额外静态数据,因为此类数据已存储在NFC终端中(示例性地,额外静态数据信息可以存储在存储器、安全单元(SE,Secure Element)、基于主机的卡模拟应用(Host-based Card Emulation,HCE)应用、通用集成电路卡(UniversalIntegratedCircuitCard,UICC)中),若读写请求不是额外静态数据请求,则NFC终端将该动态数据请求透传给NFC扩展设备。本实施例区分动态数据和额外静态数据的效果在于,一般而言,动态数据内容比较短,通信超时的概率比较低,而额外静态数据的数据内容长度较长,容易造成超时。根据本实施例提供的方案,一方面当目标用户在刷卡时系统响应加快,可以提高刷卡效率,另一方面,降低通信超时情况的发生,增加系统的稳定性。此外,动态数据在每次刷卡时一般都会发生变化,即使存储在NFC终端中,在下一次刷卡中从NFC终端中返回也无法满足本申请的目的,甚至发生通信错误。FIG. 6 is a schematic flowchart of a logic for processing read and write requests provided by an embodiment of the present application. When the NFC terminal receives the read and write request sent by the NFC card reader to obtain the additional static data and/dynamic data of the physical card, the NFC terminal can judge that if the read and write request is an additional static data request, the NFC terminal returns the additional static data , because this type of data has been stored in the NFC terminal (exemplarily, additional static data information can be stored in a memory, a secure element (SE, Secure Element), a host-based card simulation application (Host-based Card Emulation, HCE) application 1. Universal Integrated Circuit Card (Universal Integrated Circuit Card, UICC), if the read and write request is not an additional static data request, the NFC terminal transparently transmits the dynamic data request to the NFC extension device. The effect of this embodiment for distinguishing between dynamic data and additional static data is that, generally speaking, the content of dynamic data is relatively short, and the probability of communication timeout is relatively low, while the data content of additional static data is long, which is likely to cause timeout. According to the solution provided in this embodiment, on the one hand, when the target user swipes the card, the system responds faster, which can improve the efficiency of swiping the card; on the other hand, the occurrence of communication timeout is reduced, and the stability of the system is increased. In addition, dynamic data generally changes every time the card is swiped. Even if it is stored in the NFC terminal, returning it from the NFC terminal in the next swiping of the card cannot meet the purpose of this application, and even a communication error occurs.
在本申请中,标准静态数据、额外静态数据由NFC终端所得到并存储。对 标准静态数据、额外静态数据、动态数据做区分,并采取不同的处理逻辑的效果在于,与标准静态数据、额外静态数据对应的响应直接由NFC终端返回,缩短了通信链路,加快通信响应,刷卡效率提高、减小数据丢失、减少超时的可能性,增加通信成功率。动态数据由于每次刷卡时都在变化,因此,每次刷卡时,均需要把动态数据请求路由到实体卡,以获取实体卡的动态数据,一般而言,动态数据和安全认证相关。In this application, standard static data and additional static data are obtained and stored by the NFC terminal. The effect of distinguishing standard static data, additional static data, and dynamic data and adopting different processing logics is that the responses corresponding to standard static data and additional static data are directly returned by the NFC terminal, which shortens the communication link and speeds up the communication response , Improve the efficiency of card swiping, reduce data loss, reduce the possibility of timeout, and increase the success rate of communication. The dynamic data changes every time the card is swiped. Therefore, every time the card is swiped, the dynamic data request needs to be routed to the physical card to obtain the dynamic data of the physical card. Generally speaking, the dynamic data is related to security authentication.
应予说明的是,本申请的对于数据的基本处理逻辑是,当NFC终端接收读写请求后,并不识别、判断或区分读写请求,而是全部发送给NFC扩展设备,再由NFC扩展设备发送给实体卡,以获取实体卡的额外静态数据和/或动态数据,这种方案适用于所有实体卡,应用范围广且发生错误的概率低;另一种可选的数据处理逻辑是,NFC终端将请求动态数据的读写请求发送给NFC扩展设备,再由NFC扩展设备发送给实体卡,但是,当NFC终端接收到请求额外静态数据的读写请求时,直接由NFC终端返回额外静态数据,无需再将该读写请求透传给NFC扩展设备,从而缩短通信链路。第二种处理逻辑对于卡片的适用范围相比于基本处理逻辑下实体卡的适用范围窄。实际应用中,目标用户可以在NFC终端上选择不同的处理逻辑,或者由NFC终端自主决断以获得最优的处理逻辑。It should be noted that the basic data processing logic of this application is that when the NFC terminal receives the read and write requests, it does not identify, judge or distinguish the read and write requests, but sends them all to the NFC extension device, and then the NFC extension The device sends to the physical card to obtain additional static data and/or dynamic data of the physical card. This scheme is applicable to all physical cards, has a wide range of applications and has a low probability of error; another optional data processing logic is, The NFC terminal sends the read and write request for dynamic data to the NFC extension device, and then the NFC extension device sends it to the physical card. However, when the NFC terminal receives the read and write request for additional static data, the NFC terminal directly returns the additional static data. Data, there is no need to transparently transmit the read and write requests to the NFC expansion device, thereby shortening the communication link. The scope of application of the second processing logic for cards is narrower than that of physical cards under the basic processing logic. In practical applications, the target user can choose different processing logics on the NFC terminal, or the NFC terminal can decide independently to obtain the optimal processing logic.
在一个可能的实施方式中,NFC终端包括HCE应用,用于将所述读写请求透传给所述NFC扩展设备和用于将读写响应发送给所述NFC读卡器。In a possible implementation manner, the NFC terminal includes an HCE application, configured to transparently transmit the read-write request to the NFC extension device and send a read-write response to the NFC card reader.
在一个可能的实施方式中,NFC终端与NFC读卡器的通信超时,NFC读卡器超时重发,重发N次读写请求形成N个重发的读写请求,NFC扩展设备过滤所述重发的读写请求,并以与所述读写请求对应的读写响应作为第N个重发的读写请求的重发响应,其中N为大于等于1的自然数。In a possible implementation, the communication between the NFC terminal and the NFC card reader times out, and the NFC card reader resends overtime, resending N read and write requests to form N resent read and write requests, and the NFC extension device filters the The resent read/write request, and the read/write response corresponding to the read/write request is used as the resend response of the Nth resent read/write request, where N is a natural number greater than or equal to 1.
具体地,若NFC读卡器的超时时间为90毫秒,且存在3次超时重发的情况,此时,存在3个重发的读写请求。NFC扩展设备过滤重发的读写请求,并以NFC读卡器发送的第一条读写请求(即NFC读卡器首次发送的读写请求)的读写响应作为第3个重发的读写请求的重发响应,因此,实际上在两条以上的读写请求发出来后的270毫秒时间范围内的读写响应均被NFC读卡器接收,即达到了扩展NFC读卡器超时时间的效果。这样,可以避免因多次超时重发所 导致的终止通信的弊端,增加系统稳定性。本实施例不受具体的通信协议的限制,具有良好的适配性。Specifically, if the timeout period of the NFC card reader is 90 milliseconds, and there are 3 times of timeout retransmission, at this time, there are 3 retransmitted read and write requests. The NFC extension device filters the retransmitted read and write requests, and uses the read and write response of the first read and write request sent by the NFC card reader (that is, the first read and write request sent by the NFC card reader) as the third resent read and write request. The retransmission response of the write request, therefore, in fact, the read and write responses within 270 milliseconds after the two or more read and write requests are sent are all received by the NFC card reader, that is, the timeout period of the extended NFC card reader is reached Effect. In this way, the disadvantage of terminating communication caused by multiple overtime retransmissions can be avoided, and the system stability can be increased. This embodiment is not limited by a specific communication protocol and has good adaptability.
在另一个可能的实施方式中,当NFC读卡器超时重发时,所述NFC扩展设备使用第一通信协议申请NFC读卡器设定更大的超时时间。具体地,当NFC读卡器超时,实体卡可以使用ISO-DEP中的WTOX req申请NFC读卡器设定更大的超时时间,这样,可以避免因多次超时重发所导致的终止通信的弊端,增加系统稳定性。使用WTOX req申请NFC读卡器设定更大的超时时间,具有灵活性,可以针对不同的读写请求做出相应的调整。应理解,本实施例需要在ISO-DEP协议下使用。In another possible implementation manner, when the NFC card reader resends overtime, the NFC extension device uses the first communication protocol to request the NFC card reader to set a longer timeout period. Specifically, when the NFC card reader times out, the entity card can use the WTOX req in ISO-DEP to apply for the NFC card reader to set a larger timeout period, so that the communication termination caused by multiple timeout retransmissions can be avoided. Disadvantages, increase system stability. Use WTOX req to apply for NFC card reader to set a larger timeout time, which is flexible and can be adjusted accordingly for different read and write requests. It should be understood that this embodiment needs to be used under the ISO-DEP protocol.
在另一个可能的实施方式中,当NFC读卡器超时重发时,则在卡模拟阶段,设定帧等待整数时间(Frame Waiting time Integer,FWI),用以申请NFC读卡器设定超时时间。In another possible implementation, when the NFC card reader resends overtime, then in the card simulation stage, set the frame waiting time Integer (Frame Waiting time Integer, FWI) to apply for the NFC card reader to set the timeout time.
图7为本申请实施例提供的一种处理通信超时问题的方法流程图。参见图7,NFC终端通过NFC扩展设备获得实体卡的标准静态数据之后,即NFC终端读取到实体卡的标准静态数据之后,因为标准静态数据中包含有FWI,NFC终端可以判断(即根据程序、算法等自主决断)该FWI参数是否合适,并基于不同的实体卡设置不同的FWI参数,在该实施例中,FWI参数大的时候,对响应时间要求比较低,兼容性更好。这样,可以避免因多次超时重发所导致的终止通信的弊端,提高方案的兼容性。一般而言,FWI参数大的时候,对响应时间要求比较低,兼容性更好。FIG. 7 is a flow chart of a method for dealing with a communication timeout problem provided by an embodiment of the present application. Referring to Figure 7, after the NFC terminal obtains the standard static data of the physical card through the NFC extension device, that is, after the NFC terminal reads the standard static data of the physical card, because the standard static data contains FWI, the NFC terminal can judge (that is, according to the program , algorithm, etc.) whether the FWI parameter is appropriate, and set different FWI parameters based on different physical cards. In this embodiment, when the FWI parameter is large, the response time requirement is relatively low, and the compatibility is better. In this way, the disadvantage of terminating communication caused by multiple overtime retransmissions can be avoided, and the compatibility of the scheme can be improved. Generally speaking, when the FWI parameter is large, the response time requirement is relatively low, and the compatibility is better.
进一步地,NFC终端同时基于实体卡的FWI和读卡器的参数来设定FWI参数,该参数可以为通讯超时参数,基于两种不同的数据信息来设定FWI参数,可以使得NFC终端设定更为精确的FWI参数。Further, the NFC terminal sets the FWI parameter based on the FWI of the physical card and the parameters of the card reader at the same time. The parameter can be a communication timeout parameter. Setting the FWI parameter based on two different data information can make the NFC terminal set More precise FWI parameters.
进一步地,在NFC终端设定FWI参数,用以申请NFC读卡器设定超时时间之后,仍存在超时重发的情况,则NFC终端重新设定帧等待整数时间,用以申请NFC读卡器设定更大的超时时间。在该实施例中,NFC终端在卡模拟阶段根据实体卡的标准静态数据和/或读卡器的通讯超时参数设定了FWI参数,但在目标用户的实际刷卡中,依然存在超时的情况,即刷卡失败的情况,此时NFC终端重新设定FWI参数,用以申请NFC读卡器设定更大的超时时间以避 免再次超时重刷,即重新设定的FWI参数代替了NFC终端在卡模拟阶段基于标准静态数据和/或读卡器的通讯超时参数设定的FWI参数,从而可以更好地适配NFC读卡器,以提高刷卡成功率和效率。应理解,本实施例需要在ISO-DEP协议下使用。Further, after the NFC terminal sets the FWI parameter to apply for the NFC card reader to set the timeout period, there is still a situation of overtime retransmission, then the NFC terminal resets the frame waiting integer time to apply for the NFC card reader Set a larger timeout. In this embodiment, the NFC terminal sets the FWI parameters according to the standard static data of the physical card and/or the communication timeout parameters of the card reader during the card simulation stage, but in the actual swiping of the card by the target user, there is still a timeout situation. That is, in the case of failure to swipe the card, the NFC terminal resets the FWI parameter at this time to apply for a larger timeout period for the NFC card reader to avoid re-swiping after timeout again, that is, the reset FWI parameter replaces the NFC terminal in the card simulation The stage is based on standard static data and/or the FWI parameters set by the communication timeout parameters of the card reader, so that the NFC card reader can be better adapted to improve the success rate and efficiency of card swiping. It should be understood that this embodiment needs to be used under the ISO-DEP protocol.
进一步地,NFC终端记录重新设定的FWI的参数,此参数和实体卡、NFC读卡器形成映射,在后续的NFC终端与NFC读卡器的通信中可以被调用。应理解,本实施例需要在ISO-DEP协议下使用。Further, the NFC terminal records the reset FWI parameter, and this parameter forms a mapping with the physical card and the NFC card reader, and can be called in the subsequent communication between the NFC terminal and the NFC card reader. It should be understood that this embodiment needs to be used under the ISO-DEP protocol.
应理解,上述几种在超时重发的情况下的处理方法可以相互配合使用,也可以单独使用。It should be understood that the above processing methods in the case of timeout retransmission can be used in conjunction with each other, or can be used independently.
若执行了上述方法后,仍存在超时的情况,所述NFC终端通知目标用户所述实体卡无法被兼容。If timeout still exists after the above method is executed, the NFC terminal notifies the target user that the physical card cannot be compatible.
图8所示为本申请实施例提供的一种分阶段的示意性交互图。如图所示,包括三个阶段:卡模拟阶段、卡激活阶段和卡交互阶段。FIG. 8 is a schematic interaction diagram of stages provided by the embodiment of the present application. As shown in the figure, it includes three phases: card simulation phase, card activation phase and card interaction phase.
卡模拟阶段:S801-S805。Card emulation stage: S801-S805.
S801:NFC终端向NFC扩展设备发送寻卡命令,该寻卡命令用于让NFC扩展设备发送第一寻卡请请求。S801: The NFC terminal sends a card search command to the NFC extension device, where the card search command is used to make the NFC extension device send a first card search request.
S802:NFC扩展设备向实体卡发送第一寻卡请求,该第一寻卡请求用于获得实体卡的标准静态数据。S802: The NFC extension device sends a first card finding request to the physical card, where the first card finding request is used to obtain standard static data of the physical card.
S803:实体卡响应于第一寻卡请求,向NFC扩展设备发送标准静态数据。S803: The entity card sends standard static data to the NFC extension device in response to the first card finding request.
S804:NFC扩展设备向NFC终端发送标准静态数据。S804: The NFC extension device sends standard static data to the NFC terminal.
S805:根据标准静态数据,在NFC终端上生成模拟卡和实体卡的映射关系。S805: Generate, on the NFC terminal, a mapping relationship between the simulated card and the physical card according to the standard static data.
卡激活阶段:S806-S808。Card activation phase: S806-S808.
S806:NFC终端接收选卡指令。S806: The NFC terminal receives a card selection instruction.
S807:NFC读卡器向NFC终端发送第二寻卡请求,该第二寻卡请求用于获取实体卡的标准静态数据。S807: The NFC card reader sends a second card finding request to the NFC terminal, where the second card finding request is used to acquire standard static data of the physical card.
S808:NFC终端将标准静态数据发送至NFC读卡器。S808: The NFC terminal sends the standard static data to the NFC card reader.
卡交互阶段:S809-S814。Card interaction stage: S809-S814.
S809:NFC读卡器向NFC终端发送读写请求,用于获取实体卡的动态数据和/或额外静态数据。S809: The NFC card reader sends a read and write request to the NFC terminal, for acquiring dynamic data and/or additional static data of the physical card.
S810:NFC终端把读写请求透传给NFC扩展设备。S810: The NFC terminal transparently transmits the read and write request to the NFC extension device.
S811:NFC扩展设备将读写请求透传给实体卡。S811: The NFC extension device transparently transmits the read and write request to the physical card.
S812:实体卡向扩展设备发送读写响应。该读写响应可能为以下三种情况:①仅有额外静态数据;②仅有动态数据;③额外静态数据和动态数据。S812: The physical card sends a read/write response to the extension device. The read/write response may be in the following three situations: ① only additional static data; ② only dynamic data; ③ additional static data and dynamic data.
S813:NFC扩展设备将读写响应发送给NFC终端。S813: The NFC extension device sends a read and write response to the NFC terminal.
S814:NFC终端将读写响应发送给NFC读卡器,与NFC读卡器通信直到交互成功。S814: The NFC terminal sends a read-write response to the NFC card reader, and communicates with the NFC card reader until the interaction is successful.
本申请第二方面提供了一种应用于NFC终端的方法,NFC终端可以通过NFC扩展设备实现卡模拟,具体包括:The second aspect of the present application provides a method applied to an NFC terminal. The NFC terminal can realize card simulation through an NFC expansion device, specifically including:
在一个实施例中,NFC终端通过NFC扩展设备获得实体卡的标准静态数据,NFC终端与实体卡之间基于近场通信协议通信,例如:NFC协议或RFID协议;NFC终端与NFC扩展设备基于无线通信协议通信,比如:蓝牙协议、WiFi协议、3G协议、4G协议或5G协议。In one embodiment, the NFC terminal obtains the standard static data of the entity card through the NFC extension device, and the NFC terminal and the entity card communicate based on a near-field communication protocol, such as: NFC protocol or RFID protocol; the NFC terminal and the NFC extension device are based on wireless Communication protocol communication, such as: Bluetooth protocol, WiFi protocol, 3G protocol, 4G protocol or 5G protocol.
NFC终端获得实体卡的标准静态数据之后,可以生成模拟卡与实体卡的映射关系。After obtaining the standard static data of the physical card, the NFC terminal can generate a mapping relationship between the simulated card and the physical card.
进一步地,NFC终端接收选卡指令,选卡指令包括两类:一类是目标用户根据模拟卡与实体卡的映射关系和自己的实际需求进行选卡,即需要用户手动进行操作;另一类是智能选卡策略,即NFC终端接收根据系统收集的多方位信息智能选调出所需NFC模拟卡而无需人工手动选卡的操作指令。应理解,无论是哪种选卡指令,目标用户都无需将实体卡取出进行刷卡,NFC终端可以实现选卡、刷卡的操作。Further, the NFC terminal receives a card selection instruction, and the card selection instruction includes two types: one is that the target user selects a card according to the mapping relationship between the simulated card and the physical card and his actual needs, that is, the user needs to manually operate; It is a smart card selection strategy, that is, the NFC terminal receives an operation instruction to intelligently select the required NFC analog card based on the multi-directional information collected by the system without manual card selection. It should be understood that no matter what kind of card selection instruction is used, the target user does not need to take out the physical card to swipe the card, and the NFC terminal can realize card selection and card swipe operations.
进一步地,NFC终端接收NFC读卡器发送的获取所述实体卡的额外静态数据和/或动态数据的读写请求,接收包含额外静态数据和/或动态数据的读写响应。即NFC终端接收的读写响应包括三种情况:①仅有额外静态数据;②仅有动态数据;③额外静态数据和动态数据。并且,NFC终端发送额外静态数据和/或动态数据至所述NFC读卡器。Further, the NFC terminal receives a read/write request for acquiring additional static data and/or dynamic data of the entity card sent by the NFC card reader, and receives a read/write response containing the additional static data and/or dynamic data. That is, the read and write responses received by the NFC terminal include three situations: ① only additional static data; ② only dynamic data; ③ additional static data and dynamic data. And, the NFC terminal sends additional static data and/or dynamic data to the NFC card reader.
对于读卡器的读写请求,NFC终端有两种处理逻辑:其中一种是透传给NFC扩展设备,以NFC扩展模块和NFC终端之间的通信协议是蓝牙协议为例,NFC扩展设备接收蓝牙信道上的数据后,会使用对应实体卡的NFC技术的 Frame将此读写请求透传给实体卡。另一种是NFC终端接收到读写请求,若该读写请求需要的是实体卡的额外静态数据,该数据可以由NFC终端直接返回给NFC读卡器,而无需再透传给NFC扩展设备,若该读写请求需要的是实体卡的动态数据,则仍然将该读写请求路由到NFC扩展设备,这种处理逻辑可以缩短通信链路,减少超时情况的发生,增加通信效率和成功率。对于第二种处理逻辑,需要NFC终端先得到额外静态数据,这部分具体的实施方式可以参考图5和图6所对应的实施例的相关描述,在此暂不赘述。For the read and write requests of the card reader, the NFC terminal has two processing logics: one of them is transparently transmitted to the NFC extension device. Taking the communication protocol between the NFC extension module and the NFC terminal as an example using the Bluetooth protocol, the NFC extension device receives After receiving the data on the Bluetooth channel, the NFC technology frame corresponding to the physical card will be used to transparently transmit the read and write request to the physical card. The other is that the NFC terminal receives a read-write request. If the read-write request requires additional static data of the physical card, the data can be directly returned to the NFC card reader by the NFC terminal without transparently transmitting it to the NFC expansion device. , if the read-write request needs the dynamic data of the physical card, the read-write request is still routed to the NFC extension device. This processing logic can shorten the communication link, reduce the occurrence of timeouts, and increase communication efficiency and success rate . For the second processing logic, the NFC terminal needs to obtain additional static data first. For the specific implementation of this part, please refer to the relevant descriptions of the embodiments corresponding to FIG. 5 and FIG. 6 , and details will not be repeated here.
第三方面,本申请实施例提供了一种应用于NFC扩展设备的NFC卡模拟方法,用于通过NFC扩展设备实现实体卡在NFC终端的卡模拟,NFC扩展设备与实体卡之间基于第一通信协议通信,NFC终端与NFC扩展设备基于第二通信协议通信,第一通信协议为近场通信协议,近场通信协议包括:NFC协议或RFID协议;第二通信协议为无线通信协议,无线通信协议包括:蓝牙协议、WiFi协议、3G协议、4G协议或5G协议。具体包括:In the third aspect, the embodiment of the present application provides an NFC card simulation method applied to an NFC extension device, which is used to realize the card simulation of the physical card in the NFC terminal through the NFC extension device, and the NFC extension device and the entity card are based on the first Communication protocol communication, NFC terminal and NFC extension device communicate based on the second communication protocol, the first communication protocol is near field communication protocol, near field communication protocol includes: NFC protocol or RFID protocol; the second communication protocol is wireless communication protocol, wireless communication Protocols include: Bluetooth protocol, WiFi protocol, 3G protocol, 4G protocol or 5G protocol. Specifically include:
NFC扩展设备接收NFC终端发送的用于获取实体卡的标准静态数据的寻卡命令;The NFC extension device receives the card search command sent by the NFC terminal to obtain the standard static data of the physical card;
NFC扩展设备将寻卡命令发送给实体卡;The NFC expansion device sends the card search command to the physical card;
NFC扩展设备接收实体卡返回的标准静态数据,并发送给NFC终端,使得NFC终端根据实体卡的标准静态数据,在NFC终端上生成模拟卡与实体卡的映射关系。The NFC extension device receives the standard static data returned by the physical card and sends it to the NFC terminal, so that the NFC terminal generates a mapping relationship between the analog card and the physical card on the NFC terminal according to the standard static data of the physical card.
进一步地,NFC扩展设备接收NFC终端发送的用于获取实体卡的额外静态数据和/或动态数据的读写请求,NFC扩展设备从实体卡获取实体卡的额外静态数据和/或动态数据;以及Further, the NFC extension device receives the read and write request sent by the NFC terminal for obtaining additional static data and/or dynamic data of the entity card, and the NFC extension device obtains the additional static data and/or dynamic data of the entity card from the entity card; and
发送实体卡的额外静态数据和/或动态数据至NFC终端。在该实施例中,NFC扩展设备基于不同的协议分别与NFC终端和实体卡通信,与NFC终端基于无线通信协议,以蓝牙为例,可以使得NFC扩展设备与NFC终端具有数米到数十米的通信距离,NFC扩展设备与实体卡基于近场通信协议,即NFC扩展设备一般贴设或套设在实体卡上(例如,扩展设备和实体卡的通信距离为20m)。这样,目标用户将小型化的NFC扩展设备和实体卡放在一起,然后在放置入随身携带的钱包或背包中,或者放入衣裤的口袋中,然后通过NFC终端 进行选卡、刷卡的操作,可以实现不取出实体卡即可刷卡的效果,操作简便,且增大了安全性和便利性。Send additional static data and/or dynamic data of the physical card to the NFC terminal. In this embodiment, the NFC extension device communicates with the NFC terminal and the physical card based on different protocols, and communicates with the NFC terminal based on a wireless communication protocol. Taking Bluetooth as an example, the distance between the NFC extension device and the NFC terminal can be several meters to tens of meters. The communication distance between the NFC expansion device and the physical card is based on the near-field communication protocol, that is, the NFC expansion device is generally attached or set on the physical card (for example, the communication distance between the expansion device and the physical card is 20m). In this way, the target user puts the miniaturized NFC expansion device and the physical card together, and then puts them in the wallet or backpack, or puts them in the pocket of the trousers, and then selects and swipes the card through the NFC terminal. , the effect of swiping the card without taking out the physical card can be realized, the operation is simple, and the safety and convenience are increased.
第四方面,本申请实施例提供了一种终端。图9所示为本申请实施例提供的一种NFC终端的硬件结构示意图。应该理解的是,图9所示NFC终端仅是一个范例,并且NFC终端可以具有比图9中所示的更多的或者更少的部件,可以组合两个或多个的部件,或者可以具有不同的部件配置。图中所示出的各种部件可以在包括一个或多个信号处理和/或专用集成电路在内的硬件、软件、或硬件和软件的组合中实现。In a fourth aspect, the embodiment of the present application provides a terminal. FIG. 9 is a schematic diagram of a hardware structure of an NFC terminal provided by an embodiment of the present application. It should be understood that the NFC terminal shown in FIG. 9 is only an example, and that the NFC terminal may have more or fewer components than those shown in FIG. 9, may combine two or more components, or may have Different component configurations. The various components shown in the figures may be implemented in hardware, software, or a combination of hardware and software including one or more signal processing and/or application specific integrated circuits.
如图所示,NFC终端包括:存储器910、处理器920、支持第一通信协议和第二通信协议的芯片930。其中,处理器920可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器等。As shown in the figure, the NFC terminal includes: a memory 910, a processor 920, and a chip 930 supporting the first communication protocol and the second communication protocol. Wherein, the processor 920 may include one or more processing units, for example: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processing unit (graphics processing unit, GPU), an image signal Processor (image signal processor, ISP), controller, memory, video codec, digital signal processor (digital signal processor, DSP), baseband processor, etc.
处理器920中还可以设置存储器,用于存储指令和数据。存储器910和处理器920耦合,存储器910用于存储计算机程序代码。存储器910可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器920通过运行存储在存储器910的指令,从而执行NFC终端的各种功能应用以及数据处理。A memory may also be provided in the processor 920 for storing instructions and data. The memory 910 is coupled to the processor 920, and the memory 910 is used for storing computer program codes. The memory 910 may be used to store computer-executable program code, which includes instructions. The processor 920 executes various functional applications and data processing of the NFC terminal by executing instructions stored in the memory 910 .
在一个实施例中,处理器920调用所述计算机指令以使得所述NFC终端执行:In one embodiment, the processor 920 calls the computer instructions to make the NFC terminal execute:
通过NFC扩展设备获得实体卡的标准静态数据,NFC扩展设备与实体卡之间基于第一通信协议通信,NFC终端与NFC扩展设备基于第二通信协议通信;其中,第一通信协议为近场通信协议,近场通信协议包括:NFC协议或RFID协议;第二通信协议为无线通信协议,无线通信协议包括:蓝牙协议、WiFi协议、3G协议、4G协议或5G协议。The standard static data of the physical card is obtained through the NFC expansion device, the communication between the NFC expansion device and the physical card is based on the first communication protocol, and the communication between the NFC terminal and the NFC expansion device is based on the second communication protocol; wherein, the first communication protocol is near field communication Protocol, the near-field communication protocol includes: NFC protocol or RFID protocol; the second communication protocol is a wireless communication protocol, and the wireless communication protocol includes: Bluetooth protocol, WiFi protocol, 3G protocol, 4G protocol or 5G protocol.
根据实体卡的标准静态数据,在NFC终端上生成模拟卡与实体卡的映射关系;According to the standard static data of the physical card, the mapping relationship between the simulated card and the physical card is generated on the NFC terminal;
接收基于映射关系的选卡指令,激活与选卡指令对应的实体卡;Receive the card selection command based on the mapping relationship, and activate the physical card corresponding to the card selection command;
接收NFC读卡器发送的获取实体卡的额外静态数据和/或动态数据的读写 请求,NFC终端通过NFC扩展设备获取实体卡返回的读写响应,读写响应包含额外静态数据和/或动态数据;以及Receive the read and write request sent by the NFC card reader to obtain additional static data and/or dynamic data of the physical card, and the NFC terminal obtains the read and write response returned by the physical card through the NFC expansion device, and the read and write response contains additional static data and/or dynamic data data; and
发送实体卡的额外静态数据和/或动态数据至NFC读卡器。Send additional static and/or dynamic data of the physical card to the NFC reader.
进一步地,处理器920可以用于判断存储器910对于读写请求和读写相应的存储次数M是否为大于等于2的自然数,具体的判断流程可以参照前文图5方法实施例的相关描述,在此暂不赘述。Further, the processor 920 can be used to judge whether the memory 910 reads and writes requests and reads and writes corresponding storage times M is a natural number greater than or equal to 2. The specific judgment process can refer to the relevant description of the method embodiment in FIG. 5 above. Here I won't go into details for now.
进一步地,处理器920还可以用于判断并得到额外静态数据,具体的判断方式可以参照前文图5方法实施例的相关描述。Further, the processor 920 may also be used to judge and obtain additional static data. For a specific judgment method, refer to the related description of the method embodiment in FIG. 5 above.
进一步地,处理器920还可以用于判断读写请求是否为额外静态数据请求,具体的判断方式可以参照前文图6方法实施例的相关描述。Further, the processor 920 may also be used to determine whether the read/write request is an additional static data request, and for a specific determination method, refer to the related description of the method embodiment in FIG. 6 above.
存储器910和处理器920耦合,存储器910用于存储计算机程序代码。存储器910可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器110通过运行存储在存储器910的指令,从而执行电子设备100的各种功能应用以及数据处理。存储器910可用于存储执行本申请实施例提供的基于扩展NFC卡模拟功能的方法所需的应用程序。在一些实施例中,存储器910还可用于存储电子设备在执行该扩展NFC卡模拟功能的方法时生成或创建的数据,如标准静态数据、额外静态数据、动态数据等。例如实体卡的UID、FWI参数、成功执行和实体卡的NFC通信过程时所使用的射频参数等。The memory 910 is coupled to the processor 920, and the memory 910 is used for storing computer program codes. The memory 910 may be used to store computer-executable program code, which includes instructions. The processor 110 executes various functional applications and data processing of the electronic device 100 by executing instructions stored in the memory 910 . The memory 910 may be used to store application programs required for executing the method based on the extended NFC card simulation function provided by the embodiment of the present application. In some embodiments, the memory 910 can also be used to store data generated or created by the electronic device when executing the method for extending the emulation function of the NFC card, such as standard static data, additional static data, dynamic data, and the like. For example, the UID of the physical card, the FWI parameter, the radio frequency parameter used when successfully executing the NFC communication process with the physical card, and the like.
本申请实施例对NFC终端的类型不做限制。NFC终端可以为手机、平板电脑、个人数字助理(personaldigitalassistant,PDA)、可穿戴设备(例如智能手环、智能手表)、膝上型计算机(laptop)、具有触敏表面(例如触控面板)的膝上型计算机(laptop)等便携式电子设备。便携式电子设备的示例性实施例包括但不限于搭载iOS、android、microsoft或者其他操作系统的便携式电子设备。The embodiment of the present application does not limit the type of the NFC terminal. The NFC terminal can be a mobile phone, a tablet computer, a personal digital assistant (personal digital assistant, PDA), a wearable device (such as a smart bracelet, a smart watch), a laptop computer (laptop), a computer with a touch-sensitive surface (such as a touch panel) Portable electronic devices such as laptops. Exemplary embodiments of portable electronic devices include, but are not limited to, portable electronic devices running iOS, android, microsoft, or other operating systems.
第五方面,本申请实施例提供了一种NFC扩展设备。图10为本申请实施例提供的一种NFC扩展设备的硬件结构示意图。如图所示,NFC扩展设备包括:处理器1001、应用模块1002(Application)、操作系统模块1003(Operating System,OS)、传输模块1003、射频识别模块1005。In a fifth aspect, the embodiment of the present application provides an NFC extension device. FIG. 10 is a schematic diagram of a hardware structure of an NFC extension device provided in an embodiment of the present application. As shown in the figure, the NFC extension device includes: a processor 1001, an application module 1002 (Application), an operating system module 1003 (Operating System, OS), a transmission module 1003, and a radio frequency identification module 1005.
处理器1001,具体地,处理器可以为微控制单元(Microcontroller Unit,MCU)。The processor 1001, specifically, the processor may be a Microcontroller Unit (MCU).
传输模块1004用于与NFC终端基于第二通信协议通信,接收NFC终端发送的用于获取实体卡的标准静态数据的寻卡命令,将寻卡命令发送给实体卡,将标准静态数据基于第二通信协议发送给NFC终端,使得NFC终端根据实体卡的标准静态数据,在NFC终端上生成模拟卡与实体卡的映射关系。The transmission module 1004 is used to communicate with the NFC terminal based on the second communication protocol, receive the card search command sent by the NFC terminal for obtaining the standard static data of the physical card, send the card search command to the physical card, and transfer the standard static data based on the second The communication protocol is sent to the NFC terminal, so that the NFC terminal generates a mapping relationship between the simulated card and the physical card on the NFC terminal according to the standard static data of the physical card.
传输模块1004与NFC终端的通信可以基于不同类型的通信标准。例如,在此实施例中的通信标准可以是低功耗蓝牙(Bluetooh Low Energy,BLE,),也可以是WiFi、3G、4G或5G,本申请实施例不做具体限定。当传输模块1004接收到NFC终端发送的请求时,NFC扩展设备被激活并处于工作状态,当NFC终端没有接收到NFC终端发送的请求超过一定时间后,NFC扩展设备进入低功耗状态,这样可以降低NFC扩展设备的功耗,减少扩展设备发热。The communication between the transmission module 1004 and the NFC terminal may be based on different types of communication standards. For example, the communication standard in this embodiment may be Bluetooth Low Energy (Bluetooh Low Energy, BLE), or WiFi, 3G, 4G or 5G, which is not specifically limited in this embodiment of the present application. When the transmission module 1004 receives the request sent by the NFC terminal, the NFC extension device is activated and in a working state. When the NFC terminal does not receive the request sent by the NFC terminal for more than a certain period of time, the NFC extension device enters a low power consumption state, which can Reduce the power consumption of the NFC extension device and reduce the heat generation of the extension device.
射频识别模块1005用于与实体卡基于第一通信协议通信,接收实体卡返回的标准静态数据。第一通信协议为近场通信协议,包括:NFC协议或RFID协议。The radio frequency identification module 1005 is used for communicating with the entity card based on the first communication protocol, and receiving the standard static data returned by the entity card. The first communication protocol is a near field communication protocol, including: NFC protocol or RFID protocol.
进一步地,传输模块1004还用于接收NFC终端发送的用于获取实体卡的额外静态数据和/或动态数据的读写请求,发送实体卡的额外静态数据和/或动态数据至NFC终端。Further, the transmission module 1004 is also configured to receive a read and write request for acquiring additional static data and/or dynamic data of the physical card sent by the NFC terminal, and send the additional static data and/or dynamic data of the physical card to the NFC terminal.
进一步地,射频识别模块1005还用于从所述实体卡获取所述实体卡的额外静态数据和/或动态数据。Further, the radio frequency identification module 1005 is further configured to acquire additional static data and/or dynamic data of the physical card from the physical card.
图11为本申请实施例提供的一种产品形态示意图。如图所示,钱包1100为安装有NFC扩展设备1101的钱包,实体卡1102放置在钱包1000中,实体卡1102和NFC扩展设备1101处于有效的通信距离中。目标用户可以将钱包1100放入目标用户所穿着的外套或裤子的口袋中,或者可以放置在目标用户背着的背包中,NFC扩展设备基于蓝牙等通信标准和目标用户的手机通信,蓝牙的通信距离一般为数米、数十米以上,所以增加了目标用户刷卡的自由度,用户不需要将实体卡取出,通过手机贴近NFC读卡器即可实现刷卡,增加了刷卡效率,减小卡丢失风险。本实施例不限定NFC扩展设备的形态,只要NFC扩展设备与实体卡在有效通信范围、NFC扩展设备与NFC终端在有效的通信范围的实现方式均落入本申请的保护范围中。Fig. 11 is a schematic diagram of a product form provided by the embodiment of the present application. As shown in the figure, the wallet 1100 is a wallet installed with an NFC extension device 1101, a physical card 1102 is placed in the wallet 1000, and the physical card 1102 and the NFC extension device 1101 are within an effective communication distance. The target user can put the wallet 1100 into the pocket of the jacket or trousers worn by the target user, or it can be placed in the backpack carried by the target user. The NFC extension device communicates with the mobile phone of the target user based on communication standards such as Bluetooth, and the communication of Bluetooth The distance is generally several meters or more than tens of meters, so the degree of freedom for the target user to swipe the card is increased. The user does not need to take out the physical card, and can swipe the card by putting the mobile phone close to the NFC card reader, which increases the efficiency of card swiping and reduces the risk of card loss. . This embodiment does not limit the form of the NFC extension device, as long as the NFC extension device and the physical card are within the effective communication range, and the implementation of the NFC extension device and the NFC terminal within the effective communication range falls within the scope of protection of this application.
此外,如图12所示,目标用户可以将NFC扩展设备放置在行李箱1200中, 实体卡也放置在行李箱1200中,只要确保实体卡和NFC扩展设备1201在有效的通信距离即可。目标用户不需要将无法被NFC终端模拟的实体卡取出即可实现刷卡,增加了刷卡的便捷性,减少了实体卡丢失的风险。本实施例不限定NFC扩展设备的形态,只要NFC扩展设备与实体卡在有效通信范围、NFC扩展设备与NFC终端在有效的通信范围的实现方式均落入本申请的保护范围中。In addition, as shown in FIG. 12 , the target user can place the NFC extension device in the suitcase 1200 and the physical card in the suitcase 1200 as long as the physical card and the NFC extension device 1201 are within an effective communication distance. The target user does not need to take out the physical card that cannot be simulated by the NFC terminal to swipe the card, which increases the convenience of swiping the card and reduces the risk of losing the physical card. This embodiment does not limit the form of the NFC extension device, as long as the NFC extension device and the physical card are within the effective communication range, and the implementation of the NFC extension device and the NFC terminal within the effective communication range falls within the scope of protection of this application.
此外,如图13所示,扩展设备1301可以为轻薄的卡贴形态,贴附在实体卡1300上。这样,目标用户可以将贴附有扩展设备1301的实体卡1000放在衣服和/或裤子的口袋中;或者放置在钱包中,只要扩展设备1301与NFC终端处于有效的通信范围即可。In addition, as shown in FIG. 13 , the extension device 1301 may be in the form of a thin and light card sticker, and attached to the physical card 1300 . In this way, the target user can put the physical card 1000 attached with the extension device 1301 in the pocket of clothes and/or trousers; or in the wallet, as long as the extension device 1301 and the NFC terminal are within an effective communication range.
此外,扩展设备1301可以为卡夹形态,使得实体卡1300可以被放置在扩展设备1301之中。In addition, the expansion device 1301 can be in the form of a card holder, so that the physical card 1300 can be placed in the expansion device 1301 .
本申请不限定NFC扩展设备的形态,只要NFC扩展设备与实体卡在有效通信范围的,并能实现如上文实施例所描述的发明目的实现方式均落入本申请的保护范围中。This application does not limit the form of the NFC extension device, as long as the NFC extension device and the entity card are within the effective communication range and can achieve the purpose of the invention as described in the above embodiments, the implementation methods fall within the protection scope of this application.
以上所述仅为本申请的较佳实施例,并不用以限制本申请,凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。The above descriptions are only preferred embodiments of the application, and are not intended to limit the application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the application shall be included in the protection of the application. within range.

Claims (35)

  1. 一种扩展NFC卡模拟功能的方法,其中,NFC终端通过NFC扩展设备实现实体卡的模拟,NFC读卡器从所述NFC终端获得所述实体卡的标准静态数据和/或额外静态数据和/或动态数据,所述方法具体包括:A method for expanding the NFC card simulation function, wherein, the NFC terminal realizes the simulation of the physical card through the NFC expansion device, and the NFC card reader obtains the standard static data and/or additional static data and/or of the physical card from the NFC terminal or dynamic data, the method specifically includes:
    当所述实体卡通过所述NFC终端被激活,所述NFC读卡器通过所述NFC终端获得所述实体卡的标准静态数据;其中,所述实体卡的标准静态数据由所述NFC终端通过所述NFC扩展设备获得,所述NFC扩展设备与所述实体卡之间基于第一通信协议通信,所述NFC终端与所述NFC扩展设备基于第二通信协议通信;所述NFC读卡器通过所述NFC终端和所述NFC扩展设备获得所述实体卡的额外静态数据和/或动态数据;或者所述NFC读卡器通过所述NFC终端获得所述实体卡的额外静态数据;以及When the entity card is activated by the NFC terminal, the NFC card reader obtains the standard static data of the entity card through the NFC terminal; wherein, the standard static data of the entity card is passed by the NFC terminal The NFC extension device obtains, the NFC extension device communicates with the entity card based on a first communication protocol, and the NFC terminal communicates with the NFC extension device based on a second communication protocol; the NFC card reader passes The NFC terminal and the NFC extension device obtain additional static data and/or dynamic data of the entity card; or the NFC card reader obtains additional static data of the entity card through the NFC terminal; and
    所述NFC读卡器通过所述实体卡的所述标准静态数据和/或额外静态数据和/或动态数据对所述实体卡进行管理。The NFC card reader manages the physical card through the standard static data and/or additional static data and/or dynamic data of the physical card.
  2. 根据权利要求1所述的方法,其中,所述第一通信协议为近场通信协议,所述近场通信协议包括:NFC协议或RFID协议;所述第二通信协议为无线通信协议,所述无线通信协议包括:蓝牙协议、WiFi协议、3G协议、4G协议或5G协议。The method according to claim 1, wherein the first communication protocol is a near-field communication protocol, and the near-field communication protocol includes: NFC protocol or RFID protocol; the second communication protocol is a wireless communication protocol, and the The wireless communication protocol includes: Bluetooth protocol, WiFi protocol, 3G protocol, 4G protocol or 5G protocol.
  3. 根据权利要求1或2所述的方法,其中,所述NFC终端通过所述NFC扩展设备获得所述实体卡的标准静态数据,进一步包括:The method according to claim 1 or 2, wherein the NFC terminal obtains the standard static data of the entity card through the NFC extension device, further comprising:
    所述NFC终端发送寻卡命令,用于让所述NFC扩展设备发送第一寻卡请求;The NFC terminal sends a card search command, which is used to allow the NFC extension device to send a first card search request;
    所述NFC扩展设备向所述实体卡发送第一寻卡请求,用于获取所述实体卡的标准静态数据;The NFC extension device sends a first card-seeking request to the physical card for obtaining standard static data of the physical card;
    所述实体卡响应于所述第一寻卡请求,向所述NFC扩展设备发送所述标准静态数据;以及The entity card sends the standard static data to the NFC extension device in response to the first card search request; and
    所述NFC扩展设备向所述NFC终端发送所述标准静态数据。The NFC extension device sends the standard static data to the NFC terminal.
  4. 根据权利要求1-3任一项所述的方法,其中,所述实体卡通过所述NFC终端被激活,进一步包括:根据所述标准静态数据,在所述NFC终端上显示模拟卡和所述实体卡的映射关系,目标用户根据所述映射关系对所述NFC 终端施加选卡请求,用以激活所述目标用户所需的所述实体卡。The method according to any one of claims 1-3, wherein the entity card is activated through the NFC terminal, further comprising: displaying the simulated card and the NFC terminal on the NFC terminal according to the standard static data The mapping relationship of the physical card, the target user applies a card selection request to the NFC terminal according to the mapping relationship, so as to activate the physical card required by the target user.
  5. 根据权利要求1-3任一项所述的方法,其中,所述实体卡通过所述NFC终端被激活,进一步包括:根据所述标准静态数据,在所述NFC终端上生成所述模拟卡与所述实体卡的所述映射关系,所述NFC终端基于所述映射关系接收智能选卡策略,用以激活所述目标用户所需的所述的实体卡。The method according to any one of claims 1-3, wherein the entity card is activated through the NFC terminal, further comprising: generating the simulated card and the card on the NFC terminal according to the standard static data For the mapping relationship of the physical card, the NFC terminal receives a smart card selection policy based on the mapping relationship to activate the physical card required by the target user.
  6. 根据权利要求5所述的方法,其中,所述智能选卡策略包括:基于地理位置信息的智能选卡策略或基于时间信息的智能选卡策略。The method according to claim 5, wherein the smart card selection strategy comprises: a smart card selection strategy based on geographic location information or a smart card selection strategy based on time information.
  7. 根据权利要求1-6任一项所述的方法,其中所述NFC读卡器通过所述NFC终端和所述NFC扩展设备获得所述实体卡的额外静态数据和/或动态数据,进一步包括:The method according to any one of claims 1-6, wherein the NFC card reader obtains additional static data and/or dynamic data of the entity card through the NFC terminal and the NFC extension device, further comprising:
    所述NFC读卡器向所述NFC终端发送用以获取所述实体卡的动态数据和/或额外静态数据的读写请求;The NFC card reader sends a read and write request to the NFC terminal to obtain the dynamic data and/or additional static data of the entity card;
    所述NFC终端将所述读写请求透传给所述NFC扩展设备;The NFC terminal transparently transmits the read-write request to the NFC extension device;
    所述NFC扩展设备将所述的读写请求透传给所述实体卡;The NFC extension device transparently transmits the read-write request to the physical card;
    所述实体卡响应于所述读写请求,向所述NFC扩展设备返回读写响应,所述读写响应包含所述动态数据和\或所述额外静态数据;The entity card returns a read-write response to the NFC extension device in response to the read-write request, and the read-write response includes the dynamic data and/or the additional static data;
    所述NFC扩展设备将所述读写响应发送给所述NFC终端;以及The NFC extension device sends the read-write response to the NFC terminal; and
    所述NFC终端将所述读写响应发送至所述NFC读卡器。The NFC terminal sends the read-write response to the NFC card reader.
  8. 根据权利要求7所述的方法,其中所述NFC读卡器通过所述NFC终端获得所述实体卡的所述额外静态数据,进一步包括:The method according to claim 7, wherein the NFC card reader obtains the additional static data of the entity card through the NFC terminal, further comprising:
    在所述NFC扩展设备将所述读写响应发送给所述NFC终端之后,所述NFC终端存储M次所述读写请求和所述读写响应,当M为小于2的自然数时,所述NFC终端继续存储所述读写请求和所述读写响应;After the NFC extension device sends the read-write response to the NFC terminal, the NFC terminal stores the read-write request and the read-write response M times, and when M is a natural number less than 2, the The NFC terminal continues to store the read-write request and the read-write response;
    当M为大于等于2的自然数时,并且当所述读写请求与所述读写请求对应的读写响应同时相同时,则所述读写响应为额外静态数据,与所述额外静态数据对应的请求为额外静态数据请求,所述NFC终端得到所述额外静态数据和所述额外静态数据请求。When M is a natural number greater than or equal to 2, and when the read-write request and the read-write response corresponding to the read-write request are identical at the same time, the read-write response is additional static data corresponding to the additional static data The request is an additional static data request, and the NFC terminal obtains the additional static data and the additional static data request.
  9. 根据权利要求8所述的方法,其中所述NFC读卡器通过所述NFC终端获得所述实体卡的所述额外静态数据,进一步包括:The method according to claim 8, wherein the NFC card reader obtains the additional static data of the entity card through the NFC terminal, further comprising:
    当所述NFC终端接收的所述读写请求为所述额外静态数据请求时,则由所述NFC终端返回额外静态数据;或者,When the read and write request received by the NFC terminal is the additional static data request, the NFC terminal returns the additional static data; or,
    当所述读写请求不是所述额外静态数据请求时,则所述读写请求为动态数据请求,所述动态数据请求由所述NFC终端透传给NFC扩展设备。When the read-write request is not the additional static data request, the read-write request is a dynamic data request, and the dynamic data request is transparently transmitted to the NFC extension device by the NFC terminal.
  10. 根据权利要求1-9任一项所述的方法,其中,所述标准静态数据为用来区分实体卡的信息,其包括UID、通信协议类型或交互协商参数;所述额外静态数据为在刷卡过程中不会发生变化的信息,其包括:目标用户信息或静态密钥信息;所述动态数据为在刷卡过程中会发生变化的信息,其包括:动态密钥信息或金融相关信息。The method according to any one of claims 1-9, wherein the standard static data is information used to distinguish physical cards, including UID, communication protocol type or interaction negotiation parameters; the additional static data is The information that will not change during the process includes: target user information or static key information; the dynamic data is information that will change during the card swiping process, including: dynamic key information or financial related information.
  11. 根据权利要求1-10任一项所述的方法,其中,所述方法还包括:所述NFC扩展设备直接贴设或套设在所述实体卡上,或者,所述NFC扩展设备间接贴设或套设在所述实体卡上。The method according to any one of claims 1-10, wherein the method further comprises: directly affixing or sheathing the NFC extension device on the physical card, or indirectly affixing the NFC extension device Or set on the physical card.
  12. 根据权利要求7所述的方法,其中,所述NFC终端包括HCE应用,用于将所述读写请求透传给所述NFC扩展设备和用于将所述读写响应发送给所述NFC读卡器。The method according to claim 7, wherein the NFC terminal includes an HCE application for transparently transmitting the read-write request to the NFC extension device and for sending the read-write response to the NFC reader card holder.
  13. 根据权利要求7或12所述的方法,其中,所述方法还包括:The method according to claim 7 or 12, wherein the method further comprises:
    所述NFC读卡器超时重发时,重发N次所述读写请求形成N个重发的读写请求,其中N为大于等于1的自然数;When the NFC card reader resends overtime, resends the read and write requests N times to form N resent read and write requests, wherein N is a natural number greater than or equal to 1;
    所述NFC扩展设备过滤所述重发的读写请求,并以与所述读写请求对应的读写响应作为第N个重发的读写请求的重发响应,其中N为大于等于1的自然数。The NFC extension device filters the retransmitted read-write request, and uses the read-write response corresponding to the read-write request as the retransmission response of the Nth retransmitted read-write request, where N is greater than or equal to 1 Natural number.
  14. 根据权利要求7或12所述的方法,其中,所述方法还包括:The method according to claim 7 or 12, wherein the method further comprises:
    所述NFC读卡器超时重发时,所述NFC终端通过第一通信协议申请所述NFC读卡器设定更大的超时时间。When the NFC card reader resends overtime, the NFC terminal applies to the NFC card reader to set a larger timeout time through the first communication protocol.
  15. 根据权利要求1-14任一项所述的方法,其中,所述方法还包括:在所述NFC终端通过所述NFC扩展设备获得所述实体卡的所述标准静态数据之后,所述NFC终端基于所述标准静态数据和/或所述NFC读卡器的参数,设定帧等待整数时间(FWI),用以申请所述NFC读卡器设定超时时间,所述参数包括:通讯超时参数。The method according to any one of claims 1-14, wherein the method further comprises: after the NFC terminal obtains the standard static data of the entity card through the NFC extension device, the NFC terminal Based on the standard static data and/or the parameters of the NFC card reader, the frame wait integer time (FWI) is set to apply for the NFC card reader to set the timeout period, and the parameters include: communication timeout parameters .
  16. 根据权利要求15所述的方法,其中,所述方法还包括:在所述NFC终端设定帧等待整数时间,用以申请所述NFC读卡器设定超时时间之后,仍存在超时重发的情况,则所述NFC终端重新设定所述帧等待整数时间,用以申请所述NFC读卡器设定更大的超时时间。The method according to claim 15, wherein the method further comprises: after the NFC terminal sets the frame to wait for an integer time to apply for the NFC card reader to set the timeout time, there is still a possibility of overtime retransmission In this case, the NFC terminal resets the frame waiting integer time to apply to the NFC card reader to set a larger timeout period.
  17. 根据权利要求16所述的方法,其中,当存在超时重发的情况,则所述NFC终端重新设定所述帧等待整数时间之后,所述NFC终端记录所述NFC终端重新设定的所述帧等待整数时间,用以在后续的所述NFC终端与所述NFC读卡器的通信中调用。The method according to claim 16, wherein, when there is an overtime retransmission, after the NFC terminal resets the frame and waits for an integer time, the NFC terminal records the NFC terminal resets the The frame waits for an integer time, and is used for calling in the subsequent communication between the NFC terminal and the NFC card reader.
  18. 一种NFC卡模拟的方法,其中,NFC终端通过NFC扩展设备实现实体卡的模拟,所述方法包括:A method for NFC card simulation, wherein the NFC terminal realizes the simulation of the physical card through the NFC extension device, the method comprising:
    所述NFC终端通过所述NFC扩展设备获得所述实体卡的标准静态数据,所述NFC扩展设备与所述实体卡之间基于第一通信协议通信,所述NFC终端与所述NFC扩展设备基于第二通信协议通信;The NFC terminal obtains the standard static data of the entity card through the NFC extension device, the NFC extension device communicates with the entity card based on a first communication protocol, and the NFC terminal and the NFC extension device are based on second communication protocol communication;
    根据所述实体卡的标准静态数据,在NFC终端上生成模拟卡与所述实体卡的映射关系。According to the standard static data of the physical card, a mapping relationship between the simulated card and the physical card is generated on the NFC terminal.
  19. 根据权利要求18所述的方法,其中,所述方法还包括:The method according to claim 18, wherein said method further comprises:
    所述NFC终端接收基于所述映射关系的选卡指令,激活与所述选卡指令对应的所述实体卡;The NFC terminal receives a card selection instruction based on the mapping relationship, and activates the physical card corresponding to the card selection instruction;
    所述NFC终端接收NFC读卡器发送的获取所述实体卡的额外静态数据和/或动态数据的读写请求,所述NFC终端通过所述NFC扩展设备获取所述实体卡的读写响应,所述读写响应包含额外静态数据和/或动态数据;以及The NFC terminal receives a read-write request for obtaining additional static data and/or dynamic data of the physical card sent by the NFC card reader, and the NFC terminal obtains a read-write response of the physical card through the NFC extension device, said read and write responses contain additional static data and/or dynamic data; and
    发送所述实体卡的额外静态数据和/或动态数据至所述NFC读卡器。sending the additional static data and/or dynamic data of the physical card to the NFC card reader.
  20. 根据权利要求18或19所述的方法,其中,所述第一通信协议为近场通信协议,所述近场通信协议包括:NFC协议或RFID协议;所述第二通信协议为无线通信协议,所述无线通信协议包括:蓝牙协议、WiFi协议、3G协议、4G协议或5G协议。The method according to claim 18 or 19, wherein the first communication protocol is a near field communication protocol, and the near field communication protocol includes: NFC protocol or RFID protocol; the second communication protocol is a wireless communication protocol, The wireless communication protocol includes: Bluetooth protocol, WiFi protocol, 3G protocol, 4G protocol or 5G protocol.
  21. 根据权利要求19所述的方法,其中,所述NFC终端发送所述实体卡的额外静态数据和/或动态数据至所述NFC读卡器,进一步包括:The method according to claim 19, wherein the NFC terminal sends the additional static data and/or dynamic data of the entity card to the NFC card reader, further comprising:
    所述NFC终端发送由NFC扩展设备发送至NFC终端的所述额外静态数据 和/或动态数据;或者The NFC terminal sends the additional static data and/or dynamic data sent to the NFC terminal by the NFC extension device; or
    所述NFC终端返回所述额外静态数据至所述NFC读卡器,所述NFC终端发送由NFC扩展设备发送至NFC终端的所述动态数据。The NFC terminal returns the additional static data to the NFC card reader, and the NFC terminal sends the dynamic data sent to the NFC terminal by the NFC extension device.
  22. 根据权利要求21所述的方法,其中,所述NFC终端返回所述额外静态数据至所述NFC读卡器,进一步包括:The method according to claim 21, wherein the NFC terminal returns the additional static data to the NFC card reader, further comprising:
    在所述NFC终端通过所述NFC扩展设备获取所述实体卡的读写响应之后,所述NFC终端存储M次所述读写请求和所述读写响应,当M为小于2的自然数时,所述NFC终端继续存储所述读写请求和所述读写响应;After the NFC terminal obtains the read-write response of the entity card through the NFC extension device, the NFC terminal stores the read-write request and the read-write response M times, and when M is a natural number less than 2, The NFC terminal continues to store the read-write request and the read-write response;
    当M为大于等于2的自然数,并且当所述读写请求、与所述读写请求对应的读写响应同时相同时,则所述读写响应为额外静态数据,与所述额外静态数据对应的请求为额外静态数据请求,所述NFC终端得到所述额外静态数据和所述额外静态数据请求。When M is a natural number greater than or equal to 2, and when the read-write request and the read-write response corresponding to the read-write request are identical at the same time, the read-write response is additional static data corresponding to the additional static data The request is an additional static data request, and the NFC terminal obtains the additional static data and the additional static data request.
  23. 根据权利要求22所述的方法,其中,所述NFC终端返回所述额外静态数据至所述NFC读卡器,还包括:The method according to claim 22, wherein the NFC terminal returns the additional static data to the NFC card reader, further comprising:
    当所述NFC终端接收的所述读写请求为所述额外静态数据请求时,则由所述NFC终端返回额外静态数据;或者,When the read and write request received by the NFC terminal is the additional static data request, the NFC terminal returns the additional static data; or,
    当所述读写请求不是所述额外静态数据请求时,则所述读写请求为动态数据请求,所述动态数据请求由所述NFC终端透传给NFC扩展设备用以获取所述实体卡的动态数据,所述NFC终端接收所述动态数据并将所述动态数据发送到所述NFC读卡器。When the read-write request is not the additional static data request, the read-write request is a dynamic data request, and the dynamic data request is transparently transmitted by the NFC terminal to the NFC extension device to obtain the physical card For dynamic data, the NFC terminal receives the dynamic data and sends the dynamic data to the NFC card reader.
  24. 一种NFC卡模拟的方法,其中,所述方法用于通过NFC扩展设备实现实体卡在NFC终端的卡模拟,所述NFC扩展设备与所述实体卡之间基于第一通信协议通信,所述NFC终端与所述NFC扩展设备基于第二通信协议通信,所述方法包括:A method for emulating an NFC card, wherein the method is used to realize card emulation of an entity card in an NFC terminal through an NFC extension device, wherein the NFC extension device and the entity card communicate based on a first communication protocol, and the NFC extension device communicates with the entity card based on a first communication protocol. The NFC terminal communicates with the NFC extension device based on a second communication protocol, and the method includes:
    所述NFC扩展设备接收所述NFC终端发送的用于获取所述实体卡的标准静态数据的寻卡命令;The NFC extension device receives a card search command sent by the NFC terminal for obtaining standard static data of the physical card;
    所述NFC扩展设备将所述寻卡命令发送给所述实体卡;The NFC extension device sends the card search command to the physical card;
    所述NFC扩展设备接收所述实体卡返回的标准静态数据,并发送给所述NFC终端,使得所述NFC终端根据所述实体卡的标准静态数据,在所述NFC 终端上生成模拟卡与所述实体卡的映射关系。The NFC extension device receives the standard static data returned by the physical card and sends it to the NFC terminal, so that the NFC terminal generates a simulated card and the static data on the NFC terminal according to the standard static data of the physical card. The mapping relationship between the physical cards described above.
  25. 根据权利要求24所述的方法,其中,所述方法还包括:The method according to claim 24, wherein said method further comprises:
    所述NFC扩展设备接收所述NFC终端发送的用于获取所述实体卡的额外静态数据和/或动态数据的读写请求,所述NFC扩展设备从所述实体卡获取所述实体卡的额外静态数据和/或动态数据;以及The NFC extension device receives a read and write request for obtaining additional static data and/or dynamic data of the physical card sent by the NFC terminal, and the NFC extension device obtains the additional static data and/or dynamic data of the physical card from the physical card. Data at rest and/or data in motion; and
    发送所述实体卡的额外静态数据和/或动态数据至所述NFC终端。sending the additional static data and/or dynamic data of the physical card to the NFC terminal.
  26. 根据权利要求24或25所述的方法,其中,所述第一通信协议为近场通信协议,所述近场通信协议包括:NFC协议或RFID协议;所述第二通信协议为无线通信协议,所述无线通信协议包括:蓝牙协议、WiFi协议、3G协议、4G协议或5G协议。The method according to claim 24 or 25, wherein the first communication protocol is a near field communication protocol, and the near field communication protocol includes: NFC protocol or RFID protocol; the second communication protocol is a wireless communication protocol, The wireless communication protocol includes: Bluetooth protocol, WiFi protocol, 3G protocol, 4G protocol or 5G protocol.
  27. 一种NFC终端,其中,所述NFC终端支持第一通信协议和第二通信协议,所述NFC终端包括:存储器、支持第一通信协议和第二通信协议的芯片以及一个或多个处理器;所述存储器与所述一个或多个处理器耦合,所述存储器用于存储计算机程序代码,所述计算机程序代码包括计算机指令,所述一个或多个处理器调用所述计算机指令以使得所述NFC终端执行:An NFC terminal, wherein the NFC terminal supports a first communication protocol and a second communication protocol, and the NFC terminal includes: a memory, a chip supporting the first communication protocol and the second communication protocol, and one or more processors; The memory is coupled to the one or more processors, the memory is used to store computer program code, the computer program code includes computer instructions, and the one or more processors invoke the computer instructions to make the The NFC terminal executes:
    通过NFC扩展设备获得所述实体卡的标准静态数据,所述NFC扩展设备与所述实体卡之间基于第一通信协议通信,所述NFC终端与所述NFC扩展设备基于第二通信协议通信;Obtain the standard static data of the entity card through the NFC extension device, the NFC extension device communicates with the entity card based on a first communication protocol, and the NFC terminal communicates with the NFC extension device based on a second communication protocol;
    根据所述实体卡的标准静态数据,在NFC终端上生成模拟卡与所述实体卡的映射关系。According to the standard static data of the physical card, a mapping relationship between the simulated card and the physical card is generated on the NFC terminal.
  28. 根据权利要求27所述的NFC终端,其中,所述一个或多个处理器还用于调用述计算机指令以使得所述NFC终端执行:The NFC terminal according to claim 27, wherein the one or more processors are further configured to call the computer instructions so that the NFC terminal performs:
    接收基于所述映射关系的选卡指令,激活与所述选卡指令对应的所述实体卡;receiving a card selection instruction based on the mapping relationship, and activating the physical card corresponding to the card selection instruction;
    接收NFC读卡器发送的获取所述实体卡的额外静态数据和/或动态数据的读写请求,所述NFC终端通过所述NFC扩展设备获取所述实体卡返回的读写响应,所述读写响应包含额外静态数据和/或动态数据;以及receiving the read-write request sent by the NFC card reader to obtain additional static data and/or dynamic data of the physical card, the NFC terminal obtains the read-write response returned by the physical card through the NFC extension device, and the read-write write responses containing additional static data and/or dynamic data; and
    发送所述实体卡的额外静态数据和/或动态数据至所述NFC读卡器。sending the additional static data and/or dynamic data of the physical card to the NFC card reader.
  29. 根据权利要求27或28所述的NFC终端,其中,所述第一通信协议 为近场通信协议,所述近场通信协议包括:NFC协议或RFID协议;所述第二通信协议为无线通信协议,所述无线通信协议包括:蓝牙协议、WiFi协议、3G协议、4G协议或5G协议。The NFC terminal according to claim 27 or 28, wherein the first communication protocol is a near field communication protocol, and the near field communication protocol includes: NFC protocol or RFID protocol; the second communication protocol is a wireless communication protocol , the wireless communication protocol includes: Bluetooth protocol, WiFi protocol, 3G protocol, 4G protocol or 5G protocol.
  30. 根据权利要求28所述的NFC终端,其中,在所述NFC终端发送所述实体卡的额外静态数据和/或动态数据至所述NFC读卡器的情况下,所述一个或多个处理器具体用于调用述计算机指令以使得所述NFC终端执行:The NFC terminal according to claim 28, wherein, when the NFC terminal sends additional static data and/or dynamic data of the entity card to the NFC card reader, the one or more processors Specifically for calling the computer instruction so that the NFC terminal executes:
    发送由NFC扩展设备发送至NFC终端的所述额外静态数据和/或动态数据;或者sending the additional static data and/or dynamic data sent by the NFC extension device to the NFC terminal; or
    所述NFC终端返回所述额外静态数据至所述NFC读卡器,所述NFC终端发送由NFC扩展设备发送至NFC终端的所述动态数据。The NFC terminal returns the additional static data to the NFC card reader, and the NFC terminal sends the dynamic data sent to the NFC terminal by the NFC extension device.
  31. 根据权利要求30所述的NFC终端,其中,在所述NFC终端返回所述额外静态数据至所述NFC读卡器的情况下,所述一个或多个处理器具体用于调用述计算机指令以使得所述NFC终端执行:The NFC terminal according to claim 30, wherein, when the NFC terminal returns the additional static data to the NFC card reader, the one or more processors are specifically configured to call the computer instructions to causing the NFC terminal to execute:
    在所述NFC终端通过所述NFC扩展设备获取所述实体卡的读写响应之后,所述NFC终端存储M次所述读写请求和所述读写响应,当M为小于2的自然数时,所述NFC终端继续存储所述读写请求和所述读写响应;After the NFC terminal obtains the read-write response of the entity card through the NFC extension device, the NFC terminal stores the read-write request and the read-write response M times, and when M is a natural number less than 2, The NFC terminal continues to store the read-write request and the read-write response;
    当M为大于等于2的自然数,并且当所述读写请求、与所述读写请求对应的读写响应同时相同时,则所述读写响应为额外静态数据,与所述额外静态数据对应的请求为额外静态数据请求,所述NFC终端得到所述额外静态数据和所述额外静态数据请求。When M is a natural number greater than or equal to 2, and when the read-write request and the read-write response corresponding to the read-write request are identical at the same time, the read-write response is additional static data corresponding to the additional static data The request is an additional static data request, and the NFC terminal obtains the additional static data and the additional static data request.
  32. 根据权利要求30或31所述的NFC终端,其中,在所述NFC终端返回所述额外静态数据至所述NFC读卡器的情况下,所述一个或多个处理器还用于调用述计算机指令以使得所述NFC终端执行:The NFC terminal according to claim 30 or 31, wherein, when the NFC terminal returns the additional static data to the NFC card reader, the one or more processors are further configured to call the computer Instructions to cause the NFC terminal to execute:
    当接收的所述读写请求为所述额外静态数据请求时,则由所述NFC终端返回所述额外静态数据;或者,When the received read and write request is the additional static data request, the NFC terminal returns the additional static data; or,
    当所述读写请求不是所述额外静态数据请求时,则所述读写请求为动态数据请求,所述动态数据请求由所述NFC终端透传给NFC扩展设备用以获取所述实体卡的动态数据,所述NFC终端接收所述动态数据并将所述动态数据发送到所述NFC读卡器。When the read-write request is not the additional static data request, the read-write request is a dynamic data request, and the dynamic data request is transparently transmitted by the NFC terminal to the NFC extension device to obtain the physical card For dynamic data, the NFC terminal receives the dynamic data and sends the dynamic data to the NFC card reader.
  33. 一种NFC扩展设备,其中,所述NFC扩展设备用于同NFC终端以及实体卡通信,包括:处理器、应用模块、操作系统模块、传输模块和射频识别模块,其中,An NFC extension device, wherein the NFC extension device is used for communicating with an NFC terminal and an entity card, including: a processor, an application module, an operating system module, a transmission module and a radio frequency identification module, wherein,
    所述传输模块用于与NFC终端基于第二通信协议通信,接收所述NFC终端发送的用于获取所述实体卡的标准静态数据的寻卡命令,将所述寻卡命令发送给所述实体卡,将所述标准静态数据基于第二通信协议发送给所述NFC终端,使得所述NFC终端根据所述实体卡的标准静态数据,在所述NFC终端上生成模拟卡与所述实体卡的映射关系;The transmission module is configured to communicate with the NFC terminal based on the second communication protocol, receive a card search command sent by the NFC terminal for obtaining standard static data of the entity card, and send the card search command to the entity card, sending the standard static data to the NFC terminal based on the second communication protocol, so that the NFC terminal generates a connection between the simulated card and the physical card on the NFC terminal according to the standard static data of the physical card Mapping relations;
    所述射频识别模块用于与所述实体卡基于第一通信协议通信,接收所述实体卡返回的标准静态数据。The radio frequency identification module is used to communicate with the entity card based on the first communication protocol, and receive the standard static data returned by the entity card.
  34. 根据权利要求33所述的NFC扩展设备,其中,所述NFC扩展设备还用于:The NFC extension device according to claim 33, wherein the NFC extension device is also used for:
    所述传输模块用于接收所述NFC终端发送的用于获取所述实体卡的额外静态数据和/或动态数据的读写请求,所述射频识别模块用于从所述实体卡获取所述实体卡的额外静态数据和/或动态数据;以及The transmission module is used to receive a read and write request sent by the NFC terminal for obtaining additional static data and/or dynamic data of the entity card, and the radio frequency identification module is used to obtain the entity card from the entity card additional static data and/or dynamic data of the card; and
    所述传输模块用于发送所述实体卡的额外静态数据和/或动态数据至所述NFC终端。The transmission module is used to send the additional static data and/or dynamic data of the entity card to the NFC terminal.
  35. 根据权利要求33或34所述的NFC扩展设备,其中,所述第一通信协议为近场通信协议,所述近场通信协议包括:NFC协议或RFID协议;所述第二通信协议为无线通信协议,所述无线通信协议包括:蓝牙协议、WiFi协议、3G协议、4G协议或5G协议。The NFC extension device according to claim 33 or 34, wherein the first communication protocol is a near field communication protocol, and the near field communication protocol includes: NFC protocol or RFID protocol; the second communication protocol is wireless communication Protocol, the wireless communication protocol includes: Bluetooth protocol, WiFi protocol, 3G protocol, 4G protocol or 5G protocol.
PCT/CN2022/109287 2021-10-08 2022-07-30 Method for extending simulation function of nfc card, nfc extension device and nfc terminal WO2023056775A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111172375.2A CN113965228B (en) 2021-10-08 2021-10-08 Method for expanding NFC card simulation function, NFC expansion device and NFC terminal
CN202111172375.2 2021-10-08

Publications (1)

Publication Number Publication Date
WO2023056775A1 true WO2023056775A1 (en) 2023-04-13

Family

ID=79463576

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/109287 WO2023056775A1 (en) 2021-10-08 2022-07-30 Method for extending simulation function of nfc card, nfc extension device and nfc terminal

Country Status (2)

Country Link
CN (1) CN113965228B (en)
WO (1) WO2023056775A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117278071A (en) * 2023-11-21 2023-12-22 深圳市天龙世纪科技发展有限公司 NFC-based compatible antenna control method, system and storage medium

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115102583B (en) * 2022-08-25 2022-10-25 北京紫光青藤微系统有限公司 NFC communication method, NFC communication device, readable medium and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013112839A1 (en) * 2012-01-26 2013-08-01 Digital Life Technologies Llc Portable e-wallet and universal card
CN105868978A (en) * 2016-03-25 2016-08-17 福建联迪商用设备有限公司 NFC mobile payment method and system thereof
CN105991527A (en) * 2014-11-07 2016-10-05 天地融科技股份有限公司 Data interaction system
CN108156594A (en) * 2017-12-26 2018-06-12 上海展扬通信技术有限公司 A kind of method and terminal for realizing virtual card
CN111784335A (en) * 2020-07-17 2020-10-16 Oppo广东移动通信有限公司 Analog card management method, analog card management device, storage medium, and electronic apparatus

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FR2816785B1 (en) * 2000-11-10 2002-12-20 Bull Cp8 COMMUNICATION PROTOCOL BETWEEN A PRO-ACTIVE CHIP CARD AND ITS HOST TERMINAL
CN1901450A (en) * 2006-07-13 2007-01-24 陈义 Mobile communication device with virtual user identifying card and its realizing method
CN201718053U (en) * 2010-06-18 2011-01-19 深圳钱袋商务有限公司 Non-contact electronic card terminal
US10147086B2 (en) * 2012-12-19 2018-12-04 Nxp B.V. Digital wallet device for virtual wallet
CN104050565B (en) * 2014-06-30 2018-06-22 深圳市可秉资产管理合伙企业(有限合伙) Intelligent payment system and its mobile terminal based on PBOC payment networks
CN109640297B (en) * 2018-11-30 2022-02-18 北京红枣科技有限公司 Card-free interaction system and card simulation equipment
CN109547554B (en) * 2018-11-30 2022-04-15 北京红枣科技有限公司 Card-free interaction system and card simulation equipment
CN109544146B (en) * 2018-11-30 2023-06-16 北京红枣科技有限公司 Card-free interaction system and analog card equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013112839A1 (en) * 2012-01-26 2013-08-01 Digital Life Technologies Llc Portable e-wallet and universal card
CN105991527A (en) * 2014-11-07 2016-10-05 天地融科技股份有限公司 Data interaction system
CN105868978A (en) * 2016-03-25 2016-08-17 福建联迪商用设备有限公司 NFC mobile payment method and system thereof
CN108156594A (en) * 2017-12-26 2018-06-12 上海展扬通信技术有限公司 A kind of method and terminal for realizing virtual card
CN111784335A (en) * 2020-07-17 2020-10-16 Oppo广东移动通信有限公司 Analog card management method, analog card management device, storage medium, and electronic apparatus

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117278071A (en) * 2023-11-21 2023-12-22 深圳市天龙世纪科技发展有限公司 NFC-based compatible antenna control method, system and storage medium

Also Published As

Publication number Publication date
CN113965228A (en) 2022-01-21
CN113965228B (en) 2022-08-12

Similar Documents

Publication Publication Date Title
WO2020182064A1 (en) Method for automatically selecting nfc emulation card, electronic apparatus, and communications system
US10887769B2 (en) Secure elements broker (SEB) for application communication channel selector optimization
WO2023056775A1 (en) Method for extending simulation function of nfc card, nfc extension device and nfc terminal
TWI504229B (en) Mobile device with electronic wallet function
US8532572B2 (en) Mobile integrated distribution and transaction system and method for NFC services, and a mobile electronic device thereof
CN102404025B (en) A kind of terminal and the method processing payment transaction
US20210287204A1 (en) Near Field Communication NFC-Based Transaction Method and Device
Ghosh et al. Swing-pay: One card meets all user payment and identity needs: A digital card module using NFC and biometric authentication for peer-to-peer payment
US20110065385A1 (en) Near field communication device
WO2017185367A1 (en) Method for selecting transaction application, and terminal
US20070075133A1 (en) Method, System and Computer-Readable Medium for Radio Frequency Identification Device
CA2820701A1 (en) Hand-held self-provisioned pin ped communicator
US9483417B2 (en) Mobile electronic device with transceiver for wireless data exchange
CN104102939A (en) HCE (Host-base Card Emulation)-based NFC (Near Field Communication) system
WO2014205849A1 (en) Contactless payment method, device and system
WO2016023152A1 (en) Mobile payment method and apparatus as well as near field communication device
CN106372898B (en) Mobile communication device and cloud computer system
CN106503986B (en) Virtual resource transfer method and device
US20150007335A1 (en) Secured Multi-Directional, Multi-Interface Transaction Processing
EP2582062A1 (en) System, method and readable media for mobile distribution and transaction applied in near field communication (nfc) service
US20220398565A1 (en) Type 4 nfc tags as protocol interface
US10236937B2 (en) Managing contactless communications
US8369894B1 (en) Confirming certification of combinations of secure elements and mobile devices
CN107833031A (en) A kind of IC-card remaining sum collecting method and device
WO2020134876A1 (en) Method for handling relay attack and secure element

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: 22877799

Country of ref document: EP

Kind code of ref document: A1