Content transmission methods, equipment and media

By combining magnetic sensors with Bluetooth or ultrasonic ranging and user gesture operation, the problems of cumbersome data transmission and misjudgment between terminal devices are solved, enabling convenient and accurate content sharing, and suitable for transmission between terminal devices over longer distances.

CN115280263BActive Publication Date: 2026-05-26HUAWEI TECH CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
HUAWEI TECH CO LTD
Filing Date
2021-03-15
Publication Date
2026-05-26

AI Technical Summary

Technical Problem

Existing data transmission methods between terminal devices require cumbersome operations and are prone to misjudging the direction of data transmission, affecting user experience.

Method used

By using magnetic sensors in terminal devices and Bluetooth or ultrasonic ranging technology to identify the distance between devices, and combining this with user gestures, the system determines the content and direction of transmission, enabling convenient and accurate content sharing.

Benefits of technology

It simplifies the data transmission process, avoids misjudgment of transmission direction, and enables convenient two-way content transmission between terminal devices, making it suitable for transmission over longer distances.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115280263B_ABST
    Figure CN115280263B_ABST
Patent Text Reader

Abstract

A content transmission method includes: a first device determining that the distance between itself and a second device is less than a distance threshold; the first device prompting a user that content transmission is possible between the first and second devices; the first device recognizing a user's gesture operation on the first device and determining the content to be transmitted and the transmission direction of the content between the first and second devices based on the recognized gesture operation; and the first device receiving or sending the content to the second device according to the determined transmission direction. This content transmission method simplifies data transmission operations and avoids misjudgment of the data transmission direction.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application claims priority to Chinese Patent Application No. 202010219576.2, filed on March 25, 2020, entitled "Content Transmission Method, Apparatus and Medium", the entire contents of which are incorporated herein by reference. Technical Field

[0002] This application relates to a content transmission method, device, and medium. Background Technology

[0003] Since the widespread adoption of terminal devices, each user may own multiple terminal devices (such as mobile phones, tablets, and desktop computers). Content synchronization and transmission between terminal devices are becoming increasingly frequent, and the ease and convenience of transmission methods will greatly affect the user's work and life efficiency.

[0004] Currently, there are two main ways to transmit data between terminal devices: one is short-range transmission, such as using Universal Serial Bus (USB), Wi-Fi, Bluetooth, and Near Field Communication (NFC) as direct transmission channels; the other is network transmission, which uses local area network (LAN) transmission software and internet social networking software to complete data transmission between terminal devices. Both transmission methods generally require cumbersome operations from the user. Summary of the Invention

[0005] The purpose of this application is to provide a simple and easy-to-use content delivery solution.

[0006] The first aspect of this application provides a content transmission method, which may include: a first device determining that the distance between itself and a second device is less than a distance threshold; the first device prompting a user that content transmission is possible between the first device and the second device; the first device recognizing a user's gesture operation on the first device and determining the transmission content and the transmission direction of the transmission content between the first device and the second device based on the recognized gesture operation; and the first device receiving the transmission content from the second device or sending the transmission content to the second device according to the determined transmission direction.

[0007] The content transmission method provided in the embodiments of this application can simplify data transmission operations and avoid misjudgment of data transmission direction.

[0008] Furthermore, the first device determines the transmission content and the transmission direction of the transmission content between the first device and the second device based on the recognized gesture operation, which may include: the first device determines the first transmission content based on the recognized first gesture operation, and determines that the transmission direction of the first transmission content is from the first device to the second device.

[0009] Alternatively, the first device may determine the transmission content and the transmission direction of the transmission content between the first device and the second device based on the recognized gesture operation. This may include: the first device determining the second transmission content based on the recognized second gesture operation, and determining that the transmission direction of the second transmission content is from the second device to the first device.

[0010] By using different gestures to correspond to different transmission directions, errors in the content shared between the first and second devices can be avoided due to misjudgment of the transmission direction. For example, a user may have intended for the data to be transmitted from the second device to the first device, but the data from the first device was transmitted to the second device instead.

[0011] Furthermore, the aforementioned gesture operation can be the way the user moves while holding the first device, such as moving the user to the left, right, forward, or backward. The way the user moves while holding the first device can be obtained by detecting changes in the device's acceleration, which can be detected by devices such as a gravity sensor within the device.

[0012] Furthermore, the aforementioned gesture operation can be a user's touch operation on the touch screen of the first device, such as a user swiping left, swiping right, or long-pressing on the device's touch screen.

[0013] Furthermore, the aforementioned determination by the first device that the distance between it and the second device is less than a distance threshold may include: the first device monitoring changes in the intensity of its magnetic induction signal, and determining that the distance between the first device and the second device is less than the distance threshold when the change in the intensity of the magnetic induction signal exceeds a preset intensity change threshold. In this embodiment, the intensity of the magnetic induction signal is used as a trigger signal, and the ranging is triggered by changes in the intensity of the magnetic induction signal.

[0014] Furthermore, the aforementioned determination of the distance between the first device and the second device by the first device may include: the first device determining the distance between itself and the second device by at least one of various ranging methods such as Bluetooth ranging, millimeter wave ranging, and ultrasonic ranging.

[0015] Furthermore, the process of determining the distance between the first device and the second device via Bluetooth ranging can specifically include: the first device sending a first Bluetooth broadcast signal; the first device receiving a second Bluetooth broadcast signal and information related to a second distance sent by the second device; wherein the second Bluetooth broadcast signal is sent by the second device in response to receiving the first Bluetooth broadcast signal, and the information related to the second distance is used to characterize the second distance, which is the second distance between the first device and the second device calculated by the second device based on the received first Bluetooth broadcast signal; the first device obtaining a first distance based on the received second Bluetooth broadcast signal, wherein the first distance is the first distance between the first device and the second device calculated by the first device based on the signal strength of the second Bluetooth broadcast signal; and determining the larger of the first distance and the second distance as the distance between the first device and the second device.

[0016] The content transmission method provided in the first aspect of this application simplifies the data transmission process and, by using gesture recognition to determine the transmission direction and content, enables bidirectional transmission between two devices while effectively preventing errors in the transmission direction.

[0017] A second aspect of this application provides a content transmission apparatus having the functionality to implement the method provided in the first aspect or any implementation thereof. The functionality can be implemented in hardware or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the aforementioned functionality.

[0018] A third aspect of this application provides a machine-readable medium that may store instructions that, when executed by a machine, enable the machine to perform a method as provided in the first aspect or any implementation thereof.

[0019] A fourth aspect of this application provides an apparatus comprising: a memory and a processor, wherein the memory stores instructions, and the processor reads and executes the instructions in the memory such that the apparatus performs: determining that the distance between itself and a second device is less than a distance threshold; prompting a user to perform a gesture operation on the apparatus to transmit content, wherein the apparatus is capable of recognizing at least two gesture operations performed by the user on the apparatus, indicating that content transmission is possible between the apparatus and the second device; recognizing the user's gesture operations on the apparatus and determining, based on the recognized gesture operations, content to be transmitted and a transmission direction of the content between the apparatus and the second device; and receiving the content from the second device or sending the content to the second device according to the determined transmission direction.

[0020] The fifth aspect of this application provides a system that may include the apparatus and second apparatus provided as described in the fourth aspect or any implementation thereof.

[0021] A sixth aspect of this application provides a computer program product that may include program code. When the computer program product is executed by a controller, the controller performs the method provided by the first aspect or any implementation thereof. The computer program product may be a software installation package, and when the method provided by the first aspect or any implementation thereof is required, the computer program product may be downloaded to the controller and run on the controller.

[0022] The content sharing schemes provided in the various embodiments of this application simplify the data transmission process; furthermore, by using gesture recognition to determine the transmission direction and content, bidirectional transmission between two devices is achieved, while effectively avoiding transmission direction errors. Moreover, compared to methods such as NFC touch, which can only be applied to very short transmission distances, the scheme provided in this application can be used over much longer distances. Attached Figure Description

[0023] Figure 1 This illustrates an example of a scenario where content is transmitted between terminal devices over short distances.

[0024] Figure 2 A flowchart illustrating the interaction process of sharing content between a mobile phone and a computer according to an embodiment of this application is shown.

[0025] Figure 3 A coordinate schematic diagram of a gravity sensor in a mobile phone according to an embodiment of this application is shown;

[0026] Figure 4 This paper illustrates a specific implementation of sharing content between a mobile phone and a computer according to an embodiment of this application;

[0027] Figure 5 A schematic diagram of the structure of a terminal device according to an embodiment of this application is shown;

[0028] Figure 6 A schematic diagram of an example computing system according to an embodiment of this application is shown;

[0029] Figure 7 A schematic diagram of a terminal device according to an embodiment of this application is shown;

[0030] Figure 8 A schematic diagram of a terminal device according to another embodiment of this application is shown. Detailed Implementation

[0031] The present application will be further described below with reference to specific embodiments and accompanying drawings. It is to be understood that the specific embodiments described herein are merely for explaining the present application and not for limiting it. Furthermore, for ease of description, the accompanying drawings show only the parts relevant to the present application, and not all of the structures or processes. It should be noted that in this specification, similar reference numerals and letters denote similar items in the following drawings.

[0032] The illustrative embodiments of this application include, but are not limited to, content transmission methods, devices, and media.

[0033] To make the objectives, technical solutions, and advantages of this application clearer, the embodiments of this application will be described in further detail below with reference to the accompanying drawings. In the drawings, letters following reference numerals, such as "100a," indicate references to elements having that specific reference numeral. Reference numerals without subsequent letters in the text, such as "100," indicate general references to embodiments of the elements having that reference numeral.

[0034] Currently, in existing transmission technologies, data transmission between terminal devices generally requires users to perform multiple cumbersome steps. For example, if a first terminal device wants to share content with a second terminal device, the user typically needs to perform several steps on the first terminal device, such as selecting the content to be transmitted, finding, discovering, and selecting the target device, clicking share, and then completing the transmission. The sharing process is quite cumbersome. Some methods simplify multiple steps into a single sharing step (such as using NFC touch, voice, ultrasound, or shortcut keys to share data in one step), but these methods are very prone to misjudging the data sharing direction. For example, a user may intend to transmit data from the first terminal device to the second terminal device, but due to accidental touches or misoperations, the data from the second terminal device may be transmitted to the first terminal device instead, affecting the user experience.

[0035] The embodiments of this application aim to provide a solution for sharing content based on distance and gestures, simplifying the sharing operation while avoiding misjudgment of data transmission direction. The content sharing method provided by the embodiments of this application is applicable to content sharing between terminal devices, such as content synchronization and transmission between two terminal devices.

