Data transmission method, electronic device, and computer-readable storage medium

By setting distance sensors and motion sensors on electronic devices, data transmission between devices is achieved without the need for NFC chips, solving the hardware limitations of existing technologies, simplifying the operating process and improving user experience.

CN114915910BActive Publication Date: 2025-10-03HUAWEI TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202110184896.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-02-10
Publication Date
2025-10-03
Estimated Expiration
2041-02-10

AI Technical Summary

Technical Problem

The existing "touch and transfer" solution requires that both the electronic device transmitting data and the electronic device receiving data are equipped with NFC chips, otherwise it cannot be used, which limits the hardware requirements and application scenarios of data transmission.

Method used

By setting up distance sensors and motion sensors on electronic devices, using the distance sensors to detect the actual distance of the object to be identified, and sending requests through wireless connections, combined with the motion data of the motion sensors to determine whether to perform the target trigger operation, data transmission between devices is achieved.

Benefits of technology

There is no need to set up an NFC chip on the device, which reduces hardware requirements, simplifies the data transmission process, and improves the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114915910B_ABST
    Figure CN114915910B_ABST
Patent Text Reader

Abstract

The present application is applicable to the terminal field and provides a data transmission method, an electronic device and a computer-readable storage medium. In the data transmission method of the present application, the first device detects the measured distance of the surrounding objects to be identified through a distance sensor. When the first device detects that the measured distance is a first distance, the first device can send a first request to the second device. When the second device performs a target trigger operation, the first device can receive a first response message returned by the second device. At this time, the first device and the second device can transmit data in response to the first response message. Through the above method, the first device and the second device can quickly trigger the data transmission function without setting an NFC chip, which has strong ease of use and practicality.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of terminals, and in particular to a data transmission method, an electronic device, and a computer-readable storage medium. Background Art

[0002] With the development of science and technology, a wide variety of electronic products have entered thousands of households. In some scenarios, users may have multiple electronic devices and need to transmit data between them.

[0003] Currently, relatively mature data transmission technologies have emerged. However, when users start the data transmission function between electronic devices, they often need to perform many steps on the electronic devices, which makes the operation cumbersome and the user experience poor.

[0004] To this end, some manufacturers have proposed installing Near Field Communication (NFC) chips on electronic devices to implement the "touch and transfer" function through NFC, thereby simplifying the steps of data transmission.

[0005] However, the current "one-touch-to-transfer" solution requires that both the electronic device transmitting data and the electronic device receiving data are equipped with NFC chips, otherwise the "one-touch-to-transfer" function cannot be applied and data transmission cannot be conveniently performed. Summary of the Invention

[0006] The present application provides a data transmission method, an electronic device, and a computer-readable storage medium, which solve the problem of limited application scenarios of existing "one-touch transfer" solutions and can facilitate data transmission.

[0007] To achieve the above objectives, this application adopts the following technical solutions:

[0008] In a first aspect, an embodiment of the present application provides a data transmission method, applied to a first device, including:

[0009] The first device detects the measured distance of the object to be identified through a distance sensor;

[0010] When the measured distance is the first distance, the first device sends a first request to the second device, wherein the second device establishes a wireless connection with the first device;

[0011] When the second device performs the target triggering operation, the first device receives first response information returned by the second device; and

[0012] In response to the first response information, data is transmitted between the first device and the second device.

[0013] In the method provided in the embodiment of the present application, a distance sensor can be provided on the first device, and the distance sensor can detect the measured distance of the object to be identified around the first device. When the user wishes to transmit data between the first device and the second device, the user can move the second device so that the second device is close to the first device. At this time, the first device detects that the measured distance of the object to be identified is the first distance, and the first device and the second device have established a wireless connection. The first device can then send a first request to the second device to confirm whether the object to be identified is the second device through the first request.

[0014] When the second device performs a target triggering operation, the second device may send a first response message to the first device. Upon receiving the first response message, the first device may confirm, based on the first response message, that the object to be identified is the second device and that data transmission is required. Therefore, the first and second devices may perform data transmission in response to the first response message.

[0015] Through the above method, the first device and the second device can quickly trigger the data transmission function without being equipped with NFC chips, thereby reducing the hardware requirements for the first device and the second device.

[0016] In addition, it should be noted that the first distance can be set according to actual needs. When the first device is set with a detection range, the first distance can be less than or equal to the upper limit value of the detection range.

[0017] For example, assuming that the detection range can be set to 0 cm-10 cm and the upper boundary value of the detection range is 10 cm, the first distance can be set to 10 cm, or the first distance can also be set to a value less than 10 cm.

[0018] In a possible implementation of the first aspect, the data transmission between the first device and the second device includes:

[0019] The first device sends a data transmission instruction to the second device;

[0020] The first device receives the data to be transmitted returned by the second device, or the first device sends the data to be transmitted to the second device.

[0021] It should be noted that, when the first device and the second device perform data transmission, the first device may send a data transmission instruction to the second device to notify the second device to perform the transmission.

[0022] Then, the second device can send the data to be transmitted to the first device, and the first device receives the data to be transmitted returned by the second device. Alternatively, the first device can also actively send the data to be transmitted to the second device. The embodiment of the present application does not limit the initiator of the data transmission.

[0023] Furthermore, the data to be transmitted may be a file being displayed, used, or processed by the first device or the second device; or, the data to be transmitted may be screen projection data transmitted by the first device or the second device; or, the data to be transmitted may be a resource link; or, the data to be transmitted may be other types of data. The embodiments of the present application do not limit the type of data to be transmitted.

[0024] In a possible implementation of the first aspect, the method further includes:

[0025] When the second device does not perform the target triggering operation, the first device receives the second response information returned by the second device, and no data transmission is performed between the first device and the second device.

[0026] It should be noted that if the second device does not perform the target triggering operation, it means that the object to be identified is not the second device and the user has no need for data transmission.

[0027] At this time, the second device may send a second response message to the first device, where the second response message indicates that no data transmission is to be performed. The first device receives the second response message, and the first device and the second device do not perform data transmission.

[0028] In a possible implementation manner of the first aspect, the first response information is used to instruct data transmission.

[0029] It should be noted that the first response information is used to instruct data transmission. After receiving the first response information, the first device triggers the data transmission function and performs data transmission with the second device.

[0030] In a possible implementation manner of the first aspect, the first response information includes motion data of the second device.

[0031] It should be noted that the first response information may include motion data of the second device.

[0032] In a possible implementation of the first aspect, in response to the first response information, transmitting data between the first device and the second device includes:

[0033] determining, by the first device, a motion state of the second device according to the first response information;

[0034] When the motion status indicates that the second device has performed the target triggering operation, the first device sends a data transmission instruction to the second device.

[0035] It should be noted that after receiving the first response information, the first device can obtain the motion data of the second device from the first response information and determine the motion state of the second device according to the motion data of the second device.

[0036] Then, the first device may determine whether the second device has performed a target triggering operation according to the motion state of the second device.

[0037] When the motion state of the second device indicates that the second device has performed a target triggering operation, the first device may determine that the object to be identified is the second device and the user has a data transmission requirement.

[0038] At this time, the first device may send a data transmission instruction to the second device in response to the first response information.

[0039] In a possible implementation of the first aspect, the motion data is the X-axis angular velocity, Y-axis angular velocity, and Z-axis angular velocity detected by a gyroscope of the second device; and / or the motion data is acceleration data detected by an acceleration sensor of the second device.

[0040] It should be noted that when the second device is provided with a gyroscope, the above-mentioned motion data may be the X-axis angular velocity, Y-axis angular velocity, and Z-axis angular velocity detected by the gyroscope of the second device. When the second device is provided with an acceleration sensor, the above-mentioned motion data may also be acceleration data detected by the acceleration sensor of the second device. When the second device is provided with other types of motion sensors, the motion data may also be other types of data. The embodiments of the present application do not limit the data type of the motion data.

[0041] In a possible implementation of the first aspect, the target triggering operation includes the second device moving at a detection time or a detection time period;

[0042] The detection moment is the moment when the distance sensor detects that the measured distance is the first distance;

[0043] The detection time period is a first detection time length before the detection moment, or the detection time period is a second detection time length after the detection moment, or the detection time period is the first detection time length before the detection moment and the second detection time length after the detection moment.

[0044] It should be noted that the specific content of the target trigger operation can be set according to actual needs.

[0045] In some embodiments, the target triggering operation may be the second device moving at a detection moment, where the detection moment is the moment when the first device detects that the measured distance is the first distance.

[0046] When the first distance is the upper boundary value of the detection range, the detection moment can be understood as the moment when the object to be detected enters the detection range (ie, the first moment described below).

[0047] In other embodiments, the target triggering operation may be movement of the second device within a detection time period.

[0048] The detection time period can be set according to actual conditions.

[0049] Specifically, the detection time period can be set to a first detection time period before the detection moment. Alternatively, the detection time period can be set to a second detection time period after the detection moment. Alternatively, the detection time period can be the first detection time period before the detection moment and the second detection time period after the detection moment.

[0050] The first detection duration and the second detection duration can be set according to actual needs. For example, the first detection duration and the second detection duration can be set to 0.1 seconds, 0.2 seconds, 0.5 seconds, 1 second, etc. The embodiment of the present application does not limit the specific setting method of the first detection duration and the second detection duration.

[0051] In other embodiments, the target trigger operation may also be other operation contents, and the embodiments of the present application do not limit the specific form of the target trigger operation.

[0052] In a possible implementation manner of the first aspect, the amplitude of the movement is greater than the first amplitude.

[0053] It should be noted that the above movement can be understood as the movement amplitude of the second device being greater than the first amplitude, and the second device is in a moving state. The movement amplitude of the second device can be represented by the size of the movement data.

[0054] In a possible implementation manner of the first aspect, the distance sensor is a combination of any one or more of a millimeter wave radar, an ultrasonic sensor, a laser sensor, and an infrared sensor.

[0055] It should be noted that the distance sensor on the first device may be composed of a single sensor, or may be composed of multiple sensors.

[0056] When the distance sensor is composed of multiple sensors, the multiple sensors can be sensors of the same type, or they can be sensors of different types. The embodiment of the present application does not limit the composition of the distance sensor.

[0057] Furthermore, the distance sensor may include any one or more combinations of millimeter wave radars, ultrasonic sensors, laser sensors, and infrared sensors.

[0058] In a possible implementation manner of the first aspect, the first device sends the first request to the second device through a Bluetooth connection.

[0059] It should be noted that, since the data amount of the first request is relatively small, the first device may send the first request to the second device via a Bluetooth connection.

[0060] In a possible implementation of the first aspect, data is transmitted between the first device and the second device through a Wi-Fi connection.

[0061] It should be noted that, since the amount of data to be transmitted that the first device and the second device need to interact with is large during data transmission, the first device and the second device can perform data transmission via a Wi-Fi connection to improve the transmission speed and stability of the data transmission.

[0062] In a second aspect, an embodiment of the present application provides a data transmission method, applied to a second device, including:

[0063] The second device receives a first request sent by the first device, wherein the first device and the second device establish a wireless connection, the first device detects a measured distance of the object to be identified using a distance sensor, and when the measured distance is a first distance, the first device sends the first request;

[0064] In response to the first request, the second device sends first response information to the first device, wherein the second device sends the first response information when the second device performs a target triggering operation; and

[0065] Data is transmitted between the first device and the second device.

[0066] In the method provided in the embodiment of the present application, a distance sensor may be provided on the first device, and the distance sensor may detect the actual distance of the object to be identified around the first device.

[0067] When the user wishes to transmit data between the first device and the second device, the user can move the second device so that the second device is close to the first device.

