Payment service interaction method, device and equipment based on laser ranging
By deploying miniature laser rangefinders on the POS device, the touch action of the mobile terminal is identified and payment is made via Bluetooth communication. This solves the problem of poor payment experience for terminals without near-field communication capabilities, improves payment efficiency and environmental adaptability, and reduces transformation costs.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-12-30
- Publication Date
- 2026-03-27
AI Technical Summary
In existing technologies, mobile terminals without near-field communication capabilities have difficulty interacting efficiently with POS devices for payments, resulting in a poor payment experience. In particular, camera recognition is ineffective in poor lighting conditions, and the cost of modifying POS devices is high.
Miniature laser rangefinders are deployed on POS devices to measure the distance between the mobile terminal and the POS device, identify touch actions, and transmit payment information via Bluetooth communication channels to realize payment transactions.
It improves the payment response speed and experience of mobile terminals without near-field communication capabilities, reduces hardware modification costs, enhances recognition capabilities in complex environments, and expands the coverage of user devices.
Smart Images

Figure CN121751131A_ABST
Abstract
Description
Technical Field
[0001] This specification relates to the field of near-field communication technology, and in particular to a payment service interaction method, apparatus, and device based on laser ranging. Background Technology
[0002] With the development of internet technology and the widespread use of smartphones, more and more businesses are being conducted on mobile devices through corresponding applications. For example, payment services are a type of business that is frequently conducted on mobile devices in daily life.
[0003] In payment and other business areas, offline data interaction mainly relies on two methods: QR codes and near-field communication (NFC). However, for some users or in certain scenarios, QR code payments can be relatively cumbersome. Therefore, POS devices with NFC functionality have emerged. With NFC, mobile terminals do not need to use their phone's camera or scan a QR code; instead, they can make payments more conveniently through NFC communication between the mobile terminal and the POS device.
[0004] In practical applications, some mobile terminals do not have near-field communication (NFC) functionality. In such cases, POS devices with NFC functionality need to use a camera to detect the proximity of the device and then communicate via Bluetooth or sound waves. However, due to the limited resolution of barcode scanning cameras, and even the absence of cameras on some POS devices, the payment response speed and payment experience of these mobile terminals are significantly different from those of mobile terminals with NFC functionality.
[0005] Therefore, there is a need for a payment processing solution that is compatible with mobile terminals that do not have near-field communication capabilities and improves the payment experience of these mobile terminals. Summary of the Invention
[0006] This specification provides one or more embodiments of a payment service interaction method, apparatus, and device based on laser ranging, which is used to solve the following technical problem: the need for a payment service processing solution that is compatible with mobile terminals that do not have near-field communication capabilities and improves the payment experience of these mobile terminals.
[0007] To solve the above-mentioned technical problems, one or more embodiments of this specification are implemented as follows: This specification provides one or more embodiments of a payment service interaction method based on laser ranging, applied to a near-field communication terminal, wherein the near-field communication terminal is equipped with a miniature laser ranging sensor, and the method includes: The distance between the mobile terminal and the near-field communication terminal is measured based on the miniature laser ranging sensor; the mobile terminal is a terminal device that does not have near-field communication function and is used to trigger payment operations. The touch action of the mobile terminal on the near-field communication terminal is identified by measuring the distance; In response to the touch action, the near-field communication terminal is triggered to send payment information to the mobile terminal via the Bluetooth communication channel, so that the mobile terminal receives the payment information and completes the payment transaction.
[0008] This specification provides one or more embodiments of a payment service interaction device based on laser ranging, applied to a near-field communication terminal. The near-field communication terminal is equipped with a miniature laser ranging sensor, including: The measurement module is used to measure the distance between the mobile terminal and the near-field communication terminal based on the miniature laser ranging sensor; the mobile terminal is a terminal device that does not have near-field communication function and is used to trigger payment operations; The identification module is used to identify the touch action of the mobile terminal on the near-field communication terminal by means of the measured distance; The response module is used to respond to the touch action by triggering the near-field communication terminal to send payment information to the mobile terminal via the Bluetooth communication channel, so that the mobile terminal receives the payment information and completes the payment transaction.
[0009] This specification provides one or more embodiments of a payment service interaction device based on laser ranging, applied to a near-field communication terminal. The near-field communication terminal is equipped with a miniature laser ranging sensor. The device includes: At least one processor; and, A memory communicatively connected to the at least one processor; wherein, The memory stores instructions executable by the at least one processor, which, when executed by the at least one processor, enable the at least one processor to: The distance between the mobile terminal and the near-field communication terminal is measured based on the miniature laser ranging sensor; the mobile terminal is a terminal device that does not have near-field communication function and is used to trigger payment operations. The touch action of the mobile terminal on the near-field communication terminal is identified by measuring the distance; In response to the touch action, the near-field communication terminal is triggered to send payment information to the mobile terminal via the Bluetooth communication channel, so that the mobile terminal receives the payment information and completes the payment transaction.
[0010] The above-described at least one technical solution adopted in the embodiments of this specification can achieve the following beneficial effects: This method combines a miniature laser rangefinder with Bluetooth communication. The miniature laser rangefinder accurately identifies the measured distance and determines whether the mobile terminal has touched the near-field communication (NFC) terminal. This touch triggers the transmission of payment information, enabling a large number of mobile terminals without NFC functionality to achieve a similar payment experience. This expands the range of user devices covered by NFC terminals and improves the convenience of mobile payments. Compared to traditional QR code payments or camera recognition, this method of determining touch activity based on the measured distance provided by the miniature laser rangefinder offers higher interference resistance and stable touch recognition even in complex lighting and environments. Furthermore, it eliminates the need to replace the NFC terminal; only a low-cost miniature laser rangefinder needs to be added, resulting in low cost and easy deployment. Attached Figure Description
[0011] To more clearly illustrate the technical solutions in the embodiments or prior art of this specification, the drawings used in the description of the embodiments or prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in this specification. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort. In the drawings: Figure 1 A flowchart illustrating a payment transaction interaction method based on laser ranging, provided as an embodiment of this specification; Figure 2 This is a schematic diagram illustrating a touch action of a mobile terminal in an application scenario provided by an embodiment of this specification. Figure 3 This is a schematic flowchart of a method for recognizing touch actions provided in an embodiment of this specification; Figure 4 This is a schematic flowchart of another method for recognizing touch actions provided in the embodiments of this specification; Figure 5 A schematic diagram of a payment service interaction device based on laser ranging provided in the embodiments of this specification; Figure 6 This is a schematic diagram of the structure of a payment service interaction device based on laser ranging, provided as an embodiment of this specification. Detailed Implementation
[0012] This specification provides a payment service interaction method, apparatus, and device based on laser ranging.
[0013] To enable those skilled in the art to better understand the technical solutions in this specification, the technical solutions in the embodiments of this specification will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this specification, and not all embodiments. Based on the embodiments of this specification, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of this specification.
[0014] As mentioned in the background technology, an increasing number of businesses are conducted on mobile devices through corresponding applications, with payment being a frequently performed service in daily life. For offline payments, the key is to efficiently and reliably complete the data interaction between the mobile device and the point-of-sale (POS) device. Currently, the mainstream interaction methods mainly rely on QR codes and near-field communication (NFC). While QR code payments are widespread, in some scenarios, the process requires waking up the phone, unlocking the screen, finding the corresponding payment application, and then activating the scanning function to scan the QR code using the mobile device's camera. This method is inefficient, especially during peak POS periods and for users operating mobile devices with one hand.
[0015] To address the inefficiencies of QR code payments, point-of-sale (POS) devices have emerged. Near-field communication (NFC) is an emerging technology that allows devices, such as mobile phones, to exchange data when they are close to each other. It evolved from contactless radio frequency identification (RFID) and interconnectivity technologies, integrating inductive card readers, inductive cards, and point-to-point communication functions onto a single chip, enabling efficient data exchange for various applications using mobile terminals.
[0016] In this approach, mobile terminals with near-field communication (NFC) capabilities do not need to perform the complex operations of QR code communication. Users only need to bring their mobile terminals with NFC capabilities close to the POS devices with NFC capabilities to achieve NFC communication, complete data exchange and payment authorization, and receive immediate feedback through prompts. This results in a smooth payment experience and greatly improves transaction efficiency and user satisfaction.
[0017] In practical applications, this POS device that supports near-field communication has compatibility issues with mobile terminals. Specifically, it is difficult to quickly complete near-field communication when the two mobile terminals, such as low-end models, old devices, and some special feature terminals like children's watches, do not have near-field communication capabilities.
[0018] More intuitively, this paper provides an exemplary method for solving the compatibility problem of mobile terminals without near-field communication (NFC) capabilities and enabling interaction with POS devices that do have NFC capabilities.
[0019] POS systems use cameras to detect the approach of mobile devices that lack near-field communication (NFC) capabilities, then use Bluetooth or acoustic channels to transmit and exchange payment data. However, when relying on cameras for visual perception, the camera's capabilities depend on ambient lighting conditions. In bright light environments, such as outdoor convenience stores or under direct sunlight, the camera is prone to overexposure and glare, resulting in unclear images and an inability to determine if the mobile device is close enough. In low-light environments, such as restaurants and nighttime stalls, insufficient light intake leads to image noise, blurred details, and low recognition rates.
[0020] Furthermore, the widely deployed POS devices with near-field communication (NFC) capabilities do not integrate cameras. These NFC terminals cannot use cameras to identify whether mobile devices without NFC are close to the POS device, thus hindering the timely establishment of NFC communication between them. Implementing the aforementioned method for these cameraless POS devices would require high-resolution camera modules with superior low-light performance, increasing the cost of the hardware components.
[0021] To address the aforementioned issues, this application proposes a laser ranging-based payment interaction method applied to a near-field communication (NFC) terminal equipped with a miniature laser ranging sensor. This miniature laser ranging sensor is directly compatible with the existing hardware architecture of NFC terminals, requiring no large-scale hardware modifications to the POS device; deployment is simple, requiring only integration or upgrades, resulting in controllable overall additional costs. Furthermore, this application uses the miniature laser ranging sensor to measure the distance between a mobile terminal (lacking NFC functionality) and the NFC terminal (the POS terminal), thereby identifying whether the mobile terminal has touched the NFC terminal. Combined with Bluetooth communication to trigger interaction, this achieves compatibility with mobile terminals lacking NFC functionality while avoiding the aforementioned problems associated with camera recognition and QR code interaction, thus improving the response speed and user experience for mobile terminals without NFC functionality. Based on this overall approach, the solution of this application will be described in detail below.
[0022] Figure 1This document provides a flowchart illustrating a laser ranging-based payment interaction method for one or more embodiments. Beyond payment scenarios, this method can be applied to other fields, such as: in the furniture industry, a mobile terminal without NFC functionality can touch a lamp with NFC functionality to display a dimming interface; in the digital promotion field, a mobile terminal without NFC functionality can touch a product poster with NFC functionality to obtain coupons and details; and in the equipment network configuration field, a mobile terminal without NFC functionality can touch a router with NFC functionality to complete Wi-Fi password configuration without input.
[0023] This method can be applied to near-field communication terminals. It should be noted that in the embodiments of this application, the near-field communication terminal refers to a cash register terminal with near-field communication function. From a software perspective, the execution subject of this process is the near-field communication terminal, including the application client or server on the cash register device. From a hardware perspective, the execution subject of this process includes the near-field communication terminal itself. The near-field communication terminal can be obtained by upgrading and modifying existing devices such as cash register announcement machines, vending machines, POS machines, or mobile terminals used by other users, and deploying miniature laser rangefinders, or it can be a newly built near-field communication terminal with miniature laser rangefinders. Figure 1 The process may include the following steps: S102: Based on the miniature laser ranging sensor, measure the distance between the mobile terminal and the near-field communication terminal; the mobile terminal is a terminal device that does not have near-field communication function and is used to trigger payment operations.
[0024] As described above, this application aims to address the difficulty of compatibility between terminal devices without near-field communication (NFC) functionality and NFC terminals, thereby achieving an efficient and convenient payment experience. Therefore, unless otherwise specified, the mobile terminals involved in subsequent embodiments of this application are all terminal devices without NFC functionality used to trigger payment operations. Specifically, they include portable, wearable, and other mobile terminals without NFC functionality, such as mobile phones and smartwatches.
[0025] Miniature laser rangefinders are sensor devices that use lasers as a light source to measure distance. Their laser-based operation can be divided into continuous laser ranging and pulsed laser ranging. Continuous laser ranging uses a continuously outputting laser and calculates the distance by measuring the phase difference between the emitted and received light. Lasers suitable for this method include gas lasers such as helium-neon, argon-ion, and krypton-cadmium lasers. Pulsed laser ranging emits a pulsed laser and calculates the distance by measuring the time interval from emission to reflection and return of the laser pulse. Lasers suitable for this method include solid-state lasers such as ruby and neodymium glass lasers. In addition, dual heterojunction gallium arsenide semiconductor lasers are often used for infrared ranging, as their wavelength is similar to that of pulsed laser ranging, and they can also be used in this scenario.
[0026] To trigger payment operations between a mobile terminal and a near-field communication (NFC) terminal, the system needs to accurately measure the distance between them. However, since the mobile terminal lacks NFC functionality, a miniature laser ranging sensor is required to measure this distance. Therefore, this embodiment utilizes a miniature laser ranging sensor deployed on the NFC terminal to measure the distance between them. It is understood that the miniature laser ranging sensor provides a high-precision ranging solution based on optical principles, accurately capturing the relative positional changes of the mobile terminal in three-dimensional space, thereby identifying the distance between the mobile terminal and the NFC terminal. This lays the foundation for subsequent identification of whether the mobile terminal has interactive intentions such as touch.
[0027] The aforementioned method based on a miniature laser rangefinder sensor solves the problem that existing mobile terminals lack near-field communication (NFC) capabilities, making it difficult to interact with NFC terminals in a simple manner. However, relying solely on distance judgment can easily lead to the same distance being collected from mobile terminals at slightly greater distances, potentially resulting in misjudgments of the mobile terminal being close to the NFC terminal, or misinterpreting a user's inadvertent presence of the mobile terminal in their pocket as proximity to the NFC terminal. Specifically, in one or more embodiments of this specification, the distance between the mobile terminal and the NFC terminal is measured using a miniature laser rangefinder sensor through the following process: The system controls a miniature laser rangefinder to send laser ranging signals to the short-range identification area of the near-field communication terminal. The short-range identification area is the region covered by a preset interactive identification distance, and the region begins at the interaction surface of the near-field communication terminal.
[0028] The short-range recognition area is a spatial range with the device interaction surface of the near-field communication terminal as its starting boundary. The device interaction surface is the physical surface of the near-field communication terminal that the mobile terminal touches, such as a specific recognition area on a POS machine. The spatial boundary of this short-range recognition area is based on a preset interaction recognition distance, which is the maximum distance that the mobile terminal and the near-field communication terminal can recognize. For example, in a certain application scenario, the maximum distance is 10 centimeters. Therefore, the conical or other cubic spatial area perpendicular to the device interaction surface (0-10 centimeters) is the short-range recognition area. By using the interaction surface of the near-field communication terminal as the starting point and defining the short-range recognition area covered by the preset interaction recognition distance, the effective recognition range in the physical space is delineated. This area serves as an effective trigger zone; only when an object enters this short-range recognition area will the data measured by the miniature laser rangefinder be uploaded and processed. This facilitates filtering of interference from distant objects and reduces the false touch rate.
[0029] After sending a laser ranging signal to the short-range identification area of the near-field communication terminal, the surface of the mobile terminal will reflect the laser ranging signal. At this time, the receiving optical unit built into the miniature laser ranging sensor will receive the laser echo signal returned by the surface of the mobile terminal to the laser ranging signal. The laser echo signal is analyzed based on existing analysis methods such as time-of-flight method and phase difference method to obtain the distance between the mobile terminal and the near-field communication terminal.
[0030] Furthermore, in order to respond promptly to a touch action by initiating Bluetooth communication after recognizing the touch action on the mobile terminal, it is necessary to establish a Bluetooth communication channel between the mobile terminal and the near-field communication terminal based on a session identifier. Therefore, in one or more embodiments of this specification, the method further includes: Based on the timestamps corresponding to each measured distance, the mobile terminal constructs time-series data. In other words, the near-field communication terminal matches the distance values continuously measured by the miniature laser rangefinder with the timestamps corresponding to each measured distance value to obtain an ordered sequence of two-dimensional data points as time-series data.
[0031] Then, a random number is generated based on the time-series data, serving as the session identifier between the near-field communication terminal and the mobile terminal. Specifically, the time-series data is used as input to the random number generator. The timestamps and measured distances contained in the time-series data are processed by a hash function or a random number generation algorithm to generate a random number, which is then used as the session identifier between the mobile terminal and the near-field communication terminal.
[0032] The generated session identifier is broadcast to establish a Bluetooth communication channel between the near-field communication terminal (NFC) and the mobile terminal. In other words, after generating the session identifier, the NFC terminal periodically broadcasts it. During Bluetooth scanning, the mobile terminal acquires the broadcast session identifier and matches it with its own generated session identifier. If a match is found, the mobile terminal initiates a connection request to the NFC terminal. Upon receiving the connection request, the NFC terminal verifies the mobile terminal's identity. If verification is successful, a Bluetooth communication channel is established between the NFC terminal and the mobile terminal.
[0033] In this process, since the time-series data is generated during the user's handheld mobile terminal movement, it is affected by factors such as user operation and environmental influence. As a result, the session identifier generated based on the time-series identifier is bound to the mobile terminal's action. This prevents mobile terminals that have not experienced the same action from generating the same identifier to establish a Bluetooth communication channel between the near-field communication terminal and the mobile terminal, thereby improving the security of data interaction.
[0034] S104: By measuring the distance, identify the touch action of the mobile terminal on the near-field communication terminal.
[0035] Based on the aforementioned background technology, it is clear that when a mobile terminal lacks near-field communication (NFC) functionality, it is necessary to accurately identify touch actions representing a clear payment intention from continuous measurement distances without relying on NFC hardware, rather than unintentional approaching, passing by, or hovering. That is, the proximity between the mobile terminal and the NFC terminal, besides touch actions with payment intention, could also involve the user simply holding the mobile terminal and passing by the NFC terminal, or briefly hovering near the NFC terminal to view the screen.
[0036] In this embodiment, to accurately determine whether the mobile terminal is touching the near-field communication terminal, the near-field communication terminal continuously receives real-time measurements of the distance between the mobile terminal and the near-field communication terminal from a miniature laser ranging sensor. This measured distance is then used to determine whether there is a touch action between the mobile terminal and the near-field communication terminal, progressing from a long distance to a short distance and then back to a long distance. This short distance is the minimum distance at which the mobile terminal approaches the near-field communication terminal, and it is compared with a preset touch distance. When the real-time measured distance is less than or equal to the preset touch distance, the system determines that the mobile terminal is touching the near-field communication terminal.
[0037] It should be noted that the preset touch distance is the effective physical boundary for near-field interaction of the near-field communication terminal. It can be the minimum coverage area of the near-field communication terminal determined based on user behavior research, device characteristics, and environmental testing. For example... Figure 2The distance is set to 2 cm in one application scenario, while it can be adjusted to 3 cm in another application scenario targeting large-screen tablets. This preset touch distance ensures that subsequent interaction is triggered only when the mobile terminal is sufficiently close to the near-field communication terminal.
[0038] Therefore, in this embodiment, the touch action needs to present a trajectory of approaching, reaching the nearest point, and then leaving. Merely approaching and holding, such as hovering, or pausing after a one-way approach, does not constitute a touch action. Furthermore, the minimum distance of this touch action must be less than or equal to a preset touch distance. This preset touch distance defines the effective physical boundary of near-field interaction and can be determined based on the minimum coverage area of the near-field communication terminal. By recognizing this touch action, data indicating no payment intent, such as unintentional passing by or hovering, that does not meet the trajectory and preset touch distance requirements, is distinguished, thus reducing the false touch rate.
[0039] The above method, by measuring distance, identifies the touch action of the mobile terminal on the near-field communication terminal, effectively filtering out unintentional actions of the mobile terminal such as hovering or passing by. However, in addition to these, complex unintentional actions, such as quickly waving a mobile phone over the device, may also produce a brief change in movement from far to near and then back to far, reaching a preset touch distance. If this passing by is not distinguished from an intentional touch action, it will lead to false triggering of subsequent processing by the near-field communication terminal. In other scenarios, when performing other unrelated operations such as waving gestures while chatting or organizing items near the mobile terminal, the movement trajectory of the handheld mobile terminal may accidentally form a waveform that conforms to a single valley and meets the distance standard. In this case, it is very important to distinguish between coincidental actions and false triggering actions, and to identify touch actions with clear payment intentions issued by the mobile terminal in specific scenarios. In this regard, in one embodiment of this specification, such as Figure 3 The method of identifying a mobile terminal's touch action on the near-field communication terminal by measuring distance can include the following steps: S302: Obtain the envelope contour of the time series data; S304: If the envelope contour is of the single valley type and the minimum distance of the measured distance is less than the preset touch distance, then feature extraction is performed on the time series data to obtain motion waveform features; S306: Based on the action waveform characteristics, identify the touch action of the mobile terminal on the near-field communication terminal.
[0040] As mentioned above, relying solely on static distance threshold judgment ignores the overall trend and dynamic characteristics of the action trajectory, focusing only on the distance state at a single point in time. Furthermore, judging the action trajectory from far to near and back to far distance only confirms that the mobile terminal has touched the near-field communication terminal, but does not consider the mobile terminal's interaction intent. Therefore, in this embodiment of the application, the time-series data of the measured distance collected by the miniature laser ranging sensor is first preprocessed and its envelope contour extracted. This preprocessing can employ a moving average filtering algorithm to filter out environmental interference and high-frequency noise caused by device jitter, ensuring the stability of the measured distance. The envelope contour represents the boundary of the change trend of the preprocessed distance data, intuitively reflecting the overall trend of distance change between the mobile terminal and the near-field communication terminal.
[0041] If the envelope profile is of the single-valley type, and the minimum distance measured in the time series data is less than the preset touch distance, it can be determined that the motion trajectory has a distance that first continuously decreases over time (from far to near), then briefly stabilizes after reaching the minimum distance, and then continuously increases over time to far. This represents a touch process of approaching, reaching, and then leaving the near-field communication terminal. In this case, feature extraction is performed on the time series data to obtain motion waveform features. This feature vector contains multi-dimensional information such as approach speed, valley dwell time, and waveform symmetry. However, if the envelope profile is of the multi-valley, valleyless, or unidirectional rising / falling type, the mobile terminal is determined to have performed invalid actions such as multiple shaking or unidirectional passing.
[0042] In practical applications, users may accidentally touch the device due to unintentional actions, misoperations, or in atypical scenarios, leading to unnecessary service activation or interaction failures. Therefore, by combining scene-based intelligent identification of the waveform characteristics of the action, it is possible to determine whether the mobile terminal has engaged in a touch action. Further, after obtaining the waveform characteristics, this embodiment of the application identifies the touch action of the mobile terminal on the near-field communication terminal, specifically including: Obtain the current scene information of the near-field communication (NFC) terminal. This current scene information includes at least: the type of merchant the NFC terminal is currently in, such as a shopping mall or restaurant, obtained based on the terminal's built-in positioning module or pre-configured device location information; the current time period, such as weekdays, weekends, holidays, or specific promotional periods; and environmental data such as pedestrian traffic and environmental interference. This current scene information forms the NFC terminal's scene profile, providing a foundation for subsequent identification of near-field interaction intentions. For example, during weekend discount promotions in shopping malls, when pedestrian traffic is high and user purchase intentions are strong, the probability of users touching the NFC terminal is higher than during non-discount promotion periods.
[0043] The first dynamic distance baseline of the mobile terminal is obtained through the Bluetooth communication channel. This first dynamic distance baseline serves as a reference for distinguishing between valid and invalid touches. Based on the historical action waveform features extracted from the Bluetooth communication channel when the mobile terminal did not initiate valid near-field interaction (near-field interaction that did not ultimately complete payment or service initiation), the first dynamic distance baseline is generated by statistical analysis or model training of these historical action waveform features, allowing for approaching the near-field communication terminal when there is no intention to engage in near-field interaction.
[0044] Based on methods such as Euclidean distance or cosine similarity, the deviation values of the action waveform features relative to the first dynamic distance baseline are obtained in dimensions such as distance change amplitude, touch duration, and action stability. According to a preset mapping rule, different ranges of deviation values are mapped to different interaction intent levels to obtain the current near-field interaction intent level. It can be understood that the larger the deviation value, the more significant the difference between the current action and the historical action waveform features of ineffective interactions, and the higher the corresponding current near-field interaction intent level.
[0045] The current near-field interaction intent level is compared with the predicted near-field interaction intent level of the mobile terminal based on the current scene information mapping. Based on the comparison result, it is determined whether the mobile terminal has a touch action with near-field interaction intent towards the near-field communication terminal. That is, if the current near-field interaction intent level is greater than or equal to the predicted near-field interaction intent level, then the mobile terminal has a touch action with near-field interaction intent towards the near-field communication terminal.
[0046] The predicted near-field interaction intent level based on the current scene information mapping of the mobile terminal refers to predicting the near-field interaction intent level generated by the mobile terminal in the current scene by combining current scene information such as the merchant type, current time period, and on-site atmosphere data. Specifically, the current scene information can be encoded and converted to obtain a current scene feature vector. Successful interaction records corresponding to the mobile terminal are obtained, and the scene information in each successful interaction record is encoded and converted in the same way to obtain a historical scene feature vector. The historical scene feature vectors are clustered according to a clustering algorithm to obtain multiple classification clusters. For the number of successful interaction records contained in each classification cluster, the intent intensity index of the mobile terminal under that classification cluster is determined. This intent intensity index includes: the number of successful interactions, the density of successful interactions, etc. The near-field interaction intent level under each classification cluster is determined based on the intent intensity index. The similarity between the current scene feature vector and the historical scene feature vector corresponding to each classification cluster is matched, and the near-field interaction intent level under the corresponding classification cluster is used as the predicted near-field interaction intent level.
[0047] This process integrates current scene information with the motion waveform features generated by the mobile terminal's movement. This allows for both scene-based judgment of user interaction probability and motion deviation value quantification of interaction intent strength, ensuring the accuracy of touch behavior recognition through dual verification. It effectively filters out accidental touches and invalid touches triggered without intent, improving the reliability and user experience of the interaction between the mobile terminal and the near-field communication terminal. Furthermore, a first dynamic distance baseline is generated based on historical motion waveform features of the mobile terminal that have not initiated effective near-field interactions, serving as a benchmark for dynamic recognition and making the recognition process more closely aligned with the personalized habits of the user's mobile terminal.
[0048] In another embodiment of this specification, for special user groups such as those with visual impairments, motor dysfunctions, or cognitive impairments, their terminal movement speed is low, which may result in multiple tentative approaches and withdrawals. They may also have difficulty maintaining a straight line or a stable arc when approaching the target, leading to irregular trajectories for their touch actions. If the processing based on the previous embodiment can identify the touch actions of the mobile terminal, some interactive touch actions may be misjudged as invalid or low-intention actions due to excessive deviation between the action waveform characteristics and the baseline, leading to interaction failure. To address this, to improve the adaptability of recognition, near-field interaction services between the mobile terminal and the near-field communication terminal are reliably triggered. For example... Figure 4 As shown in this embodiment, the touch action of the mobile terminal on the near-field communication terminal is identified by measuring the distance, specifically including the following steps: S402: Obtain the accessibility mode of the mobile terminal and identify the interactive capability characteristics of the mobile terminal; S404: Activate the identification mode corresponding to the interaction capability feature of the near-field communication terminal; S406: In the recognition mode, the time series data of the mobile terminal is constructed according to the timestamps corresponding to each of the measured distances; S408: If, based on the preset interaction attempt distance and the relaxed data corresponding to the recognition mode, it is determined that the time series data corresponds to the interaction attempt action, then feature extraction is performed on the time series data to obtain action waveform features; S410: Based on the action waveform characteristics, identify the touch action of the mobile terminal on the near-field communication terminal.
[0049] To improve the adaptability of recognition, the near-field communication terminal acquires the accessibility mode of the mobile terminal based on the Bluetooth communication channel, thereby identifying the interactive capability characteristics of the mobile terminal. It then activates the recognition mode corresponding to the interactive capability characteristics. The near-field communication terminal has multiple pre-stored recognition modes, each corresponding to a different type of accessibility mode. After acquiring the interactive capability characteristics of the mobile terminal, it automatically matches and activates the corresponding recognition mode to obtain relaxed data preset for each recognition mode in dimensions such as distance judgment, time tolerance, and action integrity, avoiding the constraint of standardized requirements on the interactive behavior of special users. Under the corresponding recognition mode, time-series data of the mobile terminal is constructed based on the timestamps corresponding to each measured distance. In other words, the near-field communication terminal matches the distance values continuously measured by the miniature laser rangefinder with the timestamps corresponding to each measured distance value to obtain an ordered sequence of two-dimensional data points as time-series data.
[0050] The accessibility mode is a set of special functions and their corresponding operating states built into the mobile terminal's operating system, designed to help users with visual, hearing, motor, or cognitive impairments use the device more conveniently. Interaction capability characteristics are data obtained from the special functions corresponding to the mobile terminal's accessibility mode, describing the specific touch behavior when the user physically interacts with the near-field communication terminal in the current mode.
[0051] For example, when the accessibility mode is visual assistance mode, it provides a set of functions for users with low vision, color blindness, or complete blindness. When this mode is enabled, mobile terminal interaction primarily relies on auditory and tactile feedback. Users in this mode cannot rely on vision to accurately locate the sensing area on the near-field communication terminal. Their interaction capability characteristics are non-visual guided exploration in this mode. For example, their touch actions may exhibit tentative, lateral scanning rather than direct alignment. The corresponding characteristic data are the interaction capability characteristics. When the accessibility mode is motor assistance mode, it provides a set of functions for users with limited limb movement, tremors, or difficulty in fine motor control. In this mode, when a user holds the mobile terminal and approaches it, the speed may be extremely slow, the trajectory unstable, with pauses or shaking, and it is difficult to make a quick, continuous touch and withdrawal motion. The characteristic data corresponding to the low control precision and low stability of these actions are the interaction capability characteristics.
[0052] The recognition modes of near-field communication (NFC) terminals correspond to the interactive capabilities of mobile terminals. For example, corresponding to the interactive capabilities of a mobile terminal in a visual assistance mode, NFC terminals, when matched with a visual impairment recognition mode, shift the focus from precise touch guided by vision to robust touch actions that allow for a larger contact area and a longer search process. Corresponding to the interactive capabilities of a mobile terminal in a motion assistance mode, NFC terminals, when matched with a motion recognition mode, can extend the recognition area from a fixed height to a vertical range and adapt to slower approach speeds.
[0053] To identify interactive attempts by special users and avoid misjudgments due to non-standard actions, the system further extracts the minimum distance from the time-series data after acquisition. This minimum distance is then widened by combining it with the relaxed data corresponding to the current recognition mode, resulting in a relaxed minimum distance that reduces the requirement for touch accuracy. Simultaneously, a time tolerance window is determined based on the recognition mode. For example, a longer time tolerance window is set for users with physical disabilities—2 seconds in the standard mode and 6 seconds in the adaptive mode—allowing users more time to complete the interactive action. Using the relaxed minimum distance as the core, the system checks whether the time-series data within the time tolerance window shows a gradual decrease in distance to near the relaxed minimum distance, or a gradual increase in distance from the relaxed minimum distance. If so, and the relaxed minimum distance is less than a preset interactive attempt distance, the time-series data is determined to correspond to an interactive attempt. Feature extraction is then performed on this time-series data to obtain action waveform features. Based on these action waveform features, the touch action of the mobile terminal on the near-field communication terminal is identified.
[0054] Among them, the relaxed data is a set of quantitative parameters that adaptively adjust the data of each recognition dimension of the near-field communication terminal to meet the interaction ability characteristics of special user groups such as the blind. By relaxing the judgment threshold of each dimension, it adapts to the non-coherent and tentative touch actions of special users, ensuring the feasibility of barrier-free interaction, while avoiding misjudgment of effective interaction due to non-standard actions.
[0055] The preset interaction attempt distance is the minimum effective approach distance set by the near-field communication terminal corresponding to the recognition mode to determine whether a single approach action of the mobile terminal constitutes a conscious interaction attempt. It can be obtained by relaxing the preset touch distance. Through dual recognition of the preset interaction attempt distance and the action mode within the time tolerance window, the inclusiveness based on prevention and control data is improved while ensuring the accuracy of recognition.
[0056] Furthermore, the touch actions of special users in accessibility mode differ significantly from those of regular users, and the interaction habits of different special users vary. Fixed recognition standards cannot adapt to personalized needs. Therefore, in this embodiment, the touch actions of the mobile terminal on the near-field communication terminal are identified based on the action waveform characteristics, specifically including the following process: The near-field communication terminal acquires a second dynamic distance baseline from the mobile terminal via a Bluetooth communication channel. This second dynamic distance baseline is generated based on historical action waveform features of the mobile terminal in assistive mode when no effective near-field interaction has been initiated. In other words, after obtaining these historical action waveform features in assistive mode, statistical analysis or model training is performed on these features to generate a second dynamic distance baseline for when the mobile terminal approaches the near-field communication terminal in assistive mode without any intention of near-field interaction. This baseline is continuously updated as subsequent ineffective interaction data from the user's mobile terminal accumulates, ensuring that the recognition method matches the user's interaction habits.
[0057] Based on methods such as Euclidean distance or cosine similarity, the deviation values of the action waveform features relative to the dynamic distance baseline are obtained in dimensions such as distance change amplitude, touch duration, and action stability. Then, according to preset mapping rules, different ranges of deviation values are mapped to different interaction intent levels to obtain the current near-field interaction intent level. It can be understood that the larger the deviation value, the more significant the difference between the current action and the waveform features of historical actions with ineffective interactions, and the higher the corresponding current near-field interaction intent level.
[0058] Based on the recognition pattern and the user's historical behavior of the mobile terminal, the predicted near-field interaction intent level of the mobile terminal is determined. Specifically, the user's historical behavior of the mobile terminal under the corresponding recognition pattern is collected, and historical successful interaction records are obtained from the user's historical behavior. These historical successful interaction records are clustered based on the interaction time period and the efficiency of the interaction result, resulting in multiple behavior classification clusters. For the number of successful interaction records contained in each classification cluster, the intent intensity index of the mobile terminal under that classification cluster is determined. This intent intensity index includes: the number of successful interactions, the density of successful interactions, etc. The near-field interaction intent level under each classification cluster is determined based on the intent intensity index. The similarity between the current scene feature vector and the historical scene feature vector corresponding to each classification cluster is matched, and the near-field interaction intent level under the corresponding classification cluster is used as the predicted near-field interaction intent level.
[0059] The system compares the current near-field interaction intent level with the predicted near-field interaction intent level of the mobile terminal based on the current scene information mapping. Based on the comparison result, it determines whether the mobile terminal has a near-field interaction intent touch action on the near-field communication terminal; that is, if the current near-field interaction intent level is greater than or equal to the predicted near-field interaction intent level, then the mobile terminal has a near-field interaction intent touch action on the near-field communication terminal.
[0060] S106: In response to the touch action, the near-field communication terminal is triggered to send payment information to the mobile terminal via the Bluetooth communication channel, so that the mobile terminal receives the payment information and completes the payment transaction.
[0061] In response to the aforementioned detected touch action of the mobile terminal, after determining that the mobile terminal intentionally touches the near-field communication terminal, the near-field communication terminal is triggered to send payment information to the mobile terminal via the Bluetooth communication channel, so that the mobile terminal receives the payment information and completes the payment transaction.
[0062] The payment pending information includes information such as what needs to be paid and / or the amount to be paid, used to prompt the user to make a payment via their mobile terminal. This payment pending information may be a pending order sent from a merchant's near-field communication (NFC) terminal to the user's mobile terminal, or a transfer request between users. Taking a pending order as an example, to facilitate clearer understanding for the user, the payment pending information can contain sufficiently detailed order information. The payment pending information can be generated on the NFC terminal associated with the NFC terminal. Since the user's mobile terminal relies on the payment pending information to make the payment, in this application's solution, the payment pending information is sent from the NFC terminal to the mobile terminal, enabling the mobile terminal to receive the payment pending information and complete the payment transaction.
[0063] Specifically, to ensure a strong binding between the payment instruction and the specific transaction order after the mobile terminal touches the device, thus avoiding transaction mismatch issues, in one embodiment of this specification, in response to the touch action, a near-field communication terminal is triggered to send payment information to the mobile terminal via a Bluetooth communication channel, specifically including: Based on the near-field communication terminal, such as a cash register or POS machine with near-field communication functionality, the payment information for this transaction is obtained, including core data such as transaction amount, merchant identifier, and order number, ensuring the accuracy and timeliness of the information. The session identifier, as described in S102, is generated when the near-field communication terminal establishes a Bluetooth communication channel with the mobile terminal, used to distinguish communication sessions between different terminals. After a touch action is recognized, the payment information is bound to the session identifier, ensuring that the payment information is only sent to the mobile terminal corresponding to the session identifier, avoiding issues with the payment information being unavailable. Based on the session key, such as a symmetric encryption key, negotiated during the establishment of the Bluetooth communication channel, the bound payment information is encrypted to generate encrypted payment information. It should be noted that this encryption process uses existing encryption algorithms that meet security standards, ensuring that the payment information cannot be illegally decrypted even if intercepted during transmission, reducing payment security risks. Subsequently, the encrypted payment information is sent to the mobile terminal via the Bluetooth communication channel.
[0064] After receiving the encrypted payment information, the mobile terminal decrypts it using the previously negotiated session key, extracting the payment information and the bound session identifier. It compares this session identifier with the one generated when establishing the Bluetooth session. If they match, a verification response is returned; otherwise, a verification failure response is returned, and this is relayed to the near-field communication terminal via the Bluetooth communication channel. Upon receiving the verification response, if the near-field communication terminal determines that the session identifiers match, it means the mobile terminal has correctly received and decrypted the payment information, and that this mobile terminal is the target terminal for this interaction. At this point, it sends an authorization command to the mobile terminal, allowing it to initiate a payment request to the payment server corresponding to the near-field communication terminal based on the decrypted payment information, completing the subsequent payment process. If the verification response indicates that the session identifiers do not match, authorization is rejected, the payment process is terminated, and a verification failure message can be sent to the mobile terminal.
[0065] In this process, session key encryption and session identifier binding prevent the interception and tampering of payment information during Bluetooth transmission, reducing payment security risks. The session identifier binding and verification method ensures that the payment information can only be received and used by the mobile terminal currently interacting with the near-field communication terminal, solving the problem of targeted information transmission in scenarios with multiple mobile terminals and avoiding payment confusion caused by incompatibility between the interacting terminal and the payment terminal. Combining session identifiers and keys for encrypted transmission of payment information effectively utilizes the efficiency of Bluetooth communication while ensuring payment security.
[0066] In traditional methods, the service terminates after a mobile terminal completes a near-field payment, failing to fully utilize the payment scenario and user interaction characteristics, and thus unable to provide users with subsequent related services. This limits the service value to a single payment transaction. Furthermore, subsequent online pushes from merchants or platforms, such as coupons and advertisements, are often based on broad user profiles or consumption records, which do not match the specific payment scenario and the user's real-time status. These are frequently ignored or closed by users, resulting in poor marketing effectiveness and a damaged user experience. Therefore, in one embodiment of this specification, the method further includes the following process: When a mobile terminal receives payment information and completes a payment transaction, at least one online extended service is matched based on the mobile terminal's current payment transaction data and the near-field communication terminal's identification pattern or current scene information. The matching logic for this online extended service is associated with the characteristics of the touch action to ensure that different mobile terminals are provided with services that match their interaction capabilities. Specifically: Based on the transaction data of the mobile terminal's current payment and the identification pattern of the near-field communication terminal or the current scene information, a service matching vector is generated. The service matching vector is generated by first extracting dimensional information from the transaction data and the identification pattern of the near-field communication terminal or the current scene information. Then, the extracted unstructured dimensional information is converted into standardized numerical data according to a unified preset encoding rule. Finally, the encoded dimensional values are combined in a preset order to obtain a multi-dimensional service matching vector.
[0067] The similarity between the service matching vector and a pre-set pool of online extended service candidates is calculated. This pool stores various types of online extended services, each with its own unique service feature vector. This vector is generated based on pre-defined rules regarding the service's adaptation scenario, transaction conditions, and user group, clearly defining the service's adaptation boundaries. By calculating the cosine similarity or weighted Euclidean distance between two vectors, one or more services with the highest similarity are selected as the matching result. Therefore, this matching result is not only related to "the user paying for the goods" but also to "how the user completed this payment in a specific environment." The matched online extended services are then pushed to the mobile terminal. The push can be implemented by embedding a lightweight entry point on the payment success page or by silently sending the service to the user's wallet via system notification. By incorporating the recognition pattern of the near-field communication terminal or the current scene information as a recommendation dimension, service recommendations can recommend content with high user relevance, helping to improve click-through rates and user satisfaction.
[0068] Based on the same idea, one or more embodiments of this specification also provide apparatus and devices corresponding to the above methods, such as... Figure 5 , Figure 6 As shown.
[0069] Figure 5This specification provides a schematic diagram of a payment service interaction device based on laser ranging, according to one or more embodiments. The device is applied to a near-field communication terminal, which is equipped with a miniature laser ranging sensor, including: Measurement module 502 is used to measure the distance between the mobile terminal and the near-field communication terminal based on the miniature laser ranging sensor; the mobile terminal is a terminal device that does not have near-field communication function and is used to trigger payment operations; The identification module 504 is used to identify the touch action of the mobile terminal on the near-field communication terminal by means of the measured distance; The response module 506 is used to respond to the touch action and trigger the near-field communication terminal to send payment information to the mobile terminal via the Bluetooth communication channel, so that the mobile terminal receives the payment information and completes the payment transaction.
[0070] Optionally, the device further includes: a channel establishment module 508; The channel establishment module 508 is used to construct the time series data of the mobile terminal based on the timestamps corresponding to each of the measured distances; Random numbers are generated based on the time series data and used as session identifiers between the near-field communication terminal and the mobile terminal; The session identifier is broadcast to establish a Bluetooth communication channel between the near-field communication terminal and the mobile terminal.
[0071] Optionally, the identification module 504 acquires the envelope contour of the time series data; If the envelope contour is of the single valley type and the minimum distance of the measured distance is less than the preset touch distance, then feature extraction is performed on the time series data to obtain motion waveform features; Based on the waveform characteristics of the action, the touch action of the mobile terminal on the near-field communication terminal is identified.
[0072] Optionally, the identification module 504 acquires the current scene information of the near-field communication terminal; The first dynamic distance baseline of the mobile terminal is obtained through the Bluetooth communication channel; the first dynamic distance baseline is generated based on the historical action waveform features of the mobile terminal when no effective near-field interaction is initiated. Obtain the deviation value of the action waveform feature relative to the dynamic distance baseline, and obtain the current near-field interaction intent level corresponding to the deviation value; Compare the current near-field interaction intent level with the predicted near-field interaction intent level of the mobile terminal based on the current scene information mapping; Based on the comparison results, it is determined whether the mobile terminal has a touch action with near-field interaction intent towards the near-field communication terminal.
[0073] Optionally, the identification module 504 acquires the accessibility mode of the mobile terminal and identifies the interactive capability characteristics of the mobile terminal; Activate the recognition mode corresponding to the interaction capability feature of the near-field communication terminal; In the recognition mode, time-series data of the mobile terminal is constructed based on the timestamps corresponding to each of the measured distances; If, based on the preset interaction attempt distance and the relaxed data corresponding to the recognition mode, it is determined that the time series data corresponds to the interaction attempt action, then feature extraction is performed on the time series data to obtain action waveform features; Based on the waveform characteristics of the action, the touch action of the mobile terminal on the near-field communication terminal is identified.
[0074] Optionally, the identification module 504 obtains the minimum distance of the measured distance, and widens the minimum distance based on the widened data corresponding to the identification mode to obtain the widened minimum distance; Based on the relaxed data corresponding to the identification pattern, the time tolerance window of the time series data is determined synchronously; Using the relaxed minimum distance in the time series data as the center, determine whether there are close segments close to the relaxed minimum distance and far segments far from the relaxed minimum distance within the time tolerance window; If such a distance exists, and the relaxed minimum distance is less than the preset interaction attempt distance, then the time series data is determined to correspond to the interaction attempt action.
[0075] Optionally, the recognition module 504, based on the action waveform features, recognizes the touch action of the mobile terminal on the near-field communication terminal, specifically including: The second dynamic distance baseline of the mobile terminal is obtained through the Bluetooth communication channel; the second dynamic distance baseline is generated based on the historical action waveform characteristics of the mobile terminal when it has not initiated effective near-field interaction in the accessibility mode; Obtain the deviation value of the action waveform feature relative to the dynamic distance baseline, and obtain the current near-field interaction intent level corresponding to the deviation value; Based on the recognition pattern and the user's historical behavior of the mobile terminal, the predicted near-field interaction intention level of the mobile terminal is determined, and the current near-field interaction intention level is compared with the predicted near-field interaction intention level. Based on the comparison results, it is determined whether the mobile terminal has a touch action with near-field interaction intent towards the near-field communication terminal.
[0076] Optionally, the measurement module 502 controls the miniature laser ranging sensor to send a laser ranging signal to the short-range identification area of the near-field communication terminal; the short-range identification area is the area covered by a preset interactive identification distance, and the area starts from the interactive surface of the near-field communication interactive terminal; The laser echo signal corresponding to the laser ranging signal is received, and the distance between the mobile terminal and the near-field communication terminal is obtained by analysis.
[0077] Optionally, the response module 506 obtains the payment information based on the near-field communication terminal; In response to the touch action, the payment information is bound to the session identifier; The bound payment information is encrypted using the session key of the Bluetooth communication channel to obtain encrypted payment information, which is then sent to the mobile terminal.
[0078] Optionally, the device further includes: an authorization response module 510; The authorization response module 510 is used to receive a verification response returned by the mobile terminal based on the Bluetooth communication channel; the verification response is used to instruct the mobile terminal whether the session identifier obtained after decrypting the encrypted payment information based on the session key is consistent with the session identifier generated by the mobile terminal. If they match, the mobile terminal is authorized to initiate a payment request to the payment server corresponding to the near-field communication terminal based on the payment information to be paid.
[0079] Optionally, the device further includes: a service extension module 512; The service extension module is used to match at least one online extension service based on the transaction data of the current payment of the mobile terminal and the identification pattern or current scene information of the near-field communication terminal when the mobile terminal receives the payment information and completes the payment transaction; the matching logic of the online extension service is associated with the characteristics of the touch action. The online extended services are pushed to the mobile terminal.
[0080] Optionally, the service extension module 512 generates a service matching vector based on the transaction data of the current payment of the mobile terminal and the identification pattern or current scene information of the near-field communication terminal. The values of each dimension in the service matching vector are matched with a pre-set pool of online extended services to obtain at least one online extended service.
[0081] Figure 6 This specification provides a schematic diagram of a payment service interaction device based on laser ranging, provided for one or more embodiments. The device is applied to a near-field communication terminal, which is equipped with a miniature laser ranging sensor. The device includes: At least one processor; and, A memory communicatively connected to the at least one processor; wherein, The memory stores instructions executable by the at least one processor, which, when executed by the at least one processor, enable the at least one processor to: The distance between the mobile terminal and the near-field communication terminal is measured based on the miniature laser ranging sensor; the mobile terminal is a terminal device that does not have near-field communication function and is used to trigger payment operations. The touch action of the mobile terminal on the near-field communication terminal is identified by measuring the distance; In response to the touch action, the near-field communication terminal is triggered to send payment information to the mobile terminal via the Bluetooth communication channel, so that the mobile terminal receives the payment information and completes the payment transaction.
[0082] In the 1990s, improvements to a technology could be clearly distinguished as either hardware improvements (e.g., improvements to the circuit structure of diodes, transistors, switches, etc.) or software improvements (improvements to the methodology). However, with technological advancements, many methodological improvements today can be considered direct improvements to the hardware circuit structure. Designers almost always obtain the corresponding hardware circuit structure by programming the improved methodology into the hardware circuit. Therefore, it cannot be said that a methodological improvement cannot be implemented using hardware physical modules. For example, a Programmable Logic Device (PLD) (such as a Field Programmable Gate Array (FPGA)) is such an integrated circuit whose logic function is determined by the user programming the device. Designers can program and "integrate" a digital system onto a PLD themselves, without needing chip manufacturers to design and manufacture dedicated integrated circuit chips. Furthermore, nowadays, instead of manually manufacturing integrated circuit chips, this programming is mostly implemented using "logic compiler" software. Similar to the software compiler used in program development, the original code before compilation must also be written in a specific programming language, called a Hardware Description Language (HDL). There are many HDLs, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, and RHDL (Ruby Hardware Description Language). Currently, the most commonly used are VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art should also understand that by simply performing some logic programming on the method flow using one of these hardware description languages and programming it into an integrated circuit, the hardware circuit implementing the logical method flow can be easily obtained.
[0083] The controller can be implemented in any suitable manner. For example, it can take the form of a microprocessor or processor and a computer-readable medium storing computer-readable program code (e.g., software or firmware) executable by the (micro)processor, logic gates, switches, application-specific integrated circuits (ASICs), programmable logic controllers, and embedded microcontrollers. Examples of controllers include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicon Labs C8051F320. A memory controller can also be implemented as part of the control logic of the memory. Those skilled in the art will also recognize that, in addition to implementing the controller in purely computer-readable program code form, the same functionality can be achieved by logically programming the method steps to make the controller take the form of logic gates, switches, application-specific integrated circuits, programmable logic controllers, and embedded microcontrollers. Therefore, such a controller can be considered a hardware component, and the means included therein for implementing various functions can also be considered as structures within the hardware component. Alternatively, the means for implementing various functions can be considered as both software modules implementing the method and structures within the hardware component.
[0084] The systems, devices, modules, or units described in the above embodiments can be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, a computer can be, for example, a personal computer, laptop computer, cellular phone, camera phone, smartphone, personal digital assistant, media player, navigation device, email device, game console, tablet computer, wearable device, or any combination of these devices.
[0085] For ease of description, the above devices are described in terms of function, divided into various units. Of course, in implementing this specification, the functions of each unit can be implemented in one or more software and / or hardware components.
[0086] Those skilled in the art will understand that the embodiments of this specification can be provided as methods, systems, or computer program products. Therefore, the embodiments of this specification can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the embodiments of this specification can take the form of a computer program product implemented on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0087] This specification is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this specification. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0088] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0089] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0090] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0091] Memory may include non-persistent storage in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of computer-readable media.
[0092] Computer-readable media includes both permanent and non-permanent, removable and non-removable media that can store information using any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include transient computer-readable media, such as modulated data signals and carrier waves.
[0093] It should also be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0094] This specification can be described in the general context of computer-executable instructions that are executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc., that perform a specific task or implement a specific abstract data type. This specification can also be practiced in distributed computing environments, where tasks are performed by remote processing devices connected via a communication network. In distributed computing environments, program modules can reside in local and remote computer storage media, including storage devices.
[0095] The various embodiments in this specification are described in a progressive manner. Similar or identical parts between embodiments can be referred to mutually. Each embodiment focuses on describing the differences from other embodiments. In particular, the embodiments of apparatus, devices, and non-volatile computer storage media are basically similar to the method embodiments, so the descriptions are relatively simple; relevant parts can be referred to the descriptions of the method embodiments.
[0096] The foregoing has described specific embodiments of this specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims may be performed in a different order than that shown in the embodiments and may still achieve the desired result. Furthermore, the processes depicted in the drawings do not necessarily require the specific or sequential order shown to achieve the desired result. In some embodiments, multitasking and parallel processing are possible or may be advantageous.
[0097] The above description is merely one or more embodiments of this specification and is not intended to limit this specification. Various modifications and variations can be made to the one or more embodiments of this specification by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principle of one or more embodiments of this specification should be included within the scope of the claims of this specification.
Claims
1. A payment service interaction method based on laser ranging, applied to a near field communication terminal, wherein the near field communication terminal is provided with a miniature laser ranging sensor, and the method comprises the following steps of: measuring a distance between a mobile terminal and the near field communication terminal based on the miniature laser ranging sensor; the mobile terminal being a terminal device without near field communication function and used for triggering a payment operation; identifying a touch action of the mobile terminal on the near field communication terminal through the measured distance; and in response to the touch action, triggering the near field communication terminal to send to-be-paid information to the mobile terminal based on a Bluetooth communication channel, so that the mobile terminal receives the to-be-paid information and completes a payment service. 2.The method of claim 1, further comprising the following steps of: constructing time sequence data of the mobile terminal according to time stamps corresponding to each of the measured distances; generating a random number based on the time sequence data as a session identifier of the near field communication terminal and the mobile terminal; and broadcasting the session identifier to establish a Bluetooth communication channel between the near field communication terminal and the mobile terminal. 3.The method of claim 2, wherein the touch action of the mobile terminal on the near field communication terminal is identified through the measured distance, and specifically comprises the following steps of: obtaining an envelope profile of the time sequence data; if the envelope profile is of a single valley type and a minimum distance of the measured distance is less than a preset touch distance, performing feature extraction on the time sequence data to obtain an action waveform feature; and identifying the touch action of the mobile terminal on the near field communication terminal based on the action waveform feature. 4.The method of claim 3, wherein the touch action of the mobile terminal on the near field communication terminal is identified based on the action waveform feature, and specifically comprises the following steps of: obtaining current scene information in which the near field communication terminal is located; obtaining a first dynamic distance baseline of the mobile terminal through the Bluetooth communication channel; the first dynamic distance baseline being generated based on historical action waveform features of the mobile terminal without initiating an effective near field interaction; obtaining a deviation value of the action waveform feature relative to the first dynamic distance baseline to obtain a current near field interaction intention level corresponding to the deviation value; comparing the current near field interaction intention level with a predicted near field interaction intention level of the mobile terminal mapped based on the current scene information; and determining whether the mobile terminal has a touch action with a near field interaction intention on the near field communication terminal according to a comparison result. 5.The method of claim 2, wherein the touch action of the mobile terminal on the near field communication terminal is identified through the measured distance, and specifically comprises the following steps of: obtaining an auxiliary function mode of the mobile terminal to identify an interaction capability feature of the mobile terminal; starting an identification mode of the near field communication terminal corresponding to the interaction capability feature; and constructing time sequence data of the mobile terminal according to time stamps corresponding to each of the measured distances in the identification mode. If it is determined that the time series data corresponds to an interaction attempt action based on the pre-set interaction attempt distance and the relaxation data corresponding to the identification mode, feature extraction is performed on the time series data to obtain an action waveform feature; Based on the action waveform feature, a touch action of the mobile terminal on the near field communication terminal is identified.
6. The method of claim 5, wherein determining that the time series data corresponds to an interaction attempt action based on the pre-set interaction attempt distance and the relaxation data corresponding to the identification mode specifically comprises: obtaining a minimum distance of the measured distance, and widening the minimum distance based on the relaxation data corresponding to the identification mode to obtain a widened minimum distance; synchronously determining a time tolerance window of the time series data based on the relaxation data corresponding to the identification mode; determining whether there is an approach section close to the widened minimum distance and a moving away section away from the widened minimum distance within the time tolerance window with the widened minimum distance of the time series data as the center; if there is, and the widened minimum distance is less than the pre-set interaction attempt distance, then it is determined that the time series data corresponds to an interaction attempt action.
7. The method of claim 5, wherein identifying a touch action of the mobile terminal on the near field communication terminal based on the action waveform feature specifically comprises: obtaining a second dynamic distance baseline of the mobile terminal through the Bluetooth communication channel; the second dynamic distance baseline is generated based on historical action waveform features of the mobile terminal in the auxiliary function mode without initiating an effective near field interaction; obtaining a deviation value of the action waveform feature relative to the second dynamic distance baseline to obtain a current near field interaction intention level corresponding to the deviation value; comparing the current near field interaction intention level with a predicted near field interaction intention level of the mobile terminal according to the identification mode and historical behaviors of a user of the mobile terminal; determining whether the mobile terminal has a touch action of near field interaction intention on the near field communication terminal according to the comparison result.
8. The method of claim 1, wherein measuring a distance between the mobile terminal and the near field communication terminal based on the micro laser ranging sensor specifically comprises: controlling the micro laser ranging sensor to send a laser ranging signal to a short distance identification area of the near field communication terminal; the short distance identification area is a range covered by a pre-set interaction identification distance, and the range starts from an interaction surface of the near field communication terminal; receiving a laser echo signal corresponding to the laser ranging signal to analyze and obtain the distance between the mobile terminal and the near field communication terminal.
9. The method of claim 2, wherein in response to the touch action, the near field communication terminal triggers to send to-be-paid information to the mobile terminal based on a Bluetooth communication channel, specifically comprising: obtaining the to-be-paid information based on the near field communication terminal; binding the to-be-paid information with the session identifier in response to the touch action; According to a session key of the Bluetooth communication channel, the bound to-be-paid information is encrypted to obtain encrypted payment information, and the encrypted payment information is sent to the mobile terminal.
10. The method of claim 9, further comprising: receiving a verification response returned by the mobile terminal based on the Bluetooth communication channel; the verification response is used to indicate whether a session identifier obtained by the mobile terminal after decrypting the encrypted payment information based on the session key is consistent with a session identifier generated by the mobile terminal; if consistent, authorizing the mobile terminal to initiate a payment request to a payment server corresponding to the near field communication terminal based on the to-be-paid information.
11. The method of claim 1, further comprising: when the mobile terminal receives the to-be-paid information to complete a payment service, at least one online extension service is matched according to current payment transaction data of the mobile terminal and an identification mode of the near field communication terminal or current scene information where the near field communication terminal is located; the matching logic of the online extension service is associated with the feature of the touch action; the online extension service is pushed to the mobile terminal.
12. The method of claim 11, wherein matching at least one online extension service according to current payment transaction data of the mobile terminal and an identification mode of the near field communication terminal or current scene information where the near field communication terminal is located specifically comprises: generating a service matching vector according to current payment transaction data of the mobile terminal and an identification mode of the near field communication terminal or current scene information where the near field communication terminal is located; matching the value of each dimension in the service matching vector with a preset online extension service candidate pool to obtain at least one online extension service.
13. A payment service interaction device based on laser ranging, applied to a near field communication terminal, the near field communication terminal being deployed with a micro laser ranging sensor, comprising: a measurement module configured to measure the distance between a mobile terminal and the near field communication terminal based on the micro laser ranging sensor; the mobile terminal is a terminal device without near field communication function and used for triggering payment operation; an identification module configured to identify a touch action of the mobile terminal on the near field communication terminal through the measured distance; a response module configured to trigger the near field communication terminal to send to-be-paid information to the mobile terminal based on a Bluetooth communication channel in response to the touch action, so that the mobile terminal receives the to-be-paid information to complete a payment service.
14. The apparatus of claim 13, further comprising: a channel establishment module; the channel establishment module is configured to construct time series data of the mobile terminal according to a timestamp corresponding to each of the measured distances; generate a random number based on the time series data as a session identifier of the near field communication terminal and the mobile terminal; broadcast the session identifier to establish a Bluetooth communication channel between the near field communication terminal and the mobile terminal.
15. The device of claim 14, wherein the identification module obtains an envelope profile of the time series data. If the envelope profile is a single valley type and the minimum distance of the measured distances is less than a preset touch distance, feature extraction is performed on the time series data to obtain motion waveform features; Based on the motion waveform features, a touch action of the mobile terminal on the near field communication terminal is identified.
16. The apparatus of claim 15, wherein the identification module acquires current scene information in which the near field communication terminal is located; A first dynamic distance baseline of the mobile terminal is acquired through the Bluetooth communication channel; the first dynamic distance baseline is generated based on historical motion waveform features of the mobile terminal when no effective near field interaction is initiated; A deviation value of the motion waveform features relative to the first dynamic distance baseline is acquired to obtain a current near field interaction intention level corresponding to the deviation value; The current near field interaction intention level is compared with a predicted near field interaction intention level of the mobile terminal mapped based on the current scene information; According to a comparison result, it is determined whether the mobile terminal has a touch action of near field interaction intention on the near field communication terminal.
17. The apparatus of claim 14, wherein the identification module acquires an auxiliary function mode of the mobile terminal and identifies an interaction capability feature of the mobile terminal; An identification mode corresponding to the interaction capability feature is started for the near field communication terminal; In the identification mode, time series data of the mobile terminal is constructed according to time stamps corresponding to each of the measured distances; If it is determined that the time series data corresponds to an interaction attempt action based on a preset interaction attempt distance and relaxation data corresponding to the identification mode, feature extraction is performed on the time series data to obtain motion waveform features; Based on the motion waveform features, a touch action of the mobile terminal on the near field communication terminal is identified.
18. The apparatus of claim 17, wherein the identification module acquires a minimum distance of the measured distances, and based on relaxation data corresponding to the identification mode, the minimum distance is widened to obtain a widened minimum distance; Based on the relaxation data corresponding to the identification mode, a time tolerance window of the time series data is synchronously determined; It is determined whether there are an approaching section close to the widened minimum distance and a moving away section away from the widened minimum distance within the time tolerance window with the widened minimum distance in the time series data as a center; If there are, and the widened minimum distance is less than the preset interaction attempt distance, it is determined that the time series data corresponds to an interaction attempt action.
19. The apparatus of claim 17, wherein the identification module identifies a touch action of the mobile terminal on the near field communication terminal based on the motion waveform features, and specifically includes: A second dynamic distance baseline of the mobile terminal is acquired through the Bluetooth communication channel; The second dynamic distance baseline is generated based on historical motion waveform features of the mobile terminal when no effective near field interaction is initiated in the auxiliary function mode. obtaining a deviation value of the motion waveform feature relative to the second dynamic distance baseline to obtain a current near-field interaction intention level corresponding to the deviation value; determining a predicted near-field interaction intention level of the mobile terminal according to the identification mode and historical behavior of a user of the mobile terminal, and comparing the current near-field interaction intention level with the predicted near-field interaction intention level; determining whether the mobile terminal has a touch action of near-field interaction intention to the near-field communication terminal according to a comparison result.
20. The apparatus of claim 13, wherein the measurement module controls the micro laser ranging sensor to send a laser ranging signal to a short-distance identification area of the near-field communication terminal; the short-distance identification area is an area range covered by a preset interaction identification distance, and the area range starts from an interaction surface of the near-field communication terminal; receiving a laser echo signal corresponding to the laser ranging signal to obtain a distance between the mobile terminal and the near-field communication terminal.
21. The apparatus of claim 14, wherein the response module obtains the to-be-paid information based on the near-field communication terminal; binding the to-be-paid information with the session identifier in response to the touch action; encrypting the bound to-be-paid information according to a session key of the Bluetooth communication channel to obtain encrypted payment information, and sending the encrypted payment information to the mobile terminal.
22. The apparatus of claim 21, further comprising: an authorization response module; the authorization response module is configured to receive a verification response returned by the mobile terminal based on the Bluetooth communication channel; the verification response is configured to indicate whether a session identifier obtained by the mobile terminal after decrypting the encrypted payment information based on the session key is consistent with a session identifier generated by the mobile terminal; if the session identifiers are consistent, the mobile terminal is authorized to initiate a payment request to a payment server corresponding to the near-field communication terminal based on the to-be-paid information.
23. The apparatus of claim 13, further comprising: a service extension module; the service extension module is configured to, when the mobile terminal receives the to-be-paid information to complete a payment service, match at least one online extension service according to current payment transaction data of the mobile terminal and an identification mode of the near-field communication terminal or current scene information in which the near-field communication terminal is located; a matching logic of the online extension service is associated with a feature of the touch action; the online extension service is pushed to the mobile terminal.
24. The apparatus of claim 23, wherein the service extension module generates a service matching vector according to current payment transaction data of the mobile terminal and an identification mode of the near-field communication terminal or current scene information in which the near-field communication terminal is located; values of each dimension in the service matching vector are matched with a preset online extension service candidate pool to obtain at least one online extension service.
25. A payment service interaction device based on laser ranging, applied to a near-field communication terminal, the near-field communication terminal is deployed with a micro laser ranging sensor, and the device comprises: at least one processor; and a memory in communication connection with the at least one processor; wherein The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to: measure the distance between the mobile terminal and the near field communication terminal based on the micro laser ranging sensor; the mobile terminal is a terminal device without near field communication function and used for triggering payment operation; identify the touch action of the mobile terminal to the near field communication terminal through the measured distance; in response to the touch action, trigger the near field communication terminal to send the to-be-paid information to the mobile terminal based on the Bluetooth communication channel, so that the mobile terminal receives the to-be-paid information to complete the payment service.