Activation method and device of NFC simulation card, chip and electronic equipment

By compounding the non-connected parameters of multiple NFC simulation cards, the simultaneous activation of multiple cards is achieved, solving the problem of cumbersome activation of NFC simulation cards in the prior art and improving the user experience.

CN119449091APending Publication Date: 2025-02-14GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202310949835.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-07-28
Publication Date
2025-02-14

AI Technical Summary

Technical Problem

The existing NFC function can only keep one analog card active. Users need to manually switch to activate the corresponding NFC analog card in different application scenarios. The operation is cumbersome and the user experience is poor.

Method used

The non-connection parameters of multiple NFC simulation cards are compounded through the security chip to obtain the composite non-connection parameters, and the target NFC simulation cards are activated according to this parameter to achieve simultaneous activation of multiple cards.

Benefits of technology

It simplifies the user's operation process in different application scenarios, improves the user experience, and meets the users' changing application needs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119449091A_ABST
    Figure CN119449091A_ABST
Patent Text Reader

Abstract

The invention discloses an NFC simulation card activation method and device, a chip and electronic equipment, the method is applied to the electronic equipment, and the electronic equipment comprises a plurality of NFC simulation cards; the security chip is used for storing non-contact parameters of the plurality of NFC simulation cards; the method comprises the following steps: determining a target NFC simulation card, wherein the target NFC simulation card comprises at least two NFC simulation cards in the plurality of NFC simulation cards; performing composite processing on the non-contact parameter of the target NFC simulation card by using the security chip to obtain a composite non-contact parameter; and activating the target NFC simulation card according to the composite non-contact parameter.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of communication technology, and more specifically, to an activation method and device, a chip, and an electronic device for an NFC analog card. Background Art

[0002] Near field communication (NFC), also known as short-range wireless communication, is a high-frequency wireless communication technology used to achieve contactless data transmission between devices. With the continuous improvement of NFC technology, the application of NFC technology in electronic devices has become popular. Through NFC, access control cards, bus cards, car keys, etc. can be simulated, so that functions such as bus card swiping, access control card swiping or car key unlocking can be realized, which helps to facilitate users' lives.

[0003] However, the current NFC function can only keep one simulated card activated by default. If the electronic device includes multiple NFC simulated cards, in different application scenarios, the user needs to manually switch and activate the corresponding NFC simulated card first. The operation process is cumbersome and the user experience is poor. Summary of the invention

[0004] The embodiments of the present application provide an activation method and device, a chip, and an electronic device for activating an NFC simulated card. The following introduces various aspects involved in the embodiments of the present application.

[0005] In a first aspect, a method for activating an NFC simulation card is provided, the method being applied to an electronic device, the electronic device comprising: multiple NFC simulation cards; a security chip for storing contactless parameters of the multiple NFC simulation cards; the method comprising: determining a target NFC simulation card, the target NFC simulation card comprising at least two NFC simulation cards among the multiple NFC simulation cards; performing composite processing on the contactless parameters of the target NFC simulation card using the security chip to obtain composite contactless parameters; and activating the target NFC simulation card according to the composite contactless parameters.

[0006] In a second aspect, a device for activating an NFC simulation card is provided, the device being applied to an electronic device, the electronic device comprising: multiple NFC simulation cards; a security chip for storing contactless parameters of the multiple NFC simulation cards; the device comprising: a determination module for determining a target NFC simulation card, the target NFC simulation card comprising at least two NFC simulation cards among the multiple NFC simulation cards; a processing module for performing composite processing on the contactless parameters of the target NFC simulation card using the security chip to obtain composite contactless parameters; and an activation module for activating the target NFC simulation card according to the composite contactless parameters.

[0007] In a third aspect, a chip is provided, comprising: a processor, configured to call and run a computer program from a memory, so that a device equipped with the chip executes the method described in the first aspect.

[0008] In a fourth aspect, an electronic device is provided, comprising a processor, a memory and a transceiver, wherein the memory is used to store a computer program, and the processor is used to call and run the computer program stored in the memory to control the electronic device to execute the method described in the first aspect.

[0009] According to a fifth aspect, a computer-readable storage medium is provided, on which executable code is stored. When the executable code is executed, the method described in the first aspect can be implemented.

[0010] The embodiment of the present application provides an activation method for an NFC simulation card, the method is applied to an electronic device, the electronic device includes: multiple NFC simulation cards; a security chip, which is used to store the contactless parameters of the multiple NFC simulation cards; the method includes: determining a target NFC simulation card, the target NFC simulation card includes at least two NFC simulation cards among the multiple NFC simulation cards; using the security chip to perform composite processing on the contactless parameters of the target NFC simulation card to obtain composite contactless parameters; according to the composite contactless parameters, activating the target NFC simulation card. This solution performs composite processing on the contactless parameters of the target NFC simulation card, and then activates the target NFC simulation card (i.e., multiple NFC simulation cards) simultaneously according to the composite parameters, which helps to meet the user's changing application needs and improve the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] Figure 1 It is a schematic diagram of an application scenario of an NFC simulation card according to an embodiment of the present application.

[0012] Figure 2 It is a flowchart of an activation method for an NFC simulated card provided in an embodiment of the present application.

[0013] Figure 3 It is a schematic diagram of the architecture of an electronic device provided in one embodiment of the present application.

[0014] Figure 4 for Figure 3 Schematic diagram of the UI interface of the security chip application shown in FIG.

[0015] Figure 5 For application Figure 3 A flowchart of a method for binding and activating an NFC simulated card of an electronic device.

[0016] Figure 6 for Figure 5Flow chart of the deactivation method of the target NFC simulation card.

[0017] Figure 7 For application Figure 3 Schematic diagram of the process of a single activation method of an NFC simulated card in an electronic device.

[0018] Figure 8 It is a structural diagram of the non-contact parameter compound processing provided by an embodiment of the present application.

