Near field communication verification method and system based on ultrasonic waves, medium and equipment

By adopting an ultrasonic-based near-field communication verification method in NFC applications, and using ultrasonic communication protocol to verify the physical distance between devices, the problem of insufficient security of NFC applications in the prior art is solved, and higher security and user experience are achieved.

CN120018126APending Publication Date: 2025-05-16ALIPAY (HANGZHOU) INFORMATION TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202510032066.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-08
Publication Date
2025-05-16

AI Technical Summary

Technical Problem

The prior art is difficult to effectively improve the security of NFC applications, especially in verifying the physical distance between near-field communication devices.

Method used

Through the ultrasonic-based near-field communication verification method, the ultrasonic communication protocol is used to interact to ensure that data exchange occurs within the physical close range. The specific steps include sending the target ultrasonic signal when detecting a near field communication request of the communication initiating device, receiving and verifying the ultrasonic response signal, and activate the near field communication function if the verification is successful.

Benefits of technology

Ultrasonic verification ensures the security of NFC applications, avoids the problem of long-distance devices triggering communication errors, enhances the user's interactive experience, and simplifies the data exchange process between devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120018126A_ABST
    Figure CN120018126A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a near field communication verification method and system based on ultrasonic waves, a medium and equipment, and the method comprises the steps: firstly, when a near field communication request operation of communication initiating equipment is detected, transmitting a target ultrasonic signal to communication response equipment through the communication initiating equipment; and then, receiving the target ultrasonic signal through the communication response equipment, verifying the target ultrasonic signal, and generating an ultrasonic response signal according to a verification result. And further, receiving the ultrasonic response signal through the communication initiating device, verifying whether the communication response device is located in a preset near field communication range by using the ultrasonic response signal, and if verification succeeds, starting a near field communication function of the communication initiating device. Therefore, data exchange between the communication initiating device and the communication response device is realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a near field communication verification method, system, medium and device based on ultrasonic wave. Background Art

[0002] With the popularization of NFC (Near Field Communication) technology, more and more mobile terminals such as smart phones and smart watches have NFC functions. Among them, NFC technology refers to the transmission of information through electromagnetic induction coupling in the radio frequency part of the spectrum. In terms of application, it is not only low-cost but also very convenient, especially in the field of payment. Users only need to touch or bring the mobile terminal with NFC function close to the payment device to complete the payment. The whole process is simple and fast.

[0003] Currently, there is an urgent need to provide a near field communication authentication solution to enhance the security of NFC applications by verifying the physical distance between near field communication devices. Summary of the invention

[0004] The embodiments of this specification provide a near field communication verification method based on ultrasonic waves, which interacts through an ultrasonic communication protocol to ensure that data exchange occurs within a physical close range, thereby further ensuring the security of NFC applications. The method includes:

[0005] When a near field communication request operation of a communication initiating device is detected, a target ultrasonic signal is sent to a communication responding device through the communication initiating device;

[0006] receiving the target ultrasonic signal through the communication response device, verifying the target ultrasonic signal, and generating an ultrasonic response signal according to the verification result;

[0007] Receiving the ultrasonic response signal through the communication initiating device, and using the ultrasonic response signal to verify whether the communication responding device is within a preset near field communication range;

[0008] If the verification is successful, the near field communication function of the communication initiating device is started to realize data exchange between the communication initiating device and the communication responding device.

[0009] Further, in some embodiments, when the near field communication request operation of the communication initiating device is detected, sending a target ultrasonic signal to the communication responding device through the communication initiating device includes:

[0010] When a near field communication request operation of a communication initiating device is detected, a corresponding near field communication request is generated;

[0011] Generate a target ultrasonic signal carrying a preset identification protocol according to the near field communication request;

[0012] The target ultrasonic wave signal is transmitted to the communication response device through the built-in speaker of the communication initiating device.

[0013] Furthermore, in some embodiments, generating a target ultrasonic signal carrying a preset identification protocol according to the near field communication request includes:

[0014] generating a data packet corresponding to the near field communication request according to the preset identification protocol;

[0015] Encoding the data packet to obtain the target ultrasonic signal;

[0016] The preset identification protocol at least includes an initiating device identifier, a request sequence number, a timestamp and a check code.

[0017] Furthermore, in some implementations, encoding the data packet to obtain the target ultrasonic signal includes:

[0018] Converting the data packet into a byte string, and encrypting the byte string to obtain encrypted data;

[0019] The encrypted data is encoded into the target ultrasonic signal according to preset ultrasonic parameters.

[0020] Further, in some implementations, when the near field communication request operation of the communication initiating device is detected, generating a corresponding near field communication request includes:

[0021] When a near field communication request operation of a communication initiating device is detected, starting a target application in the communication initiating device;

[0022] generating the near field communication request based on the business type of the target application;

[0023] The near field communication request at least includes an initiating device identifier and a request type.

[0024] Furthermore, in some embodiments, receiving the target ultrasonic signal through the communication response device, verifying the target ultrasonic signal, and generating an ultrasonic response signal according to the verification result includes:

[0025] receiving the target ultrasonic signal through a built-in microphone of the communication response device;

[0026] Decoding and decrypting the target ultrasonic signal to obtain first decoded data;

[0027] Performing at least device identification verification, request sequence number verification, timestamp verification, and check code verification on the first decoded data;

[0028] If all are verified, the verification results are encrypted and encoded to obtain the ultrasonic response signal;

[0029] The ultrasonic response signal at least includes an initiating device identification, a request sequence number, a timestamp, a check code and a near field communication request status.

[0030] Furthermore, in some embodiments, the method further comprises:

[0031] The ultrasonic response signal is sent to the communication initiating device through the built-in speaker of the communication responding device.

[0032] Furthermore, in some embodiments, receiving the ultrasonic response signal by the communication initiating device and using the ultrasonic response signal to verify whether the communication responding device is located within a preset near field communication range includes:

[0033] Receiving the ultrasonic response signal through the built-in microphone of the communication initiating device;

[0034] Decoding and decrypting the ultrasonic response signal to obtain second decoded data;

[0035] Performing at least device identification verification, request sequence number verification, timestamp verification, check code verification and status verification on the second decoded data;

[0036] If both pass the verification, it is determined that the communication response device is located within the preset near field communication range.

[0037] Furthermore, in some embodiments, the method further comprises:

[0038] When a near field communication request operation of a communication initiating device is detected, a built-in speaker and a built-in microphone of the communication initiating device are activated, and a built-in speaker and a built-in microphone of the communication responding device are activated.

[0039] Further, in some embodiments, the frequency of the target ultrasonic signal and / or the ultrasonic response signal is greater than or equal to 20 kHz and less than or equal to 40 kHz.

[0040] The embodiment of this specification also proposes a near field communication verification device based on ultrasonic waves, the device comprising:

