Simulation card switching method suitable for NFC equipment, NFC equipment and storage medium
By pre-stored contactless parameters of multiple analog cards in the controller of the NFC device, and directly extracting and configuring the parameters of the target analog card from the controller, the problem of long-term switching of the NFC device simulation card is solved, and fast analog card switching is achieved.
Patent Information
- Application Number
- CN202411733583.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-29
- Publication Date
- 2025-03-11
AI Technical Summary
Existing NFC devices take a long time to switch analog cards and cannot meet users' needs for quick switching.
By pre-stored contactless parameters of multiple analog cards in the memory space of the controller, when switching the analog card, the contactless parameters corresponding to the target analog card are directly extracted from the memory space of the controller and communicated to enable the NFC device to work as the target analog card.
The simulation card switching time is greatly reduced, allowing users to quickly complete simulation card switching, meeting users' fast switching needs.
Smart Images

Figure CN119603659A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of near field communication, and in particular to an analog card switching method applicable to an NFC device, an NFC device, and a storage medium. Background Art
[0002] With the popularity of mobile payment, identity authentication and smart access control systems, mobile devices often appear as NFC (Near Field Communication) devices. NFC devices usually include a controller and a security element. The security element is used to store and manage multiple virtual cards, such as payment cards, transportation cards, and access control cards, while the controller is responsible for the near field communication between these cards and external devices.
[0003] Currently, each time an NFC device switches between simulated cards, it often takes a long time, which cannot meet the user's demand for quickly completing simulated card switching. Summary of the invention
[0004] In order to solve the above technical problem or at least partially solve the above technical problem, the present disclosure provides a simulated card switching method applicable to an NFC device, an NFC device, and a storage medium.
[0005] In a first aspect, the present disclosure provides a simulated card switching method applicable to an NFC device, wherein the NFC device includes a device host, a controller, and a security element, wherein the device host is respectively connected to the controller and the security element in communication, and the controller is also connected to the security element in communication, and the method includes:
[0006] The device host sends a simulation card switching instruction to the controller, wherein the simulation card switching instruction includes identification information of a target simulation card;
[0007] The controller extracts the target contactless parameter corresponding to the target simulated card from the storage space of the controller in response to the simulated card switching instruction;
[0008] The controller uses the target contactless parameters to configure the controller for communication so that the NFC device operates as the target emulated card.
[0009] In a second aspect, the present disclosure further provides an NFC device, the NFC device comprising a device host, a controller and a security element, the device host is respectively connected to the controller and the security element for communication, and the controller is also connected to the security element for communication;
[0010] The device host sends a simulation card switching instruction to the controller, wherein the simulation card switching instruction includes identification information of a target simulation card;
[0011] The controller extracts the target contactless parameter corresponding to the target simulated card from the storage space of the controller in response to the simulated card switching instruction;
[0012] The controller uses the target contactless parameters to configure the controller for communication so that the NFC device operates as the target emulated card.
[0013] In a third aspect, the present disclosure further provides a computer-readable storage medium, which stores a program or instruction, and the program or instruction enables a computer to execute the steps of any of the above methods.
[0014] Compared with the prior art, the technical solution provided by the embodiments of the present disclosure has the following advantages:
[0015] The technical solution provided by the embodiment of the present disclosure extracts the target contactless parameters corresponding to the target simulated card from the storage space of the controller by setting the controller to respond to the simulated card switching instruction; the controller uses the target contactless parameters to configure the controller for communication so that the NFC device works as the target simulated card. Its essence is to store the contactless parameters of multiple simulated cards in the storage space of the controller, so that when the simulated card needs to be switched, it is not necessary to obtain the contactless parameters of the simulated card that needs to be switched from the security element, but directly obtain them from the storage space of the controller, which makes the process of obtaining the target contactless parameters corresponding to the target simulated card almost instantaneous, so that the simulated card switching time can be fully reduced to meet the needs of users who want to quickly complete the simulated card switching. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0017] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0018] Figure 1 A structural block diagram of an NFC device provided in an embodiment of the present disclosure;
[0019] Figure 2 A flowchart of a simulated card switching method applicable to an NFC device provided in the present application. DETAILED DESCRIPTION
[0020] In order to more clearly understand the above-mentioned objectives, features and advantages of the present disclosure, the scheme of the present disclosure will be further described below. It should be noted that the embodiments of the present disclosure and the features in the embodiments can be combined with each other without conflict.
[0021] In the following description, many specific details are set forth to facilitate a full understanding of the present disclosure, but the present disclosure may also be implemented in other ways different from those described herein; it is obvious that the embodiments in the specification are only part of the embodiments of the present disclosure, rather than all of the embodiments.
[0022] In NFC scenarios, an emulated card refers to a digital card stored in an NFC device that can simulate the functions of a traditional physical card. Emulated cards have the characteristics of no physical media, high security, versatility and convenience, and are widely used in scenarios such as access control, payment, ticketing and identity authentication. With the support of NFC technology and embedded security elements, emulated cards can provide an efficient and secure user experience. In a scenario, an emulated card is sometimes referred to as an application.
[0023] As recorded in the prior art section, at present, each time an NFC device switches a simulated card, it often takes a long time. After a thorough study, the applicant found that one of the reasons for this phenomenon is that in the prior art, the NFC controller can only process a set of contactless parameters, and the contactless parameters of different cards are different and cannot be applied at the same time. In addition, the contactless parameters are stored in the security element. Therefore, when switching cards, the controller must obtain the contactless parameters of the simulated card that currently needs to be switched from the security element. Therefore, the whole process takes a long time.
[0024] In view of this, the present application provides a simulated card switching method applicable to NFC devices. The method is applicable to Figure 1 NFC devices given in . See Figure 1 The NFC device includes a device host, a controller and a security element. The device host is respectively connected to the controller and the security element for communication, and the controller is also connected to the security element for communication.
[0025] The NFC device can be a mobile terminal or a computer, etc. The mobile device can include, for example, a mobile phone, a PAD, a wearable device, a virtual reality device, an Internet of Things device, a payment device, an access control device, etc., or any combination thereof. Among them, wearable devices include, for example, smart watches, smart bracelets, pedometers, etc. NFC devices can be used in scenarios such as mobile payment, identity authentication, smart access control, and public transportation ticketing. Simulated cards can be used to implement multiple functions such as mobile payment, identity authentication, smart access control, and public transportation ticketing.
[0026] The controller and the security element may be separated or physically integrated into one module. The device host may communicate with the security element via the Open Mobile API interface. In some embodiments, the NFC controller 102 may communicate via protocols such as HCI (Host Controller Interface). The security element may be an embedded security chip (eSE).
[0027] Figure 2 This is a flowchart of a simulated card switching method applicable to NFC devices provided by this application. Figure 2 , the method comprising:
[0028] S110. The device host sends a simulation card switching instruction to the controller, where the simulation card switching instruction includes identification information of a target simulation card.
[0029] The analog card switching instruction is automatically generated by the device host based on user operation, and is used to indicate which analog card the controller currently needs to switch to.
[0030] The user operation may be, for example, a selection operation of an icon on the screen of the NFC device by the user, which may specifically be a click operation or a slide operation on an icon representing a certain simulated card.
[0031] The target analog card is the analog card that the controller currently needs to switch to. In some scenarios, the target analog card is a user-specified analog card.
[0032] The identification information of the simulated card may be, for example, information that distinguishes one simulated card from other simulated cards. Exemplarily, the identification information of the simulated card may be, for example, an application identifier (AID) of an application represented by the simulated card.
[0033] S120: In response to the simulation card switching instruction, the controller extracts target contactless parameters corresponding to the target simulation card from the storage space of the controller.
[0034] The target contactless parameters are contactless parameters corresponding to the target analog card.
[0035] Before executing this step, for example, in the process of creating a simulated card, the identification information of the created simulated card and the target contactless parameters corresponding to the simulated card can be stored in the storage space of the controller. The essence of this step is to query the target contactless parameters corresponding to the target simulated card in the storage space of the controller using the identification information of the target simulated card as an index.
[0036] The contactless parameters corresponding to the analog card may be, for example, radio frequency communication parameters including the application represented by the analog card. Exemplarily, the radio frequency communication parameters may include protocol layer communication parameters and / or physical layer communication parameters. If the radio frequency communication parameters include protocol layer communication parameters, the protocol layer communication parameters may include, for example, at least one of the following: ATQA (Answer To Request, Type A) and SAK (Select Acknowledge). If the radio frequency communication parameters include physical layer communication parameters. The physical layer communication parameters may include at least one of the following: distance between devices, field strength, radio frequency amplitude, radio frequency phase, frame delay time, and frame waiting time.
[0037] S130: The controller uses the target contactless parameters to perform communication configuration on the controller, so that the NFC device works as the target simulated card.
[0038] The essence of this step is that the controller uses the target contactless parameters to configure its own communication settings, so that the NFC device can imitate the target simulated card to achieve the corresponding functions. If the target simulated card is an access card, the controller uses the target contactless parameters of the access card to configure the controller for communication, so that the NFC device can communicate with the access control system as an access card.
[0039] In the above technical solution, the controller is set to respond to the analog card switching instruction, and the target contactless parameters corresponding to the target analog card are extracted from the storage space of the controller; the controller uses the target contactless parameters to configure the controller for communication, so that the NFC device works as the target analog card. Its essence is to store the contactless parameters of multiple analog cards in the storage space of the controller, so that when the analog card needs to be switched, it is not necessary to obtain the contactless parameters of the current analog card to be switched from the security element, but directly obtain them from the storage space of the controller, which makes the process of obtaining the target contactless parameters corresponding to the target analog card almost instantaneous, so the analog card switching time can be fully reduced, meeting the user's desire to quickly complete the analog card switching.
[0040] It should be noted that if the controller receives the contactless parameters corresponding to the simulated card from the security element, it is called activating the simulated card. When the contactless parameters corresponding to multiple simulated cards are stored in the storage space of the controller, it means that the controller has received the contactless parameters of multiple simulated cards from the security element, which means that multiple simulated cards are in an activated state. However, after the target simulated card is switched successfully, when the NFC controller communicates with other NFC devices, only the contactless parameters of the target simulated card are used, not the contactless parameters of all simulated cards. In other words, in this application, activating and switching simulated cards are two different things. Activation only means storing the contactless parameters of the simulated card in the storage space of the controller. Switching is to use the contactless parameters of a certain simulated card.
[0041] By adopting the technical solution provided by the present application, even if multiple simulated cards are activated at the same time, these parameters in the NFC controller will not be applied immediately, let alone used at the same time, thereby avoiding the occurrence of contactless parameter conflicts between different simulated cards.
[0042] Based on the above technical solution, optionally, after S130, the method may further include: the controller determines whether the current simulated card switching is successful, forms a determination result, and sends the determination result to the device host. The advantage of such a setting is that it is convenient to display the information of whether the target simulated card is successfully switched later; or, in the case of a target simulated card switching failure, take subsequent remedial measures.
[0043] In actual applications, the target simulated card may be updated after activation, but the contactless parameters stored in the controller are still the data before the update. In this case, the contactless parameters stored in the controller cannot make the NFC device work normally as the target simulated card, resulting in the failure of the target simulated card switching.
[0044] In this regard, optionally, the method may also include: if the judgment result is that the current simulation card switching has failed, the device host sends an activation instruction to the security element; the activation instruction includes the identification information of the target simulation card; in response to the activation instruction, the security element determines the contactless parameters of the target simulation card, and sends the contactless parameters of the target simulation card to the controller; the controller uses the contactless parameters of the target simulation card received from the security element to configure the controller for communication again.
[0045] The security element usually participates in the update of the contactless parameters of the simulated card, so that the security element can usually obtain more accurate contactless parameters of the simulated card. The essence of this setting is that in the case of failure of the current simulated card switching, the contactless parameters corresponding to the target simulated card are obtained from the security element, so that the controller uses the contactless parameters of the target simulated card obtained from the security element to configure its own communication settings, thereby achieving the purpose of trying to switch the target simulated card again and improving the success rate of the target simulated card switching.
[0046] In some embodiments, the secure element determining the contactless parameters of the target simulated card may include: the secure element determining the contactless parameters of the target simulated card from a communication protocol of an application represented by the target simulated card.
[0047] In another embodiment, the security element determines the contactless parameters of the target simulated card, which may include: the security element extracts the contactless parameters of the target simulated card from the storage space of the security element. The security element stores the identification information and contactless parameters of the target simulated card in the storage space of the security element when creating the target simulated card or when updating the contactless parameters of the target simulated card.
[0048] On the basis of the above embodiments, before the device host sends the simulation card switching instruction to the controller, the method may also include: the device host sends a creation instruction for the target simulation card to the security element; the security element determines the application identifier and the contactless parameters corresponding to the target simulation card for the target simulation card in response to the creation instruction; the security element sends the identification information and contactless parameters of the target simulation card to the controller; the controller stores the identification information and contactless parameters of the target simulation card in the storage space of the controller.
[0049] The security element determines the application identifier and the contactless parameters corresponding to the target simulated card for the target simulated card in response to the creation instruction. For example, the security element allocates the application identifier to the target simulated card in response to the creation instruction, and determines the contactless parameters of the target simulated card based on the communication protocol of the application represented by the target simulated card.
[0050] By setting the security element to respond to the creation instruction, the application identification and the contactless parameters corresponding to the target simulation card are determined for the target simulation card; the security element sends the identification information and contactless parameters of the target simulation card to the controller. In essence, after the security element determines the identification information and contactless parameters of the target simulation card, it synchronizes them to the controller in a timely manner, so that the identification information and contactless parameters of the target simulation card are pre-stored in the storage space of the controller, thereby preparing for the subsequent switch to the target simulation card.
[0051] Optionally, after the security element determines an application identifier and contactless parameters corresponding to the target simulated card in response to the creation instruction, the method further includes: the security element storing the identification information and contactless parameters of the target simulated card in a storage space of the security element.
[0052] If it is necessary to obtain the contactless parameters of the target simulated card from the security element later, it is obviously faster to query directly from the storage space of the security element than to determine based on the communication protocol of the application represented by the target simulated card. This can further improve the rate of remedial switching of the target simulated card.
[0053] Based on the above technical solutions, optionally, the method may also include: the device host sends a simulated card deletion instruction to the security element, and the simulated card deletion instruction includes the identification information of the target simulated card; the security element generates a notification message in response to the simulated card deletion instruction, and sends the notification message to the controller; the notification message includes the identification information of the target simulated card; the controller deletes the identification information of the target simulated card and the target contactless parameters stored in its storage space.
[0054] In practice, the storage space of the controller is usually small. When the analog card needs to be deleted, the identification information of the target analog card and the target contactless parameters in the storage space of the controller are deleted in time, which is conducive to the recycling of storage resources of the storage space of the controller.
[0055] Continue to see Figure 1 , the present application also provides an NFC device, the NFC device includes a device host, a controller and a security element, the device host is respectively connected to the controller and the security element for communication, and the controller is also connected to the security element for communication;
[0056] The device host sends a simulation card switching instruction to the controller, where the simulation card switching instruction includes identification information of the target simulation card;
[0057] The controller extracts the target contactless parameter corresponding to the target simulated card from the storage space of the controller in response to the simulated card switching instruction;
[0058] The controller uses the target contactless parameters to configure the controller for communication so that the NFC device works as the target emulated card.
[0059] The NFC device provided in this application can execute the steps of the simulated card switching method applicable to the NFC device provided in this application, and has the same or corresponding beneficial effects, and this application is not limited to this.
[0060] In some embodiments, the NFC device further includes a memory (not shown in the figure). The device host can call the logic instructions in the memory to execute the simulated card switching method applicable to the NFC device of the above-mentioned corresponding embodiment. The NFC controller can call the logic instructions in the memory to execute the simulated card switching method applicable to the NFC device of the above-mentioned corresponding embodiment. The security element can call the logic instructions in the memory to execute the simulated card switching method applicable to the NFC device of the above-mentioned corresponding embodiment.
[0061] The logic instructions in the above-mentioned memory can be implemented in the form of software functional units and sold or used as independent products, or can be stored in a computer-readable storage medium.
[0062] The memory, as a computer-readable storage medium, can be used to store software programs and computer executable programs, such as program instructions / modules corresponding to the method in the embodiment of the present disclosure. The processor executes the functional application and data processing by running the program instructions / modules stored in the memory, that is, the analog card switching method applicable to the NFC device in the above corresponding embodiment is implemented.
[0063] The memory 302 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the electronic device, etc. In addition, the memory 302 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory 302 may optionally include a memory remotely arranged relative to the processor 301, and these remote memories may be connected to the terminal device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0064] The embodiment of the present disclosure also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a program or instruction, wherein the program or instruction enables a computer to execute a simulated card switching method applicable to an NFC device, the method comprising:
[0065] The device host sends a simulation card switching instruction to the controller, wherein the simulation card switching instruction includes identification information of a target simulation card;
[0066] After the controller responds to the simulation card switching instruction, the controller extracts the target contactless parameter corresponding to the target simulation card from the storage space of the controller;
[0067] The controller uses the target contactless parameters to configure the controller for communication so that the NFC device operates as the target emulated card.
[0068] Optionally, when the computer executable instruction is executed by a computer processor, it can also be used to execute the technical solution of the simulated card switching method applicable to an NFC device provided in any embodiment of the present disclosure.
[0069] Through the above description of the implementation methods, the technical personnel in the relevant field can clearly understand that the present disclosure can be implemented by means of software and necessary general hardware, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present disclosure can be essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as a computer floppy disk, read-only memory (ROM), random access memory (RAM), flash memory (FLASH), hard disk or optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, server, or network device, etc.) to execute the methods described in each embodiment of the present disclosure.
[0070] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also 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 a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0071] The above description is only a specific embodiment of the present disclosure, so that those skilled in the art can understand or implement the present disclosure. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present disclosure. Therefore, the present disclosure will not be limited to the embodiments described herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A simulated card switching method applicable to NFC devices, characterized in that: The NFC device includes a device host, a controller and a security element, the device host is respectively connected to the controller and the security element in communication, the controller is also connected to the security element in communication, and the method includes: The device host sends a simulation card switching instruction to the controller, wherein the simulation card switching instruction includes identification information of a target simulation card; The controller extracts the target contactless parameter corresponding to the target simulated card from the storage space of the controller in response to the simulated card switching instruction; The controller uses the target contactless parameters to configure the controller for communication so that the NFC device operates as the target emulated card.
2. The method according to claim 1, characterized in that After the controller configures the communication with the non-contact parameter, the controller further includes: The controller determines whether the current simulated card switching is successful, forms a determination result, and sends the determination result to the device host.
3. The method according to claim 2, characterized in that Also includes: If the judgment result is that the current simulated card switching fails, the device host sends an activation instruction to the secure element; The activation instruction includes identification information of the target simulation card; In response to the activation instruction, the secure element determines contactless parameters of the target simulated card and sends the contactless parameters of the target simulated card to the controller; The controller reconfigures the controller for communication using the contactless parameters of the target simulated card received from the secure element.
4. The method according to claim 3, characterized in that The security element determines the contactless parameters of the target simulated card, including: The secure element extracts the contactless parameters of the target simulated card from a storage space of the secure element.
5. The method according to claim 1, characterized in that Before the device host sends the analog card switching instruction to the controller, the device host also includes: The device host sends a creation instruction for a target simulated card to the secure element; The secure element determines, in response to the creation instruction, an application identifier for the target simulated card and contactless parameters corresponding to the target simulated card; The security element sends the identification information and contactless parameters of the target simulated card to the controller; The controller stores the identification information and contactless parameters of the target simulated card in a storage space of the controller.
6. The method according to claim 5, characterized in that After the security element determines the application identifier and the contactless parameters corresponding to the target simulated card for the target simulated card in response to the creation instruction, the security element further includes: The secure element stores the identification information and contactless parameters of the target simulated card in a storage space of the secure element.
7. The method according to claim 1, characterized in that Also includes: The device host sends a simulated card deletion instruction to the secure element, wherein the simulated card deletion instruction includes identification information of the target simulated card; The security element generates a notification message in response to the simulated card deletion instruction, and sends the notification message to the controller; the notification message includes identification information of the target simulated card; The controller deletes the identification information of the target simulated card and the target contactless parameters stored in its storage space.
8. The method according to claim 1, characterized in that: The contactless parameters of the target simulated card include at least one of the following: ATQA and SAK.
9. An NFC device, characterized in that: The NFC device comprises a device host, a controller and a security element, wherein the device host is respectively connected to the controller and the security element for communication, and the controller is also connected to the security element for communication; The device host sends a simulation card switching instruction to the controller, wherein the simulation card switching instruction includes identification information of a target simulation card; The controller extracts the target contactless parameter corresponding to the target simulated card from the storage space of the controller in response to the simulated card switching instruction; The controller uses the target contactless parameters to configure the controller for communication so that the NFC device operates as the target emulated card.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a program or instruction, and the program or instruction enables a computer to execute the steps of the method according to any one of claims 1 to 8.