[0019] Fig. 9 It is a structural schematic diagram of an activation device for an NFC simulated card provided in one embodiment of the present application.

[0020] Fig.10 It is a schematic diagram of the structure of an electronic device provided in one embodiment of the present application. DETAILED DESCRIPTION

[0021] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments.

[0022] Near Field Communication NFC, also known as Near Field Wireless Communication, is a high-frequency wireless communication technology used to achieve contactless data transmission between devices. With the continuous improvement of NFC technology, the application of NFC technology in electronic devices has become popular. In related technologies, a security chip is set in an electronic device to store the data of an NFC simulated card, so that NFC can be used to simulate bus cards, access cards, car keys, etc. In this way, by simulating access cards, bus cards, car keys, etc. through NFC, functions such as swiping a bus card, swiping a door card, or unlocking a car key can be realized through the electronic device, which helps to facilitate the user's life. The following is combined with Figure 1 The application scenarios of NFC simulated cards are described.

[0023] Figure 1 This is an application scenario diagram of near field communication interaction based on NFC card provided in an embodiment of the present application, such as Figure 1As shown, it includes an electronic device 110 and a card reader 120, and the electronic device 110 may be provided with an NFC chip 111 and a secure chip (secure element, SE) 112. Among them, the secure chip 112 may be, for example, an embedded security chip (embedded security element, ESE), the security chip 112 may be packaged together with the NFC chip, and the security chip 112 may also be integrated on the printed circuit board (printed circuit board, PBC) of the electronic device 110. In the case where the security chip 112 is integrated on the PBC of the electronic device 110, the security chip 112 may be independent of other software and hardware of the electronic device 110. It should be understood that the NFC chip 111 and the security chip 112 are both located in the hardware layer of the electronic device 110.

[0024] In some embodiments, the electronic device 110 is a removable electronic device with NFC communication function. As some specific examples, the electronic device 110 is a mobile phone, a tablet computer, a PDA, a mobile internet device (MID), a wearable device, etc.

[0025] An NFC card swiping system can be set in the card reader device 120, so that the card reader device 120 can realize near-field communication interaction with the electronic device 110 with an NFC simulated card based on the NFC card swiping system. The NFC card swiping system set in the card reader device 120 can be a public transportation system, a payment system, an access control system, etc. This application does not limit the specific NFC card swiping system in the card reader device 120.

[0026] However, the current NFC function can only keep one simulated card in an activated state by default. For example, when receiving the proximity signal of the NFC reader, the contactless parameters of the activated NFC simulated card are used by default to interact with the NFC reader. For example, the currently activated NFC simulated card is a simulated bus card. When the user needs to use the access card to unlock the access control, he needs to manually switch to activate the NFC simulated access card. This operation process is cumbersome and the user's physical examination is poor.

[0027] In order to solve the above problems, an embodiment of the present application provides an activation method for an NFC simulation card, which is applied to an electronic device, and the electronic device includes: multiple NFC simulation cards; a security chip for storing contactless parameters of multiple NFC simulation cards; the method includes: determining a target NFC simulation card, the target NFC simulation card includes at least two NFC simulation cards among the multiple NFC simulation cards; using the security chip to perform composite processing on the contactless parameters of the target NFC simulation card to obtain composite contactless parameters; according to the composite contactless parameters, activating the target NFC simulation card. This solution performs composite processing on the contactless parameters of the target NFC simulation card, and then activates the target NFC simulation card (i.e., multiple NFC simulation cards) simultaneously according to the composite parameters, which helps to meet the user's changing application needs and improve the user experience.

[0028] It should be noted that the electronic device in the embodiment of the present application may include multiple NFC simulation cards and a security chip. The multiple NFC simulation cards may be, for example, at least two NFC simulation cards, and the multiple NFC simulation cards may include, for example, an NFC simulation bus card, an NFC simulation access card, an NFC simulation car key card, etc., and the present application does not impose any specific restrictions on this. The security chip may be used to store the contactless parameters of multiple NFC simulation cards and to manage multiple NFC simulation cards. The security chip may, for example, Figure 1 The security chip 122 in.

[0029] Combined with the following Figure 2 The activation method of the NFC simulation card in the embodiment of the present application is described in detail. Figure 2 As shown, the NFC simulated card activation method 200 can be used for an electronic device. It should be understood that the electronic device can be any type of electronic device mentioned above, such as Figure 1 The electronic device 110 in the NFC simulation card activation method 200 may include steps: S210-S230.

[0030] In step S210, a target NFC simulation card is determined, wherein the target NFC simulation card includes at least two NFC simulation cards among a plurality of NFC simulation cards in the electronic device.

[0031] It is understandable that the target NFC simulation card can be an NFC simulation card that the user wants to activate, and the target NFC simulation card includes at least one NFC simulation card in a deactivated state. In some embodiments, the target NFC simulation card can refer to any at least two NFC simulation cards among multiple NFC simulation cards in the electronic device.

[0032] In some embodiments, the electronic device may further include a security chip application, which is located at the application layer of the electronic device. The security chip application may be, for example, a wallet application. The security chip application may be used to manage multiple NFC simulated cards. For example, a user may trigger an activation instruction for one or more NFC simulated cards through the UI interface of the security chip application.

[0033] In step S220, the contactless parameters of the target NFC simulation card are composited using the security chip to obtain composite contactless parameters.

[0034] In some embodiments, a user may use a security chip application to send a first activation instruction to the security chip, where the first activation instruction may include application identifiers (AIDs) of some or all NFC simulation cards in the target NFC simulation card; the security chip may receive the first activation instruction sent by the security chip application, and then, according to the first activation instruction, use the security chip to composite the contactless parameters of the target NFC simulation card to obtain composite contactless parameters.

[0035] It should be noted that the application identifier of the NFC simulated card may refer to the identity identifier in the security chip application that the security chip assigns to the NFC simulated card after the NFC simulates a physical card (such as a bus card, access card, etc.).

