NFC card activation method, device and electronic device

By adjusting the activation parameters of the NFC card to the preset activation parameters, the problem of activation failure of multiple NFC cards is solved, and the effect of efficiently activating all cards in electronic devices is achieved.

CN112989851BActive Publication Date: 2025-01-24VIVO MOBILE COMM CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202110170799.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-02-08
Publication Date
2025-01-24
Estimated Expiration
2041-02-08

AI Technical Summary

Technical Problem

When multiple NFC cards exist in electronic devices, NFC card activation failure is prone to occur.

Method used

By obtaining the activation parameters of each NFC card and adjusting them to the preset activation parameters (low priority) to avoid contactless parameter priority conflicts, all NFC cards are activated.

Benefits of technology

This method can effectively activate all cards when there are multiple NFC cards in the electronic device and reduce the probability of activation failure.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112989851B_ABST
    Figure CN112989851B_ABST
Patent Text Reader

Abstract

The present application discloses an NFC card activation method, which belongs to the field of computer communication, and comprises: obtaining first contactless parameters corresponding to N NFC cards in a security chip of a first electronic device, wherein the first contactless parameters include a first parameter and an activation parameter; adjusting the activation parameters of each NFC card to a preset activation parameter; activating the N NFC cards according to the preset activation parameter. The present application can reduce the probability of NFC card activation failure.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of computer communications, and specifically relates to an NFC card activation method, device and electronic device. Background Art

[0002] Through NFC (Near Field Communication) technology, electronic devices (such as mobile phones) can exchange data when they are close to each other, thereby realizing applications such as mobile payment, electronic ticketing, access control, mobile identity recognition, and anti-counterfeiting.

[0003] The NFC chip acts as an antenna for data exchange, and the data of the NFC card is generally stored in a security chip. When multiple NFC cards are stored in an electronic device, and there is a conflict in the activation of contactless parameters of multiple cards, the contactless parameters of only one card may be activated and synchronized to the NFC chip. It can be seen that when there are multiple NFC cards in an electronic device, NFC card activation failure is likely to occur. Summary of the invention

[0004] The embodiments of the present application provide an NFC card activation method, device, and electronic device, which can solve the problem that NFC card activation failure is likely to occur when there are multiple NFC cards in the electronic device.

[0005] In order to solve the above technical problems, this application is implemented as follows:

[0006] In a first aspect, an embodiment of the present application provides an NFC card activation method, the method comprising:

[0007] Obtaining first contactless parameters corresponding to each of N NFC cards in a security chip of the first electronic device, wherein the first contactless parameters include a first parameter and an activation parameter, and N is a positive integer;

[0008] Adjusting the activation parameters of each of the NFC cards to preset activation parameters;

[0009] The N NFC cards are activated according to the preset activation parameters.

[0010] In a second aspect, an embodiment of the present application provides an NFC card activation device, the device comprising:

[0011] A first acquisition module is used to acquire first contactless parameters corresponding to N NFC cards in a security chip of a first electronic device, wherein the first contactless parameters include a first parameter and an activation parameter, and N is a positive integer;

[0012] An adjustment module, used to adjust the activation parameters of each of the NFC cards to preset activation parameters;

[0013] The activation module is used to activate the N NFC cards according to the preset activation parameters.

[0014] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the method described in the first aspect.

[0015] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.

[0016] In a fifth aspect, an embodiment of the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the method described in the first aspect.

[0017] In the embodiment of the present application, the first contactless parameters corresponding to the N NFC cards of the security chip of the first electronic device are obtained, and then the activation parameters of the first contactless parameters of each NFC card are adjusted to the preset activation parameters, and all the N NFC cards can be activated according to the preset activation parameters. In this way, when there are multiple NFC cards in the first electronic device, all the NFC cards in the security chip can be activated according to the preset activation parameters, thereby reducing the probability of NFC card activation failure. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 This is one of the flow charts of the NFC card activation method provided in the embodiment of the present application;

[0019] Figure 2 This is a storage diagram of an NFC card provided in an embodiment of the present application;

[0020] Figure 3 This is the second flowchart of the NFC card activation method provided in the embodiment of the present application;

[0021] Figure 4 This is the third flow chart of the NFC card activation method provided in the embodiment of the present application;

[0022] Figure 5 This is the fourth flow chart of the NFC card activation method provided in the embodiment of the present application;

[0023] Figure 6 This is the fifth flow chart of the NFC card activation method provided in the embodiment of the present application;

[0024] Figure 7 It is one of the schematic diagrams of the NFC card activation device provided in the embodiment of the present application;

[0025] Figure 8 This is the second schematic diagram of the NFC card activation device provided in the embodiment of the present application;

[0026] Fig. 9 This is the third schematic diagram of the NFC card activation device provided in the embodiment of the present application;

[0027] Fig.10 This is the fourth schematic diagram of the NFC card activation device provided in the embodiment of the present application;

[0028] Fig.11 A schematic diagram of an electronic device provided in an embodiment of the present application;

[0029] Fig.12 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0030] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0031] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.

