CN114223222A - Terminal payment method and device, terminal equipment and computer readable storage medium - Google Patents

Terminal payment method and device, terminal equipment and computer readable storage medium Download PDF

Info

Publication number
CN114223222A
CN114223222A CN201980099149.0A CN201980099149A CN114223222A CN 114223222 A CN114223222 A CN 114223222A CN 201980099149 A CN201980099149 A CN 201980099149A CN 114223222 A CN114223222 A CN 114223222A
Authority
CN
China
Prior art keywords
information
preset
hotspot
target
hotspot information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201980099149.0A
Other languages
Chinese (zh)
Other versions
CN114223222B (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Shenzhen Huantai Technology Co Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Shenzhen Huantai 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 Guangdong Oppo Mobile Telecommunications Corp Ltd, Shenzhen Huantai Technology Co Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Publication of CN114223222A publication Critical patent/CN114223222A/en
Application granted granted Critical
Publication of CN114223222B publication Critical patent/CN114223222B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/021Services related to particular areas, e.g. point of interest [POI] services, venue services or geofences

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the application discloses a terminal payment method, a terminal payment device, terminal equipment and a computer readable storage medium, and relates to the technical field of wireless communication. The method is applied to the terminal equipment and comprises the following steps: detecting hotspot information; when target hotspot information matched with preset hotspot information is detected, determining the position information of the terminal equipment according to the target hotspot information; and when the position information meets a preset effective condition, controlling the terminal equipment to start a payment function corresponding to the target hotspot information. According to the method and the device, the payment function corresponding to the target hotspot information can be automatically started through the hotspot information and the position information of the terminal device, and the payment efficiency is improved.

Description

Terminal payment method and device, terminal equipment and computer readable storage medium Technical Field
The present application relates to the field of wireless communication technologies, and in particular, to a terminal payment method, an apparatus, a terminal device, and a computer-readable storage medium.
Background
In recent years, with the improvement of science and technology and living standard, terminal payment is applied in more and more scenes. In general, terminal payment may be expressed as a payment method that allows a user to make an account payment for goods or services consumed using his terminal device. Compared with traditional payment, terminal payment is more convenient and faster, so more and more consumers choose to consume in a terminal payment mode. However, when the user carries out terminal payment at present, a plurality of operations are often required to be carried out on the terminal equipment to complete one-time payment, the operation steps are complex, and the efficiency is not high.
Disclosure of Invention
The application provides a terminal payment method, a terminal payment device, a terminal device and a computer readable storage medium, so as to overcome the defects.
In a first aspect, an embodiment of the present application provides a terminal payment method, which is applied to a terminal device, and the method includes: detecting hotspot information; when target hotspot information matched with preset hotspot information is detected, determining the position information of the terminal equipment according to the target hotspot information; and when the position information meets a preset effective condition, controlling the terminal equipment to start a payment function corresponding to the target hotspot information.
In a second aspect, an embodiment of the present application further provides a terminal payment apparatus, which is applied to a terminal device, and the apparatus includes: the hot spot detection module is used for detecting hot spot information; the terminal equipment comprises a position determining module, a position determining module and a hot spot setting module, wherein the position determining module is used for determining the position information of the terminal equipment according to target hot spot information when the target hot spot information matched with preset hot spot information is detected; and the function starting module is used for controlling the terminal equipment to start a payment function corresponding to the target hotspot information when the position information meets a preset effective condition.
In a third aspect, an embodiment of the present application further provides a terminal device, including: one or more processors; a memory; one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to perform the above-described methods.
In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, where a program code is stored in the computer-readable storage medium, and the program code can be called by a processor to execute the method.
According to the terminal payment method, the terminal payment device, the terminal device and the computer readable storage medium, the hot spot information is detected, when the target hot spot information matched with the preset hot spot information is detected, the position information of the terminal device is determined according to the target hot spot information, and when the position information meets the preset effective condition, the payment function corresponding to the target hot spot information is started. Therefore, the scene can be judged through the hotspot information and the position information, the payment function needing to be started is determined according to the scene and started, the user can start the required payment function without manual operation, automatic selection payment is realized, the payment efficiency is greatly improved, and the user experience of the terminal payment scene is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 illustrates an application scenario diagram applicable to a terminal payment method provided in an embodiment of the present application;
FIG. 2 is a flow chart of a method of terminal payment provided by an embodiment of the present application;
fig. 3 shows an interaction diagram of a terminal device and a reading device provided by an embodiment of the present application;
fig. 4 shows a flowchart of a method of terminal payment provided by another embodiment of the present application;
fig. 5 shows a flowchart of a method of terminal payment provided by another embodiment of the present application;
fig. 6 shows a flowchart of a method of a terminal payment method according to a further embodiment of the present application;
FIG. 7 is a flow chart of a method for terminal payment provided by a further embodiment of the present application;
fig. 8 shows a method flowchart of a terminal payment method provided by yet another embodiment of the present application;
fig. 9 shows a method flowchart of a terminal payment method provided by yet another embodiment of the present application;
FIG. 10 is a flow chart of a method for terminal payment provided by yet another embodiment of the present application;
fig. 11 shows a flowchart of a method of a terminal payment method according to still another embodiment of the present application.
Fig. 12 shows a block diagram of a terminal payment device provided in an embodiment of the present application;
fig. 13 shows a block diagram of a terminal device provided in an embodiment of the present application;
fig. 14 illustrates a storage unit for storing or carrying program codes for implementing a terminal payment method according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application.
Referring to fig. 1, an application scenario diagram of the terminal payment method and apparatus provided in the embodiment of the present application is shown, as shown in fig. 1, a communication system 10 includes a terminal device 100 and a reading device 200, the terminal device 100 and the reading device 200 are located in a wireless network or a wired network, the terminal device 100 includes a communication module, and the terminal device 100 performs data interaction with the reading device 200 based on the communication module.
In some embodiments, the communication system 10 further includes a server 300, and the terminal device 100, the reading device 200, and the server 200 are located in a wireless network or a wired network, which may perform data interaction.
The terminal device 100 may be a portable electronic device such as a cell phone, a tablet computer, a wearable electronic device with wireless communication capabilities (e.g., a smart watch), etc., that also contains other functions such as personal digital assistant and/or music player functions. Exemplary embodiments of portable electronic devices include, but are not limited to, portable electronic devices that carry iOS, Android, Microsoft, or other operating systems. The portable electronic device may also be other portable electronic devices such as a Laptop computer (Laptop) or the like. It should also be understood that in other embodiments, the electronic device may not be a portable electronic device, but may be a desktop computer.
The terminal device 100 supports accessing to a Hotspot (i.e., Hotspot) of a Wireless Local Area Network (WLAN) through Wireless Fidelity (WiFi) to implement a network access function, and specifically, the terminal device 100 may include a Wireless network card or a WiFi chip for scanning and detecting Hotspot information. In an example, a user may selectively turn on or off a WiFi function of the terminal device 100 through a preset WLAN function switch, when the WiFi function of the terminal device 100 is in an on state, the terminal device 100 is in a detection state for a WiFi signal, a management program for WiFi connection and use may obtain hotspot information of the WiFi signal detected by the WiFi chip by calling a driver of the terminal device 100, where the hotspot information may include at least one of a Service Set Identifier (SSID), a physical address (Media Access Control, MAC) address, and the like. In one example, in combination with the SSID and the MAC as hotspot information, an index may be established according to the SSID, and then a specific WIFI hotspot may be determined according to the MAC.
It should be noted that the WLAN function switch is only a word used in the embodiment of the present application, and the meaning and function of the word are described in the embodiment of the present application, and the name of the word does not limit the embodiment of the present application; it is understood that in other embodiments of the present application, the above words may also use other names, such as WiFi function switch, etc.
The reading device 200 may be an electronic device having a communication function, which can perform data transmission with the terminal device 100, such as a (Point of Sale POS) terminal. In one example, the reader 200 may be an electronic device with Near Field Communication (NFC) function, and the terminal device 100 is provided with an NFC module inside, and may perform data interaction with the reader 200 based on the NFC module. When the reader 200 performs data interaction with the terminal device 100, the reader 200 sends an Application Identifier (AID) instruction to the terminal device 100 in the communication range of the reader, and after receiving the AID instruction, the NFC module of the terminal device 100 routes the AID instruction to an Application corresponding to the AID, so as to activate a corresponding analog card in the Application program and complete payment based on the analog card.
In another example, the reading device 200 may also be an electronic device with a code scanning function, in which an application capable of supporting code scanning payment is installed on the terminal device 100, and in response to an operation of the application by the user, the terminal device may open the application and display a code scanning payment page for the reading device 200 to read, thereby completing a code scanning payment process.
In daily life, more and more scenes are provided with reading equipment, such as (Point of Sale POS) terminals, and at least one of payment modes such as code scanning payment and NFC payment is supported, so that a user can realize convenient non-contact payment through interaction between the terminal equipment and the reading equipment. However, the inventor finds that, in research, when a user needs to use a terminal device for payment, the user often needs to perform a series of operations before selecting a required payment mode according to different scenes. For example, if code scanning payment is needed, the terminal device is often unlocked first, then an application supporting code scanning payment is selected, and a page for code scanning payment is opened; if NFC payment is needed, the user needs to set default payment on the terminal device to a corresponding payment card according to an actual scene before payment every time, and then the subsequent payment process can be completed. The steps of the payment method are complicated, and the payment efficiency is not high, so that the user experience is not good.
Therefore, in order to solve the above-mentioned defect, an embodiment of the present application provides a terminal payment method, which is applicable to the above-mentioned terminal device, as shown in fig. 1, and specifically, the method includes: s111 to S113.
S111: and detecting hotspot information.
The terminal equipment is provided with a WLAN module, a user can selectively turn on or turn off the Wifi function of the terminal equipment through a WLAN function switch, the terminal equipment can control the turning on or turning off of the WLAN module through detecting a trigger event of the WLAN function switch, the WLAN module is enabled to be in a working state when the WLAN module is turned on, and at the moment, the terminal equipment can detect hotspot information based on the WLAN module. The hotspot information may include at least one of a Service Set Identifier (SSID), a physical address (MAC) address, and the like.
At present, with the development of smart cities, public transport free Wifi gradually covers each big city, and public transport free Wifi is that a wireless hotspot is installed on a public transport means (such as a subway, a bus and the like) for free use of a user, so that the user can also connect to the internet and watch online videos and the like without using data connection when taking the public transport means. At this time, if the WLAN module of the user terminal device is in a working state, when the user waits at a bus station, a subway station, or nearby, or is already on the bus or subway, the terminal device may scan and detect the hotspot information of the WiFi signal of the bus or subway. In addition to public transportation scenarios, wireless hotspots are also used in many other scenarios, such as bank scenarios, shopping mall scenarios, etc.
In some embodiments, different wireless hotspots have different working ranges, and the larger the working range is, the farther a terminal device can detect hotspot information of the wireless hotspot. In one example, the working range of the wireless hotspot is generally dozens of meters, so taking a bus scene as an example, when a bus arrives at a station, or when a user arrives at a subway station to wait for a train, if the user is waiting for the bus to arrive at the station at the moment, the terminal device can be in the working range of the wireless hotspot of the bus no matter whether the bus arriving at the station is a route required by the user. If the user is riding or waiting for the subway, as the subway is generally provided with the wireless hot spots, the terminal equipment can scan at least for multiple times during the time of waiting for the train after the user enters the station with the terminal equipment, and the hot spot information of the wireless hot spot of the subway is scanned and detected.
The terminal equipment WLAN module also comprises a connection state and a non-connection state in the working state, wherein when the terminal equipment is accessed to the wireless hotspot and can surf the internet based on the accessed wireless hotspot, the WLAN module of the terminal equipment is in the connection state, and if the terminal equipment is not accessed to the wireless hotspot, the WLAN module is in the non-connection state. In some embodiments, in the disconnected state, the WLAN module may detect the hotspot information based on a default interval time, for example, once every 15 seconds, and the default interval time may be fixed or may be adjusted by a user). In addition, as an embodiment, if the terminal device is in the non-sleep state, the frequency of detection is higher than that in the sleep state. Therefore, by taking a bus scene as an example, the terminal device can scan the wireless hotspot of the bus or the subway before the bus/subway arrives/stops, and detect the hotspot information of the wireless hotspot.
S112: and when target hotspot information matched with the preset hotspot information is detected, determining the position information of the terminal equipment according to the target hotspot information.
The preset hotspot information is prestored hotspot information. In some embodiments, the preset hotspot information may include an SSID of the wireless hotspot, and may also include a partial string in the SSID of the wireless hotspot, for example, the SSID may be, for example, BUS-freeWiFi, SUBWAY-WiFi, CCB-WiFi, BC-WiFi, Mall-WiFi, or the like, and the preset hotspot information may be the SSID or the partial string of the SSID, such as BUS, SUBWAY, CCB, BC, Mall. Therefore, when the hotspot information is matched with the preset hotspot information, the target hotspot information can be determined through partial keyword matching, the coverage rate of the preset hotspot information on hotspot information matching is improved, and the usability is improved. In one example, the hotspot attributes such as the usage scenario of the wireless hotspot corresponding to the SSID may be determined according to the SSID of the hotspot information, for example, based on the foregoing example, the wireless hotspot corresponding to the SSID may be determined to be used for public transportation according to the SSID, such as BUS-freeWifi, similarly, the wireless hotspot corresponding to the SSID may be determined to be used for SUBWAY according to SUBWAY-WiFi, the wireless hotspot corresponding to the SSID may be determined to be used for bank according to CB-WiFi, and the wireless hotspot corresponding to the SSID may be determined to be used for shopping Mall according to Mall-WiFi.
In other embodiments, the preset hotspot information may include an SSID and a MAC address of the wireless hotspot, the detected hotspot information also includes the SSID and the MAC address, and a scene of the wireless hotspot corresponding to the SSID may be determined based on the SSID and the MAC address. In some examples, based on the big data collection, the geographical location of the wireless hotspot, the attribute of the hotspot such as the unit to which the wireless hotspot belongs can be judged according to the MAC address of the wireless hotspot. As an implementation manner, the terminal device may request, based on Google Mobile Service (GMS) of Google, to acquire a hotspot attribute corresponding to hotspot information from the GMS according to the hotspot information of the wireless hotspot. As another implementation, a database may also be built locally on the terminal device or in the server, so that the hotspot attribute corresponding to the hotspot information can be obtained according to the hotspot information.
In an embodiment, the terminal locally stores a preset database, the preset database includes at least one preset hotspot information, and the preset database may further include a hotspot attribute corresponding to each preset hotspot information. In one example, the preset database includes at least one preset hotspot message and a hotspot attribute corresponding to each preset hotspot message, so that the terminal device can obtain the hotspot attribute corresponding to the preset hotspot message based on matching with the preset hotspot message. Taking a public transportation scene as an example, the preset hotspot information may include an SSID of a preset hotspot, such as EGOBUS-WiFi, and the hotspot attribute corresponding to the preset hotspot information may include a city where the preset hotspot is located, such as shenzhen, so that when the terminal device detects that the hotspot information includes the SSID, such as EGOBUS-WiFi, the terminal device may determine that the city where the target hotspot corresponding to the target hotspot information is located is the shenzhen by matching with the preset hotspot information. Therefore, the preset database is stored in the terminal equipment so as to still be capable of quickly inquiring and matching when the network quality is poor, and the inquiring and matching efficiency is improved
In another example, the terminal device stores at least one preset hotspot message, and since SSIDs of some wireless hotspots contain information that can be used to determine hotspot attributes, for example, in a bus scenario, the hotspot message may include an SSID such as SZBUS-WiFi, and according to "SZBUS" in the SSID, the hotspot attribute of the hotspot message may be obtained, such as that a city where the wireless hotspot corresponding to the SSID is located is shenzhen. Therefore, the method can be realized only by storing the preset hotspot information. Therefore, the query and matching efficiency is improved, the storage pressure of the terminal equipment is reduced, and the operation processing efficiency of the terminal equipment is improved.
In other embodiments, the server is pre-configured with a preset database, where the preset database includes at least one preset hotspot message and may further include a hotspot attribute corresponding to each preset hotspot message. When the terminal device detects the hotspot information, a query request can be sent to the server, the server queries whether preset hotspot information matched with the hotspot information exists or not according to the hotspot information and returns a query result to the terminal device, the terminal device receives the query result returned by the server, whether the detected hotspot information is matched with the preset hotspot information or not can be determined, and the hotspot information which is successfully matched is taken as target hotspot information. The query result may include a result of whether to query, and when querying, the query result may further include the hotspot attribute of the matched preset hotspot information. The preset database is stored in the server, the terminal equipment is inquired and matched through the server, the storage pressure on the terminal equipment can be reduced, and the preset database is convenient to update when stored in the server, so that more and more comprehensive hot spot information can be continuously covered, and the usability is improved.
When the terminal device matches the detected hotspot information with the preset hotspot information and matches the detected hotspot information with the preset hotspot information successfully, the hotspot information which is matched successfully can be used as target hotspot information, and the position information of the terminal device is determined according to the target hotspot information. In some embodiments, the location information may be a relative distance between the terminal device and a target hotspot corresponding to the target hotspot information, or may be an absolute distance.
In one embodiment, the location information of the terminal device may be a relative distance between the terminal device and the target hotspot. In one example, according to the target hotspot information, the signal intensity corresponding to the target hotspot information detected by the terminal device can be determined, and according to the signal intensity, the relative distance between the terminal device and the target hotspot is determined and taken as the position information of the terminal device. The detailed description of the embodiments can be seen in the following examples, which are not repeated herein.
In another embodiment, the location information of the terminal device may also be an absolute distance between the terminal device and the target hotspot. In one example, the terminal device may obtain a geographic location, such as latitude and longitude coordinates, of the terminal device as location information based on the positioning function, and the terminal device may further obtain a MAC address of the target hotspot according to the target hotspot information, and determine the geographic location of the target hotspot according to the MAC address, thereby obtaining the geographic locations of the terminal device and the target hotspot, determining an absolute distance between the terminal device and the target hotspot, and using the absolute distance as the location information of the terminal device. The detailed description can also be seen in the following embodiments, which are not repeated herein.
In some other embodiments, the location information of the terminal device may also be determined according to the geographical location of the terminal device. In one example, the terminal device obtains its geographic location, such as latitude and longitude coordinates, and uses the geographic location as the location information of the terminal device.
S113: and when the position information meets a preset effective condition, controlling the terminal equipment to start a payment function corresponding to the target hotspot information.
In some embodiments, the manner of determining whether the position information satisfies the preset valid condition is different according to the difference of the position information. The position information of the terminal equipment can be used for representing the distance between the terminal equipment and a target hotspot corresponding to the target hotspot information, and when the distance meets a certain distance range, the payment function corresponding to the target hotspot information is started, so that false triggering can be effectively avoided, the accuracy of judgment on the intention of a user whether to start the payment function is improved, and it can be understood that the smaller the set distance range is, the less the position information is covered by the preset effective condition, the more cautious the starting is, and the lower the probability of false triggering is.
The terminal device can support multiple payment functions, each payment function can correspond to different payment applications, and different payment applications can correspond to different scenes, for example, the bus payment function is realized by using the bus payment application in a bus scene. Because the terminal device detects the target hotspot information matched with the preset hotspot information and when the position information meets the preset effective condition, the possibility that the user needs to pay is high, and the terminal device starts the payment function corresponding to the target hotspot information at the moment, the intention of the user that the payment needs to be started can be accurately judged, the payment function corresponding to the target hotspot information can be automatically started, the complicated operation is avoided, and the automatic selective payment can be realized without the manual operation of the user.
In an example, taking a BUS scene as an example, the target hotspot information includes an SSID such as BUS-freeWiFi, and when the position information satisfies a preset effective condition, it may be considered that a request for payment by using a BUS card exists on a BUS, at a BUS station, or near the BUS station, and at this time, a BUS payment function may be started so that the user can pay for getting on the BUS. Therefore, the terminal equipment can judge the current scene according to the hotspot information and control the starting of the payment function corresponding to the scene, so that the switching of the payment function is automatically controlled, manual operation of a user is not needed, and the payment efficiency is greatly improved.
In some embodiments, each payment function may further include one or more payment modes, the payment function may include a bus payment function including one or more bus payment modes, a bank payment function including one or more bank payment modes, and the like. Taking the bus payment function as an example, the bus payment mode may correspond to a bus card, for example, if the terminal device is required to support two types of bus card payment, the bus payment mode corresponding to the two types of bus cards may be preconfigured, for example, the bus card may be Shenzhen tong or Yangcheng tong, and the bus payment function may include a bus payment mode for performing payment based on Shenzhen tong and a bus payment mode for performing payment based on Yangcheng tong.
It should be noted that "payment function" and "payment mode" are only two terms used in the embodiments of the present application, and their representative meanings are already described in the embodiments of the present application, and their names do not constitute any limitation to the embodiments of the present application; it is understood that in other embodiments of the present application, the above words may also be used by other names.
In some embodiments, the terminal device may be used for multiple payment modes, such as two-dimensional code payment and NFC payment, and the payment modes are different based on different payment modes according to different payment modes of the terminal device, for example, the payment mode based on two-dimensional code payment, and the bus payment mode may correspond to two-dimensional codes corresponding to different bus cards; and based on a payment mode of NFC payment, the bus payment mode can correspond to a radio frequency card simulated by the NFC module based on the bus card.
In an implementation manner, the terminal device may be used for two-dimensional code payment, in a two-dimensional code payment mode, the terminal device needs to display a two-dimensional code for payment, and the reading device may perform interaction of a payment process by scanning the two-dimensional code displayed on a screen of the terminal device. When the location information of the terminal device meets the preset effective condition, starting a specific implementation mode of a payment function corresponding to the target hotspot information may include: and determining a payment application corresponding to the target hotspot information, and displaying a payment page of the payment application, wherein the payment page is used for being read by the reading equipment for payment.
For example, when the terminal device detects that the target hotspot information matched with the preset hotspot information includes an SSID (service set identifier), such as BUS-freeWiFi, the user can be considered to be in a BUS scene at present and possibly need to take a BUS, then the position information of the terminal device is acquired, when the position information meets a preset effective condition, the user can be considered to need to pay by BUS, and at the moment, a BUS payment function corresponding to the target hotspot information can be started, that is, a payment page of a BUS payment application corresponding to the target hotspot information is displayed, so that the reading device can read and complete payment. Therefore, the scene of the user can be judged according to the hotspot information without manual operation of the user, whether the user needs to pay is judged by combining the position information of the terminal equipment, when the position information meets the preset effective condition, the fact that the user needs to start the payment function in the scene is judged, the payment function corresponding to the target hotspot information is started at the moment, automatic payment preparation is achieved, the user does not need to manually select the required payment function before paying, the payment process is rapidly completed, and the payment efficiency is improved.
In another embodiment, the terminal device may be used for NFC payment, and in the card simulation mode of the NFC module, one or more radio frequency cards (hereinafter, referred to as simulation cards for convenience of description) may be simulated by the NFC module to support different payment modes, for example, the terminal device may simulate a plurality of bus cards to support different bus payment modes and simulate a plurality of bank cards to support different bank payment modes by the NFC module. And the terminal equipment can interact with the reading equipment supporting the NFC payment based on the analog card to complete the payment.
It should be noted that there are three main forms for the terminal device to implement NFC Card simulation, one is based on a Secure Module (SE), where the Secure Module is used to securely store sensitive information and provide a Secure execution environment for transaction, and may be integrated in a processor of the terminal device, or a Subscriber Identity Module (SIM) Card, or a Secure Digital Memory Card (SD) of the terminal device, or may be an independent chip, or the like; secondly, based on Host Card Emulation (HCE), various cards can be emulated by using app (application) application program on the Host to realize the Host Card Emulation function; and thirdly, a Universal Integrated Circuit Card (UICC) based. The NFC module stores routing information, the routing information comprises a routing position corresponding to the card simulation based on at least one form, and after receiving the AID instruction, the NFC module can send the AID instruction to the corresponding routing position based on the routing information, so that the module at the routing position executes the operation corresponding to the instruction.
As an embodiment, the security module may also be replaced by an Embedded security module (eSE), where the eSE is more Secure than the SE, and the hardware security level of the eSE is higher than EAL6 +. Therefore, the terminal equipment adopts the eSE, so that the payment security of the terminal equipment is higher. Specifically, the eSE may be installed with various types of card simulation applications, and when receiving the AID instruction sent by the NFC module, the eSE may start a corresponding card simulation application (APPLet) and activate a simulation card in the card simulation application to perform payment.
Referring to fig. 3, an interaction diagram of data interaction between a card emulation and a reading device based on two forms of an eSE and an HCE according to an embodiment of the present application is shown, as shown in fig. 3, a terminal device includes an NFC module, a security module, and a Host processor (Host CPU), optionally, the security module may be an eSE, the Host processor is configured to implement the card emulation based on the HCE form, a card emulation application runs on the security module and the Host processor, the reading device supports an NFC function, and can send an AID instruction to the terminal device, the terminal device can obtain the AID instruction based on the NFC module, and route the AID instruction into the security module or the Host processor, so as to start a function of the card emulation application in the security module or the Host processor, for example, start a payment function of a payment application in the security module.
In one example, the terminal device includes an NFC module and a security module, such as including an NFC module and an eSE, the eSE having installed thereon a card simulation application for transit payment, such as a transit payment application. For example, the terminal device detects that the target hotspot information matched with the preset hotspot information includes an SSID (service set identifier), such as BUS-freeWiFi, it can be considered that the user is currently in a BUS scene and may need to take a BUS, then the position information of the terminal device is acquired, and when the position information meets a preset effective condition, it can be considered that the user needs to pay by taking the BUS, at this time, a default route of the NFC module can be switched to the eSE, and the eSE is controlled to start a BUS payment application to realize a BUS payment function, and a BUS card in the BUS payment application is activated to activate a BUS payment mode, such as activating a deep kinjen can activate a deep kinjen payment mode, so that the BUS payment function based on the BUS payment mode is started, and when the terminal device approaches the reading device, payment can be performed based on the deep kinjen payment mode of the BUS payment function. Because the user is often required to judge the analog card to be selected according to a specific scene when NFC payment is used at present, the operation steps performed in the terminal equipment in the process are complex, the interaction capacity between the terminal equipment and the user is reduced, and the payment efficiency is low, therefore, the scene of the user is judged through hotspot information, whether the user needs to pay is judged by combining the position information of the terminal equipment, and when the position information meets the preset effective condition, the user needs to start the payment function under the scene, at the moment, the eSE is controlled to start the payment function corresponding to the target hotspot information, so that the default route switching is completed and the payment function corresponding to the target hotspot information is started before the user pays, the payment mode corresponding to the target hotspot information is activated, the safe automatic 'card-selecting' payment is realized, and the required payment function does not need to be manually selected before the user pays, therefore, the payment process is completed quickly, and the payment efficiency is improved.
In other examples, the terminal device may not include the security module, and the payment function is initiated based on the HCE or the HICC, and when the reading device supports the HCE or the UICC, the method provided in the embodiment of the present application may still be applied.
Compared with the prior art that the user needs to judge the card to be selected according to a specific scene, the operation steps performed in the mobile device in the process are very complicated, the intelligent interaction capacity between the mobile device and the user is seriously reduced, and the payment efficiency is low.
In addition, because public transportation systems of different cities or provinces are independent, when hotspot information of a public transportation category is detected and hotspot information of a non-public transportation category is detected, a difference exists when the terminal device starts a payment function corresponding to target hotspot information, specifically, referring to fig. 4, a terminal payment method provided by the embodiment of the present application is shown, and the method includes: s401 to S407.
S401: and detecting hotspot information.
S402: and when target hotspot information matched with the preset hotspot information is detected, determining the position information of the terminal equipment according to the target hotspot information.
In an embodiment, when target hotspot information matched with preset hotspot information is detected, determining a specific embodiment of location information of a terminal device according to the target hotspot information may include: when target hotspot information matched with preset hotspot information is detected, acquiring the signal intensity of the target hotspot information; and determining the position information of the terminal equipment according to the signal intensity.
In one example, when the terminal device detects the target hotspot information, the terminal device may obtain a signal strength corresponding to the target hotspot information, and according to the strength of the signal strength, the distance from the terminal device to the target hotspot, that is, the relative distance between the terminal device and the target hotspot may be determined, and the relative distance is used as the location information of the terminal device. In one example, a mapping relationship between the signal strength and the relative distance may be stored in advance, and according to the signal strength, the relative distance corresponding to the signal strength may be determined, so as to determine the location information of the terminal device. Therefore, the terminal equipment can still obtain the position information of the terminal equipment without starting positioning or having a positioning function, and is used for judging whether to start the payment function, so that the power consumption can be reduced, and the calculation complexity and the calculation efficiency can be improved because the distance between the equipment position and the hot spot position does not need to be calculated.
In another embodiment, when target hotspot information matched with preset hotspot information is detected, the specific embodiment of determining the location information of the terminal device according to the target hotspot information may include: when target hotspot information matched with preset hotspot information is detected, acquiring a hotspot position of the target hotspot information; and determining the position information of the terminal equipment according to the hot spot position.
In one example, the terminal device may obtain a hotspot location of the target hotspot information according to the MAC address of the target hotspot information based on GSM, where the hotspot location is a geographic location of a target hotspot corresponding to the target hotspot information. The terminal equipment acquires the current geographic position as the position information of the terminal equipment, and can acquire the absolute distance between the target hotspot and the terminal equipment according to the hotspot position and the position information of the terminal equipment, and the absolute distance is used as the position information of the terminal equipment. Therefore, the absolute distance between the target hotspot and the terminal equipment is used as the position information of the terminal equipment, so that the judgment accuracy of whether the position information meets the preset effective condition can be improved, and the accuracy of starting the payment function corresponding to the target hotspot information is also improved.
Further, in some embodiments, when target hotspot information matched with preset hotspot information is detected, determining a specific embodiment of the location information of the terminal device according to the target hotspot information may include: judging whether the position of the hot spot is kept unchanged within a first preset duration; and if the position of the hot spot is kept unchanged within the first preset duration, determining the position information of the terminal equipment according to the position of the hot spot.
In one example, if the hotspot location does not remain unchanged for the first preset duration, the subsequent steps may not be executed, and the hotspot information may be continuously detected, so that the payment function corresponding to the target hotspot information may not be started when the hotspot location is continuously changed. Taking a bus scene as an example, when a user does not need to take a bus and acts on the road, the terminal device may detect hot spot information of the bus which is running on the road, and at the moment, the bus may only pass through without stopping to carry passengers, so that the position information of the terminal device is determined by judging whether the position of the hot spot is kept unchanged within a first preset duration time and when the position of the hot spot is kept unchanged. Optionally, when the position of the hot spot is continuously changed, that is, only the passing bus is detected, and the bus stop is not detected, the subsequent steps are not executed, so that the false triggering probability can be reduced, the power consumption of equipment is saved, and the system availability is improved.
S403: and when the position information meets the preset effective condition, acquiring the category corresponding to the target hotspot information.
In some embodiments, when the location information satisfies the preset effective condition, the specific implementation of obtaining the category corresponding to the target hotspot information includes: judging whether the position information meets a preset effective condition or not; and if the position information meets the preset effective condition, acquiring the category corresponding to the target hotspot information. In some embodiments, if the location information does not satisfy the predetermined valid condition, the detection of the hotspot information may be performed in return, thereby saving power consumption.
The category is used to characterize a scene category corresponding to the hotspot information, and may be a category identifier used to characterize the scene category. The terminal equipment can determine the category corresponding to the category identification by acquiring the category identification of the target hotspot information, so as to acquire the category corresponding to the target hotspot information.
In one embodiment, the hotspot information includes an SSID, and the category corresponding to the target hotspot information can be acquired according to the SSID of the target hotspot information. For example, according to the fact that the SSID of the target hotspot information is BUS-freeWiFi, the category corresponding to the target hotspot information is determined to be a public traffic category according to the BUS of the BUS represented in the SSID. For another example, the SSID of the target hotspot information is Bank-WiFi, and the category corresponding to the target hotspot information can be determined to be the Bank category according to the "Bank" that represents the Bank in the SSID.
In some embodiments, the terminal device may further obtain a sub-category of the target hotspot information according to the SSID of the target hotspot information, for example, the bank category further includes a sub-category corresponding to each big bank, and when the terminal device queries whether the SSID has an identifier corresponding to the identifier of the sub-category, the sub-category of the target hotspot information, that is, a bank specifically corresponding to the sub-category, may be determined.
In another embodiment, the category is stored in a preset database, specifically, at least one preset hotspot message and a category corresponding to each preset hotspot message are stored in the preset database in advance, and when the terminal device searches for target hotspot messages matched with the preset hotspot messages based on the preset database, the category corresponding to the matched preset hotspot messages can be acquired as the category corresponding to the target hotspot messages.
S404: and judging whether the category is a public transportation category.
The category may be a category identifier for characterizing a category of the scene, and whether the category is a public transportation category may be determined based on whether the category identifier matches a category identifier of the public transportation category,
in an embodiment, the terminal device obtains the category corresponding to the target hotspot information according to the SSID of the target hotspot information, and at this time, as one mode, it may directly determine whether the category is a public transportation category based on the SSID, and determine whether the category is a public transportation category according to whether the SSID of the target hotspot information matches the public transportation category. And judging whether the SSID has characters or character strings related to the public traffic category to judge whether the category is the public traffic category. For example, a character or a character string corresponding to a public transportation category, such as "bus" indicating a bus, "or" subway "indicating a subway, is stored in advance, and it is determined whether the previously stored character or character string exists in the SSID. As another mode, the type of the acquired target hotspot information can be judged,
in another embodiment, the terminal device obtains the category corresponding to the target hotspot information based on the preset database, and at this time, whether the category is a public transportation category or not can be judged according to the category of the target hotspot information. Whether the category of the target hotspot information is consistent with the public transportation category or not can be judged, and when the category is consistent with the public transportation category, the category can be judged to be the public transportation category, and when the category is not consistent with the public transportation category, the category can be judged not to be the public transportation category.
In this embodiment, after determining whether the category is a public transportation category, the method may start a payment function corresponding to the category according to a determination result, and specifically may include:
if the category is the public transportation category, step S405 may be executed;
if the category is not the public transportation category, step S407 can be executed.
S405: and acquiring the hotspot attribute of the target hotspot information.
And if the category is the public transport category, acquiring the hotspot attribute of the target hotspot information. The hotspot attribute can be used for determining an effective use area of the target hotspot corresponding to the target hotspot information, and the effective use area can correspond to different cities or provinces. In one example, the transit systems of different cities or provinces are independent, and the transit cards which can support payment in different cities or provinces cannot be used universally, for example, Shenzhen can use Shenzhen to pay for taking a transit, but cannot use Shencheng to pay, so that the effective use region corresponding to the target hotspot information can be obtained by obtaining the hotspot attribute of the target hotspot information.
As an embodiment, the SSID of the hotspot information may include a character or a character string that characterizes the valid usage region, and at this time, the hotspot attribute of the target hotspot information may be determined according to the SSID of the target hotspot information, for example, the SSID is SZBUS-WiFi, and according to the SSID, the valid usage region where the target hotspot information can be obtained by "SZ" is Shenzhen, and the valid usage region is used as the hotspot attribute.
As another embodiment, the preset database stores hotspot attributes corresponding to the preset hotspot information, and the terminal device may obtain, based on the preset database, hotspot attributes corresponding to the preset hotspot information corresponding to the target hotspot information, and add the hotspot attributes as the hotspot attributes of the target hotspot information.
As another implementation manner, the terminal device may obtain a geographic location of the target hotspot information, obtain an area corresponding to the geographic location as an effective use area, and use the effective use area as a hotspot attribute of the target hotspot information. Therefore, an effective use region is determined according to the actual geographic position of the target hotspot information, for example, the target hotspot information includes a MAC address and an SSID of the target hotspot, such as SZBUS-WiFi, the terminal device can obtain the geographic position of the target hotspot corresponding to the target hotspot information based on GSM according to the MAC address of the target hotspot information, and use the geographic position as the geographic position of the target hotspot information, for example, the geographic position corresponds to a longitude and latitude coordinate located in shenzhen south mountain, the region corresponding to the geographic position can be obtained as shenzhen, and the shenzhen is used as the effective use region. Optionally, the area corresponding to the geographic location is obtained, the area can be determined according to the existing city or province of the public transportation system, the matching is performed according to the geographic location and the public transportation system, the matched city or province is used as the area of the geographic location, and the area is used as an effective use area, namely the hotspot attribute of the target hotspot information.
S406: and starting a payment function corresponding to the category according to the hotspot attribute.
And when the category is the public transportation category, the payment function corresponding to the category is the payment function corresponding to the public transportation category and is marked as the public payment function. The public payment function comprises one or more public payment modes, different public payment modes can correspond to different simulation cards and different hotspot attributes, for example, the public payment mode can comprise but is not limited to a Shenzhen payment mode based on Shenzhen payment, and the corresponding hotspot attribute is Shenzhen; the corresponding hotspot attribute of the Yangchengtong payment mode based on the Yangchengton payment is Guangzhou.
In an example, the specific implementation of the terminal device starting the payment function corresponding to the category according to the hotspot attribute may include: and determining a bus payment mode corresponding to the hotspot attribute according to the hotspot attribute, and starting a bus payment function based on the bus payment mode so as to automatically select a simulation card corresponding to the bus payment mode to wait for executing payment. For example, if the hotspot attribute of the target hotspot information corresponds to Shenzhen, it can be determined that the bus payment mode corresponding to Shenzhen is a Shenzhen bus payment mode, and the bus payment function is started based on the Shenzhen bus payment mode, so that when the category of the target hotspot information is a public traffic category, the payment function corresponding to the category is started in combination with the hotspot attribute and the category of the target hotspot information, and the supported payment mode can be accurately selected in a bus scene, and the payment mode does not need to be switched by a user through manual operation, so that automatic and accurate selection is realized, a payment process is quickly completed, and user experience of the terminal device in the bus scene is improved.
In another example, the hotspot attribute includes a geographic location of the target hotspot information, and the specific implementation manner of starting the payment function corresponding to the category according to the hotspot attribute is as follows: and starting a payment function corresponding to the category according to the geographic position. For example, the geographic position corresponds to a longitude and latitude coordinate located in the Shenzhen nan mountain, the region corresponding to the geographic position can be obtained as the Shenzhen, the Shenzhen is used as an effective use region, and the bus payment function is started based on the Shenzhen corresponding to the Shenzhen bus payment mode. Therefore, the terminal equipment can directly determine the bus payment mode under the bus payment function according to the position of the target hotspot information, and can automatically switch different bus payment modes under the bus payment function according to the position change of the target hotspot information, for example, a user arrives at Guangzhou from Shenzhen, when the hotspot information of Guangzhou is detected, and when the position information meets preset effective conditions, the bus payment function can be started based on the Yangchun bus payment mode, so that the user does not need manual operation, namely, when the Guangzhou needs to take the bus, the bus payment function corresponding to the Yangchun bus can be automatically started, the convenience and the efficiency of user terminal payment are greatly improved, and the terminal payment experience is improved.
S407: and starting a payment function corresponding to the category.
And if the category is not the public transport category, starting a payment function corresponding to the category. In one example, when the category of the target hotspot information is not a public transportation category, a payment function corresponding to the category is started, which is different from the particularity of a public transportation scene, and when other scenes are used, the payment function corresponding to the category can be started without acquiring the hotspot attribute of the target hotspot information. For example, if the SSID of the target hotspot information is CCB-WiFi, the type of the SSID is a bank type, and the SSID is not a public transportation type, the payment function corresponding to the bank type may be started, and the payment function is recorded as a bank payment function.
In some embodiments, the bank payment function includes one or more payment modes, denoted as bank payment modes, with different bank payment modes corresponding to different banks or bank cards.
It should be noted that, for the parts not described in detail in the above steps, reference may be made to the foregoing embodiments, and details are not described herein again.
The terminal payment method provided by this embodiment considers that public transportation systems of different cities or provinces are independent, so when hot spot information of a public transportation category is detected and when hot spot information of a non-public transportation category is detected, a difference exists when a terminal device starts a payment function corresponding to target hot spot information, so when the position information meets a preset effective condition, a category corresponding to the target hot spot information is obtained to determine a payment function to be started, whether the category is the public transportation category is judged, and when the category is the public transportation category, a payment mode under the payment function to be started is determined based on a hot spot attribute representing an effective use area of the target hot spot, and the payment function corresponding to the public transportation category is started, so that automatic 'card-selecting' payment in public transportation payment is realized without manual operation of a user, and when the category is not the public transportation category, the corresponding payment function is directly started according to the category. Therefore, various scenes are supported, and the terminal payment experience is further optimized.
Referring to fig. 5, a terminal payment method provided in the embodiment of the present application is shown, where the method includes: s501 to S504.
S501: and detecting hotspot information.
S502: and when target hotspot information matched with the preset hotspot information is detected, determining the position information of the terminal equipment according to the target hotspot information.
S503: and judging whether the position information is in a preset position range.
And judging whether the position information is in a preset position range, wherein the preset position range is used for judging whether the terminal device is close enough to a target hotspot corresponding to the target hotspot information, and for example, the preset position range may be within 30 meters from the target hotspot. If the position information is within the preset position range, the distance between the terminal device and the target hotspot is short, and if the position information is not within the preset position range, the distance between the terminal device and the target hotspot is long. And when the position information is within the preset position range, starting a payment function corresponding to the target hotspot information. When the terminal equipment is far away from the target hotspot, the probability that the user needs to execute the payment function corresponding to the target hotspot information is low, so that the false triggering probability can be effectively reduced, the accuracy rate of starting the function switching of the payment function is improved, frequent switching is avoided, and the power consumption can be reduced.
In this embodiment, after determining whether the position information is within the preset position range, the method further includes:
if the position information is within the preset position range, step S504 may be executed;
if the position information is not within the preset position range, the step 401 may be executed again to continue to detect the hotspot information.
S504: and starting a payment function corresponding to the target hotspot information.
And if the position information is within the preset position range, starting a payment function corresponding to the target hotspot information.
In this embodiment, the detailed description of step S504 can refer to step S113, step S403, and step S407 in the foregoing embodiment, and will not be repeated herein.
It should be noted that, for the parts not described in detail in the above steps, reference may be made to the foregoing embodiments, and details are not described herein again.
In the terminal payment method provided by this embodiment, on the basis of the foregoing embodiment, when determining whether the position information meets the preset effective condition, by first determining whether the position information is within the preset position range, and when the position information is within the preset position range, starting the payment function corresponding to the target hotspot information, because the probability that the user will execute the payment function corresponding to the target hotspot information is low when the terminal device is far away from the target hotspot, it is determined whether to start the payment function corresponding to the target hotspot information by determining whether the position information is within the preset position range, so that the false trigger probability can be effectively reduced, the accuracy of starting the payment function and performing the function switching can be improved, frequent switching can be avoided, and power consumption can be reduced.
In addition, in some embodiments, when determining whether the position information meets the preset effective condition, the hotspot position may be determined first before the position information of the terminal device is obtained, and when the hotspot position is not changed, it is determined whether the position information of the terminal device is within the preset position range, so as to avoid power consumption caused by executing subsequent steps when the bus only passes but does not stop, and further improve system availability. Referring to fig. 6, a terminal payment method provided in the embodiment of the present application is shown, specifically, the method includes: s601 to S606.
S601: and detecting hotspot information.
S602: and when target hotspot information matched with the preset hotspot information is detected, determining the position information of the terminal equipment according to the target hotspot information.
S603: and acquiring the hotspot position of the target hotspot information.
In some embodiments, the hotspot location of the target hotspot information may be obtained based on the GSM provided by *** according to the MAC address of the target hotspot information.
S604: and judging whether the position of the hot spot is kept unchanged within a first preset duration.
In this embodiment, after determining whether the hotspot location remains unchanged within the first preset duration, the method further includes:
if the hotspot position remains unchanged within the first preset duration, step S605 may be executed;
if the hotspot position does not remain unchanged within the first preset duration, the method may return to step S601 to continue to detect the hotspot information.
S605: and judging whether the position information is in a preset position range.
And if the position of the hot spot is kept unchanged within the first preset duration, judging whether the position information is within a preset position range.
In this embodiment, after determining whether the position information is within the preset position range, the method further includes:
if the position information is within the preset position range, step S606 may be executed;
if the position information is not within the preset position range, the step S601 may be executed to continue to detect the hotspot information.
S606: and starting a payment function corresponding to the target hotspot information.
And if the position information is within the preset position range, starting a payment function corresponding to the target hotspot information.
It should be noted that, for the parts not described in detail in the above steps, reference may be made to the foregoing embodiments, and details are not described herein again.
In addition, in some embodiments, when determining whether the location information meets the preset effective condition, the location information of the terminal device may be obtained first, and if the location information is within the preset location range, the time that the terminal device stays within the preset location range may be obtained again, and the payment function corresponding to the target hotspot information is started only when the terminal device stays overtime, so that the accuracy of determining the payment intention of the user may be improved, and false triggering caused by the fact that the payment function corresponding to the target hotspot information is still started when the user only passes through a bus station and has no intention of buses such as a bus station may be avoided, thereby avoiding unnecessary power consumption and improving usability. Specifically, please refer to fig. 7, which illustrates a terminal payment method provided in the embodiment of the present application, where the method includes: s701 to S706.
S701: and detecting hotspot information.
S702: and when target hotspot information matched with the preset hotspot information is detected, determining the position information of the terminal equipment according to the target hotspot information.
S703: and judging whether the position information is in a preset position range.
In this embodiment, after determining whether the position information is within the preset position range, the method further includes:
if the position information is within the preset position range, step S704 may be executed;
if the position information is not within the preset position range, the step S701 may be executed again to continue to detect the hotspot information.
S704: and acquiring the duration of the position information within the preset position range as the stay time.
And if the position information is in the preset position range, acquiring the duration time of the position information in the preset position range as the stay time. The length of the stay time can represent the length of the stay time of the user in the preset position range. For example, in a bus scene, if the terminal device detects hotspot information of a bus and the terminal device is located in a preset position range, the terminal device may be considered to be near the bus, and the longer the terminal device stays in the preset position range, the longer the user stays near the bus.
The terminal device may acquire the geographical position of the terminal device itself as the position information based on a positioning module such as a GPS module. As an implementation manner, the terminal device may obtain the position information of the terminal device in real time, and after determining whether the position information is within the preset position range, determine that the position information is within the preset position range at a first time, and accumulate the duration time, that is, the accumulated staying time, until the time when the position information is not within the preset position range is monitored, end the accumulation, and obtain the staying time of the accumulation.
As another embodiment, the terminal device may further obtain the location information at intervals according to a specified time interval, determine whether the location information obtained each time is within a preset location range, obtain a second time when the location information is not within the preset location range, and further obtain a duration between the first time and the second time as the retention time.
Further, in some embodiments, if the staying time exceeds the preset time threshold, the accumulation may be ended in advance, and the subsequent steps may be executed.
S705: and judging whether the retention time exceeds a preset time threshold value.
The preset time threshold may be preset by a program or may be user-defined. Alternatively, the preset time threshold may be 1 minute, 5 minutes, etc., and is not limited herein. When the staying time exceeds the preset time threshold, the payment function corresponding to the target hotspot information is started, so that it can be understood that the longer the preset time threshold is, the more cautious the judgment of starting the payment function corresponding to the target hotspot information is, and the higher the accuracy of judging whether the user has the payment intention is. In addition, with the reduction of the preset time threshold, the judgment rate of the payment intention can be ensured, and the judgment efficiency is improved, so that the payment function corresponding to the target hotspot information can be started more quickly when the payment function is required to be started.
In this embodiment, after determining whether the staying time exceeds the preset time threshold, the method further includes:
if the staying time exceeds the preset time threshold, step S706 may be executed;
if the staying time does not exceed the preset time threshold, the step S701 may be executed again to continue to detect the hotspot information.
S706: and if the retention time exceeds a preset time threshold, starting a payment function corresponding to the target hotspot information.
If the stay time in the preset position range exceeds the preset time threshold, the user can be considered to wait for the bus and have a strong intention of bus payment, and at the moment, the payment function corresponding to the target hotspot information is started, so that the accuracy rate of judging the payment intention of the user can be improved, the false triggering caused by starting the payment function corresponding to the target hotspot information when the user only passes through the bus station and has no intention of waiting at the bus station and the like can be avoided, unnecessary power consumption is avoided, and the usability is improved.
It should be noted that, for the parts not described in detail in the above steps, reference may be made to the foregoing embodiments, and details are not described herein again.
In addition, in some embodiments, when determining whether the location information meets a preset effective condition, the location information of the terminal device may be obtained first, if the location information is within a preset location range, the hotspot location of the target hotspot information may be obtained again, and when the hotspot location is still, the staying time of the terminal device within the preset location range is obtained again, and when the staying time is overtime, the payment function corresponding to the target hotspot information is started. Therefore, whether the hot spot position of the target hot spot information is kept unchanged within the specified duration is determined before whether the user stays overtime is judged, and the stay time is obtained to judge whether the user stays overtime when the stay time is not changed, so that the false triggering caused by starting the payment function under the condition that the user only passes through a bus station and the bus only passes through the user but does not stop can be avoided, the judgment accuracy of the payment intention of the user is further improved, the starting accuracy is improved, and the system availability is further improved. Specifically, please refer to fig. 8, which illustrates a terminal payment method provided in the embodiment of the present application, where the method includes: s801 to S808.
S801: and detecting hotspot information.
S802: and when target hotspot information matched with the preset hotspot information is detected, determining the position information of the terminal equipment according to the target hotspot information.
S803: and judging whether the position information is in a preset position range.
In this embodiment, after determining whether the position information is within the preset position range, the method further includes:
if the position information is within the preset position range, step S804 may be executed;
if the location information is not within the preset location range, the process may return to step S801 to continue detecting the hotspot information.
S804: and acquiring the duration of the position information within the preset position range as the stay time.
And if the position information is in the preset position range, acquiring the duration time of the position information in the preset position range as the stay time.
S805: and acquiring the hotspot position of the target hotspot information.
S806: and judging whether the position of the hot spot is kept unchanged within a first preset duration.
In this embodiment, after determining whether the hotspot location remains unchanged within the first preset duration, the method further includes:
if the hot spot position is kept unchanged within the first preset duration, step S807 may be executed;
if the hotspot location does not remain unchanged within the first preset duration, the process may return to step S801 to continue detecting the hotspot information.
S807: and judging whether the retention time exceeds a preset time threshold value.
And if the position of the hot spot is kept unchanged within the first preset duration, judging whether the retention time exceeds a preset time threshold.
In this embodiment, after determining whether the staying time exceeds the preset time threshold, the method further includes:
if the staying time exceeds the preset time threshold, step S806 may be executed;
if the staying time does not exceed the preset time threshold, the process may return to step S801 to continue detecting the hotspot information.
S808: and starting a payment function corresponding to the target hotspot information.
And if the retention time exceeds a preset time threshold, starting a payment function corresponding to the target hotspot information.
It should be noted that, for the parts not described in detail in the above steps, reference may be made to the foregoing embodiments, and details are not described herein again.
In addition, in some embodiments, when determining whether the location information meets the preset effective condition, after the location information of the terminal device is obtained, it may be determined whether the location information remains unchanged for a period of time, and when the location information remains unchanged for a period of time, it may be determined whether the location information is within the preset location range, and when the location information is within the preset location range, the payment function corresponding to the target hotspot information is started. Therefore, when the target hotspot information matched with the preset hotspot information is detected, false triggering caused by the fact that the user starts the payment function corresponding to the target hotspot information only passing by the vicinity of the target hotspot can be avoided, power consumption caused by frequent starting is reduced, and system availability is improved. Referring to fig. 9, a terminal payment method provided in the embodiment of the present application is shown, specifically, the method includes: s901 to S905.
S901: and detecting hotspot information.
S902: and when target hotspot information matched with the preset hotspot information is detected, determining the position information of the terminal equipment according to the target hotspot information.
S903: and judging whether the position information is kept unchanged within a second preset duration.
In this embodiment, after determining whether the position information remains unchanged for the second preset duration, the method further includes:
if the position information remains unchanged for the second preset duration, step S904 may be executed;
if the location information does not remain unchanged for the second preset duration, the method may return to step S901 to continue to detect the hotspot information.
S904: and judging whether the position information is in a preset position range.
In this embodiment, after determining whether the position information is within the preset position range, the method further includes:
if the position information is within the preset position range, step S905 may be executed;
if the position information is not within the preset position range, the step S901 may be executed to continue to detect the hotspot information.
S905: and if the position information is within the preset position range, starting a payment function corresponding to the target hotspot information.
It should be noted that, for the parts not described in detail in the above steps, reference may be made to the foregoing embodiments, and details are not described herein again.
In addition, in some embodiments, the terminal device may further determine a relative distance between the terminal device and the target hotspot according to the signal strength of the target hotspot information, where the relative distance is used as the position information of the terminal device, and determine whether the position information is within a preset position range according to the signal strength, and if the position information is within the preset position range, start a payment function corresponding to the target hotspot information. Therefore, the absolute distance between the terminal equipment and the target hotspot does not need to be calculated, the calculation complexity is reduced, and the calculation efficiency is improved. Specifically, please refer to fig. 10, which illustrates a terminal payment method provided in the embodiment of the present application, where the method includes: s1001 to S1005.
S1001: and detecting hotspot information.
S1002: and when target hotspot information matched with the preset hotspot information is detected, acquiring the signal intensity of the target hotspot information.
When the WLAN module is in an open state, the terminal equipment can acquire the signal intensity of the target hotspot information.
S1003: and determining the position information of the terminal equipment according to the signal intensity.
The mapping relation between the signal intensity and the distance value is stored in advance, the distance value corresponding to the signal intensity can be determined according to the signal intensity, and the distance value is used as the position information of the terminal equipment. And the distance value corresponding to the signal intensity represents the relative distance between the terminal equipment and the target hotspot.
S1004: and judging whether the signal intensity exceeds the preset signal intensity.
The preset signal strength can be preset by a program or customized by a user, and the preset signal strength can be used for determining a scale for judging a scene or a payment intention of the user. After the signal intensity exceeds the preset signal intensity, the payment function corresponding to the target hotspot information is started, so that on one hand, the higher the preset signal intensity is, the closer the terminal device is to the target hotspot, and the accuracy of judging the payment intention of the user can be improved; on the other hand, the lower the preset signal intensity is, the farther the terminal device is from the target hotspot, and the judgment efficiency can be accelerated.
As an embodiment, the preset signal strength may be determined according to a distance value corresponding to a preset position range, so that whether the position information is within the preset position range may be determined by determining whether the signal strength exceeds the preset signal strength. For example, the preset location range is within 10 meters from the target hotspot, and the corresponding distance value is 10 meters, and the preset signal strength may be a detectable signal strength of the terminal device at a distance of 10 meters from the target hotspot, such as-60 dbm.
In this embodiment, after determining whether the signal strength exceeds the predetermined signal strength, the method further includes:
if the signal strength exceeds the predetermined signal strength, step S1005 may be executed;
if the signal strength does not exceed the predetermined signal strength, the method may return to step S1001 to continue detecting the hotspot information.
S1005: and starting a payment function corresponding to the target hotspot information.
If the signal intensity exceeds the preset signal intensity, starting a payment function corresponding to the target hotspot information
It should be noted that, for the parts not described in detail in the above steps, reference may be made to the foregoing embodiments, and details are not described herein again.
Further, when target hotspot information matched with the preset hotspot information is detected, the position information of the terminal device is determined according to the target hotspot information, matching with the target hotspot information according to the environment information can be obtained, and the position information of the terminal device is obtained when the target hotspot information is matched with the target hotspot information, so that the accuracy of scene determination and user intention judgment is further improved through auxiliary judgment of the environment information. Specifically, please refer to fig. 11, which shows a flowchart of a method of a terminal payment method according to an embodiment of the present application, where the method includes: s1101 to S1105.
S1101: and detecting hotspot information.
S1102: and when target hotspot information matched with the preset hotspot information is detected, acquiring environment information.
S1103: and judging whether the environmental information is matched with the target hotspot information.
In some embodiments, the environmental information includes an environmental sound signal, wherein the environmental sound signal may include a specific sound signal associated with a scene, such as a bus scene, and the specific sound signal may be a door opening sound of a bus, such as a "tic". Sound signals of the bus passing by, etc. At this time, the specific implementation manner of determining whether the environment information is matched with the target hotspot information is as follows: judging whether the environmental sound signal is matched with the target hotspot information; and if the environmental sound signal is matched with the target hotspot information, judging that the environmental information is matched with the target hotspot information. For example, the SSID of the target hotspot information is BUS-WiFi, it can be considered that the terminal device is currently in a BUS scene, an environmental sound signal is acquired, matching is performed through a specific sound signal corresponding to the target hotspot information, if a matched target specific sound signal exists, it can be determined that the environmental information is matched with the target hotspot information, so that when the hotspot information of the BUS is detected, the environmental sound signal can be acquired, it is further determined that the terminal device is currently in the BUS scene, the accuracy of judging the scene is improved, the judgment efficiency of whether to start is further improved, when the terminal device needs to be started, the payment efficiency is improved, and when the terminal device does not need to be started, the power consumption of the device is reduced.
In an embodiment, the preset database may further store specific sound signals corresponding to the preset hotspot information, and after the environmental sound signals are acquired, it may be determined whether specific sound signals matching the environmental sound signals exist in the specific sound signals corresponding to the target hotspot information.
In other embodiments, the environmental information includes the ambient sound signal and the intensity profile of the ambient sound signal. Specifically, the specific implementation manner of determining whether the environment information is matched with the target hotspot information is as follows: judging whether the environmental sound signal is matched with the target hotspot information; if the environmental sound signal is matched with the target hotspot information, judging whether the intensity change curve is matched with a preset intensity change curve; if the intensity variation curve is matched with the preset intensity variation curve, judging that the environmental information is not matched with the target hotspot information; and if the intensity change curve is not matched with the preset intensity change curve, judging that the environmental information is matched with the target hotspot information. Wherein the ambient sound signal. Because the terminal device may only pass through the user when detecting the hot spot information of the bus, and the user may not have a demand for taking a bus, that is, no intention or demand for bus payment, when the ambient sound signal is matched with the target hot spot information, it is further determined whether the intensity change curve of the ambient sound signal matches a preset intensity change curve, and when the intensity change curve matches a change rule from weak to strong and then weak or from strong to weak, it is determined that the ambient information does not match the target hot spot information, and the step of subsequently starting the payment function corresponding to the target hot spot information is not performed, thereby improving the accuracy of determining the intention of the user, avoiding false triggering, further reducing power consumption, and improving overall usability.
Further, in some embodiments, the specific implementation of determining whether the ambient sound signal matches the target hotspot information may be: performing voice recognition on the environmental sound signal to obtain a voice recognition result corresponding to the environmental sound signal; and judging whether the voice recognition result is matched with the target hotspot information. The terminal equipment can perform voice recognition on the environmental sound signal based on the existing voice recognition model to obtain a voice recognition result. For example, taking a public transportation scene as an example, the preset database may store text information corresponding to the target hot spot information, where the text information may include, but is not limited to, "xxx arrives at the station", "please take your luggage articles", and other information related to the public transportation scene, and when target text information matching the voice recognition result corresponding to the acquired environmental sound information exists in the text information, it is determined that the environmental information matches the target hot spot information, so that accuracy of scene determination may be further improved, false triggering may be reduced, and it is beneficial to improve accuracy of determination of the payment intention of the user.
S1104: and if the environment information is matched with the target hotspot information, acquiring the position information of the terminal equipment.
S1105: and when the position information meets the preset effective condition, starting a payment function corresponding to the target hotspot information.
It should be noted that, for the parts not described in detail in the above steps, reference may be made to the foregoing embodiments, and details are not described herein again.
Referring to fig. 12, which shows a block diagram of a terminal payment device according to an embodiment of the present application, the terminal payment device 1200 may include: a hotspot detection module 1210, a location determination module 1220, and a function initiation module 1230.
A hot spot detection module 1210 configured to detect hot spot information;
the position determining module 1220 is configured to determine, when target hotspot information matched with preset hotspot information is detected, position information of the terminal device according to the target hotspot information;
a function starting module 1230, configured to control the terminal device to start a payment function corresponding to the target hotspot information when the location information meets a preset effective condition.
Further, the function starting module 1230 may include: the device comprises a category acquisition sub-module, a function determination sub-module and a function starting sub-module, wherein:
the category acquisition submodule is used for acquiring a category corresponding to the target hotspot information;
the function determining submodule is used for determining a payment function corresponding to the target hotspot information according to the category corresponding to the target hotspot information;
and the function starting submodule is used for controlling the terminal equipment to start a payment function corresponding to the target hotspot information.
Further, the location determination module 1220 may include: bus judge submodule, bus start submodule, wherein:
the public transport judging submodule is used for judging whether the category is a public transport category;
and the bus starting submodule is used for starting the payment function corresponding to the category according to the judgment result.
Further, the bus starting module comprises: the device comprises a hotspot attribute acquisition unit, a first type starting unit and a second type starting unit, wherein:
the hot spot attribute acquisition unit is used for acquiring the hot spot attribute of the target hot spot information if the category is the public transportation category;
and the first class starting unit is used for starting the payment function corresponding to the class according to the hotspot attribute.
A second category starting unit, configured to start a payment function corresponding to the category if the category is not the public transportation category
Further, the hotspot attribute includes a geographical location of the target hotspot information, and the first category starting unit includes: and the geographic position starting subunit is used for starting the payment function corresponding to the category according to the geographic position.
Further, the position determination module 1220 includes: the device comprises a hotspot position acquisition submodule, a first position determination submodule, a signal strength acquisition submodule, a second position determination submodule, an environment information acquisition submodule, an environment information matching submodule and a position information acquisition submodule, wherein:
the hot spot position acquisition sub-module is used for acquiring the hot spot position of the target hot spot information;
and the first position determining submodule is used for determining the position information of the terminal equipment according to the hot spot position.
The signal intensity acquisition sub-module is used for acquiring the signal intensity of target hotspot information when the target hotspot information matched with preset hotspot information is detected;
and the second position determining submodule is used for determining the position information of the terminal equipment according to the signal intensity.
The environment information acquisition sub-module is used for acquiring environment information when target hotspot information matched with preset hotspot information is detected;
the environment information matching submodule is used for judging whether the environment information is matched with the target hotspot information;
and the position information acquisition submodule is used for matching the environment information with the target hotspot information to acquire the position information of the terminal equipment.
Further, the environment information includes an environment sound signal, and the environment information matching sub-module includes: a sound signal matching unit and a sound signal determination unit, wherein:
the sound signal matching unit is used for judging whether the environmental sound signal is matched with the target hotspot information;
and the sound signal judging unit is used for judging that the environment information is matched with the target hotspot information if the environment sound signal is matched with the target hotspot information.
Further, the environment information includes an environment sound signal and an intensity variation curve of the environment sound signal, and the environment information matching sub-module may further include: intensity curve matching unit, first curve decision unit and second curve decision unit, wherein:
the intensity curve matching unit is used for judging whether the intensity change curve is matched with a preset intensity change curve or not if the environmental sound signal is matched with the target hotspot information;
the first curve judging unit is used for judging that the environmental information is not matched with the target hotspot information if the intensity change curve is matched with a preset intensity change curve;
and the second curve judging unit is used for judging that the environmental information is matched with the target hotspot information if the intensity change curve is not matched with a preset intensity change curve.
Further, the sound signal matching unit includes: an ambient speech recognition subunit and an ambient speech matching subunit, wherein:
the environment voice recognition subunit is used for performing voice recognition on the environment sound signal to acquire a voice recognition result corresponding to the environment sound signal;
and the environment voice matching subunit is used for judging whether the voice recognition result is matched with the target hotspot information.
Further, the first position determination submodule includes: the hot spot position judging submodule and the hot spot position determining submodule, wherein:
the hot spot position judging submodule is used for judging whether the hot spot position keeps unchanged within a first preset duration;
and the hot spot position determining submodule is used for determining the position information of the terminal equipment according to the hot spot position if the hot spot position is kept unchanged within a first preset duration.
Further, the function starting module 1230 may include: range judgment submodule, range confirm submodule, wherein:
the range judgment submodule is used for judging whether the position information is in a preset position range or not;
and the range starting submodule is used for controlling the terminal equipment to start a payment function corresponding to the target hotspot information if the position information is in a preset position range.
Further, the range judgment sub-module includes: the device comprises a hotspot position acquisition unit, a first hotspot judgment unit, a second hotspot judgment unit, a first signal strength unit and a second signal strength unit, wherein:
the hotspot position acquiring unit is used for acquiring a hotspot position of the target hotspot information;
and the first hot spot judging unit is used for judging whether the position information is in a preset position range or not when the position of the hot spot is kept unchanged within a first preset duration.
And the second hot spot judging unit is used for judging whether the position information is in a preset position range or not when the position information is kept unchanged within a second preset duration.
The first signal intensity unit is used for judging that the position information is in a preset position range when the signal intensity exceeds a preset signal intensity;
and the second signal intensity unit is used for judging that the position information is not in a preset position range when the signal intensity does not exceed the preset signal intensity.
Further, the range promoter module comprises: the device comprises a stay time acquisition unit, a stay time judgment unit and a stay overtime starting unit, wherein:
a dwell time acquiring unit, configured to acquire, if the position information is within a preset position range, a duration of the position information within the preset position range as a dwell time;
the residence time judging unit is used for judging whether the residence time exceeds a preset time threshold value;
and the stay overtime starting unit is used for controlling the terminal equipment to start a payment function corresponding to the target hotspot information if the stay time exceeds a preset time threshold.
Further, the residence time judgment unit includes: the hot spot position obtains subunit and dwell time and judges subunit, wherein:
the hot spot position acquiring subunit is used for acquiring a hot spot position of the target hot spot information;
and the residence time judging subunit is configured to judge whether the residence time exceeds a preset time threshold when the hot spot position remains unchanged within a first preset duration.
The terminal payment device provided in the embodiment of the present application is used for implementing the corresponding terminal payment method in the foregoing method embodiments, and has the beneficial effects of the corresponding method embodiments, which are not described herein again.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described apparatuses and modules may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, the coupling between the modules may be electrical, mechanical or other type of coupling.
In addition, functional modules in the embodiments of the present application may be integrated into one processing module, or each of the modules may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode.
Referring to fig. 13, a block diagram of a terminal device according to an embodiment of the present application is shown. The terminal device 1300 may be a terminal device capable of running an application, such as a smart phone, a tablet computer, and a wearable electronic device. Terminal device 1300 in the present application may include one or more of the following components: a processor 1310, a memory 1320, and one or more applications, wherein the one or more applications may be stored in the memory 1320 and configured to be executed by the one or more processors 1310, the one or more programs configured to perform a method as described in the aforementioned method embodiments.
Processor 1310 may include one or more processing cores. The processor 1310 interfaces with various interfaces and circuitry throughout the various parts of the terminal device 1300, performing various functions of the terminal device 1300 and processing data by executing or executing instructions, programs, code sets or instruction sets stored in the memory 1320 and invoking data stored in the memory 1320. Alternatively, the processor 1310 may be implemented in hardware using at least one of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The processor 1310 may integrate one or more of a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a modem, and the like. Wherein, the CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing display content; the modem is used to handle wireless communications. It is to be understood that the modem may not be integrated into the processor 1310, but may be implemented by a communication chip.
The Memory 1320 may include a Random Access Memory (RAM) or a Read-Only Memory (Read-Only Memory). The memory 1320 may be used to store instructions, programs, code, sets of codes, or sets of instructions. The memory 1320 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing various method embodiments described below, and the like. The stored data area may also store data created by the terminal device 1300 during use (e.g., phone book, audio-video data, chat log data), etc.
If each unit in the terminal payment apparatus shown in fig. 12 is a function module such as a package, each unit in the terminal payment apparatus is stored in the memory 1320, can be called by the processor, and executes a corresponding function.
Referring to fig. 14, a block diagram of a computer-readable storage medium according to an embodiment of the present disclosure is shown. The computer-readable storage medium 1400 stores program code that can be called by a processor to execute the methods described in the above-described method embodiments.
The computer-readable storage medium 1400 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read only memory), an EPROM, a hard disk, or a ROM. Alternatively, the computer-readable storage medium 1400 includes a non-volatile computer-readable storage medium. The computer readable storage medium 1400 has storage space for program code 1410 for performing any of the method steps described above. The program code can be read from or written to one or more computer program products. Program code 1410 may be compressed, for example, in a suitable form.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not necessarily depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.

