Simulation card switching method and device, terminal and storage medium
By automatically switching analog cards based on historical card swiping behavior, the problems of low card swiping efficiency and high power consumption are solved, and a more efficient card swiping process and lower power consumption are achieved.
Patent Information
- Application Number
- CN202411650406.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-18
- Publication Date
- 2025-02-25
AI Technical Summary
After the terminal fails to swipe the card, it needs to switch to other analog cards, resulting in a reduced card swipe efficiency and continuously enable the positioning function to determine the real-time positioning position, which has power consumption problems.
By determining the card swipe period and card cutting information of each simulated card based on the historical card swipe behavior, including the card cutting time point and the card cutting order, the first order simulation card is automatically switched.
Improve card swiping efficiency, reduce the step of switching analog cards again after failing to swipe the card, and saves power consumption.
Smart Images

Figure CN119521184A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of communication technology, and in particular to a switching method, device, terminal and storage medium for an analog card. Background Art
[0002] The NFC (Near Field Communication) technology of the terminal allows users to implement the simulated card swiping function by touching the terminal to the card reader. During the card swiping process, the terminal activates the first simulated card in the simulated card sequence for swiping. In the case of a card swiping failure, the terminal needs to switch to another simulated card and swipe it again, resulting in reduced card swiping efficiency.
[0003] In the related art, the terminal stores the card swiping location corresponding to the simulated card. When the positioning information indicates that the card swiping location has been reached, the terminal switches the first-order simulated card to the simulated card corresponding to the current card swiping location. However, the method of determining the simulated card according to the card swiping location requires the positioning function to be turned on, which has power consumption issues. Summary of the invention
[0004] The embodiment of the present application provides a method, device, terminal and storage medium for switching an analog card. The technical solution is as follows:
[0005] On the one hand, an embodiment of the present application provides a method for switching an analog card, the method comprising:
[0006] Based on historical card swiping behaviors, determining a swiping time period for each of the simulated cards;
[0007] Based on the card swiping period of each of the simulated cards, determining the card switching information of each of the simulated cards, the card switching information including at least one of a card switching time point and a card switching sequence, the card switching time point refers to a time point when the simulated card is set as a first-priority simulated card, the first-priority simulated card being the first activated simulated card in the card swiping process, and the card switching sequence is used to characterize the order of switching between different simulated cards;
[0008] The first priority simulated card is switched based on the card switching information.
[0009] On the other hand, an embodiment of the present application provides a switching device for a simulation card, the device comprising:
[0010] A time period determination module, used to determine the card swiping time period of each of the simulated cards based on historical card swiping behaviors;
[0011] an information determination module, configured to determine the card switching information of each of the simulated cards based on the card swiping period of each of the simulated cards, wherein the card switching information includes at least one of a card switching time point and a card switching sequence, wherein the card switching time point refers to a time point when the simulated card is set as a first-priority simulated card, wherein the first-priority simulated card is the first activated simulated card during the card swiping process, and the card switching sequence is used to characterize the order of switching between different simulated cards;
[0012] A card switching module is used to switch the first-priority simulated card based on the card switching information.
[0013] On the other hand, an embodiment of the present application provides a terminal, which includes a processor and a memory, wherein the memory stores at least one computer instruction, and the at least one computer instruction is loaded and executed by the processor to implement the switching method of the simulation card as described in the above aspect.
[0014] On the other hand, an embodiment of the present application provides a computer storage medium, wherein the computer-readable storage medium stores at least one computer instruction, and the at least one computer instruction is loaded and executed by a processor to implement the switching method of the simulation card as described in the above aspects.
[0015] On the other hand, an embodiment of the present application provides a computer program product, which includes computer instructions, and the computer instructions are stored in a computer-readable storage medium; the processor of the terminal reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the terminal implements the analog card switching method described in the above aspects.
[0016] In the related art, in order to improve the efficiency of card swiping, the terminal stores the correspondence between the simulated card and the card swiping location. When the terminal arrives at the card swiping location, the first-order simulated card is switched to the simulated card corresponding to the card swiping location. The terminal needs to keep the positioning function turned on to determine the real-time location of the terminal, which has power consumption problems.
[0017] In the embodiment of the present application, the terminal can automatically switch the first-priority analog card by determining the card switching information of the analog card, thereby improving the card swiping efficiency. Among them, since the switching information of the analog card is determined based on the card swiping period of the analog card, and the card swiping period is determined based on the historical card swiping behavior, the card switching information of the analog card determined by the terminal is consistent with the user's behavior habits, which is conducive to improving the card swiping success rate after the terminal switches to the first-priority analog card, eliminating the step of switching to other analog cards again after the card swiping fails, and improving the card swiping efficiency. Compared with the relevant technology, since the terminal does not necessarily need to adopt the real-time positioning function when switching the first-priority analog card, the technical solution provided by the embodiment of the present application can save power consumption. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Figure 1 is a flow chart of a method for switching a simulation card provided by an exemplary embodiment of the present application;
[0019] Figure 2 is a flowchart of a process for determining a card cutting order provided by an exemplary embodiment of the present application;
[0020] Figure 3 is a flowchart of a process for determining a card cutting order provided by another exemplary embodiment of the present application;
[0021] Figure 4 is a flowchart of a process for determining a card cutting order provided by another exemplary embodiment of the present application;
[0022] Figure 5 is a flow chart of a method for switching a simulation card provided by another exemplary embodiment of the present application;
[0023] Figure 6 is a structural schematic diagram of a switching device for a simulation card provided by an exemplary embodiment of the present application;
[0024] Figure 7 It is a schematic diagram of the structure of a terminal provided by an exemplary embodiment of the present application. DETAILED DESCRIPTION
[0025] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below in conjunction with the accompanying drawings.
[0026] The NFC (Near Field Communication) technology of the terminal allows users to implement the simulated card swiping function by touching the terminal to the card reader. During the card swiping process, the terminal activates the first simulated card in the simulated card sequence for swiping. In the case of a card swiping failure, the terminal needs to switch to another simulated card and swipe it again, resulting in reduced card swiping efficiency.
[0027] In the related art, in order to improve the efficiency of card swiping, the terminal stores the correspondence between the simulated card and the card swiping location. When the terminal arrives at the card swiping location, the first-order simulated card is switched to the simulated card corresponding to the card swiping location. The terminal needs to keep the positioning function turned on to determine the real-time location of the terminal, which has power consumption problems.
[0028] Considering that the user's card swiping behavior may have a periodic timing law, the embodiment of the present application provides a method for switching analog cards, which can summarize the switching information of each module card according to the user's historical card swiping behavior, thereby automatically switching the first-order analog card to improve the card swiping efficiency. Since the terminal determines the card switching information based on the time information, it is not necessary to use the real-time positioning function. Therefore, the technical solution provided by the embodiment of the present application can save power consumption compared with the related technology.
[0029] See also Figure 1 , Figure 1 The flowchart of a method for switching a simulation card provided by an exemplary embodiment of the present application includes the following steps.
[0030] Step 101, based on historical card swiping behaviors, determine the card swiping time period of each simulated card.
[0031] In some embodiments, historical card swiping behavior refers to the behavior of a user using a terminal to contact a card reader to swipe a card. The user's historical card swiping behavior may have a time sequence pattern, for example, the user's historical card swiping behavior is related to the user's work and rest time. In the embodiment of the present application, by determining the card swiping time period of each simulated card, the time sequence pattern of the user's historical card swiping behavior is obtained to improve the accuracy of card cutting.
[0032] In some embodiments, the card swiping period is used to represent a time period when the user has concentrated card swiping behavior.
[0033] Optionally, the terminal can record the swiping time of the currently used simulated card after each successful swiping, so as to determine the swiping time period of each simulated card, which includes the swiping time points of the same simulated card in the historical swiping behavior. For example, the swiping time points of the user arriving at work in the morning and swiping the card are 8:12, 8:18, 8:11, and 8:25 respectively. The terminal can determine the time period from 8:00 to 8:30 covering these swiping time points as the swiping time period of the company's access card.
[0034] In a possible implementation, the terminal counts the card swiping time points of historical card swiping behaviors and the simulated cards swiped in the historical card swiping behaviors, and then uses a clustering algorithm to aggregate the card swiping time points of a single simulated card to obtain the card swiping time period corresponding to the single simulated card. The terminal uses the same processing method for each simulated card to obtain the card swiping time period of each simulated card.
[0035] For example, the swipe time points of the company's access card in the historical swipe behavior include 8:12, 8:18, 8:11, 8:25, 17:25, 17:15, 17:01 and 17:23. The terminal uses the K-Means algorithm to process the aforementioned swipe time points, and determines that the swipe time points 8:12, 8:18, 8:11 and 8:25 belong to the same swipe time period, and the swipe time points 17:25, 17:15, 17:01 and 17:23 belong to the same swipe time period, and obtains the swipe time period 8:11 to 8:25, and the swipe time period 17:01 to 17:25. The terminal can also adopt other clustering algorithms, such as the Jenks Natural Breaks (natural breakpoint classification) algorithm, etc. This example is not used to limit the specific clustering algorithm.
[0036] In another possible implementation, the terminal collects statistics on the card swiping locations and card swiping time points of historical card swiping behaviors to determine the card swiping time periods of each simulated card at different locations. The terminal uses the positioning function to determine the card swiping location only when the card swiping is successful.
[0037] Exemplarily, the terminal counts the card swiping times at subway stations at 18:00, 18:07, and 18:25, and determines the card swiping period at subway stations from 18:00 to 18:25. Furthermore, the terminal counts the card swiping times at bus stations, and determines the card swiping period at bus stations, thereby obtaining two card swiping periods for the transportation card.
[0038] Optionally, after determining the card swiping time period, the terminal can compare different card swiping time periods of the same simulated card. When the number of historical card swiping behaviors contained in two adjacent card swiping time periods of the same simulated card is greater than the quantity threshold, and the time interval between adjacent card swiping time periods is less than the time interval threshold, the terminal merges the two adjacent card swiping time periods of the same simulated card. For example, when the adjacent card swiping time periods of the same simulated card both contain more than two historical card swiping behaviors, and the time interval between adjacent card swiping time periods of the same simulated card is less than 1 minute, the terminal merges the adjacent card swiping time periods.
[0039] Optionally, the terminal may exclude the card swiping period if the number of historical card swiping behaviors included in the card swiping period is less than a quantity threshold. For example, if the card swiping period includes only one historical card swiping behavior, the card swiping period is excluded.
[0040] Optionally, the terminal counts historical card swiping behaviors within the same statistical period to determine the card swiping time period of each simulated card within the statistical period.
[0041] Step 102, based on the card swiping time period of each simulated card, determine the card switching information of each simulated card, the card switching information includes at least one of a card switching time point and a card switching sequence, the card switching time point refers to the time point when the simulated card is set as the first-priority simulated card, the first-priority simulated card is the first activated simulated card in the card swiping process, and the card switching sequence is used to characterize the order of switching between different simulated cards.
[0042] In some embodiments, the card switching information is used to determine the card switching timing for each simulated card to be switched to the first-priority simulated card.
[0043] Optionally, a single simulated card may have multiple swipe time periods, and the swipe time periods of different simulated cards may be different or may overlap. The swipe time periods of different simulated cards can be used to determine whether there is a time sequence relationship between different simulated cards. The swipe time period of a single simulated card can represent the swipe time range of a single simulated card.
[0044] Step 103: switch the first-priority simulated card based on the card switching information.
[0045] In a possible implementation, when the terminal reaches the card cutting time point of the first simulation card, the terminal sets the first simulation card as the first-priority simulation card, and when the card cutting time point of the second simulation card is reached, the terminal switches the second simulation card to the first-priority simulation card.
[0046] In another possible implementation, the terminal first switches the first simulation card in the card switching sequence to the first-priority simulation card according to the card switching sequence, and then switches the second simulation card to the first-priority simulation card after the first simulation card is used.
[0047] In the embodiment of the present application, the terminal can automatically switch the first-priority analog card by determining the card switching information of the analog card, thereby improving the card swiping efficiency. Among them, since the switching information of the analog card is determined based on the card swiping period of the analog card, and the card swiping period is determined based on the historical card swiping behavior, the card switching information of the analog card determined by the terminal is consistent with the user's behavior habits, which is conducive to improving the card swiping success rate after the terminal switches to the first-priority analog card, eliminating the step of switching to other analog cards again after the card swiping fails, and improving the card swiping efficiency. Compared with the relevant technology, since the terminal does not necessarily need to adopt the real-time positioning function when switching the first-priority analog card, the technical solution provided by the embodiment of the present application can save power consumption.
[0048] In some embodiments, the terminal determines the card cutting time point of each simulated card based on the card swiping time period of each simulated card.
[0049] Optionally, the terminal determines the card cutting time point of the simulated card based on the starting time point and the time advance amount in the card swiping period of the simulated card.
[0050] Exemplarily, the swiping time period of the home access card is between 8:00 and 9:00, the time advance is 15 minutes, and the terminal determines that the card cutting time of the home access card is 7:45.
[0051] In a possible implementation, the terminal first determines the card swiping time periods corresponding to different simulated cards based on the card swiping time points of historical card swiping behaviors. Considering that the longer the time interval between the card swiping time periods, the greater the probability of incorrect card cutting. When the time interval between two adjacent card swiping time periods is greater than or equal to the interval time threshold, the terminal determines the card cutting time point based on the starting time point and time advance of the card swiping time period. When the time interval between two adjacent card swiping time periods is less than the interval time threshold, the average time point between the end time point of the previous card swiping time period and the starting time point of the next card swiping time period is determined as the simulated card cutting time point corresponding to the next card swiping time period.
[0052] Optionally, the terminal may also determine the simulated card cutting time point based on the simulated card starting time point. For example, the home access card swipe time period is between 8:00 and 9:00, and the terminal determines the home access card cutting time to be 8:00.
[0053] In other embodiments, the terminal determines a card switching order for each of the at least two simulated cards when a card swiping period of the at least two simulated cards indicates that the at least two simulated cards have a switching timing relationship.
[0054] Regarding the representation method of the card cutting order, optionally, the terminal can record the order of card cutting between the simulated cards, for example, the home access card is before the transportation card, and the transportation card is before the company access card. The terminal can also record the card cutting sequence, in which the simulated cards are arranged in sequence, for example, the card cutting sequence is access card A, transportation card B, access card C, transportation card B and access card A.
[0055] The switching timing relationship refers to the existence of a correlation between the switching timings of each of at least two simulated cards. For example, in the scenario where the user is commuting, the home access card, transportation card, and company access card are associated in terms of switching timing. For another example, in the scenario where the user is going out for fun, the home access card, car key, and shopping discount card are associated in terms of switching timing.
[0056] Regarding the determination of the switching timing relationship, considering that the analog cards with the switching timing relationship are relatively compact in usage time, the terminal can optionally determine whether different analog cards have a switching timing relationship based on the distribution of the card swiping time periods of different analog cards. Figure 2 As shown, the process of determining the card cutting order includes the following steps:
[0057] Step 201, when the card swiping time periods of at least two simulated cards overlap, or the time interval between the card swiping time periods of at least two simulated cards is less than a time threshold, it is determined that at least two simulated cards have a switching timing relationship.
[0058] In a possible implementation, when the end time point of the card swiping period of the simulated card is within the card swiping period of other simulated cards, the terminal determines that the card swiping time periods of at least two simulated cards overlap.
[0059] For example, the swipe time period for a home access card is from 8:00 to 8:30, the swipe time period for a transportation card is from 8:15 to 8:50, and the swipe time period for a company access card is from 8:40 to 9:30. There is an intersection between the swipe time period for the home access card and the swipe time period for the transportation card, and there is an intersection between the swipe time period for the transportation card and the swipe time period for the company access card. The terminal determines that there is a switching timing relationship between the home access card, the transportation card, and the company access card.
[0060] In a possible implementation, the terminal determines that the time interval between the card swiping periods of at least two simulated cards is less than the time threshold when the time interval between the end time point of the card swiping period of the simulated card and the start time point of the card swiping period of other simulated cards is less than the time threshold, wherein the card swiping period of other simulated cards is located after the end time point.
[0061] For example, the swipe time period for home access cards is from 8:00 to 8:30, the swipe time period for transportation cards is from 8:45 to 8:50, and the swipe time period for company access cards is from 8:56 to 9:30, and the duration threshold is 20 minutes. Among them, the interval between the swipe time period for home access cards and the swipe time period for transportation cards is 15 minutes, and the interval between the swipe time period for transportation cards and the swipe time period for company access cards is 6 minutes, both of which are less than the duration threshold, and the terminal determines that there is a switching timing relationship between home access cards, transportation cards, and company access cards.
[0062] Optionally, when the time interval between the card swiping periods of at least two simulated cards is greater than the duration threshold, the terminal determines that the at least two simulated cards do not have a switching timing relationship, that is, the card switching order cannot be determined therefrom.
[0063] Optionally, when there is no intersection between all the card swiping time periods of at least two simulated cards, the terminal can also determine that at least two simulated cards have a switching timing relationship. The terminal can determine the card switching order of each simulated card based on the arrangement order of the card swiping time periods of different simulated cards. For example, the card swiping time period of simulated card 1 is from 8:00 to 9:00, the card swiping time period of simulated card 2 is from 11:00 to 12:00, and the card swiping time period of simulated card 3 is from 16:00 to 18:00. The terminal determines that there is a switching timing relationship between simulated card 1, simulated card 2 and simulated card 3, and the card switching order is simulated card 1, simulated card 2 and simulated card 3.
[0064] Step 202: determining a card switching order of each of the at least two simulated cards based on historical card swiping behaviors of the at least two simulated cards.
[0065] Among them, at least two analog cards have a switching timing relationship.
[0066] Optionally, the terminal may determine a card cutting order of at least two simulated cards based on the card swiping times of historical card swiping behaviors of the at least two simulated cards.
[0067] Optionally, the terminal may also determine the card cutting order of the at least two simulation cards based on the card swiping locations and card swiping times of the historical card swiping behaviors of the at least two module cards.
[0068] In the embodiment of the present application, the terminal can determine the card cutting time point according to the historical card swiping time period to realize the switching of the first-order simulation card, and can also realize the switching of the first-order simulation card according to the card cutting order of each simulation card. By providing a variety of card cutting information determination methods, the switching methods of the first-order simulation cards are enriched, so that the terminal can adopt an appropriate switching method and improve the switching accuracy.
[0069] Among them, the terminal sets the card switching time point of the simulated card between the card swiping periods, which is beneficial for the terminal to complete the switching of the first-priority simulated card before the user swipes the card to ensure correct card swiping.
[0070] In addition, the terminal determines the simulated cards with switching timing relationships from multiple simulated cards based on the intersection of card swiping time periods or the time interval between card swiping time periods being less than a time threshold, and further determines the card cutting order of each simulated card, thereby improving the accuracy of the terminal in determining the card cutting order.
[0071] In some embodiments, at least two analog cards have a switching timing relationship. When determining the switching order of each of the at least two analog cards, the terminal may adopt the following two determination methods:
[0072] Method 1: Determine the card switching order based on the card swiping time sequence. Figure 3 As shown, the following steps are included:
[0073] Step 301, based on the card swiping time points in the historical card swiping behaviors of at least two simulated cards within the unit time length, generate a card swiping time series of at least two simulated cards within the unit time length, wherein the card swiping time series includes the card swiping time points of the at least two simulated cards within the unit time length.
[0074] Optionally, the unit duration is determined according to the card swiping time periods of at least two simulated cards having a switching timing relationship. For example, the card swiping time period of simulated card 1 is from 8:00 to 9:00, the card swiping time period of simulated card 2 is from 8:30 to 10:00, and the card swiping time period of simulated card 3 is from 10:10 to 11:00. The card swiping time periods of simulated card 1 and simulated card 2 overlap, and the time interval between the card swiping time periods of simulated card 2 and simulated card 3 is less than a time threshold of 30 minutes. The terminal determines that there is a switching timing relationship between simulated card 1, simulated card 2, and simulated card 3, and the unit duration is 3 hours between 8:00 and 11:00.
[0075] In some embodiments, the card swiping time sequence includes the card swiping time points of historical card swiping behaviors and the simulated cards swiped at the card swiping time points in chronological order, wherein the card swiping time point is the time point when the simulated card is successfully swiped.
[0076] Exemplarily, the card swiping time sequence of at least two simulated cards within a unit time is as follows: the card swiping time point of simulated card 1 is 8:10, the card swiping time point of simulated card 2 is 8:45, and the card swiping time point of simulated card 3 is 10:20.
[0077] Step 302: Determine a card switching order of at least two simulated cards based on a card swiping time sequence within a plurality of unit time lengths.
[0078] In some embodiments, the card swiping time period is determined based on historical card swiping behaviors within the same statistical period. The multiple unit durations include unit durations of different days within the same statistical period, and also include unit durations of different time periods on the same day within the same statistical period. Correspondingly, the card swiping time series also includes card swiping time series of different days within the same statistical period, and card swiping time series of different time periods on the same day within the same statistical period.
[0079] In a possible card switching scenario, a user often swipes a home access card to go out on weekday mornings, then swipes a transit card to work, and then swipes a company access card to go to work. The terminal determines that the swipe time period for the home access card is between 8:00 and 8:30, the swipe time period for the transit card is between 8:30 and 9:00, and the swipe time period for the company access card is between 9:10 and 9:30. The terminal determines the swipe time sequence within the unit time length from 8:00 to 9:00. The swipe time sequence is different on different weekdays.
[0080] In another possible card switching scenario, the user often swipes the company access card to leave work on the afternoon of the working weekday, then swipes the transportation card to come in, and then swipes the home access card to go home. The terminal determines that the swipe time period for the home access card is between 17:00 and 17:25, the swipe time period for the transportation card is between 17:30 and 18:00, and the swipe time period for the company access card is between 17:55 and 18:30. The terminal determines the swipe time sequence within the unit time length of 17:00 to 18:30. Among them, the swipe time sequence is different on different working days.
[0081] Based on the above two possible card cutting scenarios, it can be known that there may be multiple card cutting time sequences on different working days. There may be multiple card cutting sequences for at least two simulated cards determined by the terminal, and each card cutting sequence corresponds to a different card cutting scenario. Among them, the terminal determines different card cutting sequences based on the card cutting time sequences within the unit time length in different time periods of the same day.
[0082] Optionally, in different days of the same statistical period, the terminal determines the card switching order of at least two simulated cards within the unit time length based on the card swiping time sequence within the unit time length of the same period.
[0083] In a possible implementation, the terminal determines a single candidate card switching sequence corresponding to a single card swiping time sequence according to the single card swiping time sequence, and then compares the candidate card switching sequences corresponding to different card swiping time sequences. When the number of repetitions of the same candidate card switching sequence is greater than or equal to the number threshold, the candidate card switching sequence is determined as the target card switching sequence corresponding to at least two simulated cards having a switching timing relationship.
[0084] Exemplarily, the terminal takes 5 days as a statistical period, wherein the card swiping time sequence within the unit time length from 8:00 to 11:00 is shown in Table 1. The number threshold corresponding to the number of repetitions of the candidate card switching sequence is 3.
[0085] Among them, the candidate card cutting order corresponding to the card swiping time sequence on the second day is simulated card 2 and simulated card 3. The candidate card cutting order corresponding to the card swiping time sequence on the fourth day is simulated card 1 and simulated card 3. The candidate card cutting order corresponding to the card swiping time sequence on the first, third and fifth days is simulated card 1, simulated card 2 and simulated card 3, and this candidate card cutting order appears 3 times, which is equal to the number threshold. The terminal determines the target card cutting order as simulated card 1, simulated card 2 and simulated card 3.
[0086] Table 1
[0087] Day 1 Sim Card 1 / 8:01 Sim Card 2 / 9:01 Sim Card 3 / 10:01 Day 2 Sim Card 2 / 8:20 —— Sim Card 3 / 10:36 Day 3 Sim Card 1 / 8:32 Sim Card 2 / 9:30 Sim Card 3 / 10:50 Day 4 —— Sim Card 1 / 9:22 Sim Card 2 / 10:23 Day 5 Sim Card 1 / 8:45 Sim Card 2 / 9:50 Sim Card 3 / 10:01
[0088] In another possible implementation, the terminal first determines the probability of each simulated card being the starting simulated card in the card cutting order according to different card swiping time sequences, and selects the simulated card with the highest probability as the starting simulated card. Then, the terminal determines the probability of each simulated card being arranged after the starting simulated card, and then determines the card cutting order of subsequent simulated cards according to the probabilities in turn until the last simulated card in the card cutting order is determined.
[0089] Exemplarily, as shown in Table 1, the probability that analog card 1 is the starting analog card is 75%, and the probability that analog card 2 is the starting analog card is 25%. The terminal determines that the starting analog card in the card switching sequence is analog card 1, and then the probability that the terminal switches from analog card 1 to analog card 2 is 100%, and the probability that the terminal switches from analog card 1 to analog card 3 is 0%, and it is determined that analog card 2 is arranged after analog card 1 in the card switching sequence. Since Table 1 also has the situation of switching from analog card 2 to analog card 3, and the situation of no longer switching analog cards after switching to analog card 2, the terminal continues to calculate and obtains that the probability of switching from analog card 2 to analog card 3 is 80%, and the probability of ending after switching to analog card 2 is 20%. The terminal adds analog card 3 to the card switching sequence. Since there is no situation of switching analog cards after analog card 3 in Table 3, the terminal stops the probability calculation and determines that the card switching sequence is analog card 1, analog card 2 and analog card 3.
[0090] In some embodiments, at least two simulations may have only one card cutting order, or may have at least two card cutting orders.
[0091] Optionally, when at least two simulated cards have at least two card cutting sequences, the terminal determines the applicable time periods corresponding to the at least two card cutting sequences, wherein the card cutting sequences of at least two simulated cards in the same applicable time period are the same, and the card cutting sequences of at least two simulated cards in different applicable time periods are different.
[0092] In a possible implementation, when the card switching sequence is determined by a card swiping time sequence within a plurality of unit durations of the same time period, the terminal determines the time period corresponding to the unit duration as the applicable time period of the card switching sequence. The unit duration is determined based on the card swiping time periods of at least two simulated cards having a switching timing relationship, and the applicable time period includes the card swiping time periods of at least two simulated cards.
[0093] In another possible implementation, the terminal determines the starting time point in the card swiping time period corresponding to the starting simulated card in each card cutting sequence as the starting time point of the applicable time period corresponding to each card cutting sequence, and then sorts the starting time points of the applicable time periods corresponding to at least two card cutting sequences, and then determines the interval time periods between the sorted different starting time points as the applicable time period corresponding to each card cutting sequence.
[0094] Method 2: Use the card cutting sequence recognition model to determine the card cutting sequence. Figure 4 As shown, the following steps are included:
[0095] Step 401, determining the simulated card type of each of the at least two simulated cards based on the card swiping location information in the historical card swiping behaviors of the at least two simulated cards.
[0096] The card swiping location information is used to characterize the card swiping location of the historical card swiping behavior in order to distinguish different simulated card types. Optionally, the card swiping location information may include GPS (Global Positioning System) positioning information, WiFi (Wireless Fidelity) network information of the card swiping location, cellular network information of the card swiping location, etc.
[0097] In the related art, analog cards are classified according to their functions. For example, the terminal classifies analog cards into access cards, car keys, bank cards, transportation cards, etc.
[0098] In the embodiment of the present application, the user may have multiple access control cards. In order to achieve detailed classification of analog cards so that the terminal can accurately determine the card cutting order of different analog cards, the terminal determines the type of analog card according to the card swiping location information. For example, because the card swiping location information of the home access control card and the company access control card are different, the terminal determines that the home access control card and the company access control card belong to different analog card types, which is conducive to the terminal determining the card cutting order between the home access control card and the company access control card.
[0099] In a possible implementation, the terminal determines that the at least two simulated cards belong to different simulated card types when the card swiping location information of the at least two simulated cards indicates different card swiping locations.
[0100] For example, if the card swiping location information indicates that the historical card swiping behavior was at a bus stop, the terminal determines the simulated card type as a transportation card. For another example, if the card swiping location information indicates that the historical card swiping behavior was at a company, the terminal determines the simulated card type as a company access card.
[0101] Step 402, based on the card swiping time points of the historical card swiping behaviors of at least two simulated cards within the unit time length, generate a card swiping time series of at least two simulated cards within the unit time length, wherein the card swiping time series includes the card swiping time points of the at least two simulated cards within the unit time length.
[0102] Optionally, the unit duration is determined according to card swiping time periods of at least two simulated cards having a switching timing relationship.
[0103] In some embodiments, the card swiping time sequence includes the card swiping time points of historical card swiping behaviors and the simulated cards swiped at the card swiping time points in chronological order, wherein the card swiping time point is the time point when the simulated card is successfully swiped.
[0104] Step 403: input the card swiping time series within a plurality of unit time lengths and the simulated card types into a card cutting sequence recognition model, and obtain the card cutting sequence recognition model output to determine the card cutting sequence of at least two simulated cards.
[0105] Optionally, the card switching sequence recognition model can be used to determine the card switching sequence of at least two simulated cards in the same time period. For example, during the time period when the user is commuting to work, at least two simulated cards have the card switching sequence in the same time period.
[0106] In a possible implementation, the terminal inputs the card swiping time series within multiple unit time lengths of the same time period on different days of the same statistical period and the simulated card types of at least two simulated cards into a card cutting order recognition model to obtain the card cutting order of at least two simulated cards within the unit time length of the time period.
[0107] Optionally, the card switching sequence recognition model can also be used to determine a unified card switching sequence for at least two simulated cards in different time periods. For example, in different user travel periods, users have the habit of swiping their home access card first and then their transportation card or car key.
[0108] In another possible implementation, the terminal inputs the card swiping time series within multiple unit time lengths at different days and time periods in the same statistical period and the simulated card types of at least two simulated cards into a card cutting order recognition model to obtain at least one card cutting order for at least two simulated cards.
[0109] It should be noted that the terminal inputs the simulated card types of at least two simulated cards together with the card swiping time series into the card cutting sequence recognition model, which enriches the feature information input into the card cutting sequence recognition model and is conducive to improving the accuracy of sequence recognition.
[0110] In the embodiment of the present application, the terminal can adopt two methods to determine the card cutting order of at least two simulated cards. In one determination method, the terminal generates a card swiping time sequence according to the card swiping time points in the historical card swiping behavior, and summarizes the card cutting order from multiple card swiping time sequences. This method can make the card cutting order determined by the terminal consistent with the user's historical card swiping behavior, ensuring the accuracy of the card cutting order determined by the terminal.
[0111] In another determination method, the terminal inputs the simulated card type classified according to the card swiping location information and the card swiping time sequence into the card cutting order recognition model to obtain the card cutting order of at least two simulated cards. Among them, by inputting the simulated card type into the card cutting order recognition model, the terminal can improve the richness of the feature information obtained by the model, thereby further improving the accuracy of determining the card cutting order.
[0112] In addition, when at least two types of simulated cards have at least two card cutting sequences, the terminal needs to determine the applicable time periods corresponding to each card cutting sequence, so that the terminal can adopt the corresponding card cutting sequence in the applicable time period to improve the accuracy of card cutting.
[0113] The following embodiments specifically illustrate the switching method of the first-order analog card in this application.
[0114] Optionally, the target simulated card among the at least two simulated cards may or may not have a card switching order. In the case of a card switching order, the way in which the starting simulated card and other simulated cards in the card switching order switch the first-priority card is different. It can be seen that the implementation steps of the terminal switching the first-priority simulated card based on the card switching information can be divided into the following three cases:
[0115] Case 1: When the target simulated card does not have a card cutting order, when the card cutting time point of the target simulated card is reached, the target simulated card is set as the first-order simulated card.
[0116] Case 2: When the target simulated card has a card cutting sequence, and the card cutting sequence indicates that the target simulated card is the starting simulated card, when the card cutting time point of the target simulated card is reached, the target simulated card is set as the first-order simulated card.
[0117] Case 3: When the target simulated card has a card cutting order, and the card cutting order indicates that the target simulated card is not the starting simulated card, if the preceding simulated card of the target simulated card is swiped successfully, the target simulated card is set as the first-order simulated card, and the card cutting order of the preceding simulated card is before the target simulated card.
[0118] In some embodiments, the target simulated card refers to a single simulated card to be switched to the first-priority simulated card. The target simulated card has a card switching sequence, which means that the target simulated card and at least one other simulated card can switch to the first-priority simulated card according to the card switching sequence.
[0119] Since the starting simulation card does not have a preceding simulation card, the starting simulation card is switched to the first-order simulation card when the card switching time point is reached.
[0120] In an illustrative example, there are simulated card 1, simulated card 2, simulated card 3 and simulated card 4 in the simulated card package of the terminal. Among them, simulated card 2 does not have a card cutting order, and simulated card 1, simulated card 3 and simulated card 4 have a card cutting order, which is simulated card 1, simulated card 4 and simulated card 3. When the current time reaches the card cutting time point of simulated card 2, the terminal switches simulated card 2 to the first-order simulated card. When the current time reaches the card cutting time point of simulated card 1, the terminal starts to switch simulated cards according to the card cutting order of simulated card 1. When simulated card 1 is swiped successfully, the terminal switches simulated card 4 to the first-order simulated card. When simulated card 4 is swiped successfully, the terminal switches simulated card 3 to the first-order simulated card.
[0121] Optionally, the terminal may set the starting simulated card in the card switching sequence as the first-priority simulated card when the applicable time period corresponding to the card switching sequence is reached.
[0122] In a possible card switching scenario, users often swipe their home access card, transportation card, and company access card in order. Users may use other residents' home access cards to go out, that is, the first simulated card to be swiped by the user that day is not the home access card, but the transportation card. In this case, the first simulated card is the home access card, which may easily cause the card swiping to fail.
[0123] Optionally, when the target simulated card fails to be swiped, the terminal may set the next simulated card of the target simulated card in the card switching sequence as the first-order simulated card.
[0124] Optionally, when the target simulated card fails to be swiped and the target simulated card is the last simulated card in the card switching sequence, the terminal may keep the target simulated card as the first-priority simulated card.
[0125] In the embodiments of the present application, the terminal can set the first-priority simulated card according to the card cutting time point when the first-priority simulated card cannot be set based on the card cutting order, and can also set the first-priority simulated card based on the card cutting order instead of the card cutting time point of the simulated card, so that the terminal can determine the appropriate first-priority simulated card in a variety of situations, which is conducive to improving the accuracy of the terminal in setting the first-priority simulated card.
[0126] Among them, if the target simulated card in the card switching sequence fails to be swiped, the terminal can automatically set the next simulated card in the card switching sequence as the first-priority simulated card, eliminating the user's manual setting of the simulated card process, which is conducive to improving card swiping efficiency.
[0127] Considering that the user's card swiping behavior may not remain unchanged according to a certain time sequence, the user's card swiping behavior may have different time sequences in different behavior cycles. For example, if the user's work system is a day shift system, the card swiping time sequence on weekdays is different from the card swiping time sequence on weekends. For another example, if the user's work system is a shift system, the user's card swiping time sequence is different in different work cycles.
[0128] In some embodiments, the terminal determines the card switching information of the simulated card in different statistical periods, and then switches the first-priority simulated card according to the card switching information, such as Figure 5 As shown, the following steps are included:
[0129] Step 501, based on historical card swiping behaviors in different statistical periods, determine the card swiping time periods of each simulated card in different statistical periods, and there are differences in the historical card swiping behaviors in different statistical periods.
[0130] Optionally, the terminal determines the card swiping time period of each simulated card in each statistical period based on the historical card swiping behavior in each statistical period, wherein the card swiping time periods of each simulated card determined in different statistical periods are different.
[0131] Optionally, the terminal may determine the statistical period according to the user's work system. The period lengths of different statistical periods may be the same or different.
[0132] Exemplarily, the terminal sets 10 working days in two weeks as one statistical period, and sets 4 rest days as another statistical period.
[0133] Exemplarily, the terminal sets five working days of the day shift cycle as one statistical period, and sets five working days of the night shift cycle as one statistical period.
[0134] Step 502, based on the card swiping time periods of the simulated cards in different statistical periods, determine the card cutting information of the simulated cards in different statistical periods.
[0135] Optionally, the terminal determines the card cutting time point of each simulated card in each statistical period based on the card swiping time period of each simulated card in each statistical period, or, in each statistical period, when the card swiping time period of at least two simulated cards indicates that at least two simulated cards have a switching timing relationship, determines the card cutting order of each of the at least two simulated cards in each statistical period.
[0136] Optionally, in each statistical period, the terminal determines the simulated card cutting time point based on the starting time point and the time advance in the simulated card swiping period. The time advance in different statistical periods may be the same or different.
[0137] Optionally, within each statistical period, when there is an intersection in the card swiping time periods of at least two simulated cards, or when the time interval between the card swiping time periods of at least two simulated cards is less than a time threshold, the terminal determines that at least two simulated cards have a switching timing relationship; then, the terminal determines the card switching order of each of the at least two simulated cards based on the historical card swiping behavior of the at least two simulated cards.
[0138] Optionally, within each statistical period, the terminal generates a card swiping time series of at least two simulated cards within a unit time length based on the card swiping time points in the historical card swiping behaviors of at least two simulated cards within the unit time length, and the card swiping time series includes the card swiping time points of each of the at least two simulated cards within the unit time length; then, the terminal determines the card cutting order of at least two simulated cards based on the card swiping time series within multiple unit time lengths.
[0139] Optionally, within each statistical period, the terminal determines the simulated card type of at least two simulated cards based on the card swiping location information in the historical card swiping behavior of the at least two simulated cards; then, the terminal generates a card swiping time series of at least two simulated cards within a unit time length based on the card swiping time points of the historical card swiping behavior of the at least two simulated cards within the unit time length, wherein the card swiping time series includes the card swiping time points of at least two simulated cards within the unit time length; subsequently, the terminal inputs the card swiping time series and the simulated card types within multiple unit time lengths into a card cutting order recognition model, and obtains the card cutting order determined by the card cutting order recognition model output.
[0140] Optionally, within each statistical period, when at least two simulated cards have at least two card cutting sequences, the terminal determines the applicable time periods corresponding to the at least two card cutting sequences, wherein the card cutting sequences of at least two simulated cards within the same applicable time period are the same, and the card cutting sequences of at least two simulated cards within different applicable time periods are different.
[0141] The method for determining the card switching information of each simulated card in each statistical period is as described in the above embodiments, and the embodiments of this application will not be repeated. Since the historical card swiping behaviors in different statistical periods are different, the card switching order determined by the terminal in different statistical periods is different.
[0142] Step 503: Switch the first-order simulated card based on the card switching information corresponding to the statistical period matching the current moment.
[0143] Optionally, during each statistical period, if the target simulated card does not have a card switching sequence, the terminal sets the target simulated card as the first-priority simulated card when the card switching time point of the target simulated card is reached; or, if the target simulated card has a card switching sequence and the card switching sequence indicates that the target simulated card is the starting simulated card, when the card switching time point of the target simulated card is reached, the target simulated card is set as the first-priority simulated card; or, if the target simulated card has a card switching sequence and the card switching sequence indicates that the target simulated card is not the starting simulated card, when the preceding simulated card of the target simulated card is successfully swiped, the target simulated card is set as the first-priority simulated card, and the card switching sequence of the preceding simulated card is before the target simulated card.
[0144] Optionally, in each statistical period, when the target simulated card fails to be swiped, the terminal sets the next simulated card of the target simulated card in the card switching sequence as the first-priority simulated card.
[0145] In a possible implementation, the terminal records the card swiping date of the historical card swiping behavior, and then determines the statistical period to which the card swiping date of the historical card swiping behavior belongs in combination with the calendar information, and switches the first-order simulated card according to the card switching information corresponding to the statistical period. For example, the terminal records the card swiping date of each card swiping by the user and compares it with the calendar information to determine whether the current date is a working day or a holiday, thereby determining whether to use the card switching information corresponding to the working day or the card switching information corresponding to the holiday.
[0146] In an embodiment of the present application, the terminal can determine the card swiping time period of each simulated card in each statistical period based on the historical card swiping behavior in different statistical periods, and then determine the card cutting information of each simulated card, so that the terminal can set an accurate first-priority simulated card according to different card cutting information in different statistical periods, which is beneficial to improving the card swiping success rate of the terminal in different cycle times, thereby maintaining the terminal's efficient card swiping capability.
[0147] In some embodiments, the terminal can intelligently set the first-order simulated card according to a preset rule. As described in the above embodiments.
[0148] In other embodiments, the terminal may also receive a user's setting operation on card switching information, and then switch the first-priority simulated card according to the card switching information set by the user.
[0149] Optionally, a card switching information setting switch may be provided inside the terminal to control turning on or off the card switching information setting function.
[0150] In a possible implementation, when the card cutting information setting function is turned on, the terminal receives the user's setting operation on the card cutting time point of the target simulated card, and then sets the target simulated card as the first-priority simulated card when the card cutting time point of the target simulated card is reached.
[0151] Exemplarily, the user sets the card-cutting time of the family simulation card to 7:00 and the card-cutting time of the transportation card to 8:00.
[0152] In another possible implementation, when the card cutting information setting function is turned on, the terminal receives the user's setting operation on the card cutting order of the target simulated card, and then when the card cutting time point of the starting simulated card in the card cutting order is reached, the starting simulated card is set as the first-order simulated card, and when the previous simulated card is swiped successfully, the next simulated card in the card cutting order is set as the first-order simulated card.
[0153] Exemplarily, the user sets the card switching order to home access card, transportation card, and company access card.
[0154] Considering the possibility of mistaken card switching, the user's subsequent card swiping success rate will be affected. For example, when different terminals have the NFC card swiping function turned on, simulated cards pop up when they come into contact with each other, causing the first-priority simulated card to change. Another example is that the user accidentally touches the quick card switching interface, causing the terminal to switch the first-priority simulated card.
[0155] Optionally, the terminal may receive the user's setting operation for the card swiping time period corresponding to each simulated card. The card cutting time point of each simulated card may be determined according to the starting time point of the card swiping time period and the time advance amount set by the user. For example, if the card swiping time period is from 7:00 to 8:00, the time advance amount is 5 minutes, and the terminal determines the card cutting time point to be 6:55.
[0156] In a possible implementation, the user pre-sets the card swiping time period for each simulated card to be used. If there is an erroneous card switching operation during the card swiping time period corresponding to the simulated card, the terminal sets the first-order simulated card to the simulated card corresponding to the card swiping time period at the current time according to the card swiping time period set by the user and the simulated card corresponding to the card swiping time period.
[0157] For example, during the swiping period of simulated card 1, the user mistakenly switches the first-priority simulated card from simulated card 1 to simulated card 2. The terminal sets the first-priority simulated card back to simulated card 1 according to simulated card 1 corresponding to the current swiping period.
[0158] Optionally, the terminal may determine whether a card is mistakenly cut based on the matching of GPS positioning information and WiFi network information with the current first-priority simulated card.
[0159] In a possible implementation, the terminal stores the correspondence between GPS positioning information and WiFi network information and the analog card, and the terminal determines whether the current first-priority analog card matches the GPS positioning information and WiFi network information based on the correspondence.
[0160] In the embodiment of the present application, the terminal can switch the first-priority simulated card according to the card switching information set by the user, so that the switching rule of the first-priority simulated card is consistent with the actual needs of the user. The user can pre-set the card switching information so that the terminal switches the first-priority simulated card in advance, thereby improving the card swiping efficiency.
[0161] See also Figure 6 , Figure 6 1 is a schematic diagram of a switching device for a simulation card provided by an exemplary embodiment of the present application. The device includes the following modules.
[0162] The time period determination module 601 is used to determine the card swiping time period of each of the simulated cards based on the historical card swiping behavior;
[0163] The information determination module 602 is used to determine the card switching information of each of the simulated cards based on the card swiping period of each of the simulated cards, wherein the card switching information includes at least one of a card switching time point and a card switching sequence, wherein the card switching time point refers to a time point when the simulated card is set as a first-priority simulated card, the first-priority simulated card being the first activated simulated card during the card swiping process, and the card switching sequence is used to represent the order of switching between different simulated cards;
[0164] The card switching module 603 is configured to switch the first-priority simulated card based on the card switching information.
[0165] Optionally, the information determination module 602 is further configured to:
[0166] Determine the card cutting time point of each of the simulated cards based on the card swiping time period of each of the simulated cards;
[0167] In the case where the card swiping time periods of at least two simulated cards indicate that the at least two simulated cards have a switching timing relationship, the card switching order of each of the at least two simulated cards is determined.
[0168] Optionally, the information determination module 602 is further configured to:
[0169] The card cutting time point of the simulated card is determined based on the starting time point and the time advance amount in the card swiping period of the simulated card.
[0170] Optionally, the information determination module 602 is further configured to:
[0171] When the card swiping time periods of the at least two simulated cards have an intersection, or when the time interval between the card swiping time periods of the at least two simulated cards is less than a time threshold, determining that the at least two simulated cards have a switching timing relationship;
[0172] Based on the historical card swiping behaviors of the at least two simulated cards, the card cutting order of each of the at least two simulated cards is determined.
[0173] Optionally, the information determination module 602 is further configured to:
[0174] Based on the card swiping time points in the historical card swiping behaviors of the at least two simulated cards within the unit time length, a card swiping time sequence of the at least two simulated cards within the unit time length is generated, wherein the card swiping time sequence includes the card swiping time points of each of the at least two simulated cards within the unit time length;
[0175] The card switching order of the at least two simulated cards is determined based on the card swiping time sequences within the multiple unit time lengths.
[0176] Optionally, the information determination module 602 is further configured to:
[0177] Determining the simulated card type of each of the at least two simulated cards based on the card swiping location information in the historical card swiping behaviors of the at least two simulated cards;
[0178] Based on the card swiping time points of the historical card swiping behaviors of the at least two simulated cards within a unit time length, a card swiping time sequence of the at least two simulated cards within the unit time length is generated, wherein the card swiping time sequence includes the card swiping time points of each of the at least two simulated cards within the unit time length;
[0179] The card swiping time series within the multiple unit time lengths and the simulated card types are input into a card cutting order recognition model to obtain the card cutting order of the at least two simulated cards output by the card cutting order recognition model.
[0180] Optionally, the information determination module 602 is further configured to:
[0181] In the case that the at least two simulated cards have at least two card cutting sequences, the applicable time periods corresponding to the at least two card cutting sequences are determined, wherein the card cutting sequences of the at least two simulated cards in the same applicable time period are the same, and the card cutting sequences of the at least two simulated cards in different applicable time periods are different.
[0182] Optionally, the card cutting module 603 is further used for:
[0183] In the case where the target simulated card does not have the card switching sequence, when the card switching time point of the target simulated card is reached, the target simulated card is set as the first-ranked simulated card; or,
[0184] When the target simulated card has the card cutting sequence, and the card cutting sequence indicates that the target simulated card is the starting simulated card, when the card cutting time point of the target simulated card is reached, the target simulated card is set as the first-ranked simulated card; or
[0185] When the target simulated card has the card cutting sequence, and the card cutting sequence indicates that the target simulated card is not the starting simulated card, and when the predecessor simulated card of the target simulated card is swiped successfully, the target simulated card is set as the first-rank simulated card, and the card cutting sequence of the predecessor simulated card is before the target simulated card.
[0186] Optionally, the card cutting module 603 is further used for:
[0187] In the case that the target simulated card fails to be swiped, the next simulated card of the target simulated card in the card switching sequence is set as the first-ranked simulated card.
[0188] Optionally, the time period determination module 601 is further configured to:
[0189] Based on the historical card swiping behaviors in different statistical periods, determining the card swiping time periods of each of the simulated cards in different statistical periods, the historical card swiping behaviors in different statistical periods being different;
[0190] The determining the card cutting information of each of the simulated cards based on the card swiping time period of each of the simulated cards comprises:
[0191] Based on the card swiping time periods of the simulated cards in different statistical periods, determining the card cutting information of the simulated cards in different statistical periods;
[0192] The switching of the first-order simulated card based on the card switching information includes:
[0193] Based on the card switching information corresponding to the statistical period matching the current moment, the first-ranked simulated card is switched.
[0194] In the related art, in order to improve the efficiency of card swiping, the terminal stores the correspondence between the simulated card and the card swiping location. When the terminal arrives at the card swiping location, the first-order simulated card is switched to the simulated card corresponding to the card swiping location. The terminal needs to keep the positioning function turned on to determine the real-time location of the terminal, which has power consumption problems.
[0195] In the embodiment of the present application, the terminal can automatically switch the first-priority analog card by determining the card switching information of the analog card, thereby improving the card swiping efficiency. Among them, since the switching information of the analog card is determined based on the card swiping period of the analog card, and the card swiping period is determined based on the historical card swiping behavior, the card switching information of the analog card determined by the terminal is consistent with the user's behavior habits, which is conducive to improving the card swiping success rate after the terminal switches to the first-priority analog card, eliminating the step of switching to other analog cards again after the card swiping fails, and improving the card swiping efficiency. Compared with the relevant technology, since the terminal does not necessarily need to adopt the real-time positioning function when switching the first-priority analog card, the technical solution provided by the embodiment of the present application can save power consumption.
[0196] See also Figure 7 , Figure 7 701 is a schematic diagram of a terminal structure provided by an exemplary embodiment of the present application. The terminal includes a processor 701 and a memory 702.
[0197] Optionally, the processor 701 uses various interfaces and lines to connect various parts of the entire electronic device, and executes various functions of the electronic device and processes data by running or executing instructions, programs, code sets or instruction sets stored in the memory 702, and calling data stored in the memory 702. Optionally, the processor 701 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 701 can integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU), a neural network processor (Neural-network Processing Unit, NPU) and a baseband chip. Among them, the CPU mainly processes the operating system, user interface and application programs; the GPU is responsible for rendering and drawing the content to be displayed on the touch display; the NPU is used to implement artificial intelligence (Artificial Intelligence, AI) functions; and the baseband chip is used to process wireless communications. It is understandable that the above baseband chip may not be integrated into the processor 701, but may be implemented by a separate chip.
[0198] The memory 702 may include a random access memory (RAM) or a read-only memory (ROM). Optionally, the memory 702 includes a non-transitory computer-readable storage medium. The memory 702 may be used to store instructions, programs, codes, code sets, or instruction sets. The memory 702 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the following various method embodiments, etc.; the data storage area may store data created according to the use of the electronic device (such as audio data, a phone book), etc.
[0199] In addition, those skilled in the art will appreciate that the structure of the terminal shown in the above figures does not constitute a limitation on the terminal, and the terminal may include more or fewer components than shown, or a combination of certain components, or a different arrangement of components.
[0200] An embodiment of the present application also provides a computer-readable storage medium, which stores at least one computer instruction, and the at least one computer instruction is loaded and executed by a processor to implement the switching method of the simulation card as described in the above embodiments.
[0201] Optionally, the computer readable storage medium may include: ROM, RAM, solid state drives (SSD) or optical disks, etc. Among them, RAM may include resistance random access memory (ReRAM) and dynamic random access memory (DRAM).
[0202] An embodiment of the present application also provides a computer program product, which includes computer instructions, and the computer instructions are stored in a computer-readable storage medium; the processor of the terminal reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the terminal implements the switching method of the simulation card as described in the above embodiments.
[0203] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware, or may be accomplished by a program to guide the relevant hardware. The program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.
[0204] 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 switching a simulation card, characterized in that: The method comprises: Based on historical card swiping behaviors, determining a swiping time period for each of the simulated cards; Based on the card swiping period of each of the simulated cards, determining the card switching information of each of the simulated cards, the card switching information including at least one of a card switching time point and a card switching sequence, the card switching time point refers to a time point when the simulated card is set as a first-priority simulated card, the first-priority simulated card being the first activated simulated card in the card swiping process, and the card switching sequence is used to characterize the order of switching between different simulated cards; The first priority simulated card is switched based on the card switching information.
2. The method according to claim 1, characterized in that The determining the card cutting information of each of the simulated cards based on the card swiping time period of each of the simulated cards comprises: Determine the card cutting time point of each of the simulated cards based on the card swiping time period of each of the simulated cards; In the case where the card swiping time periods of at least two simulated cards indicate that the at least two simulated cards have a switching timing relationship, the card switching order of each of the at least two simulated cards is determined.
3. The method according to claim 2, characterized in that The step of determining the card cutting time point of each of the simulated cards based on the card swiping time period of each of the simulated cards comprises: The card cutting time point of the simulated card is determined based on the starting time point and the time advance amount in the card swiping period of the simulated card.
4. The method according to claim 2, characterized in that: The step of determining the card switching order of each of the at least two simulated cards when the card swiping time periods of the at least two simulated cards indicate that the at least two simulated cards have a switching timing relationship comprises: When the card swiping time periods of the at least two simulated cards have an intersection, or when the time interval between the card swiping time periods of the at least two simulated cards is less than a time threshold, determining that the at least two simulated cards have a switching timing relationship; Based on the historical card swiping behaviors of the at least two simulated cards, the card cutting order of each of the at least two simulated cards is determined.
5. The method according to claim 4, characterized in that The determining the card cutting order of each of the at least two simulated cards based on the historical card swiping behaviors of the at least two simulated cards comprises: Based on the card swiping time points in the historical card swiping behaviors of the at least two simulated cards within the unit time length, a card swiping time sequence of the at least two simulated cards within the unit time length is generated, wherein the card swiping time sequence includes the card swiping time points of each of the at least two simulated cards within the unit time length; The card switching order of the at least two simulated cards is determined based on the card swiping time sequences within the multiple unit time lengths.
6. The method according to claim 4, characterized in that The determining the card cutting order of each of the at least two simulated cards based on the historical card swiping behaviors of the at least two simulated cards comprises: Determining the simulated card type of each of the at least two simulated cards based on the card swiping location information in the historical card swiping behaviors of the at least two simulated cards; Based on the card swiping time points of the historical card swiping behaviors of the at least two simulated cards within a unit time length, a card swiping time sequence of the at least two simulated cards within the unit time length is generated, wherein the card swiping time sequence includes the card swiping time points of each of the at least two simulated cards within the unit time length; The card swiping time series within the multiple unit time lengths and the simulated card types are input into a card cutting order recognition model to obtain the card cutting order of the at least two simulated cards output by the card cutting order recognition model.
7. The method according to claim 5, characterized in that The method further comprises: In the case that the at least two simulated cards have at least two card cutting sequences, the applicable time periods corresponding to the at least two card cutting sequences are determined, wherein the card cutting sequences of the at least two simulated cards in the same applicable time period are the same, and the card cutting sequences of the at least two simulated cards in different applicable time periods are different.
8. The method according to claim 2, characterized in that: The switching of the first-order simulated card based on the card switching information includes: In the case where the target simulated card does not have the card switching sequence, when the card switching time point of the target simulated card is reached, the target simulated card is set as the first-ranked simulated card; or, When the target simulated card has the card cutting sequence, and the card cutting sequence indicates that the target simulated card is the starting simulated card, when the card cutting time point of the target simulated card is reached, the target simulated card is set as the first-ranked simulated card; or When the target simulated card has the card cutting sequence, and the card cutting sequence indicates that the target simulated card is not the starting simulated card, and when the predecessor simulated card of the target simulated card is swiped successfully, the target simulated card is set as the first-rank simulated card, and the card cutting sequence of the predecessor simulated card is before the target simulated card.
9. The method according to claim 8, characterized in that The method further comprises: In the case that the target simulated card fails to be swiped, the next simulated card of the target simulated card in the card switching sequence is set as the first-ranked simulated card.
10. The method according to any one of claims 1 to 9, characterized in that: The determining of the card swiping time period of each simulated card based on the historical card swiping behavior includes: Based on the historical card swiping behaviors in different statistical periods, determining the card swiping time periods of each of the simulated cards in different statistical periods, the historical card swiping behaviors in different statistical periods being different; The determining the card cutting information of each of the simulated cards based on the card swiping time period of each of the simulated cards comprises: Based on the card swiping time periods of the simulated cards in different statistical periods, determining the card cutting information of the simulated cards in different statistical periods; The switching of the first-order simulated card based on the card switching information includes: Based on the card switching information corresponding to the statistical period matching the current moment, the first-ranked simulated card is switched.
11. A switching device for a simulation card, characterized in that: The device comprises: A time period determination module, used to determine the card swiping time period of each of the simulated cards based on historical card swiping behaviors; an information determination module, configured to determine the card switching information of each of the simulated cards based on the card swiping period of each of the simulated cards, wherein the card switching information includes at least one of a card switching time point and a card switching sequence, wherein the card switching time point refers to a time point when the simulated card is set as a first-priority simulated card, wherein the first-priority simulated card is the first activated simulated card during the card swiping process, and the card switching sequence is used to characterize the order of switching between different simulated cards; A card switching module is used to switch the first-priority simulated card based on the card switching information.
12. A terminal, characterized in that: The terminal includes a processor and a memory, wherein the memory stores at least one computer instruction, and the at least one computer instruction is loaded and executed by the processor to implement the switching method of the simulation card as described in any one of claims 1 to 10.
13. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores at least one computer instruction, and the at least one computer instruction is loaded and executed by a processor to implement the switching method of the simulation card as described in any one of claims 1 to 10.
14. A computer program product, characterized in that The computer program product includes computer instructions, which are stored in a computer-readable storage medium; the processor of the terminal reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the terminal implements the switching method of the simulation card as described in any one of claims 1 to 10.