[0036] Figure 1 This illustrates an example of a scenario where terminal devices share content at close range.

[0037] like Figure 1 As shown, according to some embodiments of this application, a data sharing system 10 is provided. The data sharing system 10 may include two terminal devices 100, such as a mobile phone 100a and a computer 100b. A user can hold the mobile phone 100a close to the computer 100b to achieve close-range content sharing.

[0038] In such Figure 1 In the data sharing system 10 shown, mobile phone 100a may include a magnetic sensor, while computer 100b includes a large number of magnetic components. In a stable state where there are no magnetic components or devices around mobile phone 100a, the intensity of the magnetic induction signal sensed by the magnetic sensor is also stable. However, when mobile phone 100a is close to computer 100b, the magnetic sensor of mobile phone 100a is affected by the magnetic components of computer 100b, causing drastic fluctuations in the intensity of the magnetic induction signal at mobile phone 100a. Therefore, a trigger condition can be set by the change in the intensity of the magnetic induction signal detected by mobile phone 100a exceeding a certain intensity change threshold. Subsequently, the two terminal devices 100 can verify whether the distance between them is close enough via Bluetooth broadcast or ultrasound. If the distance between the two terminal devices is within a preset range, transmission is triggered. Then, the user's gesture is used to determine the transmission direction of data between mobile phone 100a and computer 100b, thereby realizing content sharing between the two terminal devices. The embodiments of this application aim to accurately identify the distance between devices based on magnetic sensors, Bluetooth or ultrasonic capabilities in the terminal device, and in conjunction with user gestures, to achieve convenient and accurate content sharing between two terminal devices.

[0039] According to some embodiments of this application, the terminal device 100 is not limited to... Figure 1 The mobile phone 100a and computer 100b shown can be various computing devices including memory and hardware processors. Examples of terminal device 100 may include: mobile phones, cameras, tablet computers, desktop computers, laptop computers, in-vehicle terminals, smart voice terminals, portable game consoles, portable music players, reader devices, wearable devices, smart home devices, augmented reality (AR) devices, virtual reality (VR) devices, and other electronic devices. Exemplary embodiments of terminal device 100 include, but are not limited to, various electronic devices running iOS, Android, Microsoft, or other operating systems.

[0040] In some embodiments, terminal device 100 may be a wearable device worn by a user. For example, terminal device 100 may be a watch, bracelet, jewelry, glasses, etc., or as part of them. In various embodiments, the user may view messages on the display of terminal device 100 or access messages via the device's speaker or other output device. In another example, the user may access messages via headphones coupled to or as part of terminal device 100, the terminal device 100's speaker, the terminal device 100's haptic feedback element, etc.

[0041] Terminal device 100 can interact with other devices via a network. In various embodiments, the aforementioned network can be a wired network or a wireless network, and can have many different configurations. The aforementioned network can include various interconnected data paths such as a local area network (LAN) and a wide area network (WAN) (e.g., the Internet). The network can also be coupled to or include portions of a telecommunications network for transmitting data using various communication protocols. In some embodiments, the network may also include Bluetooth communication networks, Wi-Fi or cellular communication networks for transmitting and receiving data.

[0042] A detailed structural example of the terminal device 100 will be provided later. Figures 5 to 8 Please provide a detailed explanation.

[0043] The following is combined with Figure 2 and Figure 4 ,by Figure 1 Taking mobile phone 100a and computer 100b as examples, the process of sharing content between terminal devices 100 is described in detail.

[0044] According to the embodiments of this application, Figure 2 The interactive process of sharing content between mobile phone 100a and computer 100b is shown.

[0045] First, S1: Mobile phone 100a and computer 100b are brought close together. They identify each other via Bluetooth and establish a long-term connection, for example, a Bluetooth Low Energy (BLE) long-term connection. In some implementations, the mobile phone and computer can communicate via... Figure 5 The wireless communication module 160 shown, or other similar modules, are used for communicative coupling to establish a BLE long connection.

[0046] S2: After the connection is established, the two terminal devices first trigger the data transmission intention. The mobile phone 100a monitors the change in the magnetic induction signal strength of the mobile phone 100a in real time through the internal magnetic sensor.

[0047] In an embodiment of the present invention, the magnetic sensor in mobile phone 100a is utilized to detect the magnetic field strength in the current environment. When a magnetic interference source approaches, the magnetic sensor can identify abnormal changes in the current magnetic field strength data. Since devices such as computers themselves are complex magnetic fields, and computer 100b contains numerous magnetic components, it can certainly become a magnetic interference source when computer 100b approaches mobile phone 100a. This application uses the magnetic sensor in mobile phone 100a to detect magnetic interference sources to identify whether a device is approaching. When no magnetic interference source is approaching mobile phone 100a, the intensity of the magnetic induction signal detected by mobile phone 100a is relatively stable. However, when computer 100b approaches mobile phone 100a, the intensity of the magnetic induction signal detected by mobile phone 100a will exhibit drastic changes or fluctuations. By monitoring whether the change in magnetic induction signal intensity exceeds a preset intensity change threshold, the severity of the change or fluctuation can be determined, thereby identifying whether a magnetic interference source is approaching.

[0048] S3: When computer 100b approaches mobile phone 100a, the magnetic sensor on mobile phone 100a will detect a drastic change in the intensity of the magnetic induction signal. This drastic change in the intensity of the magnetic induction signal can serve as a trigger event for the intention to share content between mobile phone 100a and computer 100b.

[0049] S4: If the change in the intensity of the magnetic induction signal detected by mobile phone 100a exceeds the preset intensity change threshold (i.e., determined as yes in S3), it indicates that the intensity of the magnetic induction signal detected by mobile phone 100a has changed drastically. This means that there is a magnetic interference source near mobile phone 100a. However, the detection of magnetic interference by mobile phone 100a does not necessarily mean that other terminal devices such as computer 100b are approaching. The magnetic interference source could be computer 100b, or other devices or components, such as magnets. To verify whether the source approaching mobile phone 100a is computer 100b, which is permanently connected to mobile phone 100a, or other magnetic interference sources, mobile phone 100a can turn on Bluetooth broadcast signal to measure the distance between mobile phone 100a and computer 100b via Bluetooth.

[0050] S5-S6: A long Bluetooth connection has been established between mobile phone 100a and computer 100b. Computer 100b can receive Bluetooth signals sent by mobile phone 100a. Based on the strength of the received Bluetooth signal, it determines the distance between itself and mobile phone 100a, and compares the determined distance with a preset threshold to determine whether the distance between itself and mobile phone 100a is less than the preset distance threshold.

[0051] Computer 100b can calculate the distance D between itself and mobile phone 100a based on the Received Signal Strength Indicator (RSSI) of Bluetooth, as shown in the following formula (1):

[0052] D=10^((abs(RSSI)-A) / (10*n))(1)

[0053] in:

[0054] D is the distance between the transmitter (i.e., mobile phone 100a) and the receiver (i.e., computer 100b);

[0055] RSSI is the received signal strength (negative value);

[0056] A represents the signal strength when the transmitter (i.e., mobile phone 100a) and receiver (i.e., computer 100b) are 1 meter apart;

[0057] n is the environmental degradation factor.

[0058] S7: To improve the accuracy of distance measurement, distance verification can be enabled on both the mobile phone 100a and the computer 100b. That is, after the computer 100b receives the Bluetooth signal from the mobile phone 100a, it also enables Bluetooth broadcasting.

[0059] S8-S9: On the mobile phone 100a, the mobile phone 100a can also determine the distance between itself and the computer 100b based on the strength of the Bluetooth signal received from the computer 100b, and determine whether the distance between itself and the computer 100b is less than the preset distance threshold.

[0060] In this way, the two terminal devices, mobile phone 100a and computer 100b, can further improve the accuracy of distance monitoring through dual verification. If both mobile phone 100a and computer 100b determine that the distance between them is less than a preset distance threshold, it proves that the drastic change in the magnetic induction signal strength on mobile phone 100a is not a false trigger caused by other magnetic interference sources, but rather a magnetic interference event caused by the proximity of mobile phone 100a and computer 100b.

[0061] The method provided in the embodiments of the present invention, which further verifies the security of subsequent content transmission by judging the distance between terminal devices after a content sharing event is triggered by magnetic induction, can improve the security of subsequent content transmission. Otherwise, without distance judgment, if the distance between mobile phone 100a and computer 100b is large, providing various magnetic devices such as magnets near mobile phone 100a could cause drastic changes in the magnetic induction signal strength of mobile phone 100a, thereby triggering content transmission, which would pose a risk of data leakage.

[0062] According to some embodiments of this application, the magnetic induction triggering event can be verified solely by single-end ranging, without the dual verification of both the mobile phone 100a and the computer 100b. Furthermore, if a Bluetooth module conforming to the Bluetooth 5.1 standard is installed on the mobile phone 100a or the computer 100b, high accuracy can be achieved with single-end ranging; in this case, dual verification at both ends is unnecessary.

[0063] Furthermore, according to some embodiments of this application, the distance between mobile phone 100a and computer 100b can also be measured using other methods, or by combining multiple ranging methods. These other ranging methods may include, but are not limited to, millimeter-wave ranging, ultrasonic ranging, etc.

[0064] If the distance between mobile phone 100a and computer 100b is less than a preset distance threshold, it can be determined that the conditions for content sharing between mobile phone 100a and computer 100b are met.

[0065] According to some embodiments of this application, after determining that the distance verification operation from S4 to S9 meets the content sharing conditions between the mobile phone 100a and the computer 100b, the mobile phone 100a can output specific patterns, sound effects, vibrations, or dynamic interface effects to remind the user to start gesture operations to share content.

[0066] S10: The mobile phone 100a recognizes user gestures and determines the content to be transmitted and the direction of transmission based on the user gestures.

[0067] According to some embodiments of this application, the user's gesture can be the movement of the user holding the mobile phone 100a. In this case, the user's gesture can be determined by monitoring the movement of the mobile phone 100a (such as moving left, moving right, etc.), and each gesture can be mapped to a specific operation to be initiated.

[0068] The movement mode of the mobile phone 100a (such as moving left, moving right, etc.) can be obtained by detecting changes in the acceleration of the mobile phone 100a through the gravity sensor in the mobile phone 100a.

[0069] The gravity sensor, also known as a gravimeter, can detect the magnitude of acceleration in various directions of the phone 100a, and then determine the phone's motion, such as swaying left and right, rising, or falling, based on the acceleration values. When the phone 100a is stationary, the gravity sensor can detect the magnitude and direction of gravity. The gravity sensor in the phone 100a is typically a triaxial structure, which allows it to detect acceleration in any direction and determine the phone's spatial motion.

