WO2021072775A1 - 终端支付方法、装置、终端设备及计算机可读取存储介质 - Google Patents

终端支付方法、装置、终端设备及计算机可读取存储介质 Download PDF

Info

Publication number
WO2021072775A1
WO2021072775A1 PCT/CN2019/112031 CN2019112031W WO2021072775A1 WO 2021072775 A1 WO2021072775 A1 WO 2021072775A1 CN 2019112031 W CN2019112031 W CN 2019112031W WO 2021072775 A1 WO2021072775 A1 WO 2021072775A1
Authority
WO
WIPO (PCT)
Prior art keywords
information
preset
location
hotspot
target
Prior art date
Application number
PCT/CN2019/112031
Other languages
English (en)
French (fr)
Inventor
林进全
Original Assignee
深圳市欢太科技有限公司
Oppo广东移动通信有限公司
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 深圳市欢太科技有限公司, Oppo广东移动通信有限公司 filed Critical 深圳市欢太科技有限公司
Priority to CN201980099149.0A priority Critical patent/CN114223222B/zh
Priority to PCT/CN2019/112031 priority patent/WO2021072775A1/zh
Publication of WO2021072775A1 publication Critical patent/WO2021072775A1/zh

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

Definitions

  • This application relates to the field of wireless communication technology, and more specifically, to a terminal payment method, device, terminal device, and computer readable storage medium.
  • terminal payments have been applied in more and more scenarios.
  • terminal payment can be expressed as a payment method that allows users to use their terminal devices to pay for the goods or services they consume. Compared with traditional payment, terminal payment is more convenient and faster, so more and more consumers choose to use terminal payment for consumption.
  • a user makes a terminal payment he often needs to perform multiple operations on the terminal device to complete a payment, and the operation steps are relatively cumbersome and the efficiency is not high.
  • This application proposes a terminal payment method, device, terminal equipment, and computer readable storage medium to improve the above-mentioned drawbacks.
  • the 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 detecting target hotspot information matching preset hotspot information, according to the target hotspot Information, determining the location information of the terminal device; when the location information meets a preset validity condition, controlling the terminal device to start the payment function corresponding to the target hot spot information.
  • the embodiments of the present application also provide a terminal payment device, which is applied to a terminal device.
  • the device includes: a hotspot detection module for detecting hotspot information; When the information matches the target hotspot information, the location information of the terminal device is determined according to the target hotspot information; the function activation module is used to control the startup of the terminal device and the terminal device when the location information meets preset valid conditions.
  • the payment function corresponding to the target hot spot information.
  • an embodiment of the present application also provides a terminal device, including: one or more processors; a memory; one or more application programs, wherein the one or more application programs are stored in the memory And is configured to be executed by the one or more processors, and the one or more programs are configured to execute the foregoing method.
  • the embodiments of the present application also provide a computer-readable storage medium, and the computer-readable storage medium stores program code, and the program code can be invoked by a processor to execute the foregoing method.
  • the terminal payment method, device, terminal device, and computer readable storage medium provided in this application detect the hotspot information, and when the target hotspot information matching the preset hotspot information is detected, the location of the terminal device is determined according to the target hotspot information Information, and when the location information meets the preset validity conditions, the payment function corresponding to the target hot spot information is activated.
  • the scene can be judged based on the hotspot information and location information, and the payment function to be activated can be determined and activated according to the scene, so that the user can activate the required payment function without manual operation, realize automatic payment selection, and greatly improve payment efficiency , Improve the user experience of terminal payment scenarios.
  • FIG. 1 shows an application scenario diagram suitable for the terminal payment method provided by the embodiment of the present application
  • Figure 2 shows a method flowchart of a terminal payment method provided by an embodiment of the present application
  • FIG. 3 shows a schematic diagram of interaction between a terminal device and a reading device provided by an embodiment of the present application
  • FIG. 4 shows a method flowchart of a terminal payment method provided by another embodiment of the present application.
  • FIG. 5 shows a method flowchart of a terminal payment method provided by another embodiment of the present application.
  • FIG. 6 shows a method flowchart of a terminal payment method according to another embodiment of the present application.
  • FIG. 7 shows a method flowchart of a terminal payment method provided by still another embodiment of the present application.
  • FIG. 8 shows a method flowchart of a terminal payment method according to 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 shows a method flowchart of a terminal payment method according to still another embodiment of the present application.
  • FIG. 11 shows a method flowchart of a terminal payment method provided by another embodiment of the present application.
  • FIG. 12 shows a block diagram of a terminal payment device provided by an embodiment of the present application.
  • FIG. 13 shows a structural block diagram of a terminal device provided by an embodiment of the present application.
  • FIG. 14 shows a storage unit for storing or carrying program codes for implementing the terminal payment method according to the embodiment of the present application according to an embodiment of the present application.
  • FIG. 1 shows an application scenario diagram of the terminal payment method and device provided by the embodiments of the present application.
  • the communication system 10 includes a terminal device 100 and a reading device 200, and the terminal device 100 and the reading device 200 is 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.
  • the communication system 10 further includes a server 300.
  • the terminal device 100, the reading device 200, and the server 200 are located in a wireless network or a wired network, and the three can perform data interaction.
  • the terminal device 100 may be a portable electronic device that also includes other functions such as a personal digital assistant and/or a music player function, such as a mobile phone, a tablet computer, a wearable electronic device with wireless communication function (such as a smart watch), and the like.
  • portable electronic devices include, but are not limited to, portable electronic devices equipped with iOS, Android, Microsoft, or other operating systems.
  • the above-mentioned portable electronic device may also be other portable electronic devices, such as a laptop computer (Laptop) and the like. It should also be understood that, in some other embodiments, the above-mentioned electronic device may not be a portable electronic device, but a desktop computer.
  • the terminal device 100 supports wireless fidelity (WiFi, Wireless Fidelity) access to a wireless local area network (Wireless Local Area Net, WLAN) hotspot (ie, Hotspot) to achieve Internet access.
  • the terminal device 100 may include a wireless network card or a WiFi chip Used to scan and detect hotspot information.
  • the user can selectively turn on or turn off the WiFi function of the terminal device 100 through a preset WLAN function switch.
  • the WiFi function of the terminal device 100 is in the on state, the terminal device 100 is in the detection state of the WiFi signal.
  • the management program for WiFi connection and use can obtain the hotspot information of the WiFi signal detected by the WiFi chip by calling the driver of the terminal device 100.
  • the hotspot information can include the Service Set Identifier (SSID) and the physical address (Media Access Control). , MAC) address, etc. at least one.
  • SSID Service Set Identifier
  • MAC Media Access Control
  • the SSID and MAC are combined as hotspot information, and an index can be established according to the SSID first, and then a specific WIFI hotspot can be determined according to the MAC.
  • WLAN function switch is only a word used in the embodiment of this application, and its representative meaning and function have been recorded in the embodiment of this application, and its name does not constitute any limitation to the embodiment of this application; it is understandable that In some other embodiments of the present application, the above words may also use other names, such as WiFi function switch.
  • the reading device 200 may be an electronic device that has a communication function and can perform data transmission with the terminal device 100, such as a (Point of Sale POS) terminal.
  • the reading device 200 may be an electronic device with a Near Field Communication (NFC) function.
  • NFC Near Field Communication
  • the terminal device 100 has a built-in NFC module, and can perform data interaction with the reading device 200 based on the NFC module.
  • the reading device 200 exchanges data with the terminal device 100, the reading device 200 sends an Application Identifier (AID) instruction to the terminal device 100 within its communication range.
  • AID Application Identifier
  • the reading device 200 may also be an electronic device with a code scanning function.
  • the terminal device 100 is installed with an application that can support scanning code payment. By responding to the user's operation on the application, the terminal device can be turned on.
  • the application displays the scan code payment page for the reading device 200 to read, thereby completing the scan code payment process.
  • reading devices such as (Point of Sale POS) terminals, which support at least one of payment methods such as scan code payment and NFC payment, so that users can communicate with the reader through the terminal device.
  • the interaction with the device realizes convenient contactless payment.
  • the inventor found in research that when a user needs to use a terminal device to make a payment, the user often needs to perform a series of operations before selecting the required payment method according to different scenarios.
  • an embodiment of the present application provides a terminal payment method, which can be applied to the above-mentioned terminal device, as shown in FIG. 1. Specifically, the method includes: S111 to S113.
  • the terminal device is equipped with a WLAN module.
  • the user can selectively turn on or off the Wifi function of the terminal device through the WLAN function switch.
  • the terminal device can control to turn on or off the WLAN module by detecting the trigger event of the WLAN function switch, and then turn on the WLAN
  • the terminal device can detect hotspot information based on the WLAN module at this time.
  • 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.
  • SSID service set identifier
  • MAC Media Access Control
  • Free WiFi in public transportation is to install wireless hotspots on public transportation (such as subways, buses, etc.) for users to use for free, so that users can use public transportation. You can also connect to the Internet and watch online videos without using a data connection.
  • the WLAN module of the user terminal device is working, when the user is waiting for a bus at a bus stop, subway station, or nearby, or is already on a bus or subway, the terminal device can scan and detect the WiFi signal of the bus or subway. Hot information.
  • wireless hotspots are also used in many other scenes, such as bank scenes, shopping mall scenes, and so on.
  • different wireless hotspots have different working ranges.
  • the larger the working range the terminal device can detect the hotspot information of the wireless hotspot at a location farther from the wireless hotspot.
  • the working range of a wireless hotspot is generally several tens of meters, so taking the bus scenario as an example, when a bus is entering a station, or when a user arrives at a subway station to wait for a train, if the user is waiting for a bus to enter the station at this time, then Regardless of whether the inbound bus is the route the user needs to take, the terminal device can be within the working range of the bus wireless hotspot.
  • the terminal device will scan at least multiple times to scan and detect the wireless hotspot of the subway. Hot information.
  • the WLAN module of the terminal device also includes the connected state and the non-connected state in the working state.
  • the WLAN module of the terminal device When the terminal device is connected to the wireless hotspot and can surf the Internet based on the connected wireless hotspot, the WLAN module of the terminal device is in the connected state. Wireless hotspot, the WLAN module is not connected.
  • the WLAN module in the disconnected state, can detect the hotspot information based on the default interval time, for example, every 15 seconds, the default interval time can be fixed or customized adjustment).
  • the detection frequency is higher than in a sleep state.
  • the terminal device can scan the wireless hotspot of the bus or subway before the bus/metro arrives/stops, and detects the hotspot information of the wireless hotspot.
  • S112 When the target hotspot information matching the preset hotspot information is detected, determine the location information of the terminal device according to the target hotspot information.
  • the preset hotspot information is hotspot information stored in advance.
  • the preset hotspot information may include the SSID of the wireless hotspot, or part of the character string in the SSID of the wireless hotspot.
  • the SSID may be such as BUS-freeWiFi, SUBWAY-WiFi, CCB-WiFi, BC-WiFi , Mall-Wifi, etc.
  • the preset hotspot information can be the aforementioned SSID, or a partial string of the aforementioned SSID such as BUS, SUBWAY, CCB, BC, Mall.
  • the target hotspot information can be determined through partial keyword matching, which improves the coverage of the preset hotspot information for hotspot information matching, and improves usability.
  • the SSID of the hotspot information can determine the hotspot attributes such as the usage scenario of the wireless hotspot corresponding to the SSID. For example, based on the foregoing example, it can be determined that the wireless hotspot corresponding to the SSID is used for public transportation according to the SSID such as BUS-freeWifi.
  • SUBWAY-WiFi it can be determined that its corresponding wireless hotspot is used for subways, according to CB-WiFi, it can be determined that its corresponding wireless hotspot is used for banks, and according to Mall-WiFi, its corresponding wireless hotspot can be determined for use in shopping malls.
  • the preset hotspot information may include the SSID and MAC address of the wireless hotspot, and the detected hotspot information also includes the SSID and MAC address. Based on the SSID and MAC address, the scene of the wireless hotspot corresponding to the SSID can be determined. And in some examples, based on big data collection, the wireless hotspot's MAC address can also be used to determine the geographic location of the wireless hotspot, the unit to which it belongs and other hotspot attributes. As an implementation manner, the terminal device may be based on Google's Google Mobile Service (GMS), and request the GMS to obtain the hotspot attribute corresponding to the hotspot information according to the hotspot information of the wireless hotspot. As another implementation manner, a database can also be built locally on the terminal device or on the server, so as to obtain the hot spot attributes corresponding to the hot spot information according to the hot spot information.
  • GMS Google's Google Mobile Service
  • the terminal stores a preset database locally, the preset database includes at least one preset hotspot information, and the preset database may also include hotspot attributes corresponding to each preset hotspot information.
  • the preset database includes at least one preset hotspot information and a hotspot attribute corresponding to each preset hotspot information. Therefore, based on the matching with the preset hotspot information, the terminal device can obtain the information corresponding to the preset hotspot information. Hot spot attributes.
  • the preset hotspot information may include the SSID of the preset hotspot, such as EGOBUS-WiFi, and the hotspot attribute corresponding to the preset hotspot information may include the city where the preset hotspot is located, such as Shenzhen. Therefore, When the terminal device detects that the hotspot information includes the SSID such as EGOBUS-WiFi, by matching with the preset hotspot information, it can be determined that the city of the target hotspot corresponding to the target hotspot information is Shenzhen. Thereby, by storing the preset database in the terminal device to quickly query and match even when the network quality is poor, the efficiency of query and matching is improved
  • the terminal device stores at least one preset hotspot information.
  • the hotspot information may include the SSID such as SZBUS-WiFi. "SZBUS" in the SSID, the hotspot attribute of the hotspot information can be obtained.
  • the city of the wireless hotspot corresponding to the SSID is Shenzhen.
  • only storing preset hotspot information can also implement this method.
  • the efficiency of query and matching is improved, and the storage pressure of the terminal device is also reduced, which is beneficial to improve the operation and processing efficiency of the terminal device.
  • the server is pre-built with a preset database, and the preset database includes at least one preset hotspot information, and may also include hotspot attributes corresponding to each preset hotspot information.
  • the terminal device detects hotspot information, it can send a query request to the server.
  • the server queries whether there is preset hotspot information matching the hotspot information according to the hotspot information, and returns the query result to the terminal device, and the terminal device receives the query returned by the server As a result, it can be determined whether the detected hotspot information matches the preset hotspot information, and the successfully matched hotspot information is used as the target hotspot information.
  • the query result may include the result of whether the query is found, and when the query is found, the query result may also include the hotspot attribute of the matched preset hotspot information. Since the preset database is stored with the server, the terminal device performs query matching through the server, which can reduce the storage pressure on the terminal device, and when the preset database is stored on the server, it is convenient to update the preset database, which can continuously cover more and more comprehensive Hotspot information to improve usability.
  • the terminal device When the terminal device matches the detected hotspot information with the preset hotspot information and the matching is successful, it may use the successfully matched hotspot information as target hotspot information, and determine the location information of the terminal device according to the target hotspot information.
  • the location information may be the relative distance between the terminal device and the target hot spot corresponding to the target hot spot information, or it may be an absolute distance.
  • the location information of the terminal device may be the relative distance between the terminal device and the target hot spot.
  • the signal strength corresponding to the terminal device detecting the target hot spot information can be determined, and the relative distance between the terminal device and the target hot spot can be determined according to the signal strength, and the relative distance can be regarded as the terminal device's relative distance. location information.
  • the location information of the terminal device may also be the absolute distance between the terminal device and the target hot spot.
  • the terminal device can obtain the geographic location of the terminal device, such as latitude and longitude coordinates, as location information based on the positioning function.
  • the terminal device can also obtain the MAC address of the target hotspot based on the target hotspot information, and determine the geographic location of the target hotspot based on the MAC address. Location, thereby obtaining the geographic location of the terminal device and the target hot spot, determining the absolute distance between the terminal device and the target hot spot, and using the absolute distance as the location information of the terminal device. Specific implementation manners can also be seen in the following embodiments, which will not be repeated here.
  • the location information of the terminal device may also be determined according to the geographic location of the terminal device.
  • 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.
  • the way of determining whether the location information meets the preset valid condition is also different.
  • the location information of the terminal device can be used to characterize the distance between the terminal device and the target hot spot corresponding to the target hot spot information. Regardless of the relative distance or the absolute distance, when the distance meets a certain distance range, the payment function corresponding to the target hot spot information can be activated, which can effectively avoid errors. Trigger, improve the accuracy of the user's intention to determine whether the payment function needs to be activated, and it is understandable that the smaller the set distance range, the less location information covered by the preset effective conditions, the more cautious the activation, and the false triggering The lower the probability.
  • the terminal device can support a variety of payment functions. Each payment function can correspond to different payment applications, and different payment applications can correspond to different scenarios. For example, in a public transportation scenario, a public transportation payment application needs to be used to realize the public transportation payment function. Since the terminal device detects the target hotspot information that matches the preset hotspot information, and when the location information meets the preset valid conditions, it can be considered that the user needs to make a payment is likely to be high. At this time, the terminal device starts the target hotspot information corresponding to the The payment function can not only accurately determine the user's intention to initiate payment, but also automatically initiate the payment function corresponding to the target hotspot information, avoiding tedious operations, and automatically selecting payment without manual operation by the user.
  • the target hotspot information includes SSID such as BUS-freeWiFi.
  • SSID such as BUS-freeWiFi.
  • the terminal device can determine the current scene based on the hotspot information and control the payment function corresponding to the startup scene, which realizes the automatic control of the switching of the payment function without manual operation by the user, which greatly improves the payment efficiency.
  • each payment function may also include one or more payment modes.
  • the payment function may include a bus payment function, a bank payment function, etc.
  • the bus payment function includes one or more bus payment modes
  • the bank payment function includes one Or multiple bank payment modes.
  • the bus payment mode can correspond to the bus card.
  • the bus card can be Shenzhen Tong , Yangchengtong
  • the public transportation payment function can include the public transportation payment mode based on Shenzhentong
  • the public transportation payment mode based on Yangchengtong.
  • the terminal device can be used for multiple payment methods, such as QR code payment, NFC payment, etc., based on different payment methods, depending on the terminal device payment method, the payment mode is different, for example, based on two
  • the bus payment mode can correspond to the QR code corresponding to different bus cards; the payment mode based on NFC payment, the bus payment mode can correspond to the radio frequency card simulated by the NFC module based on the bus card.
  • the terminal device can be used for QR code payment.
  • the terminal device needs to display the QR code for payment, and the reading device can scan the QR code displayed on the screen of the terminal device.
  • Dimension code interacts with the payment process.
  • the specific implementation of starting the payment function corresponding to the target hotspot information may include: determining the payment application corresponding to the target hotspot information, and displaying the payment page of the payment application. To be read by the reading device for payment.
  • the terminal device detects that the target hotspot information that matches the preset hotspot information includes SSID such as BUS-freeWiFi, it can be considered that the user is currently in a public transportation scene and may need to ride in a car, and then obtain the location information of the terminal device, and the location information meets the preset When the conditions are valid, it can be considered that the user needs to pay by car.
  • the bus payment function corresponding to the target hot spot information can be activated, that is, the payment page of the bus payment application corresponding to the target hot spot information can be displayed for the reading device to read and complete Paid.
  • the user’s scene can be judged based on the hotspot information, combined with the location information of the terminal device to determine whether the user needs to pay, and when the location information meets the preset valid conditions, it is determined that the user needs to start the scenario Payment function.
  • the payment function corresponding to the target hot spot information is activated to realize automatic payment preparation. There is no need to manually select the required payment function before the user pays, so as to quickly complete the payment process and improve payment efficiency.
  • the terminal device can be used for NFC payment.
  • one or more radio frequency cards can be simulated through the NFC module (for ease of expression, hereinafter referred to as analog cards) to support different
  • the terminal device can simulate multiple bus cards to support different bus payment modes through the NFC module, and simulate multiple bank cards to support different bank payment modes.
  • the terminal device can interact with the reading device that supports NFC payment based on the analog card to complete the payment.
  • the secure module is used to securely store sensitive information and provide a secure execution environment for transaction transactions, which can be integrated In the processor of the terminal device, or the Subscriber Identification Module (SIM) card, or the Secure Digital Memory Card (SD) of the terminal device, it can also be an independent chip, etc.; the second is based on Host Card Emulation (HCE), you can use APP (Application) on the host to simulate various cards to realize the function of host card emulation; the third is based on Universal Integrated Circuit Card (UICC) .
  • the NFC module stores routing information, including the corresponding routing location based on at least one form of card simulation described above. After receiving the AID instruction, the NFC module can send the AID instruction to the corresponding routing location based on the routing information, so that the module of the routing location Execute the operation corresponding to the instruction.
  • the foregoing security module may also be replaced with an Embedded Secure Element (eSE).
  • eSE is more secure than the SE, and the hardware security level of the eSE reaches EAL6+ or higher. Therefore, the terminal equipment adopts eSE to make the payment security of the terminal equipment higher.
  • eSE can be installed with various forms of card emulation applications. When eSE receives the AID instruction sent by the NFC module, it can start the corresponding card emulation application (APPLet) and activate the emulation card in the card emulation application for payment .
  • APPLet card emulation application
  • the terminal device includes an NFC module and a security Module, host processor (Host CPU), optionally, the security module can be eSE, the host processor is used to implement card emulation based on the HCE form, the security module and the host processor run card emulation applications, and the reading device supports NFC Function, 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 to the security module or the host processor to start the function of the card simulation application in the security module or the host processor , For example, start the payment function of the payment application in the security module.
  • host processor Host CPU
  • the security module can be eSE
  • the host processor is used to implement card emulation based on the HCE form
  • the security module and the host processor run card emulation applications
  • the reading device supports NFC Function
  • 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 to the
  • the terminal device includes an NFC module and a security module, such as an NFC module and an eSE.
  • the eSE is installed with a card simulation application for public transportation payment, such as a public transportation payment application.
  • a card simulation application for public transportation payment such as a public transportation payment application.
  • the terminal device detects that the target hotspot information that matches the preset hotspot information includes SSID such as BUS-freeWiFi, it can be considered that the user is currently in a public transportation scene and may need to ride in a car, and then obtain the location information of the terminal device, and the location information meets the preset When the conditions are valid, it can be considered that the user needs to pay by car.
  • SSID such as BUS-freeWiFi
  • the default route of the NFC module can be switched to eSE, and the eSE can be controlled to start the bus payment application to realize the bus payment function, and activate the bus card in the bus payment application to activate the bus payment Mode, such as activating Shenzhen Tong can activate the Shenzhen Tong payment mode, thereby starting the bus payment function based on the bus payment mode, so that when the terminal device is close to the reading device, the payment can be made based on the Shenzhen Tong payment mode of the bus payment function.
  • the user is often required to determine the analog card to be selected according to the specific scenario, and the operation steps performed in the terminal device in this process are relatively cumbersome, which reduces the interaction capability between the terminal device and the user, and the payment The efficiency is low. Therefore, the user’s scene is judged based on the hotspot information, combined with the location information of the terminal device to determine whether the user needs to pay, and when the location information meets the preset valid conditions, it is judged that the user needs to activate the payment function in the scenario.
  • control the eSE to start the payment function corresponding to the target hotspot information, so as to complete the default route switch and start the payment function corresponding to the target hotspot information before the user pays, activate the payment mode corresponding to the target hotspot information, and realize safe automatic "card selection" payment , There is no need to manually select the required payment function before the user pays, so as to quickly complete the payment process and improve payment efficiency.
  • the terminal device may not include a security module, and the payment function is initiated based on HCE or HICC.
  • the reading device supports HCE or UICC, the method provided in the embodiment of the present application can still be applied.
  • this embodiment controls the automatic activation of the payment function corresponding to the hotspot information to realize payment by judging the scene based on the hotspot information. Therefore, the user does not need to manually operate to make a selection, and solves the problem of manual selection encountered in NFC payment.
  • the payment function corresponding to the target hot spot information can be activated before the user pays, so as to realize automated payment preparation, so as to quickly complete the payment process and improve the user experience of the existing mobile bus payment scenario.
  • FIG. 4 shows a terminal payment method provided by an embodiment of the present application, and the method includes: S401 to S407.
  • S402 When detecting target hotspot information matching the preset hotspot information, determine location information of the terminal device according to the target hotspot information.
  • the specific implementation of determining the location information of the terminal device according to the target hotspot information may include: when it is detected that it matches the preset hotspot information The signal strength of the target hotspot information is acquired when the target hotspot information is selected; the location information of the terminal device is determined according to the signal strength.
  • the terminal device when the terminal device detects the target hot spot information, it can obtain the signal strength corresponding to the target hot spot information. According to the signal strength, it can determine the distance between the terminal device and the target hot spot, that is, the distance between the terminal device and the target hot spot. Use the relative distance as the position information of the terminal device.
  • a mapping relationship between signal strength and relative distance may be stored in advance, and the relative distance corresponding to the signal strength may be determined according to the signal strength, so as to determine the location information of the terminal device.
  • the terminal device does not need to turn on the positioning or does not have the positioning function, but can still obtain the location information of the terminal device to determine whether to activate the payment function, which can reduce power consumption, and because it is not necessary to calculate the distance between the device location and the hotspot location , Reduce computational complexity and improve computational efficiency.
  • the specific implementation manner of determining the location information of the terminal device according to the target hotspot information may include: when the preset hotspot information is detected When matching target hotspot information, obtain the hotspot location of the target hotspot information; determine the location information of the terminal device according to the hotspot location.
  • the terminal device may be based on GSM and obtain the hotspot location of the target hotspot information according to the MAC address of the target hotspot information, where the hotspot location is the geographic location of the target hotspot corresponding to the target hotspot information.
  • the terminal device obtains the current geographic location as the location information of the terminal device, and can obtain the absolute distance between the target hot spot and the terminal device according to the location of the hotspot and the location information of the terminal device, and uses the absolute distance as the location information of the terminal device.
  • using the absolute distance between the target hot spot and the terminal device as the position information of the terminal device can improve the accuracy of judging whether the position information meets the preset valid conditions, and also improve the accuracy of starting the payment function corresponding to the target hot spot information rate.
  • the specific embodiment of determining the location information of the terminal device according to the target hotspot information may include: judging whether the hotspot location is in the first The location of the hot spot remains unchanged within the preset duration; if the location of the hot spot remains unchanged within the first preset duration, the location information of the terminal device is determined according to the location of the hot spot.
  • the subsequent steps may not be performed, and the hot spot information may continue to be detected, so that when the hot spot location is constantly changing, the target hot spot information corresponding to the target hot spot information may not be activated.
  • Payment function Take the public transportation scenario as an example.
  • the terminal device may detect the hotspot information of the bus that is running on the road. At this time, the bus may just pass by without stopping downloading passengers. Therefore, the location information of the terminal device is determined by judging whether the location of the hot spot remains unchanged within the first preset duration, and when it remains unchanged.
  • the subsequent steps may not be executed, thereby reducing the probability of false triggers, saving equipment power consumption, and improving system availability .
  • the specific implementation manners for obtaining the category corresponding to the target hotspot information include: judging whether the location information meets the preset validity condition; if the location information meets the preset validity condition, obtaining the target The category corresponding to the hotspot information. In some embodiments, if the location information does not meet the preset valid condition, the detection of hotspot information can also be executed back, thereby saving power consumption.
  • the category is used to characterize the scene category corresponding to the hotspot information, and may be a category identifier used to characterize the scene category.
  • the terminal device can determine the category corresponding to the category identifier by obtaining the category identifier of the target hotspot information, thereby obtaining the category corresponding to the target hotspot information.
  • the hotspot information includes an SSID
  • the category corresponding to the target hotspot information can be obtained according to the SSID of the target hotspot information.
  • the category corresponding to the target hotspot information can be determined as the public transportation category according to the "BUS" of the bus in the SSID.
  • the category corresponding to the target hotspot information can be determined as the bank category according to the "Bank" representing the bank in the SSID.
  • the terminal device can also obtain the subcategory of the target hotspot information according to the SSID of the target hotspot information.
  • the bank category also includes the subcategories corresponding to major banks.
  • the terminal device can query whether the SSID exists and the subcategory When identifying the corresponding identifier, the sub-category of the target hotspot information can be determined, that is, the specific corresponding bank.
  • the category is stored in a preset database. Specifically, at least one preset hot spot information and a category corresponding to each preset hot spot information are pre-stored in the preset database, and the terminal device is based on the preset database, When searching for target hotspot information that matches the preset hotspot information, the category corresponding to the matched preset hotspot information can be obtained as the category corresponding to the target hotspot information.
  • S404 Determine whether the category is a public transportation category.
  • the category can be a category identifier used to characterize the category of the scene. According to whether the category identifier matches the category identifier of the public transportation category, it can be determined whether the category is a public transportation category.
  • the terminal device obtains the category corresponding to the target hotspot information according to the SSID of the target hotspot information.
  • it can directly determine whether the category is a public transportation category based on the SSID, and according to the SSID of the target hotspot information Whether it matches with the public transportation category, determine whether the category is a public transportation category.
  • the terminal device obtains the category corresponding to the target hotspot information based on a preset database. At this time, it can be determined whether the category is a public transportation category according to the category of the target hotspot information. By judging whether the target hotspot information category is consistent with the public transportation category, it can be determined whether the category is a public transportation category, and when the category is consistent, the category can be determined as the public transportation category, and when it is inconsistent, the category can be determined as not being the public transportation category.
  • the payment function corresponding to the category can be activated according to the judgment result, which can specifically include:
  • step S405 may be executed;
  • step S407 may be executed.
  • S405 Acquire the hot spot attribute of the target hot spot information.
  • the hot spot attribute can be used to determine the effective use area of the target hot spot corresponding to the target hot spot information, and the effective use area can correspond to different cities or provinces.
  • the bus systems of different cities or provinces are independent, and the bus cards that can support payment in different cities or provinces cannot be used universally.
  • the hotspot attribute of the target hotspot information can obtain the effective use area corresponding to the target hotspot information.
  • the SSID of the hotspot information may include characters or strings that characterize the effective use area.
  • the hotspot attributes of the target hotspot information can be determined according to the SSID of the target hotspot information.
  • the SSID is SZBUS-WiFi. "The effective use area that can obtain target hotspot information is Shenzhen, and the effective use area is regarded as the hotspot attribute.
  • the preset database stores the hotspot attributes corresponding to the preset hotspot information
  • the terminal device can obtain the hotspot attributes corresponding to the preset hotspot information corresponding to the target hotspot information based on the preset database, and add this
  • the hot spot attribute is used as the hot spot attribute of the target hot spot information.
  • the terminal device may obtain the geographic location of the target hotspot information, obtain the area corresponding to the geographic location as the effective use area, and use the effective use area as the hotspot attribute of the target hotspot information. Therefore, the effective use area is determined according to the actual geographic location of the target hotspot information.
  • the target hotspot information includes the MAC address and SSID of the target hotspot such as SZBUS-WiFi.
  • the terminal device can obtain the target hotspot information based on the MAC address of the target hotspot based on GSM.
  • the geographic location of the target hotspot corresponding to the target hotspot information is used as the geographic location of the target hotspot information.
  • the area corresponding to the geographic location can be obtained as Shenzhen, and Shenzhen can be used effectively area.
  • the area corresponding to the geographic location can be determined according to the existing cities or provinces of the public transport system, and the geographic location is matched with the public transport system, and the matched city or province is regarded as the area of the geographic location and regarded as the effective area.
  • the use area is the hotspot attribute of the target hotspot information.
  • Public payment functions include one or more public payment modes. Different public payment modes can correspond to different analog cards and correspond to different hotspot attributes.
  • public payment modes can include, but are not limited to, Shenzhentong payment-based Shenzhentong payment mode , Its corresponding hotspot attribute is Shenzhen; based on the Yangchengtong payment mode of Yangchengtong, its corresponding hotspot attribute is Guangzhou.
  • the terminal device may include: according to the hotspot attribute, determine the public transportation payment mode corresponding to the hotspot attribute, and based on the public transportation payment mode, activate the public transportation payment function to The simulation card corresponding to the public transportation payment mode is automatically selected to wait for payment to be executed. For example, if the hotspot attribute of the target hotspot information corresponds to "Shenzhen", the bus payment mode corresponding to "Shenzhen" can be determined to be the Shenzhentong payment mode.
  • the bus payment function is activated, and the target hotspot information is classified as In the public transportation category, combining the hot attributes and categories of the target hotspot information, the payment function corresponding to the category is activated.
  • the locally supported payment mode can be accurately selected, and the user does not need to manually switch the payment mode, realizing automatic and Accurate selection in order to quickly complete the payment process and improve the user experience of terminal equipment in public transit scenarios.
  • the hotspot attribute includes the geographic location of the target hotspot information.
  • a specific implementation manner of activating the payment function corresponding to the category is: activating the payment function corresponding to the category according to the geographic location.
  • the geographic location corresponds to a longitude and latitude coordinate located in Nanshan, Shenzhen
  • the area corresponding to the geographic location can be obtained as Shenzhen
  • Shenzhen is used as the effective use area
  • the public transportation payment function is activated based on Shenzhen's corresponding Shenzhen Tong payment mode.
  • the terminal device can directly determine the bus payment mode under the bus payment function according to the location of the target hotspot information, and can automatically switch different bus payment modes under the bus payment function according to the location of the target hotspot information, for example, the user
  • the bus payment function can be activated based on the Yangchengtong payment mode, so that the user can take the bus in Guangzhou without manual operation. Automatically activate the bus payment function corresponding to Yangchengtong, which greatly improves the convenience and efficiency of user terminal payment and enhances terminal payment experience.
  • the payment function corresponding to the category is activated.
  • the payment function corresponding to the category is activated, which is different from the particularity of the bus scene.
  • the category is activated.
  • the corresponding payment function is sufficient. For example, if the SSID of the target hotspot information is CCB-WiFi, and its category is the bank category, not the public transportation category, the payment function corresponding to the bank category can be activated and recorded as the bank payment function.
  • the bank payment function includes one or more payment modes, which are recorded as bank payment modes, and different bank payment modes correspond to different banks or bank cards.
  • the terminal payment method provided in this embodiment on the basis of the foregoing embodiment, considers that the bus systems of different cities or provinces are independent. Therefore, when detecting hotspot information of public transportation types, and detecting hotspot information of non-public transportation types When the terminal device activates the payment function corresponding to the target hotspot information, there is a difference.
  • the category corresponding to the target hotspot information is obtained to determine the payment function that needs to be activated, and to determine whether the category is public transportation
  • it is a public transportation category based on the hotspot attributes that characterize the effective use area of the target hotspot, determine the payment mode under the payment function that needs to be activated, and activate the payment function corresponding to the public transportation category to realize automatic bus payment.
  • "Card selection" payment does not require manual operation by the user, and when the category is not a public transportation category, the corresponding payment function is directly activated according to the category. This supports multiple scenarios and further optimizes the terminal payment experience.
  • FIG. 5 shows a terminal payment method provided by an embodiment of the present application, and the method includes: S501 to S504.
  • S502 When detecting target hotspot information matching the preset hotspot information, determine location information of the terminal device according to the target hotspot information.
  • S503 Determine whether the location information is within a preset location range.
  • the preset location range is used to determine whether the terminal device is close enough to the target hot spot corresponding to the target hot spot information.
  • the preset location range may be within 30 meters of the target hot spot. If the location information is within the preset location range, the terminal device is relatively close to the target hot spot at this time, and if the location information is not within the preset location range, the terminal device is far away from the target hot spot at this time.
  • the payment function corresponding to the target hot spot information is activated.
  • the terminal device Since the terminal device is far away from the target hotspot, the user is less likely to perform the payment function corresponding to the target hotspot information, so it can effectively reduce the probability of false triggers, improve the accuracy of starting the payment function and switch functions, and avoid frequent switching , Can reduce power consumption.
  • the method further includes:
  • step S504 may be executed;
  • step 401 If the location information is not within the preset location range, return to step 401 and continue to detect hotspot information.
  • S504 Start the payment function corresponding to the target hot spot information.
  • the payment function corresponding to the target hot spot information is activated.
  • step S504 can refer to step S113, step S403 to step S407 in the foregoing embodiment, which will not be repeated here.
  • the terminal payment method provided in this embodiment determines whether the location information meets the preset valid condition by first determining whether the location information is within the preset location range and is within the preset location range.
  • the payment function corresponding to the target hotspot information is activated, since the terminal device is far away from the target hotspot, the user is less likely to perform the payment function corresponding to the target hotspot information, so by judging whether the location information is within the preset location range .
  • To determine whether to activate the payment function corresponding to the target hot spot information which can effectively reduce the probability of false triggers, improve the accuracy of starting the payment function and switch functions, and avoid frequent switching, which can reduce power consumption.
  • the location of the hotspot when determining whether the location information meets the preset valid condition, can be determined before the location information of the terminal device is obtained, and the location information of the terminal device can be determined only when the location of the hotspot does not change. Whether it is within the preset position range, so as to avoid the power consumption caused by the following steps when the bus is only passing by without stopping, which can further improve the system availability.
  • FIG. 6, which shows a terminal payment method provided by an embodiment of the present application. Specifically, the method includes: S601 to S606.
  • S602 When detecting target hotspot information matching the preset hotspot information, determine the location information of the terminal device according to the target hotspot information.
  • S603 Acquire the hot spot location of the target hot spot information.
  • the hot spot location of the target hot spot information can be obtained based on the GSM provided by Google and the MAC address of the target hot spot information.
  • S604 Determine whether the location of the hot spot remains unchanged within the first preset duration.
  • the method further includes:
  • step S605 may be performed
  • step S601 If the location of the hot spot does not remain unchanged within the first preset duration, return to step S601 to continue to detect hot spot information.
  • S605 Determine whether the location information is within a preset location range.
  • the location of the hot spot remains unchanged within the first preset duration, it is determined whether the location information is within the preset location range.
  • the method further includes:
  • step S606 may be executed
  • step S601 If the location information is not within the preset location range, return to step S601 to continue to detect hotspot information.
  • S606 Start the payment function corresponding to the target hotspot information.
  • the payment function corresponding to the target hot spot information is activated.
  • the location information of the terminal device when determining whether the location information satisfies the preset valid conditions, the location information of the terminal device may be obtained first, and if the location information is within the preset location range, the location information of the terminal device may be obtained again.
  • the payment function corresponding to the target hotspot information is activated only when the stay time is over, and the payment function corresponding to the target hotspot information is activated. This can improve the accuracy of the judgment of the user’s payment intent, and can prevent the user from passing through the bus station and not in the bus.
  • the station intends to wait for the bus, the false trigger caused by the payment function corresponding to the target hot spot information is still activated, avoiding unnecessary power consumption and improving usability.
  • FIG. 7, shows a terminal payment method provided by an embodiment of the present application, and the method includes: S701 to S706.
  • S702 When detecting target hotspot information that matches the preset hotspot information, determine location information of the terminal device according to the target hotspot information.
  • S703 Determine whether the location information is within a preset location range.
  • the method further includes:
  • step S704 may be executed;
  • step S701 If the location information is not within the preset location range, return to step S701 to continue detecting hotspot information.
  • S704 Acquire the duration of time that the location information is within the preset location range, and use it as the stay time.
  • the duration of the location information within the preset location range is acquired as the stay time.
  • the length of the stay time can represent the length of time the user stays within the preset position range. For example, in a public transportation scenario, if the terminal device detects the hotspot information of the bus and the terminal device is within the preset location range, it can be considered that the terminal device is near the bus, and the longer the terminal device stays within the preset location range , It can be considered that the longer the user stays near the bus.
  • the terminal device can obtain its own geographic location as location information based on a positioning module such as a GPS module.
  • a positioning module such as a GPS module.
  • the terminal device can obtain its own location information in real time, and after judging whether the location information is within the preset location range, start at the first moment when the location information is within the preset location range, and the cumulative duration is Accumulate the stay time until the time when the position information is not within the preset position range is monitored, the current accumulation is ended, and the accumulated stay time this time is obtained.
  • the terminal device may also obtain location information at specified time intervals and intervals, and determine whether the location information obtained each time is within a preset location range, and obtain the first position information that is not within the preset location range. At the second time, the duration between the first time and the second time is further obtained as the stay time.
  • this accumulation can be ended early and the subsequent steps can be executed.
  • S705 Determine whether the stay time exceeds a preset time threshold.
  • the preset time threshold may be preset by the program or customized by the user.
  • the preset time threshold may be 1 minute, 5 minutes, etc., which is not limited here. Since the payment function corresponding to the target hotspot information is activated when the stay time exceeds the preset time threshold, it can be understood that the longer the preset time threshold, the more cautious the judgment to activate the payment function corresponding to the target hotspot information, and the user will be judged The higher the accuracy of whether there is an intention to pay. In addition, with the decrease of the preset time threshold, the judgment efficiency can be improved while ensuring the judgment rate of the payment intention, so that the payment function corresponding to the target hot spot information can be activated more quickly.
  • the method further includes:
  • step S706 may be executed
  • step S701 If the stay time does not exceed the preset time threshold, return to step S701 to continue detecting hotspot information.
  • the payment function corresponding to the target hotspot information can be activated to improve the user's payment intention. Judgment accuracy, and can avoid false triggers caused by starting the payment function corresponding to the target hotspot information when the user just passes the bus station and has no intention of waiting for the bus at the bus stop, avoiding unnecessary power consumption and improving usability .
  • the location information of the terminal device when determining whether the location information satisfies the preset valid condition, the location information of the terminal device may be obtained first, and if the location information is within the preset location range, the hot spot location of the target hot spot information may be obtained again. And when the hot spot location is not moving, the terminal device's stay time within the preset location range is obtained, and when the stay time out, the payment function corresponding to the target hot spot information is activated. Therefore, by determining whether the hot spot position of the target hot spot information remains unchanged for a specified duration before judging whether the user stays overtime, and then obtains the stay time when it remains unchanged to determine whether the stay timeout, the cause can be avoided.
  • FIG. 8 shows a terminal payment method provided by an embodiment of the present application, and the method includes: S801 to S808.
  • S802 When detecting target hotspot information that matches the preset hotspot information, determine the location information of the terminal device according to the target hotspot information.
  • S803 Determine whether the location information is within a preset location range.
  • the method further includes:
  • step S804 may be performed;
  • step S801 If the location information is not within the preset location range, return to step S801 to continue to detect hotspot information.
  • S804 Acquire the duration of time that the location information is within the preset location range, and use it as the stay time.
  • the duration of the location information within the preset location range is acquired as the stay time.
  • S805 Acquire the hot spot location of the target hot spot information.
  • S806 Determine whether the location of the hot spot remains unchanged within the first preset duration.
  • the method further includes:
  • step S807 may be executed
  • step S801 can be returned to continue to detect hot spot information.
  • S807 Determine whether the stay time exceeds a preset time threshold.
  • the method further includes:
  • step S806 may be executed
  • step S801 If the stay time does not exceed the preset time threshold, return to step S801 to continue to detect hotspot information.
  • the payment function corresponding to the target hot spot information is activated.
  • the method when determining whether the location information meets the preset valid conditions, after obtaining the location information of the terminal device, it is also possible to first determine whether the location information remains unchanged for a period of time, and remains unchanged for a period of time. When the time changes, it is 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 hot spot information is activated. Therefore, when the target hotspot information matching the preset hotspot information is detected, it can avoid the false triggering caused by the situation that the user starts the payment function corresponding to the target hotspot information just passing by the vicinity of the target hotspot, and also reduces the risk of frequent activation. The resulting power consumption improves system availability.
  • FIG. 9 shows a terminal payment method provided by an embodiment of the present application. Specifically, the method includes: S901 to S905.
  • S902 When detecting target hotspot information matching the preset hotspot information, determine the location information of the terminal device according to the target hotspot information.
  • S903 Determine whether the location information remains unchanged within the second preset duration.
  • the method further includes:
  • step S904 may be executed
  • step S901 can be returned to continue to detect hotspot information.
  • S904 Determine whether the location information is within a preset location range.
  • the method further includes:
  • step S905 may be executed;
  • step S901 If the location information is not within the preset location range, return to step S901 to continue to detect hotspot information.
  • the terminal device can also determine the relative distance between the terminal device and the target hot spot according to the signal strength of the target hot spot information, as the position information of the terminal device, and determine whether the position information is in the preset state according to the signal strength. Set the location within the range, if you are at the time, start the payment function corresponding to the target hotspot information. Therefore, it is not necessary to calculate the absolute distance between the terminal device and the target hot spot, which reduces the computational complexity and improves the computational efficiency.
  • FIG. 10 shows a terminal payment method provided by an embodiment of the present application, and the method includes: S1001 to S1005.
  • the terminal device can obtain the signal strength of the target hotspot information.
  • S1003 Determine the location information of the terminal device according to the signal strength.
  • the mapping relationship between the signal strength and the distance value is stored in advance, and the distance value corresponding to the signal strength can be determined according to the signal strength, and the distance value is used as the location information of the terminal device.
  • the distance value corresponding to the signal strength represents the relative distance between the terminal device and the target hot spot.
  • S1004 Determine whether the signal strength exceeds a preset signal strength.
  • the preset signal strength may be a program preset or user-defined, and the preset signal strength may be used to determine the scale of the judgment of the scene or the user's payment intention. After the signal strength exceeds the preset signal strength, the payment function corresponding to the target hot spot information is activated, so it can be understood that, on the one hand, the higher the preset signal strength, the closer the terminal device is to the target hot spot, which can increase the user's intention to pay On the other hand, the lower the preset signal strength, the farther the terminal device is from the target hot spot, which can speed up the judgment efficiency.
  • the preset signal strength may be determined according to the distance value corresponding to the preset location range, so that whether the location information is within the preset location range can be determined by determining whether the signal strength exceeds the preset signal strength.
  • the preset location range is within 10 meters from the target hot spot, and the corresponding distance value is 10 meters.
  • the preset signal strength may be the signal strength that the terminal device can detect at a distance of 10 meters from the target hot spot, such as -60dbm.
  • the method further includes:
  • step S1005 may be executed
  • step S1001 If the signal strength does not exceed the preset signal strength, return to step S1001 to continue to detect hot spot information.
  • FIG. 11 shows a method flowchart of a terminal payment method provided by an embodiment of the present application, and the method includes: S1101 to S1105.
  • S1102 Acquire environment information when detecting target hotspot information that matches the preset hotspot information.
  • S1103 Determine whether the environmental information matches the target hotspot information.
  • the environmental information includes an environmental sound signal, where the environmental sound signal may include a specific sound signal related to the scene.
  • the specific sound signal may be the sound of a bus opening the door, such as "dididi" Wait. , Sound signals of buses passing by, etc.
  • the specific implementation for determining whether the environmental information matches the target hotspot information is: determining whether the environmental sound signal matches the target hotspot information; if the environmental sound signal matches the target hotspot information, determining whether the environmental information matches the target hotspot information.
  • the terminal device For example, if the SSID of the target hotspot information is BUS-WiFi, it can be considered that the terminal device is currently in a public transportation scene, obtains the ambient sound signal, and matches the specific sound signal corresponding to the target hotspot information. If there is a matching target specific sound signal, it can be determined The environmental information matches the target hotspot information, so that when the hotspot information of the bus is detected, the environmental sound signal can be obtained to further determine that the terminal device is currently in the bus scene, improve the accuracy of the scene judgment, and further improve the judgment of whether to start Efficiency, to improve payment efficiency when startup is needed, and reduce device power consumption when startup is not needed.
  • the preset database may also store a specific sound signal corresponding to the preset hotspot information. After obtaining the environmental sound signal, it can be determined whether there is a specific sound signal corresponding to the target hotspot information. The signal matches the specific sound signal.
  • the environmental information includes the environmental sound signal and the intensity change curve of the environmental sound signal.
  • the specific implementation for judging whether the environmental information matches the target hot spot information is: judging whether the environmental sound signal matches the target hot spot information; if the environmental sound signal matches the target hot spot information, judging whether the intensity change curve matches the preset intensity change curve Matching; if the intensity change curve matches the preset intensity change curve, it is determined that the environmental information does not match the target hot spot information; if the intensity change curve does not match the preset intensity change curve, it is determined that the environmental information matches the target hot spot information.
  • the environmental sound signal Because when the terminal device detects the hotspot information of the bus, the bus may just pass by the user.
  • the user may not have the need to ride the bus, that is, there is no intention or need to pay for the bus. Therefore, through the environmental sound signal and the target hotspot When the information is matched, it continues to judge whether the intensity change curve of the environmental sound signal matches the preset intensity change curve, and when matching, for example, when the intensity change curve conforms to the change rule from weak to strong and then weak, or from strong to weak , It is determined that the environmental information does not match the target hotspot information, and the subsequent steps of starting the payment function corresponding to the target hotspot information are not executed, thereby improving the accuracy of determining the user's intention, avoiding false triggers, further reducing power consumption, and improving overall usability.
  • the specific implementation manner for judging whether the environmental sound signal matches the target hot spot information may be: performing voice recognition on the environmental sound signal to obtain the voice recognition result corresponding to the environmental sound signal; judging the voice recognition result and the target Whether the hotspot information matches.
  • the terminal device can perform voice recognition on the environmental sound signal based on the existing voice recognition model, and obtain the voice recognition result.
  • the preset database can store text information corresponding to the target hotspot information. The text information can include but not limited to "xxx has arrived", "please bring your luggage with you” and other bus scenes.
  • S1104 If the environment information matches the target hotspot information, obtain the location information of the terminal device.
  • the terminal payment device 1200 may include a hotspot detection module 1210, a location determination module 1220, and a function activation module 1230.
  • the hot spot detection module 1210 is used to detect hot spot information
  • the location determining module 1220 is configured to determine the location information of the terminal device according to the target hot spot information when the target hot spot information that matches the preset hot spot information is detected;
  • the function activation module 1230 is configured to control the terminal device to activate the payment function corresponding to the target hotspot information when the location information meets a preset validity condition.
  • the function initiation module 1230 may include: a category acquisition sub-module, a function determination sub-module, and a function initiation sub-module, wherein:
  • the category acquisition sub-module is used to acquire the category corresponding to the target hotspot information
  • the function determining sub-module is configured to determine the payment function corresponding to the target hot spot information according to the category corresponding to the target hot spot information;
  • the function activation sub-module is used to control the terminal device to activate the payment function corresponding to the target hotspot information.
  • the location determining module 1220 may include: a public transportation judgment sub-module and a public transportation initiation sub-module, wherein:
  • the bus judgment sub-module is used to judge whether the category is a public transportation category
  • the bus activation sub-module is used to activate the payment function corresponding to the category according to the judgment result.
  • bus activation sub-module includes: a hotspot attribute acquisition unit, a first category activation unit, and a second category activation unit, wherein:
  • a hotspot attribute obtaining unit configured to obtain the hotspot attribute of the target hotspot information if the category is a public transportation category
  • the first category activation unit is configured to activate the payment function corresponding to the category according to the hotspot attribute.
  • the second category activation unit is used to activate the payment function corresponding to the category if the category is not a public transportation category
  • the hotspot attribute includes the geographic location of the target hotspot information
  • the first category activation unit includes: a geographic location activation subunit, configured to activate the payment function corresponding to the category according to the geographic location.
  • the location determining module 1220 includes: a hotspot location acquiring sub-module, a first location determining sub-module, a signal strength acquiring sub-module, a second location determining sub-module, an environmental information acquiring sub-module, an environmental information matching sub-module, and a location information acquiring sub-module Sub-modules, where:
  • the hotspot location acquisition sub-module is used to obtain the hotspot location of the target hotspot information
  • the first location determining sub-module is configured to determine location information of the terminal device according to the location of the hotspot.
  • the signal strength acquisition sub-module is used to acquire the signal strength of the target hot spot information when the target hot spot information matching the preset hot spot information is detected;
  • the second location determining sub-module is configured to determine location information of the terminal device according to the signal strength.
  • the environmental information acquisition sub-module is used to acquire environmental information when the target hotspot information matching the preset hotspot information is detected;
  • the environmental information matching sub-module is used to determine whether the environmental information matches the target hotspot information
  • the location information acquisition sub-module is used to match the environment information with the target hotspot information to acquire the location information of the terminal device.
  • the environmental information includes environmental sound signals
  • the environmental information matching sub-module includes: a sound signal matching unit and a sound signal judging unit, wherein:
  • the sound signal matching unit is used to determine whether the environmental sound signal matches the target hot spot information
  • the sound signal determining unit is configured to determine that the environmental information matches the target hot spot information if the environmental sound signal matches the target hot spot information.
  • the environmental information includes an environmental sound signal and an intensity change curve of the environmental sound signal
  • the environmental information matching sub-module may further include: an intensity curve matching unit, an intensity curve matching unit, a first curve determination unit, and a second curve Judgment unit, where:
  • An intensity curve matching unit configured to determine whether the intensity change curve matches a preset intensity change curve if the environmental sound signal matches the target hot spot information
  • the first curve determination unit is configured to determine that the environmental information does not match the target hot spot information if the intensity change curve matches a preset intensity change curve;
  • the second curve determination unit is configured to determine that the environment information matches the target hot spot information if the intensity change curve does not match the preset intensity change curve.
  • the sound signal matching unit includes: an environmental voice recognition subunit and an environmental voice matching subunit, wherein:
  • the environmental voice recognition subunit is configured to perform voice recognition on the environmental sound signal, and obtain a voice recognition result corresponding to the environmental sound signal;
  • the environmental voice matching subunit is used to determine whether the voice recognition result matches the target hot spot information.
  • the first location determination sub-module includes: a hot-spot location determination sub-module and a hot-spot location determination sub-module, wherein:
  • the hotspot location judging sub-module is used to determine whether the hotspot location remains unchanged within the first preset duration
  • the hotspot location determining sub-module is configured to determine the location information of the terminal device according to the hotspot location if the hotspot location remains unchanged within the first preset duration.
  • the function activation module 1230 may include: a range judgment sub-module and a range determination sub-module, wherein:
  • the range judgment sub-module is used to judge whether the position information is within a preset position range
  • the range activation sub-module is configured to control the terminal device to activate the payment function corresponding to the target hotspot information if the location information is within the preset location range.
  • the range judgment sub-module includes: a hot spot location acquisition unit, a first hot spot judgment unit, a second hot spot judgment unit, a first signal strength unit, and a second signal strength unit, wherein:
  • a hotspot location acquiring unit for acquiring the hotspot location of the target hotspot information
  • the first hot spot determining unit is configured to determine whether the location information is within a preset location range when the location of the hot spot remains unchanged for a first preset duration.
  • the second hot spot judging unit is configured to judge whether the location information is within a preset location range when the location information remains unchanged for a second preset duration.
  • the first signal strength unit is configured to determine that the location information is within a preset location range when the signal strength exceeds a preset signal strength
  • the second signal strength unit is configured to determine that the location information is not within the preset location range when the signal strength does not exceed the preset signal strength.
  • the range activation sub-module includes: a stay time acquisition unit, a stay time judgment unit, and a stay timeout activation unit, wherein:
  • the stay time acquisition unit is configured to, if the location information is within the preset location range, acquire the duration of the location information within the preset location range as the stay time;
  • the stay time judging unit is used to judge whether the stay time exceeds a preset time threshold
  • the stay overtime activation unit is configured to control the terminal device to activate the payment function corresponding to the target hotspot information if the stay time exceeds a preset time threshold.
  • the staying time judging unit includes: a hotspot location acquisition subunit and a staying time judging subunit, wherein:
  • the staying time judging subunit is used for judging whether the staying time exceeds a preset time threshold when the location of the hot spot remains unchanged within the first preset duration.
  • the terminal payment device provided in the embodiment of the present application is used to implement the corresponding terminal payment method in the foregoing method embodiment, and has the beneficial effects of the corresponding method embodiment, which will not be repeated here.
  • the coupling between the modules may be electrical, mechanical or other forms of coupling.
  • each functional module in each embodiment of the present application may be integrated into one processing module, or each module may exist alone physically, or two or more modules may be integrated into one module.
  • the above-mentioned integrated modules can be implemented in the form of hardware or software function modules.
  • the terminal device 1300 may be a terminal device capable of running application programs, such as a smart phone, a tablet computer, or a wearable electronic device.
  • the terminal device 1300 in this application may include one or more of the following components: a processor 1310, a memory 1320, and one or more application programs, where one or more application programs may be stored in the memory 1320 and configured to be configured by One or more processors 1310 execute, and one or more programs are configured to execute the methods described in the foregoing method embodiments.
  • the processor 1310 may include one or more processing cores.
  • the processor 1310 uses various interfaces and lines to connect various parts of the entire terminal device 1300, and executes by running or executing instructions, programs, code sets, or instruction sets stored in the memory 1320, and calling data stored in the memory 1320.
  • the processor 1310 may adopt at least one of digital signal processing (Digital Signal Processing, DSP), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA), and Programmable Logic Array (Programmable Logic Array, PLA).
  • DSP Digital Signal Processing
  • FPGA Field-Programmable Gate Array
  • PLA Programmable Logic Array
  • the processor 1310 may integrate one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), a modem, and the like.
  • the CPU mainly processes the operating system, user interface, and application programs;
  • the GPU is used for rendering and drawing of display content;
  • the modem is used for processing wireless communication. It is understandable that the above-mentioned modem may not be integrated into the processor 1310, but may be implemented by a communication chip alone.
  • the memory 1320 may include random access memory (RAM) or read-only memory (Read-Only Memory).
  • the memory 1320 may be used to store instructions, programs, codes, code sets, or instruction sets.
  • the memory 1320 may include a program storage area and a data storage area, where the program storage area may store instructions for implementing the operating system and instructions for implementing at least one function (such as touch function, sound playback function, image playback function, etc.) , Instructions used to implement the following various method embodiments, etc.
  • the storage data area can also store data created by the terminal device 1300 during use (such as phone book, audio and video data, chat record data) and the like.
  • each unit in the terminal payment device shown in FIG. 12 is used as a function module such as a program package, each unit in the terminal payment device is stored in the memory 1320 and can be called by the processor to perform corresponding functions.
  • FIG. 14 shows a structural block diagram of a computer readable storage medium provided by an embodiment of the present application.
  • the computer readable storage medium 1400 stores program code, and the program code can be invoked by a processor to execute the method described in the foregoing method embodiment.
  • the computer readable storage medium 1400 may be an electronic memory such as flash memory, EEPROM (Electrically Erasable Programmable Read Only Memory), EPROM, hard disk, or ROM.
  • the computer-readable storage medium 1400 includes a non-transitory computer-readable storage medium.
  • the computer readable storage medium 1400 has storage space for the program code 1410 for executing any method steps in the above methods. These program codes can be read from or written into one or more computer program products.
  • the program code 1410 may be compressed in a suitable form, for example.

