CN114946202A - NFC card simulation mode starting method and device, terminal and storage medium - Google Patents

NFC card simulation mode starting method and device, terminal and storage medium Download PDF

Info

Publication number
CN114946202A
CN114946202A CN202080088483.9A CN202080088483A CN114946202A CN 114946202 A CN114946202 A CN 114946202A CN 202080088483 A CN202080088483 A CN 202080088483A CN 114946202 A CN114946202 A CN 114946202A
Authority
CN
China
Prior art keywords
target
terminal
attitude
contact surface
nfc card
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.)
Granted
Application number
CN202080088483.9A
Other languages
Chinese (zh)
Other versions
CN114946202B (en
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.)
Shenzhen Hefei Technology Co ltd
Original Assignee
Shenzhen Huantai Digital Technology 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 Shenzhen Huantai Digital Technology Co ltd filed Critical Shenzhen Huantai Digital Technology Co ltd
Publication of CN114946202A publication Critical patent/CN114946202A/en
Application granted granted Critical
Publication of CN114946202B publication Critical patent/CN114946202B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/033Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
    • G06F3/0346Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor with detection of the device orientation or free movement in a 3D space, e.g. 3D mice, 6-DOF [six degrees of freedom] pointers using gyroscopes, accelerometers or tilt-sensors
    • 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
    • H04W4/08User group management
    • 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

Abstract

A starting method, a starting device, a terminal and a storage medium for an NFC card simulation mode relate to the technical field of terminals. The method is applied to the terminal with the NFC function, and comprises the following steps: acquiring an attitude (201) of the terminal; determining a target contact surface (202) in the terminal, which is in contact with the NFC card reader, according to the value range of the attitude; a target NFC card emulation mode corresponding to the target contact patch is initiated (203). The space azimuth angle of the terminal is obtained, the target contact surface in the terminal, which is in contact with the NFC card reader, is determined according to the space azimuth angle, the target NFC card simulation mode corresponding to the target contact surface is started, and the corresponding NFC card simulation mode can be automatically started according to the space azimuth angle of the terminal.

Description

