Card adjustment method and device, terminal and storage medium

The method automatically determines compatible virtual NFC cards by identifying conflicting parameters and adjusting default usage, addressing inefficiencies in virtual NFC card usage on terminals by simplifying the card switching process and improving operational efficiency.

CN119721077APending Publication Date: 2025-03-28GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311284827.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-09-28
Publication Date
2025-03-28

AI Technical Summary

Technical Problem

Users face inefficiencies in using virtual NFC cards on terminals due to complex manual processes for switching and selecting cards, leading to low efficiency in card usage.

Method used

A method and device that automatically determine which virtual NFC cards can be used simultaneously with a new card by identifying conflicting parameters, deactivating conflicting cards, and adjusting the default card usage to ensure seamless operation.

Benefits of technology

This approach reduces user interaction in card switching and selection, enhancing the efficiency of card usage by automatically executing the simultaneous activation strategy for new cards.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119721077A_ABST
    Figure CN119721077A_ABST
Patent Text Reader

Abstract

The invention provides a card adjustment method and device, a terminal and a storage medium, and belongs to the technical field of computers. The method is executed by a terminal, and comprises the following steps: determining a non-contact parameter of a first card in response to an adding operation on the first card; in response to the fact that the first card is not the marked card, determining at least one second card and a plurality of third cards from a plurality of currently activated virtual NFC cards of the terminal based on a non-contact parameter of the first card; and at least one second card is deactivated, the terminal is adjusted to use the first card and the plurality of third cards by default, the deactivation is used for switching the virtual NFC card from the activated state to the inactivated state, and the terminal cannot use the virtual NFC card in the inactivated state to swipe the card. According to the scheme, after the new card is added into the terminal, the simultaneous activation strategy of the new card is automatically executed, the probability of manually switching the card and manually selecting the card by a user is reduced, and the card swiping efficiency of the user is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a card adjustment method, device, terminal and storage medium. Background Art

[0002] With the development of computer technology, Near Field Communication (NFC) is increasingly used in smart phones and smart watch terminals. Through the NFC function, a virtual NFC card can be entered into the terminal to simulate physical cards such as access cards and bus cards. Therefore, after the user successfully enters the virtual NFC card into the terminal, how to determine the virtual NFC card used by the terminal by default is a technical problem that needs to be solved.

[0003] In the related art, after a user successfully enters a virtual NFC card in a terminal, the terminal activates the newly entered virtual NFC card and adjusts the virtual NFC card as a default virtual NFC card so that the user can use the virtual NFC card to swipe the card.

[0004] However, using the above method, if the user does not want to use the virtual NFC card to swipe the card, the user needs to manually activate the virtual NFC card first, then browse through multiple virtual NFC cards entered in the terminal, and select the target card to be used. The operation is relatively complicated and cumbersome, and the efficiency of card swiping is low. Summary of the invention

[0005] The embodiments of the present application provide a card adjustment method, device, terminal and storage medium, which can reduce the probability of users manually switching cards and manually selecting cards, and improve the efficiency of users swiping cards. The technical solution is as follows:

[0006] According to one aspect of an embodiment of the present application, a card adjustment method is provided, the method comprising:

[0007] In response to an adding operation of a first card, determining a contactless parameter of the first card, wherein the first card is a virtual near field communication (NFC) card, and the contactless parameter includes at least one parameter for verifying the first card;

[0008] In response to the first card not being a marked card, determining, based on the contactless parameter of the first card, at least one second card and multiple third cards from multiple virtual NFC cards currently activated on the terminal, the marked card being a virtual NFC card that does not support simultaneous activation with other virtual NFC cards, the contactless parameter of the second card being different from the contactless parameter of the first card having at least one parameter that is different, and the third card being a virtual NFC card other than the second card among the multiple virtual NFC cards;

[0009] Deactivate the at least one second card, and adjust the terminal to use the first card and the multiple third cards by default. The deactivation is used to switch the virtual NFC card from an activated state to an inactivated state. The terminal cannot use the virtual NFC card in the inactivated state to swipe the card.

[0010] According to another aspect of an embodiment of the present application, a card adjustment device is provided, the device comprising:

[0011] A first determination module, configured to determine, in response to an adding operation on a first card, a contactless parameter of the first card, wherein the first card is a virtual near field communication NFC card, and the contactless parameter includes at least one parameter for verifying the first card;

[0012] a second determining module, configured to, in response to the first card not being a marked card, determine, based on the contactless parameters of the first card, at least one second card and multiple third cards from multiple virtual NFC cards currently activated on the terminal, wherein the marked card is a virtual NFC card that does not support simultaneous activation with other virtual NFC cards, the contactless parameters of the second card and the contactless parameters of the first card have at least one different parameter, and the third card is a virtual NFC card other than the second card among the multiple virtual NFC cards;

[0013] A card adjustment module is used to deactivate the at least one second card and adjust the terminal to use the first card and the multiple third cards by default. The deactivation is used to switch the virtual NFC card from an activated state to an inactivated state. The terminal cannot use the virtual NFC card in the inactivated state for card swiping.

[0014] In some embodiments, the contactless parameter includes at least one parameter of a unique identification number UID and a card selection answer ATS;

[0015] The second determination module is used to determine the card type of the first card in response to the first card not being a marked card, the card type including a first type and a second type, the virtual NFC card of the first type does not support simultaneous activation with other virtual NFC cards of the same type, and the virtual NFC card of the second type supports simultaneous activation with other virtual NFC cards of the same type; when the card type of the first card is the first type, the virtual NFC card belonging to the first type among the multiple activated virtual NFC cards is determined as the second card, and the UID of the first card is different from the UID of the second card; when the card type of the first card is the second type, at least one second card is determined from the multiple activated virtual NFC cards, and the ATS of the second card is different from the ATS of the first card; and multiple third cards are determined from the multiple activated virtual NFC cards, and the third card is a virtual NFC card other than the second card among the multiple activated virtual NFC cards.

[0016] In some embodiments, the apparatus further comprises:

[0017] The activation module is used to activate the first card so that the terminal uses the first card in the activated state to swipe the card.

[0018] In some embodiments, the apparatus further comprises:

[0019] A first deactivation module, configured to, in response to the first card being a marked card, deactivate a plurality of virtual NFC cards currently activated by the terminal;

[0020] The card adjustment module is further used to activate the first card and adjust the terminal to use the first card by default.

[0021] In some embodiments, the apparatus further comprises:

[0022] A display module, configured to display a card swiping interface, wherein the card swiping interface includes a first area and a second area, wherein the first area displays a plurality of virtual NFC cards currently activated by the terminal, and the second area displays a plurality of virtual NFC cards currently not activated by the terminal;

[0023] A second deactivation module, configured to, in response to a triggering operation on a target card in the first area, deactivate other virtual NFC cards in the first area, so that the terminal activates the target card alone;

[0024] A moving module is used to move the other virtual NFC card from the first area to the second area.

[0025] In some embodiments, the apparatus further comprises:

[0026] A third determination module, configured to determine, for any virtual NFC card displayed in the first area, a number of individual activations of the virtual NFC card;

[0027] The marking module is used to mark the virtual NFC card when the number of independent activations is not less than a number threshold, so that the virtual NFC card is a marked card.

[0028] In some embodiments, the marking module is used to determine the identification of the virtual NFC card when the number of separate activations is not less than a number threshold, the identification including at least one of the unique identification number UID of the virtual NFC card and the card model of the virtual NFC card; the virtual NFC card is marked by adding the identification of the virtual NFC card to a blacklist, and the blacklist is used to record the identification of the marked card.

[0029] In some embodiments, the apparatus further comprises:

[0030] a query module, configured to query whether the identifier of the first card exists in the blacklist in response to an adding operation on the first card;

[0031] a fourth determining module, configured to determine that the first card is a marked card if the identifier of the first card exists in the blacklist;