[0032] The following is a detailed description of the NFC card activation method provided by the embodiment of the present application through specific embodiments and application scenarios in conjunction with the accompanying drawings.

[0033] See also Figure 1 , Figure 1 is one of the flowcharts of the NFC card activation method provided in the embodiment of the present application, which is executed by the first electronic device, such as Figure 1 As shown, the method includes:

[0034] Step 101: Obtain first contactless parameters corresponding to N NFC cards in a security chip of a first electronic device, wherein the first contactless parameters include a first parameter and an activation parameter, and N is a positive integer.

[0035] It should be noted that the first electronic device can be a mobile phone, a tablet computer (Tablet Personal Computer), a laptop computer (Laptop Computer), a personal digital assistant (Personal Digital Assistant, PDA), a mobile Internet device (Mobile Internet Device, MID), a wearable device (Wearable Device) or a vehicle-mounted device, etc. In the embodiment of the present application, the first electronic device is taken as an example of a mobile phone. In addition, the present application can also be used in application scenarios such as cards and keys that use Bluetooth, wireless fidelity (WIreless Fidelity, WIFI), ultra-wideband (Ultra Wide Band, UWB) and other methods as communication technologies.

[0036] Among them, the first contactless parameter is the contactless parameter of the NFC card stored in the security chip. The contactless parameter of the NFC card mainly includes the first parameter and the activation parameter. Among them, the first parameter mainly includes the identity identifier UID, select acknowledgement (SAK), frame waiting time (FWI), start frame guard time (SFGI) and answer to select (ATS). The identity identifier can be the physical card number corresponding to the NFC card, which is the unique identifier of the NFC card. The first contactless parameter of the NFC card includes the first parameter and the activation parameter. The activation parameter is the priority of the first parameter. The priority mainly includes high priority and low priority. The high priority can be represented by "F" and the low priority can be represented by "0".

[0037] Step 102: Adjust the activation parameters of each of the NFC cards to preset activation parameters.

[0038] The preset activation parameters are activation parameters corresponding to low priorities. When the contactless parameter priorities of multiple cards are high priorities, priority conflicts may occur when activating multiple NFC cards at the same time, resulting in failure to activate multiple NFC cards at the same time.

[0039] After the NFC card is saved and the priority of the first parameter of the NFC card is set, the activation parameter of each NFC card is adjusted to the preset activation parameter, that is, the priority of the first parameter of each NFC card is adjusted to a low priority.

[0040] Step 103: Activate the N NFC cards according to the preset activation parameters.

[0041] When the priority of the first parameter of each NFC card is adjusted to a low priority, the contactless registration service (CRS) in the security chip will not fail to activate due to the detection of a contactless parameter priority conflict, and N NFC cards in the security chip can be activated at the same time, thereby increasing the probability of NFC card activation. In this way, when all N NFC cards are activated, the contactless parameters of any NFC card in the security chip can be synchronized to the NFC chip.

[0042] In the embodiment of the present application, the first contactless parameters corresponding to the N NFC cards of the security chip of the first electronic device are obtained, and then the activation parameters of the first contactless parameters of each NFC card are adjusted to the preset activation parameters, and all the N NFC cards can be activated according to the preset activation parameters. In this way, when there are multiple NFC cards in the first electronic device, all the NFC cards in the security chip can be activated according to the preset activation parameters, thereby reducing the probability of NFC card activation failure.

[0043] In an optional implementation manner, after activating the N NFC cards, the method further includes:

[0044] Based on the first contactless parameter, a second contactless parameter corresponding to each of the NFC cards is determined, and the second contactless parameter is stored in the NFC chip, where the second contactless parameter includes a second parameter, and the second parameter matches the first parameter.

[0045] It should be noted that the contactless parameters currently received by the NFC chip will overwrite the contactless parameters that have been stored previously, so the NFC chip can only store the contactless parameters of one NFC card. Therefore, the NFC chip is upgraded so that the NFC chip can store the contactless parameters of multiple NFC cards. The NFC chip can be used as an antenna to exchange data with the second electronic device. When the NFC chip stores the contactless parameters of multiple NFC cards, the information of the contactless parameters of the NFC cards related to the transaction can be determined.

[0046] The second contactless parameter includes a second parameter, and the second contactless parameter of the NFC card is a contactless parameter of the NFC card stored in the NFC chip, and the second parameter corresponds to the first parameter of the first contactless parameter. The second parameter matches the first parameter, and the second parameter can be the same as the first parameter.

[0047] In addition, the second contactless parameter of the NFC card stored in the NFC chip also includes a preset priority corresponding to the contactless parameter of the NFC card, and the preset priority is the priority of the first parameter of the NFC card set when the NFC card is saved in the security chip.

[0048] In the embodiment of the present application, the second contactless parameter corresponding to each NFC card is determined based on the first contactless parameter, and the second contactless parameter is stored in the NFC chip. Since the NFC chip can store the contactless parameters of multiple NFC cards, it can facilitate the card swiping transaction when the first electronic device has multiple NFC cards.

