Virtual card activation method and device, equipment and storage medium

By introducing an automatic switching mechanism of spin-activated state and deactivated state into the virtual card system, the security risks of virtual bank cards in the shutdown state are solved, and the function of timely disabling virtual cards when specific conditions are met is realized, improving the security of use.

CN119692993APending Publication Date: 2025-03-25BEIJING TSINGTENG MICROSYSTEM CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411771264.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-04
Publication Date
2025-03-25

AI Technical Summary

Technical Problem

There may be security risks when the virtual bank card is turned off. After the user enters the personal verification code, the host shuts down, causing the virtual bank card to be swipable, which poses a risk of stealing.

Method used

Send activation commands to NFCEE through the NFC Card Manage App, switch the working state of the target virtual card to the spin-activated state, and automatically switch to the deactivated state when the target spin condition is met, preventing card swiping in the shutdown state.

Benefits of technology

Disable the virtual card in time when specific conditions are met, avoid the security risks caused by swiping cards in the shutdown state, and improve the security of using the virtual card.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119692993A_ABST
    Figure CN119692993A_ABST
Patent Text Reader

Abstract

The embodiment of the invention relates to a virtual card activation method and device, equipment and a storage medium, and the method comprises the steps: transmitting an activation instruction of a target virtual card to an NFCEE through an NFC Card Manage App; the working state of the target virtual card is switched to a spin activation state through the NFCEE, and the spin activation state means that the target virtual card is in a normal use state of a user and is automatically switched to a deactivation state through the NFCEE when a target spin condition is met; and switching the working state of the target virtual card to a deactivated state through the NFCEE when it is detected that the target spin condition is satisfied. According to the embodiment of the invention, the working state of the target virtual card can be switched to the deactivation state through the NFCEE under the condition that the target spin condition is detected to be met, so that the target virtual card can be forbidden in time in a related use scene, and potential safety hazards caused by the fact that the target virtual card is in a state that the target virtual card can be swiped when the target virtual card is shut down are avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present disclosure relate to the field of NFC technology, and in particular to a method, device, equipment and storage medium for activating a virtual card. Background Art

[0002] At present, with the development and progress of science and technology, various mobile devices are generally equipped with Near Field Communication (NFC) function, among which the card simulation function of NFC is an important application scenario of NFC. This technology allows users to simulate multiple virtual cards on a physical device at the same time, such as access cards, bus cards, bank cards, etc. Moreover, this technology generally supports power-off card simulation, that is, the host device (referred to as host) is turned off, and virtual cards can also be used to swipe cards. Users can use mobile devices that support NFC function to swipe cards when the device is turned off, which brings great convenience to users.

[0003] However, for some virtual cards such as virtual bank cards, the phenomenon of allowing card swiping when the device is turned off may pose a security risk. Specifically, bank card swiping involves personal financial security, and generally requires users to swipe the card in a fully perceptible situation, such as when the phone is turned on and in a specific client application interface. Some devices even require users to enter a personal verification code before allowing bank card swiping, and then disable card swiping after the card is swiped. Even with such strict control, there is still the problem that the virtual bank card in NFC can still be swiped in the off state due to unexpected interruptions in the pre-process and other reasons. For example: after the user enters the personal verification code, the host sets the virtual bank card to a contactless accessible state, but then the host is turned off, the virtual bank in NFC is not disabled and the device is shut down in advance before swiping the card, which ultimately causes the virtual bank card to be in a state where it can be swiped even when the device is turned off, posing a security risk. Summary of the invention

[0004] In order to solve the above technical problems or at least partially solve the above technical problems, the embodiments of the present disclosure provide a method, apparatus, device and storage medium for activating a virtual card.

[0005] A first aspect of an embodiment of the present disclosure provides a method for activating a virtual card, the method comprising:

[0006] Use the NFC Card Manage App to send the activation instruction of the target virtual card to NFCEE;

[0007] By means of the NFCEE, the working state of the target virtual card is switched to a spin-activated state, wherein the spin-activated state means that the target virtual card is in a normal user use state and is automatically switched to a deactivated state by means of the NFCEE when a target spin condition is met;