[0032] The fourth determination module is further configured to determine that the first card is not a marked card when the identifier of the first card does not exist in the blacklist.

[0033] In some embodiments, the second determination module is used to display a prompt message in response to the first card not being a marked card, wherein the prompt message is used to prompt the simultaneous activation of the first card and at least one virtual NFC card activated by the terminal; in response to a confirmation operation on the prompt message, determine the at least one second card and the multiple third cards from the multiple virtual NFC cards currently activated by the terminal.

[0034] In some embodiments, the card adjustment module is further used to, in response to a rejection operation on the prompt information, deactivate multiple virtual NFC cards currently activated by the terminal; activate the first card, and adjust the terminal to use the first card by default.

[0035] In some embodiments, the apparatus further comprises:

[0036] A fifth determination module is used to determine, for any virtual NFC card in the terminal, in response to a marking operation on the virtual NFC card, the virtual NFC card as a marked card, wherein the marking operation is used to indicate that the virtual NFC card is marked as a virtual NFC card that does not support simultaneous activation with other virtual NFC cards.

[0037] According to another aspect of an embodiment of the present application, a terminal is provided, comprising a processor and a memory; the memory stores at least one program code, and the at least one program code is used to be executed by the processor to implement the card adjustment method as described in the above aspect.

[0038] According to another aspect of an embodiment of the present application, a chip is provided, which includes a programmable logic circuit and / or program instructions. When the chip runs on a terminal, it is used to implement the card adjustment method described in the above aspect.

[0039] According to another aspect of an embodiment of the present application, a computer-readable storage medium is provided, wherein the storage medium stores at least one program code, and the at least one program code is used to be executed by a processor to implement the card adjustment method as described in the above aspect.

[0040] According to another aspect of an embodiment of the present application, a computer program product is provided. The computer program product stores at least one program code, and the at least one program code is used to be executed by a processor to implement the card adjustment method described in the above aspect.

[0041] The embodiment of the present application provides a card adjustment method, in which the new card added to the terminal is not a marked card, and the new card supports simultaneous activation with other cards in the terminal. Therefore, in order to determine the simultaneous activation strategy of the new card, that is, to determine the card that can be used simultaneously with the new card, the terminal determines at least one conflicting card from the multiple activated cards. Since the contactless parameters of the conflicting card and the contactless parameters of the new card are different in at least one item, the contactless parameters of the two cannot be merged, or the card cannot be verified by the contactless parameters after fusion, resulting in the terminal being unable to use the new card and the conflicting card for card swiping at the same time. Therefore, the terminal adjusts the default use of the new card and multiple non-conflicting cards. Using the above method, after adding a new card to the terminal, the terminal can automatically execute the simultaneous activation strategy of the new card, reducing the probability of users manually switching cards and manually selecting cards, and improving the efficiency of users swiping cards. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0043] Figure 1 It is a schematic diagram of an implementation environment provided by an embodiment of the present application;

[0044] Figure 2 is a flow chart of a card adjustment method provided in an embodiment of the present application;

[0045] Figure 3 is a flow chart of another card adjustment method provided in an embodiment of the present application;

[0046] Figure 4 is a schematic diagram of a prompt interface provided in an embodiment of the present application;

[0047] Figure 5 is a schematic diagram of a card swiping interface provided in an embodiment of the present application;

[0048] Figure 6 is a flowchart of an activation strategy execution provided by an embodiment of the present application;

[0049] Figure 7 is another flowchart of executing activation strategy provided by an embodiment of the present application;

[0050] Figure 8 is a structural schematic diagram of a card adjustment device provided in an embodiment of the present application;

[0051] Fig. 9 is a structural schematic diagram of another card adjustment device provided in an embodiment of the present application;

[0052] Fig.10 It is a structural block diagram of a terminal provided in an embodiment of the present application. DETAILED DESCRIPTION

[0053] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below in conjunction with the accompanying drawings.

[0054] In this article, "at least one" means one or more, and "plurality" means two or more. "And / or" describes the association relationship of the associated objects, indicating that three relationships can exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects are in an "or" relationship.

[0055] It should be noted that the information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data used for analysis, stored data, displayed data, etc.) and signals involved in this application are all authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions. For example, the virtual NFC card and the virtual NFC card logo involved in this application are all obtained with full authorization.

[0056] Figure 1 is a schematic diagram of an implementation environment provided by an embodiment of the present application. Figure 1 , the implementation environment includes a terminal 101 and a server 102. The terminal 101 and the server 102 are directly or indirectly connected via wired or wireless communication.

[0057] Optionally, the terminal 101 may be a wearable device such as a smart watch, smart bracelet, smart glasses, and smart helmet that supports NFC (Near Field Communication) function. The terminal 101 may also be various types of devices such as mobile phones, tablet computers, and laptops that support NFC function. Data can be transmitted between the terminal 101 and the server 102 through wired or wireless communication. For example, after a virtual NFC card is entered into the terminal 101, the terminal 101 obtains the contactless parameters of the virtual NFC card from the server 102 according to the card type or card model of the virtual NFC card. When the terminal 101 uses the virtual NFC card to swipe the card, the contactless parameters of the virtual NFC card are sent to the card reader, and the card reader verifies the virtual NFC card by verifying the contactless parameters.

[0058] Optionally, the server 102 is an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms. In some embodiments, the server 102 undertakes the main computing work, and the terminal 101 undertakes the secondary computing work; or, the server 102 undertakes the secondary computing work, and the terminal 101 undertakes the main computing work; or, the server 102 and the terminal 101 adopt a distributed computing architecture for collaborative computing.

[0059] Figure 2 is a flowchart of a card adjustment method provided in an embodiment of the present application. The method is executed by the terminal, see Figure 2 , the method comprising:

[0060] 201. In response to an adding operation on a first card, determine a contactless parameter of the first card, where the first card is a virtual near field communication (NFC) card, and the contactless parameter includes at least one parameter for verifying the first card.

[0061] In the embodiment of the present application, the terminal is a mobile terminal of various types, such as a mobile phone, a tablet computer, and a laptop computer that supports the NFC (Near Field Communication) function. The terminal can also be a wearable terminal of various types, such as a smart watch, a smart bracelet, smart glasses, and a smart helmet that supports the NFC function. The embodiment of the present application is not limited to this. Through the NFC function of the terminal, a virtual NFC card can be added to the terminal, so that the user can use the virtual NFC card in the terminal to swipe the card. For ease of description, the newly added virtual NFC card in the terminal is referred to as the first card below.

[0062] In response to the operation of adding a first card in the terminal, the terminal determines the contactless parameters of the first card. The operation of adding the first card may be an operation of entering the first card in the terminal, or an operation of activating the first card in the terminal, which is not limited in the embodiments of the present application. The contactless parameters include at least one parameter for verifying the virtual NFC card, such as the UID (Unique Identifier) ​​and ATS (Answer To Select) parameters of the virtual NFC card. In the process of swiping the card using the virtual NFC card at the terminal, the terminal sends the contactless parameters of the virtual NFC card to the card reader, and the card reader verifies the contactless parameters. If the contactless parameter verification passes, swiping the card using the virtual NFC card is successful; if the contactless parameter verification fails, swiping the card using the virtual NFC card fails.

[0063] 202. In response to the first card not being a marked card, based on the contactless parameters of the first card, determining at least one second card and multiple third cards from multiple virtual NFC cards currently activated on the terminal, the marked card is a virtual NFC card that does not support simultaneous activation with other virtual NFC cards, there is at least one different parameter between the contactless parameters of the second card and the contactless parameters of the first card, and the third card is a virtual NFC card other than the second card among the multiple virtual NFC cards.