[0070] When the gravity sensor performs triaxial acceleration calculations, the gravity sensing coordinates are usually relative to the phone 100a, not spatial coordinates. For example, see... Figure 3 Place the phone face up on a table. The gravity sensor can detect the acceleration values ​​of the phone 100a along the X, Y, and Z axes as shown in the diagram. The X-axis represents the left-right direction, the Y-axis the front-back direction, and the Z-axis the up-down direction. The acceleration values ​​measured by the gravity sensor include the effect of gravity, and the unit is m / s². In a stationary state, the X-axis acceleration is 0 by default, the Y-axis acceleration is 0 by default, and the Z-axis acceleration is 9.81 by default.

[0071] In the X-axis direction, if the phone 100a suddenly moves to the left, the X-axis acceleration value is positive, while if the phone suddenly moves to the right, the X-axis acceleration value is negative.

[0072] In the Y-axis direction, if the phone 100a suddenly moves forward, the Y-axis acceleration value is positive; if the phone suddenly moves backward, the Y-axis acceleration value is negative.

[0073] In the Z-axis direction, if the phone 100a suddenly moves upward, the Z-axis acceleration value is greater than 9.81, while if the phone suddenly moves downward, the Z-axis acceleration value is less than 9.81.

[0074] Therefore, after the gravity sensor is activated, the acceleration signal measured by the gravity sensor will be relatively stable when the user is not making any gestures; however, when the user makes a gesture, the acceleration signal will change drastically, and the degree of drastic change can be displayed by the difference value of the acceleration signal; when the gesture ends, the acceleration signal will return to stability. Therefore, the acceleration difference value can be used to determine the starting and ending points of the phone 100a's movement in real time, and to determine the specific direction of the phone 100a's movement. The specific process is as follows:

[0075] First, the acceleration data measured by the gravity sensor is sampled. For the k-th sampling point, the acceleration difference value of the three axes can be calculated by equation (2):

