Simulation card processing method and device, equipment, storage medium and product

By setting the rotation configuration information and rotating the selection of RF parameters when multiple analog cards are activated, the problem of insufficient compatibility of RF parameters is solved, and the compatibility of card swiping success rate and RF parameters is improved.

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

Patent Information

Application Number
CN202311284838.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-09-28
Publication Date
2025-03-28
Estimated Expiration
2043-09-28

AI Technical Summary

Technical Problem

When multiple analog cards are activated, the RF parameter compatibility is insufficient, resulting in a decrease in card swiping success rate.

Method used

By setting the rotation configuration information and rotating the RF parameters of multiple analog cards, it is ensured that when multiple analog cards are activated, the RF parameters can be effectively rotated to improve the card swipe success rate.

Benefits of technology

It improves the compatibility of RF parameters and the success rate of card swiping, avoiding the situation where the card swiping experience decreases when multiple simulated cards are activated at the same time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119721078A_ABST
    Figure CN119721078A_ABST
Patent Text Reader

Abstract

The invention provides a simulation card processing method and device, equipment, a storage medium and a product, and belongs to the technical field of radio frequency. The method comprises the steps that under the condition that a plurality of simulation cards are activated, when response to a card reading instruction of simulation identification equipment based on a first radio frequency parameter fails, rotation configuration information is determined, and the rotation configuration information is used for representing a mode for selecting the radio frequency parameters of the simulation cards in a rotation mode; and sequentially based on the alternate configuration information and the radio frequency parameters of the plurality of simulation cards, determining a currently selected second radio frequency parameter, and responding to a card reading instruction of the simulation identification equipment based on the second radio frequency parameter until the card reading instruction is successfully responded. According to the invention, in the scene that the plurality of simulation cards are activated, the card swiping success can be ensured based on the alternate configuration information in a mode of alternating the radio frequency parameters of the simulation cards, so that the compatibility of the radio frequency parameters is improved, and the success rate of card swiping is also improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of radio frequency technology, and in particular to a processing method, device, equipment, storage medium and product for simulating a card. Background Art

[0002] Currently, many mobile phones and other electronic devices have NFC functions, and electronic devices can simulate access control cards, bus cards, subway cards and other simulated cards through the NFC function, so that users can directly use electronic devices to open access control, swipe bus cards or subway cards, etc. In addition, when the electronic device opens the access control, swipes the bus card or subway card, the electronic device communicates with the simulation identification device based on RF parameters, so that the simulation identification device obtains the contactless parameters of the simulated card, and then reads the card information of the simulated card based on the contactless parameters. Summary of the invention

[0003] The embodiments of the present application provide a method, device, equipment, storage medium and product for processing simulated cards, which can improve the success rate of card swiping. The technical solution is as follows:

[0004] In one aspect, a method for processing a simulated card is provided, the method comprising:

[0005] In the case where multiple simulated cards are activated, when responding to a card reading instruction of the simulated identification device based on the first radio frequency parameter fails, determining rotation configuration information, the rotation configuration information being used to indicate a method of rotatingly selecting radio frequency parameters of the multiple simulated cards;

[0006] Based on the rotation configuration information and the radio frequency parameters of the multiple simulated cards, the currently selected second radio frequency parameters are determined in sequence, and the card reading instruction of the simulated identification device is responded to based on the second radio frequency parameters until the response to the card reading instruction is successful.

[0007] On the other hand, a processing device for simulating a card is provided, the device comprising:

[0008] A first determination module is used to determine rotation configuration information when a card reading instruction of the analog identification device fails to be responded to based on the first radio frequency parameter when multiple analog cards are activated, wherein the rotation configuration information is used to indicate a method of rotatingly selecting the radio frequency parameters of the multiple analog cards;

[0009] The rotation module is used to determine the currently selected second radio frequency parameters based on the rotation configuration information and the radio frequency parameters of the multiple simulated cards in turn, and respond to the card reading instruction of the simulated identification device based on the second radio frequency parameters until the response to the card reading instruction is successful.

[0010] On the other hand, an electronic device is provided, which includes one or more processors and one or more memories, wherein at least one program code is stored in the one or more memories, and the at least one program code is loaded and executed by the one or more processors to implement the simulation card processing method as described above.

[0011] On the other hand, a computer-readable storage medium is provided, wherein at least one program code is stored in the storage medium, and the at least one program code is loaded and executed by a processor to implement the above-mentioned processing method of the simulated card.

[0012] On the other hand, a computer program product is provided, wherein the computer program product stores at least one program code, and the at least one program code is used to be executed by a processor to implement the above-mentioned processing method of the simulated card.

[0013] In an embodiment of the present application, rotation configuration information is set, and the rotation configuration information is used to rotate the selection of the radio frequency parameters of multiple simulated cards. Therefore, in a scenario where multiple simulated cards are activated, the success of the card swiping can be ensured by rotating the radio frequency parameters of the simulated cards based on the rotation configuration information, which not only improves the compatibility of the radio frequency parameters, but also improves the success rate of the card swiping. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] Figure 1 A schematic diagram of an implementation environment of a method for processing a simulated card according to an exemplary embodiment of the present application is shown;

[0015] Figure 2 A flowchart of a method for processing a simulated card according to an exemplary embodiment of the present application is shown;

[0016] Figure 3 A flowchart of a method for processing a simulated card according to an exemplary embodiment of the present application is shown;

[0017] Figure 4 A schematic diagram of an abnormality detection mechanism of a simulated card shown in an exemplary embodiment of the present application is shown;

[0018] Figure 5 A flowchart of a method for processing a simulated card according to an exemplary embodiment of the present application is shown;

[0019] Figure 6 A schematic diagram showing a rotating radio frequency parameter of a simulated card according to an exemplary embodiment of the present application is shown;

[0020] Figure 7 A flowchart of a method for processing a simulated card according to an exemplary embodiment of the present application is shown;

[0021] Figure 8 A flowchart of a method for processing a simulated card according to an exemplary embodiment of the present application is shown;

[0022] Fig. 9 A block diagram of a processing device for simulating a card according to an exemplary embodiment of the present application is shown;

[0023] Fig.10 A block diagram of an electronic device according to an exemplary embodiment of the present application is shown. DETAILED DESCRIPTION

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

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

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

[0027] Please refer to Figure 1 , which shows a schematic diagram of an implementation environment of a simulated card processing method shown in an exemplary embodiment of the present application. Figure 1 The implementation environment includes a simulation identification device 101 and an electronic device 102. The electronic device 102 has an NFC function, and the electronic device 102 can simulate a simulated card through the NFC function. 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] The embodiment of the present application supports activating multiple simulated cards at the same time. The process is as follows: the electronic device 102 fuses the contactless parameters of multiple simulated cards to obtain a first fusion parameter, and sets the contactless parameters of the multiple simulated cards to the first fusion parameter, thereby achieving the purpose of activating multiple simulated cards at the same time. In the embodiment of the present application, the electronic device 102 activates multiple simulated cards at the same time, so that when the user uses the simulated card, the simulated identification device 101 sends a card reading instruction to select a suitable simulated card, and there is no need to activate the card or switch the card, thereby improving the user's card swiping experience.