[0049] A specific implementation method, such as Figure 2 As shown, N is equal to 4, the security chip is referred to as SE chip, the priority of the first NFC card is preset to "F", the priority of the second NFC card is preset to "F", the priority of the third NFC card is preset to "F", and the priority of the fourth NFC card is preset to "0", the first NFC card is preset to be Card 1, the second NFC card is preset to be Card 2, the third NFC card is preset to be Card 3, and the fourth NFC card is preset to be Card 4.

[0050] In order to ensure that all NFC cards can be activated in the security chip, the priority of the first contactless parameter of all NFC cards is set to "0"; further, the first parameter of the first contactless parameter in the security chip is synchronized to the NFC chip, and the first parameter saved in the NFC chip is determined as the second parameter of the second contactless parameter. For example, the UID, SAK, FWI, SFGI and ATS parameters of the first NFC card in the security chip are the same as the UID, SAK, FWI, SFGI and ATS parameters of the first NFC card in the NFC chip. At the same time, in the NFC chip, the priority of the second contactless parameter of the NFC card is the priority pre-set by the NFC card, the priority of the first NFC card is "F", the priority of the second NFC card is "F", the priority of the third NFC card is "F" and the priority of the fourth NFC card is "0".

[0051] Optionally, after storing the second contactless parameter in the NFC chip, the method further includes:

[0052] Obtaining a verification request sent by the second electronic device;

[0053] determining a target contactless parameter in the second contactless parameter that matches the verification request;

[0054] Acquire a first target NFC card that matches the target contactless parameter among the N NFC cards of the security chip;

[0055] Respond to the verification request based on the first target NFC card.

[0056] The first target NFC card is an NFC card used for card swiping transactions among the N NFC cards. According to the second contactless parameter stored in the NFC chip, the first target NFC card among the N NFC cards used for card swiping transactions can be determined. The second electronic device is an electronic device with a point of sales (POS) information management system, which can be referred to as a POS machine.

[0057] When the first electronic device approaches the second electronic device, the second electronic device sends a verification request for the transaction to the first electronic device. The first electronic device obtains the verification request sent by the second electronic device, and after the verification is passed, the second electronic device sends the transaction instruction to the first electronic device; further, the second electronic device can determine the target contactless parameter in the second contactless parameter that matches the verification request; further, the NFC chip informs the security chip of the NFC card corresponding to the target parameter, and among the N NFC cards in the security chip, the NFC card including the target contactless parameter is determined as the first target NFC card for the transaction; finally, the first target NFC card responds to the verification request and performs the card swiping transaction.

[0058] In addition, all NFC cards in the security chip have been activated, and in different time periods, all NFC cards can complete transactions with their corresponding second electronic devices. The first electronic device can set up a card package application corresponding to the NFC card. After determining the first target NFC card for the card transaction with the second electronic device, the screen of the first electronic device can display some animation effects related to the card transaction, prompting the user to complete the card transaction process, which can improve the user's card swiping experience.

[0059] When conducting a card transaction, the first electronic device determines the first target NFC card for the transaction based on the transaction instruction sent by the second electronic device; further, the card simulation function is turned off, the second contactless parameter corresponding to the first target NFC card for the transaction in the NFC chip is set as the target contactless parameter, and the information of the first target NFC card for the transaction is sent to the security chip; further, the first target NFC card among N NFC cards is determined in the security chip, and the card simulation function is turned on again; further, the second electronic device can re-read the target contactless parameter in the NFC chip, and since the contactless parameter of the NFC card used for the transaction by the first electronic device has matched the first target NFC card, the second electronic device can issue a subsequent transaction instruction to complete the transaction.

[0060] In an embodiment of the present application, based on the verification request sent by the acquired second electronic device, the target contactless parameter in the second contactless parameter that matches the verification request is determined, and further, the first target NFC card that matches the target contactless parameter is obtained from the N NFC cards of the security chip; further, the verification request is responded to based on the first target NFC card. Among the N NFC cards, the NFC card including the target contactless parameter is determined as the first target NFC card. Since all NFC cards in the security chip have been activated, the first target NFC card corresponding to the transaction can be determined according to the verification requests sent by different second electronic devices, thereby facilitating card swiping transactions when the first electronic device has multiple NFC cards.

[0061] Optionally, determining the second contactless parameter corresponding to each of the NFC cards based on the first contactless parameter includes:

[0062] Acquire a first contactless parameter of at least one second target NFC card among the N NFC cards, where the first contactless parameter of the second target NFC card includes an identity identifier of the second target NFC card;

[0063] Based on the identity identifier of the second target NFC card, a second contactless parameter corresponding to the second target NFC card is added to the NFC chip.

[0064] The N NFC cards include a second target NFC card, and the second target NFC card is an NFC card whose corresponding first contactless parameter has been saved in the security chip. Based on the identity of the second target NFC card, when the corresponding second contactless parameter has not been saved in the NFC chip, the second contactless parameter corresponding to the second target NFC card can be added to the NFC chip.

