WO2022099563A1 - Procédé de sélection de carte pour mode de simulation de carte nfc, puce, terminal, et support de stockage - Google Patents

Procédé de sélection de carte pour mode de simulation de carte nfc, puce, terminal, et support de stockage Download PDF

Info

Publication number
WO2022099563A1
WO2022099563A1 PCT/CN2020/128477 CN2020128477W WO2022099563A1 WO 2022099563 A1 WO2022099563 A1 WO 2022099563A1 CN 2020128477 W CN2020128477 W CN 2020128477W WO 2022099563 A1 WO2022099563 A1 WO 2022099563A1
Authority
WO
WIPO (PCT)
Prior art keywords
card
smart card
candidate
smart
nfc
Prior art date
Application number
PCT/CN2020/128477
Other languages
English (en)
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 深圳市汇顶科技股份有限公司
Priority to PCT/CN2020/128477 priority Critical patent/WO2022099563A1/fr
Publication of WO2022099563A1 publication Critical patent/WO2022099563A1/fr

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • 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/14Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light

Definitions

  • the embodiments of the present application relate to the technical field of near field communication, and in particular, to a card selection method, a chip, a terminal, and a storage medium for an NFC card emulation mode.
  • NFC Near Field Communication
  • a terminal with NFC function can generally work in three modes: a card reader mode, a card emulation mode, and a peer-to-peer mode.
  • the card simulation mode means that the terminal can be simulated as a non-contact integrated circuit (Integrated Circuit, IC) card, and the user can interact with the card reader by holding the terminal to complete the swiping of bank cards, bus cards or access control cards, etc. Operation brings a lot of convenience to life.
  • IC integrated circuit
  • a handheld terminal such as a mobile phone
  • the user needs to perform a series of operations before swiping the card. These operations are as follows: first, light the screen of the mobile phone and enter the card selection program; then, select a card card for the next swipe; finally, hold the phone close to the card swipe device and use the selected card to swipe.
  • the purpose of the embodiments of the present application is to provide a card selection method, chip, terminal and storage medium for NFC card emulation mode, so that user operations can be reduced and the convenience of card swiping can be improved.
  • embodiments of the present application provide a card selection method for an NFC card emulation mode, including: after detecting that the terminal has entered the radio frequency range of the card reader, obtain the information about each candidate in the terminal.
  • Several candidate smart card groups obtained by grouping the smart cards; judging whether the several candidate smart card groups meet the filtering conditions, and obtaining each candidate smart card group that meets the filtering conditions; determining the priority of each candidate smart card group; According to the priority order of each candidate smart card group from high to low, traverse each candidate smart card group in turn, and try to establish communication with the card reader according to the information of the currently traversed candidate smart card group connection; if a communication connection is successfully established with the card reader according to the information of the currently traversed candidate smart card group, a target smart card is determined according to the currently traversed candidate smart card group, and the target smart card communicates with the The card reader performs the card swiping operation.
  • Embodiments of the present application also provide a card selection method for an NFC card emulation mode, including: after detecting that the terminal has entered the radio frequency range of the card reader, checking whether each candidate smart card in the terminal meets the filtering conditions , obtain each candidate smart card that meets the filtering conditions; determine the priority of each candidate smart card; according to the order of the priority of each candidate smart card from high to low, traverse each candidate smart card in turn smart card, and try to establish a communication connection with the card reader according to the currently traversed information of the candidate smart card; The currently traversed candidate smart card is swiped with the card reader.
  • An embodiment of the present application further provides a chip, the chip is located in a terminal and connected to a memory in the terminal, the memory stores an instruction that can be executed by the chip, and the instruction is executed by the chip , so that the chip can execute the above-mentioned card selection method for the NFC card emulation mode.
  • Embodiments of the present application further provide a terminal, including: the above-mentioned chip, and a memory connected to the chip.
  • Embodiments of the present application further provide a computer-readable storage medium storing a computer program, and when the computer program is executed by a processor, the above-mentioned card selection method for an NFC card emulation mode is implemented.
  • the terminal after it is detected that the terminal enters the radio frequency range of the card reader, that is, after the user approaches the card reader, there is no need to light up the screen of the terminal, enter the card selection program, and manually select the smart card to swipe the card, which is beneficial to reduce the number of users operation to improve the convenience of swiping cards.
  • each candidate smart card group is traversed in order from high to low, which is beneficial to try to establish a communication connection with the card reader according to the information of each candidate smart card group in a reasonable order, which is beneficial to Reduce the number of attempts and quickly establish a communication connection with the card reader, thereby further improving the speed of card selection.
  • the acquiring several candidate smart card groups obtained by grouping each candidate smart card in the terminal includes: according to parameters used for establishing a communication connection of each candidate smart card in the terminal, performing a grouping to obtain several candidate smart card groups; wherein, the parameters used for establishing the communication connection of the candidate smart cards in the same candidate smart card group do not conflict. That is to say, according to whether the parameters used to establish the communication connection of each candidate smart card conflict, the candidate smart cards are grouped, and the candidate smart cards for which the parameters used to establish the communication connection do not conflict are grouped into a group, which is beneficial to improve the grouping. rationality.
  • the screening conditions include: the geographic location of the terminal meets the geographic location requirement of the candidate smart card, and/or the security unit to which the candidate smart card belongs is allowed to be activated. That is to say, in the embodiments of the present application, the smart cards whose geographical location requirements can be satisfied and/or the smart cards to which the security unit to which they belong is allowed to be activated are filtered, and the smart cards and/or the security units to which the geographical location requirements are not satisfied are filtered out.
  • the smart cards that are not allowed to be activated are beneficial to control the number of candidate smart cards within a reasonable range, and improve the speed of successfully establishing a communication connection with the card reader without affecting the success rate of establishing a communication connection with the card reader.
  • the filtering conditions include: the NFC technology type of at least one candidate smart card in the candidate smart card group belongs to the NFC technology type supported by the card reader, and/or, there is at least one candidate smart card in the candidate smart card group
  • the card type belongs to the card type supported by the card reader. That is to say, filtering out candidate smart card groups that do not include candidate smart cards of the NFC technology type supported by the card reader, and/or candidate smart card groups that do not include candidate smart cards of the card type supported by the card reader, is conducive to reasonable matching
  • the candidate smart card group is filtered, which improves the possibility that the candidate smart card group obtained after filtering can successfully establish a communication connection with the card reader.
  • the information of the smart card group to be selected includes: the parameters of the smart card group to be selected for establishing a communication connection, and the parameters of the smart card group to be selected for establishing a communication connection are:
  • the merged parameters obtained by merging the parameters used to establish the communication connection of each candidate smart card in That is to say, the parameters for establishing a communication connection of the smart cards to be selected in the same smart card group to be selected are combined to obtain the parameters corresponding to the smart card group to be selected for establishing a communication connection, and then, according to the parameters corresponding to the smart card group to be selected
  • the parameters used to establish a communication connection are merged parameters.
  • Trying to establish a communication connection with the card reader is beneficial to reduce the number of attempts to establish a communication connection to a certain extent.
  • the parameters of establishing a communication connection are all performed a process of trying to establish a communication connection, which is beneficial to improve the speed of successfully establishing a communication connection with the card reader.
  • the method further includes: sending out notification information of card selection failure; and/or popping up a preset user interface.
  • a notification message can be sent to notify the user, so that the user can know the result of the current card selection failure, and/or a preset card selection interface for the user to select a smart card is popped up, which is beneficial to the user. Improve user experience.
  • FIG. 1 is a flowchart of a card selection method for an NFC card emulation mode according to a first embodiment of the present application
  • FIG. 2 is a flowchart of a card selection method for an NFC card emulation mode according to a second embodiment of the present application
  • FIG. 3 is a schematic diagram of a module for implementing a card selection method for an NFC card emulation mode according to a second embodiment of the present application;
  • FIG. 4 is a flowchart of a card selection method for an NFC card emulation mode according to a third embodiment of the present application.
  • FIG. 5 is a flowchart of a card selection method for an NFC card emulation mode according to a fourth embodiment of the present application.
  • FIG. 6 is a schematic structural diagram of a terminal according to a fifth embodiment of the present application.
  • the first embodiment of the present application relates to a card selection method for an NFC card emulation mode, which is applied to a contactless short-range communication chip, for example, the chip may be an NFC chip.
  • the NFC chip may be set in a terminal, and the terminal may be an electronic device such as a smart phone, a smart bracelet, and a smart watch.
  • the application scenarios of the embodiments of the present application may be: a user uses a terminal to simulate a smart card swiping business, and the card swiping business includes but is not limited to: swiping a bank card, swiping a bus card, and swiping an access control card.
  • the implementation details of the card selection method for the NFC card emulation mode in this embodiment will be specifically described below. The following contents are only implementation details provided for the convenience of understanding, and are not necessary for implementing this solution.
  • Various traditional smart cards such as bus cards, bank cards, medical insurance cards, etc.
  • chips There are two types of chips commonly used in smart cards.
  • One is contact card swiping, such as a common card POS machine, and the other is contactless card swiping, which contains a non-contact data transmission control chip like NFC (including supporting antenna), such as a common near card reader.
  • Swipe bus card These common physical card functions are simulated through the mobile phone terminal, which is called mobile phone simulation card. At this time, there is no real card, but the relevant information or program of the card is added in the mobile phone terminal to "simulate" a card.
  • an NFC chip is used herein to represent a complete chip module capable of implementing NFC communication, and a specific implementation manner may include a combination of an NFC control chip and an NFC antenna.
  • the flowchart of the card selection method for the NFC card emulation mode in this embodiment may be as shown in FIG. 1 , including:
  • Step 101 After detecting that the terminal enters the radio frequency range of the card reader, acquire several candidate smart card groups obtained by grouping each candidate smart card in the terminal.
  • both the card reader and the terminal have NFC function
  • the card reader can emit NFC radio frequency field
  • the terminal can sense the radio frequency field emitted by the card reader after entering the radio frequency range of the card reader. That is, if the terminal senses the radio frequency field emitted by the card reader, it can be determined that the terminal enters the radio frequency range of the card reader.
  • the terminal is a mobile phone
  • the user takes a bus, picks up the mobile phone and approaches the card reader configured on the bus
  • the mobile phone can detect the NFC radio frequency field of the card reader, so as to determine the radio frequency of the mobile phone entering the card reader scope.
  • the NFC chip in the mobile phone may detect the NFC radio frequency field of the card reader, so as to determine the radio frequency range of the mobile phone entering the card reader.
  • the user can pre-install a smart card that may be used in the terminal according to actual needs.
  • the smart card can be understood as a virtual electronic card, such as a bus card, an access control card, and a bank card.
  • Different smart cards can correspond to different applications.
  • the application corresponding to the smart card can be understood as the application program used to realize short-range communication, which has the simulation function for simulating the contactless IC card, that is, it has the function of simulating the smart card.
  • the applications corresponding to smart cards can be divided into different types, such as bus cards, access control cards, and bank cards, respectively, corresponding to bus card applications, access control card applications, and bank card applications.
  • the smart card installed in the terminal can also be understood as an application corresponding to the smart card installed in the terminal.
  • the smart card can actually be installed in a secure element (Secure Element, SE) in the terminal; wherein, the SE can provide a secure execution environment (such as authentication, authorization, etc.) for the operation of the smart card, and provide its sensitive data with Safe storage environment.
  • SE Secure Element
  • Multiple smart cards can be installed simultaneously in the SE by means of storage partitions and the like, and the SE can be an SE packaged together with an NFC chip.
  • the SE can exist in different forms, for example, the SE in the form of a subscriber identification module (SIM) card, that is, the SIM card is provided with the SE, the SE packaged with the NFC chip, and the printed circuit integrated in the terminal.
  • SIM subscriber identification module
  • the SE on the printed circuit board (PCB) and the SE integrated in the secure digital (SD) memory card, that is, the SD memory card is provided with the SE.
  • the SE may also exist in the terminal in other forms, which is not specifically limited in this embodiment. It should be noted that the SEs exist in the terminal in different forms, that is, the SEs may be set in different positions in the terminal, and the SEs in different positions may have similar functions.
  • each candidate smart card may be all smart cards in the terminal, that is, each candidate smart card includes the smart cards installed on all SEs in the terminal.
  • each candidate smart card may be a part of smart cards selected by the user among all smart cards in the terminal.
  • the user may select some smart cards with higher frequency of use among all the smart cards in the terminal as the candidate smart cards according to actual needs.
  • several candidate smart card groups obtained by grouping each candidate smart card in the terminal obtained by the NFC chip may be implemented as: several candidate smart card groups obtained by the NFC chip directly grouping each candidate smart card in the terminal.
  • the main control chip in the terminal can group each candidate smart card in the terminal to obtain several candidate smart card groups, and then the main control chip sends the grouping result to the NFC chip, so that the NFC chip can obtain several candidate smart card groups after the grouping. Smart card group. That is to say, the NFC chip only needs to receive the grouping result sent by the main control chip, and there is no need to embed more codes in the NFC chip in order to realize the function of grouping, which is beneficial to save the storage space of the NFC chip and reduce the production cost of the NFC chip.
  • each candidate smart card can be obtained, and each candidate smart card in the terminal is grouped according to the information of each candidate smart card to obtain several candidate smart card groups.
  • the NFC chip can send a command conforming to the Global Platform International Standards Organization (GP) specification or the International Standard Organization (ISO) 7816 specification to all SEs in the terminal, requesting to obtain all SEs Information about installed smart cards.
  • GP Global Platform International Standards Organization
  • ISO International Standard Organization
  • the SE After receiving the above command sent by the NFC chip, the SE returns the information of the smart card installed on the SE to the NFC chip.
  • the NFC chip obtains the information of each candidate smart card according to the information returned by the SE.
  • the main control chip in the terminal can send a command that conforms to the GP specification or ISO7816 specification to all SEs in the terminal, requesting to obtain the information of the smart cards installed on all SEs, that is, the SE receives the information sent by the main control chip. After the above command, the information of the smart card installed on the SE is returned to the main control chip. The main control chip obtains the information of each candidate smart card according to the information returned by the SE, and then sends the information of each candidate smart card to the NFC chip.
  • the NFC chip only needs to receive the information of each candidate smart card sent by the main control chip, and there is no need to embed more codes in the NFC chip in order to realize more functions, which is conducive to saving the storage space of the NFC chip and reducing the cost of the NFC chip. Cost of production.
  • the information of the smart card may include, but is not limited to: the application identifier (Application Identifier, AID) corresponding to the smart card, the contactless parameters of the smart card, the life cycle of the smart card, the geographic location requirements of the smart card, the NFC technology type of the smart card, Information about the security unit to which the smart card belongs, and the card type of the smart card. Geographic location requirements can also be referred to as: Global Positioning System (Global Positioning System, GPS) requirements.
  • the NFC technology type may be: NFC-A technology, NFC-B technology, NFC-F technology, etc.
  • the card type of the smart card may be bus type, access control type, bank card type, and the like.
  • the above non-contact parameters can be understood as: when the NFC chip simulates a smart card, the communication parameters used to establish an air interface connection with the card reader, that is, the non-contact parameters of the smart card are used to communicate with the card reader. Parameters for establishing a communication connection.
  • the contactless parameters may include but are not limited to: User Identification (UID), Answer to Request (ATQ), Select Acknowledge (SAK), and Answer To Select (Answer To Select) , ATS) etc.
  • each candidate smart card may be grouped according to the card type of each candidate smart card in the terminal, for example, the candidate smart cards with the same card type are grouped into the same candidate smart card group.
  • each candidate smart card may be grouped according to the NFC technology type supported by each candidate smart card in the terminal, for example, the candidate smart cards supporting the same NFC technology type are grouped into the same candidate smart card group.
  • each candidate smart card may be grouped according to the parameters for establishing a communication connection of each candidate smart card in the terminal to obtain several candidate smart card groups; wherein, the candidate smart cards in the same candidate smart card group are used for establishing There is no conflict between the parameters of the communication connection, and the parameters used to establish communication are the non-contact parameters. That is to say, according to whether the contactless parameters of the candidate smart cards are in conflict, the candidate smart cards whose contactless parameters do not have conflicting parameters can be grouped into a group, and several candidate smart card groups can be obtained, which facilitates the subsequent direct comparison of the candidate smart cards in the same group. The contactless parameters of the smart card are merged without conflict.
  • the contactless parameters of each candidate smart card can be compared pair-wise to determine whether the contactless parameters of any two candidate smart cards conflict, and a conflict list of each candidate smart card can be obtained.
  • the candidate smart cards are grouped to obtain several candidate smart card groups.
  • the conflict list of candidate smart card 1 includes candidate smart cards 2, 3, and 4, indicating that the contactless parameters of candidate smart cards 2, 3, and 4 conflict with the contactless parameters of candidate smart card 1, and cannot be grouped into one group. The following describes how to determine whether the contactless parameters of any two candidate smart cards conflict:
  • the NFC chip can use the contactless parameter conflict detection algorithm specified in the GP specification to detect whether there is a conflict between the contactless parameters of any two candidate smart cards.
  • the NFC chip can activate the candidate smart card 1 first, and then try to activate the candidate smart card 2. If the candidate smart card 2 is successfully activated, it means that there is no conflict between the contactless parameters of the candidate smart card 2 and the candidate smart card 1; If the activation of the candidate smart card 2 fails, it means that there is a conflict between the contactless parameters of the candidate smart card 2 and the candidate smart card 1.
  • the method of grouping each candidate smart card may be: according to the priority of each candidate smart card from high to bottom, traverse each candidate smart card in turn, if the contactless parameters of the traversed candidate smart card and the candidate smart card group The non-contact parameters of each smart card in the traversal do not conflict, and the traversed candidate smart cards are placed in the candidate smart card group.
  • the method for determining the priority of each candidate smart card may refer to the method for determining the priority mentioned in the first embodiment, which does not avoid repetition and will not be repeated here.
  • Step 102 Judging whether several candidate smart card groups meet the filtering conditions, and acquiring each candidate smart card group that meets the filtering conditions.
  • the NFC chip can, according to the parameters used for filtering of the candidate smart cards in each candidate smart card group and the information of the card reader, separate the several candidate smart card groups. It is judged whether the filter conditions are met, and each candidate smart card group that meets the filter conditions is obtained. It can also be understood that a candidate smart card group that satisfies the filtering conditions among several candidate smart card groups is called a candidate smart card group.
  • the second filter condition can be set according to actual needs.
  • the above-mentioned parameters for filtering the candidate smart card include: the near field communication NFC technology type of the candidate smart card, the card type of the candidate smart card, and the information of the card reader includes: the NFC technology type supported by the card reader, Card types supported by the card reader.
  • the filtering conditions may include: the NFC technology type of at least one candidate smart card in the candidate smart card group belongs to the NFC technology type supported by the card reader, and/or the card type of at least one candidate smart card in the candidate smart card group belongs to the card reader Supported card types.
  • filtering out candidate smart card groups that do not include candidate smart cards of the NFC technology type supported by the card reader, and/or candidate smart card groups that do not include candidate smart cards of the card type supported by the card reader is conducive to reasonable matching
  • the candidate smart card group is filtered, which improves the possibility that the candidate smart card group obtained after filtering can successfully establish a communication connection with the card reader.
  • the NFC technology types of all candidate smart cards in a candidate smart card group may form an NFC technology list
  • the card types of all candidate smart cards in the candidate smart card group may form a card type list.
  • the NFC technology list of the candidate smart card group is jointly determined by all the candidate smart cards in the candidate smart card group. For example, if there is a candidate smart card with NFC-A technology in the candidate smart card group, the candidate smart card group has NFC-A technology.
  • the NFC chip can determine the NFC technology type and card type of the card reader according to the RF frame after detecting the RF frame from the card reader, and then filter out the NFC technology type that does not include the NFC technology type supported by the card reader, and/or does not
  • the candidate smart card groups containing the card types supported by the card reader are filtered to obtain each candidate smart card group that meets the filtering conditions.
  • Step 103 Determine the priority of each candidate smart card group.
  • the priority of each candidate smart card in each candidate smart card group may be determined, and then, according to the priority of each candidate smart card group in each candidate smart card group, the priority of each candidate smart card group is determined.
  • the priority of the candidate smart card with the highest priority in each candidate smart card group may be used as the priority of each candidate smart card group. That is to say, the priority of a smart card group to be selected can be determined according to the priorities of the smart cards to be selected in the smart card group to be selected.
  • the present embodiment is not limited to this.
  • the information of each candidate smart card may further include a preset priority for each candidate smart card, so that the NFC chip can determine the priority of each candidate smart card in each candidate smart card group.
  • the preset priority for each candidate smart card can be set by the user according to actual needs. For example, the user can set a higher priority for candidate smart cards that are frequently used, and a lower priority for candidate smart cards that are used less frequently. class.
  • the method of determining the priority of each smart card to be selected in each smart card group to be selected is: according to the information of each smart card to be selected in each smart card group to be selected, determine the sorting weight corresponding to each smart card to be selected; The sorting weight corresponding to the smart cards to be selected determines the priority of each smart card to be selected.
  • the sorting weight corresponding to the smart card to be selected may be used as the priority. If there are multiple sorting weights corresponding to the smart cards to be selected, the priority of the smart cards to be selected may be determined in combination with the multiple sorting weights. For example, the sum of the multiple sorting weights of the smart cards to be selected is used as the priority of the smart cards to be selected. , or average multiple sorting weights of the smart card to be selected, and use the average value as the priority of the smart card to be selected, but it is not limited thereto. The following mainly describes the implementation manner of determining the sorting weight corresponding to each candidate smart card according to the information of each candidate smart card:
  • the information of each smart card to be selected may include a preset sorting weight for each smart card to be selected, so that the NFC chip can determine the sorting weight corresponding to each smart card to be selected according to the information of each smart card to be selected.
  • the sorting weight preset for each smart card to be selected can be set by the user according to actual needs.
  • the weight factor corresponding to each candidate smart card may be determined according to the information of each candidate smart card, and the sorting weight corresponding to each candidate smart card may be determined according to the weight factor corresponding to each candidate smart card.
  • the weighting factor includes: a first weighting factor determined based on whether the application corresponding to the smart card to be selected is a foreground application running on the terminal, and/or, based on the corresponding application of the smart card to be selected Whether the application is the second weighting factor determined by the terminal's default payment application.
  • the weighting factor includes: a third weighting factor determined based on whether the geographic location of the terminal satisfies the geographic location requirement of the smart card to be selected.
  • the weighting factor includes: a fourth weighting factor determined based on the historical times of activation of the smart card to be selected.
  • the weighting factors may include, but are not limited to, one or more of the above four weighting factors.
  • all the weighting factors corresponding to the smart cards to be selected can be added to obtain the sorting weights corresponding to the smart cards to be selected, or an average value of all the weighting factors corresponding to the smart cards to be selected can be obtained to obtain the sorting weights corresponding to the smart cards to be selected.
  • the weighting factor includes the above-mentioned third weighting factor
  • the geographic location of the terminal simultaneously meets the geographic location requirements of multiple candidate smart cards, then among the multiple candidate smart cards, the smaller the geographic location requirement range is.
  • the larger the third weighting factor corresponding to the smart card to be selected is.
  • the geographical location of the terminal is in Building A of Chengdu Company
  • the multiple smart cards to be selected include: a traffic smart card in Chengdu (referred to as smart card 1), and an access control smart card in Building A of Chengdu Company (referred to as smart card 2). It can be seen that the geographical location of the terminal meets the geographical location requirements of smart card 1 and smart card 2 at the same time.
  • smart card 2 Since smart card 2 has a smaller geographical location requirement range than smart card 1, smart card 2 has a higher third weight than smart card 1. factor, that is to say, a candidate smart card with a smaller geographical location requirement range will generate a larger sorting weight, which is conducive to a more reasonable determination of the third weighting factor.
  • the method for determining the first weighting factor if the application corresponding to the smart card to be selected is a foreground application being used by the terminal, the first weighting factor of the smart card to be selected is MaxIntValue/10; if the application corresponding to the smart card to be selected is not being used by the terminal For foreground applications, the first weighting factor of the smart card to be selected is 0. Among them, MaxIntValue can be a value set according to actual needs.
  • the method of determining the second weighting factor if the application corresponding to the smart card to be selected is the default payment application of the terminal, the second weighting factor of the smart card to be selected is MaxIntValue/100; if the application corresponding to the smart card to be selected is not the default payment application of the terminal, Then the second weighting factor of the smart card to be selected is 0.
  • the default payment application of the terminal may be an application selected by the user according to actual needs.
  • the method of determining the third weighting factor if the current geographic location of the terminal, that is, the GPS location information, is within the GPS requirement range of the smart card to be selected, then the third weighting factor of the smart card to be selected is MaxIntValue/100; if the current GPS location of the terminal If the information is not within the GPS requirement range of the smart card to be selected, the third weighting factor of the smart card to be selected is 0. In a specific implementation, if the current GPS location information of the terminal is within the GPS requirement range of multiple smart cards to be selected, the third weighting factor corresponding to the multiple smart cards to be selected can also be determined in the following manner:
  • the third weighting factor is MaxIntValue/100/GPS_rank; among them, GPS_rank is used in the scenario where the current GPS location information of the terminal meets the GPS requirements of multiple smart cards to be selected at the same time.
  • the current GPS location information of the terminal is in Building A of Chengdu Company, At the same time, it can meet the GPS requirements of two candidate smart cards.
  • These two candidate smart cards can be traffic smart cards in Chengdu (referred to as smart card 1) and access control smart cards in Building A of Chengdu Company (referred to as smart card 2).
  • the method for determining the fourth weighting factor the number of times the smart card to be selected is activated in the history is, for example, x times, and the fourth weighting factor of the smart card to be selected may be x.
  • the weight factor includes the above four weight factors at the same time as an example, and the specific implementation is not limited to this. It can be understood that, according to the weight factor of each smart card to be selected, the sorting weight of each smart card to be selected can be determined, so as to further determine the priority of each smart card to be selected according to the sorting weight, and the greater the sorting weight, the higher the priority. high.
  • Step 104 according to the order of priority of each candidate smart card group from high to low, traverse each candidate smart card group in turn, and try to establish a communication connection with the card reader according to the information of the currently traversed candidate smart card group.
  • the NFC chip can traverse each smart card group to be selected in order according to the priority of each smart card group to be selected from high to low, and according to the current traversal of the smart card group to be selected in the smart card group to be selected Contact parameters and try to establish a communication connection with the card reader respectively.
  • each candidate smart card group is a group obtained according to whether the contactless parameters of each candidate smart card conflict.
  • the information of the smart card group to be selected currently traversed includes: a combined parameter obtained by merging the parameters for establishing a communication connection of each smart card to be selected in the smart card group to be selected, and the combined parameter can be understood as the smart card group to be selected.
  • the contactless parameters of the smart cards to be selected are combined to obtain the parameters. That is, the contactless parameters of the smart cards to be selected in the same smart card group to be selected are combined to obtain the combined contactless parameters of the smart card group to be selected.
  • the contactless parameter combination algorithm specified in the GP specification can be used to combine the contactless parameters of the smart cards to be selected in the same smart card group to be selected to obtain the combined contactless parameters corresponding to the smart card group to be selected.
  • the non-contact parameters of the three smart cards to be selected in a smart card group to be selected are: parameter 1, parameter 2, parameter 3, then the smart card group to be selected obtained by combining parameters 1, parameter 2, and parameter 3 corresponds to
  • the merged contactless parameter can be the new parameter 4.
  • the NFC chip can traverse each candidate smart card group in order according to the priority of each candidate smart card group from high to low, and try to communicate with the card reader according to the combination parameters of the currently traversed candidate smart card group. Establish a communication connection. It can be understood that in this embodiment, an attempt is made to establish a communication connection with the card reader according to the currently traversed merging parameters of the candidate smart card group, which is beneficial to reduce the number of attempts to establish a communication connection to a certain extent.
  • the non-contact parameters of the smart card are selected to perform a process of trying to establish a communication connection, which is beneficial to reduce the number of attempts to establish a communication connection and improve the speed of successfully establishing a communication connection with the card reader.
  • the non-contact parameters of the three smart cards to be selected in a smart card group to be selected are: parameter 1, parameter 2, parameter 3, then parameter 1, parameter 2, and parameter 3 are combined to obtain a new parameter 4.
  • This implementation it is not necessary to perform a process of trying to establish a communication connection based on the contactless parameters of the three candidate smart cards, that is, parameter 1, parameter 2, and parameter 3, but try to establish a communication connection with the card reader based on the parameter 4 obtained after the combination.
  • the NFC chip uses the traversed non-contact parameters of the candidate smart card group to be selected.
  • the contact parameters and the card reader exchange radio frequency (RF) commands that conform to the NFC Forum standard protocol.
  • the contactless parameters of the currently traversed candidate smart card group will be filled in the RF commands to interact with the card reader and authenticate each other. and try to establish communication. If the RF command exchange is successful, it can be considered that the NFC chip can successfully establish a communication connection with the card reader through the contactless parameters of the currently traversed candidate smart card group. parameters communicate with the card reader.
  • RF radio frequency
  • the above-mentioned RF instruction may be an instruction in a frame format such as an Application Protocol Data Unit (Application Protocol Data Unit, APDU) frame format, a single-byte short frame format, a long frame format, or the like.
  • the RF instruction may be a 14443TYPE A, 14443TYPE B, ISO18092, ISO15693 and other type of instruction.
  • the RF command can be specifically: ALL_REQ Command, SENS_REQ Command, SENS_RES Response, SDD_REQ Command, SEL_REQ Command, SLP_REQ Command, etc. specified in the NFC Forum standard protocol.
  • Step 105 If a communication connection is successfully established with the card reader according to the information of the currently traversed candidate smart card group, the target smart card is determined according to the currently traversed candidate smart card group, and the target smart card and the card reader are swiped.
  • the NFC chip can activate all candidate smart cards in the currently traversed candidate smart card group; then, the NFC chip can activate all candidate smart cards in the currently traversed candidate smart card group; Based on the successfully established communication connection with the card reader, the card selection command from the card reader can be received, so that the candidate smart card corresponding to the card selection command is selected from the activated candidate smart cards as the target smart card, and the target smart card is used to carry out Swipe operation with card reader.
  • the card selection instruction may carry an AID, and the NFC chip may determine the smart card to be selected corresponding to the card selection instruction according to the AID carried in the card selection instruction.
  • the NFC chip can send out notification information of card selection failure;
  • the user selects a tabbed interface for a smart card.
  • the NFC chip can control the screen of the terminal, so that the notification information of card selection failure is displayed on the screen, and it can also control the terminal to vibrate to remind the user.
  • the NFC chip can also control the screen of the terminal, so that a card selection interface preset for the user to select a smart card pops up on the screen, which is convenient for the user to select.
  • a notification message can be sent to notify the user, so that the user can know the result of the current card selection failure, and/or a preset card selection interface for the user to select a smart card is popped up, which is beneficial to the user. Improve user experience.
  • each candidate smart card in the terminal is a part of all smart cards in the terminal, such as the one selected by the user.
  • Some smart cards are candidate smart cards and participate in the card selection method in this embodiment.
  • the terminal After the terminal currently enters the radio frequency range of the card reader, it is the smart cards of other smart cards other than the candidate smart card that can successfully establish a communication connection with the card reader. information. For example, bus cards of Chengdu and Xi'an are installed in the terminal, the user's permanent residence is Chengdu, and the user adds the Chengdu bus card to the list of candidate smart cards.
  • the NFC chip When the user goes to Xi'an for business and needs to take a bus, because the bus card in Xi'an is not in the list of candidate smart cards, the NFC chip will not successfully establish a communication connection with the card reader after traversing each candidate smart card group. At this time, the NFC chip can control the terminal to pop up a preset card selection interface for the user to select a smart card, so that the user can select the Xi'an bus card, thereby completing the card swiping operation.
  • the communication connection with the card reader has not been successfully established.
  • the possible reason is: the smart card that can complete the card swiping operation on the card reader is not installed in the terminal.
  • the NFC chip The terminal can be controlled to send out notification information of card selection failure to remind the user to install a smart card that can be swiped on the card reader.
  • the terminal after it is detected that the terminal enters the radio frequency range of the card reader, that is, after the user approaches the card reader, there is no need to light up the screen of the terminal, enter the card selection program, and manually select the smart card to swipe the card, which is beneficial to reduce user operations. Improve the convenience of swiping cards. Moreover, it is helpful to judge whether several candidate smart card groups meet the filtering conditions, that is, to filter by group, which is beneficial to improve the filtering speed and obtain each candidate smart card group that meets the filtering conditions, which is beneficial to narrow the traversal range and improve the traversal speed. , thereby increasing the card selection speed.
  • each candidate smart card group is traversed in order from high to low, which is beneficial to try to establish a communication connection with the card reader according to the information of each candidate smart card group in a reasonable order, which is beneficial to Reduce the number of attempts and quickly establish a communication connection with the card reader, thereby further improving the speed of card selection.
  • the second embodiment of the present application relates to a card selection method for an NFC card emulation mode.
  • the implementation details of the card selection method for the NFC card emulation mode in this embodiment will be specifically described below.
  • the following contents are only implementation details provided for the convenience of understanding, and are not necessary for implementing this solution.
  • the flowchart of the card selection method for the NFC card emulation mode in this embodiment may be as shown in FIG. 2 , including:
  • Step 201 Acquire each candidate smart card in the terminal that meets preset screening conditions.
  • each candidate smart card in this embodiment refers to that after judging whether all smart cards in the terminal meet the preset screening conditions, the smart cards that do not meet the screening conditions are eliminated, the smart cards that meet the screening conditions are retained, and the smart cards that meet the screening conditions are retained. It is the candidate smart card.
  • the NFC chip may start acquiring each candidate smart card in the terminal that meets the preset screening conditions when it is determined that the distance between the location of the terminal and the location of the card reader is less than a preset distance.
  • the preset distance can be set according to actual needs, and is used to represent the proximity of the terminal and the card reader. That is, when the positions of the terminal and the card reader are close to each other, each candidate smart card in the terminal that meets the preset screening conditions is acquired. Considering that when the positions of the terminal and the card reader are close, the user is more likely to swipe the card at the position where the card reader is installed. Therefore, when the positions of the terminal and the card reader are close to Each candidate smart card of the screening conditions is more reasonable, more in line with the user's card swiping habits, and provides convenience for the user to swipe the card.
  • the main control chip of the terminal can obtain the geographic location in real time or periodically, and determine that the distance between the location of the terminal and the location of the card reader is less than a preset distance, that is, determine the location where the terminal is located. Whether a card reader is installed near the geographical location, if it is determined that a card reader is installed near the geographical location of the terminal, it means that the user is more likely to swipe the card at the location where the card reader is installed. At this time, the main control chip can notify The NFC chip enables the NFC chip to start judging whether all smart cards in the terminal meet the preset screening conditions, and obtain each candidate smart card that meets the preset screening conditions.
  • the main control chip may judge whether all smart cards in the terminal meet the preset screening conditions, and obtain each candidate smart card that meets the preset screening conditions, and then the main control chip will determine whether the candidate smart cards meet the preset screening conditions.
  • the information is sent to the NFC chip. That is to say, the NFC chip only needs to receive the information of each candidate smart card that meets the preset screening conditions sent by the main control chip, and does not need to embed more codes in the NFC chip in order to realize more functions, which is beneficial to save the NFC chip. Storage space, reducing the production cost of NFC chips.
  • the method of judging whether the distance between the position of the terminal and the position of the card reader is less than the preset distance may be: an identifier may be preset at the position where the card reader is installed, so that the terminal can be based on the current geographical location.
  • the location determines whether there is a preset location within the preset geographic range, so as to determine whether a card reader is set near the geographic location of the terminal, that is, whether the distance between the location of the terminal and the location of the card reader is smaller than the preset location.
  • Set distance may be a circular area with the geographic location of the terminal as the center and r as the preset radius, and the size of the preset radius may be set according to actual needs. It should be noted that, the preset geographic range in this embodiment only takes the above-mentioned circular area as an example, which is not limited in specific implementation.
  • the button on the terminal that is used to indicate that the card selection function is turned on when it is detected that the button on the terminal that is used to indicate that the card selection function is turned on is pressed, it may start to judge whether each smart card in the terminal meets the preset screening conditions, and obtain a card that meets the preset screening conditions.
  • Each candidate smart card wherein, the key used to represent the opening of the card selection function may be a preset virtual key.
  • the button on the detection terminal that is used to indicate that the card selection function is turned on is pressed, it indicates that the user wants to start automatic card selection. At this time, each candidate smart card that meets the preset screening conditions in the terminal is obtained, which is easier to meet the user's requirements. Actual needs, improve user experience.
  • the screening conditions include: the geographic location of the terminal meets the geographic location requirement of the candidate smart card, and/or the security unit to which the candidate smart card belongs is allowed to be activated. That is to say, according to the current geographical location of the terminal, the smart cards whose geographical location requirements cannot be satisfied are eliminated, and/or the smart cards whose security units are not allowed to be activated are eliminated, which is conducive to rationally screening all smart cards in the terminal. .
  • the following examples are given:
  • the candidate smart card takes a traffic smart card in Chengdu as an example, and the GPS requirement of the traffic smart card is located within the geographic range of Chengdu. If the current geographic location of the terminal is within the geographic range of Chengdu, it can be determined that the geographic location of the terminal meets the geographic location requirement of the traffic smart card. If the current geographic location of the terminal is within the geographic range of Xi'an, it can be determined that the geographic location of the terminal does not meet the geographic location requirement of the traffic smart card, so that the Chengdu traffic smart card is directly filtered out and not used as a candidate smart card.
  • Whether the security unit to which the candidate smart card belongs is allowed to be activated can be set according to actual needs. For example, when the terminal leaves the factory, it has been set which security units in the terminal are allowed to be activated and which security units are not allowed to be activated. Alternatively, the terminal has reserved an interface for the user to set when leaving the factory, and the user can set which security units are allowed to be activated and which security units are not allowed to be activated according to the interface. In a specific implementation, the time and place where the security unit is allowed to be activated can also be set, that is, the security unit in the terminal is allowed to be activated only at a specific time and place.
  • Step 202 After detecting that the terminal enters the radio frequency range of the card reader, acquire several candidate smart card groups obtained by grouping each candidate smart card in the terminal.
  • Step 203 Judging whether several candidate smart card groups meet the filtering conditions, and acquiring each candidate smart card group that meets the filtering conditions.
  • Step 204 Determine the priority of each candidate smart card group.
  • Step 205 According to the priority of each candidate smart card group from high to low, traverse each candidate smart card group in turn, and try to establish a communication connection with the card reader according to the information of the currently traversed candidate smart card group.
  • Step 206 if according to the information of the currently traversed candidate smart card group, a communication connection is successfully established with the card reader, the target smart card is determined according to the currently traversed candidate smart card group, and the card swiping operation is performed by the target smart card and the card reader.
  • steps 202 to 206 are substantially the same as steps 101 to 105 in the first embodiment, and are not repeated here to avoid repetition.
  • each smart card in the terminal before the terminal enters the radio frequency range of the card reader, each smart card in the terminal is screened without combining the information of the card reader, and each candidate that meets the screening conditions is obtained. smart card. After the terminal enters the radio frequency range of the card reader, each candidate smart card group that meets the filtering conditions can be obtained according to the information of each candidate smart card in the terminal and the information of the card reader.
  • the card selection method for the NFC card emulation mode in this embodiment can be implemented based on the module diagram shown in FIG. 3 , including:
  • the smart card information acquisition module 301 is used to acquire the information of each smart card in the terminal
  • the non-contact parameter conflict detection module 302 is configured to detect whether there is a conflict between the non-contact parameters of each smart card.
  • the contactless parameters may also be referred to as contactless parameters, RF parameters, and parameters for establishing a communication connection.
  • the smart card screening module 303 is configured to screen each smart card in the terminal to obtain each candidate smart card that meets the screening conditions.
  • the smart card priority determination module 304 is configured to determine the priority of each candidate smart card, and optionally, the candidate smart cards may also be sorted according to the priority.
  • the smart card grouping and parameter merging module 305 is used to divide all the candidate smart cards into several groups, to ensure that there is no conflict between the contactless parameters of the candidate smart cards in each group, and to combine the non-contact parameters of all the candidate smart cards in the group. Contact parameters are merged into a new set of non-contact parameters.
  • the smart card group information delivery module 306 is configured to deliver the information of the grouped candidate smart card groups to the NFC chip, and specifically to the NFC controller in the NFC chip.
  • the information of the candidate smart card group includes but is not limited to the following information:
  • the identification and priority of the candidate smart card group wherein, the priority of the candidate smart card group can be determined by the candidate smart card with the highest priority in the candidate smart card group.
  • the NFC technology list of the candidate smart card group can be jointly determined by all the candidate smart cards in the candidate smart card group. For example, if there is a candidate smart card with NFC-A technology in the candidate smart card group, the candidate smart card group has NFC -A technology, that is, the NFC-A technology is included in the NFC technology list of the candidate smart card group.
  • the contactless parameters of the combined NFC-A technology, the contactless parameters of the combined NFC-B technology, and the contactless parameters of the combined NFC-F technology are provided.
  • the smart card group filtering module 307 is configured to filter several candidate smart card groups to obtain each candidate smart card group that satisfies the filtering conditions.
  • the non-contact parameter selection module 308 is used to traverse the above-mentioned various candidate smart card groups that meet the filter conditions from high priority to low priority, and use the merged non-contact parameters of the currently traversed candidate smart card group and the card reader to meet the requirements.
  • the RF command exchange of the NFC Forum standard protocol if the RF command exchange is successful, select the currently traversed candidate smart card group as the target smart card group, and the non-contact parameter corresponding to the target smart card group is the selection of the non-contact parameter selection module 308 result.
  • the smart card activation module 309 is used to activate all smart cards in the target smart card group.
  • the intelligent routing module 310 is used to establish a communication connection between the NFC chip and the card reader, and after all the smart cards in the target smart card group are activated, the NFC chip can route the data from the card reader to the correct security
  • the chip specifically, the NFC chip can receive the card selection instruction of the card reader, so as to select the target smart card among the activated smart cards according to the card selection instruction, and the security chip installed on the target smart card is the correct security chip mentioned above.
  • the smart card selection failure processing module 311 is configured to notify the terminal that the smart card selection fails after it is determined that the RF command cannot be correctly exchanged with the card reader after traversing all the candidate smart card groups.
  • the terminal may notify the user that the smart card selection fails, and pop up a preset card selection interface for the user to manually select a smart card.
  • the above modules 301 to 305 are all set in the main control chip in the terminal independent of the NFC chip, then the main control chip will also be set with a smart card group information issuing module 306, so that the smart card group information can be passed through the smart card group information distribution module 306.
  • the issuing module 306 sends the information of the candidate smart card group to the NFC chip, for example, the smart card group information issuing module 306 sends the information of the candidate smart card group to the smart card group filtering module 307 in the NFC chip.
  • the above-mentioned modules 301 to 306 are all disposed in the main control chip, and the above-mentioned modules 307 to 311 are all disposed in the NFC chip, and the main control chip is connected to the NFC chip.
  • the above-mentioned modules 301 to 305 are all disposed in the NFC chip, and the above-mentioned smart card group information issuing module 306 is not required in the NFC chip. That is, the modules 301 to 305 and the modules 307 to 311 may be provided in the NFC chip.
  • each module involved in this embodiment is a logical module.
  • a logical unit may be a physical unit, a part of a physical unit, or multiple physical units.
  • a composite implementation of the unit in order to highlight the innovative part of the present application, this embodiment does not introduce units that are not closely related to solving the technical problem raised by the present application, but this does not mean that there are no other units in this embodiment.
  • the terminal before the terminal has entered the radio frequency range of the card reader, it first reasonably filters out each candidate smart card that meets the screening conditions, which is beneficial to control the number of candidate smart cards within a reasonable range, without affecting and reading
  • the success rate of establishing a communication connection with the card reader increases the speed of successfully establishing a communication connection with the card reader.
  • some candidate smart card groups are filtered out, and each candidate smart card group that meets the filtering conditions is obtained, which is conducive to further narrowing the traversal range, improving the traversing speed, and thus improving the card selection speed.
  • the third embodiment of the present application relates to a card selection method for an NFC card emulation mode.
  • the implementation details of the card selection method for the NFC card emulation mode in this embodiment will be specifically described below.
  • the following contents are only implementation details provided for the convenience of understanding, and are not necessary for implementing this solution.
  • the flowchart of the card selection method for the NFC card emulation mode in this embodiment may be shown in FIG. 4 , including:
  • Step 401 After detecting that the terminal enters the radio frequency range of the card reader, judge whether each candidate smart card in the terminal satisfies the filter condition, and obtain each candidate smart card that meets the filter condition.
  • both the card reader and the terminal have NFC function
  • the card reader can emit NFC radio frequency field
  • the terminal can sense the radio frequency field emitted by the card reader after entering the radio frequency range of the card reader. That is, if the terminal senses the radio frequency field emitted by the card reader, it can be determined that the terminal enters the radio frequency range of the card reader.
  • the terminal is a mobile phone
  • the user takes a bus, picks up the mobile phone and approaches the card reader configured on the bus
  • the mobile phone can detect the NFC radio frequency field of the card reader, so as to determine the radio frequency of the mobile phone entering the card reader scope.
  • the NFC chip in the mobile phone may detect the NFC radio frequency field of the card reader, so as to determine the radio frequency range of the mobile phone entering the card reader.
  • the user can pre-install a smart card that may be used in the terminal according to actual needs.
  • the smart card can be understood as a virtual electronic card, such as a bus card, an access control card, and a bank card.
  • Different smart cards can correspond to different applications.
  • the application corresponding to the smart card can be understood as the application program used to realize short-range communication, which has the simulation function for simulating the contactless IC card, that is, it has the function of simulating the smart card.
  • the applications corresponding to smart cards can be divided into different types, such as bus cards, access control cards, and bank cards, respectively, corresponding to bus card applications, access control card applications, and bank card applications.
  • the smart card installed in the terminal can also be understood as an application corresponding to the smart card installed in the terminal.
  • the smart card can actually be installed in a secure element (Secure Element, SE) in the terminal; wherein, the SE can provide a secure execution environment (such as authentication, authorization, etc.) for the operation of the smart card, and provide its sensitive data with Safe storage environment.
  • SE Secure Element
  • Multiple smart cards can be installed simultaneously in the SE by means of storage partitions and the like, and the SE can be an SE packaged together with an NFC chip.
  • the SE can exist in different forms, for example, the SE in the form of a subscriber identification module (SIM) card, that is, the SIM card is provided with the SE, the SE packaged with the NFC chip, and the printing integrated in the terminal.
  • SIM subscriber identification module
  • the SE on the printed circuit board (PCB) and the SE integrated in the secure digital (SD) memory card, that is, the SD memory card is provided with the SE.
  • the SE may also exist in the terminal in other forms, which is not specifically limited in this embodiment. It should be noted that the SEs exist in the terminal in different forms, that is, the SEs may be set in different positions in the terminal, and the SEs in different positions may have similar functions.
  • each candidate smart card may be all smart cards in the terminal, that is, each candidate smart card includes the smart cards installed on all SEs in the terminal.
  • each candidate smart card may be a part of smart cards selected by the user among all smart cards in the terminal.
  • the user may select some smart cards with higher frequency of use among all the smart cards in the terminal as the candidate smart cards according to actual needs.
  • the NFC chip can judge whether each candidate smart card in the terminal satisfies the filtering conditions according to the information of each candidate smart card in the terminal and the information of the card reader, and obtain each candidate smart card that meets the filtering conditions.
  • the acquisition method of the information of the candidate smart card and the information of the card reader, as well as the content included in the information of the candidate smart card and the card reader reference may be made to the relevant description in the first embodiment. Repeat.
  • the filtering conditions include: the NFC technology type of the candidate smart card belongs to the NFC technology type supported by the card reader, and/or the card type of the candidate smart card belongs to the card type supported by the card reader. That is to say, eliminating candidate smart cards that do not belong to the NFC technology type supported by the card reader among the candidate smart cards, and/or eliminating candidate smart cards that do not belong to the card type supported by the card reader, is conducive to a reasonable understanding of the terminal. Each candidate smart card in is judged whether it satisfies the filter condition.
  • Step 402 Determine the priority of each candidate smart card.
  • Step 403 According to the priority of each candidate smart card from high to low, traverse each candidate smart card in turn, and try to establish a communication connection with the card reader according to the currently traversed information of the candidate smart card.
  • the information of the currently traversed smart card to be selected is a parameter of the smart card to be selected for establishing a communication connection, that is, a contactless parameter of the smart card to be selected. That is, the NFC chip traverses each candidate smart card in order from high to low according to the priority of each candidate smart card, and tries to establish a communication connection with the card reader according to the non-contact parameters of the currently traversed candidate smart card until it can communicate with the card reader.
  • the candidate smart card for which the card reader successfully establishes a communication connection stops traversing. It can also be understood that the NFC chip simulates the smart cards to be selected in sequence, and attempts to establish a communication connection with the card reader when simulating the smart cards to be selected.
  • an attempt is made to establish a communication connection with the card reader according to the currently traversed contactless parameters of the candidate smart card.
  • the radio frequency (RF) command exchange of the NFC Forum standard protocol the contactless parameters of the currently traversed candidate smart card will be filled in the RF command to interact with the card reader, authenticate each other and try to establish communication. If the RF command exchange is successful, it can be considered that the NFC chip can successfully establish a communication connection with the card reader through the contactless parameters of the currently traversed candidate smart card, that is, the NFC chip can use the traversed contactless parameters of the candidate smart card and card reader to communicate.
  • the above-mentioned RF instruction may be an instruction in a frame format such as an Application Protocol Data Unit (Application Protocol Data Unit, APDU) frame format, a single-byte short frame format, a long frame format, or the like.
  • the RF instruction may be a 14443TYPE A, 14443TYPE B, ISO18092, ISO15693 and other type of instruction.
  • the RF command can be specifically: ALL_REQ Command, SENS_REQ Command, SENS_RES Response, SDD_REQ Command, SEL_REQ Command, SLP_REQ Command, etc. specified in the NFC Forum standard protocol.
  • Step 404 If a communication connection is successfully established with the card reader according to the information of the currently traversed candidate smart card, and the card reader is swiped through the currently traversed candidate smart card.
  • the currently traversed candidate smart card is marked as the target smart card.
  • the card swiping operation through the target smart card and the card reader can be as follows: activating the target smart card, the NFC chip sends the data from the card reader to the SE where the target smart card is installed, and the SE processes the data to complete the card swiping operation.
  • the NFC chip can activate the target smart card.
  • the NFC chip receives the transaction instruction sent from the card reader, it can send the transaction instruction to the SE where the target smart card is installed, and use the secure execution environment provided by the SE to complete the transaction, that is, to swipe the bank card.
  • the manner of activating the target smart card may be: the NFC chip sends an instruction to the SE installed with the target smart card, so that the SE installed with the target smart card activates the target smart card.
  • the method of activating the target smart card may be: the NFC chip sends the AID corresponding to the target smart card to an application processor (application processor, AP) in the terminal, and the AP in the terminal initiates an activation instruction of the target smart card to the SE , thereby activating the target smart card.
  • the NFC chip can send a notification message that the card selection fails; and/or, pop up a preset for the user to select the smart card tab interface.
  • the processing method is the same as in the first embodiment, if after traversing the smart card groups to be selected, the communication with the card reader has not been successfully established.
  • the connection processing method is similar, and reference may be made to the relevant description in the first embodiment, which is not repeated here in order to avoid repetition.
  • the terminal after it is detected that the terminal enters the radio frequency range of the card reader, that is, after the user approaches the card reader, there is no need to light up the screen of the terminal, enter the card selection program, and manually select the smart card to swipe the card, which is beneficial to reduce user operations. Improve the convenience of swiping cards. Moreover, it is helpful to obtain each candidate smart card that meets the filter condition by judging whether each candidate smart card in the terminal satisfies the filter condition, and obtaining each candidate smart card that meets the filter condition, thereby reducing the traversal range and improving the traversal speed, so as to improve the Card selection speed.
  • each candidate smart card is traversed in order from high to low, which is beneficial to try to establish a communication connection with the card reader according to the information of each candidate smart card in a reasonable order, which is conducive to reducing the number of attempts The number of times, quickly and successfully establish a communication connection with the card reader, thereby further improving the speed of card selection.
  • the fourth embodiment of the present application relates to a card selection method for an NFC card emulation mode.
  • the implementation details of the card selection method for the NFC card emulation mode in this embodiment will be specifically described below.
  • the following contents are only implementation details provided for the convenience of understanding, and are not necessary for implementing this solution.
  • the flowchart of the card selection method for the NFC card emulation mode in this embodiment may be as shown in FIG. 5 , including:
  • Step 501 Acquire each candidate smart card in the terminal that meets preset screening conditions.
  • step 501 is substantially the same as step 201 in the second embodiment, and is not repeated here to avoid repetition.
  • Step 502 After detecting that the terminal has entered the radio frequency range of the card reader, judge whether each candidate smart card in the terminal satisfies the filter condition, and obtain each candidate smart card that meets the filter condition.
  • Step 503 Determine the priority of each candidate smart card.
  • Step 504 According to the priority of each candidate smart card from high to low, traverse each candidate smart card in turn, and try to establish a communication connection with the card reader according to the currently traversed information of the candidate smart card.
  • Step 505 If a communication connection is successfully established with the card reader according to the information of the currently traversed candidate smart card, and the card reader is swiped through the currently traversed candidate smart card.
  • each smart card in the terminal before the terminal enters the radio frequency range of the card reader, each smart card in the terminal is screened without combining the information of the card reader, and each candidate that meets the screening conditions is obtained. smart card. After the terminal enters the radio frequency range of the card reader, each candidate smart card that meets the filtering conditions can be obtained after filtering according to the information of each candidate smart card in the terminal and the information of the card reader.
  • the terminal before the terminal has entered the radio frequency range of the card reader, it first reasonably filters out each candidate smart card that meets the screening conditions, which is beneficial to control the number of candidate smart cards within a reasonable range, without affecting and reading
  • the success rate of establishing a communication connection with the card reader increases the speed of successfully establishing a communication connection with the card reader.
  • some candidate smart cards are filtered out, and each candidate smart card that meets the filtering conditions is obtained, which is conducive to further narrowing the traversing range, improving the traversing speed, and thus improving the card selection speed.
  • the fifth embodiment of the present application relates to a chip.
  • the chip 601 is located in the terminal and is connected to a memory 602 in the terminal.
  • the memory 602 stores instructions that can be executed by the chip 601 , and the instructions are executed by the chip 601 to make
  • the chip 601 can execute the card selection method for the NFC card emulation mode described in any of the above embodiments.
  • this embodiment is a device example corresponding to the first to fourth embodiments, and this embodiment can be implemented in cooperation with any of the first to fourth embodiments.
  • the relevant technical details mentioned in any one of the first to fourth embodiments are still valid in this embodiment, and are not repeated here in order to reduce repetition.
  • the related technical details mentioned in this embodiment can also be applied to the first to fourth embodiments.
  • the sixth embodiment of the present application relates to a terminal.
  • the terminal includes a chip 601 and a memory 602 connected to the chip 601 .
  • the memory and the chip are connected by a bus, and the bus may include any number of interconnected buses and bridges, and the bus connects one or more chips and various circuits of the memory.
  • the bus may also connect together various other circuits, such as peripherals, voltage regulators, and power management circuits, which are well known in the art and therefore will not be described further herein.
  • the bus interface provides the interface between the bus and the transceiver.
  • a transceiver may be a single element or multiple elements, such as multiple receivers and transmitters, providing a means for communicating with various other devices over a transmission medium.
  • the data processed by the chip is transmitted on the wireless medium through the antenna, and further, the antenna also receives the data and transmits the data to the chip.
  • the chip is responsible for managing the bus and general processing, and can also provide various functions, including timing, peripheral interface, voltage regulation, power management, and other control functions. And memory can be used to store data that the chip uses when performing operations.
  • the seventh embodiment of the present application relates to a computer-readable storage medium storing a computer program.
  • the above method embodiments are implemented when the computer program is executed by the processor.
  • the aforementioned storage medium includes: U disk, mobile hard disk, Read-Only Memory (ROM, Read-Only Memory), Random Access Memory (RAM, Random Access Memory), magnetic disk or optical disk and other media that can store program codes .