[0076] Δa k =(ax k -ax k-1 )+(ay k -ay k-1 )+(az k -az k-1 (2)

[0077] in,

[0078] Δa k This represents the triaxial acceleration difference value at the k-th sampling point.

[0079] axk This represents the acceleration along the X-axis at the k-th sampling point.

[0080] ax k-1 This represents the acceleration along the X-axis at the (k-1)th sampling point.

[0081] ay k This represents the acceleration along the Y-axis at the k-th sampling point.

[0082] ay k-1 This represents the acceleration along the Y-axis at the (k-1)th sampling point.

[0083] az k This represents the acceleration along the Z-axis at the k-th sampling point.

[0084] az k-1 This represents the acceleration along the Z-axis at the (k-1)th sampling point.

[0085] Subsequently, based on the triaxial acceleration difference values ​​Δa at each point... k This allows us to obtain the average acceleration difference over a period of time before point k. For example, the average acceleration difference Ma over the N sampling points before point k (i.e., the N sampling points from kN to k). k .

[0086]

[0087] in,

[0088] Δa i This represents the triaxial acceleration difference value of the i-th sampling point out of the N sampling points from kN to k.

[0089] Ma k This represents the mean of the acceleration difference values ​​within the N sampling points preceding k.

[0090] So, by comparing Ma k With Δa k This allows us to determine the start and end points of the gesture. If Ma k <<Δa k Then point k can be considered the starting point of the gesture; while if Ma k >>Δa k Therefore, point k can be considered the end point of the gesture.

[0091] This is because, when the user is not performing any gesture operations, the phone 100a is in a relatively stable state, and the Δa at each sampling point... k The differences between them are not significant, and the Δa at each sampling point is small. k The values, when connected, will form a smooth curve. However, when the user performs a gesture, the phone will suddenly accelerate, and the starting point of the gesture operation, Δa, will be...k The value will surge, then, Ma k <<Δa k Conversely, when the gesture operation ends, the phone will return to a relatively stable state. k >>Δa k Therefore, through Ma k With Δa k By comparing the gestures, it is relatively easy to determine the starting and ending points of the gesture.

[0092] Once the starting and ending points of the gesture are determined, the duration of the gesture can be determined, and thus the average energy E over the duration of the gesture in the X, Y, and Z axes can be obtained. ax E ay E az :

[0093]

[0094] in,

[0095] L represents the number of sampling points from the start point to the end point of the gesture.

[0096] ax j Let J be the X-axis acceleration value at the j-th sampling point during the time from the start to the end of the gesture.

[0097] ay j Let Y be the Y-axis acceleration value at the j-th sampling point during the time from the start to the end of the gesture.

[0098] az j Let be the Z-axis acceleration value at the j-th sampling point during the time from the start to the end of the gesture.

[0099] E ax This represents the average energy value of the X-axis acceleration signal during the time from the start to the end of the gesture.

[0100] E ay This represents the average energy value of the Y-axis acceleration signal during the time from the start to the end of the gesture.

[0101] E az The average energy value of the Z-axis acceleration signal during the time from the start to the end of the gesture.

[0102] Compare the average energy values ​​E of the X, Y, and Z axis acceleration signals. ax E ay E az Find the axis with the highest energy value as the maximum energy axis. If the maximum energy axis is the X-axis, it means the phone is shaking left and right; if it is the Y-axis, it means the phone is shaking back and forth; and if it is the Z-axis, it means the phone is shaking up and down.

[0103] Taking the X-axis as the axis of maximum energy as an example, using the acceleration value ax of each of the L sampling points from the starting point to the ending point of the gesture, a preset upper and lower thresholds for the acceleration of the phone 100a in the X-axis direction are established. The direction of movement is determined by whether the acceleration value first exceeds the upper or lower threshold. If the acceleration value first exceeds the upper threshold, it indicates that the phone 100a is moving to the left; if the acceleration value first exceeds the lower threshold, it indicates that the phone 100a is moving to the right.

[0104] According to some embodiments of this application, the acceleration values ​​along the X-axis of each sampling point can be traversed over the duration of L sampling points to obtain a scatter plot waveform. Peaks and troughs are then identified. Similarly, an upper and lower threshold for the acceleration of mobile phone 100a are preset, and peaks below the upper threshold and troughs above the lower threshold are discarded. The order of the remaining peaks and troughs is then determined. If a peak appears first, it indicates that mobile phone 100a is moving to the left; otherwise, if a trough appears first, it indicates that mobile phone 100a is moving to the right. In this implementation, by counting the number of remaining peaks and troughs after the above discarding operation, it can also be determined whether mobile phone 100a is shaking. If the number of peaks and troughs is greater than a preset threshold, it indicates that mobile phone 100a is shaking, rather than moving in one direction.

[0105] To improve the accuracy of the judgment, the threshold comparison and the determination of the movement direction of the mobile phone 100a can be performed after a certain period of time (e.g., 0.2 seconds) after the gesture begins, thereby avoiding misjudgment in the early stage of the gesture.

[0106] The process is similar to the above when the Y-axis and Z-axis are the axes of maximum energy, and will not be repeated here.

[0107] By judging the changes in acceleration values ​​along the maximum energy axis and in the direction of the maximum energy axis, the movement mode of mobile phone 100a, i.e., gesture operation, can be obtained. After obtaining the movement mode of mobile phone 100a, the mapping relationship between each gesture and the specific operation to be initiated can be defined by defining the correspondence between the movement mode of mobile phone 100a and the transmitted content and transmission direction. For example, according to some embodiments of this application, the movement of mobile phone 100a can be divided into: left movement, right movement, forward movement, backward movement, up movement, down movement, shaking, etc., and the content to be transmitted between mobile phone 100a and computer 100b and the direction of content transmission can be determined for each type of movement.

[0108] Table 1 shows examples of the correspondence between the movement and transmission content and transmission direction of a mobile phone 100a according to some embodiments of this application.

[0109] Table 1

[0110]

[0111] The correspondence between the movement of the mobile phone 100a and the transmitted content and direction shown in Table 1 is merely an example. In different implementations, various different correspondences can be defined by cooperating with the various application software in the mobile phone 100a.

[0112] According to some embodiments of this application, only the transmission direction can be defined without defining the transmission content. For example, the current content (including desktop, applications, pictures, and audio / video) of mobile phone 100a and computer 100b can be directly transferred from one end to the other to make what you see is what you get and keep the running state consistent.

[0113] For example, we can define "moving forward" as phone 100a sending content to computer 100b, and "moving backward" as phone 100a receiving content from computer 100b. Then, when phone 100a is detected moving forward: if phone 100a is on its desktop (without any applications open), the phone 100a desktop is transferred to computer 100b; if phone 100a has an application open, the interface and its running state are directly migrated and displayed on computer 100b's screen, maintaining the same running state; if phone 100a has opened an image or video, the image or video is directly migrated and displayed on computer 100b's screen.

[0114] It should be noted that the above definitions of the movement direction of mobile phone 100a are based on the mobile phone 100a being held face up and in the correct orientation. If mobile phone 100a is held in the opposite direction, the movement direction of the hand holding mobile phone 100a may be opposite to the actual direction of the transmitted content.

[0115] S11: After determining the transmission direction and content based on the recognized user gesture on the mobile phone 100a, the mobile phone 100a can send the determined transmission direction and content to the computer 100b.

[0116] For example, according to the correspondence shown in Table 1, assuming that in S10, the movement mode of mobile phone 100a is detected as leftward, then the corresponding transmission direction and content are: the interface and running state of the desktop application of computer 100b are directly transferred and displayed on the screen of mobile phone 100a. Mobile phone 100a can send this transmission direction and content to computer 100b so that computer 100b can prepare to send data related to the interface and running state of the desktop application to mobile phone 100a.

[0117] Subsequently, S12: Mobile phone 100a and computer 100b can handshake via Bluetooth to negotiate WIFI connection parameters in preparation for content sharing between mobile phone 100a and computer 100b.

[0118] According to some embodiments of this application, content sharing between mobile phone 100a and computer 100b can be achieved through Wi-Fi Direct (also known as Wi-Fi P2P) to obtain higher data transmission speeds. As a peer-to-peer connection technology, Wi-Fi Direct can establish a direct TCP / IP connection between the two terminal devices, mobile phone 100a and computer 100b, without the need for an additional access point (AP). One of the devices, mobile phone 100a and computer 100b, can act as the group owner (GO), fulfilling the role of an AP in the traditional sense, while the other device acts as the group client (GC), connecting to the GO terminal device in a manner similar to connecting to an AP.

[0119] In operation S12, the WIFI connection parameters negotiated between mobile phone 100a and computer 100b may include the WIFI GO Service Set Identifier (SSID) and password.

[0120] S13: Mobile phone 100a and computer 100b establish a direct Wi-Fi connection according to the Wi-Fi connection parameters negotiated in S12.

[0121] S14: Transmit the transmission content determined in operation S10 from one of mobile phone 100a and computer 100b to the other via WIFI according to the transmission direction determined in operation S10.

[0122] Content transfer between mobile phone 100a and computer 100b can utilize Miracast screen mirroring technology. After mobile phone 100a and computer 100b form a Wi-Fi P2P network, the sending end acts as the source, and the receiving end acts as the sink. They can then transmit data using protocols such as TCP or UDP to send content from the source (including desktop, applications, pictures, videos, etc.) to the sink. After establishing a session between mobile phone 100a and computer 100b, the User Input Back Channel (UIBC) function in Miracast screen mirroring technology can be used to establish a UIBC connection, enabling the user to control the source from the sink.

[0123] For example, according to Table 1, when the movement of mobile phone 100a is detected as a rightward movement, mobile phone 100a sends data related to the application's interface and running status to computer 100b. Mobile phone 100a is the source, and computer 100b is the sink. Through Miracast screen mirroring technology, the application interface and running status of mobile phone 100a will be directly migrated and displayed on the screen of computer 100b, maintaining consistency between the state displayed on computer 100b and the running state of mobile phone 100a. The user can then operate the mobile phone desktop on computer 100b using a keyboard, mouse, or touch.

[0124] In the embodiments of this application, Bluetooth connection is used as the control channel and WIFI connection is used as the data channel to utilize the faster data transmission speed of WIFI and improve the content sharing speed. However, those skilled in the art should understand that in some embodiments, the operations of S12 and S13 may be omitted, and the data to be shared may be transmitted directly via Bluetooth; or, in other embodiments, mobile phone 100a and computer 100b may also use other communication protocols to establish other communication connections to transmit the data to be shared in other ways.

[0125] S15: After the transmission is completed, the mobile phone 100a can determine whether the user wants to continue sharing other content. For example, it can output a prompt message through the interface or sound to prompt the user whether to continue sharing.

[0126] If the user needs to continue sharing (i.e., it is determined to be yes in S15), the process can return to operation S10, recognize the user's gesture again, and determine the transmission direction and content based on the recognized user gesture. Then, the operations in S11 and S14 can continue to be executed. Since a WIFI connection has been established between the mobile phone 100a and the computer 100b, the operations in S12 and S13 can be skipped.

[0127] If the user does not need to continue sharing (i.e., it is determined not to in S15), the method can continue to S16: disconnect the WIFI connection between mobile phone 100a and computer 100b.

[0128] According to some embodiments of this application, the operation of S16 may not be executed immediately after the transmission is completed, but rather after waiting for a certain period of time after the transmission is completed. For example, a waiting event may be preset, such as 2 minutes, and the disconnection operation of S16 may be executed only if there is no action 2 minutes after the transmission of the content is completed.

[0129] Combined on the above Figure 2In the various embodiments described in this application, the control logic in mobile phone 100a and computer 100b can adopt various architectures, such as layered architecture, event-driven architecture, microkernel architecture, microservice architecture, or cloud architecture, etc. The following uses a layered architecture system as an example to exemplify a specific solution for implementing the content sharing system provided in the embodiments of this application.

[0130] Figure 4 Implementation shown Figure 2 The following is a structural example of the mobile phone 100a and computer 100b of the content sharing system.

[0131] like Figure 4 As shown, the control logic can be divided into several layers using a layered architecture, each with a clear role and division of labor. Layers can communicate with each other through interfaces. According to some embodiments of this application, the control logic of mobile phone 100a and computer 100b can be divided into three layers: the application layer, the driver layer, and the device layer.

[0132] In mobile phone 100a and computer 100b, the application layer may include one or more application packages for preparing for content sharing, triggering sharing intent, verifying sharing intent, making logical judgments on sharing content and direction recognition, and controlling data transmission. Specifically, the preparation for sharing, triggering sharing intent, verifying sharing intent, and making logical judgments on sharing content and direction recognition can be integrated into a content sharing determination module for determining whether content sharing is appropriate, while the data transmission module can be used to control data transmission.

[0133] like Figure 4 As shown, the application layer of mobile phone 100a includes a first content sharing determination module 400 and a first data transmission module 414. The first content sharing determination module 400 includes a first sharing preparation module 401, a first sharing intent verification module 406, a sharing intent triggering module 407, and a transmission direction / content determination module 413. The application layer of computer 100b includes a second content sharing determination module 420 and a second data transmission module 421. The second content sharing determination module 420 includes a second sharing preparation module 425 and a second sharing intent verification module 431. Each module in the above application layer can implement its corresponding function by calling the next-level module.

[0134] Specifically, firstly, the first content sharing determination module 400 of mobile phone 100a and the second content sharing determination module 420 of computer 100b cooperate to perform content sharing determination, that is... Figure 2 The operations of S1-S10 in the middle.

[0135] First, execute S1: Bring the mobile phone 100a and computer 100b close together, identify each other via Bluetooth, and establish a long-term connection through Bluetooth pairing.

[0136] On mobile phone 100a: The first sharing preparation module 401 of the application layer calls the first Bluetooth communication module 402. The first Bluetooth communication module 402 sends an instruction to the first Bluetooth driver module 403 of the driver layer to call the first Bluetooth module 404 of the device layer.

[0137] On the computer 100b side: the second sharing preparation module 425 of the application layer calls the second Bluetooth communication module 426, and the second Bluetooth communication module 426 sends an instruction to the second Bluetooth driver module 427 of the driver layer to call the second Bluetooth module 428 of the device layer.

[0138] The first Bluetooth module 404 and the second Bluetooth module 428 respond to the instructions of the driver layer, send Bluetooth broadcast signals, and when the mobile phone 100a and the computer 100b are close to each other, they identify each other through Bluetooth names, etc., and perform Bluetooth pairing to establish a long Bluetooth connection.

[0139] Subsequently, S2-S3 are executed: After the connection is established, the two terminal devices trigger the data transmission intention, and the mobile phone 100a monitors the magnetic induction signal strength of the mobile phone 100a in real time through its internal magnetic sensor.

[0140] Computer 100b and other terminal devices are themselves complex magnetic fields. In computer 100b, there are usually a large number of magnetic devices 429. In this application, magnetic devices 429 refer to devices that can cause magnetic interference.

[0141] According to some embodiments of this application, taking a laptop computer as an example, a magnetic sensor is typically present in the laptop, located on the keyboard section (commonly referred to as the C-side). Correspondingly, the screen section (commonly referred to as the B-side) usually contains magnetic components to work in conjunction with the magnetic sensor to control the computer's sleep or operation. For example, when the laptop screen and keyboard are closed, the magnetic components on the screen section approach the magnetic sensor, causing a change in the magnetic field near the sensor. This allows the magnetic sensor to detect the change in screen state and initiate a sleep state for the laptop via peripheral circuitry and the system, reducing power consumption. When the screen is opened, the magnetic components move away from the sensor, and the laptop resumes normal operation. Similarly, a laptop's cooling fan typically includes a stator and a rotor, both of which are magnetic components.

[0142] According to some embodiments of this application, in order to increase the intensity of the change in magnetic induction signal strength at the mobile phone 100a end, an additional magnetic device 429 may be installed in the computer 100b, or the existing magnetic device 429 may be optimized to make the area of ​​the magnetic device 429 larger or the magnetic interference intensity higher, etc.

[0143] At the mobile phone 100a end: The magnetic sensor 410 at the device layer monitors changes in the intensity of the magnetic induction signal of the mobile phone 100a. Examples of the magnetic sensor 410 include, but are not limited to, Hall sensors based on the Hall effect and AMR sensors based on the anisotropic magnetoresistive (AMR) effect. Taking AMR sensors as an example in various terminal devices, AMR sensors can use magnetoresistive properties to measure planar magnetic fields, thereby detecting the magnetic field strength and direction. Its basic principle is based on the change in resistance of anisotropic magnetoresistive materials when they sense a weak change in magnetic field. Hall sensors, on the other hand, detect changes in magnetic fields based on the Hall principle, which states that a semiconductor generates a voltage difference when the direction of the external magnetic field changes.

[0144] The magnetic sensor 410 in mobile phone 100a is typically used in compasses or map navigation to help users achieve accurate positioning, or to detect the opening and closing of flip cases. In the embodiments of this application, the magnetic sensor 410 is used to sense whether there are any magnetic devices nearby.

[0145] When a magnetic interference source appears near mobile phone 100a, the intensity of the magnetic induction signal detected by the magnetic sensor 410 in mobile phone 100a will change drastically. The magnetic sensor 410 in mobile phone 100a will report the detected magnetic induction signal to the driving layer. The sensor driving module 409 in the driving layer processes the received magnetic interference signal to determine the intensity of the magnetic induction signal and further reports it to the magnetic induction detection module 408 in the application layer. After receiving the information on the intensity of the magnetic induction signal, the magnetic induction detection module 408 can analyze and judge the change in the intensity of the magnetic induction signal to determine whether it exceeds the preset threshold for the change in the intensity of the magnetic induction signal. If it exceeds the preset threshold for the change in the intensity of the magnetic induction signal, it sends information to the sharing intention triggering module 407 to trigger the sharing intention.

[0146] Subsequently, S4: In order to verify whether the object near mobile phone 100a is a computer 100b that is long-connected to mobile phone 100a, or other sources of magnetic interference, mobile phone 100a can perform a verification of the sharing intent.

[0147] On mobile phone 100a: The first sharing intent triggering module 407 in the application layer sends sharing intent triggering information to the first sharing intent verification module 406. The first sharing intent verification module 406 sends a first verification command to the first Bluetooth ranging module 405 and starts the first Bluetooth ranging module 405. In response to the received first verification command, the first Bluetooth ranging module 405 in the application layer sends a signal to the first Bluetooth driver module 403 to control the first Bluetooth module 404 to send Bluetooth broadcast signals.

[0148] S5-S6: Computer 100b determines the distance between itself and mobile phone 100a based on the strength of the received Bluetooth signal, and compares the determined distance with a preset threshold to determine whether the distance between itself and mobile phone 100a is less than the preset distance threshold.

[0149] Computer 100b: After receiving the Bluetooth broadcast signal sent by mobile phone 100a, the second Bluetooth module 428 can report the received Bluetooth signal to the second Bluetooth driver module 427 of the driver layer. The second Bluetooth driver module 427 can then process the data sent by the second Bluetooth module 428 to determine the strength of the Bluetooth signal, and report the strength of the Bluetooth signal to the second Bluetooth ranging module 430 of the application layer. This allows the second Bluetooth ranging module 430 of computer 100b to determine the distance between itself and mobile phone 100a based on the strength of the received Bluetooth signal. For example, the distance between itself and mobile phone 100a can be determined using the aforementioned formula (1).

[0150] The second Bluetooth ranging module 430 reports the determined distance to the second sharing intent verification module 431, which then determines whether the distance between itself and the mobile phone 100a is less than a preset distance threshold.

[0151] According to some embodiments of this application, when performing distance judgment on the computer 100b, S7 can also be executed simultaneously: Bluetooth broadcasting is also enabled, so that distance verification is enabled on both the mobile phone 100a and the computer 100b.

[0152] The second sharing intent verification module 431 in the application layer of computer 100b sends a second verification command to the second Bluetooth ranging module 430. In response to the second verification command, the second Bluetooth ranging module 430 sends a command to the second Bluetooth driver module 427 to control the second Bluetooth module 428 to send Bluetooth broadcast signals through the aforementioned second Bluetooth driver module 427.

[0153] S8-S9: On the mobile phone 100a, the mobile phone 100a can also determine the distance between itself and the computer 100b based on the strength of the Bluetooth signal received from the computer 100b, and determine whether the distance between itself and the computer 100b is less than the preset distance threshold.

[0154] Specifically, on the mobile phone 100a end: after the first Bluetooth module 404 receives the Bluetooth broadcast signal sent by the computer 100b, it reports the received Bluetooth signal to the first Bluetooth driver module 403 of the driver layer. The first Bluetooth driver module 403 can process the data sent by the first Bluetooth module 404 to determine the strength of the Bluetooth signal, and report the strength of the Bluetooth signal to the first Bluetooth ranging module 405 of the application layer, so that the first Bluetooth ranging module 405 in the mobile phone 100a can determine the distance between itself and the computer 100b according to the strength of the received Bluetooth signal using the aforementioned formula (1).

[0155] In this way, the two terminal devices, mobile phone 100a and computer 100b, improve the accuracy of distance monitoring through dual verification. If both the first sharing intent verification module 406 in mobile phone 100a and the second sharing intent verification module 431 in computer 100b measure that the distance between mobile phone 100a and computer 100b is less than a preset threshold, it can be considered that the magnetic interference event at mobile phone 100a is not a false trigger caused by other magnetic interference sources, but is indeed due to the magnetic interference caused by the magnetic device 429 in computer 100b when mobile phone 100a and computer 100b are close together.

[0156] Of course, in some other embodiments, the distance between the mobile phone 100a and the computer 100b can also be measured using other methods, such as Bluetooth single-ended ranging, millimeter-wave ranging, ultrasonic ranging, etc., as described above.

[0157] Subsequently, S10: Mobile phone 100a begins to recognize user gestures in order to determine the content to be transmitted and the direction of transmission based on the user gestures.

[0158] According to some embodiments of this application, as described above... Figure 2 The identification of the transmitted content and direction is determined by recognizing user gestures, which can be determined by detecting the movement of the mobile phone 100a. In some embodiments, a mapping relationship between gestures and specific operations to be initiated can be preset (e.g., Table 1 above), and this mapping relationship can be pre-stored in the mobile phone 100a.

[0159] The movement mode of the mobile phone 100a (such as moving left, right, etc.) can be determined by the gravity sensor 411 in the mobile phone 100a. The gravity sensor 411, also known as a gravity sensor, is implemented in one way as a cantilever displacement device made of an elastic sensitive element, which, along with an energy storage spring made of an elastic sensitive element, drives electrical contacts to complete the conversion from gravity changes to electrical signals. The gravity sensor 411 has wide applications in various portable computing devices such as mobile phones and tablets. For example, it can be used to identify the posture or movement mode of the mobile phone 100a, and is applied to applications such as landscape / portrait switching and pedometers. Common gravity sensors in various terminal devices such as the mobile phone 100a include, but are not limited to: Bosch's BMA series and STMicroelectronics' LIS3X series.

[0160] The specific method of movement of the mobile phone 100a is determined by the gravity sensor 411 in the mobile phone 100a as follows:

[0161] On the mobile phone 100a: the transmission direction / content determination module 413 in the application layer sends a gesture recognition command to the gesture recognition module 412. In response to receiving the gesture recognition command, the gesture recognition module 412 sends a signal to the sensor driving module 409 in the driving layer, so that the sensor driving module 409 activates the gravity sensor 411 in the device layer.

[0162] Gravity sensor 411 detects the magnitude of acceleration of mobile phone 100a in various directions (generally three axes), and then reports the acceleration data to sensor driver module 409 in the driver layer. Sensor driver module 409 processes the received acceleration data, calculates the acceleration value and direction, and reports it to gesture recognition module 412 in the application layer.

[0163] The gesture recognition module 412 uses the measured acceleration value and direction to generate an acceleration change vector, thereby obtaining the movement of the mobile phone 100a, and reports the movement of the mobile phone 100a to the transmission direction / content determination module 413.

[0164] The transmission direction / content determination module 413 can determine the transmission content and direction based on the movement of the mobile phone 100a, referring to Table 1. For example, assuming the gesture recognition module 412 of the mobile phone 100a detects that the movement of the phone is to the right, the transmission direction / content determination module 413 can determine from Table 1 that this movement corresponds to the direct migration and display of the application interface and running state of the mobile phone 100a on the screen of the computer 100b. That is, the transmission direction is from the mobile phone 100a to the computer 100b, and the transmitted content is the application interface and running state of the mobile phone 100a.

[0165] In some embodiments of this application, the motion of the mobile phone 100a can also be determined by other means, including but not limited to: using a linear accelerometer, a gyroscope sensor, or a positioning system. For example, a gyroscope sensor can determine the angular velocity of the mobile phone 100a around three axes (i.e., the x, y, and z axes), therefore, a gyroscope sensor can also be used to determine the movement of the mobile phone 100a. Alternatively, in some embodiments, the motion of the mobile phone 100a can be determined by a combination of a linear accelerometer, a gyroscope sensor, and a gravity sensor, thereby determining the user's gesture.

[0166] S11: After determining the transmission direction and content on the mobile phone 100a, the determined transmission direction and content are sent to the computer 100b. This information can still be transmitted via the Bluetooth channel.

[0167] On mobile phone 100a: The transmission direction / content determination module 413 in the application layer sends the determined transmission direction (i.e., from mobile phone 100a to computer 100b) and transmission content (i.e., the interface and running status of the application on mobile phone 100a) to the first data transmission module 414. The first data transmission module 414 sends a communication command to the first Bluetooth communication module 402, causing the first Bluetooth communication module 402 to drive the first Bluetooth module 404 through the first Bluetooth driver module 403 in the driver layer, and send the determined transmission direction and transmission content to computer 100b.

[0168] On computer 100b: After receiving the information from mobile phone 100a, the first Bluetooth module 428 reports the received information to the second Bluetooth communication module 426 through the second Bluetooth driver module 427. The second Bluetooth communication module 426 processes the received information, obtains the transmission direction and transmission content, and reports it to the second data transmission module 421 so that computer 100b can obtain the transmission direction and transmission content determined by mobile phone 100a.

[0169] Subsequently, S12: Mobile phone 100a and computer 100b negotiate WIFI connection parameters via Bluetooth handshake.

[0170] Taking mobile phone 100a as a GO connected directly via WIFI as an example, on mobile phone 100a: the first data transmission module 414 of the application layer sends a communication command to the first Bluetooth communication module 402, so that the first Bluetooth communication module 402 drives the first Bluetooth module 404 through the first Bluetooth driver module 403 of the driver layer, and sends the SSID and password of mobile phone 100a as GO to computer 100b.

[0171] On the computer 100b side: After receiving the information sent by the mobile phone 100a, the first Bluetooth module 428 of the device layer reports the received information to the second Bluetooth communication module 426 through the second Bluetooth driver module 427. The second Bluetooth communication module 426 processes the received information, obtains the SSID and password of the GO, and reports it to the second data transmission module 421.

[0172] S13: Mobile phone 100a and computer 100b establish a WIFI connection according to the WIFI connection parameters negotiated in S12.

[0173] Mobile phone 100a terminal: The first data transmission module 414 sends a communication command to the first WIFI communication module 415, so that the first WIFI communication module 415 drives the first WIFI module 417 through the first WIFI driver module 416 of the driver layer to enable the WIFI direct connection function.

[0174] On computer 100b: The second data transmission module 421 sends a communication command to the second WIFI communication module 422, so that the second WIFI communication module 422 drives the second WIFI module 424 through the second WIFI driver module 423 in the driver layer, enables the WIFI direct connection function, and establishes a WIFI connection with mobile phone 100a through the SSID and password obtained in operation S12.

[0175] Subsequently, S14: The interface and running status of the application of mobile phone 100a are sent to computer 100b via WIFI communication link between mobile phone 100a and computer 100b.

[0176] In the embodiments of this application, Bluetooth connection is used as the control channel and WIFI connection is used as the data channel to utilize the faster data transmission speed of WIFI and improve the content sharing speed. However, those skilled in the art should understand that in some embodiments, the operations of S12 and S13 may be omitted, and the data to be shared may be transmitted directly via Bluetooth; or, in other embodiments, mobile phone 100a and computer 100b may also use other communication protocols to establish other communication connections to transmit the data to be shared in other ways.

[0177] The above combination Figure 2 and Figure 4 Examples illustrating specific processes of content sharing according to embodiments of this application are provided. Those skilled in the art will understand that many of the operations can be performed in parallel, concurrently, or simultaneously, and the order of the operations can also be rearranged.

[0178] in addition, Figure 4The specific devices and modules shown are illustrative examples and do not constitute a limitation of this application. In other embodiments of this application, different devices and modules may be used to implement the content sharing scheme of this application in other ways.

[0179] For example, when the 100a phone performs gesture recognition, it can... Figure 4 The gravity sensor 411 in the middle can be replaced by other devices, such as a linear acceleration sensor, a gyroscope, etc.; or, in some embodiments, the motion detection of the mobile phone 100a can be achieved by a combination of multiple devices.

[0180] For example, when verifying the sharing intent, the first sharing intent verification module 406 and / or the second sharing intent verification module 431 can also perform distance measurement using devices other than the Bluetooth module. For instance, the first sharing intent verification module 406 and / or the second sharing intent verification module 431 can use the driver layer to call the mobile phone's 100a ultrasonic module, millimeter-wave module, etc., to perform the distance measurement operation.

[0181] also, Figure 2 and Figure 4 Some of the operations shown can also be implemented using other methods. For example, operation S10 performed by mobile phone 100a: recognizing user gestures and determining the content to be transmitted and the direction of transmission based on user gestures. In this operation, the user's gestures may not be the movement of the user holding mobile phone 100a, but other gesture operations.

[0182] According to other embodiments of this application, for example, when the mobile phone 100a includes a touch screen, the user's gesture can also be a touch operation such as sliding, dragging, clicking or long pressing applied by the user to the touch screen surface of the mobile phone 100a. In this case, the user's gesture can be determined by recognizing the touch input of the mobile phone 100a (such as swiping left, swiping right, long pressing, etc.), and each gesture can be mapped to a specific operation to be initiated.

[0183] In this embodiment, the touchscreen of mobile phone 100a can be of various types, such as capacitive touchscreen, resistive touchscreen, infrared touchscreen, surface acoustic wave touchscreen, or other types of touchscreen. The touchscreen of mobile phone 100a can be used to receive user touch operations. The touchscreen may include a touch sensor and a display screen. The touch sensor, also called a "touch device," may be disposed on the display screen in some embodiments to detect touch operations applied to or near it. The touch sensor can transmit the detected touch operation to the application processor to determine the type of touch event.

[0184] According to some embodiments of this application, S10: When mobile phone 100a starts recognizing user gestures, on mobile phone 100a: the transmission direction / content determination module 413 in the application layer sends a gesture recognition command to the gesture recognition module 412. In response to receiving the gesture recognition command, the gesture recognition module 412 sends a signal to the sensor driving module 409 in the driving layer, so that the sensor driving module 409 activates the touch sensor in the device layer.

[0185] The touch sensor receives touch operations from the user on the touchscreen of the mobile phone 100a. For example, when the user's finger approaches or touches the touchscreen of the mobile phone 100a, the touch sensor of the mobile phone 100a detects the operation on the touchscreen and reports the touch data to the sensor driver module 409 in the driver layer. The sensor driver module 409 in the driver layer of the mobile phone 100a can process the data reported by the touch sensor in the touchscreen, identify operations such as click, swipe, and long press, calculate the coordinate information of these operations, generate timestamps, and report the input event containing the operation type, coordinate information, timestamps, etc., to the gesture recognition module 412 in the application layer. Then, the gesture recognition module 412 can determine the content and direction of the transmission according to the preset mapping relationship between touch operation and the content and direction of transmission (such as the mapping relationship shown in Table 2 below).

[0186] Table 2 shows examples of the mapping relationship between touch operations on mobile phone 100a and transmission content and transmission direction according to some embodiments of this application.

[0187] Table 2

[0188]

[0189] Furthermore, according to some embodiments of this application, user gestures may also include other types, such as gestures that can be applied to mobile phone 100a but are spaced a certain distance from the screen of mobile phone 100a (e.g., hover touch). Additionally, in some embodiments, other input devices such as styluses may be used to input gestures.

[0190] In addition, although Figure 2 and Figure 4 The example provided illustrates the content sharing process between terminal devices using the example of sharing content between mobile phone 100a and computer 100b. However, it should be understood that the content sharing scheme provided in the embodiments of this application can be applied between various terminal devices, such as between mobile phones, between smartwatches and mobile phones, between wristbands and computers, etc.

[0191] The content sharing scheme provided in the embodiments of this application simplifies the data transmission process. Compared with NFC touch and other methods that can only be applied to very short transmission distances, the content sharing scheme provided in this application can be used for relatively longer distances. In addition, by using gesture recognition to determine the transmission direction and content, bidirectional transmission between two devices is realized, while effectively avoiding errors in transmission direction.

[0192] The following uses a mobile phone as an example. Figure 5 This invention illustrates a specific structural example of the terminal device 100 of this application. In some embodiments, Figure 5 The device shown may be a mobile phone 100a or may be included in a mobile phone 100a.

[0193] like Figure 5 As shown, the terminal device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a headphone jack 170D, a sensor module 180, buttons 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc.

[0194] The processor 110 may include one or more processing units, such as 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). Different processing units may be independent devices or integrated into one or more processors. The processor 110 may also include memory for storing instructions and data. In some cases, the processor 110 may be configured to perform the above-described combinations. Figures 2 to 4 The description describes the various operations performed by the mobile phone 100a.