[0041] An ultrasonic transmitting module, configured to transmit a target ultrasonic signal to a communication responding device through the communication initiating device when a near field communication request operation of the communication initiating device is detected;

[0042] An ultrasonic response module, used to receive the target ultrasonic signal through the communication response device, verify the target ultrasonic signal, and generate an ultrasonic response signal according to the verification result;

[0043] A near field communication verification module, used to receive the ultrasonic response signal through the communication initiating device, and use the ultrasonic response signal to verify whether the communication response device is located within a preset near field communication range;

[0044] The near field communication implementation module is used to start the near field communication function of the communication initiating device if the verification is successful, so as to realize data exchange between the communication initiating device and the communication responding device.

[0045] The embodiment of this specification also proposes a near field communication verification system based on ultrasonic waves, the system comprising:

[0046] A communication initiating device, comprising an ultrasonic transmitting module, a first signal verification module and a communication control module, wherein the ultrasonic transmitting module is used to generate a target ultrasonic signal when executing a near field communication request operation, and send the target ultrasonic signal to a communication response device; the first signal verification module is used to verify the ultrasonic response signal returned by the communication response device to determine whether the communication response device is within a preset near field communication range; the communication control module is used to start a near field communication function according to a near field communication verification result to realize data exchange between the communication initiating device and the communication response device;

[0047] A communication response device, comprising an ultrasonic receiving module and a second signal verification module, wherein the ultrasonic receiving module is used to receive the target ultrasonic signal; the second signal verification module is used to verify the target ultrasonic signal, generate an ultrasonic response signal according to the verification result, and send the ultrasonic response signal to the communication initiating device;

[0048] The server is used to process the service request generated by the communication initiating device and the communication responding device when performing data exchange.

[0049] The embodiments of the present specification also provide a storage medium, wherein the storage medium stores a computer program, and the computer program is suitable for being loaded by a processor and executing the steps of the above method.

[0050] An embodiment of the present specification also provides an electronic device, comprising: a processor and a memory; wherein the memory stores a computer program, and the computer program is suitable for being loaded by the processor and executing the steps of the above method.

[0051] The embodiments of the present specification also provide a computer program product, wherein the computer program product stores at least one instruction, and the at least one instruction is suitable for being loaded by a processor and executing the above method steps.

[0052] In the embodiment of the present specification, when the near field communication request operation of the communication initiating device is first detected, the communication initiating device sends a target ultrasonic signal to the communication response device. Then, the communication response device receives the target ultrasonic signal, verifies the target ultrasonic signal, and generates an ultrasonic response signal according to the verification result. Further, the communication initiating device receives the ultrasonic response signal, and uses the ultrasonic response signal to verify whether the communication response device is located in the preset near field communication range. If the verification is successful, the near field communication function of the communication initiating device is started to realize the data exchange between the communication initiating device and the communication response device. On the one hand, the interaction is carried out through the ultrasonic communication protocol to ensure that the data exchange occurs within the physical close range, thereby further ensuring the security of the NFC application; wherein, by analyzing the received ultrasonic response signal, it is possible to accurately determine whether the communication response device is within the preset near field communication range, which can effectively avoid the problem of long-distance devices erroneously triggering communication, ensure that the connection can only be established when the conditions are met, and enhance the user's interactive experience; on the other hand, the relative position between the two devices can be quickly and conveniently verified without the user having to perform complex operations or settings. Once the verification is successful, the NFC function can be automatically activated, which simplifies the data exchange process between devices and improves the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0053] Figure 1 A system architecture diagram for applying a near field communication verification method based on ultrasound in an embodiment of this specification;

[0054] Figure 2 A schematic diagram of a flow chart of a near field communication verification method based on ultrasonic waves provided in an embodiment of this specification;

[0055] Figure 3 A schematic diagram of a flow chart of another near field communication verification method based on ultrasonic waves provided in an embodiment of this specification;

[0056] Figure 4 A schematic diagram of a process for generating a target ultrasonic signal provided in an embodiment of this specification;

[0057] Figure 5 A flowchart of another ultrasonic-based near field communication verification method provided in an embodiment of this specification;

[0058] Figure 6A system architecture diagram of another ultrasonic-based near-field communication verification system provided in an embodiment of this specification;

[0059] Figure 7 A schematic diagram of the structure of a near field communication verification device based on ultrasound provided in an embodiment of this specification;

[0060] Figure 8 A schematic diagram of the structure of an electronic device provided in an embodiment of this specification. DETAILED DESCRIPTION

[0061] In order to make the purpose, technical solutions and advantages of this specification more clear, the technical solutions of this specification will be clearly and completely described below in combination with the specific embodiments of this specification and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of this specification, not all of them. Based on the embodiments in this specification, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this specification.

[0062] It should be understood that, although the terms first, second, etc. may be used to describe various information in one or more embodiments of the present application, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of one or more embodiments of the present application, the first may also be referred to as the second, and similarly, the second may also be referred to as the first. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".

[0063] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards in the relevant regions, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0064] Figure 1 A system architecture diagram is shown to which an ultrasonic-based near-field communication verification method in an embodiment of this specification can be applied.

[0065] like Figure 1As shown, the system architecture 100 may include a mobile terminal 101 with near field communication function, an NFC reading terminal 102 and a server 103 for processing payment, verification, data transmission and other services. Among them, both the mobile terminal 101 and the NFC reading terminal 102 may include a near field radio communication device, a built-in speaker and a built-in microphone. For example, the near field radio communication device may be an NFC chip, which is used to establish wireless communication between the mobile terminal 101 and the NFC reading terminal 102, the built-in speaker is used to send ultrasonic signals, and the built-in microphone is used to collect ultrasonic signals. It can be understood that the data processing operations involved in the interaction between the mobile terminal 101 and the NFC reading terminal 102 are completed by the server 103, that is, the mobile terminal 101 and the NFC reading terminal 102 can communicate with the server 103 through the network.

[0066] Exemplarily, when a user performs NFC interaction with an NFC reader terminal 102 through a mobile terminal 101, the built-in speaker of the mobile terminal 101 can send an ultrasonic signal to the NFC reader terminal 102. After the NFC reader terminal 102 monitors the ultrasonic signal, it can receive the signal through the built-in microphone and verify the signal. After the verification is completed, the NFC reader terminal 102 returns an ultrasonic response signal to the mobile terminal 101 through the built-in speaker. After the built-in microphone of the mobile terminal 101 receives the response signal, it verifies the response signal to determine whether the NFC reader terminal 102 is within the preset near-field communication range. After the verification is successful, the mobile terminal 101 starts the NFC module to exchange data with the NFC reader terminal 102. Finally, the mobile terminal 101 can provide visual feedback or auditory feedback to the user to confirm the security of the NFC interaction.

