CN116887236A - Near field communication interaction method, user terminal, card swiping terminal, medium and product - Google Patents

Near field communication interaction method, user terminal, card swiping terminal, medium and product Download PDF

Info

Publication number
CN116887236A
CN116887236A CN202310955678.4A CN202310955678A CN116887236A CN 116887236 A CN116887236 A CN 116887236A CN 202310955678 A CN202310955678 A CN 202310955678A CN 116887236 A CN116887236 A CN 116887236A
Authority
CN
China
Prior art keywords
nfc
card
scene
target
terminal
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
CN202310955678.4A
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.)
China Unionpay Co Ltd
Original Assignee
China Unionpay 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 China Unionpay Co Ltd filed Critical China Unionpay Co Ltd
Priority to CN202310955678.4A priority Critical patent/CN116887236A/en
Publication of CN116887236A publication Critical patent/CN116887236A/en
Pending legal-status Critical Current

Links

Classifications

    • 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
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/06Selective distribution of broadcast services, e.g. multimedia broadcast multicast service [MBMS]; Services to user groups; One-way selective calling services
    • 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
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Databases & Information Systems (AREA)
  • Telephone Function (AREA)

Abstract

The application discloses a near field communication interaction method, a user terminal, a card swiping terminal, a medium and a product, and belongs to the technical field of near field communication. The method comprises the following steps: acquiring a scene message broadcasted by a card swiping terminal; analyzing the scene information to obtain a target scene identifier of the scene where the card swiping terminal is located; under the condition that the NFC radio frequency signal is detected, an NFC management application is called up, and a target NFC analog card matched with the target scene identification is selected from a plurality of NFC analog cards through the NFC management application; determining the current NFC communication object of the user terminal as a target NFC analog card; and performing near field communication interaction with the card swiping terminal through the target NFC analog card. According to the NFC simulation card selection method and device, the problem that the accuracy of selecting the NFC simulation card through the geographic position is low and the NFC simulation card cannot be accurately matched with the correct NFC simulation card can be solved.

Description