[0068] At this time, the first device detects that the measured distance of the object to be identified is the first distance, and the first device and the second device have established a wireless connection, then the first device can send a first request to the second device, and confirm through the first request whether the above-mentioned object to be identified is the second device.

[0069] When the second device performs the target triggering operation, the second device may send first response information to the first device.

[0070] When the first device receives the first response information, the first device can confirm through the first response information that the object to be identified is the second device and data transmission is required.

[0071] Therefore, the first device and the second device can perform data transmission in response to the first response information.

[0072] Through the above method, the first device and the second device can quickly trigger the data transmission function without being equipped with NFC chips, thereby reducing the hardware requirements for the first device and the second device.

[0073] In a possible implementation of the second aspect, the data transmission between the first device and the second device includes:

[0074] The second device receives the data transmission instruction sent by the first device;

[0075] The second device sends the data to be transmitted to the first device, or the second device receives the data to be transmitted sent by the first device.

[0076] In a possible implementation of the second aspect, the method further includes:

[0077] When the second device does not perform the target triggering operation, the second device sends second response information to the first device, and no data transmission is performed between the first device and the second device.

[0078] It should be noted that, when the second device does not perform the target triggering operation, the second device may send second response information to the first device, where the second response information is used to indicate that no data transmission is performed.

[0079] In a possible implementation manner of the second aspect, the first response information is used to instruct data transmission.

[0080] In a possible implementation manner of the second aspect, the first response information includes motion data of the second device.

[0081] In a possible implementation of the second aspect, the second device sending first response information to the first device includes:

[0082] The second device determines the first response information according to a motion state of the second device.

[0083] It should be noted that the second device can determine whether the second device has performed the target triggering operation according to the motion state.

[0084] When the second device determines that the second device has performed the target triggering operation according to the motion state, the second device determines that the response information to be returned to the first device is the first response information.

[0085] In a possible implementation of the second aspect, the motion data is the X-axis angular velocity, Y-axis angular velocity, and Z-axis angular velocity detected by a gyroscope of the second device; and / or the motion data is acceleration data detected by an acceleration sensor of the second device.

[0086] In a possible implementation manner of the second aspect, the target triggering operation includes the second device moving at a detection time or a detection time period;

[0087] The detection moment is the moment when the distance sensor detects that the measured distance is the first distance;

[0088] The detection time period is a first detection time length before the detection moment, or the detection time period is a second detection time length after the detection moment, or the detection time period is the first detection time length before the detection moment and the second detection time length after the detection moment.

[0089] In a third aspect, an embodiment of the present application provides a data transmission method, including:

[0090] The first device detects the measured distance of the object to be identified through a distance sensor;

[0091] When the measured distance is the first distance, the first device sends a first request to the second device, wherein the second device establishes a wireless connection with the first device;

[0092] The second device receives the first request, and when the second device performs a target triggering operation, the second device sends a first response message to the first device; and

[0093] In response to the first response information, data is transmitted between the first device and the second device.

[0094] In the method provided in the embodiment of the present application, a distance sensor may be provided on the first device, and the distance sensor may detect the actual distance of the object to be identified around the first device.

[0095] When the user wishes to transmit data between the first device and the second device, the user can move the second device so that the second device is close to the first device.

[0096] At this time, the first device detects that the measured distance of the object to be identified is the first distance, and the first device and the second device have established a wireless connection, then the first device can send a first request to the second device, and confirm through the first request whether the above-mentioned object to be identified is the second device.

[0097] When the second device performs the target triggering operation, the second device may send first response information to the first device.

[0098] When the first device receives the first response information, the first device can confirm through the first response information that the object to be identified is the second device and data transmission is required.

[0099] Therefore, the first device and the second device can perform data transmission in response to the first response information.

[0100] Through the above method, the first device and the second device can quickly trigger the data transmission function without being equipped with NFC chips, thereby reducing the hardware requirements for the first device and the second device.

[0101] In a fourth aspect, an embodiment of the present application provides a first device, including:

[0102] A distance detection module is used to detect the actual distance of the object to be identified through a distance sensor;

[0103] a request sending module, configured to send a first request to a second device when the measured distance is a first distance, wherein the second device establishes a wireless connection with the first device;

[0104] A first receiving module is configured to receive first response information returned by the second device when the second device performs a target triggering operation;

[0105] A first transmission module is configured to transmit data to and from the second device in response to the first response information.

[0106] In a possible implementation of the fourth aspect, the first transmission module includes:

[0107] An instruction sending submodule, configured to send a data transmission instruction to the second device;

[0108] The first transceiver submodule is configured to receive the data to be transmitted returned by the second device, or to send the data to be transmitted to the second device.

[0109] In a possible implementation of the fourth aspect, the method further includes:

[0110] The second receiving module is configured to receive second response information returned by the second device when the second device does not perform the target triggering operation, and no data transmission is performed between the first device and the second device.

[0111] In a possible implementation manner of the fourth aspect, the first response information is used to instruct data transmission.

[0112] In a possible implementation manner of the fourth aspect, the first response information includes motion data of the second device.

[0113] In a possible implementation of the fourth aspect, the first transmission module includes:

[0114] a first state submodule, configured to determine a motion state of the second device according to the first response information;

[0115] The first instruction submodule is configured to send a data transmission instruction to the second device when the motion state indicates that the second device has performed the target triggering operation.

[0116] In a possible implementation of the fourth aspect, the motion data is the X-axis angular velocity, Y-axis angular velocity, and Z-axis angular velocity detected by a gyroscope of the second device; and / or the motion data is acceleration data detected by an acceleration sensor of the second device.

[0117] In a possible implementation manner of the fourth aspect, the target triggering operation includes the second device moving at a detection time or a detection time period;

[0118] The detection moment is the moment when the distance sensor detects that the measured distance is the first distance;

[0119] The detection time period is a first detection duration before the detection moment, or the first time period is a second detection duration after the detection moment, or the first time period is a first detection duration before the detection moment and a second detection duration after the detection moment.

[0120] In a possible implementation manner of the fourth aspect, the amplitude of the movement is greater than the first amplitude.

[0121] In a possible implementation manner of the fourth aspect, the distance sensor is a combination of any one or more of a millimeter wave radar, an ultrasonic sensor, a laser sensor, and an infrared sensor.

[0122] In a possible implementation manner of the fourth aspect, the request sending module is specifically configured to send the first request to the second device through a Bluetooth connection.

[0123] In a possible implementation manner of the fourth aspect, the first transmission module is specifically configured to perform data transmission with the second device through a Wi-Fi connection.

[0124] In a fifth aspect, an embodiment of the present application provides a second device, including:

[0125] a request receiving module, configured to receive a first request sent by a first device, wherein the first device establishes a wireless connection with the second device, the first device detects a measured distance of an object to be identified using a distance sensor, and when the measured distance is a first distance, the first device sends the first request;

[0126] a first response module, configured to send first response information to the first device in response to the first request, wherein when the second device performs a target triggering operation, the second device sends the first response information;

[0127] A second transmission module is configured to transmit data to the first device.

[0128] In a possible implementation of the fifth aspect, the second transmission module includes:

[0129] An instruction receiving submodule, configured to receive a data transmission instruction sent by the first device;

[0130] The second transceiver submodule is configured to send data to be transmitted to the first device, or receive data to be transmitted sent by the first device.

[0131] In a possible implementation of the fifth aspect, the method further includes:

[0132] The second response module is configured to send second response information to the first device when the second device does not perform the target trigger operation, and no data transmission is performed between the first device and the second device.

[0133] In a possible implementation manner of the fifth aspect, the first response information is used to instruct data transmission.

[0134] In a possible implementation manner of the fifth aspect, the first response information includes motion data of the second device.

[0135] In a possible implementation manner of the fifth aspect, the first response module is specifically configured to determine the first response information according to a motion state of the second device.

[0136] In a possible implementation of the fifth aspect, the motion data is the X-axis angular velocity, Y-axis angular velocity, and Z-axis angular velocity detected by a gyroscope of the second device; and / or the motion data is acceleration data detected by an acceleration sensor of the second device.

[0137] In a possible implementation manner of the fifth aspect, the target triggering operation includes the second device moving at a detection time or a detection time period;

[0138] The detection moment is the moment when the distance sensor detects that the measured distance is the first distance;

[0139] The detection time period is a first detection duration before the detection moment, or the first time period is a second detection duration after the detection moment, or the first time period is a first detection duration before the detection moment and a second detection duration after the detection moment.

[0140] In a sixth aspect, an embodiment of the present application provides a data transmission system, comprising: the above-mentioned first device and the above-mentioned second device.

[0141] In the seventh aspect, an embodiment of the present application provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the electronic device implements the above method.

[0142] In an eighth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the electronic device implements the above method.

[0143] In the ninth aspect, an embodiment of the present application provides a chip system, which may be a single chip or a chip module composed of multiple chips. The chip system includes a memory and a processor, and the processor executes a computer program stored in the memory to implement the above method. BRIEF DESCRIPTION OF THE DRAWINGS

[0144] Figure 1 A schematic diagram of the structure of a data transmission system provided in an embodiment of the present application;

[0145] Figure 2 A schematic diagram of a process flow of a distance sensor drive initialization method provided in an embodiment of the present application;

[0146] Figure 3 A flowchart of a data interaction method provided in an embodiment of the present application;

[0147] Figure 4A schematic structural diagram of a first device provided in an embodiment of the present application;

[0148] Figure 5 A schematic diagram of the structure of a distance sensor provided in an embodiment of the present application;

[0149] Figure 6 A schematic structural diagram of a second device provided in an embodiment of the present application;

[0150] Figure 7 A schematic diagram of the location of a distance sensor provided in an embodiment of the present application;

[0151] Figure 8 A schematic diagram of a scenario provided in an embodiment of the present application;

[0152] Figure 9 Another scenario diagram provided for an embodiment of the present application;

[0153] Figure 10 A software architecture diagram of a data transmission system provided in an embodiment of the present application;

[0154] Figure 11 A schematic diagram of motion data provided in an embodiment of the present application;

[0155] Figure 12 A schematic diagram of another type of motion data provided in an embodiment of the present application;

[0156] Figure 13 Another scenario diagram provided for an embodiment of the present application;

[0157] Figure 14 Another scenario diagram provided for an embodiment of the present application;

[0158] Figure 15 Another scenario diagram provided for an embodiment of the present application;

[0159] Figure 16 Another scenario diagram provided for an embodiment of the present application;

[0160] Figure 17 Another scenario diagram provided for an embodiment of the present application;

[0161] Figure 18 Another scenario diagram provided for an embodiment of the present application;

[0162] Figure 19 Another scenario diagram provided for an embodiment of the present application;

[0163] Figure 20 Another scenario diagram provided for an embodiment of the present application;

[0164] Figure 21 Another scenario diagram provided for an embodiment of the present application;

[0165] Figure 22 Another scenario diagram provided for an embodiment of the present application;

[0166] Figure 23 A flowchart of a data transmission method provided in an embodiment of the present application. DETAILED DESCRIPTION

[0167] In the following description, specific details such as specific system structures and techniques are provided for purposes of illustration rather than limitation to facilitate a thorough understanding of the embodiments of the present application. However, it will be apparent to those skilled in the art that the present application may be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to avoid obscuring the description of the present application with unnecessary detail.

[0168] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, integers, steps, operations, elements and / or components, but does not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or collections thereof.

[0169] It will also be understood that the term "and / or" used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.

[0170] As used in this specification and the appended claims, the term "if" can be interpreted as "when" or "upon" or "in response to determining" or "in response to detecting," depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "upon determination" or "in response to determining" or "upon detection of [described condition or event]" or "in response to detecting [described condition or event]," depending on the context.