[0067] For example, after successful verification, the mobile terminal 101 can send a payment request containing payment information to the server 103, and the server 103 processes the payment request to complete the payment. The server 103 returns the payment result to the mobile terminal 101. If the payment is successful, the user can receive a notification of successful payment through the mobile terminal 101. At the same time, the server 103 will also send the payment result to the NFC reader terminal 102 to confirm that the payment is successful.

[0068] It should be noted that the embodiments of this specification do not limit the specific form of the mobile terminal 101, including but not limited to smart phones or smart watches. Correspondingly, the specific form of the NFC reader terminal 102 is also not limited. Optionally, it can be an electronic device with near-field communication function, such as a POS (Point of Sale, point of sale terminal), a smart payment terminal, a payment box, etc. Further, the way in which the mobile terminal 101 and the NFC reader terminal 102 communicate with the server 103 through the network is not limited, and can be determined according to the actual application scenario.

[0069] The embodiments of this specification establish a verification interaction by using ultrasonic signals between devices to ensure that transactions and data transmission are strictly performed in a near-field environment, thereby ensuring the security of NFC applications.

[0070] See also Figure 2 , which is a flowchart of a near field communication verification method based on ultrasonic waves for an embodiment of this specification. In the embodiment of this specification, the near field communication verification method based on ultrasonic waves is applied to a near field communication verification device based on ultrasonic waves or an electronic device equipped with a near field communication verification device based on ultrasonic waves. Figure 2 The process shown is described in detail, and the ultrasonic near field communication verification method can specifically include the following steps:

[0071] S202, when a near field communication request operation of a communication initiating device is detected, a target ultrasonic signal is sent to a communication responding device through the communication initiating device;

[0072] In one or more embodiments of this specification, the communication initiating device may be a mobile terminal that supports the NFC function and is carried by the user, such as a smart phone, or may be other devices that support the NFC function, and this specification does not specifically limit this. The near-field communication request operation of the communication initiating device may refer to the communication initiating device approaching the communication response device, or may refer to the communication response device approaching the communication initiating device. When a certain distance is reached, NFC interaction can be performed between the communication initiating device and the communication response device. Of course, the near-field communication request operation of the communication initiating device may also refer to the contact operation between the communication initiating device and the communication response device. The embodiments of this specification do not limit the specific form of the near-field communication request operation.

[0073] Exemplarily, when the communication initiating device is close to the communication responding device, the NFC chip of the communication initiating device will detect the presence of the communication responding device and initiate a near-field communication request, and then generate a target ultrasonic signal carrying a preset identification protocol according to the near-field communication request. Among them, the preset identification protocol refers to a set of rules and data formats pre-agreed between the communication initiating device and the communication responding device to ensure that both parties can correctly identify and parse the ultrasonic signals sent by the other party. For example, the preset identification protocol includes at least the initiating device identification, request sequence number, timestamp and check code, and may also include the request type, such as payment request, data transmission request, etc., and may also include encryption information, such as transmission key and encryption algorithm, etc. Correspondingly, the target ultrasonic signal generated by the communication initiating device may include the initiating device identification, request type, encryption information, etc. After receiving the target ultrasonic signal, the communication responding device will respond and establish a communication connection with the communication initiating device.

[0074] In addition, in one or more embodiments of the present specification, when a near-field communication request operation of a communication initiating device is detected, it is necessary to start the built-in speaker and built-in microphone of the communication initiating device and to start the built-in speaker and built-in microphone of the communication responding device so as to receive and send ultrasonic signals through the built-in speakers and built-in microphones of both devices.

[0075] By using built-in speakers and built-in microphones, two-way communication can be achieved between the communication initiator device and the communication responder device, allowing the device to respond flexibly in different scenarios and enhancing the adaptability of the near-field communication system. Most mobile terminals such as smartphones and NFC reading terminals are already equipped with high-quality speakers and microphones. Using these readily available hardware resources to achieve near-field communication can reduce costs without the need for additional dedicated hardware. In addition, ultrasonic signals can contain encryption information and verification data to ensure the security of the communication content. Through two-way communication, both devices can perform multiple verifications to further improve the security of communication. The short propagation distance of ultrasonic signals reduces the risk of signals being intercepted by third parties and enhances the privacy and security of near-field communication. Importantly, the transmission and reception of ultrasonic signals through built-in speakers and built-in microphones can achieve fast communication responses. In addition, the built-in speakers and built-in microphones are only activated when needed, rather than working continuously, which helps to reduce the power consumption of the device, and the relatively low transmission power consumption of ultrasonic signals, especially in short-distance communications, further reduces the overall power consumption.

[0076] It should also be noted that the frequency of the ultrasonic signal in the embodiments of this specification may be greater than or equal to 20kHz and less than or equal to 40kHz. For example, the frequency of the target ultrasonic signal sent by the communication initiating device and / or the ultrasonic response signal returned by the communication responding device is greater than or equal to 20kHz and less than or equal to 40kHz. By making full use of the high directivity of ultrasonic waves and their effective propagation characteristics in a specific environment, it is ensured that the ultrasonic signal can be received by the microphones of the communication initiating device and the communication responding device, thereby enhancing the security of NFC communication.

[0077] The use of ultrasound to achieve near-field communication can be applied to scenarios such as transaction payment, distance measurement and high-security data transmission, device pairing, and identity authentication, and the embodiments of this specification do not limit this.

[0078] S204, receiving the target ultrasonic signal through the communication response device, verifying the target ultrasonic signal, and generating an ultrasonic response signal according to the verification result;

[0079] In one or more embodiments of the present specification, the communication response device is a device that can receive and process ultrasonic signals, such as an NFC reader terminal. For example, the NFC reader terminal can be a payment device set up by a merchant in an offline payment scenario.

[0080] The communication response device receives the target ultrasonic signal sent by the communication initiator through the built-in microphone. Then, the information in the target ultrasonic signal is verified to ensure the legitimacy and integrity of the signal.

[0081] Optionally, the device identification, operation type, encryption information, verification information, timestamp, etc. in the target ultrasonic signal are verified. Among them, verifying the device identification refers to verifying whether the device identification in the target ultrasonic signal matches the known communication initiating device identification. If it does not match, the communication request is rejected. Verifying the operation type refers to verifying whether the operation type in the target ultrasonic signal conforms to the current business type, such as payment request, data transmission request, etc. If it does not match, the communication request is rejected. Verify the encryption information in the target ultrasonic signal to ensure that the data has not been tampered with. For example, the communication response device uses a preset encryption algorithm and key to decrypt the encrypted information in the target ultrasonic signal. If the decryption fails, the communication request is rejected. Verify the verification information in the target ultrasonic signal to detect data transmission errors and ensure data integrity. For example, the communication response device calculates the CRC (Cyclic Redundancy Check, cyclic redundancy check), MD5 (Message-Digest Algorithm 5, message digest algorithm 5) hash value and other verification codes in the target ultrasonic signal, and compares them with the received verification code. If the verification fails, the communication request is rejected. Verify the timestamp in the target ultrasonic signal to ensure the order of the data. If the timestamp is expired or does not conform to the order, the communication request is rejected.