NFC card simulation mode starting method and device, terminal and storage medium Technical Field
The present application relates to the field of terminal technologies, and in particular, to a method and an apparatus for starting an NFC card simulation mode, a terminal, and a storage medium.
Background
NFC (Near Field Communication) has three Communication modes: a card reader mode, a point-to-point mode, and a card emulation mode.
In the related art, the terminal with the NFC function may simulate to generate a contactless radio frequency card (smart card) conforming to the NFC-related standard so as to interact with the NFC card reader. The card simulation mode can be applied to non-contact scenes such as consumption, traffic, entrance guard and the like. However, if the terminal generates a plurality of smart cards (for example, a bus card, an access card, a bank card, or the like) in a simulation manner, the user needs to manually select the smart card corresponding to a different scene. For example, when a user takes a bus, the user needs to manually select a bus card on the terminal and then perform a related NFC card swiping behavior; when a user needs to pay by using a bank card, the user needs to manually select the bank card on the terminal and then perform related NFC card swiping behaviors.
However, the NFC card swiping process in the related art is complicated.
Disclosure of Invention
The embodiment of the application provides a starting method, a starting device, a terminal and a storage medium of an NFC card simulation mode, and an NFC card swiping process can be simple and convenient. The technical scheme is as follows:
in one aspect, an NFC card emulation mode starting method is provided, where the method is applied to a terminal with an NFC function for near field communication, and the method includes:
acquiring an attitude of the terminal, wherein the attitude is used for indicating the attitude of the terminal;
determining a target contact surface in the terminal, which is in contact with an NFC card reader, according to the value range of the attitude;
and starting a target NFC card simulation mode corresponding to the target contact surface.
In another aspect, an NFC card emulation mode activation apparatus is provided, which is applied to a terminal having an NFC function for near field communication, and includes:
the azimuth acquisition module is used for acquiring an attitude of the terminal, and the attitude is used for indicating the attitude of the terminal;
the contact surface determining module is used for determining a target contact surface which is in contact with an NFC card reader in the terminal according to the value range of the attitude angle;
and the mode starting module is used for starting a target NFC card simulation mode corresponding to the target contact surface.
In another aspect, a terminal is provided, the terminal comprising a processor and a memory, the memory storing a computer program, the computer program being loaded and executed by the processor to implement the NFC card emulation mode initiation method according to the above aspect.
In yet another aspect, a computer-readable storage medium is provided, in which a computer program is stored, which is loaded and executed by a processor to implement the NFC card emulation mode initiation method according to the above aspect.
The beneficial effects brought by the technical scheme provided by the embodiment of the application at least comprise:
by acquiring the attitude angle of the terminal, determining the target contact surface in the terminal, which is in contact with the NFC card reader, according to the attitude angle, and starting the target NFC card simulation mode corresponding to the target contact surface, the embodiment of the application can automatically start the corresponding NFC card simulation mode according to the attitude angle of the terminal, and compared with the prior art in which a user needs to manually switch the NFC card simulation mode, the NFC card swiping process is convenient, the NFC communication efficiency is improved, and the user experience is also improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic illustration of an implementation environment provided by an exemplary embodiment of the present application;
fig. 2 is a flowchart of an NFC card emulation mode initiation method according to an exemplary embodiment of the present application;
fig. 3 is a flowchart of an NFC card emulation mode initiation method according to another exemplary embodiment of the present application;
fig. 4 is a block diagram of an NFC card emulation mode initiation apparatus according to an exemplary embodiment of the present application;
fig. 5 is a block diagram of a terminal according to an exemplary embodiment of the present application.
Detailed Description
To make the objects, technical solutions and advantages of the present application more clear, the following detailed description of the embodiments of the present application will be made with reference to the accompanying drawings.
FIG. 1 is a schematic illustration of an implementation environment provided by an exemplary embodiment of the present application. The implementation environment includes a terminal 10 and an NFC reader 20.
In the embodiment of the present application, the terminal 10 has an NFC function. The terminal 10 may refer to a mobile phone, a tablet computer, a smart wearable device, or other electronic devices with NFC functionality, and the embodiment of the present application does not limit the type of the terminal 10. The terminal 10 may have a plurality of NFC card emulation modes, one for each contactless radio frequency card (smart card). Alternatively, the terminal 10 having the NFC function may provide a bank card payment function (which means that the payment function can be implemented without a bank card or a credit card), a simulated bus card, an entrance guard card function (which means that bus taking or door opening is disabled by swiping the terminal 10), a contact browsing function (which means that information browsing is implemented by bringing the terminal 10 close to a smart public telephone or a poster having the NFC function), an ETC (Electronic Toll Collection) card extension function (which means that when the ETC card expires, the terminal 10 can automatically extend), and a data transmission function with another terminal having the NFC function (which means that data transmission can be performed between two terminals having the NFC function).
Optionally, an NFC card swiping system is provided in the NFC reader 20, and the terminal 10 can be swiped. The NFC card swiping system may be a bus card swiping system, an attendance card swiping system, a payment card swiping system, or other card swiping systems, and the embodiments of the present application do not limit the functions that the terminal 10 with the NFC function may provide.
The present application will now be described by way of several examples.
Fig. 2 is a flowchart of an NFC card emulation mode initiation method according to an exemplary embodiment of the present application, where the method is applied to a terminal having an NFC function, and the method may include the following steps.
Step 201, acquiring an attitude of a terminal.
In the embodiment of the present application, the attitude is used to indicate the attitude of the terminal, for example, to indicate whether the terminal is in a vertical state or in an inclined state or in a landscape state.
Alternatively, the terminal may acquire the attitude in real time.
Optionally, the terminal may acquire the attitude of the terminal itself when detecting that there is an NFC radio frequency signal around the terminal. And a receiving antenna is arranged in the terminal so as to scan the NFC radio frequency signal. The terminal scans wireless signals of the surrounding environment, when the wireless signals are detected, the information such as the frequency of the wireless signals can be identified, whether the wireless signals are NFC radio-frequency signals or not is further determined, and when the wireless signals are determined to be the NFC radio-frequency signals by the terminal, the space azimuth angle of the terminal is acquired.
Step 202, determining a target contact surface in the terminal, which is in contact with the NFC card reader, according to the attitude.
The NFC reader is a special card reading device having a function of reading an NFC tag. In this embodiment of the present application, an NFC card reader refers to a device that performs data transmission with a terminal.
The target contact surface may be any surface in the terminal. For example, the target contact surface may be a front surface (i.e., a surface having a display screen) of the mobile phone, and of course, the target contact surface may also be a back surface (a surface opposite to the front surface) or other surfaces, which is not limited in this embodiment of the application.
And step 203, starting a target NFC card simulation mode corresponding to the target contact surface.
And when the terminal determines the target contact surface, correspondingly obtaining a target NFC card simulation mode corresponding to the target contact surface, so that the terminal starts the target NFC card simulation mode. Optionally, the NFC card simulation mode corresponding to the target contact surface may be set by default and stored in the terminal, or may be set by the user and stored in the terminal, which is not limited in this embodiment of the application.
The NFC card simulation mode corresponds to the smart card, and one smart card corresponds to one NFC card simulation mode. Illustratively, the target NFC card simulation mode is taken as an access card mode for example, and when the terminal starts the access card mode, the terminal is equivalent to an access card.
To sum up, in the technical scheme provided in this application embodiment, by obtaining the attitude of the terminal, and according to the attitude, determining the target contact surface in the terminal, which is in contact with the NFC card reader, and starting the target NFC card simulation mode corresponding to the target contact surface, the application embodiment can automatically start the corresponding NFC card simulation mode according to the attitude of the terminal, and compared with the related art in which a user manually switches the NFC card simulation mode, the NFC card swiping process is convenient, the efficiency of NFC communication is improved, and the user experience is also improved.
In addition, the whole interaction process does not need any operation of the user, and meanwhile, a user interface does not need to be presented to the user, so that the non-inductive payment is realized.
In an exemplary embodiment, as shown in fig. 3, a flowchart of an NFC card emulation mode initiation method provided in another exemplary embodiment of the present application is shown, where the method may include the following steps.
Step 301, acquiring an attitude of the terminal.
In the embodiment of the present application, the attitude is used to indicate the attitude of the terminal. The attitude comprises a value in a first direction, a value in a second direction and a value in a third direction. The first direction, the second direction and the third direction are mutually vertical in pairs, a plane formed by the positive direction of the first direction and the positive direction of the second direction is parallel to the front face, and the positive direction of the third direction is vertical to the front face and does not point to the back face. Alternatively, the first direction may refer to an x-axis, the second direction may refer to a y-axis, and the third direction may refer to a z-axis. At this time, the vertex at the upper left corner of the front face is taken as the origin of coordinates, the positive direction of the x axis is taken along the left frame of the front face, the positive direction of the y axis is taken along the upper frame of the front face, and the positive direction of the z axis is taken along the direction which is perpendicular to the front face and does not point to the back face. When the terminal is in different postures, the attitude angles of the terminal are different, that is, the values of the first direction, the second direction and the third direction are different. Optionally, the terminal may determine the attitude of the terminal based on data collected by the gyro sensor.
Step 302, determining a target contact surface according to the value range of the attitude.
The attitude angles of different value ranges correspond to different contact surfaces. Optionally, the value range includes a value range of the first direction, the second direction and the third direction.
Illustratively, the terminal includes a front side, a back side, and first, second, third, and fourth sides between the front side and the back side, the front side disposed opposite the back side, the first side disposed opposite the third side, and the second side disposed opposite the fourth side. Alternatively, the first side surface refers to a side surface provided with a charging port, and the second side surface refers to a side surface provided with a volume key.
Optionally, if the attitude belongs to a first value range, that is, values of the first direction, the second direction and the third direction belong to the first value range, determining that the target contact surface is a front surface; if the attitude belongs to a second value range, that is, the values of the first direction, the second direction and the third direction belong to the second value range, determining that the target contact surface is the back surface; if the attitude belongs to a third value range, namely the values of the first direction, the second direction and the third direction belong to the third value range, determining the target contact surface as a first side surface; if the attitude belongs to a fourth value range, namely the values of the first direction, the second direction and the third direction belong to the fourth value range, determining the target contact surface as a second side surface; if the attitude belongs to a fifth value range, namely the values of the first direction, the second direction and the third direction belong to the fifth value range, determining that the target contact surface is a third side surface; and if the attitude belongs to a sixth value range, that is, the values in the first direction, the second direction and the third direction belong to the sixth value range, determining that the target contact surface is a fourth side surface.
Optionally, if the attitude is a target attitude, that is, values of the first direction, the second direction and the third direction are target values, acquiring a moving direction of the terminal; and determining the target contact surface according to the moving direction of the terminal and the target space azimuth. When the space azimuth is the target space azimuth, the terminal is in a vertical or horizontal state, and the values of the first direction, the second direction and the third direction are 0, so that the target contact surface cannot be accurately determined. For example, when the spatial azimuth is vertical 90 degrees, the values of the second direction and the third direction are 0, the terminal cannot determine whether the target contact surface is the front surface or the back surface, the terminal needs to acquire the moving direction of the terminal at this time, and the moving direction of the terminal can be determined according to the acceleration value in the preset time before the current time point, for example, the terminal can determine the moving direction of the terminal according to the acceleration value of the previous 2 seconds, so that the target contact surface is determined according to the moving direction of the terminal.
In a possible implementation manner, the terminal may determine the target contact surface according to acceleration data acquired by the acceleration sensor. When the acceleration data in the gravity direction belongs to a seventh value range, determining that the target contact surface is a front surface; when the acceleration data in the gravity direction belongs to the eighth value range, determining that the target contact surface is a reverse surface; when the acceleration data in the gravity direction belongs to a ninth value range, determining that the target contact surface is a first side surface; when the acceleration data in the gravity direction belongs to the tenth value range, determining that the target contact surface is the second side surface; when the acceleration data in the gravity direction belong to an eleventh value range, determining that the target contact surface is a third side surface; and when the acceleration data in the gravity direction belongs to the twelfth value range, determining that the target contact surface is the fourth side surface. Alternatively, the acceleration sensor may be a three-axis acceleration sensor, and the three-axis acceleration sensor may acquire acceleration data in three directions of an x axis, a y axis, and a z axis. Optionally, the acceleration sensor may also be a gravity sensor, and the gravity sensor may collect acceleration data in a gravity direction.
Step 303, determining the NFC card simulation mode corresponding to the target contact surface as a target NFC card simulation mode according to the target correspondence.
In this embodiment of the application, the target correspondence includes a correspondence between at least one group of contact surfaces and the NFC card simulation mode. The target corresponding relation may be preset by the system, or may be set by the user himself. The target corresponding relation is set for a user, the terminal is a mobile phone for example, the user sets the target corresponding relation on a corresponding relation setting interface, the user sets an NFC card simulation mode corresponding to the front side as a first entrance guard card simulation mode, the NFC card simulation mode corresponding to the back side is set as a second entrance guard card simulation mode, the NFC card simulation mode corresponding to the first side is set as a first bank card simulation mode, the NFC card simulation mode corresponding to the second side is set as a second bank card simulation mode, the NFC card simulation mode corresponding to the third side is set as a public transportation card simulation mode, and the NFC card simulation mode corresponding to the fourth side is set as a third bank card.
Step 304, switching the card simulation mode corresponding to the NFC component in the terminal to the target NFC card simulation mode.
The NFC component refers to a component for emulating an NFC card emulation mode. The NFC component may be an NFC chip, or may be integrated on the NFC chip, which is not limited in this embodiment of the application.
Optionally, the user may mistake a correspondence between the contact surface and the NFC card simulation mode, so that the target contact surface is not the contact surface that the user wants, and therefore before the terminal starts the target NFC card simulation mode corresponding to the target contact surface, the terminal may first voice-broadcast the target NFC card simulation mode; and if a confirmation instruction of the target NFC card simulation mode is received within the preset time, executing the step of starting the target NFC card simulation mode corresponding to the target contact surface. And if a modification instruction of the target NFC card simulation mode is received within the preset time, modifying the target NFC card simulation mode, and starting the modified target NFC card simulation mode.
The user can change the contact surface by rotating the mobile phone so as to modify the target NFC card simulation mode, when the target contact surface is changed, the target NFC card simulation mode is correspondingly changed, and at the moment, the terminal can play the modified target NFC card simulation mode in a voice mode, so that the user can confirm whether the modified target NFC card simulation mode is the NFC card simulation mode which the user finally wants to use.
The preset time may be a default time of the system, or may be a time set by a user, which is not limited in the embodiment of the present application.
To sum up, in the technical scheme provided by the embodiment of the application, the terminal determines the target contact surface according to the value range of the attitude; when the space azimuth is the target space azimuth, the target contact surface is determined according to the moving direction of the terminal, and the determination of the target contact surface is accurate, so that the finally started target NFC card simulation mode is more accurate.
In addition, a target NFC card simulation mode is played in voice, when a confirmation instruction of the target NFC card simulation mode is received within preset time, the target NFC card simulation mode is started by a terminal, the target NFC card simulation mode is broadcasted firstly before the target NFC card simulation mode is started, so that a user can confirm the target NFC card simulation mode, if the target NFC card simulation mode is incorrect, the user can modify the target NFC card simulation mode, the NFC communication efficiency is improved, and the user experience is also improved.
The following are embodiments of the apparatus of the present application that may be used to perform embodiments of the method of the present application. For details which are not disclosed in the embodiments of the apparatus of the present application, reference is made to the embodiments of the method of the present application.
Referring to fig. 4, a block diagram of an NFC card emulation mode starting apparatus provided in an embodiment of the present application is shown, where the apparatus has a function of implementing the above method example, and the function may be implemented by hardware, and may also be implemented by hardware executing corresponding software. The apparatus 400 may include: an azimuth angle acquisition module 410, a contact surface determination module 420, and a mode activation module 430.
An azimuth obtaining module 410, configured to obtain an attitude of the terminal, where the attitude is used to indicate an attitude of the terminal.
And the contact surface determining module 420 is configured to determine, according to the value range of the attitude, a target contact surface in the terminal, where the target contact surface is in contact with an NFC card reader.
A mode starting module 430, configured to start a target NFC card simulation mode corresponding to the target contact surface.
To sum up, in the technical scheme provided in this application embodiment, by obtaining the attitude of the terminal, and according to the attitude, determining the target contact surface in the terminal, which is in contact with the NFC card reader, and starting the target NFC card simulation mode corresponding to the target contact surface, the application embodiment can automatically start the corresponding NFC card simulation mode according to the attitude of the terminal, and compared with the related art in which a user manually switches the NFC card simulation mode, the NFC card swiping process is convenient, the efficiency of NFC communication is improved, and the user experience is also improved.
Optionally, the terminal comprises a front side, a back side, and a first side, a second side, a third side, and a fourth side between the front side and the back side, the front side being disposed opposite the back side, the first side being disposed opposite the third side, and the second side being disposed opposite the fourth side; the attitude angle comprises a value in a first direction, a value in a second direction and a value in a third direction, the first direction, the second direction and the third direction are mutually perpendicular in pairs, a plane formed by the positive direction of the first direction and the positive direction of the second direction is parallel to the front face, and the positive direction of the third direction is perpendicular to the front face and does not point to the back face;
the contact surface determination module 420 is configured to:
if the attitude belongs to a first value range, determining the target contact surface as the front surface;
if the attitude angle belongs to a second value range, determining the target contact surface as the back surface;
if the attitude belongs to a third value range, determining the target contact surface as the first side surface;
if the attitude belongs to a fourth value range, determining the target contact surface as the second side surface;
if the attitude belongs to a fifth value range, determining that the target contact surface is the third side surface;
and if the attitude angle belongs to a sixth value range, determining that the target contact surface is the fourth side surface.
Optionally, the contact surface determining module 420 is configured to:
if the attitude is a target attitude, acquiring the moving direction of the terminal;
and determining the target contact surface according to the moving direction of the terminal and the target space azimuth.
Optionally, the mode starting module 430 is configured to:
determining an NFC card simulation mode corresponding to the target contact surface as the target NFC card simulation mode according to a target corresponding relation, wherein the target corresponding relation comprises a corresponding relation between at least one group of contact surfaces and the NFC card simulation mode;
and switching a card simulation mode corresponding to the NFC component in the terminal to the target NFC card simulation mode.
Optionally, the apparatus 400 further includes: and a mode broadcast module (not shown in the figure).
The mode broadcasting module is used for broadcasting the target NFC card simulation mode in a voice mode;
the mode starting module 430 is further configured to execute the step of starting the target NFC card simulation mode corresponding to the target contact surface if a confirmation instruction of the target NFC card simulation mode is received within a preset time.
Optionally, the mode starting module 430 is further configured to modify the target NFC card simulation mode and start the modified target NFC card simulation mode if a modification instruction for the target NFC card simulation mode is received within the preset time.
It should be noted that, when the apparatus provided in the foregoing embodiment implements the functions thereof, only the division of the functional modules is illustrated, and in practical applications, the functions may be distributed by different functional modules according to needs, that is, the internal structure of the apparatus may be divided into different functional modules to implement all or part of the functions described above. In addition, the apparatus and method embodiments provided by the above embodiments belong to the same concept, and specific implementation processes thereof are described in the method embodiments for details, which are not described herein again.
Referring to fig. 5, a block diagram of a terminal according to an embodiment of the present application is shown.
The terminal in the embodiment of the present application may include one or more of the following components: a processor 510 and a memory 520.
Processor 510 may include one or more processing cores. The processor 510 connects various parts within the overall terminal using various interfaces and lines, and performs various functions of the terminal and processes data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 520 and calling data stored in the memory 520. Alternatively, the processor 510 may be implemented in hardware using at least one of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). Processor 510 may integrate one or a combination of a Central Processing Unit (CPU) and a modem. Wherein, the CPU mainly processes an operating system, an application program and the like; the modem is used to handle wireless communications. It is understood that the modem may not be integrated into the processor 510, but may be implemented by a single chip.
Optionally, the processor 510, when executing the program instructions in the memory 520, implements the methods provided by the various method embodiments described above.
The Memory 520 may include a Random Access Memory (RAM) or a Read-Only Memory (ROM). Optionally, the memory 520 includes a non-transitory computer-readable medium. The memory 520 may be used to store instructions, programs, code sets, or instruction sets. The memory 520 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function, instructions for implementing the various method embodiments described above, and the like; the storage data area may store data created according to the use of the terminal, and the like.
The structure of the terminal described above is only illustrative, and in actual implementation, the terminal may include more or less components, such as: a display screen, etc., which are not limited in this embodiment.
Those skilled in the art will appreciate that the configuration shown in fig. 5 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components may be used.
In an exemplary embodiment, a computer-readable storage medium is further provided, in which a computer program is stored, and the computer program is loaded and executed by a processor of a computer device to implement the steps in the above-described NFC card emulation mode initiation method embodiment.
In an exemplary embodiment, a computer program product is also provided for implementing the NFC card emulation mode initiation method described above when executed.
The above description is only exemplary of the present application and should not be taken as limiting the present application, and any modifications, equivalents, improvements and the like that are made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (10)

  1. An NFC card simulation mode starting method is applied to a terminal with a Near Field Communication (NFC) function, and comprises the following steps:
    acquiring an attitude of the terminal, wherein the attitude is used for indicating the attitude of the terminal;
    determining a target contact surface in the terminal, which is in contact with an NFC card reader, according to the value range of the attitude;
    and starting a target NFC card simulation mode corresponding to the target contact surface.
  2. The method of claim 1, wherein the terminal comprises a front side, a back side, and first, second, third, and fourth sides between the front side and the back side, the front side being disposed opposite the back side, the first side being disposed opposite the third side, the second side being disposed opposite the fourth side; the attitude comprises a value in a first direction, a value in a second direction and a value in a third direction, wherein the first direction, the second direction and the third direction are mutually perpendicular in pairs, a plane formed by the positive direction of the first direction and the positive direction of the second direction is parallel to the front face, and the positive direction of the third direction is perpendicular to the front face and does not point to the back face;
    determining the target contact surface according to the value range of the attitude angle, including:
    if the attitude belongs to a first value range, determining the target contact surface as the front surface;
    if the attitude belongs to a second value range, determining the target contact surface as the back surface;
    if the attitude belongs to a third value range, determining the target contact surface as the first side surface;
    if the attitude belongs to a fourth value range, determining the target contact surface as the second side surface;
    if the attitude belongs to a fifth value range, determining that the target contact surface is the third side surface;
    and if the attitude belongs to a sixth value range, determining that the target contact surface is the fourth side surface.
  3. The method of claim 2, wherein determining the target contact patch based on the range of attitude values comprises:
    if the attitude is a target attitude, acquiring the moving direction of the terminal;
    and determining the target contact surface according to the moving direction of the terminal and the target space azimuth.
  4. The method of any of claims 1 to 3, wherein the initiating a target NFC card emulation mode corresponding to the target contact patch comprises:
    determining an NFC card simulation mode corresponding to the target contact surface as the target NFC card simulation mode according to a target corresponding relation, wherein the target corresponding relation comprises a corresponding relation between at least one group of contact surfaces and the NFC card simulation mode;
    and switching a card simulation mode corresponding to the NFC component in the terminal to the target NFC card simulation mode.
  5. The method according to any one of claims 1 to 3, wherein before the initiating the target NFC card emulation mode corresponding to the target contact patch, the method further comprises:
    broadcasting the target NFC card simulation mode in a voice mode;
    and if a confirmation instruction of the target NFC card simulation mode is received within preset time, executing the step of starting the target NFC card simulation mode corresponding to the target contact surface.
  6. The method of claim 5, wherein after the voice playing the target NFC card emulation mode, further comprising:
    and if a modification instruction of the target NFC card simulation mode is received within the preset time, modifying the target NFC card simulation mode, and starting the modified target NFC card simulation mode.
  7. An NFC card analog mode starting device is applied to a terminal with a Near Field Communication (NFC) function, and comprises the following components:
    the azimuth acquisition module is used for acquiring an attitude of the terminal, and the attitude is used for indicating the attitude of the terminal;
    the contact surface determining module is used for determining a target contact surface which is in contact with an NFC card reader in the terminal according to the value range of the attitude angle;
    and the mode starting module is used for starting a target NFC card simulation mode corresponding to the target contact surface.
  8. The apparatus of claim 7, wherein the terminal comprises a front face, a back face, and first, second, third, and fourth sides disposed between the front face and the back face, the front face disposed opposite the back face, the first side disposed opposite the third side, and the second side disposed opposite the fourth side; the attitude comprises a value in a first direction, a value in a second direction and a value in a third direction, wherein the first direction, the second direction and the third direction are mutually perpendicular in pairs, a plane formed by the positive direction of the first direction and the positive direction of the second direction is parallel to the front face, and the positive direction of the third direction is perpendicular to the front face and does not point to the back face;
    the azimuth angle acquisition module is configured to:
    if the attitude belongs to a first value range, determining the target contact surface as the front surface;
    if the attitude belongs to a second value range, determining the target contact surface as the back surface;
    if the attitude belongs to a third value range, determining the target contact surface as the first side surface;
    if the attitude angle belongs to a fourth value range, determining the target contact surface as the second side surface;
    if the attitude belongs to a fifth value range, determining that the target contact surface is the third side surface;
    and if the attitude belongs to a sixth value range, determining that the target contact surface is the fourth side surface.
  9. A terminal characterized in that it comprises a processor and a memory, said memory storing a computer program that is loaded and executed by said processor to implement the NFC-card emulation mode initiation method according to any of claims 1 to 6.
  10. A computer-readable storage medium, in which a computer program is stored, which is loaded and executed by a processor to implement the NFC-card emulation mode initiation method according to any one of claims 1 to 6.