[0008] When it is detected that the target spin condition is met, the working state of the target virtual card is switched to the deactivated state through the NFCEE.

[0009] A second aspect of an embodiment of the present disclosure provides a virtual card activation device, the device comprising:

[0010] An activation instruction sending module is used to send an activation instruction of a target virtual card to NFCEE through the NFC Card Manage App;

[0011] A first state switching module, configured to switch the working state of the target virtual card to a spin activation state through the NFCEE, wherein the spin activation state means that the target virtual card is in a normal user use state and is automatically switched to a deactivated state through the NFCEE when a target spin condition is met;

[0012] The second state switching module switches the working state of the target virtual card to the deactivated state through the NFCEE when detecting that the target spin condition is met.

[0013] A third aspect of an embodiment of the present disclosure provides an electronic device, comprising: a processor and a memory, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the processor executes the method of the first aspect above.

[0014] A fourth aspect of an embodiment of the present disclosure provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the method of the first aspect described above can be implemented.

[0015] Compared with the prior art, the technical solution provided by the embodiments of the present disclosure has the following advantages:

[0016] The virtual card activation method provided by the embodiment of the present disclosure includes: sending an activation instruction of the target virtual card to NFCEE through the NFC Card Manage App; switching the working state of the target virtual card to the spin activation state through NFCEE, wherein the spin activation state refers to the target virtual card being in a normal user use state and automatically switching to the deactivated state through NFCEE when the target spin condition is met; when it is detected that the target spin condition is met, switching the working state of the target virtual card to the deactivated state through NFCEE. Since the embodiment of the present disclosure can switch the working state of the target virtual card to the deactivated state through NFCEE when it is detected that the target spin condition is met, it is helpful to disable the target virtual card in time in relevant usage scenarios, thereby avoiding the security risks caused by the target virtual card being in a state where the card can be swiped when the computer is turned off. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] 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.

[0018] 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.

[0019] Figure 1 A schematic diagram of a flow chart of a method for activating a virtual card provided in an embodiment of the present disclosure;

[0020] Figure 2 A schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure;

[0021] Figure 3 A schematic diagram of a flow chart of another method for activating a virtual card provided in an embodiment of the present disclosure;

[0022] Figure 4 A schematic diagram of the structure of a virtual card activation device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0023] 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.

[0024] 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.

[0025] Figure 1 A flowchart of a method for activating a virtual card provided in an embodiment of the present disclosure is provided. Figure 2 The present invention provides a schematic diagram of the structure of an electronic device, and the method can be performed based on the electronic device. The electronic device can be exemplarily understood as a mobile phone, tablet computer, laptop computer, desktop computer, smart TV, etc., and the virtual card includes but is not limited to an access card, bus card, bank card, etc. Figure 1 As shown, the method provided in this embodiment includes the following steps:

[0026] S110. Send an activation instruction of the target virtual card to NFCEE through the NFC Card Manage App.

[0027] Among them, Figure 2 As shown, in the embodiment of the present disclosure, the host supporting the NFC function is referred to as Host 01. Host 01 includes: NFC Service 101, NFC chip 103 and NFC Card Manage App 102. The NFC chip 103 is used to implement the NFC function. The NFC chip 103 includes: NFCC (NFC Controller) 202 and NFCEE (NFC Execution Environment) 201, which are two physical or logical parts of the NFC chip 103 and implement the function of the NFC chip 103 together. The NFCEE 201 includes: Applet 301, that is, a virtual card.

[0028] In particular, NFC Card Manage App 102 is a client application (Application, App) responsible for managing the NFC virtual card on the host side, such as an App program in the Android system, etc. It can realize the function of managing NFCEE in cooperation with the Trusted Service Manager (TSM), which specifically involves the management capability of the contactless activation state and contactless deactivation state of the virtual card.

[0029] NFCEE 201 is responsible for virtual card simulation, specifically: realizing virtual card operating environment and virtual card application, NFCCard Manage App 102 saves the list of all virtual card applications installed in NFCEE 201, and knows whether a virtual card is a virtual bank card and other types. This information can be obtained directly from NFCEE 201, and can also be obtained through the cloud platform managed by NFCEE201 application, such as TSM platform. The functions of other components are exemplified in the following text.