[0082] Furthermore, the communication response device determines whether to generate an ultrasonic response signal based on the verification result. For example, if the verification is successful, an ultrasonic response signal containing the verification result is generated. Conversely, if any verification step fails, an error response signal is generated to indicate the reason for the verification failure. Finally, the communication response device sends the generated ultrasonic response signal to the communication initiating device through a built-in speaker.

[0083] The communication response device can effectively receive, verify and respond to the target ultrasonic signal sent by the communication initiator device, ensuring the reliability and security of near-field communication and preventing illegal access and data tampering.

[0084] S206, receiving the ultrasonic response signal through the communication initiating device, and using the ultrasonic response signal to verify whether the communication responding device is located within a preset near field communication range;

[0085] In one or more embodiments of the present specification, the communication initiating device receives the ultrasonic response signal sent by the communication responding device through the built-in microphone. The preset near field communication range refers to the effective communication distance between the communication initiating device and the communication responding device, such as between a few centimeters and a few meters.

[0086] The communication initiating device determines whether the communication response device is within the preset near-field communication range by analyzing the characteristics of the received ultrasonic response signal. For example, the strength of the ultrasonic response signal is measured, and the received signal strength is compared with the preset strength threshold. If the signal strength is higher than the strength threshold, it is determined that the communication response device is within the near-field communication range, otherwise the communication is terminated. For another example, the time delay from the communication initiating device sending the target ultrasonic signal to receiving the ultrasonic response signal is measured, and the measured delay time is compared with the preset maximum delay time. If the delay time is within the preset time range, the communication response device is considered to be within the near-field communication range. For another example, the quality of the received ultrasonic response signal is evaluated, including signal quality indicators such as signal-to-noise ratio and bit error rate. If the signal quality meets the requirements, the communication response device is considered to be within the near-field communication range. If the signal quality does not meet the requirements, it is considered that the communication response device is not within the near-field communication range and the communication is terminated.

[0087] The communication initiator device can effectively receive the ultrasonic response signal and verify whether the communication responder device is within the preset near-field communication range by using characteristics such as signal strength, signal delay and signal quality. This process ensures the reliability and security of communication and prevents illegal access by remote devices.

[0088] S208: If the verification is successful, the near field communication function of the communication initiating device is started to realize data exchange between the communication initiating device and the communication responding device.

[0089] The communication initiator verifies the received ultrasonic response signal to confirm that the communication response device is within the preset near field communication range and that the integrity and legitimacy of the signal meet the requirements. After successful verification, the communication initiator activates the NFC function and prepares to exchange data with the communication response device.

[0090] Optionally, the operating system of the communication initiating device activates the built-in NFC module and establishes a communication connection with the communication responding device through the NFC module. After the communication connection is established, the two devices can start to exchange data. Among them, data exchange refers to the communication initiating device and the communication responding device performing operations such as payment and data transmission through the established NFC connection.

[0091] Exemplarily, the communication initiating device sends a data request, such as a payment request, to the communication responding device via an NFC connection. The communication responding device receives the data request and performs corresponding processing, such as verifying payment information. The communication responding device sends response data, such as payment confirmation information, to the communication initiating device via an NFC connection. The communication initiating device receives the response data and performs corresponding processing, such as displaying payment success or failure information.

[0092] After successful verification, the communication initiating device starts the NFC function, establishes a communication connection with the communication responding device, and exchanges data, ensuring the reliability and security of communication and realizing operations such as payment and data transmission.

[0093] In the embodiments of this specification, through the ultrasonic frequency interaction mechanism, NFC devices can safely exchange data on the basis of ensuring the physical near field existence of both communicating parties, thereby improving the security of the transaction and data transmission process, while being compatible with the microphone receiving capabilities of existing mobile terminals, and can achieve the reception and processing of ultrasonic signals without additional hardware support. In addition, the application scope and flexibility of NFC technology are enhanced, especially in scenarios with high security requirements, such as NFC communication security in payment, data transmission, security authentication and other scenarios, which has great practical application value.

[0094] See also Figure 3 , provides a flow chart of another near field communication verification method based on ultrasonic waves for the embodiment of this specification, and the method may specifically include the following steps:

[0095] S302, when a near field communication request operation of a communication initiating device is detected, a corresponding near field communication request is generated;

[0096] Optionally, when a near field communication request operation of a communication initiating device is detected, a target application in the communication initiating device is started, and a near field communication request is generated based on a service type of the target application, wherein the near field communication request includes at least an initiating device identifier and a request type.

[0097] Among them, the near-field communication request operation of the communication initiating device can be physical contact, user interface operation or automatic system detection. Physical detection includes the user bringing the communication initiating device close to or touching the communication response device. User interface operations include clicking the NFC function button on the screen of the communication initiating device, opening an application or selecting a function, etc. When the system of the communication initiating device automatically detects that there is an NFC-enabled device nearby, it prompts the user whether to perform near-field communication. When the near-field communication request operation of the communication initiating device is detected, the communication initiating device automatically starts the target application, such as a payment application, so that the user can perform subsequent operations.

[0098] The target application's business types include payment, data transmission, identity authentication, etc. The target application determines the specific business type based on the user's operation or the current context. For example, when the user brings the communication initiation device close to or touches the NFC reader terminal used for payment, the payment application in the communication initiation device is started, and the corresponding business type is payment.

[0099] The near-field communication request generated based on the service type includes at least an initiating device identifier and a request type, wherein the initiating device identifier is used to uniquely identify the communication initiating device, which may be a device serial number, a MAC (Media Access Control Address) address, etc. The request type indicates the specific operation of this near-field communication, such as a payment request, a data transmission request, etc. Of course, other necessary information related to the service type may also be included, which is not limited in the embodiments of this specification.

[0100] S304, generating a target ultrasonic signal carrying a preset identification protocol according to the near field communication request;

[0101] See also Figure 4 , step S304 may further include the following steps:

[0102] S402, generating a data packet corresponding to the near field communication request according to the preset identification protocol;

[0103] The preset identification protocol refers to a set of rules and data formats agreed upon in advance between the communication initiator and the communication responder to ensure that both parties can correctly identify and parse the signals sent by the other party. The data packet refers to a data structure generated according to the preset identification protocol, which contains the necessary information fields.

[0104] First, the necessary information in the near field communication request can be extracted, including but not limited to the initiating device identification, request sequence number, timestamp, request type, etc. Then, according to the preset identification protocol, the extracted necessary information is organized into a data packet, and the structure of the data packet is usually a fixed format, including the position and length of each field, which is not limited in the embodiments of this specification.