[0195] In some embodiments, the processor 110 may include one or more interfaces. Interfaces may include inter-integrated circuit (I2C) interfaces, inter-integrated circuit sound (I2S) interfaces, pulse code modulation (PCM) interfaces, universal asynchronous receiver / transmitter (UART) interfaces, mobile industry processor interfaces (MIPI), general-purpose input / output (GPIO) interfaces, subscriber identity module (SIM) interfaces, and / or universal serial bus (USB) interfaces, etc. It is understood that the interface connection relationships between the modules illustrated in the embodiments of this application are merely illustrative and do not constitute a structural limitation on the terminal device 100. In other embodiments of this application, the terminal device 100 may also employ different interface connection methods or combinations of multiple interface connection methods as described in the above embodiments.

[0196] Sensor module 180 may include a magnetic sensor 180D. Examples of magnetic sensors 180D include, but are not limited to, Hall effect-based sensors and AMR sensors based on the anisotropic magnetoresistive (AMR) effect. In terminal device 100, taking an AMR sensor as an example, an AMR sensor can use magnetoresistive properties to measure a planar magnetic field, thereby detecting the magnetic field strength and direction. Its basic principle is based on the change in resistance of anisotropic magnetoresistive materials when they sense a weak change in magnetic field. Hall sensors, on the other hand, detect changes in magnetic fields based on the Hall principle, which states that a semiconductor generates a voltage difference when the direction of an external magnetic field changes.

[0197] The magnetic sensor 180D in the terminal device 100 is generally used in compasses or map navigation to help users achieve accurate positioning, or to detect the opening and closing of a flip cover. In some embodiments, when the terminal device 100 is a flip phone, the terminal device 100 can detect the opening and closing of the flip cover using the magnetic sensor 180D, and then set features such as automatic flip unlocking based on the detected opening and closing state of the cover or the flip cover.

[0198] In some embodiments of this application, the terminal device 100 may use a magnetic sensor 180D to sense whether there are magnetic devices nearby.

[0199] The accelerometer 180E can detect the magnitude of acceleration of the terminal device 100 in various directions (generally three axes). When the terminal device 100 is stationary, it can detect the magnitude and direction of gravity. It can also be used to identify the posture or movement of the terminal device 100, and can be applied to applications such as landscape / portrait switching and pedometers.

[0200] According to some embodiments of this application, the accelerometer 180E may include a gravity sensor, also known as a gravity detector. One implementation of a gravity sensor is a cantilever displacement device made of an elastic sensitive element, which, along with an energy storage spring made of an elastic sensitive element, drives electrical contacts to complete the conversion from changes in gravity to an electrical signal. Gravity sensors are widely used in various portable computing devices such as mobile phones and tablets. Common gravity sensors in various terminal devices 100 include, but are not limited to, Bosch's BMA series and STMicroelectronics' LIS3X series.

[0201] The gravity sensor can detect changes in acceleration and then determine the motion of the terminal device 100, such as tilting, swaying left and right, rising, and falling, based on the acceleration values. The gravity sensor in the terminal device 100 is typically a three-axis structure. The gravity sensor can detect acceleration in any direction along these three axes to determine the spatial motion of the terminal device 100. When performing three-axis acceleration calculations, the gravity sensing coordinates can be relative to the terminal device 100, rather than spatial coordinates.

[0202] The gyroscope sensor 180B can be used to determine the motion attitude of the terminal device 100. In some embodiments, the gyroscope sensor 180B can determine the angular velocity of the terminal device 100 around three axes (i.e., the x, y, and z axes). The gyroscope sensor 180B can also be used to determine the movement of the device. For example, it can be used for image stabilization. When the shutter is pressed, the gyroscope sensor 180B detects the angle of the shaking of the terminal device 100, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to counteract the shaking of the terminal device 100 through reverse movement, thus achieving image stabilization. The gyroscope sensor 180B can also be used in navigation and motion-sensing game scenarios.

[0203] Touch sensor 180K, also known as a "touch device," can be located on display screen 194. The touch sensor 180K and display screen 194 together form a touchscreen, also known as a "touchscreen." Touch sensor 180K detects touch operations applied to or near it. The touch sensor can transmit the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through display screen 194. In other embodiments, touch sensor 180K may also be located on the surface of electronic device 100, in a different position than display screen 194.

[0204] In addition, the sensor module 180 may include: a pressure sensor 180A, a barometric pressure sensor 180C, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, an ambient light sensor 180L, a bone conduction sensor 180M, etc.

[0205] The charging management module 140 receives charging input from a charger, which can be a wireless or wired charger. The power management module 141 connects the battery 142, the charging management module 140, and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, providing power to the processor 110, internal memory 121, display screen 194, camera 193, and wireless communication module 160. The power management module 141 can also monitor parameters such as battery capacity, battery cycle count, and battery health status (leakage current, impedance). In some other embodiments, the power management module 141 may be located within the processor 110. In other embodiments, the power management module 141 and the charging management module 140 may be housed in the same device.

[0206] The wireless communication function of the terminal device 100 can be implemented through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor and baseband processor, etc.

[0207] Antennas 1 and 2 are used to transmit and receive electromagnetic wave signals. Each antenna in terminal device 100 can be used to cover one or more communication frequency bands. Different antennas can also be multiplexed to improve antenna utilization. For example, antenna 1 can be multiplexed as a diversity antenna for a wireless local area network. In some other embodiments, the antennas can be used in conjunction with a tuning switch.

[0208] The mobile communication module 150 can provide solutions for wireless communication, including 2G / 3G / 4G / 5G, applied to the terminal device 100. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves via antenna 1, and perform filtering, amplification, and other processing on the received electromagnetic waves before transmitting them to a modem processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves for radiation via antenna 1. In some embodiments, at least some functional modules of the mobile communication module 150 may be housed in the processor 110. In some embodiments, at least some functional modules of the mobile communication module 150 and at least some modules of the processor 110 may be housed in the same device.