[0029] In some embodiments, when multiple analog cards are activated, when the analog identification device 101 reads the analog card, the analog identification device 101 sends a card reading instruction to the electronic device 102, and the electronic device 102 receives the card reading instruction sent by the analog identification device, selects a first RF parameter from the RF parameters of multiple analog cards, and sends a card reading response to the analog identification device 101 based on the first RF parameter, and the card reading response carries a first fusion parameter; when the response to the card reading instruction of the analog identification device based on the first RF parameter fails, the RF parameter (second RF parameter) can be reselected by the method provided in the embodiment of the present application, and the card reading instruction can be responded to based on the second RF parameter until the response to the card reading instruction is successful, thereby ensuring that the compatibility of the RF parameters is greatly improved when multiple analog cards are activated at the same time, avoiding the situation where the compatibility of the card swiping experience is reduced when multiple analog cards are activated at the same time.

[0030] In some embodiments, the contactless parameters of the simulated card include Answer To Request, Type A, ATQA, UID, Select AcKnowledge, Type A, SAK, and Answer To Select, ATS. The RF parameters include phase, load modulation amplitude (Load Modulation Amplitude, LMA), and frame delay (Frame Delay Time, FDT). The RF parameters also include overshoot protection parameters, guard time, and clock parameters. The multiple simulated cards include at least one type of simulated card such as access cards, bus 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 may be a card reader or reader; the electronic device 102 may be a mobile phone or a smart wearable device (smart bracelet or smart watch), etc.

[0031] Please refer to Figure 2 , which shows a flowchart of a method for processing a simulated card according to an exemplary embodiment of the present application. The method includes:

[0032] Step 201: when multiple simulated cards are activated, when a card reading instruction of a simulated identification device based on a first radio frequency parameter response fails, determining rotation configuration information, the rotation configuration information being used to indicate a method for rotatingly selecting radio frequency parameters of multiple simulated cards.

[0033] The radio frequency parameters of the analog card are the parameters used by the analog card to perform radio frequency communication with the analog identification device; the multiple analog cards include at least one type of analog card such as access control card, bus card, subway card, digital car key, electronic ID card, campus card, digital RMB, electronic driver's license or electronic marriage certificate. The radio frequency parameters include phase, LMA and FDT, and the radio frequency parameters also include overshoot protection parameters, Guard Time and clock parameters. In some embodiments, the rotation configuration information includes the type rotation order of the multiple analog cards, that is, when the card reading instruction of the analog identification device fails to be responded to based on the first radio frequency parameter, the radio frequency parameters of different types of analog cards are selected in turn based on the type rotation order to respond to the card reading instruction of the analog identification device; for example, the multiple analog cards include access control cards and bus cards, and the rotation configuration information includes that the rotation order of access control cards and bus cards is access control card-bus card; then when the card reading instruction of the analog identification device fails to be responded to based on the first radio frequency parameter, the radio frequency parameters of the access control card are first used to respond to the card reading instruction of the analog identification device; when the card reading instruction of the analog identification device fails to be responded to based on the radio frequency parameters of the access control card, the radio frequency parameters of the bus card are used to respond to the card reading instruction of the analog identification device. In the case where there are multiple analog cards of the same type, the rotation configuration information also includes the rotation order of the multiple analog cards of the same type; for example, the 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, then when the card reading instruction of the analog identification device based on the first radio frequency parameter response fails, the radio frequency parameter response of the access card 1 is used first; when the card reading instruction of the analog identification device based on the radio frequency parameter response of the access card 1 fails, the card reading instruction of the analog identification device is used again by the radio frequency parameter response of the bus card 1; when the card reading instruction of the analog identification device based on the radio frequency parameter response of the bus card 1 fails, the card reading instruction of the analog identification device is used again by the radio frequency parameter response of the access card 2, and when the card reading instruction of the analog identification device based on the radio frequency parameter response of the access card 2 fails, the card reading instruction of the analog identification device is used again by the radio frequency parameter response of the bus card 2. In the embodiment of the present 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, FDT, etc. are switched together.

[0034] In other embodiments, the RF parameters include multiple RF sub-parameters, for example, the RF parameters include phase, LMA and FDT; the rotation configuration information includes the rotation order of multiple RF sub-parameters of multiple simulated cards; for example, the multiple simulated cards include an access card and a bus card, then 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-the FDT of the bus card, then when the response to the card reading instruction of the simulated identification device based on the first RF parameter fails, 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 instruction of the simulated 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 instruction of the simulated 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 instruction of the simulated identification device, and so on, until the response to the card reading instruction is successful.

[0035] For another example, if the multiple analog cards include an access card and a digital car key, 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 the RF parameters is the same as the process type of selecting the RF parameters based on the access card and the bus card, which will not be repeated here.

[0036] For another example, multiple analog cards include digital car keys and bus cards, then the rotation configuration information includes the phase of the digital car key-the phase of the bus card-the LMA of the digital car key-the LMA of the bus card-the FDT of the digital car key-the FDT of the bus card. The specific process of selecting the RF parameters and the process type of selecting the RF parameters based on the access card and the bus card are not repeated here. In an embodiment of the present application, the process of switching the RF parameters of the electronic device is not limited to the access card and the bus card, but can also be a combination of the access card and the digital car key, or the digital car key and the bus card. In an embodiment of the present application, the electronic device can switch one RF sub-parameter at a time, thereby adjusting the RF parameters in a small-granularity manner.

[0037] Step 202: determining a second radio frequency parameter based on the rotation configuration information and the radio frequency parameters of the plurality of simulated cards in sequence, and responding to a card reading instruction of the simulated identification device based on the second radio frequency parameter until the response to the card reading instruction is successful.

[0038] Based on the rotation configuration information and the RF parameters of multiple simulated cards, the second RF parameters are determined, and the card reading instruction of the simulated identification device is responded to based on the second RF parameters; when the response to the card reading instruction of the simulated identification device based on the second RF parameters is successful, the subsequent interaction process between the simulated identification device and the electronic device is continued; when the response to the card reading instruction of the simulated identification device based on the second RF parameters fails, the second RF parameters are redetermined again based on the rotation configuration information and the RF parameters of multiple simulated cards, and the card reading instruction of the simulated identification device is responded to based on the redetermined second RF parameters, until the response to the card reading instruction is successful.

[0039] In an embodiment of the present application, rotation configuration information is set, and the rotation configuration information is used to rotate the selection of the radio frequency parameters of multiple simulated cards. Therefore, in a scenario where multiple simulated cards are activated, the success of the card swiping can be ensured by rotating the radio frequency parameters of the simulated cards based on the rotation configuration information, which not only improves the compatibility of the radio frequency parameters, but also improves the success rate of the card swiping.

[0040] Please refer to Figure 3 , which shows a flowchart of a method for processing a simulated card according to an exemplary embodiment of the present application. The method includes:

[0041] Step 301: The electronic device determines contactless parameters of a plurality of simulated cards to be activated.

[0042] For any simulated card, the contactless parameters of the simulated card include Answer To Request, Type A, ATQA, UID, Select AcKnowledge, Type A, SAK and Answer To Select, ATS. ATQA is the electronic device's response to the simulated identification device's Request Command, Type A, REQA or WUPA command. ATQA can be 0400 or 0800, and the simulated identification device can accept and identify both responses. UID is the ID number of the simulated card; for the first type of simulated card, the first type of simulated card is a card identified by UID, and the simulated identification device uses UID as the only information to identify the simulated card, that is, if the simulated identification device determines that the UID of the simulated card is correct, the simulated card is successfully identified; for example, if the first type of simulated card is an access card, then the UID of the access card is correct, and the door can be opened. For the second type of analog card, the second type of analog card is a card that is not identified by UID, and the analog identification device generally does not pay attention to the UID of the analog card; for example, the second type of analog card may be a central processing unit (CPU) card; for example, the second type of analog card may be a bus, subway card, digital car key, electronic ID card, campus card, digital RMB, electronic driver's license or electronic marriage certificate, etc.

[0043] When the analog identification device identifies an analog card, it will send a select command (Select) to the electronic device; SAK is the electronic device's response to the Select command sent by the analog identification device. SAK can usually distinguish between the first type of analog cards and the second type of analog cards. The SAK of the first type of analog cards uses the 0x08 parameter, while the SAK of the second type of analog cards uses the 0x20 parameter. When the analog identification device receives a SAK of 0x08, it will send relevant instructions according to the Mifare protocol; and when the analog identification device receives a SAK of 0x02, it will send relevant instructions according to the ISO14443 protocol.

[0044] After identifying the analog card, the analog identification device will send a RATS instruction to the electronic device; ATS is the electronic device's response to the RATS instruction sent by the analog identification device, and ATS contains waiting time parameters, communication rate parameters and private information of the analog card; the waiting time parameter is used to inform the analog identification device how long it will take for the electronic device to respond after receiving the instruction from the analog identification device, that is, how long the analog identification device needs to wait at most. The communication rate parameter can be 106kbps, 212kbps, 424kbps or 848kbps. The private information of the analog card can be the description information of the analog card, etc. The RATS instruction is an instruction 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 radio frequency usually does not send this instruction.

[0045] Step 302: the electronic device fuses the contactless parameters of the multiple simulated cards to obtain a first fused parameter, and sets the contactless parameters of the 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 the embodiment of the present application, the ATQA included in the first fusion parameter is 0x0400 as an example for explanation. In the case where a first type of simulation card is included in multiple simulation cards, the first type of simulation card is a card identified by UID; for example, the first type of simulation card is an access card, then the UID included in the first fusion parameter can be the UID of the first type of simulation card; in the case where the first type of simulation card is not included in multiple simulation cards, the UID included in the first fusion parameter can be the UID of any card in the multiple simulation cards. The SAK included in the first fusion parameter can be a 0x20 parameter or a 0x08 parameter. In the embodiment of the present application, the SAK included in the first fusion parameter is a 0x20 parameter as an example for explanation. The ATS included in the first fusion parameter may be an ATS determined based on the ATSs of multiple simulated cards, and the determined ATS is adapted to multiple simulated cards; for example, if the ATS includes a waiting time parameter, the electronic device determines a maximum waiting time parameter based on the waiting time parameters of multiple simulated cards, and uses the maximum waiting time parameter as the ATS in the first fusion parameter; for another example, if the ATS includes a communication rate parameter, the electronic device determines a minimum communication rate parameter based on the communication rate parameters of multiple simulated cards, and uses the minimum communication rate parameter as the ATS in the first fusion parameter.

[0047] In some embodiments, when some simulated cards have ATSs and some simulated cards do not have ATSs, when fusing the non-contact parameters of multiple simulated cards to obtain the first fusion parameter, the ATSs of the simulated cards with ATSs may be fused to obtain the ATSs included in the first fusion parameter. If none of the multiple simulated cards have ATSs, the ATSs of the multiple simulated cards may not be fused.

[0048] Step 303: When receiving the card reading instruction sent by the analog identification device, the electronic device selects a first analog card from the radio frequency parameters of multiple analog cards.

[0049] The card reading instruction may be REQA or WUPA; the step of the electronic device selecting the first radio frequency parameter from the radio frequency parameters of multiple simulated cards may be implemented in any of the following ways:

[0050] A first implementation manner: the electronic device selects a default radio frequency parameter of a simulated card from radio frequency parameters of multiple simulated cards to obtain a first radio frequency parameter.

[0051] The default analog card is set by the electronic device when multiple analog cards are activated at the same time, and the default analog card can be modified by the user; for example, if the multiple analog cards include an access card and a bus card, the electronic device can set the access card as the default analog card. In the embodiment of the present application, the RF parameters of the default analog card are directly obtained, and the operation is simple, thereby improving the efficiency of obtaining the RF parameters of the analog card.

[0052] The second implementation method: the electronic device obtains the current location, selects a first simulated card from multiple simulated cards based on the current location, obtains 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.

[0053] Based on the current location, the electronic device determines the probabilities of multiple simulated cards being used at the current location, and selects a first simulated card from the multiple simulated cards based on the probabilities of multiple simulated cards being used at the current location. In some embodiments, the electronic device determines a place corresponding to the current location, and based on the place, determines the probabilities of multiple simulated cards being used at the place from the correspondence between the place and the probability of use. For example, the multiple simulated cards include an access card and a bus card; if the place corresponding to the current location is a residential area, then the access card has the highest probability of being used among the access card and the bus card, and the electronic device obtains the radio frequency parameters of the access card. For another example, the multiple simulated cards include an access card and a bus card; if the place corresponding to the current location is a bus stop, then the bus card has the highest probability of being used among the access card and the bus card, and the electronic device obtains the radio frequency parameters of the bus card.

[0054] In an embodiment of the present application, the electronic device selects the radio frequency parameters of a simulated card based on the probability of multiple simulated cards being used at the current location, and the selected simulated card is the one that the user is most likely to use at the current location. Therefore, the accuracy of the determined first radio frequency parameters can be improved, thereby improving the success rate of the card reading instruction of the simulated identification device in response to the first radio frequency parameters.

[0055] A third implementation method: the electronic device obtains the frequencies at which multiple analog cards are used, selects a second analog card with the highest frequency of use from the multiple analog cards based on the frequencies at which the multiple analog cards are used, and obtains the radio frequency parameters of the second analog card to obtain the first radio frequency parameters.

[0056] In an embodiment of the present application, the electronic device selects the radio frequency parameters of the simulated card based on the frequency with which multiple simulated cards are used, and the selected simulated card is frequently used by the user, thereby improving the accuracy of the determined first radio frequency parameters, thereby improving the success rate of the card reading instruction of the simulated identification device in response to the first radio frequency parameters.

[0057] A fourth implementation method: the electronic device obtains a third simulated card that was used last among multiple simulated cards, and obtains a radio frequency parameter of the third simulated card to obtain the first radio frequency parameter.

[0058] Step 304: The electronic device sends a card reading response to the analog identification device based on the first radio frequency parameter, where the card reading response carries the first fusion parameter.

[0059] The card reading response may be ATQA; that is, this step may be: the electronic device sends ATQA to the analog identification device based on the first radio frequency parameter, and the ATQA carries the first fusion parameter.

[0060] Step 305: When the number of times the electronic device responds to the card reading instruction based on the first radio frequency parameter reaches a preset number but still receives the card reading instruction, it is determined that the card reading instruction of the simulated identification device based on the first radio frequency parameter response fails.

[0061] The preset number of times can be set and changed as needed; for example, the preset number of times can be 3 times, 4 times or 5 times; in the embodiment of the present application, taking the preset number of times as 3 times as an example, in step 304, the electronic device sends a card reading response to the analog identification device; when the analog identification device does not receive the card reading response (ATQA), the analog identification device continues to send a card reading instruction (REQA or WUPA) to the electronic device; at this time, the electronic device continues to send a card reading response (ATQA) to the analog identification device based on the first radio frequency parameters; when the analog identification device does not receive the card reading response (ATQA), the analog identification device continues to send a card reading instruction (REQA or WUPA) to the electronic device, at this time, the electronic device continues to send a card reading response (ATQA) to the analog identification device based on the first radio frequency parameters, and when the number of times the electronic device sends a card reading response (ATQA) to the analog identification device based on the first radio frequency parameters reaches 3 times, the electronic device determines that the card reading instruction response based on the first radio frequency parameters has failed. For this process, please refer to Figure 4 .

[0062] In the embodiment of the present application, the electronic device triggers the rotation of radio frequency parameters through an abnormal detection mechanism, which can ensure that when multiple analog cards are activated at the same time, the compatibility of the radio frequency parameters is greatly improved, thereby avoiding the situation where the compatibility of the card swiping experience decreases when multiple analog cards are activated at the same time.

[0063] Step 306: The electronic device determines rotation configuration information, where the rotation configuration information includes a rotation order of the types of multiple simulated cards, and the radio frequency parameters of the simulated card are parameters used by the simulated card to perform radio frequency communication with the simulated identification device.

[0064] For example, the multiple simulated cards include an access card and a bus card, and the rotation configuration information includes that the rotation order of the access card and the bus card is access card-bus card.

[0065] Step 307: The electronic device determines the first type of the currently rotated simulated card based on the type rotation sequence.

[0066] When the electronic device rotates the radio frequency parameters for the first time, the first type in the type rotation order selected by the electronic device is the first type; for example, the multiple simulated cards include an access card and a bus card, and the rotation configuration information includes that the rotation order of the access card and the bus card is access card-bus card, then when the electronic device rotates the radio frequency parameters for the first time, the access card is selected.

[0067] When the electronic device is not rotating the radio frequency parameters for the first time, the electronic device determines the first type of the currently rotated analog card based on the type rotation order and the type of the last rotated analog card; for example, the multiple analog cards include an access card and a bus card, and the rotation configuration information includes that the rotation order of the access card and the bus card is access card-bus card, then the electronic device selects the bus card when rotating the radio frequency parameters for the second time.

[0068] Step 308: The electronic device determines the radio frequency parameters of the first type of simulated card from the radio frequency parameters of the plurality of simulated cards to obtain second radio frequency parameters.

[0069] When a plurality of simulation cards includes a simulation card of the first type, the electronic device directly obtains the radio frequency parameters of the simulation card of the first type to obtain the second radio frequency parameters; and when a plurality of simulation cards includes a plurality of simulation cards of the first type, the rotation configuration information also includes the rotation order of the plurality of simulation cards of the same type, that is, the rotation configuration information also includes the rotation order of the plurality of simulation cards of the first type; then the electronic device determines the plurality of simulation cards of the first type from the plurality of simulation cards, and determines the simulation card currently rotated based on the rotation order of the plurality of simulation cards of the first type; determines the radio frequency parameters of the simulation card currently rotated, and obtains the second radio frequency parameters. For example, the plurality of simulation 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; then in this step, the electronic device obtains the radio frequency parameters of access card 1 to obtain the second radio frequency parameters.

[0070] Step 309: The electronic device sends a card reading response to the analog identification device based on the second radio frequency parameter, where the card reading response carries the first fusion parameter.

[0071] When the electronic device successfully responds to the card reading instruction of the analog identification device based on the second radio frequency parameters, the electronic device performs subsequent card reading interaction with the analog identification device; when the electronic device fails to respond to the card reading instruction of the analog identification device based on the second radio frequency parameters, steps 307-309 are executed again, the second radio frequency parameters are re-determined, and a card reading response is sent to the analog identification device based on the re-determined second radio frequency parameters, until the response to the card reading instruction of the analog identification device is successful.

[0072] In an embodiment of the present application, rotation configuration information is set, and the rotation configuration information includes a type rotation order of multiple simulated cards. Therefore, in a scenario where multiple simulated cards are activated, it is possible to ensure successful card swiping by selecting radio frequency parameters of different types of rotating simulated cards based on the type rotation order of the multiple simulated cards, thereby improving not only the compatibility of the radio frequency parameters, but also the success rate of card swiping.

[0073] Please refer to Figure 5, which shows a flowchart of a method for processing a simulated card according to an exemplary embodiment of the present application. The method includes:

[0074] Step 501: The electronic device determines contactless parameters of a plurality of simulated cards to be activated.

[0075] In some embodiments, this step is the same as step 301 and will not be repeated here.

[0076] Step 502: the electronic device fuses the contactless parameters of multiple simulated cards to obtain a 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 repeated here.

[0078] Step 503: When receiving the card reading instruction sent by the analog identification device, the electronic device selects a 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 repeated here.

[0080] Step 504: The electronic device sends a card reading response to the analog identification device based on the first radio frequency parameter, where the card reading response carries the first fusion parameter.

[0081] In some embodiments, this step is the same as step 304 and will not be described again herein.

[0082] Step 505: When the number of times the electronic device responds to the card reading instruction based on the first radio frequency parameter reaches a preset number but still receives the card reading instruction, it is determined that the card reading instruction of the simulated identification device based on the first radio frequency parameter response fails.

[0083] In some embodiments, this step is the same as step 305 and will not be repeated here.

[0084] Step 506: the electronic device determines rotation configuration information, the radio frequency parameters include multiple radio frequency sub-parameters, and the rotation configuration information includes a rotation order of multiple radio frequency sub-parameters of multiple simulated cards.

[0085] The radio frequency parameters of the analog card are the parameters used by the analog card to communicate with the analog identification device through radio frequency. The radio frequency parameters include multiple radio frequency sub-parameters, for example, the radio frequency parameters include phase, LMA and FDT; the rotation configuration information includes the rotation order of multiple radio frequency sub-parameters of multiple analog cards; the multiple analog cards include access card and bus card, then the rotation configuration information includes the phase of access card-the phase of bus card-the LMA of access card-the LMA of bus card-the FDT of access card-the FDT of bus card. For another example, the radio frequency parameters include phase, LMA, FDT, overshoot protection parameters, Guard Time and clock parameters; the multiple analog cards include access card and bus card, then the rotation configuration information includes the phase of access card-the phase of bus card-the LMA of access card-the LMA of bus card-the FDT of access card-the FDT of bus card-the overshoot protection parameters of access card-the overshoot protection parameters of bus card-the Guard Time of access card-the Guard Time of bus card-the clock parameters of access card-the clock parameters of bus card.

[0086] Step 507: The electronic device determines the first radio frequency sub-parameter of the currently rotated simulated card based on the rotation order of the multiple radio frequency sub-parameters of the multiple simulated cards.

[0087] When the electronic device rotates the RF parameters for the first time, the electronic device selects the first RF sub-parameter in the rotation order of multiple RF sub-parameters. When the electronic device rotates the RF parameters for a non-first time, the electronic device determines the first RF sub-parameter of the currently rotated analog card based on the rotation order of multiple RF sub-parameters and the last rotated RF sub-parameter; for example, please refer to Figure 6 , the rotation configuration information includes phase 1 of the access control card-phase 1 of the bus card-LMA1 of the access control card-LMA1 of the bus card-FDT1 of the access control card-FDT1 of the bus card, phase 2 of the access control card-phase 2 of the bus card-LMA2 of the access control card-LMA2 of the bus card, then the electronic device determines the first radio frequency sub-parameter as phase 1 of the access control card for the first time, determines the first radio frequency sub-parameter as phase 1 of the bus card for the second time, determines the first radio frequency sub-parameter as LMA1 of the access control card for the third time, determines the first radio frequency sub-parameter as LMA1 of the bus card for the fourth time, and so on.

[0088] Step 508: The electronic device modifies the second RF sub-parameter in the third RF parameter to the first RF sub-parameter to obtain the second RF parameter. The third RF parameter is the RF parameter used in the last response to the card reading instruction. The first RF sub-parameter and the second RF sub-parameter are RF 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 such as LMA, FDT, overshoot protection parameter, Guard Time and clock parameter in the third RF parameter remain unchanged. For another example, if the second RF sub-parameter is LMA, the electronic device modifies LMA in the third RF parameter to LMA determined in step 507, while other RF sub-parameters such as phase, FDT, overshoot protection parameter, GuardTime and clock parameter in the third RF parameter remain unchanged. For another example, if the second RF sub-parameter is FDT, the electronic device modifies FDT in the third RF parameter to FDT determined in step 507, while other RF sub-parameters such as phase, LMA, overshoot protection parameter, Guard Time and clock parameter in the third RF parameter remain unchanged. For another example, if the second RF sub-parameter is 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 such as phase, LMA, FDT, Guard Time and clock parameter in the third RF parameter remain unchanged. For another example, if the second RF sub-parameter is Guard Time, the electronic device modifies GuardTime in the third RF parameter to Guard Time determined in step 507, while other RF sub-parameters such as phase, LMA, FDT, overshoot protection parameter, and clock parameter in the third RF parameter remain unchanged. For another example, if the second RF sub-parameter is a clock parameter, the electronic device modifies the clock parameter in the third RF parameter to the clock parameter determined in step 507, while other RF sub-parameters such as phase, LMA, FDT, overshoot protection parameter, and Guard Time in the third RF parameter remain unchanged.

[0090] In the embodiment of the present application, not only parameters such as phase, LMA and FDT can be modified, but also overshoot protection parameters, Guard Time and clock parameters can be modified, so that the electronic device can successfully respond to the card reading request of the analog identification device as much as possible, thereby improving the compatibility of the radio frequency parameters.

[0091] When the electronic device selects the second RF parameter for the first time, the third RF parameter is the first RF parameter; when the electronic device does not select the second RF parameter for the first time, the third RF parameter is the second RF parameter selected last time. In some embodiments, the electronic device may also change the first RF sub-parameter based on the first RF parameter; then the process may be: the electronic device modifies the third RF sub-parameter in the first RF parameter to the first RF sub-parameter.

[0092] Step 509: The electronic device sends a card reading response to the analog identification device based on the second radio frequency parameter, where the card reading response carries the first fusion parameter.

[0093] When the electronic device successfully responds to the card reading instruction of the analog identification device based on the second radio frequency parameters, the electronic device performs subsequent card reading interactions with the analog identification device; when the electronic device fails to respond to the card reading instruction 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 send a card reading response to the analog identification device based on the redetermined second radio frequency parameters, until the response to the card reading instruction of the analog identification device is successful.

[0094] In an embodiment of the present application, rotation configuration information is set, and the rotation configuration information includes a rotation order of multiple radio frequency sub-parameters. Therefore, in a scenario where multiple simulated cards are activated, it is possible to ensure successful card swiping by selecting different radio frequency sub-parameters based on the rotation order of multiple radio frequency sub-parameters, which not only improves the compatibility of the radio frequency parameters, but also improves the success rate of card swiping.

[0095] Please refer to Figure 7 , which shows a flowchart of a method for processing a simulated card according to an exemplary embodiment of the present application. The method includes:

[0096] Step 701: The electronic device determines contactless parameters of multiple simulated cards to be activated.

[0097] In some embodiments, this step is the same as step 301 and will not be repeated here.

[0098] Step 702: the electronic device fuses the contactless parameters of the multiple simulated cards to obtain a first fused parameter, and sets the contactless parameters of the 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 repeated here.

[0100] Step 703: When receiving the card reading instruction sent by the analog identification device, the electronic device selects a 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 repeated here.

[0102] Step 704: The electronic device sends a card reading response to the analog identification device based on the first radio frequency parameter, where the card reading response carries the first fusion parameter.

[0103] In some embodiments, this step is the same as step 304 and will not be described again herein.

[0104] Step 705: When the number of times the electronic device responds to the card reading instruction based on the first radio frequency parameter reaches a preset number but still receives the card reading instruction, it is determined that the card reading instruction of the simulated identification device based on the first radio frequency parameter response fails.

[0105] In some embodiments, this step is the same as step 305 and will not be repeated here.

[0106] Step 706: The electronic device re-integrates the contactless parameters of the multiple simulated cards to obtain second integrated parameters.

[0107] The second fusion parameter includes ATQA, UID, SAK and ATS. For the first implementation, when the electronic device first fuses the contactless parameters of multiple simulated cards, 0x0400 is used as ATQA. When the contactless parameters of multiple simulated cards are re-fused, 0x0800 is used as ATQA, and the fusion method of UID, SAK and ATS of multiple simulated cards remains unchanged, thereby realizing the re-fusion of the contactless parameters of multiple simulated cards by changing ATQA, so as to eliminate the problem of failure to respond to the card reading instruction of the simulated identification device due to different ATQA selections.

[0108] For the second implementation method, when the electronic device first merges the contactless parameters of multiple simulated cards, 0x20 is used as the SAK. When the contactless parameters of multiple simulated cards are reintegrated, 0x08 is used as the SAK, and the fusion method of ATQA, UID and ATS of multiple simulated cards remains unchanged, thereby realizing the reintegration of the contactless parameters of multiple simulated cards by changing the SAK, so as to eliminate the problem of failure to respond to the card reading instruction of the analog identification device due to different SAK selections.

[0109] For the third implementation method, the electronic device can also combine the above two implementation methods to reintegrate the contactless parameters of multiple simulated cards; the process is: when the electronic device fuses the contactless parameters of multiple simulated cards for the first time, it uses 0x0400 as ATQA and 0x20 as SAK. When reintegrating the contactless parameters of multiple simulated cards, it uses 0x0800 as ATQA and 0x08 as SAK, and the fusion method of UID and ATS of multiple simulated cards remains unchanged, thereby realizing the reintegration of the contactless parameters of multiple simulated cards by changing ATQA and SAK, so as to make the greatest possible change to solve the problem of failure to respond to the card reading instruction of the analog identification device.

[0110] Step 707: The electronic device sends a card reading response to the analog identification device based on the first radio frequency parameter, where the card reading response carries the second fusion parameter.

[0111] In some embodiments, when the electronic device successfully responds to the card reading instruction of the analog identification device based on the first radio frequency parameters, the electronic device performs subsequent card reading interactions with the analog identification device; when the electronic device fails to respond to the card reading instruction of the analog identification device based on the first radio frequency parameters, the electronic device executes steps 706-707, re-fuse the contactless parameters of multiple analog cards, and sends a card reading response to the analog identification device based on the first radio frequency parameters. The card reading response carries the second fusion parameters obtained by re-fusing until the card reading instruction of the analog identification device is successfully responded to based on the first radio frequency parameters.

[0112] In the embodiment of the present application, when the card reading instruction of the analog identification device fails to be responded to based on the first radio frequency parameter, the contactless parameters of multiple simulated cards are re-fused, thereby eliminating the response failure caused by the compatibility of the contactless parameters.

[0113] Please refer to Figure 8 , which shows a flowchart of a method for processing a simulated card according to an exemplary embodiment of the present application. The method includes:

[0114] Step 801: The electronic device determines contactless parameters of multiple simulated cards to be activated.

[0115] In some embodiments, this step is the same as step 301 and will not be repeated here.

[0116] Step 802: the electronic device fuses the contactless parameters of multiple simulated cards to obtain a 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 repeated here.

[0118] Step 803: When receiving the card reading instruction sent by the analog identification device, the electronic device selects a 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 repeated here.

[0120] Step 804: The electronic device sends a card reading response to the analog identification device based on the first radio frequency parameter, where the card reading response carries the first fusion parameter.

[0121] In some embodiments, this step is the same as step 304 and will not be described again herein.

[0122] Step 805: When the number of times the electronic device responds to the card reading instruction based on the first radio frequency parameter reaches a preset number but still receives the card reading instruction, it is determined that the card reading instruction of the simulated identification device based on the first radio frequency parameter response fails.

[0123] In some embodiments, this step is the same as step 305 and will not be repeated here.

[0124] Step 806: The electronic device re-integrates the contactless parameters of the multiple simulated cards to obtain second integrated parameters.

[0125] In some embodiments, this step is the same as step 706 and will not be repeated here.

[0126] Step 807: the electronic device determines rotation configuration information, where the rotation configuration information is used to indicate a method for rotatingly selecting radio frequency parameters of multiple simulated cards, where the radio frequency parameters of the simulated cards are parameters used by the simulated cards to perform radio frequency communication with the simulated identification 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 repeated here.

[0128] Step 808: The electronic device determines a second radio frequency parameter based on the rotation configuration information and radio frequency parameters of multiple simulated 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 repeated here.

[0130] Step 809: The electronic device sends a card reading response to the analog identification device based on the second radio frequency parameter, and the card reading response carries the second fusion parameter.

[0131] When the electronic device successfully responds to the card reading instruction of the analog identification device based on the second radio frequency parameters, the electronic device performs subsequent card reading interactions with the analog identification device; when the electronic device fails to respond to the card reading instruction 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 redetermine the second radio frequency parameters, and send a card reading response carrying the redetermined second fusion parameters to the analog identification device based on the redetermined second radio frequency parameters, until the response to the card reading instruction of the analog identification device is successful.

[0132] In an embodiment of the present application, when the card reading instruction of the analog identification device fails to be responded to based on the first radio frequency parameter, the contactless parameters of multiple analog cards are re-fused and the second fusion parameter is re-determined, thereby making changes in two dimensions to successfully respond to the card reading instruction of the analog identification device as quickly as possible, thereby improving the card swiping experience.

[0133] Please refer to Fig. 9 , which shows a block diagram of a processing device for simulating a card according to an exemplary embodiment of the present application, the device comprising:

[0134] A first determination module 901 is used to determine rotation configuration information when a card reading instruction of the analog identification device fails to be responded to based on the first radio frequency parameter when multiple analog cards are activated, where the rotation configuration information is used to indicate a method of rotatingly selecting radio frequency parameters of multiple analog cards;

[0135] The rotation module 902 is used to determine the currently selected second radio frequency parameters based on the rotation configuration information and the radio frequency parameters of multiple simulated cards in turn, and respond to the card reading instruction of the simulated identification device based on the second radio frequency parameters until the response to the card reading instruction is successful.

[0136] In some embodiments, the rotation configuration information includes a type rotation order of multiple simulated cards, and the rotation module 902 is used to determine the first type of simulated card currently rotated based on the type rotation order; determine the RF parameters of the first type of simulated card from the RF parameters of multiple simulated cards to obtain the second RF parameters.

[0137] In some embodiments, the rotation module 902 is used to rotate the configuration information further including the rotation order of multiple simulated cards of the same type, determine multiple simulated cards of the first type from the multiple simulated cards; determine the simulated card currently rotated based on the rotation order of the multiple simulated cards of the first type; determine the radio frequency parameters of the simulated card currently rotated, and obtain second radio frequency parameters.

[0138] In some embodiments, the RF parameters include multiple RF sub-parameters, and the rotation configuration information includes the rotation order of multiple RF sub-parameters of multiple simulated cards. The rotation module 902 is used to determine the first RF sub-parameter of the currently rotated simulated card based on the rotation order of multiple RF sub-parameters of multiple simulated cards; modify the second RF sub-parameter in the third RF parameter to the first RF sub-parameter to obtain the second RF parameter, the third RF parameter is the RF parameter used in the last response to the card reading instruction, and the first RF sub-parameter and the second RF sub-parameter are RF sub-parameters of the same type.

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

[0140] A selection module, configured to select a first radio frequency parameter from radio frequency parameters of multiple simulated cards when receiving a card reading instruction from a simulated identification device;

[0141] The second determination module is used to determine that the card reading instruction of the analog identification device based on the first radio frequency parameter response fails when the number of times of responding to the card reading instruction based on the first radio frequency parameter reaches a preset number but the card reading instruction is still received.

[0142] In some embodiments, the selection module is used to select a default RF parameter of a simulated card from RF parameters of multiple simulated cards to obtain a first RF parameter;

[0143] A selection module is used to obtain a current location, select a first simulated card from multiple simulated cards based on the current location, obtain a radio frequency parameter of the first simulated card to obtain a first radio frequency parameter, and the first simulated card is a simulated card with the highest probability of being used at the current location;

[0144] The selection module is used to obtain the frequencies at which multiple analog cards are used, select the second analog card with the highest frequency of use from the multiple analog cards based on the frequencies at which the multiple analog cards are used, and obtain the radio frequency parameters of the second analog card to obtain the first radio frequency parameters.

[0145] In some embodiments, the rotation module 902 is used to send a card reading response to the analog recognition device based on the first radio frequency parameter, the card reading response carries a first fusion parameter, and the first fusion parameter is obtained by fusing the contactless parameters of multiple analog cards;

[0146] The device also includes:

[0147] A fusion module, configured to re-fuse the contactless parameters of multiple simulated cards to obtain second fusion parameters when a card reading instruction of the simulated identification device fails to be responded to based on the first radio frequency parameters;

[0148] The rotation module 902 is used to send a card reading response to the analog identification device, where the card reading response carries the second fusion parameter.

[0149] In some embodiments, the rotation module 902 is used to send a card reading response to the analog identification device based on the second radio frequency parameter; or,

[0150] The rotation module 902 is used to send a card reading response to the analog identification device based on the first radio frequency parameter.

[0151] In some embodiments, the contactless parameters include a Class A card inquiry response ATQA, a unique identification number UID, a card selection response SAK, and a card selection answer ATS;

[0152] The fusion module is used to re-integrate at least one of ATQA and SAK in the contactless parameters of multiple simulated cards, keep the fusion method of UID and ATS in the contactless parameters of multiple simulated cards unchanged, and obtain a second fusion parameter.

[0153] In an embodiment of the present application, rotation configuration information is set, and the rotation configuration information is used to rotate the selection of the radio frequency parameters of multiple simulated cards. Therefore, in a scenario where multiple simulated cards are activated, the success of the card swiping can be ensured by rotating the radio frequency parameters of the simulated cards based on the rotation configuration information, which not only improves the compatibility of the radio frequency parameters, but also improves the success rate of the card swiping.

[0154] It should be noted that the processing device for simulating a card provided in the above embodiment only uses the division of the above functional modules as an example when processing a simulated card. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the electronic device is divided into different functional modules to complete all or part of the functions described above. In addition, the processing device for simulating a card provided in the above embodiment and the embodiment of the processing method for simulating a card belong to the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.

[0155] Please refer to Fig.10 , which shows a block diagram of an electronic device 1000 according to an exemplary embodiment of the present application. The electronic device 1000 in the present application includes an NFC chip 1010 and may also include one or more of the following components: 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 uses various interfaces and lines to connect the various parts of the entire electronic device 1000, and executes 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 calling data stored in the memory 1030. Optionally, the processor 1020 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The processor 1020 can integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processor (Graphics Processing Unit, GPU), a neural network processor (Neural-network Processing Unit, NPU) and a modem. Among them, the CPU mainly processes the operating system, user interface and application programs; the GPU is responsible for rendering and drawing the content to be displayed by the display screen 1040; the NPU is used to implement artificial intelligence (Artificial Intelligence, AI) functions; and the modem is used to process wireless communications. It is understandable that the above-mentioned modem may not be integrated into the processor 1020, but may be implemented by a separate chip.

[0157] The memory 1030 may include a random access memory (RAM) or a read-only memory (ROM). Optionally, the memory 1030 includes a non-transitory computer-readable storage medium. The memory 1030 may be used to store instructions, programs, codes, 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 a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the following various method embodiments, etc.; the data storage area may store data (such as audio data, a phone book), etc., created according to the use of the electronic device 1000.

[0158] The display screen 1040 is a display component for displaying a user interface. Optionally, the display screen 1040 is a display screen with a touch function, through which the user can use any suitable object such as a finger, a touch pen, etc. to perform touch operations on the display screen 1040.

[0159] The display screen 1040 is usually arranged on the front panel of the electronic device 1000. The display screen 1040 can be designed as a full screen, a curved screen, a special-shaped screen, a double-sided screen or a folding screen. The display screen 1040 can also be designed as a combination of a full screen and a curved screen, a combination of a special-shaped screen and a curved screen, etc., which is not limited in this embodiment.

[0160] In addition, those skilled in the art can understand that the structure of the electronic device 1000 shown in the above drawings does not constitute a limitation on the electronic device 1000, and the electronic device 1000 may include more or fewer components than shown, or combine certain components, or arrange the components differently. For example, the electronic device 1000 also includes an audio acquisition device, a speaker, a radio frequency circuit, an input unit, a sensor, an audio circuit, a wireless fidelity (Wireless Fidelity, Wi-Fi) module, a power supply, a Bluetooth module and other components, which will not be repeated here.