Claims (20)

  1. A terminal payment method is applied to terminal equipment and is characterized by comprising the following steps:
    detecting hotspot information;
    when target hotspot information matched with preset hotspot information is detected, determining the position information of the terminal equipment according to the target hotspot information;
    and when the position information meets a preset effective condition, controlling the terminal equipment to control the terminal equipment to start a payment function corresponding to the target hotspot information.
  2. The method of claim 1, wherein the controlling the terminal device to initiate a payment function corresponding to the target hotspot information comprises:
    acquiring a category corresponding to the target hotspot information;
    determining a payment function corresponding to the target hotspot information according to the category corresponding to the target hotspot information;
    and controlling the terminal equipment to start a payment function corresponding to the target hotspot information.
  3. The method according to claim 2, wherein the determining the payment function corresponding to the target hotspot information according to the category corresponding to the target hotspot information comprises:
    judging whether the category is a public transportation category;
    and starting the payment function corresponding to the category according to the judgment result.
  4. The method according to claim 3, wherein the starting the payment function corresponding to the category according to the judgment result comprises:
    if the category is the public transport category, acquiring the hotspot attribute of the target hotspot information;
    and starting a payment function corresponding to the category according to the hotspot attribute.
  5. The method of claim 4, wherein the hotspot attribute comprises a geographic location of the target hotspot information, and the initiating the payment function corresponding to the category according to the hotspot attribute comprises:
    and starting a payment function corresponding to the category according to the geographic position.
  6. The method according to claim 3, wherein the starting the payment function corresponding to the category according to the judgment result comprises:
    and if the category is not the public transport category, starting a payment function corresponding to the category.
  7. The method according to any one of claims 1 to 6, wherein when target hotspot information matched with preset hotspot information is detected, determining the location information of the terminal device according to the target hotspot information includes:
    acquiring a hotspot position of target hotspot information;
    and determining the position information of the terminal equipment according to the hotspot position.
  8. The method of claim 7, wherein the determining the location information of the terminal device according to the hotspot location comprises:
    judging whether the position of the hot spot is kept unchanged within a first preset duration;
    and if the hot spot position is kept unchanged within a first preset duration, determining the position information of the terminal equipment according to the hot spot position.
  9. The method according to any one of claims 1 to 6, wherein when target hotspot information matched with preset hotspot information is detected, determining the location information of the terminal device according to the target hotspot information includes:
    when target hotspot information matched with preset hotspot information is detected, acquiring the signal intensity of the target hotspot information;
    and determining the position information of the terminal equipment according to the signal intensity.
  10. The method according to any one of claims 1 to 9, wherein the controlling the terminal device to start a payment function corresponding to the target hotspot information when the location information meets a preset effective condition includes:
    judging whether the position information is in a preset position range or not;
    and if the position information is within a preset position range, controlling the terminal equipment to start a payment function corresponding to the target hotspot information.
  11. The method of claim 10, wherein the determining whether the position information is within a preset position range comprises:
    acquiring a hotspot position of the target hotspot information;
    and when the position of the hot spot is kept unchanged within a first preset duration, judging whether the position information is within a preset position range.
  12. The method according to claim 10 or 11, wherein if the location information is within a preset location range, controlling the terminal device to start a payment function corresponding to the target hotspot information includes:
    if the position information is in a preset position range, acquiring the duration time of the position information in the preset position range as the retention time;
    judging whether the residence time exceeds a preset time threshold value or not;
    and if the retention time exceeds a preset time threshold, controlling the terminal equipment to start a payment function corresponding to the target hotspot information.
  13. The method of claim 10, wherein the determining whether the position information is within a preset position range comprises:
    and when the position information is kept unchanged within a second preset duration, judging whether the position information is within a preset position range.
  14. The method of claim 10, wherein the determining whether the position information is within a preset position range comprises:
    when the signal intensity exceeds a preset signal intensity, judging that the position information is in a preset position range;
    and when the signal intensity does not exceed the preset signal intensity, judging that the position information is not in the preset position range.
  15. The method according to claim 1, wherein when target hotspot information matched with preset hotspot information is detected, determining the location information of the terminal device according to the target hotspot information comprises:
    when target hotspot information matched with preset hotspot information is detected, acquiring environment information;
    judging whether the environmental information is matched with the target hotspot information;
    and if the environmental information is matched with the target hotspot information, acquiring the position information of the terminal equipment.
  16. The method of claim 15, wherein the environmental information comprises an environmental sound signal, and wherein the determining whether the environmental information matches the target hotspot information comprises:
    judging whether the environmental sound signal is matched with the target hotspot information;
    and if the environmental sound signal is matched with the target hotspot information, judging that the environmental information is matched with the target hotspot information.
  17. The method of claim 15, wherein the environmental information comprises an environmental sound signal and an intensity profile of the environmental sound signal, and the determining whether the environmental information matches the target hotspot information comprises:
    judging whether the environmental sound signal is matched with the target hotspot information;
    if the environmental sound signal is matched with the target hotspot information, judging whether the intensity change curve is matched with a preset intensity change curve;
    if the intensity variation curve is matched with a preset intensity variation curve, judging that the environmental information is not matched with the target hotspot information;
    and if the intensity variation curve is not matched with a preset intensity variation curve, judging that the environmental information is matched with the target hotspot information.
  18. A terminal payment device is applied to terminal equipment and is characterized by comprising:
    the hot spot detection module is used for detecting hot spot information;
    the terminal equipment comprises a position determining module, a position determining module and a hot spot setting module, wherein the position determining module is used for determining the position information of the terminal equipment according to target hot spot information when the target hot spot information matched with preset hot spot information is detected;
    and the function starting module is used for controlling the terminal equipment to start a payment function corresponding to the target hotspot information when the position information meets a preset effective condition.
  19. A terminal device, comprising:
    one or more processors;
    a memory;
    one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to perform the method of any of claims 1-17.
  20. A computer-readable storage medium having program code stored therein, the program code being invoked by a processor to perform the method of any one of claims 1 to 17.