[0036] It can be understood that when the security chip receives the first activation instruction, it can obtain the application identifier of the target NFC simulation card. Using the application identifier of the target NFC simulation card, it can obtain the contactless parameters of the target NFC simulation card. Then, the security chip can be used to composite the contactless parameters of the target NFC simulation card to obtain composite contactless parameters.

[0037] In some embodiments, the first activation instruction may refer to an activation instruction of a target NFC simulation card triggered by a user through a UI interface of a security chip application. As an example, the UI interface of a security chip application may be used to display multiple NFC simulation cards in an electronic device, and may have check boxes for multiple NFC simulation cards. A user may select a target NFC simulation card through the check box, and then trigger an activation function button in the security application to generate an activation instruction (i.e., the first activation instruction) for the target NFC simulation card.

[0038] In some embodiments, the contactless parameters of the target NFC simulation card may include: unique identifier (UID) of the NFC simulation card, select acknowledgement (SAK), answer to select (ATS), answer to request (ATQ), etc. Among them, the request response ATQ may be, for example, the request response ATQA of a Class A card.

[0039] In some embodiments, the contactless parameters of the target NFC simulation card can be composited using a security chip according to the application protocol of the target NFC simulation card to obtain composite contactless parameters. It should be understood that the application protocol of the NFC simulation card specifies the necessary contactless parameters for near-field communication between the NFC simulation card and the card reader device. As an example, according to the application protocol of the NFC simulation transportation card, the necessary contactless parameters of the NFC simulation transportation card can be determined to be the selection response ATS and the selection confirmation SAK. As another example, according to the application protocol of the NFC simulation access control card, the necessary contactless parameters of the NFC simulation access control card can be determined to be the unique identifier UID, the request response ATQ and the selection confirmation SAK. It can be understood that the above-mentioned application protocol may refer to relevant NFC card communication protocols such as ISO14443 and ISO7816.

[0040] In some embodiments, the target NFC simulation card may include a transportation NFC simulation card and an access control NFC simulation card, and the composite contactless parameters of the transportation NFC simulation card and the access control NFC simulation card may include a unique identifier and request response of the access control NFC simulation card, a selection response of the transportation NFC simulation card, and a composite selection confirmation of the transportation NFC simulation card and the access control NFC simulation card.

[0041] As an example, if the selection confirmation SAK of the traffic NFC simulation card is 0x20 (hexadecimal number), and the selection confirmation SAK of the access control NFC simulation card is 0x08 / 0x18 (hexadecimal number), then the selection confirmation SAK of the traffic NFC simulation card and the access control NFC simulation card can be 0x28 / 0x38 (hexadecimal number). That is, 0x28 = 0x08 + 0x20, 0x38 = 0x18 + 0x20. It should be understood that in the application protocol of the NFC simulation card, 0x28 can cover 0x20 and 0x08, and 0x38 can cover 0x20 and 0x18.

[0042] In step S230, the target NFC simulated card is activated according to the composite contactless parameter.

[0043] In some embodiments, after the composite contactless parameters of the target NFC simulation card are generated by using the security chip, the NFC simulation card contactless parameters of the NFC chip can be modified according to the service contactless parameters, so that the target NFC simulation card can be activated.

[0044] In some embodiments, the composite contactless parameters of the target NFC simulation card can be sent to the NFC chip using a security chip, and then the NFC simulation card contactless parameters in the NFC chip are modified according to the composite contactless parameters. In this way, the composite contactless parameters can cover multiple NFC simulation cards in the target NFC simulation card, thereby activating the multiple NFC simulation cards.

[0045] According to the above description, compared with the traditional solution that can only activate one NFC simulated card, this solution composites the contactless parameters of the target NFC simulated card, and then activates the target NFC simulated cards (i.e. multiple NFC simulated cards) simultaneously according to the composite parameters, which helps to meet the user's changing application needs and improve the user experience.

[0046] In some embodiments, the electronic device may further include a security process service layer, and the security process service layer includes a security program process. The security process service layer may be located between the security chip application and the security chip; before the security chip receives the first activation instruction using the security chip, the first activation instruction may be sent to the security process service layer using the security chip application; then, the first activation instruction is encrypted in the security process service layer. In some embodiments, the security process service layer may be a trusted execution environment (TEE) environment or a rich execution environment (REE).

[0047] In some embodiments, the key in the security chip can be used to verify the first activation instruction encrypted by the security process service layer; if the key verification is successful, the security chip can be used to composite the contactless parameters of the target NFC simulation card according to the verified first activation instruction to obtain composite contactless parameters. The encryption of the security process service layer can ensure the security of the data.

[0048] In some embodiments, the electronic device may further include an application interface layer, which may refer to an open mobile application interface (OMA) layer. The application interface layer may be located between the security chip application and the security process service layer, and is mainly used to connect the security chip application and the security process service layer, so as to realize data transmission between the security chip application and the security process service layer. In some embodiments, before the security process service layer encrypts the first activation instruction, the legitimacy of the first activation instruction may be verified at the application interface layer; if the first activation instruction is legal, the first activation instruction may be transmitted to the security process service layer through the application interface layer; then, the first activation instruction is encrypted using the security process service layer. The legitimacy of the first activation instruction may refer to the correctness and / or validity of the application identifier of the NFC simulated card carried by the first activation instruction.

[0049] In some embodiments, the target NFC simulation card includes a first NFC simulation card and a second NFC simulation card. If the first NFC simulation card and the second NFC simulation card are both in a deactivated state, the first activation instruction includes the application identifiers of all NFC simulation cards in the target NFC simulation card, that is, the first activation instruction includes the application identifier of the first NFC simulation card and the application identifier of the second NFC simulation card; if the first NFC simulation card is in an activated state and the second NFC simulation card is in a deactivated state, the first activation instruction includes the application identifiers of some NFC simulation cards in the target NFC simulation card, that is, the first activation instruction includes the application identifier of the second NFC simulation card, and the first activation instruction does not include the application identifier of the first NFC simulation card. It should be understood that the first NFC simulation card and the second NFC simulation card may refer to any two NFC simulation cards in the target NFC simulation card.

