CN106682897B - Device and method for determining NFC payment - Google Patents

Device and method for determining NFC payment Download PDF

Info

Publication number
CN106682897B
CN106682897B CN201611226455.0A CN201611226455A CN106682897B CN 106682897 B CN106682897 B CN 106682897B CN 201611226455 A CN201611226455 A CN 201611226455A CN 106682897 B CN106682897 B CN 106682897B
Authority
CN
China
Prior art keywords
preset
equal
distance
change value
duration
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201611226455.0A
Other languages
Chinese (zh)
Other versions
CN106682897A (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.)
Nubia Technology Co Ltd
Original Assignee
Nubia 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 Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201611226455.0A priority Critical patent/CN106682897B/en
Publication of CN106682897A publication Critical patent/CN106682897A/en
Application granted granted Critical
Publication of CN106682897B publication Critical patent/CN106682897B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/30Payment architectures, schemes or protocols characterised by the use of specific devices or networks
    • G06Q20/32Payment architectures, schemes or protocols characterised by the use of specific devices or networks using wireless devices
    • G06Q20/327Short range or proximity payments by means of M-devices
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/30Payment architectures, schemes or protocols characterised by the use of specific devices or networks
    • G06Q20/32Payment architectures, schemes or protocols characterised by the use of specific devices or networks using wireless devices
    • G06Q20/327Short range or proximity payments by means of M-devices
    • G06Q20/3278RFID or NFC payments by means of M-devices

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Accounting & Taxation (AREA)
  • Strategic Management (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a device for determining NFC payment, which comprises: the acquisition module is used for acquiring the distance between the NFC payment equipment and the NFC payment equipment to obtain a first distance; the calculation module is used for calculating the time length for reducing the first distance from a first threshold value of the preset distance to a second threshold value of the preset distance when the first distance is equal to the preset distance and the first distance is reduced, calculating the average speed for reducing the first distance from the first threshold value of the preset distance to the second threshold value of the preset distance, and calculating the acceleration change value for reducing the first distance from the first threshold value of the preset distance to the second threshold value of the preset distance; and the determining module is used for determining whether to execute the NFC payment operation according to at least any one of the relationship between the duration and the preset duration, the relationship between the average speed and the preset speed, and the relationship between the acceleration change value and the preset change value. The invention also discloses a method for determining NFC payment. The possibility of mistaken brushing of the NFC function of the mobile terminal is reduced.

Description

Device and method for determining NFC payment
Technical Field
The invention relates to the technical Field of Near Field Communication (NFC) of a mobile terminal, in particular to a device and a method for determining NFC payment.
Background
At present, more and more mobile terminals have the NFC function, and more users can use the NFC function of the mobile terminals to pay by swiping cards.
The user can have the risk of mistake card swiping when using mobile terminal to carry out the NFC payment, for example under some unexpected circumstances, if the user drops mobile terminal carelessly when drawing out mobile terminal, mobile terminal falls and realizes the mistake card swiping near NFC equipment, has influenced user's property safety.
Disclosure of Invention
In view of this, embodiments of the present invention are expected to provide an apparatus and a method for determining NFC payment, so as to reduce the possibility of mistaken flushing of the NFC function of a mobile terminal and improve the security of the NFC payment of the mobile terminal.
In order to achieve the purpose, the technical scheme of the invention is realized as follows:
an apparatus to determine a near field communication, NFC, payment, the apparatus comprising:
the acquisition module is used for acquiring the distance between the NFC payment equipment and the NFC payment equipment to obtain a first distance;
the calculating module is used for calculating the time length for reducing the first distance from a first threshold value of the preset distance to a second threshold value of the preset distance when the first distance is equal to the preset distance and the first distance is reduced, calculating the average speed for reducing the first distance from the first threshold value of the preset distance to the second threshold value of the preset distance, and calculating the acceleration change value for reducing the first distance from the first threshold value of the preset distance to the second threshold value of the preset distance;
and the determining module is used for determining whether to execute the NFC payment operation according to at least any one of the relationship between the duration and the preset duration, the relationship between the average speed and the preset speed and the relationship between the acceleration change value and the preset change value.
Optionally, the apparatus further comprises:
and the judging module is used for judging whether the first distance is smaller than or equal to a preset distance or not and whether the first distance is reduced or not.
Optionally, the determining module is specifically configured to determine whether the duration is greater than or equal to a preset duration, and if the duration is greater than or equal to the preset duration, determine to execute an NFC payment operation; if the duration is not more than the preset duration, determining not to execute the NFC payment operation;
or the determining module is specifically configured to determine whether the average speed is less than or equal to a preset speed, and if the average speed is less than or equal to the preset speed, determine to execute an NFC payment operation; if the average speed is not less than or equal to a preset speed, determining not to execute NFC payment operation;
or the determining module is specifically configured to determine whether the acceleration change value is less than or equal to a preset change value, and if the acceleration change value is less than or equal to the preset change value, determine to execute an NFC payment operation; and if the acceleration change value is not less than or equal to a preset change value, determining not to execute the NFC payment operation.
Optionally, the determining module is further specifically configured to determine whether the duration is greater than or equal to a preset duration and the average speed is less than or equal to a preset speed, and if a first condition formed by two conditions that the duration is greater than or equal to the preset duration and the average speed is less than or equal to the preset speed is simultaneously met, determine to execute the NFC payment operation; if the first condition is not met, determining not to execute NFC payment operation;
or the determining module is further specifically configured to determine whether the duration is greater than or equal to a preset duration and the acceleration change value is less than or equal to a preset change value, and if a second condition formed by two conditions of the duration being greater than or equal to the preset duration and the acceleration change value being less than or equal to the preset change value is simultaneously met, determine to execute the NFC payment operation; if the second condition is not met, determining not to execute NFC payment operation;
or, the determining module is further specifically configured to determine whether the average speed is less than or equal to a preset speed and the acceleration change value is less than or equal to a preset change value, and if a third condition formed by two conditions, that is, the average speed is less than or equal to the preset speed and the acceleration change value is less than or equal to the preset change value, determine to execute the NFC payment operation; and if the third condition is not met, determining not to execute the NFC payment operation.
Optionally, the determining module is further specifically configured to determine whether the duration is greater than or equal to a preset duration, whether the average speed is less than or equal to a preset speed, and whether the acceleration change value is less than or equal to a preset change value, and if three conditions that the duration is greater than or equal to the preset duration, the average speed is less than or equal to the preset speed, and the acceleration change value is less than or equal to the preset change value are simultaneously met, determine to execute the NFC payment operation; and if the three conditions are not met at the same time, determining not to execute the NFC payment operation.
A method of determining a near field communication, NFC, payment, the method comprising:
obtaining a distance between the NFC payment equipment and the NFC payment equipment to obtain a first distance;
when the first distance is equal to a preset distance and the first distance is reduced, calculating the time length for reducing the first distance from a first threshold value of the preset distance to a second threshold value of the preset distance, calculating the average speed for reducing the first distance from the first threshold value of the preset distance to the second threshold value of the preset distance, and calculating the acceleration change value for reducing the first distance from the first threshold value of the preset distance to the second threshold value of the preset distance;
and determining whether to execute the NFC payment operation according to at least any one of the relation between the time length and the preset time length, the relation between the average speed and the preset speed and the relation between the acceleration change value and the preset change value.
Optionally, after obtaining the distance to the NFC payment device in real time to obtain the first distance, the method further includes:
and judging whether the first distance is smaller than or equal to a preset distance or not and whether the first distance is reduced or not.
Optionally, the determining whether to execute the NFC payment operation according to the relationship between the duration and the preset duration includes:
judging whether the duration is greater than or equal to a preset duration, and if the duration is greater than or equal to the preset duration, determining to execute NFC payment operation; if the duration is not more than the preset duration, determining not to execute the NFC payment operation;
the determining whether to execute the NFC payment operation according to the relation between the average speed and the preset speed comprises the following steps:
judging whether the average speed is less than or equal to a preset speed, and if the average speed is less than or equal to the preset speed, determining to execute NFC payment operation; if the average speed is not less than or equal to a preset speed, determining not to execute NFC payment operation;
the determining whether to execute the NFC payment operation according to the relationship between the acceleration change value and the preset change value includes:
judging whether the acceleration change value is smaller than or equal to a preset change value, and if the acceleration change value is smaller than or equal to the preset change value, determining to execute NFC payment operation; and if the acceleration change value is not less than or equal to a preset change value, determining not to execute the NFC payment operation.
Optionally, the determining whether to execute the NFC payment operation according to the relationship between the duration and the preset duration and the relationship between the average speed and the preset speed includes:
judging whether the duration is greater than or equal to a preset duration and the average speed is less than or equal to a preset speed, and if a first condition formed by the two conditions that the duration is greater than or equal to the preset duration and the average speed is less than or equal to the preset speed is met, determining to execute NFC payment operation;
if the first condition is not met, determining not to execute NFC payment operation;
determining whether to execute the NFC payment operation according to the relationship between the duration and the preset duration and the relationship between the acceleration change value and the preset change value, wherein the determining comprises the following steps:
judging whether the duration is greater than or equal to a preset duration and the acceleration change value is less than or equal to a preset change value, and if a second condition formed by the two conditions that the duration is greater than or equal to the preset duration and the acceleration change value is less than or equal to the preset change value is met, determining to execute NFC payment operation;
if the second condition is not met, determining not to execute NFC payment operation;
the determining whether to execute the NFC payment operation according to the relationship between the average speed and the preset speed and the relationship between the acceleration change value and the preset change value includes:
judging whether the average speed is less than or equal to a preset speed and the acceleration change value is less than or equal to a preset change value, and if a third condition formed by two conditions of the average speed being less than or equal to the preset speed and the acceleration change value being less than or equal to the preset change value is met, determining to execute the NFC payment operation;
and if the third condition is not met, determining not to execute the NFC payment operation.
Optionally, the determining whether to execute the NFC payment operation according to the relationship between the duration and the preset duration, the relationship between the average speed and the preset speed, and the relationship between the acceleration change value and the preset change value includes:
judging whether the duration is greater than or equal to a preset duration, whether the average speed is less than or equal to a preset speed, and whether the acceleration change value is less than or equal to a preset change value, and if the three conditions that the duration is greater than or equal to the preset duration, the average speed is less than or equal to the preset speed, and the acceleration change value is less than or equal to the preset change value are simultaneously met, determining to execute NFC payment operation;
and if the three conditions are not met at the same time, determining not to execute the NFC payment operation. According to the device and the method for determining the NFC payment, provided by the embodiment of the invention, the first distance is obtained by obtaining the distance between the device and the NFC payment equipment; when the first distance is equal to a preset distance and the first distance is reduced, calculating the time length for reducing the first distance from a first threshold value of the preset distance to a second threshold value of the preset distance, calculating the average speed for reducing the first distance from the first threshold value of the preset distance to the second threshold value of the preset distance, and calculating the acceleration change value for reducing the first distance from the first threshold value of the preset distance to the second threshold value of the preset distance; determining whether to execute NFC payment operation according to at least any one of the relation between the duration and preset duration, the relation between the average speed and preset speed and the relation between the acceleration change value and a preset change value; the result of determining whether to execute the NFC payment operation is obtained by judging at least one of the three parameters or any combination of the three parameters, so that the possibility of mistaken brushing of the NFC function of the mobile terminal is reduced, and the safety of the NFC payment of the mobile terminal is improved.
Drawings
Fig. 1 is a schematic hardware configuration diagram of an alternative mobile terminal implementing various embodiments of the present invention;
fig. 2 is a schematic structural diagram of a communication system in which a mobile terminal according to an embodiment of the present invention can operate;
FIG. 3 is a flowchart of a first embodiment of a method for determining NFC payment according to the present invention;
fig. 4 is a flowchart of a second embodiment of the method for determining NFC payment according to the present invention;
fig. 5 is a schematic structural diagram of an embodiment of the apparatus for determining NFC payment according to the present invention.
Detailed Description
The technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention.
A mobile terminal implementing various embodiments of the present invention will now be described with reference to fig. 1. In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for facilitating the explanation of the present invention, and have no specific meaning in themselves. Thus, "module" and "component" may be used in a mixture.
The mobile terminal may be implemented in various forms. For example, the terminal described in the present invention may include a mobile terminal such as a mobile phone, a smart phone, a notebook computer, a digital broadcast receiver, a Personal Digital Assistant (PDA), a tablet computer (PAD), a Portable Multimedia Player (PMP), a navigation device, etc., and a stationary terminal such as a digital TV, a desktop computer, etc. In the following, it is assumed that the terminal is a mobile terminal. However, it will be understood by those skilled in the art that the configuration according to the embodiment of the present invention can be applied to a fixed type terminal in addition to elements particularly used for moving purposes.
Fig. 1 is a schematic hardware configuration of a mobile terminal implementing various embodiments of the present invention.
The mobile terminal 100 may include an audio/video (a/V) input unit 120, a user input unit 130, a sensing unit 140, an output unit 150, a memory 160, an interface unit 170, a controller 180, and a power supply unit 190, and the like. Fig. 1 illustrates a mobile terminal having various components, but it is to be understood that not all illustrated components are required to be implemented, and that more or fewer components may instead be implemented, the elements of the mobile terminal being described in detail below.
The a/V input unit 120 is used to receive an audio or video signal. The a/V input unit 120 may include a camera 121 and a microphone 122, and the camera 121 processes image data of still pictures or video obtained by an image capturing apparatus in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 151. The image frames processed by the cameras 121 may be stored in the memory 160 (or other storage medium) or transmitted via the wireless communication unit 110, and two or more cameras 121 may be provided according to the construction of the mobile terminal. The microphone 122 may receive sounds (audio data) via the microphone 122 in a phone call mode, a recording mode, a voice recognition mode, or the like, and is capable of processing such sounds into audio data. The microphone 122 may implement various types of noise cancellation (or suppression) algorithms to cancel (or suppress) noise or interference generated in the course of receiving and transmitting audio signals.
The user input unit 130 may generate key input data according to a command input by a user to control various operations of the mobile terminal. The user input unit 130 allows a user to input various types of information, and may include a keyboard, dome sheet, touch pad (e.g., a touch-sensitive member that detects changes in resistance, pressure, capacitance, and the like due to being touched), scroll wheel, joystick, and the like. In particular, when the touch pad is superimposed on the display unit 151 in the form of a layer, a touch screen may be formed.
The sensing unit 140 detects a current photographing state of the mobile terminal 100 (e.g., an open or closed photographing state of the mobile terminal 100), a position of the mobile terminal 100, presence or absence of contact (i.e., touch input) by a user with respect to the mobile terminal 100, an orientation of the mobile terminal 100, acceleration or deceleration movement and direction of the mobile terminal 100, and the like, and generates a command or signal for controlling an operation of the mobile terminal 100. For example, when the mobile terminal 100 is implemented as a slide-type mobile phone, the sensing unit 140 may sense whether the slide-type phone is opened or closed. In addition, the sensing unit 140 can detect whether the power supply unit 190 supplies power or whether the interface unit 170 is coupled with an external device. The sensing unit 140 may include a proximity sensor 141 as will be described below in connection with a touch screen.
The interface unit 170 serves as an interface through which at least one external device is connected to the mobile terminal 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The identification module may store various information for authenticating a user using the mobile terminal 100 and may include a User Identity Module (UIM), a Subscriber Identity Module (SIM), a Universal Subscriber Identity Module (USIM), and the like. In addition, a device having an identification module (hereinafter, referred to as an "identification device") may take the form of a smart card, and thus, the identification device may be connected with the mobile terminal 100 via a port or other connection means. The interface unit 170 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the mobile terminal 100 or may be used to transmit data between the mobile terminal and the external device.
In addition, when the mobile terminal 100 is connected with an external cradle, the interface unit 170 may serve as a path through which power is supplied from the cradle to the mobile terminal 100 or may serve as a path through which various command signals input from the cradle are transmitted to the mobile terminal. Various command signals or power input from the cradle may be used as signals for recognizing whether the mobile terminal is accurately mounted on the cradle. The output unit 150 is configured to provide output signals (e.g., audio signals, video signals, alarm signals, vibration signals, etc.) in a visual, audio, and/or tactile manner. The output unit 150 may include a display unit 151, an audio output module 152, an alarm unit 153, and the like.
The display unit 151 may display information processed in the mobile terminal 100. For example, when the mobile terminal 100 is in a phone call mode, the display unit 151 may display a User Interface (UI) or a Graphical User Interface (GUI) related to a call or other communication (e.g., text messaging, multimedia file downloading, etc.). When the mobile terminal 100 is in a video call mode or an image capturing mode, the display unit 151 may display a captured image and/or a received image, a UI or GUI showing a video or an image and related functions, and the like.
Meanwhile, when the display unit 151 and the touch pad are overlapped with each other in the form of a layer to form a touch screen, the display unit 151 may serve as an input device and an output device. The display unit 151 may include at least one of a Liquid Crystal Display (LCD), a thin film transistor LCD (TFT-LCD), an Organic Light Emitting Diode (OLED) display, a flexible display, a three-dimensional (3D) display, and the like. Some of these displays may be configured to be transparent to allow a user to view from the outside, which may be referred to as transparent displays, and a typical transparent display may be, for example, a TOLED (transparent organic light emitting diode) display or the like. Depending on the particular desired implementation, the mobile terminal 100 may include two or more display units (or other display devices), for example, the mobile terminal may include an external display unit (not shown) and an internal display unit (not shown). The touch screen may be used to detect a touch input pressure as well as a touch input position and a touch input area.
The audio output module 152 may convert audio data stored in the memory 160 into an audio signal and output as sound when the mobile terminal is in a call signal reception mode, a call mode, a recording mode, a voice recognition mode, a broadcast reception mode, or the like. Also, the audio output module 152 may provide audio output related to a specific function performed by the mobile terminal 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output module 152 may include a speaker, a buzzer, and the like.
The alarm unit 153 may provide an output to notify the mobile terminal 100 of the occurrence of an event. Typical events may include call reception, message reception, key signal input, touch input, and the like. In addition to audio or video output, the alarm unit 153 may provide output in different ways to notify the occurrence of an event. For example, the alarm unit 153 may provide an output in the form of vibration, and when a call, a message, or some other Incoming Communication (Incoming Communication) is received, the alarm unit 153 may provide a tactile output (e.g., vibration) to inform the user thereof. By providing such a tactile output, the user can recognize the occurrence of various events even when the user's mobile phone is in the user's pocket. The alarm unit 153 may also provide an output notifying the occurrence of an event via the display unit 151 or the audio output module 152.
The memory 160 may store software programs or the like for processing and controlling operations performed by the controller 180, or may temporarily store data (e.g., a phonebook, messages, still images, videos, etc.) that has been output or is to be output. Also, the memory 160 may store data regarding various ways of vibration and audio signals output when a touch is applied to the touch screen.
The memory 160 may include at least one type of storage medium including a flash memory, a hard disk, a multimedia card, a card-type memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), a programmable read-only memory (PROM), a magnetic memory, a magnetic disk, an optical disk, and the like. Also, the mobile terminal 100 may cooperate with a network storage device that performs a storage function of the memory 160 through a network connection.
The controller 180 generally controls the overall operation of the mobile terminal. For example, the controller 180 performs control and processing related to voice calls, data communications, video calls, and the like. In addition, the controller 180 may include a multimedia module 181 for reproducing (or playing back) multimedia data, and the multimedia module 181 may be constructed within the controller 180 or may be constructed separately from the controller 180. The controller 180 may perform a pattern recognition process to recognize a handwriting input or a picture drawing input performed on the touch screen as a character or an image.
The power supply unit 190 receives external power or internal power and provides appropriate power required to operate various elements and components under the control of the controller 180.
The various embodiments described herein may be implemented in a computer-readable medium using, for example, computer software, hardware, or any combination thereof. For a hardware implementation, the embodiments described herein may be implemented using at least one of an Application Specific Integrated Circuit (ASIC), a Digital Signal Processor (DSP), a Digital Signal Processing Device (DSPD), a Programmable Logic Device (PLD), a Field Programmable Gate Array (FPGA), a processor, a controller, a microcontroller, a microprocessor, an electronic unit designed to perform the functions described herein, and in some cases, such embodiments may be implemented in the controller 180. For a software implementation, the implementation such as a process or a function may be implemented with a separate software module that allows performing at least one function or operation. The software codes may be implemented by software applications (or programs) written in any suitable programming language, which may be stored in the memory 160 and executed by the controller 180.
Up to now, the mobile terminal has been described in terms of its functions. Hereinafter, a slide-type mobile terminal among various types of mobile terminals, such as a folder-type, bar-type, swing-type, slide-type mobile terminal, and the like, will be described as an example for the sake of brevity. Accordingly, the present invention can be applied to any type of mobile terminal, and is not limited to a slide type mobile terminal.
The mobile terminal 100 as shown in fig. 1 may be configured to operate with communication systems such as wired and wireless communication systems and satellite-based communication systems that transmit data via frames or packets.
A communication system in which a mobile terminal according to the present invention is operable will now be described with reference to fig. 2.
Such communication systems may use different air interfaces and/or physical layers. For example, the air interface used by the communication system includes, for example, Frequency Division Multiple Access (FDMA), Time Division Multiple Access (TDMA), Code Division Multiple Access (CDMA), and Universal Mobile Telecommunications System (UMTS) (in particular, Long Term Evolution (LTE)), global system for mobile communications (GSM), and the like. By way of non-limiting example, the following description relates to a CDMA communication system, but such teachings are equally applicable to other types of systems.
Referring to fig. 2, the CDMA wireless communication system may include a plurality of mobile terminals 100, a plurality of Base Stations (BSs) 270, Base Station Controllers (BSCs) 275, and a Mobile Switching Center (MSC) 280. The MSC280 is configured to interface with a Public Switched Telephone Network (PSTN) 290. The MSC280 is also configured to interface with a BSC275, which may be coupled to the base station 270 via a backhaul. The backhaul may be constructed according to any of several known interfaces including, for example, E1/T1, ATM, IP, PPP, frame Relay, HDSL, ADSL, or xDSL. It will be understood that a system as shown in fig. 2 may include multiple BSCs 275.
Each BS270 may serve one or more sectors (or regions), each sector covered by a multi-directional antenna or an antenna pointing in a particular direction being radially distant from the BS 270. Alternatively, each partition may be covered by two or more antennas for diversity reception. Each BS270 may be configured to support multiple frequency allocations, with each frequency allocation having a particular frequency spectrum (e.g., 1.25MHz, 5MHz, etc.).
The intersection of partitions with frequency allocations may be referred to as a CDMA channel. The BS270 may also be referred to as a Base Transceiver Subsystem (BTS) or other equivalent terminology. In such a case, the term "base station" may be used to generically refer to a single BSC275 and at least one BS 270. The base stations may also be referred to as "cells". Alternatively, each sector of a particular BS270 may be referred to as a plurality of cell sites.
As shown in fig. 2, a Broadcast Transmitter (BT)295 transmits a broadcast signal to the mobile terminal 100 operating within the system. In fig. 2, several Global Positioning System (GPS) satellites 300 are shown. The satellite 300 assists in locating at least one of the plurality of mobile terminals 100.
In fig. 2, a plurality of satellites 300 are depicted, but it is understood that useful positioning information may be obtained with any number of satellites. Other techniques that can track the location of the mobile terminal may be used instead of or in addition to GPS tracking techniques. In addition, at least one GPS satellite 300 may selectively or additionally process satellite DMB transmission.
As a typical operation of the wireless communication system, the BS270 receives reverse link signals from various mobile terminals 100. The mobile terminal 100 is generally engaged in conversations, messaging, and other types of communications. Each reverse link signal received by a particular base station 270 is processed within the particular BS 270. The obtained data is forwarded to the associated BSC 275. The BSC provides call resource allocation and mobility management functions including coordination of soft handoff procedures between BSs 270. The BSCs 275 also route the received data to the MSC280, which provides additional routing services for interfacing with the PSTN 290. Similarly, the PSTN290 interfaces with the MSC280, the MSC280 interfaces with the BSCs 275, and the BSCs 275 accordingly control the BS270 to transmit forward link signals to the mobile terminal 100.
Based on the above mobile terminal hardware structure and communication system, the present invention provides various embodiments of the method.
Example one
The method for determining NFC payment provided by the present invention can be implemented on a device for determining NFC payment, wherein the device has NFC functionality and may include a mobile terminal such as a mobile phone, a smart phone, a notebook computer, a digital broadcast receiver, a Personal Digital Assistant (PDA), a tablet computer (PAD), a Portable Multimedia Player (PMP), a navigation device, and the like.
If the mobile terminal has an operating system, the operating system may be UNIX, Linux, Windows, Mac OSX, Android (Android), Windows Phone, etc.
Application software (APP) is a third-party Application program of the intelligent terminal, and a user can work, entertain, acquire information and the like through various Application software, and the formats of the APP include ipa, pxl, deb, apk and the like.
FIG. 3 is a flowchart of a first embodiment of a method for determining NFC payment according to the present invention; as shown in fig. 3, the method for determining NFC payment according to an embodiment of the present invention may include the following steps:
step 301, obtaining a distance between the NFC payment device and the NFC payment device to obtain a first distance.
In the embodiment of the present invention, an example of a device for determining NFC payment is a mobile terminal, where the mobile terminal has an NFC function and can perform NFC communication with an NFC payment device, and the NFC payment device may be any NFC device with a card swiping function, such as a POS machine.
The mobile terminal needs to be close to the NFC payment equipment when carrying out NFC payment, takes out the mobile terminal from the user to approach to the NFC payment equipment, and the distance between the mobile terminal and the NFC payment equipment changes in the process, so that the distance between the mobile terminal and the NFC payment equipment can be acquired in real time through the mobile terminal, and the first distance is obtained.
Specifically, the mobile terminal can acquire a first distance from the mobile terminal to the NFC payment device through a distance sensor arranged on the mobile terminal; the mobile terminal can judge whether to start the operation of obtaining the distance according to the change condition of the light sensor arranged on the mobile terminal; for example, the user takes out the mobile terminal from the bag, or takes out the mobile terminal from the trousers pocket, and the light sensor of the mobile terminal detects the change of the optical fiber, and then triggers the distance sensor to perform distance detection, which is the prior mature technology and is not described again.
Step 302, when the first distance is equal to a preset distance and the first distance is reduced, calculating a time length used when the first distance is reduced from a first threshold of the preset distance to a second threshold of the preset distance, calculating an average speed when the first distance is reduced from the first threshold of the preset distance to the second threshold of the preset distance, and calculating an acceleration change value when the first distance is reduced from the first threshold of the preset distance to the second threshold of the preset distance.
Before the step, the mobile terminal determines whether the first distance obtained in step 301 is equal to the preset distance and is reduced compared with the preset distance, and if the first distance is equal to the preset distance and the first distance is reduced, the mobile terminal calculates three parameters, namely duration, average speed and acceleration change value; specifically, the duration is the duration used when the first distance is reduced from a first threshold value of the preset distance to a second threshold value of the preset distance; the average speed is the average speed when the first distance is reduced from a first threshold value of the preset distance to a second threshold value of the preset distance; the acceleration change value is an acceleration change value when the first distance decreases from a first threshold value of the preset distance to a second threshold value of the preset distance.
The preset distance may be any value within the effective communication distance of the NFC function, for example, a preset distance is any value from 0 to 5cm, the first threshold of the preset distance is the maximum value of the range, and the second threshold of the preset distance is the minimum value of the range.
For example, a specific manner of calculating the time length used when the first distance decreases from the first threshold value of the preset distance to the second threshold value of the preset distance is as follows:
the preset distance is 5cm, the first threshold value is 5cm, and the second threshold value is 0 cm; when the mobile terminal detects that the first distance S is equal to a first threshold value of 5cm and the first distance S is continuously reduced, the first time t1 at the current moment is obtained; when the mobile terminal detects that the first distance s is reduced to the second threshold value of 0cm, the second time at the current moment is T2, and finally, the time length used when the first distance is reduced from the first threshold value of the preset distance to the second threshold value of the preset distance is T (T2-T1).
For example, a specific way of calculating the average speed when the first distance decreases from the first threshold value of the preset distance to the second threshold value of the preset distance is as follows:
the preset distance is 5cm, the first threshold value is 5cm, and the second threshold value is 0 cm; when the mobile terminal detects that the first distance S is equal to a first threshold value of 5cm and the first distance S is continuously reduced, the first time of the current moment is t 1; when the mobile terminal detects that the first distance S decreases to the second threshold value of 0cm, the second time at the current moment is T2, and the time duration for decreasing the first distance from the first threshold value of the preset distance to the second threshold value of the preset distance is T (T2-T1) according to the first time T1 and the second time T2.
Then, an average speed when the first distance decreases from the first threshold value of the preset distance to the second threshold value of the preset distance may be calculated as V ═ S/(t2-t 1).
For example, a specific manner of calculating the acceleration change value as the acceleration change value when the first distance decreases from the first threshold value of the preset distance to the second threshold value of the preset distance is as follows:
the preset distance is 5cm, the first threshold value is 5cm, and the second threshold value is 0 cm; when the mobile terminal detects that the first distance S is equal to a first threshold value of 5cm and the first distance S is continuously reduced, the first time of the current moment is t1, and meanwhile, a first acceleration of t1 is g1 obtained through a gravity sensor built in the mobile terminal; when the mobile terminal detects that the first distance S is reduced to a second threshold value of 0cm, obtaining that the second time of the current moment is t2, and obtaining that the second acceleration of t2 is g2 through a gravity sensor built in the mobile terminal; the time duration T for the first distance to decrease from the first threshold value of the preset distance to the second threshold value of the preset distance is calculated according to the first time T1 and the second time T2 (T2-T1), and the acceleration change value G-G2-G1 for the first distance to decrease from the first threshold value of the preset distance to the second threshold value of the preset distance is calculated according to the first acceleration G1 and the second acceleration G2.
In addition, in order to be more accurate, the average acceleration change value in time may be calculated by: ga-g 2-g1 | T, so that the change in the average acceleration over time T can be obtained.
Step 303, determining whether to execute an NFC payment operation according to at least any one of the relationship between the duration and a preset duration, the relationship between the average speed and a preset speed, and the relationship between the acceleration change value and a preset change value.
The mobile terminal determines whether to execute the NFC payment operation according to at least any one of the relationship between the preset time length and the time length used when the first distance calculated in step 302 is reduced from the first threshold value of the preset distance to the second threshold value of the preset distance, the relationship between the average speed and the preset speed when the first distance calculated in step 302 is reduced from the first threshold value of the preset distance to the second threshold value of the preset distance, and the relationship between the acceleration change value and the preset change value when the first distance calculated in step 302 is reduced from the first threshold value of the preset distance to the second threshold value of the preset distance.
It should be noted that values of the preset duration, the preset speed, and the preset variation value may be set according to actual requirements, and are not limited herein.
Specifically, the single parameter may be respectively determined to determine whether to execute the NFC payment operation; the judgment method is as follows:
judging whether the duration is greater than or equal to a preset duration, and if the duration is greater than or equal to the preset duration, determining to execute NFC payment operation; and if the duration is not more than the preset duration, determining not to execute the NFC payment operation.
For example, in normal payment, the time taken for the user to take the mobile terminal out of the proximity of the NFC payment device in payment is basically fixed, for example, 10 seconds, and if an accident that the mobile terminal is dropped is encountered, the time taken for the user to take the mobile terminal out of the proximity of the NFC payment device is greatly reduced, for example, 5 seconds. In this embodiment, a preset condition for an unexpected situation, that is, a duration taken by a distance change is set according to a use habit of a user, a judgment is made according to a time taken in actual payment, and when the judgment is the unexpected situation, the mobile terminal is enabled not to execute an NFC payment operation. Therefore, the possibility of mistaken brushing can be reduced during NFC payment of the mobile terminal, and the safety during NFC payment of the mobile terminal is improved.
Judging whether the average speed is less than or equal to a preset speed, and if the average speed is less than or equal to the preset speed, determining to execute NFC payment operation; and if the average speed is not less than or equal to the preset speed, determining not to execute the NFC payment operation.
For example, in normal payment, the speed of change of the distance between the user taking the mobile terminal out to the close proximity of the NFC payment device is substantially constant and not fast, and if an unexpected situation of dropping the mobile terminal is encountered, the speed of change of the distance is suddenly increased; according to the payment use habit of the user, the preset condition aiming at the accident situation is set, namely the preset speed threshold value of the distance change is set, the change situation of the distance is judged according to the actual payment, and when the accident situation is judged, the mobile terminal does not execute the NFC payment operation, so that the possibility of mistaken brushing can be reduced during the NFC payment of the mobile terminal, and the safety of the NFC payment of the mobile terminal is improved.
Judging whether the acceleration change value is smaller than or equal to a preset change value, and if the acceleration change value is smaller than or equal to the preset change value, determining to execute NFC payment operation; and if the acceleration change value is not less than or equal to a preset change value, determining not to execute the NFC payment operation.
For example, in normal payment, a user takes a mobile terminal out to be close to an NFC payment device, the acceleration of the mobile terminal is often fixed or slightly changed, and if an unexpected situation of dropping the mobile terminal is encountered, the change of the acceleration is suddenly increased; according to the payment use habit of the user, the preset condition aiming at the accident situation is set, namely the preset change value threshold value of the acceleration change value is judged according to the change situation of the acceleration in the actual payment process, and when the accident situation is judged, the mobile terminal does not execute NFC payment operation, so that the possibility of mistaken brushing can be reduced in the NFC payment process of the mobile terminal, and the safety of the NFC payment process of the mobile terminal is improved.
Or the combination of every two parameters can be judged to determine whether to execute the NFC payment operation; the judgment method is as follows:
judging whether the duration is greater than or equal to a preset duration and the average speed is less than or equal to a preset speed, and if a first condition formed by the two conditions that the duration is greater than or equal to the preset duration and the average speed is less than or equal to the preset speed is met, determining to execute NFC payment operation; and if the first condition is not met, determining not to execute the NFC payment operation.
Judging whether the duration is greater than or equal to a preset duration and the acceleration change value is less than or equal to a preset change value, and if a second condition formed by the two conditions that the duration is greater than or equal to the preset duration and the acceleration change value is less than or equal to the preset change value is met, determining to execute NFC payment operation; and if the second condition is not met, determining not to execute the NFC payment operation.
Judging whether the average speed is less than or equal to a preset speed and the acceleration change value is less than or equal to a preset change value, and if a third condition formed by two conditions of the average speed being less than or equal to the preset speed and the acceleration change value being less than or equal to the preset change value is met, determining to execute the NFC payment operation; and if the third condition is not met, determining not to execute the NFC payment operation.
Or all combinations of the parameters can be judged to determine whether to execute the NFC payment operation; the judgment method is as follows:
judging whether the duration is greater than or equal to a preset duration, whether the average speed is less than or equal to a preset speed, and whether the acceleration change value is less than or equal to a preset change value, and if the three conditions that the duration is greater than or equal to the preset duration, the average speed is less than or equal to the preset speed, and the acceleration change value is less than or equal to the preset change value are simultaneously met, determining to execute NFC payment operation; and if the three conditions are not met at the same time, determining not to execute the NFC payment operation.
Finally, the mobile terminal judges through at least one of the three parameters or any combination thereof to obtain a result of determining whether to execute the NFC payment operation.
According to the method for determining the NFC payment, provided by the embodiment of the invention, the mobile terminal obtains the first distance by obtaining the distance between the mobile terminal and the NFC payment equipment; when the first distance is equal to a preset distance and the first distance is reduced, calculating the time length for reducing the first distance from a first threshold value of the preset distance to a second threshold value of the preset distance, calculating the average speed for reducing the first distance from the first threshold value of the preset distance to the second threshold value of the preset distance, and calculating the acceleration change value for reducing the first distance from the first threshold value of the preset distance to the second threshold value of the preset distance; determining whether to execute NFC payment operation according to at least any one of the relation between the duration and preset duration, the relation between the average speed and preset speed and the relation between the acceleration change value and a preset change value; the result of determining whether to execute the NFC payment operation is obtained by judging at least one of the three parameters or any combination of the three parameters, so that the possibility of mistaken brushing of the NFC function of the mobile terminal is reduced, and the safety of the NFC payment of the mobile terminal is improved.
Example two
Fig. 4 is a flowchart of a second embodiment of the method for determining NFC payment according to the present invention; as shown in fig. 4, the method for determining NFC payment according to an embodiment of the present invention may include the following steps:
step 401, obtaining a distance between the NFC payment device and the NFC payment device to obtain a first distance.
In the embodiment of the present invention, the device for determining NFC payment is exemplified by a mobile phone with an NFC function; when the mobile phone carries out NFC payment, the mobile phone needs to be close to NFC payment equipment, the distance between the mobile phone and the NFC payment equipment is changed from the time when the mobile phone is taken out of the user to the time when the mobile phone is close to the NFC payment equipment, and at the moment, the distance between the mobile phone and the NFC payment equipment can be acquired in real time through the mobile phone to obtain a first distance.
Specifically, the mobile phone can acquire a first distance from the mobile phone to the NFC payment device through a distance sensor arranged on the mobile phone; the mobile phone can judge whether to start the operation of obtaining the distance according to the change condition of the light sensor arranged on the mobile phone; for example, when a user takes out a mobile phone from a bag or takes out the mobile phone from a trousers pocket, the light sensor of the mobile phone detects the change of the optical fiber, and then the distance sensor is triggered to perform distance detection, which is the prior mature technology and is not described again.
Step 402, judging whether the first distance is smaller than or equal to a preset distance and whether the first distance is reduced.
The mobile phone determines whether the first distance acquired in step 401 is equal to the preset distance and is reduced compared with the preset distance, and if the first distance is not equal to the preset distance and is reduced, step 403 is executed; if the first distance is equal to the predetermined distance and the first distance is decreasing, go to step 404.
And step 403, ending the processing task.
And the mobile phone determines not to execute the processing task and ends the task.
Step 404, calculating a time length used when the first distance decreases from the first threshold of the preset distance to the second threshold of the preset distance, calculating an average speed when the first distance decreases from the first threshold of the preset distance to the second threshold of the preset distance, and calculating an acceleration change value when the first distance decreases from the first threshold of the preset distance to the second threshold of the preset distance.
When the first distance is judged to be equal to the preset distance and the first distance is reduced, the mobile phone calculates three parameters, wherein the three parameters are duration, average speed and acceleration change value; specifically, the duration is the duration used when the first distance is reduced from a first threshold value of the preset distance to a second threshold value of the preset distance; the average speed is the average speed when the first distance is reduced from a first threshold value of the preset distance to a second threshold value of the preset distance; the acceleration change value is an acceleration change value when the first distance decreases from a first threshold value of the preset distance to a second threshold value of the preset distance.
Specifically, the description and illustration of the three parameters, the preset distance, the first threshold, and the second threshold may refer to the content recorded in step 302, and are not repeated herein.
Step 405, determining whether to execute the NFC payment operation according to at least any one of the relationship between the duration and the preset duration, the relationship between the average speed and the preset speed, and the relationship between the acceleration change value and the preset change value.
The mobile phone determines whether to execute the NFC payment operation according to at least any one of the relationship between the preset time length and the time length used when the first distance calculated in step 404 is reduced from the first threshold of the preset distance to the second threshold of the preset distance, the relationship between the average speed and the preset speed when the first distance calculated in step 404 is reduced from the first threshold of the preset distance to the second threshold of the preset distance, and the relationship between the acceleration change value and the preset change value when the first distance calculated in step 404 is reduced from the first threshold of the preset distance to the second threshold of the preset distance.
It should be noted that values of the preset duration, the preset speed, and the preset variation value may be set according to actual requirements, and are not limited herein.
Specifically, the mobile phone may respectively determine the single parameter to determine whether to execute the NFC payment operation; the mobile phone can also judge the pairwise combination of the parameters to determine whether to execute the NFC payment operation; all combinations of the parameters can be judged to determine whether to execute the NFC payment operation; the specific use case can be set according to actual requirements, and is not limited herein.
In this embodiment, it is exemplified that whether to execute the NFC payment operation is determined only by determining a pairwise combination of each parameter, which is specifically described as follows:
determining whether to execute the NFC payment operation according to the relationship between the duration and the preset duration and the relationship between the average speed and the preset speed, wherein the determining comprises the following steps:
judging whether the duration is greater than or equal to a preset duration and the average speed is less than or equal to a preset speed, and if the duration is greater than or equal to the preset duration and the average speed is less than or equal to the preset speed, determining to execute NFC payment operation;
if the duration is greater than or equal to a preset duration and the average speed is not less than or equal to a preset speed, determining that the NFC payment operation is not executed; if the duration is not more than or equal to a preset duration and the average speed is not less than or equal to a preset speed, determining that the NFC payment operation is not executed; and if the duration is not more than the preset duration and the average speed is less than or equal to the preset speed, determining that the NFC payment operation is not executed.
Determining whether to execute the NFC payment operation according to the relationship between the duration and the preset duration and the relationship between the acceleration change value and the preset change value, wherein the determining comprises the following steps:
judging whether the duration is greater than or equal to a preset duration and the acceleration change value is less than or equal to a preset change value, and if the duration is greater than or equal to the preset duration and the acceleration change value is less than or equal to the preset change value, determining to execute NFC payment operation;
if the duration is greater than or equal to a preset duration and the acceleration change value is not less than or equal to a preset change value, determining that the NFC payment operation is not executed; if the duration is not more than or equal to a preset duration and the acceleration change value is not less than or equal to a preset change value, determining that the NFC payment operation is not executed; and if the duration is not more than the preset duration and the acceleration change value is less than or equal to the preset change value, determining that the NFC payment operation is not executed.
The determining whether to execute the NFC payment operation according to the relationship between the average speed and the preset speed and the relationship between the acceleration change value and the preset change value includes:
judging whether the average speed is less than or equal to a preset speed and the acceleration change value is less than or equal to a preset change value, and if the average speed is less than or equal to the preset speed and the acceleration change value is less than or equal to the preset change value, determining to execute NFC payment operation; if the average speed is less than or equal to a preset speed, and the acceleration change value is not less than or equal to a preset change value, determining not to execute the NFC payment operation;
if the average speed is not less than or equal to a preset speed, and the acceleration change value is not less than or equal to a preset change value, determining that the NFC payment operation is not executed; and if the average speed is not less than or equal to a preset speed and the acceleration change value is less than or equal to a preset change value, determining not to execute the NFC payment operation.
Finally, the mobile phone judges through at least one of the three parameters or any combination thereof to obtain a result of determining whether to execute the NFC payment operation.
According to the method for determining the NFC payment, provided by the embodiment of the invention, the mobile phone obtains the first distance by obtaining the distance between the mobile phone and the NFC payment equipment; judging whether the first distance is smaller than or equal to a preset distance or not and whether the first distance is reduced or not; when the first distance is equal to a preset distance and the first distance is reduced, calculating the time length for reducing the first distance from a first threshold value of the preset distance to a second threshold value of the preset distance, calculating the average speed for reducing the first distance from the first threshold value of the preset distance to the second threshold value of the preset distance, and calculating the acceleration change value for reducing the first distance from the first threshold value of the preset distance to the second threshold value of the preset distance; determining whether to execute NFC payment operation according to at least any one of the relation between the duration and preset duration, the relation between the average speed and preset speed and the relation between the acceleration change value and a preset change value; the judgment is carried out through at least one of the three parameters or any combination of the three parameters, and the result of determining whether to execute the NFC payment operation is obtained, so that the possibility of mistaken swiping of the NFC function of the mobile phone is reduced, and the safety of the NFC payment of the mobile phone is improved.
EXAMPLE III
Fig. 5 is a schematic structural diagram of an embodiment of the apparatus for determining NFC payment according to the present invention, and as shown in fig. 5, the apparatus 05 for determining NFC payment according to the embodiment of the present invention includes: an acquisition module 51, a calculation module 52 and a determination module 53; wherein the content of the first and second substances,
the obtaining module 51 is configured to obtain a distance between the NFC payment device and the obtaining module to obtain a first distance;
the calculating module 52 is configured to calculate, when the first distance is equal to a preset distance and the first distance is decreased, a time duration for decreasing the first distance from a first threshold of the preset distance to a second threshold of the preset distance, calculate an average speed for decreasing the first distance from the first threshold of the preset distance to the second threshold of the preset distance, and calculate an acceleration change value for decreasing the first distance from the first threshold of the preset distance to the second threshold of the preset distance;
the determining module 53 is configured to determine whether to execute the NFC payment operation according to at least any one of the relationship between the duration and the preset duration, the relationship between the average speed and the preset speed, and the relationship between the acceleration change value and the preset change value.
Further, the apparatus further comprises: a decision block 54; wherein the content of the first and second substances,
the determining module 54 is configured to determine whether the first distance is smaller than or equal to a preset distance and whether the first distance decreases.
Further, the determining module 53 is specifically configured to determine whether the duration is greater than or equal to a preset duration, and if the duration is greater than or equal to the preset duration, determine to execute the NFC payment operation; if the duration is not more than the preset duration, determining not to execute the NFC payment operation;
or, the determining module 53 is specifically configured to determine whether the average speed is less than or equal to a preset speed, and if the average speed is less than or equal to the preset speed, determine to execute an NFC payment operation; if the average speed is not less than or equal to a preset speed, determining not to execute NFC payment operation;
or, the determining module 53 is specifically configured to determine whether the acceleration change value is less than or equal to a preset change value, and if the acceleration change value is less than or equal to the preset change value, determine to execute the NFC payment operation; and if the acceleration change value is not less than or equal to a preset change value, determining not to execute the NFC payment operation.
Further, the determining module 53 is further specifically configured to determine whether the duration is greater than or equal to a preset duration and whether the average speed is less than or equal to a preset speed, and if a first condition formed by two conditions that the duration is greater than or equal to the preset duration and the average speed is less than or equal to the preset speed is simultaneously met, determine to execute the NFC payment operation; if the first condition is not met, determining not to execute NFC payment operation;
or, the determining module 53 is further specifically configured to determine whether the duration is greater than or equal to a preset duration and the acceleration change value is less than or equal to a preset change value, and if a second condition formed by two conditions, that is, the duration is greater than or equal to the preset duration and the acceleration change value is less than or equal to the preset change value, determine to execute the NFC payment operation; if the second condition is not met, determining not to execute NFC payment operation;
or, the determining module 53 is further specifically configured to determine whether the average speed is less than or equal to a preset speed and the acceleration variation value is less than or equal to a preset variation value, and if a third condition formed by two conditions, that is, the average speed is less than or equal to the preset speed and the acceleration variation value is less than or equal to the preset variation value, determine to execute the NFC payment operation; and if the third condition is not met, determining not to execute the NFC payment operation.
Further, the determining module 53 is further specifically configured to determine whether the duration is greater than or equal to a preset duration, whether the average speed is less than or equal to a preset speed, and whether the acceleration change value is less than or equal to a preset change value, and if three conditions, that the duration is greater than or equal to the preset duration, the average speed is less than or equal to the preset speed, and the acceleration change value is less than or equal to the preset change value, are simultaneously met, determine to execute the NFC payment operation; and if the three conditions are not met at the same time, determining not to execute the NFC payment operation.
The apparatus of this embodiment may be configured to implement the technical solutions of the above-described method embodiments, and the implementation principles and technical effects are similar, which are not described herein again.
In practical applications, the obtaining module 51, the calculating module 52, the determining module 53, and the determining module 54 may be implemented by a Central Processing Unit (CPU), a microprocessor Unit (MPU), a Digital Signal Processor (DSP), a Field Programmable Gate Array (FPGA), or the like, which are located in the NFC payment determining device 05.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method described in the embodiments of the present invention.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams 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, embedded processor, 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, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. An apparatus to determine near field communication, NFC, payments, the apparatus comprising:
the acquisition module is used for acquiring the distance between the NFC payment equipment and the NFC payment equipment to obtain a first distance;
the calculating module is used for calculating the time length for reducing the first distance from a first threshold value of the preset distance to a second threshold value of the preset distance when the first distance is equal to the preset distance and the first distance is reduced, calculating the average speed for reducing the first distance from the first threshold value of the preset distance to the second threshold value of the preset distance, and calculating the acceleration change value for reducing the first distance from the first threshold value of the preset distance to the second threshold value of the preset distance;
and the determining module is used for determining whether to execute the NFC payment operation according to at least any one of the relationship between the duration and the preset duration, the relationship between the average speed and the preset speed and the relationship between the acceleration change value and the preset change value.
2. The apparatus of claim 1, further comprising:
and the judging module is used for judging whether the first distance is smaller than or equal to a preset distance or not and whether the first distance is reduced or not.
3. The apparatus according to claim 1, wherein the determining module is specifically configured to determine whether the duration is greater than or equal to a preset duration, and if the duration is greater than or equal to the preset duration, determine to perform the NFC payment operation; if the duration is not more than the preset duration, determining not to execute the NFC payment operation;
or the determining module is specifically configured to determine whether the average speed is less than or equal to a preset speed, and if the average speed is less than or equal to the preset speed, determine to execute an NFC payment operation; if the average speed is not less than or equal to a preset speed, determining not to execute NFC payment operation;
or the determining module is specifically configured to determine whether the acceleration change value is less than or equal to a preset change value, and if the acceleration change value is less than or equal to the preset change value, determine to execute an NFC payment operation; and if the acceleration change value is not less than or equal to a preset change value, determining not to execute the NFC payment operation.
4. The apparatus according to claim 1, wherein the determining module is further specifically configured to determine whether the duration is greater than or equal to a preset duration and the average speed is less than or equal to a preset speed, and determine to execute the NFC payment operation if a first condition formed by two conditions, that the duration is greater than or equal to the preset duration and the average speed is less than or equal to the preset speed, is satisfied; if the first condition is not met, determining not to execute NFC payment operation;
or the determining module is further specifically configured to determine whether the duration is greater than or equal to a preset duration and the acceleration change value is less than or equal to a preset change value, and if a second condition formed by two conditions of the duration being greater than or equal to the preset duration and the acceleration change value being less than or equal to the preset change value is simultaneously met, determine to execute the NFC payment operation; if the second condition is not met, determining not to execute NFC payment operation;
or, the determining module is further specifically configured to determine whether the average speed is less than or equal to a preset speed and the acceleration change value is less than or equal to a preset change value, and if a third condition formed by two conditions, that is, the average speed is less than or equal to the preset speed and the acceleration change value is less than or equal to the preset change value, determine to execute the NFC payment operation; and if the third condition is not met, determining not to execute the NFC payment operation.
5. The apparatus according to claim 1, wherein the determining module is further specifically configured to determine whether the duration is greater than or equal to a preset duration, whether the average speed is less than or equal to a preset speed, and whether the acceleration change value is less than or equal to a preset change value, and if three conditions, that the duration is greater than or equal to the preset duration, the average speed is less than or equal to the preset speed, and the acceleration change value is less than or equal to the preset change value, are simultaneously satisfied, determine to perform the NFC payment operation; and if the three conditions are not met at the same time, determining not to execute the NFC payment operation.
6. A method of determining a near field communication, NFC, payment, the method comprising:
obtaining a distance between the NFC payment equipment and the NFC payment equipment to obtain a first distance;
when the first distance is equal to a preset distance and the first distance is reduced, calculating the time length for reducing the first distance from a first threshold value of the preset distance to a second threshold value of the preset distance, calculating the average speed for reducing the first distance from the first threshold value of the preset distance to the second threshold value of the preset distance, and calculating the acceleration change value for reducing the first distance from the first threshold value of the preset distance to the second threshold value of the preset distance;
and determining whether to execute the NFC payment operation according to at least any one of the relation between the time length and the preset time length, the relation between the average speed and the preset speed and the relation between the acceleration change value and the preset change value.
7. The method of claim 6, wherein after obtaining the distance to the NFC payment device, resulting in a first distance, the method further comprises:
and judging whether the first distance is smaller than or equal to a preset distance or not and whether the first distance is reduced or not.
8. The method of claim 6, wherein the determining whether to perform the NFC payment operation according to the relationship between the duration and the preset duration comprises:
judging whether the duration is greater than or equal to a preset duration, and if the duration is greater than or equal to the preset duration, determining to execute NFC payment operation; if the duration is not more than the preset duration, determining not to execute the NFC payment operation;
the determining whether to execute the NFC payment operation according to the relation between the average speed and the preset speed comprises the following steps:
judging whether the average speed is less than or equal to a preset speed, and if the average speed is less than or equal to the preset speed, determining to execute NFC payment operation; if the average speed is not less than or equal to a preset speed, determining not to execute NFC payment operation;
the determining whether to execute the NFC payment operation according to the relationship between the acceleration change value and the preset change value includes:
judging whether the acceleration change value is smaller than or equal to a preset change value, and if the acceleration change value is smaller than or equal to the preset change value, determining to execute NFC payment operation; and if the acceleration change value is not less than or equal to a preset change value, determining not to execute the NFC payment operation.
9. The method of claim 6, wherein determining whether to perform the NFC payment operation according to the relationship between the duration and the preset duration and the relationship between the average speed and the preset speed comprises:
judging whether the duration is greater than or equal to a preset duration and the average speed is less than or equal to a preset speed, and if a first condition formed by the two conditions that the duration is greater than or equal to the preset duration and the average speed is less than or equal to the preset speed is met, determining to execute NFC payment operation;
if the first condition is not met, determining not to execute NFC payment operation;
determining whether to execute the NFC payment operation according to the relationship between the duration and the preset duration and the relationship between the acceleration change value and the preset change value, wherein the determining comprises the following steps:
judging whether the duration is greater than or equal to a preset duration and the acceleration change value is less than or equal to a preset change value, and if a second condition formed by the two conditions that the duration is greater than or equal to the preset duration and the acceleration change value is less than or equal to the preset change value is met, determining to execute NFC payment operation;
if the second condition is not met, determining not to execute NFC payment operation;
the determining whether to execute the NFC payment operation according to the relationship between the average speed and the preset speed and the relationship between the acceleration change value and the preset change value includes:
judging whether the average speed is less than or equal to a preset speed and the acceleration change value is less than or equal to a preset change value, and if a third condition formed by two conditions of the average speed being less than or equal to the preset speed and the acceleration change value being less than or equal to the preset change value is met, determining to execute the NFC payment operation;
and if the third condition is not met, determining not to execute the NFC payment operation.
10. The method according to claim 6, wherein the determining whether to execute the NFC payment operation according to the relation between the time length and the preset time length, the relation between the average speed and the preset speed, and the relation between the acceleration change value and the preset change value comprises:
judging whether the duration is greater than or equal to a preset duration, whether the average speed is less than or equal to a preset speed, and whether the acceleration change value is less than or equal to a preset change value, and if the three conditions that the duration is greater than or equal to the preset duration, the average speed is less than or equal to the preset speed, and the acceleration change value is less than or equal to the preset change value are simultaneously met, determining to execute NFC payment operation;
and if the three conditions are not met at the same time, determining not to execute the NFC payment operation.
CN201611226455.0A 2016-12-27 2016-12-27 Device and method for determining NFC payment Active CN106682897B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611226455.0A CN106682897B (en) 2016-12-27 2016-12-27 Device and method for determining NFC payment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611226455.0A CN106682897B (en) 2016-12-27 2016-12-27 Device and method for determining NFC payment