Abstract

La présente invention concerne, dans certains modes de réalisation, un procédé de sélection de carte pour un mode de simulation de carte NFC, une puce, un dispositif électronique et un support de stockage. Le procédé de sélection de carte comporte les étapes consistant: après qu'il a été détecté qu'un terminal arrive à portée de radiofréquences d'un lecteur de cartes, à acquérir plusieurs groupes de cartes à puce candidates obtenus en groupant toutes les cartes à puce candidates (101); à acquérir tous les groupes de cartes à puce à sélectionner qui satisfont une condition de filtrage (102); à déterminer une priorité de chaque groupe de cartes à puce à sélectionner (103); à parcourir tous les groupes de cartes à puce à sélectionner, selon les priorités de tous les groupes de cartes à puce à sélectionner, et d'après des informations de groupes de cartes à puce à sélectionner qui ont été parcourus, à essayer d'établir une connexion de communication avec le lecteur de cartes (104); et si l'établissement de la connexion de communication avec le lecteur de cartes réussit d'après les informations des groupes de cartes à puce à sélectionner qui ont été parcourus, à déterminer une carte à puce cible d'après les groupes de cartes à puce à sélectionner qui ont été parcourus, et à effectuer une opération de balayage de carte avec le lecteur de cartes au moyen de la carte à puce cible (105). Par conséquent, des opérations de l'utilisateur peuvent être réduites, et la commodité du balayage de carte peut être améliorée.
PCT/CN2020/128477 2020-11-12 2020-11-12 Procédé de sélection de carte pour mode de simulation de carte nfc, puce, terminal, et support de stockage WO2022099563A1 (fr)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2020/128477 WO2022099563A1 (fr) 2020-11-12 2020-11-12 Procédé de sélection de carte pour mode de simulation de carte nfc, puce, terminal, et support de stockage

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2020/128477 WO2022099563A1 (fr) 2020-11-12 2020-11-12 Procédé de sélection de carte pour mode de simulation de carte nfc, puce, terminal, et support de stockage

Publications (1)

Publication Number Publication Date
WO2022099563A1 true WO2022099563A1 (fr) 2022-05-19

Family

ID=81601950

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/128477 WO2022099563A1 (fr) 2020-11-12 2020-11-12 Procédé de sélection de carte pour mode de simulation de carte nfc, puce, terminal, et support de stockage

Country Status (1)

Country Link
WO (1) WO2022099563A1 (fr)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11907931B2 (en) * 2021-02-05 2024-02-20 Shenzhen GOODIX Technology Co., Ltd. Method and system for managing virtual electronic card, secure chip, terminal and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120310760A1 (en) * 2011-06-03 2012-12-06 Simon Phillips Mobile device automatic card account selection for a transaction
CN103632264A (zh) * 2012-08-24 2014-03-12 三星电子株式会社 用于基于交互环境来确定项目的方法和装置
CN110020569A (zh) * 2019-03-11 2019-07-16 华为技术有限公司 自动选择nfc模拟卡的方法、电子设备及通信系统
CN110035180A (zh) * 2019-04-11 2019-07-19 Oppo广东移动通信有限公司 卡片显示方法、装置、终端及存储介质
EP3719727A1 (fr) * 2019-04-04 2020-10-07 Mastercard International Incorporated Mécanisme de sélection de transaction

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120310760A1 (en) * 2011-06-03 2012-12-06 Simon Phillips Mobile device automatic card account selection for a transaction
CN103632264A (zh) * 2012-08-24 2014-03-12 三星电子株式会社 用于基于交互环境来确定项目的方法和装置
CN110020569A (zh) * 2019-03-11 2019-07-16 华为技术有限公司 自动选择nfc模拟卡的方法、电子设备及通信系统
EP3719727A1 (fr) * 2019-04-04 2020-10-07 Mastercard International Incorporated Mécanisme de sélection de transaction
CN110035180A (zh) * 2019-04-11 2019-07-19 Oppo广东移动通信有限公司 卡片显示方法、装置、终端及存储介质

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11907931B2 (en) * 2021-02-05 2024-02-20 Shenzhen GOODIX Technology Co., Ltd. Method and system for managing virtual electronic card, secure chip, terminal and storage medium