[0030] It can be understood that before the user uses the NFC virtual card to swipe the card, the user first selects the virtual card to be used for swiping the card through the NFC Card ManageApp 102. For example, the software interface of the NFC Card Manage App 102 can present a variety of virtual card options such as bus cards, bank cards, and access cards. The user can click on a virtual card, and the selected virtual card is the target virtual card.

[0031] Specifically, when there is a user demand to swipe the target virtual card, the NFC Card Manage App sends an activation instruction for the target virtual card to NFCEE to activate the virtual card that needs to be swiped, so as to facilitate further adaptive switching of the working status of the target virtual card. The switching form of the working status of the target virtual card will be described in detail later.

[0032] S120: Switch the working state of the target virtual card to the spin activation state through NFCEE.

[0033] Among them, the spin activation state means that the target virtual card is in normal user use and automatically switches to the deactivated state through NFCEE when the target spin conditions are met. This spin activation state can adapt to a wider and more flexible security activation application scenario.

[0034] Among them, in NFC technology, the activation state of a virtual card refers to the state in which the virtual card is usable by the user, and the deactivation state of a virtual card refers to the state in which the virtual card is unusable by the user. Specifically, when a virtual card is in an activated state, the virtual card can participate in NFC transactions normally, that is, it can perform normal read and write operations, such as payment, data exchange, and receiving access services, and can also respond to requests and perform security verification normally. When a virtual card is in a deactivated state, the virtual card cannot participate in NFC transactions, that is, it cannot perform any read and write operations, and cannot respond to any requests.

[0035] It can be seen that the activation instruction specifically instructs to set the target virtual card, i.e., Applet 301, to a spin activation state, which is different from the application activation state commonly used in the current prior art. It can be understood as a special activation state, which is special in that it automatically switches to a deactivated state through NFCEE when the target spin condition is met. When the target virtual card switches to the spin activation state, the target virtual card is generally in an activated state, that is, the activated state is normal, and when the target spin condition is met, the target virtual card will automatically enter a deactivated state.

[0036] S130: When it is detected that the target spin condition is met, the working state of the target virtual card is switched to a deactivated state through NFCEE.

[0037] It can be understood that the target spin condition is a preset judgment condition for measuring whether the target virtual card automatically switches to the deactivated state. When the target spin condition is detected to be met, the working state of the target virtual card switches to the deactivated state. Conversely, when the target spin condition is not detected to be met, the working state of the target virtual card remains activated. In this way, when the target spin condition is met, the target virtual card is set to automatically switch to the deactivated state, which realizes the adaptive switching of the working state of the target virtual card, meets the needs of timely disabling the target virtual card in relevant usage scenarios, protects the rights and interests of users from being infringed, and improves the security of virtual card use.

[0038] Exemplarily, the target spin conditions include but are not limited to conditions set for the working status of the host, the duration that the target virtual card is in the spin activation state, etc. The target spin conditions can be set according to the actual activation requirements of the virtual card and are not limited here.

[0039] The virtual card activation method provided by the embodiment of the present disclosure includes: sending an activation instruction of the target virtual card to NFCEE through NFC Card Manage App; switching the working state of the target virtual card to the spin activation state through NFCEE, wherein the spin activation state refers to the target virtual card being in a normal user use state and automatically switching to the deactivated state through NFCEE when the target spin condition is met; when it is detected that the target spin condition is met, the working state of the target virtual card is switched to the deactivated state through NFCEE. In this way, when it is detected that the target spin condition is met, the working state of the target virtual card is switched to the deactivated state through NFCEE, which helps to disable the target virtual card in time in relevant usage scenarios, thereby avoiding the security risks caused by the target virtual card being in a state where the card can be swiped when the computer is turned off.