[0171] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.

[0172] References to "one embodiment" or "some embodiments" in this specification mean that a particular feature, structure, or characteristic described in conjunction with that embodiment is included in one or more embodiments of the present application. Thus, phrases such as "in one embodiment," "in some embodiments," "in other embodiments," and "in other embodiments" appearing in various places in this specification do not necessarily refer to the same embodiment, but rather mean "one or more but not all embodiments," unless otherwise specifically emphasized. The terms "including," "comprising," "having," and variations thereof all mean "including but not limited to," unless otherwise specifically emphasized.

[0173] With the development of technology, a wide variety of electronic products have entered thousands of households. In some scenarios, users may own multiple electronic devices and need to transfer data between them. For example, a user may own a mobile phone and a laptop and need to transfer data from the mobile phone to the laptop.

[0174] To this end, relatively mature data transmission technologies have emerged. However, users often need to perform cumbersome steps to enable data transmission between electronic devices. For example, when transferring a picture from a mobile phone to a laptop, a user may first need to perform steps such as "select the picture," "click to share," "select the sharing method," and "select the receiving device" on the mobile phone before the picture can be transferred to the laptop.

[0175] Therefore, to improve the user experience, some manufacturers have proposed a "touch and transfer" solution. This solution uses NFC chips installed on electronic devices to trigger data transfer through close contact or collision, greatly reducing the number of steps required to initiate data transfer. For example, both mobile phones and laptops have NFC chips. Simply tap the phone against the laptop, bringing the phone's NFC chip close to the laptop's NFC chip, to establish a connection and transfer data.

[0176] However, the NFC chip-based "touch and transfer" solution requires that both the transmitting and receiving electronic devices be equipped with NFC chips; otherwise, the "touch and transfer" function will not work. For example, if a mobile phone and a laptop want to transfer data using the "touch and transfer" function, both the mobile phone and the laptop must be equipped with NFC chips; otherwise, the "touch and transfer" function will not work.

[0177] However, due to cost considerations, many electronic devices are currently not equipped with NFC chips, which greatly limits the application scenarios of the "touch and transfer" function and is not conducive to the promotion and application of the "touch and transfer" function.

[0178] In view of this, the embodiments of the present application provide a data transmission method, an electronic device and a computer-readable storage medium. The electronic device can use the improved data transmission method of the embodiments of the present application to quickly trigger the data transmission function without the need for an NFC chip, and has strong ease of use and practicality.

[0179] First, Figure 1 Taking the data transmission system shown as an example, this data transmission system is a system to which the data transmission method provided in the embodiment of the present application is applicable.

[0180] like Figure 1 As shown, the data transmission system includes a first device 100 and a second device 200, and the first device 100 and the second device 200 perform data interaction via a wireless connection.

[0181] In the above-mentioned "touch and transfer" solution, NFC chips need to be installed on the first device 100 and the second device 200. When a user wants to transfer data between the second device 200 and the first device 100, the user can move the second device 200 so that the distance between the first device 100 and the second device 200 is within the transmission range of the NFC chip (usually 0 cm-4 cm). The NFC chip of the first device 100 and the NFC of the second device 200 induction each other to trigger the data transmission function, and the data of the second device 200 is transferred to the first device 100, or the data of the first device 100 is transferred to the second device 200.

[0182] However, in the above solution, NFC chips must be installed on both the first device 100 and the second device 200. NFC chips are relatively expensive, and many current electronic devices do not have them. This means that many current electronic devices cannot utilize the above "touch and transfer" solution, limiting its application scenarios and hindering its promotion and application.

[0183] In the embodiment of the present application, a distance sensor is provided on the first device 100 , and the distance sensor can detect the distance between other objects and the first device 100 , thereby determining whether there is an object close to the first device 100 .

[0184] The second device 200 is provided with a motion sensor, which can detect motion data of the second device 200 , thereby determining the motion state of the second device 200 .

[0185] When the user wants to transfer data on the second device 200 to the first device 100, or when the user wants to transfer data on the first device 100 to the second device 200, the user can move the second device 200 so that the distance between the first device 100 and the second device 200 is within the detection range of the distance sensor.

[0186] Since the first device 100 and the second device 200 have established a communication connection, such as a wireless connection, when the first device 100 detects an object to be identified within the detection range, the first device 100 can send a motion data request (i.e., the above-mentioned first request) to the second device 200 through the first wireless connection, and receive response information returned by the second device 200.

[0187] When the second device 200 returns the first response information, the first device 100 and the second device 200 start the data transmission function, and the first device 100 receives the data transmitted by the second device 200 through the second wireless connection, or the second device 200 receives the data transmitted by the first device 100 through the second wireless connection.

[0188] It can be understood that the first wireless connection and the second wireless connection may be wireless connections of the same type, or the first wireless connection and the second wireless connection may be wireless connections of different types.

[0189] For example, in some embodiments, the first wireless connection and the second wireless connection may both be Bluetooth connections; in other embodiments, the first wireless connection may be a Bluetooth connection, and the second wireless connection may be a wireless local area network (WLAN) (such as wireless fidelity (Wi-Fi)) connection.

[0190] The data transmitted between the second device 200 and the first device 100 can be a file being displayed, used, or processed by the first device 100 or the second device 200; or the data can be screen projection data transmitted by the first device 100 or the second device 200; or the data can be a resource link; or the data can be other types of data. The embodiments of the present application do not limit the type of data transmitted between the first device 100 and the second device 200.

[0191] In the data transmission system of the embodiment of the present application, the first device 100 and the second device 200 activate the device authentication and data transmission functions via the distance sensor on the first device 100, allowing the first device 100 or the second device 200 to detect or determine whether to perform data transmission. This system allows the first device 100 and the second device 200 to quickly trigger data transmission without the need for NFC chips, reducing the hardware requirements for the second device 200 and the cost of the devices.

[0192] In the data transmission system provided in the embodiment of the present application, when the first device 100 uses the distance sensor for the first time or updates the software driver of the distance sensor, the first device 100 may initialize the software driver of the distance sensor.

[0193] The method for the first device 100 to initialize the software driver of the distance sensor can be set according to the actual scenario. For example, see Figure 2 , Figure 2 This embodiment provides a driving initialization method for a distance sensor, which includes:

[0194] 1.1. The distance sensor driver reads and parses the initialization command transmitted by the first processor (i.e., the processor of the first device 100);

[0195] 1.2. The distance sensor driver configures the functions of each pin on the distance sensor. For example, the functions may include one or more of input, output, interrupt, multiplexing, etc.

[0196] 1.3. Distance sensor driver performs interrupt registration;

[0197] 1.4. The distance sensor driver configures data for the distance sensor;

[0198] 1.5. The distance sensor driver detects the distance sensor through the data interface to instruct the distance sensor to read the data of the first processor.

[0199] After the software driver of the distance sensor is initialized, the first device 100 can call the distance sensor to detect the distance of surrounding objects.

[0200] When in operation, the distance sensor transmits a ranging signal to the surrounding area through the transmitting antenna and receives an echo signal through the receiving antenna. This echo signal is the sensor data collected by the distance sensor. After receiving the echo signal, the distance sensor can store the echo signal in the distance sensor's first-in, first-out (FIFO) buffer.

[0201] The first processor may perform data exchange with the distance sensor to obtain sensor data collected by the distance sensor.

[0202] In some embodiments, when the first processor and the distance sensor perform data exchange, the first processor can Figure 3 The data interaction method shown obtains the sensor data collected by the distance sensor:

[0203] 2.1. The hardware abstraction layer of the first processor issues a data acquisition command;

[0204] 2.2. If there is no sensor data in the data buffer of the first processor, the data acquisition thread of the first processor enters the waiting queue;

[0205] 2.3. When the FIFO buffer of the distance sensor reaches the preset trigger value, an interrupt is triggered;

[0206] 2.4. The first processor reads sensor data from the distance sensor into the data buffer of the first processor and wakes up the data acquisition thread;

[0207] 2.5. The data acquisition thread changes to the running state, reads the sensor data in the data buffer, and passes the sensor data to the hardware abstraction layer and application layer and other system layers for processing.

[0208] After acquiring the sensor data, the first processor processes the sensor data to obtain the distance between each surrounding object and the first device 100 .

[0209] The first device 100 and the second device 200 may be electronic devices of the same type, or the first device 100 and the second device 200 may be electronic devices of different types.

[0210] The above-mentioned electronic devices may be electronic devices of the type of all-in-one computer, tablet computer, vehicle-mounted device, augmented reality (AR) / virtual reality (VR) device, laptop computer, ultra-mobile personal computer (UMPC), netbook, personal digital assistant (PDA), etc. Alternatively, the above-mentioned electronic devices may also be electronic devices of other types not listed. The embodiments of the present application do not limit the specific types of electronic devices.

[0211] See also Figure 4 , Figure 4 A structural diagram of the first device 100 is schematically provided.

[0212] The first device 100 may include a first processor 110 , a wireless communication module 120 , and a distance sensor 130 .

[0213] The first processor 110 may include one or more processing units. For example, the first processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU). The different processing units may be independent devices or integrated into one or more processors.

[0214] The controller may be the nerve center and command center of the first device 100. The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.

[0215] The first processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in the first processor 110 is a cache memory. This memory can store instructions or data that have just been used or are being recycled by the first processor 110. If the first processor 110 needs to use the instruction or data again, it can directly call it from the memory. This avoids repeated accesses, reduces the waiting time of the first processor 110, and thus improves system efficiency.

[0216] In some embodiments, the first processor 110 may include one or more interfaces. The interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface.

[0217] It is understood that the interface connection relationship between the modules illustrated in this embodiment is merely a schematic illustration and does not constitute a structural limitation on the first device 100. In other embodiments of the present application, the first device 100 may also adopt a different interface connection method from the above embodiments, or a combination of multiple interface connection methods.

[0218] The wireless communication module 120 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared technology (IR), etc. applied on the first device 100. In some embodiments, the wireless communication module 120 can also provide wireless communication solutions including 2G / 3G / 4G / 5G applied on the first device 100. The wireless communication module 120 can be one or more devices integrating at least one communication processing module. The wireless communication module 120 receives electromagnetic waves via an antenna, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the first processor 110. The wireless communication module 120 can also receive the signal to be sent from the first processor 110, frequency modulate it, amplify it, and convert it into electromagnetic waves for radiation through the antenna.

[0219] The distance sensor 130 can measure the distance between other objects and the first device 100. The distance sensor 130 can include one or more distance sensors such as millimeter wave radar, infrared ranging sensor, ultrasonic ranging sensor, etc. Figure 5 As shown, the distance sensor 130 may generally include a chip body 1301 , a power module 1302 , a crystal oscillator module 1303 , a transmitting antenna 1304 , a receiving antenna 1305 and other structures.

[0220] The power module 1302 can be used to power each module in the distance sensor 130. The power module 1302 can include a power interface, etc. The crystal oscillator module 1303 can be used to provide a clock signal for the distance sensor 130. Based on the clock signal, the distance sensor 130 can transmit a ranging signal through the transmitting antenna 1304 according to a preset ranging period (for example, every 10 ms), receive an echo signal through the receiving antenna 1305, and then transmit the echo signal to the first processor 110 for processing to detect the distance between other objects and the first device 100.

[0221] It should be understood that the structures illustrated in the embodiments of the present application do not constitute a specific limitation on the first device 100. In other embodiments of the present application, the first device 100 may include more or fewer components than shown, or may combine or separate certain components, or arrange the components differently. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0222] See also Figure 6 , Figure 6 A structural diagram of the second device 200 is schematically given.