[0050] In some embodiments, before the contactless parameters of the target NFC simulation card are composited using the security chip, it can be determined whether there is an activation conflict among the multiple NFC simulation cards in the target NFC simulation card; if there is no activation conflict among the multiple NFC simulation cards in the target NFC simulation card, the contactless parameters of the target NFC simulation card are composited using the security chip to obtain composite contactless parameters. Of course, if there is an activation conflict among the multiple NFC simulation cards in the target NFC simulation card, the contactless parameters of the target NFC simulation card cannot be composited using the security chip.

[0051] In some embodiments, it can be detected whether there is a conflict in the contactless parameters of multiple NFC simulation cards in the target NFC simulation card; if there is no conflict in the contactless parameters of multiple NFC simulation cards in the target NFC simulation card, it is determined that there is no activation conflict in the multiple NFC simulation cards in the target NFC simulation card; if there is a conflict in the contactless parameters of multiple NFC simulation cards in the target NFC simulation card, it is determined that there is an activation conflict in the multiple NFC simulation cards in the target NFC simulation card.

[0052] As an example, if the target NFC simulation cards include the NFC Zhengzhou traffic simulation card and the NFC Shenzhen traffic simulation card, and there is a conflict in the contactless parameter selection responses in the NFC Zhengzhou traffic simulation card and the NFC Shenzhen traffic simulation card, it can be determined that there is an activation conflict among the multiple NFC simulation cards in the target NFC simulation card.

[0053] In some embodiments, the electronic device further includes an NFC chip, which is located at the hardware layer of the electronic device. The NFC chip can be Figure 1 Activating the target NFC simulation card may include: using the security chip to send a second activation instruction to the NFC chip, the second activation instruction including the composite contactless parameter; according to the second activation instruction, using the NFC chip to activate the target NFC simulation card. It is understandable that the NFC chip can replace or overwrite the contactless parameters of the NFC card in the NFC chip according to the composite contactless parameters.

[0054] In order to deepen the understanding of the activation method of the NFC simulation card in the embodiment of the present application, the following Figure 3 The architecture of the electronic device to which the activation method of the NFC simulated card is applied is described in detail with examples.

[0055] Figure 3 A possible architecture diagram of an electronic device provided in an embodiment of the present application. Figure 3 As shown, the electronic device 300 may include an application layer 310 , an application interface layer 320 , a security process service layer 330 and a hardware layer 340 .

[0056] The application layer 310 may include a security chip application, which may also be referred to as a security chip application. The security chip application may be, for example, a Wallet application. The application interface layer 320 is located between the application layer 310 and the security process service layer 330. The application interface layer 320 may include an application interface, which may be, for example, an open mobile application interface OMA. Data transmission between the application layer 310 and the security process service layer 330 may be achieved through the application interface layer 320. The security process service layer 330 has an encryption function, and the security process service layer 330 may be a TEE environment or a REE environment. The hardware layer 340 may include a security chip and an NFC chip. The security chip may be used to store data information of multiple NFC simulated cards, and the security chip may perform near field communication with an external card reader device through the NFC chip.

[0057] In some embodiments, the security chip application in the application layer 310 may include three NFC simulation cards, which may be, for example, a Shenzhen Transportation NFC simulation card, a Zhengzhou Transportation NFC simulation card, and an access control NFC simulation card, wherein the application identifier of the Shenzhen Transportation NFC simulation card may be AID1, the application identifier of the Zhengzhou Transportation NFC simulation card may be AID2, and the application identifier of the access control NFC simulation card may be AID3.

[0058] In some embodiments, the security chip application may include a UI interface. Figure 4 A possible UI interface diagram for a security chip application. Figure 4 , multiple NFC simulation cards in the electronic device (for example, including Shenzhen Transportation NFC simulation card, Zhengzhou Transportation NFC simulation card and access control NFC simulation card) can be displayed in the UI interface of the security chip application, and corresponding check boxes for multiple NFC simulation cards can be set. The user can select the target NFC simulation card through the check box, and then trigger the activation function button in the security application to generate an activation instruction for the target NFC simulation card. It is understandable that when the target NFC simulation card is activated, the activation function button can be converted to a deactivation function button to trigger the deactivation instruction of the target NFC simulation card.

[0059] Combination of the above Figure 3 and Figure 4 The architecture of the electronic device in the embodiment of the present application is illustrated by way of example. In order to deepen the understanding of the activation method of the NFC simulation card in the embodiment of the present application, the activation method of the NFC simulation card is applied to Figure 3 For example, the electronic equipment in Figure 5 The activation method of the NFC simulation card is described in detail with examples.

[0060] Figure 5The following is a flow chart of a method for activating an NFC simulated card provided in one embodiment of the present application. Figure 5 As shown, it may specifically include steps: S501 to S505.

[0061] In step S501: the target NFC simulation card is determined by using the security chip application, and the first activation instruction is sent to the application interface layer. The target NFC simulation card may include, for example, the Shenzhen Transportation NFC simulation card and the access control NFC simulation card, and both the Shenzhen Transportation NFC simulation card and the access control NFC simulation card are in a deactivated state. The first activation instruction includes the application identifiers (i.e., AID1 and AID3) of all NFC simulation cards in the target NFC simulation card.

[0062] In step S502: the validity of the first activation instruction is verified at the application interface layer, and in response to the first activation instruction being valid, the first activation instruction is transmitted to the security process service layer through the application interface layer.

[0063] In some embodiments, the legitimacy of the first activation instruction may refer to the correctness and / or validity of AID1 and AID3 carried by the first activation instruction.