[0064] In an embodiment of the present application, a terminal has multiple virtual NFC cards recorded, and the terminal has currently activated multiple virtual NFC cards. Among them, the status of the virtual NFC card includes an activated state and an inactivated state. The terminal can use the virtual NFC card in the activated state to swipe the card, and cannot use the virtual NFC card in the inactivated state to swipe the card. The terminal currently activates multiple virtual NFC cards at the same time, indicating that the multiple virtual NFC cards are currently in an activated state, and the terminal can currently use the multiple virtual NFC cards to swipe the card at the same time.

[0065] In order to determine whether the newly added first card can be used simultaneously with multiple activated virtual NFC cards, the terminal first determines whether the first card is marked. The marked card is a virtual NFC card that does not support simultaneous activation with other virtual NFC cards, that is, the terminal can only activate the marked card alone, and cannot activate the marked card and other virtual NFC cards at the same time. Among them, during the card swiping test by the technician, or during the terminal card swiping process, the virtual NFC card can be marked when the following situation occurs: when multiple virtual NFC cards are activated at the same time, one of the virtual NFC cards cannot be swiped; but when the virtual NFC card is activated alone, the virtual NFC card can be swiped normally. In the above situation, it can be considered that the virtual NFC card cannot be swiped normally due to simultaneous activation. Therefore, the technician or the terminal marks the virtual NFC card as a virtual NFC card that does not support simultaneous activation with other virtual NFC cards. The virtual NFC card is a marked card.

[0066] When the terminal determines that the first card is not a marked card, it indicates that the first card can be activated simultaneously with other virtual NFC cards. Therefore, the terminal determines whether there is a conflict between the contactless parameters of the first card and the contactless parameters of the multiple currently activated virtual NFC cards. Among them, for any activated virtual NFC card, when there is at least one different parameter between the contactless parameters of the virtual NFC card and the contactless parameters of the first card, it can be considered that there is a conflict between the contactless parameters of the two. The terminal determines at least one conflicting card and the remaining multiple non-conflicting cards from the multiple activated virtual NFC cards. Among them, the conflicting card is a virtual NFC card whose contactless parameters conflict with the contactless parameters of the first card; the non-conflicting card is a virtual NFC card whose contactless parameters do not conflict with the contactless parameters of the first card. For the convenience of description, the conflicting card will be referred to as the second card and the non-conflicting card will be referred to as the third card below.

[0067] 203. Deactivate at least one second card, adjust the terminal to use the first card and multiple third cards by default, and deactivate to switch the virtual NFC card from an activated state to an inactivated state. The terminal cannot use the inactivated virtual NFC card for card swiping.

[0068] In the embodiment of the present application, since the contactless parameters of the second card conflict with the contactless parameters of the first card, after activating the second card and the first card at the same time, the terminal cannot swipe the card normally. Therefore, the terminal activates the first card and deactivates at least one of the second cards to switch the first card to an activated state and the second card from an activated state to an unactivated state. Then, the terminal adjusts the first card and the multiple third cards to the default virtual NFC cards, so that the terminal can use the activated first card and multiple third cards for swiping cards at the same time.

[0069] Therefore, after adding the first card in the terminal, the terminal determines multiple third cards that can be used simultaneously with the first card from the multiple currently activated virtual NFC cards by executing the above steps 201-203, and adjusts the default use of the first card and multiple third cards for card swiping, thereby reducing the probability of the user manually selecting and switching cards during the card swiping process, simplifying the user's card swiping operation, and improving the user's card swiping efficiency.

[0070] The embodiment of the present application provides a card adjustment method, in which the new card added to the terminal is not a marked card, and the new card supports simultaneous activation with other cards in the terminal. Therefore, in order to determine the simultaneous activation strategy of the new card, that is, to determine the card that can be used simultaneously with the new card, the terminal determines at least one conflicting card from the multiple activated cards. Since the contactless parameters of the conflicting card and the contactless parameters of the new card are different in at least one item, the contactless parameters of the two cannot be merged, or the card cannot be verified by the contactless parameters after fusion, resulting in the terminal being unable to use the new card and the conflicting card for card swiping at the same time. Therefore, the terminal adjusts the default use of the new card and multiple non-conflicting cards. Using the above method, after adding a new card to the terminal, the terminal can automatically execute the simultaneous activation strategy of the new card, reducing the probability of users manually switching cards and manually selecting cards, and improving the efficiency of users swiping cards.

[0071] Figure 3 is a flowchart of another card adjustment method provided in an embodiment of the present application. The method is executed by the terminal, see Figure 3 , the method comprising:

[0072] 301. In response to an adding operation on a first card, determine a contactless parameter of the first card, where the first card is a virtual near field communication (NFC) card, and the contactless parameter includes at least one parameter for verifying the first card.

[0073] In an embodiment of the present application, the terminal may be various types of mobile terminals such as mobile phones, tablet computers, and laptop computers that support NFC (Near Field Communication) functions. The terminal may also be various types of wearable terminals such as smart watches, smart bracelets, smart glasses, and smart helmets that support NFC functions. This embodiment of the present application is not limited to this. Through the NFC function of the terminal, a virtual NFC card can be added to the terminal to simulate a physical card through the virtual NFC card. After adding a virtual NFC card to the terminal, the user can use the virtual NFC card in the terminal to swipe the card.

[0074] In some embodiments, through the NFC function of the terminal, a virtual NFC card with the same function as a physical card can be recorded in the terminal. For example, for a terminal with the NFC function turned on, by placing a physical access card on the NFC sensing area of ​​the terminal, a virtual NFC card with the same function as a physical access card can be recorded in the terminal, so that the virtual NFC card recorded in the terminal can simulate the physical access card for card swiping.

[0075] In some embodiments, through the NFC function of the terminal, a virtual NFC card can also be activated in the terminal. For example, for a terminal with the NFC function enabled, a user can activate a virtual bus card in any city in the terminal. After activation, the user can use the virtual bus card in the terminal to swipe and take the bus in that city.

[0076] In order to enable the virtual NFC card added in the terminal to swipe normally, after adding the virtual NFC card in the terminal, the terminal determines the contactless parameters of the virtual NFC card. Among them, the contactless parameters include at least one parameter used to verify the virtual NFC card, such as the virtual NFC card's (Unique Identifier), ATS (Answer To Select) and ATQA (Answer To Request Type A) and other parameters. During the card swiping process, the terminal sends the contactless parameters of the virtual NFC card to the card reader, and the card reader verifies the contactless parameters. If the contactless parameter verification passes, the card swiping is successful using the virtual NFC card; if the contactless parameter verification fails, the card swiping fails using the virtual NFC card.

[0077] For ease of description, the newly added virtual NFC card in the terminal is referred to as the first card below. The operation of adding the first card in the terminal may be the operation of entering the first card in the terminal, or the operation of activating the first card in the terminal, which is not limited in the embodiment of the present application.

[0078] In some embodiments, the terminal can determine the contactless parameters of the virtual NFC card in a variety of ways. The terminal can determine at least one contactless parameter of the first card from ISO14443-3 (a contactless IC card standard protocol) according to the card type of the first card. The ISO14443-3 protocol specifies the contactless parameters of NFC cards of different card types. The terminal can also determine at least one contactless parameter of the virtual NFC card of the model from the server according to the card model of the first card. For example, after the terminal determines that the card model of the first card is a model A access control card, the terminal obtains multiple parameters such as ATS and ATQA of the model A access control card from the server, and uses the multiple parameters as the contactless parameters of the first card. In addition, for the contactless parameters with unique identification of the first card, such as the UID of the first card, the terminal can parse the first card after adding the first card to obtain the UID of the first card. The embodiment of the present application does not limit the specific method for the terminal to determine the contactless parameters.

[0079] 302. In response to the first card not being a marked card, determine a card type of the first card, where the card type includes a first type and a second type, the marked card is a virtual NFC card that does not support simultaneous activation with other virtual NFC cards, the first type of virtual NFC card does not support simultaneous activation with other virtual NFC cards of the same type, and the second type of virtual NFC card supports simultaneous activation with other virtual NFC cards of the same type.