[0105] S404, encoding the data packet to obtain the target ultrasonic signal, wherein the preset identification protocol at least includes an initiating device identifier, a request sequence number, a timestamp, and a check code.

[0106] Furthermore, the data packet may be converted into a signal format suitable for ultrasonic transmission, such as encoding the data packet into an ultrasonic signal, and the encoding methods include ASK (Amplitude Shift Keying), FSK (Frequency Shift Keying), PSK (Phase Shift Keying), etc. The target ultrasonic signal refers to the encoded signal, which can be sent through the built-in speaker of the communication initiator device.

[0107] Optionally, the data packet is converted into a byte string, and the byte string is encrypted to obtain encrypted data. The encryption algorithm can be symmetric encryption or asymmetric encryption, which is not limited in the embodiments of this specification. Then, the encrypted data is encoded into a target ultrasonic signal according to the preset ultrasonic parameters. Among them, the preset ultrasonic parameters include frequency range and modulation mode, such as the frequency range is between 20kHz and 40kHz, and the modulation mode includes ASK, FSK, PSK and other modulation technologies. Finally, according to the selected modulation mode and frequency range, the encrypted data is converted into a corresponding target ultrasonic signal.

[0108] It should be noted that a check code for a data packet may also be generated according to a preset identification protocol, and the generated check code may be added to the data packet for encoding to ensure the integrity of the data.

[0109] The communication initiating device can generate a data packet corresponding to the near-field communication request according to the preset identification protocol, and encode the data packet to obtain the target ultrasonic signal, thereby ensuring the accuracy and reliability of near-field communication and preventing errors and tampering during data transmission.

[0110] S306, sending the target ultrasonic signal to the communication response device through the built-in speaker of the communication initiating device;

[0111] S308, receiving the target ultrasonic signal through the built-in microphone of the communication response device;

[0112] S310, decoding and decrypting the target ultrasonic signal to obtain first decoded data;

[0113] The decoding process refers to converting the received target ultrasonic signal back to the original encrypted data. For example, according to the modulation mode (such as FSK, ASK, PSK) used by the communication initiator, a corresponding demodulation mode is selected, and an ultrasonic frequency range consistent with the communication initiator is set, and the received target ultrasonic signal is converted back to a binary string according to the selected demodulation mode and frequency range.

[0114] Decryption processing refers to using the same encryption algorithm and key as the communication initiating device to restore the decoded binary string to the original byte string, that is, to obtain the first decoded data.

[0115] The communication response device can decode and decrypt the received target ultrasonic signal to obtain first decoded data, thereby ensuring the security and integrity of the data during transmission.

[0116] S312, performing at least device identification verification, request sequence number verification, timestamp verification, and check code verification on the first decoded data;

[0117] The device identification is verified to ensure that the received data comes from a legitimate communication initiating device. For example, the device identification field is extracted from the first decoded data, and the extracted device identification is compared with a known legitimate device identification list. If they match, the verification is successful, otherwise the verification fails.

[0118] Verify the request sequence number to ensure that the received data is a legitimate request sequence and prevent replay attacks. For example, extract the request sequence number field from the first decoded data, compare the extracted request sequence number with the latest known request sequence number, and if the request sequence number is greater than or equal to the latest request sequence number, the verification is successful, otherwise the verification fails.

[0119] Verify the timestamp to ensure that the received data is recently generated to prevent attacks using old data. For example, extract the timestamp field from the first decoded data and compare the extracted timestamp with the current time. If the timestamp is within a reasonable time range (such as within the past few minutes), the verification passes, otherwise the verification fails.

[0120] Verify the check code to ensure the integrity of the data and prevent the data from being tampered with during transmission. For example, extract the check code field from the first decoded data, use the same check code generation method as the communication initiating device to regenerate the check code, and compare the extracted check code with the regenerated check code. If the two are consistent, the verification is successful, otherwise, the verification fails.

[0121] Of course, the verification method for the first decoded data can also be set according to actual application requirements, and the verification method is not limited in the embodiments of this specification. The communication response device can ensure the legitimacy and integrity of the data by verifying the first decoded data.

[0122] S314, if all are verified, encrypting and encoding the verification results to obtain the ultrasonic response signal;

[0123] The specific implementation of encrypting and encoding the verification result in step S314 is similar to the specific implementation of encrypting and encoding the data packet in step S404, and will not be repeated here.

[0124] S316, sending the ultrasonic response signal to the communication initiating device through the built-in speaker of the communication responding device;

[0125] S318, receiving the ultrasonic response signal through the built-in microphone of the communication initiating device;

[0126] S320, decoding and decrypting the ultrasonic response signal to obtain second decoded data;

[0127] The specific implementation of decoding and decrypting the ultrasonic response signal in step S320 is similar to the specific implementation of decoding and decrypting the target ultrasonic signal in step S310. The decoding method and decryption algorithm can correspond to the encoding method and encryption algorithm in step S314, and will not be repeated here.

[0128] S322, performing at least device identification verification, request sequence number verification, timestamp verification, check code verification and status verification on the second decoded data;

[0129] The specific implementation of verifying the second decoded data in step S322 is similar to the specific implementation of verifying the first decoded data in step S312. The difference is that the second decoded data also needs to be verified in terms of status, which refers to the response status of the communication response device to the target ultrasonic signal, such as successful response and error response.

[0130] Of course, in addition to this, characteristics such as signal strength, signal delay, and signal quality may also be used to verify whether the communication response device is within a preset near field communication range.

[0131] S324, if all pass the verification, determining that the communication response device is located within a preset near field communication range;

[0132] S326, starting the near field communication function of the communication initiating device to implement data exchange between the communication initiating device and the communication responding device.

[0133] For step S326, please refer to the detailed description of step S208 in another embodiment of this specification, which will not be repeated here.

[0134] In this embodiment, the interaction is carried out through the ultrasonic communication protocol to ensure that the data exchange occurs within the physical close range, thereby further ensuring the security of the NFC application; wherein by analyzing the received ultrasonic response signal, it is possible to accurately determine whether the communication response device is within the preset near-field communication range, which can effectively avoid the problem of long-distance devices erroneously triggering communication, ensuring that the connection can only be established when the conditions are met, and enhancing the user's interactive experience. Moreover, the relative position between the two devices can be verified quickly and conveniently without the user having to perform complex operations or settings. Once the verification is successful, the NFC function can be automatically activated, simplifying the data exchange process between devices and improving the user experience.

[0135] This article takes the mobile terminal and NFC reader in the payment scenario as an example. Figure 5 , provides a flowchart of another near field communication verification method based on ultrasound for the embodiment of this specification, and the method may specifically include the following steps:

[0136] S501, NFC attempts communication, such as the mobile terminal approaches the NFC reading terminal and attempts to establish a connection with the NFC reading terminal, wherein the NFC reading terminal has an NFC tag for triggering a payment process;

[0137] S502, waking up the payment application: the mobile terminal automatically starts the payment application. If the payment application is automatically waking up, step S503 is executed; if the payment application is not waking up, the verification process is restarted, such as first unlocking the mobile terminal or installing the payment application, and then executing step S501 again;

[0138] S503, determine the NFC tag: when the NFC chip in the mobile terminal detects a nearby NFC tag, read the information in the NFC tag, such as the tag ID, service URL, etc. If the information in the NFC tag is read, execute step S504, and further determine whether the NFC tag is valid through steps S504 to S508. If the information in the NFC tag is not read, execute step S507;

[0139] S504, calling the built-in speaker to emit a target ultrasonic signal, so that the NFC reading terminal responds to the target ultrasonic signal, and the NFC reading terminal synchronously executes step S509 and step S510;

[0140] S505, calling the built-in microphone to monitor and receive the ultrasonic response signal;

[0141] S506, verifying whether the ultrasonic response signal is valid. If not, executing step S507; otherwise, it can be determined that the NFC tag is valid, that is, executing step S508 to start the NFC module and start data exchange with the NFC reading terminal;

[0142] S507, executing a non-NFC payment process;

[0143] S508, determining that the NFC tag is valid;

[0144] S509, determining whether the built-in microphone receives the target ultrasonic signal. If the target ultrasonic signal is received, executing step S510. If the target ultrasonic signal is not received, reusing the built-in microphone to continue monitoring the ultrasonic signal.

[0145] S510, verify the target ultrasonic signal content, and return a response signal in ultrasonic form through the built-in speaker.

[0146] After the mobile terminal and the NFC reader complete the data exchange, a prompt message indicating that the payment is completed may be displayed. The prompt message may include a vibration, sound, or text, image, etc., which is not limited in the embodiments of this specification.

[0147] In this embodiment, the mobile terminal and the NFC reader terminal realize near field communication based on ultrasonic frequency. The user does not need to find the payment application and then perform the corresponding payment operation in the payment application. Instead, the payment page can be directly displayed. No unnecessary pages in the NFC payment process such as the application homepage, transfer page, and scan intermediate page are loaded. No other processes other than the main process are loaded. Instead, the main process directly loads and displays the payment page, thereby avoiding the time-consuming loading of unnecessary processes and the time-consuming loading of some unnecessary pages before loading the payment page. It effectively reduces the time-consuming opening of the payment page during the NFC payment process, improves the call efficiency, simplifies user operations, improves user experience, and improves the security of payment. Among them, the NFC reader terminal acts as a lightweight reading tool, rather than a payment information generation and transmission center.

[0148] See also Figure 6 , is a system architecture diagram of another ultrasonic near field communication verification system provided in an embodiment of this specification, and the ultrasonic near field communication verification system 600 includes:

[0149] The communication initiating device 610 includes an ultrasonic transmitting module 611, a first signal verification module 612 and a communication control module 613. The ultrasonic transmitting module 611 is used to generate a target ultrasonic signal when performing a near field communication request operation, and send the target ultrasonic signal to the communication response device 620. The first signal verification module 612 includes a first signal receiving unit and a first signal verification unit. The first signal receiving unit is used to receive the ultrasonic response signal returned by the communication response device 620, and the first signal verification unit is used to verify the ultrasonic response signal returned by the communication response device 620 to determine whether the communication response device 620 is located within a preset near field communication range. The communication control module 613 is used to start the near field communication function according to the near field communication verification result to realize data exchange between the communication initiating device 610 and the communication response device 620.

[0150] Optionally, the ultrasonic transmitting module 611 further includes an encryption unit and a coding unit, the encryption unit is used to encrypt the transmitted data, the coding unit is used to modulate the encrypted data into an ultrasonic signal in a predetermined manner, and transmit the ultrasonic signal through the speaker.

[0151] The communication response device 620 includes an ultrasonic receiving module 621 and a second signal verification module 622. The ultrasonic receiving module 621 is used to receive a target ultrasonic signal. The second signal verification module 622 includes a second signal receiving unit and a second signal verification unit. The second signal receiving unit is used to receive a target ultrasonic signal sent by the communication initiating device 610. The second signal verification unit is used to verify the target ultrasonic signal, generate an ultrasonic response signal according to the verification result, and send the ultrasonic response signal to the communication initiating device 610.

[0152] The server 630 is used to process the service requests generated by the communication initiating device 610 and the communication responding device 620 when exchanging data.

[0153] The ultrasonic near-field communication verification system in the embodiments of this specification can improve the security of the transaction and data transmission process, ensure physical close-range interaction, and be compatible with the microphone receiving capabilities of existing mobile terminals, so that ultrasonic waves can be received and processed without additional hardware support. In addition, the application scope and flexibility of NFC technology can be enhanced, especially in scenarios with high security requirements.

[0154] See also Figure 7 , is a schematic diagram of a near field communication verification device based on ultrasonic waves provided in an embodiment of this specification. Figure 7 As shown, the ultrasonic near field communication verification device 1 can be implemented as all or part of an electronic device through software, hardware or a combination of both. According to some embodiments, the ultrasonic near field communication verification device 1 includes an ultrasonic transmitting module 11, an ultrasonic response module 12, a near field communication verification module 13 and a near field communication implementation module 14, specifically including:

[0155] The ultrasonic transmitting module 11 is used to transmit a target ultrasonic signal to the communication responding device through the communication initiating device when a near field communication request operation of the communication initiating device is detected;

[0156] The ultrasonic response module 12 is used to receive the target ultrasonic signal through the communication response device, verify the target ultrasonic signal, and generate an ultrasonic response signal according to the verification result;

[0157] A near field communication verification module 13 is used to receive the ultrasonic response signal through the communication initiating device, and use the ultrasonic response signal to verify whether the communication response device is located within a preset near field communication range;

[0158] The near field communication implementation module 14 is used to start the near field communication function of the communication initiating device if the verification is successful, so as to realize data exchange between the communication initiating device and the communication responding device.

[0159] Optionally, when the ultrasonic transmitting module 11 detects the near field communication request operation of the communication initiating device, when sending the target ultrasonic signal to the communication responding device through the communication initiating device, it is specifically used to:

[0160] When a near field communication request operation of a communication initiating device is detected, a corresponding near field communication request is generated;

[0161] Generate a target ultrasonic signal carrying a preset identification protocol according to the near field communication request;

[0162] The target ultrasonic wave signal is transmitted to the communication response device through the built-in speaker of the communication initiating device.

[0163] Optionally, when the ultrasonic transmitting module 11 generates a target ultrasonic signal carrying a preset identification protocol according to the near field communication request, it is specifically used to:

[0164] generating a data packet corresponding to the near field communication request according to the preset identification protocol;