[0223] like Figure 6 As shown, the second device 200 may include a second processor 210, an external memory interface 220, an internal memory 221, a universal serial bus (USB) interface 230, a charging management module 240, a power management module 241, a battery 242, an antenna 1, an antenna 2, a mobile communication module 250, a wireless communication module 260, an audio module 270, a speaker 270A, a receiver 270B, a microphone 270C, an earphone interface 270D, a sensor module 280, a button 290, a motor 291, an indicator 292, a camera 293, a display screen 294, and a subscriber identification module (SIM) card interface 295, etc. The sensor module 280 may include a pressure sensor 280A, a motion sensor 280B, an air pressure sensor 280C, a magnetic sensor 280D, a bone conduction sensor 280E, a ranging sensor 280F, a proximity light sensor 280G, a fingerprint sensor 280H, a temperature sensor 280J, a touch sensor 280K, an ambient light sensor 280L, etc.

[0224] It should be understood that the structures illustrated in the embodiments of the present application do not constitute a specific limitation on the second device 200. In other embodiments of the present application, the second device 200 may include more or fewer components than shown, or may combine or separate certain components, or arrange the components differently. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0225] The second processor 210 may include one or more processing units, for example, an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU). The different processing units may be independent devices or integrated into one or more processors.

[0226] The controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of instruction fetching and execution.

[0227] The USB interface 230 is an interface that complies with USB standards and specifications, and may be a Mini USB interface, a Micro USB interface, a USB Type-C interface, or the like. The USB interface 230 can be used to connect a charger to charge the second device 200, or to transfer data between the second device 200 and peripheral devices. It can also be used to connect headphones to play audio. This interface can also be used to connect other electronic devices, such as AR devices.

[0228] The charging management module 240 is configured to receive charging input from a charger, which may be a wireless charger or a wired charger.

[0229] The power management module 241 is used to connect the battery 242, the charging management module 240, and the second processor 210. The power management module 241 receives input from the battery 242 and / or the charging management module 240 to provide power to the second processor 210, the internal memory 221, the display 294, the camera 293, and the wireless communication module 260.

[0230] The wireless communication function of the second device 200 can be implemented through antenna 1, antenna 2, mobile communication module 250, wireless communication module 260, modem processor and baseband processor.

[0231] Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in second device 200 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In other embodiments, the antennas can be used in conjunction with a tuning switch.

[0232] The mobile communication module 250 can provide solutions for wireless communications including 2G / 3G / 4G / 5G applied on the second device 200. The mobile communication module 250 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 250 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 250 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some functional modules of the mobile communication module 250 can be set in the second processor 210. In some embodiments, at least some functional modules of the mobile communication module 250 can be set in the same device as at least some modules of the second processor 210.

[0233] The wireless communication module 260 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared technology (IR), etc. applied on the second device 200. The wireless communication module 260 can be one or more devices integrating at least one communication processing module. The wireless communication module 260 receives electromagnetic waves via the antenna 2, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the second processor 210. The wireless communication module 260 can also receive the signal to be sent from the second processor 210, frequency modulate it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.

[0234] In some embodiments, antenna 1 of the second device 200 is coupled to the mobile communication module 250, and antenna 2 is coupled to the wireless communication module 260, so that the second device 200 can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology. The GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and / or a satellite based augmentation system (SBAS).

[0235] The second device 200 implements display functionality through a GPU, display screen 294, and an application processor. The GPU is a microprocessor for image processing that connects the display screen 294 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The second processor 210 may include one or more GPUs that execute program instructions to generate or change display information.

[0236] The display screen 294 is used to display images, videos, etc. The camera 293 is used to capture still images or videos.

[0237] The external memory interface 220 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the second device 200.

[0238] The internal memory 221 may be used to store computer-executable program codes, which include instructions.

[0239] The second device 200 can implement audio functions such as music playback and recording through the audio module 270, the speaker 270A, the receiver 270B, the microphone 270C, the headphone jack 270D, and the application processor.

[0240] The audio module 270 is used to convert digital audio information into analog audio signal output and also to convert analog audio input into digital audio signals. The speaker 270A, also known as the "horn," is used to convert audio electrical signals into sound signals. The receiver 270B, also known as the "earpiece," is used to convert audio electrical signals into sound signals. The microphone 270C, also known as the "microphone," is used to convert sound signals into electrical signals. The headphone jack 270D is used to connect wired headphones. The pressure sensor 280A is used to sense pressure signals and convert them into electrical signals.

[0241] The motion sensor 280B can be used to determine the motion posture of the second device 200. The motion sensor may include a gyroscope, an accelerometer, or other types of motion sensors. In some embodiments, the second device 200 can determine the angular velocity of the second device 200 around three axes (i.e., X, Y, and Z axes) through a gyroscope sensor. The gyroscope sensor can be used for anti-shake shooting. For example, when the shutter is pressed, the gyroscope sensor detects the angle of the second device 200 shaking, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to offset the shaking of the second device 200 through reverse motion to achieve anti-shake. The gyroscope sensor can also be used for navigation and somatosensory game scenes. The accelerometer can detect the magnitude of the acceleration of the second device 200 in all directions (generally three axes). When the second device 200 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of electronic devices, and applied to applications such as horizontal and vertical screen switching and pedometers.

[0242] The air pressure sensor 280C is used to measure air pressure. The magnetic sensor 280D includes a Hall sensor. The bone conduction sensor 280E can obtain vibration signals. The ranging sensor 280F is used to measure distance. The proximity light sensor 280G may include, for example, a light emitting diode (LED) and a light detector, such as a photodiode. The second device 200 can use the proximity light sensor 280G to detect that the user is holding the second device 200 close to the ear to talk, so as to automatically turn off the screen to save power. The proximity light sensor 280G can also be used for automatic unlocking and locking of the screen in leather case mode and pocket mode. The ambient light sensor 280L is used to sense the brightness of ambient light. The fingerprint sensor 280H is used to collect fingerprints. The temperature sensor 280J is used to detect temperature. The touch sensor 280K is also called a "touch device". The touch sensor 280K can be set on the display screen 294. The touch sensor 280K and the display screen 294 form a touch screen, also called a "touch screen". The touch sensor 280K is used to detect touch operations on or near it.

[0243] The buttons 290 include a power button, a volume button, etc. The buttons 290 may be mechanical buttons or touch buttons. The second device 200 may receive the button input and generate a key signal input related to the user settings and function control of the second device 200.

[0244] The motor 291 can generate a vibration prompt. The indicator 292 can be an indicator light, which can be used to indicate the charging status, power changes, messages, missed calls, notifications, etc.

[0245] The SIM card interface 295 is used to connect a SIM card. The SIM card can be connected to or disconnected from the second device 200 by inserting or removing the SIM card into or from the SIM card interface 295.

[0246] It should be understood that the structure illustrated in this embodiment does not constitute a specific limitation on the second device 200. In other embodiments of the present application, the second device 200 may include more or fewer components than shown, or may combine or separate certain components, or arrange the components differently. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0247] The following will be combined Figures 1 to 6 The data transmission system shown is combined with specific application scenarios to describe in detail the data transmission method provided in the embodiment of the present application.

[0248] 1. Device pairing and connection.

[0249] When using the data transmission method provided in the embodiment of the present application, the first device 100 and the second device 200 need to be paired and connected first.

[0250] The pairing connection between the first device 100 and the second device 200 means that the first device 100 and the second device 200 establish a first wireless connection and set each other as a default data transmission object.

[0251] For example, assume that the first device 100 is a laptop computer and the second device 200 is a Bluetooth headset. After the user establishes a Bluetooth connection and pairs the laptop computer with the Bluetooth headset, the laptop computer will identify the Bluetooth headset as the default data transmission target. When the laptop computer plays audio, the laptop computer will transmit the audio data to the Bluetooth headset via the Bluetooth connection for playback, and will not transmit the audio data to the user's other electronic devices (such as Bluetooth speakers, mobile phones, etc.) for playback.

[0252] When the first device 100 and the second device 200 are paired for the first time, the first device 100 and the second device 200 can enable the wireless communication function. Then, the controlled device (i.e., the first device 100 or the second device 200 operated by the user) can search for connectable electronic devices (i.e., connectable devices) around it in response to the user's search operation and display a device list of connectable devices.

[0253] Afterwards, the controlled device can send a wireless connection request to the connectable device selected by the user in response to the user's selection operation. When the connectable device at the other end receives and agrees to the wireless connection request, the controlled device can establish a first wireless connection and pair with the connectable device.

[0254] The controlled device may be the first device 100 or the second device 200. In other words, the user may perform a search operation and a selection operation on the first device 100 to pair the first device 100 with the second device 200; or the user may perform a search operation and a selection operation on the second device 200 to pair the second device 200 with the first device 100.

[0255] Furthermore, the forms of the above-mentioned search and selection operations should be set according to the actual application scenario and the device type of the controlled device. For example, assuming that the controlled device is provided with a touch screen, the above-mentioned selection operation may include one or a combination of operations such as clicking the screen, sliding the screen, and long pressing the screen.

[0256] After the first device 100 and the second device 200 are paired for the first time, if the first device 100 and the second device 200 have turned on the wireless communication function and the first device 100 and the second device 200 are within a suitable communication range, the first device 100 and the second device 200 can automatically establish a first wireless connection and pair.

[0257] 2. Distance detection.

[0258] The first device 100 is provided with a distance sensor, which is used to detect whether there is an object within a detection range.

[0259] The distance sensor can be installed at a suitable location on the first device 100 to facilitate detection of the second device 200. For example, the distance sensor can be installed on or below the housing of the first device 100. If the first device 100 is a laptop, the distance sensor can be installed next to the keyboard; if the first device 100 is a smart TV or smart large screen, the distance sensor can be installed at the edge of the screen.

[0260] The detection range can be set according to actual needs. For example, when a user needs to transmit data between the first device 100 and the second device 200, the second device 200 is close to the distance sensor of the first device 100. The distance between the distance sensor and the second device 200 is relatively close, usually within 10 cm. In this case, the detection range can be set to 0 cm-10 cm. Alternatively, the detection range can also be set to other ranges, such as 0 cm-5 cm, 1 cm-5 cm, 1 cm-10 cm, etc. The specific value of the detection range is not limited in the embodiments of the present application.

[0261] In addition, the detection range can also be set by the user according to usage habits. The user can set that when the distance between the second device 200 and the distance sensor is less than a certain value, the first device 100 is triggered to send a motion data request to the second device 200 for authentication to determine whether the user has the intention or need to transmit data between the first device 100 and the second device 200.

[0262] After setting a suitable detection range, the first device 100 may not identify objects outside the detection range, thereby reducing the processing load of the first device 100 and lowering the possibility of false triggering of the data transmission function.

[0263] The type of distance sensor can be set according to actual needs. Specifically, the distance sensor can be a combination of one or more types of sensors such as millimeter wave radar, ultrasonic sensor, laser sensor, infrared sensor, etc.

[0264] Millimeter-wave radar operates in the millimeter-wave band, which refers to the 30GHz-300GHz frequency range (with a wavelength of 1mm-10mm). Millimeter-wave wavelengths lie between centimeter-wave and light waves, combining the advantages of microwave guidance and photoelectric guidance. Compared to centimeter-wave radar, millimeter-wave radar boasts a smaller size, lighter weight, and higher spatial resolution. Compared to optical ranging sensors like infrared and laser sensors, millimeter-wave radar has a stronger ability to penetrate fog, smoke, and dust, and can operate 24 / 7 (except in heavy rain).