[0064] In step S503: the first activation instruction is encrypted at the security process service layer to ensure data security, and at the same time, the encrypted first activation instruction is transmitted to the security chip.

[0065] In step S504: the encrypted first activation instruction is verified using the key in the security chip; if the encrypted first activation instruction passes the key verification, the security chip can be used to composite the contactless parameters of the target NFC simulation card to obtain composite contactless parameters. Then, the security chip is used to send a second activation instruction to the NFC chip, and the second activation instruction carries the composite contactless parameters of the target NFC simulation card.

[0066] In some embodiments, the security chip can obtain the contactless parameters of the Shenzhen Transportation NFC simulation card and the access control NFC simulation card according to AID1 and AID3.

[0067] In step S505: according to the second activation instruction, the target NFC simulation card is activated using the NFC chip. It can be understood that activating the target NFC simulation card may refer to replacing or overwriting the contactless parameters of the NFC card in the NFC chip according to the composite contactless parameters.

[0068] It is understandable that if the target NFC simulation card is activated, the user can deactivate it first when he wants to change the NFC simulation card. Figure 6 For the above Figure 5 The deactivation process of the target NFC simulation card after activation is completed is described in detail with an example. Figure 6 for Figure 5 Flow chart of the deactivation method of the target NFC simulated card. Figure 6 As shown, it may specifically include steps: S601 to S605.

[0069] In step S601: the security chip application sends a first deactivation instruction of the target NFC simulation card to the application interface layer. The first deactivation instruction includes the application identifier of the target NFC simulation card (ie, AID1 and AID3).

[0070] In step S602: the validity of the first deactivation instruction is verified at the application interface layer, and in response to the first deactivation instruction being valid, the first deactivation instruction is transmitted to the security process service layer through the application interface layer.

[0071] In some embodiments, the legitimacy of the first deactivation instruction may refer to the correctness and / or validity of AID1 and AID3 carried by the first deactivation instruction.

[0072] In step S603: the first deactivation instruction is encrypted at the security process service layer to ensure data security, and at the same time, the encrypted first deactivation instruction is transmitted to the security chip.

[0073] In step S604: the encrypted first deactivation instruction is verified using the key in the security chip; if the encrypted first deactivation instruction passes the key verification, the security chip can be used to send a second deactivation instruction to the NFC chip, and the second deactivation instruction carries the default contactless parameters of the NFC simulated card.

[0074] In step S605: according to the second deactivation instruction, the target NFC simulation card is deactivated by using the NFC chip. It can be understood that deactivating the target NFC simulation card may refer to replacing or overwriting the composite contactless parameters of the NFC card in the NFC chip according to the default contactless parameters. Of course, the composite contactless parameters of the NFC card in the NFC chip may also be directly deleted.

[0075] In some embodiments, the target NFC simulated card can be bound and activated at the same time, such as Figure 5 The activation method of the NFC simulation card shown in the figure. Of course, you can also use the separate activation method, first activate one NFC simulation card, then activate the next NFC simulation card, and so on. The following takes the Shenzhen Transportation NFC simulation card in an activated state and then activates the access control NFC simulation card as an example. Figure 7 A detailed example is given to illustrate the individual activation method of the target NFC simulation card.

[0076] Figure 7 for Figure 5Flow chart of the method for activating the target NFC simulated card separately. Figure 7 As shown, it may specifically include steps: S701 to S713.

[0077] In step S701: the user selects the access control NFC simulation card for activation, that is, determines the target NFC simulation card, and determines that the target NFC simulation card is the Shenzhen Transportation NFC simulation card and the access control NFC simulation card.

[0078] In step S702: after determining the target NFC simulation card, it is possible to detect whether there is an activation conflict with the target NFC card, that is, to detect whether there is a conflict between the contactless parameters of the Shenzhen Transportation NFC simulation card and the access control NFC simulation card.

[0079] In some embodiments, if there is no conflict in the contactless parameters of the Shenzhen Traffic NFC simulation card and the access control NFC simulation card, it is determined that there is no activation conflict in the target NFC simulation card, and the process jumps to step S703. If there is a conflict in the contactless parameters of the Shenzhen Traffic NFC simulation card and the access control NFC simulation card, it is determined that there is an activation conflict in the target NFC simulation card, and the process jumps to step S708.

[0080] In step S703: a first activation instruction is issued to the application interface layer.

[0081] It can be understood that, since the Shenzhen Transportation NFC simulation card is in an activated state, the first activation instruction includes the application identifiers of some NFC simulation cards in the target NFC simulation card, that is, the first activation instruction includes AID3 but does not include AID1.

[0082] In step S704: the legitimacy of the first activation instruction is verified at the application interface layer; in response to the first activation instruction being legitimate, the first activation instruction is transmitted to the security process service layer through the application interface layer.

[0083] In some embodiments, the legitimacy of the first activation instruction may refer to the correctness and / or validity of the AID3 carried by the first activation instruction.

[0084] In step S705: the first activation instruction is encrypted at the security process service layer to ensure data security, and at the same time, the encrypted first activation instruction is transmitted to the security chip.

[0085] In step S706: the encrypted first activation instruction is verified using the key in the security chip; if the encrypted first activation instruction passes the key verification, the security chip can be used to composite the contactless parameters of the target NFC simulation card to obtain composite contactless parameters. Then, the security chip is used to send a second activation instruction to the NFC chip, and the second activation instruction carries the composite contactless parameters of the target NFC simulation card.

[0086] In some embodiments, the security chip can obtain the contactless parameters of the access control NFC simulation card according to AID3, and then composite them with the contactless parameters of the activated Shenzhen Transportation NFC simulation card to obtain composite contactless parameters.

[0087] In step S707: according to the second activation instruction, the target NFC simulation card is activated using the NFC chip. It can be understood that activating the target NFC simulation card may refer to replacing or overwriting the contactless parameters of the NFC card in the NFC chip according to the composite contactless parameters.