[0040] In actual applications, the relevant activation operations of the virtual bank card are often implemented on the NFC wallet client software of a mobile device such as a mobile phone. The embodiment of the present disclosure can further automatically control the host to not allow the card to be swiped when it is in the off state based on the above control strategy inside the NFC chip, so as to solve the problem that after the virtual bank card is activated on the client, the card can still be swiped when the host is in the off state due to unexpected interruption of the previous process, thereby causing security risks.

[0041] In some embodiments, Figure 1 and Figure 2 Based on , the target spin conditions include:

[0042] The host is in a shutdown state; and / or the target virtual card is in a spin activation state for a duration that reaches a preset duration.

[0043] Specifically, when the host is in the shutdown state, that is, when the host is shut down, the target virtual card is prone to the risk of malicious theft in this case. For this reason, the target virtual card is set to automatically switch to the deactivated state to disable the target virtual card in time when the host is shut down, avoiding the security risks caused by allowing card swiping when shutting down, such as: avoiding financial losses caused by theft of virtual cards such as bank cards, and information leakage caused by theft of access cards.

[0044] Specifically, when the target virtual card is in the spin activation state for a preset time, that is, the spin activation state lasts longer than or equal to the preset time, that is, when a timeout event occurs, the target virtual card is set to automatically switch to the deactivated state. This can avoid the risk of fraud caused by the target virtual card being in the activated state for a long time, enhance the security of virtual card use, and protect the user's personal rights and privacy.

[0045] In some embodiments, Figure 1 and Figure 2 Based on this, S110 specifically includes the following steps:

[0046] Use the physical communication interface to send an activation command to NFCEE through the NFC Card Manage App; or send an activation command to the NFC Service through the NFC Card Manage App, send an activation command to the NFCC through the NFC Service, and send an activation command to the NFCEE through the NFCC.

[0047] Among them, Figure 2As shown, NFC Service 101 refers to a software service program that provides various NFC-related functions and services, and is used to implement the basic control functions of NFC, specifically the host power status notification function, the card swiping control function, etc.; NFCC 202 (i.e., NFC controller) is responsible for the NFC radio frequency protocol-related functions and the implementation of related protocol stacks. In addition, it should be noted that the NFC chip 103 belongs to a hardware module, and the NFCC function and the NFCEE function can be implemented by two independent hardwares, or the two functions can be implemented by the same hardware. In the embodiment where the two functions are implemented by the same hardware, the interaction relationship between NFCC and NFCEE is a logical relationship.

[0048] Specifically, see Figure 2 , the NFC Card Manage App 102 and the NFCEE 201 are directly connected via an independent physical communication interface (not shown), and the NFC Card Manage App 102 can send an activation instruction to the NFCEE 201 through the physical communication interface, so that the NFC Card Manage App 102 can directly access the NFCEE 201; or, see Figure 2 In another path shown by the dotted arrow direction 105, the NFC Card Manage App 102 sends the activation instruction to the NFC Service 101, which is forwarded by the NFC Service 101 to the NFCC 202, and then forwarded by the NFCC 202 to the NFCEE 201, so that the NFC Card Manage App 102 indirectly accesses the NFCEE 201.

[0049] In some embodiments, Figure 1 and Figure 2 On the basis of this, the activation instruction includes a unique identifier, spin activation information and spin condition information, wherein the unique identifier is used to indicate the target virtual card, the spin activation information is used to indicate switching the state of the target virtual card to the spin activation state, and the spin condition information is used to determine the target spin condition.

[0050] Specifically, the NFC chip can simulate multiple virtual cards in the card emulation mode, each virtual card has a unique identifier and is different from each other, that is, multiple virtual cards correspond to multiple unique identifiers one by one, so that the NFCEE can determine the target virtual card corresponding to the current unique identifier based on the activation instruction, and correctly identify the target virtual card. Exemplarily, the length of the unique identifier can be 4 bytes (32 bits) or 7 bytes (56 bits), which can be set according to the management requirements of the virtual card and is not limited here.

[0051] In addition, different values ​​can be used to define different states, such as: the number 0 represents the traditional activation state, the number 1 represents the spin activation state, and the number 2 represents the deactivated state. It can be seen that the spin activation state is defined as a state value different from the traditional activation state, which can better distinguish the two. On this basis, the spin activation information may include the spin activation state defined by the number 1, so as to simply and intuitively indicate to the NFCEE that the state of the target virtual card is switched to the spin activation state. In other implementations, other different values ​​or different parameter types can be used to distinguish between the spin activation state and the traditional activation state, which is not limited here.

[0052] Exemplarily, the spin condition information in the activation instruction can be sent to the NFCEE in the form of instruction parameters. For example, the spin condition information may include the spin condition expressed in text form, or may include the spin condition expressed in the form of encoding, code, etc., so that the NFCEE determines the target spin condition based on the spin condition information in the activation instruction. In other embodiments, the spin condition may also be expressed by instruction parameters in other forms, which is not limited here.

[0053] In this way, by carrying the spin condition information in the activation instruction, the storage space of the NFCEE does not need to be occupied, which helps to improve the processing speed of the NFCEE.

[0054] In some embodiments, Figure 1 and Figure 2 Based on the unique identifier included in the activation command, the target spin condition is pre-set in the NFCEE.

[0055] Specifically, the activation instruction may also include spin activation information. After the activation instruction is sent to the NFCEE, the NFCEE responds to the activation instruction, determines the target virtual card and switches the state of the target virtual card to the spin activation state. Since the target spin condition is pre-set in the NFCEE, it works for all virtual cards set to the spin activation state, and can automatically switch to the deactivated state when the target virtual card meets the target spin condition.

[0056] In this way, by presetting the target spin condition in the NFCEE, there is no need to carry the spin condition information in the activation instruction, which reduces the response time of the NFCEE to the activation instruction, thereby enabling a quick response to the activation instruction.

[0057] In addition, it should be noted that the spin conditions of different virtual cards can be the same or different. For example, taking different spin conditions as an example, when the target virtual card is a virtual bank card, the corresponding spin condition can be set as: the host's working state is in the shutdown state; when the target virtual card is an access control card, the corresponding spin condition can be set as: the target virtual card is in the spin activation state for a continuous period of time that reaches a preset period of time. Here, it can be set according to the management needs of the virtual card, and is not limited here.

[0058] In some embodiments, Figure 1 and Figure 2 On the basis of, the activation instruction includes a timeout parameter, and the timeout parameter is used to represent the total countdown time, that is, the preset duration.

[0059] Specifically, the countdown starts when the target virtual card is set to the spin-activated state. When the total countdown time, that is, the preset duration, ends, the target virtual card automatically switches from the spin-activated state to the deactivated state.

[0060] In some embodiments, Figure 1 and Figure 2 On the basis of, the activation instruction does not carry specially defined parameters, which are consistent with the parameters that a traditional activation instruction can carry.

[0061] Specifically, see Figure 2 The NFC service provider may pre-set a configuration item in the NFCEE 201 in advance, and the configuration item is used to indicate that the target virtual card is prohibited from being swiped when the host is in the off state. After sending an activation instruction to the NFCEE 201 through the NFC Card Manage App 102, the NFCEE 201 activates the target virtual card in response to the activation instruction, and deactivates the target virtual card when detecting that the host is in the off state, so as to prohibit the target virtual card from being swiped.

[0062] It should be noted that the NFC service provider may pre-set this configuration item in the following manner: when installing a virtual card, the installation package of the virtual card already carries this configuration information, and the configuration information comes from the generator of the virtual card installation package, i.e., TSM 501 for providing background services, which is responsible for managing the virtual card, for example, establishing a secure link, generating and issuing installation packages, etc.

[0063] In some embodiments, Figure 1 and Figure 2 On the basis of, the method further comprises the following steps:

[0064] Through NFCEE, the target virtual card, whether it is switched to the spin activation state, and whether it carries the spin condition information are associated and recorded.

[0065] Among them, see Figure 2 NFCEE also includes Contactless Manager 302, which is responsible for managing the contactless activation state and contactless deactivation state of the virtual card, specifically including: receiving the host's working state change information sent by NFCC, and dynamically modifying the spin activation state and deactivation state of the target virtual card based on this. In other embodiments, the software structure inside NFCEE may also include other basic components or auxiliary components, such as hardware drivers, Java Card COS platform, Global Platform Framwork, etc. These components are the basis for the work of the target virtual card and ContactlessManager in the embodiments of the present disclosure.

[0066] Specifically, after NFCEE receives the activation instruction sent by the NFC Card Manage App, NFCEE performs activation and subsequent automatic deactivation actions according to the activation instruction, including: switching the working state of the target virtual card to the spin activation state, and setting the target virtual card to automatically switch to the deactivation state when the target spin condition is met. At the same time, the relevant information in the activation instruction, such as the target virtual card, whether to switch to the spin activation state, and whether to carry the spin condition information, is recorded in the Contactless Manager and associated with the target virtual card. In this way, the relevant information of the target virtual card can be determined more quickly, thereby improving the management efficiency of the virtual card.

[0067] In some embodiments, Figure 1 and Figure 2 On the basis of, the method further comprises the following steps:

[0068] When it is detected that the working state of the host is changed from the off state to the on state, the state of the target virtual card is switched to the spin activation state through NFCEE.

[0069] Specifically, the activation instruction may also include a self-recovery condition flag, which is used to indicate that after the target virtual card switches from the spin-activated state to the deactivated state, when the NFCC detects that certain conditions are met, such as the working state of the host changes from the shutdown state to the power-on state again, the specific situation of the detection is notified to the ContactlessManager in the NFCEE, and the Contactless Manager automatically restores the state of the target virtual card from the deactivated state to the spin-activated state.

[0070] It is not difficult to understand that, given that the above-mentioned deactivation state is not fixed but has a recovery mechanism, this recoverable deactivation state can also be defined as a spin deactivation state; in actual applications, whether to adopt this recovery mechanism may depend on the different security level requirements of the target virtual card. For example: if the security level requirement of the target virtual card is low, this recovery mechanism can be adopted, otherwise it will not be adopted.

[0071] See Figure 2 , the figure also shows a point of sale terminal (Point Of Sale, POS), referred to as POS machine 401, which is used to interact with the virtual card in the NFC chip to complete payment and other activities. When the working state of the host changes to the power-on state, the state of the target virtual card 301, such as a virtual bank card, is switched to the spin activation state, and then the POS machine 401 can normally access the target virtual card 301 through communication technologies such as radio frequency (RF), which is convenient for users to make daily payments. It can be understood that if the state of the target virtual card 301, such as a virtual bank card, is in a deactivated state, the POS machine 401 will be informed that it is unavailable when accessing the target virtual card 301.

[0072] Such a setting ensures that the user can continue to use the target virtual card normally, meets the user's usage needs, and improves the user experience.

[0073] In some embodiments, Figure 1 and Figure 2 On the basis of, the method further comprises the following steps:

[0074] Through NFCEE, detect the change of the host's working status.

[0075] Specifically, NFCEE senses the changes in the host's shutdown and power-on states, and sends its working status information to the Contactless Manager. The Contactless Manager receives the information and detects whether the target virtual card set to the spin-activated state meets the target spin condition. If the target spin condition is met, the working state of the target virtual card is switched to the deactivated state. Conversely, if the target spin condition is not met, the working state of the target virtual card is maintained as the spin-activated state. In this way, by detecting the changes in the working state of the host through NFCEE, direct perception of the working state of the host is achieved, which is simpler and more convenient.

[0076] In some embodiments, Figure 1 and Figure 2 On the basis of, the method further comprises the following steps:

[0077] Through NFCC, the host's working status change is detected and the host's working status change information is sent to NFCEE.

[0078] Specifically, there may be an electrical connection relationship between the NFCC and the host, such as: the two may be connected through a physical line. On this basis, the NFCC can sense the state changes of some hardware connections between it and the host, including but not limited to: the on and off of certain lines, the potential changes of the connection ends of certain lines, etc., thereby further determining whether the host enters the shutdown state or the power-on state, and when the NFCC senses the change in the working state of the host, the host's working state change information is sent to the NFCEE.

[0079] For example, Figure 2 , the figure shows that a communication interface 203 is provided between the NFCC 202 and the NFCEE 201, and the NFCC 202 can notify the NFCEE 201 of information about changes in the working state of the host through the communication interface 203; and the figure also shows a circuit connection interface 104 between the NFC chip 103 and the host 01, which can be provided in the NFCC 202, so that the NFCC 202 in the NFC chip 103 senses changes in the working state of the host through the circuit connection interface 104.

[0080] In this way, NFCEE realizes indirect perception of the host's working status by using NFCC to detect changes in the host's working status, enriches the way to detect the host's working status, and reduces the startup time of NFCEE, reduces the response delay, and thus improves the overall response speed of the host.

[0081] In some embodiments, Figure 1 and Figure 2 On the basis of, the method further comprises the following steps:

[0082] When the host is turned off, the shutdown notification information is sent to NFCC through NFC Service, and the host's working status change information is sent to NFCEE through NFCC.

[0083] Specifically, when the host is shut down, the NFC Service can send a shutdown notification message to the NFCC in the form of a command to inform the host that it will enter the shutdown state. Then the NFCC can generate the host's working status change information based on the shutdown notification information and send it to the NFCEE.

[0084] Figure 3 A flowchart of another method for activating a virtual card provided by an embodiment of the present disclosure. The embodiment of the present disclosure is optimized on the basis of the above embodiment, and the embodiment of the present disclosure can be combined with various optional solutions in one or more of the above embodiments.

[0085] like Figure 3 As shown, the method for activating the virtual card may include the following steps:

[0086] S210: The user selects a target virtual card to be swiped on the NFC Card Manage App interface.

[0087] S220, the NFC Card Manage App sends an activation instruction for the target virtual card to the NFCEE in the NFC chip; the activation instruction includes a unique identifier, spin activation information and spin condition information, and when the spin condition information indicates that the working state of the host is in the shutdown state, the working state of the target virtual card is switched to the deactivated state.

[0088] S230. The Contactless Manager in the NFCEE sets the target virtual card to a spin activation state and records the spin condition information.

[0089] S240: When the host is turned off, the shutdown notification information is sent to the NFCC through the NFC Service, or the NFCC senses the shutdown state of the host based on the signal of the IO port.

[0090] S250. The NFCC sends the shutdown status information of the host to the Contactless Manager in the NFCEE.

[0091] S260. The Contactless Manager checks the spin condition of the target virtual card in the spin activation state, determines that the shutdown state of the host satisfies the spin condition, and automatically changes the state of the target virtual card to the deactivated state.

[0092] S270: POS selects the target virtual card to swipe, and returns an application unavailable status word.

[0093] Figure 4 A schematic diagram of a virtual card activation device provided in an embodiment of the present disclosure. The virtual card activation device can be understood as Figure 2 Some functional modules of electronic equipment.

[0094] like Figure 4 As shown, the virtual card activation device 310 includes:

[0095] The activation instruction sending module 311 is used to send an activation instruction of the target virtual card to NFCEE through the NFC Card Manage App; the first state switching module 312 is used to switch the working state of the target virtual card to the spin activation state through NFCEE, wherein the spin activation state means that the target virtual card is in a normal user use state and is automatically switched to a deactivated state through NFCEE when the target spin condition is met; the second state switching module 313 switches the working state of the target virtual card to the deactivated state through NFCEE when it is detected that the target spin condition is met.

[0096] The device provided in this embodiment can execute the method of any of the above embodiments, and its execution method and beneficial effects are similar, which will not be repeated here.

[0097] An embodiment of the present disclosure further provides an electronic device, which includes: a memory, in which a computer program is stored; and a processor, which is used to execute the computer program. When the computer program is executed by the processor, the method of any of the above embodiments can be implemented.

[0098] The electronic devices in the embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc.

[0099] The electronic device may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.), which may perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) or a program loaded from a storage device into a random access memory (RAM). In the RAM, various programs and data required for the operation of the electronic device are also stored. The processing device, ROM, and RAM are connected to each other via bus 1004. An input / output (I / O) interface is also connected to the bus.