CN202080088483.9A 2020-02-14 2020-02-14 NFC card simulation mode starting method, NFC card simulation mode starting device, terminal and storage medium Active CN114946202B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2020/075225 WO2021159450A1 (en) 2020-02-14 2020-02-14 Nfc card simulation mode starting method and apparatus, and terminal and storage medium

Publications (2)

Publication Number Publication Date
CN114946202A true CN114946202A (en) 2022-08-26
CN114946202B CN114946202B (en) 2024-02-27

Family

ID=77291951

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202080088483.9A Active CN114946202B (en) 2020-02-14 2020-02-14 NFC card simulation mode starting method, NFC card simulation mode starting device, terminal and storage medium

Country Status (2)

Country Link
CN (1) CN114946202B (en)
WO (1) WO2021159450A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116193387A (en) * 2023-02-27 2023-05-30 小米汽车科技有限公司 Processing method and device of vehicle-mounted unit data, storage medium and electronic equipment

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101479689A (en) * 2006-06-23 2009-07-08 Nxp股份有限公司 NFC enabled pointing with a mobile device
US20120260311A1 (en) * 2011-04-06 2012-10-11 Kt Corporation Method, mobile terminal and system for providing different authentication values according to contact method of mobile terminal
CN105491243A (en) * 2016-01-18 2016-04-13 努比亚技术有限公司 NFC mobile terminal and NFC simulation card switching control method
CN106231090A (en) * 2016-07-28 2016-12-14 宇龙计算机通信科技(深圳)有限公司 The analog card changing method of a kind of NFC mobile terminal and device
WO2017131261A1 (en) * 2016-01-29 2017-08-03 엘지전자 주식회사 Mobile device and control method therefor
CN107949817A (en) * 2015-09-01 2018-04-20 Lg 电子株式会社 The method of mobile device, Wearable device and each device of control
CN108804966A (en) * 2018-08-20 2018-11-13 上海励识电子科技有限公司 NFC components and NFC system
CN109416603A (en) * 2016-06-27 2019-03-01 夏普株式会社 Information processing unit, display device, the control method of information processing unit and message handling program
CN110020569A (en) * 2019-03-11 2019-07-16 华为技术有限公司 Automatically select method, electronic equipment and the communication system of NFC analog card
CN110035180A (en) * 2019-04-11 2019-07-19 Oppo广东移动通信有限公司 Card display methods, device, terminal and storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6029613B2 (en) * 2014-04-22 2016-11-24 ソフトバンク株式会社 Communication terminal device and settlement system
CN107025002B (en) * 2017-01-22 2020-06-02 Oppo广东移动通信有限公司 Terminal application control method and device and terminal
CN107169525B (en) * 2017-06-01 2020-05-19 腾云天宇科技(北京)有限公司 Method and device for determining application scene of mobile terminal and mobile terminal
CN109255269A (en) * 2017-07-12 2019-01-22 深圳如探索科技有限公司 Apparatus control method, device and equipment
CN108664198A (en) * 2018-04-25 2018-10-16 北京小米移动软件有限公司 Virtual card Activiation method, device and terminal device

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101479689A (en) * 2006-06-23 2009-07-08 Nxp股份有限公司 NFC enabled pointing with a mobile device
US20120260311A1 (en) * 2011-04-06 2012-10-11 Kt Corporation Method, mobile terminal and system for providing different authentication values according to contact method of mobile terminal
CN107949817A (en) * 2015-09-01 2018-04-20 Lg 电子株式会社 The method of mobile device, Wearable device and each device of control
CN105491243A (en) * 2016-01-18 2016-04-13 努比亚技术有限公司 NFC mobile terminal and NFC simulation card switching control method
WO2017131261A1 (en) * 2016-01-29 2017-08-03 엘지전자 주식회사 Mobile device and control method therefor
CN109416603A (en) * 2016-06-27 2019-03-01 夏普株式会社 Information processing unit, display device, the control method of information processing unit and message handling program
CN106231090A (en) * 2016-07-28 2016-12-14 宇龙计算机通信科技(深圳)有限公司 The analog card changing method of a kind of NFC mobile terminal and device
CN108804966A (en) * 2018-08-20 2018-11-13 上海励识电子科技有限公司 NFC components and NFC system
CN110020569A (en) * 2019-03-11 2019-07-16 华为技术有限公司 Automatically select method, electronic equipment and the communication system of NFC analog card
CN110035180A (en) * 2019-04-11 2019-07-19 Oppo广东移动通信有限公司 Card display methods, device, terminal and storage medium

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
乔光磊: "《银川市智慧公交NFC手机支付系统的设计及实现》", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *
徐浩: "《面向NFC移动支付的安全技术研究》", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *
王阳阳: "《基于NFC的手机支付平台的设计与实现》", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116193387A (en) * 2023-02-27 2023-05-30 小米汽车科技有限公司 Processing method and device of vehicle-mounted unit data, storage medium and electronic equipment