Landscapes

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

Abstract

本申请实施例公开了一种终端支付方法、装置、终端设备及计算机可读取存储介质,涉及无线通信技术领域。该方法应用于终端设备,包括:检测热点信息;当检测到与预设热点信息匹配的目标热点信息时,根据所述目标热点信息,确定所述终端设备的位置信息;在所述位置信息满足预设有效条件时,控制所述终端设备启动与所述目标热点信息对应的支付功能。本申请通过热点信息以及终端设备的位置信息,可自动启动目标热点信息对应的支付功能,提高了支付效率。

Description

终端支付方法、装置、终端设备及计算机可读取存储介质 技术领域
本申请涉及无线通信技术领域,更具体地,涉及一种终端支付方法、装置、终端设备及计算机可读取存储介质。
背景技术
近年来,随着科技和生活水平的提高,终端支付在越来越多的场景中得到应用。通常来讲,终端支付可以表示为允许用户使用其终端设备对所消费的商品或服务进行账务支付的一种支付方式。相对于传统支付,终端支付更加便利、快捷,因此越来越多的消费者选择通过终端支付的方式进行消费。但是,目前用户在进行终端支付时,往往需要在终端设备进行多个操作,才可完成一次支付,操作步骤较为繁琐,效率不高。
发明内容
本申请提出了一种终端支付方法、装置、终端设备及计算机可读取存储介质,以改善上述缺陷。
第一方面,本申请实施例提供了一种终端支付方法,应用于终端设备,所述方法包括:检测热点信息;当检测到与预设热点信息匹配的目标热点信息时,根据所述目标热点信息,确定所述终端设备的位置信息;在所述位置信息满足预设有效条件时,控制所述终端设备启动与所述目标热点信息对应的支付功能。
第二方面,本申请实施例还提供了一种终端支付装置,应用于终端设备,所述装置包括:热点检测模块,用于检测热点信息;位置确定模块,用于当检测到与预设热点信息匹配的目标热点信息时,根据所述目标热点信息,确定所述终端设备的位置信息;功能启动模块,用于在所述位置信息满足预设有效条件时,控制所述终端设备启动与所述目标热点信息对应的支付功能。
第三方面,本申请实施例还提供了一种终端设备,包括:一个或多个处理器;存储器;一个或多个应用程序,其中所述一个或多个应用程序被存储在所述存储器中并被配置为由所述一个或多个处理器执行,所述一个或多个程序配置用于执行上述方法。
第四方面,本申请实施例还提供了一种计算机可读取存储介质,计算机可读取存储介质中存储有程序代码,所述程序代码可被处理器调用执行上述方法。
本申请提供的终端支付方法、装置、终端设备及计算机可读取存储介质,通过检测热点信息,当检测到与预设热点信息匹配的目标热点信息时,根据目标热点信息,确定终端设备的位置信息,并在位置信息满足预设有效条件时,启动目标热点信息对应的支付功能。由此,可通过热点信息和位置信息判断所处场景,根据场景确定所需启动的支付功能并启动,使得用户无需手动操作就可启动所需的支付功能,实现自动选择支付,大大提高支付效率,提高终端支付场景的用户体验。
附图说明
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1示出了一种适用于本申请实施例提供的终端支付方法的应用场景图;
图2示出了本申请一个实施例提供的终端支付方法的方法流程图;
图3示出了本申请实施例提供的一种终端设备与读取设备的交互示意图;
图4示出了本申请另一实施例提供的终端支付方法的方法流程图;
图5示出了本申请又一实施例提供的终端支付方法的方法流程图;
图6示出了本申请还一实施例提供的终端支付方法的方法流程图;
图7示出了本申请再一实施例提供的终端支付方法的方法流程图;
图8示出了本申请又另一实施例提供的终端支付方法的方法流程图;
图9示出了本申请又再一实施例提供的终端支付方法的方法流程图;
图10示出了本申请再另一实施例提供的终端支付方法的方法流程图;
图11示出了本申请再又实施例提供的终端支付方法的方法流程图。
图12示出了本申请实施例提供的终端支付装置的模块框图;
图13示出了本申请实施例提供的终端设备的结构框图;
图14示出了本申请实施例的用于保存或者携带实现根据本申请实施例的终端支付方法的程序代码的存储单元。
具体实施方式
为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述。
请参阅图1,示出了本申请实施例提供的终端支付方法及装置的应用场景图,如图1所示,通信系统10包括终端设备100和读取设备200,终端设备100和读取设备200位于无线网络或有线网络中,终端设备100包括通信模块,终端设备100基于通信模块与读取设备200进行数据交互。
在一些实施例中,通信系统10还包括服务器300,终端设备100、读取设备200和服务器200位于无线网络或有线网络中,三者可进行数据交互。
终端设备100可以是还包含其它功能诸如个人数字助理和/或音乐播放器功能的便携式电子设备,诸如手机、平板电脑、具备无线通讯功能的可穿戴电子设备(如智能手表)等。便携式电子设备的示例性实施例包括但不限于搭载iOS、Android、Microsoft或者其它操作系统的便携式电子设备。上述便携式电子设备也可以是其它便携式电子设备,诸如膝上型计算机(Laptop)等。还应当理解的是,在其他一些实施例中,上述电子设备也可以不是便携式电子设备,而是台式计算机。
终端设备100支持通过无线保真(WiFi,Wireless Fidelity)接入无线局域网(Wireless Local Area Net,WLAN)的热点(即Hotspot)以实现上网功能,具体地,终端设备100可包括无线网卡或WiFi芯片用于对热点信息的扫描检测。在一个示例中,用户可以通过预先设置的WLAN功能开关选择性地开启或关闭终端设备100的WiFi功能,在终端设备100的WiFi功能处于开启状态时,终端设备100处于对WiFi信号的检测状态,WiFi连接和使用的管理程序可通过调用终端设备100的驱动程序获取到WiFi芯片检测到的WiFi信号的热点信息,热点信息可包括服务集标识(Service Set Identifier,SSID)、物理地址(Media Access Control,MAC)地址等至少一种。在一个示例中,结合SSID和MAC作为热点信息,可先根据SSID建立索引,然后再根据MAC确定具体的WIFI 热点。
需要说明的是,WLAN功能开关只是本申请实施例中所使用的词语,其代表的含义和作用已于本申请实施例中记载,其名称并不能对本申请实施例构成任何限制;可以理解的是,在本申请其他一些实施例中,上述词语也可以使用其他名称,例如WiFi功能开关等。
读取设备200可以是具有通信功能、可与终端设备100进行数据传输的电子设备,例如(Point of Sale POS)终端。在一个示例中,读取设备200可以是具有近场通信(Near Field Communication,NFC)功能的电子设备,此时终端设备100内置有NFC模块,可基于NFC模块与读取设备200进行数据交互。读取设备200在与终端设备100进行数据交互时,读取设备200向处于其通信范围内的终端设备100发送应用标识(Application Identifier,AID)指令,终端设备100的NFC模块接收到AID指令后路由到与该AID对应的应用,以激活该应用程序中对应的模拟卡,并基于该模拟卡完成支付。
在另一个示例中,读取设备200还可以是具有扫码功能的电子设备,此时终端设备100上安装有可支持扫码支付的应用,通过响应用户对该应用的操作,终端设备可开启该应用、显示该扫码支付页面,以供读取设备200读取,从而完成扫码支付流程。
目前在日常生活中,越来越多场景配置有读取设备,如(Point of Sale POS)终端,支持扫码支付、NFC支付等支付方式中的至少一种,使得用户可通过终端设备与读取设备的交互实现方便的非接触式支付。但是,发明人在研究中发现,用户在需要使用终端设备进行支付时,往往需要用户执行一系列的操作后,才可根据不同的场景选择所需的支付方式。例如若需扫码支付,往往需要先解锁终端设备,再选择支持扫码支付的应用,并打开扫码支付的页面;再如若需NFC支付,用户需要在每次支付前根据实际场景将终端设备上的默认支付设置到相应的支付卡片,才可完成后续支付过程。前述支付方式的步骤较为繁琐,支付效率不高,因而用户体验不好。
因此,为了解决上述缺陷,本申请实施例提供了一种终端支付方法,可应用于上述终端设备,如图1所示,具体地,该方法包括:S111至S113。
S111:检测热点信息。
终端设备设有WLAN模块,用户通过WLAN功能开关可选择性地开启或关闭终端设备的Wifi功能,终端设备通过检测对该WLAN功能开关的触发事件,可控制开启或关闭WLAN模块,并在开启WLAN模块时使得WLAN模块处于工作状态,此时终端设备可基于WLAN模块检测热点信息。热点信息可包括服务集标识(Service Set Identifier,SSID)、物理地址(Media Access Control,MAC)地址等的至少一种。
目前随着智慧城市的发展,公交免费Wifi逐渐覆盖各大城市,公交免费WiFi就是在公共交通工具(如地铁、公交车等)上安装无线热点来供用户免费使用,使得用户在乘坐公共交通工具时也可以在不使用数据连接的情况下连接互联网,观看在线视频等。此时,若用户终端设备的WLAN模块处于工作状态,那么当用户在公交站、地铁站或者附近等车,抑或已在公交或地铁上时,终端设备可扫描检测到公交或地铁的WiFi信号的热点信息。除公交场景外,无线热点也在很多其他场景得到应用,例如银行场景、商场场景等。
在一些实施方式中,不同无线热点的工作范围不同,工作范围越大,终端设备可在距离无线热点越远的位置检测到无线热点的热点信息。在一个示例中,无线热点的工作范围一般有几十米,所以以公交场景为例,公交车在进站时,或者用户到达地铁站等候列车时,如果用户此时在等候公交进站,那么无论进站公交是否为用户所需搭乘的路线,终端设备都可处于公交无线热点的工作范围之内。如果用户是乘坐或等候地铁,由于地 铁一般布署有无线热点,所以当用户携带终端设备进站之后在到等列车这段时间,终端设备至少会进行多次扫描,扫描检测到地铁的无线热点的热点信息。
终端设备WLAN模块在工作状态下还包括连接状态和非连接状态,其中终端设备在接入无线热点并可基于所接入的无线热点上网时,终端设备的WLAN模块处于连接状态,若未接入无线热点,WLAN模块处于非连接状态。在一些实施方式中,在非连接状态时,WLAN模块可以基于默认间隔时间对热点信息进行检测,例如每间隔15秒检测一次,默认间隔时间可固定也可自定义调整)。另外,作为一种实施方式,若终端设备处于非休眠状态时,检测的频率高于休眠状态下。由此,以公交场景为例,终端设备可在公交车/地铁到来/停下之前就可扫描到公交或地铁的无线热点,检测无线热点的热点信息。
S112:当检测到与预设热点信息匹配的目标热点信息时,根据目标热点信息,确定终端设备的位置信息。
预设热点信息是预先存储的热点信息。在一些实施方式中,预设热点信息可以包括无线热点的SSID,也可以包括无线热点的SSID中的部分字符串,例如SSID可以是诸如BUS-freeWiFi、SUBWAY-WiFi、CCB-WiFi、BC-WiFi、Mall-Wifi等,则预设热点信息可以是前述SSID,也可以是前述SSID的部分字符串如BUS、SUBWAY、CCB、BC、Mall。由此,在将热点信息与预设热点信息匹配时,可通过部分关键词匹配,来确定目标热点信息,提高了预设热点信息对热点信息匹配的覆盖率,提高可用性。在一个示例中,根据热点信息的SSID可确定该SSID对应的无线热点的使用场景等热点属性,例如,基于前述示例,根据SSID如BUS-freeWifi可确定该SSID对应的无线热点用于公交,同理根据SUBWAY-WiFi可确定其对应的无线热点用于地铁,根据CB-WiFi可确定其对应的无线热点用于银行,根据Mall-WiFi可确定其对应的无线热点用于商场。
在另一些实施方式中,预设热点信息可以包括无线热点的SSID和MAC地址,检测到的热点信息也包括SSID和MAC地址,基于SSID和MAC地址可确定该SSID对应的无线热点的场景。并在一些示例中,基于大数据收集,还可根据无线热点的MAC地址判断该无线热点所处的地理位置,所属的单位等热点属性。作为一种实施方式,终端设备可基于谷歌(Google)的谷歌移动服务(Google Mobile Service,GMS),根据无线热点的热点信息向GMS请求获取该热点信息对应的热点属性。作为另一种实施方式,也可以在终端设备本地或服务器构建数据库,以根据热点信息可获得热点信息对应的热点属性。
在一种实施方式中,终端本地存储有预设数据库,预设数据库包括至少一个预设热点信息,另外预设数据库还可包括每个预设热点信息对应的热点属性。在一个示例中,预设数据库包括至少一个预设热点信息以及每个预设热点信息对应的热点属性,由此,基于与预设热点信息的匹配,终端设备可获取与预设热点信息对应的热点属性。以公交场景为例,预设热点信息可包括预设热点的SSID,如EGOBUS-WiFi,与该预设热点信息对应的热点属性可包括该预设热点所处的城市,如深圳,由此,终端设备检测到热点信息包括SSID如EGOBUS-WiFi时,通过与预设热点信息进行匹配,可确定目标热点信息所对应的目标热点所处的城市为深圳。从而通过将预设数据库存储于终端设备以在网络质量不佳时仍可快速查询和匹配,提高了查询和匹配的效率
在另一个示例中,终端设备存储有至少一个预设热点信息,由于一些无线热点的SSID包含可用于确定热点属性的信息,例如以公交场景为例,热点信息可以包括SSID如SZBUS-WiFi,根据SSID中“SZBUS”,可获取该热点信息的热点属性如该SSID对应的无线热点所处的城市为深圳。由此,仅存储预设热点信息也可实现本方法。从而在提高查询和匹配的效率,还降低了终端设备的存储压力,有利于提高终端设备的运行处理效率。
在另一些实施方式中,服务器预先构建有预设数据库,预设数据库包括至少一个预 设热点信息,还可包括每个预设热点信息对应的热点属性。终端设备在检测到热点信息时,可向服务器发送查询请求,服务器根据热点信息查询是否存在与该热点信息匹配的预设热点信息,并将查询结果返回至终端设备,终端设备接收服务器返回的查询结果,可确定是否所检测的热点信息是否与预设热点信息匹配,并将匹配成功的热点信息作为目标热点信息。其中,查询结果可包括是否查询到的结果,并在查询到时查询结果还可包括该匹配的预设热点信息的热点属性。由于预设数据库存储与服务器,终端设备通过服务器进行查询匹配,可降低对终端设备的存储压力,并且预设数据库存储于服务器时,便于对预设数据库的更新,从而可不断覆盖更多更全面的热点信息,提高可用性。
终端设备在将检测到的热点信息与预设热点信息进行匹配并匹配成功时,可将匹配成功的热点信息作为目标热点信息,根据目标热点信息,确定终端设备的位置信息。在一些实施方式中,位置信息可以是终端设备与目标热点信息对应的目标热点之间的相对距离,也可以是绝对距离。
在一种实施方式中,终端设备的位置信息可以是终端设备与目标热点之间的相对距离。在一个示例中,根据目标热点信息,可确定终端设备检测到目标热点信息对应的信号强度,并根据信号强度,确定终端设备与目标热点之间的相对距离,并将该相对距离作为终端设备的位置信息。具体实施方式可见后述实施例,在此不作赘述。
在另一种实施方式中,终端设备的位置信息也可以是终端设备与目标热点之间的绝对距离。在一个示例中,终端设备基于定位功能可获取终端设备的地理位置如经纬度坐标作为位置信息,另终端设备还可根据目标热点信息,获取目标热点的MAC地址,并根据MAC地址确定目标热点的地理位置,从而获取终端设备和目标热点的地理位置,确定终端设备与目标热点之间的绝对距离,并将该绝对距离作为终端设备的位置信息。具体实施方式还可见后述实施例,在此不作赘述。
在其他一些实施方式中,终端设备的位置信息也可以是根据终端设备的地理位置确定的。在一个示例中,终端设备获取其地理位置如经纬度坐标,将该地理位置作为该终端设备的位置信息。
S113:在位置信息满足预设有效条件时,控制所述终端设备启动与所述目标热点信息对应的支付功能。
在一些实施方式中,根据位置信息的不同,判断位置信息是否满足预设有效条件的方式也有所差异。终端设备的位置信息可用于表征终端设备与目标热点信息对应的目标热点的距离远近,不论相对距离还是绝对距离,在距离满足一定距离范围时,启动目标热点信息对应的支付功能,可有效避免误触发,提高对用户是否需要启动支付功能的意图判断准确率,并且,可以理解的是,所设置的距离范围越小,预设有效条件所涵盖到位置信息越少,启动越谨慎,误触发的概率越低。
终端设备可支持多种支付功能,每种支付功能可对应不同的支付应用,不同的支付应用可对应不同的场景,例如公交场景下需使用公交支付应用来实现公交支付功能。由于在终端设备检测到与预设热点信息匹配的目标热点信息,且在位置信息满足预设有效条件时,可认为用户需要进行支付的可能性较高,此时终端设备启动目标热点信息对应的支付功能,不仅可准确判断用户需启动支付的意图,而且还可进行自动启动与目标热点信息对应的支付功能,避免了繁琐操作,无需用户手动操作即可实现自动选择支付。
在一个示例中,以公交场景为例,目标热点信息包括SSID如BUS-freeWiFi,在位置信息满足预设有效条件时,可认为用户在公交车上、公交站或公交站附近,存在使用公交卡进行支付的需求,此时可启动公交支付功能,以便用户进行上车支付。由此,终端设备可根据热点信息判断当前场景,并控制启动场景对应的支付功能,实现了自动控制支付功能的切换,无需用户手动操作,大大提高支付效率。
在一些实施例中,每种支付功能还可包括一个或多个支付模式,支付功能可包括公交支付功能、银行支付功能等,公交支付功能包括一个或多个公交支付模式,银行支付功能包括一个或多个银行支付模式。以公交支付功能为例,公交支付模式可与公交卡对应,例如若需终端设备支持两种公交卡支付,可预先配置有与两种公交卡对应的公交支付模式,例如公交卡可以为深圳通、羊城通,则公交支付功能可包括基于深圳通进行支付的公交支付模式,基于羊城通进行支付的公交支付模式。
需要说明的是,“支付功能”、“支付模式”只是本申请实施例中所使用的两个名词,其代表的含义在本申请实施例中已经记载,其名称并不能对本申请实施例构成任何限制;可以理解的是,在本申请其他一些实施例中,上述词语也可以使用其他名称。
在一些实施例中,终端设备可用于多种支付方式,如可用于二维码支付、NFC支付等,基于不同的支付方式,根据终端设备支付方式的不同,支付模式有所不同,例如基于二维码支付的支付方式,公交支付模式可对应不同公交卡对应的二维码;基于NFC支付的支付模式,公交支付模式可对应NFC模块基于公交卡所模拟的射频卡。
在一种实施方式中,终端设备可用于二维码支付,在二维码支付模式下,终端设备需显示用于支付的二维码,读取设备可通过扫描终端设备屏幕上所显示的二维码进行支付流程的交互。在终端设备的位置信息满足预设有效条件时,启动目标热点信息对应的支付功能的具体实施方式,可包括:确定目标热点信息对应的支付应用,并显示该支付应用的支付页面,支付页面用于供读取设备读取以进行支付。
例如,终端设备检测到与预设热点信息匹配的目标热点信息包括SSID如BUS-freeWiFi,可认为用户当前处于公交场景,可能需要乘车,再获取终端设备的位置信息,在位置信息满足预设有效条件时,可认为用户需要乘车支付,此时可启动该目标热点信息对应的公交支付功能,即通过显示目标热点信息对应的公交支付应用的支付页面,以供读取设备读取并完成支付。由此,无需用户手动操作,即可根据热点信息判断用户的场景,再结合终端设备的位置信息判断用户是否需要支付,并在位置信息满足预设有效条件时,判断用户需要启动该场景下的支付功能,此时启动目标热点信息对应的支付功能,实现自动化的支付准备,在用户支付前无需手动选择所需的支付功能,从而快速完成支付流程,提高支付效率。
在另一种实施方式中,终端设备可用于NFC支付,在NFC模块的卡模拟模式下,可通过NFC模块可模拟一个或多个射频卡(为表述方便,以下简称为模拟卡)以支持不同的支付模式,例如终端设备通过NFC模块可模拟多个公交卡以支持不同的公交支付模式,模拟多个银行卡以支持不同的银行支付模式。并终端设备可基于模拟卡与支持NFC支付的读取设备进行交互以完成支付。
需要说明的是,终端设备实现NFC卡模拟主要有三种形式,一是基于安全模块(Secure Element,SE),安全模块用于对敏感信息的安全存储和对交易事务提供安全的执行环境,可以集成在终端设备的处理器中,或者客户识别模块(Subscriber Identification Module,SIM)卡,或者终端设备的安全数字存储卡(Secure Digital Memory Card,SD)中,也可以为独立的芯片等;二是基于主机卡模拟(Host Card Emulation,HCE),可以在主机上用APP(Application)应用程序模拟出各种卡片,实现主机卡模拟的功能;三是基于通用集成电路卡(Universal Integrated Circuit Card,UICC)。NFC模块存储有路由信息,包括基于前述至少一种形式的卡模拟对应的路由位置,NFC模块接收AID指令后,可基于路由信息将AID指令发送至对应的路由位置,以使该路由位置的模块执行该指令对应的操作。
作为一种实施方式,上述安全模块也可采用嵌入式安全模块(Embedded Secure Element,eSE)替换,eSE比SE安全程度更高,eSE的硬件安全级别达到EAL6+以上。 由此终端设备采用eSE可使得终端设备的支付安全性更高。具体地,eSE可安装有各种形式的卡模拟应用,eSE接收到NFC模块发送的AID指令时,可启动对应的卡模拟应用(APPLet),并激活卡模拟应用中的模拟卡,以进行支付。
请参阅图3,示出了本申请实施例提供的一种基于eSE和HCE两种形式的卡模拟与读取设备进行数据交互的交互示意图,如图3所示,终端设备包括NFC模块、安全模块、主机处理器(Host CPU),可选地,安全模块可以是eSE,主机处理器用于实现基于HCE形式的卡模拟,安全模块和主机处理器上运行有卡模拟应用,读取设备支持NFC功能,可向终端设备发送AID指令,终端设备基于NFC模块可获取该AID指令,并将AID指令路由到安全模块或主机处理器中,以启动安全模块或主机处理器中的卡模拟应用的功能,例如启动安全模块中支付应用的支付功能。
在一个示例中,终端设备包括NFC模块和安全模块,如包括NFC模块和eSE,eSE安装有用于公交支付的卡模拟应用如公交支付应用。例如,终端设备检测到与预设热点信息匹配的目标热点信息包括SSID如BUS-freeWiFi,可认为用户当前处于公交场景,可能需要乘车,再获取终端设备的位置信息,在位置信息满足预设有效条件时,可认为用户需要乘车支付,此时可切换NFC模块的默认路由至eSE,并控制eSE启动公交支付应用以实现公交支付功能,并激活公交支付应用中的公交卡以激活公交支付模式,如激活深圳通可激活深圳通支付模式,从而启动基于公交支付模式的公交支付功能,使得在终端设备靠近读取设备时,可基于公交支付功能的深圳通支付模式进行支付。由于目前在使用NFC支付时,往往需要用户根据具体场景来判断所要选择的模拟卡,而该过程在终端设备中所进行的操作步骤较为繁琐,降低了该终端设备与用户的交互能力,并且支付效率较低,由此,通过热点信息判断用户的场景,再结合终端设备的位置信息判断用户是否需要支付,并在位置信息满足预设有效条件时,判断用户需要启动该场景下的支付功能,此时控制eSE启动目标热点信息对应的支付功能,从而在用户支付之前完成默认路由切换并启动目标热点信息对应的支付功能,激活目标热点信息对应的支付模式,实现安全的自动“选卡”支付,在用户支付前无需手动选择所需的支付功能,从而快速完成支付流程,提高支付效率。
在其他示例中,终端设备也可不包括安全模块,基于HCE或HICC启动支付功能,在读取设备支持HCE或UICC时,仍可适用本申请实施例所提供的方法。
相较于现有技术中需要用户根据具体场景来判断所要选择的卡,而该过程在移动设备中所进行的操作步骤非常繁琐,严重降低了该移动设备与用户的智能交互能力,并且支付效率较低,因此,本实施例通过基于热点信息判断场景来控制自动启动与热点信息对应的支付功能实现支付,由此,无需用户再手动操作进行选择,解决现在NFC支付所遇到的必须手动选择的问题,可在用户支付之前启动目标热点信息对应的支付功能,实现自动化的支付准备,以便快速完成支付流程,提高现有移动公交支付场景的用户体验。
另外,由于不同城市或者省份的公交系统是独立的,因此在检测到公共交通类别的热点信息,与检测到非公共交通类别的热点信息时,终端设备启动目标热点信息对应的支付功能时存在区别,具体地,请参阅图4,示出了本申请实施例提供的一种终端支付方法,该方法包括:S401至S407。
S401:检测热点信息。
S402:当检测到与预设热点信息匹配的目标热点信息时,根据目标热点信息,确定终端设备的位置信息。
在一种实施方式中,当检测到与预设热点信息匹配的目标热点信息时,根据目标热点信息,确定终端设备的位置信息的具体实施方式,可包括:当检测到与预设热点信息匹配的目标热点信息时,获取目标热点信息的信号强度;根据信号强度,确定终端设备 的位置信息。
在一个示例中,终端设备在检测到目标热点信息时,可获取目标热点信息对应的信号强度,根据信号强度的强弱,可确定终端设备距离目标热点的距离远近,即终端设备与目标热点之间的相对距离,将相对距离作为终端设备的位置信息。在一个示例中,可预先存储有信号强度与相对距离之间的映射关系,根据信号强度,可确定与该信号强度对应的相对距离,从而确定终端设备的位置信息。由此,终端设备无需开启定位,或不具备定位功能,也仍可获取终端设备的位置信息,用于判断是否启动支付功能,可降低功耗,并由于可不必计算设备位置和热点位置的距离,减少计算复杂度,提高运算效率。
在另一种实施方式中,当检测到与预设热点信息匹配的目标热点信息时,根据目标热点信息,确定终端设备的位置信息的具体实施方式,可包括:当检测到与预设热点信息匹配的目标热点信息时,获取目标热点信息的热点位置;根据热点位置,确定终端设备的位置信息。
在一个示例中,终端设备可基于GSM,根据目标热点信息的MAC地址获取目标热点信息的热点位置,热点位置为目标热点信息对应的目标热点的地理位置。终端设备获取当前地理位置作为终端设备的位置信息,并根据热点位置和终端设备的位置信息,可获取目标热点和终端设备之间的绝对距离,并将该绝对距离作为终端设备的位置信息。由此,通过目标热点和终端设备之间的绝对距离作为终端设备的位置信息,可提高对位置信息是否满足预设有效条件的判断准确率,也就提高启动目标热点信息对应的支付功能的准确率。
进一步地,在一些实施方式中,当检测到与预设热点信息匹配的目标热点信息时,根据目标热点信息,确定终端设备的位置信息的具体实施方式,可包括:判断热点位置是否在第一预设持续时间内保持不变;若热点位置在第一预设持续时间内保持不变,根据热点位置,确定终端设备的位置信息。
在一个示例中,若热点位置未在第一预设持续时间内保持不变,可不执行后续步骤,并可继续检测热点信息,由此可在热点位置不断变化时,不启动目标热点信息对应的支付功能。以公交场景为例,在用户无需乘作公交车,在路上行动时,终端设备可能检测到正在马路上行使的公交车的热点信息,此时公交车可能只是经过,而并不停下载客,因此通过判断热点位置是否在第一预设持续时间内保持不变,并在保持不变时,确定终端设备的位置信息。并可选地,在热点位置不断变化时即只检测到经过的公交车,而未检测到公交车停下时,可不执行后续步骤,从而可降低误触发概率,节省设备功耗,提高系统可用性。
S403:在位置信息满足预设有效条件时,获取目标热点信息对应的类别。
在一些实施方式中,在位置信息满足预设有效条件时,获取目标热点信息对应的类别的具体实施方式包括:判断位置信息是否满足预设有效条件;若位置信息满足预设有效条件,获取目标热点信息对应的类别。在一些实施例中,若位置信息不满足预设有效条件,还可返回执行检测热点信息,由此可节省功耗。
类别用于表征热点信息对应的场景类别,可以是用于表征场景类别的类别标识。终端设备通过获取目标热点信息的类别标识,可确定类别标识对应的类别,由此获取目标热点信息对应的类别。
在一种实施方式中,热点信息包括SSID,可根据目标热点信息的SSID,获取目标热点信息对应的类别。例如,根据目标热点信息的SSID为BUS-freeWiFi,可根据SSID中表示公交车的“BUS”,确定目标热点信息对应的类别为公共交通类别。再如,根据目标热点信息的SSID为Bank-WiFi,可根据SSID中表示银行的“Bank”,确定目标热点信息对应的类别为银行类别。
在一些实施例中,终端设备还可根据目标热点信息的SSID获取目标热点信息的子类别,例如银行类别下还包括各大银行对应的子类别,终端设备可通过查询SSID是否存在与子类别的标识对应的标识时,可确定目标热点信息的子类别,即所具体对应的银行。
在另一种实施方式中,类别存储于预设数据库中,具体地,预设数据库中预先存储有至少一个预设热点信息以及每个预设热点信息对应的类别,终端设备基于预设数据库,查找与预设热点信息匹配的目标热点信息时,可获取匹配的预设热点信息所对应的类别作为目标热点信息对应的类别。
S404:判断类别是否为公共交通类别。
类别可以是用于表征场景类别的类别标识,根据类别标识是否与公共交通类别的类别标识匹配,可判断类别是否为公共交通类别,
在一种实施方式中,终端设备根据目标热点信息的SSID,获取目标热点信息对应的类别,此时,作为一种方式,可直接基于SSID判断类别是否为公共交通类别,根据目标热点信息的SSID是否与公共交通类别匹配,判断类别是否为公共交通类别。判断SSID中是否存在与公共交通类别有关的字符或字符串,来判断类别是否为公共交通类别。例如,预先存储有公共交通类别对应的字符或字符串,如表示公交车的“bus”、表示地铁的“subway”等,判断SSID中是否存在前述预先存储的字符或字符串,若存在,可判定类别属于公共交通类别,若不存在,可判定类别不属于公共交通类别。作为另一种方式,还可所获取的目标热点信息的类别进行判断,
在另一种实施方式中,终端设备基于预设数据库获取目标热点信息对应的类别,此时可根据目标热点信息的类别,判断该类别是否为公共交通类别。通过判断目标热点信息的类别与公共交通类别是否一致,可判断类别是否为公共交通类别,并在一致时,可判定类别为公共交通类别,在不一致时,可判定类别不为公共交通类别。
于本实施例中,判断类别是否为公共交通类别之后,可根据判断结果,启动所述类别对应的支付功能,具体地可包括:
若类别为公共交通类别,可执行步骤S405;
若类别不为公共交通类别,可执行步骤S407。
S405:获取目标热点信息的热点属性。
若类别为公共交通类别,获取目标热点信息的热点属性。其中,热点属性可用于确定目标热点信息对应的目标热点的有效使用区域,有效使用区域可对应不同的城市或省份。在一个示例中,不同城市或省份的公交系统独立,不同城市或省份可支持支付的公交卡不能通用,如在深圳可使用深圳通支付来乘坐公交车,但不可使用羊城通支付,因此通过获取目标热点信息的热点属性,可获取目标热点信息对应的有效使用区域。
作为一种实施方式,热点信息的SSID可包括表征有效使用区域的字符或字符串,此时可根据目标热点信息的SSID确定目标热点信息的热点属性,如SSID为SZBUS-WiFi,根据其中“SZ”可获取目标热点信息的有效使用区域为深圳,并将该有效使用区域作为热点属性。
作为另一种实施方式,预设数据库中存储有预设热点信息对应的热点属性,终端设备可基于预设数据库,获取与目标热点信息对应的预设热点信息对应的热点属性,并加个该热点属性作为目标热点信息的热点属性。
作为又一种实施方式,终端设备可获取目标热点信息的地理位置,获取该地理位置对应的区域,作为有效使用区域,并将该有效使用区域作为目标热点信息的热点属性。由此根据目标热点信息的实际地理位置,确定有效使用区域,例如,目标热点信息包括目标热点的MAC地址和SSID如SZBUS-WiFi,终端设备可根据该目标热点信息的MAC地 址,基于GSM获取该目标热点信息对应的目标热点的地理位置,作为目标热点信息的地理位置,例如该地理位置对应位于深圳南山的一处经纬度坐标,可获取该地理位置对应的区域为深圳,并将深圳作为有效使用区域。可选地,获取地理位置对应的区域,可根据公交系统已有的城市或省份进行确定,根据地理位置与公交系统进行匹配,将匹配到的城市或省份作为该地理位置的区域,并作为有效使用区域,即目标热点信息的热点属性。
S406:根据热点属性,启动类别对应的支付功能。
在类别为公共交通类别时,类别对应的支付功能为公共交通类别对应的支付功能,记为公共支付功能。公共支付功能包括一个或多个公共支付模式,不同的公共支付模式可对应不同的模拟卡,对应不同的热点属性,如公共支付模式可包括但不不限于为基于深圳通支付的深圳通支付模式,其对应的热点属性为深圳;基于羊城通支付的羊城通支付通模式,其对应的热点属性为广州。
在一个示例中,终端设备根据热点属性,启动类别对应的支付功能的具体实施方式可包括:根据热点属性,确定热点属性对应的公交支付模式,并基于该公交支付模式,启动公交支付功能,以自动选择该公交支付模式对应的模拟卡等待执行支付。例如,若目标热点信息的热点属性对应“深圳”,可确定“深圳”对应的公交支付模式为深圳通支付模式,基于深圳通支付模式,启动公交支付功能,由此在目标热点信息的类别为公共交通类别时,结合目标热点信息的热点属性和类别,启动类别对应的支付功能,可在公交场景下,准确地选择当地支持的支付模式,并且无需用户手动操作切换支付模式,实现了自动且准确的选择,以便快速完成支付流程,提高了终端设备在公交场景下的用户体验。
在另一个示例中,热点属性包括目标热点信息的地理位置,根据所述热点属性,启动所述类别对应的支付功能的具体实施方式为:根据地理位置,启动类别对应的支付功能。例如地理位置对应位于深圳南山的一处经纬度坐标,可获取该地理位置对应的区域为深圳,并将深圳作为有效使用区域,基于深圳对应深圳通支付模式,启动公交支付功能。由此,终端设备可直接根据目标热点信息的位置,确定公交支付功能下的公交支付模式,可在根据目标热点信息的位置改变,自动切换公交支付功能下不同的公交支付模式,例如,用户从深圳抵达广州,在检测到广州的热点信息时,并在位置信息满足预设有效条件时,可基于羊城通支付模式启动公交支付功能,使得用户无需手动操作,即可在广州需乘公交时,自动启动对应羊城通的公交支付功能,大大提高用户终端支付的便利性和效率,提升终端支付体验。
S407:启动类别对应的支付功能。
若类别不为公共交通类别,启动类别对应的支付功能。在一个示例中,在目标热点信息的类别不为公共交通类别时,启动类别对应的支付功能,区别于公交场景的特殊性,在其他场景使用时可无需获取目标热点信息的热点属性,启动类别对应的支付功能即可。例如若目标热点信息的SSID为CCB-WiFi,其类别为银行类别,不为公共交通类别,可启动银行类别对应的支付功能,记为银行支付功能。
在一些实施方式中,银行支付功能包括一个或多个支付模式,记为银行支付模式,不同的银行支付模式对应不同的银行或银行卡。
需要说明的是,上述步骤中未详细描述的部分,可参考前述实施例,在此不再赘述。
本实施例提供的终端支付方法,在前述实施例的基础上,考虑不同城市或者省份的公交系统是独立的,因此在检测到公共交通类别的热点信息,与检测到非公共交通类别的热点信息时,终端设备启动目标热点信息对应的支付功能时存在区别,因此在位置信息满足预设有效条件时,获取目标热点信息对应的类别,以确定所需启动的支付功能, 判断类别是否为公共交通类别,并在为公共交通类别时,基于表征目标热点的有效使用区域的热点属性,确定所需启动的支付功能下的支付模式,并启动公共交通类别对应的支付功能,实现公交支付中的自动“选卡”支付,无需用户手动操作,并在类别不为公共交通类别时,直接根据类别启动对应的支付功能。由此支持多种场景,使得终端支付体验得到进一步优化。
请参阅图5,示出了本申请实施例提供的一种终端支付方法,该方法包括:S501至S504。
S501:检测热点信息。
S502:当检测到与预设热点信息匹配的目标热点信息时,根据目标热点信息,确定终端设备的位置信息。
S503:判断位置信息是否处于预设位置范围内。
判断位置信息是否处于预设位置范围内,其中,预设位置范围用于判断终端设备是否与目标热点信息对应的目标热点足够近,例如,预设位置范围可以是距离目标热点30米范围内。若位置信息处于预设位置范围内,此时终端设备与目标热点距离较近,若位置信息未处于预设位置范围内,此时终端设备与目标热点距离较远。在位置信息处于预设位置范围内时,启动目标热点信息对应的支付功能。由于终端设备距离目标热点较远时,用户要执行与目标热点信息对应的支付功能的可能性较小,因此可有效降低误触发概率,提高启动支付功能进功能切换的准确率,并避免频繁切换,可降低功耗。
于本实施例中,判断位置信息是否处于预设位置范围内之后,还包括:
若位置信息处于预设位置范围内,可执行步骤S504;
若位置信息不处于预设位置范围内,可返回执行步骤401,继续检测热点信息。
S504:启动目标热点信息对应的支付功能。
若位置信息处于预设位置范围内,启动目标热点信息对应的支付功能。
于本实施例中,步骤S504的具体描述可参见前述实施例中的步骤S113、步骤S403至步骤S407,在此不再赘述。
需要说明的是,上述步骤中未详细描述的部分,可参考前述实施例,在此不再赘述。
本实施例提供的终端支付方法,在前述实施例的基础上,在判断位置信息是否满足预设有效条件时,通过先判断位置信息是否处于预设位置范围内,并在处于预设位置范围内时,启动目标热点信息对应的支付功能,由于终端设备距离目标热点较远时,用户要执行与目标热点信息对应的支付功能的可能性较小,因此通过判断位置信息是否处于预设位置范围内,来确定是否启动目标热点信息对应的支付功能,可有效降低误触发概率,提高启动支付功能进功能切换的准确率,并避免频繁切换,可降低功耗。
另外,在一些实施例中,在判断位置信息是否满足预设有效条件时,可在获取终端设备的位置信息之前,先判断热点位置,并在热点位置不变时,才判断终端设备的位置信息是否处于预设位置范围内,以避免公交仅是驶过而未停下的情况下,仍执行后续步骤所带来的功耗,可进一步提高系统可用性。请参阅图6,示出了本申请实施例提供的一种终端支付方法,具体地,该方法包括:S601至S606。
S601:检测热点信息。
S602:当检测到与预设热点信息匹配的目标热点信息时,根据目标热点信息,确定终端设备的位置信息。
S603:获取目标热点信息的热点位置。
在一些实施方式中,可基于谷歌提供的GSM,根据目标热点信息的MAC地址,获取目标热点信息的热点位置。
S604:判断热点位置在第一预设持续时间内是否保持不变。
于本实施例中,判断热点位置在第一预设持续时间内是否保持不变之后,还包括:
若热点位置在第一预设持续时间内保持不变,可执行步骤S605;
若热点位置未在第一预设持续时间内保持不变,可返回执行步骤S601,继续检测热点信息。
S605:判断位置信息是否处于预设位置范围内。
若热点位置在第一预设持续时间内保持不变,判断位置信息是否处于预设位置范围内。
于本实施例中,判断位置信息是否处于预设位置范围内之后,还包括:
若位置信息处于预设位置范围内,可执行步骤S606;
若位置信息不处于预设位置范围内,可返回执行步骤S601,继续检测热点信息。
S606:启动目标热点信息对应的支付功能。
若位置信息处于预设位置范围内,启动目标热点信息对应的支付功能。
需要说明的是,上述步骤中未详细描述的部分,可参考前述实施例,在此不再赘述。
另外,在一些实施例中,在判断位置信息是否满足预设有效条件时,还可先获取终端设备的位置信息,若位置信息在预设位置范围内,可再获取终端设备在预设位置范围内停留的时间,并在停留超时的时候,才启动目标热点信息对应的支付功能,由此,可提高对用户支付意图的判断准确率,并可避免在用户只是经过公交站,并无在公交站等车的意图时,仍启动目标热点信息对应的支付功能所带来的误触发,避免不必要的功耗,提高可用性。具体地,请参阅图7,示出了本申请实施例提供的一种终端支付方法,该方法包括:S701至S706。
S701:检测热点信息。
S702:当检测到与预设热点信息匹配的目标热点信息时,根据目标热点信息,确定终端设备的位置信息。
S703:判断位置信息是否处于预设位置范围内。
于本实施例中,判断位置信息是否处于预设位置范围内之后,还包括:
若位置信息处于预设位置范围内,可执行步骤S704;
若位置信息未处于预设位置范围内,可返回执行步骤S701,继续检测热点信息。
S704:获取位置信息处于预设位置范围内的持续时间,作为停留时间。
若位置信息处于预设位置范围内,获取位置信息处于预设位置范围内的持续时间,作为停留时间。其中,停留时间的长短可表征用户在预设位置范围内停留的时间长短。例如在公交场景时,若终端设备检测到公交车的热点信息,并终端设备处于预设位置范围内,可认为终端设备在公交车附近,而终端设备在预设位置范围内的停留时间越长,可认为用户在公交车附近停留的时间越长。
终端设备可基于定位模块如GPS模块,获取终端设备自身的地理位置作为位置信息。作为一种实施方式,终端设备可实时获取自身的位置信息,并在判断位置信息是否处于预设位置范围内后,判定位置信息处于预设位置范围内的第一时刻开始,累计持续时间,即累计停留时间,直到监测到位置信息不处于预设位置范围内的时刻为止,结束本次累计,获取本次累积的停留时间。
作为另一种实施方式,终端设备还可按照指定时间间隔,间隔获取位置信息,并判断每一次获取的位置信息是否处于预设位置范围内,并获取位置信息不处于预设位置范围内的第二时刻,进而获取第一时刻至第二时刻之间的持续时间,作为停留时间。
进一步地,在一些实施方式中,若停留时间超过预设时间阈值,可提前结束本次累计,并执行后续步骤。
S705:判断停留时间是否超过预设时间阈值。
其中,预设时间阈值可以是程序预设的,也可以是用户自定义的。可选地,预设时间阈值可以是1分钟、5分钟等,在此不做限定。由于在停留时间超过预设时间阈值时,启动目标热点信息对应的支付功能,因此,可以理解的是,预设时间阈值越长,启动目标热点信息对应的支付功能的判断越谨慎,则判断用户是否有支付意图的准确率越高。另外,随着预设时间阈值的减少,可在保证对支付意图的判断率的同时,提高判断效率,使得在需要启动目标热点信息对应的支付功能时,可更快启动。
于本实施例中,判断停留时间是否超过预设时间阈值之后,还包括:
若停留时间超过预设时间阈值内,可执行步骤S706;
若停留时间未超过预设时间阈值内,可返回执行步骤S701,继续检测热点信息。
S706:若停留时间超过预设时间阈值,启动目标热点信息对应的支付功能。
若在预设位置范围内的停留时间超过预设时间阈值,可认为用户在等待公交车,需公交支付的意图较强,此时启动目标热点信息对应的支付功能,可提高对用户支付意图的判断准确率,并可避免在用户只是经过公交站,并无在公交站等车的意图时,仍启动目标热点信息对应的支付功能所带来的误触发,避免不必要的功耗,提高可用性。
需要说明的是,上述步骤中未详细描述的部分,可参考前述实施例,在此不再赘述。
另外,在一些实施例中,在判断位置信息是否满足预设有效条件时,还可先获取终端设备的位置信息,若位置信息在预设位置范围内,可再获取目标热点信息的热点位置,并在热点位置不动时,再获取终端设备在预设位置范围内的停留时间,并在停留超时的时候,才启动目标热点信息对应的支付功能。由此,通过在判断用户是否停留超时前,先确定目标热点信息的热点位置是否在指定的持续时间内保持不变,并在保持不变时才获取停留时间去判断是否停留超时,可避免因用户只是经过公交站、且公交只是经过用户而并未停下的情况下,仍启动支付功能所导致的误触发,进一步提高对用户支付意图的判断准确率,提高启动准确率,进一步提高系统可用性。具体地,请参阅图8,示出了本申请实施例提供的一种终端支付方法,该方法包括:S801至S808。
S801:检测热点信息。
S802:当检测到与预设热点信息匹配的目标热点信息时,根据目标热点信息,确定终端设备的位置信息。
S803:判断位置信息是否处于预设位置范围内。
于本实施例中,判断位置信息是否处于预设位置范围内之后,还包括:
若位置信息处于预设位置范围内,可执行步骤S804;
若位置信息不处于预设位置范围内,可返回执行步骤S801,继续检测热点信息。
S804:获取位置信息处于预设位置范围内的持续时间,作为停留时间。
若位置信息处于预设位置范围内,获取位置信息处于预设位置范围内的持续时间,作为停留时间。
S805:获取目标热点信息的热点位置。
S806:判断热点位置在第一预设持续时间内是否保持不变。
于本实施例中,判断热点位置在第一预设持续时间内是否保持不变之后,还包括:
若热点位置在第一预设持续时间内保持不变,可执行步骤S807;
若热点位置未在第一预设持续时间内保持不变,可返回执行步骤S801,继续检测热点信息。
S807:判断停留时间是否超过预设时间阈值。
若热点位置在第一预设持续时间内保持不变,判断停留时间是否超过预设时间阈值。
于本实施例中,判断停留时间是否超过预设时间阈值之后,还包括:
若停留时间超过预设时间阈值内,可执行步骤S806;
若停留时间未超过预设时间阈值内,可返回执行步骤S801,继续检测热点信息。
S808:启动目标热点信息对应的支付功能。
若停留时间超过预设时间阈值,启动目标热点信息对应的支付功能。
需要说明的是,上述步骤中未详细描述的部分,可参考前述实施例,在此不再赘述。
另外,在一些实施例中,在判断位置信息是否满足预设有效条件时,还可在获取终端设备的位置信息后,先判断位置信息是否在一段时间内保持不变,并在一段时间保持不变时,再判断位置信息是否处于在预设位置范围内,并在位置信息处于预设位置范围内时,启动目标热点信息对应的支付功能。由此,当检测到与预设热点信息匹配的目标热点信息时,可避免用户只是经过目标热点附近,就启动目标热点信息对应的支付功能的情况所导致的误触发,也降低因频繁启动所引起的功耗,提高系统可用性。请参阅图9,示出了本申请实施例提供的一种终端支付方法,具体地,该方法包括:S901至S905。
S901:检测热点信息。
S902:当检测到与预设热点信息匹配的目标热点信息时,根据目标热点信息,确定终端设备的位置信息。
S903:判断位置信息在第二预设持续时间内是否保持不变。
于本实施例中,判断位置信息在第二预设持续时间内是否保持不变之后,还包括:
若位置信息在第二预设持续时间内保持不变,可执行步骤S904;
若位置信息在第二预设持续时间内未保持不变,可返回执行步骤S901,继续检测热点信息。
S904:判断位置信息是否处于预设位置范围内。
于本实施例中,判断位置信息是否处于预设位置范围内之后,还包括:
若位置信息处于预设位置范围内,可执行步骤S905;
若位置信息不处于预设位置范围内,可返回执行步骤S901,继续检测热点信息。
S905:若位置信息处于预设位置范围内,启动目标热点信息对应的支付功能。
需要说明的是,上述步骤中未详细描述的部分,可参考前述实施例,在此不再赘述。
另外,在一些实施方式中,终端设备还可根据目标热点信息的信号强度,来确定终端设备与目标热点之间的相对距离,作为终端设备的位置信息,并根据信号强度判断位置信息是否处于预设位置范围内,若在处于时,启动目标热点信息对应的支付功能。由此,可不必计算终端设备和目标热点之间的绝对距离,减少计算复杂度,提高运算效率。具体地,请参阅图10,示出了本申请实施例提供的一种终端支付方法,该方法包括:S1001至S1005。
S1001:检测热点信息。
S1002:当检测到与预设热点信息匹配的目标热点信息时,获取目标热点信息的信号强度。
终端设备在WLAN模块处于开启状态时,可获取目标热点信息的信号强度。
S1003:根据信号强度,确定终端设备的位置信息。
预先存储有信号强度和距离值之间的映射关系,根据信号强度可确定与信号强度对应的距离值,并将该距离值作为终端设备的位置信息。其中,信号强度对应的距离值表征终端设备与目标热点之间的相对距离。
S1004:判断信号强度是否超过预设信号强度。
其中,预设信号强度可以是程序预设,也可以是用户自定义,预设信号强度可用于确定对场景或用户支付意图判断的尺度。由于在信号强度超过预设信号强度后,启动目标热点信息对应的支付功能,因此可以理解的是,一方面,预设信号强度越高,终端设备距离目标热点越近,可提高对用户支付意图的判断准确性;另一方面,预设信号强度 越低,终端设备距离目标热点越远,可加快判断效率。
作为一种实施方式,预设信号强度可以根据与预设位置范围对应的距离值确定,从而可通过判断信号强度是否超过预设信号强度,来判断位置信息是否处于预设位置范围内。例如,预设位置范围为距离目标热点10米内,其对应的距离值为10米,预设信号强度可以是终端设备在距离目标热点10米处的所能检测到的信号强度,如-60dbm。
于本实施例中,判断信号强度是否超过预设信号强度之后,还包括:
若信号强度超过预设信号强度,可执行步骤S1005;
若信号强度未超过预设信号强度,可返回执行步骤S1001,继续检测热点信息。
S1005:启动目标热点信息对应的支付功能。
若信号强度超过预设信号强度,启动目标热点信息对应的支付功能
需要说明的是,上述步骤中未详细描述的部分,可参考前述实施例,在此不再赘述。
进一步地,当检测到与预设热点信息匹配的目标热点信息时,根据目标热点信息,确定终端设备的位置信息时,还可获取根据环境信息,与目标热点信息进行匹配,并在匹配时,获取终端设备的位置信息,由此,通过环境信息辅助判断,进一步提高对场景确定以及用户意图判断的准确性。具体地,请参阅图11,示出了本申请实施例提供的一种终端支付方法的方法流程图,该方法包括:S1101至S1105。
S1101:检测热点信息。
S1102:当检测到与预设热点信息匹配的目标热点信息时,获取环境信息。
S1103:判断环境信息与目标热点信息是否匹配。
在一些实施例中,环境信息包括环境声音信号,其中,环境声音信号可以包括与场景相关的特定声音信号,以公交场景为例,特定声音信号可以是公交车开门的声音如“嘀嘀嘀”等。、公交车驶过的声音信号等。此时,判断环境信息与目标热点信息是否匹配的具体实施方式为:判断环境声音信号与目标热点信息是否匹配;若环境声音信号与目标热点信息匹配,判定环境信息与目标热点信息匹配。例如,目标热点信息的SSID为BUS-WiFi,可认为终端设备当前处于公交场景,获取环境声音信号,通过与目标热点信息对应的特定声音信号进行匹配,若存在匹配的目标特定声音信号,可判定环境信息与目标热点信息匹配,由此可在检测到公交的热点信息时,获取环境声音信号,进一步确定终端设备当前处于公交场景,提高对场景判断的准确率,有利于进一步提高是否启动的判断效率,以在需要启动时,提高支付效率,在不需要启动时降低设备功耗。
在一种实施方式中,预设数据库中还可存储有预设热点信息对应的特定声音信号,获取环境声音信号后,可判断在与目标热点信息对应的特定声音信号中,是否存在与环境声音信号匹配的特定声音信号。
在另一些实施例中,环境信息包括环境声音信号和环境声音信号的强度变化曲线,。具体地,判断环境信息与目标热点信息是否匹配的具体实施方式为:判断环境声音信号与目标热点信息是否匹配;若环境声音信号与目标热点信息匹配,判断强度变化曲线与预设强度变化曲线是否匹配;若强度变化曲线与预设强度变化曲线匹配,判定环境信息与目标热点信息不匹配;若强度变化曲线与预设强度变化曲线不匹配,判定环境信息与目标热点信息匹配。其中,环境声音信号。由于,终端设备在检测到公交车的热点信息时,可能公交车只是经过用户,此时用户可能并没有乘车需求,即没有公交支付的意图或需求,因此,通过在环境声音信号与目标热点信息匹配时,还继续判断环境声音信号的强度变化曲线是否与预设强度变化曲线匹配,并在匹配时,例如强度变化曲线符合由弱变强再变弱,或由强变弱的变化规律时,判定环境信息与目标热点信息不匹配,不执行后续启动目标热点信息对应的支付功能的步骤,从而提高了对用户意图的判断准确率,避免误触发,进一步降低功耗,提高整体可用性。
进一步地,在一些实施方式中,判断环境声音信号与目标热点信息是否匹配的具体实施方式可以为:对环境声音信号进行语音识别,获取环境声音信号对应的语音识别结果;判断语音识别结果与目标热点信息是否匹配。其中,终端设备可基于现有的语音识别模型,对环境声音信号进行语音识别,获取语音识别结果。例如以公交场景为例,预设数据库可存储有与目标热点信息对应的文本信息,文本信息可包括但不限于“xxx已到站”、“请乘客带齐您的行李物品”等与公交场景相关的信息,并在文本信息中存在与所获取的环境声音信息对应的语音识别结果匹配的目标文本信息时,判定环境信息与目标热点信息匹配,从而可进一步提高对场景判断的准确率,降低误触发,并有利于提高对用户支付意图的判断准确率。
S1104:若环境信息与目标热点信息匹配,获取终端设备的位置信息。
S1105:在位置信息满足预设有效条件时,启动目标热点信息对应的支付功能。
需要说明的是,上述步骤中未详细描述的部分,可参考前述实施例,在此不再赘述。
请参阅图12,其示出了本申请实施例提供的一种终端支付装置的结构框图,该终端支付装置1200可以包括:热点检测模块1210、位置确定模块1220和功能启动模块1230。
热点检测模块1210,用于检测热点信息;
位置确定模块1220,用于当检测到与预设热点信息匹配的目标热点信息时,根据所述目标热点信息,确定所述终端设备的位置信息;
功能启动模块1230,用于在所述位置信息满足预设有效条件时,控制所述终端设备启动与所述目标热点信息对应的支付功能。
进一步地,功能启动模块1230可包括:类别获取子模块、功能确定子模块以及功能启动子模块,其中:
类别获取子模块,用于获取所述目标热点信息对应的类别;
功能确定子模块,用于根据所述目标热点信息对应的类别,确定所述目标热点信息对应的支付功能;
功能启动子模块,用于控制所述终端设备启动与所述目标热点信息对应的支付功能。
进一步地,位置确定模块1220可包括:公交判断子模块、公交启动子模块,其中:
公交判断子模块,用于判断所述类别是否为公共交通类别;
公交启动子模块,用于根据判断结果,启动所述类别对应的支付功能。
进一步地,公交启动子模块包括:热点属性获取单元、第一类别启动单元以及第二类别启动单元,其中:
热点属性获取单元,用于若所述类别为公共交通类别,获取所述目标热点信息的热点属性;
第一类别启动单元,用于根据所述热点属性,启动所述类别对应的支付功能。
第二类别启动单元,用于若所述类别不为公共交通类别,启动所述类别对应的支付功能
进一步地,所述热点属性包括所述目标热点信息的地理位置,第一类别启动单元包括:地理位置启动子单元,用于根据所述地理位置,启动所述类别对应的支付功能。
进一步地,位置确定模块1220包括:热点位置获取子模块、第一位置确定子模块、信号强度获取子模块、第二位置确定子模块、环境信息获取子模块、环境信息匹配子模块和位置信息获取子模块,其中:
热点位置获取子模块,用于获取目标热点信息的热点位置;
第一位置确定子模块,用于根据所述热点位置,确定所述终端设备的位置信息。
信号强度获取子模块,用于当检测到与预设热点信息匹配的目标热点信息时,获取 所述目标热点信息的信号强度;
第二位置确定子模块,用于根据所述信号强度,确定所述终端设备的位置信息。
环境信息获取子模块,用于当检测到与预设热点信息匹配的目标热点信息时,获取环境信息;
环境信息匹配子模块,用于判断所述环境信息与所述目标热点信息是否匹配;
位置信息获取子模块,用于所述环境信息与所述目标热点信息匹配,获取所述终端设备的位置信息。
进一步地,所述环境信息包括环境声音信号,环境信息匹配子模块包括:声音信号匹配单元和声音信号判定单元,其中:
声音信号匹配单元,用于判断所述环境声音信号与所述目标热点信息是否匹配;
声音信号判定单元,用于若所述环境声音信号与所述目标热点信息匹配,判定所述环境信息与所述目标热点信息匹配。
进一步地,所述环境信息包括环境声音信号和所述环境声音信号的强度变化曲线,环境信息匹配子模块还可包括:强度曲线匹配单元、强度曲线匹配单元、第一曲线判定单元以及第二曲线判定单元,其中:
强度曲线匹配单元,用于若所述环境声音信号与所述目标热点信息匹配,判断所述强度变化曲线与预设强度变化曲线是否匹配;
第一曲线判定单元,用于若所述强度变化曲线与预设强度变化曲线匹配,判定所述环境信息与所述目标热点信息不匹配;
第二曲线判定单元,用于若所述强度变化曲线与预设强度变化曲线不匹配,判定所述环境信息与所述目标热点信息匹配。
进一步地,声音信号匹配单元包括:环境语音识别子单元和环境语音匹配子单元,其中:
环境语音识别子单元,用于对所述环境声音信号进行语音识别,获取所述环境声音信号对应的语音识别结果;
环境语音匹配子单元,用于判断所述语音识别结果与所述目标热点信息是否匹配。
进一步地,第一位置确定子模块包括:热点位置判断子模块、热点位置确定子模块,其中:
热点位置判断子模块,用于判断所述热点位置是否在第一预设持续时间内保持不变;
热点位置确定子模块,用于若所述热点位置在第一预设持续时间内保持不变,根据所述热点位置,确定所述终端设备的位置信息。
进一步地,功能启动模块1230可包括:范围判断子模块、范围确定子模块,其中:
范围判断子模块,用于判断所述位置信息是否处于预设位置范围内;
范围启动子模块,用于若所述位置信息处于预设位置范围内,控制所述终端设备启动与所述目标热点信息对应的支付功能。
进一步地,范围判断子模块包括:热点位置获取单元、第一热点判断单元、第二热点判断单元、第一信号强度单元以及第二信号强度单元,其中:
热点位置获取单元,用于获取所述目标热点信息的热点位置;
第一热点判断单元,用于在所述热点位置在第一预设持续时间内保持不变时,判断所述位置信息是否处于预设位置范围内。
第二热点判断单元,用于在所述位置信息在第二预设持续时间内保持不变时,判断所述位置信息是否处于预设位置范围内。
第一信号强度单元,用于在所述信号强度超过预设信号强度时,判定所述位置信息 处于预设位置范围内;
第二信号强度单元,用于在所述信号强度未超过预设信号强度时,判定所述位置信息不处于预设位置范围内。
进一步地,范围启动子模块包括:停留时间获取单元、停留时间判断单元以及停留超时启动单元,其中:
停留时间获取单元,用于若所述位置信息处于预设位置范围内,获取所述位置信息处于预设位置范围内的持续时间,作为停留时间;
停留时间判断单元,用于判断所述停留时间是否超过预设时间阈值;
停留超时启动单元,用于若所述停留时间超过预设时间阈值,控制所述终端设备启动与所述目标热点信息对应的支付功能。
进一步地,停留时间判断单元包括:热点位置获取子单元以及停留时间判断子单元,其中:
热点位置获取子单元,用于获取所述目标热点信息的热点位置;
停留时间判断子单元,用于在所述热点位置在第一预设持续时间内保持不变时,判断所述停留时间是否超过预设时间阈值。
本申请实施例提供的终端支付装置用于实现前述方法实施例中相应的终端支付方法,并具有相应的方法实施例的有益效果,在此不再赘述。
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述装置和模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在本申请所提供的几个实施例中,模块相互之间的耦合可以是电性,机械或其它形式的耦合。
另外,在本申请各个实施例中的各功能模块可以集成在一个处理模块中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。
请参考图13,其示出了本申请实施例提供的一种终端设备的结构框图。该终端设备1300可以是智能手机、平板电脑、可穿戴电子设备等能够运行应用程序的终端设备。本申请中的终端设备1300可以包括一个或多个如下部件:处理器1310、存储器1320、以及一个或多个应用程序,其中一个或多个应用程序可以被存储在存储器1320中并被配置为由一个或多个处理器1310执行,一个或多个程序配置用于执行如前述方法实施例所描述的方法。
处理器1310可以包括一个或者多个处理核。处理器1310利用各种接口和线路连接整个终端设备1300内的各个部分,通过运行或执行存储在存储器1320内的指令、程序、代码集或指令集,以及调用存储在存储器1320内的数据,执行终端设备1300的各种功能和处理数据。可选地,处理器1310可以采用数字信号处理(Digital Signal Processing,DSP)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、可编程逻辑阵列(Programmable Logic Array,PLA)中的至少一种硬件形式来实现。处理器1310可集成中央处理器(Central Processing Unit,CPU)、图像处理器(Graphics Processing Unit,GPU)和调制解调器等中的一种或几种的组合。其中,CPU主要处理操作系统、用户界面和应用程序等;GPU用于负责显示内容的渲染和绘制;调制解调器用于处理无线通信。可以理解的是,上述调制解调器也可以不集成到处理器1310中,单独通过一块通信芯片进行实现。
存储器1320可以包括随机存储器(Random Access Memory,RAM),也可以包括只读存储器(Read-Only Memory)。存储器1320可用于存储指令、程序、代码、代码集或指令集。存储器1320可包括存储程序区和存储数据区,其中,存储程序区可存储用于 实现操作系统的指令、用于实现至少一个功能的指令(比如触控功能、声音播放功能、图像播放功能等)、用于实现下述各个方法实施例的指令等。存储数据区还可以存储终端设备1300在使用中所创建的数据(比如电话本、音视频数据、聊天记录数据)等。
则如果上述图12所示的终端支付装置中的各个单元作为程序包等函数模块的话,该终端支付装置内的各个单元存储在存储器1320内,能够被处理器调用,并执行对应的功能。
请参考图14,其示出了本申请实施例提供的一种计算机可读取存储介质的结构框图。该计算机可读取存储介质1400中存储有程序代码,所述程序代码可被处理器调用执行上述方法实施例中所描述的方法。
计算机可读取存储介质1400可以是诸如闪存、EEPROM(电可擦除可编程只读存储器)、EPROM、硬盘或者ROM之类的电子存储器。可选地,计算机可读取存储介质1400包括非易失性计算机可读介质(non-transitory computer-readable storage medium)。计算机可读取存储介质1400具有执行上述方法中的任何方法步骤的程序代码1410的存储空间。这些程序代码可以从一个或者多个计算机程序产品中读出或者写入到这一个或者多个计算机程序产品中。程序代码1410可以例如以适当形式进行压缩。
最后应说明的是:以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不驱使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。

Claims (20)

  1. 一种终端支付方法,应用于终端设备,其特征在于,包括:
    检测热点信息;
    当检测到与预设热点信息匹配的目标热点信息时,根据所述目标热点信息,确定所述终端设备的位置信息;
    在所述位置信息满足预设有效条件时,控制所述终端设备控制所述终端设备启动与所述目标热点信息对应的支付功能。
  2. 根据权利要求1所述的方法,其特征在于,所述控制所述终端设备启动与所述目标热点信息对应的支付功能,包括:
    获取所述目标热点信息对应的类别;
    根据所述目标热点信息对应的类别,确定所述目标热点信息对应的支付功能;
    控制所述终端设备启动与所述目标热点信息对应的支付功能。
  3. 根据权利要求2所述的方法,其特征在于,所述根据所述目标热点信息对应的类别,确定所述目标热点信息对应的支付功能,包括:
    判断所述类别是否为公共交通类别;
    根据判断结果,启动所述类别对应的支付功能。
  4. 根据权利要求3所述的方法,其特征在于,所述根据判断结果,启动所述类别对应的支付功能,包括:
    若所述类别为公共交通类别,获取所述目标热点信息的热点属性;
    根据所述热点属性,启动所述类别对应的支付功能。
  5. 根据权利要求4所述的方法,其特征在于,所述热点属性包括所述目标热点信息的地理位置,所述根据所述热点属性,启动所述类别对应的支付功能,包括:
    根据所述地理位置,启动所述类别对应的支付功能。
  6. 根据权利要求3所述的方法,其特征在于,所述根据判断结果,启动所述类别对应的支付功能,包括:
    若所述类别不为公共交通类别,启动所述类别对应的支付功能。
  7. 根据权利要求1至6任一所述的方法,其特征在于,所述当检测到与预设热点信息匹配的目标热点信息时,根据所述目标热点信息,确定所述终端设备的位置信息,包括:
    获取目标热点信息的热点位置;
    根据所述热点位置,确定所述终端设备的位置信息。
  8. 根据权利要求7所述的方法,其特征在于,所述根据所述热点位置,确定所述终端设备的位置信息,包括:
    判断所述热点位置是否在第一预设持续时间内保持不变;
    若所述热点位置在第一预设持续时间内保持不变,根据所述热点位置,确定所述终端设备的位置信息。
  9. 根据权利要求1至6任一所述的方法,其特征在于,所述当检测到与预设热点信息匹配的目标热点信息时,根据所述目标热点信息,确定所述终端设备的位置信息,包括:
    当检测到与预设热点信息匹配的目标热点信息时,获取所述目标热点信息的信号强度;
    根据所述信号强度,确定所述终端设备的位置信息。
  10. 根据权利要求1至9任一所述的方法,其特征在于,所述在所述位置信息满足预设有效条件时,控制所述终端设备启动与所述目标热点信息对应的支付功能,包括:
    判断所述位置信息是否处于预设位置范围内;
    若所述位置信息处于预设位置范围内,控制所述终端设备启动与所述目标热点信息对应的支付功能。
  11. 根据权利要求10所述的方法,其特征在于,所述判断所述位置信息是否处于预设位置范围内,包括:
    获取所述目标热点信息的热点位置;
    在所述热点位置在第一预设持续时间内保持不变时,判断所述位置信息是否处于预设位置范围内。
  12. 根据权利要求10或11所述的方法,其特征在于,所述若所述位置信息处于预设位置范围内,控制所述终端设备启动与所述目标热点信息对应的支付功能,包括:
    若所述位置信息处于预设位置范围内,获取所述位置信息处于预设位置范围内的持续时间,作为停留时间;
    判断所述停留时间是否超过预设时间阈值;
    若所述停留时间超过预设时间阈值,控制所述终端设备启动与所述目标热点信息对应的支付功能。
  13. 根据权利要求10所述的方法,其特征在于,所述判断所述位置信息是否处于预设位置范围内,包括:
    在所述位置信息在第二预设持续时间内保持不变时,判断所述位置信息是否处于预设位置范围内。
  14. 根据权利要求10所述的方法,其特征在于,所述判断所述位置信息是否处于预设位置范围内,包括:
    在所述信号强度超过预设信号强度时,判定所述位置信息处于预设位置范围内;
    在所述信号强度未超过预设信号强度时,判定所述位置信息不处于预设位置范围内。
  15. 根据权利要求1所述的方法,其特征在于,所述当检测到与预设热点信息匹配的目标热点信息时,根据所述目标热点信息,确定所述终端设备的位置信息,包括:
    当检测到与预设热点信息匹配的目标热点信息时,获取环境信息;
    判断所述环境信息与所述目标热点信息是否匹配;
    若所述环境信息与所述目标热点信息匹配,获取所述终端设备的位置信息。
  16. 根据权利要求15所述的方法,其特征在于,所述环境信息包括环境声音信号,所述判断所述环境信息与所述目标热点信息是否匹配,包括:
    判断所述环境声音信号与所述目标热点信息是否匹配;
    若所述环境声音信号与所述目标热点信息匹配,判定所述环境信息与所述目标热点信息匹配。
  17. 根据权利要求15所述的方法,其特征在于,所述环境信息包括环境声音信号和所述环境声音信号的强度变化曲线,所述判断所述环境信息与所述目标热点信息是否匹配,包括:
    判断所述环境声音信号与所述目标热点信息是否匹配;
    若所述环境声音信号与所述目标热点信息匹配,判断所述强度变化曲线与预设强度变化曲线是否匹配;
    若所述强度变化曲线与预设强度变化曲线匹配,判定所述环境信息与所述目标热点信息不匹配;
    若所述强度变化曲线与预设强度变化曲线不匹配,判定所述环境信息与所述目标热点信息匹配。
  18. 一种终端支付装置,应用于终端设备,其特征在于,包括:
    热点检测模块,用于检测热点信息;
    位置确定模块,用于当检测到与预设热点信息匹配的目标热点信息时,根据所述目标热点信息,确定所述终端设备的位置信息;
    功能启动模块,用于在所述位置信息满足预设有效条件时,控制所述终端设备启动与所述目标热点信息对应的支付功能。
  19. 一种终端设备,其特征在于,包括:
    一个或多个处理器;
    存储器;
    一个或多个应用程序,其中所述一个或多个应用程序被存储在所述存储器中并被配置为由所述一个或多个处理器执行,所述一个或多个程序配置用于执行如权利要求1-17任一项所述的方法。
  20. 一种计算机可读取存储介质,其特征在于,所述计算机可读取存储介质中存储有程序代码,所述程序代码可被处理器调用执行如权利要求1-17任一项所述的方法。