[0080] In the embodiment of the present application, the terminal determines whether the newly added first card is a marked card. The marked card does not support simultaneous activation with other virtual NFC cards, that is, the terminal can only activate the marked card alone, and cannot activate the marked card and other virtual NFC cards at the same time.

[0081] In some embodiments, the virtual NFC card can be marked by a technician or a terminal. During the card swiping test performed by the technician, or in the historical card swiping process of the terminal, the virtual NFC card can be marked when the following situation occurs: when multiple virtual NFC cards are activated at the same time, one of the virtual NFC cards cannot be swiped normally, while the other virtual NFC cards can be swiped normally; but when the virtual NFC card is activated alone, the virtual NFC card can be swiped normally. In the above situation, it can be considered that the simultaneous activation causes the virtual NFC card to be unable to swipe normally. Therefore, the technician or the terminal marks the virtual NFC card so that the virtual NFC card is a marked card.

[0082] When the terminal determines that the first card is not a marked card, it indicates that the first card can be activated simultaneously with other virtual NFC cards. Then, the terminal determines the card type of the first card. Among them, the card type can be divided into a first type and a second type according to whether it can be activated simultaneously with virtual NFC cards of the same type. The first type of virtual NFC card does not support simultaneous activation with other virtual NFC cards of the first type. The second type of virtual NFC card supports simultaneous activation with other virtual NFC cards of the second type. By determining the card type of the first card, the terminal can determine whether the first card can be activated simultaneously with multiple virtual NFC cards that are currently activated based on the card types of the multiple virtual NFC cards that are currently activated.

[0083] In some embodiments, the first type is an access card type, and the second type is a bus card type or a car key type. The access card type card reader mainly verifies the UID of the virtual access card. If the UID of the virtual access card is verified, the virtual access card is swiped successfully; if the UID of the virtual access card fails to be verified, the virtual access card fails to be swiped. For other types of card readers, such as bus cards, subway cards, etc., when verifying virtual bus cards and virtual subway cards, the UID is generally not verified. In addition, since the UID can uniquely identify the virtual NFC card, when using the virtual access card for swiping, the card reader cannot verify the UIDs of multiple virtual access cards at the same time, resulting in the terminal being unable to use multiple virtual access cards for swiping at the same time. Therefore, the terminal can generally only activate one virtual access card alone, or activate one virtual access card and multiple virtual bus cards at the same time, and cannot activate multiple virtual access cards at the same time.

[0084] 303. Based on the card type of the first card and the contactless parameters of the first card, determine at least one second card and multiple third cards from multiple virtual NFC cards currently activated by the terminal, there is at least one different parameter between the contactless parameters of the second card and the contactless parameters of the first card, and the third card is a virtual NFC card other than the second card among the multiple virtual NFC cards.

[0085] In an embodiment of the present application, the terminal currently has multiple virtual NFC cards activated. The user can use multiple virtual NFC cards in the terminal that are activated at the same time to swipe the card, and cannot use virtual NFC cards in the terminal that are not activated to swipe the card. In order to determine whether the first card can be activated simultaneously with the multiple activated virtual NFC cards, the terminal determines whether there is a conflict between the contactless parameters of the first card and the contactless parameters of the multiple virtual NFC cards. For any activated virtual NFC card, when there is at least one different parameter between the contactless parameters of the virtual NFC card and the contactless parameters of the first card, the contactless parameters of the two conflict. Among them, the two conflicting contactless parameters cannot be fused, or the fused contactless parameters obtained by fusion cannot be verified by the card reader, resulting in the terminal being unable to use the first card and the virtual NFC card to swipe the card at the same time. The terminal determines at least one conflicting card and the remaining multiple non-conflicting cards from the multiple virtual NFC cards according to the conflict of contactless parameters. Among them, the contactless parameters of the conflicting card conflict with the contactless parameters of the first card; the contactless parameters of the non-conflicting card do not conflict with the contactless parameters of the first card. For ease of description, the conflicting card is referred to as the second card and the non-conflicting card is referred to as the third card below.

[0086] Specifically, the terminal can determine at least one conflicting card from the multiple activated virtual NFC cards according to the card type of the first card and the card types of the multiple activated virtual NFC cards.

[0087] In the case where the card type of the first card is the first type, since the first type of virtual NFC card cannot be activated at the same time as other first type of virtual NFC cards, the terminal determines the virtual NFC card of the first type among the multiple activated virtual NFC cards as the second card. The UID of the first card is different from the UID of the second card. For example, in the case where the newly added first card is access card 2, and the terminal has currently activated access card 1, bus card 1 and car key 1, the terminal determines that access card 1 is a conflicting card, and bus card 1 and car key 1 are non-conflicting cards.

[0088] When the card type of the first card is the second type, the terminal determines at least one second card from the multiple activated virtual NFC cards. The ATS (Answer To Select) of the second card is different from the ATS of the first card. ATS is the response signal that the terminal replies to the RATS (Request for Answer To Select) sent by the card reader. ATS includes parameters such as waiting time, and the waiting time is used to specify the waiting time before sending the next instruction. In addition, ATS also includes other parameters for specifying the subsequent communication process. The embodiments of the present application do not limit the specific parameters contained in ATS.

[0089] After the terminal determines at least one second card, the terminal determines the other virtual cards except the first card among the activated multiple virtual NFC cards as the third card, and obtains multiple third cards. Among them, the contactless parameters of the third card do not conflict with the contactless parameters of the first card. The terminal can use the first card and multiple third cards to swipe the card at the same time. Accordingly, during the card swiping process, the terminal sends the fused contactless parameters to the card reader, and the card reader verifies the fused contactless parameters. Among them, the fused contactless parameters are obtained by fusing the contactless parameters of the first card and the contactless parameters of multiple third cards. Since the contactless parameters of the third card do not conflict with the contactless parameters of the first card, the card reader can normally verify the fused contactless parameters, and the terminal can use the first card and multiple third cards to swipe the card normally at the same time.

[0090] It should be noted that the above is an explanation of the process of the terminal determining the second card and the third card using the two parameters UID and ATS in the contactless parameters as examples. In some embodiments, the terminal can also determine the second card and the third card from multiple activated virtual NFC cards based on other parameters in the contactless parameters. Among them, the contactless parameters also include ATQA (Answer To Request Type A, Class A card inquiry response) and SAK (Select AcKnowledg Type A, Class A card selection response) defined in the ISO14443-3 protocol. Accordingly, the terminal can also determine the second card and the third card based on ATQA or SAK, and the embodiments of the present application are not limited to this.

[0091] For example, SAK is the response signal that the terminal responds to the Select command sent by the card reader. Through SAK, the type of the virtual NFC card can be determined. Among them, the SAK of the virtual access control card is 0x08, and the SAK of the virtual bus card and the virtual subway card is 0x20. Therefore, when the card type of the first card is the first type, that is, the first card is a virtual access control card, the terminal determines the virtual NFC card with a SAK of 0x08 as the second card from the multiple activated virtual NFC cards, and determines the virtual NFC card with a SAK of 0x20 as the third card.

[0092] In some embodiments, when the first card is not a marked card, the user can also determine whether to activate the first card and other virtual NFC cards at the same time. After the first card is added to the terminal, when the first card is not a marked card, the terminal displays a prompt message. The prompt message is used to prompt the simultaneous activation of the first card and at least one virtual NFC card activated by the terminal. In response to the user's confirmation operation on the prompt message, the terminal determines at least one second card and multiple third cards from the multiple virtual NFC cards currently activated. Among them, the way in which the terminal determines the second card and the third card is the same as the above steps, and will not be repeated here. Then, the terminal activates the first card and multiple third cards at the same time by executing the following step 304. In addition, when the user only wants to activate the newly added first card, the user can reject the prompt message. Accordingly, in response to the user's rejection operation on the prompt message, the terminal deactivates the multiple virtual NFC cards currently activated by the terminal, activates the first card, and adjusts the terminal to use the first card by default, so that the terminal currently activates the first card alone and uses the first card alone for card swiping.