[0088] In step S708: a third activation instruction and a third deactivation instruction are issued to the application interface layer.

[0089] In some embodiments, the third activation instruction includes AID3, and the third deactivation instruction includes AID1.

[0090] In step S709: verify the legitimacy of the third activation instruction and the third deactivation instruction at the application interface layer; in response to the third activation instruction being legal, transmit the third activation instruction to the security process service layer through the application interface layer; in response to the third deactivation instruction being legal, transmit the third deactivation instruction to the security process service layer through the application interface layer.

[0091] In some embodiments, the legitimacy of the third activation instruction may refer to the correctness and / or validity of AID3 carried by the third activation instruction; the legitimacy of the third deactivation instruction may refer to the correctness and / or validity of AID1 carried by the third deactivation instruction.

[0092] In step S710: the third activation instruction and the third deactivation instruction are encrypted at the security process service layer to ensure data security, and at the same time, the encrypted third activation instruction and the third deactivation instruction are transmitted to the security chip.

[0093] In step S711: the encrypted third activation instruction and the third deactivation instruction are verified using the key in the security chip; if the encrypted third deactivation instruction passes the key verification, the security chip can be used to send a fourth deactivation instruction to the NFC chip. The fourth deactivation instruction can carry the default contactless parameters of the NFC simulated card.

[0094] If the encrypted third activation instruction passes the key verification, the contactless parameters of the access control NFC simulation card can be obtained according to AID3, and then the fourth activation instruction is sent to the NFC chip using the security chip. The fourth activation instruction can carry the contactless parameters of the access control NFC simulation card.

[0095] In step S712: firstly, according to the fourth deactivation instruction, the Shenzhen Transportation NFC simulation card is deactivated, and then, the access control NFC simulation card is activated.

[0096] In step S713: end the current NFC simulated card activation process.

[0097] It should be noted that in Figure 5 The binding activation in can also include the judgment of the target NFC simulated card activation conflict. For details, please refer to Figure 7 The method for determining the activation conflict of the target NFC simulation card will not be described here.

[0098] In some embodiments, in order to deepen the understanding of the composite processing process of the contactless parameters of the target NFC simulation card in the embodiments of the present application, the following takes the traffic NFC simulation card, the access control NFC simulation card and the CCC car key NFC simulation card as examples. Figure 8 Provide detailed examples.

[0099] like Figure 8 As shown, in some embodiments, the traffic NFC simulation card includes an application identifier AID and contactless parameters. The AID of the NFC simulation card may be A000000632010105. The contactless parameters may include: UID, SAK, ATQA, ATS, etc. According to its application protocol, its necessary parameters may be determined as: AID, contactless parameter ATS, and contactless parameter SAK. Among them, the SAK of the traffic NFC simulation card may be 0x20, and the ATS of the traffic NFC simulation card may be 0x6700.

[0100] In some embodiments, the access control NFC simulation card includes AID and contactless parameters, and the contactless parameters may include: UID, SAK, ATQA, ATS, etc. According to its application protocol, its necessary contactless parameters can be determined to be UID, ATQA and SAK. Among them, the UID of the access control NFC simulation card can be A1B2C3D4, the ATQA of the access control NFC simulation card can be 0x0400, and the SAK of the access control NFC simulation card can be 0x08 / 0x18.

[0101] In some embodiments, the CCC car key NFC simulation card includes an AID and contactless parameters. The AID of the CCC car key NFC simulation card can be A000000123456. The contactless parameters can include: UID, SAK, ATQA, ATS, etc. According to its application protocol, its necessary parameter can be determined to be AID. That is to say, the CCC car key NFC simulation card generally does not have contactless parameters.

[0102] On the basis of the above application protocol, the contactless parameters of the traffic NFC simulation card, the access control NFC simulation card and the CCC car key NFC simulation card are composited to obtain their composite contactless parameters. The ATS in the composite contactless parameters can use the traffic NFC simulation card, the UID and ATQA in the composite contactless parameters can use the access control NFC simulation card, and the SAK in the composite contactless parameters can use the composite SAK of the traffic NFC simulation card and the access control NFC simulation card. On this basis, the composite contactless parameters can be used to simultaneously activate the traffic NFC simulation card, the access control NFC simulation card and the CCC car key NFC simulation card, so as to meet the changing application needs of users and improve the user experience.

[0103] It should be noted that the composite selection confirmation SAK of the traffic NFC simulation card and the access control NFC simulation card can be 0x28 / 0x38 (hexadecimal number). That is, 0x28=0x08+0x20, 0x38=0x18+0x20. It should be understood that in the application protocol of the NFC simulation card, 0x28 can cover 0x20 and 0x08, and 0x38 can cover 0x20 and 0x18. In other words, 0x28 / 0x38 can be applied to the data interaction between the traffic NFC simulation card and the access control NFC simulation card.

[0104] Combination of the above Figures 1 to 8 The method embodiment of the present application is described in detail. Figures 9 and 10 The device embodiment of the present application is described in detail. It should be understood that the description of the method embodiment corresponds to the description of the device embodiment, so the parts not described in detail can refer to the previous method embodiment.

[0105] Fig. 9 The structure diagram of the activation device of the NFC simulation card provided by an embodiment of the present application is shown. The activation device of the NFC simulation card can be applied to an electronic device, the electronic device includes: multiple NFC simulation cards; a security chip for storing the contactless parameters of the multiple NFC simulation cards; the device 900 includes: a determination module 910, a processing module 920 and an activation module 930.

[0106] The determination module 910 is used to determine a target NFC simulation card, where the target NFC simulation card includes at least two NFC simulation cards among the multiple NFC simulation cards.

[0107] The processing module 920 is used to use the security chip to perform composite processing on the contactless parameters of the target NFC simulation card to obtain composite contactless parameters.

[0108] The activation module 930 is configured to activate the target NFC simulation card according to the composite contactless parameter.