Similar Documents

Publication Publication Date Title
CN112069848B (zh) 用于nfc卡模拟模式的选卡方法、芯片、终端和存储介质
CN109844789B (zh) 一种终端交易方法及终端
RU2481617C2 (ru) Способ и устройство автоматического выбора приложения связи ближнего радиуса действия в электронном устройстве
CN111543041B (zh) 一种模拟卡的选择方法及移动设备
KR100768154B1 (ko) 스마트 카드 판독기에 비접촉형 인터페이스를 제공하는무선 통신 장치
US11088724B2 (en) Communication device, control method, program and front end
CN104393895B (zh) 通信装置、数据处理装置及通信方法和程序
US8606943B2 (en) Method for processing application commands from physical channels using a portable electronic device and corresponding device and system
CN114781415A (zh) 自动选择nfc模拟卡的方法、电子设备及通信系统
CN101149782B (zh) 用于协调应用的信息处理装置和方法
KR20110000666A (ko) 전자 디바이스에서 복수의 디스커버리 매니저들을 이용한 자동적인 어플리케이션 선택을 위한 방법 및 장치
US9008575B2 (en) Portable mobile communication device and method of controlling near field communication
US20220038899A1 (en) Method for duplicating near field communication card and electronic device therefor
WO2022252561A1 (fr) Procédé de glissement de carte, dispositif de commande de carte, dispositif électronique et support d'enregistrement
KR101455155B1 (ko) 멀티-se 환경에서 모바일 결제카드 우선순위 자동 설정방법 및 이를 적용한 모바일 디바이스
JP2023524538A (ja) 近距離無線通信nfc通信方法、装置及び電子機器
WO2022099563A1 (fr) Procédé de sélection de carte pour mode de simulation de carte nfc, puce, terminal, et support de stockage
US9824246B2 (en) Radio frequency identification tag having input device
US10552826B2 (en) Selecting an application on a card
CN113098566B (zh) 配置非接触式通信设备的方法及非接触式通信电子设备
WO2018161224A1 (fr) Procédé de traitement de données et dispositif associé
CN109408127B (zh) 芯片系统加载方法及芯片卡
WO2023050900A1 (fr) Procédé et système de traitement de données, et terminal et support de stockage lisible par ordinateur
CN104077155A (zh) 移动设备上应用程序的启动
CN105809078A (zh) 一种异频卡间防冲突的方法及双频读卡器

Legal Events

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

Ref document number: 20961120

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20961120

Country of ref document: EP

Kind code of ref document: A1