[0065] First, a first contactless parameter corresponding to the second target NFC card in the security chip is obtained, where the first contactless parameter includes an identity identifier of the second target NFC card; further, the identity identifier of the second target NFC card is sent to the NFC chip, and the NFC chip compares whether the identity identifier in the received first contactless parameter has been recorded; further, if the identity identifier has not been recorded, it means that the NFC chip has not saved the second contactless parameter corresponding to the second target NFC card, and then, the second contactless parameter corresponding to the second target NFC card is added to the NFC chip.

[0066] In this embodiment, the first contactless parameter of at least one second target NFC card among the N NFC cards is obtained, and the first contactless parameter of the second target NFC card includes the identity of the second target NFC card. Further, based on the identity of the second target NFC card, the second contactless parameter corresponding to the second target NFC card is added to the NFC chip. Since the second contactless parameter corresponding to the second target NFC card can be added to the NFC chip when the NFC chip has not yet saved the second contactless parameter corresponding to the second target NFC card, the NFC chip can save the second contactless parameters corresponding to multiple NFC cards, thereby facilitating card swiping transactions when the first electronic device has multiple NFC cards.

[0067] Optionally, before storing the second contactless parameter in the corresponding NFC chip, the NFC chip stores a third contactless parameter of a third target NFC card, and adding the second contactless parameter corresponding to the second target NFC card in the NFC chip includes:

[0068] A second contactless parameter corresponding to the second target NFC card is added to the NFC chip, and the third contactless parameter of the third target NFC card is updated to the second contactless parameter corresponding to the third target NFC card.

[0069] The third target NFC card is a card with the third contactless parameters corresponding to the third target NFC card stored in the NFC chip before the second contactless parameters corresponding to the third target NFC card are stored in the NFC chip. Generally speaking, the contactless parameters of the NFC card can be changed according to different transaction requirements. When the first contactless parameters corresponding to the third target NFC card in the security chip are changed, the second contactless parameters corresponding to the third target NFC card in the NFC chip also need to be changed accordingly.

[0070] Before storing the second contactless parameter in the corresponding NFC chip, in the case that the third contactless parameter of the third target NFC card is stored in the NFC chip, the method of adding the second contactless parameter corresponding to the second target NFC in the NFC chip is: first, according to the first contactless parameter of the third target NFC card in the security chip, the NFC chip receives the second contactless parameter of the third target NFC card corresponding to the first contactless parameter; further, in the NFC chip, the third contactless parameter of the third target NFC card that has been stored is updated to the second contactless parameter corresponding to the third target NFC card, so that the contactless parameter of the third target NFC card in the NFC chip and the first contactless parameter of the third target NFC card in the security chip can be synchronized.

[0071] In this implementation, by adding the second contactless parameter corresponding to the second target NFC in the NFC chip, and updating the third contactless parameter of the third target NFC card to the second contactless parameter corresponding to the third target NFC card, the contactless parameter corresponding to the existing third target NFC card can be updated in the NFC chip, thereby meeting the needs of different transactions.

[0072] Optionally, after determining a second contactless parameter corresponding to each of the NFC cards based on the first contactless parameter, and storing the second contactless parameter in the NFC chip, the method further includes:

[0073] Determine a default contactless parameter in the second contactless parameter, wherein the default contactless parameter is related to at least one of a usage frequency of the NFC card, a usage time of the NFC card, and a key corresponding to the NFC card;

[0074] The first target NFC card among the N NFC cards is determined according to the default contactless parameter.

[0075] After the second contactless parameter is stored in the NFC chip, the NFC chip can set the second contactless parameter of a certain NFC card to the default contactless parameter according to a preset strategy. At the same time, the NFC card corresponding to the default contactless parameter can be determined as the first target NFC card for the transaction. When conducting a transaction, the first target NFC card can be used by default for the transaction.

[0076] Among them, the preset strategy can be set by the user or determined by the system. The preset strategy mainly includes setting the second contactless parameter of the most frequently used NFC card as the default contactless parameter, setting the second contactless parameter of the NFC card with the longest usage time as the default contactless parameter, and setting the second contactless parameter of the NFC card corresponding to the last card key stored as the default contactless parameter. In this way, the determination of the default contactless parameter is related to at least one of the usage frequency of the NFC card, the usage time of the NFC card, and the key corresponding to the NFC card. In this way, the user is not required to provide privacy information such as geographic positioning information to determine the usage scenario of the NFC card, avoiding the collection of user privacy information to determine the first target NFC card for the transaction.

[0077] In this embodiment, after the second contactless parameter is stored in the NFC chip, the default contactless parameter in the second contactless parameter is determined, wherein the default contactless parameter is related to at least one of the frequency of use of the NFC card, the time of use of the NFC card, and the key corresponding to the NFC card; further, based on the default contactless parameter, the NFC card corresponding to the default contactless parameter is determined as the first target NFC card for the transaction. The default contactless parameter in the second contactless parameter can be determined based on the user's use of the NFC card. In this way, the determination of the first target NFC card for the transaction is related to the user's use, which can improve the user's experience of using the NFC card.

