Card determination method and related equipment
By obtaining the usage status of NFC cards and activating them in advance, the problem of slow recognition speed and inability to predict the activation of cards in the existing smart card management system is solved, and fast and intelligent NFC card activation is achieved, improving the user experience.
Patent Information
- Application Number
- CN202311059127.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-21
- Publication Date
- 2025-02-25
AI Technical Summary
The existing smart card management system has problems such as slow recognition speed and inadequate prediction of card activation in multiple NFC card usage scenarios, which leads to inconvenience in user operations.
By obtaining the usage status of the NFC card, determine the next card that needs to be activated based on these statuses and activate it in advance without the user's manual switching.
It realizes the rapid and intelligent activation of appropriate NFC cards without relying on network and GNSS signals, improving user experience and operation efficiency.
Smart Images

Figure CN119521177A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of communications, and in particular to a card determination method and related equipment. Background Art
[0002] With the development of short-range wireless communication (Near Field Communication, NFC) technology, smart phones and other NFC-enabled devices have become common tools in people's lives. NFC technology allows users to use their own devices for convenient wireless communication and identity authentication without having to carry a large number of physical cards.
[0003] When a user needs to use multiple NFC cards (such as transportation cards, work cards, bank cards, key cards, etc.) at the same time, since NFC communication requires the corresponding cards to be activated first, the user needs to spend a long time to select and activate the required cards. For example, the user needs to switch to the transportation card when entering the subway, and then switch to the work card when arriving at the office. This frequent switching and selection process not only consumes the user's time, but may also cause inconvenience and delays in the user experience. In order to solve the above problems, a smart card management system can be used to manage and use multiple NFC cards, so that multiple cards of the user can be centrally managed through a smartphone or other device, and provide the function of quick selection and activation. The smart card management system can use advanced technology and algorithms to identify the cards required by the user and automatically activate the corresponding cards, thereby greatly simplifying the user's operation process. Such a system is expected to be widely used in a variety of scenarios, bringing users a more convenient and efficient NFC card usage experience.
[0004] See also Figure 1A , Figure 1A is a schematic diagram of a smart card management system provided in an embodiment of the present application, Figure 1A The smart card management system shown in the figure identifies the card by identifying the application identifier (AID) of the NFC device, and determines which NFC card should be used according to the type of NFC device. AID is a unique identifier used to identify a specific application in an NFC device. When a user uses NFC for communication, he or she brings the personal terminal device close to the NFC device (such as a card reader), first identifies the AID of the NFC device and then retrieves it from the personal terminal device, matches the corresponding NFC card and activates it for NFC communication. Figure 1A The solution shown requires the user to arrive at the scene location before identification and matching can be performed. When the number of NFC cards in the user's wallet is large, the recognition speed will be seriously reduced, affecting the user experience. It does not achieve advance prediction and activation. It is a belated method and lacks intelligence.
[0005] refer to Figure 1B , Figure 1B is a schematic diagram of another smart card management system provided in an embodiment of the present application, Figure 1B The smart card management system shown is to locate the terminal device through the network (such as WiFi, using the network to delineate geographic fences), the Global Navigation Satellite System (GNSS) and other signals, identify the current location, predict the NFC card to be used and activate it in advance. GNSS is for example the Global Positioning System (GPS). After the NFC function of the terminal is started, the current location is obtained through network information; it is determined whether there is a commonly used location whose distance from the current location is less than or equal to the predetermined distance, wherein the information of the above-mentioned commonly used locations is pre-stored information, and each commonly used location has corresponding card information. If there is a commonly used location whose distance from the current location is less than or equal to the predetermined distance, the card corresponding to the commonly used location with the smallest distance from the current location is selected for NFC business. Figure 1B The solution shown determines the geographic location based on multiple network information and network signals such as GPS. Due to insufficient accuracy, there is an overlap of geographic fences (door lock cards and company work cards, subway station exits and community entrances, etc.), which makes it impossible to accurately identify the scene and thus uniquely determine the NFC card to be used. This will cause similar inconveniences such as "being stuck in the gate", which is a pain point for many users.
[0006] In addition, other offline devices such as watches and bracelets that do not have network and GPS conditions cannot determine the geographic fence in the offline state, so they cannot determine the NFC card to be used and cannot select the card intelligently. Figure 1B The solution shown cannot be implemented, affecting the user experience of offline terminal users and those in environments with poor signals. Summary of the invention
[0007] The present application provides a card determination method and related equipment, which do not rely on signals such as the network and GNSS, that is, the NFC card can be activated in advance without the need for manual switching by the user, and has a high degree of intelligence.
[0008] In a first aspect, a card determination method is provided, which can be executed by a first device or a chip in the first device. The first device supports at least one NFC card.
[0009] The card determination method comprises the following steps: obtaining the usage status of an NFC card supported by the first device, determining the first NFC card based on the usage status, and activating the first NFC card.
[0010] The usage status of the NFC card includes at least one of the following: unused status, used status, number of uses, station entry status, vehicle entry status, and usage time.
[0011] It can be seen that in this solution, the usage status of the NFC card of the first device can accurately predict the next activated card without relying on signals such as the network and GNSS, that is, the NFC card can be activated in advance without the user having to manually switch the card, which is highly intelligent.
[0012] In a possible implementation of the first aspect, the at least one NFC card includes a transportation-related card, the use status of the transportation-related card is an entered station status or a boarded vehicle status, and the first NFC card is a transportation-related card.
[0013] It can be seen that in this solution, it is determined that the NFC card currently activated by the first device is a transportation-related card, and the NFC card is in the entered station state or on the bus state, then the NFC card is used as the first NFC card and activated in advance. The user does not need to manually switch cards, and the user can use the NFC card to quickly exit the station or get off the bus.
[0014] In a possible implementation of the first aspect, the at least one NFC card is at least two NFC cards. The obtaining of the usage status of the NFC card supported by the first device specifically includes the following steps: obtaining the usage status of the at least two NFC cards in the first time window. The end time of the first time window is the current time. The determining of the first NFC card based on the usage status specifically includes the following steps: determining the first NFC card based on the usage status of the at least two NFC cards in the first time window and the usage order of the at least two NFC cards.
[0015] The specific time length of the first time window can be set according to actual conditions.
[0016] It can be seen that in this solution, the first NFC card is determined based on the usage status of the NFC card in the first device in the first time window and the usage order of the NFC cards in the first device, which has a high degree of intelligence.
[0017] In a possible implementation of the first aspect, the usage order of the at least two NFC cards corresponds to the first user portrait, and the first user portrait corresponds to the first device.
[0018] In this solution, the first device has at least one user, the first device corresponds to a first user portrait, and the first user portrait is a portrait of one of the at least one user. Based on the first user portrait, the order of using the at least two NFC cards can be determined.
[0019] In a possible implementation of the first aspect, the first user portrait is a portrait of a user currently using the first device, and the first device also corresponds to a second user portrait.
[0020] In this solution, the first device also corresponds to a second user portrait, the first device has at least two users, and the second user portrait is a portrait of one of the at least two users except the user currently using the first device. For a first device used by multiple users, different users correspond to different user portraits.
[0021] In a possible implementation of the first aspect, the usage order of the at least two NFC cards is the usage order of the NFC cards corresponding to the time period to which the current moment belongs.
[0022] In this solution, based on the time period that the current moment falls into, the order of using the at least two NFC cards can be determined.
[0023] In a possible implementation of the first aspect, the card determination method further includes the following steps:
[0024] When the first NFC card used by the first device after the current moment is different from the first NFC card, the use order of the at least two NFC cards is updated based on the first NFC card.
[0025] In this solution, when the NFC card actually used by the first device is different from the first NFC card determined by this solution, the usage order of the at least two NFC cards can be updated based on the actually used NFC card, so that the same error will not occur next time the same scenario is encountered, thereby ensuring the accuracy of this solution.
[0026] In a possible implementation of the first aspect, the card determination method further includes the following steps:
[0027] The first user portrait and the updated usage order of at least two NFC cards are sent to the second device.
[0028] In this solution, after the usage order of the at least two NFC cards is updated, the first user portrait and the updated usage order of the at least two NFC cards are sent to the second device, which helps the second device to update information based on the first user portrait and the updated usage order of the at least two NFC cards.
[0029] In a second aspect, the present application further provides a communication method, the method comprising the following steps: a second device receives a request message sent by a first device, and the second device sends a usage order of at least two NFC cards to the first device.
[0030] In this solution, the second device responds to the request message of the first device and sends the usage order of at least two NFC cards to the first device, so that the first device can determine the first NFC card based on the usage order of the at least two NFC cards. There is no need to rely on signals such as the network and GNSS, that is, the NFC card can be activated in advance without the user having to manually switch the card, which is highly intelligent.
[0031] In a possible implementation of the second aspect, the request message indicates a first user portrait corresponding to the first device, and the communication method further includes the following steps: the second device determines an NFC card usage order corresponding to a third user portrait from at least two user portraits as an NFC card usage order of at least two NFC cards, and the third user portrait is the same or similar to the first user portrait.
[0032] In a possible implementation of the second aspect, the above-mentioned communication method also includes the following steps: the second device receives the first user portrait sent by the first device and the updated usage order of at least two NFC cards.
[0033] In this solution, the second device can update the NFC card usage order of the third user portrait based on the received first user portrait and the updated usage order of at least two NFC cards.
[0034] In a third aspect, the present application further provides a first device, the first device supports at least one short-range wireless communication NFC card, and the first device includes an acquisition module, a determination module, and an activation module. Among them:
[0035] The acquisition module is used to obtain the usage status of the NFC card supported by the first device.
[0036] The determination module is used to determine the first NFC card based on the usage status.
[0037] The activation module is used to activate the first NFC card.
[0038] It can be seen that the first device of this solution can accurately predict the next activated card based on the usage status of the NFC card of the first device without relying on signals such as the network and GNSS, that is, the NFC card can be activated in advance without the user having to manually switch the card, and the degree of intelligence is high.
[0039] In a fourth aspect, the present application further provides a second device, the second device comprising a receiving module and a sending module.
[0040] The receiving module is used to receive a request message sent by the first device.
[0041] The sending module is used to send the usage sequence of at least two NFC cards to the first device.
[0042] In this solution, the second device responds to the request message of the first device and sends the usage order of at least two NFC cards to the first device, so that the first device can determine the first NFC card based on the usage order of the at least two NFC cards. There is no need to rely on signals such as the network and GNSS, that is, the NFC card can be activated in advance without the user having to manually switch the card, and the degree of intelligence is high.
[0043] In a fifth aspect, the present application also provides a terminal device, comprising a processor and a memory, wherein the processor and the memory are connected, wherein the memory is used to store program code, and the processor is used to call the program code to execute the method described in any one of the first aspect or the second aspect.
[0044] In a sixth aspect, the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and the computer program is executed by a processor to implement the method as described in the first aspect or the second aspect.
[0045] In a seventh aspect, the present application further provides a computer program product comprising instructions, which, when executed on a computer, enables the computer to execute the method described in the first aspect or the second aspect.
[0046] In an eighth aspect, the present application further provides a chip, comprising a processor and a data interface, wherein the processor reads instructions stored in a memory through the data interface to execute the method described in the first aspect or the second aspect.
[0047] Optionally, as an implementation method, the chip may also include a memory, in which instructions are stored, and the processor is used to execute the instructions stored in the memory. When the instructions are executed, the processor is used to execute the method described in the first aspect or the second aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] The following is an introduction to the drawings used in the embodiments of the present application.
[0049] Figure 1A is a schematic diagram of a smart card management system provided in an embodiment of the present application;
[0050] Figure 1B is a schematic diagram of another smart card management system provided in an embodiment of the present application;
[0051] Figure 1C is a scenario diagram of a card determination method provided in an embodiment of the present application;
[0052] Figure 2 is a flow chart of a card determination method provided in an embodiment of the present application;
[0053] Figure 3A It is a flowchart of a card determination method provided in an embodiment of the present application;
[0054] Figure 3B is a flow chart of a communication method provided by an embodiment of the present application;
[0055] Figure 3C is a flowchart of another card determination method provided in an embodiment of the present application;
[0056] Figure 3D is a schematic diagram of the system architecture of a card determination method provided in an embodiment of the present application;
[0057] Figure 3E It is a schematic diagram of the implementation process of a card determination method provided in an embodiment of the present application;
[0058] Figure 4 is a structural schematic diagram of a first device provided in an embodiment of the present application;
[0059] Figure 5 is a structural schematic diagram of a second device provided in an embodiment of the present application;
[0060] Figure 6 It is a structural diagram of a terminal device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0061] The technical solution in this application will be described below in conjunction with the accompanying drawings.
[0062] Due to the applications involved in the embodiments of the present application, in order to facilitate understanding, the relevant terms and other related concepts involved in the embodiments of the present application are first introduced below.
[0063] In the embodiments of the present application, the words "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.
[0064] The "at least one" mentioned in the embodiments of the present application refers to one or more, and "multiple" refers to two or more. "At least one of the following" or its similar expression refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b, or c can be represented by: a, b, c, (a and b), (a and c), (b and c), or (a and b and c), where a, b, c can be single or multiple. "And / or" describes the association relationship of the associated objects, indicating that three relationships can exist. For example, A and / or B can be represented by: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the associated objects before and after are an "or" relationship. The serial numbers of the steps of the embodiments of the present application (such as step S1, step S21, etc.) are only for distinguishing different steps, and do not limit the order of execution between the steps.
[0065] Furthermore, unless otherwise specified, the ordinal numbers such as "first" and "second" used in the embodiments of the present application are used to distinguish multiple objects, and are not used to limit the order, timing, priority or importance of multiple objects. For example, the first device and the second device are only for the convenience of description, and do not represent the difference in structure, importance, etc. between the first device and the second device. In some embodiments, the first device and the second device can also be the same device.
[0066] In the above embodiments, the term "when..." can be interpreted as meaning "if..." or "after..." or "in response to determining..." or "in response to detecting...", depending on the context. The above description is only an optional embodiment of the present application and is not intended to limit the present application. Any modification, equivalent substitution, improvement, etc. made within the concept and principle of the present application shall be included in the protection scope of the present application.
[0067] Data mining is a hot topic in the field of artificial intelligence and database research. Data mining refers to the non-trivial process of revealing implicit, previously unknown and potentially valuable information from a large amount of data in a database. Data mining is a decision support process that is mainly based on artificial intelligence, machine learning, pattern recognition, statistics, databases, visualization technology, etc. It analyzes corporate data in a highly automated manner, makes inductive inferences, and mines potential patterns to help decision makers adjust market strategies, reduce risks, and make correct decisions.
[0068] NFC is a short-range high-frequency wireless communication technology that allows contactless point-to-point data transmission between electronic devices. NFC is developed based on contactless Radio Frequency Identification (RFID) technology combined with wireless interconnection technology. The NFC standard includes three different working modes: point-to-point, reader / writer and card emulation.
[0069] In the embodiments of the present application, an NFC card refers to a device with NFC function that is simulated into a contactless card, such as a bank card, transportation card, access card, door lock card, key card, work card, campus card, etc.
[0070] When a user needs to use multiple NFC cards (such as transportation cards, work cards, bank cards, key cards, etc.) at the same time, since NFC communication requires the corresponding cards to be activated first, the user needs to spend a long time to select and activate the required cards. In order to solve the above problem, a smart card management system can be used to manage and use multiple NFC cards, so that multiple cards of the user can be centrally managed through a smartphone or other device, and provide the function of quick selection and activation.
[0071] refer to Figure 1A The smart card management system shown in the figure requires the user to arrive at the scene location before identification and matching can be performed. When the number of NFC cards in the user's wallet is large, the identification speed will be seriously reduced, affecting the user experience. It does not achieve advance prediction and activation. It is a belated method and lacks intelligence.
[0072] refer to Figure 1B The smart card management system shown determines the geographic location based on multiple network information and GNSS and other signals. The above-mentioned network includes at least a local area network (such as WiFi) or a mobile communication network. Due to insufficient accuracy, there is an overlap of geographic fences (door lock cards and company work cards, subway station exits and community entrances, etc.), which makes it impossible to accurately identify the scene, and thus it is impossible to uniquely determine the NFC card to be used, which will bring similar inconveniences such as "being stuck in the gate machine", which is a pain point for the majority of users.
[0073] Figure 1B In the smart card management system shown, watches, bracelets and other offline devices that do not have network and GPS conditions cannot determine the geographic fence in the offline state, so they cannot determine the NFC card to be used and cannot select the card intelligently. Figure 1B The solution shown cannot be implemented, affecting the user experience of offline terminal users and those in environments with poor signals.
[0074] Furthermore, Figure 1BThe smart card management system shown needs to rely on user authorization of geographic location information, which involves user privacy issues. The acquired user geographic location information has certain data risks, and if the user who pays more attention to privacy does not authorize the location information, the smart selection of NFC cards cannot be realized. In addition, Figure 1B The smart card management system shown also needs to rely on external content providers (CP) for geographic information donation, which has high operating costs.
[0075] Therefore, the embodiment of the present application provides a card determination method that does not rely on signals such as the network and GNSS, that is, the NFC card can be activated in advance without the need for manual switching by the user, and has a high degree of intelligence.
[0076] The above card determination method may be executed by the first device, or by a chip in the first device.
[0077] The first device supports at least one NFC card. The first device includes but is not limited to a mobile phone, a smart bracelet, a smart watch, etc.
[0078] The above-mentioned NFC cards include any of the following: bank cards, transportation cards, access cards, door lock cards, key cards, work cards, and campus cards.
[0079] Take the first device to execute the card determination method of the embodiment of the present application as an example, refer to Figure 1C , Figure 1C This is a scene diagram of a card determination method provided by an embodiment of the present application. The first device selects an NFC card from the NFC card package of the first device in advance and activates the NFC card by executing the card determination method of the embodiment of the present application. When the user uses it, the user does not need to manually select the card. The degree of intelligence is high, and the card determination method of the embodiment of the present application does not need to rely on signals such as the network and GNSS. Among them, the NFC card package includes a community access card (for leaving the community), a transportation card (for taking the bus / subway), a campus access card (for entering the company), a car key (for opening the car door) and a smart door lock key (for going home).
[0080] In an embodiment of the present application, the card determination method can realize a function of intelligently setting NFC cards in an NFC card bag, thereby achieving the effect of intelligently predicting and activating NFC cards in advance without the user having to manually switch NFC cards. Among them, the NFC card selected by the above intelligent setting is called a smart selection card.
[0081] The following is a detailed description of the card determination method in the embodiment of the present application:
[0082] refer to Figure 2 , Figure 22 is a flowchart of a card determination method provided in an embodiment of the present application. In the following, the execution subject takes the first device as an example, and the card determination method 200 includes the following steps:
[0083] 201. The first device obtains a usage status of an NFC card supported by the first device.
[0084] Specifically, the usage status of the NFC card includes at least one of the following: unused status, used status, number of uses, station entry status, vehicle boarding status, and usage time.
[0085] For example, when the currently activated NFC card is an access card, if the user does not use the access card, the access card usage status is unused. When the user uses the access card, the access card usage status is used.
[0086] For another example, when the currently activated NFC card is a work card, if the user does not use the work card, the use state of the work card is unused. When the user uses the work card, the use state of the work card is used.
[0087] For another example, when the currently activated NFC card is a transportation card, when the user does not use the transportation card, the usage status of the transportation card is unused; when the user uses the transportation card to enter a subway station, the usage status of the transportation card is entered.
[0088] For another example, for a bus that requires swiping a card to get on and off, when the currently activated NFC card is a transportation card, when the user does not use the transportation card, the transportation card's usage status is unused; when the user uses the transportation card to take the bus, the transportation card's usage status is on board.
[0089] For another example, for a bus that only requires swiping a card to board, when the currently activated NFC card is a transportation card, when the user does not use the transportation card, the usage status of the transportation card is unused; when the user uses the transportation card to take the bus, the usage status of the transportation card is used.
[0090] The usage count refers to the number of times a certain NFC card has been used within a preset time length. For a transportation card, the usage count includes the number of times the NFC card has been in the used state, the station entry state, and the vehicle boarding state within the preset time length.
[0091] The usage time refers to the time when the NFC is recognized by the card reader, for example, the time of swiping the access control, the time of swiping the work card, the time of entering the station, the time of boarding the bus, etc.
[0092] 202. The first device determines a first NFC card based on a usage status.
[0093] Specifically, the first device determines a first NFC card based on the usage status acquired in step 201 .
[0094] 203. The first device activates the first NFC card.
[0095] Specifically, the first device activates the first NFC card determined in step 202 .
[0096] In the embodiment of the present application, the next activated NFC card can be accurately predicted based on the usage status of the NFC card supported by the first device without relying on signals such as the network and GNSS, that is, the NFC card can be activated in advance without the user having to manually switch the NFC card, which is highly intelligent.
[0097] Since the card determination method of the embodiment of the present application does not need to rely on signals such as the network and GNSS, the solution of the embodiment of the present application can be deployed on offline terminal devices including watches and bracelets, and the offline devices can still determine the NFC card in advance in an offline environment.
[0098] Compared with the method of determining the geographic location based on information such as the network and GNSS, the card determination method in the embodiment of the present application predicts the NFC card more accurately, can uniquely determine the card to be activated, avoid the problem of being unable to uniquely determine the card due to overlapping geographic fences, and no longer be stuck by the gate.
[0099] The card determination method of the embodiment of the present application does not require the user to authorize the location information, which is safer and more secure. The solution is safer and less costly to implement, does not require the user's sensitive location information, and effectively protects the user's privacy; does not require the content provider to donate location information, and reduces the cost of the solution.
[0100] In a possible implementation, the at least one NFC card includes a transportation-related card, the use status of the transportation-related card is an entered station status or a boarded vehicle status, and the first NFC card is a transportation-related card.
[0101] refer to Figure 3A , Figure 3A It is a flow chart of a card determination method provided in an embodiment of the present application. Specifically, when the NFC card currently activated by the first device is a transportation-related card, and the usage status of the transportation-related card is the entered station status or the boarded vehicle status, the transportation-related card is set to a smart card to avoid the problem of being stuck in the gate when exiting the station.
[0102] In the embodiment of the present application, transportation-related cards include transportation cards, etc.
[0103] In an embodiment of the present application, it is determined that the NFC card currently activated by the first device is a transportation-related card, and the NFC card is in an entered station state or on-board state, then the NFC card is used as the first NFC card and is activated in advance. The user does not need to manually switch cards, and the user can use the NFC card to quickly exit the station or get off the bus.
[0104] The embodiment of the present application protects the method of setting a traffic-related card as a smart card by utilizing the usage status of the traffic-related card. By setting a very simple traffic-related card logic rule, it simplifies the process and can effectively solve the user pain points. It can cover the vast majority of usage scenarios, avoid the problem of being unable to uniquely identify the card, resulting in being stuck in the gate when exiting the station, and exit the station faster.
[0105] For example, when a user arrives at a high-speed railway station, he or she opens the second NFC card and swipes the card to enter the station. The function of the second card is similar to that of an ID card. When leaving the station, the user does not need to manually switch the NFC card, and can use the second NFC card to swipe the card to leave the station.
[0106] In a possible implementation, the at least one NFC card is at least two NFC cards. The first device obtains the usage status of the NFC cards supported by the first device, specifically including the following steps:
[0107] The first device obtains the usage status of at least two NFC cards in a first time window. The end time of the first time window is the current time.
[0108] Specifically, the specific time length of the first time window can be set according to actual conditions and is not limited. For example, the first time window corresponds to the portrait of the user currently using the first device, or the first time window corresponds to the work and rest habits of the user currently using the first device. For example, the first time window is 24 hours or 12 hours.
[0109] Accordingly, the first device determines the first NFC card based on the usage status, specifically including the following steps:
[0110] The first device determines the first NFC card based on the usage states of the at least two NFC cards in the first time window and the usage order of the at least two NFC cards.
[0111] Specifically, based on the user's historical NFC usage records (i.e., the usage status of at least two NFC cards in the first time window) and the usage order of at least two NFC cards, the conditional probability of the NFC card that the first device may use after the current moment is calculated, and the NFC card to be used next is predicted, and the NFC card with the highest conditional probability is determined as the first NFC card, i.e., the smart selection card, to achieve intelligent card selection, improve the hit rate of the smart selection card, eliminate the need for manual switching, and enhance the user experience.
[0112] For example, the NFC cards (referred to as cards for short) supported by the first device are Card 1, Card 2, Card 3, and Card 4.
[0113] Assume that the above usage order is: card 1, card 3, card 2, card 4, card 1, card 3, card 4.
[0114] The usage status obtained in the first time window (sorted in chronological order) is: Card 1 (used), Card 3 (used). The card used at the current moment is Card 3. It can be seen that according to the usage status of the NFC card of the first device in the first time window, the next possible NFC cards to be used can be matched to Card 2 and Card 4 in the usage order. The first conditional probability that the next card to be used is Card 2 and the second conditional probability that the next card to be used is Card 4 are calculated respectively. When the second conditional probability is greater than the first conditional probability, the first NFC card is Card 4. Otherwise, the first NFC card is Card 2.
[0115] In the embodiment of the present application, the first NFC card is determined based on the usage status of the NFC card in the first device in the first time window and the usage order of the NFC cards in the first device, which has a high degree of intelligence. Compared with the existing location recognition NFC card recommendation technology based on network and GNSS positioning, the embodiment of the present application predicts the card based on the usage status of the NFC card and the usage order of the NFC card in the first device, so that the offline device can still recognize it in an offline environment, and the recognition is more accurate.
[0116] In a possible implementation, the usage order of the at least two NFC cards corresponds to the first user portrait, and the first user portrait corresponds to the first device.
[0117] In an embodiment of the present application, the first device has at least one user, the first device corresponds to a first user portrait, the first user portrait is a portrait of one of the at least one user, and the first user portrait is a portrait of a user currently using the first device.
[0118] The order of use of the at least two NFC cards can be determined based on the first user portrait. Exemplarily, the order of use of the at least two NFC cards can be directly determined based on the first user portrait. Alternatively, the order of use of the at least two NFC cards is determined based on an intermediate parameter, and the intermediate parameter is obtained based on the first user portrait. For example, the intermediate parameter is a user portrait number, and the user portrait and the user portrait number correspond one to one.
[0119] In a possible implementation, the first device also corresponds to a second user portrait. In the embodiment of the present application, the first device also corresponds to a second user portrait, that is, the first device has at least two users, and the second user portrait is a portrait of one of the at least two users except the user currently using the first device. For a first device used by multiple users, different users correspond to different user portraits. Therefore, in actual use, it is necessary to first determine which user is using the first device, and then determine the first NFC card based on the NFC card usage order database corresponding to the user portrait of the determined user.
[0120] In a possible implementation, the usage order of the at least two NFC cards is the usage order of the NFC cards corresponding to the time period to which the current moment belongs.
[0121] In an embodiment of the present application, based on the time period that the current moment falls into, the order of use of the above-mentioned at least two NFC cards can be determined. The above-mentioned time period includes the morning, noon and evening time periods of working days or the morning, noon and evening time periods of holidays. For example, the morning, noon and evening time periods include the morning time period (03:00 to 10:00), the noon time period (10:00 to 16:00) or the evening time period (17:00 to 03:00), that is, the above-mentioned time period includes at least one of the following: the morning time period of working days, the noon time period of working days, the evening time period of working days, the morning time period of holidays, the noon time period of holidays or the evening time period of holidays. The order of use of NFC cards corresponding to each time period may be the same or different. The above-mentioned holidays include national statutory holidays such as weekends, Dragon Boat Festival, and Mid-Autumn Festival. Each user portrait corresponds to the order of use of NFC cards in the morning, noon and evening time periods of working days and the order of use of NFC cards in the morning, noon and evening time periods of holidays. When determining the first NFC card, it is determined based on the order of use of NFC cards corresponding to the time period to which the current moment belongs.
[0122] In a possible implementation, the usage order of the at least two NFC cards refers to the usage order of NFC cards supported by the first device, and the usage order may come from the second device, which may be a (cloud) server or other device.
[0123] refer to Figure 3B , Figure 3B 300 is a flow chart of a communication method provided in an embodiment of the present application; in the embodiment of the present application, the communication method 300 includes the following steps:
[0124] 301. The second device receives a request message sent by the first device.
[0125] 302. The second device sends a usage order of at least two NFC cards to the first device.
[0126] Exemplarily, when the first device performs a specific operation, it will trigger the first device to send the above-mentioned request message to the second device. The above-mentioned specific operation includes opening the wallet / card package for the first time, or clicking a button on the screen for sending a request message, etc.
[0127] Exemplarily, the types of NFC cards in the usage order of at least two NFC cards sent by the second device to the first device may be the same as the types of NFC cards supported by the first device. In this case, the first device directly uses the usage order of the at least two NFC cards received as the usage order of the at least two NFC cards used to determine the first NFC card. Or the number of types of NFC cards in the usage order of at least two NFC cards sent by the second device to the first device is greater than the number of NFC cards supported by the first device. In this case, after removing the unsupported NFC cards from the usage order of the at least two NFC cards received, the first device uses the usage order after the removal as the usage order of the at least two NFC cards used to determine the first NFC card.
[0128] For example, the order of usage of the at least two NFC cards sent by the second device to the first device is card 1, card 5, card 3, card 4, card 6, card 2, and the NFC cards supported by the first device are card 1, card 2, card 3 and card 4. Therefore, the order of usage of the at least two NFC cards used to determine the first NFC card is: card 1, card 3, card 4, card 2.
[0129] In a possible implementation, the request message indicates a first user portrait corresponding to the first device, and the second device determines an NFC card usage order corresponding to a third user portrait from at least two user portraits as an NFC card usage order of at least two NFC cards, and the third user portrait is the same or similar to the first user portrait.
[0130] Specifically, the request message may directly or indirectly indicate the first user portrait, for example, by carrying the first user portrait in the request message, or by carrying a user portrait code (or serial number) in the request message, the code corresponding to the first user portrait.
[0131] The second device stores at least two NFC card usage sequences corresponding to the user portraits. These NFC card usage sequences are obtained based on data mining technology. The specific acquisition process can be referred to below. Figure 3C and Figure 3D Related description.
[0132] The similarity between the third user portrait and the first user portrait refers to that the similarity between the first user portrait and the third user portrait reaches a preset value, and the preset value can be set according to actual conditions, for example, the preset value is 90% or 95%.
[0133] In a possible embodiment, the above usage order may come from the first device, that is, the NFC card usage order stored locally in the first device, in which case the number of cards in the NFC card usage order is the same as the number of cards supported by the first device. In this embodiment, the first device determines the usage order of at least two NFC cards based on the NFC cards supported by the first device.
[0134] In a possible implementation, the card determination method 200 further includes the following steps:
[0135] When a first NFC card used by the first device after the current moment is different from the first NFC card, the first device updates a usage order of at least two NFC cards based on the first NFC card.
[0136] Specifically, the first NFC card used by the first device after the current moment is the NFC card actually used by the first device. In an embodiment of the present application, when the NFC card actually used by the first device is different from the first NFC card determined by this scheme, the usage order of the at least two NFC cards can be updated based on the NFC card actually used to achieve personalized customization of the usage order, so that the same error will not occur again when the same scenario is encountered next time.
[0137] Exemplarily, the usage order of the at least two NFC cards is stored in the first device. Compared with the existing technical solution in which the recommendation logic is deployed in the cloud and the terminal logic cannot be updated in real time, the embodiment of the present application provides a feedback mechanism to correct and update the recommendation algorithm in time, so that the smart card can be used better and better.
[0138] For example, assuming that the current usage order is card 1, card 2, card 3, card 4. Assuming that the first NFC card is card 3, and the NFC card actually used by the first device is card 2, the usage order becomes card 1, card 2, card 2, card 4.
[0139] In a possible implementation, the card determination method 200 further includes the following steps:
[0140] The first device sends the first user portrait and an updated usage order of at least two NFC cards to the second device.
[0141] In an embodiment of the present application, after the usage order of the at least two NFC cards is updated, the first user portrait and the updated usage order of the at least two NFC cards are sent to the second device, which helps the second device to update information based on the first user portrait and the updated usage order of the at least two NFC cards.
[0142] Correspondingly, the second device receives the first user portrait sent by the first device and the updated usage order of at least two NFC cards.
[0143] Specifically, the second device updates the NFC card usage order corresponding to the third user portrait that is the same as or similar to the first user portrait in the NFC card usage order corresponding to the at least two user portraits stored in the second device based on the received first user portrait and the updated usage order of at least two NFC cards. Exemplarily, when the number of first user portraits and the updated usage order of at least two NFC cards received by the second device from different first devices reaches a preset number, the NFC card usage order corresponding to the third user portrait is updated. The specific value of the preset number can be set according to actual conditions and is not limited. For example, the preset number is 30 or 50.
[0144] The specific process of determining the first NFC card based on the order in which the NFC cards are used is described below:
[0145] refer to Figure 3C , Figure 3C It is a flow chart of another card determination method provided in an embodiment of the present application; the card determination method in the embodiment of the present application can realize NFC card recommendations for multiple first devices (mobile phones, watches, bracelets, etc.) in multiple environments including offline environments based on the NFC card usage sequence. Specifically, firstly, a data mining method is used for the user portrait of the first device and the corresponding user historical usage data to construct an NFC card usage sequence database with user portrait tags. Among them, the user historical usage data is NFC card usage data, and there can be multiple first devices. There can be multiple user portraits for each first device, that is, multiple different users use one first device, or multiple first devices correspond to different users, and each user has a user portrait. Obtain NFC card usage data corresponding to multiple different user portraits corresponding to different first devices.
[0146] Then, for a new first device, the first user portrait of the new first device is used for initialization, and the NFC card usage sequence corresponding to the third user portrait is obtained from the NFC card usage sequence database on the cloud side according to the first user portrait, and the NFC card usage sequence database on the terminal side is established according to the NFC card usage sequence corresponding to the third user portrait. Among them, when the types of NFC cards included in the NFC card usage sequence corresponding to the third user portrait are the same as the types of NFC cards supported by the first device, the NFC card usage sequence corresponding to the third user portrait is directly stored in the NFC card usage sequence database on the terminal side. When the number of NFC card types included in the NFC card usage sequence corresponding to the third user portrait is greater than the number of NFC card types supported by the first device, the first device removes the NFC cards that are not supported by the first device in the NFC card usage sequence corresponding to the third user portrait, and stores the removed NFC card usage sequence in the NFC card usage sequence database on the terminal side.
[0147] Next, the first device uses the usage status of the NFC card in the first time window and the NFC card usage sequence database on the terminal side to perform conditional probability calculation, calculates the NFC card that is most likely to be used next time under the current state, that is, the smart card, and activates the smart card as the card to be used next time. Finally, a user feedback mechanism is set up. When the NFC card actually used by the user is different from the smart card, the wrong card is recommended in time, and the local and cloud-side NFC card usage sequence databases are updated.
[0148] The specific process of determining the first NFC card based on the order in which the NFC cards are used is described more clearly below:
[0149] refer to Figure 3D , Figure 3D This is a system architecture diagram of a card determination method provided by an embodiment of the present application. The intelligent selection system for determining the first NFC card based on the NFC card usage order includes four modules: a user history usage data and user portrait module, an NFC card usage order database module, an end-side NFC card usage order database module, and a user feedback module.
[0150] The user history usage data and user portrait module collects the user history usage data and corresponding user portrait tags in the current system to build an NFC card usage sequence database for different user groups for initialization by new users. User history usage data is NFC card usage data. Specifically, the device uploads the user history usage data to the cloud in combination with the user portrait tag to remove privacy.
[0151] The NFC card usage sequence database module is to build an NFC card usage sequence database associated with the user portrait tag in the cloud, which is used to deploy to the terminal side according to the user portrait. Specifically, the data mining analysis model is performed on the time sequence relationship of the existing user's historical NFC card usage, and the card time sequence relationship is divided into working days, holidays, and morning, noon and evening based on user habits. In addition, the NFC card usage sequence database is built in combination with the user portrait tag, and the NFC card usage sequence database is locally initialized for new users using the user portrait, so that the terminal side has a local NFC card usage sequence database.
[0152] During initialization, according to the user portrait on the terminal side, the corresponding NFC card usage time sequence relationship is retrieved from the NFC card usage sequence database in the cloud, deployed to the terminal side, and the initialization step is completed.
[0153] The NFC card usage sequence database module on the terminal side uses the local NFC card usage sequence database to predict the next card to be used based on the current NFC card usage status (that is, the usage status of the NFC card in the first time window) by calculating the conditional probability, and recommend it as a smart card.
[0154] When the user is using it, if the current NFC card status is that the traffic-related card is in the state of entering the station or on the bus, the traffic-related card is set as the card to be used next time for exiting the station. This can solve the problem of being unable to uniquely determine the card or wrong smart card recommendation due to inaccurate location recognition or overlapping geographic fences. If the NFC card status is other, it is retrieved from the local NFC card usage sequence database according to the current NFC card usage status, and the conditional probability of the card to be used next time is calculated, and the card with the highest conditional probability is used as the smart card; without relying on an external network, the first device equipped with an NFC card can recommend a smart card based on the current NFC card usage status.
[0155] The user feedback module provides a feedback mechanism for users. If the smart card recommendation does not match the actual card used, users can provide timely feedback using the terminal, mark the correct NFC card, and update the local NFC card usage sequence database in real time. This will prevent the same error from occurring next time the same scenario is encountered. After that, the updated NFC card usage sequence database on the end side can be de-privatized (only through user portraits) and uploaded to the cloud. That is, the NFC card usage sequence database on the end side can be de-privatized and uploaded to the cloud in combination with the user portrait tag for cloud data update, so that the end-cloud can be automatically updated, making the personal smart card initialization for new users more accurate, and the accuracy of the entire system NFC card recommendation system continues to improve, and the more you use it, the better.
[0156] The application scenarios of the embodiments of the present application may include NFC card selection scenarios of various devices, such as using a watch to pass through a subway gate, using a mobile phone to take a bus, using a mobile phone to open a car door lock, using a bracelet to open the door of a house, using a mobile phone to open the company access control, etc. In these scenarios, the device can predict the next use of the NFC card in advance and determine the next smart card, so that users do not need to manually switch NFC cards, which is more convenient and quick to use. For example, when the NFC card status is a transportation card entering the station, the transportation card is set to a smart card. When the usage status of the NFC card in the first time window is leaving home and exiting the subway station, the company access control card is set to a smart card. The embodiments of the present application can dynamically recommend NFC cards according to the different states of each user to ensure high accuracy.
[0157] The following is a specific example to illustrate the card determination method of the embodiment of the present application:
[0158] refer to Figure 3E , Figure 3E It is a schematic diagram of the implementation process of a card determination method provided in an embodiment of the present application. Taking the transportation card as an example of transportation-related cards, on the one hand, the use of NFC is the most common scenario in daily life. However, the traditional NFC card recommendation method based on network and GNSS positioning has problems such as overlapping geographic fences and poor signals, which lead to the inability to recommend NFC cards and wrong recommendations, resulting in NFC recognition failure when exiting the subway station and being stuck in the gate. To solve this problem, this embodiment sets the transportation card status determination rule logic, that is, if the current transportation card status is the entered station status or the boarded vehicle status, the transportation card is set to the NFC card to be used next time, that is, the smart selection card.
[0159] Secondly, NFC cards usually include: transportation cards, door lock cards, work cards, car key cards, access cards and bank cards, etc. For different groups of people, different days of the week (weekdays and holidays) and different times of the day, there will be different NFC card usage timing relationships. For example, for a white-collar worker on a weekday, the possible NFC card usage timing is: swipe the community access card when leaving home, swipe the subway card when entering the subway, swipe the subway card when leaving the subway, swipe the work card when entering the company, swipe the work card when entering and exiting multiple gates in the company, swipe the subway card when entering the subway after get off work, swipe the subway card when leaving the subway, and swipe the community access card when entering the house. Therefore, there is a usage timing relationship of access card → subway card (entry and exit) → work card × N → subway card (fixed time period entry and exit) → access card. For another example, a user with a baby on weekends may have a scenario where he drives the baby by himself. There may be an NFC card timing relationship: swipe the community access card when leaving home, swipe the car key card when opening the car door multiple times during the day, and swipe the community access card when returning home. Therefore, there is a usage timing relationship of access card → car key card × N → access card. Therefore, using the above user portrait features, time period features and state transition features, we conduct time series mining modeling according to the crowd, weekdays, holidays, morning, noon and evening time periods, build an NFC card usage sequence database, and deploy the NFC card usage sequence database to the terminal according to the user portrait, so that the terminal can refer to the NFC card usage sequence database for conditional probability calculation according to the current NFC card usage status and time period. Based on past usage habits, we can calculate the NFC card that is most likely to be used next time in the current state, and then determine the smart card to achieve intelligent recommendation of NFC cards. Figure 3E In the example, the NFC card usage sequence database of the terminal includes n card sequences, for example, card sequence 1 is card 0 → card 1 → card 2 → ..., and card sequence n is card 2 → card 0 → card 1 → .... Assuming that the card sequence determined according to the time period to which the current moment belongs is card sequence n, the smart card can be determined to be card 1 according to conditional probability.
[0160] The embodiment of the present application does not need to rely on information such as the network and GNSS, does not need to rely on the network, and is available on multiple terminals; and rule logic is set to perfectly solve the problem of recommendation failure caused by the inability to uniquely determine the NFC card due to poor network and overlapping geographic fences, thereby improving the accuracy of NFC card determination. At the same time, it can be deployed on a variety of offline terminal devices including watches and bracelets, and can be deployed on the terminal side to protect privacy, making these products more intelligent and attracting consumers to buy. And through user feedback on the terminal side, it is updated in time, and the more it is used, the better. The solution is ready to use, which increases user utilization. The solution has low implementation cost and high commercial value.
[0161] The card determination method of the embodiment of the present application involves a state prediction method based on historical usage habits and current status, which can be used in various recommendation scenarios through simple migration, such as user daily purchasing behavior recommendations and reminders, user travel mode recommendations and planning, user travel preference guide generation, and other scenarios.
[0162] The method of the embodiment of the present application is described in detail above, and the device provided by the embodiment of the present application is introduced below.
[0163] Figure 4 A schematic diagram of a possible device structure provided in an embodiment of the present application. Figure 4 The first device shown can be used to implement the functions of the above card determination method embodiment, and thus can also achieve the beneficial effects of the above card determination method embodiment. In the embodiment of the present application, the first device can be an electronic device, or a module (such as a chip) used in an electronic device.
[0164] like Figure 4 As shown, the first device 400 includes an acquisition module 401, a determination module 402 and an activation module 403. The first device 400 is used to implement the above Figure 2 Alternatively, the first device 400 may include a card determination method embodiment for implementing the above Figure 2 A module for any function or operation in the card determination method embodiment shown in the figure may be implemented in whole or in part by software, hardware, firmware or any combination thereof.
[0165] The first device supports at least one NFC card. When the first device 400 is used to implement Figure 2 In the function of the method embodiment shown, the acquisition module 401 is used to acquire the usage status of the NFC card supported by the first device. The determination module 402 is used to determine the first NFC card based on the usage status. The activation module 403 is used to activate the first NFC card.
[0166] The first device in the embodiment of the present application can accurately predict the next activated card based on the usage status of the NFC card of the first device without relying on signals such as the network and GNSS. That is, the NFC card can be activated in advance without the user having to manually switch the card, and the device has a high degree of intelligence.
[0167] In a possible implementation, the at least one NFC card includes a transportation-related card, the use status of the transportation-related card is an entered station status or a boarded vehicle status, and the first NFC card is a transportation-related card.
[0168] In a possible implementation, the at least one NFC card is at least two NFC cards. The acquisition module 401 is specifically used to: acquire the usage status of the at least two NFC cards in the first time window. The end time of the first time window is the current time. The determination module 402 is specifically used to: determine the first NFC card based on the usage status of the at least two NFC cards in the first time window and the usage order of the at least two NFC cards.
[0169] In a possible implementation, the usage order of the at least two NFC cards corresponds to the first user portrait, and the first user portrait corresponds to the first device.
[0170] In a possible implementation, the first user portrait is a portrait of a user currently using the first device, and the first device also corresponds to a second user portrait.
[0171] In a possible implementation, the usage order of the at least two NFC cards is the usage order of the NFC cards corresponding to the time period to which the current moment belongs.
[0172] In a possible implementation manner, the first device 400 further includes:
[0173] The updating module is used to update the use order of at least two NFC cards based on the first NFC card when the first NFC card used by the first device after the current moment is different from the first NFC card.
[0174] In a possible implementation manner, the first device 400 further includes:
[0175] The sending module is used to send the first user portrait and the updated usage order of at least two NFC cards to the second device.
[0176] Figure 5 A schematic diagram of a possible device structure provided in an embodiment of the present application. Figure 5 The second device shown can be used to implement the functions of the above communication method embodiment, and thus can also achieve the beneficial effects of the above communication method embodiment. In the embodiment of the present application, the second device can be an electronic device, or a module (such as a chip) used in an electronic device.
[0177] like Figure 5 As shown, the second device 500 includes a receiving module 501 and a sending module 502. The second device 500 is used to implement the above Figure 3B Alternatively, the second device 500 may include a device for implementing the above Figure 3B Any function or operation module in the communication method embodiment shown in the figure may be implemented in whole or in part by software, hardware, firmware or any combination thereof.
[0178] When the second device 500 is used to implement Figure 3B In the function of the method embodiment shown, the receiving module 501 is used to receive a request message sent by a first device. The sending module 502 is used to send a usage order of at least two NFC cards to the first device.
[0179] The second device in the embodiment of the present application responds to the request message of the first device and sends the usage order of at least two NFC cards to the first device, so that the first device can determine the first NFC card based on the usage order of the at least two NFC cards without relying on signals such as the network and GNSS, that is, the NFC card can be activated in advance without the user having to manually switch the card, and the degree of intelligence is high.
[0180] In a possible implementation manner, the request message indicates a first user portrait corresponding to the first device, and the second device 500 further includes:
[0181] The determination module is used to determine the NFC card usage order corresponding to the third user portrait from the at least two user portraits as the usage order of the at least two NFC cards, and the third user portrait is the same as or similar to the first user portrait.
[0182] In a possible implementation, the receiving module 501 is further used to receive the first user portrait sent by the first device and an updated usage order of at least two NFC cards.
[0183] refer to Figure 6 , Figure 6 600 includes a memory 601, a processor 602, a communication interface 604, and a bus 603. The memory 601, the processor 602, and the communication interface 604 are connected to each other through the bus 603.
[0184] Optionally, the terminal device 600 further includes a display (not shown), which is connected to the memory 601, the processor 602, and the communication interface 604 via the bus 603. The display is used to output images. Optionally, the terminal device further includes an output module (not shown), which is connected to the memory 601, the processor 602, and the communication interface 604 via the bus 603, and the output module is used to output audio. The output module can be a speaker. Exemplarily, after the terminal device 600 determines the first NFC card, the first NFC card can be output through the output module, such as voice output or display output.
[0185] The memory 601 may be a read-only memory (ROM), a static storage device, a dynamic storage device or a random access memory (RAM). The memory 601 may store a program. When the program stored in the memory 601 is executed by the processor 602, the processor 602 and the communication interface 604 are used to execute the various steps of the card determination method or the communication method of any embodiment of the present application.
[0186] The processor 602 can adopt a general-purpose central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), a graphics processing unit (GPU) or one or more integrated circuits to execute relevant programs to implement the functions required to be performed by the units in the first device or the second device of any embodiment of the present application, or to execute the card determination method or communication method of any embodiment of the present application.
[0187] The processor 602 may also be an integrated circuit chip with signal processing capability. In the implementation process, each step of the card determination method or communication method of any embodiment of the present application may be completed by an integrated logic circuit of hardware or software instructions in the processor 602. The above-mentioned processor 602 may also be a general-purpose processor, a digital signal processor (Digital Signal Processing, DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (Field Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The disclosed methods, steps and logic block diagrams in the embodiments of the present application may be implemented or executed. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc. The steps of the card determination method or communication method in combination with any embodiment of the present application may be directly embodied as being executed by a hardware processor, or executed by a combination of hardware and software modules in the processor. The software module may be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 601, and the processor 602 reads the information in the memory 601, and combines its hardware to complete the functions required to be performed by the unit included in the first device or the second device of any embodiment of the present application, or executes the card determination method or communication method of any embodiment of the present application.
[0188] The communication interface 604 uses a transceiver such as but not limited to a transceiver to implement communication between the terminal device 600 and other devices or a communication network. For example, the use order of at least two NFC cards can be obtained through the communication interface 604.
[0189] The bus 603 may include a path for transmitting information between the various components of the terminal device 600 (e.g., the memory 601, the processor 602, and the communication interface 604). In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0190] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0191] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0192] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that contains one or more available media integration. The available medium can be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk), etc.
[0193] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A card determination method, characterized in that: The method is performed by a first device, the first device supports at least one short-range wireless communication NFC card, and the method includes: Obtaining the usage status of the NFC card supported by the first device; determining a first NFC card based on the usage status; Activate the first NFC card.
2. The method according to claim 1, characterized in that The at least one NFC card includes a transportation-related card, the use status of the transportation-related card is an entry status or a boarding status, and the first NFC card is the transportation-related card.
3. The method according to claim 1, characterized in that The at least one NFC card is at least two NFC cards; The obtaining the usage status of the NFC card supported by the first device includes: Acquire the usage status of the at least two NFC cards in a first time window, where the end time of the first time window is the current time; The determining the first NFC card based on the usage status includes: The first NFC card is determined based on usage states of the at least two NFC cards in the first time window and a usage order of the at least two NFC cards.
4. The method according to claim 3, characterized in that The usage order of the at least two NFC cards corresponds to a first user portrait, and the first user portrait corresponds to the first device.
5. The method according to claim 4, characterized in that The first user portrait is a portrait of a user currently using the first device, and the first device also corresponds to a second user portrait.
6. The method according to any one of claims 3 to 5, characterized in that: The usage order of the at least two NFC cards is the usage order of the NFC cards corresponding to the time period to which the current moment belongs.
7. The method according to any one of claims 3 to 6, characterized in that: The method further comprises: When a first NFC card used by the first device after the current moment is different from the first NFC card, a usage order of the at least two NFC cards is updated based on the first NFC card.
8. The method according to claim 7, characterized in that The method further comprises: The first user portrait and the updated usage order of the at least two NFC cards are sent to the second device.
9. A communication method, characterized in that: The method comprises: The second device receives the request message sent by the first device; The second device sends a usage sequence of at least two NFC cards to the first device.
10. The method according to claim 9, characterized in that The request message indicates a first user portrait corresponding to the first device, and the method further includes: The second device determines, from the at least two user portraits, an NFC card usage order corresponding to a third user portrait as the usage order of the at least two NFC cards, and the third user portrait is the same as or similar to the first user portrait.
11. The method according to claim 9 or 10, characterized in that: The method further comprises: The second device receives the first user portrait and the updated usage order of the at least two NFC cards sent by the first device.
12. A first device, characterized in that: The first device supports at least one short-range wireless communication NFC card, and the first device includes: An acquisition module, used to acquire the usage status of the NFC card supported by the first device; A determination module, configured to determine a first NFC card based on the usage status; An activation module, used to activate the first NFC card.
13. A second device, characterized in that: The second device comprises: A receiving module, configured to receive a request message sent by the first device; The sending module is used to send the usage order of at least two NFC cards to the first device.
14. A terminal device, characterized in that: The method comprises a processor and a memory, wherein the processor and the memory are connected, wherein the memory is used to store program codes, and the processor is used to call the program codes to execute the method according to any one of claims 1 to 11.
15. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and the computer program is executed by a processor to implement the method according to any one of claims 1 to 11.