Methods, apparatus, equipment, storage media and products for processing analog cards
By rotating the RF parameters of the simulated cards, the problem of insufficient RF parameter compatibility when activating multiple simulated cards is solved, thus improving the card swiping success rate.
Patent Information
- Application Number
- CN202311284838.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-28
- Publication Date
- 2025-10-31
- Estimated Expiration
- 2043-09-28
AI Technical Summary
When multiple analog cards are activated, existing technology struggles to guarantee the compatibility of radio frequency parameters, leading to a decrease in card swipe success rate.
By setting rotation configuration information, the radio frequency parameters of multiple analog cards are selected in rotation, and the currently selected radio frequency parameters are determined sequentially until the card reading command is successfully received.
It improves the compatibility of radio frequency parameters and the success rate of card swiping, avoiding the problem of decreased compatibility of card swiping experience when multiple simulated cards are activated at the same time.
Smart Images

Figure CN119721078B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of radio frequency technology, and in particular to a method, apparatus, device, storage medium and product for processing analog cards. Background Technology
[0002] Many mobile phones and other electronic devices now have NFC functionality. Through NFC, these devices can simulate access cards, public transport cards, subway cards, and other similar cards, allowing users to directly use them to open doors, swipe public transport cards, or swipe subway cards. Furthermore, when opening doors, swiping public transport cards, or swiping subway cards, the electronic device communicates with the analog recognition device based on RF parameters. This allows the analog recognition device to obtain the contactless parameters of the simulated card and then read the card information based on these parameters. Summary of the Invention
[0003] This application provides a method, apparatus, device, storage medium, and product for processing simulated cards, which can improve the success rate of card swiping. The technical solution is as follows:
[0004] On the one hand, a method for processing simulated cards is provided, the method comprising:
[0005] When multiple analog cards are activated, if the card reading command of the analog identification device fails to respond based on the first radio frequency parameters, rotation configuration information is determined. The rotation configuration information is used to indicate the method of rotating the radio frequency parameters of the multiple analog cards.
[0006] Based on the rotation configuration information and the radio frequency parameters of the plurality of simulated cards, the currently selected second radio frequency parameter is determined, and the card reading command of the simulated identification device is responded to based on the second radio frequency parameter until the card reading command is successfully responded to.
[0007] On the other hand, a processing apparatus for simulating cards is provided, the apparatus comprising:
[0008] The first determining module is used to determine rotation configuration information when multiple simulated cards are activated and the response to the card reading command of the simulated identification device based on the first radio frequency parameters fails. The rotation configuration information is used to indicate the method of rotating the radio frequency parameters of the multiple simulated cards.
[0009] The rotation module is used to determine the currently selected second radio frequency parameter based on the rotation configuration information and the radio frequency parameters of the plurality of simulated cards, and respond to the card reading command of the simulated identification device based on the second radio frequency parameter until the card reading command is successfully responded to.
[0010] On the other hand, an electronic device is provided, comprising one or more processors and one or more memories, wherein at least one piece of program code is stored in the one or more memories, and the at least one piece of program code is loaded and executed by the one or more processors to implement the analog card processing method as described above.
[0011] On the other hand, a computer-readable storage medium is provided, wherein at least one piece of program code is stored in the storage medium, the at least one piece of program code being loaded and executed by a processor to implement the above-described method for processing the simulated card.
[0012] On the other hand, a computer program product is provided, which stores at least one piece of program code for execution by a processor to implement the above-described method for processing the simulated card.
[0013] In this embodiment, rotation configuration information is set to rotate the radio frequency parameters of multiple simulated cards. In the scenario where multiple simulated cards are activated, the rotation configuration information can be used to rotate the radio frequency parameters of the simulated cards to ensure successful card swiping. This not only improves the compatibility of radio frequency parameters but also increases the success rate of card swiping. Attached Figure Description
[0014] Figure 1 A schematic diagram illustrating the implementation environment of a method for processing simulated cards, as shown in an exemplary embodiment of this application, is provided.
[0015] Figure 2 A flowchart illustrating a method for processing a simulated card, as shown in an exemplary embodiment of this application, is provided.
[0016] Figure 3 A flowchart illustrating a method for processing a simulated card, as shown in an exemplary embodiment of this application, is provided.
[0017] Figure 4 A schematic diagram illustrating an anomaly detection mechanism for a simulated card, as shown in an exemplary embodiment of this application, is presented.
[0018] Figure 5 A flowchart illustrating a method for processing a simulated card, as shown in an exemplary embodiment of this application, is provided.
[0019] Figure 6 A schematic diagram illustrating the rotating radio frequency parameters of an analog card in an exemplary embodiment of this application is shown;
[0020] Figure 7 A flowchart illustrating a method for processing a simulated card, as shown in an exemplary embodiment of this application, is provided.
[0021] Figure 8 A flowchart illustrating a method for processing a simulated card, as shown in an exemplary embodiment of this application, is provided.
[0022] Figure 9 A block diagram of a processing apparatus for an analog card is shown in an exemplary embodiment of this application;
[0023] Figure 10 A block diagram of an electronic device illustrated in an exemplary embodiment of this application is shown. Detailed Implementation
[0024] To make the objectives, technical solutions, and advantages of this application clearer, the embodiments of this application will be described in further detail below with reference to the accompanying drawings.
[0025] In this article, "multiple" refers to two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, or B alone. The character " / " generally indicates that the preceding and following related objects have an "or" relationship.
[0026] It should be noted that all information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data used for analysis, stored data, displayed data, etc.), and signals involved in this application have been authorized by the user or fully authorized by all parties, and the collection, use, and processing of related data must comply with the relevant laws, regulations, and standards of the relevant countries and regions. For example, the analog cards, contactless parameters of the analog cards, fusion parameters (first fusion parameters and / or second fusion parameters), and radio frequency parameters involved in this application were all obtained with full authorization.
[0027] Please refer to Figure 1 This illustration shows a schematic diagram of the implementation environment for a method of processing simulated cards according to an exemplary embodiment of this application. See also... Figure 1 The implementation environment includes a simulation identification device 101 and an electronic device 102. The electronic device 102 has NFC functionality and can simulate a card through NFC. The simulation identification device 101 can communicate with the simulated card of the electronic device 102 to read the card information stored in the simulated card, thereby realizing the card swiping function.
[0028] This application embodiment supports the simultaneous activation of multiple simulated cards. The process is as follows: the electronic device 102 fuses the contactless parameters of multiple simulated cards to obtain a first fused parameter, and sets the contactless parameters of multiple simulated cards to the first fused parameter, thereby achieving the purpose of simultaneously activating multiple simulated cards. In this application embodiment, the electronic device 102 activates multiple simulated cards simultaneously. Thus, when a user uses a simulated card, the simulated card recognition device 101 sends a card reading command to select the appropriate simulated card, without the need for card activation or card switching, improving the user's card swiping experience.
[0029] In some embodiments, when multiple simulated cards are activated, when the simulated identification device 101 reads a simulated card, the simulated identification device 101 sends a card reading command to the electronic device 102. The electronic device 102 receives the card reading command sent by the simulated identification device, selects a first radio frequency parameter from the radio frequency parameters of the multiple simulated cards, and sends a card reading response to the simulated identification device 101 based on the first radio frequency parameter. The card reading response carries a first fusion parameter. If the response to the card reading command of the simulated identification device based on the first radio frequency parameter fails, the radio frequency parameter (second radio frequency parameter) can be reselected using the method provided in the embodiments of this application, and the card reading command can be responded to based on the second radio frequency parameter until the response to the card reading command is successful. This ensures that the compatibility of radio frequency parameters is greatly improved when multiple simulated cards are activated at the same time, and avoids the situation where the card swiping experience compatibility decreases when multiple simulated cards are activated at the same time.
[0030] In some embodiments, the contactless parameters of the simulated card include the Answer To Request (Type A, ATQA) response, UID, Select AcKnowledge (Type A, SAK) response, and Answer To Select (ATS) response. Radio frequency (RF) parameters include phase, load modulation amplitude (LMA), and frame delay time (FDT). RF parameters also include overshoot protection parameters, guard time, and clock parameters. Multiple simulated cards include at least one type of simulated card such as access control cards, public transport cards, subway cards, digital car keys, electronic ID cards, campus cards, digital RMB, electronic driver's licenses, or electronic marriage certificates. The simulated identification device 101 can be a card reader or a reader-reader; the electronic device 102 can be a mobile phone or a smart wearable device (smart bracelet or smartwatch), etc.
[0031] Please refer to Figure 2 The diagram illustrates a flowchart of a method for processing a simulated card, as shown in an exemplary embodiment of this application. The method includes:
[0032] Step 201: When multiple analog cards are activated, if the card reading command of the analog identification device fails to respond based on the first radio frequency parameters, determine the rotation configuration information. The rotation configuration information is used to indicate the method of rotating the radio frequency parameters of multiple analog cards.
[0033] The radio frequency (RF) parameters of the simulated card are the parameters used by the simulated card to communicate with the simulated identification device via radio frequency. Multiple simulated cards include at least one type of simulated card such as access control cards, bus cards, subway cards, digital car keys, electronic ID cards, campus cards, digital RMB, electronic driver's licenses, or electronic marriage certificates. RF parameters include phase, LMA, and FDT, and also include overshoot protection parameters, Guard Time, and clock parameters. In some embodiments, the rotation configuration information includes the rotation order of the multiple simulated card types. That is, when responding to the reading command of the simulated identification device based on the first RF parameter fails, the RF parameters of different types of simulated cards are selected sequentially to respond to the reading command of the simulated identification device based on the type rotation order. For example, if the multiple simulated cards include access control cards and bus cards, and the rotation configuration information includes an access control card-bus card rotation order, then when responding to the reading command of the simulated identification device based on the first RF parameter fails, the RF parameters of the access control card are used first; when responding to the reading command of the simulated identification device based on the access control card's RF parameters fail, the RF parameters of the bus card are used then. When multiple analog cards of the same type are included, the rotation configuration information also includes the rotation order of the multiple analog cards of the same type. For example, if multiple analog cards include access card 1, access card 2, bus card 1, and bus card 2, then the rotation configuration information includes access card-bus card, and access card 1-access card 2, bus card 1-bus card 2. In this case, if the response to the analog recognition device's card reading command based on the first radio frequency parameter fails, the radio frequency parameter of access card 1 is used first to respond to the analog recognition device's card reading command. If the response to the analog recognition device's card reading command based on the radio frequency parameter of access card 1 fails, then the radio frequency parameter of bus card 1 is used. If the response to the analog recognition device's card reading command based on the radio frequency parameter of bus card 1 fails, then the radio frequency parameter of access card 2 is used. If the response to the analog recognition device's card reading command based on the radio frequency parameter of access card 2 fails, then the radio frequency parameter of bus card 2 is used. In the embodiments of this application, the electronic device can switch a set of radio frequency parameters each time, that is, each time the radio frequency parameters are switched, the phase, LMA and FDT are switched together.
[0034] In other embodiments, the radio frequency (RF) parameters include multiple RF sub-parameters, such as phase, LMA, and FDT. The rotation configuration information includes the rotation order of multiple RF sub-parameters for multiple analog cards. For example, if the multiple analog cards include access cards and bus cards, the rotation configuration information includes the phase of the access card, the phase of the bus card, the LMA of the access card, the LMA of the bus card, the FDT of the access card, and the FDT of the bus card. When responding to the card reading command of the analog identification device fails based on the first RF parameter, only the phase in the first RF parameter is changed, and the phase in the first RF parameter is modified to the phase of the access card to respond to the card reading command of the analog identification device. When it fails again, the phase in the first RF parameter is modified to the phase of the bus card to respond to the card reading command of the analog identification device. When it fails again, the LMA in the first RF parameter is modified to the LMA of the access card to respond to the card reading command of the analog identification device, and so on, until the card reading command is successfully responded to.
[0035] For example, if multiple analog cards include access cards and digital car keys, the rotation configuration information includes the phase of the access card - the phase of the digital car key - the LMA of the access card - the LMA of the digital car key - the FDT of the access card - the FDT of the digital car key. The specific process of selecting radio frequency parameters is the same as the process of selecting radio frequency parameters based on access cards and bus cards, which will not be elaborated here.
[0036] For example, if multiple analog cards include a digital car key and a public transport card, the rotation configuration information includes the phase of the digital car key - the phase of the public transport card - the LMA of the digital car key - the LMA of the public transport card - the FDT of the digital car key - the FDT of the public transport card. The specific process of selecting radio frequency parameters differs from the process of selecting radio frequency parameters based on access cards and public transport cards, and will not be elaborated here. In this embodiment, the process of switching radio frequency parameters by the electronic device is not limited to access cards and public transport cards; it can also be a combination of access cards and digital car keys, or digital car keys and public transport cards. In this embodiment, the electronic device can switch one radio frequency sub-parameter at a time, thereby adjusting the radio frequency parameters in a fine-grained manner.
[0037] Step 202: Based on the rotation configuration information and the radio frequency parameters of multiple simulated cards, determine the second radio frequency parameters in sequence, and respond to the card reading command of the simulated identification device based on the second radio frequency parameters until the card reading command is successfully responded to.
[0038] Based on the rotation configuration information and the radio frequency parameters of multiple simulated cards, a second radio frequency parameter is determined, and the card reading command of the simulated identification device is responded to based on the second radio frequency parameter. When the card reading command of the simulated identification device is successfully responded to based on the second radio frequency parameter, the subsequent interaction process between the simulated identification device and the electronic device continues. When the card reading command of the simulated identification device fails to be responded to based on the second radio frequency parameter, the second radio frequency parameter is re-determined based on the rotation configuration information and the radio frequency parameters of multiple simulated cards, and the card reading command of the simulated identification device is responded to based on the re-determined second radio frequency parameter until the card reading command is successfully responded to.
[0039] In this embodiment, rotation configuration information is set to rotate the radio frequency parameters of multiple simulated cards. In the scenario where multiple simulated cards are activated, the rotation configuration information can be used to rotate the radio frequency parameters of the simulated cards to ensure successful card swiping. This not only improves the compatibility of radio frequency parameters but also increases the success rate of card swiping.
[0040] Please refer to Figure 3 The diagram illustrates a flowchart of a method for processing a simulated card, as shown in an exemplary embodiment of this application. The method includes:
[0041] Step 301: The electronic device determines the contactless parameters of the multiple analog cards to be activated.
[0042] For any simulated card, its contactless parameters include the Request To Request (Type A, ATQA) response, UID, Select AcKnowledge (Type A, SAK) response, and Answer To Select (ATS) response. ATQA is the electronic device's response to the simulated identification device's Request To Request (Type A, REQA) or WUPA command. ATQA can be 0400 or 0800, and the simulated identification device can accept and recognize both types of responses. UID is the simulated card's ID number. For Type 1 simulated cards, which are identified by UID, the simulated identification device uses the UID as the unique information to identify the simulated card. That is, if the simulated identification device determines that the simulated card's UID is correct, then the simulated card is successfully identified. For example, if the Type 1 simulated card is an access control card, then if the access control card's UID is correct, the door can be opened. For the second type of analog card, which is a card that is not identified by its UID, the analog identification device generally does not pay attention to the UID of the analog card; for example, the second type of analog card can be a Central Processing Unit (CPU) card; for example, the second type of analog card can be a bus card, subway card, digital car key, electronic ID card, campus card, digital RMB, electronic driver's license, or electronic marriage certificate, etc.
[0043] When an analog card reader identifies an analog card, it sends a Select command to the electronic device. The SAK (Select Response) is the electronic device's response to this Select command. SAKs typically distinguish between Type 1 and Type 2 analog cards. Type 1 analog cards use a 0x08 parameter for their SAK, while Type 2 analog cards use a 0x20 parameter. When the analog card reader receives a 0x08 SAK, it sends relevant instructions according to the Mifare protocol; when it receives a 0x02 SAK, it sends relevant instructions according to the ISO 14443 protocol.
[0044] After recognizing the analog card, the analog identification device sends a RATS command to the electronic device. The ATS is the electronic device's response to the RATS command, containing latency parameters, communication rate parameters, and the analog card's private information. The latency parameter informs the analog identification device how long it will take for the electronic device to respond after receiving the command; in other words, the maximum waiting time the analog identification device must wait. The communication rate parameter can be 106kbps, 212kbps, 424kbps, or 848kbps. The analog card's private information may include its description. The RATS command is sent by the analog identification device corresponding to the second type of analog card, while the analog identification device corresponding to the first type of RF card typically does not send this command.
[0045] Step 302: The electronic device fuses the contactless parameters of multiple analog cards to obtain the first fused parameter, and sets the contactless parameters of multiple radio frequency parameters as the first fused parameter.
[0046] The first fusion parameter also includes ATQA, UID, SAK, and ATS. The ATQA included in the first fusion parameter can be 0x0400 or 0x0800. In this embodiment, ATQA of 0x0400 is used as an example. When the first type of simulated card is included among the multiple simulated cards, the first type of simulated card is a card identified by its UID; for example, if the first type of simulated card is an access control card, then the UID included in the first fusion parameter can be the UID of the first type of simulated card. When the first type of simulated card is not included among the multiple simulated cards, the UID included in the first fusion parameter can be the UID of any of the multiple simulated cards. The SAK included in the first fusion parameter can be 0x20 or 0x08. In this embodiment, SAK of 0x20 is used as an example. The ATS included in the first fusion parameter can be an ATS determined based on the ATS of multiple analog cards, and the determined ATS is adapted to multiple analog cards; for example, if the ATS includes a latency parameter, then the electronic device determines the maximum latency parameter based on the latency parameters of multiple analog cards, and uses the maximum latency parameter as the ATS in the first fusion parameter; as another example, if the ATS includes a communication rate parameter, then the electronic device determines the minimum communication rate parameter based on the communication rate parameters of multiple analog cards, and uses the minimum communication rate parameter as the ATS in the first fusion parameter.
[0047] In some embodiments, where some analog cards have ATS and some analog cards do not have ATS, when fusing the indirect parameters of multiple analog cards to obtain the first fusion parameter, the ATS of the analog cards with ATS can be fused to obtain the ATS included in the first fusion parameter. However, if none of the multiple analog cards have ATS, the ATS of the multiple analog cards may not need to be fused.
[0048] Step 303: When the electronic device receives a card reading instruction from the analog identification device, it selects the first analog card from the radio frequency parameters of multiple analog cards.
[0049] The card reading command can be REQA or WUPA; the step of the electronic device selecting the first radio frequency parameter from multiple analog cards can be implemented in any of the following ways:
[0050] The first implementation method is as follows: The electronic device selects the radio frequency parameters of the default analog card from the radio frequency parameters of multiple analog cards to obtain the first radio frequency parameters.
[0051] The default simulated card is set by the electronic device when multiple simulated cards are activated simultaneously, and the default simulated card can be modified by the user; for example, if multiple simulated cards include access cards and public transport cards, the electronic device can set the access card as the default simulated card. In this embodiment, the radio frequency parameters of the default simulated card are directly obtained, which simplifies the operation and improves the efficiency of obtaining the radio frequency parameters of the simulated card.
[0052] The second implementation method is as follows: The electronic device obtains its current location, selects the first analog card from multiple analog cards based on the current location, obtains the radio frequency parameters of the first analog card to obtain the first radio frequency parameters, and the first analog card is the analog card with the highest probability of being used at the current location.
[0053] The electronic device determines the probability of multiple simulated cards being used at its current location, and selects a first simulated card from among them. In some embodiments, the electronic device determines the location corresponding to its current location, and based on that location, determines the probability of multiple simulated cards being used at that location from the correspondence between location and usage probability. For example, the multiple simulated cards include access cards and bus cards; if the location corresponding to the current location is a residential community, then the access card has the highest probability of being used, and the electronic device acquires the radio frequency parameters of the access card. As another example, if the multiple simulated cards include access cards and bus cards; if the location corresponding to the current location is a bus stop, then the bus card has the highest probability of being used, and the electronic device acquires the radio frequency parameters of the bus card.
[0054] In this embodiment, the electronic device selects the radio frequency parameters of a simulated card based on the probability that multiple simulated cards are used at the current location. The selected simulated card is the one that the user is most likely to use at the current location, thus improving the accuracy of the determined first radio frequency parameters and thereby increasing the success rate of responding to the card reading command of the simulated identification device based on the first radio frequency parameters.
[0055] The third implementation method is as follows: The electronic device obtains the frequencies used by multiple analog cards, selects the second analog card with the highest usage frequency from the multiple analog cards based on the frequencies used by the multiple analog cards, and obtains the radio frequency parameters of the second analog card to obtain the first radio frequency parameters.
[0056] In this embodiment, the electronic device selects the radio frequency parameters of the simulated card based on the frequency at which multiple simulated cards are used. Since the selected simulated card is one that the user frequently uses, the accuracy of the determined first radio frequency parameters can be improved, thereby increasing the success rate of responding to the card reading command of the simulated identification device based on the first radio frequency parameters.
[0057] The fourth implementation method is as follows: The electronic device obtains the third analog card that was used last time from among multiple analog cards, and obtains the radio frequency parameters of the third analog card to obtain the first radio frequency parameters.
[0058] Step 304: The electronic device sends a card reading response to the analog identification device based on the first radio frequency parameters, the card reading response carrying the first fusion parameters.
[0059] The card reading response can be ATQA; that is, this step can be: the electronic device sends ATQA to the analog identification device based on the first radio frequency parameters, and the ATQA carries the first fusion parameters.
[0060] Step 305: If the number of times the electronic device responds to the card reading command based on the first radio frequency parameter reaches a preset number but still does not receive the card reading command, it is determined that the response to the card reading command of the analog identification device based on the first radio frequency parameter has failed.
[0061] The preset number of times can be set and changed as needed; for example, the preset number of times can be 3, 4, or 5 times. In this embodiment, taking 3 preset times as an example, in step 304, the electronic device sends a card reading response to the analog recognition device. When the analog recognition device does not receive a card reading response (ATQA), the analog recognition device continues to send a card reading command (REQA or WUPA) to the electronic device. At this time, the electronic device continues to send a card reading response (ATQA) to the analog recognition device based on the first radio frequency parameters. When the number of times the electronic device sends a card reading response (ATQA) to the analog recognition device based on the first radio frequency parameters reaches 3, the electronic device determines that the card reading command based on the first radio frequency parameters has failed. Please refer to [reference needed] for this process. Figure 4 .
[0062] In this embodiment, the electronic device triggers the rotation of radio frequency parameters through an anomaly detection mechanism, which can greatly improve the compatibility of radio frequency parameters when multiple simulated cards are activated at the same time, and avoid the situation where the card swiping experience compatibility decreases when multiple simulated cards are activated at the same time.
[0063] Step 306: The electronic device determines the rotation configuration information, which includes the rotation order of multiple analog card types. The radio frequency parameters of the analog card are the parameters used by the analog card to conduct radio frequency communication with the analog identification device.
[0064] For example, multiple simulated cards include access control cards and public transport cards, and the rotation configuration information includes the rotation order of access control cards and public transport cards as access control card - public transport card.
[0065] Step 307: The electronic device determines the first type of the analog card currently rotated to based on the type rotation order.
[0066] When an electronic device rotates its radio frequency parameters for the first time, the first type selected in the rotation sequence is the first type. For example, if multiple analog cards include access cards and bus cards, and the rotation configuration information includes the rotation sequence of access cards and bus cards as access cards-bus cards, then the electronic device will select access cards when rotating its radio frequency parameters for the first time.
[0067] When the electronic device is not rotating its radio frequency parameters for the first time, it determines the first type of the analog card to be rotated based on the rotation order and the type of the analog card rotated in the previous rotation. For example, if multiple analog cards include access cards and bus cards, and the rotation configuration information includes the rotation order of access cards and bus cards as access cards-bus cards, then the electronic device will select bus cards when rotating its radio frequency parameters for the second time.
[0068] Step 308: The electronic device determines the radio frequency parameters of the first type of analog card from the radio frequency parameters of multiple analog cards, and obtains the second radio frequency parameters.
[0069] When multiple simulated cards include one simulated card of type 1, the electronic device directly obtains the radio frequency (RF) parameters of the simulated card of type 1 to obtain the second RF parameters. When multiple simulated cards include multiple simulated cards of type 1, the rotation configuration information also includes the rotation order of multiple simulated cards of the same type, i.e., the rotation configuration information also includes the rotation order of multiple simulated cards of type 1. The electronic device then determines the multiple simulated cards of type 1 from the multiple simulated cards, and based on the rotation order of the multiple simulated cards of type 1, determines the currently rotated simulated card; it then determines the RF parameters of the currently rotated simulated card to obtain the second RF parameters. For example, if multiple simulated cards include access card 1, access card 2, bus card 1, and bus card 2; then the rotation configuration information includes access card 1 - bus card 1 - access card 2 - bus card 2; in this step, the electronic device obtains the RF parameters of access card 1 to obtain the second RF parameters.
[0070] Step 309: The electronic device sends a card reading response to the analog identification device based on the second radio frequency parameters. The card reading response carries the first fusion parameters.
[0071] When the electronic device successfully responds to the card reading command of the analog identification device based on the second radio frequency parameters, the electronic device and the analog identification device will perform subsequent card reading interactions; when the electronic device fails to respond to the card reading command of the analog identification device based on the second radio frequency parameters, steps 307-309 are executed again to redetermine the second radio frequency parameters, and a card reading response is sent to the analog identification device based on the redetermined second radio frequency parameters until the card reading command of the analog identification device is successfully responded to.
[0072] In this embodiment, rotation configuration information is set, which includes the rotation order of multiple simulated card types. In scenarios where multiple simulated cards are activated, the card swiping success can be ensured by selecting the radio frequency parameters of different types of rotating simulated cards based on the rotation order of multiple simulated card types. This not only improves the compatibility of radio frequency parameters but also increases the success rate of card swiping.
[0073] Please refer to Figure 5The diagram illustrates a flowchart of a method for processing a simulated card, as shown in an exemplary embodiment of this application. The method includes:
[0074] Step 501: The electronic device determines the contactless parameters of the multiple analog cards to be activated.
[0075] In some embodiments, this step is the same as step 301, and will not be described again here.
[0076] Step 502: The electronic device fuses the contactless parameters of multiple analog cards to obtain the first fused parameter, and sets the contactless parameters of multiple radio frequency parameters as the first fused parameter.
[0077] In some embodiments, this step is the same as step 302, and will not be described again here.
[0078] Step 503: When the electronic device receives a card reading instruction from the analog identification device, it selects the first analog card from the radio frequency parameters of multiple analog cards.
[0079] In some embodiments, this step is the same as step 303, and will not be described again here.
[0080] Step 504: The electronic device sends a card reading response to the analog identification device based on the first radio frequency parameters, the card reading response carrying the first fusion parameters.
[0081] In some embodiments, this step is the same as step 304, and will not be described again here.
[0082] Step 505: If the number of times the electronic device responds to the card reading command based on the first radio frequency parameter reaches a preset number but still does not receive the card reading command, it is determined that the response to the card reading command of the analog identification device based on the first radio frequency parameter has failed.
[0083] In some embodiments, this step is the same as step 305, and will not be described again here.
[0084] Step 506: The electronic device determines the rotation configuration information. The radio frequency parameters include multiple radio frequency sub-parameters, and the rotation configuration information includes the rotation order of multiple radio frequency sub-parameters of multiple analog cards.
[0085] The radio frequency (RF) parameters of a simulated card are those used for RF communication between the simulated card and the simulated identification device. RF parameters include multiple sub-parameters, such as phase, LMA, and FDT. The rotation configuration information includes the rotation order of multiple RF sub-parameters for multiple simulated cards. If multiple simulated cards include access control cards and bus cards, the rotation configuration information includes the phase of the access control card, the phase of the bus card, the LMA of the access control card, the LMA of the bus card, the FDT of the access control card, and the FDT of the bus card. Alternatively, RF parameters may include phase, LMA, FDT, overshoot protection parameters, Guard Time, and clock parameters. If multiple simulated cards include access control cards and bus cards, the rotation configuration information includes the phase of the access control card, the phase of the bus card, the LMA of the access control card, the LMA of the bus card, the FDT of the access control card, the FDT of the bus card, the overshoot protection parameter of the access control card, the overshoot protection parameter of the bus card, the Guard Time of the access control card, the Guard Time of the bus card, the clock parameter of the access control card, and the clock parameter of the bus card.
[0086] Step 507: The electronic device determines the first radio frequency sub-parameter of the currently rotated analog card based on the rotation order of multiple radio frequency sub-parameters of multiple analog cards.
[0087] When the electronic device rotates its radio frequency (RF) parameters for the first time, it selects the first RF sub-parameter from the rotation order of multiple RF sub-parameters. When the electronic device is rotating its RF parameters again, it determines the first RF sub-parameter of the currently rotated analog card based on the rotation order of the multiple RF sub-parameters and the RF sub-parameter selected in the previous rotation; for example, please refer to... Figure 6 The rotation configuration information includes phase 1 of the access card - phase 1 of the bus card - LMA1 of the access card - LMA1 of the bus card - FDT1 of the access card - FDT1 of the bus card, phase 2 of the access card - phase 2 of the bus card - LMA2 of the access card - LMA2 of the bus card. Then, the electronic device first determines the first radio frequency sub-parameter as phase 1 of the access card, the second time it determines the first radio frequency sub-parameter as phase 1 of the bus card, the third time it determines the first radio frequency sub-parameter as LMA1 of the access card, the fourth time it determines the first radio frequency sub-parameter as LMA1 of the bus card, and so on.
[0088] Step 508: The electronic device modifies the second radio frequency sub-parameter in the third radio frequency parameter to the first radio frequency sub-parameter to obtain the second radio frequency parameter. The third radio frequency parameter is the radio frequency parameter used in the previous response to the card reading command. The first radio frequency sub-parameter and the second radio frequency sub-parameter are radio frequency sub-parameters of the same type.
[0089] For example, if the second RF sub-parameter is phase, the electronic device modifies the phase in the third RF parameter to the phase determined in step 507, while other RF sub-parameters in the third RF parameter, such as LMA, FDT, overshoot protection parameter, Guard Time, and clock parameter, remain unchanged. Similarly, if the second RF sub-parameter is LMA, the electronic device modifies the LMA in the third RF parameter to the LMA determined in step 507, while other RF sub-parameters in the third RF parameter, such as phase, FDT, overshoot protection parameter, Guard Time, and clock parameter, remain unchanged. Again, if the second RF sub-parameter is FDT, the electronic device modifies the FDT in the third RF parameter to the FDT determined in step 507, while other RF sub-parameters in the third RF parameter, such as phase, LMA, overshoot protection parameter, Guard Time, and clock parameter, remain unchanged. Finally, if the second RF sub-parameter is an overshoot protection parameter, the electronic device modifies the overshoot protection parameter in the third RF parameter to the overshoot protection parameter determined in step 507, while other RF sub-parameters in the third RF parameter, such as phase, LMA, FDT, Guard Time, and clock parameter, remain unchanged. For example, if the second RF sub-parameter is Guard Time, the electronic device will modify the Guard Time in the third RF parameter to the Guard Time determined in step 507, while other RF sub-parameters in the third RF parameter, such as phase, LMA, FDT, overshoot protection parameter, and clock parameter, will remain unchanged. Similarly, if the second RF sub-parameter is a clock parameter, the electronic device will modify the clock parameter in the third RF parameter to the clock parameter determined in step 507, while other RF sub-parameters in the third RF parameter, such as phase, LMA, FDT, overshoot protection parameter, and Guard Time, will remain unchanged.
[0090] In this embodiment, not only can parameters such as phase, LMA, and FDT be modified, but also overshoot protection parameters, Guard Time, and clock parameters can be modified, thereby maximizing the ability of electronic devices to successfully respond to card reading requests from analog identification devices and improving the compatibility of radio frequency parameters.
[0091] When the electronic device selects the second radio frequency parameter for the first time, the third radio frequency parameter becomes the first radio frequency parameter; when the electronic device selects the second radio frequency parameter for the second time, the third radio frequency parameter becomes the previously selected second radio frequency parameter. In some embodiments, the electronic device can also change the first radio frequency sub-parameter based on the first radio frequency parameter; this process can be: the electronic device modifies the third radio frequency sub-parameter in the first radio frequency parameter to the first radio frequency sub-parameter.
[0092] Step 509: The electronic device sends a card reading response to the analog identification device based on the second radio frequency parameters. The card reading response carries the first fusion parameters.
[0093] When the electronic device successfully responds to the card reading command of the analog identification device based on the second radio frequency parameters, the electronic device and the analog identification device will perform subsequent card reading interactions; when the electronic device fails to respond to the card reading command of the analog identification device based on the second radio frequency parameters, steps 407-409 are executed again to redetermine the second radio frequency parameters, and a card reading response is sent to the analog identification device based on the redetermined second radio frequency parameters until the card reading command of the analog identification device is successfully responded to.
[0094] In this embodiment, rotation configuration information is set, which includes the rotation order of multiple radio frequency sub-parameters. In scenarios where multiple simulated cards are activated, the card swiping success can be ensured by selecting different radio frequency sub-parameters based on the rotation order of multiple radio frequency sub-parameters. This not only improves the compatibility of radio frequency parameters but also increases the success rate of card swiping.
[0095] Please refer to Figure 7 The diagram illustrates a flowchart of a method for processing a simulated card, as shown in an exemplary embodiment of this application. The method includes:
[0096] Step 701: The electronic device determines the contactless parameters of the multiple analog cards to be activated.
[0097] In some embodiments, this step is the same as step 301, and will not be described again here.
[0098] Step 702: The electronic device fuses the contactless parameters of multiple analog cards to obtain the first fused parameter, and sets the contactless parameters of multiple radio frequency parameters as the first fused parameter.
[0099] In some embodiments, this step is the same as step 302, and will not be described again here.
[0100] Step 703: When the electronic device receives a card reading instruction from the analog identification device, it selects the first analog card from the radio frequency parameters of multiple analog cards.
[0101] In some embodiments, this step is the same as step 303, and will not be described again here.
[0102] Step 704: The electronic device sends a card reading response to the analog identification device based on the first radio frequency parameters, the card reading response carrying the first fusion parameters.
[0103] In some embodiments, this step is the same as step 304, and will not be described again here.
[0104] Step 705: If the number of times the electronic device responds to the card reading command based on the first radio frequency parameter reaches a preset number but still does not receive the card reading command, it is determined that the response to the card reading command of the analog identification device based on the first radio frequency parameter has failed.
[0105] In some embodiments, this step is the same as step 305, and will not be described again here.
[0106] Step 706: The electronic device re-fused the non-contact parameters of multiple analog cards to obtain the second fused parameters.
[0107] The second fusion parameters include ATQA, UID, SAK, and ATS. In the first implementation, when the electronic device first fuses the contactless parameters of multiple analog cards, it uses 0x0400 as the ATQA. When re-fusing the contactless parameters of multiple analog cards, it uses 0x0800 as the ATQA, while the fusion methods for the UID, SAK, and ATS of the multiple analog cards remain unchanged. This achieves the re-fusion of the contactless parameters of multiple analog cards by changing the ATQA, thus eliminating the problem of failure to respond to the card reading command of the analog recognition device due to different ATQA selections.
[0108] In the second implementation, when the electronic device first fuses the contactless parameters of multiple analog cards, it uses 0x20 as the SAK. When re-fusing the contactless parameters of multiple analog cards, it uses 0x08 as the SAK, while the fusion methods of the ATQA, UID, and ATS of the multiple analog cards remain unchanged. This achieves the re-fusion of the contactless parameters of multiple analog cards by changing the SAK, thus eliminating the problem of failure to respond to the card reading command of the analog recognition device due to different SAK selection.
[0109] For the third implementation method, the electronic device can also combine the above two implementation methods to re-fuse the contactless parameters of multiple analog cards. The process is as follows: when the electronic device first fuses the contactless parameters of multiple analog cards, it uses 0x0400 as ATQA and 0x20 as SAK. When re-fusing the contactless parameters of multiple analog cards, it uses 0x0800 as ATQA and 0x08 as SAK, while the fusion method of the UID and ATS of multiple analog cards remains unchanged. This achieves the re-fusion of the contactless parameters of multiple analog cards by changing the ATQA and SAK, so as to make the greatest possible change to solve the problem of failure to respond to the card reading command of the analog recognition device.
[0110] Step 707: The electronic device sends a card reading response to the analog identification device based on the first radio frequency parameters, the card reading response carrying the second fusion parameters.
[0111] In some embodiments, when the electronic device successfully responds to the card reading command of the analog identification device based on the first radio frequency parameters, the electronic device and the analog identification device perform subsequent card reading interactions; when the electronic device fails to respond to the card reading command of the analog identification device based on the first radio frequency parameters, the electronic device executes steps 706-707, re-fusing the contactless parameters of multiple analog cards, and sending a card reading response to the analog identification device based on the first radio frequency parameters. The card reading response carries the second fused parameters obtained by the re-fusion until the card reading command of the analog identification device based on the first radio frequency parameters is successfully responded to.
[0112] In this embodiment of the application, when the card reading command of the analog identification device fails to respond based on the first radio frequency parameters, the contactless parameters of multiple analog cards are re-fused, thereby eliminating the possibility of response failure due to incompatibility of contactless parameters.
[0113] Please refer to Figure 8 The diagram illustrates a flowchart of a method for processing a simulated card, as shown in an exemplary embodiment of this application. The method includes:
[0114] Step 801: The electronic device determines the contactless parameters of the multiple analog cards to be activated.
[0115] In some embodiments, this step is the same as step 301, and will not be described again here.
[0116] Step 802: The electronic device fuses the contactless parameters of multiple analog cards to obtain the first fused parameter, and sets the contactless parameters of multiple radio frequency parameters as the first fused parameter.
[0117] In some embodiments, this step is the same as step 302, and will not be described again here.
[0118] Step 803: When the electronic device receives a card reading instruction from the analog identification device, it selects the first analog card from the radio frequency parameters of multiple analog cards.
[0119] In some embodiments, this step is the same as step 303, and will not be described again here.
[0120] Step 804: The electronic device sends a card reading response to the analog identification device based on the first radio frequency parameters, the card reading response carrying the first fusion parameters.
[0121] In some embodiments, this step is the same as step 304, and will not be described again here.
[0122] Step 805: If the number of times the electronic device responds to the card reading command based on the first radio frequency parameter reaches a preset number but still does not receive the card reading command, it is determined that the response to the card reading command of the analog identification device based on the first radio frequency parameter has failed.
[0123] In some embodiments, this step is the same as step 305, and will not be described again here.
[0124] Step 806: The electronic device re-fused the non-contact parameters of multiple analog cards to obtain the second fused parameters.
[0125] In some embodiments, this step is the same as step 706, and will not be described again here.
[0126] Step 807: The electronic device determines the rotation configuration information, which indicates the method of rotating and selecting the radio frequency parameters of multiple analog cards. The radio frequency parameters of the analog cards are the parameters used by the analog cards to conduct radio frequency communication with the analog recognition device.
[0127] In some embodiments, this step is the same as step 306; or, this step is the same as step 506, and will not be described again here.
[0128] Step 808: The electronic device determines the second radio frequency parameters based on the rotation configuration information and the radio frequency parameters of multiple analog cards.
[0129] In some embodiments, this step can be implemented through steps 307-308; or, this step can be implemented through steps 507-508, which will not be described in detail here.
[0130] Step 809: The electronic device sends a card reading response to the analog identification device based on the second radio frequency parameters. The card reading response carries the second fusion parameters.
[0131] When the electronic device successfully responds to the card reading command of the analog identification device based on the second radio frequency parameters, the electronic device and the analog identification device perform subsequent card reading interactions; when the electronic device fails to respond to the card reading command of the analog identification device based on the second radio frequency parameters, steps 807-809 are executed again to redetermine the second fusion parameters and the second radio frequency parameters, and a card reading response carrying the redetermined second fusion parameters is sent to the analog identification device based on the redetermined second radio frequency parameters until the card reading command of the analog identification device is successfully responded to.
[0132] In this embodiment, when the response to the card reading command of the analog identification device fails based on the first radio frequency parameters, the contactless parameters of multiple analog cards are re-fused and the second fusion parameter is re-determined, thereby making changes from two dimensions to successfully respond to the card reading command of the analog identification device as soon as possible, thus improving the card swiping experience.
[0133] Please refer to Figure 9 The diagram illustrates a block diagram of a processing apparatus for a simulated card, as shown in an exemplary embodiment of this application. The apparatus includes:
[0134] The first determining module 901 is used to determine rotation configuration information when multiple analog cards are activated and the response to the card reading command of the analog identification device based on the first radio frequency parameters fails. The rotation configuration information is used to indicate the method of rotating the radio frequency parameters of multiple analog cards.
[0135] The rotation module 902 is used to determine the currently selected second radio frequency parameter based on the rotation configuration information and the radio frequency parameters of multiple analog cards, and respond to the card reading command of the analog identification device based on the second radio frequency parameter until the card reading command is successfully responded to.
[0136] In some embodiments, the rotation configuration information includes a rotation order of multiple analog card types. The rotation module 902 is used to determine the first type of the analog card currently rotated based on the rotation order; and to determine the radio frequency parameters of the first type of analog card from the radio frequency parameters of the multiple analog cards to obtain the second radio frequency parameters.
[0137] In some embodiments, the rotation module 902 is used to rotate configuration information that further includes the rotation order of multiple analog cards of the same type, determine multiple analog cards of a first type from the multiple analog cards; determine the currently rotated analog card based on the rotation order of the multiple analog cards of the first type; determine the radio frequency parameters of the currently rotated analog card, and obtain the second radio frequency parameters.
[0138] In some embodiments, the radio frequency parameters include multiple radio frequency sub-parameters, and the rotation configuration information includes the rotation order of multiple radio frequency sub-parameters of multiple analog cards. The rotation module 902 is used to determine the first radio frequency sub-parameter of the currently rotated analog card based on the rotation order of the multiple radio frequency sub-parameters of multiple analog cards; modify the second radio frequency sub-parameter in the third radio frequency parameters to the first radio frequency sub-parameter to obtain the second radio frequency parameter, wherein the third radio frequency parameter is the radio frequency parameter used in the previous response to the card reading command, and the first radio frequency sub-parameter and the second radio frequency sub-parameter are radio frequency sub-parameters of the same type.
[0139] In some embodiments, the apparatus further includes:
[0140] The selection module is used to select the first radio frequency parameter from multiple radio frequency parameters of analog cards when a card reading command is received from an analog identification device.
[0141] The second determining module is used to determine that the card reading command of the analog identification device based on the first radio frequency parameters has failed if the number of times the card reading command is responded to based on the first radio frequency parameters reaches a preset number but a card reading command is still received.
[0142] In some embodiments, the selection module is used to select the radio frequency parameters of a default analog card from the radio frequency parameters of multiple analog cards to obtain the first radio frequency parameters;
[0143] The selection module is used to obtain the current location, select the first simulated card from multiple simulated cards based on the current location, obtain the radio frequency parameters of the first simulated card to obtain the first radio frequency parameters, and the first simulated card is the simulated card with the highest probability of being used at the current location;
[0144] The selection module is used to obtain the frequencies used by multiple analog cards, select the second analog card with the highest usage frequency from the multiple analog cards based on the frequencies used by the multiple analog cards, and obtain the radio frequency parameters of the second analog card to obtain the first radio frequency parameters.
[0145] In some embodiments, the switching module 902 is used to send a card reading response to the analog recognition device based on a first radio frequency parameter. The card reading response carries a first fusion parameter, which is obtained by fusing the contactless parameters of multiple analog cards.
[0146] The device also includes:
[0147] The fusion module is used to re-fuse the contactless parameters of multiple analog cards to obtain a second fused parameter when the card reading command of the analog identification device fails to respond based on the first radio frequency parameters.
[0148] The switching module 902 is used to send a card reading response to the analog recognition device, and the card reading response carries the second fusion parameter.
[0149] In some embodiments, the switching module 902 is configured to send a card reading response to the analog identification device based on the second radio frequency parameters; or,
[0150] The switching module 902 is used to send a card reading response to the analog recognition device based on the first radio frequency parameters.
[0151] In some embodiments, the contactless parameters include the Type A card response ATQA, the unique identifier UID, the card selection response SAK, and the card selection answer ATS;
[0152] The fusion module is used to re-fuse at least one of the ATQA and SAK parameters of multiple analog cards, while keeping the fusion method of the UID and ATS parameters of the multiple analog cards unchanged, to obtain a second fusion parameter.
[0153] In this embodiment, rotation configuration information is set to rotate the radio frequency parameters of multiple simulated cards. In the scenario where multiple simulated cards are activated, the rotation configuration information can be used to rotate the radio frequency parameters of the simulated cards to ensure successful card swiping. This not only improves the compatibility of radio frequency parameters but also increases the success rate of card swiping.
[0154] It should be noted that the simulated card processing device provided in the above embodiments is only illustrated by the division of the above functional modules. In practical applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the electronic device can be divided into different functional modules to complete all or part of the functions described above. In addition, the simulated card processing device and the simulated card processing method embodiments provided in the above embodiments belong to the same concept, and their specific implementation process can be found in the method embodiments, which will not be repeated here.
[0155] Please refer to Figure 10 This diagram illustrates a block diagram of an electronic device 1000 according to an exemplary embodiment of this application. The electronic device 1000 in this application includes an NFC chip 1010, and may also include one or more components such as a processor 1020, a memory 1030, and a display screen 1040.
[0156] The processor 1020 may include one or more processing cores. The processor 1020 connects to various parts within the electronic device 1000 using various interfaces and lines, and performs various functions and processes data of the electronic device 1000 by running or executing instructions, programs, code sets, or instruction sets stored in the memory 1030, and by calling data stored in the memory 1030. Optionally, the processor 1020 may be implemented using at least one hardware form of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), or Programmable Logic Array (PLA). The processor 1020 may integrate one or a combination of several of the following: Central Processing Unit (CPU), Graphics Processing Unit (GPU), Neural-network Processing Unit (NPU), and Modem. Specifically, the CPU primarily handles the operating system, user interface, and applications; the GPU is responsible for rendering and drawing the content required to be displayed on the display screen 1040; the NPU is used to implement Artificial Intelligence (AI) functions; and the modem is used to handle wireless communication. It is understandable that the aforementioned modem may not be integrated into the processor 1020, but may be implemented as a separate chip.
[0157] The memory 1030 may include random access memory (RAM) or read-only memory. Optionally, the memory 1030 may include a non-transitory computer-readable storage medium. The memory 1030 may be used to store instructions, programs, code, code sets, or instruction sets. The memory 1030 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as touch function, sound playback function, image playback function, etc.), instructions for implementing the various method embodiments described below, etc.; the data storage area may store data created based on the use of the electronic device 1000 (such as audio data, telephone directory, etc.).
[0158] Display screen 1040 is a display component used to display a user interface. Optionally, the display screen 1040 is a touch-enabled display screen, through which users can use their fingers, styluses, or any suitable object to perform touch operations on the display screen 1040.
[0159] The display screen 1040 is typically located on the front panel of the electronic device 1000. The display screen 1040 can be designed as a full-screen, curved screen, irregularly shaped screen, dual-sided screen, or foldable screen. The display screen 1040 can also be designed as a combination of a full-screen and a curved screen, or a combination of an irregularly shaped screen and a curved screen, etc., but this embodiment does not limit it in this way.
[0160] In addition, those skilled in the art will understand that the structure of the electronic device 1000 shown in the above figures does not constitute a limitation on the electronic device 1000. The electronic device 1000 may include more or fewer components than shown, or combine certain components, or have different component arrangements. For example, the electronic device 1000 may also include audio acquisition devices, speakers, radio frequency circuits, input units, sensors, audio circuits, wireless Fidelity (Wi-Fi) modules, power supplies, Bluetooth modules, etc., which will not be described in detail here.
[0161] This application also provides a computer-readable medium storing at least one piece of program code, which is loaded and executed by the processor to implement the analog card processing method shown in the above embodiments.
[0162] This application also provides a computer program product that stores at least one piece of program code, which is loaded and executed by the processor to implement the analog card processing method shown in the above embodiments.
[0163] In some embodiments, the computer program product involved in this application may be deployed and executed on a user electronic device, or on multiple user electronic devices located in one location, or on multiple user electronic devices distributed in multiple locations and interconnected through a communication network. Multiple user electronic devices distributed in multiple locations and interconnected through a communication network may form a blockchain system.
[0164] Those skilled in the art will recognize that the functions described in the embodiments of this application in one or more of the above examples can be implemented using 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 code on a computer-readable medium. Computer-readable media include computer storage media and communication media, wherein communication media include any medium that facilitates the transfer of a computer program from one place to another. Storage media can be any available medium that can be accessed by a general-purpose or special-purpose computer.
[0165] The above description is merely an optional embodiment of this application and is not intended to limit this application. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.
Claims
1. A method for processing simulated cards, characterized in that, The method includes: When multiple analog cards are activated, if the card reading command of the analog identification device fails to respond based on the first radio frequency parameters, rotation configuration information is determined. The rotation configuration information is used to indicate the method of rotating the radio frequency parameters of the multiple analog cards. Based on the rotation configuration information and the radio frequency parameters of the plurality of simulated cards, the currently selected second radio frequency parameter is determined, and the card reading command of the simulated identification device is responded to based on the second radio frequency parameter until the card reading command is successfully responded to; Based on the first radio frequency parameters, the analog recognition device responds to the card reading command, including: Based on the first radio frequency parameters, a card reading response is sent to the analog identification device. The card reading response carries a first fusion parameter, which is obtained by fusing the contactless parameters of the plurality of analog cards. The method further includes: when the card reading command of the analog identification device fails to respond based on the first radio frequency parameters, re-fusion the contactless parameters of the plurality of analog cards to obtain a second fusion parameter; and sending a card reading response to the analog identification device, wherein the card reading response carries the second fusion parameter.
2. The method according to claim 1, characterized in that, Based on the rotation configuration information and the radio frequency parameters of the multiple simulated cards, a second radio frequency parameter is determined, including: The rotation configuration information includes the rotation order of the types of the plurality of simulated cards, and the first type of the simulated card currently rotated to is determined based on the rotation order. The radio frequency parameters of the first type of analog card are determined from the radio frequency parameters of the plurality of analog cards to obtain the second radio frequency parameters.
3. The method according to claim 2, characterized in that, The step of determining the radio frequency parameters of the first type of analog card from the radio frequency parameters of the plurality of analog cards to obtain the second radio frequency parameters includes: The rotation configuration information also includes the rotation order of multiple simulation cards of the same type, and the multiple simulation cards of the first type are determined from the multiple simulation cards; Based on the rotation order of multiple simulated cards of the first type, determine the currently rotated simulated card; The radio frequency parameters of the currently rotated analog card are determined to obtain the second radio frequency parameters.
4. The method according to claim 1, characterized in that, The step of determining the second radio frequency parameter based on the rotation configuration information and the radio frequency parameters of the multiple simulated cards includes: The radio frequency parameters include multiple radio frequency sub-parameters, and the rotation configuration information includes the rotation order of the multiple radio frequency sub-parameters of the multiple analog cards. Based on the rotation order of the multiple radio frequency sub-parameters of the multiple analog cards, the first radio frequency sub-parameter of the analog card currently rotated is determined. The second radio frequency sub-parameter in the third radio frequency parameter is modified to the first radio frequency sub-parameter to obtain the second radio frequency parameter. The third radio frequency parameter is the radio frequency parameter used in the previous response to the card reading command. The first radio frequency sub-parameter and the second radio frequency sub-parameter are radio frequency sub-parameters of the same type.
5. The method according to claim 1, characterized in that, The method further includes: When a card reading instruction is received from the analog recognition device, the first radio frequency parameter is selected from the radio frequency parameters of the plurality of analog cards; If the number of times the card reading command is responded to based on the first radio frequency parameters reaches a preset number but the card reading command is still not received, it is determined that the card reading command of the analog identification device based on the first radio frequency parameters has failed.
6. The method according to claim 5, characterized in that, The first radio frequency parameter is selected from the radio frequency parameters of the plurality of analog cards, including any of the following implementation methods: The first radio frequency parameter is obtained by selecting the radio frequency parameters of the default analog card from the radio frequency parameters of the plurality of analog cards; The current location is obtained, and based on the current location, a first simulated card is selected from the plurality of simulated cards. The radio frequency parameters of the first simulated card are obtained to obtain the first radio frequency parameters. The first simulated card is the simulated card with the highest probability of being used at the current location. The frequency at which the plurality of analog cards are used is obtained. Based on the frequency at which the plurality of analog cards are used, the second analog card with the highest usage frequency is selected from the plurality of analog cards. The radio frequency parameters of the second analog card are obtained to obtain the first radio frequency parameters.
7. The method according to claim 1, characterized in that, Sending a card reading response to the simulated recognition device includes: Based on the second radio frequency parameters, a card reading response is sent to the analog identification device; or... Based on the first radio frequency parameters, a card reading response is sent to the analog recognition device.
8. The method according to claim 1, characterized in that, The contactless parameters include the Type A card response ATQA, the unique identifier UID, the card selection response SAK, and the card selection answer ATS. The step of re-fusing the non-contact parameters of the plurality of simulated cards to obtain the second fused parameter includes: At least one of ATQA and SAK in the contactless parameters of the plurality of analog cards is re-fused while keeping the fusion method of UID and ATS in the contactless parameters of the plurality of analog cards unchanged, to obtain the second fused parameter.
9. A processing device for simulating cards, characterized in that, The device includes: The first determining module is used to determine rotation configuration information when multiple simulated cards are activated and the response to the card reading command of the simulated identification device based on the first radio frequency parameters fails. The rotation configuration information is used to indicate the method of rotating the radio frequency parameters of the multiple simulated cards. The rotation module is used to determine the currently selected second radio frequency parameter based on the rotation configuration information and the radio frequency parameters of the plurality of analog cards, and respond to the card reading command of the analog identification device based on the second radio frequency parameter until the card reading command is successfully responded to; The rotation module is used to send a card reading response to the analog recognition device based on the first radio frequency parameters. The card reading response carries a first fusion parameter, which is obtained by fusing the contactless parameters of the plurality of analog cards. The fusion module is used to re-fuse the contactless parameters of the multiple analog cards to obtain a second fusion parameter when the card reading command of the analog identification device fails to respond based on the first radio frequency parameters; and to send a card reading response to the analog identification device, wherein the card reading response carries the second fusion parameter.
10. The apparatus according to claim 9, characterized in that, The rotation configuration information includes the rotation order of the types of the plurality of analog cards. The rotation module is used to determine the first type of the analog card currently rotated to based on the type rotation order; and to determine the radio frequency parameters of the analog card of the first type from the radio frequency parameters of the plurality of analog cards to obtain the second radio frequency parameters.
11. The apparatus according to claim 10, characterized in that, The rotation module is used to determine the first type of multiple simulated cards from the multiple simulated cards, which are also included in the rotation configuration information; and to determine the currently rotated simulated card based on the rotation order of the first type of multiple simulated cards. The radio frequency parameters of the currently rotated analog card are determined to obtain the second radio frequency parameters.
12. The apparatus according to claim 9, characterized in that, The radio frequency parameters include multiple radio frequency sub-parameters, the rotation configuration information includes the rotation order of the multiple radio frequency sub-parameters of the multiple analog cards, and the rotation module is used to determine the first radio frequency sub-parameter of the currently rotated analog card based on the rotation order of the multiple radio frequency sub-parameters of the multiple analog cards. The second radio frequency sub-parameter in the third radio frequency parameter is modified to the first radio frequency sub-parameter to obtain the second radio frequency parameter. The third radio frequency parameter is the radio frequency parameter used in the previous response to the card reading command. The first radio frequency sub-parameter and the second radio frequency sub-parameter are radio frequency sub-parameters of the same type.
13. The apparatus according to claim 9, characterized in that, The device further includes: The selection module is used to select the first radio frequency parameter from the radio frequency parameters of the plurality of analog cards when a card reading instruction is received from the analog recognition device. The second determining module is used to determine that responding to the card reading command of the analog identification device based on the first radio frequency parameters has failed if the number of times the card reading command is responded to based on the first radio frequency parameters reaches a preset number but the card reading command is still not received.
14. The apparatus according to claim 13, characterized in that, The selection module is used to select the radio frequency parameters of a default analog card from the radio frequency parameters of the plurality of analog cards to obtain the first radio frequency parameters; The selection module is used to obtain the current location, select a first simulated card from the plurality of simulated cards based on the current location, obtain the radio frequency parameters of the first simulated card to obtain the first radio frequency parameters, and the first simulated card is the simulated card with the highest probability of being used at the current location. The selection module is used to obtain the frequency at which the plurality of analog cards are used, select the second analog card with the highest usage frequency from the plurality of analog cards based on the frequency at which the plurality of analog cards are used, and obtain the radio frequency parameters of the second analog card to obtain the first radio frequency parameters.
15. The apparatus according to claim 9, characterized in that, The rotation module is used to send a card reading response to the analog recognition device based on the second radio frequency parameters; or, The rotation module is used to send a card reading response to the analog recognition device based on the first radio frequency parameters.
16. The apparatus according to claim 9, characterized in that, The contactless parameters include the Type A card response ATQA, the unique identifier UID, the card selection response SAK, and the card selection answer ATS. The fusion module is used to re-fuse at least one of ATQA and SAK in the contactless parameters of the plurality of analog cards, while keeping the fusion method of UID and ATS in the contactless parameters of the plurality of analog cards unchanged, to obtain the second fusion parameter.
17. An electronic device, characterized in that, The electronic device includes one or more processors and one or more memories, wherein at least one piece of program code is stored in the one or more memories, and the at least one piece of program code is loaded and executed by the one or more processors to implement the method for processing the analog card as described in any one of claims 1 to 8.
18. A computer-readable storage medium, characterized in that, The storage medium stores at least one piece of program code, which is loaded and executed by a processor to implement the processing method of the simulated card according to any one of claims 1 to 8.
19. A computer program product, characterized in that, The computer program product stores at least one piece of program code, which is executed by a processor to implement the method for processing the simulated card according to any one of claims 1 to 8.
Citation Information
Patent Citations
Simulation card management method, simulation card management device, storage medium and electronic equipment
CN111784335A
Communication method and equipment based on NFC
CN112395894A
Radio frequency parameter compatible method, electronic equipment and readable storage medium
CN115035642A