[0165] Encoding the data packet to obtain the target ultrasonic signal;

[0166] The preset identification protocol at least includes an initiating device identifier, a request sequence number, a timestamp and a check code.

[0167] Optionally, when the ultrasonic transmitting module 11 encodes the data packet to obtain the target ultrasonic signal, it is specifically used to:

[0168] Converting the data packet into a byte string, and encrypting the byte string to obtain encrypted data;

[0169] The encrypted data is encoded into the target ultrasonic signal according to preset ultrasonic parameters.

[0170] Optionally, when the ultrasonic transmitting module 11 detects the near field communication request operation of the communication initiating device and generates a corresponding near field communication request, it is specifically used to:

[0171] When a near field communication request operation of a communication initiating device is detected, starting a target application in the communication initiating device;

[0172] generating the near field communication request based on the business type of the target application;

[0173] The near field communication request at least includes an initiating device identifier and a request type.

[0174] Optionally, when the ultrasonic response module 12 receives the target ultrasonic signal through the communication response device, verifies the target ultrasonic signal, and generates an ultrasonic response signal according to the verification result, it is specifically used to:

[0175] receiving the target ultrasonic signal through a built-in microphone of the communication response device;

[0176] Decoding and decrypting the target ultrasonic signal to obtain first decoded data;

[0177] Performing at least device identification verification, request sequence number verification, timestamp verification, and check code verification on the first decoded data;

[0178] If all are verified, the verification results are encrypted and encoded to obtain the ultrasonic response signal;

[0179] The ultrasonic response signal at least includes an initiating device identification, a request sequence number, a timestamp, a check code and a near field communication request status.

[0180] Optionally, the ultrasonic response module 12 is further configured to send the ultrasonic response signal to the communication initiating device through a built-in speaker of the communication responding device.

[0181] Optionally, when the near field communication verification module 13 receives the ultrasonic response signal through the communication initiating device and uses the ultrasonic response signal to verify whether the communication response device is located within a preset near field communication range, it is specifically used to:

[0182] Receiving the ultrasonic response signal through the built-in microphone of the communication initiating device;

[0183] Decoding and decrypting the ultrasonic response signal to obtain second decoded data;

[0184] Performing at least device identification verification, request sequence number verification, timestamp verification, check code verification and status verification on the second decoded data;

[0185] If both pass the verification, it is determined that the communication response device is located within the preset near field communication range.

[0186] Optionally, the ultrasonic near field communication verification device 1 further includes a device startup module, which is specifically used to:

[0187] When a near field communication request operation of a communication initiating device is detected, a built-in speaker and a built-in microphone of the communication initiating device are activated, and a built-in speaker and a built-in microphone of the communication responding device are activated.

[0188] Optionally, the frequency of the target ultrasonic signal and / or the ultrasonic response signal in the ultrasonic-based near-field communication verification device 1 is greater than or equal to 20 kHz and less than or equal to 40 kHz.

[0189] The above device embodiments correspond to the method embodiments. For specific descriptions, please refer to the description of the method embodiments, which will not be repeated here. The device embodiments are obtained based on the corresponding method embodiments and have the same technical effects as the corresponding method embodiments. For specific descriptions, please refer to the corresponding method embodiments.

[0190] The present specification also provides a computer storage medium, which can store multiple instructions, and the instructions are suitable for being loaded and executed by a processor as described above. Figures 2 to 5 The method of the embodiment shown in the figure can be specifically executed by referring to Figures 2 to 5 The specific description of the illustrated embodiment will not be repeated here.

[0191] The present specification also provides a computer program product, which stores at least one instruction, and the at least one instruction is loaded and executed by the processor as described above. Figures 2 to 5 The method of the embodiment shown in the figure can be specifically executed by referring to Figures 2 to 5 The specific description of the illustrated embodiment will not be repeated here.

[0192] The embodiments of this specification also provide Figure 8 The structural diagram of the electronic device shown in FIG. Figure 8 At the hardware level, the electronic device includes a processor, an internal bus, a network interface, a memory, and a non-volatile memory, and may also include hardware required for other services. The processor reads the corresponding computer program from the non-volatile memory into the memory and then runs it to implement the above-mentioned voice activity detection method.

[0193] Of course, in addition to software implementation, this specification does not exclude other implementation methods, such as logic devices or a combination of software and hardware, etc., that is to say, the executor of the following processing flow is not limited to each logic unit, but can also be hardware or logic devices.

[0194] In the 1990s, improvements to a technology could be clearly distinguished as hardware improvements (for example, improvements to the circuit structure of diodes, transistors, switches, etc.) or software improvements (improvements to the method flow). However, with the development of technology, many improvements to the method flow today can be regarded as direct improvements to the hardware circuit structure. Designers almost always obtain the corresponding hardware circuit structure by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that an improvement in a method flow cannot be implemented using a hardware entity module. For example, a programmable logic device (PLD) (such as a field programmable gate array (FPGA)) is such an integrated circuit whose logical function is determined by the user's programming of the device. Designers can "integrate" a digital system on a PLD by programming it themselves, without having to ask a chip manufacturer to design and produce a dedicated integrated circuit chip. Moreover, nowadays, instead of manually making integrated circuit chips, this kind of programming is mostly implemented by "logic compiler" software, which is similar to the software compiler used when developing and writing programs, and the original code before compilation must also be written in a specific programming language, which is called hardware description language (HDL). There is not only one HDL, but many kinds, 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, RHDL (Ruby Hardware Description Language), etc. The most commonly used ones are VHDL (Very-High-Speed ​​Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art should also know that it is only necessary to program the method flow slightly in the above-mentioned hardware description languages ​​and program it into the integrated circuit, and then it is easy to obtain the hardware circuit that implements the logic method flow.

[0195] The controller can be implemented in any appropriate manner, for example, the controller can take the form of a microprocessor or processor and a computer-readable medium storing a computer-readable program code (such as software or firmware) that can be executed by the (micro)processor, a logic gate, a switch, an application-specific integrated circuit (ASIC), a programmable logic controller, and an embedded microcontroller. Examples of controllers include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320. The memory controller can also be implemented as part of the control logic of the memory. Those skilled in the art also know that in addition to implementing the controller in a purely computer-readable program code manner, the controller can be implemented in the form of a logic gate, a switch, an application-specific integrated circuit, a programmable logic controller, and an embedded microcontroller by logically programming the method steps. Therefore, this controller can be considered as a hardware component, and the devices included therein for implementing various functions can also be regarded as structures within the hardware component. Or even, the devices for implementing various functions can be regarded as both software modules for implementing the method and structures within the hardware component.

[0196] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.

[0197] For the convenience of description, the above device is described in various units according to their functions. Of course, when implementing this specification, the functions of each unit can be implemented in the same or multiple software and / or hardware.