Near field communication interaction method, user terminal, card swiping terminal, medium and product
Technical Field
The application belongs to the technical field of near field communication, and particularly relates to a near field communication interaction method, a user terminal, a card swiping terminal, a medium and a product.
Background
Near field communication technology (Near Field Communication, NFC) is an emerging technology, and as it continues to spread, more and more electronic devices can support near field communication functions, and electronic devices using NFC technology can exchange data in a situation where they are close to each other.
At present, an electronic device supporting a near field communication function generally installs a plurality of NFC analog cards, such as a bank card, an access control card, a traffic card, and the like, and when a card is swiped, the device uses a default NFC analog card to interact, and if other NFC analog cards are to be used, a user is usually required to manually select the card on a display interface of the electronic device, which takes a long time and affects the card swiping efficiency and experience.
Therefore, in order to improve the card swiping efficiency, a card swiping scheme for selecting an NFC analog card based on a geographic position is provided in the related art, however, the accuracy of selecting the NFC analog card through the geographic position is not high, for example, the geographic position to which the traffic card is applicable is not fixed and is relatively wide, and in this scenario, the situation of matching to the wrong NFC analog card easily occurs, so that the NFC analog card cannot be accurately matched.
Disclosure of Invention
The embodiment of the application provides a near field communication interaction method, a user terminal, a card swiping terminal, a medium and a product, which can solve the problem that the accuracy of selecting an NFC analog card through a geographic position is not high and cannot be accurately matched with a correct NFC analog card.
In a first aspect, an embodiment of the present application provides a near field communication interaction method, which is applied to a user terminal, where a plurality of NFC analog cards are installed on the user terminal, and the method includes: acquiring a scene message broadcasted by a card swiping terminal; analyzing the scene information to obtain a target scene identifier of the scene where the card swiping terminal is located; under the condition that the NFC radio frequency signal is detected, an NFC management application is called up, and a target NFC analog card matched with the target scene identification is selected from a plurality of NFC analog cards through the NFC management application; determining the current NFC communication object of the user terminal as a target NFC analog card; and performing near field communication interaction with the card swiping terminal through the target NFC analog card.
In a second aspect, an embodiment of the present application provides a near field communication interaction method, which is applied to a card swiping terminal, where the method includes: generating a scene message based on a target scene identifier of a scene where the card swiping terminal is located; broadcasting a scene message in a preset broadcasting mode, wherein the scene message is used for indicating the user terminal to switch the current NFC communication object into a target NFC analog card matched with the target scene identifier; and performing near field communication interaction with a target NFC analog card in the user terminal.
In a third aspect, an embodiment of the present application provides a user terminal, where a plurality of NFC analog cards are installed in the user terminal, including: the acquisition module is used for acquiring scene information broadcast by the card swiping terminal; the analysis module is used for analyzing the scene message to obtain a target scene identifier of the scene where the card swiping terminal is located; the selecting module is used for calling up the NFC management application under the condition that the NFC radio frequency signal is detected, and selecting a target NFC analog card matched with the target scene identifier from the plurality of NFC analog cards through the NFC management application; the determining module is used for determining the current NFC communication object of the user terminal as a target NFC analog card; and the NFC module is used for performing near field communication interaction with the card swiping terminal through the target NFC analog card.
In a fourth aspect, an embodiment of the present application provides a card swiping terminal, including: the generation module is used for generating a scene message based on a target scene identifier of a scene where the card swiping terminal is located; the broadcasting module is used for broadcasting scene information in a preset broadcasting mode, wherein the scene information is used for indicating the user terminal to switch the current NFC communication object into a target NFC analog card matched with the target scene identifier; and the NFC module is used for performing near field communication interaction with the target NFC analog card in the user terminal.
In a fifth aspect, an embodiment of the present application provides a near field communication interaction device, including: a processor and a memory storing computer program instructions; the processor, when executing the computer program instructions, implements the steps of the near field communication interaction method of the first or second aspect.
In a sixth aspect, embodiments of the present application provide a computer readable storage medium having stored thereon a program or instructions which, when executed by a processor, implement the steps of the near field communication interaction method as shown in the first or second aspect.
In a seventh aspect, embodiments of the present application provide a computer program product stored in a non-volatile storage medium, which when executed by at least one processor implements the steps of the near field communication interaction method as shown in the first or second aspect.
In an eighth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and where the processor is configured to execute a program or instructions to implement the steps of the near field communication interaction method as shown in the first aspect or the second aspect.
The embodiment of the application provides a near field communication interaction method, near field communication interaction equipment, a card swiping terminal, a medium and a product, wherein a scene message broadcasted by the card swiping terminal can be acquired under the scene where the user terminal is located, and a target scene identifier of the scene where the card swiping terminal is located can be obtained by analyzing the scene message. Based on the above, under the condition that the user terminal detects the NFC radio frequency signal, the NFC management application can select a target NFC analog card matched with the target scene identifier from a plurality of installed NFC analog cards according to the target scene identifier, so that the quick matching of the NFC analog cards is realized for the scene where the card swiping terminal is located, namely, the current scene is matched with the correct NFC analog card. Therefore, the current NFC communication object of the user terminal is determined to be the target NFC analog card, accurate selection of the NFC analog card can be achieved, near field communication interaction with the card swiping terminal can be successfully completed through the correct target NFC analog card, the situation that the NFC analog card cannot be matched to the correct NFC analog card is avoided, and the matching accuracy and the card swiping success rate of the NFC analog card are improved.
Drawings
In order to more clearly illustrate the technical solution of the embodiments of the present application, the drawings that are needed to be used in the embodiments of the present application will be briefly described, and it is possible for a person skilled in the art to obtain other drawings according to these drawings without inventive effort.
Fig. 1 is a schematic architecture diagram of an example of an application scenario of a near field communication interaction method according to an embodiment of the present application;
fig. 2 is a flowchart of an embodiment of a near field communication interaction method according to the first aspect of the present application;
fig. 3 is a flowchart of another embodiment of a near field communication interaction method provided in the first aspect of the present application;
fig. 4 is a flowchart of still another embodiment of the near field communication interaction method provided in the first aspect of the present application;
fig. 5 is a flowchart of still another embodiment of the near field communication interaction method provided in the first aspect of the present application;
fig. 6 is a flowchart of still another embodiment of the near field communication interaction method provided in the first aspect of the present application;
FIG. 7 is a flowchart of an embodiment of a method for near field communication interaction according to the second aspect of the present application;
FIG. 8 is a flow chart of an example of a payment process provided by an embodiment of the present application;
Fig. 9 is a schematic structural diagram of an embodiment of a ue according to a fourth aspect of the present application;
FIG. 10 is a schematic structural diagram of an embodiment of a card swiping terminal device according to a fifth aspect of the application;
fig. 11 is a schematic structural diagram of an embodiment of a near field communication interaction device according to a seventh aspect of the present application.
Detailed Description
Features and exemplary embodiments of various aspects of the present application will be described in detail below, and in order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be described in further detail below with reference to the accompanying drawings and the detailed embodiments. It should be understood that the particular embodiments described herein are meant to be illustrative of the application only and not limiting. It will be apparent to one skilled in the art that the present application may be practiced without some of these specific details. The following description of the embodiments is merely intended to provide a better understanding of the application by showing examples of the application.
In the related art, an electronic device supporting a near field communication function generally installs a plurality of NFC analog cards, such as a bank card, an access control card, a traffic card, and the like, and when a card is swiped, the device uses a default NFC analog card to interact, and if other NFC analog cards are to be used, a user is usually required to manually select the card on a display interface of the electronic device, which takes a long time, and affects the card swiping efficiency and experience. Therefore, in order to improve the card swiping efficiency, a card swiping scheme for selecting an NFC analog card based on a geographic position is provided, however, the accuracy for selecting the NFC analog card through the geographic position is not high, for example, the geographic position where a traffic card is applicable is not fixed and is wide, and in this scenario, the situation that a correct NFC analog card cannot be matched easily occurs, so that the NFC analog card cannot be accurately matched.
Based on the above-mentioned problems, the embodiment of the application provides a near field communication interaction method, a user terminal, a card swiping terminal, a medium and a product, in which, in a scenario where the user terminal is located in the card swiping terminal, an NFC management application can select a target NFC analog card matched with the target scenario identification from a plurality of installed NFC analog cards according to the target scenario identification of the scenario where the card swiping terminal is located, so that the quick matching of the NFC analog card is realized for the scenario where the card swiping terminal is located, that is, the current scenario is matched with the correct NFC analog card. Therefore, the current NFC communication object of the user terminal is determined to be the target NFC analog card, accurate selection of the NFC analog card can be achieved, near field communication interaction with the card swiping terminal can be successfully completed through the correct target NFC analog card, the situation that the NFC analog card cannot be matched to the correct NFC analog card is avoided, and the matching accuracy and the card swiping success rate of the NFC analog card are improved.
The near field communication interaction method in the embodiment of the application can be applied to near field communication scenes, wherein the near field communication scenes can be application scenes such as mobile payment, electronic ticketing, access control, mobile identity recognition, anti-counterfeiting and the like through a near field communication function, and the near field communication interaction method can relate to a user terminal and a card swiping terminal. The following describes the near field communication interaction architecture in the embodiment of the present application in detail with reference to fig. 1.
Fig. 1 is a schematic architecture diagram of an example of an application scenario of a near field communication interaction method according to an embodiment of the present application.
As shown in fig. 1, the architecture system of the near field communication interaction method may include a user terminal 11 and a card swiping terminal 12.
The user terminal 11 is a terminal device with an NFC analog card, and may specifically include a mobile phone, a tablet computer, an intelligent wearable device, etc., and the specific type of the user terminal 11 is not limited herein. The user terminal 11 supports a card mode, which is to simulate the electronic device with NFC function into a contactless radio frequency card conforming to the NFC related standard, where the contactless radio frequency card is an NFC analog card, and the user terminal 11 can perform NFC communication interaction and data interaction with the swipe card terminal 12 by using the NFC analog card. The user terminal 11 may be provided with an NFC management application for managing an NFC emulated card, where the NFC emulated card may be displayed on an application interface of the NFC management application in the form of an electronic card, and when a user needs to use a certain NFC emulated card, the user may directly open the NFC emulated card in the NFC management application, and approach the user terminal 11 to the card swiping terminal 12 to swipe the card or swipe the card. For example, the user terminal 11 is brought close to the card reader (i.e., the card reader terminal 12) on the gate to realize the card reading gate. The user terminal 11 may include an NFC control chip, on which the functions of an inductive card reader, an inductive card and peer-to-peer communication may be integrated, so that applications such as mobile payment, electronic ticketing, entrance guard, mobile identity recognition, anti-counterfeiting, etc. may be implemented through the user terminal 11.
The card swiping terminal 12 is a card swiping device, i.e., a card reader, for reading NFC tags. The card swiping terminal 12 can be used as a card swiping device to perform NFC communication interaction with the user terminal 11, and read an NFC analog card in the user terminal 11.
Based on the payment architecture provided by the embodiment of the present application shown in fig. 1, the near field communication interaction method provided by the embodiment of the present application is described in detail.
The first aspect of the present application provides a near field communication interaction method, which is applicable to a user terminal, i.e. the near field communication interaction method is executable by the user terminal. The details of the user terminal may be referred to the related descriptions in the above embodiments, and will not be described herein.
Fig. 2 is a flowchart of an embodiment of a near field communication interaction method according to the first aspect of the present application. As shown in fig. 2, the near field communication interaction method may include steps 210-250.
Step 210, obtaining a scene message broadcasted by a card swiping terminal;
step 220, analyzing the scene message to obtain a target scene identifier of the scene where the card swiping terminal is located;
step 230, under the condition that the NFC radio frequency signal is detected, the NFC management application is called up, and a target NFC analog card matched with the target scene identification is selected from a plurality of NFC analog cards through the NFC management application;
Step 240, determining the current NFC communication object of the user terminal as a target NFC emulated card;
and step 250, performing near field communication interaction with the card swiping terminal through the target NFC analog card.
According to the near field communication interaction method provided by the embodiment of the application, the scene message broadcasted by the card swiping terminal can be obtained under the scene where the user terminal is located, and the target scene identification of the scene where the card swiping terminal is located can be obtained by analyzing the scene message. Based on the above, under the condition that the user terminal detects the NFC radio frequency signal, the NFC management application can select a target NFC analog card matched with the target scene identifier from a plurality of installed NFC analog cards according to the target scene identifier, so that the quick matching of the NFC analog cards is realized for the scene where the card swiping terminal is located, namely, the current scene is matched with the correct NFC analog card. Therefore, the current NFC communication object of the user terminal is confirmed to be the target NFC analog card, accurate selection of the NFC analog card can be achieved, near field communication interaction with the card swiping terminal can be successfully completed through the correct target NFC analog card, the situation that the NFC analog card cannot be matched to the correct NFC analog card is avoided, and the matching accuracy and the card swiping success rate of the NFC analog card are improved.
The following describes the specific implementation of the above steps in detail with reference to examples, and is specifically shown below.
Involves step 210 of obtaining a scene message broadcast by the swipe terminal.
In step 210, the card swiping terminal may broadcast the scene message through a preset broadcasting method, which may include, but is not limited to: bluetooth, wireless communication technology WIFI, wireless carrier communication technology (UWB), radio frequency identification (Radio Frequency Identification, RFID) technology; correspondingly, the user terminal can acquire the scene message in the same information acquisition mode as the preset broadcasting mode.
Step 220 is involved, the scene message is parsed, and the target scene identifier of the scene where the card swiping terminal is located is obtained.
In step 220, the scene message may carry a scene identifier of the scene in which the card swiping terminal is located, that is, a target scene identifier, and the scene message broadcast by the card swiping terminal is different based on the difference of the scenes in which the card swiping terminal is located.
For an access card swiping terminal, in a scene message broadcast by an access card swiping terminal in a 'company' scene, the carried target scene is identified as a 'company-access', and in a scene message broadcast by an access card swiping terminal in a 'home' scene, the carried target scene is identified as a 'home-access'.
In some embodiments of the present application, the scene identifier may be stored in a payload of the scene message, so that the user terminal may obtain the target scene identifier carried in the scene message by parsing the payload of the scene message.
In some embodiments of the application, the scene identification may be determined using standard codes or naming rules.
Step 230 is involved, in the case of detecting the NFC radio frequency signal, invoking the NFC management application, and selecting, by the NFC management application, a target NFC emulated card from the plurality of NFC emulated cards that matches the target scene identifier.
In step 230, when the user terminal approaches the card swiping terminal, the card swiping operation is started, and at this time, the user terminal may sense an NFC radio frequency signal emitted by the card swiping terminal, where the NFC radio frequency signal is used to read an NFC analog card in the user terminal. Therefore, when the NFC radio frequency signal is detected, the user terminal starts an NFC management application, where the NFC management application is configured to manage NFC analog cards, where the NFC management application includes a plurality of NFC analog cards, where the plurality of NFC analog cards may be integrated on the NFC management application, where the NFC management application may be, for example, a wallet application, and where the NFC management application may be called by the NFC controller, and after being called, the NFC management application may select, from the plurality of NFC analog cards, a target NFC analog card matching the target scene identifier for performing NFC communication interaction with the card swiping terminal.
It should be noted that the execution sequence of the steps 210, 220, 230 is not specifically limited in the present application, and the step 210 may be before the step 230 or after the step 230.
In other embodiments of the application, the method may include: invoking an NFC management application upon detecting an NFC radio frequency signal; acquiring a scene message broadcasted by a card swiping terminal; analyzing the scene information to obtain a target scene identifier of the scene where the card swiping terminal is located; and selecting a target NFC simulation card matched with the target scene identifier from the plurality of NFC simulation cards through the NFC management application.
In still other embodiments of the present application, the method may include: the NFC management application is called up under the condition that a scene message broadcasted by the card swiping terminal is acquired; analyzing the scene message through the NFC management application to obtain a target scene identifier of the scene where the card swiping terminal is located; and under the condition that the NFC radio frequency signal is detected, selecting a target NFC analog card matched with the target scene identification from a plurality of NFC analog cards through the NFC management application.
In some embodiments of the present application, in order to ensure the scene suitability of the selected target NFC emulated card and the card swiping terminal, fig. 3 is a flowchart of another embodiment of the near field communication interaction method provided in the first aspect of the present application, and step 210 may be preceded by steps 310 to 330 shown in fig. 3.
Step 310, acquiring scene types associated with a plurality of NFC analog cards;
step 320, dividing the NFC emulated cards associated with the same scene type into the same scene group to obtain a plurality of scene groups;
step 330, setting corresponding packet identifications for a plurality of scene packets based on scene types associated with the NFC emulated card in the scene packets.
For example, the plurality of NFC emulated cards may include card a, card B, card C, and card D, wherein the scene types associated with card a and card B are each a "consumption-bank card", the scene type associated with card C is a "traffic-bus card", and the scene type associated with card D is a "home-entrance guard" so that card a, card B, card C, and card D are respectively divided into three groups.
In the embodiment of the application, by dividing the NFC analog cards associated with the same scene type into the same scene group in advance, one scene group can be allocated to each scene. In this way, under different scenes, by selecting the target NFC analog card from the scene group adapted to the target NFC analog card, the adaptation of the selected target NFC analog card and the scene where the card swiping terminal is located can be ensured, and therefore the correctness of the NFC analog card read by the card swiping terminal is ensured.
In other embodiments of the present application, the user terminal may display an application interface of the NFC management application, and group the plurality of NFC emulated cards by receiving a user input at the application interface, and set a corresponding group identifier.
In some embodiments of the present application, in order to improve accuracy of screening correct NFC analog cards from multiple NFC analog cards, fig. 4 is a flowchart of still another embodiment of a near field communication interaction method provided in the first aspect of the present application, and step 230 of selecting, by an NFC management application, a target NFC analog card matching a target scene identifier from multiple NFC analog cards may include steps 410 to 430 shown in fig. 4.
Step 410, through the NFC management application, selecting a target scene packet with a packet identifier consistent with the target scene identifier from the plurality of scene packets;
step 420, determining, by the NFC management application, that the unique NFC emulated card is the target NFC emulated card if the unique NFC emulated card exists in the target scenario packet;
in step 430, in the case that the number of NFC emulated cards in the target scenario packet is greater than 1, the NFC emulated card with the highest priority in the target scenario packet is determined to be the target NFC emulated card by the NFC management application.
In the embodiment of the application, the target scene group matched with the scene where the card swiping terminal is located can be screened by comparing the group identifier with the target scene identifier, and when only one NFC analog card exists in the target scene group, the NFC management application can directly take the NFC analog card as the target NFC analog card; when the target scene group contains two or more NFC simulation cards, the accuracy of screening correct NFC simulation cards from the NFC simulation cards can be improved by setting the NFC simulation card with the highest priority as the target NFC simulation card.
In some embodiments of the application, the priority may be determined based on one or more of user settings, geographic location, user behavior habit data.
The user may set the priority of the NFC emulated card by himself, for example, set the priority order of the plurality of NFC emulated cards, or set a certain NFC emulated card as a default NFC emulated card, so that the priority of the default NFC emulated card is higher than that of other NFC emulated cards that are not set as defaults. Each NFC emulated card may be associated with a piece of geographic location information, the closer the geographic location information is to the address location information of the swipe terminal, the higher the similarity of the NFC emulated card. The user behavior habit data may include user card swiping behavior data, where the user card swiping behavior data includes information such as card type, card swiping success or failure, card swiping time of the user using the NFC analog card, and the information may be obtained by an application program on the user terminal or a call log.
In the related art, when detecting an NFC radio frequency signal, a user terminal invokes an NFC management application, and in a scenario in which the user terminal is provided with a default NFC analog card, the NFC management application directly reads the default NFC analog card, and performs NFC communication interaction with a card swiping terminal by using the default NFC analog card as a current NFC communication object. In this way, when the default NFC analog card is not matched with the scene where the current card swiping terminal is located, for example, the default NFC analog card is an access control card, and the card swiping terminal is a gate of a subway station, the card swiping failure will occur.
In some embodiments of the present application, the plurality of NFC emulated cards include a default NFC emulated card, and in order to avoid a card swiping failure in the related art, fig. 5 is a flowchart of still another embodiment of a near field communication interaction method provided in the first aspect of the present application, and step 230 may include steps 510 to 540 shown in fig. 5.
Step 510, receiving, by the NFC controller, NFC application interaction data sent by the card swiping terminal and invoking an NFC management application, in the case of detecting an NFC radio frequency signal;
step 520, forwarding, by the NFC controller, the NFC application interaction data to the NFC management application, so that the NFC management application obtains a packet identifier of the default NFC emulated card and compares the packet identifier of the default NFC emulated card with the target scene identifier when receiving the NFC application interaction data;
step 530, determining, by the NFC management application, that the target NFC emulated card is a default NFC emulated card, and directly forwarding NFC application interaction data to a card application of the default NFC emulated card, if the packet identifier matches the target scene identifier;
step 540, in the case that the packet identifier does not match with the target scene identifier, the NFC management application is configured to screen the target scene packet with the packet identifier consistent with the target scene identifier from the plurality of scene packets, and directly forward the NFC application interaction data to the card application of the target NFC analog card in the target scene packet.
Specifically, the NFC controller may be an NFC control chip. The NFC application interaction data are used for the user terminal to conduct near field communication interaction through the NFC analog card and the card swiping terminal according to application specifications, wherein the application specifications are specifications of card applications of the NFC analog card.
For example, in a scenario where the NFC emulated card is a financial IC card, the application specification may be a PBOC specification, where the PBOC specification includes standard interaction instructions such as PPSE.
In the embodiment of the application, when receiving the NFC application interaction data sent by the card swiping terminal, the NFC controller does not directly send the NFC application interaction data to the card application of the default NFC analog card, but sends the NFC application interaction data to the NFC management application, and the NFC management application forwards the data. Based on the method, the NFC management application can acquire the grouping identification of the default NFC analog card and compare the grouping identification with the target scene identification before forwarding the data, so that the NFC application interaction data can be directly forwarded to the card application of the default NFC analog card under the condition that the grouping identification is matched with the target scene identification; or under the condition that the grouping identification is not matched with the target scene identification, the NFC management application screens the target scene grouping with the grouping identification consistent with the target scene identification from the plurality of scene groupings, and directly forwards NFC application interaction data to the card application of the target NFC analog card in the target scene grouping. Therefore, when NFC communication interaction between the default NFC analog card and the card swiping terminal is carried out, the NFC management application can avoid the situation that card swiping fails due to mismatching of scenes where the default NFC analog card and the card swiping terminal are located, and the reliability of NFC card swiping is improved.
In some embodiments of the present application, the plurality of NFC emulated cards include default NFC emulated cards, and in order to switch to a correct NFC emulated card in time after the card swiping failure in the related art occurs, fig. 6 is a flowchart of still another embodiment of the near field communication interaction method provided in the first aspect of the present application, and step 230 may include steps 610 to 640 shown in fig. 6.
Step 610, receiving, by the NFC controller, NFC application interaction data sent by the card swiping terminal and invoking an NFC management application, in the case of detecting an NFC radio frequency signal;
step 620, forwarding the NFC application interaction data directly to the card application of the default NFC emulated card through the NFC controller, and determining that the current NFC communication object of the user terminal is the default NFC emulated card;
step 630, receiving a card swiping failure message sent by a card swiping terminal under the condition that the group identifier of the default NFC analog card is not matched with the target scene identifier;
in step 640, in the case of detecting the NFC radio frequency signal again, the NFC management application is used to screen the target scenario packet with the packet identifier consistent with the target scenario identifier from the multiple scenario packets, and directly forward the NFC application interaction data to the card application of the target NFC analog card in the target scenario packet.
The NFC application interaction data are used for near field communication interaction between the user terminal and the card swiping terminal through the NFC analog card according to application specifications.
In the embodiment of the application, when receiving the NFC application interaction data sent by the card swiping terminal, the NFC controller directly sends the NFC application interaction data to the card application of the default NFC analog card, so that the user terminal performs NFC communication interaction with the card swiping terminal through the default NFC analog card, and card swiping failure is caused when the scene where the default NFC analog card and the card swiping terminal are located is not matched. On the basis, after receiving the card swiping failure message, when the user holds the user terminal by hand and releases the card swiping terminal again to perform card swiping operation, the user terminal can sense the NFC radio frequency signal again, further screen target scene groups with the group identification consistent with the target scene identification through the NFC management application, and directly forward NFC application interaction data to card applications of target NFC simulation cards in the target scene groups, so that the user terminal can be switched to the target NFC simulation cards matched with the card swiping terminal in time, namely correct NFC simulation cards, and the follow-up card swiping operation is ensured to be performed smoothly.
It should be noted that, after the NFC management application screens out the target scenario packet in step 540 and step 640, the schemes corresponding to step 420 and step 430 may be adopted to select the target NFC analog card from the target scenario packet, which is not described herein for brevity.
Step 240 is involved in determining that the current NFC communication object of the user terminal is the target NFC emulated card.
In step 240, although the user terminal includes a plurality of NFC emulated cards, at the same time, only one NFC emulated card exists as a current NFC communication object to perform NFC communication interaction with the card swiping terminal.
In some embodiments of the present application, after the step 640, determining that the current NFC communication object of the user terminal is the target NFC emulated card may specifically include:
and switching the current NFC communication object of the user terminal from the default NFC analog card to the target NFC analog card.
In the embodiment of the application, if the user terminal fails to swipe the card through the default NFC analog card for the first time, the current NFC communication object can be switched to the correct target NFC analog card by calling the NFC management application, so that the follow-up card swiping operation is ensured to be smoothly carried out.
Involves step 250 of performing near field communication interaction with the swipe terminal through the target NFC emulated card.
In step 250, the user terminal uses the target NFC emulated card to interact with the card swiping terminal for NFC command, thereby completing the whole card swiping process.
The second aspect of the present application provides a near field communication interaction method, which can be applied to a card swiping terminal, that is, the near field communication interaction method can be executed by the card swiping terminal. The details of the card swiping terminal can be referred to the related descriptions in the above embodiments, and will not be repeated here.
Fig. 7 is a flowchart of an embodiment of a near field communication interaction method according to the second aspect of the present application. As shown in fig. 7, the near field communication interaction method may include steps 710-730.
Step 710, generating a scene message based on a target scene identifier of a scene where the card swiping terminal is located;
step 720, broadcasting a scene message in a preset broadcasting mode, wherein the scene message is used for indicating the user terminal to switch the current NFC communication object into a target NFC analog card matched with the target scene identifier;
and step 730, performing near field communication interaction with the target NFC analog card in the user terminal.
According to the near field communication interaction method provided by the embodiment of the application, the card swiping terminal can broadcast the scene identification of the scene where the card swiping terminal is located, so that the user terminal can acquire the scene identification of the current scene, namely the target scene identification after entering the scene where the card swiping terminal is located. Based on the target scene identifier, the NFC management application in the user terminal can select a target NFC analog card matched with the target scene identifier from a plurality of installed NFC analog cards, so that the quick matching of the NFC analog cards is realized for the scene where the card swiping terminal is located, namely, the current scene is matched with the correct NFC analog card. Therefore, the current NFC communication object of the user terminal is confirmed to be the target NFC analog card, accurate selection of the NFC analog card can be achieved, near field communication interaction with the card swiping terminal can be successfully completed through the correct target NFC analog card, the situation that the NFC analog card cannot be matched to the correct NFC analog card is avoided, and the matching accuracy and the card swiping success rate of the NFC analog card are improved.
In step 710, the card swiping terminal may broadcast the scene message through a preset broadcasting method, which may include: at least one of bluetooth, wireless communication technology, wireless carrier communication technology, radio frequency identification technology.
In some embodiments of the present application, step 710 may include: the target scene identification is added in the payload of the scene message.
In other embodiments, the swipe terminal may set the non-connectible attribute and the broadcast interval in the header of the presence message.
In some embodiments of the present application, step 710 may specifically include: the swipe terminal continuously broadcasts the scene message.
For example, the card swiping terminal can be an access control device in an access control scene, and the access control device can continuously broadcast a scene message that the current scene is an "access control scene".
In other embodiments of the present application, the swipe terminal non-continuously broadcasts a scene message, and step 720 may specifically include: and broadcasting the scene message in a preset broadcasting mode under the condition of starting the card reading operation.
For example, the card swiping terminal can be a POS terminal in a transaction scene, and the POS terminal can start broadcasting scene information after receiving a card reading operation of a user, so that resource waste caused by continuous broadcasting is avoided.
In order to facilitate understanding of the near field communication interaction method in the embodiment of the present application, a near field communication scenario is taken as an example to describe a communication interaction flow between a user terminal and a card swiping terminal.
Fig. 8 is a flowchart of an example of a near field communication interaction method according to an embodiment of the present application.
As shown in fig. 8, the near field communication interaction flow may include steps 801 to 806.
Step 801, the card swiping terminal generates a scene message based on a target scene identifier of the scene.
Step 802, the card swiping terminal broadcasts the scene message in a preset broadcasting mode.
Step 803, the user terminal analyzes the scene message to obtain the target scene identifier of the scene where the card swiping terminal is located.
In step 804, the user terminal invokes the NFC management application when detecting the NFC radio frequency signal, and selects, from the plurality of NFC analog cards, a target NFC analog card matching the target scene identifier through the NFC management application.
In step 805, the user terminal determines that the current NFC communication object is the target NFC emulated card.
In step 806, the user terminal performs near field communication interaction with the card swiping terminal through the target NFC analog card.
The specific content of the steps 801 to 806 may be referred to the relevant content of the embodiments, and will not be described herein.
In summary, the embodiment of the application provides a near field communication interaction method, which can acquire a scene message broadcast by a card swiping terminal under a scene where the user terminal is located, and can acquire a target scene identifier of the scene where the card swiping terminal is located by analyzing the scene message. Based on the above, under the condition that the user terminal detects the NFC radio frequency signal, the NFC management application can select a target NFC analog card matched with the target scene identifier from a plurality of installed NFC analog cards according to the target scene identifier, so that the quick matching of the NFC analog cards is realized for the scene where the card swiping terminal is located, namely, the current scene is matched with the correct NFC analog card. Therefore, the current NFC communication object of the user terminal is confirmed to be the target NFC analog card, accurate selection of the NFC analog card can be achieved, near field communication interaction with the card swiping terminal can be successfully completed through the correct target NFC analog card, the situation that the NFC analog card cannot be matched to the correct NFC analog card is avoided, and the matching accuracy and the card swiping success rate of the NFC analog card are improved.
Based on the same inventive concept, a third aspect of the present application provides a user terminal. Fig. 9 is a schematic structural diagram of an embodiment of a user terminal according to a third aspect of the present application.
As shown in fig. 9, the user terminal 900 may be the user terminal 11 shown in fig. 1, where the user terminal 900 is installed with a plurality of NFC analog cards, and the user terminal 900 may specifically include: an acquiring module 910, configured to acquire a scene message broadcasted by the card swiping terminal; the analysis module 920 is configured to analyze the scene message to obtain a target scene identifier of a scene where the card swiping terminal is located; the selecting module 930 is configured to invoke the NFC management application when the NFC radio frequency signal is detected, and select, from the plurality of NFC analog cards, a target NFC analog card that matches the target scene identifier through the NFC management application; a determining module 940, configured to determine that a current NFC communication object of the user terminal is a target NFC emulated card; the NFC module 950 is configured to perform near field communication interaction with the card swiping terminal through the target NFC analog card.
According to the user terminal provided by the embodiment of the application, the scene message broadcasted by the card swiping terminal can be obtained under the scene where the user terminal is located, and the target scene identification of the scene where the card swiping terminal is located can be obtained by analyzing the scene message. Based on the above, under the condition that the user terminal detects the NFC radio frequency signal, the NFC management application can select a target NFC analog card matched with the target scene identifier from a plurality of installed NFC analog cards according to the target scene identifier, so that the quick matching of the NFC analog cards is realized for the scene where the card swiping terminal is located, namely, the current scene is matched with the correct NFC analog card. Therefore, the current NFC communication object of the user terminal is confirmed to be the target NFC analog card, accurate selection of the NFC analog card can be achieved, near field communication interaction with the card swiping terminal can be successfully completed through the correct target NFC analog card, the situation that the NFC analog card cannot be matched to the correct NFC analog card is avoided, and the matching accuracy and the card swiping success rate of the NFC analog card are improved.
The following describes the user terminal 900 provided in the embodiment of the present application in detail.
In some embodiments of the present application, the user terminal further comprises: an acquiring module 910, configured to acquire scene types associated with a plurality of NFC analog cards before acquiring a scene message broadcasted by a card swiping terminal; the grouping module is used for dividing NFC analog cards associated with the same scene type into the same scene group to obtain a plurality of scene groups; the setting module is used for setting corresponding grouping identifiers for a plurality of scene groupings based on scene types associated with the NFC analog cards in the scene groupings.
In some embodiments of the present application, the plurality of NFC emulated cards includes a default NFC emulated card, and the selecting module 930 includes: a screening unit, configured to screen, by using an NFC management application, a target scene packet whose packet identifier is consistent with the target scene identifier from a plurality of scene packets; the determining unit is used for determining that the unique NFC analog card is the target NFC analog card through the NFC management application under the condition that the unique NFC analog card exists in the target scene group; and the determining unit is further used for determining that the NFC analog card with the highest priority in the target scene packet is the target NFC analog card through the NFC management application under the condition that the quantity of the NFC analog cards in the target scene packet is larger than 1.
In some embodiments of the application, the priority is determined based on geographic location, user behavior habit data.
In some embodiments of the present application, the plurality of NFC emulated cards includes a default NFC emulated card, and the selecting module 930 includes: the calling unit is used for receiving NFC application interaction data sent by the card swiping terminal through the NFC controller and calling the NFC management application under the condition that the NFC radio frequency signal is detected, wherein the NFC application interaction data are used for near field communication interaction between the user terminal and the card swiping terminal through the NFC analog card according to application specifications; the forwarding unit is used for forwarding the NFC application interaction data to the NFC management application through the NFC controller so that the NFC management application obtains the packet identification of the default NFC analog card and compares the packet identification of the default NFC analog card with the target scene identification under the condition that the NFC application interaction data is received; the forwarding unit is used for determining that the target NFC analog card is a default NFC analog card through the NFC management application under the condition that the grouping identification is matched with the target scene identification, and directly forwarding NFC application interaction data to the card application of the default NFC analog card; and the forwarding unit is also used for screening the target scene packet with the consistent packet identifier and the target scene identifier from the plurality of scene packets through the NFC management application under the condition that the packet identifier is not matched with the target scene identifier, and directly forwarding NFC application interaction data to the card application of the target NFC analog card in the target scene packet.
In some embodiments of the present application, the plurality of NFC emulated cards includes a default NFC emulated card, and the selecting module 930 includes: the calling unit is used for receiving NFC application interaction data sent by the card swiping terminal through the NFC controller and calling the NFC management application under the condition that the NFC radio frequency signal is detected, wherein the NFC application interaction data are used for near field communication interaction between the user terminal and the card swiping terminal through the NFC analog card according to application specifications; the forwarding unit is used for forwarding the NFC application interaction data to the card application of the default NFC analog card directly through the NFC controller and determining that the current NFC communication object of the user terminal is the default NFC analog card; the receiving unit is used for receiving a card swiping failure message sent by the card swiping terminal under the condition that the packet identifier of the default NFC analog card is not matched with the target scene identifier; and the forwarding unit is also used for screening the target scene packet with the packet identification consistent with the target scene identification from the plurality of scene packets through the NFC management application under the condition that the NFC radio frequency signal is detected again, and forwarding the NFC application interaction data to the card application of the target NFC analog card in the target scene packet through the NFC management application.
In some embodiments of the present application, the determining module is specifically configured to: and switching the current NFC communication object of the user terminal from the default NFC analog card to the target NFC analog card.
Based on the same inventive concept, a fourth aspect of the present application provides a card swiping terminal. Fig. 10 is a schematic structural diagram of an embodiment of a card swiping terminal according to a fourth aspect of the application.
As shown in fig. 10, the card swiping terminal 1000 may be the card swiping terminal 12 shown in fig. 1, and the card swiping terminal 1000 may specifically include: the generating module 1010 is configured to generate a scene message based on a target scene identifier of a scene where the swipe terminal is located; the broadcasting module 1020 is configured to broadcast a scenario message in a preset broadcasting manner, where the scenario message is used to instruct the user terminal to switch the current NFC communication object to a target NFC analog card that matches the target scenario identifier; NFC module 1030 is configured to perform near field communication interaction with a target NFC emulated card in a user terminal.
The card swiping terminal provided by the embodiment of the application can broadcast the scene identification of the scene where the card swiping terminal is located, so that the user terminal can acquire the scene identification of the current scene, namely the target scene identification after entering the scene where the card swiping terminal is located. Based on the target scene identifier, the NFC management application in the user terminal can select a target NFC analog card matched with the target scene identifier from a plurality of installed NFC analog cards, so that the quick matching of the NFC analog cards is realized for the scene where the card swiping terminal is located, namely, the current scene is matched with the correct NFC analog card. Therefore, the current NFC communication object of the user terminal is confirmed to be the target NFC analog card, accurate selection of the NFC analog card can be achieved, near field communication interaction with the card swiping terminal can be successfully completed through the correct target NFC analog card, the situation that the NFC analog card cannot be matched to the correct NFC analog card is avoided, and the matching accuracy and the card swiping success rate of the NFC analog card are improved.
The following describes in detail the card swiping terminal 1000 provided in the embodiment of the application.
In some embodiments of the present application, the generating module 1010 is specifically configured to: the target scene identification is added in the payload of the scene message.
In some embodiments of the present application, the broadcast module 1020 is specifically configured to: broadcasting scene information in a preset broadcasting mode under the condition of starting card reading operation; the preset broadcasting mode comprises at least one of Bluetooth, wireless communication technology, wireless carrier communication technology and radio frequency identification technology.
The fifth aspect of the present application also provides an electronic device. Fig. 11 is a schematic structural diagram of an embodiment of an electronic device according to a fifth aspect of the present application. As shown in fig. 11, the electronic device 1100 includes a memory 1101, a processor 1102, and a computer program stored on the memory 1101 and executable on the processor 1102.
In one example, the processor 1102 may include a Central Processing Unit (CPU), or an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), or may be configured as one or more integrated circuits that implement embodiments of the present application.
The Memory 1101 may include Read-Only Memory (ROM), random-access Memory (Random Access Memory, RAM), magnetic disk storage media devices, optical storage media devices, flash Memory devices, electrical, optical, or other physical/tangible Memory storage devices. Thus, in general, the memory comprises one or more tangible (non-transitory) computer-readable storage media (e.g., memory devices) encoded with software comprising computer-executable instructions and when the software is executed (e.g., by one or more processors) it is operable to perform the operations described with reference to the near field communication interaction method in embodiments according to the first or second aspects of the application.
The processor 1102 runs a computer program corresponding to the executable program code by reading the executable program code stored in the memory 1101 for implementing the near field communication interaction method in the embodiment of the first or second aspect described above.
In some examples, electronic device 1100 may also include a communication interface 1103 and a bus 1104. As shown in fig. 11, the memory 1101, the processor 1102, and the communication interface 1103 are connected to each other via a bus 1104 and perform communication with each other.
The communication interface 1103 is mainly used for implementing communication between each module, device, unit and/or apparatus in the embodiment of the present application. Input devices and/or output devices may also be accessed through communication interface 1103.
Bus 1104 includes hardware, software, or both, coupling the components of user terminal 1100 to one another. By way of example, and not limitation, bus 1104 may include an accelerated graphics port (Accelerated Graphics Port, AGP) or other graphics Bus, an enhanced industry standard architecture (Enhanced Industry Standard Architecture, EISA) Bus, a Front Side Bus (FSB), a HyperTransport (HT) interconnect, an industry standard architecture (Industry Standard Architecture, ISA) Bus, an Infiniband interconnect, a Low Pin Count (LPC) Bus, a memory Bus, a micro channel architecture (Micro Channel Architecture, MCa) Bus, a peripheral component interconnect (Peripheral Component Interconnect, PCI) Bus, a PCI-Express (PCI-E) Bus, a serial advanced technology attachment (Serial Advanced Technology Attachment, SATA) Bus, a video electronics standards association local (Video Electronics Standards Association Local Bus, VLB) Bus, or other suitable Bus, or a combination of two or more of these. Bus 1104 may include one or more buses, where appropriate. Although embodiments of the application have been described and illustrated with respect to a particular bus, the application contemplates any suitable bus or interconnect.
A sixth aspect of the present application provides a computer readable storage medium, where a program or an instruction is stored, where the program or the instruction can implement the near field communication interaction method described in the first aspect or the second aspect when executed by a processor, and achieve the same technical effects, and in order to avoid repetition, a description is omitted here. The computer readable storage medium may include a non-transitory computer readable storage medium, such as Read-Only Memory (ROM), random access Memory (Random Access Memory, RAM), magnetic disk or optical disk, and the like, but is not limited thereto.
A seventh aspect of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the steps of the near field communication interaction method as shown in the first aspect or the second aspect, and details of the near field communication interaction method may be referred to in the related description of the foregoing embodiments, which is not repeated herein.
An eighth aspect of the present application provides a computer program product stored in a nonvolatile storage medium, which when executed by at least one processor implements the steps of the near field communication interaction method as described in the first aspect or the second aspect, and details of the near field communication interaction method are referred to in the related description of the foregoing embodiments, which are not repeated herein.
The application can also provide a near field communication interaction system which can comprise the user terminal and the card swiping terminal in the embodiment. The details of the user terminal and the card swiping terminal may be referred to the related descriptions in the above embodiments, and will not be described herein.
It should be understood that, in the present specification, each embodiment is described in an incremental manner, and the same or similar parts between the embodiments are all referred to each other, and each embodiment is mainly described in a different point from other embodiments. For apparatus embodiments, user terminal embodiments, device embodiments, system embodiments, and computer-readable storage medium embodiments, the relevant points may be found in the description of method embodiments. The application is not limited to the specific steps and structures described above and shown in the drawings. Those skilled in the art will appreciate that various alterations, modifications, and additions may be made, or the order of steps may be altered, after appreciating the spirit of the present application. Also, a detailed description of known method techniques is omitted here for the sake of brevity.
Aspects of the present application are described above with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, enable the implementation of the functions/acts specified in the flowchart and/or block diagram block or blocks. Such a processor may be, but is not limited to being, a general purpose processor, a special purpose processor, an application specific processor, or a field programmable logic circuit. It will also be understood that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware which performs the specified functions or acts, or combinations of special purpose hardware and computer instructions.
Those skilled in the art will appreciate that the above-described embodiments are exemplary and not limiting. The different technical features presented in the different embodiments may be combined to advantage. Other variations to the disclosed embodiments can be understood and effected by those skilled in the art in view of the drawings, the description, and the claims. In the claims, the term "comprising" does not exclude other means or steps; the word "a" does not exclude a plurality; the terms "first," "second," and the like, are used for designating a name and not for indicating any particular order. Any reference signs in the claims shall not be construed as limiting the scope. The functions of the various elements presented in the claims may be implemented by means of a single hardware or software module. The presence of certain features in different dependent claims does not imply that these features cannot be combined to advantage.