[0078] In a specific implementation manner, the first electronic device is a smart terminal, the second electronic device is a POS machine, and determining a first target NFC card among multiple NFC cards for card swiping transaction mainly includes four steps: storing contactless parameters corresponding to the multiple NFC cards in a security chip, activating the multiple NFC cards in the security chip, storing contactless parameters corresponding to the multiple NFC cards in the NFC chip, and determining the first target NFC card for the transaction and performing the card swiping transaction.

[0079] like Figure 3 As shown, the process of storing the contactless parameters corresponding to the multiple NFC cards in the security chip and activating the multiple NFC cards in the security chip mainly includes:

[0080] Step 301, activating the card. That is, activating the NFC card, referred to as the card here and below. Generally speaking, when a user activates a card, he needs to perform operations such as downloading applications, installing applications, setting contactless parameters, and personalizing the card.

[0081] Step 302: Whether to enable simultaneous activation of all cards. The user can choose whether to enable simultaneous activation of all cards in the security chip. If the user chooses to enable simultaneous activation of all cards, step 303 is executed. If the user does not choose to enable simultaneous activation of all cards, step 307 is executed.

[0082] Step 303: modify the instruction sent to the security chip to set the contactless parameters, and change the priority to "0". When the priority is changed to "0", the security chip can activate multiple cards at the same time.

[0083] Step 304: Send an instruction for storing multiple contactless parameters to the NFC chip. The upgraded NFC chip can store multiple contactless parameters according to the instruction.

[0084] Step 305: Whether it is necessary to set a default card. According to the default card setting policy of any one of the usage frequency of the NFC card, the usage time of the NFC card, and the key corresponding to the NFC card, a card among multiple cards that meets the preset policy requirements can be set as the default card for the transaction. If it is necessary to set a default card, execute step 306; if it is not necessary to set a default card, end the process.

[0085] Step 306: Send an instruction to set a default card to the NFC chip. The NFC chip that receives the instruction can set the contactless parameters of the default card as valid parameters for the transaction. End the process.

[0086] Step 307: Execute according to the original instruction. In the case of executing according to the original instruction, due to the priority conflict of the contactless parameters, the security chip cannot activate all cards at the same time.

[0087] Step 308: Whether to set a default card. If the security chip cannot activate all cards at the same time, one of the cards that meets the preset policy requirements can be set as the default card for the transaction according to any one of the policies of the frequency of use of the NFC card, the usage time of the NFC card, and the key corresponding to the NFC card. If it is necessary to set a default card, execute step 309; if it is not necessary to set a default card, end the process.

[0088] Step 309: Send an instruction to set a default card to the NFC chip. The NFC chip that receives the instruction can set the contactless parameters of the default card as valid parameters for the transaction. End the process.

[0089] like Figure 4 As shown, the process of storing the contactless parameters corresponding to multiple NFC cards in the NFC chip includes:

[0090] Step 401: Activate the card, activate all the cards in the security chip,

[0091] Step 402: CRS determines whether the contactless parameters conflict. If the priority of all cards is "0", there will be no conflict in the corresponding contactless parameters; if the priority of two or more cards is "F", there may be a conflict in the corresponding contactless parameters. If there is no conflict in the contactless parameters, execute step 403; if there is a conflict in the contactless parameters, execute step 405.

[0092] Step 403: The security chip activates the card. If there is no conflict in the contactless parameters, all cards in the security chip are activated.

[0093] Step 404: notify the NFC chip to update or store the contactless parameters, and set the card as a default card in the NFC chip. If the NFC chip does not store the contactless parameters of the card, save the contactless parameters of the card to the NFC chip to store the corresponding contactless parameters for the NFC chip; if the NFC chip already stores the contactless parameters of the card, update the contactless parameters of the card in the NFC chip. End the process.

[0094] Step 405: reject the activation instruction. If the CRS determines that the contactless parameters conflict, it rejects the activation of all cards. This process ends.

[0095] like Figure 5 As shown, the process of storing the contactless parameters corresponding to multiple NFC cards in the NFC chip includes:

[0096] Step 501: modify the storage logic of the NFC chip to support more instructions so that it can store multiple sets of contactless parameters at the same time. The current NFC chip can only store the contactless parameters of one card, so it is necessary to upgrade NFC so that it can store the contactless parameters of multiple cards.

[0097] Step 502: Whether to store multiple contactless parameters. After the NFC chip is upgraded, the user can choose to store the contactless parameters of multiple cards, or choose not to store the contactless parameters of multiple cards. In the case of storing multiple contactless parameters, execute step 503; in the case of not storing multiple contactless parameters, execute step 504.

[0098] Step 503: Store the contactless parameters of multiple cards, and set the contactless parameters of a card to default parameters according to a certain strategy. The strategy includes but is not limited to the last stored key, the card frequently used by the user, the card used by the user for the last time, etc. End the process.

[0099] Step 504: Clear the contactless parameters of other cards and only store the contactless parameters of this card. If the user chooses not to store the contactless parameters of multiple cards, only store the contactless parameters of one card. End the process.