Publications (2)

Publication Number Publication Date
CN106682897A CN106682897A (en) 2017-05-17
CN106682897B true CN106682897B (en) 2020-09-08

Family

ID=58872904

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611226455.0A Active CN106682897B (en) 2016-12-27 2016-12-27 Device and method for determining NFC payment

Country Status (1)

Country Link
CN (1) CN106682897B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107451814A (en) * 2017-07-06 2017-12-08 广东小天才科技有限公司 A kind of data method of payment, device and user equipment
CN107844977B (en) * 2017-10-09 2021-08-27 中国银联股份有限公司 Payment method and device
MY197067A (en) * 2018-05-24 2023-05-24 Soft Space Sdn Bhd Method for processing a secure financial transaction using a commercial off-the-shelf or an internet of things device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102945088A (en) * 2012-10-19 2013-02-27 北京小米科技有限责任公司 Method, device and mobile equipment for realizing terminal-simulated mouse to operate equipment
CN104766206A (en) * 2015-04-22 2015-07-08 广东欧珀移动通信有限公司 NFC payment method and device based on mobile terminal
CN105404459A (en) * 2014-08-25 2016-03-16 深圳富泰宏精密工业有限公司 Near field communication apparatus and working mode startup method therefor
CN105761059A (en) * 2016-02-03 2016-07-13 宁波大学 Mobile wallet payment method based on NFC
CN105931044A (en) * 2016-04-22 2016-09-07 腾讯科技(深圳)有限公司 Mobile payment activation method and device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9022286B2 (en) * 2013-03-15 2015-05-05 Virtual Electric, Inc. Multi-functional credit card type portable electronic device
US20160283934A1 (en) * 2015-03-23 2016-09-29 Mass International Co., Ltd. Watch with near field communication chip and the method of transaction

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102945088A (en) * 2012-10-19 2013-02-27 北京小米科技有限责任公司 Method, device and mobile equipment for realizing terminal-simulated mouse to operate equipment
CN105404459A (en) * 2014-08-25 2016-03-16 深圳富泰宏精密工业有限公司 Near field communication apparatus and working mode startup method therefor
CN104766206A (en) * 2015-04-22 2015-07-08 广东欧珀移动通信有限公司 NFC payment method and device based on mobile terminal
CN105761059A (en) * 2016-02-03 2016-07-13 宁波大学 Mobile wallet payment method based on NFC
CN105931044A (en) * 2016-04-22 2016-09-07 腾讯科技(深圳)有限公司 Mobile payment activation method and device