[0093] For example, Figure 4 is a schematic diagram of a prompt interface. Figure 4 As shown, the prompt interface displays the added access card 1, access card 2, prompt information 401, confirmation control 402 and rejection control 403. Prompt information 401 is used to prompt the user whether to activate the newly added access card 2 and other cards at the same time. In response to the user's triggering operation on the confirmation control 402, the terminal determines at least one second card and multiple third cards from the currently activated multiple virtual NFC cards, and activates the access card 2 and the multiple third cards at the same time. In response to the user's triggering operation on the rejection control 403, the terminal activates the newly added access card 2 alone.

[0094] 304. Deactivate at least one second card and activate the first card so that the terminal uses the activated first card to swipe the card, adjust the terminal to use the first card and multiple third cards by default, and deactivate the card used to switch the virtual NFC card from an activated state to an inactivated state. The terminal cannot use the inactivated virtual NFC card to swipe the card.

[0095] In the embodiment of the present application, since the second card is a conflicting card of the first card, the terminal cannot activate the second card and the first card at the same time. Therefore, before the terminal activates the first card, the terminal first deactivates at least one of the second cards determined above, so that the second card is in an inactivated state. The card reader can only read an NFC card in an activated state, and cannot read an NFC card in an inactivated state. Therefore, by deactivating at least one second card, the terminal can be prevented from using the second card for card swiping, thereby avoiding interference from the second card when using the first card and the third card for card swiping. Then, the terminal activates the newly added first card, so that the first card is in an activated state and can be read by the card reader. Then, the user can use the first card in the terminal that is in an activated state and multiple third cards to swipe the card at the same time. Therefore, after adding the first card in the terminal, when the user does not want to use the first card for card swiping, the other activated third cards in the terminal can also be used by default for card swiping, without the user manually selecting the card or manually switching the card, simplifying the user's card swiping operation and improving the card swiping efficiency.

[0096] 305. In response to the first card being a marked card, deactivate multiple virtual NFC cards currently activated by the terminal, activate the first card, and adjust the terminal to use the first card by default.

[0097] In the embodiment of the present application, when the first card is a marked card, the first card does not support simultaneous activation with other virtual NFC cards. Therefore, the terminal deactivates the currently activated multiple virtual NFC cards, then activates the first card, and adjusts the default use of the first card for card swiping.

[0098] In some embodiments, the terminal can determine whether the first card is a marked card by the card type of the first card and the card model of the first card. Accordingly, in the process of the technician performing the card swiping test, or in the terminal's historical card swiping process, the card model of the NFC card that cannot be swiped due to simultaneous activation can be marked. For example, when multiple virtual NFC cards are activated at the same time, the virtual access card of card model A or the virtual bus card of card model B will not be able to swipe the card, but the virtual access card of card model A or the virtual bus card of card model B can be activated separately, and both can be swiped normally. Therefore, it can be considered that the above two cards cannot be activated at the same time as other cards, and the technician or the terminal marks the virtual access card of card model A and the virtual bus card of card model B. After adding the first card to the terminal, the terminal determines the card type of the first card and the card model of the first card, and determines whether the first card is a marked card based on the card type of the first card and the card model of the first card.

[0099] For example, when the first card is a virtual access card of card model A, the terminal determines that the first card is a marked card; when the first card is an access card of card model C, the terminal determines that the first card is not a marked card.

[0100] The above embodiment describes the process of the terminal determining the activation strategy of the first card. The activation strategy includes the terminal activating the first card alone and the terminal activating the first card and multiple non-conflicting cards at the same time. In addition, in the process of the terminal executing the simultaneous activation strategy, it is also possible to further adjust the activated cards and update the marked cards according to the user's feedback. The process of the terminal adjusting the activated cards and updating the marked cards is described below.

[0101] In order to facilitate the user to perceive the simultaneous activation strategy, the terminal displays a card swiping interface during the execution of the simultaneous activation strategy. The card swiping interface includes a first area and a second area. The first area displays multiple virtual NFC cards that are currently activated by the terminal, and the second area displays multiple virtual NFC cards that are currently not activated by the terminal. By viewing the virtual NFC cards displayed in the first area and the second area, the user can quickly perceive the virtual NFC cards that are currently activated and the virtual NFC cards that are currently not activated by the terminal, and then the user can adjust the currently activated virtual NFC card according to his actual card swiping needs.

[0102] In the case where the user currently wants to activate only the target card in the first area, the user can trigger the target card so that the terminal activates the target card alone. Accordingly, in response to the user's triggering operation on the target card in the first area, the terminal deactivates other virtual NFC cards in the first area to activate the target card alone. Then, the terminal moves the other virtual NFC cards from the first area to the second area so that only the currently activated target card is displayed in the first area.

[0103] Alternatively, if the user currently wants to activate only any card in the second area, the user can trigger the card so that the terminal activates the card alone. Accordingly, in response to the user's triggering operation on any card in the second area, the terminal deactivates multiple virtual NFC cards in the first area and activates the virtual NFC card triggered by the user in the second area alone. Then, the terminal moves the multiple virtual NFC cards in the first area to the second area, and moves the card triggered by the user in the second area to the first area.

[0104] For example, Figure 5 Figure 1 is a schematic diagram of a card swiping interface. Figure 5 As shown on the left, the card swiping interface displays a first area 501 and a second area 502. Among them, the first area 501 displays four activated virtual NFC cards, namely access card 2, bus card 1, car key 1 and car key 2. The second area 502 displays two unactivated virtual NFC cards, namely access card 1 and bus card 2. Among them, access card 2 is the newly added first card. Access card 1 is a conflicting card that conflicts with access card 2. Bus card 2 is a conflicting card that conflicts with bus card 1. In response to the user's triggering operation on access card 2, the terminal deactivates other virtual NFC cards in the first display area and displays Figure 5 The card swiping interface shown on the right side. In this card swiping interface, only the currently activated access control card 2 is displayed in the first display area 501.

[0105] In some embodiments, the terminal can also count the number of individual activations of the virtual NFC card to mark the virtual NFC card with a large number of individual activations. For any virtual NFC card displayed in the first area, the terminal determines the number of individual activations of the virtual NFC card. Among them, the number of individual activations of the virtual NFC card can be the number of times the user continuously triggers the virtual NFC card in the first area, or the total number of times the user triggers the virtual NFC card in the first area, and the embodiment of the present application does not limit this. When the number of individual activations of the virtual NFC card is large, it indicates that the user has a higher demand for activating the virtual NFC card alone, or the virtual NFC card and other cards are activated at the same time. The user experience will be reduced. Therefore, when the number of individual activations of the virtual NFC card is not less than the number threshold, the terminal marks the virtual NFC card so that the virtual NFC card is a marked card. The next time the terminal activates the virtual NFC card, it will not activate other cards at the same time, so that the user does not need to manually trigger the virtual NFC card in the first area, simplifying the user's card swiping operation. Among them, the number threshold can be a preset value, such as 2, 3 or 4, and the embodiment of the present application does not limit this.

[0106] It should be noted that when the number of individual activations of a virtual NFC card is less than the number threshold, it can be considered that the user has accidentally touched the virtual NFC card. Therefore, the terminal only needs to activate the virtual NFC card alone, and does not need to mark the virtual NFC card.

[0107] In some embodiments, the terminal marks the virtual NFC card by adding the identifier of the virtual NFC card to the blacklist. When the number of separate activations of the virtual NFC card is not less than the number threshold, the terminal determines the identifier of the virtual NFC card. The identifier includes at least one of the unique identification number UID of the virtual NFC card and the card model of the virtual NFC card. Then, the terminal adds the identifier of the virtual NFC card to the blacklist to mark the virtual NFC card. The blacklist is used to record the identifiers of marked cards.

[0108] For example, when the number threshold is 3, in response to the number of independent activations of the virtual access card with card model C being greater than or equal to 3, the terminal adds the card model C of the virtual access card and the UID of the virtual access card to the blacklist.

[0109] By recording the identifiers of marked cards in the blacklist, the terminal can determine whether the newly added first card is a marked card by querying the blacklist before executing the above step 302. In response to the addition operation of the first card, the terminal determines identifiers such as the UID of the first card and the card model of the first card. Then, the terminal queries whether the identifier of the first card exists in the blacklist. In the case that the identifier of the first card does not exist in the blacklist, the terminal determines that the first card is not a marked card, and then the terminal executes the above step 302. In the case that the identifier of the first card exists in the blacklist, the terminal determines that the first card is a marked card, and then the terminal executes the above step 305.

[0110] In some embodiments, the user can also mark the virtual NFC card in the terminal. For any virtual NFC card in the terminal, in response to the user's marking operation on the virtual NFC card, the terminal determines the virtual NFC card as a marked card. The marking operation is used to indicate that the virtual NFC card is marked as a virtual NFC card that does not support simultaneous activation with other virtual NFC cards.

[0111] For example, the user can check the marking option of the virtual NFC card in the details interface of the virtual NFC card. In response to the user's checking operation on the marking option of the virtual NFC card, the terminal determines that the virtual NFC card is a marked card, and then the terminal subsequently only executes the strategy of activating the virtual NFC card alone, and does not execute the strategy of activating it simultaneously with other virtual NFC cards.

[0112] The above embodiment mainly introduces the process in which the terminal determines and executes the activation policy of the first card after the first card is added to the terminal. Figure 6 The flowchart of the execution activation strategy shown in Figure 7 Another flowchart of executing the activation strategy is shown to illustrate the above overall process.

[0113] exist Figure 6 In the flowchart shown in FIG. 1 , the activation strategy of the first card is determined by the terminal. Figure 6As shown, the flow chart of the execution strategy includes the following steps: 601. Add the first card in the terminal. 602. The terminal determines whether the first card is a marked card, that is, the terminal determines whether the identifier of the first card exists in the blacklist. 603. In the case that the identifier of the first card exists in the blacklist, the first card is a marked card, and the terminal executes an activation strategy of activating the first card alone. 604. In the case that the identifier of the first card does not exist in the blacklist, the first card is not a marked card, and the terminal executes an activation strategy of activating the first card and multiple virtual NFC cards at the same time. The terminal determines whether there is a conflicting card whose contactless parameters conflict with the contactless parameters of the first card from the multiple virtual NFC cards currently activated. 605. In the case that a conflicting card exists, the terminal deactivates the conflicting card and activates the first card, so that the first card and the multiple non-conflicting cards are activated at the same time. 606. In the case that there is no conflicting card, the terminal activates the first card, so that the first card and the multiple virtual NFC cards currently activated are activated at the same time. 607. The terminal displays a card swiping interface, and displays multiple activated virtual NFC cards and multiple unactivated virtual NFC cards in different areas of the card swiping interface. The user can trigger any first card in the card swiping interface to enable the terminal to activate the first card individually. 608. The terminal determines whether the number of individual activations of the first card is not less than the number threshold. 609. When the number of individual activations of the first card in the card swiping interface is not less than the number threshold, the terminal activates the first card individually and marks the first card, that is, adds the identifier of the first card to the blacklist. 610. When the number of individual activations of the first card in the card swiping interface is less than the number threshold, the terminal activates the first card individually, but there is no need to mark the first card.

[0114] exist Figure 7 In the flowchart shown in FIG. 1 , the activation strategy of the first card is determined by the user. Figure 7As shown, the flow chart of the execution strategy includes the following steps: 701. Add the first card in the terminal. 702. The terminal displays a prompt message to prompt the user whether to activate the first card and multiple virtual NFC cards at the same time. 703. In the case where the user refuses the prompt message, the terminal deactivates the multiple virtual NFC cards that are currently activated, executes the activation strategy of activating the first card alone, and marks the first card. 704. In the case where the user confirms the prompt message, the terminal determines whether there is a conflicting card whose contactless parameters conflict with the contactless parameters of the first card from the multiple virtual NFC cards that are currently activated. 705. In the case where there is no conflicting card, the terminal activates the first card so that the first card and the multiple virtual NFC cards that are currently activated are activated at the same time. 706. In the case where there is a conflicting card, the terminal deactivates the conflicting card and activates the first card so that the first card and the multiple non-conflicting cards are activated at the same time. 707. In the subsequent card swiping process, the terminal determines whether the marking option of the first card is currently checked. 708. In the case where the user checks the marking option of the first card, the terminal activates the first card alone and marks the first card. 709. When the user does not check the mark option of the first card, the terminal still maintains the simultaneous activation policy of the first card.

[0115] The embodiment of the present application provides a card adjustment method, in which the new card added to the terminal is not a marked card, and the new card supports simultaneous activation with other cards in the terminal. Therefore, in order to determine the simultaneous activation strategy of the new card, that is, to determine the card that can be used simultaneously with the new card, the terminal determines at least one conflicting card from the multiple activated cards. Since the contactless parameters of the conflicting card and the contactless parameters of the new card are different in at least one item, the contactless parameters of the two cannot be merged, or the card cannot be verified by the contactless parameters after fusion, resulting in the terminal being unable to use the new card and the conflicting card for card swiping at the same time. Therefore, the terminal adjusts the default use of the new card and multiple non-conflicting cards. Using the above method, after adding a new card to the terminal, the terminal can automatically execute the simultaneous activation strategy of the new card, reducing the probability of users manually switching cards and manually selecting cards, and improving the efficiency of users swiping cards.

[0116] All the above optional technical solutions can be arbitrarily combined to form optional embodiments of the present application, which will not be described one by one here.

[0117] The following is an embodiment of the device of the present application, which can be used to execute the embodiment of the method of the present application. For details not disclosed in the embodiment of the device of the present application, please refer to the embodiment of the method of the present application.

[0118] Figure 8 is a structural diagram of a card adjustment device provided in an embodiment of the present application. Figure 8The device includes: a first determination module 801, a second determination module 802 and a card adjustment module 803.

[0119] A first determination module 801 is used to determine the contactless parameters of the first card in response to an adding operation on the first card, where the first card is a virtual near field communication NFC card, and the contactless parameters include at least one parameter for verifying the first card;

[0120] a second determining module 802, configured to determine, in response to the first card not being a marked card, at least one second card and multiple third cards from multiple virtual NFC cards currently activated on the terminal based on the contactless parameters of the first card, wherein the marked card is a virtual NFC card that does not support simultaneous activation with other virtual NFC cards, the contactless parameters of the second card and the contactless parameters of the first card have at least one different parameter, and the third card is a virtual NFC card other than the second card among the multiple virtual NFC cards;

[0121] The card adjustment module 803 is used to deactivate at least one second card and adjust the terminal to use the first card and multiple third cards by default. Deactivation is used to switch the virtual NFC card from an activated state to an inactivated state. The terminal cannot use the inactivated virtual NFC card for card swiping.

[0122] In some embodiments, the contactless parameters include at least one parameter of a unique identification number UID and a card selection response ATS; a second determination module 802 is used to determine the card type of the first card in response to the first card not being a marked card, the card types including a first type and a second type, the first type of virtual NFC card does not support simultaneous activation with other virtual NFC cards of the same type, and the second type of virtual NFC card supports simultaneous activation with other virtual NFC cards of the same type; when the card type of the first card is the first type, a virtual NFC card of the first type among the multiple activated virtual NFC cards is determined as the second card, and the UID of the first card is different from the UID of the second card; when the card type of the first card is the second type, at least one second card is determined from the multiple activated virtual NFC cards, and the ATS of the second card is different from the ATS of the first card; multiple third cards are determined from the multiple activated virtual NFC cards, and the third card is a virtual NFC card other than the second card among the multiple activated virtual NFC cards.

[0123] In some embodiments, Fig. 9 is a structural schematic diagram of another card adjustment device provided in an embodiment of the present application, see Fig. 9 , the device further comprises:

[0124] The activation module 804 is used to activate the first card so that the terminal uses the first card in the activated state to swipe the card.

[0125] In some embodiments, the apparatus further comprises:

[0126] A first deactivation module 805, configured to, in response to the first card being a marked card, deactivate multiple virtual NFC cards currently activated by the terminal;

[0127] The card adjustment module 803 is further used to activate the first card and adjust the terminal to use the first card by default.

[0128] In some embodiments, the apparatus further comprises:

[0129] A display module 806 is used to display a card swiping interface, which includes a first area and a second area, wherein the first area displays multiple virtual NFC cards currently activated by the terminal, and the second area displays multiple virtual NFC cards currently not activated by the terminal;

[0130] A second deactivation module 807, configured to, in response to a triggering operation on a target card in the first area, deactivate other virtual NFC cards in the first area so that the terminal activates the target card alone;

[0131] The moving module 808 is used to move other virtual NFC cards from the first area to the second area.

[0132] In some embodiments, the apparatus further comprises:

[0133] A third determination module 809 is used to determine the number of individual activations of a virtual NFC card for any virtual NFC card displayed in the first area;

[0134] The marking module 810 is used to mark the virtual NFC card when the number of independent activations is not less than the number threshold, so that the virtual NFC card is a marked card.

[0135] In some embodiments, the marking module 810 is used to determine the identification of the virtual NFC card when the number of separate activations is not less than a threshold number, the identification including at least one of the unique identification number UID of the virtual NFC card and the card model of the virtual NFC card; the virtual NFC card is marked by adding the identification of the virtual NFC card to a blacklist, and the blacklist is used to record the identification of the marked card.

[0136] In some embodiments, the apparatus further comprises:

[0137] A query module 811, configured to query whether an identifier of the first card exists in the blacklist in response to an add operation on the first card;

[0138] A fourth determination module 812, configured to determine that the first card is a marked card if the identifier of the first card exists in the blacklist;

[0139] The fourth determination module 812 is further configured to determine that the first card is not a marked card when the identifier of the first card does not exist in the blacklist.

[0140] In some embodiments, the second determination module 802 is used to display a prompt message in response to the first card not being a marked card, where the prompt message is used to prompt to simultaneously activate the first card and at least one virtual NFC card activated by the terminal; in response to a confirmation operation on the prompt message, determine at least one second card and multiple third cards from multiple virtual NFC cards currently activated by the terminal.

[0141] In some embodiments, the card adjustment module 803 is further used to, in response to a rejection operation on the prompt information, deactivate multiple virtual NFC cards currently activated by the terminal; activate the first card, and adjust the terminal to use the first card by default.

[0142] In some embodiments, the apparatus further comprises:

[0143] The fifth determination module 813 is used to determine, for any virtual NFC card in the terminal, in response to a marking operation on the virtual NFC card, the virtual NFC card as a marked card, wherein the marking operation is used to indicate that the virtual NFC card is marked as a virtual NFC card that does not support simultaneous activation with other virtual NFC cards.

[0144] The embodiment of the present application provides a card adjustment device, in which the new card added to the terminal is not a marked card, and the new card supports simultaneous activation with other cards in the terminal. Therefore, in order to determine the simultaneous activation strategy of the new card, that is, to determine the card that can be used simultaneously with the new card, the terminal determines at least one conflicting card from the multiple activated cards. Since the contactless parameters of the conflicting card and the contactless parameters of the new card are different in at least one item, the contactless parameters of the two cannot be merged, or the card cannot be verified by the contactless parameters after fusion, resulting in the terminal being unable to use the new card and the conflicting card for card swiping at the same time. Therefore, the terminal adjusts the default use of the new card and multiple non-conflicting cards. Using the above method, after adding a new card to the terminal, the terminal can automatically execute the simultaneous activation strategy of the new card, reducing the probability of users manually switching cards and manually selecting cards, and improving the efficiency of users swiping cards.

[0145] It should be noted that the card adjustment device provided in the above embodiment, when implementing its functions, is only illustrated by the division of the above functional modules. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the terminal is divided into different functional modules to complete all or part of the functions described above. In addition, the card adjustment device provided in the above embodiment and the card adjustment method embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.

[0146] An embodiment of the present application provides a terminal, which includes a processor and a memory; the memory stores at least one program code, and the at least one program code is used to be executed by the processor to implement the card adjustment method provided in the above-mentioned various method embodiments.

[0147] Fig.10 1000 is a block diagram of a terminal provided in an embodiment of the present application. In some embodiments, the terminal 1000 is a terminal such as a smart phone, a tablet computer, a wearable device, etc. that can access a wireless local area network as a wireless station. The terminal 1000 in the present application includes at least one or more of the following components: a processor 1010, a memory 1020, and at least two wireless links 1030.

[0148] In some embodiments, the processor 1010 includes one or more processing cores. The processor 1010 uses various interfaces and lines to connect various parts of the entire terminal 1000, and executes various functions and processes data of the terminal 1000 by running or executing program codes stored in the memory 1020, and calling data stored in the memory 1020. In some embodiments, the processor 1010 is implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), and programmable logic array (PLA). The processor 1010 can integrate one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), a neural network processor (NPU), and a modem. Among them, the CPU mainly processes the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing the content to be displayed on the display screen; the NPU is used to implement artificial intelligence (AI) functions; and the modem is used to process wireless communications. It is understandable that the above-mentioned modem may not be integrated into the processor 1010, but may be implemented by a separate chip.

[0149] In some embodiments, the processor 1010 is used to control the working conditions of at least two wireless links 1030. Accordingly, the processor 1010 is a processor integrated with a wireless fidelity (Wireless Fidelity, Wi-Fi) chip. The Wi-Fi chip is a chip with dual Wi-Fi processing capabilities. For example, the Wi-Fi chip is a dual-band dual concurrent (Dual Band Dual Concurrent, DBDC) chip, or a dual-band synchronous (Dual Band Simultaneous, DBS) chip, etc.

[0150] In some embodiments, the memory 1020 includes a random access memory (RAM), and in some embodiments, the memory 1020 includes a read-only memory (ROM). In some embodiments, the memory 1020 includes a non-transitory computer-readable storage medium. The memory 1020 can be used to store program codes. The memory 1020 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the following various method embodiments, etc.; the data storage area may store data created according to the use of the terminal 1000 (such as audio data, a phone book), etc.

[0151] In some embodiments, the memory 1020 stores reception schemes for receiving beacon frames of different wireless links 1030, as well as identifiers of access nodes connected to different wireless links 1030, identifiers of wireless links 1030, and the like.

[0152] The at least two wireless links 1030 are used to connect different access points (APs) to receive downlink data sent by the APs, wherein the different access points are access points in the same router or access points in different routers.

[0153] In some embodiments, the terminal 1000 also includes a display screen. The display screen is a display component for displaying a user interface. In some embodiments, the display screen is a display screen with a touch function, through which the user can use any suitable object such as a finger or a touch pen to perform touch operations on the display screen. In some embodiments, the display screen is generally arranged on the front panel of the terminal 1000. In some embodiments, the display screen is designed to be a full screen, a curved screen, a special-shaped screen, a double-sided screen or a folding screen. In some embodiments, the display screen is also designed to be a combination of a full screen and a curved screen, a combination of a special-shaped screen and a curved screen, etc., which is not limited in this embodiment.

[0154] In addition, those skilled in the art will appreciate that the structure of the terminal 1000 shown in the above drawings does not limit the terminal 1000, and the terminal 1000 includes more or fewer components than shown in the drawings, or combines certain components, or arranges components differently. For example, the terminal 1000 also includes components such as a microphone, a speaker, an input unit, a sensor, an audio circuit, a module, a power supply, and a Bluetooth module, which will not be described in detail here.

[0155] The present application also provides a computer-readable storage medium, which stores at least one program code, and the at least one program code is loaded and executed by the processor to implement the card adjustment method shown in the above embodiments.

[0156] The present application also provides a chip, which includes a programmable logic circuit and / or program instructions. When the chip runs on a terminal, it is used to implement the card adjustment method shown in the above embodiments.

[0157] The present application also provides a computer program product, which stores at least one program code, and the at least one program code is used to be executed by a processor to implement the card adjustment method shown in the above embodiments.

[0158] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0159] Those skilled in the art can understand that all or part of the steps in the card adjustment method of the above embodiment can be completed by hardware, or by a program to instruct the relevant hardware to complete, and the program can be stored in a computer-readable storage medium, and the above-mentioned storage medium can be a read-only memory, a disk or an optical disk, etc. The above is only an optional embodiment of the present application and is not intended to limit the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims

1. A card adjustment method, characterized in that: The method comprises: In response to an adding operation of a first card, determining a contactless parameter of the first card, wherein the first card is a virtual near field communication (NFC) card, and the contactless parameter includes at least one parameter for verifying the first card; In response to the first card not being a marked card, determining, based on the contactless parameter of the first card, at least one second card and multiple third cards from multiple virtual NFC cards currently activated on the terminal, the marked card being a virtual NFC card that does not support simultaneous activation with other virtual NFC cards, the contactless parameter of the second card being different from the contactless parameter of the first card having at least one parameter that is different, and the third card being a virtual NFC card other than the second card among the multiple virtual NFC cards; Deactivate the at least one second card, and adjust the terminal to use the first card and the multiple third cards by default. The deactivation is used to switch the virtual NFC card from an activated state to an inactivated state. The terminal cannot use the virtual NFC card in the inactivated state to swipe the card.

2. The method according to claim 1, characterized in that The contactless parameter includes at least one parameter of a unique identification number UID and a card selection response ATS; In response to the first card not being a marked card, determining at least one second card and multiple third cards from multiple virtual NFC cards currently activated in the terminal based on the contactless parameter of the first card, comprises: In response to the first card not being a marked card, determining a card type of the first card, the card type comprising a first type and a second type, the first type of virtual NFC card not supporting simultaneous activation with other virtual NFC cards of the same type, and the second type of virtual NFC card supporting simultaneous activation with other virtual NFC cards of the same type; In a case where the card type of the first card is the first type, determining a virtual NFC card belonging to the first type among the multiple activated virtual NFC cards as the second card, and the UID of the first card is different from the UID of the second card; In a case where the card type of the first card is the second type, determining at least one second card from the plurality of activated virtual NFC cards, wherein the ATS of the second card is different from the ATS of the first card; A plurality of third cards are determined from the plurality of activated virtual NFC cards, where the third cards are virtual NFC cards other than the second card among the plurality of activated virtual NFC cards.

3. The method according to claim 1, characterized in that Before adjusting the terminal to use the first card and the plurality of third cards by default, the method further includes: The first card is activated so that the terminal uses the first card in the activated state to swipe the card.

4. The method according to claim 1, characterized in that: The method further comprises: In response to the first card being a marked card, deactivating a plurality of virtual NFC cards currently activated by the terminal; The first card is activated, and the terminal is adjusted to use the first card by default.

5. The method according to claim 1, characterized in that The method further comprises: Displaying a card swiping interface, the card swiping interface comprising a first area and a second area, the first area displaying a plurality of virtual NFC cards currently activated by the terminal, and the second area displaying a plurality of virtual NFC cards currently not activated by the terminal; In response to a triggering operation on a target card in the first area, deactivating other virtual NFC cards in the first area so that the terminal activates the target card alone; The other virtual NFC card is moved from the first area to the second area.

6. The method according to claim 5, characterized in that The method further comprises: For any virtual NFC card displayed in the first area, determining a number of individual activations of the virtual NFC card; When the number of independent activations is not less than a number threshold, the virtual NFC card is marked so that the virtual NFC card is a marked card.

7. The method according to claim 6, characterized in that The step of marking the virtual NFC card when the number of independent activations is not less than a number threshold, so that the virtual NFC card is a marked card, includes: If the number of separate activations is not less than the number threshold, determining an identifier of the virtual NFC card, where the identifier includes at least one of a unique identification number UID of the virtual NFC card and a card model of the virtual NFC card; The virtual NFC card is marked by adding the identifier of the virtual NFC card to a blacklist, where the blacklist is used to record the identifiers of marked cards.

8. The method according to claim 7, characterized in that The method further comprises: In response to the adding operation of the first card, querying whether the identifier of the first card exists in the blacklist; If the identifier of the first card exists in the blacklist, determining that the first card is a marked card; In the case that the identification of the first card does not exist in the blacklist, it is determined that the first card is not a marked card.

9. The method according to claim 1, characterized in that: In response to the first card not being a marked card, determining at least one second card and multiple third cards from multiple virtual NFC cards currently activated in the terminal based on the contactless parameter of the first card, comprises: In response to the first card not being a marked card, displaying prompt information, the prompt information being used to prompt simultaneous activation of the first card and at least one virtual NFC card activated by the terminal; In response to a confirmation operation on the prompt information, the at least one second card and the plurality of third cards are determined from the plurality of virtual NFC cards currently activated by the terminal.

10. The method according to claim 9, characterized in that The method further comprises: In response to a rejection operation on the prompt information, deactivating multiple virtual NFC cards currently activated by the terminal; The first card is activated, and the terminal is adjusted to use the first card by default.

11. The method according to claim 1, characterized in that: The method further comprises: For any virtual NFC card in the terminal, in response to a marking operation on the virtual NFC card, the virtual NFC card is determined as a marked card, wherein the marking operation is used to indicate that the virtual NFC card is marked as a virtual NFC card that does not support simultaneous activation with other virtual NFC cards.

12. A card adjustment device, characterized in that: The device comprises: A first determination module, configured to determine, in response to an adding operation on a first card, a contactless parameter of the first card, wherein the first card is a virtual near field communication NFC card, and the contactless parameter includes at least one parameter for verifying the first card; a second determining module, configured to, in response to the first card not being a marked card, determine, based on the contactless parameters of the first card, at least one second card and multiple third cards from multiple virtual NFC cards currently activated on the terminal, wherein the marked card is a virtual NFC card that does not support simultaneous activation with other virtual NFC cards, the contactless parameters of the second card and the contactless parameters of the first card have at least one different parameter, and the third card is a virtual NFC card other than the second card among the multiple virtual NFC cards; A card adjustment module is used to deactivate the at least one second card and adjust the terminal to use the first card and the multiple third cards by default. The deactivation is used to switch the virtual NFC card from an activated state to an inactivated state. The terminal cannot use the virtual NFC card in the inactivated state for card swiping.

13. A terminal, characterized in that: The terminal includes a processor and a memory; the memory stores at least one program code, and the at least one program code is used to be executed by the processor to implement the card adjustment method according to any one of claims 1 to 11.

14. A computer-readable storage medium, characterized in that: The storage medium stores at least one program code, and the at least one program code is used to be executed by a processor to implement the card adjustment method according to any one of claims 1 to 11.

15. A chip, characterized in that: The chip includes a programmable logic circuit and / or program instructions, and when the chip runs on a terminal, it is used to implement the card adjustment method according to any one of claims 1 to 11.

16. A computer program product comprising a computer program, characterized in that The computer program product stores at least one program code, and the at least one program code is used to be executed by a processor to implement the card adjustment method according to any one of claims 1 to 11.