CN201980099149.0A 2019-10-18 2019-10-18 Terminal payment method, device, terminal equipment and computer readable storage medium Active CN114223222B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2019/112031 WO2021072775A1 (en) 2019-10-18 2019-10-18 Method and apparatus for terminal payment, terminal device and computer-readable storage medium

Publications (2)

Publication Number Publication Date
CN114223222A true CN114223222A (en) 2022-03-22
CN114223222B CN114223222B (en) 2024-04-26

Family

ID=75538196

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201980099149.0A Active CN114223222B (en) 2019-10-18 2019-10-18 Terminal payment method, device, terminal equipment and computer readable storage medium

Country Status (2)

Country Link
CN (1) CN114223222B (en)
WO (1) WO2021072775A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022222576A1 (en) * 2021-04-23 2022-10-27 荣耀终端有限公司 Scenario recognition method and electronic device
CN113298212B (en) * 2021-05-25 2024-08-23 艾酷软件技术(上海)有限公司 Graphic code display method and device
CN113840279B (en) * 2021-09-22 2024-05-14 Oppo广东移动通信有限公司 Analog card activation method, device, terminal and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103327444A (en) * 2012-03-23 2013-09-25 联想(北京)有限公司 Unlocking method and mobile electronic equipment based on location information
CN106600262A (en) * 2016-11-21 2017-04-26 上海斐讯数据通信技术有限公司 System and method for automatically adjusting payment modes according to different wifis
CN108093367A (en) * 2017-12-13 2018-05-29 广东欧珀移动通信有限公司 Control method, device, storage medium and mobile terminal based on locating module
CN108288154A (en) * 2018-01-09 2018-07-17 维沃移动通信有限公司 A kind of startup method, device and mobile terminal of payment application
WO2018133178A1 (en) * 2017-01-20 2018-07-26 华为技术有限公司 Nfc-based data transmission method and mobile device
CN109979045A (en) * 2018-12-21 2019-07-05 维沃移动通信有限公司 A kind of information output method and terminal device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106127555A (en) * 2016-06-24 2016-11-16 付韶明 A kind of multifunctional electric commerce terminal unit
CN107833041A (en) * 2017-09-28 2018-03-23 高斯贝尔数码科技股份有限公司 A kind of public transport payment system based on smart mobile phone

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103327444A (en) * 2012-03-23 2013-09-25 联想(北京)有限公司 Unlocking method and mobile electronic equipment based on location information
CN106600262A (en) * 2016-11-21 2017-04-26 上海斐讯数据通信技术有限公司 System and method for automatically adjusting payment modes according to different wifis
WO2018133178A1 (en) * 2017-01-20 2018-07-26 华为技术有限公司 Nfc-based data transmission method and mobile device
CN108093367A (en) * 2017-12-13 2018-05-29 广东欧珀移动通信有限公司 Control method, device, storage medium and mobile terminal based on locating module
CN108288154A (en) * 2018-01-09 2018-07-17 维沃移动通信有限公司 A kind of startup method, device and mobile terminal of payment application
CN109979045A (en) * 2018-12-21 2019-07-05 维沃移动通信有限公司 A kind of information output method and terminal device