PCT/CN2019/112031 2019-10-18 2019-10-18 终端支付方法、装置、终端设备及计算机可读取存储介质 WO2021072775A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201980099149.0A CN114223222B (zh) 2019-10-18 2019-10-18 终端支付方法、装置、终端设备及计算机可读取存储介质
PCT/CN2019/112031 WO2021072775A1 (zh) 2019-10-18 2019-10-18 终端支付方法、装置、终端设备及计算机可读取存储介质

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2019/112031 WO2021072775A1 (zh) 2019-10-18 2019-10-18 终端支付方法、装置、终端设备及计算机可读取存储介质

Publications (1)

Publication Number Publication Date
WO2021072775A1 true WO2021072775A1 (zh) 2021-04-22

Family

ID=75538196

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/112031 WO2021072775A1 (zh) 2019-10-18 2019-10-18 终端支付方法、装置、终端设备及计算机可读取存储介质

Country Status (2)

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

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113298212A (zh) * 2021-05-25 2021-08-24 艾酷软件技术(上海)有限公司 图形码显示方法及装置
CN115668989A (zh) * 2021-04-23 2023-01-31 荣耀终端有限公司 一种场景识别方法及电子设备
WO2023045628A1 (zh) * 2021-09-22 2023-03-30 Oppo广东移动通信有限公司 模拟卡激活方法、装置、终端和存储介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103327444A (zh) * 2012-03-23 2013-09-25 联想(北京)有限公司 一种基于位置信息的解锁方法和移动电子设备
CN106127555A (zh) * 2016-06-24 2016-11-16 付韶明 一种多功能电子商务终端设备
CN107833041A (zh) * 2017-09-28 2018-03-23 高斯贝尔数码科技股份有限公司 一种基于智能手机的公交支付系统
CN108093367A (zh) * 2017-12-13 2018-05-29 广东欧珀移动通信有限公司 基于定位模块的控制方法、装置、存储介质及移动终端

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106600262A (zh) * 2016-11-21 2017-04-26 上海斐讯数据通信技术有限公司 一种根据不同wifi自动调整支付方式的系统及方法
CN108604342B (zh) * 2017-01-20 2022-04-12 华为技术有限公司 基于nfc进行数据传输的方法及移动设备
CN108288154B (zh) * 2018-01-09 2021-01-08 维沃移动通信有限公司 一种支付应用程序的启动方法、装置及移动终端
CN109979045B (zh) * 2018-12-21 2021-08-06 维沃移动通信有限公司 一种信息输出方法及终端设备

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103327444A (zh) * 2012-03-23 2013-09-25 联想(北京)有限公司 一种基于位置信息的解锁方法和移动电子设备
CN106127555A (zh) * 2016-06-24 2016-11-16 付韶明 一种多功能电子商务终端设备
CN107833041A (zh) * 2017-09-28 2018-03-23 高斯贝尔数码科技股份有限公司 一种基于智能手机的公交支付系统
CN108093367A (zh) * 2017-12-13 2018-05-29 广东欧珀移动通信有限公司 基于定位模块的控制方法、装置、存储介质及移动终端

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115668989A (zh) * 2021-04-23 2023-01-31 荣耀终端有限公司 一种场景识别方法及电子设备
CN115668989B (zh) * 2021-04-23 2024-04-02 荣耀终端有限公司 一种场景识别方法及电子设备
CN113298212A (zh) * 2021-05-25 2021-08-24 艾酷软件技术(上海)有限公司 图形码显示方法及装置
WO2023045628A1 (zh) * 2021-09-22 2023-03-30 Oppo广东移动通信有限公司 模拟卡激活方法、装置、终端和存储介质

Also Published As

Publication number Publication date
CN114223222B (zh) 2024-04-26
CN114223222A (zh) 2022-03-22

Similar Documents

Publication Publication Date Title
EP2790385B1 (en) Electronic device and method for receiving geo-fence service with low power consumption
WO2021072775A1 (zh) 终端支付方法、装置、终端设备及计算机可读取存储介质
US11031011B2 (en) Electronic device and method for determining electronic device to perform speech recognition
KR101844395B1 (ko) 가상 현실 어플리케이션
WO2018133178A1 (zh) 基于nfc进行数据传输的方法及移动设备
WO2019134591A1 (zh) 一种电子交易的方法及终端
KR101936605B1 (ko) 휴대용 단말기에서 콘텐츠 태깅 방법 및 장치
US20230098616A1 (en) Method for Invoking NFC Application, Electronic Device, and NFC Apparatus
JP2017510104A (ja) ワイヤレスネットワークのアクセスポイントに関連したエンティティの識別
CN109101498B (zh) 翻译方法、装置及移动终端
KR20140092114A (ko) 휴대단말에서 엔에프씨 기능 운용 방법 및 장치
US9565289B2 (en) Mobile terminal and method of controlling the same
US10039079B2 (en) Disabling access point notifications
US20180082285A1 (en) Transaction card selection based on geographic area
CN108064024A (zh) 基于定位模块的控制方法、装置、存储介质及移动终端
CN106503986B (zh) 虚拟资源转移方法及装置
CN108064023A (zh) 基于定位模块的控制方法、装置、存储介质及移动终端
KR20140118111A (ko) 전자 장치에서 데이터를 공유하기 위한 방법
WO2019223484A1 (zh) 信息显示方法、装置、移动终端以及存储介质
JP2014011546A (ja) 情報提供システム、情報提供方法、プログラム、情報処理サーバ及び携帯端末
US20140221047A1 (en) Method and apparatus for providing short-cut number in user device
JP5782444B2 (ja) セキュリティ制御機能を備えた情報通信端末、通信システム、及び当該端末が行う通信方法
CN105530332B (zh) 位置信息的处理方法及装置
WO2018076613A1 (zh) 无线网络连接的流量控制方法、装置及可读取存储介质
CN104320760A (zh) 一种位置请求处理设备和方法和位置信息获取设备和方法

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19948981

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19948981

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 19948981

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 07/10/2022)

122 Ep: pct application non-entry in european phase

Ref document number: 19948981

Country of ref document: EP

Kind code of ref document: A1