[0161] An embodiment of the present application also provides a computer-readable medium, which stores at least one program code, and the at least one program code is loaded and executed by the processor to implement the processing method of the simulated card shown in the above embodiments.

[0162] An embodiment of the present application also provides a computer program product, which stores at least one program code, and the at least one program code is loaded and executed by the processor to implement the processing method of the simulated card shown in the above embodiments.

[0163] In some embodiments, the computer program product involved in the embodiments of the present application may be deployed and executed on a user electronic device, or on multiple user electronic devices located at one location, or on multiple user electronic devices distributed at multiple locations and interconnected by a communication network. Multiple user electronic devices distributed at multiple locations and interconnected by a communication network may constitute a blockchain system.

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

[0165] 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 method for processing a simulated card, characterized in that: The method comprises: In the case where multiple simulated cards are activated, when responding to a card reading instruction of the simulated identification device based on the first radio frequency parameter fails, determining rotation configuration information, the rotation configuration information being used to indicate a method of rotatingly selecting radio frequency parameters of the multiple simulated cards; Based on the rotation configuration information and the radio frequency parameters of the multiple simulated cards, the currently selected second radio frequency parameters are determined in sequence, and the card reading instruction of the simulated identification device is responded to based on the second radio frequency parameters until the response to the card reading instruction is successful.

2. The method according to claim 1, characterized in that Determining a second radio frequency parameter based on the rotation configuration information and the radio frequency parameters of the plurality of simulated cards includes: The rotation configuration information includes a type rotation sequence of the plurality of simulated cards, and based on the type rotation sequence, determining a first type of the currently rotated simulated card; The radio frequency parameters of the first type of simulated card are determined from the radio frequency parameters of the multiple simulated 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 simulated card from the radio frequency parameters of the plurality of simulated cards to obtain the second radio frequency parameters includes: The rotation configuration information also includes a rotation order of a plurality of simulated cards of the same type, and the plurality of simulated cards of the first type are determined from the plurality of simulated cards; Determine the current simulated card to be rotated based on the rotation order of the plurality of simulated cards of the first type; Determine the radio frequency parameters of the currently rotated analog card to obtain the second radio frequency parameters.

4. The method according to claim 1, characterized in that The determining of the second radio frequency parameter based on the rotation configuration information and the radio frequency parameters of the plurality of simulated cards comprises: The radio frequency parameters include multiple radio frequency sub-parameters, the rotation configuration information includes a rotation order of the multiple radio frequency sub-parameters of the multiple simulated cards, and based on the rotation order of the multiple radio frequency sub-parameters of the multiple simulated cards, determining a first radio frequency sub-parameter of the simulated card currently rotated; 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 last response to the card reading instruction, and 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 comprises: When receiving a card reading instruction from the analog identification device, selecting the first radio frequency parameter from the radio frequency parameters of the multiple analog cards; When the number of times of responding to the card reading instruction based on the first radio frequency parameters reaches a preset number but the card reading instruction is still received, it is determined that responding to the card reading instruction of the analog identification device based on the first radio frequency parameters fails.

6. The method according to claim 5, characterized in that Selecting the first radio frequency parameter from the radio frequency parameters of the multiple simulated cards includes any of the following implementations: Selecting a default radio frequency parameter of a simulated card from the radio frequency parameters of the multiple simulated cards to obtain the first radio frequency parameter; Acquire a current location, select a first simulated card from the multiple simulated cards based on the current location, acquire a radio frequency parameter of the first simulated card to obtain the first radio frequency parameter, the first simulated card being the simulated card with the highest probability of being used at the current location; The frequencies at which the multiple simulated cards are used are obtained, and based on the frequencies at which the multiple simulated cards are used, a second simulated card with the highest frequency of use is selected from the multiple simulated cards, and the radio frequency parameters of the second simulated card are obtained to obtain the first radio frequency parameters.

7. The method according to claim 1, characterized in that Responding to a card reading instruction of a simulated identification device based on a first radio frequency parameter includes: Sending a card reading response to the analog identification device based on the first radio frequency parameter, wherein the card reading response carries a first fusion parameter, and the first fusion parameter is obtained by fusing the contactless parameters of the multiple analog cards; The method further comprises: When responding to a card reading instruction of the analog identification device based on the first radio frequency parameter fails, re-integrating the contactless parameters of the plurality of analog cards to obtain a second integrated parameter; A card reading response is sent to the analog identification device, where the card reading response carries the second fusion parameter.

8. The method according to claim 7, characterized in that The sending a card reading response to the analog identification device comprises: Based on the second radio frequency parameter, sending a card reading response to the analog identification device; or, Based on the first radio frequency parameter, a card reading response is sent to the analog identification device.

9. The method according to claim 7, characterized in that: The contactless parameters include a Class A card inquiry response ATQA, a unique identification number UID, a card selection response SAK and a card selection reply ATS; re-fusing the non-contact parameters of the plurality of simulated cards to obtain second fused parameters; At least one of ATQA and SAK in the contactless parameters of the multiple simulated cards is re-fused, and the fusion method of UID and ATS in the contactless parameters of the multiple simulated cards is kept unchanged to obtain the second fusion parameter.

10. A processing device for simulating a card, characterized in that: The device comprises: A first determination module is used to determine rotation configuration information when a card reading instruction of the analog identification device fails to be responded to based on the first radio frequency parameter when multiple analog cards are activated, wherein the rotation configuration information is used to indicate a method of rotatingly selecting the radio frequency parameters of the multiple analog cards; The rotation module is used to determine the currently selected second radio frequency parameters based on the rotation configuration information and the radio frequency parameters of the multiple simulated cards in turn, and respond to the card reading instruction of the simulated identification device based on the second radio frequency parameters until the response to the card reading instruction is successful.

11. An electronic device, characterized in that: The electronic device includes one or more processors and one or more memories, wherein at least one program code is stored in the one or more memories, and the at least one program code is loaded and executed by the one or more processors to implement the simulated card processing method as described in any one of claims 1 to 9.

12. A computer-readable storage medium, characterized in that: The storage medium stores at least one program code, and the at least one program code is loaded and executed by the processor to implement the processing method of the simulated card according to any one of claims 1 to 9.

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

Citation Information

Patent Citations

  • Simulation card management method, simulation card management device, storage medium and electronic equipment

    CN111784335A

  • Card selection method for NFC card simulation mode, chip, terminal and storage medium

    CN112069848A

  • Communication method and equipment based on NFC

    CN112395894A

  • Card swiping method, card controller, electronic equipment and storage medium

    CN113361293A

  • Radio frequency parameter compatible method, electronic equipment and readable storage medium

    CN115035642A