Also Published As

Publication number Publication date
CN106682897A (en) 2017-05-17

Similar Documents

Publication Publication Date Title
CN106304037B (en) Virtual SIM card management method and device
CN106210376B (en) Mobile terminal, vibration prompt control device and method
CN106550126B (en) Mobile terminal and screen brightness control device and method thereof
CN105740008B (en) Device and method for forbidding chained start of application program
CN107015756B (en) Mobile terminal and method for realizing full-screen fingerprint interaction
CN106778176B (en) Information processing method and mobile terminal
CN104932697B (en) Gesture unlocking method and device
CN105898703B (en) Management method and device for identified pseudo base station
CN106682897B (en) Device and method for determining NFC payment
CN106648324B (en) Hidden icon control method and device and terminal
CN106453863B (en) Method and system for controlling terminal and earphone
CN106484534B (en) Control method and control device for displayed mobile terminal
CN105955474B (en) Application evaluation prompting method and mobile terminal
CN105227771B (en) Picture transmission method and device
CN107025158B (en) Sliding operation testing method and device and terminal
CN107071275B (en) Image synthesis method and terminal
CN106569670B (en) Device and method for processing application
CN106873981B (en) Icon processing method and device and terminal
CN106569690B (en) Device and method for preventing mistaken touch
CN106412877B (en) Activation method and activation device for mobile terminal SIM card
CN104935734A (en) Mobile terminal application switching method and mobile terminal
CN105528137B (en) Method and device for self-adaptive screen capture according to shielded area
CN104811553A (en) Method for application permission switching of mobile terminal and mobile terminal
CN105573563B (en) Mobile terminal and method for realizing touch operation on mobile terminal
CN105094733B (en) Split screen display method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant