Content sharing method and terminal device
By detecting the target device and pouring operations in the terminal device, fast content sharing between terminal devices is achieved, and cumbersome operation problems in the prior art are solved, user experience is improved and cost is reduced.
Patent Information
- Application Number
- CN202111601985.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-24
- Publication Date
- 2025-04-25
- Estimated Expiration
- 2041-12-24
AI Technical Summary
When using the content sharing function in existing terminal devices, the operation is complicated. Users need to enable the close-range communication function on each device and perform multiple operations to achieve connections and content sharing between devices.
By detecting the pouring operation of the target device and the terminal device, when the distance between the target device and the terminal device is less than or equal to a certain target distance, the content is shared with the target device in response to the pouring operation.
It simplifies the operation process of content sharing function, improves user convenience, and reduces dependence on NFC chips, and has a lower cost of use.
Smart Images

Figure CN116346981B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a content sharing method and terminal device. Background Art
[0002] With the popularization of terminal devices, users have more and more terminal devices. For example, a user owns multiple devices such as mobile phones, tablets, and laptops. In order to facilitate users, most of the current terminal devices support content sharing functions based on near-field communication technology. Users can use this function to conveniently share pictures, documents, audio and video content between multiple terminal devices.
[0003] Currently, when users want to use the content sharing function to share content between multiple terminal devices, they are generally required to enable the short-range communication function on each terminal device, and then perform multiple operations on the interface displayed on the terminal device to achieve connection and content sharing between the terminal devices. The operation is relatively cumbersome. Summary of the invention
[0004] In view of this, the present application provides a content sharing method and a terminal device, which are used to simplify the operation process of the content sharing function and improve the convenience of user use.
[0005] In order to achieve the above-mentioned purpose, in a first aspect, an embodiment of the present application provides a content sharing method, which is applied to a terminal device, and the method includes:
[0006] Detecting a target device and a dumping operation acting on the terminal device, wherein a distance between the target device and the terminal device is less than or equal to a target distance;
[0007] When the target device and the dump operation are detected, content is shared with the target device in response to the dump operation.
[0008] The content sharing method provided in the embodiment of the present application can share content with the target device when the terminal device detects the target device and a tipping operation is performed on the terminal device. In this way, the user can quickly share content between the two devices by bringing the terminal device close to a nearby device and tipping the terminal device. Therefore, the method can simplify the operation process of the content sharing function and improve the convenience of user use. Moreover, the method does not rely on the NFC chip and can use other positioning functions with lower cost and stronger functionality to detect the target device.
[0009] In a possible implementation of the first aspect, when the dumping direction of the dumping operation is toward the target device, in response to the dumping operation, the content is shared with the target device, which can reduce the possibility of erroneous sharing.
[0010] In a possible implementation of the first aspect, when multiple target devices are detected, in response to the dumping operation, the content is shared with the target device toward which the dumping direction of the dumping operation is directed. This makes it easier for the user to determine the device to share the content, thereby improving the accuracy of content sharing.
[0011] In a possible implementation of the first aspect, when multiple target devices are detected, in response to the dump operation, the content is shared with each target device, so that the content can be shared with multiple devices at the same time, thereby improving the convenience of content sharing.
[0012] In a possible implementation of the first aspect, the detecting target device includes:
[0013] Determine at least one candidate device based on the first positioning function, where the distance between the at least one candidate device and the terminal device is less than a first distance, and the first distance is greater than the target distance;
[0014] Notify the at least one candidate device to enable the second positioning function;
[0015] Determine the target device from the at least one candidate device based on the second positioning function;
[0016] The positioning accuracy of the first positioning function is lower than the positioning accuracy of the second positioning function, or the power consumption of the first positioning function is higher than the power consumption of the second positioning function.
[0017] Through the above implementation, the power consumption of each device can be reduced.
[0018] In a possible implementation manner of the first aspect, the first positioning function includes: at least one of a Bluetooth positioning function and a Wi-Fi positioning function;
[0019] The second positioning function includes: at least one of an ultrasonic positioning function, a millimeter wave positioning function and an ultra-wideband positioning function.
[0020] In a possible implementation of the first aspect, the detecting the dumping operation includes:
[0021] In the case where it is detected that the first operation acting on the terminal device satisfies the first condition, determining that the dumping operation is detected;
[0022] Among them, the first operation is an operation of rotating the terminal device around a target rotation axis, and the target rotation axis is an axis along the length direction or width direction of the terminal device; the first condition includes: the terminal device rotates a first angle within a first time length, and the first angle is within a first angle range.
[0023] Through the above-mentioned implementation, the occurrence of false detection can be reduced.
[0024] In a possible implementation of the first aspect, when the first operation is performed, the terminal device is in a screen-up state, which can reduce the situation where the tipping operation is triggered by mistake, and when the terminal device is in a screen-up state, it is more convenient for the user to operate, thereby improving the convenience of the user's operation.
[0025] In a possible implementation of the first aspect, when the terminal device is in a screen-up state, an angle between a screen normal direction of the terminal device and any horizontal direction is greater than 0 degrees and less than 180 degrees. This allows a user to have a certain angle error during operation, thereby improving the convenience of user operation.
[0026] In a possible implementation of the first aspect, the first angle range is [15°, 105°]; the first angle within the first angle range is: 15°≤first angle≤105°.
[0027] In a possible implementation manner of the first aspect, the first condition further includes:
[0028] The terminal device rotates by a first angle within a first time period and then remains stationary for a second time period; and / or
[0029] During the process of the terminal device rotating by the first angle, the rotation angular acceleration is greater than or equal to the first angular acceleration.
[0030] Through the above implementation, the situation of false triggering of the dumping operation can be reduced and the accuracy of the detection result can be improved.
[0031] In a possible implementation of the first aspect, the method further includes:
[0032] When it is detected that the first operation does not satisfy the first condition, and a second operation performed continuously after the first operation satisfies a second condition, determining that the dumping operation is detected;
[0033] Among them, the second operation is an operation of rotating the terminal device around the target rotation axis, and the rotation direction of the second operation is the same as the rotation direction of the first operation; the second condition includes: the terminal device rotates a second angle within a third time length, and the second angle is within a second angle range.
[0034] Through the above implementation, the convenience of user use can be improved.
[0035] In a possible implementation manner of the first aspect, the second condition further includes at least one of the following:
[0036] After the terminal device rotates by a second angle within the third time period, it remains stationary for a fourth time period;
[0037] The third duration is shorter than the first duration;
[0038] The lower limit of the angle of the second angle range is smaller than the lower limit of the angle of the first angle range;
[0039] An upper angle limit of the second angle range is smaller than an upper angle limit of the first angle range.
[0040] In a possible implementation of the first aspect, when it is detected that the terminal device is in a non-stationary state, an operation of detecting the target device is started, which can save power.
[0041] In a possible implementation of the first aspect, when it is detected that the terminal device is in a moving state, an operation of detecting the target device is started, which can further save power.
[0042] In a possible implementation of the first aspect, when the dumping operation is detected, the operation of detecting the target device is started. In this way, when the user brings the terminal device close to the target device but does not intend to share content and does not perform the dumping operation, the terminal device will not perform the target device detection process, thereby saving processing resources and reducing energy consumption.
[0043] In a possible implementation of the first aspect, the content shared with the target device includes at least one of the following: files, screen projection content, and application running information.
[0044] In a possible implementation of the first aspect, the method further includes: in response to the dumping operation, sending a positional relationship between the terminal device and the target device to the target device, wherein the positional relationship is used for the target device to display the content shared by the terminal device on a side of the screen close to the terminal device.
[0045] Through the above implementation, user needs can be better met and the flexibility of users in sharing content can be improved.
[0046] In a possible implementation manner of the first aspect, the target device and the terminal device are in the same local area network, and / or the terminal device is a trusted device of the target device;
[0047] The trusted device of the target device logs into the same account as the target device, or the account logged into by the trusted device of the target device is a trusted account of the account logged into by the target device.
[0048] Through the above implementation, the security of content sharing can be improved.
[0049] In a second aspect, an embodiment of the present application provides a content sharing device, which is applied to a terminal device. The device includes: a processing module and a communication module, wherein:
[0050] The processing module is used to: detect a target device and a dumping operation acting on the terminal device, and when the target device and the dumping operation are detected, respond to the dumping operation and share content with the target device through the communication module, wherein the distance between the target device and the terminal device is less than or equal to the target distance.
[0051] In a possible implementation of the second aspect, the processing module is specifically configured to: when a dumping direction of the dumping operation is toward the target device, share the content with the target device through the communication module in response to the dumping operation.
[0052] In a possible implementation of the second aspect, the processing module is specifically configured to: when a plurality of the target devices are detected, in response to the dumping operation, share the content with the target device in the dumping direction of the dumping operation through the communication module.
[0053] In a possible implementation of the second aspect, the processing module is specifically configured to: when a plurality of the target devices are detected, share the content with each of the target devices through the communication module in response to the dumping operation.
[0054] In a possible implementation manner of the second aspect, the processing module is specifically configured to:
[0055] Determine at least one candidate device based on the first positioning function, where the distance between the at least one candidate device and the terminal device is less than a first distance, and the first distance is greater than the target distance;
[0056] Notifying the at least one candidate device through the communication module to enable the second positioning function;
[0057] Determine the target device from the at least one candidate device based on the second positioning function;
[0058] The positioning accuracy of the first positioning function is lower than the positioning accuracy of the second positioning function, or the power consumption of the first positioning function is higher than the power consumption of the second positioning function.
[0059] In a possible implementation of the second aspect, the first positioning function includes: at least one of a Bluetooth positioning function and a Wi-Fi positioning function;
[0060] The second positioning function includes: at least one of an ultrasonic positioning function, a millimeter wave positioning function and an ultra-wideband positioning function.
[0061] In a possible implementation manner of the second aspect, the processing module is specifically configured to:
[0062] In the case where it is detected that the first operation acting on the terminal device satisfies the first condition, determining that the dumping operation is detected;
[0063] Among them, the first operation is an operation of rotating the terminal device around a target rotation axis, and the target rotation axis is an axis along the length direction or width direction of the terminal device; the first condition includes: the terminal device rotates a first angle within a first time length, and the first angle is within a first angle range.
[0064] In a possible implementation of the second aspect, when the first operation is performed, the terminal device is in a screen-up state.
[0065] In a possible implementation of the second aspect, when the terminal device is in a screen-up state, an angle between a screen normal direction of the terminal device and any horizontal direction is greater than 0 degrees and less than 180 degrees.
[0066] In a possible implementation of the second aspect, the first angle range is greater than or equal to 15° and less than or equal to 105°.
[0067] In a possible implementation manner of the second aspect, the first condition further includes:
[0068] The terminal device rotates by a first angle within a first time period and then remains stationary for a second time period; and / or
[0069] During the process of the terminal device rotating by the first angle, the rotation angular acceleration is greater than or equal to the first angular acceleration.
[0070] In a possible implementation manner of the second aspect, the processing module is further used to:
[0071] When it is detected that the first operation does not satisfy the first condition, and a second operation performed continuously after the first operation satisfies a second condition, determining that the dumping operation is detected;
[0072] Among them, the second operation is an operation of rotating the terminal device around the target rotation axis, and the rotation direction of the second operation is the same as the rotation direction of the first operation; the second condition includes: the terminal device rotates a second angle within a third time length, and the second angle is within a second angle range.
[0073] In a possible implementation manner of the second aspect, the second condition further includes at least one of the following:
[0074] After the terminal device rotates by a second angle within the third time period, it remains stationary for a fourth time period;
[0075] The third duration is shorter than the first duration;
[0076] The lower limit of the angle of the second angle range is smaller than the lower limit of the angle of the first angle range;
[0077] An upper angle limit of the second angle range is smaller than an upper angle limit of the first angle range.
[0078] In a possible implementation of the second aspect, the processing module is further configured to: when it is detected that the terminal device is in a non-stationary state, start an operation of detecting the target device.
[0079] In a possible implementation manner of the second aspect, the processing module is further configured to: when it is detected that the terminal device is in a moving state, start an operation of detecting the target device.
[0080] In a possible implementation manner of the second aspect, the processing module is further configured to: when the dumping operation is detected, start an operation of detecting the target device.
[0081] In a possible implementation of the second aspect, the content shared with the target device includes at least one of the following: files, screen projection content, and application running information.
[0082] In a possible implementation of the second aspect, the processing module is also used to: in response to the dumping operation, send the positional relationship between the terminal device and the target device to the target device through the communication module, and the positional relationship is used for the target device to display the content shared by the terminal device on a side of the screen close to the terminal device.
[0083] In a possible implementation manner of the second aspect, the target device and the terminal device are in the same local area network, and / or the terminal device is a trusted device of the target device;
[0084] The trusted device of the target device logs into the same account as the target device, or the account logged into by the trusted device of the target device is a trusted account of the account logged into by the target device.
[0085] In a third aspect, an embodiment of the present application provides a terminal device, comprising: a memory and a processor, the memory being used to store a computer program; the processor being used to enable the terminal device to execute the method described in the first aspect or any one of the implementations of the first aspect when calling the computer program.
[0086] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the method described in the first aspect or any one of the embodiments of the first aspect is implemented.
[0087] In a fifth aspect, an embodiment of the present application provides a computer program product. When the computer program product runs on a terminal device, the terminal device executes the method described in the first aspect or any implementation method of the first aspect.
[0088] In a sixth aspect, an embodiment of the present application provides a chip system, including a processor, the processor is coupled to a memory, and the processor executes a computer program stored in the memory to implement the method described in the first aspect or any embodiment of the first aspect. The chip system can be a single chip or a chip module composed of multiple chips.
[0089] It can be understood that the beneficial effects of the second to sixth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0090] Figure 1 A schematic diagram of the system architecture of a content sharing system provided in an embodiment of the present application;
[0091] Figure 2-Figure 4 Schematic diagram of several content sharing methods provided in the embodiments of the present application;
[0092] Figure 5A to Figure 5C Some schematic diagrams of content sharing processes provided in embodiments of the present application;
[0093] Figure 6 A schematic diagram of an application scenario provided for an embodiment of the present application;
[0094] Figure 7 A flowchart of a content sharing method provided in an embodiment of the present application;
[0095] Figure 8 A schematic diagram of a user interface provided in an embodiment of the present application;
[0096] Fig. 9 A schematic diagram of a coordinate system of a terminal device provided in an embodiment of the present application;
[0097] Fig.10A schematic diagram of the inclination angle of the screen normal direction of the terminal device provided in an embodiment of the present application;
[0098] Fig.11 A schematic diagram of the rotation angle of a terminal device provided in an embodiment of the present application;
[0099] Fig.12 A schematic diagram of a dumping operation provided in an embodiment of the present application;
[0100] Figures 13A to 13C Schematic diagrams of other content sharing processes provided in embodiments of the present application;
[0101] Figures 14A to 14C Schematic diagrams of other content sharing processes provided in embodiments of the present application;
[0102] Figures 15A to 15C Some further content sharing process diagrams provided in embodiments of the present application;
[0103] Fig.16 Some other user interface schematic diagrams provided for embodiments of the present application;
[0104] Fig.17 A flowchart of another content sharing method provided in an embodiment of the present application;
[0105] Fig.18 A schematic diagram of the structure of a content sharing device provided in an embodiment of the present application;
[0106] Fig.19 A schematic diagram of the structure of a terminal device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0107] The embodiments of the present application are described below in conjunction with the drawings in the embodiments of the present application. It is understood that the terms used in the implementation methods of the embodiments of the present application are only used to explain the specific embodiments of the present application, and are not intended to limit the present application. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments.
[0108] First, the content sharing system involved in the embodiment of the present application is introduced. Figure 1 , Figure 1 A schematic diagram of the system architecture of a content sharing system provided in an embodiment of the present application.
[0109] The content sharing system may include multiple terminal devices, which may be portable electronic devices such as mobile phones, tablets, notebooks, smart wearable devices, or non-portable electronic devices such as desktop computers, smart TVs, large-screen devices, car terminals, printers, speakers, etc. Figure 1In the description, a content sharing system including a mobile phone 100, a notebook 200, a tablet computer 300, a large-screen device 400, a smart wearable device 500 and a speaker 600 is taken as an example for exemplary description.
[0110] Each terminal device may have one or more short-range wireless communication modules such as a Bluetooth module, a wireless local area network (WLAN) (such as a wireless fidelity (Wi-Fi) network) module, a millimeter wave (mmWave) module, an ultra wide band (UWB) module, and a near field communication (NFC) module. Among them, the Bluetooth module may include a classic Bluetooth (BT) module and a low-power Bluetooth (BLE) module.
[0111] The terminal device can transmit signals through the above-mentioned short-range wireless communication module to detect and scan terminal devices near the terminal device (hereinafter referred to as nearby devices), so that the terminal device can discover nearby devices and establish wireless communication connections with nearby devices, and perform content sharing operations such as file sharing, audio and video connection, cross-device editing or wireless screen projection with nearby devices through the established wireless communication connection.
[0112] The following uses a mobile phone 100 and a notebook 200 as examples to illustrate several content sharing methods.
[0113] The user can share the content through the share button in the application program interface (APP). Specifically, after turning on Wi-Fi on both the mobile phone 100 and the notebook 200, Figure 2 As shown in (a) of FIG. 1 , the user can open the target APP (here, the "Gallery" APP) on the mobile phone 100, select the thumbnail 1001 corresponding to the picture S to be shared in the "Gallery" interface 10, and click the share button 1002 to open the sharing interface. Figure 2 As shown in (b) of FIG. 1 , the sharing interface 11 may display a picture 1101 selected by the user, icons 1102 corresponding to nearby devices discovered by the mobile phone 100, and some function icons 1103 supporting sharing services. Figure 2For example, the nearby device is "PC-A", and the function icons 1103 include WeChat icon, Bluetooth icon, QQ icon and wireless local area network (WLAN) direct connection icon. Then, the user can select the icon 1102 corresponding to the notebook 200 "PC-A" searched by the mobile phone 100 to establish a connection; after the connection is established, the mobile phone 100 can transfer the above-mentioned picture S to be shared to the notebook 200 "PC-A".
[0114] Users can also share content by casting the screen. One of the ways to do this can be found in Figure 3 ,like Figure 3 As shown in (a), the user first opens the computer manager on the notebook 200, and then selects the "My Phone 100" option 2001 in the "My Device" interface 20 to open the phone 100 management interface; Figure 3 As shown in (b) of FIG. 1 , in the mobile phone 100 management interface 21, the user can click the "Connect Now" option 2101 to open the mobile phone 100 connection interface to connect the mobile phone 100. Figure 3 As shown in (c) in the figure, the connection interface 22 of the mobile phone 100 may display a prompt message: "Looking for your mobile phone 100" and a search countdown time of "24s"; and a QR code connection entry 2201 may be provided in the upper left corner. The user may turn on the Bluetooth on the mobile phone 100 and the notebook 200 at the same time, so that the notebook 200 can automatically establish a connection when it finds the mobile phone 100; or turn on the Wi-Fi on the mobile phone 100 and the notebook 200 at the same time, click the QR code connection entry 2201 in the upper left corner of the connection interface 22 of the mobile phone 100, open the QR code connection interface, and then scan the QR code on the QR code connection interface through the mobile phone 100 to establish a connection. After the connection is established, the mirrored screen of the mobile phone 100 can be displayed on the notebook 200, and the user can view and edit files on the mobile phone 100 on the notebook 200, and can also transfer files to and from the mobile phone 100 by dragging and dropping.
[0115] Another way for users to share content through screen projection can be found in Figure 4 , the user turns on Wi-Fi and Bluetooth on both the mobile phone 100 and the notebook 200, and turns on NFC on the mobile phone 100. Figure 4 As shown in (a) and (b), the user can use the NFC sensing area 30 on the back of the mobile phone 100 to touch the NFC tag sensing area 31 of the notebook 200 to establish a connection, thereby realizing screen projection from the mobile phone 100 to the notebook 200.
[0116] Among the above content sharing methods, Figure 2 The method of establishing a connection and sharing content through the share button shown Figure 3The methods of establishing a connection and sharing content through a QR code shown require the user to perform multiple operations on the interface displayed by the terminal device to achieve connection and content sharing between terminal devices, which is relatively cumbersome. Figure 4 The method of establishing a connection through NFC to share content shown requires a built-in NFC chip or an external NFC tag in the terminal device. However, for some terminal devices, such as tablets, it is difficult to set up NFC tags due to the product form, and the cost of built-in NFC chips is relatively high. In addition, NFC chips have few application scenarios and low functionality.
[0117] In view of the above problems, the embodiment of the present application provides another content sharing solution, which allows users to quickly share content between two devices by placing the terminal device close to the nearby device and tipping the terminal device, without relying on the NFC chip. The terminal device that the user tips over can be a portable electronic device, and the nearby device can be a portable or non-portable electronic device.
[0118] For example Figure 5A to Figure 5C As shown, the user can hold the mobile phone 100 close to the notebook 200, and then tip the mobile phone 100 to share the content on the mobile phone 100 (here, the mirror image of the screen content of the mobile phone 100) with the notebook 200. Alternatively, the user can also tip the mobile phone 100 while holding the mobile phone 100 close to the notebook 200 to share the content on the mobile phone 100 with the notebook 200.
[0119] The following describes the specific implementation process of the above content sharing solution in combination with specific application scenarios.
[0120] Figure 6 A schematic diagram of an application scenario provided in an embodiment of the present application, such as Figure 6 As shown, the application scenario includes a mobile phone 100, a notebook 200, a tablet 300 and a large-screen device 400. For example, the mobile phone 100, the notebook 200 and the tablet 300 are located in front of the large-screen device 400, the mobile phone 100 is located on the right side of the notebook 200, and the tablet 300 is located on the left side of the notebook 200. The user can move the mobile phone 100 close to the notebook 200 and share content with the notebook 200 by tilting the mobile phone 100.
[0121] It will be understood that the above application scenario is only an example and is not intended to limit the present application. In other embodiments of the present application, the application scenario may include more or fewer terminal devices than shown in the figure, or include other types of terminal devices; and users can share content between any two terminal devices through the above-mentioned approach-dump method.
[0122] Figure 7FIG. 2 shows a possible implementation process of a user picking up a mobile phone 100 to share content with a notebook 200, such as Figure 7 As shown, the process may include the following steps:
[0123] S110: The mobile phone 100 detects that it is in a non-stationary state.
[0124] like Figure 6 As shown in , the notebook 200, tablet 300 and large-screen device 400 are all located near the mobile phone 100. The user can move the mobile phone 100 close to the notebook 200 among the nearby devices, so that the mobile phone 100 can determine the notebook 200 closer to itself as the target device to be shared, and then share the content.
[0125] Specifically, the mobile phone 100 can detect whether it is close enough to the notebook 200 through the ranging function in any working state. Considering that ranging will produce a certain amount of energy consumption, and when the user holds the mobile phone 100 close to the notebook 200, the mobile phone 100 will be in a non-stationary state. Therefore, in order to save power, in this embodiment, the mobile phone 100 can first detect its own motion state, and then perform the ranging process when it detects that it is in a non-stationary state.
[0126] When the user holds the mobile phone 100 close to the notebook 200, the mobile phone 100 will move toward the notebook 200. In order to further save power, in this embodiment, the mobile phone 100 can perform the distance measurement process when it detects that it is moving in a certain direction (ie, in a moving state).
[0127] In a specific implementation, the mobile phone 100 can identify its own motion state through the signal detected by the motion sensor, wherein the motion sensor may include one or more sensors such as an accelerator (ACC), a gyroscope, and an inertial measurement unit (IMU).
[0128] S120 . The mobile phone 100 detects the distance between itself and nearby devices (the notebook 200 , the tablet 300 , and the large-screen device 400 ) based on the first positioning function.
[0129] Compared with the low-precision positioning function, the high-precision positioning function usually consumes higher power. Therefore, in order to save power, in this embodiment, the mobile phone 100 can first use a low-precision positioning function (referred to as the first positioning function here) to detect the distance between nearby devices, and after screening out some candidate devices, use a high-precision positioning function (referred to as the second positioning function here) to detect the distance between the candidate devices, and then screen out the target device.
[0130] It is understandable that when detecting a target device, the mobile phone 100 can also directly use the second positioning function with higher accuracy to determine the distance to the nearby device to reduce the processing flow. In this embodiment, the first positioning function is used first, and then the second positioning function is used as an example for exemplary description.
[0131] Among them, the first positioning function may include: Bluetooth positioning function and Wi-Fi positioning function, etc.; the second positioning function may include: ultrasonic positioning function, millimeter wave positioning function and ultra-wideband positioning function, etc.
[0132] When using the first positioning function for distance measurement, the mobile phone 100 can use one first positioning function to measure the distance between the mobile phone 100 and the nearby device, or combine multiple first positioning functions to measure the distance between the mobile phone 100 and the nearby device; similarly, when the mobile phone 100 subsequently uses the second positioning function for distance measurement, it can also use one or more second positioning functions to measure the distance between the mobile phone 100 and the candidate device.
[0133] The mobile phone 100 and the nearby devices can send and receive positioning signals through the first positioning function, for example, by transmitting and receiving Bluetooth signals (specifically, they can be broadcast signals or response signals, etc.) through the Bluetooth positioning function. The mobile phone 100 can determine the distance between the mobile phone 100 and the discovered nearby devices based on the received signal strength indication (RSSI) value of the positioning signal; the mobile phone 100 can also use other ranging methods, such as time of arrival (TOA) ranging method, time difference of arrival (TDOA) ranging method, angle of arrival (AOA) ranging method, time of flight (TOF) ranging method, etc., to determine the distance between the mobile phone 100 and the discovered nearby devices, and the embodiments of the present application do not specifically limit this.
[0134] S130: The mobile phone 100 determines a candidate device from nearby devices, wherein the distance between the candidate device and the mobile phone 100 is less than the first distance.
[0135] After the mobile phone 100 determines the distance between it and the nearby device, it can use the distance threshold (herein referred to as the first distance) to filter out candidate devices, wherein the first distance can be determined according to the positioning accuracy of the first positioning function, and it can be greater than or equal to the positioning accuracy of the first positioning function. For example, when the Bluetooth positioning technology is used to determine the distance between the mobile phone 100 and the nearby device, the positioning accuracy of the Bluetooth positioning is about 30cm, and the first distance can be 50cm. In actual applications, the specific size of the first distance can be set according to actual needs, and this embodiment does not specifically limit this.
[0136] Assuming that the distance between the notebook 200 and the mobile phone 100 is 10 cm, the distance between the tablet 300 and the mobile phone 100 is 40 cm, the distance between the large-screen device 400 and the mobile phone 100 is 1 m, and the first distance is 50 cm, the mobile phone 100 can use the first positioning function to determine that the distance between the notebook 200 and the mobile phone 100 and the distance between the tablet 300 and the mobile phone 100 are both less than the first distance, and the distance between the large-screen device 400 and the mobile phone 100 is greater than the first distance. Therefore, the notebook 200 and the tablet 300 can be determined as candidate devices.
[0137] S140, the mobile phone 100 notifies the candidate devices (notebook 200 and tablet 300) to start the second positioning function, and detects the distance between the candidate devices and the mobile phone 100 based on the second positioning function. The distance between the candidate devices and the mobile phone 100 is less than the first distance.
[0138] After determining the candidate devices, the mobile phone 100 can notify each candidate device to enable the second positioning function to perform more accurate distance measurement. For example, after determining that the notebook 200 and the tablet 300 are candidate devices, the mobile phone 100 can notify the notebook 200 and the tablet 300 to enable the ultrasonic positioning function, and then use this function to measure the distance between the mobile phone 100 and the notebook 200, and the mobile phone 100 and the tablet 300.
[0139] The specific ranging method is similar to the ranging method using the first positioning function in step S130. The mobile phone 100 and the candidate device can send and receive positioning signals through the second positioning function. The mobile phone 100 can determine the distance between the mobile phone 100 and the candidate device based on the RSSI value of the positioning signal, or use TOA / TDOA / AOA / TOF and other ranging methods to determine the distance between the mobile phone 100 and the candidate device.
[0140] In some embodiments, the mobile phone 100 may also instruct the candidate device to measure the distance between itself and the mobile phone 100 through the positioning signal, and then return the measurement result to the mobile phone 100, that is, the process of measuring the distance between the mobile phone 100 and the candidate device through the second positioning function may also be performed on the candidate device, and the mobile phone 100 may obtain the distance between the mobile phone 100 and each candidate device from each candidate device. Similarly, the process of measuring the distance between the mobile phone 100 and the nearby device through the first positioning function may also be performed on the nearby device, and the mobile phone 100 may also obtain the distance between the mobile phone 100 and each nearby device from each nearby device.
[0141] When the second positioning function is turned on, each terminal device including the mobile phone 100 and each candidate device can find each other through positioning signals; after receiving the second positioning function turn-on notification sent by the mobile phone 100, when the candidate device finds other terminal devices other than itself through the second positioning function, the device identification of the found terminal device can be displayed on the screen to facilitate the user to understand the working status of the device. Figure 8 As shown, the notebook 200 can find the mobile phone 100, the tablet 300 and the large-screen device 400 through the second positioning function, and then the device identifications of the three devices can be displayed on the screen respectively.
[0142] The device identification may include the device type and / or device name of the terminal device, etc. The device identification may be displayed in the form of an icon or a card, etc. Figure 8 The example of displaying device types through icons is used as an example. Figure 8 As shown in , the mobile phone 100 corresponds to icon 4001 , the tablet 300 corresponds to icon 4002 , and the large-screen device 400 corresponds to icon 4003 .
[0143] In order to help users understand the location relationship between devices, such as Figure 8 As shown, when displaying the icon corresponding to the device identification, the candidate device can also indicate the positional relationship between the terminal device corresponding to the icon and the candidate device through the position of the icon on the screen. Figure 6 In the figure, the mobile phone 100 is on the right side of the notebook 200, the tablet 300 is on the left side of the notebook 200, and the large-screen device 400 is on the back of the notebook 200 screen; correspondingly, Figure 8 As shown, the icon 401 corresponding to the mobile phone 100 can be displayed in the lower right corner or other position on the right side of the notebook 200 screen, the icon 402 corresponding to the tablet 300 can be displayed in the lower left corner or other position on the left side of the notebook 200 screen, and the icon 403 corresponding to the large-screen device 400 can be displayed at the top of the notebook 200 screen.
[0144] It can be understood that the above-mentioned position relationship indication method is only an example. In the embodiment of the present application, other methods can also be used to indicate the position relationship between terminal devices. For example, the position relationship between the terminal device corresponding to the icon and itself can be described in text below the icon; the positioning information of the terminal device displayed on the candidate device is not limited to the above-mentioned device identification and position relationship. For example, the positioning method (such as Bluetooth) used to discover the terminal device can also be displayed. In the specific implementation, it can be arbitrarily selected as needed, and this embodiment does not specifically limit this.
[0145] In some embodiments, the mobile phone 100 may also display the positioning information of other terminal devices discovered through the second positioning function, or the candidate device may only display the positioning information of the terminal device (ie, the mobile phone 100) that sends the notification of starting the second positioning function.
[0146] In some embodiments, each terminal device may also display the positioning information of the discovered nearby devices on the screen when discovering nearby devices through the first positioning function.
[0147] S150: The mobile phone 100 determines a target device from the candidate devices, wherein the distance between the target device and the mobile phone 100 is less than a second distance.
[0148] Similar to step S130, after the mobile phone 100 uses the second positioning function to determine the distance between the mobile phone 100 and the candidate device, the distance threshold (herein referred to as the second distance) can be used to determine the target device, wherein the second distance can be greater than or equal to the positioning accuracy of the second positioning function. For example, when the ultrasonic positioning technology is used to determine the distance between the mobile phone 100 and the candidate device, the positioning accuracy of the ultrasonic positioning is about 20 cm, and the second distance can be 25 cm. In actual applications, the specific size of the second distance can be set according to actual needs, and this embodiment does not specifically limit this.
[0149] Continuing with the above example, assuming that the distance between the notebook 200 and the mobile phone 100 is 10 cm, the distance between the tablet 300 and the mobile phone 100 is 40 cm, the distance between the large-screen device 400 and the mobile phone 100 is 1 m, the first distance is 50 cm, and the second distance is 25 cm, then after the mobile phone 100 uses the first positioning function to determine that the notebook 200 and the tablet 300 are candidate devices, it can continue to use the second positioning function to determine that the distance between the notebook 200 and the mobile phone 100 is less than the second distance, and the distance between the tablet 300 and the mobile phone 100 is greater than the second distance, so it can be determined that the notebook 200 is the target device.
[0150] S160 . After detecting the tipping operation on the mobile phone 100 , the mobile phone 100 shares the content with the target device (notebook 200 ) in response to the tipping operation.
[0151] In order to determine a more accurate content sharing object, the mobile phone 100 can detect the user's tipping operation on the mobile phone 100 in addition to determining the target device. When the target device is determined and the tipping operation is detected, the content can be shared with the target device.
[0152] Similar to determining the target device, the mobile phone 100 can detect the tipping operation in any working state, and can also detect the tipping operation when it is detected that the mobile phone 100 is in a non-stationary state or a moving state, so as to save power.
[0153] The tipping operation may be tipping the mobile phone 100 to any side, or may be a tipping operation that meets certain requirements to reduce false detection. For example, the tipping operation may be rotating the terminal device with the screen facing up around a target rotation axis by a first angle, and the target rotation axis may be an axis along the length or width of the terminal device. Specifically, the mobile phone 100 may consider that a tipping operation is detected when the following process is detected:
[0154] (1) The mobile phone 100 is initially in a screen-upward state, that is, the screen normal direction of the mobile phone 100 is upward.
[0155] Fig. 9 A schematic diagram of a coordinate system of a terminal device provided in an embodiment of the present application, such as Fig. 9 As shown, the x-axis and y-axis are parallel to the plane where the screen of the mobile phone 100 is located, the x-axis is the width direction of the mobile phone 100, and the y-axis is the length direction of the mobile phone 100; the z-axis is perpendicular to the screen where the screen of the mobile phone 100 is located, and the z-axis is the screen normal direction of the mobile phone 100.
[0156] When the mobile phone 100 is in a screen-upward state, the normal of the screen of the mobile phone 100 may be perpendicular to the horizontal plane, or may have an inclination angle with the horizontal plane; Fig.10 A schematic diagram of the inclination angle of the screen normal direction of the terminal device provided in the embodiment of the present application, such as Fig.10 As shown, Z represents the vertical direction, X represents the horizontal direction, and the screen normal direction of the mobile phone 100 may have an angle θ with any horizontal direction, and the range of the angle θ may be (0°, 180°).
[0157] The initial posture of the mobile phone 100 may be a vertical screen state or a horizontal screen state.
[0158] By setting the initial state of the device for the tilting operation, such as the above-mentioned screen-up state, the situation of false triggering of the tilting operation can be reduced, and the terminal device is also more convenient for users to operate when the screen is up.
[0159] (2) The mobile phone 100 rotates around the target rotation axis by a first angle within a first time period and then remains stationary for a second time period.
[0160] The target rotation axis may be the x-axis or y-axis of the mobile phone 100. Fig.11 As shown in , the X-axis represents the horizontal direction, and the Z-axis represents the vertical direction. Assuming that the y-axis of the mobile phone 100 is perpendicular to the X-axis and the Z-axis, the mobile phone 100 rotates around the y-axis and flips from the first state S1 to the second state S2. The angle α of the screen normal direction of the mobile phone 100 is the first angle.
[0161] For example Figure 5B As shown in , when the mobile phone 100 is in the portrait mode, the user holds the mobile phone 100 close to the notebook 200 and can rotate the mobile phone 100 around the y-axis (ie, the length direction) of the mobile phone 100 to complete the tipping operation.
[0162] Another example Fig.12 As shown in (a) and (b), when the mobile phone 100 is in landscape mode, the user holds the mobile phone 100 close to the notebook 200 and can rotate the mobile phone 100 around the x-axis (i.e., the width direction) of the mobile phone 100 to complete the tipping operation.
[0163] Specifically, the first duration can be a shorter duration such as 1 second or 2 seconds; the first angle can select a slightly larger angle range (hereinafter referred to as the first angle range) to reduce the situation of false detection, for example, the first angle range can be [15°, 105°], that is, the lower limit of the first angle can be 15°, and the upper limit of the first angle can be 105°; the second duration is similar to the first duration, and a shorter duration can be selected, for example, it can also be 1 second or 2 seconds. The specific sizes of the first duration, the first angle, and the second duration can be selected according to actual needs, and this embodiment does not specifically limit this.
[0164] It is understandable that in some embodiments, when it is detected that the mobile phone 100 rotates around the target rotation axis by a first angle, it is considered that a tipping operation is detected to improve the detection speed; in the above process of detecting the tipping operation, considering the first time length and the second time length can reduce the situation of false triggering of the tipping operation and improve the accuracy of the detection result.
[0165] In order to further improve the accuracy of the detection result, in this embodiment, the angular acceleration (i.e., rotational angular acceleration) when the mobile phone 100 is rotated can also be detected. When the mobile phone 100 satisfies the states corresponding to the above (1) and (2), and the rotational angular acceleration is greater than or equal to the first angular acceleration, it is considered that a tipping operation is detected.
[0166] During the process of the user performing the dumping operation, there may be a situation where the user fails to dump the phone successfully for the first time. For example, the mobile phone 100 satisfies the state corresponding to (1) above, but only satisfies part of the state corresponding to (2). For example, after the mobile phone 100 rotates around the target rotation axis by a first angle within a first time period, the static time period does not reach the second time period, or the angle of rotation of the mobile phone 100 around the target rotation axis within the first time period is outside the first angle range, or the rotation angular acceleration is less than the first angular acceleration during the process of the mobile phone 100 rotating around the target rotation axis by the first angle. In this case, the user may dump the mobile phone 100 again. Therefore, in order to make it more convenient for the user to use, the mobile phone 100 can continue to detect the state of the mobile phone 100. If it is detected within a third time period that the mobile phone 100 continues to rotate around the target rotation axis by a second angle and then remains stationary for a fourth time period, and the rotation angular acceleration is greater than or equal to the second angular acceleration, then the dumping operation can also be considered to have been detected.
[0167] It is understandable that, in the above-mentioned operation of rotating the mobile phone 100 twice in a row, the rotation parameters considered in detecting the second operation of rotating the mobile phone 100 (referred to as the second operation) can be determined according to the rotation parameters considered in detecting the first operation of rotating the mobile phone 100 (referred to as the first operation). For example, the rotation parameters considered in detecting the first operation include the static duration (i.e., the first duration), and correspondingly, the static duration (i.e., the fourth duration) can also be considered in detecting the second operation; the rotation parameters considered in detecting the first operation do not include the rotational angular acceleration, and correspondingly, the rotational angular acceleration can be ignored in detecting the second operation.
[0168] In addition, the condition that the second operation needs to satisfy when dumping is successful (herein referred to as the second condition) can also be determined based on the condition that the first operation needs to satisfy when dumping is successful (herein referred to as the first condition). Specifically, the third duration can be less than the first duration, and the fourth duration can be less than the second duration; the lower limit of the second angle can be less than or equal to the lower limit of the first angle, and the upper limit of the second angle can be less than or equal to the upper limit of the first angle, for example, the angle range of the second angle (referred to as the second angle range) can be in the range of [15°, 90°]; the second angular acceleration can be the same as or different from the first angular acceleration.
[0169] After the mobile phone 100 detects the target device (eg, the notebook 200 ) and a tipping operation is performed on the mobile phone 100 , the mobile phone 100 can share content with the target device.
[0170] Specifically, the content shared by the mobile phone 100 to the notebook 200 may be files (pictures, audio and video, documents, etc.), APP running information, and screen projection content.
[0171] For example Figure 5A to Figure 5CAs shown in , the user brings the mobile phone 100 close to the notebook 200 and after tilting the mobile phone 100, the screen content of the mobile phone 100 can be projected onto the notebook 200.
[0172] When the laptop 200 displays the projection window, the projection window may be displayed at a preset position by default; Figure 8 In a similar manner to the icon display method in , the display position of the projection window is determined according to the positional relationship between the mobile phone 100 and the notebook 200, and the projection window corresponding to the mobile phone 100 is displayed on the side of the screen close to the mobile phone 100 to improve the user experience. Figure 5A to Figure 5C In the example, the mobile phone 100 is on the right side of the notebook 200. After the mobile phone 100 is tilted, the notebook 200 can display the projection window corresponding to the mobile phone 100 on the right side of the screen; Figures 13A to 13C In the example, if the mobile phone 100 is on the left side of the notebook 200, after the mobile phone 100 is tilted, the notebook 200 can display the projection window corresponding to the mobile phone 100 on the left side of the screen. The positional relationship between the mobile phone 100 and the notebook 200 can be determined by the notebook 200 based on the first positioning function or the second positioning function, or it can be determined by the mobile phone 100 based on the first positioning function or the second positioning function and sent to the notebook 200 when sharing content with the notebook 200. After the notebook 200 displays the projection window, the user can also drag the projection window to change the position of the projection window on the screen.
[0173] Another example Fig.14A and Fig. 14B As shown, after the user selects the thumbnail 5001 corresponding to the picture S to be shared in the "Gallery" interface 50, the user moves the mobile phone 100 close to the notebook 200 and tilts the mobile phone 100 to share the picture with the notebook 200; see Fig. 14C , a dialog box 51 may pop up on the notebook 200 to ask the user whether to receive the picture S. The user may click a receive option 5101 in the dialog box 51 to receive the picture S, or click a reject option 5102 to reject receiving the picture S, where "aaa" is the device name of the mobile phone 100.
[0174] Another example Fig.15A and Fig. 15B As shown, the user plays a video 6001 in the video display interface 60 of the "Huawei Video" APP, moves the mobile phone 100 close to the notebook 200, and after tilting the mobile phone 100, the running information of the "Huawei Video" APP can be shared with the notebook 200; see Fig. 15C , you can open the "Huawei Video" APP on Notebook 200 to continue playing video 6001.
[0175] In this embodiment, there may be multiple target devices near the mobile phone 100. Taking this situation into consideration, the mobile phone 100 can detect the tilting direction when sharing content. When the target device and the tilting operation acting on the mobile phone 100 are detected, and the tilting direction of the tilting operation is toward the target device, the content can be shared with the target device.
[0176] For example, in Figure 6 In the application scenario shown, if the user holds the mobile phone 100 close to the notebook 200 and then tilts the mobile phone 100 toward the notebook 200, the mobile phone 100 can share content with the notebook 200; if the user holds the mobile phone 100 close to the notebook 200 and then tilts the mobile phone 100 toward the large-screen device 400, the mobile phone 100 does not share content with the notebook 200.
[0177] For example, in Figure 6 In the application scenario shown, it is assumed that the mobile phone 100 and the notebook 200 are both located on the right side of the tablet 300. After the mobile phone 100 approaches the notebook 200, the distance between the mobile phone 100 and the notebook 200 and the tablet 300 is within the second distance. In this case, if the user tilts the mobile phone 100 toward the notebook 200, the mobile phone 100 can share content with the notebook 200; if the user tilts the mobile phone 100 toward the tablet 300, the mobile phone 100 can share content with the tablet 300.
[0178] The tilting direction of the tilting operation can be determined according to the change process of the screen normal direction of the mobile phone 100 during the tilting process. For example, when the mobile phone 100 is tilted toward the notebook 200, the screen normal direction of the mobile phone 100 rotates toward the notebook 200.
[0179] In some embodiments, when the dumping operation is directed toward at least one target device, the mobile phone 100 may share content to each target device or the target device toward which the dumping operation is directed, so as to reduce the possibility of mistaken sharing.
[0180] In some embodiments, when there is only one target device, the mobile phone 100 may not consider the dumping direction; when there are multiple target devices, the dumping direction is considered. That is, when there is only one detected target device, the mobile phone 100 can share content with the target device regardless of the dumping direction of the dumping operation; when there are multiple detected target devices, the mobile phone 100 shares content with the target device to which the dumping operation is directed.
[0181] In other embodiments, when there are multiple target devices, the mobile phone 100 may also share content to multiple target devices at the same time, or share content to the target device closest to itself, regardless of the tilting direction, when a tilting operation is detected.
[0182] Before transmitting content to the notebook 200 , the mobile phone 100 may establish a wireless communication connection through the aforementioned short-range communication modules such as the Bluetooth module, Wi-Fi module, millimeter wave module or UWB module, and transmit the content after the connection is established.
[0183] The mobile phone 100 may establish a wireless communication connection with the notebook 200 after determining that the notebook 200 is the target device, or may establish a wireless communication connection with the notebook 200 after detecting the tipping operation. It is understandable that if the mobile phone 100 has established a connection with the notebook 200 before determining the target device, the content can be transmitted to the notebook 200 through the connection when sharing the content.
[0184] Taking security into consideration, the mobile phone 100 and the notebook 200 may perform security authentication before transmitting content. For example, when the notebook 200 establishes a wireless communication connection with the mobile phone 100, it may first determine whether the mobile phone 100 is a trusted device or is in the same local area network as the notebook 200. If the mobile phone 100 is a trusted device or is in the same local area network as the notebook 200, it may establish a wireless communication connection with the mobile phone 100 for content transmission. Otherwise, it may refuse to establish a wireless communication connection with the mobile phone 100.
[0185] Specifically, if the mobile phone 100 and the notebook 200 are logged in to the same account, the notebook 200 can consider the mobile phone 100 as its trusted device; if the mobile phone 100 and the notebook 200 are logged in to different accounts, but the account logged in by the mobile phone 100 is a trusted account of the account logged in by the notebook 200, the notebook 200 can also consider the mobile phone 100 as its trusted device; in addition, if the device identifier of the mobile phone 100 is the trusted identifier of the notebook 200, the notebook 200 can also consider the mobile phone 100 as its trusted device.
[0186] The user may add the account logged in by the mobile phone 100 as a trusted account in advance on the notebook 200, or, when the mobile phone 100 requests to establish a wireless communication connection with the notebook 200, a pop-up box authentication may be performed on the notebook 200, for example Fig.16 As shown in (a), the notebook 200 can display a prompt message in the pop-up dialog box 70: "aaa requests to connect to this machine, are you sure to allow it?", and display a "No" button 71 and a "Yes" button 72. The user can refuse to connect to the mobile phone 100 by clicking the "No" button 71, thereby refusing to add the account logged in by the mobile phone 100 as a trusted account; the user can allow the mobile phone 100 to connect to the notebook 200 by clicking the "Yes" button 72, and add the account logged in by the mobile phone 100 as a trusted account.
[0187] The trusted account may have a trust validity period, which may be preset. For example, when the notebook 200 adds the account logged in by the mobile phone 100 as a trusted account, the trust validity period of the trusted account may be set to one week. The trust validity period may also be set by the user. For example, after the user clicks the "Yes" button 72, the notebook 200 may further display a trust validity period setting interface, through which the user may further set the trust validity period of the trusted account. For example, Fig.16 As shown in (b) in the figure, the user can set the trust validity period to always trust, temporarily trust (for example, one week or other duration) or trust only this time (the trust validity period expires after the two devices are disconnected or after a period of disconnection) through the radio button 73, and then click the "OK" button 74 to complete the trust validity period setting. When the trust validity period of the account logged in by the mobile phone 100 expires, the account is no longer a trusted account, and the user can also re-add the account as a trusted account.
[0188] It is understandable that the trust validity period setting method is not limited to the above Fig.16 The method shown may also be implemented in other ways. For example, the notebook 200 may also provide a trusted device setting function in the system settings, and the user may also perform related settings of the trusted device through this function.
[0189] The account described in the embodiments of the present application can be an account provided by a cloud service provider to a user, such as a Huawei account, or can be an account used to log in to an application.
[0190] The method for setting the trust identifier is similar to that for setting the trust account, so it will not be repeated here.
[0191] Above Figure 7 FIG. 1 shows a possible implementation process of a user picking up a mobile phone 100 to share content with a notebook 200. The following describes another possible implementation process of a user picking up a mobile phone 100 to share content with a notebook 200. Fig.17 As shown, the process may include the following steps:
[0192] S210 : The mobile phone 100 detects a tipping operation on the mobile phone 100 .
[0193] S220 . In response to the tipping operation, the mobile phone 100 detects the distance between itself and nearby devices (the notebook 200 , the tablet 300 , and the large-screen device 400 ) based on the first positioning function.
[0194] S230: The mobile phone 100 determines a candidate device from nearby devices, wherein the distance between the candidate device and the mobile phone 100 is less than the first distance.
[0195] S240 . The mobile phone 100 notifies the candidate devices (the notebook 200 and the tablet 300 ) to enable the second positioning function, and detects the distance between the mobile phone 100 and the candidate devices based on the second positioning function.
[0196] S250: The mobile phone 100 determines a target device from the candidate devices, wherein the distance between the target device and the mobile phone 100 is less than a second distance.
[0197] S260 : The mobile phone 100 shares the content with the target device (notebook 200 ).
[0198] Fig.17 The content sharing process shown is similar to Figure 7 The main difference in the content sharing process shown is that in Figure 7 In the content sharing process shown, the trigger condition for the mobile phone 100 to detect the target device may be detecting that the mobile phone 100 is in a non-stationary state. There is no strict timing execution relationship between the process of the mobile phone 100 detecting the target device and the process of the mobile phone 100 detecting the dumping operation. Fig.17 In the content sharing process shown, the trigger condition for the mobile phone 100 to detect the target device is to detect a tipping operation, that is, the process of the mobile phone 100 detecting the target device is executed after the mobile phone 100 detects the tipping operation. Fig.17 The other processing steps in the content sharing process shown are the same as Figure 7 The corresponding processing process in the content sharing process shown is similar. For detailed description, please refer to Figure 7 The embodiments shown will not be described in detail here.
[0199] in, Figure 7 In the content sharing process shown, the process of the mobile phone 100 detecting the target device can be performed in parallel with the process of the mobile phone 100 detecting the dumping operation, so the mobile phone 100 can detect the target device earlier, and thus can share the content to the target device as early as possible when the dumping operation is detected, which can improve the content sharing speed; Fig.17 In the content sharing process shown, when the mobile phone 100 detects the tipping operation, the process of detecting the target device is performed. In this way, when the user brings the mobile phone 100 close to the target device but does not intend to share the content and does not perform the tipping operation, the mobile phone 100 will not perform the target device detection process, thereby saving processing resources and reducing energy consumption. In actual applications, any of the above content sharing solutions can be selected as needed, and this embodiment does not specifically limit this.
[0200] Those skilled in the art will appreciate that the above embodiments are exemplary and are not intended to limit the present application. Where possible, the execution order of one or more of the above steps may be adjusted, or may be selectively combined to obtain one or more other embodiments. Those skilled in the art may select and combine any of the above steps as needed, and all those that do not depart from the essence of the present application fall within the scope of protection of the present application.
[0201] The content sharing method provided in this embodiment allows a terminal device to share content with a target device when it detects the target device and a tipping operation is performed on the terminal device. In this way, a user can quickly share content between two devices by bringing the terminal device close to a nearby device and tipping the terminal device. Therefore, this method can simplify the operation process of the content sharing function and improve user convenience. Moreover, this method does not rely on an NFC chip and can use other positioning functions with lower cost and higher functionality to detect the target device.
[0202] Based on the same concept, as an implementation of the above method, an embodiment of the present application provides a content sharing device, and the device embodiment corresponds to the above method embodiment. For ease of reading, the present device embodiment will no longer repeat the details of the above method embodiment one by one, but it should be clear that the device in this embodiment can correspond to and implement all the contents in the above method embodiment.
[0203] Fig.18 A structural diagram of a content sharing device provided in an embodiment of the present application, such as Fig.18 As shown, the device provided in this embodiment includes:
[0204] Display module 210 , input module 220 , processing module 230 and communication module 240 .
[0205] The display module 210 is used to support the terminal device to perform the interface display operation in the above embodiment and / or other processes for the technology described herein. The display module can be a touch screen or other hardware or a combination of hardware and software.
[0206] The input module 220 is used to receive user input on the display interface of the terminal device, such as touch input, voice input, gesture input, etc. The input module is used to support the terminal device to perform the steps of receiving user operations in the above embodiment and / or other processes for the technology described herein. The input module can be a touch screen or other hardware or a combination of hardware and software.
[0207] The processing module 230 is used to support the terminal device to execute the processing operations in the steps of the methods in the above embodiments and / or other processes used for the technology described herein.
[0208] The communication module 240 is used to support the terminal device to perform operations related to the communication process between the terminal device and other devices in the above embodiments and / or other processes used for the technology described herein.
[0209] The device provided in this embodiment can execute the above method embodiment, and its implementation principle and technical effect are similar, which will not be repeated here.
[0210] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0211] Based on the same concept, the present application also provides a terminal device, see Fig.19 , Fig.19 A schematic diagram of the structure of a terminal device provided in an embodiment of the present application.
[0212] The terminal device 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, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.
[0213] It is to be understood that the structure illustrated in the embodiments of the present application does not constitute a specific limitation on the terminal device. In other embodiments of the present application, the terminal device may include more or fewer components than shown in the figure, or combine certain components, or split certain components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0214] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.
[0215] The controller can be the nerve center and command center of the terminal device. The controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of fetching and executing instructions.
[0216] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0217] In some embodiments, the processor 110 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.
[0218] The I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL). The I2S interface can be used for audio communication. The PCM interface can also be used for audio communication to sample, quantize and encode analog signals. The UART interface is a universal serial data bus used for asynchronous communication; the bus can be a bidirectional communication bus, which converts the data to be transmitted between serial communication and parallel communication. The MIPI interface can be used to connect the processor 110 with peripheral devices such as the display screen 194 and the camera 193; the MIPI interface includes a camera serial interface (CSI), a display serial interface (DSI), etc. The GPIO interface can be configured by software, and the GPIO interface can be configured as a control signal or a data signal. The USB interface 130 is an interface that complies with the USB standard specification, and can specifically be a Mini USB interface, a MicroUSB interface, a USB Type C interface, etc. The USB interface 130 can be used to connect a charger to charge the terminal device, and can also be used to transmit data between the terminal device and the peripheral device. It can also be used to connect headphones and play audio through the headphones. This interface can also be used to connect other terminal devices, such as AR devices.
[0219] It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present application is only a schematic illustration and does not constitute a structural limitation on the terminal device. In other embodiments of the present application, the terminal device may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
[0220] The charging management module 140 is used to receive charging input from a charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 can receive charging input from a wired charger through the USB interface 130. In some wireless charging embodiments, the charging management module 140 can receive wireless charging input through a wireless charging coil of a terminal device. While the charging management module 140 is charging the battery 142, it can also power the terminal device through the power management module 141.
[0221] The power management module 141 is used to connect 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, and supplies power to the processor 110, the internal memory 121, the external memory, the display screen 194, the camera 193, and the wireless communication module 160. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle number, battery health status (leakage, impedance), etc. In some other embodiments, the power management module 141 can also be set in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 can also be set in the same device.
[0222] The wireless communication function of the terminal device can be implemented through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor and baseband processor.
[0223] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the terminal device can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of the antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.
[0224] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G applied to terminal devices. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.
[0225] The modem processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal. The demodulator is used to demodulate 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 the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to a speaker 170A, a receiver 170B, etc.), or displays an image or video through a display screen 194. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be set in the same device as the mobile communication module 150 or other functional modules.
[0226] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication technology (NFC), infrared technology (IR), millimeter wave (mmWave) technology, ultra wide band (UWB) technology, etc., which are applied to the terminal device. 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 the antenna 2, modulates the electromagnetic wave signal and filters it, and sends the processed signal to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
[0227] In some embodiments, the antenna 1 of the terminal device is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the terminal device can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time division-synchronous code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology, etc. The GNSS may include global positioning system (GPS), global navigation satellite system (GNSS), Beidou navigation satellite system (BDS), quasi-zenith satellite system (QZSS) and / or satellite based augmentation system (SBAS).
[0228] The terminal device implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
[0229] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light emitting diode or an active-matrix organic light emitting diode (AMOLED), a flexible light-emitting diode (FLED), Mini LED, Micro LED, quantum dot light emitting diodes (QLED), etc. In some embodiments, the terminal device may include 1 or N display screens 194, where N is a positive integer greater than 1.
[0230] The terminal device can realize the shooting function through ISP, camera 193, video codec, GPU, display screen 194 and application processor.
[0231] The ISP is used to process data fed back by the camera 193. The camera 193 is used to capture static images or videos. The digital signal processor is used to process digital signals. In addition to processing digital image signals, it can also process other digital signals. The video codec is used to compress or decompress digital videos.
[0232] NPU is a neural network (NN) computing processor. It can quickly process input information and continuously self-learn by drawing on the structure of biological neural networks, such as the transmission mode between neurons in the human brain. NPU can realize applications such as intelligent cognition of terminal devices, such as image recognition, face recognition, voice recognition, text understanding, etc.
[0233] The internal memory 121 can be used to store computer executable program codes, which include instructions. The processor 110 executes various functional applications and data processing of the terminal device by running the instructions stored in the internal memory 121. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area can store an operating system, and at least one application required for a function (such as a sound playback function, an image playback function, etc.). The data storage area can store data created during the use of the terminal device (such as audio data, a phone book, etc.). In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.
[0234] The external memory interface 120 can be used to connect an external memory, such as a Micro SD card, to expand the storage capacity of the terminal device. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. For example, files such as music and videos can be stored in the external memory card.
[0235] The terminal device can implement audio functions such as music playing and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor.
[0236] The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signal. The audio module 170 can also be used to encode and decode audio signals. In some embodiments, the audio module 170 can be arranged in the processor 110, or some functional modules of the audio module 170 are arranged in the processor 110. The speaker 170A, also known as the "speaker", is used to convert audio electrical signals into sound signals. The receiver 170B, also known as the "earpiece", is used to convert audio electrical signals into sound signals. The microphone 170C, also known as the "microphone" or "microphone", is used to convert sound signals into electrical signals. The headphone interface 170D is used to connect wired headphones. The headphone interface 170D can be a USB interface 130, or it can be a 3.5mm open mobile terminal platform (OMTP) standard interface, or a cellular telecommunications industry association of the USA (CTIA) standard interface.
[0237] The terminal device can also send ultrasonic waves through the speaker 170A and receive ultrasonic waves through the microphone 170C to implement ultrasonic technology.
[0238] The button 190 includes a power button, a volume button, etc. The button 190 can be a mechanical button. It can also be a touch button. The terminal device can receive the button input and generate a key signal input related to the user settings and function control of the terminal device. The motor 191 can generate a vibration prompt. The motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. The indicator 192 can be an indicator light, which can be used to indicate the charging status, power changes, messages, missed calls, notifications, etc. The SIM card interface 195 is used to connect the SIM card. The SIM card can be inserted into the SIM card interface 195, or pulled out from the SIM card interface 195 to achieve contact and separation with the terminal device. The terminal device can support 1 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.
[0239] The terminal device provided in this embodiment can execute the above method embodiment, and its implementation principle and technical effect are similar, which will not be repeated here.
[0240] The embodiment of the present application also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the method described in the above method embodiment is implemented.
[0241] The embodiment of the present application also provides a computer program product. When the computer program product is run on a terminal device, the terminal device implements the method described in the above method embodiment when executing the computer program product.
[0242] The present application also provides a chip system, including a processor, the processor is coupled to a memory, and the processor executes a computer program stored in the memory to implement the method described in the above method embodiment. The chip system can be a single chip or a chip module composed of multiple chips.
[0243] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium or transmitted through the computer-readable storage medium. The computer instructions may be transmitted from a website site, a computer, a server or a data center to another website site, a computer, a server or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or a data center that includes one or more available media integrated. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk or a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive (SSD)), etc.
[0244] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by computer programs to instruct related hardware, and the programs can be stored in computer-readable storage media. When the programs are executed, they can include the processes of the above-mentioned method embodiments. The aforementioned storage media can include: ROM or random access memory RAM, magnetic disk or optical disk and other media that can store program codes.
[0245] The naming or numbering of the steps in this application does not mean that the steps in the method flow must be executed in the time / logical sequence indicated by the naming or numbering. The named or numbered process steps can change the execution order according to the technical purpose to be achieved, as long as the same or similar technical effects can be achieved.
[0246] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0247] In the embodiments provided in the present application, it should be understood that the disclosed devices / equipment and methods can be implemented in other ways. For example, the device / equipment embodiments described above are merely schematic, for example, the division of the modules or units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0248] It should be understood that in the description of the present application specification and the appended claims, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or apparatus comprising a series of steps or modules is not necessarily limited to those steps or modules explicitly listed, but may include other steps or modules not explicitly listed or inherent to these processes, methods, products or apparatuses.
[0249] In the description of this application, unless otherwise specified, " / " indicates that the objects associated with each other are in an "or" relationship, for example, A / B can represent A or B; "and / or" in this application is merely a description of the association relationship between associated objects, indicating that three relationships may exist, for example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural.
[0250] Furthermore, in the description of this application, unless otherwise specified, "plurality" means two or more than two. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can mean: a, b, c, ab, ac, bc, or abc, where a, b, and c can be single or multiple.
[0251] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.
[0252] In addition, in the description of the present specification and the appended claims, the terms "first", "second", "third", etc. are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate, so that the embodiments described herein can be implemented in an order other than that illustrated or described herein.
[0253] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the phrases "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. appearing in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways.
[0254] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.
Claims
1. A content sharing method, applied to a terminal device, characterized in that: include: Detecting a target device and a dumping operation acting on the terminal device, wherein a distance between the target device and the terminal device is less than or equal to a target distance; In a case where the target device and the dump operation are detected, in response to the dump operation, sharing content with the target device; Wherein, when it is detected that a first operation acting on the terminal device satisfies a first condition, or when it is detected that the first operation does not satisfy the first condition and a second operation continued to be performed after the first operation satisfies a second condition, it is determined that the dumping operation is detected; The first operation and the second operation are both operations of rotating the terminal device around a target rotation axis, where the target rotation axis is an axis along the length direction or width direction of the terminal device; the first condition includes: the terminal device rotates a first angle within a first time length, and the first angle is within a first angle range; the second condition includes: the terminal device rotates a second angle within a third time length, and the second angle is within a second angle range.
2. The method according to claim 1, characterized in that In a case where a dumping direction of the dumping operation is toward the target device, content is shared with the target device in response to the dumping operation.
3. The method according to claim 1, characterized in that The detection target device includes: Determine at least one candidate device based on the first positioning function, where the distance between the at least one candidate device and the terminal device is less than a first distance, and the first distance is greater than the target distance; Notify the at least one candidate device to enable the second positioning function; Determine the target device from the at least one candidate device based on the second positioning function; The positioning accuracy of the first positioning function is lower than the positioning accuracy of the second positioning function, or the power consumption of the first positioning function is higher than the power consumption of the second positioning function.
4. The method according to claim 3, characterized in that: The first positioning function includes: at least one of a Bluetooth positioning function and a Wi-Fi positioning function; The second positioning function includes: at least one of an ultrasonic positioning function, a millimeter wave positioning function and an ultra-wideband positioning function.
5. The method according to claim 1, characterized in that When executing the first operation, the terminal device is in a screen-up state.
6. The method according to claim 5, characterized in that When the terminal device is in a screen-up state, the angle between the screen normal direction of the terminal device and any horizontal direction is greater than 0 degrees and less than 180 degrees.
7. The method according to claim 1, characterized in that The first angle range is [15°, 105°]; the first angle within the first angle range is: 15°≤first angle≤105°.
8. The method according to claim 1, characterized in that The first condition also includes: The terminal device rotates by a first angle within a first time period and then remains stationary for a second time period; and / or During the process of the terminal device rotating by the first angle, the rotation angular acceleration is greater than or equal to the first angular acceleration.
9. The method according to claim 1, characterized in that: The second condition also includes at least one of the following: After the terminal device rotates by a second angle within the third time period, it remains stationary for a fourth time period; The third duration is shorter than the first duration; The lower limit of the angle of the second angle range is smaller than the lower limit of the angle of the first angle range; An upper angle limit of the second angle range is smaller than an upper angle limit of the first angle range.
10. The method according to claim 1, characterized in that In the case where it is detected that the terminal device is in a non-stationary state, an operation of detecting the target device is started.
11. The method according to claim 10, characterized in that When it is detected that the terminal device is in a moving state, an operation of detecting the target device is started.
12. The method according to claim 1, characterized in that In case the dumping operation is detected, an operation of detecting the target device is initiated.
13. The method according to claim 1, characterized in that In a case where a plurality of target devices are detected, in response to the dump operation, the content is shared with the target device toward which the dump direction of the dump operation points.
14. The method according to claim 1, characterized in that In the case where a plurality of the target devices are detected, in response to the dump operation, the content is shared with each of the target devices.
15. The method according to claim 1, characterized in that The content shared with the target device includes at least one of the following: files, screen projection content, and application running information.
16. The method according to claim 1, characterized in that The method further includes: in response to the dumping operation, sending the position relationship between the terminal device and the target device to the target device, wherein the position relationship is used for the target device to display the content shared by the terminal device on a side of the screen close to the terminal device.
17. The method according to any one of claims 1 to 16, characterized in that: The target device and the terminal device are in the same local area network, and / or the terminal device is a trusted device of the target device; The trusted device of the target device logs in to the same account as the target device, or the account logged in to by the trusted device of the target device is a trusted account of the account logged in by the target device, or the device identifier of the trusted device of the target device is the trusted identifier of the target device.
18. The method according to claim 17, characterized in that The trusted device has a trust validity period, and the trust validity period is set by the target device according to a user operation.
19. A terminal device, characterized in that: include: A memory and a processor, the memory being used to store a computer program; the processor being used to, when calling the computer program, enable the terminal device to execute the method according to any one of claims 1 to 18.
20. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 18 is implemented.
21. A computer program product, characterized in that When the computer program product runs on an electronic device, the electronic device is enabled to execute the method according to any one of claims 1 to 18.
22. A chip system, characterized in that: The chip system includes a processor, which is coupled to a memory, and the processor executes a computer program stored in the memory to implement the method according to any one of claims 1-18.
Citation Information
Patent Citations
Document transmission method, cloud server and system
CN103338271A
Content sharing method across mobile terminals, apparatus and system thereof
CN106936884A