[0109] Optionally, the electronic device also includes a security chip application, and the processing module 920 is used to: use the security chip application to send a first activation instruction to the security chip, the first activation instruction including the application identifier of some or all NFC simulation cards in the target NFC simulation card; according to the first activation instruction, use the security chip to composite the contactless parameters of the target NFC simulation card to obtain the composite contactless parameters.

[0110] Optionally, the electronic device also includes: a security process service layer, located between the security chip application and the security chip; the device 900 also includes: a sending module 940, used to send the first activation instruction to the security process service layer using the security chip application before using the security chip to receive the first activation instruction; an encryption module 950, used to encrypt the first activation instruction at the security process service layer.

[0111] Optionally, the processing module 920 is used to: use the key in the security chip to verify the first activation instruction encrypted by the security process service layer; and based on the first activation instruction that has passed the verification, use the security chip to composite the contactless parameters of the target NFC simulation card to obtain the composite contactless parameters.

[0112] Optionally, the electronic device also includes: an application interface layer, located between the security chip application and the security process service layer; the device 900 also includes: a verification module 960, used to verify the legitimacy of the first activation instruction at the application interface layer before the security process service layer encrypts the first activation instruction; a transmission module 970, used to transmit the first activation instruction to the security process service layer through the application interface layer in response to the first activation instruction being legal.

[0113] Optionally, the target NFC simulation card includes a first NFC simulation card and a second NFC simulation card. If the first NFC simulation card and the second NFC simulation card are both in a deactivated state, the first activation instruction includes an application identifier of the first NFC simulation card and an application identifier of the second NFC simulation card; if the first NFC simulation card is in an activated state and the second NFC simulation card is in a deactivated state, the first activation instruction includes the application identifier of the second NFC simulation card, and the first activation instruction does not include the application identifier of the first NFC simulation card.

[0114] Optionally, the processing module 920 is used to: perform composite processing on the contactless parameters of the target NFC simulation card using the security chip according to the application protocol of the target NFC simulation card to obtain the composite contactless parameters.

[0115] Optionally, the target NFC simulation card includes a transportation NFC simulation card and an access control NFC simulation card, and the composite contactless parameters include a unique identifier and a request response of the access control NFC simulation card, a selection response of the transportation NFC simulation card, and a composite selection confirmation of the transportation NFC simulation card and the access control NFC simulation card.

[0116] Optionally, the device 900 also includes: a second determination module 980, used to determine whether there is an activation conflict among multiple NFC simulation cards in the target NFC simulation card before using the security chip to composite the contactless parameters of the target NFC simulation card; the processing module 920 is used to: if there is no activation conflict among the multiple NFC simulation cards in the target NFC simulation card, composite the contactless parameters of the target NFC simulation card using the security chip to obtain the composite contactless parameters.

[0117] Optionally, the second determination module 980 is used to: detect whether there is a conflict in the contactless parameters of multiple NFC simulation cards in the target NFC simulation card; if there is no conflict in the contactless parameters of multiple NFC simulation cards in the target NFC simulation card, determine that there is no activation conflict in the multiple NFC simulation cards in the target NFC simulation card.

[0118] Optionally, the electronic device includes an NFC chip, and the activation module 930 is used to: use the security chip to send a second activation instruction to the NFC chip, the second activation instruction including the composite contactless parameter; and according to the second activation instruction, use the NFC chip to activate the target NFC simulated card.

[0119] Combine the following Fig.10 The electronic device 1000 in the embodiment of the present application is introduced. The electronic device 1000 can be used to implement the method described in the above method embodiment.

[0120] It should be understood that the electronic device 1000 can be applied to any type of electronic device mentioned above.

[0121] The electronic device 1000 may include one or more processors 1010. The processor 1010 may support the electronic device 1000 to implement the method described in the foregoing method embodiment.

[0122] The processor 1010 may be a general-purpose processor or a special-purpose processor. For example, the processor may be a central processing unit (CPU). Alternatively, the processor may be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.

[0123] The electronic device 1000 may further include one or more memories 1020. The memory 1020 stores a program, which can be executed by the processor 1010 to control the electronic device 1000 to execute the method described in the above method embodiment. The memory 1020 may be independent of the processor 1010 or integrated in the processor 1010.

[0124] The memory 1020 may be a volatile memory or a nonvolatile memory, or may include both volatile and nonvolatile memories. Among them, the nonvolatile memory may be a read-only memory (ROM), a programmable ROM (PROM), an erasable programmable ROM (EPROM), an electrically erasable programmable ROM (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example but not limitation, the memory 1020 may also be various types of random access memory (RAM), such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous-link DRAM (SLDRAM) and direct ram-bus RAM (DR RAM).

[0125] The electronic device 1000 may further include a transceiver 1030. The processor 1010 may communicate with other devices through the transceiver 1030. For example, the processor 1010 may transmit and receive data with other devices through the transceiver 1030.

[0126] The present application also provides a chip in an embodiment, including a processor, which can be used to call and run a computer program from a memory, so that a device equipped with the chip performs the method described in the above method embodiment. It is understood that the processor can be any type of processor mentioned above. It is understood that the memory can be independent of the chip or integrated in the chip.

[0127] The embodiment of the present application also provides a machine-readable storage medium for storing a program, and the program enables a computer to execute the method in each embodiment of the present application.

[0128] The embodiment of the present application also provides a computer program product. The computer program product includes a program. The program enables a computer to execute the method in each embodiment of the present application.

[0129] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any other combination. When implemented by software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present disclosure is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a machine-readable storage medium, or transmitted from one machine-readable storage medium to another machine-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (Digital Subscriber Line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The machine-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrations. The available medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a digital video disc (DVD)), or a semiconductor medium (eg, a solid state disk (SSD)).

[0130] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments of the present disclosure can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present disclosure.

[0131] In the several embodiments provided in the present disclosure, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0132] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0133] In addition, each functional unit in each embodiment of the present disclosure may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0134] The above is only a specific embodiment of the present disclosure, but the protection scope of the present disclosure is not limited thereto. Any person skilled in the art who is familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present disclosure, which should be included in the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be based on the protection scope of the claims.