Claims (15)

1. A near field communication, NFC, interaction method, applied to a user terminal, where the user terminal is equipped with a plurality of NFC analog cards, the method comprising:
acquiring a scene message broadcasted by a card swiping terminal;
Analyzing the scene message to obtain a target scene identifier of the scene where the card swiping terminal is located;
under the condition that an NFC radio frequency signal is detected, an NFC management application is called up, and a target NFC analog card matched with the target scene identification is selected from the NFC analog cards through the NFC management application;
determining the current NFC communication object of the user terminal as the target NFC analog card;
and performing near field communication interaction with the card swiping terminal through the target NFC analog card.
2. The method of claim 1, wherein prior to the acquiring the scene message broadcast by the swipe terminal, the method further comprises:
acquiring scene types associated with the NFC analog cards;
dividing NFC analog cards associated with the same scene type into the same scene group to obtain a plurality of scene groups;
and setting corresponding grouping identifiers for the plurality of scene groupings based on scene types associated with the NFC analog cards in the scene groupings.
3. The method of claim 2, wherein the selecting, by the NFC management application, a target NFC emulated card from the plurality of NFC emulated cards that matches the target scene identification comprises:
Screening target scene packets with packet identifications consistent with the target scene identifications from the plurality of scene packets through the NFC management application;
under the condition that a unique NFC analog card exists in the target scene group, determining that the unique NFC analog card is the target NFC analog card by the NFC management application;
and under the condition that the number of the NFC simulation cards in the target scene group is larger than 1, determining that the NFC simulation card with the highest priority in the target scene group is the target NFC simulation card through the NFC management application.
4. A method according to claim 3, wherein the priority is determined based on one or more of user settings, geographical location, user behavioural habit data.
5. The method of claim 2, wherein the plurality of NFC emulated cards includes a default NFC emulated card, wherein the invoking the NFC management application in the event of detecting the NFC radio frequency signal and selecting, by the NFC management application, a target NFC emulated card from the plurality of NFC emulated cards that matches the target scene identification includes:
under the condition that the NFC radio frequency signal is detected, NFC application interaction data sent by the card swiping terminal are received through an NFC controller, and the NFC management application is called up, wherein the NFC application interaction data are used for near field communication interaction between the user terminal and the card swiping terminal through an NFC analog card according to application specifications;
Forwarding the NFC application interaction data to the NFC management application through the NFC controller so that the NFC management application obtains a packet identifier of a default NFC analog card under the condition that the NFC application interaction data is received, and comparing the packet identifier of the default NFC analog card with the target scene identifier;
under the condition that the grouping identification is matched with the target scene identification, determining that the target NFC simulation card is the default NFC simulation card by the NFC management application, and directly forwarding the NFC application interaction data to a card application of the default NFC simulation card;
and under the condition that the group identification is not matched with the target scene identification, screening target scene groups with the group identification consistent with the target scene identification from the plurality of scene groups through the NFC management application, and directly forwarding the NFC application interaction data to a card application of a target NFC simulation card in the target scene groups.
6. The method of claim 2, wherein the plurality of NFC emulated cards includes a default NFC emulated card, wherein the invoking the NFC management application in the event of detecting the NFC radio frequency signal and selecting, by the NFC management application, a target NFC emulated card from the plurality of NFC emulated cards that matches the target scene identification includes:
Under the condition that the NFC radio frequency signal is detected, NFC application interaction data sent by the card swiping terminal are received through an NFC controller, and the NFC management application is called up, wherein the NFC application interaction data are used for near field communication interaction between the user terminal and the card swiping terminal through an NFC analog card according to application specifications;
forwarding the NFC application interaction data directly to a card application of the default NFC analog card through the NFC controller, and determining that the current NFC communication object of the user terminal is the default NFC analog card;
receiving a card swiping failure message sent by the card swiping terminal under the condition that the group identification of the default NFC analog card is not matched with the target scene identification;
and under the condition that the NFC radio frequency signal is detected again, screening target scene groups with group identifications consistent with the target scene identifications from the scene groups through the NFC management application, and forwarding the NFC application interaction data to card applications of target NFC simulation cards in the target scene groups through the NFC management application.
7. The method of claim 6, wherein the determining that the current NFC communication object of the user terminal is the target NFC emulated card comprises:
And switching the current NFC communication object of the user terminal from the default NFC analog card to the target NFC analog card.
8. The near field communication interaction method is characterized by being applied to a card swiping terminal, and comprises the following steps:
generating a scene message based on a target scene identifier of a scene where the card swiping terminal is located;
broadcasting the scene message in a preset broadcasting mode, wherein the scene message is used for indicating a user terminal to switch a current NFC communication object into a target NFC analog card matched with the target scene identifier;
and performing near field communication interaction with the target NFC analog card in the user terminal.
9. The method of claim 8, wherein generating the scene message based on the target scene identification of the scene in which the swipe terminal is located comprises:
the target scene identification is added in the payload of the scene message.
10. The method of claim 8, wherein broadcasting the scene message by a preset broadcasting method comprises:
broadcasting the scene message in the preset broadcasting mode under the condition of starting card reading operation;
the preset broadcasting mode comprises at least one of Bluetooth, wireless communication technology, wireless carrier communication technology and radio frequency identification technology.
11. A user terminal, wherein the user terminal is equipped with a plurality of NFC emulated cards, the terminal comprising:
the acquisition module is used for acquiring scene information broadcast by the card swiping terminal;
the analysis module is used for analyzing the scene message to obtain a target scene identifier of the scene where the card swiping terminal is located;
the selecting module is used for calling up an NFC management application under the condition that the NFC radio frequency signal is detected, and selecting a target NFC analog card matched with the target scene identifier from the NFC analog cards through the NFC management application;
the determining module is used for determining that the current NFC communication object of the user terminal is the target NFC analog card;
and the NFC module is used for performing near field communication interaction with the card swiping terminal through the target NFC analog card.
12. A card swiping terminal, comprising:
the generation module is used for generating a scene message based on a target scene identifier of a scene where the card swiping terminal is located;
the broadcasting module is used for broadcasting the scene message in a preset broadcasting mode, wherein the scene message is used for indicating the user terminal to switch the current NFC communication object into a target NFC analog card matched with the target scene identifier;
And the NFC module is used for performing near field communication interaction with the target NFC analog card in the user terminal.
13. An electronic device, the device comprising: a processor and a memory storing computer program instructions;
the near field communication interaction method of any one of claims 1 to 10 is implemented when the processor executes the computer program instructions.
14. A computer readable storage medium, characterized in that the computer readable storage medium stores thereon a program or instructions, which when executed by a processor, implements a near field communication interaction method according to any of claims 1 to 10.
15. A computer program product, characterized in that the computer program product is stored in a non-volatile storage medium, which computer program product, when being executed by at least one processor, implements the near field communication interaction method of any of claims 1 to 10.
CN202310955678.4A 2023-07-31 2023-07-31 Near field communication interaction method, user terminal, card swiping terminal, medium and product Pending CN116887236A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310955678.4A CN116887236A (en) 2023-07-31 2023-07-31 Near field communication interaction method, user terminal, card swiping terminal, medium and product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310955678.4A CN116887236A (en) 2023-07-31 2023-07-31 Near field communication interaction method, user terminal, card swiping terminal, medium and product