[0100] like Figure 6 As shown, the process of determining the first target NFC card for the transaction and performing the card swiping transaction mainly includes:

[0101] Step 601: The POS machine sends an instruction to the smart terminal. When a card transaction is required, the instruction sent by the POS machine to the smart terminal can be regarded as a verification request.

[0102] Step 602: The intelligent terminal returns information according to the currently set contactless parameters.

[0103] Step 603: The POS machine verifies whether the information returned is correct. If the information returned by the POS machine is incorrect, execute step 604; if the information returned by the POS machine is correct, execute step 605.

[0104] Step 604: The smart terminal turns off the card emulation function, switches the default card of the NFC chip to another card, and then turns on the card emulation.

[0105] Step 605: The POS machine sends a card selection instruction. According to the instruction, the contactless parameters corresponding to the transaction in the NFC chip can be confirmed.

[0106] Step 606: The smart terminal analyzes the card selection instruction to determine whether the card expected by the POS machine is consistent with the default card currently set by the NFC chip. If the card expected by the POS machine is consistent with the default card currently set by the NFC chip, step 607 is executed; if the card expected by the POS machine is consistent with the default card currently set by the NFC chip, step 608 is executed.

[0107] Step 607: the smart terminal turns off card simulation, switches the default card of the security chip to the card expected by the POS machine, and then turns on card simulation. After turning on card simulation, execute step 601.

[0108] Step 608: Continue with the subsequent transaction and end the process.

[0109] It should be noted that the NFC card activation method provided in the embodiment of the present application can be executed by an NFC card activation device, or a control module in the NFC card activation device for executing the NFC card determination method. In the embodiment of the present application, the NFC card activation device executing the card activation method is taken as an example to illustrate the NFC card determination device provided in the embodiment of the present application.

[0110] See also Figure 7, Figure 7 is one of the schematic diagrams of the NFC card activation device provided in the embodiment of the present application, such as Figure 7 As shown, the NFC card activation device includes:

[0111] A first acquisition module 701 is used to acquire first contactless parameters corresponding to N NFC cards in a security chip of a first electronic device, wherein the first contactless parameters include a first parameter and an activation parameter, and N is a positive integer;

[0112] An adjustment module 702, configured to adjust the activation parameters of each of the NFC cards to preset activation parameters;

[0113] The activation module 703 is used to activate the N NFC cards according to the preset activation parameters.

[0114] Optional, such as Figure 8 As shown, the device also includes:

[0115] The first determination module 704 is configured to determine a second contactless parameter corresponding to each of the NFC cards based on the first contactless parameter, and store the second contactless parameter in the NFC chip, where the second contactless parameter includes a second parameter, and the second parameter matches the first parameter.

[0116] Optional, such as Fig. 9 As shown, the device also includes:

[0117] The second acquisition module 705 is used to acquire the verification request sent by the second electronic device;

[0118] A second determining module 706, configured to determine a target contactless parameter in the second contactless parameter that matches the verification request;

[0119] A third acquisition module 707 is used to acquire a first target NFC card that matches the target contactless parameter among the N NFC cards of the security chip;

[0120] The response module 708 is configured to respond to the verification request based on the first target NFC card.

[0121] Optionally, the first determining module 704 is further configured to:

[0122] Acquire a first contactless parameter of at least one second target NFC card among the N NFC cards, where the first contactless parameter of the second target NFC card includes an identity identifier of the second target NFC card;

[0123] Based on the identity identifier of the second target NFC card, a second contactless parameter corresponding to the second target NFC is added to the NFC chip.

[0124] Optionally, before storing the second contactless parameter in the corresponding NFC chip, the NFC chip stores a third contactless parameter of a third target NFC card, and the first determining module 704 is further configured to:

[0125] A second contactless parameter corresponding to the second target NFC card is added to the NFC chip, and the third contactless parameter of the third target NFC card is updated to the second contactless parameter corresponding to the third target NFC card.

[0126] Optional, such as Fig.10 As shown, the device also includes:

[0127] a third determining module 709, configured to determine a default contactless parameter in the second contactless parameter, wherein the default contactless parameter is related to at least one of a usage frequency of the NFC card, a usage time of the NFC card, and a key corresponding to the NFC card;

[0128] The fourth determination module 710 is configured to determine the first target NFC card among the N NFC cards according to the default contactless parameter.

[0129] In the embodiment of the present application, the NFC card activation device can simultaneously activate N NFC cards in the security chip by presetting the activation parameters. In this way, when there are multiple NFC cards in the first electronic device, all NFC cards in the security chip can be activated according to the preset activation parameters, thereby reducing the probability of NFC card activation failure.

[0130] The NFC card activation device in the embodiment of the present application can be a device, or a component, integrated circuit, or chip in a terminal. The device can be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), etc. The non-mobile electronic device can be a server, a network attached storage (NAS), a personal computer (PC), a television (TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.

[0131] The NFC card activation device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.

[0132] The NFC card activation device provided in the embodiment of the present application can achieve Figure 1 To avoid repetition, the various processes implemented by the method embodiment are not described here.

[0133] Optional, such as Fig.11 As shown, the embodiment of the present application also provides an electronic device 1100, including a processor 1101, a memory 1102, and a program or instruction stored in the memory 1102 and executable on the processor 1101. When the program or instruction is executed by the processor 1101, each process of the above-mentioned NFC card activation method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0134] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.