[0265] Ultrasonic sensors use ultrasonic signals for distance measurement. Ultrasonic waves are mechanical waves with a vibration frequency exceeding 20kHz. Ultrasonic waves have the characteristics of high frequency, short wavelength, minimal diffraction, good directionality, and the ability to propagate in a directional manner as rays. Ultrasonic waves have a strong ability to penetrate liquids and solids, especially solids that are opaque to sunlight. Using ultrasonic sensors for distance measurement can reduce interference caused by objects blocking each other, thereby improving distance measurement accuracy.

[0266] Laser sensors use lasers to measure distance. Their advantages include contactless, long-distance measurement, high speed, high accuracy, a large range, and strong resistance to light and electrical interference.

[0267] Infrared sensors are sensors that use infrared rays as a medium for distance measurement. They have the characteristics of wide measurement range, short response time, and high frequency response, and are suitable for harsh industrial environments.

[0268] The position of the distance sensor can be set according to the device type of the first device 100 and the actual application scenario. Figure 7 As shown, assuming that the first device 100 is a laptop computer, for ease of operation, the distance sensor can be set at the lower right side of the keyboard operation area of ​​the laptop computer.

[0269] When the distance sensor of the first device 100 is in working state, the distance sensor can periodically send a ranging signal through the transmitting antenna, and receive an echo signal through the receiving antenna. The echo signal is a signal reflected by the object to be identified after the ranging signal contacts the object to be identified.

[0270] The time interval between two adjacent transmissions of ranging signals by the first device 100 is a detection cycle.

[0271] The signal type of the ranging signal and the echo signal can be determined based on the type of the distance sensor. For example, if the distance sensor is a millimeter-wave radar, the signal type of the ranging signal and the echo signal is a millimeter-wave signal. If the distance sensor is an infrared ranging sensor, the signal type of the ranging signal and the echo signal is infrared.

[0272] When the distance sensor is arranged inside the shell of the first device 100, and the ranging signal of the distance sensor is visible light or invisible light such as infrared light and laser, the shell of the first device 100 should be provided with a light-transmitting port, which is used to provide a channel for the ranging signal and the echo signal to prevent the shell from blocking the ranging signal and the echo signal.

[0273] Furthermore, the ranging signal and the echo signal may be single-frequency signals (also known as point-frequency signals), or the ranging signal and the echo signal may be multi-frequency signals, which is not limited in the embodiment of the present application.

[0274] After the distance sensor collects the echo signal, the first processor exchanges data with the distance sensor, obtains the echo signal collected by the distance sensor, and processes and analyzes the above echo signal to obtain the measured distance of each object around the first device 100.

[0275] In some embodiments, the first processor may process all echo signals to obtain the measured distance of the object corresponding to each echo signal.

[0276] This processing method can obtain the measured distance corresponding to each echo signal, but it requires more echo signals to be processed and the processing time is longer.

[0277] In other embodiments, the first processor may set a signal strength threshold, determine an echo signal with a signal strength greater than the signal strength threshold as a target signal, process the target signal, and obtain the measured distance of the object corresponding to each target signal.

[0278] The echo signal gradually attenuates during transmission. The closer the object is to the distance sensor, the less the echo signal attenuates, and the higher the signal strength of the echo signal received by the distance sensor. The farther the object is from the distance sensor, the more the echo signal attenuates, and the lower the signal strength of the echo signal received by the distance sensor.

[0279] Therefore, after setting a reasonable signal strength threshold, the first processor can coarsely identify whether the object corresponding to each echo signal is outside the detection range based on the signal strength of each echo signal.

[0280] Specifically, if the first processor detects that the signal strength of the echo signal is less than or equal to the signal strength threshold, it means that the object reflecting the echo signal is far away from the distance sensor and the object is not within the detection range, and the first processor does not need to process the echo signal.

[0281] In some specific embodiments, when the signal strength of the echo signal is greater than a signal strength threshold, the first device 100 is triggered to send a motion data request to the second device 200 for authentication. For example, when the signal strength of the echo signal is a first strength, the first device 100 sends a motion data request to the second device 200; when the signal strength of the echo signal is a second strength, the first device 100 does not send a motion data request to the second device 200; the first strength is greater than the second strength, the first strength is greater than the signal strength threshold, and the second strength is less than the signal strength threshold.

[0282] If the signal strength of the echo signal is greater than the signal strength threshold, it means that the object reflecting the echo signal is close to the distance sensor and the object is likely to be within the detection range.

[0283] At this time, the first processor may regard the echo signal as a target signal, process the target signal, and obtain the measured distance corresponding to the target signal.

[0284] The signal strength threshold can be set based on actual needs. For example, if the detection range is 1cm-5cm, and a certain error is allowed, the actual signal strength of the echo signal detected by the distance sensor when the object is 10cm away from the distance sensor can be tested experimentally and set as the signal strength threshold.

[0285] Through the above processing manner, the first processor can process the echo signals in a targeted manner, reduce the number of echo signals that need to be processed, improve processing efficiency, and reduce processing time.

[0286] After obtaining the measured distance corresponding to each echo signal, the first processor can determine whether there is an object to be identified (ie, an object other than the first device 100 ) within the detection range.

[0287] If there is no measured distance within the detection range, it means that in the current detection cycle, the distance sensor has not detected the object to be identified within the detection range. The first device 100 does not need to perform subsequent steps and waits to process the echo signal collected in the next detection cycle.

[0288] If there is a measured distance within the detection range, it means that during the current detection cycle, the distance sensor detects the object to be identified within the detection range.

[0289] In some possible embodiments, the first device 100 may extract signal features of the echo signal, which may include one or more combinations of features such as frequency, wavelength, and amplitude.

[0290] Since the ranging signal contacts objects made of different materials, the signal characteristics of the echo signal reflected by the object are different to a certain extent, the first device 100 can identify the first material corresponding to the signal characteristics of the echo signal.

[0291] When the first material is the same as the material of the second device 200, the first device 100 may send a data transmission instruction to the second device 200. After receiving the data transmission instruction, the second device 200 sends the data to be transmitted to the first device 100.

[0292] When the first material is different from the material of the second device 200 , the first device 100 and the second device 200 do not perform data transmission.

[0293] In some other possible embodiments, the first device 100 may identify the motion state of the second device 200 to determine whether the object to be identified is the second device 200 .

[0294] 3. Motion state recognition and data transmission.

[0295] Since the first device 100 and the second device 200 have established a first wireless connection, when the first device 100 detects an object to be identified within the detection range, the first device 100 can send a motion data request to the second device 200 through the first wireless connection to determine whether the object to be identified within the detection range is the second device 200.

[0296] For example, Figure 8 As shown, it is assumed that the area framed by the dotted circle is the detection range. When the object to be identified is at the first position, the first device 100 detects that the distance of the object to be identified is the first distance, and the first position is within the detection range or at the edge of the detection range (i.e. Figure 8 The first device 100 may send a motion data request to the second device 200 via the first wireless connection.

[0297] When the object to be identified is in the second position, the first device 100 detects that the distance to the object to be identified is the second distance, and the second position is outside the detection range. The first device 100 does not send a motion data request to the second device 200 through the first wireless connection.

[0298] When the second device 200 receives the motion data request, the second device 200 may obtain the motion data of the second device 200 within a target time period from the motion sensor, where the target time period is specified by the motion data request.

[0299] It is understandable that motion data is personal privacy data. Therefore, in some embodiments, the second device 200 may request permission from the user to use the motion data before obtaining and using the motion data.

[0300] Specifically, the second device 200 may display a permission request box on the display screen. After seeing the permission request box, the user may operate a button on the second device 200 to agree or reject the permission request. The button may be a physical button on the second device 200, or a virtual button provided by the second device 200.

[0301] For example, Figure 9As shown, assuming that the second device 200 is a mobile phone. Before the mobile phone uses the motion data, a permission request box can be displayed on the touch screen. The permission request box is used to ask the user whether to grant the mobile phone permission to use the motion data and provide a virtual button to turn on or off the motion data permission.

[0302] When the user clicks the virtual button to the on position, it means that the user agrees to grant the mobile phone permission to use motion data, and the mobile phone has the permission to obtain and transmit motion data; when the user clicks the virtual button to the off position, it means that the user refuses to grant the mobile phone permission to use motion data, and the mobile phone does not have the permission to use and transmit motion data.

[0303] For another example, after the mobile phone displays the permission request box, the user can also click the volume up button of the mobile phone to agree to the permission request, or click the volume down button of the mobile phone to reject the permission request.

[0304] In addition, the second device 200 may request permission from the user to use motion data when the data transmission function is first enabled; alternatively, the second device 200 may request permission from the user to use motion data when the motion data request is first received; alternatively, the second device 200 may request permission from the user to use motion data at other time points. This application does not limit the time point at which the second device 200 requests permission from the user to use motion data.

[0305] In some possible implementations, after acquiring the motion data, the second device 200 may transmit the motion data to the first device 100 via the first wireless connection.

[0306] After acquiring the motion data of the second device 200 , the first device 100 may analyze the motion data of the second device 200 and identify the motion state of the second device 200 .

[0307] For example, see Figure 10 . Figure 10 This is an architectural diagram of a software architecture applicable to the data transmission system of an embodiment of the present application.

[0308] like Figure 10 As shown, the data transmission system includes a first device 100 and a second device 200. The software systems of the first device 100 and the second device 200 can adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture. The embodiment of the present application uses a layered architecture as an example to illustrate the software structure of the first device 100 and the second device 200.

[0309] Among them, the first device 100 and the second device 200 both include an application layer, an application framework layer, a hardware abstraction layer, and a kernel layer.

[0310] The application layer may include a series of application packages, such as data sharing applications, Bluetooth applications, WLAN applications, camera applications, gallery applications, call applications, music applications, video applications, and other applications.

[0311] The application framework layer provides an application programming interface (API) and programming framework for the applications in the application layer. The application framework layer includes some predefined functions.

[0312] The hardware abstraction layer (HAL) runs in user space, shielding the implementation details of the hardware driver module downward and providing hardware access services upward.

[0313] The kernel layer is the layer between hardware and software. The kernel layer includes at least display driver, camera driver, audio driver, and sensor driver.

[0314] In the embodiment of the present application, the application layer of the first device 100 may include multiple applications (for example, a data sharing application 1001, a Bluetooth application), a WLAN application, a camera application, a gallery application, a call application, a music application, a video application, and other applications). The application framework layer of the first device 100 may include a Bluetooth service 1002, a state recognition module 1003, a WLAN service ( Figure 10 The kernel layer of the first device 100 may include a distance sensor driver 1004, a Bluetooth chip driver 1005, a WLAN chip driver 1006, a display driver ( Figure 10 Not shown), audio driver ( Figure 10 Not shown in ) etc.

[0315] The application layer of the second device 200 may include multiple applications (for example, data sharing application 2001, Bluetooth application, WLAN application, camera, gallery, call, music, video and other applications). The application framework layer of the second device 200 may include Bluetooth service 2002, sensor service 2003, WLAN service ( Figure 10 The kernel layer of the second device 200 may include a Bluetooth chip driver 2004, an acceleration sensor driver 2005, a gyroscope sensor driver 2006, a WLAN chip driver 2007, a display driver ( Figure 10 Not shown), audio driver ( Figure 10 Not shown in ) etc.

[0316] The following combination Figure 10 The software architecture shown exemplifies the process of transmitting motion data.

[0317] The HAL layer on the first device 100 sends an echo signal acquisition instruction to the distance sensor driver 1004 of the first device 100. After receiving the echo signal acquisition instruction, the distance sensor driver 1004 may instruct the distance sensor to transmit the echo signal.

[0318] After obtaining the echo signal from the distance sensor, the distance sensor driver 1004 reports the echo signal to the state recognition module 1003 via the HAL layer.

[0319] The state recognition module 1003 can be used to identify the measured distance of an object based on the echo signal. When the state recognition module 1003 detects that the measured distance is within the detection range, the state recognition module 1003 can call the Bluetooth service 1002 to obtain motion data (such as gyroscope sensor data and acceleration sensor data) of the device (i.e., the second device 200) that has established a Bluetooth connection.

[0320] The Bluetooth service 1002 can instruct the Bluetooth chip driver 1005 to control the Bluetooth chip to send a motion data request to the second device 200 .

[0321] After obtaining the motion data request, the Bluetooth chip driver 2004 on the second device 200 can report the motion data request instruction to the Bluetooth service 2002 via the HAL layer.

[0322] The Bluetooth service 2002 may submit a motion data request to the sensor service 2003. The motion data request may include a target time period for the motion data, which may be determined by the first device 100 based on a first moment, where the first moment is the time recorded when the first device 100 detects that the object to be identified is within a detection range.

[0323] The sensor service 2003 may obtain acceleration sensor data from the acceleration sensor through the acceleration sensor driver 2005 , obtain gyroscope sensor data from the gyroscope sensor through the gyroscope sensor driver 2006 , and save the acceleration sensor data and the gyroscope sensor data.

[0324] After receiving the motion data request, the sensor service 2003 can call the Bluetooth service 2002 to send the motion data of the second device 200 within the target time period (including gyroscope sensor data and acceleration sensor data) to the Bluetooth chip of the first device 100 through the Bluetooth chip driver 2004.

[0325] After receiving the motion data of the second device 200, the Bluetooth chip of the first device 100 may report the motion data to the Bluetooth service 1002 via the Bluetooth chip driver 1005. The Bluetooth service 1002 presents the motion data of the second device 200 to the state recognition module 1003.

[0326] The state recognition module 1003 can recognize the motion state of the second device 200 based on the motion data of the second device 200 and present the motion state of the second device 200 to the data sharing application 1001 .

[0327] The motion state can be divided into a moving state and a stationary state. The moving state refers to a state in which the motion data of the second device 200 is greater than a preset amplitude threshold. The stationary state refers to a state in which the motion data of the second device 200 is 0, or the motion data is less than or equal to a preset amplitude threshold.

[0328] The type of motion data can be determined according to the type of motion sensor. Specifically, the motion data can be one or more motion parameters such as speed, angular velocity, acceleration, rotational acceleration, etc.

[0329] When identifying the motion state, the first device 100 can determine the state where the amplitude of the motion data is greater than the preset amplitude threshold (i.e., the above-mentioned first amplitude) as a moving state, and determine the state where the amplitude of the motion data is less than or equal to the preset amplitude threshold as a stationary state.

[0330] For example, assuming that the motion sensor is a gyroscope, the motion data includes one or more of X-axis data, Y-axis data, and Z-axis data of the second device 200. The X-axis data represents the X-axis angular velocity, the Y-axis data represents the Y-axis angular velocity, and the Z-axis data represents the Z-axis angular velocity.

[0331] When the motion data includes three-axis data, if the absolute value of the amplitude of any one of the three-axis data is greater than the preset amplitude threshold, the first device 100 can determine that the second device 200 is in a moving state; if the absolute values ​​of the amplitudes of the three-axis data are all less than or equal to the preset amplitude threshold, the first device 100 can determine that the second device 200 is in a stationary state.

[0332] When the motion data includes any two-axis data, if the absolute value of the amplitude of any one of the above two-axis data is greater than the preset amplitude threshold, the first device 100 can determine that the second device 200 is in a moving state; if the absolute values ​​of the amplitudes of the above two-axis data are both less than or equal to the preset amplitude threshold, the first device 100 can determine that the second device 200 is in a stationary state.

[0333] When the motion data includes any axis data, if the absolute value of the amplitude of the axis data is greater than the preset amplitude threshold, the first device 100 can determine that the second device 200 is in a moving state; if the absolute value of the amplitude of the axis data is less than or equal to the preset amplitude threshold, the first device 100 can determine that the second device 200 is in a stationary state.

[0334] Assuming that the motion sensor is an acceleration sensor, the motion data includes acceleration data of the second device 200 .

[0335] At this time, if the absolute value of the amplitude of the acceleration data is greater than the preset amplitude threshold, the first device 100 can determine that the second device 200 is in a moving state; if the absolute value of the amplitude of the acceleration data is less than or equal to the preset amplitude threshold, the first device 100 can determine that the second device 200 is in a stationary state.

[0336] After identifying the motion state of the second device 200 , the first device 100 may determine whether the motion state of the second device 200 satisfies a preset motion characteristic condition (ie, the above-mentioned target triggering operation).

[0337] In some embodiments, the second device 200 may further determine whether the motion state of the second device 200 satisfies a preset motion characteristic condition. The preset motion characteristic condition may be a motion characteristic of the second device 200 being close to the first device 100. If the motion data of the second device 200 indicates that the second device 200 is constantly spinning, it indicates that the second device 200 is not close to the first device 100 and does not meet the preset motion characteristic condition.

[0338] If the motion state of the second device 200 does not meet the preset motion characteristic conditions, it means that the object to be identified is not the second device 200, or that the motion state of the second device 200 does not meet the conditions for triggering the data transmission function. In this case, the first device 100 and the second device 200 do not activate the data transmission function, and the first device 100 waits to process the echo signal collected in the next detection cycle.

[0339] If the motion state of the second device 200 meets the preset motion characteristic conditions, it means that the object to be identified is the second device 200, and the motion state of the second device 200 meets the conditions for triggering the data transmission function. At this time, the first device 100 and the second device 200 enter the data transmission process, and the first device 100 can send a data transmission instruction to the second device 200.

[0340] After receiving the data transmission instruction, the second device 200 transfers the data to be transmitted to the first device 100 through the second wireless connection.

[0341] It should be noted that the above-mentioned preset motion characteristics can be set according to actual scenarios. Generally speaking, when a user uses the data transmission function, the user will operate the second device 200 to approach the first device 100. At this time, the second device 200 enters the detection range from outside the detection range, and the motion state of the second device 200 changes from a moving state to a stationary state.

[0342] Therefore, in some embodiments, the above-mentioned preset motion feature may be that the second device 200 is in a moving state before entering the detection range, and after entering the detection range, the second device 200 is in a stationary state.

[0343] Specifically, the first device 100 may record a first moment. The first moment is the time when the first device 100 first detects that the object to be identified enters the detection range within the most recent ranging duration. In some embodiments, there may be a delay between the time when the object to be identified is first detected to enter the detection range and when the object to be identified approaches the first device 100.

[0344] The ranging time can be set according to actual needs. For example, the ranging time can be set to 3 seconds, 5 seconds, 7 seconds, 10 seconds, etc. The embodiment of the present application does not limit the setting method of the ranging time.

[0345] If the first device 100 detects that an object to be identified is within the detection range during a detection cycle, and the object to be identified was not within the detection range during the ranging period before the detection cycle, the first device 100 may determine that the object to be identified first entered the detection range during the ranging period and record the time of the detection cycle as the first moment. Alternatively, the first moment may be the moment during the detection cycle when the object to be identified first approaches the distance sensor and the distance to the distance sensor first reaches the first distance.

[0346] For example, assume that the ranging duration is set to 3 seconds. The first device 100 detects that the object to be identified is within the detection range during a certain detection cycle. At this time, the first device 100 finds in the historical records of the distance sensor that the object to be identified was also detected entering the detection range or approaching the distance sensor 5 seconds ago, and was also detected entering the detection range or approaching the distance sensor 8 seconds ago. Since the ranging duration is set to 3 seconds and there is no record of the object to be identified entering the detection range within 3 seconds, the first device 100 can eliminate the interference of the historical records and determine that this is the first time that the object to be identified has entered the detection range or approached the distance sensor within the last 3 seconds. The first device 100 records the start time of the detection cycle as the first moment.

[0347] For another example, assume that the ranging duration is set to 3 seconds. The first device 100 detects that the object to be identified is within the detection range or close to the distance sensor in a certain detection cycle. At this time, the first device 100 finds in the historical records of the distance sensor that the object to be identified was also detected in the previous detection cycle. Because the interval between two adjacent detection cycles is less than the ranging duration, the first device 100 can determine that this is not the first time that the object to be identified has entered the detection range or approached the distance sensor in the last 3 seconds. The first device 100 does not record the start time of the detection cycle as the first moment.

[0348] In one embodiment, after determining the first moment, the first device 100 determines a target time period based on the first moment, and requests motion data within the target time period and / or at the first moment from the second device 200. In this case, the target time period may include a first time period before the first moment and / or a second time period after the first moment. In another embodiment, after determining the first moment, the second device 200 determines the motion state of the second device 200 based on the motion data at the first moment and / or the target time period. In some embodiments, the target time period may be understood as a detection time period, the first time period may be understood as a first detection duration, and the second time period may be understood as a second detection duration.

[0349] The durations of the first time period and the second time period can be set according to actual needs, and the durations of the first time period and the second time period can be the same, or the durations of the first time period and the second time period can be different.

[0350] For example, the first time period can be set to 1 second before the first moment, and the second time period can be set to 3 seconds after the first moment; or, the first time period can be set to 2 seconds before the first moment, and the second time period can also be set to 2 seconds after the first moment.

[0351] Then, when the first device 100 obtains the motion data of the second device 200, the first device 100 can analyze the motion state of the second device 200 before the first moment and the motion state of the second device 200 after the first moment based on the motion data.

[0352] If the second device 200 is in a moving state within a first time period before the first moment, and the second device 200 is in a stationary state after the first moment, the first device 100 can determine that the motion state of the second device 200 meets the preset motion characteristic condition.

[0353] For example, see Figure 11 Assume that the first device 100 is a laptop computer and the second device 200 is a mobile phone. After determining the first time point T2, the laptop computer can determine a first time period (i.e., T0 to T2) and a second time period (i.e., T2 to T4) based on the first time point T2, and determine a target time period (i.e., T0 to T4) based on the first and second time periods. The laptop computer then requests motion data for the target time period (i.e., T0 to T4) from the mobile phone. The motion sensor is a gyroscope, and the motion data is the X-axis angular velocity, Y-axis angular velocity, and Z-axis angular velocity detected by the gyroscope.

[0354] The phone's motion data from T0 to T4 can be divided into three stages. In the first stage, the angular velocity along all three axes remains essentially constant, indicating the phone is stationary. In the second stage, the angular velocity along all three axes fluctuates significantly, indicating the user has picked up and moved the phone close to a laptop. In the third stage, the angular velocity along all three axes remains essentially constant, indicating the phone is stationary on a laptop or desktop.

[0355] For a laptop computer, the laptop computer detects through a distance sensor that the mobile phone is in motion within a first time period (i.e., the time period from T1 to the first moment T2) before the first moment (i.e., T2 in the second stage), and that the mobile phone is in a stationary state (i.e., the time period from T2 to T3 or the third stage) after the first moment. Therefore, the laptop computer can determine that the motion state of the mobile phone meets the preset motion characteristic conditions.

[0356] In some embodiments, if after the first moment or in the third stage, the mobile phone is in motion and the angular velocity data of at least one axis has substantially no fluctuation, the laptop computer may also determine that the motion state of the mobile phone meets a preset motion characteristic condition.

[0357] If the second device 200 is not in a moving state within a first time period before the first moment, or the second device 200 is always in a moving state after the first moment, the first device 100 can determine that the motion state of the second device 200 does not meet the preset motion characteristic conditions.

[0358] For example, please participate Figure 12 Assume that the first device 100 is a laptop computer and the second device 200 is a mobile phone. After determining the first time point T7, the laptop computer can determine a first time period (i.e., T5 to T7) and a second time period (i.e., T7 to T9) based on the first time point T7, and determine a target time period (i.e., T5 to T9) based on the first and second time periods. The laptop computer then requests motion data for the target time period (i.e., T5 to T9) from the mobile phone. The motion sensor is a gyroscope, and the motion data is the X-axis angular velocity, Y-axis angular velocity, and Z-axis angular velocity detected by the gyroscope.

[0359] The phone's motion data from T5 to T9 can be divided into two phases. In the fourth phase, the user was actively operating the phone, resulting in significant fluctuations in the angular velocity along all three axes. In the fifth phase, the user stopped operating the phone and placed it on the table, resulting in essentially no fluctuations in the angular velocity along all three axes. However, during the fifth phase, the user moved their laptop, reducing the distance between the laptop and the phone, bringing the phone into detection range. This places the first moment within the fifth phase.

[0360] For the laptop computer, after detecting that the mobile phone enters the detection range at the first moment (T7 in the fifth stage) through the distance sensor, the laptop computer obtains the motion data of the mobile phone and identifies the motion state of the mobile phone based on the motion data.

[0361] At this time, the laptop detects that the mobile phone is in a stationary state within the first time period before the first moment (i.e., the time period from T6 to T7), and after the first moment (i.e., the time period from T7 to T8). Therefore, the laptop can determine that the motion state of the mobile phone does not meet the preset motion characteristic conditions and does not trigger the data transmission function.

[0362] The first duration can be set according to actual needs. For example, the first duration can be set to 0.1s, 0.5s, 1s, 2s, 3s, etc. The embodiment of the present application does not limit the specific value of the first duration. In some embodiments, the first device 100 can use all or part of the motion data sent by the second device 200 to determine the motion state of the second device 200. For example, the first duration can be less than or equal to the first time period, and the time period from T2 to T3 or the third stage can be less than or equal to the second time period.

[0363] In other embodiments, the above-mentioned preset motion characteristic condition may also be whether the motion state of the second device 200 changes from a moving state to a stationary state after the first device 100 enters the detection range.

[0364] Specifically, the first device 100 may obtain the motion state of the second device 200 after the first moment.

[0365] If, after the first moment, the motion state of the second device 200 changes from a moving state to a stationary state, the first device 100 may determine that the motion state of the second device 200 satisfies a preset motion characteristic condition.

[0366] If after the first moment, the motion state of the second device 200 always remains in a moving state, or the motion state of the second device 200 always remains in a stationary state, or the motion state of the second device 200 changes from a stationary state to a moving state, the first device 100 can determine that the motion state of the second device 200 does not meet the preset motion characteristic conditions.

[0367] In other embodiments, the above-mentioned preset motion characteristic condition may also be that the first device 100 is in motion at the first moment.

[0368] At this time, the target time period is the first moment, the first device 100 requests the motion data of the first moment from the second device 200, and the second device 200 transmits the motion data of the first moment to the first device 100.

[0369] After acquiring the motion data, the first device 100 analyzes the motion data and identifies the motion state of the second device 200.

[0370] If the motion state of the second device 200 at the first moment is a moving state, it indicates that the object to be identified is the second device 200 , and the motion state of the second device 200 meets the condition for triggering the data transmission function.

[0371] At this time, the first device 100 sends a data transmission instruction to the second device 200. After receiving the data transmission instruction, the second device 200 transfers the data to be transmitted to the first device 100 through the second wireless connection.

[0372] If the motion state of the second device 200 at the first moment is a stationary state, it indicates that the object to be identified is not the second device 200, or that the motion state of the second device 200 does not meet the condition for triggering the data transmission function.

[0373] At this time, the first device 100 does not start the data transmission function and waits for the next detection cycle to collect the echo signal.

[0374] In other embodiments, the above-mentioned preset motion characteristic conditions may also be other conditions, and the embodiments of the present application do not limit the specific form of the motion characteristic conditions.

[0375] Furthermore, the data to be transmitted may be selected according to actual circumstances. For example, in some embodiments, the data to be transmitted may be a file that is being used, displayed, or processed by the second device 200.

[0376] Furthermore, the file type of the data to be transmitted may include one or more file types such as documents, pictures, audio, and video. The embodiment of the present application does not limit the file type of the data to be transmitted.

[0377] In addition, the first wireless connection and the second wireless connection may be wireless connections of the same type, or the first wireless connection and the second wireless connection may be wireless connections of different types.

[0378] For example, the first wireless connection can be a Bluetooth connection, and the second wireless connection can be a Wi-Fi connection. The first device 100 and the second device 200 transmit the motion data request of the first device 100 and the motion data of the second device 200 through the Bluetooth connection, and the first device 100 and the second device 200 transmit the data transmission instructions of the first device 100 and the data to be transmitted of the second device 200 through the Wi-Fi connection.

[0379] For another example, the first wireless connection and the second wireless connection may both be Bluetooth connections, and the first device 100 and the second device 200 transmit motion data requests, motion data, data transmission instructions and data to be transmitted via the Bluetooth connection.

[0380] In some other possible implementations, after acquiring the motion data, the second device 200 may also analyze the motion data locally to identify the motion state of the second device 200 .

[0381] After identifying the motion state, the second device 200 may determine whether the motion state of the second device 200 meets a preset motion characteristic condition.

[0382] If the motion state of the second device 200 meets the preset motion characteristic conditions, it means that the object to be identified is the second device 200, and the motion state of the second device 200 meets the conditions for triggering the data transmission function. At this time, the second device 200 sends a first response message to the first device 100.

[0383] After receiving the first response information, the first device 100 sends a data transmission instruction to the second device 200. After receiving the data transmission instruction, the second device 200 transfers the data to be transmitted to the first device 100 through the second wireless connection.

[0384] If the motion state of the second device 200 does not meet the preset motion characteristic conditions, it means that the object to be identified is not the second device 200, or that the motion state of the second device 200 does not meet the conditions for triggering the data transmission function. In this case, the second device 200 can return a second response message to the first device 100.

[0385] After the first device 100 receives the second response information, the first device 100 does not start the data transmission function and waits for processing the next detection cycle to collect the echo signal.

[0386] The setting method of the preset motion characteristic conditions can refer to the description of the above embodiment and will not be repeated here.

[0387] When the second device 200 processes the motion data on its own end, the amount of data that the second device 200 needs to transmit to the first device 100 can be reduced, saving communication resources.

[0388] The data transmission method provided in the embodiment of the present application will be described in detail below in combination with specific application scenarios.

[0389] The following describes in detail the process of pairing and connecting the above devices in conjunction with the application scenario of Bluetooth pairing.

[0390] Application scenario 1:

[0391] Assume that the first device 100 is a laptop computer and the second device 200 is a mobile phone.

[0392] like Figure 13 As shown, when the mobile phone and the laptop are paired with Bluetooth for the first time, the user can operate the mobile phone by pulling down the operation bar from the top of the mobile phone.

[0393] In the operation bar of the mobile phone, options such as "WLAN", "NFC", "Mobile Data", "Vibration", "Auto Rotation", "Airplane Mode", "Do Not Disturb", and "Bluetooth" may be included.

[0394] The user can long press the "Bluetooth" option, and the phone will respond to the user's operation and enter the Bluetooth system interface.

[0395] like Figure 14 As shown, the Bluetooth system interface includes columns such as "Device Name", "Paired Devices", and "Connectable Devices".

[0396] If the Bluetooth function of the mobile phone is turned on, the Bluetooth module of the mobile phone can automatically search for connectable electronic devices around it and display a device list of the electronic devices searched by the mobile phone in the column of connectable devices.

[0397] exist Figure 14 The list of connectable devices shows four electronic devices: "Smart Speaker," "Laptop," "Smart TV," and "Smart Glasses." The user can click on the "Laptop" option.

[0398] like Figure 15 As shown, after the user clicks the option of "laptop", the mobile phone can send a wireless connection request to the laptop in response to the user's operation.

[0399] When the laptop computer agrees to establish a Bluetooth connection, the laptop computer may return a connection agreement message to the mobile phone, and the mobile phone and the laptop computer establish a Bluetooth connection, completing the first Bluetooth pairing.

[0400] Afterwards, if the mobile phone and laptop are within the Bluetooth connection range and both the mobile phone and laptop have Bluetooth turned on, the mobile phone and laptop can automatically establish a Bluetooth connection and pair without the user having to repeat the above operations.

[0401] Application scenario 2:

[0402] See also Figure 16 , assuming that the first device 100 is a laptop computer 201, assuming that the second device 200 is a mobile phone 202, the laptop computer 201 and the mobile phone 202 establish a Bluetooth connection, and the detection range is set to 1cm-10cm.

[0403] The laptop computer 201 is provided with a millimeter wave radar, which periodically transmits ranging signals and receives echo signals, and transmits the echo signals to the first processor (i.e., the processor of the laptop computer 201) for processing to obtain the measured distance corresponding to each echo signal.

[0404] like Figure 17 As shown, during a certain period of time, the mobile phone 202 moves above the laptop computer 201 from point a1 to point c1. At point b1, the distance between the distance sensor of the mobile phone 202 and the laptop computer 201 is the shortest, which is 43 cm.

[0405] The laptop computer 201 detects through the millimeter wave radar that the mobile phone 202 is always out of the detection range, so the laptop computer 201 does not start the data transmission function.

[0406] From the above application scenarios, it can be seen that the first device 100 can identify whether the user wants to transmit data based on the actual measured distance between the object and the distance sensor and the detection range, thereby avoiding the first device 100 from mistakenly triggering the data transmission function due to the movement of a distant object, thereby improving the accuracy of data transmission.

[0407] Application scenario three:

[0408] See also Figure 18 , assuming that the first device 100 is a laptop computer 301, the second device 200 is a mobile phone 302, the laptop computer 301 and the mobile phone 302 establish a Bluetooth connection, and the detection range is set to 1cm-10cm.

[0409] The laptop computer 301 is provided with a millimeter wave radar, which periodically transmits ranging signals and receives echo signals, and transmits the echo signals to the first processor (i.e., the processor of the laptop computer 301) for processing to obtain the measured distance corresponding to each echo signal.

[0410] like Figure 19 As shown, during a certain period of time, mobile phone 302 is placed on a table, and the user's hand moves over laptop computer 301, from point a2 to point d2. At point b2, the distance between the hand and the distance sensor of laptop computer 301 is 10 cm. At point c2, the distance between the hand and the distance sensor of laptop computer 301 is the closest, at 5 cm.

[0411] When the hand is at point b2, the laptop computer 301 detects through the millimeter wave radar that the object to be identified enters the detection range and records the first moment.

[0412] At this time, the laptop computer 301 sends a motion data request to the mobile phone 302 via the Bluetooth connection. After receiving the motion data request, the mobile phone 302 transmits the motion data within the last five seconds to the laptop computer 301 via the Bluetooth connection.

[0413] The notebook computer 301 processes the motion data of the mobile phone 302 to obtain the motion status of the mobile phone 302 .

[0414] The laptop computer 301 detects that the mobile phone 302 is in a stationary state before and after the first moment, which does not meet the preset motion characteristic condition, indicating that the object to be identified entering the detection range is not the mobile phone 302. Therefore, the laptop computer 301 does not start the data transmission function.

[0415] It can be seen from the above application scenarios that even if there is an object to be identified within the detection range, the object is not necessarily the second device 200. Therefore, in the data transmission method of the embodiment of the present application, after detecting the object to be identified, the first device 100 can request motion data from the second device 200, and determine whether to trigger the data transmission function based on the motion data of the second device 200, thereby avoiding the erroneous triggering of the data transmission function due to objects other than the second device 200 passing through the detection range, thereby improving the accuracy of data transmission.

[0416] Application scenario four:

[0417] See also Figure 20 , assuming that the first device 100 is a laptop computer 401, the second device 200 is a mobile phone 402, the laptop computer 401 and the mobile phone 402 establish a Bluetooth connection, and the detection range is set to 1cm-10cm.

[0418] At a first moment, the user places the mobile phone 402 on the keyboard area of ​​the laptop computer 401 , and the mobile phone 402 is located above the millimeter-wave radar of the laptop computer 401 .

[0419] At the second moment, the user activates the data transmission function of the laptop computer 401. At this point, the laptop computer 401 activates the millimeter-wave radar, which periodically transmits ranging signals and receives echo signals. The echo signals are then transmitted to the first processor (i.e., the processor of the laptop computer 401) for processing, obtaining the actual measured distance corresponding to each echo signal.

[0420] Then, the laptop computer 401 detects that the measured distance corresponding to the echo signal reflected by the mobile phone 402 is 0.5 cm, indicating that the object to be identified is within the detection range. The laptop computer 401 records the first moment and sends a motion data request to the mobile phone 402 via the Bluetooth connection.

[0421] After receiving the motion data request, the mobile phone 402 transmits the motion data within the last five seconds to the laptop computer 401 via the Bluetooth connection.

[0422] The notebook computer 401 processes the motion data of the mobile phone 402 to obtain the motion status of the mobile phone 402 .

[0423] Laptop computer 401 detects that mobile phone 402 is stationary before and after the first moment, which does not meet the preset motion characteristic condition. This indicates that the object to be identified entering the detection range is not mobile phone 402, or that mobile phone 402 has not performed any action to trigger the data transmission function. Therefore, laptop computer 401 does not activate the data transmission function.

[0424] As can be seen from the above application scenarios, there may be scenarios where the second device 200 is within the detection range, but the user does not want to perform data transmission. Therefore, in the data transmission method of the embodiment of the present application, after detecting the object to be identified, the first device 100 can request motion data from the second device 200 and determine whether to trigger the data transmission function based on the motion data of the second device 200. This avoids the data transmission function being mistakenly triggered due to the second device 200 being within the detection range, thereby improving the accuracy of data transmission.

[0425] Application scenario five:

[0426] See also Figure 21 , assuming that the first device 100 is a laptop computer 501, the second device 200 is a mobile phone 502, the laptop computer 501 and the mobile phone 502 establish a Bluetooth connection, and the detection range is set to 0.5cm-10cm.

[0427] The laptop computer 501 is provided with a millimeter wave radar, which periodically transmits ranging signals and receives echo signals, and transmits the echo signals to the first processor (i.e., the processor of the laptop computer 501) for processing to obtain the actual measured distance corresponding to each echo signal.

[0428] like Figure 22 As shown, at the third moment, the user is viewing a picture on the mobile phone 502 and wants to transfer the picture to the laptop computer 501. At this time, the user can move the mobile phone 502 and place the mobile phone 502 above the millimeter wave radar of the laptop computer 501.

[0429] The laptop computer 501 detects that the object to be identified enters the detection range through the millimeter wave radar, records the first moment, and sends a motion data request to the mobile phone 502 through the Bluetooth connection.

[0430] After receiving the motion data request, the mobile phone 502 transmits the motion data within the last five seconds to the laptop computer 501 .

[0431] The laptop computer 501 processes the motion data of the mobile phone 502 to obtain the motion status of the mobile phone 502 .

[0432] The laptop 501 detects that the mobile phone 502 is in a moving state within 0.3ms before the first moment, and that the mobile phone 502 is in a stationary state after the first moment. Therefore, the laptop 501 determines that the object to be identified is the mobile phone 502 and starts the data transmission function.

[0433] At this time, the laptop computer 501 sends a data transmission instruction to the mobile phone 502 via the Bluetooth connection and turns on the Wi-Fi function.

[0434] After the mobile phone 502 obtains the data transmission instruction via the Bluetooth connection, it turns on the Wi-Fi function, establishes a Wi-Fi connection with the laptop 501, and transmits the picture currently displayed on the mobile phone 502 interface to the laptop 501 via the Wi-Fi connection.

[0435] After receiving the picture transmitted by the mobile phone 502, the laptop computer 501 saves the picture and completes the data transmission operation.

[0436] It can be seen from the above application scenarios that when the user wants the first device 100 and the second device 200 to perform data transmission, the user can move the second device 200 so that the second device 200 contacts the first device 100, or make the second device 200 hover above the first device 100, thereby triggering the data transmission function of the first device 100 and the second device 200.

[0437] When using the data transmission method provided in the present application, a distance sensor needs to be set on the first device 100. However, there is no need to set an NFC chip on the first device 100 and the second device 200, which reduces the hardware requirements for the second device 200. In addition, the cost of the distance sensor is much lower than that of the NFC chip, which reduces the cost of setting the distance sensor on the first device 100, reduces the restrictions on the application scenarios of the "one-touch to transfer" function, and can conveniently trigger the data transmission function, which has strong ease of use and practicality.

[0438] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.

[0439] Hereinafter, another data transmission method provided by the embodiment of the present application will be described in detail from the perspective of the first device. Figure 23 , the data transmission method provided in this embodiment includes:

[0440] S2301: The first device detects the actual distance of the object to be identified through a distance sensor;

[0441] S2302: When the measured distance is the first distance, the first device sends a first request to the second device, wherein the second device establishes a wireless connection with the first device;

[0442] S2303: The second device receives the first request, and when the second device performs the target triggering operation, the second device sends a first response message to the first device;

[0443] S2304: In response to the first response information, the first device and the second device perform data transmission.

[0444] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.

[0445] Those skilled in the art can clearly understand that, for the convenience and brevity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In actual applications, the above-mentioned functions can be distributed and completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated into one processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0446] In the above embodiments, the description of each embodiment has its own focus. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant description of other embodiments.

[0447] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0448] In the embodiments provided in the present application, it should be understood that the disclosed devices / electronic devices and methods can be implemented in other ways. For example, the device / electronic device embodiments described above are schematic. For example, the division of the modules or units is a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0449] The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.

