CN112926710A - NFC analog card switching method, mobile terminal and computer readable storage medium - Google Patents

NFC analog card switching method, mobile terminal and computer readable storage medium Download PDF

Info

Publication number
CN112926710A
CN112926710A CN202110344243.7A CN202110344243A CN112926710A CN 112926710 A CN112926710 A CN 112926710A CN 202110344243 A CN202110344243 A CN 202110344243A CN 112926710 A CN112926710 A CN 112926710A
Authority
CN
China
Prior art keywords
card
card information
nfc
current
position parameter
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.)
Pending
Application number
CN202110344243.7A
Other languages
Chinese (zh)
Inventor
肖良平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Goertek Inc
Original Assignee
Goertek Inc
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Goertek Inc filed Critical Goertek Inc
Priority to CN202110344243.7A priority Critical patent/CN112926710A/en
Publication of CN112926710A publication Critical patent/CN112926710A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K17/00Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations
    • G06K17/0022Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations arrangements or provisious for transferring data to distant stations, e.g. from a sensing device
    • G06K17/0029Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations arrangements or provisious for transferring data to distant stations, e.g. from a sensing device the arrangement being specially adapted for wireless interrogation of grouped or bundled articles tagged with wireless record carriers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/18Processing of user or subscriber data, e.g. subscribed services, user preferences or user profiles; Transfer of user or subscriber data
    • H04W8/183Processing at user equipment or user record carrier

Abstract

The invention discloses an NFC analog card switching method, a mobile terminal and a computer readable storage medium, wherein the NFC analog card switching method comprises the following steps: acquiring real-time position parameters of the mobile terminal; detecting whether a first position parameter with the distance from the real-time position parameter smaller than a first preset distance exists in a storage list or not; if the first position parameter exists, comparing whether card information corresponding to the first position parameter is the same as card information of a default Near Field Communication (NFC) simulation card or not; and if not, switching the default NFC analog card. The invention can solve the problems of complex operation and low switching efficiency of the existing NFC analog card switching method.

Description

NFC analog card switching method, mobile terminal and computer readable storage medium
Technical Field
The invention relates to the technical field of near field communication, in particular to a Near Field Communication (NFC) analog card switching method, a mobile terminal and a computer readable storage medium.
Background
NFC (Near Field Communication) technology can perform identification and data exchange with compatible devices in a short distance, and is widely applied to various smart devices. The smart device with the built-in NFC function has the functions of card simulation, card information reading and the like, a plurality of cards such as IC cards can be simulated on one smart device through the NFC technology, a plurality of NFC simulation cards are obtained, and only one of the NFC simulation cards can be selected for use during card swiping. The conventional method is that a user manually selects an NFC analog card for use before swiping the card, and the mode of manually selecting and switching the NFC analog card has the problems of complex operation and low switching efficiency.
Disclosure of Invention
The invention mainly aims to provide an NFC analog card switching method, a mobile terminal and a computer readable storage medium, and aims to solve the problems of complex operation and low switching efficiency of the existing NFC analog card switching method.
In order to achieve the above object, the present invention provides an NFC emulated card switching method, including:
acquiring real-time position parameters of the mobile terminal;
detecting whether a first position parameter with the distance from the real-time position parameter smaller than a first preset distance exists in a storage list or not;
if the first position parameter exists, comparing whether card information corresponding to the first position parameter is the same as card information of a default Near Field Communication (NFC) simulation card or not;
and if not, switching the default NFC analog card.
Optionally, the NFC emulated card switching method further includes:
when detecting that a user finishes a card swiping operation based on the NFC function of the mobile terminal, acquiring current position parameters and current card information of the current card swiping operation;
and updating the storage list according to the current position parameters and the current card information.
Optionally, before the step of acquiring the current position parameter and the current card information of the current card swiping operation, the method further includes:
monitoring whether at least one card swiping operation exists within a preset time since the current card swiping operation is detected;
if the current position parameter does not exist, the current position parameter and the current card information of the current card swiping operation are obtained;
if the card information exists, acquiring a second position parameter and second card information of the last card swiping operation;
and updating the storage list according to the second position parameter and the second card information.
Optionally, the step of updating the storage list according to the current location parameter and the current card information includes:
detecting whether a third position parameter with the distance from the current position parameter smaller than a second preset distance exists in the storage list;
and if the third position parameter does not exist, the current position parameter and the current card information are stored in a correlation mode, so that the storage list is updated.
Optionally, after the step of detecting whether there is a third location parameter in the storage list, where a distance from the current location parameter is smaller than a second preset distance, the method further includes:
if the third position parameter exists, reading third card information associated with the third position parameter, and comparing whether the third card information is the same as the current card information;
if the third card information is the same as the current card information, the current position parameter and the current card information are not saved;
and if the third card information is different from the current card information, updating the third card information to the current card information so as to update the storage list.
Optionally, the step of comparing whether the card information corresponding to the first location parameter is the same as the card information of the default NFC emulated card includes:
judging whether the first position parameters are multiple or not;
if the number of the first position parameters is multiple, acquiring a fourth position parameter with the minimum distance from the real-time position parameter from the first position parameters;
reading fourth card information associated with the fourth position parameter, and comparing whether the fourth card information is the same as the card information of a default NFC simulation card;
if not, the step of switching the default NFC analog card comprises the following steps:
and if the fourth card information is different from the card information of the default NFC simulation card, switching the default NFC simulation card to be the NFC simulation card corresponding to the fourth card information.
Optionally, after the step of comparing whether the fourth card information is the same as the card information of the default NFC emulated card, the method further includes:
and if the fourth card information is the same as the card information of the default NFC simulation card, not switching the default NFC simulation card.
Optionally, after the step of detecting whether there is a first location parameter in the storage list, where a distance from the real-time location parameter is smaller than a first preset distance, the method further includes:
and if the first position parameter does not exist, not switching the default NFC analog card.
In addition, to achieve the above object, the present invention further provides a mobile terminal, which includes a memory, a processor, and an NFC emulated card switching program stored on the memory and operable on the processor, where the NFC emulated card switching program, when executed by the processor, implements the steps of the NFC emulated card switching method as described above.
In addition, to achieve the above object, the present invention further provides a computer readable storage medium, having an NFC emulated card switching program stored thereon, which when executed by a processor implements the steps of the NFC emulated card switching method as described above.
The invention provides a switching method of an NFC analog card, a mobile terminal and a computer readable storage medium, firstly, acquiring a real-time position parameter of the mobile terminal; then, detecting whether a first position parameter with the distance from the real-time position parameter smaller than a first preset distance exists in the storage list; if so, comparing whether the card information corresponding to the first position parameter is the same as the card information of the default NFC simulation card; and if not, switching the default NFC analog card. By the mode, the automatic switching of the NFC analog card is realized by combining the positioning function of the mobile terminal with the NFC function, and compared with the prior art in which a user manually selects to switch the NFC analog card, the switching efficiency of the NFC analog card can be improved, so that the card swiping is more convenient.
Drawings
Fig. 1 is a schematic terminal structure diagram of a hardware operating environment according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a NFC emulated card switching method according to a first embodiment of the present invention;
fig. 3 is a flowchart illustrating a NFC emulated card switching method according to a second embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the descriptions relating to "first", "second", etc. in the present invention are for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In addition, technical solutions between various embodiments may be combined with each other, but must be realized by a person skilled in the art, and when the technical solutions are contradictory or cannot be realized, such a combination should not be considered to exist, and is not within the protection scope of the present invention.
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Referring to fig. 1, fig. 1 is a schematic terminal structure diagram of a hardware operating environment according to an embodiment of the present invention.
The terminal in the embodiment of the invention is a mobile terminal, such as a smart phone, a tablet computer, a portable computer and the like.
As shown in fig. 1, the terminal may include: a processor 1001, such as a CPU (Central Processing Unit), a communication bus 1002, a network interface 1003, and a memory 1004. Wherein a communication bus 1002 is used to enable connective communication between these components. The network interface 1003 may optionally include a standard wired interface (e.g., a USB interface), a wireless interface (e.g., a WI-FI interface). The memory 1004 may be a high-speed RAM memory or a non-volatile memory (e.g., a disk memory). The memory 1004 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the terminal structure shown in fig. 1 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, the memory 1004, which is a kind of computer storage medium, may include therein an operating system, a network communication module, and an NFC emulated card switching program.
In the terminal shown in fig. 1, the processor 1001 may be configured to call the NFC emulated card switching program stored in the memory 1004 and perform the following operations:
acquiring real-time position parameters of the mobile terminal;
detecting whether a first position parameter with the distance from the real-time position parameter smaller than a first preset distance exists in a storage list or not;
if the first position parameter exists, comparing whether card information corresponding to the first position parameter is the same as card information of a default Near Field Communication (NFC) simulation card or not;
and if not, switching the default NFC analog card.
Further, the processor 1001 may be configured to invoke the NFC emulated card switching program stored in the memory 1004, and further perform the following operations:
when detecting that a user finishes a card swiping operation based on the NFC function of the mobile terminal, acquiring current position parameters and current card information of the current card swiping operation;
and updating the storage list according to the current position parameters and the current card information.
Further, the processor 1001 may be configured to invoke the NFC emulated card switching program stored in the memory 1004, and further perform the following operations:
monitoring whether at least one card swiping operation exists within a preset time since the current card swiping operation is detected;
if the current position parameter does not exist, the current position parameter and the current card information of the current card swiping operation are obtained;
if the card information exists, acquiring a second position parameter and second card information of the last card swiping operation;
and updating the storage list according to the second position parameter and the second card information.
Further, the processor 1001 may be configured to invoke the NFC emulated card switching program stored in the memory 1004, and further perform the following operations:
detecting whether a third position parameter with the distance from the current position parameter smaller than a second preset distance exists in the storage list;
and if the third position parameter does not exist, the current position parameter and the current card information are stored in a correlation mode, so that the storage list is updated.
Further, the processor 1001 may be configured to invoke the NFC emulated card switching program stored in the memory 1004, and further perform the following operations:
if the third position parameter exists, reading third card information associated with the third position parameter, and comparing whether the third card information is the same as the current card information;
if the third card information is the same as the current card information, the current position parameter and the current card information are not saved;
and if the third card information is different from the current card information, updating the third card information to the current card information so as to update the storage list.
Further, the processor 1001 may be configured to invoke the NFC emulated card switching program stored in the memory 1004, and further perform the following operations:
judging whether the first position parameters are multiple or not;
if the number of the first position parameters is multiple, acquiring a fourth position parameter with the minimum distance from the real-time position parameter from the first position parameters;
reading fourth card information associated with the fourth position parameter, and comparing whether the fourth card information is the same as the card information of a default NFC simulation card;
and if the fourth card information is different from the card information of the default NFC simulation card, switching the default NFC simulation card to be the NFC simulation card corresponding to the fourth card information.
Further, the processor 1001 may be configured to invoke the NFC emulated card switching program stored in the memory 1004, and further perform the following operations:
and if the fourth card information is the same as the card information of the default NFC simulation card, not switching the default NFC simulation card.
Further, the processor 1001 may be configured to invoke the NFC emulated card switching program stored in the memory 1004, and further perform the following operations:
and if the first position parameter does not exist, not switching the default NFC analog card.
Based on the hardware structure, the invention provides various embodiments of the NFC analog card switching method.
The invention provides a switching method of an NFC analog card.
Referring to fig. 2, fig. 2 is a flowchart illustrating a NFC emulated card switching method according to a first embodiment of the present invention.
In this embodiment, the NFC emulated card switching method is applied to a mobile terminal, and the NFC emulated card switching method includes:
step S10, acquiring real-time position parameters of the mobile terminal;
in this embodiment, the NFC analog card switching method is applied to a mobile terminal, and the mobile terminal in this embodiment may be a terminal device such as a smart phone, a tablet computer, and a portable computer. The mobile terminal comprises a main chip, an NFC (Near Field Communication) control chip and a GNSS (Global Navigation Satellite System) signal receiving chip, wherein the NFC control chip is in Communication connection with the main chip, and the GNSS signal receiving chip is in Communication connection with the main chip. The NFC control chip is used for achieving NFC card swiping operation, the GNSS signal receiving chip is used for obtaining real-time position parameters of the mobile terminal, and the main chip is used for receiving and processing NFC signals and GNSS signals of a global satellite navigation system so as to achieve the steps of the NFC simulation card switching method.
In this embodiment, the process of acquiring the real-time location parameter may be: through the GNSS signal receiving chip, the location parameter of the mobile terminal is acquired at a preset frequency (e.g., once per minute), and it can be understood that reducing the preset frequency can reduce the power consumption of the system. Of course, in specific implementation, other manners may also be adopted to obtain the real-time location parameter of the mobile terminal, such as a mobile network, a WLAN network, and the like.
Step S20, detecting whether a first position parameter with the distance from the real-time position parameter smaller than a first preset distance exists in a storage list;
then, whether a first position parameter with the distance from the real-time position parameter smaller than a first preset distance exists in the storage list or not is detected. The first preset distance is a preset distance, for example, the first preset distance may be set to 100 meters, and the first location parameter is a location parameter in the storage list, where the distance from the real-time location parameter to the real-time location parameter is less than 100 meters; the storage list is pre-stored in the mobile terminal, and the storage list may include card swiping position parameters of a plurality of users and card information of the NFC analog card associated with the card swiping position parameters, or of course, the storage list may be constructed by the user holding the mobile terminal after completing card swiping operation based on the NFC function and storing the position parameters corresponding to the card swiping operation and the card swiping information in association with the position parameters. The memory list may also be continually updated during subsequent card swipes.
Step S30, if the first position parameter exists, comparing whether the card information corresponding to the first position parameter is the same as the card information of the default Near Field Communication (NFC) analog card;
and if the first position parameter exists, comparing whether the card information corresponding to the first position parameter is the same as the card information of the default NFC simulation card or not.
And step S40, if the two are different, switching the default NFC analog card.
If the card information corresponding to the first location parameter is different from the card information of the default NFC analog card, the default NFC analog card is switched at this time, and the specific switching process may refer to the following third embodiment, which is not described herein again.
Further, after the step S20, the method further includes:
and if the first position parameter does not exist, not switching the default NFC analog card.
In this embodiment, since the card swiping position is relatively fixed, if it is detected that there is no first location parameter in the storage list, which is located at a distance from the real-time location parameter that is less than a first preset distance (e.g., 100 meters), which indicates that there is no location parameter in the storage list that is close to the real-time location parameter, then it is not necessary to switch the default NFC emulated card.
The invention provides a switching method of an NFC analog card, which comprises the following steps of firstly, acquiring a real-time position parameter of a mobile terminal; then, detecting whether a first position parameter with the distance from the real-time position parameter smaller than a first preset distance exists in the storage list; if so, comparing whether the card information corresponding to the first position parameter is the same as the card information of the default NFC simulation card; and if not, switching the default NFC analog card. By the mode, the automatic switching of the NFC analog card is realized by combining the positioning function of the mobile terminal with the NFC function, and compared with the prior art in which a user manually selects to switch the NFC analog card, the switching efficiency of the NFC analog card can be improved, so that the card swiping is more convenient.
Further, based on the first embodiment, a second embodiment of the NFC emulated card switching method of the present invention is provided.
Referring to fig. 3, fig. 3 is a flowchart illustrating a NFC emulated card switching method according to a second embodiment of the present invention.
In this embodiment, the NFC emulated card switching method further includes:
step S50, when detecting that the user completes the card swiping operation based on the NFC function of the mobile terminal, acquiring the current position parameter and the current card information of the current card swiping operation;
and step S60, updating the storage list according to the current position parameter and the current card information.
When the fact that a user finishes a card swiping operation based on the NFC function of the mobile terminal is detected, the current position parameter and the current card information of the current card swiping operation are obtained, and then the storage list is updated according to the current position parameter and the current card information.
As one of the updating methods, the current position parameter and the current card information may be directly associated and stored in the value storage list.
As another updating manner, step S60 may include:
step a61, detecting whether a third position parameter with a distance from the current position parameter smaller than a second preset distance exists in the storage list;
before updating the storage list, whether the current position parameter exists in the storage list or not is detected, so that whether the card information of the NFC simulation card at the same position is stored in the storage list or not is detected. Because a certain error exists during positioning, whether a position parameter with the distance from the current position parameter smaller than a second preset distance (the second preset distance can be set to be a smaller value, such as 20 meters) exists in the storage list or not can be detected and recorded as a third position parameter, and when a third position parameter with the distance from the current position parameter smaller than 20 meters exists in the storage list, the position corresponding to the third position parameter and the current position parameter is judged to be the same, and the current position parameter already exists in the storage list; and when the distances between the position parameters stored in the storage list and the current position parameters are detected to be greater than or equal to 20 meters, judging that the current position parameters do not exist in the storage list.
Step a62, if the third location parameter does not exist, the current location parameter and the current card information are stored in association, so as to update the storage list.
If the third position parameter does not exist, the fact that the position parameter which is the same as the current position parameter does not exist in the storage list is indicated, and at the moment, the current position parameter and the current card information are stored in the storage list in a correlated mode so as to update the storage list.
Further, after the step a61, the method further includes:
step a63, if the third position parameter exists, reading third card information associated with the third position parameter, and comparing whether the third card information is the same as the current card information;
step a64, if the third card information is the same as the current card information, not saving the current position parameter and the current card information;
step a65, if the third card information is not the same as the current card information, updating the third card information to the current card information to update the storage list.
In this embodiment, if the third location parameter exists, it indicates that the third location parameter identical to the current location parameter already exists in the storage list, at this time, the third card information associated with the third location parameter is read, and the third card information is compared with the current card information to determine whether the third card information is identical to the current card information, and the storage list is updated according to the comparison result.
If the third card information is the same as the current card information, it indicates that the same position parameter and card information already exist in the storage list, and at this time, the current position parameter and the current card information do not need to be stored, that is, the current position parameter and the current card information are not stored. If the third card information is different from the current card information, it indicates that the third card information corresponding to the third position parameter is changed, and at this time, the third card information is updated to the current card information.
In the embodiment, after the card swiping operation is detected, the current card swiping information is compared with the historical card swiping information in the storage list, so that the information of the same position parameter existing in the storage list is prevented from being repeatedly saved, and the storage list is updated.
Further, based on the second embodiment, a third embodiment of the NFC emulated card switching method of the present invention is provided.
In this embodiment, before the step "acquiring the current position parameter and the current card information of the current card swiping operation", the method further includes:
step A, monitoring whether at least one card swiping operation exists within a preset time since the card swiping operation is detected;
in this embodiment, in order to avoid repeatedly saving the card swiping information of the repeated card swiping in a short time, before the current position parameter of the current card swiping operation and the current card information are obtained, whether at least one card swiping operation exists within a preset time (such as one minute) since the current card swiping operation is detected may be monitored. Wherein the preset time is a preset time.
And step B, if the current state does not exist, executing the following steps: acquiring current position parameters and current card information of the current card swiping operation;
and if no card swiping operation exists within the preset time since the current card swiping operation is detected, recognizing that the card swiping is successful, and the situation of repeated card swiping does not exist, at the moment, acquiring the current position parameter and the current card information of the current card swiping operation, and updating the storage list according to the current position parameter and the current card information. The specific updating process may refer to the second embodiment described above.
Step C, if the card information exists, acquiring a second position parameter and second card information of the last card swiping operation;
and D, updating the storage list according to the second position parameter and the second card information.
If at least one card swiping operation is detected within one minute after the current card swiping operation, the situation that the cards are continuously swiped within a short time is indicated, at the moment, the second position parameter and the second card information of the last card swiping operation are obtained, and the storage list is updated according to the second position parameter and the second card information. The process of updating the storage list according to the second position parameter and the second card information is similar to the process of updating the storage list according to the current position parameter and the current card information, and reference may be made to the second embodiment, which is not repeated herein.
In the embodiment, the condition that whether continuous card swiping exists in a short time or not is detected, so that the card swiping information is stored for one time, and repeated card swiping information is prevented from being stored for multiple times.
Further, based on the first to third embodiments, a fourth embodiment of the NFC emulated card switching method of the present invention is provided.
In this embodiment, the step S30 may include:
step a31, determining whether there are a plurality of first position parameters;
a32, if the first position parameters are multiple, obtaining a fourth position parameter with the minimum distance with the real-time position parameter from the first position parameters;
firstly, judging whether the first position parameters are multiple, and when the first position parameters are multiple, acquiring the position parameter with the minimum distance from the real-time position parameter from the first position parameters through calculation, and recording the position parameter as a fourth position parameter.
Step a33, reading fourth card information associated with the fourth position parameter, and comparing whether the fourth card information is the same as the card information of a default NFC simulation card;
and then reading fourth card information associated with the fourth position parameter, comparing whether the fourth card information is the same as the card information of the default NFC simulation card, and judging whether to switch the NFC simulation card according to the comparison result.
At this time, step S40 includes:
step a41, if the fourth card information is different from the card information of the default NFC emulated card, switching the default NFC emulated card to an NFC emulated card corresponding to the fourth card information.
If the fourth card information is different from the card information of the default NFC analog card, it indicates that the NFC analog card used in the position where the mobile terminal is located is changed, and at this time, the default NFC analog card needs to be switched to the NFC analog card corresponding to the fourth card information.
Further, after the step a33, the method further includes:
step a42, if the fourth card information is the same as the card information of the default NFC emulated card, not switching the default NFC emulated card.
If the fourth card information is the same as the card information of the default NFC analog card, it indicates that the NFC analog card used in the position where the mobile terminal is located is not changed, and the default NFC analog card is not switched.
Further, after the step a31, the method further includes:
when the first position parameter is one, directly comparing whether the first card information corresponding to the first position parameter is the same as the card information of the default NFC simulation card or not; if not, switching the default NFC simulation card to be the NFC simulation card corresponding to the first card information; and if the two signals are the same, the default NFC analog card is not switched.
By the mode, the NFC simulation card is automatically selected according to the position information of the mobile terminal, and when the real-time position is closer to the stored position, the switching of the NFC default card is automatically performed, so that the automatic switching of the NFC simulation card is realized.
The present invention also provides a computer-readable storage medium having stored thereon a NFC emulated card switching program, which, when executed by a processor, implements the steps of the NFC emulated card switching method as described in any of the above embodiments.
The specific embodiment of the computer-readable storage medium of the present invention is substantially the same as the embodiments of the NFC emulated card switching method described above, and details are not described herein.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. An NFC analog card switching method is characterized by comprising the following steps:
acquiring real-time position parameters of the mobile terminal;
detecting whether a first position parameter with the distance from the real-time position parameter smaller than a first preset distance exists in a storage list or not;
if the first position parameter exists, comparing whether card information corresponding to the first position parameter is the same as card information of a default Near Field Communication (NFC) simulation card or not;
and if not, switching the default NFC analog card.
2. The NFC emulated card switching method of claim 1, wherein the NFC emulated card switching method further comprises:
when detecting that a user finishes a card swiping operation based on the NFC function of the mobile terminal, acquiring current position parameters and current card information of the current card swiping operation;
and updating the storage list according to the current position parameters and the current card information.
3. The NFC emulated card switching method of claim 2, wherein the step of obtaining the current location parameter and the current card information for the current card swiping operation is preceded by:
monitoring whether at least one card swiping operation exists within a preset time since the current card swiping operation is detected;
if the current position parameter does not exist, the current position parameter and the current card information of the current card swiping operation are obtained;
if the card information exists, acquiring a second position parameter and second card information of the last card swiping operation;
and updating the storage list according to the second position parameter and the second card information.
4. The NFC emulated card switching method of claim 2, wherein said step of updating said stored list based on said current location parameter and said current card information comprises:
detecting whether a third position parameter with the distance from the current position parameter smaller than a second preset distance exists in the storage list;
and if the third position parameter does not exist, the current position parameter and the current card information are stored in a correlation mode, so that the storage list is updated.
5. The NFC emulated card switching method of claim 4, wherein after the step of detecting whether a third location parameter having a distance from the current location parameter that is less than a second predetermined distance exists in the stored list, further comprising:
if the third position parameter exists, reading third card information associated with the third position parameter, and comparing whether the third card information is the same as the current card information;
if the third card information is the same as the current card information, the current position parameter and the current card information are not saved;
and if the third card information is different from the current card information, updating the third card information to the current card information so as to update the storage list.
6. The NFC emulated card switching method of any one of claims 1 to 5, wherein the step of comparing whether the corresponding card information in the first location parameter is the same as the card information of a default near field communication NFC emulated card comprises:
judging whether the first position parameters are multiple or not;
if the number of the first position parameters is multiple, acquiring a fourth position parameter with the minimum distance from the real-time position parameter from the first position parameters;
reading fourth card information associated with the fourth position parameter, and comparing whether the fourth card information is the same as the card information of a default NFC simulation card;
if not, the step of switching the default NFC analog card comprises the following steps:
and if the fourth card information is different from the card information of the default NFC simulation card, switching the default NFC simulation card to be the NFC simulation card corresponding to the fourth card information.
7. The NFC emulated card switching method of claim 6, wherein after the step of comparing whether the fourth card information is the same as the card information of the default NFC emulated card, further comprising:
and if the fourth card information is the same as the card information of the default NFC simulation card, not switching the default NFC simulation card.
8. An NFC emulated card switching method according to any one of claims 1 to 5, wherein after the step of detecting whether there exists a first location parameter in the stored list that is less than a first preset distance from the real-time location parameter, further comprising:
and if the first position parameter does not exist, not switching the default NFC analog card.
9. A mobile terminal, characterized in that the mobile terminal comprises a memory, a processor, and an NFC emulated card switching program stored on the memory and executable on the processor, which when executed by the processor implements the steps of the NFC emulated card switching method of any one of claims 1 to 8.
10. A computer-readable storage medium, having stored thereon an NFC emulated card switching program which, when executed by a processor, implements the steps of the NFC emulated card switching method of any of claims 1 to 8.
CN202110344243.7A 2021-03-30 2021-03-30 NFC analog card switching method, mobile terminal and computer readable storage medium Pending CN112926710A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110344243.7A CN112926710A (en) 2021-03-30 2021-03-30 NFC analog card switching method, mobile terminal and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110344243.7A CN112926710A (en) 2021-03-30 2021-03-30 NFC analog card switching method, mobile terminal and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN112926710A true CN112926710A (en) 2021-06-08

Family

ID=76176699

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110344243.7A Pending CN112926710A (en) 2021-03-30 2021-03-30 NFC analog card switching method, mobile terminal and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN112926710A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113962232A (en) * 2021-10-14 2022-01-21 深圳市欢太数字科技有限公司 Analog card switching method and device, computer readable medium and mobile terminal
CN114501316A (en) * 2021-08-19 2022-05-13 荣耀终端有限公司 Virtual card switching method and electronic equipment
CN114662511A (en) * 2022-03-24 2022-06-24 润芯微科技(江苏)有限公司 Method for controlling default NFC card
CN114745469A (en) * 2022-04-08 2022-07-12 润芯微科技(江苏)有限公司 Method and system for automatically switching NFC analog cards according to positioning scene
CN113962232B (en) * 2021-10-14 2024-04-30 深圳市与飞科技有限公司 Analog card switching method and device, computer readable medium and mobile terminal

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100082487A1 (en) * 2008-09-26 2010-04-01 Giftango Corporation Systems and methods for managing a virtual card based on geographical information
CN106127472A (en) * 2016-06-28 2016-11-16 惠州Tcl移动通信有限公司 Implementation method, system and the terminal of a kind of nfc card pattern self-starting
CN106600268A (en) * 2016-12-21 2017-04-26 华录智达科技有限公司 Intelligent vehicle terminal based on mobile payment and payment method
US10410232B1 (en) * 2016-07-08 2019-09-10 Harold Lueken Systems and methods for prioritizing default payment options in virtual wallets
CN111093180A (en) * 2019-12-31 2020-05-01 深圳Tcl新技术有限公司 NFC-based analog card switching method, terminal and computer storage medium
CN111447557A (en) * 2020-04-07 2020-07-24 广东小天才科技有限公司 Method, server, mobile terminal and system for controlling switching of NFC analog card
CN111770484A (en) * 2020-07-01 2020-10-13 Oppo广东移动通信有限公司 Analog card switching method and device, computer readable medium and mobile terminal

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100082487A1 (en) * 2008-09-26 2010-04-01 Giftango Corporation Systems and methods for managing a virtual card based on geographical information
CN106127472A (en) * 2016-06-28 2016-11-16 惠州Tcl移动通信有限公司 Implementation method, system and the terminal of a kind of nfc card pattern self-starting
US10410232B1 (en) * 2016-07-08 2019-09-10 Harold Lueken Systems and methods for prioritizing default payment options in virtual wallets
CN106600268A (en) * 2016-12-21 2017-04-26 华录智达科技有限公司 Intelligent vehicle terminal based on mobile payment and payment method
CN111093180A (en) * 2019-12-31 2020-05-01 深圳Tcl新技术有限公司 NFC-based analog card switching method, terminal and computer storage medium
CN111447557A (en) * 2020-04-07 2020-07-24 广东小天才科技有限公司 Method, server, mobile terminal and system for controlling switching of NFC analog card
CN111770484A (en) * 2020-07-01 2020-10-13 Oppo广东移动通信有限公司 Analog card switching method and device, computer readable medium and mobile terminal

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114501316A (en) * 2021-08-19 2022-05-13 荣耀终端有限公司 Virtual card switching method and electronic equipment
CN114501316B (en) * 2021-08-19 2022-12-16 荣耀终端有限公司 Virtual card switching method and electronic equipment
CN113962232A (en) * 2021-10-14 2022-01-21 深圳市欢太数字科技有限公司 Analog card switching method and device, computer readable medium and mobile terminal
CN113962232B (en) * 2021-10-14 2024-04-30 深圳市与飞科技有限公司 Analog card switching method and device, computer readable medium and mobile terminal
CN114662511A (en) * 2022-03-24 2022-06-24 润芯微科技(江苏)有限公司 Method for controlling default NFC card
CN114745469A (en) * 2022-04-08 2022-07-12 润芯微科技(江苏)有限公司 Method and system for automatically switching NFC analog cards according to positioning scene
CN114745469B (en) * 2022-04-08 2023-03-07 润芯微科技(江苏)有限公司 Method and system for automatically switching NFC analog cards according to positioning scene

Similar Documents

Publication Publication Date Title
CN112926710A (en) NFC analog card switching method, mobile terminal and computer readable storage medium
US20140067682A1 (en) Nfc-based information exchange method and device
CA3026587C (en) Mobile payment method and device
CN110991575B (en) Asset inventory method and device, readable storage medium and robot
CN105933025B (en) A kind of communication control management method and mobile terminal
CN106648685B (en) Intelligent terminal system application processing method and device and intelligent terminal
CN104363585A (en) Wireless local area network access method
CN111163503A (en) Network searching method of mobile terminal and mobile terminal
CN104363665A (en) Terminal
EP3273706A1 (en) Method and system for configuring a mobile device
CN113361293A (en) Card swiping method, card controller, electronic device and storage medium
CN108288008B (en) Card activation method and device
KR20180040966A (en) Electronic apparatus for transmitting data and method for controlling thereof
US20120185932A1 (en) Sensing and Secure Processing
CN107291238B (en) Data processing method and device
CN110351432B (en) Communication card information display method and mobile terminal
CN113541741B (en) Analog card switching method and device, electronic equipment and storage medium
CN109246280B (en) Address book cloud processing method and device, computer equipment and readable storage medium
EP3986004B1 (en) Nfc device and method of operating the same
CN107239685B (en) Method of controlling bluetooth device, and computer-readable storage medium
JP6355350B2 (en) Portable communication terminal and program for controlling portable communication terminal
CN107466087B (en) Network searching method and mobile terminal
CN112102407A (en) Display equipment positioning method and device, display equipment and computer storage medium
CN109451485B (en) Mode setting method, information writing method, device, terminal and storage medium
CN107463822B (en) Biometric pattern control method and related product

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210608