Claims

1. A method for activating an NFC simulated card, characterized in that: The method is applied to an electronic device, and the electronic device comprises: Multiple NFC emulated cards; A security chip, used for storing contactless parameters of the plurality of NFC simulation cards; The method comprises: Determine a target NFC simulation card, where the target NFC simulation card includes at least two NFC simulation cards among the multiple NFC simulation cards; Using the security chip to composite the contactless parameters of the target NFC simulation card to obtain composite contactless parameters; The target NFC simulation card is activated according to the composite contactless parameter.

2. The method according to claim 1, characterized in that The electronic device further includes a security chip application, and the use of the security chip to composite the contactless parameters of the target NFC simulation card to obtain composite contactless parameters includes: Using the security chip application to send a first activation instruction to the security chip, the first activation instruction including application identifiers of some or all NFC simulation cards in the target NFC simulation card; According to the first activation instruction, the contactless parameters of the target NFC simulation card are composited using the security chip to obtain the composite contactless parameters.

3. The method according to claim 2, characterized in that The electronic device further comprises: A security process service layer, located between the security chip application and the security chip; Before using the security chip to receive the first activation instruction, the method further includes: Using the security chip application to send the first activation instruction to the security process service layer; The first activation instruction is encrypted at the secure process service layer.

4. The method according to claim 3, characterized in that The step of compositely processing the contactless parameters of the target NFC simulation card using the security chip according to the first activation instruction to obtain the composite contactless parameters includes: Using the key in the security chip to verify the first activation instruction encrypted by the security process service layer; According to the first activation instruction that has passed the verification, the contactless parameters of the target NFC simulation card are composited using the security chip to obtain the composite contactless parameters.

5. The method according to claim 3, characterized in that: The electronic device further comprises: An application interface layer, located between the security chip application and the security process service layer; Before the security process service layer encrypts the first activation instruction, the method further includes: Verifying the legitimacy of the first activation instruction at the application interface layer; In response to the first activation instruction being legal, the first activation instruction is transmitted to the security process service layer through the application interface layer.

6. The method according to claim 2, characterized in that The target NFC simulation card includes a first NFC simulation card and a second NFC simulation card, and if the first NFC simulation card and the second NFC simulation card are both in a deactivated state, the first activation instruction includes an application identifier of the first NFC simulation card and an application identifier of the second NFC simulation card; If the first NFC simulation card is in an activated state and the second NFC simulation card is in a deactivated state, the first activation instruction includes the application identifier of the second NFC simulation card, and the first activation instruction does not include the application identifier of the first NFC simulation card.

7. The method according to claim 1, characterized in that The step of using the security chip to composite the contactless parameters of the target NFC simulation card to obtain composite contactless parameters includes: According to the application protocol of the target NFC simulation card, the contactless parameters of the target NFC simulation card are composited using the security chip to obtain the composite contactless parameters.

8. The method according to claim 7, characterized in that The target NFC simulation card includes a traffic NFC simulation card and an access control NFC simulation card, and the composite contactless parameters include: a unique identifier and a request response of the access control NFC simulation card, a selection response of the traffic NFC simulation card, and a composite selection confirmation of the traffic NFC simulation card and the access control NFC simulation card.

9. The method according to claim 1, characterized in that: Before the contactless parameters of the target NFC simulation card are compositely processed by the security chip, the method further includes: Determine whether there is an activation conflict among multiple NFC simulation cards in the target NFC simulation card; The step of using the security chip to composite the contactless parameters of the target NFC simulation card to obtain composite contactless parameters includes: If there is no activation conflict among the multiple NFC simulation cards in the target NFC simulation card, the contactless parameters of the target NFC simulation card are composited by using the security chip to obtain the composite contactless parameters.

10. The method according to claim 9, characterized in that Determining whether there is an activation conflict among multiple NFC simulation cards in the target NFC simulation card includes: Detect whether there is a conflict between contactless parameters of multiple NFC simulation cards in the target NFC simulation card; If there is no conflict in the contactless parameters of the multiple NFC simulation cards in the target NFC simulation card, it is determined that there is no activation conflict in the multiple NFC simulation cards in the target NFC simulation card.

11. The method according to claim 1, characterized in that: The electronic device includes an NFC chip, and activating the target NFC simulation card according to the composite contactless parameter includes: Using the security chip to send a second activation instruction to the NFC chip, the second activation instruction including the composite contactless parameter; According to the second activation instruction, the target NFC simulation card is activated using the NFC chip.

12. An activation device for NFC simulated card, characterized in that: The device is applied to an electronic device, and the electronic device comprises: Multiple NFC emulated cards; A security chip, used for storing contactless parameters of the plurality of NFC simulation cards; The device comprises: A determination module, configured to determine a target NFC simulation card, wherein the target NFC simulation card includes at least two NFC simulation cards among the multiple NFC simulation cards; A processing module, used for performing composite processing on the contactless parameters of the target NFC simulation card using the security chip to obtain composite contactless parameters; An activation module is used to activate the target NFC simulation card according to the composite contactless parameter.

13. A chip, characterized in that: include: A processor, configured to call and run a computer program from a memory, so that a device equipped with the chip executes a method as claimed in any one of claims 1 to 11.

14. An electronic device, characterized in that: include: A processor, a memory and a transceiver, wherein the memory is used to store a computer program, and the processor is used to call and run the computer program stored in the memory to control the electronic device to execute the method as described in any one of claims 1 to 11.

15. A computer-readable storage medium having executable code stored thereon, characterized in that: The code is used to implement the method according to any one of claims 1 to 11.

Citation Information

Cited By

  • Card management method and related equipment

    CN120636033A