[0450] In addition, the functional units in the various embodiments of the present application may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.

[0451] If the integrated module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the process in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and when the computer program is executed by the processor, it can implement the steps of the above-mentioned various method embodiments. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.

[0452] Finally, it should be noted that the above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any changes or substitutions within the technical scope disclosed in this application should be included in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the claims.

Claims

1. A data transmission method, characterized in that: Applied to a first device, comprising: The first device detects the measured distance of the object to be identified through a distance sensor; When the measured distance is the first distance, the first device sends a first request to the second device, wherein the second device establishes a wireless connection with the first device; wherein, the first request is used to confirm whether the object to be identified is the second device; When the second device performs a target triggering operation, the first device receives a first response message returned by the second device; the first response message includes motion data of the second device; and In response to the first response information, data is transmitted between the first device and the second device.

2. The method according to claim 1, characterized in that The data transmission between the first device and the second device includes: The first device sends a data transmission instruction to the second device; The first device receives the data to be transmitted returned by the second device, or the first device sends the data to be transmitted to the second device.

3. The method according to claim 1, characterized in that Also includes: When the second device does not perform the target triggering operation, the first device receives the second response information returned by the second device, and no data transmission is performed between the first device and the second device.

4. The method according to claim 1, wherein The first response information is used to instruct data transmission.