Also Published As

Publication number Publication date
WO2021072775A1 (en) 2021-04-22
CN114223222B (en) 2024-04-26

Similar Documents

Publication Publication Date Title
CN107508883B (en) Information pushing method and device, storage medium and mobile terminal
US10282477B2 (en) Method, system and apparatus for searching for user in social network
CN114223222B (en) Terminal payment method, device, terminal equipment and computer readable storage medium
CN111241856B (en) Method for selecting NFC analog card and watch
CN112232801B (en) Electronic transaction method and terminal
CN105241446B (en) A kind of indoor navigation route generation method and user terminal
US20230098616A1 (en) Method for Invoking NFC Application, Electronic Device, and NFC Apparatus
CN105574749A (en) Selection method, device and system for card applications in secure element SE
CN112492518B (en) Card determination method, device, electronic equipment and storage medium
CN108064024A (en) Control method, device, storage medium and mobile terminal based on locating module
CN116029719B (en) Payment service recommendation method, electronic device and storage medium
CN108064023A (en) Control method, device, storage medium and mobile terminal based on locating module
CN105517192A (en) Wireless network connecting method and device
CN108227953B (en) Character input method and related product
US9967700B2 (en) Content providing system based on location information recognition
KR102192157B1 (en) Apparatas and method for offering a information about search location in an electronic device
CN104780253A (en) Address book management method
CN104700751A (en) Scenic spot information acquisition method and device
US9635691B2 (en) Apparatus and method of providing connection source recommendations using a database of historic data on connectivity
CN113840279A (en) Analog card activation method, device, terminal and storage medium
CN105530332B (en) The processing method and processing device of location information
CN106910077B (en) Target object information query method and device
CN112970276B (en) Communication processing method, device, mobile terminal and storage medium
KR20130006832A (en) System and method for providing fitted information service by using context-awareness, cloud computing service apparatus and driving method thereof, terminal and driving method thereof
CN104834678A (en) Method for positioning according to information and server

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