Publications (1)

Publication Number Publication Date
CN116887236A true CN116887236A (en) 2023-10-13

Family

ID=88262906

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310955678.4A Pending CN116887236A (en) 2023-07-31 2023-07-31 Near field communication interaction method, user terminal, card swiping terminal, medium and product

Country Status (1)

Country Link
CN (1) CN116887236A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117236350A (en) * 2023-11-13 2023-12-15 北京紫光青藤微系统有限公司 Method and device for displaying NFC analog card, electronic equipment and medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117236350A (en) * 2023-11-13 2023-12-15 北京紫光青藤微系统有限公司 Method and device for displaying NFC analog card, electronic equipment and medium

Similar Documents

Publication Publication Date Title
JP5668051B2 (en) Method for pre-selecting at least one application in a mobile communication device including an NFC system
EP2858044A1 (en) Contactless payment method, device and system
CN105763594B (en) Information pushing method and device
CN110175828B (en) User verification method and device based on bank card quick payment signing
CN111241856A (en) Method for selecting NFC analog card and watch
CN116887236A (en) Near field communication interaction method, user terminal, card swiping terminal, medium and product
US10009891B2 (en) Communication method, server and terminal
CN105574749A (en) Selection method, device and system for card applications in secure element SE
CN105405009A (en) Payment mode selection method and mobile terminal
US9697396B2 (en) Interactive processing method and device and electronic apparatus
CN108282471B (en) Electronic certificate transmission method, device and equipment
CN104113853A (en) Detection method for interface between mobile terminal and SIM card and detection device thereof
CN107466087B (en) Network searching method and mobile terminal
CN115378569B (en) Method, apparatus, electronic device and storage medium for adjusting phase
CN105635999A (en) Intelligent terminal and management method of multi-card data traffic
CN107846680B (en) User equipment for personalizing use of services and operation method thereof
CN112906411B (en) Service processing method, user terminal, service equipment, system and storage medium
CN112822666B (en) Communication method, communication device, electronic equipment and storage medium
CN106162524B (en) A kind of NFC operating method and device
CN108260120B (en) Mobile terminal, embedded SIM card and access method and device thereof
US20230196337A1 (en) Method, terminal device, server, system and storage medium for activating payment functions
CN105357272B (en) A kind of OTA upgrade method and equipment
CN108260119B (en) Mobile terminal, embedded SIM card and access method and device thereof
CN109327836A (en) A kind of network authentication authentication method, device, equipment and medium
CN111835913B (en) Equipment information collection method, intelligent terminal, server and system

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
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40100602

Country of ref document: HK