[0209] The modem processor may include a modulator and a demodulator. The modulator modulates the low-frequency baseband signal to be transmitted into a mid-to-high frequency signal. The demodulator demodulates the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After processing by the baseband processor, the low-frequency baseband signal is transmitted to the application processor. The application processor outputs sound signals through an audio device (not limited to speaker 170A, receiver 170B, etc.) or displays images or videos through the display screen 194. In some embodiments, the modem processor may be a separate device. In other embodiments, the modem processor may be independent of the processor 110 and may be housed in the same device as the mobile communication module 150 or other functional modules.

[0210] The wireless communication module 160 can provide solutions for wireless communication applications on the terminal device 100, 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), and infrared (IR) technologies. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via antenna 2, performs frequency modulation and filtering of the electromagnetic wave signals, and sends the processed signal to processor 110. The wireless communication module 160 can also receive signals to be transmitted from processor 110, perform frequency modulation and amplification, and convert them into electromagnetic waves for radiation via antenna 2.

[0211] In some embodiments, antenna 1 of terminal device 100 is coupled to mobile communication module 150, and antenna 2 is coupled to wireless communication module 160, enabling terminal device 100 to communicate with networks and other devices via 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 technologies, etc. The GNSS may include the Global Positioning System (GPS), the Global Navigation Satellite System (GLONASS), the BeiDou Navigation Satellite System (BDS), the Quasi-Zenith Satellite System (QZSS), and / or satellite-based augmentation systems (SBAS).

[0212] The terminal device 100 implements display functions through a GPU, a display screen 194, and an application processor. The display screen 194 is used to display images, videos, etc.

[0213] Terminal device 100 can perform shooting functions through ISP, camera 193, video codec, GPU, display 194 and application processor.

[0214] Terminal device 100 can implement audio functions, such as music playback and recording, through audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, and application processor.

[0215] The external storage interface 120 can be used to connect an external storage card, such as a Micro SD card, to expand the storage capacity of the terminal device 100.

[0216] Internal memory 121 can be used to store computer executable program code, which includes instructions.

[0217] Buttons 190 include a power button, volume buttons, etc. Buttons 190 can be mechanical buttons or touch-sensitive buttons. Terminal device 100 can receive button input and generate key signal inputs related to user settings and function control of terminal device 100.

[0218] Motor 191 can generate vibration alerts. Motor 191 can be used for incoming call vibration alerts or for touch vibration feedback. For example, different vibration feedback effects can correspond to touch operations performed on different applications (such as taking photos, playing audio, etc.). Motor 191 can also correspond to different vibration feedback effects for touch operations performed on different areas of the display screen 194. Different application scenarios (such as time reminders, receiving messages, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also be customized.

[0219] Indicator 192 can be an indicator light, used to indicate charging status, power changes, or to indicate messages, missed calls, notifications, etc.

[0220] The SIM card interface 195 is used to connect a SIM card. The SIM card can be inserted into or removed from the SIM card interface 195 to make contact with and separate from the terminal device 100. The terminal device 100 can support one or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, etc. Multiple cards can be inserted into the same SIM card interface 195 simultaneously. The multiple cards can be of the same or different types. The SIM card interface 195 is also compatible with different types of SIM cards. The SIM card interface 195 is also compatible with external memory cards. The terminal device 100 interacts with the network through the SIM card to realize functions such as calls and data communication. In some embodiments, the terminal device 100 uses an eSIM, i.e., an embedded SIM card. The eSIM card can be embedded in the terminal device 100 and cannot be separated from the terminal device 100.

[0221] It is understood that the structures illustrated in the embodiments of this application do not constitute a specific limitation on the terminal device 100. In other embodiments of this application, the terminal device 100 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0222] The following is combined with Figure 6This application describes an example computing system 500 according to some embodiments. In various embodiments, system 500 may be or may include part of terminal device 100; for example, computing system 500 may be or may include part of computer 100b. In various embodiments, system 500 may have more or fewer components and / or different architectures.

[0223] In one embodiment, system 500 may include one or more processors 504, system control logic 508 connected to at least one of the processors 504, system memory 512 connected to system control logic 508, memory 516 (e.g., non-volatile memory (NVM)) connected to system control logic 508, and network interface 520 connected to system control logic 508.

[0224] Processor 504 may include one or more single-core or multi-core processors. Processor 504 may include any combination of general-purpose processors and special-purpose processors (e.g., graphics processors, application processors, baseband processors, etc.). In some cases, processor 504 may be configured to perform the above combinations. Figures 2 to 4 The various operations performed by the mobile phone 100a or computer 100b are described.

[0225] System control logic 508 for one embodiment may include any suitable interface controller to provide any suitable interface to at least one of the processors 504 and / or any suitable device or component communicating with system control logic 508.

[0226] System control logic 508 for one embodiment may include one or more memory controllers to provide an interface to system memory 512. System memory 512 may be used to load and store data and / or instructions. For example, for system 500, system memory 512 for one embodiment may include any suitable volatile memory, such as suitable random-access memory (RAM) or dynamic random-access memory (DRAM).

[0227] Memory 516 may include one or more tangible, non-transitory computer-readable media for storing data and / or instructions. For example, memory 516 may include any suitable non-volatile memory and / or any suitable non-volatile storage device, such as flash memory, hard disk drive (HDD), solid-state drive (SSD), compact disk (CD) drive, and / or digital versatile disk (DVD) drive, etc.

[0228] The memory 516 may include a portion of the storage resources on the device on which the system 500 is installed, or it may be accessible by the device, but is not necessarily part of the device. For example, the memory 516 may be accessed over a network via the network interface 520.

[0229] Specifically, system memory 512 and memory 516 may each include temporary and permanent copies of instructions 524. Instructions 524 may include instructions that, when executed by at least one of processors 504, cause system 500 to perform the methods described above. In various embodiments, instructions 524, or hardware, firmware, and / or software components thereof, may additionally / alternatively be located in system control logic 508, network interface 520, and / or processor 504.

[0230] Network interface 520 may include a transceiver for providing a radio interface to system 500, thereby enabling communication with any other suitable device (such as a front-end module, antenna, etc.) over one or more networks. In various embodiments, network interface 520 may be integrated with other components of system 500. For example, network interface may include a processor of processor 504, memory of system memory 512, memory of memory 516, and / or firmware device (not shown) with instructions that, when executed by at least one of processors 504, cause system 500 to implement, as Figure 2 Instructions for the method executed by mobile phone 100a or computer 100b.

[0231] The network interface 520 may further include any suitable hardware and / or firmware to provide a multiple-input multiple-output radio interface. For example, the network interface 520 for one embodiment may be a network adapter, a wireless network adapter, a telephone modem, and / or a wireless modem.

[0232] In one embodiment, at least one of the processors 504 may be integrated with the logic of one or more controllers for system control logic 508. In one embodiment, at least one of the processors 504 may be integrated with the logic of one or more controllers for system control logic 508 to form a system-on-a-chip (SiP). In one embodiment, at least one of the processors 504 may be integrated with the logic of one or more controllers for system control logic 508. In one embodiment, at least one of the processors 504 may be integrated with the logic of one or more controllers for system control logic 508 to form a system-on-a-chip (SoC).

[0233] System 500 may further include: input / output (I / O) device 532. I / O device 532 may include: a user interface designed to enable a user to interact with system 500; a peripheral component interface designed to enable peripheral components to interact with system 500; and / or sensors designed to determine environmental conditions and / or location information related to system 500.

[0234] In various embodiments, the user interface may include, but is not limited to, a display (e.g., a liquid crystal display, a touch screen display, etc.), a speaker, a microphone, one or more cameras (e.g., a still image camera and / or a video camera), a flashlight / flash (e.g., a light-emitting diode flash), and a keyboard.

[0235] In various embodiments, the peripheral component interface may include, but is not limited to, a non-volatile memory port, an audio jack, and a power interface.

[0236] In various embodiments, the sensors may include, but are not limited to, gyroscope sensors, accelerometers, proximity sensors, ambient light sensors, and positioning units. The positioning unit may also be part of or interact with network interface 520 to communicate with components of the positioning network (e.g., Global Positioning System (GPS) satellites).

[0237] Figure 7 The illustration shows another terminal device 1100 according to an embodiment of this application. For example, device 1100 includes a transceiver module 1101 and a processing module 1102.

[0238] According to some embodiments of this application, the terminal device 1100 can perform... Figure 2The content sharing method shown illustrates various operations performed by the mobile phone 100a or computer 100b. For example, according to some embodiments of this application, a content sharing device can be provided, which can be implemented in the mobile phone 100a or computer 100b. The content sharing device may include a transceiver module 1101 and a processing module 1102. According to some embodiments of this application, the content sharing device can be configured to perform the above-described combination. Figure 2 The various operations performed by the mobile phone 100a or computer 100b are described.

[0239] For example, when the content sharing device is implemented in mobile phone 100a, the transceiver module 1101 can be used to perform operations S1, S4, receive signals sent by S7, and perform operations S11-S14 and S16, etc., while the processing module 1102 can be used to perform operations S2, S3, S8-S10, and S15, etc.

[0240] According to some embodiments of this application, when the content sharing device is implemented in computer 100b, transceiver module 1101 can be used to receive signals sent in operations S1, S4, S11, and execute operations S7, S12-S14 and S16, etc., while processing module 1102 can be used to execute operations S5-S6, etc.

[0241] Figure 8 The illustration shows another terminal device 1200 according to an embodiment of this application. The terminal device 1200 includes at least one processor 1210, a memory 1220, and a transceiver 1230. The processor 1210 is coupled to the memory 1220 and the transceiver 1230. In this embodiment, the coupling is a direct or indirect coupling or communication connection between devices, units, or modules, and can be electrical, mechanical, or other forms, used for information exchange between devices, units, or modules. This embodiment does not limit the connection medium between the transceiver 1230, processor 1210, and memory 1220. For example, according to some embodiments of this application, the memory 1220, processor 1210, and transceiver 1230 can be connected via a bus, which can be an address bus, a data bus, a control bus, etc.

[0242] Memory 1220 can be used to store program instructions. Transceiver 1230 can be used to receive or send data. Processor 1210 can be used to call the program instructions stored in memory 1220, causing device 1200 to execute. Figure 2 The operations performed by mobile phone 100a or computer 100b.

[0243] According to some embodiments of this application, the processor 1210 may be a general-purpose processor, a digital signal processor, an application-specific integrated circuit, a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components, and may implement or execute the methods, operations, and logic block diagrams disclosed in the embodiments of this application. The general-purpose processor may be a microprocessor or any conventional processor, etc. The operation of the methods disclosed in the embodiments of this application can be directly manifested as execution by a hardware processor, or execution by a combination of hardware and software modules within the processor.