Also Published As

Publication number Publication date
WO2021159450A1 (en) 2021-08-19
CN114946202B (en) 2024-02-27

Similar Documents

Publication Publication Date Title
EP2824536B1 (en) Electronic device and method of controlling the same
CN111543041B (en) Selection method of analog card and mobile device
CN111432339A (en) Near field communication card switching method and device, storage medium and electronic equipment
CN105100603B (en) A kind of triggering camera arrangement and its method that intelligent terminal is embedded
EP2858344A1 (en) Mobile terminal and control method thereof
EP4049428B1 (en) Dynamically changing a fiducial marker for iot device identification
CN111464692A (en) Near field communication card determination method and device, storage medium and electronic equipment
CN110991457B (en) Two-dimensional code processing method and device, electronic equipment and storage medium
CN110795019B (en) Key recognition method and device for soft keyboard and storage medium
CN102902943A (en) Two-dimension code scanning method, processing device and terminal
CN109451130B (en) Mobile terminal testing method and device, mobile terminal and storage medium
KR20180095196A (en) Mobile terminal and method for controlling the same
US20220163650A1 (en) Electronic device for identifying attribute of object by using millimeter wave and control method therefor
CN107534841A (en) A kind of method and apparatus of output notice
CN115544186A (en) Map display method and device and terminal equipment
CN107402787B (en) Iris recognition mode starting method and related product
CN110738185B (en) Form object identification method, form object identification device and storage medium
US11238563B2 (en) Noise processing method and apparatus
CN114946202B (en) NFC card simulation mode starting method, NFC card simulation mode starting device, terminal and storage medium
CN111127541A (en) Vehicle size determination method and device and storage medium
CN110737692A (en) data retrieval method, index database establishment method and device
CN114724312B (en) Cabinet opening method, device and equipment of storage cabinet and computer readable storage medium
CN114724311B (en) Cabinet opening method, device and equipment for storage cabinet and computer readable storage medium
CN114554393A (en) Positioning method, positioning device, terminal, storage medium and program product
CN113361386B (en) Virtual scene processing method, device, equipment and storage medium

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
TA01 Transfer of patent application right

Effective date of registration: 20230613

Address after: 1301, Office Building T2, Qianhai China Resources Financial Center, No. 55 Guiwan Fourth Road, Nanshan Street, Qianhai Shenzhen-Hong Kong Cooperation Zone, Shenzhen, Guangdong Province, 518052

Applicant after: Shenzhen Hefei Technology Co.,Ltd.

Address before: 518052 2501, office building T2, Qianhai China Resources Financial Center, 55 guiwan 4th Road, Nanshan street, Qianhai Shenzhen Hong Kong cooperation zone, Shenzhen City, Guangdong Province

Applicant before: Shenzhen Huantai Digital Technology Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant