Simulation card instruction interaction method and device, terminal and storage medium
By grouping analog cards by use area and integrating their non-connected parameters, the problem of smart terminals being able to activate one card is solved, and multiple analog cards are activated simultaneously and efficiently swiped.
Patent Information
- Application Number
- CN202311284768.1
- 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
Existing smart terminals can only activate one analog card at the same time, making it difficult to effectively integrate non-connected parameters of different analog cards, resulting in inefficient card swiping.
By grouping simulation cards by usage area, creating composite cards, and parameter fusion of the non-connected parameters of composite cards, the target non-connected parameters are obtained, and the simultaneous activation and command interaction of multiple simulated cards are achieved.
It reduces the difficulty of unconnected parameters, improves card swiping efficiency, simplifies user operations, and eliminates the steps of manually switching analog cards.
Smart Images

Figure CN119721074A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of near field communication technology, and in particular to a command interaction method, device, terminal and storage medium for simulating a card. Background Art
[0002] In recent years, the functions of smart terminals have become more diverse. For example, smart phones, smart watches and other devices have the NFC (Near Field Communication) analog card function, that is, after entering multiple analog cards, the card swiping operation can be completed by simply approaching the card reader.
[0003] In the related art, since the contactless parameters of different analog cards are different and it is difficult to merge the contactless parameters, the smart terminal can only activate one card at the same time. Summary of the invention
[0004] The embodiment of the present application provides a method, device, terminal and storage medium for simulating card instruction interaction. The technical solution is as follows:
[0005] On the one hand, an embodiment of the present application provides a command interaction method for simulating a card, the method comprising:
[0006] The simulated cards are grouped based on the usage areas corresponding to the simulated cards to obtain at least one simulated card group, wherein different simulated card groups correspond to different usage areas;
[0007] Creating a composite card corresponding to the simulated card set, wherein the composite card corresponds to at least two simulated cards in the simulated card set;
[0008] Performing parameter fusion on the contactless parameters of the analog card corresponding to the composite card to obtain the target contactless parameters of the composite card;
[0009] When receiving a card reading instruction sent by a card reader, an instruction interaction is performed with the card reader based on the target contactless parameter.
[0010] On the other hand, an embodiment of the present application provides a command interaction device for simulating a card, the device comprising:
[0011] A grouping module, used for grouping the simulated cards based on the usage areas corresponding to the simulated cards to obtain at least one simulated card group, wherein different simulated card groups correspond to different usage areas;
[0012] A creation module, used for creating a composite card corresponding to the simulated card set, wherein the composite card corresponds to at least two simulated cards in the simulated card set;
[0013] A fusion module, used for performing parameter fusion on the contactless parameters of the analog card corresponding to the composite card to obtain the target contactless parameters of the composite card;
[0014] The interaction module is used to perform instruction interaction with the card reader based on the target contactless parameter when receiving a card reading instruction sent by the card reader.
[0015] On the other hand, an embodiment of the present application provides a terminal, which includes a processor, a memory and an NFC component, wherein at least one program code is stored in the memory, and the at least one program code is loaded and executed by the processor to implement the instruction interaction method of the simulated card as described in the above aspects.
[0016] On the other hand, an embodiment of the present application provides a computer-readable storage medium, 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 instruction interaction method of the simulation card as described in the above aspect.
[0017] On the other hand, an embodiment of the present application provides a computer program product, which includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device implements the instruction interaction method of the simulation card provided in the above aspect.
[0018] In the embodiment of the present application, the terminal first obtains at least one analog card group by grouping by usage area, and then creates a composite card based on at least two analog cards in each analog card group. Subsequently, in order to save the time of the terminal to switch cards after the card swiping fails, the terminal fuses the contactless parameters of the analog card corresponding to the composite card to obtain the target contactless parameters of the composite card. After receiving the card reading instruction of the card reader, the terminal sends a response to the card reader based on the target contactless parameters to complete the instruction interaction between the terminal and the card reader. The terminal first groups the analog cards by usage area, and then creates a composite card in the analog card group, which reduces the number of analog cards involved in the fusion and reduces the difficulty of contactless parameter fusion. Subsequently, by fusing the contactless parameters of the analog cards in the analog card group, multiple analog cards are activated. The terminal can autonomously select the analog card for instruction interaction according to the instruction sent by the card reader, eliminating the user's manual switching of the analog card, simplifying the card swiping process and improving the card swiping efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Figure 1 A schematic diagram of an implementation environment shown in an exemplary embodiment of the present application is shown;
[0020] Figure 2A flowchart of a command interaction method for a simulated card provided by an exemplary embodiment of the present application is shown;
[0021] Figure 3 is a schematic diagram of implementing simulated card grouping according to an exemplary embodiment of the present application;
[0022] Figure 4 A flowchart of a command interaction method for a simulated card provided by another exemplary embodiment of the present application is shown;
[0023] Figure 5 is a schematic diagram of field types included in an ATS response shown in an exemplary embodiment of the present application;
[0024] Figure 6 A flowchart of a command interaction method for a composite card obtained from a simulated card set including a single access control card provided by an exemplary embodiment of the present application is shown;
[0025] Figure 7 A flowchart of a command interaction method for a composite card obtained based on a simulated card set including multiple access control cards provided by an exemplary embodiment of the present application is shown;
[0026] Figure 8 is a schematic diagram of an implementation of a target first-category non-access card determination process shown in an exemplary embodiment of the present application;
[0027] Fig. 9 is a schematic diagram of an implementation of a simulated card grouping and compounding process shown in an exemplary embodiment of the present application;
[0028] Fig.10 is a schematic diagram of an implementation of a composite card creation process shown in an exemplary embodiment of the present application;
[0029] Fig.11 A structural block diagram of an instruction interaction device for simulating a card provided by an exemplary embodiment of the present application is shown;
[0030] Fig.12 A structural block diagram of a terminal provided by an exemplary embodiment of the present application is shown. DETAILED DESCRIPTION
[0031] 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 with reference to the accompanying drawings.
[0032] The term "multiple" as used herein refers to two or more than two. "And / or" describes the relationship between related 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 related objects are in an "or" relationship.
[0033] Please refer to Figure 1 , which shows a schematic diagram of an implementation environment shown in an exemplary embodiment of the present application. The implementation environment includes a terminal 110 and a card reader 120.
[0034] The terminal 110 is an electronic device with NFC function, which may be a smart phone, a tablet computer, a smart wearable device or a personal computer, etc. The NFC function may include an NFC input function and an NFC card swiping function. The NFC input function is used to input the card information of the physical NFC card into the terminal and generate a simulated card corresponding to the physical NFC card. The NFC card swiping function is used to interact with the card reader based on the card information of the simulated card to realize specific card swiping functions, such as opening a door, deducting fees, unlocking a vehicle, etc.
[0035] The card reader 120 is a device for reading relevant data in an NFC physical card or a simulated card in a terminal. In some possible application scenarios, the card reader 120 may be an access control card reader set at an access control, used to control the opening and closing of the access control; the card reader 120 may be a transportation card reader set at a transportation vehicle or transportation station, used to implement transportation fee deduction; the card reader 120 may also be a vehicle key card reader integrated in a vehicle, used to implement a vehicle unlocking function. The embodiments of the present application do not limit the specific type of the card reader 120.
[0036] In the embodiment of the present application, the terminal 110 supports single card activation and multi-card activation modes. In the multi-card activation mode, when multiple analog cards meet the composite conditions, the terminal 110 can create a composite card corresponding to the multiple analog cards, and set the contactless parameters of the composite card based on the contactless parameters of each analog card. When interacting with the card reader 120 later, the terminal 110 can interact with the card reader 120 in initialization, anti-collision, and protocol transmission according to the contactless parameters of the composite card, so as to realize the simultaneous activation of multiple analog cards, and then select the analog card matching the card reader 120 from the multiple analog cards based on the instructions sent by the card reader 120 to interact, eliminating the user's manual switching of analog cards.
[0037] In the following embodiments, the instruction interaction method of the simulated card is used in the terminal 110 as an example for description.
[0038] Please refer to Figure 2 , which shows a flow chart of a command interaction method for simulating a card provided by an exemplary embodiment of the present application. The method comprises the following steps:
[0039] Step 201 : grouping the simulated cards based on the usage areas corresponding to the simulated cards to obtain at least one simulated card group, wherein different simulated card groups correspond to different usage areas.
[0040] The simulated card is a virtual card generated by the terminal simulation. In a possible implementation, the terminal can copy the information of the physical card to the simulated card so that the simulated card has the same functions as the physical card. For example, the terminal copies the internal data of the access card by bringing it close to the access card.
[0041] In another possible implementation, the terminal may obtain a simulated card by configuring the card. For example, the terminal adds a simulated bank card by inputting information such as a bank card number and a password.
[0042] The usage area of the analog card is the area where the analog card and the card reader interact with each other. Different analog cards correspond to different usage areas. For example, a community access card is used at the community gate, and its usage area can be the city or town where the community is located. For another example, a subway card is generally used at subway stations in the city, and its usage area can be the city or province where the subway is located.
[0043] Since the area where the terminal uses each simulated card for swiping activities may be fixed or not, for simulated cards with fixed usage areas, the terminal can group the simulated cards according to the usage areas of the simulated cards to obtain simulated card groups. For simulated cards with not fixed usage areas, the terminal can add them to the group corresponding to the fixed usage area.
[0044] A simulated card group is a group of simulated cards with the same usage area. For example, City A transportation card and City A access card are both used in City A, so City A transportation card and City A access card can be included in a simulated card group, and the usage area of this simulated card group is City A.
[0045] Since the terminal may perform card swiping activities in multiple areas, there may be multiple different simulated card groups corresponding to different usage areas in the terminal.
[0046] For example, Figure 3 As shown, the terminal determines the city as the usage area of the simulated card. The terminal first groups the simulated cards by city to obtain simulated card group 1 corresponding to city A, simulated card group 2 corresponding to city B, and simulated card group 3 corresponding to city C, wherein the simulated cards in each simulated card group can be various cards with corresponding usage areas, such as transportation cards, access control cards, and social security cards.
[0047] Step 202: Create a composite card corresponding to the simulated card set, where the composite card corresponds to at least two simulated cards in the simulated card set.
[0048] When the terminal uses a card in the usage area, the card swiping may fail and the card needs to be switched. In order to save the time of switching cards after the card swiping fails, the terminal can composite multiple simulated cards corresponding to the usage area to obtain a composite card, and then use the composite card to complete the card swiping.
[0049] For example, Figure 3 As shown, there are A city simulation card 1 and A city simulation card 2 in simulation card group 1, there are B city simulation card 1, B city simulation card 2 and B city simulation card 3 in simulation card group 2, and there are C city simulation card 1 and C city simulation card 2 in simulation card group 3. Among them, the terminal creates composite card A corresponding to A city based on A city simulation card 1 and A city simulation card 2, creates composite card B corresponding to B city based on B city simulation card 1, B city simulation card 2 and B city simulation card 3, and creates composite card C corresponding to C city based on C city simulation card 1 and C city simulation card 2. The terminal first activates composite card A, that is, the terminal uses composite card A for card swiping by default. When composite card A fails to swipe, the terminal switches to composite card B or composite card C for card swiping.
[0050] It should be noted that, since different analog cards have different corresponding contactless parameters, not all analog cards can be used to create composite cards. When the analog card group contains n analog cards, m of them need to meet the corresponding composite conditions, and the terminal can create corresponding composite cards for m of the n analog cards, where n is greater than or equal to 2, and m is less than or equal to n.
[0051] Since the number of cards m in the simulated card group used to create a composite card is less than the number of simulated cards n in the simulated card group, the number of cards used to create each composite card in the terminal is less than or equal to the number of all cards. Compared with the method in which the terminal uses all simulated cards that meet the composite conditions to create a composite card, the embodiment of the present application first groups the simulated cards, and then uses the simulated cards in the group that meet the composite conditions to create a composite card, which reduces the number of cards involved in the fusion and reduces the fusion difficulty of the non-contact parameters.
[0052] Step 203 , performing parameter fusion on the contactless parameters of the simulated card corresponding to the composite card to obtain target contactless parameters of the composite card.
[0053] Contactless parameters are used to realize wireless communication between contactless IC (Integrated Circuit) card and card reader, such as UID (Unique Identifier) parameter, ATS (Answer to Select) parameter, SAK (Select AcKnowledge) parameter, ATQA (Answer To Request, Type A) parameter, etc.
[0054] Since in the process of interacting with the card reader, the terminal responds to the card reading instruction according to the corresponding parameters in the contactless parameters, in order to obtain the target contactless parameters of the composite card, it is necessary to merge the contactless parameters of the multiple analog cards corresponding to the composite card, so as to realize the interaction between the composite card and the card reader.
[0055] Step 204: upon receiving a card reading instruction sent by the card reader, perform instruction interaction with the card reader based on the target contactless parameter.
[0056] When the terminal uses the composite card to swipe the card, the terminal interacts with the card reader. According to the card reader instruction, the terminal responds with the corresponding type of contactless parameters in the target contactless parameters of the composite card. Since the target contactless parameters of the composite card incorporate the contactless parameters of multiple analog cards corresponding to the composite card, multiple analog cards can respond to the instructions issued by the card reader, that is, multiple analog cards are activated.
[0057] Furthermore, the terminal can determine the simulated card corresponding to the card reader among multiple simulated cards through the instruction sent by the card reader, and then perform instruction interaction.
[0058] For example, the card reader corresponding to the non-access card first sends an AID polling instruction to the terminal, that is, the card reader sends the AIDs it supports to the terminal one by one. After receiving the AID sent by the card reader, the terminal responds to the card reader whether it supports the AID. After confirming the AID corresponding to the simulated card in the terminal, the card reader uses the application corresponding to the AID to perform subsequent interactions with the corresponding simulated card in the terminal. For another example, after the access control card reader sends an anti-collision instruction to the terminal, if the composite card contains the access card, the terminal sends the UID response corresponding to the access card to the card reader. If the composite card does not contain the access card, the terminal sends the UID response corresponding to the non-access card to the card reader.
[0059] In summary, in the embodiment of the present application, the terminal first obtains at least one analog card group by grouping by usage area, and then creates a composite card based on at least two analog cards in each analog card group. Subsequently, in order to save the time of the terminal switching cards after the card swiping fails, the terminal fuses the contactless parameters of the composite card corresponding to multiple analog cards to obtain the target contactless parameters of the composite card. After receiving the card reading instruction of the card reader, the terminal sends a corresponding response to the card reader based on the target contactless parameters to complete the instruction interaction between the terminal and the card reader. The terminal first groups the analog cards by usage area, and then creates a composite card in the analog card group, which reduces the number of analog cards involved in the fusion and reduces the difficulty of contactless parameter fusion. Subsequently, by fusing the contactless parameters of the analog cards in the analog card group, multiple analog cards are activated. The terminal can autonomously select the analog card for instruction interaction according to the instruction sent by the card reader, eliminating the user's manual switching of the analog card, simplifying the card swiping process and improving the card swiping efficiency.
[0060] Since different simulated cards have different card types, the terminal can determine the composite condition of the simulated card according to the card type of the simulated card, that is, the type composite condition. According to different simulated card authentication methods, the terminal can classify the simulated card into an access card and a non-access card.
[0061] In the case where there is an access card in the simulated card group, the terminal interacts with the card reader through commands based on the target contactless parameters of the composite card including the access card and other non-access cards.
[0062] Please refer to Figure 4 , which shows a flow chart of a command interaction method for simulating a card provided by another exemplary embodiment of the present application. The method comprises the following steps:
[0063] Step 401 : grouping the simulated cards based on the usage areas corresponding to the simulated cards to obtain at least one simulated card group, wherein different simulated card groups correspond to different usage areas.
[0064] The implementation of this step may refer to the above step 201, and this embodiment will not be described in detail here.
[0065] Step 402, obtaining the card type of the simulated card in the simulated card group.
[0066] Since different analog cards have different authentication methods, the terminal can classify the analog cards in the analog card group into access control type and non-access control type. Among them, the access control type analog card is authenticated by UID, and the non-access control type analog card is not authenticated by UID.
[0067] In a possible implementation, the terminal determines the card type of the simulated card in the simulated card group according to the card type selected by the simulated card in the simulated card group when the card is entered. For example, when entering an access card, the terminal first enters the entry corresponding to the access card, and then copies the access card. After the access card is successfully copied, the terminal records the type of the access card as the access type so that the card type can be obtained next time.
[0068] Step 403: When there are at least two simulated cards whose card types satisfy the type composite condition, create a composite card corresponding to the at least two simulated cards.
[0069] Since different card types have different authentication methods for simulated cards, not any combination of simulated cards can be used to create a corresponding composite card. Therefore, the terminal needs to further determine whether the card meets the type composite condition based on the card type.
[0070] Since the UIDs of different access control type simulation cards are different, and one access control type simulation card has only one UID corresponding to it, the terminal cannot obtain the UID that can represent two or more access control type simulation cards through fusion, so the access control type simulation cards cannot be fused with each other.
[0071] Since the access control type uses the contactless parameter UID for authentication, and the non-access control type does not use UID for authentication, an access control type analog card can be integrated with one or more non-access control type analog cards.
[0072] Similarly, multiple non-access control type analog cards can be integrated with each other.
[0073] From the above reasoning, it can be seen that type compound conditions can be divided into the following two cases according to the card type.
[0074] 1. The card types of different simulated cards are all non-access control types.
[0075] 2. Among the different simulated cards, one simulated card has a card type of access control type.
[0076] Since there may be one access card, multiple access cards, or no access card in the simulated card group, the terminal can divide the creation of the composite card into three cases, namely, the case where there is a single access card in the simulated card group, the case where there are multiple access cards in the simulated card group, and the case where there is no access card in the simulated card group.
[0077] Step 404: perform parameter fusion on the contactless parameters of the simulated card corresponding to the composite card to obtain target contactless parameters of the composite card.
[0078] In some embodiments, the contactless parameter types of the simulated card include ATQA, UID, ATS, and SAK. Among them, ATQA is used to respond to the card inquiry instruction of the card reader, indicating that there is a simulated card in the radio frequency field that can respond to the card reader instruction. UID is the unique identification identifier of the access control type card. The SAK parameter is included in the SAK response and is used to respond to the card selection instruction sent by the card reader. The card reader verifies the communication protocol supported by the simulated card by checking the individual bytes in the SAK response. The ATS parameter is included in the ATS response and is used to respond to the RATS (Request ATS, select response request) instruction sent by the card reader. ATS is only a contactless parameter for non-access control type simulated cards.
[0079] It should be noted that Type A in the contactless parameter ATQA indicates a type A card response. For a type B card, the contactless parameter type used to respond to the card reader's card inquiry command is ATQB (Answer To Request, Type B).
[0080] Since each analog card has the contactless parameters as described above, and the target contactless parameters are obtained by fusing the contactless parameters of the analog cards, the target contactless parameters also need to include the contactless parameters of the above type.
[0081] Optionally, the terminal may fuse the same type of contactless parameters according to the type of the contactless parameters. The fusion process of different types of contactless parameters is as follows.
[0082] 1. The process of determining the target UID parameters of the composite card.
[0083] In the first case, the card types of at least two simulated cards are non-access control types.
[0084] Since non-access control type analog cards are not authenticated by UID, the content of the target UID will not affect the card reader's ability to find and interact with the corresponding analog card. The terminal can determine the UID of any analog card as the target UID.
[0085] For example, when a composite card contains a transportation card and a car key, the UID of the transportation card is UID1, and the UID of the car key is UID2. Since determining UID1 or UID2 as the target UID does not affect card authentication, the terminal can determine UID1 as the target UID of the composite card, or determine UID2 as the target UID of the composite card.
[0086] In the second case, the card type of at least one of the two simulated cards is a access control type.
[0087] When the UID of the non-access card is determined as the target UID, since the access card is authenticated by UID, the UID of the access card does not exist in the target contactless parameters of the composite card, resulting in the terminal using the composite card to swipe the card reader corresponding to the access card, and the card swiping fails. When the UID of the access card is determined as the target UID, the terminal uses the UID of the access card to interact with the access control type reader, and the card swiping succeeds.
[0088] Therefore, in order to ensure that when a composite card is used to interact with an access control type reader, the access control type reader can obtain the UID of the access control card among multiple simulated cards corresponding to the composite card, and then complete the access control unlocking, the terminal determines the UID of the access control card as the target UID of the composite card.
[0089] For example, when the composite card contains an access card and a transportation card, the UID of the access card is UID1, and the UID of the transportation card is UID2. When the composite card determines the UID2 of the transportation card as the target UID, the access control reader cannot obtain the UID1 corresponding to the access control card, resulting in the failure of the access control reader to swipe the card; when the UID1 of the access control card is determined as the target UID, during the terminal swiping process, the terminal can send the UID1 of the access control card to the access control reader. After the UID matching is successful, the access control is unlocked, so the terminal determines UID1 as the target UID.
[0090] 2. The process of determining the target SAK parameters of the composite card.
[0091] In the first case, the card types of at least two simulated cards are non-access control types.
[0092] Since non-access control type analog cards use the same communication protocol to receive the instructions sent by the card reader, the terminal determines the SAK corresponding to the communication protocol applicable to the non-access control type as the target SAK parameter. For example, non-access control type analog cards all use the ISO14443 protocol, and the SAK parameter corresponding to the ISO14443 protocol is 0x20, so 0x20 can be determined as the target SAK parameter first.
[0093] In the second case, the card type of at least one of the two simulated cards is a access control type.
[0094] Since the communication protocols applicable to access control cards and non-access control cards are different, the SAK parameters of access control cards and non-access control cards are different. Among them, the access control card corresponds to the first SAK parameter, and the non-access control card corresponds to the second SAK parameter.
[0095] Because the non-zero data of the first SAK parameter of the access control chip and the second SAK parameter of the non-access control chip occupy different byte positions, the card reader only checks the bytes where the non-zero data is located when verifying the SAK parameters. Therefore, the first SAK parameter and the second SAK parameter can be combined to obtain the third SAK parameter.
[0096] For example, the communication protocol applicable to the access control card is the Mifare protocol, and its corresponding SAK parameter is 0x08, while the communication protocol applicable to the non-access control card is the ISO14443 protocol, and its corresponding SAK parameter is 0x20. Since the access control card reader only verifies the byte where 8 is located, and does not verify the byte where 0 is located, while the non-access control card reader only verifies the byte where 2 is located, and does not verify the byte where 0 is located, the byte positions verified by the access control card reader and the non-access control card reader are different, so the SAK parameters can be merged to obtain 0x28, and then the terminal determines 0x28 as the target SAK parameter.
[0097] 3. The process of determining the target ATS parameters of the composite card.
[0098] Since access control cards usually do not have ATS parameters, while non-access control cards usually have ATS parameters, the terminal can merge the ATS parameters of non-access control cards as the target ATS parameters of the composite card. For example, transportation card A has ATS parameter 1, and transportation card B has ATS parameter 2. The target ATS parameter of the composite card including access control cards, transportation cards A and B is obtained by merging the ATS parameters of transportation cards A and B.
[0099] Because some non-access control cards have private ATS parameters, not all analog cards with ATS parameters can be integrated with each other. Among them, non-access control cards with private ATS parameters cannot be integrated with each other, and non-access control cards with ATS parameters that do not have private parameters can be integrated with each other.
[0100] For example, the ATS response defined in the IOS14443 protocol is as follows: Figure 5 As shown, the IOS14443 protocol does not limit the content of the ATS response contained in the T1 to Tn fields. Therefore, different manufacturers can add different private parameters to the ATS parameters. In other fields defined by the IOS14443 protocol, the corresponding parameter types in each ATS response are the same, and there is a possibility of fusion.
[0101] 4. The process of determining the target ATQA parameters of the composite card.
[0102] Since the access control card and the non-access control card use the same two ATQA parameters, namely 0400 and 0800, the terminal can use the common ATQA parameters as the composite card target ATQA parameters. For example, the target ATQA parameter can be 0x0400, and for another example, the target ATQA parameter can also be 0x0800, and all ATQA response readers containing these two parameters can be identified.
[0103] Step 405: upon receiving a card reading instruction sent by the card reader, perform instruction interaction with the card reader based on the target contactless parameter.
[0104] The implementation of this step may refer to the above step 204, and this embodiment will not be described in detail here.
[0105] In the embodiment of the present application, the terminal first obtains at least one simulated card group by grouping by use area, then obtains the card type of each simulated card in the simulated card group, determines at least two simulated cards meet the type composite condition based on the card type, and creates a composite card. Subsequently, in order to save the time of the terminal to switch cards after the card swiping fails, the terminal fuses the contactless parameters of the simulated card corresponding to the composite card to obtain the target contactless parameters of the composite card. After receiving the card reading instruction of the card reader, the terminal sends a response to the card reader based on the target contactless parameters to complete the instruction interaction between the terminal and the card reader. The terminal first groups the simulated cards by use area, and then creates a composite card in the simulated card group, which reduces the number of simulated cards involved in the fusion and reduces the difficulty of contactless parameter fusion. Subsequently, by fusing the contactless parameters of different types of simulated cards in the simulated card group, multiple simulated cards are activated. The terminal can autonomously select the simulated card for instruction interaction according to the instruction sent by the card reader, eliminating the user's manual switching of the simulated card, simplifying the card swiping process and improving the card swiping efficiency.
[0106] However, not all card readers can recognize the target contactless parameters after fusion. For example, after receiving the SAK response or ATQA response sent by the terminal, some card readers will identify the SAK parameter 0x28 or ATQA parameter 0x0400 obtained after fusion as illegal content, resulting in the failure of composite card swiping. For another example, there may be private parameters in the transportation card. If different transportation cards have different private parameters, different transportation cards cannot be fused.
[0107] In order to reduce the difficulty of contactless parameter fusion, after the terminal groups the analog cards and before the terminal performs contactless parameter fusion on the analog cards, the terminal can process the creation of composite cards in different situations according to the types of analog cards.
[0108] Since the simulation card groups are grouped according to the use area, there may be access control cards in the simulation card group corresponding to a use area, or there may not be access control cards. In the simulation card group with access control cards, there may be one access control card or multiple access control cards.
[0109] In the case that the simulated card group includes only one access control card, since the authentication methods of the access control card and the non-access control card are different, the terminal can combine the one access control card in the simulated card group with other non-access control cards.
[0110] Please refer to Figure 6 , which shows a flowchart of a command interaction method for a composite card obtained from a simulated card set including a single access control card provided by an exemplary embodiment of the present application. The method comprises the following steps:
[0111] Step 601, grouping the simulated cards based on the usage areas corresponding to the simulated cards to obtain at least one simulated card group, wherein different simulated card groups correspond to different usage areas.
[0112] The implementation of this step may refer to the above step 401, and this embodiment will not be described in detail here.
[0113] Step 602, obtaining the card type of the simulated card in the simulated card group.
[0114] The implementation of this step may refer to the above step 402, and this embodiment will not be described in detail here.
[0115] Step 603: if there is a single access card in the simulated card group, and the access card and other non-access cards in the simulated card group meet the type composite condition, create a composite card corresponding to the access card and other non-access cards.
[0116] The terminal can classify the non-access control card into a first type of non-access control card with private contactless parameters and a second type of non-access control card without private contactless parameters according to whether the contactless parameters include private parameters.
[0117] Since the first type non-access control cards have their own private contactless parameters, multiple first type non-access control cards with different private contactless parameters cannot participate in the fusion, that is, the composite card can only contain one first type non-access control card.
[0118] Since the second type of non-access control card does not have private contactless parameters, multiple second type of non-access control cards with the same type of contactless parameters can participate in the fusion, so that a first type of non-access control card can be fused with one or more second type of non-access control cards, and the private parameters of the first type of non-access control card are retained during the contactless parameter fusion process of the first type of non-access control card and the second type of non-access control card. Among them, the private contactless parameters of the first type of non-access control card may include private ATS parameters.
[0119] For example, the ATS parameters corresponding to the transportation card include privatization parameters, while the ATS parameters corresponding to the car key do not include privatization parameters. Multiple transportation cards with different privatization ATS parameters cannot be merged, but multiple car keys with the same type of ATS parameters can be merged, and a transportation card can be merged with one or more car keys without privatization parameters.
[0120] From the above reasoning, it can be seen that when there is a single access card in the simulated card group, a composite card can be created when the card types of at least two simulated cards in the simulated card group meet the following type composite conditions.
[0121] In the first case, when there is a single access card and a single first-class non-access card in the simulated card group, a composite card corresponding to the access card and the first-class non-access card is created.
[0122] Since the authentication methods of access control cards and non-access control cards are different, a single access control card and a single first-class non-access control card can be composited, so the terminal can create a composite card including a single access control card and a single first-class non-access control card.
[0123] For example, in the simulation card group corresponding to city A, there is a city A community access control card and a city A transportation card. A city A community access control card and a city A transportation card meet the type composite condition. The terminal can create a composite card including a city A community access control card and a city A transportation card.
[0124] In the second case, when there is a single access card, a single first-class non-access card and at least one second-class non-access card in the simulated card group, a composite card corresponding to the access card, the first-class non-access card and the second-class non-access card is created.
[0125] Since the authentication methods of access control cards and non-access control cards are different, a single access control card can be combined with multiple non-access control cards. Since a single first-class non-access control card with privatization parameters can be combined with at least one second-class non-access control card without privatization parameters, the simulated cards in the simulated card group meet the conditions, and the terminal creates a composite card including a single access control card, a single first-class non-access control card, and at least one second-class non-access control card.
[0126] For example, the simulation card group corresponding to city A contains a community access card for city A, a transportation card for city A, and a car key card for a vehicle with a license plate from city A, which meets the type composite conditions of a single access card, a single first-class non-access card, and at least one second-class non-access card. The terminal can create a composite card containing a community access card, a transportation card, and a car key card.
[0127] In the third case, when there is a single access card and at least one second-type non-access card in the simulated card group, a composite card corresponding to the access card and the second-type non-access card is created.
[0128] Since the authentication methods of access control cards and non-access control cards are different, a single access control card can be composited with at least one non-access control card, so the terminal can create a composite card including a single access control card and at least one second type of non-access control card.
[0129] For example, the simulation card group corresponding to city A contains a company access card of city A and two car keys of vehicles with license plates of city A, which meets the type composite condition of a single access card and at least one second-type non-access card. The terminal creates a composite card containing a company access card and two car keys.
[0130] Step 604: perform parameter fusion on the contactless parameters of the simulated card corresponding to the composite card to obtain target contactless parameters of the composite card.
[0131] The implementation of this step may refer to the case in the above step 404 where one of the at least two simulated cards is of the access control type, and this embodiment will not be described in detail here.
[0132] Step 605: upon receiving the card reading instruction sent by the card reader, perform instruction interaction with the card reader based on the target contactless parameter.
[0133] The implementation of this step may refer to the above step 204, and this embodiment will not be described in detail here.
[0134] In the embodiment of the present application, the terminal first obtains at least one analog card group by grouping by usage area, and then obtains the card type of each analog card in the analog card group. When the analog card group contains an access card, the terminal determines the type composite condition based on the card type of other non-access cards. Then, when multiple analog cards in the analog card group meet the type composite condition, a composite card corresponding to multiple analog cards is created, which solves the fusion problem of non-access cards with privatized parameters and reduces the difficulty of contactless parameter fusion. Then the terminal fuses the contactless parameters of each analog card contained in the composite card to obtain the target contactless parameters, and finally the terminal interacts with the card reader based on the target contactless parameters.
[0135] When there are multiple access control cards in the simulated card group, since the composite card can only contain one access control card, the terminal needs to first determine a target access control card, and then discuss the type composite conditions according to other non-access control card types in the simulated card group.
[0136] Please refer to Figure 7 , which shows a flowchart of a method for interacting with a composite card based on a simulated card set containing multiple access control cards provided by an exemplary embodiment of the present application. The method comprises the following steps:
[0137] Step 701, grouping the simulated cards based on the usage areas corresponding to the simulated cards to obtain at least one simulated card group, wherein different simulated card groups correspond to different usage areas.
[0138] The implementation of this step may refer to the above step 401, and this embodiment will not be described in detail here.
[0139] Step 702, obtaining the card type of the simulated card in the simulated card group.
[0140] The implementation of this step may refer to the above step 402, and this embodiment will not be described in detail here.
[0141] Step 703: when there are at least two access control cards in the simulated card group, determine a target access control card among the at least two access control cards.
[0142] Since the composite card contains at most one access control card, when there are at least two access control cards in the simulated card group, the terminal needs to determine a target access control card for creating the composite card.
[0143] Optionally, the terminal can determine the target access card by determining the current geographical location and the usage area corresponding to each access card in the simulated card set. When the current location of the terminal is in the usage area of the access card, the access card corresponding to the usage area is determined as the target access card.
[0144] In one possible implementation, the terminal first determines the current geographic location through longitude and latitude coordinates, and then takes the card swiping location as the center. When the distance between the terminal and the card swiping location does not exceed the distance threshold, the terminal determines that the current location is within the usage area of the access card and determines the access card as the target access card.
[0145] For example, when the simulation card group includes community access cards, company access cards and other non-access cards, since the community access cards and company access cards have fixed card swiping locations, when the terminal is no more than 500 meters away from the community access card swiping location, the terminal determines the community access card as the target access card; when the terminal is no more than 500 meters away from the company access card swiping location, the terminal determines the company access card as the target access card; when the terminal is more than 500 meters away from the company access card swiping location and more than 500 meters away from the community access card swiping location, the current target access card is not changed, or any access card in the current simulation card group is selected as the target access card.
[0146] Although the coordinate positioning based on longitude and latitude can determine the current geographic location well, when the usage areas of the cards overlap, for example, when the usage areas of the property access card and the company access card are in the same building, where the property access card is on the first floor and the company access card is on the tenth floor, at this time, the terminal cannot determine the current location based on the coordinate positioning of longitude and latitude, resulting in the inability to determine the target access card.
[0147] Therefore, in another possible implementation, the terminal determines the current location through WiFi (Wireless Fidelity, wireless local area network) fingerprint positioning technology, that is, the terminal can record the WiFi information of the usage area, including WiFi signal name and signal strength and other information. When the terminal detects that the currently monitored WiFi information is consistent with the WiFi information of the usage area, the terminal can determine that it is currently located in the usage area of the access card, and determine the access card corresponding to the usage area as the target access card.
[0148] For example, when the usage area of the property access card and the company access card are in the same building, the usage area of the property access card is on the first floor, and the usage area of the company access card is on the tenth floor. When the terminal is on the second floor, it receives a stronger property WiFi signal and a weaker company WiFi signal. Then the terminal determines that it is currently in the usage area of the property access card and determines the property access card as the target access card.
[0149] In addition, the terminal can also determine the target access card based on the usage time pattern of each access card in the simulated card group. For example, by recording the usage time of the company access card and the community access card within a month, the terminal can determine that the community access card is used during the mornings of 7-8 am and evenings of 6-8 pm on weekdays and all day on weekends. The terminal can determine the community access card as the target access card; the company access card is used during the mornings of 8-9 am or evenings of 5-6 pm on weekdays. The terminal can determine the company access card as the target access card.
[0150] Step 704: when the target access card and other non-access cards in the simulated card group meet the type composite condition, create a composite card corresponding to the target access card and other non-access cards.
[0151] Similar to the above step 603, after determining the target access card, the terminal can create a composite card if the target access card and other non-access cards meet the type composite condition. Among them, other non-access cards can be divided into a first type of non-access card with private contactless parameters and a second type of non-access card without private contactless parameters.
[0152] Since the first type non-access control cards have their own private contactless parameters, multiple first type non-access control cards with different private contactless parameters cannot be integrated, and the composite card can only contain one first type non-access control card.
[0153] Since the second type non-access control card does not have private contactless parameters, multiple second type non-access control cards with the same type of contactless parameters can participate in the fusion, so that a first type non-access control card can be fused with one or more second type non-access control cards, and the private parameters of the first type non-access control card are retained during the contactless parameter fusion process of the first type non-access control card and the second type non-access control card.
[0154] From the above reasoning, it can be seen that when the target access card and other non-access cards meet the type composite condition, the creation of the composite card can be divided into the following cases.
[0155] In the first case, when there is a single first-class non-access card in the simulated card group, it is determined that the target access card and the single first-class non-access card meet the type composite condition, and a composite card corresponding to the target access card and the first-class non-access card is created.
[0156] In the case where there are at least two access control cards and a single first-class non-access control card in the simulated card group, the terminal first determines the target access control card because the composite card can only contain one access control card. After determining the target access control card, since the authentication methods of access control cards and non-access control cards are different, the target access control card and the single first-class non-access control card can be composited, and the terminal creates a composite card containing the target access control card and the first-class non-access control card.
[0157] For example, the simulation card group corresponding to city A contains a city A community access control card, a city A company access control card and a city A transportation card. The terminal is located in the usage area of the city A community access control card and determines that the city A community access control card is the target access control card. Among them, the city A community access control card belongs to the access control type, and the city A transportation card belongs to the non-access control type. A city A community access control card and a city A transportation card meet the type composite condition. The terminal can create a composite card including a city A community access control card and a city A transportation card.
[0158] In the second case, when there is a single first-class non-access control card and at least one second-class non-access control card in the simulated card group, it is determined that the target access control card, the single first-class non-access control card and at least one second-class non-access control card meet the type composite condition, and a composite card corresponding to the target access control card, the first-class non-access control card and the second-class non-access control card is created.
[0159] In the case where there are at least two access control cards, a single first-class non-access control card, and at least one second-class non-access control card in the simulated card group, since the composite card can only contain one access control card, the terminal first determines the target access control card. Since the authentication methods of access control cards and non-access control cards are different, a single access control card can be composited with one or more non-access control cards, so the target access control card can be composited with either a single first-class non-access control card or at least one second-class non-access control card. Since a single first-class non-access control card with privatization parameters can be composited with at least one second-class non-access control card without privatization parameters, the terminal can determine that a single target access control card, a single first-class non-access control card, and at least one second-class non-access control card meet the type composite condition, and then the terminal creates a composite card containing a single target access control card, a single first-class non-access control card, and at least one second-class non-access control card.
[0160] For example, in the simulated card group corresponding to city A, there is a community access card for city A, a company access card for city A, a transportation card for city A, and a car key card for a vehicle with a license plate of city A. The terminal first detects that the current location is in the usage area of the company access card, and then the terminal determines the company access card as the target access card. Since an access card is composited with multiple non-access cards, and a first-class non-access card can be composited with multiple second-class non-access cards, the terminal can determine that a company access card, a transportation card, and a car key meet the type composite condition, and the terminal can create a composite card containing a company access card, a transportation card, and a car key.
[0161] In the third case, when there is at least one second-class non-access card in the simulated card group, it is determined that at least one second-class non-access card of the target access card meets the type composite condition, and a composite card corresponding to the target access card and the second-class non-access card is created.
[0162] In the case where there are at least two access control cards and at least one second-class non-access control card in the simulated card group, the terminal first determines the target access control card because the composite card can only contain one access control card. Since the authentication methods of access control cards and non-access control cards are different, a single access control card can be composited with one or more non-access control cards. Therefore, a single access control card and at least one second-class non-access control card meet the type composite condition, and the terminal creates a composite card containing a single access control card and at least one second-class non-access control card.
[0163] For example, the simulated card group corresponding to City A contains one City A company access card, one City A community access card, and two car keys, where the car key is a second type non-access card without privatization parameters. The terminal first recognizes that the current location is in the usage area of the company access card, and then the terminal determines the company access card as the target access card. Since an access card can be combined with multiple non-access cards, the terminal determines that a company access card and two car keys meet the type combination conditions, and the terminal can create a composite card containing a company access card and two car keys.
[0164] It should be noted that, when there are at least two access cards in the simulated card group, since the usage areas of the access cards may overlap, the terminal may determine the wrong target access card, resulting in failure of access card swiping.
[0165] In order to solve the problem of card swiping failure caused by overlapping usage areas, in a possible implementation, after the card swiping fails, the terminal first determines another usage area to which the overlapping part belongs, and then recreates a composite card when the access control card corresponding to the usage area and other non-access control cards in the simulated card group meet the type composite condition, and then the terminal uses the composite card to swipe the card again.
[0166] Step 705: perform parameter fusion on the contactless parameters of the simulated card corresponding to the composite card to obtain target contactless parameters of the composite card.
[0167] The implementation of this step may refer to the above step 404, which will not be described in detail in this embodiment.
[0168] Step 706: upon receiving the card reading instruction sent by the card reader, perform instruction interaction with the card reader based on the target contactless parameter.
[0169] The implementation of this step may refer to the above step 205, and this embodiment will not be described in detail here.
[0170] In an embodiment of the present application, the terminal first obtains at least one simulation card group by grouping by usage area, and then the terminal obtains the card type of each simulation card in the simulation card group. In the case where at least two access control cards are included in the simulation card group, since the composite card can only contain one simulation card, the terminal determines that the access control card corresponding to the usage area is the target access control card according to the usage area where the current location is located. Then the terminal processes the type composite conditions of the simulation card based on the existence of non-access control cards with private parameters, solves the fusion problem of non-access control cards with privatized parameters, and reduces the difficulty of contactless parameter fusion. Then the terminal uses the simulation cards that meet the type composite conditions in the simulation card group to create a composite card, and then the terminal fuses the contactless parameters of each simulation card contained in the composite card to obtain the target contactless parameters, and finally the terminal performs instruction interaction based on the target contactless parameters.
[0171] In the above embodiment, since the first type non-access control card has privatization parameters, the composite card can only contain one first type non-access control card. However, there may not be only one first type non-access control card in the analog card group, so when the terminal creates a composite card corresponding to at least two analog cards when the analog card meets the type composite condition, it can also include the following two situations.
[0172] 1. If there is a single first-class non-access card in the simulated card group, and the first-class non-access card and other simulated cards in the simulated card group meet the type composite condition, create a composite card corresponding to the first-class access card and other simulated cards.
[0173] The case where there is a single first-class non-access control card in the simulated card group is the same as the above embodiment, that is, the case where the first-class non-access control card and other simulated cards in the simulated card group meet the type composite condition can include the following three cases.
[0174] The first one is that there is a single first-category non-access control card and a single or multiple access control cards in the simulated card set.
[0175] The second type is that there is a single first-category non-access control card, a single or multiple access control cards, and at least one second-category non-access control card in the simulated card group.
[0176] The third type is that there is a single first-category non-access control card and at least one second-category non-access control card in the simulated card group.
[0177] It should be noted that in an embodiment of the present application, when there is only one access control card in the simulated card group, due to different authentication methods, the access control card can be combined with a non-access control card, so the access control card can be combined with a single first-class non-access control card. When there are at least two access control cards in the simulated card group, the terminal first determines a target access control card from at least two access control cards, and then combines the target access control card with the single first-class non-access control card.
[0178] 2. When there are at least two first-class non-access control cards in the simulated card group, determine the target first-class non-access control card among the at least two first-class non-access control cards; when the target first-class non-access control card and other simulated cards in the simulated card group meet the type composite condition, create a composite card corresponding to the target first-class non-access control card and other simulated cards.
[0179] In which, when there are at least two first-category non-access control cards in the simulated card group, the method for determining the target first-category non-access control card may include at least one of the following methods.
[0180] The first method is to determine any first-category non-access control card among at least two first-category non-access control cards as a target first-category non-access control card.
[0181] For example, when there are transportation card A and transportation card B in the simulated card group, the terminal can determine transportation card A as the target first-class non-access control card, or transportation card B as the target first-class non-access control card.
[0182] The second method is to determine a target first-class non-access control card among at least two first-class non-access control cards based on the current geographic location and the historical usage locations corresponding to at least two first-class non-access control cards, and the historical usage location corresponding to the target first-class non-access control card has the highest matching degree with the current geographic location.
[0183] The first type of non-access control card may include a transportation card. Although the transportation card has fixed transportation stations, the transportation routes may involve a large number of transportation stations that are densely packed, and the terminal cannot determine the usage area of the transportation card by recording all the transportation stations.
[0184] According to the user's usage habits, the card swiping sites corresponding to the transportation card may only include a few specific sites. Therefore, in a possible implementation, the terminal can record the historical usage location of the transportation card, and determine the target first-class non-access control card by matching the current location with the historical usage location. That is, when the current location of the terminal matches the historical usage location of the transportation card highly, the transportation card corresponding to the historical usage location is determined as the target first-class non-access control card.
[0185] Indicatively, Figure 8 As shown, the historical usage area corresponding to transportation card A includes areas 1, 2 and 3, and the historical usage area corresponding to transportation card B includes areas 4 and 5. When the terminal is currently at position 6, position 6 is closest to position 2, so the terminal has the highest match with the historical usage area corresponding to transportation card A, and then the terminal determines transportation card A as the target first-class non-access control card.
[0186] The third method is to determine a target first class non-access control card among the at least two first class non-access control cards based on respective usage frequencies of the at least two first class non-access control cards, wherein the usage frequency of the target first class non-access control card is higher than that of other first class non-access control cards.
[0187] Since the higher the usage frequency of the simulated card, the higher the possibility of its being used, the terminal determines the first category non-access control card with the highest possibility of being used as the target first category non-access control card based on the usage frequency of the first category non-access control cards.
[0188] For example, the terminal records the number of times transportation card A and transportation card B are used within a week. Transportation card A is used 6 times within a week, and transportation card B is used 3 times within a week. The usage frequency of transportation card A is higher than that of transportation card B. Therefore, the terminal determines that transportation card A is the target first-class non-access control card.
[0189] In a fourth method, a first-category non-access control card having a universal identifier among at least two first-category non-access control cards is determined as a target first-category non-access control card.
[0190] Since some analog cards may be universal cards with universal table identifiers, such as multi-city universal transportation cards, in order to achieve better composite effects, reduce the number of cards involved in the composite, and reduce the difficulty of contactless parameter fusion, the terminal can give priority to fusion of universal cards. When universal cards cannot be fused, the terminal fuses non-universal analog cards.
[0191] Exemplarily, the transportation card belongs to the first category of non-access control cards. Transportation cards usually have corresponding usage cities, such as the corresponding usage city of A City Pass is City A, and the corresponding usage city of B City Pass is City B. Since some transportation cards are multi-city universal transportation cards, compared with local transportation cards, their usage areas are wider. Therefore, in order to reduce the number of cards involved in the composite and reduce the difficulty of contactless parameter fusion, the terminal preferentially determines the transportation card as the target first category non-access control card. When the transportation card composite fails, other local transportation cards are determined as the target first category non-access control card.
[0192] In addition, the terminal can also record the usage period of the first-class non-access control card, and according to the usage period of the current time, the terminal determines the first-class non-access control card corresponding to the usage period as the target first-class non-access control card. For example, by counting the usage of transportation card 1 and transportation card 2 in a month, the terminal determines that the usage period corresponding to transportation card 1 is 7-8 am, and the usage period of transportation card 2 is 17-18 pm. When the current time is 17:30, the terminal determines the subway card as the target first-class non-access control card.
[0193] In an embodiment of the present application, in order to reduce the difficulty of integrating first-class non-access control cards with privatized contactless parameters, the terminal creates a composite card based on a single first-class non-access control card. Since the number of first-class non-access control cards in the simulated card group may be one or more, when there are multiple first-class non-access control cards in the simulated card group, the terminal first determines a target first-class non-access control card, and then creates a composite card including the target first-class non-access control card when the target first-class non-access control card and other simulated cards meet the type composite conditions.
[0194] In the above embodiment, the instruction interaction method of the simulated card is discussed when the simulated card group includes an access card. However, the simulated card group may not contain an access card. When only non-access cards exist in the simulated card group, the type compound conditions that the simulated cards in the simulated card group need to meet are different from those when there is an access card.
[0195] Optionally, after the terminal groups the simulated cards according to the usage area of the simulated cards and obtains the simulated card group, the terminal can determine that there is no access card in the simulated card group by obtaining the card type of the simulated card in the simulated card group. Then, the terminal divides the non-access card into a first type of non-access card with privatized contactless parameters and a second type of non-access card without privatized contactless parameters according to whether the contactless parameters contain private parameters. The private contactless parameters may include private ATS parameters.
[0196] Among them, when the non-access control card meets the type composite condition, the creation of the composite card can be divided into the following two cases.
[0197] 1. When there is a single first-class non-access control card and at least one second-class non-access control card in the simulated card group, create a composite card corresponding to the single first-class non-access control card and at least one second-class non-access control card.
[0198] 2. When there are at least two second-category non-access control cards in the simulated card group, create composite cards corresponding to at least two second-category non-access control cards.
[0199] After the composite card is created, the terminal performs parameter fusion on the contactless parameters of the analog card corresponding to the composite card to obtain the target contactless parameters of the composite card.
[0200] Optionally, the terminal may fuse the same type of contactless parameters according to the type of the contactless parameters. The fusion process of different types of contactless parameters is as follows.
[0201] 1. The process of determining the target UID of the composite card.
[0202] Since non-access control cards are not authenticated by UID, the content of the target UID will not affect the card reader's ability to find and interact with the corresponding simulated card. The terminal can determine the UID of any simulated card as the target UID.
[0203] For example, when a composite card contains a transportation card and a car key, the UID of the transportation card is UID1, and the UID of the car key is UID2. Since determining UID1 or UID2 as the target UID does not affect card authentication, the terminal can determine UID1 as the target UID of the composite card, or determine UID2 as the target UID of the composite card.
[0204] 2. The process of determining the target SAK parameters of the composite card.
[0205] Since non-access control type analog cards use the same communication protocol to receive the instructions sent by the card reader, the terminal determines the SAK corresponding to the communication protocol applicable to the non-access control type as the target SAK parameter. For example, non-access control type analog cards all use the ISO14443 protocol, and the SAK parameter corresponding to the ISO14443 protocol is 0x20, so 0x20 can be determined as the target SAK parameter first.
[0206] 3. The process of determining the target ATQA parameters of the composite card.
[0207] Since the access control type analog card and the non-access control type analog card use the same two ATQA parameters, namely 0400 and 0800, the terminal can take the common ATQA parameter as the composite card target ATQA parameter. For example, the target ATQA parameter can be 0x0400, and for another example, the target ATQA parameter can also be 0x0800, and all ATQA response card readers containing these two parameters can be identified.
[0208] 4. The process of determining the target ATS parameters of the composite card.
[0209] In the first case, there is a single first-category non-access control card and at least one second-category non-access control card in the simulated card group.
[0210] In a possible implementation, the terminal merges the ATS parameters of the first type of non-access card with the ATS parameters of the second type of non-access card, and retains the privatized part of the first type of non-access card during the fusion process. For example, a transportation card belongs to the first type of non-access card, and a car key belongs to the second type of non-access card. Since the car key does not have the privatized ATS parameters, the car key can respond to the command sent by the car key reader based on the ATS parameters of the transportation card. Therefore, the terminal can determine the privatized ATS parameters of the transportation card as the target ATS parameters.
[0211] In the second case, there are at least two second-category non-access control cards in the simulated card group.
[0212] For non-privatized ATS parameters, during the ATS parameter fusion process, the terminal fuses parameters of the same type in the ATS parameters.
[0213] In some embodiments, the ATS parameters include a waiting time parameter and a communication rate parameter. The waiting time parameter is used for the terminal to report to the card reader the time range required for the card reader to wait for the terminal to respond after the terminal receives the card reader instruction, that is, the maximum waiting time. The communication rate parameter is used to report to the card reader the fastest communication transmission rate supported by the terminal.
[0214] For example, Figure 5 As shown, the field types included in the ATS response, wherein the waiting time parameter is located in part of the TB(1) byte in the ATS response, and the communication rate parameter is located in part of the TA(1) byte in the ATS response.
[0215] Since the waiting time parameter indicates the maximum time range that the card reader waits for the terminal to respond, and the communication rate parameter indicates the fastest communication transmission rate supported by the terminal, the maximum waiting time parameter among the ATS parameters of multiple non-access control type analog cards can be determined as the target waiting time parameter in the target ATS parameters, and the minimum communication rate parameter among the ATS parameters of multiple non-access control type analog cards can be determined as the target communication rate parameter in the target ATS parameters. For example, when the communication rate corresponding to analog card A is 212kbps and the communication rate corresponding to analog card B is 424kbps, the communication rate corresponding to analog card B is faster than the communication rate corresponding to analog card A, and the terminal determines the communication rate parameter corresponding to analog card B as the target communication rate parameter in the ATS parameters.
[0216] In the embodiment of the present application, after the terminal obtains the simulated card group by grouping the simulated cards, and the simulated card group does not contain the access card, the terminal classifies other non-access cards, determines the type composite condition based on the types of at least two non-access cards, and creates a composite card corresponding to at least two non-access cards when the non-access card meets the type composite condition, and performs contactless parameter fusion on the contactless parameters of different types corresponding to the non-access cards contained in the composite card to obtain the target contactless parameters. Finally, the terminal implements instruction interaction with the card reader based on the target contactless parameters.
[0217] In all cases of the above embodiments, at least two analog cards in the analog card group need to meet the type composite condition, and then the terminal creates a composite card.
[0218] Although grouping analog cards by usage area reduces the number of cards involved in the composite and reduces the difficulty of contactless parameter fusion, there are still analog cards that meet the type composite conditions but cannot be fused through contactless parameters. For example, an access card with a 7-byte UID and a bus card with a 4-byte UID cannot obtain the target UID through contactless parameter fusion.
[0219] When there are at least two simulated cards in the simulated card group whose card types meet the type composite conditions, in order to integrate the contactless parameters of at least two simulated cards in the simulated card group, the contactless parameters of at least two simulated cards need to meet certain parameter composite conditions. Therefore, when there are at least two simulated cards in the simulated card group whose card types meet the type composite conditions, the terminal creates a composite card corresponding to at least two simulated cards, which may also include the following sub-steps.
[0220] 1. Obtain the contactless parameters corresponding to at least two analog cards.
[0221] 2. When the non-contact parameters meet the parameter composite conditions, create a composite card corresponding to at least two simulated cards.
[0222] Since the formats of the same type of contactless parameters of different analog cards may not be uniform, the situations where the contactless parameters meet the parameter compound conditions may include:
[0223] When the parameter formats of the same type of contactless parameters corresponding to at least two analog cards are consistent, it is determined that the contactless parameters meet the parameter composite condition, and a composite card corresponding to at least two analog cards in the analog card group is created.
[0224] For example, the length of the UID of each simulated card may be different. The UID of the access card may be 4 bytes or 7 bytes, and the UID of the bus card is generally 4 bytes. The access card is of the access control type, and the bus card is of the non-access control type, which meets the type composite condition. However, the access card with a 7-byte UID cannot be integrated with the bus card with a 4-byte UID. The access card with a 4-byte UID and the bus card with a 4-byte UID can create a composite card corresponding to the access card with a 4-byte UID and the bus card because the UID format is consistent and meets the parameter composite condition.
[0225] In an embodiment of the present application, when at least two simulated cards in a simulated card group meet the type composite condition, the terminal first obtains the contactless parameters corresponding to the at least two simulated cards, and then determines whether the contactless parameters meet the parameter composite condition. When the parameter composite condition is met, the terminal creates a composite card corresponding to the at least two simulated cards to facilitate subsequent contactless parameter fusion to obtain the target contactless parameters.
[0226] Since different simulation cards correspond to different usage areas, some simulation cards have fixed usage areas. For example, the usage area of a community access card is within the community, and the usage area of a campus card is within the school.
[0227] However, some analog cards do not have a fixed usage area. For example, since electronic ID cards are used in many scenarios, including high-speed rail travel and hospital registration, the usage area of electronic ID cards is not fixed. For another example, a car is a means of transportation that can be driven within a fixed area or across regions, so the usage area of a car key may not be fixed.
[0228] Optionally, the terminal may first group the analog cards according to the fixed usage area types, and then determine the corresponding group of analog cards that do not have the fixed usage area.
[0229] In a possible implementation, the terminal divides the analog cards with fixed usage areas into analog card groups corresponding to the fixed usage areas. Since the analog cards with non-fixed usage areas cannot be divided according to the usage areas, the terminal divides them into analog card groups of each fixed area. Subsequently, the terminal selects an analog card that meets the type composite condition based on the analog card groups obtained by the division, thereby creating a composite card, and then merges the contactless parameters of the multiple analog cards corresponding to the composite card to obtain the target contactless parameters of the composite card. Finally, the terminal interacts with the card reader based on the target contactless parameters.
[0230] Indicatively, Fig. 9As shown, when the terminal has multiple transportation cards, multiple access cards and multiple car keys, the terminal first divides the simulation card groups corresponding to the three cities of A City, B City and C City according to the fixed use areas of the transportation cards and access cards. Among them, the corresponding use area of the transportation card in City A and the access card of the community in City A is City A, the corresponding use area of the transportation card in City B, the access card of the community in City B and the access card of the company in City B is City B, and the corresponding use area of the transportation card 1 in City C and the transportation card 2 in City C is City C. In addition, the terminal also includes car key 1 and car key 2 with non-fixed use areas. The terminal puts car key 1 and car key 2 into the simulation card groups of all fixed use areas. Therefore, the simulation card group in City A includes the transportation card in City A, the access card of the community in City A, the car key 1 and car key 2, the simulation card group in City B includes the transportation card in City B, the access card of the community in City B, the access card of the company in City B, the car key 1 and car key 2, and the simulation card group in City C includes the transportation card 1 in City C, the transportation card 2 in City C, the car key 1 and the car key 2.
[0231] In the process of creating a composite card, since the A city transportation card, the A city community access card, the car key 1 and the car key 2 meet the type composite conditions of a single access card, a single first-class non-access card and at least one second-class non-access card, the terminal creates a composite card including the A city transportation card, the A city community access card, the car key 1 and the car key 2. Since the B city transportation card, the B city community access card, the car key 1 and the car key 2 meet the type composite conditions of a single access card, a single first-class non-access card and at least one second-class non-access card, the terminal creates a composite card including the B city transportation card, the B city community access card, the car key 1 and the car key 2. Since the C city transportation card 2, the car key 1 and the car key 2 meet the type composite conditions of a single first-class non-access card and at least one second-class non-access card, the terminal creates a composite card including the C city transportation card 2, the car key 1 and the car key 2.
[0232] For example, the process of creating a composite card is as follows: Fig.10 As shown, the process includes the following steps:
[0233] Step 1001, grouping the simulated cards according to their usage areas.
[0234] Step 1002, obtaining the type of the simulated card in the simulated card group.
[0235] Step 1003, determine whether there is an access card in the simulated card group.
[0236] When there is no access card in the simulated card set, step 1004 is executed.
[0237] When there is an access card in the simulated card group, step 1011 is executed.
[0238] Step 1004, determining whether there is a first type non-access control card in the simulated card group.
[0239] When there is a first type non-access control card in the simulated card group, step 1005 is executed.
[0240] When there is no first-category non-access control card in the simulated card group, step 1008 is executed.
[0241] Step 1005, determining whether there is a single first-category non-access control card in the simulated card group.
[0242] In the case that there is a single first-category non-access control card in the simulated card set, step 1006 is executed.
[0243] When there is no single first-category non-access control card in the simulated card set, step 1010 is executed.
[0244] Step 1006, determining whether there is at least one second type non-access control card in the simulated card group.
[0245] When there is at least one second-category non-access control card in the simulated card group, step 1007 is executed.
[0246] In the case where there is not at least one second-category non-access control card in the simulated card group, there is only one first-category non-access control card in the simulated card group, and no composite card is created.
[0247] Step 1007: Create a composite card based on a single first-type non-access control card and at least one second-type non-access control card.
[0248] Step 1008, determining whether there are at least two second-category non-access control cards in the simulated card group.
[0249] When there are at least two second-category non-access control cards in the simulated card group, step 1009 is executed.
[0250] In the case where there are not at least two second-type non-access control cards in the simulated card set, the cards in the simulated card set do not meet the type composite condition.
[0251] Step 1009: Create a composite card based on at least two second-type non-access control cards.
[0252] Step 1010, determining a target first type non-access control card.
[0253] Step 1011, determine whether there is a single access control card in the simulated card group.
[0254] When there is a single access card in the simulated card set, step 1012 is executed.
[0255] When there is no single access control card in the simulated card group, it means there are multiple access control cards, and step 1013 is executed.
[0256] Step 1012, determining whether there is a first type non-access control card in the simulated card group.
[0257] In the case of a first type non-access control card existing in the simulated card set, step 1014 is executed.
[0258] When there is no first-category non-access control card in the simulated card group, step 1015 is executed.
[0259] Step 1013, determine the target access card.
[0260] Step 1014, determining whether there is a single first-category non-access control card in the simulated card group.
[0261] When there is a single first-category non-access control card in the simulated card set, step 1017 is executed.
[0262] In the case that there is no single first-category non-access control card in the simulated card set, and there are multiple first-category non-access control cards in the simulated card set, step 1016 is executed.
[0263] Step 1015, determining whether there is at least one second type non-access control card in the simulated card group.
[0264] When there is at least one second-category non-access control card in the simulated card group, step 1018 is executed.
[0265] In the case where there is not at least one second-category non-access control card in the simulated card set, there is only one access control card in the simulated card set, and no composite card is created.
[0266] Step 1016, determining the target first type non-access control card.
[0267] Step 1017, determining whether there is at least one second type non-access control card in the simulated card group.
[0268] When there is at least one second-category non-access control card in the simulated card group, step 1019 is executed.
[0269] When there is no at least one second-category non-access control card in the simulated card group, step 1020 is executed.
[0270] Step 1018: Create a composite card based on the single access control card and at least one second type non-access control card.
[0271] Step 1019: Create a composite card based on a single access control card, a single first-category non-access control card, and at least one second-category non-access control card.
[0272] Step 1020: Create a composite card based on a single access control card and a single first-category non-access control card.
[0273] Since different analog cards have different types, the terminal can also determine whether the analog card has a fixed usage area according to the card type.
[0274] In a possible implementation, the terminal divides the card type into a first card type and a second card type, wherein the simulated card of the first card type has a fixed usage area, and the simulated card of the second card type has a non-fixed usage area.
[0275] When the simulated card belongs to the first card type, the terminal determines that the simulated card has a fixed use area. The first card type may include at least one of an access card and a transportation card. The fixed use area corresponding to the access card may be a community, a company, or other areas where access cards are used. The fixed use area of a transportation card may be a public transportation station or a city corresponding to the transportation card.
[0276] When the simulated card belongs to the second card type, the terminal determines that the simulated card has a non-fixed usage area. The second card type may include at least one of a car key type, an identity card, and a payment card. The usage area of the car key includes all areas that the vehicle can enter, the usage area of the identity card includes all areas that require identity authentication, and the usage area of the payment card includes all areas with a payment environment.
[0277] Of course, in other possible implementations, the terminal may also cluster the historical usage areas of the simulated card and determine whether the simulated card has a fixed usage area based on the clustering results. The embodiment of the present application does not limit the specific method of determining whether the simulated card has a fixed usage area.
[0278] In the embodiment of the present application, the terminal groups the analog cards based on the fixed usage area, and classifies the analog cards corresponding to the non-fixed usage area into the fixed usage area group, so that the analog card group includes all the analog cards that may be used by the terminal in a certain fixed usage area, and then the terminal creates a composite card based on the cards in the analog card group that meet the type composite condition. The terminal not only reduces the difficulty of integrating the contactless parameters through grouping, but also ensures that the analog cards included in the composite card have a high probability of being used, so that the user does not need to switch to switch the composite card in the fixed area.
[0279] After the terminal automatically groups the simulated cards by usage area, the simulated card group automatically includes all simulated cards that may be used to create composite cards in the fixed usage area. Due to different users' different simulated card usage habits, users may not be active in the fixed usage area. For example, users often travel between several cities due to work travel needs. Therefore, the terminal's automatic grouping of simulated cards may not be applicable to all users.
[0280] Furthermore, the terminal can be manually grouped by the user to obtain a simulated card group while ensuring that the type composite condition is met.
[0281] In one possible implementation, the terminal performs a type composite condition check on the card added by the user to the simulated card group. When the card added by the user does not meet the type composite condition, for example, when the user adds a second access control card to the simulated card group, or when the user adds a second non-access control card with private contactless parameters, the terminal can prompt the user to replace or retain the simulated card.
[0282] In addition, in order to improve the personalization of manual grouping, in a possible implementation, the user can name the customized simulation card group or set a composite card cover.
[0283] In an embodiment of the present application, the terminal performs a type composite condition check on the simulated card group created by the user independently. While ensuring that the cards in the simulated card group meet the type composite conditions, it provides the user with personalized choices, including naming the composite card and changing the composite card cover, thereby improving the personalization of the simulated card grouping.
[0284] Please refer to Fig.11 It shows a structural block diagram of a command interaction device for simulating a card provided by an exemplary embodiment of the present application. The device includes:
[0285] A grouping module 1101 is used to group the simulated cards based on the usage areas corresponding to the simulated cards to obtain at least one simulated card group, wherein different simulated card groups correspond to different usage areas;
[0286] A creation module 1102, configured to create a composite card corresponding to the simulated card set, wherein the composite card corresponds to at least two simulated cards in the simulated card set;
[0287] A fusion module 1103 is used to perform parameter fusion on the contactless parameters of the analog card corresponding to the composite card to obtain the target contactless parameters of the composite card;
[0288] The interaction module 1104 is used to perform instruction interaction with the card reader based on the target contactless parameter when receiving a card reading instruction sent by the card reader.
[0289] Optionally, the creation module 1102 is further used to:
[0290] Obtaining the card type of the simulated card in the simulated card group;
[0291] In the case that there are at least two simulated cards whose card types satisfy the type composite condition, the composite card corresponding to the at least two simulated cards is created.
[0292] Optionally, the creation module 1102 is further used to:
[0293] If there is a single access card in the simulated card group, and the access card and other non-access cards in the simulated card group meet the type composite condition, create the composite card corresponding to the access card and the other non-access cards;
[0294] When there are at least two access control cards in the simulated card group, determine the target access control card among the at least two access control cards; when the target access control card and other non-access control cards in the simulated card group meet the type composite condition, create the composite card corresponding to the target access control card and the other non-access control cards.
[0295] Optionally, the creation module 1102 is further used to:
[0296] In the case where there is a single access control card and a single first-category non-access control card in the simulated card group, creating the composite card corresponding to the access control card and the first-category non-access control card;
[0297] In the case where there is a single access control card, a single first-class non-access control card and at least one second-class non-access control card in the simulated card group, creating the composite card corresponding to the access control card, the first-class non-access control card and the second-class non-access control card;
[0298] In the case where there is a single access control card and at least one second type non-access control card in the simulated card group, creating the composite card corresponding to the access control card and the second type non-access control card;
[0299] The first type of non-access control card has private contactless parameters, the second type of non-access control card does not have private contactless parameters, and the private contactless parameters do not support parameter fusion.
[0300] Optionally, the creation module 1102 is further used to:
[0301] Based on the current geographical location and the usage areas corresponding to the at least two access control cards respectively, a target access control card among the at least two access control cards is determined, and the current geographical location is located within the usage area corresponding to the target access control card.
[0302] Optionally, the creation module 1102 is further used to:
[0303] When there is a single first-class non-access control card in the simulated card group, and the target access control card and the first-class non-access control card meet the type composite condition, creating the composite card corresponding to the target access control card and the first-class non-access control card;
[0304] When there is a single first-class non-access card and at least one second-class non-access card in the simulated card group, and the target access card, the first-class non-access card and the second-class non-access card meet the type composite condition, create the composite card corresponding to the target access card, the first-class non-access card and the second-class non-access card;
[0305] When there is at least one second-type non-access control card in the simulated card group and the target access control card and the second-type non-access control card meet the type composite condition, create the composite card corresponding to the target access control card and the second-type non-access control card;
[0306] The first type of non-access control card has private contactless parameters, the second type of non-access control card does not have private contactless parameters, and the private contactless parameters do not support parameter fusion.
[0307] Optionally, the creation module 1102 is further used to:
[0308] When there is a single first-class non-access control card in the simulated card group, and the first-class non-access control card and other simulated cards in the simulated card group meet the type composite condition, create the composite card corresponding to the first-class access control card and the other simulated cards;
[0309] In the case where there are at least two first-class non-access control cards in the simulated card group, determining a target first-class non-access control card among the at least two first-class non-access control cards; in the case where the target first-class non-access control card and other simulated cards in the simulated card group meet the type composite condition, creating the composite card corresponding to the target first-class non-access control card and the other simulated cards;
[0310] The first type of non-access control card has private contactless parameters, and the private contactless parameters do not support parameter fusion.
[0311] Optionally, the creation module 1102 is further used to:
[0312] Determine any one of the at least two first-category non-access control cards as the target first-category non-access control card;
[0313] Based on the current geographic location and the historical usage locations corresponding to the at least two first-class non-access control cards, determining a target first-class non-access control card among the at least two first-class non-access control cards, the historical usage location corresponding to the target first-class non-access control card having the highest matching degree with the current geographic location;
[0314] Determining a target first-class non-access control card among the at least two first-class non-access control cards based on respective usage frequencies of the at least two first-class non-access control cards, wherein the usage frequency of the target first-class non-access control card is higher than the usage frequencies of other first-class non-access control cards;
[0315] The first type non-access control card having a universal identifier among the at least two first type non-access control cards is determined as the target first type non-access control card.
[0316] Optionally, the privatized contactless parameters include privatized ATS parameters, and the first type of non-access control card includes a transportation card.
[0317] Optionally, the creation module 1102 is further used to:
[0318] Acquire the contactless parameters corresponding to the at least two simulation cards respectively;
[0319] In the case where the contactless parameters satisfy the parameter composite condition, the composite card corresponding to the at least two simulated cards is created.
[0320] Optionally, the creation module 1102 is further used to:
[0321] When the parameter formats of the same type of contactless parameters corresponding to the at least two simulated cards are consistent, it is determined that the contactless parameters meet the parameter composite condition, and the composite card corresponding to the at least two simulated cards is created. Optionally, the grouping module 1101 is further used to:
[0322] In the case where the simulated card has a fixed usage area, the simulated card is divided into a simulated card group corresponding to the fixed usage area;
[0323] In the case where the analog cards have non-fixed usage areas, the analog cards are divided into various analog card groups.
[0324] Please refer to Fig.12 , which shows a block diagram of a terminal structure provided by an exemplary embodiment of the present application. The terminal may include one or more of the following components: a processor 1201 , a memory 1202 , and an NFC component 1203 .
[0325] Optionally, the processor 1201 utilizes various interfaces and lines to connect various parts within the entire terminal, and performs various functions of the terminal and processes data by running or executing instructions, programs, code sets or instruction sets stored in the memory 1202, and calling data stored in the memory 1202.
[0326] The memory 1202 may include a RAM (Random Access Memory) or a ROM (Read-Only Memory). The memory 1202 may be used to store instructions, programs, codes, code sets or instruction sets.
[0327] The NFC component 1203 may include an NFC chip and a SE (Secure Element) component, wherein the SE component is a non-essential component. When the terminal uses HCE (Host-based Card Emulation) to perform card emulation based on the host card, the terminal does not need to use the SE component. The NFC component 1203 may be used to simulate communication between the card and the card reader, thereby realizing instruction interaction between the terminal and the card reader.
[0328] An embodiment of the present application also provides a computer-readable storage medium, which stores at least one instruction, and the at least one instruction is used to be executed by a processor to implement the instruction interaction method of the simulation card as described in the above embodiment.
[0329] The embodiment of the present application provides a computer program product or a computer program, which includes a computer instruction stored in a computer-readable storage medium. The processor of the computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the instruction interaction method of the simulation card provided in the above embodiment.
[0330] Those skilled in the art should be aware that in one or more of the above examples, the functions described in the embodiments of the present application can be implemented with hardware, software, firmware, or any combination thereof. When implemented using software, these functions can be stored in a computer-readable medium or transmitted as one or more instructions or codes on a computer-readable medium. Computer-readable media include computer storage media and communication media, wherein the communication media include any media that facilitates the transmission of a computer program from one place to another. The storage medium can be any available medium that a general or special-purpose computer can access.
[0331] The above description is only an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.
Claims
1. A command interaction method for simulating a card, characterized in that: The method comprises: The simulated cards are grouped based on the usage areas corresponding to the simulated cards to obtain at least one simulated card group, wherein different simulated card groups correspond to different usage areas; Creating a composite card corresponding to the simulated card set, wherein the composite card corresponds to at least two simulated cards in the simulated card set; Performing parameter fusion on the contactless parameters of the analog card corresponding to the composite card to obtain the target contactless parameters of the composite card; When receiving a card reading instruction sent by a card reader, an instruction interaction is performed with the card reader based on the target contactless parameter.
2. The method according to claim 1, characterized in that: The step of creating a composite card corresponding to the simulated card set includes: Obtaining the card type of the simulated card in the simulated card group; In the case that there are at least two simulated cards whose card types satisfy the type composite condition, the composite card corresponding to the at least two simulated cards is created.
3. The method according to claim 2, characterized in that The step of creating the composite card corresponding to the at least two simulated cards when the card types of the at least two simulated cards satisfy the type composite condition comprises: If there is a single access card in the simulated card group, and the access card and other non-access cards in the simulated card group meet the type composite condition, create the composite card corresponding to the access card and the other non-access cards; When there are at least two access control cards in the simulated card group, determine the target access control card among the at least two access control cards; when the target access control card and other non-access control cards in the simulated card group meet the type composite condition, create the composite card corresponding to the target access control card and the other non-access control cards.
4. The method according to claim 3, characterized in that: When there is a single access card in the simulated card group, and the access card and other non-access cards in the simulated card group meet the type composite condition, creating the composite card corresponding to the access card and the other non-access cards includes: In the case where there is a single access control card and a single first-category non-access control card in the simulated card group, creating the composite card corresponding to the access control card and the first-category non-access control card; In the case where there is a single access control card, a single first-class non-access control card and at least one second-class non-access control card in the simulated card group, creating the composite card corresponding to the access control card, the first-class non-access control card and the second-class non-access control card; In the case where there is a single access control card and at least one second type non-access control card in the simulated card group, creating the composite card corresponding to the access control card and the second type non-access control card; The first type of non-access control card has private contactless parameters, the second type of non-access control card does not have private contactless parameters, and the private contactless parameters do not support parameter fusion.
5. The method according to claim 3, characterized in that: The determining of a target access control card among the at least two access control cards comprises: Based on the current geographical location and the usage areas corresponding to the at least two access control cards respectively, a target access control card among the at least two access control cards is determined, and the current geographical location is located within the usage area corresponding to the target access control card.
6. The method according to claim 5, characterized in that When the target access control card and other non-access control cards in the simulated card group meet the type composite condition, creating the composite card corresponding to the target access control card and the other non-access control cards includes: When there is a single first-class non-access control card in the simulated card group, and the target access control card and the first-class non-access control card meet the type composite condition, creating the composite card corresponding to the target access control card and the first-class non-access control card; When there is a single first-class non-access card and at least one second-class non-access card in the simulated card group, and the target access card, the first-class non-access card and the second-class non-access card meet the type composite condition, create the composite card corresponding to the target access card, the first-class non-access card and the second-class non-access card; When there is at least one second-type non-access control card in the simulated card group and the target access control card and the second-type non-access control card meet the type composite condition, create the composite card corresponding to the target access control card and the second-type non-access control card; The first type of non-access control card has private contactless parameters, the second type of non-access control card does not have private contactless parameters, and the private contactless parameters do not support parameter fusion.
7. The method according to claim 2, characterized in that: The step of creating the composite card corresponding to the at least two simulated cards when the card types of the at least two simulated cards satisfy the type composite condition comprises: When there is a single first-class non-access control card in the simulated card group, and the first-class non-access control card and other simulated cards in the simulated card group meet the type composite condition, create the composite card corresponding to the first-class access control card and the other simulated cards; In the case where there are at least two first-class non-access control cards in the simulated card group, determining a target first-class non-access control card among the at least two first-class non-access control cards; in the case where the target first-class non-access control card and other simulated cards in the simulated card group meet the type composite condition, creating the composite card corresponding to the target first-class non-access control card and the other simulated cards; The first type of non-access control card has private contactless parameters, and the private contactless parameters do not support parameter fusion.
8. The method according to claim 7, characterized in that The determining of the target first-category non-access control card among the at least two first-category non-access control cards comprises at least one of the following methods: Determine any one of the at least two first-category non-access control cards as the target first-category non-access control card; Based on the current geographic location and the historical usage locations corresponding to the at least two first-class non-access control cards, determining a target first-class non-access control card among the at least two first-class non-access control cards, the historical usage location corresponding to the target first-class non-access control card having the highest matching degree with the current geographic location; Determining a target first-class non-access control card among the at least two first-class non-access control cards based on respective usage frequencies of the at least two first-class non-access control cards, wherein the usage frequency of the target first-class non-access control card is higher than the usage frequencies of other first-class non-access control cards; The first type non-access control card having a universal identifier among the at least two first type non-access control cards is determined as the target first type non-access control card.
9. The method according to any one of claims 4, 6 or 7, characterized in that: The privatized contactless parameters include privatized ATS parameters, and the first type of non-access control card includes a transportation card.
10. The method according to claim 2, characterized in that The step of creating the composite card corresponding to the at least two simulated cards comprises: Acquire the contactless parameters corresponding to the at least two simulation cards respectively; In the case where the contactless parameters satisfy the parameter composite condition, the composite card corresponding to the at least two simulated cards is created.
11. The method according to claim 10, characterized in that When the contactless parameter satisfies the parameter composite condition, creating the composite card corresponding to the at least two simulation cards includes: When the parameter formats of the same type of contactless parameters corresponding to the at least two simulated cards are consistent, it is determined that the contactless parameters meet the parameter composite condition, and the composite card corresponding to the at least two simulated cards is created.
12. The method according to any one of claims 1 to 11, characterized in that: The step of grouping the simulated cards based on the usage areas corresponding to the simulated cards to obtain at least one simulated card group includes: In the case where the simulated card has a fixed usage area, the simulated card is divided into a simulated card group corresponding to the fixed usage area; In the case where the analog cards have non-fixed usage areas, the analog cards are divided into various analog card groups.
13. A command interaction device for simulating a card, characterized in that: The device comprises: A grouping module, used for grouping the simulated cards based on the usage areas corresponding to the simulated cards to obtain at least one simulated card group, wherein different simulated card groups correspond to different usage areas; A creation module, used for creating a composite card corresponding to the simulated card set, wherein the composite card corresponds to at least two simulated cards in the simulated card set; A fusion module, used for performing parameter fusion on the contactless parameters of the analog card corresponding to the composite card to obtain the target contactless parameters of the composite card; The interaction module is used to perform instruction interaction with the card reader based on the target contactless parameter when receiving a card reading instruction sent by the card reader.
14. A terminal, characterized in that: The terminal includes a processor, a memory and an NFC component, wherein the memory stores at least one program code, and the at least one program code is loaded and executed by the processor to implement the instruction interaction method of the simulated card as described in any one of claims 1 to 12.
15. A 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 instruction interaction method of the simulation card as described in any one of claims 1 to 12.
16. A computer program product, characterized in that The computer program product includes computer instructions, which are stored in a computer-readable storage medium; a processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device implements the instruction interaction method of the simulation card as described in any one of claims 1 to 12.