[0244] According to some embodiments of this application, memory 1220 may be non-volatile memory or volatile memory. Memory is any other medium capable of carrying or storing desired program code having an instruction or data structure form and accessible by a computer, but is not limited thereto. The memory in the embodiments of this application may also be a circuit or any other device capable of implementing a storage function for storing program instructions and / or data.

[0245] The embodiments disclosed in this application can be implemented in hardware, software, firmware, or a combination of these implementation methods. Embodiments of this application can be implemented as computer programs or program code executable on a programmable system, which may include at least one processor, a storage system (including volatile and non-volatile memory and / or storage elements), at least one input device, and at least one output device.

[0246] Program code can be applied to input instructions to execute the functions described in this application and generate output information. The output information can be applied to one or more output devices in a known manner. For the purposes of this application, the processing system includes any system having a processor such as, for example, a digital signal processor (DSP), a microcontroller, an application-specific integrated circuit (ASIC), or a microprocessor.

[0247] The program code can be implemented using a high-level procedural language or an object-oriented programming language to communicate with the processing system. Assembly language or machine language can also be used when needed. In fact, the mechanisms described in this application are not limited to any particular programming language. In either case, the language can be a compiled language or an interpreted language.

[0248] In some cases, the disclosed embodiments may be implemented in hardware, firmware, software, or any combination thereof. The disclosed embodiments may also be implemented as instructions or programs carried or stored on one or more transient or non-transient machine-readable (e.g., computer-readable) storage media, which may be read and executed by one or more processors, etc. When the instructions or program are run by a machine, the machine may perform the various methods described above. For example, the instructions may be distributed via a network or other computer-readable media. Therefore, machine-readable media may include, but are not limited to, any mechanism for storing or transmitting information in a machine-readable (e.g., computer-readable) form, such as floppy disks, optical disks, optical disc read-only memories (CD-ROMs), magneto-optical disks, read-only memories (ROMs), random access memories (RAMs), erasable programmable read-only memories (EPROMs), electronically erasable programmable read-only memories (EEPROMs), magnetic cards or optical cards, or flash memory or tangible machine-readable storage for transmitting network information via electrical, optical, acoustic, or other forms of signals (e.g., carrier waves, infrared signals, digital signals, etc.). Therefore, machine-readable media includes any form of machine-readable medium suitable for storing or transmitting electronic instructions or machine (e.g., computer) readable information.

[0249] Therefore, embodiments of this application also include non-transient tangible machine-readable media containing instructions or design data, such as a hardware description language (HDL), that defines the architectures, circuits, devices, processors, and / or system features described herein. These embodiments are also referred to as program products.

[0250] According to some embodiments of this application, in order to implement the functions of the methods provided in the embodiments of this application, the terminal device may include a hardware structure and / or a software module, and implement the above functions in the form of a hardware structure, a software module, or a hardware structure plus a software module. Whether a certain function is implemented in the form of a hardware structure, a software module, or a hardware structure plus a software module depends on the specific application and design constraints of the technical solution.

[0251] This document uses terminology commonly employed by those skilled in the art to describe various aspects of the illustrative embodiments in order to convey the essence of their work to others skilled in the art. However, it will be apparent to those skilled in the art that some alternative embodiments may be practiced using the features partially described. Specific figures and configurations are set forth for purposes of explanation in order to provide a more thorough understanding of the illustrative embodiments. However, it will be apparent to those skilled in the art that alternative embodiments may be practiced without specific details. In some other instances, well-known features have been omitted or simplified herein to avoid obscuring the illustrative embodiments of this application.

[0252] It should be understood that although the terms "first," "second," etc., may be used herein to describe various features, these features should not be limited by these terms. The use of these terms is merely for distinction and should not be construed as indicating or implying relative importance. For example, without departing from the scope of the exemplary embodiments, a first feature may be referred to as a second feature, and similarly, a second feature may be referred to as a first feature.

[0253] Furthermore, the various operations will be described as multiple separate operations in a manner most conducive to understanding the illustrative embodiments; however, the order of description should not be construed as implying that these operations must depend on the order of description, and many of these operations may be performed in parallel, concurrently, or simultaneously. Moreover, the order of the operations may also be rearranged. The process may be terminated when the described operations are completed, but additional operations not included in the figures may also be present. The process may correspond to a method, function, procedure, subroutine, subroutine, etc.

[0254] References to "an embodiment," "an embodiment," "an illustrative embodiment," etc., in this specification indicate that the described embodiment may include specific features, structures, or properties; however, each embodiment may or may not necessarily include specific features, structures, or properties. Furthermore, these phrases are not necessarily directed to the same embodiment. Additionally, when specific features are described in conjunction with specific embodiments, the knowledge of those skilled in the art can influence the combination of these features with other embodiments, whether or not those embodiments are explicitly described.

[0255] In the accompanying drawings, some structural or methodological features may be shown in a specific arrangement and / or order. However, it should be understood that such a specific arrangement and / or order is not necessary. Rather, in some embodiments, these features may be illustrated in a manner and / or order different from that shown in the illustrative drawings. Furthermore, the inclusion of structural or methodological features in a particular drawing does not mean that all embodiments need to include such features; in some embodiments, these features may be omitted, or they may be combined with other features.

[0256] Unless the context otherwise specifies, the terms “comprising,” “having,” and “including” are synonyms. The phrase “A / B” means “A or B.” The phrase “A and / or B” means “(A), (B), or (A and B).”

[0257] As used herein, the term “module” may refer to, as part of, or include: a memory (shared, dedicated, or grouped) for running one or more software or firmware programs, an application-specific integrated circuit (ASIC), electronic circuitry and / or a processor (shared, dedicated, or grouped), combinational logic circuitry, and / or other suitable components that provide the said functionality.

[0258] The embodiments of this application have been described in detail above with reference to the accompanying drawings. However, the use of the technical solutions of this application is not limited to the various applications mentioned in the embodiments of this patent. Various structures and modifications can be easily implemented with reference to the technical solutions of this application to achieve the various beneficial effects mentioned herein. Within the scope of knowledge possessed by those skilled in the art, all changes made without departing from the spirit of this application should be considered within the scope of this patent application.

[0259] The above description is merely a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in the present invention should be included within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.

Claims

1. A content transmission method, characterized in that, Including: The first device determines that the distance between it and the second device is less than a distance threshold; The first device prompts the user that content can be transmitted between the first device and the second device; The first device recognizes a gesture operation of the user on the first device, and determines the transmission content and the transmission direction of the transmission content between the first device and the second device according to the recognized gesture operation; the transmission direction includes from the first device to the second device, or from the second device to the first device; the gesture operation is the moving manner of the user holding the first device, and the moving manner of the user holding the first device is obtained by detecting the change of the acceleration of the first device; The first device receives the transmission content from the second device or sends the transmission content to the second device according to the determined transmission direction; The first device determines that the distance between it and the second device is less than a distance threshold, including: The first device monitors the change of the magnetic induction signal intensity of the first device, and detects that the distance between the first device and the second device is less than the distance threshold when the change of the magnetic induction signal intensity exceeds a preset intensity change threshold.

2. The method according to claim 1, wherein The first device determines the transmission content and the transmission direction of the transmission content between the first device and the second device according to the recognized gesture operation, including: The first device determines a first transmission content according to a recognized first gesture operation, and determines that the transmission direction of the first transmission content is from the first device to the second device.

3. The method according to claim 1, wherein The first device determines the transmission content and the transmission direction of the transmission content between the first device and the second device according to the recognized gesture operation, including: The first device determines a second transmission content according to a recognized second gesture operation, and determines that the transmission direction of the second transmission content is from the second device to the first device.

4. The method according to claim 1, wherein The first device determines the distance between the first device and the second device, including: the first device determines the distance between it and the second device by at least one of Bluetooth ranging, millimeter wave ranging, and ultrasonic ranging.

5. The method according to claim 4, wherein The first device determines the distance between the first device and the second device by Bluetooth ranging, including: The first device sends a first Bluetooth broadcast signal; The first device receives a second Bluetooth broadcast signal sent by the second device and information related to a second distance; wherein, the second Bluetooth broadcast signal is sent by the second device in response to receiving the first Bluetooth broadcast signal, and the information related to the second distance is used to characterize the second distance, and the second distance is the second distance between the first device and the second device calculated by the second device according to the received first Bluetooth broadcast signal; The first device obtains a first distance according to the received second Bluetooth broadcast signal, where the first distance is the first distance between the first device and the second device calculated by the first device based on the signal strength of the second Bluetooth broadcast signal; Determine the larger one of the first distance and the second distance as the distance between the first device and the second device.

6. A content transmission device, characterized in that, The content transmission device is used to execute the method according to any one of claims 1-5.

7. A device, characterized in that, The device is a first device, and the first device includes: A memory in which instructions are stored, and A processor configured to read the instructions in the memory to cause the first device to perform: Determine that the distance between the first device and the second device is less than a distance threshold; Prompt the user that content can be transmitted between the first device and the second device; Identify the user's gesture operation on the first device, and determine the transmission content and the transmission direction of the transmission content between the first device and the second device according to the identified gesture operation; the transmission direction includes from the first device to the second device, or from the second device to the first device; the gesture operation is the moving manner of the user holding the first device, and the moving manner of the user holding the first device is obtained by detecting the change in the acceleration of the first device; Receive the transmission content from the second device or send the transmission content to the second device according to the determined transmission direction; The determination that the distance between the first device and the second device is less than the distance threshold includes: The first device monitors the change in the magnetic induction signal strength of the first device, and detects that the distance between the first device and the second device is less than the distance threshold when the change in the magnetic induction signal strength exceeds a preset strength change threshold.

8. A machine-readable medium, characterized in that, Instructions are stored in the machine-readable medium, and when the instructions are run by the machine, the machine performs: Determine that the distance between the first device and the second device is less than the distance threshold; Prompt the user that content can be transmitted between the first device and the second device; Identify the user's gesture operation on the machine, and determine the transmission content and the transmission direction of the transmission content between the machine and the second device according to the identified gesture operation; the transmission direction includes from the first device to the second device, or from the second device to the first device; the gesture operation is the moving manner of the user holding the first device, and the moving manner of the user holding the first device is obtained by detecting the change in the acceleration of the first device; Receive the transmission content from the second device or send the transmission content to the second device according to the determined transmission direction; The determination that the distance between the first device and the second device is less than the distance threshold includes: The first device monitors the change in the magnetic induction signal strength of the first device, and detects that the distance between the first device and the second device is less than the distance threshold when the change in the magnetic induction signal strength exceeds a preset strength change threshold.