[0100] Typically, the following devices may be connected to the I / O interface: input devices including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; output devices including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices including, for example, a magnetic tape, a hard disk, etc.; and communication devices. The communication devices may allow the electronic device to communicate with other devices wirelessly or by wire to exchange data.

[0101] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program contains a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device, or installed from a ROM. When the computer program is executed by a processing device, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.

[0102] It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0103] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.

[0104] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.

[0105] The above-mentioned computer-readable medium carries one or more programs. When the above-mentioned one or more programs are executed by the electronic device, the electronic device: requests from the server to obtain the page code of the page to be loaded, and the spliced ​​file obtained by splicing the page resources to be loaded on the page to be loaded, wherein the page code includes information about the position of the page resources in the spliced ​​file; based on the page code, reads the page resource from the position of the spliced ​​file, and loads the page resource onto the page to be loaded.

[0106] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages ​​or a combination thereof, including, but not limited to, object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).

[0107] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0108] The units involved in the embodiments described in the present disclosure may be implemented by software or hardware, wherein the name of a unit does not, in some cases, limit the unit itself.

[0109] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.

[0110] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0111] The embodiments of the present disclosure further provide a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the method of any of the above embodiments can be implemented. The execution method and beneficial effects are similar and will not be repeated here.

[0112] 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.

[0113] 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 method for activating a virtual card, characterized in that: include: Use the NFC Card Manage App to send the activation instruction of the target virtual card to NFCEE; By means of the NFCEE, the working state of the target virtual card is switched to a spin-activated state, wherein the spin-activated state means that the target virtual card is in a normal user use state and is automatically switched to a deactivated state by means of the NFCEE when a target spin condition is met; When it is detected that the target spin condition is met, the working state of the target virtual card is switched to the deactivated state through the NFCEE.

2. The method according to claim 1, characterized in that The target spin conditions include: The host is in shutdown state; And / or, the duration of the target virtual card being in the spin activation state reaches a preset duration.

3. The method according to claim 1, characterized in that The sending the activation instruction to NFCEE through the NFC Card Manage App includes: Sending the activation instruction to the NFCEE using a physical communication interface through the NFC Card Manage App; Alternatively, the activation instruction is sent to the NFC Service through the NFC Card Manage App, the activation instruction is sent to the NFCC through the NFC Service, and the activation instruction is sent to the NFCEE through the NFCC.

4. The method according to claim 1, characterized in that: The activation instruction includes a unique identifier, spin activation information and spin condition information, wherein the unique identifier is used to indicate the target virtual card, the spin activation information is used to indicate switching the state of the target virtual card to the spin activation state, and the spin condition information is used to determine the target spin condition; Alternatively, the activation instruction includes the unique identifier, and the target spin condition is pre-set in the NFCEE.

5. The method according to claim 4, characterized in that Also includes: Through the NFCEE, the target virtual card, whether it is switched to the spin activation state, and whether it carries the spin condition information are associated and recorded.

6. The method according to any one of claims 1 to 5, characterized in that Also includes: When it is detected that the working state of the host is changed from the off state to the on state, the state of the target virtual card is switched to the spin activation state through the NFCEE.

7. The method according to claim 6, characterized in that Also includes: Detecting a change in the working state of the host through the NFCEE; Alternatively, detecting a change in the operating state of the host through the NFCC, and sending information on the change in the operating state of the host to the NFCEE; Alternatively, when the host is shut down, the shutdown notification information is sent to the NFCC through the NFC Service, and the working state change information of the host is sent to the NFCEE through the NFCC.

8. A virtual card activation device, characterized in that: include: An activation instruction sending module is used to send an activation instruction of a target virtual card to NFCEE through the NFC Card Manage App; A first state switching module, configured to switch the working state of the target virtual card to a spin activation state through the NFCEE, wherein the spin activation state means that the target virtual card is in a normal user use state and is automatically switched to a deactivated state through the NFCEE when a target spin condition is met; The second state switching module switches the working state of the target virtual card to the deactivated state through the NFCEE when detecting that the target spin condition is met.

9. An electronic device, characterized in that: include: A processor and a memory, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the processor executes the method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.