[0135] See also Fig.12 , Fig.12 A schematic diagram of the hardware structure of an electronic device for implementing an embodiment of the present application is shown in FIG. Fig.12 As shown, the electronic device 1200 includes but is not limited to: a radio frequency unit 1201, a network module 1202, an audio output unit 1203, an input unit 1204, a sensor 1205, a display unit 1206, a user input unit 1207, an interface unit 1208, a memory 1209, and a processor 1210 and other components.

[0136] Those skilled in the art will appreciate that the electronic device 1200 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 1210 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Fig.12 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.

[0137] The processor 1210 is configured to obtain first contactless parameters corresponding to each of the N NFC cards in the security chip of the first electronic device, wherein the first contactless parameters include a first parameter and an activation parameter, and N is a positive integer;

[0138] Adjusting the activation parameters of each of the NFC cards to preset activation parameters;

[0139] The N NFC cards are activated according to the preset activation parameters.

[0140] Optionally, the processor 1210 is further used to determine a second contactless parameter corresponding to each of the NFC cards based on the first contactless parameter, and store the second contactless parameter in the NFC chip, where the second contactless parameter includes a second parameter, and the second parameter matches the first parameter.

[0141] Optionally, the processor 1210 is further configured to:

[0142] Obtaining a verification request sent by the second electronic device;

[0143] determining a target contactless parameter in the second contactless parameter that matches the verification request;

[0144] Acquire a first target NFC card that matches the target contactless parameter among the N NFC cards of the security chip;

[0145] Respond to the verification request based on the first target NFC card.

[0146] Optionally, the processor 1210 is further configured to:

[0147] Acquire a first contactless parameter of at least one second target NFC card among the N NFC cards, where the first contactless parameter of the second target NFC card includes an identity identifier of the second target NFC card;

[0148] Based on the identity of the second target NFC card, a second contactless parameter corresponding to the second target NFC card is added to the NFC chip.

[0149] Optionally, the processor 1210, before storing the second contactless parameter in the corresponding NFC chip, stores a third contactless parameter of a third target NFC card in the NFC chip, and is further configured to:

[0150] A second contactless parameter corresponding to the second target NFC card is added to the NFC chip, and the third contactless parameter of the third target NFC card is updated to the second contactless parameter corresponding to the third target NFC card.

[0151] Optionally, the processor 1210, after determining the second contactless parameter corresponding to each of the NFC cards based on the first contactless parameter and storing the second contactless parameter in the NFC chip, is further configured to:

[0152] Determine a default contactless parameter in the second contactless parameter, wherein the default contactless parameter is related to at least one of a usage frequency of the NFC card, a usage time of the NFC card, and a key corresponding to the NFC card;

[0153] The first target NFC card among the N NFC cards is determined according to the default contactless parameter.

[0154] In the embodiment of the present application, the electronic device 1200 can simultaneously activate N NFC cards in the security chip by presetting the activation parameters. In this way, when there are multiple NFC cards in the first electronic device, all NFC cards in the security chip can be activated according to the preset activation parameters, thereby reducing the probability of NFC card activation failure.

[0155] It should be understood that in the embodiment of the present application, the input unit 1204 may include a graphics processor (Graphics Processing Unit, GPU) 12041 and a microphone 12042, and the graphics processor 12041 processes the image data of the static picture or video obtained by the image capture device (such as a camera) in the video capture mode or the image capture mode. The display unit 1206 may include a display panel 12061, and the display panel 12061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 1207 includes a touch panel 12071 and other input devices 12072. The touch panel 12071 is also called a touch screen. The touch panel 12071 may include two parts: a touch detection device and a touch controller. Other input devices 12072 may include, but are not limited to, a physical keyboard, a function key (such as a volume control button, a switch button, etc.), a trackball, a mouse, and a joystick, which will not be repeated here. The memory 1209 can be used to store software programs and various data, including but not limited to applications and operating systems. The processor 1210 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the modem processor may not be integrated into the processor 1210.

[0156] The embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of the above-mentioned NFC card activation method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0157] The processor is a processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0158] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement each process of the above-mentioned NFC card activation method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0159] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.

[0160] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.

[0161] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0162] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

Claims