[0198] Those skilled in the art will appreciate that the embodiments of this specification may be provided as methods, systems, or computer program products. Therefore, this specification may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, this specification may 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.) that contain computer-usable program code.

[0199] This specification is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of this specification. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0200] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0201] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0202] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0203] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0204] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules 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 technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0205] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0206] Those skilled in the art will appreciate that the embodiments of this specification may be provided as methods, systems or computer program products. Therefore, this specification may take the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. Moreover, this specification may 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.

[0207] This specification may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. This specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.

[0208] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0209] The above description is only an embodiment of the present specification and is not intended to limit the present specification. For those skilled in the art, the present specification may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present specification shall be included in the scope of the claims of the present specification.

Claims

1. A near field communication verification method based on ultrasonic wave, the method comprising: When a near field communication request operation of a communication initiating device is detected, a target ultrasonic signal is sent to a communication responding device through the communication initiating device; receiving the target ultrasonic signal through the communication response device, verifying the target ultrasonic signal, and generating an ultrasonic response signal according to the verification result; Receiving the ultrasonic response signal through the communication initiating device, and using the ultrasonic response signal to verify whether the communication responding device is within a preset near field communication range; If the verification is successful, the near field communication function of the communication initiating device is started to realize data exchange between the communication initiating device and the communication responding device.

2. According to the ultrasonic near field communication verification method of claim 1, when the near field communication request operation of the communication initiating device is detected, the target ultrasonic signal is sent to the communication responding device by the communication initiating device, comprising: When a near field communication request operation of a communication initiating device is detected, a corresponding near field communication request is generated; Generate a target ultrasonic signal carrying a preset identification protocol according to the near field communication request; The target ultrasonic wave signal is transmitted to the communication response device through the built-in speaker of the communication initiating device.

3. The ultrasonic-based near field communication verification method according to claim 2, wherein generating a target ultrasonic signal carrying a preset identification protocol according to the near field communication request comprises: generating a data packet corresponding to the near field communication request according to the preset identification protocol; Encoding the data packet to obtain the target ultrasonic signal; The preset identification protocol at least includes an initiating device identifier, a request sequence number, a timestamp and a check code.

4. According to the ultrasonic near field communication verification method of claim 3, encoding the data packet to obtain the target ultrasonic signal comprises: Converting the data packet into a byte string, and encrypting the byte string to obtain encrypted data; The encrypted data is encoded into the target ultrasonic signal according to preset ultrasonic parameters.

5. According to the ultrasonic-based near-field communication verification method of claim 2, when the near-field communication request operation of the communication initiating device is detected, a corresponding near-field communication request is generated, comprising: When a near field communication request operation of a communication initiating device is detected, starting a target application in the communication initiating device; generating the near field communication request based on the business type of the target application; The near field communication request at least includes an initiating device identifier and a request type.

6. The ultrasonic-based near-field communication verification method according to claim 1, wherein the communication response device receives the target ultrasonic signal, verifies the target ultrasonic signal, and generates an ultrasonic response signal according to the verification result, comprising: receiving the target ultrasonic signal through a built-in microphone of the communication response device; Decoding and decrypting the target ultrasonic signal to obtain first decoded data; Performing at least device identification verification, request sequence number verification, timestamp verification, and check code verification on the first decoded data; If all are verified, the verification results are encrypted and encoded to obtain the ultrasonic response signal; The ultrasonic response signal at least includes an initiating device identification, a request sequence number, a timestamp, a check code and a near field communication request status.

7. The ultrasonic near field communication verification method according to claim 6, further comprising: The ultrasonic response signal is sent to the communication initiating device through the built-in speaker of the communication responding device.

8. According to the ultrasonic near field communication verification method of claim 1, the receiving of the ultrasonic response signal by the communication initiating device and the use of the ultrasonic response signal to verify whether the communication responding device is located within a preset near field communication range include: Receiving the ultrasonic response signal through the built-in microphone of the communication initiating device; Decoding and decrypting the ultrasonic response signal to obtain second decoded data; Performing at least device identification verification, request sequence number verification, timestamp verification, check code verification and status verification on the second decoded data; If both pass the verification, it is determined that the communication response device is located within the preset near field communication range.

9. The ultrasonic near field communication verification method according to any one of claims 1 to 8, further comprising: When a near field communication request operation of a communication initiating device is detected, a built-in speaker and a built-in microphone of the communication initiating device are activated, and a built-in speaker and a built-in microphone of the communication responding device are activated.

10. According to any one of claims 1 to 8, the ultrasonic-based near-field communication verification method, wherein the frequency of the target ultrasonic signal and / or the ultrasonic response signal is greater than or equal to 20 kHz and less than or equal to 40 kHz.

11. A near field communication verification device based on ultrasonic wave, the device comprising: An ultrasonic transmitting module, configured to transmit a target ultrasonic signal to a communication responding device through the communication initiating device when a near field communication request operation of the communication initiating device is detected; An ultrasonic response module, used to receive the target ultrasonic signal through the communication response device, verify the target ultrasonic signal, and generate an ultrasonic response signal according to the verification result; A near field communication verification module, used to receive the ultrasonic response signal through the communication initiating device, and use the ultrasonic response signal to verify whether the communication response device is located within a preset near field communication range; The near field communication implementation module is used to start the near field communication function of the communication initiating device if the verification is successful, so as to realize data exchange between the communication initiating device and the communication responding device.

12. A near field communication verification system based on ultrasonic wave, the system comprising: A communication initiating device, comprising an ultrasonic transmitting module, a first signal verification module and a communication control module, wherein the ultrasonic transmitting module is used to generate a target ultrasonic signal when performing a near field communication request operation, and send the target ultrasonic signal to a communication response device; the first signal verification module is used to verify the ultrasonic response signal returned by the communication response device to determine whether the communication response device is within a preset near field communication range; The communication control module is used to start the near field communication function according to the near field communication verification result, so as to realize the data exchange between the communication initiating device and the communication responding device; A communication response device, comprising an ultrasonic receiving module and a second signal verification module, wherein the ultrasonic receiving module is used to receive the target ultrasonic signal; the second signal verification module is used to verify the target ultrasonic signal, generate an ultrasonic response signal according to the verification result, and send the ultrasonic response signal to the communication initiating device; The server is used to process the service request generated by the communication initiating device and the communication responding device when performing data exchange.

13. A storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of the method according to any one of claims 1 to 10.

14. An electronic device comprising: A processor and a memory; wherein the memory stores a computer program, and the computer program is suitable for being loaded by the processor and executing the steps of the method according to any one of claims 1 to 10.

15. A computer program product having at least one instruction stored thereon, wherein when the at least one instruction is executed by a processor, the steps of the method according to any one of claims 1 to 10 are implemented.

Citation Information

Cited By

  • Short-distance interaction service processing method, device and equipment

    CN120614585A