CN112906409A - NFC card switching method and device, storage medium and electronic equipment - Google Patents

NFC card switching method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN112906409A
CN112906409A CN201911217259.0A CN201911217259A CN112906409A CN 112906409 A CN112906409 A CN 112906409A CN 201911217259 A CN201911217259 A CN 201911217259A CN 112906409 A CN112906409 A CN 112906409A
Authority
CN
China
Prior art keywords
card
nfc
nfc card
determining
target
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
CN201911217259.0A
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.)
Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Original Assignee
Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
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 Yulong Computer Telecommunication Scientific Shenzhen Co Ltd filed Critical Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Priority to CN201911217259.0A priority Critical patent/CN112906409A/en
Publication of CN112906409A publication Critical patent/CN112906409A/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
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/10009Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation sensing by radiation using wavelengths larger than 0.1 mm, e.g. radio-waves or microwaves
    • G06K7/10297Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation sensing by radiation using wavelengths larger than 0.1 mm, e.g. radio-waves or microwaves arrangements for handling protocols designed for non-contact record carriers such as RFIDs NFCs, e.g. ISO/IEC 14443 and 18092
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/10009Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation sensing by radiation using wavelengths larger than 0.1 mm, e.g. radio-waves or microwaves
    • G06K7/10118Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation sensing by radiation using wavelengths larger than 0.1 mm, e.g. radio-waves or microwaves the sensing being preceded by at least one preliminary step

Abstract

The application provides a switching method and device of an NFC card, a storage medium and electronic equipment, wherein the method comprises the following steps: acquiring environmental parameters of a terminal at the current position; determining a target NFC card from a plurality of candidate NFC cards according to the environment parameters; and activating the target NFC card when receiving the near field communication request. According to the technical scheme, the target NFC card can be automatically activated when the near field communication request is received. Compared with the positive mode that the user activates the NFC manually, the technical scheme of the application improves the activation efficiency of the NFC card, saves the time of the user and facilitates the use of the NFC card by the user.

Description