1. A near field communication NFC card activation method, characterized in that: The method comprises: Obtaining first contactless parameters corresponding to each of N NFC cards in a security chip of a first electronic device, wherein the first contactless parameters include a first parameter and an activation parameter, N is a positive integer, and the activation parameter is a priority of the first parameter, and the priority includes a high priority and a low priority; Adjusting the activation parameters of each of the NFC cards to preset activation parameters, where the preset activation parameters are the activation parameters corresponding to the low priority; Activate the N NFC cards according to the preset activation parameters; After activating the N NFC cards, the method further includes: Determine a second contactless parameter corresponding to each of the NFC cards based on the first contactless parameter, and store the second contactless parameter in the NFC chip, wherein the second contactless parameter includes a second parameter, the second parameter matches the first parameter, and the second contactless parameter also includes a preset priority corresponding to the second contactless parameter, wherein the preset priority is a priority of the first parameter of the NFC card set when the NFC card is saved in the security chip; After storing the second contactless parameter in the NFC chip, the method further includes: Obtaining a verification request sent by the second electronic device; determining a target contactless parameter in the second contactless parameter that matches the verification request; Acquire a first target NFC card that matches the target contactless parameter among the N NFC cards of the security chip; Respond to the verification request based on the first target NFC card.

2. The NFC card activation method according to claim 1, characterized in that: The determining, based on the first contactless parameter, a second contactless parameter corresponding to each of the NFC cards includes: Acquire a first contactless parameter of at least one second target NFC card among the N NFC cards, where the first contactless parameter of the second target NFC card includes an identity identifier of the second target NFC card; Based on the identity identifier of the second target NFC card, a second contactless parameter corresponding to the second target NFC card is added to the NFC chip.

3. The NFC card activation method according to claim 2, characterized in that: Before storing the second contactless parameter in the NFC chip, the NFC chip stores a third contactless parameter of a third target NFC card, and adding the second contactless parameter corresponding to the second target NFC card in the NFC chip includes: A second contactless parameter corresponding to the second target NFC card is added to the NFC chip, and the third contactless parameter of the third target NFC card is updated to the second contactless parameter corresponding to the third target NFC card.

4. The NFC card activation method according to claim 1, characterized in that: After determining a second contactless parameter corresponding to each of the NFC cards based on the first contactless parameter and storing the second contactless parameter in the NFC chip, the method further includes: Determine a default contactless parameter in the second contactless parameter, wherein the default contactless parameter is related to at least one of a usage frequency of the NFC card, a usage time of the NFC card, and a key corresponding to the NFC card; A first target NFC card among the N NFC cards is determined according to the default contactless parameter.

5. An NFC card activation device, characterized in that: include: A first acquisition module is used to acquire first contactless parameters corresponding to each of N NFC cards in a security chip of a first electronic device, wherein the first contactless parameters include a first parameter and an activation parameter, N is a positive integer, and the activation parameter is a priority of the first parameter, and the priority includes a high priority and a low priority; An adjustment module, used to adjust the activation parameters of each of the NFC cards to preset activation parameters, where the preset activation parameters are activation parameters corresponding to the low priority; An activation module, used to activate the N NFC cards according to the preset activation parameters; The device also includes: a first determination module, configured to determine a second contactless parameter corresponding to each of the NFC cards based on the first contactless parameter, and store the second contactless parameter in the NFC chip, wherein the second contactless parameter includes a second parameter, the second parameter matches the first parameter, and the second contactless parameter also includes a preset priority corresponding to the second contactless parameter, wherein the preset priority is a priority of the first parameter of the NFC card set when the NFC card is saved in the security chip; The device also includes: A second obtaining module, used to obtain a verification request sent by a second electronic device; a second determining module, configured to determine a target contactless parameter in the second contactless parameter that matches the verification request; A third acquisition module is used to acquire a first target NFC card that matches the target contactless parameter among the N NFC cards of the security chip; A response module is used to respond to the verification request based on the first target NFC card.

6. The NFC card activation device as claimed in claim 5, characterized in that: The first determining module is further used for: Acquire a first contactless parameter of at least one second target NFC card among the N NFC cards, where the first contactless parameter of the second target NFC card includes an identity identifier of the second target NFC card; Based on the identity identifier of the second target NFC card, a second contactless parameter corresponding to the second target NFC is added to the NFC chip.

7. The NFC card activation device as claimed in claim 6, characterized in that: Before storing the second contactless parameter in the NFC chip, the NFC chip stores a third contactless parameter of a third target NFC card, and the first determining module is further used for: A second contactless parameter corresponding to the second target NFC card is added to the NFC chip, and the third contactless parameter of the third target NFC card is updated to the second contactless parameter corresponding to the third target NFC card.

8. The NFC card activation device as claimed in claim 5, characterized in that: The device also includes: a third determining module, configured to determine a default contactless parameter in the second contactless parameter, wherein the default contactless parameter is related to at least one of a usage frequency of the NFC card, a usage time of the NFC card, and a key corresponding to the NFC card; The fourth determining module is used to determine a first target NFC card among the N NFC cards according to the default contactless parameter.

9. An electronic device, characterized in that: The invention comprises a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the NFC card activation method according to any one of claims 1 to 4.

10. A readable storage medium, characterized in that: The readable storage medium stores a program or instruction, and when the program or instruction is executed by the processor, the steps of the NFC card activation method according to any one of claims 1 to 4 are implemented.

Citation Information

Patent Citations

  • Method and device of card activation

    CN108288008A

  • Preprocessing method and device for configuring NFC intelligent card

    CN110866580A