CN110035180B - Card display method, device, terminal and storage medium - Google Patents
Card display method, device, terminal and storage medium Download PDFInfo
- Publication number
- CN110035180B CN110035180B CN201910290871.4A CN201910290871A CN110035180B CN 110035180 B CN110035180 B CN 110035180B CN 201910290871 A CN201910290871 A CN 201910290871A CN 110035180 B CN110035180 B CN 110035180B
- Authority
- CN
- China
- Prior art keywords
- card
- target
- position information
- candidate
- poi
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q20/00—Payment architectures, schemes or protocols
- G06Q20/30—Payment architectures, schemes or protocols characterised by the use of specific devices or networks
- G06Q20/32—Payment architectures, schemes or protocols characterised by the use of specific devices or networks using wireless devices
- G06Q20/327—Short range or proximity payments by means of M-devices
- G06Q20/3278—RFID or NFC payments by means of M-devices
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72403—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
- H04M1/72409—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
- H04M1/72412—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories using two-way short-range wireless interfaces
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72448—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
- H04M1/72457—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to geographic location
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/80—Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Business, Economics & Management (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- Strategic Management (AREA)
- General Business, Economics & Management (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Environmental & Geological Engineering (AREA)
- Accounting & Taxation (AREA)
- User Interface Of Digital Computer (AREA)
- Telephone Function (AREA)
Abstract
The embodiment of the application discloses a card display method, a card display device, a terminal and a storage medium, and belongs to the field of near field communication. The method is used for the terminal with the NFC function, and comprises the following steps: when a card packet calling instruction is received, acquiring current position information, wherein the card packet calling instruction is used for triggering and displaying a card packet interface, and the card packet interface comprises at least one bound NFC card; determining a target card in the card packet according to the current position information, wherein the matching degree of the position information corresponding to the target card and the current position information is greater than a matching degree threshold value; and displaying the target card in a preset area of the card packet interface. Compared with the method that each card is directly displayed on the card package interface and the user manually selects the card to be used from the card package interface, in the embodiment of the application, the target card with high position matching degree is high in probability of being used by the user, so that the efficiency of selecting and using the specified card by the user can be improved after the target card is displayed in the preset area of the card package interface.
Description
Technical Field
The embodiment of the application relates to the field of near field communication, in particular to a card display method, a card display device, a terminal and a storage medium.
Background
With the development of mobile payment, more and more mobile terminals are beginning to be equipped with Near Field Communication (NFC) function. With the help of the NFC function, a user can use the mobile terminal to realize operations such as swiping a bus card, swiping an access card, swiping a bank card and the like.
In the related art, the mobile terminal can bind a plurality of cards through the NFC function, for example, a bus card, an access card, and a bank card can be bound. When the appointed cards are required to be used, the user can call out the card packet interface through a preset operation and manually select the appointed cards required to be used from the card packet interface.
Disclosure of Invention
The embodiment of the application provides a card display method, a card display device, a terminal and a storage medium. The technical scheme is as follows:
in one aspect, an embodiment of the present application provides a card display method, where the method is used for a terminal with an NFC function, and the method includes:
when a card packet calling instruction is received, acquiring current position information, wherein the card packet calling instruction is used for triggering and displaying a card packet interface, and the card packet interface comprises at least one bound NFC card;
determining a target card in a card package according to the current position information, wherein the matching degree of the position information corresponding to the target card and the current position information is greater than a matching degree threshold value;
and displaying the target card in a preset area of the card packet interface.
In another aspect, an embodiment of the present application provides a card display apparatus, where the apparatus is used for a terminal with an NFC function, and the method includes:
the device comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for acquiring current position information when a card packet calling instruction is received, the card packet calling instruction is used for triggering and displaying a card packet interface, and the card packet interface comprises at least one bound NFC card;
the first determining module is used for determining a target card in a card package according to the current position information, and the matching degree of the position information corresponding to the target card and the current position information is greater than a matching degree threshold value;
the first display module is used for displaying the target card in a preset area of the card package interface.
On the other hand, an embodiment of the present application provides a terminal, where the terminal includes: the terminal comprises a processor and a memory; the memory stores at least one instruction for execution by the processor to implement the card display method of the above aspect.
In another aspect, a computer-readable storage medium is provided, the storage medium storing at least one instruction for execution by a processor to implement the card display method of the above aspect.
In another aspect, a computer program product is provided, which stores at least one instruction, and the at least one instruction is loaded and executed by the processor to implement the card display method of the above aspect.
By adopting the card display method provided by the embodiment of the application, when a card package calling instruction is received, the target card with the matching degree larger than the matching degree threshold value is determined by acquiring the current position information and according to the current position information and the position information corresponding to each card in the card package, so that the target card is displayed in the preset display area of the card package interface; compared with the method that each card is directly displayed on the card package interface and the user manually selects the card to be used from the card package interface, in the embodiment of the application, the target card with high position matching degree is high in probability of being used by the user, so that the efficiency of selecting and using the specified card by the user can be improved after the target card is displayed in the preset area of the card package interface.
Drawings
Fig. 1 and 2 are block diagrams illustrating a structure of a terminal according to an exemplary embodiment of the present application;
FIG. 3 illustrates a flow chart of a card display method shown in an exemplary embodiment of the present application;
FIG. 4 is a schematic interface diagram of an implementation of the card display method of FIG. 3;
FIG. 5 illustrates a flow chart of a card display method shown in another exemplary embodiment of the present application;
FIG. 6 is a schematic interface diagram of an implementation of the card display method of FIG. 5;
FIG. 7 illustrates a flow chart of a card display method shown in another exemplary embodiment of the present application;
fig. 8 is a block diagram illustrating a structure of a card display device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
Reference herein to "a plurality" means two or more. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
Referring to fig. 1 and 2, a block diagram of a terminal 100 according to an exemplary embodiment of the present application is shown. The terminal 100 may be a mobile phone, a tablet computer, a notebook computer, an e-book, etc. The terminal 100 in the present application may include one or more of the following components: a processor 110, a memory 120, and a display 130.
The Memory 120 may include a Random Access Memory (RAM) or a Read-Only Memory (Read-Only Memory). Optionally, the memory 120 includes a non-transitory computer-readable medium. The memory 120 may be used to store instructions, programs, code sets, or instruction sets. The memory 120 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing various method embodiments described below, and the like; the storage data area may store data (such as audio data, a phonebook) created according to the use of the terminal 100, and the like.
Taking an operating system as an Android (Android) system as an example, programs and data stored in the memory 120 are shown in fig. 1, and a Linux kernel layer 220, a system runtime layer 240, an application framework layer 260, and an application layer 280 are stored in the memory 120. The Linux kernel layer 220 provides underlying drivers for various hardware of the terminal 100, such as a display driver, an audio driver, a camera driver, a bluetooth driver, a Wi-Fi driver, power management, and the like. The system runtime library layer 240 provides the main feature support for the Android system through some C/C + + libraries. For example, the SQLite library provides support for a database, the OpenGL/ES library provides support for 3D drawing, the Webkit library provides support for a browser kernel, and the like. Also provided in the system Runtime layer 240 is an Android Runtime library 242(Android Runtime), which mainly provides some core libraries and can allow developers to write Android applications using the Java language. The application framework layer 260 provides various APIs that may be used in building applications, and developers may build their own applications by using these APIs, such as activity management, window management, view management, notification management, content provider, package management, session management, resource management, and location management. At least one application program runs in the application layer 280, and the application programs may be a contact program, a short message program, a clock program, a camera application, etc. of the operating system; or an application program developed by a third-party developer, such as an instant messaging program, a photo beautification program, and the like.
Taking an operating system as an IOS system as an example, programs and data stored in the memory 120 are shown in fig. 2, and the IOS system includes: a Core operating system Layer 320(Core OS Layer), a Core Services Layer 340(Core Services Layer), a Media Layer 360(Media Layer), and a touchable Layer 380(Cocoa Touch Layer). The kernel operating system layer 320 includes an operating system kernel, drivers, and underlying program frameworks that provide functionality closer to hardware for use by program frameworks located in the kernel services layer 340. The core services layer 340 provides system services and/or program frameworks, such as a Foundation framework, an account framework, an advertisement framework, a data storage framework, a network connection framework, a geographic location framework, a motion framework, and so forth, that are needed by the application. The media layer 360 provides audiovisual interfaces for applications, such as graphics-related interfaces, audio-related interfaces, video-related interfaces, and audio/video transmission technology wireless broadcast (AirPlay) interfaces. The touchable layer 380 provides various common interface-related frameworks for application development, and the touchable layer 380 is responsible for user touch interaction operations on the terminal 100. Such as a local notification service, a remote push service, an advertising framework, a game tool framework, a messaging User Interface (UI) framework, a User Interface UIKit framework, a map framework, and so forth.
In the framework shown in FIG. 2, the framework associated with most applications includes, but is not limited to: a base framework in the core services layer 340 and a UIKit framework in the touchable layer 380. The base framework provides many basic object classes and data types, provides the most basic system services for all applications, and is UI independent. While the class provided by the UIKit framework is a basic library of UI classes for creating touch-based user interfaces, iOS applications can provide UIs based on the UIKit framework, so it provides an infrastructure for applications for building user interfaces, drawing, processing and user interaction events, responding to gestures, and the like.
The display screen 130 is used to display the display components of the user interface. Optionally, the display screen 130 further has a touch function for receiving a touch operation of a user on or near the display screen by using any suitable object such as a finger, a touch pen, and the like. The display 130 is generally disposed on a front panel of the terminal 130. The display screen 130 may be designed as a full-face screen, a curved screen, a contoured screen, a double-face screen, or a folding screen. The display 130 may also be designed as a combination of a full-screen and a curved-screen, and a combination of a non-flat screen and a curved-screen, which is not limited in this embodiment.
In the embodiment of the present application, the terminal 100 has an NFC function, and the NFC function is implemented by an NFC component. Optionally, the NFC component has a card reading function, and by the card reading function, the NFC component can read card information of the NFC card and store (store in the memory 120) the read card information. In addition, the NFC component also has a function of communicating with other NFC devices, and through the function, the NFC component can send the stored card information of the NFC card to the NFC devices.
In addition, those skilled in the art will appreciate that the configuration of terminal 100 as illustrated in the above-described figures is not intended to be limiting of terminal 100, and that terminals may include more or less components than those illustrated, or some components may be combined, or a different arrangement of components. For example, the terminal 100 further includes a radio frequency circuit, an input unit, a sensor, an audio circuit, a Wireless Fidelity (WiFi) module, a power supply, a bluetooth module, and other components, which are not described herein again.
In the related art, when a plurality of NFC cards are bound in a terminal, the terminal displays each NFC card on a card package interface according to a predetermined display logic when receiving a card package outgoing call instruction, and a user manually selects a card to be used from the card package interface. Wherein the predetermined display logic comprises: and displaying each NFC card according to a default display sequence or preferentially displaying the last used NFC card.
However, when the cards are displayed in such a display manner, a user needs to manually screen a large number of cards, so as to select the cards to be used, which results in low card selection and use efficiency.
In the embodiment of the application, when the card package calling instruction is received, the current position information is acquired, so that the target card with the position matching degree larger than the matching degree threshold value is determined according to the current position information and the position information corresponding to each card in the card package, the target card is displayed in the preset area of the card package interface, a user can conveniently and quickly select and use the target card, and the card selecting and using efficiency is improved. The following description will be made by using exemplary embodiments.
Referring to fig. 3, a flowchart of a card display method according to an exemplary embodiment of the present application is shown. The present embodiment is illustrated by applying the method to the terminal 100 shown in fig. 1 or 2. The method comprises the following steps:
Optionally, the card packet outgoing instruction is triggered by a card packet outgoing operation (active user triggering), or triggered after receiving a radio frequency signal sent by an external NFC device. For example, when an operation signal (such as double-click on a physical key) for a predetermined physical key is received, the terminal determines that a card packet calling instruction is received; or when the terminal is close to the NFC POS machine and the terminal receives a radio frequency signal sent by the NFC POS machine, the terminal determines to receive a card packet calling instruction. The embodiment of the application does not limit the triggering mode of the card packet calling instruction.
Optionally, the current location information is used to indicate an environment in which the terminal is currently located, and the current location information may be represented by a geographic location coordinate and/or a Wireless Fidelity (WiFi) fingerprint.
In a possible embodiment, the current location information is provided by a location service in the terminal. Taking the android System as an example, the current position information is obtained by a Global Positioning System (GPS) in a GPS _ PROVIDER service invocation terminal; alternatively, the current location information is obtained by NETWORK (base station location or WiFi location) location by NETWORK _ PROVIDER service. The embodiment of the present application does not limit the manner of acquiring the current location information.
And 302, determining a target card in the card package according to the current position information, wherein the matching degree of the position information corresponding to the target card and the current position information is greater than a matching degree threshold value.
Different from the prior art, after a card package calling instruction is received, cards are displayed in a card package interface according to preset display logic.
Optionally, the position information corresponding to the target card is position information of a geographical position where the target card is located during historical use, or the position information of the target card is position information written when the target card is added.
Correspondingly, when the matching degree of the position information corresponding to the target card and the current position information is greater than the threshold value of the matching degree, the fact that the current location of the terminal is close to the geographic position of the historical use location of the target card is indicated, or the current location of the terminal is close to the geographic position of the target use location of the target card is indicated.
The matching degree of the position information corresponding to the target card and the current position information is high, so that the probability that the user uses the target card in the current geographic position is high. Further, the terminal displays the target card in a preset area of the card package interface so as to improve the efficiency of selecting and using the target card by the user.
Optionally, the display priority or the degree of significance of the predetermined area is higher than that of other display areas in the card package interface.
Illustratively, as shown in fig. 4, the terminal determines "B city bus card" as the target card 41 according to the position information of the card and the current position information, so that the target card 41 is displayed in a middle display area 43 (i.e., a reservation area) of the card package interface 42 in an expanded manner, and other cards in the card package interface 42 are displayed in other display areas in a stacked manner.
In a possible implementation manner, when a selection operation on a target card is received, the terminal sends card information corresponding to the target card through the NFC component, and after the card information is received by the external NFC device, the card use is completed.
Illustratively, as shown in fig. 4, when the clicking operation on the target card 41 is received, the terminal transmits the card information of the target card 41 through the NFC component.
In order to further improve the use efficiency of the cards, in another possible implementation mode, when a target card is determined, the terminal directly sends the card information corresponding to the target card through the NFC component without receiving the selection operation of the target card.
Of course, if the target card displayed in the predetermined area is not the card that the user desires to use, the user can still manually select to use other cards from the card pack interface. Illustratively, as shown in fig. 4, when the target card 41 is not a card that the user desires to use, the user can switch the card displayed in the middle display area 43 by a slide-up and down operation.
In summary, according to the card display method provided by the embodiment of the application, when a card package calling instruction is received, a target card with a matching degree greater than a matching degree threshold is determined according to the current position information and the position information corresponding to each card in the card package, so that the target card is displayed in a preset display area of a card package interface; compared with the method that each card is directly displayed on the card package interface and the user manually selects the card to be used from the card package interface, in the embodiment of the application, the target card with high position matching degree is high in probability of being used by the user, so that the efficiency of selecting and using the specified card by the user can be improved after the target card is displayed in the preset area of the card package interface.
In a possible scenario, when each card bound by the terminal does not contain corresponding position information, or the matching degree of the position information corresponding to the card and the current position information is lower than a matching degree threshold value, the terminal adopts matching recommendation logic to recommend the NFC card used in the current place to the user. The following description will be made by way of exemplary embodiments.
Referring to fig. 5, a flowchart of a card display method according to another exemplary embodiment of the present application is shown. The present embodiment is illustrated by applying the method to the terminal 100 shown in fig. 1 or 2. The method comprises the following steps:
The step 301 may be referred to in the implementation manner of this step, and this embodiment is not described herein again.
In one possible implementation, the terminal maintains a position database, and the position database contains the corresponding relation between each candidate card and the position information. Illustratively, the correspondence between the candidate card and the position information is shown in table one.
Watch 1
In the embodiment of the application, the location information includes at least one of a geographic location coordinate and a WiFi fingerprint, and correspondingly, the current location information acquired by the terminal includes at least one of a current geographic location coordinate and a current WiFi fingerprint. Optionally, the geographic position coordinate may be obtained by a GPS component, and calculated by a base station positioning or WiFi positioning method, which is not limited in this embodiment of the present application.
Moreover, since one card may correspond to a plurality of use locations, the position information corresponding to the same card may include a plurality of different geographic position coordinates and/or WiFi fingerprints. For example, as shown in table one, four geographic position coordinates corresponding to the bus card in city a correspond to 4 different bus stops respectively.
And after the terminal acquires the current position information, reading the position information corresponding to each candidate card from the position database, and calculating the matching degree between the position information and the current position information. If the matching degree is greater than the threshold matching degree (e.g., 90%), performing steps 503 and 504; if the matching degree is smaller than the threshold value, steps 505 to 508 are performed.
In step 503, if the matching degree between the position information corresponding to the candidate card and the current position information is greater than the threshold value of the matching degree, the candidate card is determined as the target card.
The method for calculating the matching degree by the terminal is different for position information in different expression forms, and in one possible implementation mode, when the position information comprises a geographical position coordinate, the terminal calculates a coordinate distance between the geographical position coordinate and a current geographical position coordinate in the current position information; and if the coordinate distance is smaller than the first distance threshold, determining that the matching degree of the position information and the current position information is larger than the matching degree threshold, and determining the candidate card as the target card.
In conjunction with the data shown in table one, in an illustrative example, the current location information acquired by the terminal includes current geographic location coordinates B ', so as to calculate coordinate distances between the current geographic location coordinates B' and the geographic location coordinates A, B, C, D, E, F, G, respectively. Since the coordinate distance between the current geographic position coordinate B' and the geographic position coordinate B is smaller than a first distance threshold (for example, 50m), the terminal determines the candidate card "a city bus card" corresponding to the geographic position coordinate B as the target card.
In another possible implementation manner, when the position information contains a WiFi fingerprint, the terminal calculates the fingerprint similarity between the WiFi fingerprint and a current WiFi fingerprint in the current position information; and if the similarity of the fingerprints is greater than the similarity threshold, determining that the matching degree of the position information and the current position information is greater than the matching degree threshold, and determining the candidate card as the target card.
With reference to the data shown in table one, in an illustrative example, the current location information acquired by the terminal includes a current WiFi fingerprint, and the current WiFi fingerprint includes: SSID a, SSID B, and SSID C. Because the fingerprint similarity between the WiFi fingerprint A in the position database and the current WiFi fingerprint is larger than the similarity threshold (such as 90%), the terminal determines the candidate card 'company access card' corresponding to the WiFi fingerprint A as the target card.
Besides determining the target card according to the geographic position coordinates or the WiFi fingerprint, in another possible implementation mode, the terminal can determine the target card according to the geographic position coordinates and the WiFi fingerprint at the same time, and the target card can be determined in such a way, so that the accuracy of the determined target card can be further improved, and the method is particularly suitable for scenes where the using places of the two cards are very close to each other (such as a bus station and a convenience store near the bus station).
In one possible embodiment, when the at least two target cards are determined, that is, when there are at least two cards that may be used at the current position, the terminal further selects one target card from the at least two target cards and displays the selected target card in the predetermined area.
In one possible implementation mode, for each determined target card, the terminal obtains historical use time period information corresponding to the target card, and therefore the target card with the highest time matching degree is displayed in the preset area according to the time matching degree between the historical use time period information and the current time.
Optionally, the position database includes a correspondence between the candidate card, the position information, and the historical usage period information is generated according to a historical usage time point of the candidate card. Illustratively, the correspondence among the candidate card, the position information, and the historical usage period information is shown in table two.
Watch two
Optionally, when the matching degree between the position information corresponding to at least two target cards and the current position information is higher than the matching degree threshold, the terminal further reads the historical usage time period information corresponding to the target card from the position database, and calculates the time matching degree between the current time and the historical usage time period information.
In an illustrative example, in the morning 9:05, after the terminal receives the card package outgoing call instruction, the terminal determines that the target card includes a company access card and a city a bus card (the company is adjacent to a bus stop). The current time belongs to the historical use time period of the company access control card, but does not belong to the historical use time period of the bus card in city A, so that the terminal displays the company access control card in a preset area.
When a user wants to use an encrypted card (such as a bank card), in order to improve the use efficiency, identity authentication information is input at the same time of calling out a card package interface, such as a fingerprint is input through a fingerprint sensor; when the privacy-free card (such as a bus card) is used, the user can not enter the authentication information. Therefore, in another possible implementation manner, the terminal may determine the target card displayed in the predetermined area according to the acquisition condition of the authentication information.
Optionally, if the identity authentication information is not acquired, the terminal displays a password-free card in the target card in a predetermined area; and if the identity authentication information is acquired, displaying the encrypted card in the target card in a preset area.
In an illustrative example, after the terminal receives the card package outgoing call instruction, the terminal determines that the target card comprises a city A bus card and a bank card (a bus station is adjacent to a convenience store). The terminal receives the card packet calling instruction and simultaneously acquires the fingerprint input by the user, so that the terminal determines that the user wants to use the encrypted card, and the bank card is displayed in the preset area.
In other possible implementations, the terminal may further determine a target card that the user desires to use according to factors such as the use frequency and the use times of the card, which is not limited in this embodiment of the application.
And 505, if the matching degree of the position information corresponding to each candidate card and the current position information is smaller than the threshold value of the matching degree, acquiring at least one candidate POI according to the current position information, wherein the candidate POI is located in a preset range around the position indicated by the current position information.
When the matching degree Of the position information corresponding to each candidate card and the current position information is smaller than the threshold value Of the matching degree, the terminal starts a matching recommendation logic and carries out card recommendation according to a Point Of Interest (POI) around the current location, wherein the POI can be a bus station, a convenience store, a school, a cinema, a market, a restaurant, a parking lot and the like.
In one possible implementation, the terminal obtains each POI within a predetermined range (e.g., within a circular range with a radius of 100 m) around the current geographic position coordinate according to the current geographic position coordinate included in the current location information. Optionally, the terminal sends the current geographic position coordinate to the map server, and the map server screens candidate POIs from the map according to the current geographic position coordinate and feeds the candidate POIs back to the terminal.
In an illustrative example, according to the current geographic position coordinates, the candidate POIs obtained by the terminal from the map 61 include: XX mansion, XX restaurant, XX movie city, 95 road bus station and XX supermarket.
The cards used by the different POIs of the user have respective characteristics, such as the use of a bus card near a bus station, the use of a bank card in a supermarket, the use of an access card in a community and the like, so that the terminal can determine the recommended card for the candidate card with higher association degree with the candidate POI according to the association degree between the candidate card and the candidate POI. In one way of determining the recommended cards, on the basis of fig. 5, as shown in fig. 7, the present step may further include the following steps.
Since the probability that the user uses the card at the POI closest to the current location is highest, the terminal may determine the candidate POI closest to the current location as the target POI according to the POI coordinates of each candidate POI and the geographic location coordinates included in the current location information.
Illustratively, as shown in fig. 6, the terminal determines the XX city closest to the current position in the candidate POIs as the target POI.
Of course, in other possible embodiments, the terminal may also determine, as the target POI, at least two candidate POIs whose distances from the current location are smaller than a threshold (for example, 50m), which is not limited in this embodiment.
In one possible implementation, the terminal stores a correspondence between the POI type and the card type, which is schematically shown in table three.
Watch III
POI types | Card type |
Bus station | Bus card |
Residential district, school and mansion | Entrance guard card |
Cinema for carrying out the method | Movie card and bank card |
After the target POI is determined through the steps, the terminal determines the type of the target card according to the type of the target POI corresponding to the target POI.
With reference to fig. 6 and table three, in an illustrative example, since the target POI type corresponding to the target POI "XX movie theater" is a movie theater, the terminal determines the target card types to be "movie card" and "bank card".
Further, the terminal determines the candidate card of which the target belongs to the target card type as the recommended card. Optionally, the card type corresponding to each card is generated by the terminal according to the remark information of each card in advance.
Optionally, the same POI type may correspond to multiple card types, and the relevance degrees corresponding to different card types are different. For example, in table three, the POI type in the movie theater corresponds to two card types, namely a movie card and a bank card, and the correlation degree corresponding to the movie card is higher than that corresponding to the bank card.
In a possible implementation manner, when determining the recommended card according to the target card type, if the target card types are at least two, the terminal determines the recommended card according to the descending order of the relevancy of the target card types: and if the candidate card of the target card type belonging to the ith relevancy is not included, detecting whether the candidate card of the target card type of the ith +1 relevancy is included or not, wherein the ith relevancy is higher than the ith +1 relevancy.
In an exemplary example, with reference to fig. 6 and table three, since the correlation of the movie card is higher than that of the bank card, the terminal first detects whether a candidate card belonging to the movie card is included. Since the "XX movie card" belongs to the "movie card", the terminal determines the "XX movie card" as the recommendation card.
And 507, displaying the recommended cards in the card package interface, wherein the display priority of the recommended cards is higher than that of other candidate cards.
In a possible implementation manner, after the recommendation card is determined through the steps, the terminal displays the recommendation card in a recommendation bar area of the card package interface, wherein the display priority of the recommendation bar area is higher than that of other areas.
Illustratively, as shown in fig. 6, the terminal displays the recommendation card 62 in a card package interface 63 in an expanded manner, while the other cards in the card package interface 63 are displayed in a stacked manner.
It should be noted that, after the terminal displays the recommendation card, the card information of the recommendation card is not directly sent through the NFC component, but the card information of the recommendation card is sent through the NFC component after the usage signal of the recommendation card is received.
And step 508, if the use signal of the recommended card is received, updating the position information corresponding to the recommended card in the position database according to the current position information.
When a use signal of the recommended card is received, the recommended card is a card which a user expects to use at the current place, the recommended card is conveniently displayed as a target card in the follow-up process, and the terminal updates the position information corresponding to the recommended card in the position database according to the current position information.
Schematically, as shown in fig. 6, the terminal updates the corresponding relationship shown in table two according to the current position information, and the obtained updated corresponding relationship is shown in table four.
Watch four
In this embodiment, when the matching degree between the position information corresponding to the candidate card and the current position information is lower than the matching degree threshold, the terminal determines and recommends the recommended card from the candidate cards by using the matching recommendation logic according to the POI distribution situation around the current location, so that a user is prevented from manually selecting a card expected to be used from a large number of cards, and the use efficiency of the card is improved.
In addition, the terminal updates the data in the position database according to the service condition of the recommended card, so that the subsequent card display based on the data in the position database is facilitated, the matching recommendation logic is prevented from being executed again, and the service efficiency of the card is improved.
Referring to fig. 8, a block diagram of a card display device according to an embodiment of the present application is shown. The apparatus may be implemented as all or a portion of the terminal 100 through software, hardware, or a combination of both. The device includes:
the first obtaining module 801 is configured to obtain current location information when a card packet outgoing instruction is received, where the card packet outgoing instruction is used to trigger and display a card packet interface, and the card packet interface includes at least one bound NFC card;
a first determining module 802, configured to determine a target card in a card package according to the current location information, where a matching degree between location information corresponding to the target card and the current location information is greater than a threshold of the matching degree;
a first display module 803, configured to display the target card in a predetermined area of the card package interface.
Optionally, the first determining module 802 includes:
the reading unit is used for reading the position information corresponding to each candidate card in the card package from a position database, wherein the position information comprises at least one of geographic position coordinates and wireless fidelity WiFi fingerprints;
a first determining unit, configured to determine the candidate card as the target card if a matching degree of the position information of the candidate card and the current position information is greater than the matching degree threshold.
Optionally, the determining unit is configured to:
when the position information contains the geographic position coordinate, calculating a coordinate distance between the geographic position coordinate and the current geographic position coordinate in the current position information; if the coordinate distance is smaller than a distance threshold, determining that the matching degree of the position information and the current position information is larger than the matching degree threshold, and determining the candidate card as the target card;
and/or the presence of a gas in the gas,
when the position information comprises the WiFi fingerprint, calculating the fingerprint similarity between the WiFi fingerprint and the current WiFi fingerprint in the current position information; if the fingerprint similarity is larger than a similarity threshold, determining that the matching degree of the position information and the current position information is larger than the matching degree threshold, and determining the candidate card as the target card.
Optionally, the apparatus further comprises:
a second obtaining module, configured to obtain at least one candidate POI according to the current location information if the matching degree between the location information corresponding to each candidate card and the current location information is smaller than the matching degree threshold, where the candidate POI is located in a predetermined range around a location indicated by the current location information;
the second determination module is used for determining a recommended card in the candidate cards according to the card type corresponding to each candidate card and the POI type corresponding to each candidate POI;
and the second display module is used for displaying the recommended cards in the card package interface, and the display priority of the recommended cards is higher than that of other candidate cards.
Optionally, the second determining module includes:
a second determining unit, configured to determine a target POI in the candidate POIs according to the POI coordinates of each candidate POI and the geographic location coordinates included in the current location information, where a coordinate distance between the POI coordinates of the target POI and the geographic location coordinates is smaller than a coordinate distance between the POI coordinates of other candidate POIs and the geographic location coordinates;
the third determining unit is used for determining the type of a target card according to the type of a target POI corresponding to the target POI;
a fourth determination unit configured to determine the candidate card belonging to the target card type as the recommended card.
Optionally, the apparatus further comprises:
and the updating module is used for updating the position information corresponding to the recommended card in the position database according to the current position information if receiving the use signal of the recommended card.
Optionally, the number of the target cards is at least two;
the first display module 803 includes:
the acquisition unit is used for acquiring historical use time period information corresponding to each target card;
and the first display unit is used for displaying the target card with the highest time matching degree in the preset area according to the time matching degree between the historical use time period information and the current time.
Optionally, the number of the target cards is at least two;
the first display module 803 includes:
the second display unit is used for displaying a password-free card in the target card in the preset area if the identity authentication information is not acquired;
and the third display unit is used for displaying the encrypted card in the target card in the preset area if the identity authentication information is acquired.
In summary, according to the card display method provided by the embodiment of the application, when a card package calling instruction is received, a target card with a matching degree greater than a matching degree threshold is determined according to the current position information and the position information corresponding to each card in the card package, so that the target card is displayed in a preset display area of a card package interface; compared with the method that each card is directly displayed on the card package interface and the user manually selects the card to be used from the card package interface, in the embodiment of the application, the target card with high position matching degree is high in probability of being used by the user, so that the efficiency of selecting and using the specified card by the user can be improved after the target card is displayed in the preset area of the card package interface.
The embodiment of the present application further provides a computer-readable medium, where at least one instruction is stored, and the at least one instruction is loaded and executed by the processor to implement the card display method according to the above embodiments.
The embodiment of the present application further provides a computer program product, where at least one instruction is stored, and the at least one instruction is loaded and executed by the processor to implement the card display method according to the above embodiments.
Those skilled in the art will recognize that, in one or more of the examples described above, the functions described in the embodiments of the present application may be implemented in hardware, software, firmware, or any combination thereof. When implemented in software, the functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. A storage media may be any available media that can be accessed by a general purpose or special purpose computer.
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the protection scope of the present application.
Claims (9)
1. A card display method, wherein the method is used for a terminal with Near Field Communication (NFC) function, and the method comprises the following steps:
when a card packet calling instruction is received, acquiring current position information, wherein the card packet calling instruction is used for triggering and displaying a card packet interface, and the card packet interface comprises at least one bound NFC card;
determining a target card or a recommended card in a card package according to the current position information, wherein the matching degree of the position information corresponding to the target card and the current position information is greater than a matching degree threshold value, the recommended card is a card which is determined according to at least one POI (point of interest) corresponding to the current position information when the matching degree of the position information corresponding to the card in the card package and the current position information is less than the matching degree threshold value, the correlation degree of the card type of the recommended card and the target POI type is higher than the correlation degree of the card type of other cards and the target POI type, and the position information comprises the position information of the geographical position of the card in the card package when the card is used in history;
displaying the target card or the recommended card in a preset area of the card package interface, wherein when at least two target cards exist, the target card displayed in the preset area is the target card with the highest time matching degree between the historical use time period information and the current time, and the historical use time period information is generated according to the historical use time point of the candidate card;
and if the use signal of the recommended card is received, updating the position information and the historical use time period information corresponding to the recommended card in a position database according to the current position information.
2. The method of claim 1, wherein determining the target card in the card package based on the current location information comprises:
for each candidate card in the card package, reading the position information corresponding to the candidate card from a position database, wherein the position information comprises at least one of geographic position coordinates and wireless fidelity (WiFi) fingerprints;
and if the matching degree of the position information corresponding to the candidate card and the current position information is greater than the matching degree threshold value, determining the candidate card as the target card.
3. The method according to claim 2, wherein the determining the candidate card as the target card if the matching degree of the position information corresponding to the candidate card and the current position information is greater than the matching degree threshold value comprises:
when the position information contains the geographic position coordinate, calculating a coordinate distance between the geographic position coordinate and the current geographic position coordinate in the current position information; if the coordinate distance is smaller than a distance threshold, determining that the matching degree of the position information and the current position information is larger than the matching degree threshold, and determining the candidate card as the target card;
and/or the presence of a gas in the gas,
when the position information comprises the WiFi fingerprint, calculating the fingerprint similarity between the WiFi fingerprint and the current WiFi fingerprint in the current position information; if the fingerprint similarity is larger than a similarity threshold, determining that the matching degree of the position information and the current position information is larger than the matching degree threshold, and determining the candidate card as the target card.
4. The method of claim 2, wherein determining recommended cards in a card package according to the current location information comprises:
if the matching degree of the position information corresponding to each candidate card and the current position information is smaller than the matching degree threshold value, acquiring at least one candidate POI according to the current position information, wherein the candidate POI is located in a preset range around the position indicated by the current position information;
determining the recommended cards in the candidate cards according to the card types corresponding to the candidate cards and the POI types corresponding to the candidate POIs;
the displaying the recommended card in a predetermined area of the card package interface includes:
and displaying the recommended cards in the card package interface, wherein the display priority of the recommended cards is higher than that of other candidate cards.
5. The method according to claim 4, wherein the determining the recommended card of the candidate cards according to the card type corresponding to each candidate card and the POI type corresponding to each candidate POI comprises:
determining the target POI in the candidate POI according to the POI coordinates of each candidate POI and the geographic position coordinates contained in the current position information, wherein the coordinate distance between the POI coordinates of the target POI and the geographic position coordinates is smaller than the coordinate distances between the POI coordinates of other candidate POI and the geographic position coordinates;
determining a target card type according to the target POI type corresponding to the target POI;
determining the candidate card belonging to the target card type as the recommended card.
6. The method according to any one of claims 1 to 5, wherein there are at least two target cards;
the displaying the target card in a predetermined area of the card package interface includes:
if the identity authentication information is not acquired, displaying a password-free card in the target card in the preset area;
and if the identity authentication information is acquired, displaying the encrypted card in the target card in the preset area.
7. A card display apparatus, wherein the apparatus is used for a terminal having a Near Field Communication (NFC) function, the apparatus comprising:
the device comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for acquiring current position information when a card packet calling instruction is received, the card packet calling instruction is used for triggering and displaying a card packet interface, and the card packet interface comprises at least one bound NFC card;
a first determining module, configured to determine a target card or a recommended card in a card package according to the current location information, where a matching degree between location information corresponding to the target card and the current location information is greater than a matching degree threshold, the recommended card is a card determined based on a target POI type of the target POI, where when both the matching degrees between the location information corresponding to the card in the card package and the current location information are less than the matching degree threshold, a target POI is determined according to at least one POI corresponding to the current location information, a correlation between the card type of the recommended card and the target POI type is higher than a correlation between the card type of another card and the target POI type, and the location information includes location information of a geographic location where the card in the card package is located during historical use;
the first display module is used for displaying the target card or the recommended card in a preset area of the card package interface, wherein when at least two target cards exist, the target card displayed in the preset area is the target card with the highest time matching degree between the historical use time period information and the current time, and the historical use time period information is generated according to the historical use time point of the candidate card;
and the updating module is used for updating the position information and the historical use time period information corresponding to the recommended card in a position database according to the current position information if the use signal of the recommended card is received.
8. A terminal, characterized in that the terminal comprises a processor and a memory; the memory stores at least one instruction for execution by the processor to implement a card display method as claimed in any one of claims 1 to 6.
9. A computer-readable storage medium having stored thereon at least one instruction for execution by a processor to implement the card display method of any of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910290871.4A CN110035180B (en) | 2019-04-11 | 2019-04-11 | Card display method, device, terminal and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910290871.4A CN110035180B (en) | 2019-04-11 | 2019-04-11 | Card display method, device, terminal and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110035180A CN110035180A (en) | 2019-07-19 |
CN110035180B true CN110035180B (en) | 2022-01-28 |
Family
ID=67238096
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910290871.4A Active CN110035180B (en) | 2019-04-11 | 2019-04-11 | Card display method, device, terminal and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110035180B (en) |
Families Citing this family (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110620833B (en) * | 2019-08-16 | 2021-05-11 | 华为技术有限公司 | Display method of foldable electronic equipment and electronic equipment |
CN112529564A (en) * | 2019-09-18 | 2021-03-19 | 华为技术有限公司 | Method and electronic equipment for near field wireless communication |
CN110807502B (en) * | 2019-10-31 | 2024-04-09 | 天星数科科技有限公司 | NFC intelligent card configuration method and device |
CN111090772A (en) * | 2019-12-17 | 2020-05-01 | 北京小米移动软件有限公司 | Target card activation method and device and electronic equipment |
CN111198927B (en) * | 2020-01-02 | 2020-11-17 | 平安科技(深圳)有限公司 | Geographic position data matching method and device, electronic equipment and storage medium |
CN114946202B (en) * | 2020-02-14 | 2024-02-27 | 深圳市与飞科技有限公司 | NFC card simulation mode starting method, NFC card simulation mode starting device, terminal and storage medium |
CN113364490B (en) * | 2020-03-04 | 2022-07-29 | 华为技术有限公司 | NFC application calling method, electronic equipment and NFC device |
CN111913773A (en) * | 2020-07-31 | 2020-11-10 | 维沃移动通信有限公司 | NFC card control method, NFC card control device and electronic equipment |
WO2022099563A1 (en) * | 2020-11-12 | 2022-05-19 | 深圳市汇顶科技股份有限公司 | Card selection method for nfc card simulation mode, chip, terminal, and storage medium |
CN112069848B (en) * | 2020-11-12 | 2021-04-30 | 深圳市汇顶科技股份有限公司 | Card selection method, chip, terminal and storage medium for NFC card simulation mode |
CN112416227B (en) * | 2020-11-19 | 2022-06-14 | Oppo(重庆)智能科技有限公司 | Configuration method, mobile terminal and computer storage medium |
CN113163326B (en) * | 2021-04-09 | 2022-10-25 | Oppo广东移动通信有限公司 | Multi-NFC card selection method and device, electronic equipment and storage medium |
CN113986369B (en) * | 2021-09-18 | 2023-02-28 | 荣耀终端有限公司 | Internet of things equipment control method and system, electronic equipment and storage medium |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106134163A (en) * | 2016-06-22 | 2016-11-16 | 北京小米移动软件有限公司 | Method for information display, information-pushing method, Apparatus and system |
CN109255658A (en) * | 2018-09-17 | 2019-01-22 | 北京金山安全软件有限公司 | Member card display method and device, terminal equipment and storage |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102831659A (en) * | 2012-08-01 | 2012-12-19 | 无敌科技(西安)有限公司 | Device and implement method for NFC combined with locating information |
CN104035947B (en) * | 2013-09-16 | 2016-04-13 | 腾讯科技(深圳)有限公司 | Point of interest recommend method and device, acquisition recommend method and the device of point of interest |
EP3007122A1 (en) * | 2014-10-07 | 2016-04-13 | Nxp B.V. | Method for facilitating the selection of a virtual card for an NFC transaction |
CN109255269A (en) * | 2017-07-12 | 2019-01-22 | 深圳如探索科技有限公司 | Apparatus control method, device and equipment |
CN108205637B (en) * | 2017-10-13 | 2023-05-23 | 中兴通讯股份有限公司 | NFC configuration method, mobile terminal and computer readable storage medium |
CN109547987A (en) * | 2018-11-21 | 2019-03-29 | 北京小米支付技术有限公司 | The call method and device of nfc card |
-
2019
- 2019-04-11 CN CN201910290871.4A patent/CN110035180B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106134163A (en) * | 2016-06-22 | 2016-11-16 | 北京小米移动软件有限公司 | Method for information display, information-pushing method, Apparatus and system |
CN109255658A (en) * | 2018-09-17 | 2019-01-22 | 北京金山安全软件有限公司 | Member card display method and device, terminal equipment and storage |
Also Published As
Publication number | Publication date |
---|---|
CN110035180A (en) | 2019-07-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110035180B (en) | Card display method, device, terminal and storage medium | |
CN109144649B (en) | Icon display method and device, terminal and storage medium | |
RU2646359C2 (en) | Applications presentation method and system of mobile terminal | |
US9110573B2 (en) | Personalized viewports for interactive digital maps | |
CN110168487B (en) | Touch control method and device | |
CN111459586B (en) | Remote assistance method, device, storage medium and terminal | |
CN111435277B (en) | Method, device, terminal and storage medium for displaying content | |
US9279694B1 (en) | System and method for returning to a selected location and for finding forms in a facility | |
US20180342029A1 (en) | Method, apparatus terminal device, and computer readable storage medium for invoking a virtual public transport card | |
CN116029719A (en) | Payment service recommendation method, electronic device and storage medium | |
CN113438614B (en) | Flow package obtaining method and device, terminal and storage medium | |
CN109683760B (en) | Recent content display method, device, terminal and storage medium | |
CN114265653A (en) | Interface display method, device, equipment, storage medium and program product | |
CN111857480B (en) | Icon alignment method and device, storage medium and electronic equipment | |
CN117555459A (en) | Application group processing method and device, storage medium and electronic equipment | |
CN110060099B (en) | Information pushing method and device based on historical records and electronic equipment | |
CN107743151B (en) | Content pushing method and device, mobile terminal and server | |
CN102957741A (en) | Method and apparatus for accessing location based service | |
CN113286349B (en) | Personal hot spot connection method, device, terminal and storage medium | |
CN114554393A (en) | Positioning method, positioning device, terminal, storage medium and program product | |
US9064265B1 (en) | System and method for locating items in a facility | |
CN110221892B (en) | Method, device, medium and electronic equipment for scrolling window information | |
CN113419650A (en) | Data moving method and device, storage medium and electronic equipment | |
CN110647264B (en) | Manual and automatic rotating sphere label display method, device, equipment and medium | |
CN110619089B (en) | Information retrieval method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right |
Effective date of registration: 20220822 Address after: 570105 No. a5002-896, zone A1, Fuxing City, No. 32, Binhai Avenue, Longhua District, Haikou City, Hainan Province Patentee after: Hainan opper Communication Technology Co.,Ltd. Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. |
|
TR01 | Transfer of patent right |