NFC card switching method and device, storage medium and electronic equipment
Technical Field
The present application relates to the Field of Near Field Communication (NFC), and in particular, to a method and an apparatus for switching an NFC card, a storage medium, and an electronic device.
Background
NFC enabled devices may exchange data in close proximity to each other. The NFC technology is integrated and evolved from a non-contact radio frequency identification and interconnection technology, and can integrate functions of an inductive card reader, an inductive card, and a point-to-point communication on a single chip. The mobile terminal supporting the NFC technology can be used for realizing various applications such as mobile payment, electronic ticketing, entrance guard, mobile identity recognition and anti-counterfeiting.
A plurality of NFC cards are often configured in a terminal, and each NFC card corresponds to a different application scenario. In the actual use process, a user needs to manually activate the corresponding NFC card according to a specific application scenario. The process of manually activating the NFC card brings inconvenience to the user in using the NFC card, and affects the user experience.
Disclosure of Invention
In order to solve the above problem, embodiments of the present application provide a method and an apparatus for switching an NFC card, and an electronic device.
In a first aspect, an embodiment of the present application provides a method for switching an NFC card, including the following steps:
acquiring environmental parameters of a terminal at the current position;
determining a target NFC card from a plurality of candidate NFC cards according to the environment parameters;
and activating the target NFC card when receiving the near field communication request.
Optionally, the determining a target NFC card according to the environment parameter includes:
extracting an environment feature vector according to the environment parameters;
processing the environment characteristic vector based on a preset card activation model to obtain an NFC card selection result;
determining the target NFC card among a plurality of candidate NFC cards based on the card selection result.
Optionally, before the acquiring the environmental parameter of the current location, the method further includes:
obtaining historical activation information of the card;
acquiring a training sample set based on historical activation information of the card; wherein the set of training samples comprises a plurality of card-activated samples;
and training the training sample set based on a machine learning algorithm to obtain the card activation model.
Optionally, the determining a target NFC card according to the environment parameter includes:
acquiring a pre-stored or pre-configured association rule; the association rule is used for representing the corresponding relation between the environment parameter and the NFC card;
determining an NFC card selection result corresponding to the environment parameter according to the association rule;
determining a target NFC card among a plurality of candidate NFC cards based on the NFC card selection result.
Optionally, the method further comprises:
acquiring a historical NFC card selection result and historical environment parameter information of a user;
and establishing the association rule according to the historical NFC card selection result and the historical environment parameter information.
Optionally, the environmental parameter comprises geographical location information;
wherein the determining a target NFC card among a plurality of candidate NFC cards according to the environment parameter comprises:
determining the place where the terminal is located according to the geographical position information;
and determining a target NFC card according to the plurality of candidate NFC cards where the field is located.
Optionally, the environmental parameter includes shopping mall promotional information;
wherein the determining a target NFC card among a plurality of candidate NFC cards according to the environment parameter comprises:
determining the NFC card with the maximum preferential force in the plurality of NFC cards according to the last promotion information;
and taking the NFC card with the maximum preferential strength as a target NFC card.
In a second aspect, an embodiment of the present application provides a switching device for an NFC card, including:
the acquisition unit is used for acquiring the environmental parameters of the terminal at the current position;
a determining unit, configured to determine a target NFC card among multiple candidate NFC cards according to the environment parameter;
and the activation unit is used for activating the target NFC card when receiving the near field communication request.
In a third aspect, the present application provides a computer-readable storage medium, on which a computer program is stored, which when executed by a processor implements the steps of any one of the above methods.
In a fourth aspect, an embodiment of the present application provides an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor implements the steps of any one of the above methods when executing the program.
According to the switching method and device of the NFC card, the storage medium and the electronic equipment, the environmental parameters of the terminal at the current position are collected; determining a target NFC card from a plurality of candidate NFC cards according to the environment parameters; and activating the target NFC card when receiving the near field communication request. According to the technical scheme, the target NFC card can be automatically activated when the near field communication request is received. Compared with the positive mode that the user activates the NFC manually, the technical scheme of the application improves the activation efficiency of the NFC card, saves the time of the user and facilitates the use of the NFC card by the user.
Drawings
Fig. 1 is a schematic flowchart of a method for switching an NFC card according to an embodiment of the present application;
fig. 2 is a schematic flowchart of a method for acquiring a card activation model according to an embodiment of the present application;
fig. 3 is a schematic flowchart of another NFC card switching method provided in an embodiment of the present application;
fig. 4 is a schematic structural diagram of a switching device of an NFC card according to an embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The present application is further described with reference to the following figures and examples.
In the following description, the terms "first" and "second" are used for descriptive purposes only and are not intended to indicate or imply relative importance. The following description provides embodiments of the present application, where different embodiments may be substituted or combined, and thus the present application is intended to include all possible combinations of the same and/or different embodiments described. Thus, if one embodiment includes feature A, B, C and another embodiment includes feature B, D, then this application should also be considered to include an embodiment that includes one or more of all other possible combinations of A, B, C, D, even though this embodiment may not be explicitly recited in text below.
The following description provides examples, and does not limit the scope, applicability, or examples set forth in the claims. Changes may be made in the function and arrangement of elements described without departing from the scope of the disclosure. Various examples may omit, substitute, or add various procedures or components as appropriate. For example, the described methods may be performed in an order different than the order described, and various steps may be added, omitted, or combined. Furthermore, features described with respect to some examples may be combined into other examples.
Referring to fig. 1, fig. 1 is a schematic flowchart of a method for switching an NFC card according to an embodiment of the present application, where in the embodiment of the present application, the method includes:
s101, collecting environmental parameters of the terminal at the current position.
The method provided by the embodiment of the present application can be used in various portable terminal devices, including but not limited to, devices such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle terminals (e.g., car navigation terminals), digital televisions, and the like.
The terminal can be configured with a plurality of NFC cards. The NFC card can be used for multiple purposes, such as an entrance guard card, a bus card, a subway card, a Unionpay card and the like. By the method provided by the embodiment of the application, the terminal can automatically select and activate the NFC card matched with the current environment.
The environment parameter is a parameter of the NFC card that can be used by the terminal when the terminal is at the current location. In particular, the environmental parameter may comprise at least one of: geographical location information, time information, specific control information. The geographical location information may be represented by using the latitude and longitude of the current location. The place information can be various places such as a bus station, a subway station, a shopping mall, a supermarket, a community, a company and the like. The information related to the time information, for example: 11/2019, 18 days, monday, sunday, eight o' clock, etc. The specific control information is temporary information related to the use of the NFC card, and for example, a certain merchant offers a preference to a user who consumes a certain NFC card for a certain period of time, a subway offers a preference to a passenger who travels using a certain NFC card for a certain period of time, and the like. The specific control information may be transmitted to the terminal of the user through a WiFi network and/or a bluetooth network.
And S102, determining a target NFC card from the multiple candidate NFC cards according to the environment parameters.
Optionally, S102 includes:
and extracting an environment feature vector according to the environment parameters.
And processing the environment characteristic vector based on a preset card activation model to obtain an NFC card selection result.
Determining the target NFC card among a plurality of candidate NFC cards based on the card selection result.
In step S102, a target NFC card matched with the environmental feature vector of the current location of the terminal is selected from the multiple candidate NFC cards through a card activation model pre-stored in the system. For example: and if the current place information is a subway, the target NFC card is a subway card. As another example, the user may go from home to work on a Monday through Friday and from home to a library on Saturday. If the Monday user leaves the home to prepare to go to the company, the time information can be Monday, and the terminal needs to switch the NFC card from the access card to the access card of the company. If Saturday users leave the home and prepare to go to the library, the time information can be Saturday, and the terminal needs to switch the NFC card from the entrance guard card to the reading card of the library.
And S103, activating the target NFC card when receiving the near field communication request.
The near field communication request may be issued by the terminal device. The terminal equipment can obtain the horizontal moving distance of the user, if the horizontal preset distance exceeds a preset threshold value, whether the target NFC card changes or not is judged, and if the target NFC card changes, a near field communication request is sent out, and the target NFC card is activated.
The near field communication request can also be sent by other equipment. For example, when a user walks to a subway card swiping position, the mobile phone is close to the card swiping position, the mobile phone receives a near field communication request sent by subway card swiping equipment, and the terminal activates a target NFC card based on the request.
According to the switching method of the NFC card, the terminal can determine and activate the corresponding NFC card according to the environment parameter of the position where the terminal is located. Therefore, the method provided by the embodiment of the application can solve the problems that the NFC card brought by manually switching the NFC card is inconvenient to use and low in efficiency in the prior art.
Optionally, the environmental parameter comprises geographical location information.
Wherein the determining a target NFC card among a plurality of candidate NFC cards according to the environment parameter comprises:
and determining the place of the terminal according to the geographical position information.
And determining a target NFC card according to the plurality of candidate NFC cards where the field is located.
The corresponding relation between the geographical position information and the place can be prestored in the system, and the place where the terminal is located is determined according to the corresponding relation and the obtained geographical position information. And the place corresponding to the geographical position mood can be obtained directly through the application of an electronic map and the like. And selecting a corresponding target NFC card according to the place. And if the place is a company, the target NFC card is an entrance guard card of the company. And if the place is a certain cell, the target NFC card is an entrance guard card of the cell and the like. According to the NFC card switching method provided by the embodiment of the application, the terminal can be automatically switched to the corresponding NFC card according to the geographical position of the terminal, and a user can use the NFC card conveniently.
Optionally, the environmental parameter includes store promotional information.
Wherein the determining a target NFC card among a plurality of candidate NFC cards according to the environment parameter comprises:
and determining the NFC card with the maximum preferential force in the plurality of NFC cards according to the last promotion information.
And taking the NFC card with the maximum preferential strength as a target NFC card.
According to the NFC card switching method provided by the embodiment of the application, the terminal can be automatically switched to the corresponding NFC card according to the sales promotion information of the shopping mall, so that the efficiency of the NFC card is improved, money can be saved for a user, and the use experience of the user is improved.
Fig. 2 is a schematic flowchart of a method for acquiring a card activation model according to an embodiment of the present application, where the method includes:
s201, obtaining historical activation information of the card.
The historical activation information of the card is recorded for a plurality of NFC cards within a period of time. And one NFC card condition record comprises the environmental parameter information when the NFC card is activated and the activation condition of the NFC card. For example, a NFC card condition record may include: eight 18 th day 11 month in 2019, spring road station known by Beijing subway, and subway card activated.
S202, acquiring a training sample set based on the historical activation information of the card. Wherein the set of training samples comprises a plurality of card activated samples.
One training sample can be extracted from the one NFC card condition record, a plurality of NFC card condition records can be obtained from historical activation information of the card, and a plurality of training samples are extracted to form a training sample set.
S203, training the training sample set based on a machine learning algorithm to obtain the card activation model.
The embodiment of the invention provides a method for obtaining a card activation model, which extracts training samples from historical activation information of a card to obtain the card activation model. Since the training samples of the card activation model are from historical activation of the card, the trained card activation model can better predict the situation where the card will be activated.
Referring to fig. 3, fig. 3 is a schematic flowchart of another NFC card switching method provided in an embodiment of the present application, where in the embodiment of the present application, the method includes:
s301, collecting the environmental parameters of the terminal at the current position.
S302, obtaining a pre-stored or pre-configured association rule. And the association rule is used for expressing the corresponding relation between the environment parameter and the NFC card.
The environment parameter is a parameter of the NFC card that can be used by the terminal when the terminal is at the current location. In particular, the environmental parameter may comprise at least one of: geographical location information, time information, specific control information. As shown in table 1, if the current location information is a subway, the target NFC card is a subway card. And if the place information is leaving home and the time information can be monday, the target NFC card is an access card of the company. And if the place information is away from home and the time information can be Saturday, the target NFC card is a reading card.
TABLE 1
Location information Time information Target NFC card
Subway Subway card
Leave the family door Monday Company's access card
Leave the family door Saturday Reading card
As can be seen from table 1 above, even if the other environment parameters are the same, the time information is different, and the time information corresponds to different target NFC cards. Therefore, the method provided by the embodiment of the application comprehensively considers the time information as the environment parameter, so that the result of the determined target NFC card is more accurate.
Before S302, the method further includes:
and acquiring a historical NFC card selection result and historical environment parameter information of the user.
And establishing the association rule according to the historical NFC card selection result and the historical environment parameter information.
The embodiment of the invention provides a method for acquiring association rules of environmental parameters and an NFC card. The training samples for the card activation model are from historical selection results for the card. Therefore, the association rule can better predict the NFC card to be activated.
S303, determining an NFC card selection result corresponding to the environment parameter according to the association rule.
S304, determining a target NFC card from the candidate NFC cards based on the NFC card selection result.
And S305, activating the target NFC card when receiving the near field communication request.
The embodiment of the application provides a method for determining a target NFC card through an environment parameter and an association rule of the NFC card. Compared with a method for determining a target NFC card through a character recognition model, the method provided by the embodiment of the application does not need to establish and train the model, only needs to store the corresponding association rule, and is simpler and easier to implement.
The following application provides a switching system of an NFC card, and the switching system of the NFC card provided in the embodiment of the application includes the following modules:
a data collection module: the mobile terminal arrives at various places such as a bus station, a subway station, a shopping mall, a supermarket, a community, a company and the like every day along with the user, and the user can swipe a card as required. The data collection module collects and acquires various information, such as time, position information and specific control information of different places. The data collection module is also used for acquiring card swiping records corresponding to various information. The control information may include activity information of the merchant, and the activity information of the merchant may be acquired through a WiFi network and/or a bluetooth network.
A card marking module: a pre-stored card activation model in the system. The system continuously acquires the data of the data collection module and performs learning training on the card activation model based on the data. The card activation model marks and classifies various cards. And each newly added card in the terminal carries out data integration and correction on the card activation model.
The card switching module: and after the user arrives at a certain place, the mobile terminal sends a switching instruction of the card. For example, from home to a subway station, the target NFC card is switched from an entrance guard card to a bus card taking the subway. In addition, card switching can be performed according to preferential policies of certain periods. For example, when the user consumes in a shopping mall, different bank cards can be switched to pay according to the acquired preferential policy information, and the method is convenient and fast.
The NFC card switching system provided by the embodiment of the application can be more convenient for people to go out, saves time, is fast to pass, can obtain certain advantages and provides better selection based on the analog application switching of the NFC card based on the AI technology.
Fig. 1 to fig. 3 illustrate the switching method of the NFC card according to the embodiment of the present application in detail. Referring to fig. 4, fig. 4 is a schematic structural diagram of a switching device of an NFC card according to an embodiment of the present application, and as shown in fig. 4, the switching device of the NFC card includes:
the acquisition unit 401 is configured to acquire an environmental parameter of the terminal at a current location;
a determining unit 402, configured to determine a target NFC card among multiple candidate NFC cards according to the environment parameter;
an activating unit 403, configured to activate the target NFC card when receiving the near field communication request.
Optionally, the determining unit 402 is specifically configured to:
extracting an environment feature vector according to the environment parameters;
processing the environment characteristic vector based on a preset card activation model to obtain an NFC card selection result;
determining the target NFC card among a plurality of candidate NFC cards based on the card selection result.
Optionally, the apparatus further comprises:
an obtaining unit 404, configured to obtain historical activation information of the card;
acquiring a training sample set based on historical activation information of the card; wherein the set of training samples comprises a plurality of card-activated samples;
and training the training sample set based on a machine learning algorithm to obtain the card activation model.
Optionally, the determining unit 402 is specifically configured to:
acquiring a pre-stored or pre-configured association rule; the association rule is used for representing the corresponding relation between the environment parameter and the NFC card;
determining an NFC card selection result corresponding to the environment parameter according to the association rule;
determining a target NFC card among a plurality of candidate NFC cards based on the NFC card selection result.
Optionally, the apparatus further comprises:
an establishing unit 405, configured to obtain a historical NFC card selection result and historical environment parameter information of a user;
and establishing the association rule according to the historical NFC card selection result and the historical environment parameter information.
Optionally, the environmental parameter comprises geographical location information;
the determining unit 402 is specifically configured to:
determining the place where the terminal is located according to the geographical position information;
and determining a target NFC card according to the plurality of candidate NFC cards where the field is located.
Optionally, the environmental parameter includes shopping mall promotional information;
the determining unit 402 is specifically configured to:
determining the NFC card with the maximum preferential force in the plurality of NFC cards according to the last promotion information;
and taking the NFC card with the maximum preferential strength as a target NFC card.
It is clear to a person skilled in the art that the solution according to the embodiments of the present application can be implemented by means of software and/or hardware. The "unit" and "module" in this specification refer to software and/or hardware that can perform a specific function independently or in cooperation with other components, where the hardware may be, for example, an FPGA (Field-Programmable Gate Array), an IC (Integrated Circuit), or the like.
Each processing unit and/or module in the embodiments of the present application may be implemented by an analog circuit that implements the functions described in the embodiments of the present application, or may be implemented by software that executes the functions described in the embodiments of the present application.
An embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the switching method for the NFC card. The computer-readable storage medium may include, but is not limited to, any type of disk including floppy disks, optical disks, DVD, CD-ROMs, microdrive, and magneto-optical disks, ROMs, RAMs, EPROMs, EEPROMs, DRAMs, VRAMs, flash memory devices, magnetic or optical cards, nanosystems (including molecular memory ICs), or any type of media or device suitable for storing instructions and/or data.
Referring to fig. 5, a schematic structural diagram of an electronic device according to an embodiment of the present application is shown, where the electronic device may be used to implement the switching method of the NFC card in the foregoing embodiment. Specifically, the method comprises the following steps:
the memory 520 may be used to store software programs and modules, and the processor 590 performs various functional applications and data processing by operating the software programs and modules stored in the memory 520. The memory 520 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the terminal device, and the like. Further, the memory 520 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 520 may also include a memory controller to provide the processor 590 and the input unit 530 access to the memory 520.
The input unit 530 may be used to receive input numeric or character information and generate a keyboard, mouse, joystick, optical or trackball signal input related to user setting and function control. In particular, the input unit 530 may include a touch-sensitive surface 531 (e.g., a touch screen, a touch pad, or a touch frame). The touch sensitive surface 531, also referred to as a touch display screen or a touch pad, may collect touch operations by a user on or near the touch sensitive surface 531 (e.g. operations by a user on or near the touch sensitive surface 531 using a finger, a stylus, or any other suitable object or attachment) and drive the corresponding connection device according to a predetermined program. Alternatively, the touch sensitive surface 531 may comprise two parts, a touch detection means and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 590, and can receive and execute commands sent by the processor 590. In addition, the touch sensitive surface 531 may be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves.
The display unit 540 may be used to display information input by a user or information provided to a user and various graphic user interfaces of the terminal device, which may be configured by graphics, text, icons, video, and any combination thereof. The Display unit 540 may include a Display panel 541, and optionally, the Display panel 541 may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like. Further, the touch-sensitive surface 531 can overlay the display panel 541 such that when a touch event is detected on or near the touch-sensitive surface 531, the touch event is communicated to the processor 590 for determining a type of touch event, and the processor 590 can then provide a corresponding visual output on the display panel 541 based on the type of touch event. Although in FIG. 5 the touch sensitive surface 531 and the display panel 541 are shown as two separate components to implement input and output functions, in some embodiments the touch sensitive surface 531 and the display panel 541 may be integrated to implement input and output functions.
The processor 590 is a control center of the terminal device, connects various parts of the entire terminal device using various interfaces and lines, and performs various functions of the terminal device and processes data by running or executing software programs and/or modules stored in the memory 520 and calling data stored in the memory 520, thereby integrally monitoring the terminal device. Optionally, processor 590 may include one or more processing cores; processor 590 may, among other things, integrate an application processor, which handles primarily the operating system, user interface, and applications, etc., and a modem processor, which handles primarily wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 590.
Specifically, in this embodiment, the display unit of the terminal device is a touch screen display, the terminal device further includes a memory and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs include steps for implementing the NFC card switching method.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described device embodiments are merely illustrative, for example, the division of the unit is only a logical functional division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms.
All functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may be separately regarded as one unit, or two or more units may be integrated into one unit; the integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
The above description is only a preferred embodiment of the present application and is not intended to limit the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (10)

1. A switching method of a Near Field Communication (NFC) card is characterized by comprising the following steps:
acquiring environmental parameters of a terminal at the current position;
determining a target NFC card from a plurality of candidate NFC cards according to the environment parameters;
and activating the target NFC card when receiving the near field communication request.
2. The method of claim 1, wherein determining the target NFC card according to the environment parameter comprises:
extracting an environment feature vector according to the environment parameters;
processing the environment characteristic vector based on a preset card activation model to obtain an NFC card selection result;
determining the target NFC card among a plurality of candidate NFC cards based on the card selection result.
3. The method of claim 2, wherein the acquiring terminal precedes the environmental parameters of the current location, and further comprising:
obtaining historical activation information of the card;
acquiring a training sample set based on historical activation information of the card; wherein the set of training samples comprises a plurality of card-activated samples;
and training the training sample set based on a machine learning algorithm to obtain the card activation model.
4. The method of claim 1, wherein determining the target NFC card according to the environment parameter comprises:
acquiring a pre-stored or pre-configured association rule; the association rule is used for representing the corresponding relation between the environment parameter and the NFC card;
determining an NFC card selection result corresponding to the environment parameter according to the association rule;
determining a target NFC card among a plurality of candidate NFC cards based on the NFC card selection result.
5. The method of claim 4, further comprising:
acquiring a historical NFC card selection result and historical environment parameter information of a user;
and establishing the association rule according to the historical NFC card selection result and the historical environment parameter information.
6. The method of claim 1, wherein the environmental parameter comprises geographic location information;
wherein the determining a target NFC card among a plurality of candidate NFC cards according to the environment parameter comprises:
determining the place where the terminal is located according to the geographical position information;
and determining a target NFC card according to the plurality of candidate NFC cards where the field is located.
7. The method of claim 1, wherein the environmental parameters include store promotions;
wherein the determining a target NFC card among a plurality of candidate NFC cards according to the environment parameter comprises:
determining the NFC card with the maximum preferential force in the plurality of NFC cards according to the last promotion information;
and taking the NFC card with the maximum preferential strength as a target NFC card.
8. A switching device of a Near Field Communication (NFC) card, characterized in that the device comprises:
the acquisition unit is used for acquiring the environmental parameters of the terminal at the current position;
a determining unit, configured to determine a target NFC card among multiple candidate NFC cards according to the environment parameter;
and the activation unit is used for activating the target NFC card when receiving the near field communication request.
9. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 7.
10. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the method of any of claims 1-7 are implemented when the program is executed by the processor.
CN201911217259.0A 2019-12-03 2019-12-03 NFC card switching method and device, storage medium and electronic equipment Pending CN112906409A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911217259.0A CN112906409A (en) 2019-12-03 2019-12-03 NFC card switching method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911217259.0A CN112906409A (en) 2019-12-03 2019-12-03 NFC card switching method and device, storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN112906409A true CN112906409A (en) 2021-06-04

Family

ID=76103659

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911217259.0A Pending CN112906409A (en) 2019-12-03 2019-12-03 NFC card switching method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN112906409A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023045628A1 (en) * 2021-09-22 2023-03-30 Oppo广东移动通信有限公司 Analog card activation method and apparatus, and terminal and storage medium
WO2023077954A1 (en) * 2021-11-08 2023-05-11 荣耀终端有限公司 Nfc card activation method and apparatus

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090247078A1 (en) * 2008-03-27 2009-10-01 Vladimir Sklovsky Method and Apparatus for Automatic Application Selection in an Electronic Device Using Multiple Discovery Managers
CN108604342A (en) * 2017-01-20 2018-09-28 华为技术有限公司 Based on the NFC methods carried out data transmission and mobile device
CN109784908A (en) * 2018-12-28 2019-05-21 深圳市讯联智付网络有限公司 The NFC payment application system and method for payment efficiency are promoted by ODPS
CN110381443A (en) * 2019-09-05 2019-10-25 北京小米移动软件有限公司 Near-field communication card Activiation method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090247078A1 (en) * 2008-03-27 2009-10-01 Vladimir Sklovsky Method and Apparatus for Automatic Application Selection in an Electronic Device Using Multiple Discovery Managers
CN108604342A (en) * 2017-01-20 2018-09-28 华为技术有限公司 Based on the NFC methods carried out data transmission and mobile device
CN109784908A (en) * 2018-12-28 2019-05-21 深圳市讯联智付网络有限公司 The NFC payment application system and method for payment efficiency are promoted by ODPS
CN110381443A (en) * 2019-09-05 2019-10-25 北京小米移动软件有限公司 Near-field communication card Activiation method and device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023045628A1 (en) * 2021-09-22 2023-03-30 Oppo广东移动通信有限公司 Analog card activation method and apparatus, and terminal and storage medium
WO2023077954A1 (en) * 2021-11-08 2023-05-11 荣耀终端有限公司 Nfc card activation method and apparatus
EP4221277A4 (en) * 2021-11-08 2024-04-03 Honor Device Co Ltd Nfc card activation method and apparatus

Similar Documents

Publication Publication Date Title
KR102253482B1 (en) Mobile device and control method thereof
CN111432339A (en) Near field communication card switching method and device, storage medium and electronic equipment
CN111464692B (en) Near field communication card determination method and device, storage medium and electronic equipment
US8635020B2 (en) GPS location and favorite prediction based on in-vehicle meta-data
CN112232801B (en) Electronic transaction method and terminal
CN113364490B (en) NFC application calling method, electronic equipment and NFC device
CN102238282A (en) Mobile terminal capable of providing multiplayer game and operating method thereof
CN111543041A (en) Selection method of analog card and mobile device
EP3214593A1 (en) Contactless payment method, device and system
CN111475072B (en) Payment information display method and electronic equipment
CN107977248B (en) Display method of desktop pendant and mobile terminal
CN106296107A (en) Location-based memorandum based reminding method, system and electronic installation
CN111459569A (en) Fast traffic method, device, electronic equipment and storage medium
CN112906409A (en) NFC card switching method and device, storage medium and electronic equipment
CN108510267B (en) Account information acquisition method and mobile terminal
CN111047414B (en) Traffic card recommendation method, device and equipment and computer storage medium
CN111107219B (en) Control method and electronic equipment
CN107330687A (en) A kind of near field payment method and terminal
US20220057636A1 (en) Display terminal, application control system and application control method
CN106372488A (en) Device control method and apparatus
CN105657124A (en) Caller identification method and mobile terminal
CN105608921B (en) The method and apparatus for prompting public transport line in an electronic
CN112272367B (en) Service calling method and application client
WO2023045628A1 (en) Analog card activation method and apparatus, and terminal and storage medium
KR20150009833A (en) Mobile terminal and method for controlling place recognition

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

Application publication date: 20210604