5. The method according to claim 1, wherein In response to the first response information, the first device and the second device perform data transmission, including: determining, by the first device, a motion state of the second device according to the first response information; When the motion status indicates that the second device has performed the target triggering operation, the first device sends a data transmission instruction to the second device.

6. The method according to claim 4, characterized in that The motion data is the X-axis angular velocity, the Y-axis angular velocity, and the Z-axis angular velocity detected by a gyroscope of the second device; and / or the motion data is the acceleration data detected by an acceleration sensor of the second device.

7. The method according to any one of claims 1 to 6, characterized in that The target triggering operation includes the second device moving at a detection moment or a detection time period; The detection moment is the moment when the distance sensor detects that the measured distance is the first distance; The detection time period is a first detection time length before the detection moment, or the detection time period is a second detection time length after the detection moment, or the detection time period includes the first detection time length before the detection moment and the second detection time length after the detection moment.

8. The method according to claim 7, characterized in that The amplitude of the movement is greater than the first amplitude.

9. The method according to claim 1, characterized in that The distance sensor is a combination of any one or more of a millimeter wave radar, an ultrasonic sensor, a laser sensor, and an infrared sensor.

10. The method according to claim 1, characterized in that The first device sends a first request to the second device via a Bluetooth connection.

11. The method according to claim 1, characterized in that The first device and the second device are connected via Wi-Fi for data transmission.

12. A data transmission method, characterized in that: Applied to the second device, comprising: The second device receives a first request sent by the first device, wherein the first device and the second device have established a wireless connection, the first device detects a measured distance of an object to be identified using a distance sensor, and when the measured distance is a first distance, the first device sends the first request; wherein the first request confirms whether the object to be identified is the second device; In response to the first request, the second device sends a first response message to the first device, wherein the second device sends the first response message when the second device performs a target triggering operation; the first response message includes motion data of the second device; and Data is transmitted between the first device and the second device.

13. The method according to claim 12, characterized in that The data transmission between the first device and the second device includes: The second device receives the data transmission instruction sent by the first device; The second device sends the data to be transmitted to the first device, or the second device receives the data to be transmitted sent by the first device.

14. The method according to claim 12, characterized in that Also includes: When the second device does not perform the target triggering operation, the second device sends second response information to the first device, and no data is transmitted between the first device and the second device.

15. The method according to claim 12, characterized in that The first response information is used to instruct data transmission.

16. The method according to claim 15, characterized in that The second device sending first response information to the first device includes: The second device sends the first response information according to the motion state of the second device.

17. The method according to claim 12, characterized in that The motion data is the X-axis angular velocity, the Y-axis angular velocity, and the Z-axis angular velocity detected by a gyroscope of the second device; and / or the motion data is the acceleration data detected by an acceleration sensor of the second device.

18. The method according to any one of claims 12 to 17, characterized in that The target triggering operation includes the second device moving at a detection moment or a detection time period; The detection moment is the moment when the distance sensor detects that the measured distance is the first distance; The detection time period is a first detection time length before the detection moment, or the detection time period is a second detection time length after the detection moment, or the detection time period includes the first detection time length before the detection moment and the second detection time length after the detection moment.

19. A data transmission method, characterized in that: include: The first device detects the measured distance of the object to be identified through a distance sensor; When the measured distance is the first distance, the first device sends a first request to the second device, wherein the second device establishes a wireless connection with the first device; wherein, the first request is used to confirm whether the object to be identified is the second device; The second device receives the first request, and when the second device performs a target triggering operation, the second device sends a first response message to the first device; the first response message includes motion data of the second device; and In response to the first response information, data is transmitted between the first device and the second device.

20. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the method according to any one of claims 1 to 11 is implemented; or when the processor executes the computer program, the method according to any one of claims 12 to 18 is implemented.

21. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 11 is implemented; or when the computer program is executed by a processor, the method according to any one of claims 12 to 18 is implemented.

22. A chip system, characterized in that: The chip system includes a memory and a processor, and the processor executes a computer program stored in the memory to implement the method according to any one of claims 1 to 11, or implements the method according to any one of claims 12 to 18.

Citation Information

Patent Citations

  • Screen projection method and computing equipment

    CN111061445A

  • Systems and methods for peer to peer communication

    US9621659B1