WO2023116511A1 - 内容分享方法和终端设备 - Google Patents

内容分享方法和终端设备 Download PDF

Info

Publication number
WO2023116511A1
WO2023116511A1 PCT/CN2022/138793 CN2022138793W WO2023116511A1 WO 2023116511 A1 WO2023116511 A1 WO 2023116511A1 CN 2022138793 W CN2022138793 W CN 2022138793W WO 2023116511 A1 WO2023116511 A1 WO 2023116511A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal device
mobile phone
target
target device
positioning function
Prior art date
Application number
PCT/CN2022/138793
Other languages
English (en)
French (fr)
Inventor
孙科
徐杰
龙嘉裕
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2023116511A1 publication Critical patent/WO2023116511A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72409User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
    • H04M1/72412User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories using two-way short-range wireless interfaces
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/7243User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
    • H04M1/72439User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages for image or video messaging
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0251Power saving arrangements in terminal devices using monitoring of local events, e.g. events related to user activity
    • H04W52/0254Power saving arrangements in terminal devices using monitoring of local events, e.g. events related to user activity detecting a user operation or a tactile contact or a motion of the device
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Definitions

  • the present application relates to the field of communication technologies, and in particular to a content sharing method and terminal equipment.
  • terminal devices With the popularization of terminal devices, users own more and more terminal devices. For example, a user simultaneously owns multiple devices such as a mobile phone, a tablet, and a notebook computer. For the convenience of users, most of the current terminal devices support the content sharing function based on short-distance communication technology, through which users can easily share pictures, documents, audio and video content among multiple terminal devices.
  • the user when a user wants to use the content sharing function to share content between multiple terminal devices, the user generally needs to enable the short-distance communication function on each terminal device, and then perform multiple operations on the interface displayed by the terminal device to achieve The connection and content sharing between terminal devices is relatively cumbersome.
  • 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 user convenience.
  • the embodiment of the present application provides a content sharing method, which is applied to a terminal device, and the method includes:
  • the terminal device can share the content with the target device when it detects the target device and the dumping operation acting on the terminal device, so that the user can move the terminal device close to nearby devices and dump the content of the terminal device Therefore, this method can simplify the operation process of the content sharing function and improve the convenience of users. Moreover, this method does not depend on the NFC chip, and can be used with low cost and high functionality. Strong other positioning functions to detect the target device.
  • the content is shared with the target device. This reduces instances of mis-sharing.
  • the content is shared with each of the target devices. In this way, content can be shared to multiple devices at the same time, thereby improving the convenience of content sharing.
  • the detection target device includes:
  • the distance between the at least one candidate device and the terminal device is smaller than a first distance, and the first distance is greater than the target distance;
  • the positioning accuracy of the first positioning function is lower than that of the second positioning function, or the power consumption of the first positioning function is greater than the power consumption of the second positioning function.
  • 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.
  • the detecting the dumping operation includes:
  • the first operation is an operation of rotating the terminal device around a target rotation axis
  • the target rotation axis is an axis along the length direction or width direction of the terminal device
  • the first condition includes: the terminal The device is rotated by a first angle within a first duration, and the first angle is within a first angle range.
  • the terminal device when the first operation is performed, the terminal device is in a screen-up state. In this way, the situation of false triggering of the dumping operation can be reduced, and when the terminal device is in the state where the screen is facing up, it is also more convenient for the user to operate, so the convenience of the user's operation can also be improved.
  • the angle between the normal direction of the screen of the terminal device and any horizontal direction is greater than 0 degrees and less than 180 degrees. This can allow the user to have a certain angle error during operation, thereby improving the convenience of the user's operation.
  • the first angle range is [15°, 105°]; the first angle within the first angle range is: 15° ⁇ first angle ⁇ 105° .
  • the first condition further includes:
  • the terminal device After the terminal device rotates by a first angle within the first time period, it is stationary for a second time period; and/or
  • the rotational angular acceleration is greater than or equal to the first angular acceleration.
  • the method further includes:
  • 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 that of the first operation;
  • the second condition includes: the The terminal device rotates by a second angle within a third duration, where the second angle is within a second angle range.
  • the second condition further includes at least one of the following:
  • the terminal device rotates by a second angle within the third duration, it remains stationary for a fourth duration;
  • said third duration is less than said first duration
  • the lower angular limit of the second angular range is smaller than the lower angular limit of the first angular range
  • the upper angular limit of the second angular range is smaller than the upper angular limit of the first angular range.
  • the terminal device when the dumping operation is detected, an 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 perform the dumping operation without the intention of sharing the content, the terminal device will not perform the detection process of the target device, thereby saving processing resources and reducing energy consumption.
  • the content shared with the target device includes at least one of the following: files, screen projection content, and application program running information.
  • the method further includes: in response to the dumping operation, sending the positional relationship between the terminal device and the target device to the target device, the position The 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.
  • 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 is logged in with the same account as the target device, or the account logged in by the trusted device of the target device is a trusted account of the account logged in by the target device.
  • the embodiment of the present application provides a content sharing device, which is applied to a terminal device, and the device includes: a processing module and a communication module, wherein:
  • the processing module is configured to: detect a target device and a dumping operation acting on the terminal device, and respond to the dumping operation when the target device and the dumping operation are detected, through the communication module Sharing the content with the target device, wherein the distance between the target device and the terminal device is less than or equal to the target distance.
  • the processing module is specifically configured to: respond to the dumping operation when the dumping direction of the dumping operation is toward the target device, through the communication module The content is shared to the target device.
  • the processing module is specifically configured to: respond to the dumping operation when multiple target devices are detected, send the dumping The target device to which the action's dump direction is directed to share the content.
  • the processing module is specifically configured to: when multiple target devices are detected, in response to the dumping operation, send a message to each of the target devices through the communication module share content on the target device.
  • the processing module is specifically configured to:
  • the distance between the at least one candidate device and the terminal device is smaller than a first distance, and the first distance is greater than the target distance;
  • the positioning accuracy of the first positioning function is lower than that of the second positioning function, or the power consumption of the first positioning function is greater than the power consumption of the second positioning function.
  • 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.
  • the processing module is specifically configured to:
  • the first operation is an operation of rotating the terminal device around a target rotation axis
  • the target rotation axis is an axis along the length direction or width direction of the terminal device
  • the first condition includes: the terminal The device is rotated by a first angle within a first duration, and the first angle is within a first angle range.
  • the terminal device when the first operation is performed, the terminal device is in a screen-up state.
  • the angle between the normal direction of the screen of the terminal device and any horizontal direction is greater than 0 degrees and less than 180 degrees.
  • the first angle range is greater than or equal to 15° and less than or equal to 105°.
  • the first condition further includes:
  • the terminal device After the terminal device rotates by a first angle within the first time period, it is stationary for a second time period; and/or
  • the rotational angular acceleration is greater than or equal to the first angular acceleration.
  • the processing module is further configured to:
  • 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 that of the first operation;
  • the second condition includes: the The terminal device rotates by a second angle within a third duration, where the second angle is within a second angle range.
  • the second condition further includes at least one of the following:
  • the terminal device rotates by a second angle within the third duration, it remains stationary for a fourth duration;
  • said third duration is less than said first duration
  • the lower angular limit of the second angular range is smaller than the lower angular limit of the first angular range
  • the upper angular limit of the second angular range is smaller than the upper angular limit of the first angular range.
  • the processing module is further configured to: start an operation of detecting the target device when it is detected that the terminal device is in a non-stationary state.
  • the processing module is further configured to: start an operation of detecting the target device when it is detected that the terminal device is in a moving state.
  • the processing module is further configured to: start an operation of detecting the target device when the dumping operation is detected.
  • the content shared with the target device includes at least one of the following: files, screen projection content, and application program running information.
  • the processing module is further configured to: in response to the dumping operation, send the communication module between the terminal device and the target device to the target device 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.
  • 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 is logged in with the same account as the target device, or the account logged in by the trusted device of the target device is a trusted account of the account logged in by the target device.
  • an embodiment of the present application provides a terminal device, including: a memory and a processor, the memory is used to store a computer program; the processor is used to make the terminal device execute the above-mentioned first aspect or the first The method described in any embodiment of the aspect.
  • an embodiment of the present application provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the method described in the first aspect or any implementation manner of the first aspect is implemented.
  • an embodiment of the present application provides a computer program product, which, when the computer program product is run on a terminal device, causes the terminal device to execute the method described in the first aspect or any implementation manner of the first 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, so as to realize the above-mentioned first aspect or any of the first aspects.
  • the chip system may be a single chip, or a chip module composed of multiple chips.
  • FIG. 1 is a schematic diagram of the system architecture of the content sharing system provided by the embodiment of the present application.
  • Figure 2- Figure 4 are schematic diagrams of several content sharing methods provided by the embodiment of the present application.
  • 5A to 5C are schematic diagrams of some content sharing processes provided by the embodiment of the present application.
  • FIG. 6 is a schematic diagram of an application scenario provided by an embodiment of the present application.
  • FIG. 7 is a schematic flow diagram of a content sharing method provided by an embodiment of the present application.
  • FIG. 8 is a schematic diagram of a user interface provided by an embodiment of the present application.
  • FIG. 9 is a schematic diagram of a coordinate system of a terminal device provided in an embodiment of the present application.
  • FIG. 10 is a schematic diagram of the inclination angle of the screen normal direction of the terminal device provided by the embodiment of the present application.
  • FIG. 11 is a schematic diagram of a rotation angle of a terminal device provided by an embodiment of the present application.
  • Fig. 12 is a schematic diagram of a pouring operation provided by the embodiment of the present application.
  • FIGS. 13A to 13C are schematic diagrams of other content sharing processes provided by the embodiment of the present application.
  • FIGS. 14A to 14C are schematic diagrams of other content sharing processes provided by the embodiment of the present application.
  • 15A to 15C are schematic diagrams of some other content sharing processes provided by the embodiment of the present application.
  • FIG. 16 is a schematic diagram of another user interface provided by the embodiment of the present application.
  • FIG. 17 is a schematic flowchart of another content sharing method provided by the embodiment of the present application.
  • FIG. 18 is a schematic structural diagram of a content sharing device provided by an embodiment of the present application.
  • FIG. 19 is a schematic structural diagram of a terminal device provided by an embodiment of the present application.
  • FIG. 1 is a schematic diagram of the system architecture of the content sharing system provided by the embodiment of the present application.
  • the content sharing system can include multiple terminal devices, which can be portable electronic devices such as mobile phones, tablets, notebooks, smart wearable devices, or desktop computers, smart TVs, large-screen devices, vehicle terminals, printers, Non-portable electronic devices such as speakers.
  • the content sharing system includes 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 as an example for illustration.
  • Each terminal device may have a Bluetooth module, a wireless local area network (wireless local area networks, WLAN) (such as a wireless fidelity (Wi-Fi) network) module, a millimeter wave (millimeter wave, mmWave) module, an ultra wideband (ultra wide band, UWB) module, near field communication (near field communication, NFC) module and other short-range wireless communication modules.
  • WLAN wireless local area networks
  • Wi-Fi wireless fidelity
  • mmWave millimeter wave
  • UWB ultra wideband
  • NFC near field communication
  • the bluetooth module may include a classic bluetooth (bluetooth, BT) module and a low power bluetooth (bluetooth low energy, BLE) module.
  • the terminal device can detect and scan the terminal devices near the terminal device (hereinafter referred to as nearby devices) by transmitting signals through the short-range wireless communication module, so that the terminal device can discover the nearby devices and establish a wireless communication connection with the nearby devices.
  • Content sharing operations such as file sharing, audio and video connection, cross-device editing, or wireless projection are performed between wireless communication connections and nearby devices.
  • the mobile phone 100 and the notebook 200 are taken as examples below to illustrate several content sharing methods.
  • a user may share content through a share button in an application program interface (application, APP).
  • application application program interface
  • APP application program interface
  • FIG. 10 In the "Gallery" interface 10, select the thumbnail 1001 corresponding to the picture S to be shared, and click the sharing button 1002 to open the sharing interface.
  • FIG. 10 As shown in (b) in Figure 2, the picture 1101 that the user has selected, the icon 1102 corresponding to the nearby device found by the mobile phone 100, and some function icons 1103 that support the sharing service can be displayed in the sharing interface 11.
  • the nearby device is "PC-A”
  • the function icon 1103 includes a WeChat icon, a Bluetooth icon, a QQ icon, and a wireless local area network (wireless local area networks, 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 transmit the picture S to be shared to the notebook 200 "PC-A".
  • FIG. 3 One of the implementation methods can be seen in FIG. 3 .
  • the mobile phone 100 connection interface 22 can display prompt information: "looking for your mobile phone 100" and the search countdown time "24s"; and a two-dimensional code connection entrance 2201 can be provided in the upper left corner .
  • the user can turn on the Bluetooth on the mobile phone 100 and the notebook 200 at the same time, so that the notebook 200 finds that the mobile phone 100 automatically establishes a connection; it can also turn on the Wi-Fi on the mobile phone 100 and the notebook 200 at the same time, and click the QR code in the upper left corner of the connection interface 22 of the mobile phone 100
  • the connection entrance 2201 opens the two-dimensional code connection interface, and then scans the two-dimensional code on the two-dimensional code connection interface through the mobile phone 100 to establish a connection.
  • the mirror image 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.
  • FIG 4 Another way for the user to share content through screen projection can be seen 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, as shown in Figure 4 (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 to realize screen projection from the mobile phone 100 to the notebook 200.
  • the method of establishing a connection and sharing content through the sharing button shown in Figure 2 and the method of establishing a connection and sharing content through a QR code shown in Figure 3 all require the user to carry out on the interface displayed on the terminal device. Multiple operations are required to realize connection and content sharing between terminal devices, and the operation is cumbersome.
  • the method of establishing a connection and sharing content through NFC requires a built-in NFC chip or a peripheral NFC tag on the terminal device.
  • some terminal devices, such as tablets are difficult to set NFC tags due to the product form, and the built-in NFC chip The cost is high; and the application scenarios of the NFC chip are few, and the functionality is low.
  • the embodiment of the present application provides another content sharing solution, so that the user can quickly realize the content sharing between two devices by bringing the terminal device close to the nearby device and dumping the terminal device, without relying on the NFC chip.
  • the terminal device dumped by the user may be a portable electronic device
  • the nearby device may be a portable or non-portable electronic device.
  • the user can hold the mobile phone 100 close to the notebook 200, dump the mobile phone 100, and share the content on the mobile phone 100 (here, the mirror image of the screen content of the mobile phone 100 is exemplary) to the notebook 200. .
  • the user can also dump the mobile phone 100 while holding the mobile phone 100 close to the notebook 200 , and share the content on the mobile phone 100 to the notebook 200 .
  • FIG. 6 is a schematic diagram of an application scenario provided by an embodiment of the present application.
  • the application scenario includes a mobile phone 100, a notebook 200, a tablet 300 and a large-screen device 400.
  • the tablet 300 is located in front of the large-screen device 400
  • the mobile phone 100 is located on the right side of the notebook 200
  • the tablet 300 is located on the left side of the notebook 200 .
  • the user can put the mobile phone 100 close to the notebook 200 and share content with the notebook 200 by tilting the mobile phone 100 .
  • the above application scenario is only an example, and it is not used to limit the application.
  • the application scenario may include more or less terminal devices than shown in the figure, or include other types of terminal devices; and, the user can realize content sharing between any two terminal devices through the above approach-dumping method.
  • FIG. 7 shows a possible implementation process in which the user picks up the mobile phone 100 to share content with the notebook 200. As shown in FIG. 7, the process may include the following steps:
  • the mobile phone 100 detects that it is in a non-stationary state.
  • the notebook 200, the tablet 300 and the large-screen device 400 are all located near the mobile phone 100, and the user can bring the mobile phone 100 close to the notebook 200 in the nearby devices, so that the mobile phone 100 can determine the notebook 200 that is closer to itself as The target device to be shared, and then the content is shared.
  • 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 generate a certain amount of energy consumption, when the user holds the mobile phone 100 close to the notebook 200, the mobile phone 100 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.
  • the mobile phone 100 When the user holds the mobile phone 100 close to the notebook 200, the mobile phone 100 will move towards the notebook 200. In order to further save power, in this embodiment, the mobile phone 100 can detect that it is moving in a certain direction (that is, in a moving state) , and then perform the ranging process.
  • the mobile phone 100 can identify its own motion state through the signal detected by the motion sensor.
  • the motion sensor may include: one or more of sensors such as an acceleration (accelerator, ACC) sensor, a gyroscope, and an inertial measurement unit (inertial measurement unit, IMU).
  • sensors such as an acceleration (accelerator, ACC) sensor, a gyroscope, and an inertial measurement unit (inertial measurement unit, IMU).
  • the mobile phone 100 detects the distance between the mobile phone 100 and nearby devices (notebook 200, tablet 300 and large-screen device 400) based on the first positioning function.
  • the mobile phone 100 can first use the low-precision positioning function (herein referred to as the first positioning function) After detecting the distance to nearby devices and screening out some candidate devices, a high-precision positioning function (herein referred to as the second positioning function) is used to detect the distance to candidate devices, and then to screen out target devices.
  • the low-precision positioning function herein referred to as the first positioning function
  • the second positioning function a high-precision positioning function
  • the mobile phone 100 may also directly use the second positioning function with higher accuracy to determine the distance to nearby devices, so as to reduce the processing flow.
  • the first positioning function is used first, and then the second positioning function is used as an example for illustration.
  • the first positioning function may include: Bluetooth positioning function, Wi-Fi positioning function, etc.
  • the second positioning function may include: ultrasonic positioning function, millimeter wave positioning function, ultra-wideband positioning function, etc.
  • the mobile phone 100 can use a first positioning function to measure the distance between the mobile phone 100 and nearby devices, or combine multiple first positioning functions to measure the distance between the mobile phone 100 and nearby devices. Distance; Similarly, when the subsequent mobile phone 100 uses the second positioning function to measure distance, it may also use one or more second positioning functions to measure the distance between the mobile phone 100 and the candidate device.
  • the mobile phone 100 and nearby devices can send and receive positioning signals through the first positioning function, for example, transmit and receive Bluetooth signals (specifically broadcast signals or response signals, etc.) through the Bluetooth positioning function, and the mobile phone 100 can indicate according to the received signal strength of the positioning signal ( received signal strength indication (RSSI) value to determine the distance between the mobile phone 100 and the discovered nearby device; time difference of arrival (TDOA) ranging method, angle of arrival (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 , which is not particularly limited in this embodiment of the present application.
  • RSSI received signal strength indication
  • TDOA time difference of arrival
  • AOA angle of arrival
  • TOF time of flight
  • the mobile phone 100 determines candidate devices from nearby devices. Wherein, the distance between the candidate device and the mobile phone 100 is smaller than the first distance.
  • the mobile phone 100 After the mobile phone 100 determines the distance to nearby devices, it can use a 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, which can be Greater than or equal to the positioning accuracy of the first positioning function, for example, when using Bluetooth positioning technology to determine the distance between the mobile phone 100 and nearby devices, the positioning accuracy of Bluetooth positioning is about 30cm, then the first distance can be 50cm. In practical applications, the specific size of the first distance can be set according to actual needs, which is not particularly limited in this embodiment.
  • the mobile phone 100 uses the first A positioning function can 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 all smaller than the first distance, and the distance between the large-screen device 400 and the mobile phone 100 is greater than the first distance, so it can be The notebook 200 and the tablet 300 are determined as candidate devices.
  • the mobile phone 100 notifies the candidate devices (notebook 200 and tablet 300) to enable the second positioning function, and detects the distance to the candidate device based on the second positioning function. Wherein, the distance between the candidate device and the mobile phone 100 is smaller than the first distance.
  • the mobile phone 100 may notify each candidate device to enable the second positioning function, so as to perform distance measurement with higher precision. For example, after the mobile phone 100 determines that the notebook 200 and the tablet 300 are candidate devices, it 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 between the mobile phone 100 and the tablet 300.
  • the specific ranging method is similar to the method of 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, and the mobile phone 100 can determine the distance between the mobile phone 100 and the candidate device according to the RSSI value of the positioning signal.
  • the distance between the devices or using ranging methods such as TOA/TDOA/AOA/TOF to determine the distance between the mobile phone 100 and the candidate device.
  • the mobile phone 100 can 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, measure the distance between the mobile phone 100 and the candidate device through the second positioning function.
  • the distance process can also be performed on the candidate devices, and the mobile phone 100 can acquire the distance between the mobile phone 100 and each candidate device from each candidate device.
  • the process of measuring the distance between the mobile phone 100 and nearby devices through the first positioning function can also be performed on the nearby devices, and the mobile phone 100 can also obtain the distance between the mobile phone 100 and each nearby device from each nearby device.
  • Each terminal device including the mobile phone 100 and each candidate device, can discover each other through the positioning signal when the second positioning function is turned on;
  • the device identification of the discovered terminal device can be displayed on the screen, so that the user can know the working status of the device conveniently.
  • the notebook 200 can discover the mobile phone 100 , the tablet 300 and the large-screen device 400 through the second positioning function, and then display the device identifications of the three devices on the screen.
  • the device identification may include the device type and/or device name of the terminal device, etc., and the device identification may be displayed by means of icons or cards, etc.
  • the device type is displayed by icons as an example for illustration.
  • the mobile phone 100 corresponds to an icon 4001
  • the tablet 300 corresponds to an icon 4002
  • the large-screen device 400 corresponds to an icon 4003 .
  • a candidate device displays the icon corresponding to the device identifier
  • it can also indicate the position between the terminal device corresponding to the icon and the candidate device through the position of the icon on the screen relation.
  • the mobile phone 100 in FIG. 6 is on the right side of the notebook 200
  • the tablet 300 is on the left side of the notebook 200
  • the large-screen device 400 is on the back of the notebook 200 screen; correspondingly, as shown in FIG.
  • the icon 4001 corresponding to the mobile phone 100 It can be displayed in the lower right corner or other positions on the right side of the screen of the notebook 200
  • the icon 4002 corresponding to the tablet 300 can be displayed in the lower left corner of the screen of the notebook 200 or other positions on the left side
  • the icon 4003 corresponding to the large-screen device 400 can be displayed on the screen of the notebook 200 the top of.
  • the above positional relationship indication method is just an example.
  • other ways can also be used to indicate the positional relationship between terminal devices.
  • the positional relationship between the terminal devices; the positioning information of the terminal device displayed on the candidate device is not limited to the above-mentioned device identification and positional relationship, for example, it can also display the positioning method (such as Bluetooth) used to discover the terminal device. It can be selected arbitrarily as needed, and this embodiment does not specifically limit it.
  • 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 (that is, the mobile phone 100) that sent the second positioning function activation notification. positioning information.
  • each terminal device may also display the location information of the found nearby devices on the screen when the nearby devices are discovered through the first positioning function.
  • the mobile phone 100 determines a target device from candidate devices. Wherein, the distance between the target device and the mobile phone 100 is smaller than the second distance.
  • the mobile phone 100 can use a distance threshold (referred to as the second distance herein) to determine the target device, wherein the second distance can be greater than or It is equal to the positioning accuracy of the second positioning function.
  • the second distance can be 25 cm.
  • the specific size of the second distance can be set according to actual needs, which is not particularly limited in this embodiment.
  • the mobile phone 100 uses the first positioning function to determine that the notebook 200 and the tablet 300 are candidate devices, and 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 , 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.
  • the mobile phone 100 After the mobile phone 100 detects the dumping operation acting on the mobile phone 100, it responds to the dumping operation and shares the content with the target device (notebook 200).
  • the mobile phone 100 can also detect the user's dumping operation on the mobile phone 100, and when the target device is determined and the dumping operation is detected, the content can be shared with the target device .
  • the mobile phone 100 can detect the dumping operation in any working state, and can also detect the dumping operation when the mobile phone 100 is detected to be in a non-stationary state or a moving state, so as to save power.
  • the dumping operation may be to dump the mobile phone 100 to any side, and may also be a dumping operation that meets certain requirements, so as to reduce false detections.
  • the tilting operation may be to rotate the terminal device with the screen facing up by a first angle around a target rotation axis, and the target rotation axis may be an axis along the length or width of the terminal device.
  • the mobile phone 100 may detect the following: Process when a dump operation is considered detected:
  • the mobile phone 100 is initially in a screen-up state, that is, the normal direction of the screen of the mobile phone 100 is upward.
  • Figure 9 is a schematic diagram of the coordinate system of the terminal device provided by the embodiment of the present application.
  • 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 direction of the mobile phone 100.
  • the length direction; the z-axis is perpendicular to the screen where the screen of the mobile phone 100 is located, and the z-axis is the normal direction of the screen of the mobile phone 100 .
  • the normal line of the screen of the mobile phone 100 may be perpendicular to the horizontal plane, or there may be an inclination angle between it and the horizontal plane;
  • FIG. 10 Z represents the vertical direction
  • X represents the horizontal direction.
  • the initial posture of the mobile phone 100 may be a vertical screen state, or a horizontal screen state.
  • the situation of false triggering of the dumping operation can be reduced, and when the terminal device is in the screen-up state, it is also more convenient for the user to operate.
  • the target rotation axis may be the x-axis or y-axis of the mobile phone 100 .
  • the X-axis represents the horizontal direction
  • the Z-axis represents the vertical direction.
  • the mobile phone 100 rotates around the y-axis and flips from the first state S1 to the second state.
  • the angle ⁇ rotated by the normal direction of the screen of the mobile phone 100 is the first angle.
  • the mobile phone 100 when the mobile phone 100 is in the vertical screen state, after the user holds the mobile phone 100 close to the notebook 200, he can rotate the mobile phone 100 around the y-axis (ie, the length direction) of the mobile phone 100 to complete the dumping operation.
  • the y-axis ie, the length direction
  • the first duration can be a shorter duration such as 1 second or 2 seconds;
  • the first angle can be selected from a slightly larger angle range (hereinafter referred to as the first angle range) to reduce false detections, such as the first
  • the 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 one can be selected
  • the duration for example, may also be 1 second or 2 seconds. Specific sizes of the first duration, the first angle, and the second duration can be selected according to actual needs, and are not particularly limited in this embodiment.
  • the mobile phone 100 when the mobile phone 100 is detected to be rotated by a first angle around the target rotation axis, it can be considered that a dumping operation has been detected to improve the detection speed; in the process of detecting the dumping operation described above, Considering the first duration and the second duration can reduce the false triggering of the pouring operation and improve the accuracy of the detection result.
  • the angular acceleration (that is, the angular acceleration of rotation) when the mobile phone 100 is rotated can also be detected, and the mobile phone 100 satisfies the corresponding states of the above (1) and (2), and the rotation angle
  • the acceleration is greater than or equal to the first angular acceleration, it is considered that a dumping operation has been detected.
  • the mobile phone 100 satisfies the state corresponding to (1) above, but only satisfies part of the state corresponding to (2).
  • the mobile phone 100 is in the After rotating the first angle around the target rotation axis within the first time period, the static period does not reach the second time period, or the angle at which the mobile phone 100 rotates around the target rotation axis within the first time period is outside the first angle range, or the mobile phone 100 rotates around the target rotation axis within the first angle range.
  • the rotation angular acceleration is smaller than the first angular acceleration.
  • the mobile phone 100 can continue to detect the state of the mobile phone 100. If the angular acceleration is greater than or equal to the second angular acceleration after being stationary for a fourth period of time, it can also be considered that a dumping operation has been detected.
  • the rotation parameters considered in detecting the operation of rotating the mobile phone 100 for the second time can be based on the detection of the operation of rotating the mobile phone 100 for the first time ( referred to simply as the first operation) the rotation parameter under consideration is determined.
  • the rotation parameters considered when detecting the first operation include the static duration (ie, the first duration), and correspondingly, the static duration (ie, the fourth duration) may also be considered when detecting the second operation;
  • the rotation parameter does not include the rotational angular acceleration, and correspondingly, the rotational angular acceleration may not be considered when detecting the second operation.
  • the condition that the second operation needs to satisfy when dumping is successful (herein referred to as the second condition) can also be determined according to the condition that the first operation needs to satisfy when dumping is successful (herein called the first condition).
  • the third duration may be less than the first duration
  • the fourth duration may be less than the second duration
  • the lower limit of the second angle may be less than or equal to the lower limit of the first angle
  • the upper limit of the second angle may be less than or equal to the first
  • the upper limit of the angle for example, the angle range of the second angle (referred to as the second angle range for short) may be within the range of [15°, 90°]
  • the second angular acceleration may be the same as the first angular acceleration, or may be different.
  • the mobile phone 100 After the mobile phone 100 detects the target device (such as the notebook 200 ) and the dumping operation on the mobile phone 100 , it can share the content with the target device.
  • the target device such as the notebook 200
  • the content shared by the mobile phone 100 to the notebook 200 may be files (pictures, audio and video, documents, etc.), APP running information, screen projection content, and the like.
  • the user puts the mobile phone 100 close to the notebook 200 , and after dumping the mobile phone 100 , can project the screen content of the mobile phone 100 to the notebook 200 .
  • the screen projection window when the notebook 200 displays the screen projection window, the screen projection window can be displayed at a preset position by default; it can also be determined according to the positional relationship between the mobile phone 100 and the notebook 200 in a manner similar to that shown in FIG. 8 .
  • the display position of the screen projection window is to display the screen projection window corresponding to the mobile phone 100 on the side of the screen close to the mobile phone 100, so as to improve user experience.
  • the mobile phone 100 is on the right side of the notebook 200.
  • the notebook 200 can display the screen projection window corresponding to the mobile phone 100 on the right side of the screen; in Figures 13A to 13C, if the mobile phone 100 is on the notebook On the left side of the 200, after the mobile phone 100 is dumped, the notebook 200 can display the screen 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 may be determined by the notebook 200 based on the first positioning function or the second positioning function, or may be determined by the mobile phone 100 based on the first positioning function or the second positioning function, and then sent to the notebook 200 Send to notebook 200 when sharing content.
  • the notebook 200 displays the screen projection window, the user can also drag the screen projection window to change the position of the screen projection window on the screen.
  • the user plays a video 6001 in the video display interface 60 of the "Huawei Video” APP, puts the mobile phone 100 close to the notebook 200, and after dumping the mobile phone 100, can share "Huawei Video” with the notebook 200.
  • APP running information see FIG. 15C , the "Huawei Video” APP can be opened on the notebook 200 to continue playing video 6001.
  • the mobile phone 100 can detect the tilting direction when sharing content.
  • the dumping direction of the operation is towards the target device, the content can be shared to the target device.
  • the mobile phone 100 can share content with the notebook 200; If the large-screen device 400 dumps the mobile phone 100 , the mobile phone 100 does not share content with the notebook 200 .
  • the mobile phone 100 and the notebook 200 are 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 towards the notebook 200, the mobile phone 100 can share content with the notebook 200;
  • the dumping direction of the dumping operation can be determined according to the change process of the screen normal direction of the mobile phone 100 during the tilting process.
  • the mobile phone 100 may share the content with each target device or the target device to which the tilting operation is directed, so as to reduce mis-sharing.
  • the mobile phone 100 may not consider the tilting direction; if there are multiple target devices, the tilting direction may be considered. That is, when the detected target device includes one, the mobile phone 100 can share content with the target device no matter where the tilting direction of the dumping operation is directed; The target device to which the dump operation shares the content.
  • the mobile phone 100 can also share content to multiple target devices at the same time when detecting the dumping operation, regardless of the direction of the dumping, or share the content with the closest target device. Devices share content.
  • the mobile phone 100 Before the mobile phone 100 transmits content to the notebook 200, it can establish a wireless communication connection through the aforementioned Bluetooth module, Wi-Fi module, millimeter wave module or UWB module and other short-distance communication modules, and perform content transmission after the connection is established.
  • 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 establish a wireless communication connection with the notebook 200 after detecting a dumping operation. It can be understood 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.
  • the mobile phone 100 and the notebook 200 can perform security authentication before transmitting content. For example, when the notebook 200 establishes a wireless communication connection with the mobile phone 100, it can 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 , then it can establish a wireless communication connection with the mobile phone 100 for content transmission, otherwise it can refuse to establish a wireless communication connection with the mobile phone 100 .
  • the notebook 200 can consider the mobile phone 100 as its trusted device; 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.
  • the user can pre-add the account registered by the mobile phone 100 on the notebook 200 as a trusted account, or when the mobile phone 100 requests to establish a wireless communication connection with the notebook 200, the notebook 200 can perform pop-up authentication, such as ( As shown in a), the notebook 200 can display a prompt message in the pop-up dialog box 70: "aaa request to connect to this machine, whether to allow", and display a "No" button 71 and a "Yes” button 72, and the user can click " No” button 71 refuses to connect to the mobile phone 100, 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.
  • pop-up authentication such as ( As shown in a)
  • the notebook 200 can display a prompt message in the pop-up dialog box 70: "aaa request to connect to this machine, whether to allow”, and display a "No
  • the trust account may have a trust validity period, and the trust validity period may be preset.
  • the trust validity period of the trust account may be set as one week.
  • the trust validity period can also be set by the user. For example, after the user clicks the "Yes" button 72, the notebook 200 can further display the trust validity period setting interface, and the user can further set the trust validity period of the trust account through this interface.
  • the user can set the validity period of the trust through the radio control 73 as always trust, temporary trust (for example, it can be a week or other duration) or only this time trust (after the two devices are disconnected or disconnected).
  • the validity period of trust After opening the connection for a period of time, the validity period of trust expires), then click on the "OK" button 74 to complete the setting of the validity period of trust.
  • the trust validity period of the account logged into 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.
  • the way of setting the validity period of trust is not limited to the way shown in FIG. 16 above, and can also be realized in other ways.
  • the notebook 200 can also provide a trusted device setting function in the system settings, and the user can also use this function to trust Device-related settings.
  • the account described in the embodiment of the present application may be an account provided by the cloud service provider for the user, such as a Huawei account, and may also be an account used to log in to the application.
  • the setting method of the trust mark is similar to the setting method of the trusted account, and will not be repeated here.
  • FIG. 7 shows a possible implementation process for the user to pick up the mobile phone 100 to share content with the notebook 200.
  • the following introduces another possible implementation process for the user to pick up the mobile phone 100 to share content with the notebook 200, as shown in FIG. 17 , the process may include the following steps:
  • the mobile phone 100 detects a dumping operation acting on the mobile phone 100 .
  • the mobile phone 100 responds to the dumping operation, and detects the distance between the mobile phone 100 and nearby devices (notebook 200, tablet 300 and large-screen device 400) based on the first positioning function.
  • the mobile phone 100 determines candidate devices from nearby devices. Wherein, the distance between the candidate device and the mobile phone 100 is smaller than the first distance.
  • the mobile phone 100 notifies the candidate devices (notebook 200 and tablet 300) to enable the second positioning function, and detects the distance to the candidate device based on the second positioning function.
  • the mobile phone 100 determines a target device from candidate devices. Wherein, the distance between the target device and the mobile phone 100 is smaller than the second distance.
  • the mobile phone 100 shares content with the target device (notebook 200).
  • the main difference between the content sharing process shown in FIG. 17 and the content sharing process shown in FIG. 7 is that, in the content sharing process shown in FIG. In the static 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; in the content sharing process shown in Figure 17, the trigger condition for the mobile phone 100 to detect the target device
  • the operation that is, the process in which the mobile phone 100 detects the target device is performed after the mobile phone 100 detects the dumping operation.
  • Other processing procedures in the content sharing process shown in FIG. 17 are similar to the corresponding processing processes in the content sharing process shown in FIG. 7 .
  • the process of mobile phone 100 detecting the target device can be executed in parallel with the process of mobile phone 100 detecting the dumping operation, so the mobile phone 100 can detect the target device earlier, so that it can detect the dumping In the case of operation, share the content to the target device as early as possible, which can improve the content sharing speed; in the content sharing process shown in Figure 17, when the mobile phone 100 detects the dumping operation, the process of detecting the target device is performed again, so that , when the user moves the mobile phone 100 close to the target device, but does not perform the dumping operation without intending to share content, the mobile phone 100 will not perform the detection process of the target device, thereby saving processing resources and reducing energy consumption.
  • any of the above content sharing solutions may be selected as required, which is not particularly limited in this embodiment.
  • the terminal device can share content with the target device when it detects the target device and the dumping operation acting on the terminal device, so that the user can dump the terminal device by bringing the terminal device close to nearby devices Therefore, this method can simplify the operation process of the content sharing function and improve the convenience of users. Moreover, this method does not depend on the NFC chip, and can be used with lower cost and higher functionality. Strong other positioning features to detect target devices.
  • the embodiment of the present application provides a content sharing device
  • the device embodiment corresponds to the aforementioned method embodiment
  • the present device embodiment does not refer to the aforementioned method embodiment
  • the details will be described one by one, but it should be clear that the device in this embodiment can correspondingly implement all the content in the foregoing method embodiments.
  • Fig. 18 is a schematic structural diagram of a content sharing device provided in an embodiment of the present application. As shown in Fig. 18, the device provided in this embodiment includes:
  • a display module 210 an input module 220 , a processing module 230 and a communication module 240 .
  • the display module 210 is configured to support the terminal device to perform the interface display operation in the above-mentioned embodiments and/or other processes for the technologies described herein.
  • the display module can be a touch screen or other hardware or a combination of hardware and software.
  • 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. Other procedures of the techniques described herein.
  • the input module can be a touch screen or other hardware or a combination of hardware and software.
  • the processing module 230 is configured to support the terminal device to execute the processing operations in the method steps in the foregoing embodiments and/or other processes used in the technology described herein.
  • 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 for the technology described herein.
  • the device provided in this embodiment can execute the above-mentioned method embodiment, and its implementation principle and technical effect are similar, and details are not repeated here.
  • FIG. 19 is a schematic structural diagram of the terminal device provided in the embodiment of the present application.
  • the terminal device may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (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, Mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, earphone jack 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193, display screen 194, and user An identification module (subscriber identification module, SIM) card interface 195 and the like.
  • SIM subscriber identification module
  • 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, bone conduction sensor 180M, etc.
  • the structure shown in the embodiment of the present application does not constitute a specific limitation on the terminal device.
  • the terminal device may include more or fewer components than shown in the figure, or combine certain components, or separate certain components, or perform different component arrangements.
  • the illustrated components can be realized in hardware, software or a combination of software and hardware.
  • the processor 110 may include one or more processing units, for example: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processing unit (sgraphics processing unit, GPU), an image signal processor (image signal processor, ISP), controller, memory, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural network processor (neural-network processing unit, NPU) wait.
  • application processor application processor
  • AP application processor
  • modem processor graphics processing unit
  • ISP image signal processor
  • controller memory
  • video codec digital signal processor
  • DSP digital signal processor
  • baseband processor baseband processor
  • neural network processor neural-network processing unit, NPU
  • the controller may be the nerve center and command center of the terminal device.
  • the controller can generate an operation control signal according to the instruction opcode and timing signal, and complete the control of fetching and executing the instruction.
  • a memory may also be provided in the processor 110 for storing instructions and data.
  • the memory in processor 110 is a cache memory.
  • the memory may hold instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to use the instruction or data again, it can be called directly from the memory. Repeated access is avoided, and the waiting time of the processor 110 is reduced, thereby improving the efficiency of the system.
  • processor 110 may include one or more interfaces.
  • the interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous transmitter (universal asynchronous receiver/transmitter, UART) interface, mobile industry processor interface (mobile industry processor interface, MIPI), general-purpose input and output (general-purpose input/output, GPIO) interface, subscriber identity module (subscriber identity module, SIM) interface, and /or universal serial bus (universal serial bus, USB) interface, etc.
  • I2C integrated circuit
  • I2S integrated circuit built-in audio
  • PCM pulse code modulation
  • PCM pulse code modulation
  • UART universal asynchronous transmitter
  • MIPI mobile industry processor interface
  • GPIO general-purpose input and output
  • subscriber identity module subscriber identity module
  • SIM subscriber identity module
  • USB universal serial bus
  • the I2C interface is a bidirectional synchronous serial bus, including a serial data line (serial data line, SDA) and a serial clock line (serail clock line, SCL).
  • the I2S interface can be used for audio communication.
  • the PCM interface can also be used for audio communication, sampling, quantizing and encoding the analog signal.
  • the UART interface is a universal serial data bus 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 peripheral devices such as the processor 110 and the display screen 194, the camera 193; the MIPI interface includes a camera serial interface (camera serial interface, CSI), a display serial interface (display serial interface, DSI) and the like.
  • the GPIO interface can be configured by software, and the GPIO interface can be configured as a control signal or as a data signal.
  • the USB interface 130 is an interface conforming to the USB standard specification, specifically, it can be a Mini USB interface, a Micro USB 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 peripheral devices. It can also be used to connect headphones and play audio through them. This interface can also be used to connect other terminal devices, such as AR devices.
  • the interface connection relationship between the modules shown in the embodiment of the present application is only a schematic illustration, and does not constitute a structural limitation on the terminal device.
  • the terminal device may also adopt different interface connection modes in the foregoing embodiments, or a combination of multiple interface connection modes.
  • the charging management module 140 is configured to receive a charging input from a charger.
  • the charger may be a wireless charger or a wired charger.
  • the charging management module 140 can receive charging input from the wired charger through the USB interface 130 .
  • the charging management module 140 may receive wireless charging input through a wireless charging coil of the terminal device. While the charging management module 140 is charging the battery 142 , it can also supply power to the terminal device through the power management module 141 .
  • the power management module 141 is used for connecting the battery 142 , the charging management module 140 and the processor 110 .
  • the power management module 141 receives the input from the battery 142 and/or the charging management module 140 to provide power for 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 times, and battery health status (leakage, impedance).
  • the power management module 141 may also be disposed in the processor 110 .
  • the power management module 141 and the charging management module 140 may also be set in the same device.
  • the wireless communication function of the terminal device can be realized by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
  • Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in an end device can be used to cover single or multiple communication frequency bands. Different antennas can also be multiplexed to improve the utilization of the antennas.
  • Antenna 1 can be multiplexed as a diversity antenna of a wireless local area network.
  • the antenna may be used in conjunction with a tuning switch.
  • the mobile communication module 150 can provide wireless communication solutions including 2G/3G/4G/5G applied on terminal equipment.
  • the mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA) and the like.
  • the mobile communication module 150 can receive electromagnetic waves through the antenna 1, filter and amplify the received electromagnetic waves, and send them to the modem processor for demodulation.
  • the mobile communication module 150 can also amplify the signals modulated by the modem processor, and convert them into electromagnetic waves and radiate them through the antenna 1 .
  • at least part of the functional modules of the mobile communication module 150 may be set in the processor 110 .
  • at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 may be set in the same device.
  • a modem processor may include a modulator and a demodulator.
  • the modulator is used for modulating the low-frequency baseband signal to be transmitted into a medium-high frequency signal.
  • the demodulator is used to demodulate the received electromagnetic wave signal into a low frequency baseband signal. Then the demodulator sends the demodulated low-frequency baseband signal to the baseband processor for processing.
  • the low-frequency baseband signal is passed to the application processor after being processed by the baseband processor.
  • the application processor outputs sound signals through audio equipment (not limited to speaker 170A, receiver 170B, etc.), or displays images or videos through display screen 194 .
  • the modem processor may be a stand-alone device.
  • the modem processor may be independent from the processor 110, and be set in the same device as the mobile communication module 150 or other functional modules.
  • the wireless communication module 160 can provide wireless local area networks (wireless local area networks, WLAN) (such as wireless fidelity (Wireless fidelity, Wi-Fi) network), bluetooth (bluetooth, BT), global navigation satellite system, etc. (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field communication technology (near field communication, NFC), infrared technology (infrared, IR), millimeter wave (millimeter wave, mmWave) technology, ultra-wideband ( Ultra wide band, UWB) technology and other wireless communication solutions.
  • the wireless communication module 160 may be one or more devices integrating at least one communication processing module.
  • the wireless communication module 160 receives electromagnetic waves via the antenna 2 , frequency-modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 .
  • the wireless communication module 160 can also receive the signal to be sent from the processor 110 , frequency-modulate it, amplify it, and convert it into electromagnetic waves through the antenna 2 for radiation.
  • 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 (general packet radio service, GPRS), code division multiple access (code division multiple access, CDMA), broadband Code division multiple access (wideband code division multiple access, WCDMA), time division synchronous code division multiple access (time division-synchronous code division multiple access, TD-SCDMA), long term evolution (long term evolution, LTE), BT, GNSS, WLAN , NFC, FM, and/or IR technology, etc.
  • GSM global system for mobile communications
  • general packet radio service general packet radio service
  • CDMA code division multiple access
  • CDMA broadband Code division multiple access
  • WCDMA wideband code division multiple access
  • time division synchronous code division multiple access time division-synchronous code division multiple access
  • LTE long term evolution
  • BT GNSS
  • WLAN NFC
  • the GNSS may include a global positioning system (global positioning system, GPS), a global navigation satellite system (global navigation satellite system, GNSS), a Beidou navigation satellite system (beidou navigation satellite system, BDS), a quasi-zenith satellite system (quasi -zenith satellite system (QZSS) and/or satellite based augmentation systems (SBAS).
  • GPS global positioning system
  • GNSS global navigation satellite system
  • BDS Beidou navigation satellite system
  • QZSS quasi-zenith satellite system
  • SBAS satellite based augmentation systems
  • the terminal device realizes the display function through the GPU, the display screen 194, and the application processor.
  • the GPU is a microprocessor for image processing, and is connected to the display screen 194 and the application processor. GPUs are used to perform mathematical and geometric calculations for graphics rendering.
  • Processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
  • the display screen 194 is used to display images, videos and the like.
  • 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 (active-matrix organic light emitting diode, AMOLED), flexible light-emitting diode (flex light-emitting diode, FLED), Mini LED, Micro LED, quantum dot light emitting diodes (quantum dot light emitting diodes, QLED), etc.
  • the terminal device may include 1 or N display screens 194, where N is a positive integer greater than 1.
  • the terminal device can realize the shooting function through ISP, camera 193 , video codec, GPU, display screen 194 and application processor.
  • the ISP is used for processing the data fed back by the camera 193 .
  • Camera 193 is used to capture still images or video.
  • Digital signal processors are used to process digital signals. In addition to digital image signals, they can also process other digital signals.
  • Video codecs are used to compress or decompress digital video.
  • the NPU is a neural-network (NN) computing processor.
  • NPU neural-network
  • Applications such as intelligent cognition of terminal equipment can be realized through NPU, such as: image recognition, face recognition, speech recognition, text understanding, etc.
  • the internal memory 121 may be used to store computer-executable program codes including instructions.
  • the processor 110 executes various functional applications and data processing of the terminal device by executing instructions stored in the internal memory 121 .
  • the internal memory 121 may include an area for storing programs and an area for storing data.
  • the stored program area can store an operating system, and at least one application program required by a function (such as a sound playing function, an image playing function, etc.) and the like.
  • the storage data area can store data (such as audio data, phone book, etc.) created during the use of the terminal device.
  • 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 magnetic disk storage device, flash memory device, universal flash storage (universal flash storage, UFS) and the like.
  • 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. Such as saving music, video and other files in the external memory card.
  • the terminal device can implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor. Such as music playback, recording, etc.
  • 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 may also be used to encode and decode audio signals.
  • the audio module 170 may be set in the processor 110 , or some functional modules of the audio module 170 may be set in the processor 110 .
  • Speaker 170A also referred to as a "horn” is used to convert audio electrical signals into sound signals.
  • Receiver 170B also called “earpiece”, is used to convert audio electrical signals into sound signals.
  • the microphone 170C also called “microphone” or “microphone” is used to convert sound signals into electrical signals.
  • the earphone interface 170D is used for connecting wired earphones.
  • the earphone interface 170D may be a USB interface 130, or a 3.5mm open mobile terminal platform (open mobile terminal platform, OMTP) standard interface, or a cellular telecommunications industry association of the USA (CTIA) standard interface.
  • CTIA
  • the terminal device can also send ultrasonic waves through the speaker 170A, and receive ultrasonic waves through the microphone 170C, so as to realize ultrasonic technology.
  • the keys 190 include a power key, a volume key and the like.
  • the key 190 may be a mechanical key. It can also be a touch button.
  • the terminal device can receive key input and generate key signal input related to user settings and function control of the terminal device.
  • the motor 191 can generate a vibrating reminder.
  • 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, and can be used to indicate charging status, power change, and can also be used to indicate messages, missed calls, notifications, and the like.
  • the SIM card interface 195 is used for connecting a SIM card.
  • the SIM card can be connected and separated from the terminal device by being inserted into the SIM card interface 195 or pulled out from the SIM card interface 195 .
  • the terminal device can support 1 or N SIM card interfaces, and N is a positive integer greater than 1.
  • SIM card interface 195 can support Nano SIM card, Micro SIM card, SIM card etc.
  • the terminal device provided in this embodiment can execute the foregoing method embodiment, and its implementation principle and technical effect are similar, and details are not repeated here.
  • the embodiment of the present application also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the method described in the foregoing method embodiment is implemented.
  • the embodiment of the present application further provides a computer program product, which, when the computer program product runs on a terminal device, enables the terminal device to implement the method described in the foregoing method embodiments when executed.
  • An embodiment of the present application further 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, so as to implement the method described in the above method embodiment.
  • the chip system may be a single chip, or a chip module composed of multiple chips.
  • all or part of them may be implemented by software, hardware, firmware or any combination thereof.
  • software When implemented using software, it may 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.
  • the computer can be a general purpose computer, a special purpose computer, a computer network, or other programmable devices.
  • the computer instructions may be stored in or transmitted via a computer-readable storage medium.
  • the computer instructions may be transmitted from one web site, computer, server, or data center to another web site, computer, server or data center for transmission.
  • the computer-readable storage medium may be any available medium that can be accessed by a computer, or a data storage device such as a server or a data center integrated with one or more available media.
  • the available medium may be a magnetic medium (such as a floppy disk, a hard disk, or a magnetic tape), an optical medium (such as a DVD), or a semiconductor medium (such as a solid state disk (Solid State Disk, SSD)), etc.
  • the processes can be completed by computer programs to instruct related hardware.
  • the programs can be stored in computer-readable storage media.
  • When the programs are executed may include the processes of the foregoing method embodiments.
  • the aforementioned storage medium may include: ROM or random access memory RAM, magnetic disk or optical disk, and other media capable of storing program codes.
  • the disclosed device/device and method can be implemented in other ways.
  • the device/device embodiments described above are only illustrative.
  • the division of the modules or units is only a logical function division.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.
  • plural means two or more than two.
  • At least one of the following or similar expressions refer to any combination of these items, including any combination of single items or plural items.
  • at least one of a, b, or c can represent: a, b, c, a-b, a-c, b-c, or a-b-c, wherein a, b, c can be single or multiple.
  • the term “if” may be construed, depending on the context, as “when” or “once” or “in response to determining” or “in response to detecting “.
  • the phrase “if determined” or “if [the described condition or event] is detected” may be construed, depending on the context, to mean “once determined” or “in response to the determination” or “once detected [the described condition or event] ]” or “in response to detection of [described condition or event]”.
  • references to "one embodiment” or “some embodiments” or the like in the specification of the present application means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application.
  • appearances of the phrases “in one embodiment,” “in some embodiments,” “in other embodiments,” “in other embodiments,” etc. in various places in this specification are not necessarily All refer to the same embodiment, but mean “one or more but not all embodiments” unless specifically stated otherwise.

Abstract

本申请提供一种内容分享方法和终端设备,涉及通信技术领域,其中,该方法包括:终端设备检测目标设备和作用于终端设备的倾倒操作,其中,目标设备与终端设备之间的距离小于或等于目标距离;终端设备在检测到目标设备和倾倒操作的情况下,响应于倾倒操作,向目标设备分享内容。本申请提供的技术方案可以简化内容分享功能的操作过程,提高用户使用的便利性。

Description

内容分享方法和终端设备
本申请要求于2021年12月24日提交国家知识产权局、申请号为202111601985.X、申请名称为“内容分享方法和终端设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及通信技术领域,尤其涉及一种内容分享方法和终端设备。
背景技术
随着终端设备的普及,用户拥有的终端设备越来越多,例如,一个用户同时拥有手机、平板和笔记本电脑等多个设备。为了方便用户使用,目前的终端设备大多都支持基于近距离通信技术的内容分享功能,用户可以通过该功能便捷地在多个终端设备之间互相分享图片、文档和音视频等内容。
目前,用户想要使用内容分享功能在多个终端设备之间分享内容时,一般需要用户在每个终端设备上开启近距离通信功能后,再在终端设备显示的界面上进行多次操作来实现终端设备之间的连接和内容分享,操作比较繁琐。
发明内容
有鉴于此,本申请提供一种内容分享方法和终端设备,用于简化内容分享功能的操作过程,提高用户使用的便利性。
为了实现上述目的,第一方面,本申请实施例提供一种内容分享方法,应用于终端设备,该方法包括:
检测目标设备和作用于所述终端设备的倾倒操作,所述目标设备与所述终端设备之间的距离小于或等于目标距离;
在检测到所述目标设备和所述倾倒操作的情况下,响应于所述倾倒操作,向所述目标设备分享内容。
本申请实施例提供的内容分享方法,终端设备可以在检测到目标设备和作用于该终端设备的倾倒操作时,向目标设备分享内容,这样用户可以通过将终端设备靠近附近设备并倾倒终端设备的方式,快速实现两设备之间的内容分享,因此,该方法可以简化内容分享功能的操作过程,提高用户使用的便利性,而且,该方法不依赖于NFC芯片,可以使用成本较低、功能性较强的其他定位功能检测目标设备。
在第一方面的一种可能的实施方式中,在所述倾倒操作的倾倒方向朝向所述目标设备的情况下,响应于所述倾倒操作,向所述目标设备分享内容。这样可以减少误分享的情况。
在第一方面的一种可能的实施方式中,在检测到多个所述目标设备的情况下,响应于所述倾倒操作,向所述倾倒操作的倾倒方向所朝向的目标设备分享内容。这样可以方便用户确定待分享内容的设备,提高内容分享的准确性。
在第一方面的一种可能的实施方式中,在检测到多个所述目标设备的情况下,响应于所述倾倒操作,向每个所述目标设备分享内容。这样可以同时向多个设备分享内容,从而可以提高内容分享的便利性。
在第一方面的一种可能的实施方式中,所述检测目标设备,包括:
基于第一定位功能确定至少一个候选设备,所述至少一个候选设备与所述终端设备之间的距离小于第一距离,所述第一距离大于所述目标距离;
通知所述至少一个候选设备开启第二定位功能;
基于所述第二定位功能从所述至少一个候选设备中确定所述目标设备;
其中,所述第一定位功能的定位精度小于所述第二定位功能的定位精度,或者,所述第一定位功能的功耗大于所述第二定位功能的功耗。
通过上述实施方式,可以降低各设备的功耗。
在第一方面的一种可能的实施方式中,所述第一定位功能包括:蓝牙定位功能和Wi-Fi定位功能中的至少一种;
所述第二定位功能包括:超声波定位功能、毫米波定位功能和超宽带定位功能中的至少一种。
在第一方面的一种可能的实施方式中,所述检测倾倒操作,包括:
在检测到作用于所述终端设备的第一操作满足第一条件的情况下,确定检测到所述倾倒操作;
其中,所述第一操作为绕目标旋转轴旋转所述终端设备的操作,所述目标旋转轴为沿所述终端设备的长度方向或宽度方向的轴;所述第一条件包括:所述终端设备在第一时长内旋转第一角度,所述第一角度在第一角度范围内。
通过上述实施方式,可以减少误检测的情况。
在第一方面的一种可能的实施方式中,执行所述第一操作时,所述终端设备处于屏幕朝上状态。这样可以减少倾倒操作误触发的情况,且终端设备在屏幕朝上状态时,也比较方便用户操作,因而也可以提高用户操作的便利性。
在第一方面的一种可能的实施方式中,所述终端设备处于屏幕朝上状态时,所述终端设备的屏幕法线方向与任意水平方向之间的夹角大于0度,小于180度。这样可以允许用户在操作时存在一定的角度误差,从而可以提升用户操作的便利性。
在第一方面的一种可能的实施方式中,所述第一角度范围为[15°,105°];所述第一角度在第一角度范围内为:15°≤第一角度≤105°。
在第一方面的一种可能的实施方式中,所述第一条件还包括:
所述终端设备在第一时长内旋转第一角度后,静止第二时长;和/或
所述终端设备旋转所述第一角度的过程中,旋转角加速度大于或等于第一角加速度。
通过上述实施方式,可以减少倾倒操作误触发的情况,提高检测结果的准确性。
在第一方面的一种可能的实施方式中,所述方法还包括:
在检测到所述第一操作不满足所述第一条件,且在所述第一操作后继续执行的第二操作满足第二条件的情况下,确定检测到所述倾倒操作;
其中,所述第二操作为绕所述目标旋转轴旋转所述终端设备的操作,所述第二操作的旋转方向与所述第一操作的旋转方向相同;所述第二条件包括:所述终端设备在第三时长内旋转第二角度,所述第二角度在第二角度范围内。
通过上述实施方式,可以提高用户使用的便利性。
在第一方面的一种可能的实施方式中,所述第二条件还包括下列中的至少一种:
所述终端设备在所述第三时长内旋转第二角度后,静止第四时长;
所述第三时长小于所述第一时长;
所述第二角度范围的角度下限小于所述第一角度范围的角度下限;
所述第二角度范围的角度上限小于所述第一角度范围的角度上限。
在第一方面的一种可能的实施方式中,在检测到所述终端设备处于非静止状态的情况下,启动检测所述目标设备的操作。这样可以节省电量。
在第一方面的一种可能的实施方式中,在检测到所述终端设备处于移动状态的情况下,启动检测所述目标设备的操作。这样可以进一步节省电量。
在第一方面的一种可能的实施方式中,在检测到所述倾倒操作的情况下,启动检测所述目标设备的操作。这样当用户将终端设备靠近了目标设备,但是没有分享内容的意图而不执行倾倒操作时,终端设备就不会进行目标设备的检测过程,从而可以节省处理资源,降低能耗。
在第一方面的一种可能的实施方式中,向所述目标设备分享的内容包括下列中的至少一种:文件、投屏内容和应用程序运行信息。
在第一方面的一种可能的实施方式中,所述方法还包括:响应于所述倾倒操作,向所述目标设备发送所述终端设备与所述目标设备之间的位置关系,所述位置关系用于所述目标设备在屏幕上靠近所述终端设备的一侧显示所述终端设备分享的内容。
通过上述实施方式,可以更好地满足用户需求,提高用户进行内容分享的灵活性。
在第一方面的一种可能的实施方式中,所述目标设备与所述终端设备在同一局域网内,和/或,所述终端设备为所述目标设备的信任设备;
其中,所述目标设备的信任设备与所述目标设备登录同一账号,或者,所述目标设备的信任设备登录的账号是所述目标设备所登录账号的信任账号。
通过上述实施方式,可以提高内容分享的安全性。
第二方面,本申请实施例提供一种内容分享装置,应用于终端设备,该装置包括:处理模块和通信模块,其中:
所述处理模块用于:检测目标设备和作用于所述终端设备的倾倒操作,并在检测到所述目标设备和所述倾倒操作的情况下,响应于所述倾倒操作,通过所述通信模块向所述目标设备分享内容,其中,所述目标设备与所述终端设备之间的距离小于或等于目标距离。
在第二方面的一种可能的实施方式中,所述处理模块具体用于:在所述倾倒操作的倾倒方向朝向所述目标设备的情况下,响应于所述倾倒操作,通过所述通信模块向所述目标设备分享内容。
在第二方面的一种可能的实施方式中,所述处理模块具体用于:在检测到多个所述目标设备的情况下,响应于所述倾倒操作,通过所述通信模块向所述倾倒操作的倾倒方向所朝向的目标设备分享内容。
在第二方面的一种可能的实施方式中,所述处理模块具体用于:在检测到多个所述目标设备的情况下,响应于所述倾倒操作,通过所述通信模块向每个所述目标设备分享内容。
在第二方面的一种可能的实施方式中,所述处理模块具体用于:
基于第一定位功能确定至少一个候选设备,所述至少一个候选设备与所述终端设备之间的距离小于第一距离,所述第一距离大于所述目标距离;
通过所述通信模块通知所述至少一个候选设备开启第二定位功能;
基于所述第二定位功能从所述至少一个候选设备中确定所述目标设备;
其中,所述第一定位功能的定位精度小于所述第二定位功能的定位精度,或者,所述第一定位功能的功耗大于所述第二定位功能的功耗。
在第二方面的一种可能的实施方式中,所述第一定位功能包括:蓝牙定位功能和Wi-Fi定位功能中的至少一种;
所述第二定位功能包括:超声波定位功能、毫米波定位功能和超宽带定位功能中的至少一种。
在第二方面的一种可能的实施方式中,所述处理模块具体用于:
在检测到作用于所述终端设备的第一操作满足第一条件的情况下,确定检测到所述倾倒操作;
其中,所述第一操作为绕目标旋转轴旋转所述终端设备的操作,所述目标旋转轴为沿所述终端设备的长度方向或宽度方向的轴;所述第一条件包括:所述终端设备在第一时长内旋转第一角度,所述第一角度在第一角度范围内。
在第二方面的一种可能的实施方式中,执行所述第一操作时,所述终端设备处于屏幕朝上状态。
在第二方面的一种可能的实施方式中,所述终端设备处于屏幕朝上状态时,所述终端设备的屏幕法线方向与任意水平方向之间的夹角大于0度,小于180度。
在第二方面的一种可能的实施方式中,所述第一角度范围大于或等于15°,小于或等于105°。
在第二方面的一种可能的实施方式中,所述第一条件还包括:
所述终端设备在第一时长内旋转第一角度后,静止第二时长;和/或
所述终端设备旋转所述第一角度的过程中,旋转角加速度大于或等于第一角加速度。
在第二方面的一种可能的实施方式中,所述处理模块还用于:
在检测到所述第一操作不满足所述第一条件,且在所述第一操作后继续执行的第二操作满足第二条件的情况下,确定检测到所述倾倒操作;
其中,所述第二操作为绕所述目标旋转轴旋转所述终端设备的操作,所述第二操作的旋转方向与所述第一操作的旋转方向相同;所述第二条件包括:所述终端设备在第三时长内旋转第二角度,所述第二角度在第二角度范围内。
在第二方面的一种可能的实施方式中,所述第二条件还包括下列中的至少一种:
所述终端设备在所述第三时长内旋转第二角度后,静止第四时长;
所述第三时长小于所述第一时长;
所述第二角度范围的角度下限小于所述第一角度范围的角度下限;
所述第二角度范围的角度上限小于所述第一角度范围的角度上限。
在第二方面的一种可能的实施方式中,所述处理模块还用于:在检测到所述终端设备处于非静止状态的情况下,启动检测所述目标设备的操作。
在第二方面的一种可能的实施方式中,所述处理模块还用于:在检测到所述终端设备处于移动状态的情况下,启动检测所述目标设备的操作。
在第二方面的一种可能的实施方式中,所述处理模块还用于:在检测到所述倾倒操作 的情况下,启动检测所述目标设备的操作。
在第二方面的一种可能的实施方式中,向所述目标设备分享的内容包括下列中的至少一种:文件、投屏内容和应用程序运行信息。
在第二方面的一种可能的实施方式中,所述处理模块还用于:响应于所述倾倒操作,通过所述通信模块向所述目标设备发送所述终端设备与所述目标设备之间的位置关系,所述位置关系用于所述目标设备在屏幕上靠近所述终端设备的一侧显示所述终端设备分享的内容。
在第二方面的一种可能的实施方式中,所述目标设备与所述终端设备在同一局域网内,和/或,所述终端设备为所述目标设备的信任设备;
其中,所述目标设备的信任设备与所述目标设备登录同一账号,或者,所述目标设备的信任设备登录的账号是所述目标设备所登录账号的信任账号。
第三方面,本申请实施例提供一种终端设备,包括:存储器和处理器,存储器用于存储计算机程序;处理器用于在调用计算机程序时,使得所述终端设备执行上述第一方面或第一方面的任一实施方式所述的方法。
第四方面,本申请实施例提供一种计算机可读存储介质,其上存储有计算机程序,计算机程序被处理器执行时实现上述第一方面或第一方面的任一实施方式所述的方法。
第五方面,本申请实施例提供一种计算机程序产品,当计算机程序产品在终端设备上运行时,使得终端设备执行上述第一方面或第一方面的任一实施方式所述的方法。
第六方面,本申请实施例提供一种芯片系统,包括处理器,所述处理器与存储器耦合,所述处理器执行存储器中存储的计算机程序,以实现上述第一方面或第一方面的任一实施方式所述的方法。其中,所述芯片系统可以为单个芯片,或者多个芯片组成的芯片模组。
可以理解的是,上述第二方面至第六方面的有益效果可以参见上述第一方面中的相关描述,在此不再赘述。
附图说明
图1为本申请实施例提供的内容分享系统的系统架构示意图;
图2-图4为本申请实施例提供的几种内容分享方式示意图;
图5A~图5C为本申请实施例提供的一些内容分享过程示意图;
图6为本申请实施例提供的一种应用场景示意图;
图7为本申请实施例提供的一种内容分享方法的流程示意图;
图8为本申请实施例提供的一种用户界面示意图;
图9为本申请实施例提供的终端设备的坐标系示意图;
图10为本申请实施例提供的终端设备的屏幕法线方向的倾角示意图;
图11为本申请实施例提供的终端设备的旋转角度示意图;
图12为本申请实施例提供的一种倾倒操作示意图;
图13A~图13C为本申请实施例提供的另一些内容分享过程示意图;
图14A~图14C为本申请实施例提供的另一些内容分享过程示意图;
图15A~图15C为本申请实施例提供的又一些内容分享过程示意图;
图16为本申请实施例提供的另一些用户界面示意图;
图17为本申请实施例提供的另一种内容分享方法的流程示意图;
图18为本申请实施例提供的内容分享装置的结构示意图;
图19为本申请实施例提供的终端设备的结构示意图。
具体实施方式
下面结合本申请实施例中的附图对本申请实施例进行描述。可以理解的是,本申请实施例的实施方式部分使用的术语仅用于对本申请的具体实施例进行解释,而非旨在限定本申请。下面这几个具体的实施例可以相互结合,对于相同或相似的概念或过程可能在某些实施例不再赘述。
首先介绍本申请实施例涉及的内容分享系统。请参阅图1,图1为本申请实施例提供的内容分享系统的系统架构示意图。
内容分享系统可以包括多个终端设备,终端设备可以是诸如手机、平板、笔记本、智能穿戴设备之类的便携式电子设备,也可以是诸如台式电脑、智能电视、大屏设备、车载终端、打印机、音箱之类的非便携式电子设备。图1中以内容分享系统包括手机100、笔记本200、平板电脑300、大屏设备400、智能穿戴设备500和音箱600为例进行示例性说明。
各终端设备可以具有蓝牙模块、无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络)模块、毫米波(millimeter wave,mmWave)模块、超宽带(ultra wide band,UWB)模块、近场通信(near field communication,NFC)模块等近距离无线通信模块中的一种或多种。其中,蓝牙模块可以包括经典蓝牙(bluetooth,BT)模块和低功耗蓝牙(bluetooth low energy,BLE)模块。
终端设备可以通过上述近距离无线通信模块发射信号来探测、扫描终端设备附近的终端设备(以下简称为附近设备),使得终端设备可以发现附近设备,并与附近设备建立无线通信连接,通过建立的无线通信连接与附近设备之间进行文件分享、音视频接续、跨设备编辑或无线投屏等内容分享操作。
下面以手机100和笔记本200为例,举例说明几种内容分享方式。
用户可以通过应用程序界面(application,APP)中的分享按钮分享内容。具体地,在手机100和笔记本200上都开启Wi-Fi后,如图2中的(a)所示,用户可以在手机100上打开目标APP(此处示例性的为“图库”APP),在“图库”界面10中选择待分享的图片S对应的缩略图1001,点击分享按钮1002打开分享界面。如图2中的(b)所示,分享界面11中可以显示用户已选择的图片1101、手机100发现的附近设备对应的图标1102和一些支持分享服务的功能图标1103,在图2中示例性地,附近设备为“PC-A”,功能图标1103包括微信图标、蓝牙图标、QQ图标和无线局域网(wireless local area networks,WLAN)直连图标。然后,用户可以选择手机100搜索到的笔记本200“PC-A”对应的图标1102建立连接;建立连接后,手机100可以将上述待分享的图片S传输给笔记本200“PC-A”。
用户也可以通过投屏方式分享内容,其中一种实现方式可以参见图3,如图3中的(a)所示,用户先在笔记本200上打开电脑管家后,在“我的设备”界面20中选择“我的手机100”选项2001,打开手机100管理界面;如图3中的(b)所示,在手机100管理界面21中,用户可以点击“立即连接”选项2101打开手机100连接界面连接手机100。如图3中的(c)所示,手机100连接界面22中可以显示提示信息:“正在查找您的手机100”和搜索倒计时时间“24s”;并可以在左上角提供二维码连接入口2201。用户可以同时开 启手机100和笔记本200上的蓝牙,使笔记本200发现手机100自动建立连接;也可以同时开启手机100和笔记本200上的Wi-Fi,点击手机100连接界面22左上角的二维码连接入口2201,打开二维码连接界面,然后通过手机100扫描二维码连接界面上的二维码建立连接。建立连接后,笔记本200上可以显示手机100的镜像投屏,用户可以在笔记本200上查看、编辑手机100上的文件,还可以通过拖拽方式与手机100互传文件。
用户通过投屏方式分享内容的另一种实现方式可以参见图4,用户在手机100和笔记本200上都开启Wi-Fi和蓝牙,并在手机100上开启NFC后,如图4中的(a)和(b)所示,用户可以用手机100背部的NFC感应区域30触碰笔记本200的NFC标签感应区域31建立连接,实现手机100到笔记本200的投屏。
上述几种内容分享方式中,图2所示的通过分享按钮建立连接分享内容的方式和图3所示的通过二维码建立连接分享内容的方式,均需要用户在终端设备显示的界面上进行多次操作来实现终端设备之间的连接和内容分享,操作比较繁琐。图4所示的通过NFC建立连接分享内容的方式,需要在终端设备上内置NFC芯片或外设NFC标签,而有些终端设备,比如平板,由于产品形态原因设置NFC标签比较困难,而内置NFC芯片成本较高;且NFC芯片的应用场景很少,功能性较低。
考虑到上述问题,本申请实施例提供另一种内容分享方案,使用户可以通过将终端设备靠近附近设备并倾倒终端设备的方式,快速实现两设备之间的内容分享,且不依赖NFC芯片。其中,用户倾倒的终端设备可以是便携式电子设备,附近设备可以是便携式或非便携式电子设备。
例如图5A~图5C所示的,用户可以手持手机100靠近笔记本200后,倾倒手机100,将手机100上的内容(此处示例性的为手机100的屏幕内容的镜像)分享到笔记本200上。或者,用户也可以在手持手机100靠近笔记本200的过程中,倾倒手机100,将手机100上的内容分享到笔记本200上。
下面结合具体的应用场景,对上述内容分享方案的具体实现过程进行说明。
图6为本申请实施例提供的一种应用场景示意图,如图6所示,该应用场景中包括手机100、笔记本200、平板300和大屏设备400,示例性的,手机100、笔记本200和平板300位于大屏设备400的前方,手机100位于笔记本200的右侧,平板300位于笔记本200的左侧。用户可以将手机100靠近笔记本200,通过倾倒手机100的方式向笔记本200分享内容。
可以理解的是,上述应用场景只是一种示例,其并非用于限定本申请,在本申请的另一些实施例中,该应用场景可以包括比图示更多或更少的终端设备,或者包括其他类型的终端设备;并且,用户可以通过上述靠近-倾倒的方式实现任意两个终端设备之间的内容分享。
图7示出了用户拿起手机100向笔记本200分享内容的一种可能的实现过程,如图7所示,该过程可以包括如下步骤:
S110、手机100检测到自身处于非静止状态。
如图6中所示,笔记本200、平板300和大屏设备400均位于手机100附近,用户可以将手机100靠近附近设备中的笔记本200,以便手机100可以将离自身较近的笔记本200确定为待分享的目标设备,进而进行内容分享。
具体地,手机100可以在任意工作状态下通过测距功能检测自身是否与笔记本200靠的足够近,考虑到测距会产生一定的能耗,而用户在手持手机100靠近笔记本200时,手机100会处于非静止状态,因此,为了节省电量,本实施例中,手机100可以先检测自身的运动状态,在检测到自身处于非静止状态的情况下,再进行测距过程。
用户在手持手机100靠近笔记本200时,手机100会朝着笔记本200移动,为了进一步节省电量,本实施例中,手机100可以在检测到自身朝某一方向移动(即处于移动状态)的情况下,再进行测距过程。
在具体实现时,手机100可以通过运动传感器检测的信号,识别自身的运动状态。其中,运动传感器可以包括:加速度(accelerator,ACC)传感器、陀螺仪和惯性测量单元(inertial measurement unit,IMU)等传感器中的一种或多种。
S120、手机100基于第一定位功能检测与附近设备(笔记本200、平板300和大屏设备400)之间的距离。
相比低精度的定位功能,高精度的定位功能通常功耗比较高,因此,为了节省电量,本实施例中,手机100可以先采用低精度的定位功能(此处称为第一定位功能)检测与附近设备之间的距离,筛选出一些候选设备后,再采用高精度的定位功能(此处称为第二定位功能)检测与候选设备之间的距离,进而筛选出目标设备。
可以理解的是,在检测目标设备时,手机100也可以直接采用精度较高的第二定位功能确定与附近设备之间的距离,以减少处理流程。本实施例中以先采用第一定位功能,再采用第二定位功能为例进行示例性说明。
其中,第一定位功能可以包括:蓝牙定位功能和Wi-Fi定位功能等;第二定位功能可以包括:超声波定位功能、毫米波定位功能和超宽带定位功能等。
在采用第一定位功能进行测距时,手机100可以采用一种第一定位功能测量手机100与附近设备之间的距离,也可以结合多种第一定位功能测量手机100与附近设备之间的距离;同样地,后续手机100在采用第二定位功能进行测距时,也可以采用一种或多种第二定位功能测量手机100与候选设备之间的距离。
手机100和附近设备可以通过第一定位功能收发定位信号,例如,通过蓝牙定位功能发射和接收蓝牙信号(具体可以是广播信号或响应信号等),手机100可以根据定位信号的接收信号强度指示(received signal strength indication,RSSI)值,来确定手机100与发现的附近设备之间的距离;手机100也可以采用其他测距方法,例如到达时间(time of arrival,TOA)测距法、到达时间差(time difference of arrival,TDOA)测距法、到达角度(angle of arrival,AOA)测距法、飞行时间(time of flight,TOF)测距法等,确定手机100与发现的附近设备之间的距离,本申请实施例对此不做特别限定。
S130、手机100从附近设备中确定候选设备。其中,候选设备与手机100之间的距离小于第一距离。
手机100确定出与附近设备之间的距离后,可以采用距离阈值(此处称为第一距离)从中筛选出候选设备,其中,第一距离可以根据第一定位功能的定位精度确定,其可以大于或等于第一定位功能的定位精度,例如,在采用蓝牙定位技术确定手机100与附近设备之间的距离时,蓝牙定位的定位精度在30cm左右,则第一距离可以是50cm。在实际应用中,第一距离的具体大小都可以根据实际需要设定,本实施例对此不做特别限定。
假设笔记本200与手机100之间的距离为10cm,平板300与手机100之间的距离为40cm,大屏设备400与手机100之间的距离为1m,第一距离为50cm,则手机100采用第一定位功能可以确定出笔记本200与手机100之间的距离、平板300与手机100之间的距离,均小于第一距离,大屏设备400与手机100之间的距离大于第一距离,因此可以确定笔记本200和平板300为候选设备。
S140、手机100通知候选设备(笔记本200和平板300)开启第二定位功能,并基于第二定位功能检测与候选设备之间的距离。其中,候选设备与手机100之间的距离小于第一距离。
在确定出候选设备后,手机100可以通知各候选设备开启第二定位功能,以进行更高精度的测距。例如,手机100在确定出笔记本200和平板300为候选设备后,可以通知笔记本200和平板300开启超声波定位功能,然后采用此功能测量手机100与笔记本200、手机100与平板300之间的距离。
具体的测距方法与步骤S130中采用第一定位功能测距的方式类似,手机100和候选设备可以通过第二定位功能收发定位信号,手机100可以根据定位信号的RSSI值来确定手机100与候选设备之间的距离,或者采用TOA/TDOA/AOA/TOF等测距法,确定手机100与候选设备之间的距离。
在一些实施例中,手机100也可以通过定位信号指示候选设备测量自身与手机100之间的距离,然后将测量结果返回给手机100,即通过第二定位功能测量手机100与候选设备之间的距离的过程,也可以在候选设备上执行,手机100可以从各个候选设备获取手机100与各候选设备之间的距离。同样地,通过第一定位功能测量手机100与附近设备之间的距离的过程,也可以在附近设备上执行,手机100也可以从各个附近设备获取手机100与各附近设备之间的距离。
包括手机100和各候选设备在内的各终端设备,在开启第二定位功能的情况下,可以通过定位信号互相发现对方;候选设备在接收到手机100发送的第二定位功能开启通知后,当通过第二定位功能发现自身之外的其他终端设备时,可以在屏幕上显示所发现的终端设备的设备标识,以方便用户了解设备工作状态。例如图8所示的,笔记本200可以通过第二定位功能发现手机100、平板300和大屏设备400,则可以在屏幕上分别显示这三个设备的设备标识。
其中,设备标识可以包括终端设备的设备类型和/或设备名称等,设备标识可以通过图标或卡片等方式展示,图8中以通过图标展示设备类型为例进行示例性说明。如图8中所示,手机100对应图标4001,平板300对应图标4002,大屏设备400对应图标4003。
为了方便用户了解设备间的位置关系,如图8所示,候选设备在展示设备标识对应的图标时,还可以通过图标在屏幕上的位置指示图标对应的终端设备与该候选设备之间的位置关系。例如,图6中的手机100在笔记本200的右侧,平板300在笔记本200的左侧,大屏设备400在笔记本200屏幕的背面;对应的,如图8所示,手机100对应的图标4001可以显示在笔记本200屏幕的右下角或右侧其他位置,平板300对应的图标4002可以显示在笔记本200屏幕的左下角或左侧其他位置,大屏设备400对应的图标4003可以显示在笔记本200屏幕的顶部。
可以理解的是,上述位置关系指示方式只是一种示例,本申请实施例中,也可以采用 其他方式指示终端设备间的位置关系,例如可以在图标下方通过文字说明该图标对应的终端设备与自身之间的位置关系;候选设备上展示的终端设备的定位信息不限于上述设备标识和位置关系,例如,还可以展示发现该终端设备所采用的定位方式(比如蓝牙),在具体实现时,均可以根据需要任意选择,本实施例对此不做特别限定。
在一些实施例中,手机100上也可以展示通过第二定位功能发现的其他终端设备的定位信息,或者,候选设备上可以只展示发送第二定位功能开启通知的终端设备(即手机100)的定位信息。
在一些实施例中,各终端设备也可以在通过第一定位功能发现附近设备时,在屏幕上展示所发现的附近设备的定位信息。
S150、手机100从候选设备中确定目标设备。其中,目标设备与手机100之间的距离小于第二距离。
与步骤S130类似,手机100在采用第二定位功能确定出与候选设备之间的距离后,可以采用距离阈值(此处称为第二距离)从中确定目标设备,其中,第二距离可以大于或等于第二定位功能的定位精度,例如,在采用超声波定位技术确定手机100与候选设备之间的距离时,超声波定位的定位精度在20cm左右,则第二距离可以是25cm。在实际应用中,第二距离的具体大小都可以根据实际需要设定,本实施例对此不做特别限定。
继续以上述举例为例,假设笔记本200与手机100之间的距离为10cm,平板300与手机100之间的距离为40cm,大屏设备400与手机100之间的距离为1m,第一距离为50cm,第二距离为25cm,则手机100采用第一定位功能确定出笔记本200和平板300为候选设备后,可以继续采用第二定位功能确定出笔记本200与手机100之间的距离小于第二距离,平板300与手机100之间的距离大于第二距离,因此可以确定笔记本200为目标设备。
S160、手机100在检测到作用于手机100的倾倒操作后,响应于倾倒操作,向目标设备(笔记本200)分享内容。
为了确定更精准的内容分享对象,手机100在确定目标设备之外,还可以检测用户针对手机100的倾倒操作,在确定出目标设备,并检测到倾倒操作的情况下,可以向目标设备分享内容。
与确定目标设备类似,手机100可以在任意工作状态下检测倾倒操作,也可以在检测到手机100处于非静止状态或移动状态的情况下,检测倾倒操作,以节省电量。
其中,倾倒操作可以是将手机100向任意一侧倾倒,也可以是满足一定要求的倾倒操作,以减少误检测的情况。例如,倾倒操作可以是将屏幕朝上状态的终端设备绕目标旋转轴旋转第一角度,该目标旋转轴可以是沿终端设备的长度方向或宽的轴,具体地,手机100可以在检测到如下过程时认为检测到倾倒操作:
(1)手机100初始处于屏幕朝上状态,即手机100的屏幕法线方向朝上。
图9为本申请实施例提供的终端设备的坐标系示意图,如图9所示,x轴和y轴平行于手机100屏幕所在平面,x轴为手机100的宽度方向,y轴为手机100的长度方向;z轴垂直与手机100屏幕所在屏幕,该z轴即为手机100的屏幕法线方向。
当手机100处于屏幕朝上状态时,手机100屏幕的法线可以与水平面垂直,也可以与水平面之间存在倾角;图10为本申请实施例提供的终端设备的屏幕法线方向的倾角示意图,如图10所示,Z表示垂直方向,X表示水平方向,手机100的屏幕法线方向可以与任 意水平方向之间存在夹角θ,该夹角θ的范围可以是(0°,180°)。
其中,手机100的初始姿态可以是竖屏状态,也可以是横屏状态。
通过设定倾倒操作的设备初始状态,例如上述屏幕朝上状态,可以减少倾倒操作误触发的情况,且终端设备在屏幕朝上状态时,也比较方便用户操作。
(2)手机100在第一时长内绕目标旋转轴旋转第一角度后,静止第二时长。
其中,目标旋转轴可以是手机100的x轴或y轴。如图11中所示的,X轴表示水平方向,Z轴表示垂直方向,假设手机100的y轴垂直于X轴和Z轴,手机100绕y轴旋转,从第一状态S1翻转为第二状态S2,手机100的屏幕法线方向旋转的角度α即为第一角度。
例如图5B中所示的,在手机100处于竖屏状态时,用户手持手机100靠近笔记本200后,可以绕手机100的y轴(即长度方向)旋转手机100,完成倾倒操作。
又例如图12中的(a)和(b)所示的,在手机100处于横屏状态时,用户手持手机100靠近笔记本200后,可以绕手机100的x轴(即宽度方向)旋转手机100,完成倾倒操作。
具体地,第一时长可以是1秒或2秒等较短的时长;第一角度可以选择一个稍大的角度范围(以下称为第一角度范围),以减少误检测的情况,例如第一角度范围可以是[15°,105°],即第一角度的角度下限可以是15°,第一角度的角度上限可以是105°;第二时长与第一时长类似,可以选择一个较短的时长,例如也可以是1秒或2秒等。第一时长、第一角度和第二时长的具体大小都可以根据实际需要选择,本实施例对此不做特别限定。
可以理解的是,在一些实施例中,也可以在检测到手机100绕目标旋转轴旋转第一角度的情况下,认为检测到倾倒操作,以提高检测速度;上述在检测倾倒操作的过程中,考虑第一时长和第二时长,则可以减少倾倒操作误触发的情况,提高检测结果的准确性。
为了进一步提高检测结果的准确性,本实施例中,也可以检测旋转手机100时的角加速度(即旋转角加速度),在手机100满足上述(1)和(2)对应的状态,且旋转角加速度大于或等于第一角加速度的情况下,认为检测到倾倒操作。
在用户执行倾倒操作的过程中,可能存在用户第一次未倾倒成功的情况,例如,手机100满足上述(1)对应的状态,但是只满足(2)对应的部分状态,比如,手机100在第一时长内绕目标旋转轴旋转第一角度后,静止时长未达到第二时长,或者,手机100在第一时长内绕目标旋转轴旋转的角度在第一角度范围外,或者,手机100绕目标旋转轴旋转第一角度的过程中,旋转角加速度小于第一角加速度。在这种情况下,用户可能会再次倾倒手机100,因此,为了更加方便用户使用,手机100可以继续检测手机100的状态,如果在第三时长内检测到手机100继续绕目标旋转轴旋转第二角度后静止第四时长,旋转角加速度大于或等于第二角加速度,则也可以认为检测到倾倒操作。
可以理解的是,上述连续两次旋转手机100的操作中,检测第二次旋转手机100的操作(简称为第二操作)所考虑的旋转参数,可以根据检测第一次旋转手机100的操作(简称为第一操作)所考虑的旋转参数确定。例如,检测第一操作时所考虑的旋转参数包括静止时长(即第一时长),对应的,检测第二操作时则也可以考虑静止时长(即第四时长);检测第一操作时所考虑的旋转参数不包括旋转角加速度,对应的,检测第二操作时则可以不考虑旋转角加速度。
另外,第二操作在倾倒成功时所需满足的条件(此处称为第二条件),也可以根据第 一操作在倾倒成功时所需满足的条件(此处称为第一条件)确定。具体地,第三时长可以小于第一时长,第四时长可以小于第二时长;第二角度的角度下限可以小于或等于第一角度的角度下限,第二角度的角度上限可以小于或等于第一角度的角度上限,例如第二角度的角度范围(简称为第二角度范围)可以在[15°,90°]范围内;第二角加速度可以与第一角加速度相同,也可以不同。
手机100在检测到目标设备(例如笔记本200)和作用于手机100的倾倒操作后,就可以向目标设备分享内容。
具体地,手机100向笔记本200分享的内容可以是文件(图片、音视频、文档等)、APP运行信息和投屏内容等。
例如图5A~图5C中所示的,用户将手机100靠近笔记本200,倾倒手机100后,可以将手机100的屏幕内容投屏到笔记本200上。
其中,笔记本200在显示投屏窗口时,可以默认将投屏窗口显示在预设位置;也可以采用与图8中的图标显示方式类似的方式,根据手机100与笔记本200之间的位置关系确定投屏窗口的显示位置,将手机100对应的投屏窗口显示在屏幕上靠近手机100的一侧,以提高用户体验。比如图5A~图5C中,手机100在笔记本200的右侧,倾倒手机100后,笔记本200可以在屏幕右侧显示手机100对应的投屏窗口;图13A~图13C中,如果手机100在笔记本200的左侧,倾倒手机100后,笔记本200则可以在屏幕左侧显示手机100对应的投屏窗口。其中,手机100与笔记本200之间的位置关系可以是笔记本200基于第一定位功能或第二定位功能确定,也可以是手机100基于第一定位功能或第二定位功能确定后,在向笔记本200分享内容时发送给笔记本200。笔记本200在显示出投屏窗口后,用户也可以拖动投屏窗口,改变投屏窗口在屏幕中的位置。
又例如图14A和图14B所示的,用户在“图库”界面50中选择待分享的图片S对应的缩略图5001后,将手机100靠近笔记本200,并倾倒手机100,可以向笔记本200分享该图片;参见图14C,笔记本200上可以弹出询问用户是否接收的对话框51,用户可以点击对话框51中的接收选项5101以接收图片S,或者点击拒绝选项5102以拒绝接收图片S,其中,“aaa”为手机100的设备名称。
又例如图15A和图15B所示的,用户在“华为视频”APP的视频展示界面60中播放视频6001,将手机100靠近笔记本200,并倾倒手机100后,可以向笔记本200分享“华为视频”APP的运行信息;参见图15C,笔记本200上可以打开“华为视频”APP续播视频6001。
本实施例中,手机100附近的目标设备可能包括多个,考虑到该情况,手机100在分享内容时,可以检测倾倒方向,在检测到目标设备和作用于手机100的倾倒操作,且该倾倒操作的倾倒方向朝向该目标设备时,可以向该目标设备分享内容。
例如,在图6所示的应用场景中,如果用户手持手机100靠近笔记本200后,朝笔记本200倾倒手机100,则手机100可以向笔记本200分享内容;如果用户手持手机100靠近笔记本200后,朝大屏设备400倾倒手机100,则手机100不向笔记本200分享内容。
又例如,在图6所示的应用场景中,假设手机100和笔记本200均位于平板300的右侧,手机100靠近笔记本200后,与笔记本200和平板300之间的距离均在第二距离内,此种情况下,如果用户朝笔记本200倾倒手机100,则手机100可以向笔记本200分享内 容;如果用户朝平板300倾倒手机100,则手机100可以向平板300分享内容。
其中,倾倒操作的倾倒方向可以根据倾倒过程中手机100的屏幕法线方向的变化过程确定,例如,当手机100朝向笔记本200倾倒时,手机100的屏幕法线方向朝向笔记本200旋转。
在一些实施例中,手机100可以在倾倒操作朝向至少一个目标设备的情况下,向各个目标设备或者倾倒操作所朝向的目标设备分享内容,以减少误分享的情况。
在一些实施例中,当目标设备只有一个时,手机100可以不考虑倾倒方向;在目标设备包括多个的情况下,考虑倾倒方向。即,在检测到的目标设备包括一个的情况下,不论倾倒操作的倾倒方向朝向哪里,手机100都可以向该目标设备分享内容;在检测到的目标设备包括多个的情况下,手机100向倾倒操作所朝向的目标设备分享内容。
在另一些实施例中,当目标设备包括多个时,手机100也可以在检测到倾倒操作的情况下,不考虑倾倒方向,同时向多个目标设备分享内容,或者,向距离自身最近的目标设备分享内容。
手机100在向笔记本200传输内容前,可以通过前述的蓝牙模块、Wi-Fi模块、毫米波模块或UWB模块等近距离通信模块建立无线通信连接,在建立连接后进行内容传输。
其中,手机100可以在确定出笔记本200为目标设备后,与笔记本200建立无线通信连接;也可以在检测到倾倒操作后,与笔记本200建立无线通信连接。可以理解的是,若手机100在确定出目标设备前,已与笔记本200建立了连接,则可以在分享内容时通过该连接向笔记本200传输内容。
考虑到安全性,手机100和笔记本200可以在传输内容前进行安全认证,例如,笔记本200在与手机100建立无线通信连接时,可以先判断手机100是否是信任设备或与笔记本200在同一局域网内,若手机100为信任设备或与笔记本200在同一局域网内,则可以与手机100建立无线通信连接进行内容传输,否则可以拒绝与手机100建立无线通信连接。
具体地,如果手机100与笔记本200登录同一账号,笔记本200可以认为手机100为其信任设备;如果手机100与笔记本200登录不同账号,但是手机100登录的账号为笔记本200所登录账号的信任账号,则笔记本200也可以认为手机100为其信任设备;另外,如果手机100的设备标识是笔记本200的信任标识,则笔记本200也可以认为手机100为其信任设备。
其中,用户可以预先在笔记本200上添加手机100所登录的账号为信任账号,或者,在手机100请求与笔记本200建立无线通信连接时,笔记本200上可以进行弹框认证,比如图16中的(a)所示的,笔记本200可以在弹出的对话框70中显示提示信息:“aaa请求连接本机,是否允许”,并显示“否”按钮71和“是”按钮72,用户可以通过点击“否”按钮71拒绝连接手机100,从而拒绝将手机100登录的账号添加为信任账号;用户可以通过点击“是”按钮72允许手机100连接笔记本200,并将手机100登录的账号添加为信任账号。
信任账号可以具有信任有效期,该信任有效期可以是预设的,例如,笔记本200在将手机100登录的账号添加为信任账号时,可以将信任账号的信任有效期设置为一周。该信任有效期也可以是用户设置的,例如:笔记本200可以在用户点击“是”按钮72后,进一步显示信任有效期设置界面,用户可以通过该界面进一步设置信任账号的信任有效期, 示例性地,如图16中的(b)所示,用户可以通过单选控件73将信任有效期设置为始终信任、临时信任(例如可以是一周或其他时长)或仅本次信任(两设备断开连接后或断开连接一段时间后信任有效期到期),然后点击“确定”按钮74完成信任有效期设置。当手机100所登录账号的信任有效期到期后,该账号则不再为信任账号,用户也可以重新添加该账号为信任账号。
可以理解的是,信任有效期设置方式不限于上述图16所示的方式,也可以通过其他方式实现,比如,笔记本200也可以在系统设置中提供信任设备设置功能,用户也可以通过该功能进行信任设备的相关设置。
本申请实施例中所述的账号可以是云服务提供商为用户提供的账号,如华为账号等,还可以为用于登录应用程序的账号。
信任标识的设置方式与信任账号的设置方式类似,此处不再赘述。
上述图7示出了用户拿起手机100向笔记本200分享内容的一种可能的实现过程,下面介绍用户拿起手机100向笔记本200分享内容的另一种可能的实现过程,如图17所示,该过程可以包括如下步骤:
S210、手机100检测到作用于手机100的倾倒操作。
S220、手机100响应于倾倒操作,基于第一定位功能检测与附近设备(笔记本200、平板300和大屏设备400)之间的距离。
S230、手机100从附近设备中确定候选设备。其中,候选设备与手机100之间的距离小于第一距离。
S240、手机100通知候选设备(笔记本200和平板300)开启第二定位功能,并基于第二定位功能检测与候选设备之间的距离。
S250、手机100从候选设备中确定目标设备。其中,目标设备与手机100之间的距离小于第二距离。
S260、手机100向目标设备(笔记本200)分享内容。
图17所示的内容分享过程与图7所示的内容分享过程的主要区别之处在于,在图7所示的内容分享过程中,手机100检测目标设备的触发条件可以是检测到自身处于非静止状态,手机100检测目标设备的过程与手机100检测倾倒操作的过程之间没有严格的时序执行关系;在图17所示的内容分享过程中,手机100检测目标设备的触发条件是检测到倾倒操作,即手机100检测目标设备的过程在手机100检测到倾倒操作之后执行。图17所示的内容分享过程中的其他处理过程与图7所示的内容分享过程中的对应处理过程类似,具体描述可以参考图7所示的实施例,此处不再赘述。
其中,图7所示的内容分享过程中,手机100检测目标设备的过程可以与手机100检测倾倒操作的过程并行执行,因此,手机100可以较早地检测到目标设备,从而可以在检测到倾倒操作的情况下,尽早地向目标设备分享内容,这样可以提高内容分享速度;图17所示的内容分享过程中,在手机100检测到倾倒操作的情况下,再进行检测目标设备的过程,这样,当用户将手机100靠近了目标设备,但是没有分享内容的意图而不执行倾倒操作时,手机100就不会进行目标设备的检测过程,从而可以节省处理资源,降低能耗。在实际应用中,可以根据需要选择上述任一种内容分享方案,本实施例对此不做特别限定。
本领域技术人员可以理解,以上实施例是示例性的,并非用于限定本申请。在可能的 情况下,以上步骤中的一个或者几个步骤的执行顺序可以进行调整,也可以进行选择性组合,得到一个或多个其他实施例。本领域技术人员可以根据需要从上述步骤中任意进行选择组合,凡是未脱离本申请方案实质的,都落入本申请的保护范围。
本实施例提供的内容分享方法,终端设备可以在检测到目标设备和作用于该终端设备的倾倒操作时,向目标设备分享内容,这样用户可以通过将终端设备靠近附近设备并倾倒终端设备的方式,快速实现两设备之间的内容分享,因此,该方法可以简化内容分享功能的操作过程,提高用户使用的便利性,而且,该方法不依赖于NFC芯片,可以使用成本较低、功能性较强的其他定位功能检测目标设备。
基于同一构思,作为对上述方法的实现,本申请实施例提供了一种内容分享装置,该装置实施例与前述方法实施例对应,为便于阅读,本装置实施例不再对前述方法实施例中的细节内容进行逐一赘述,但应当明确,本实施例中的装置能够对应实现前述方法实施例中的全部内容。
图18为本申请实施例提供的内容分享装置的结构示意图,如图18所示,本实施例提供的装置包括:
显示模块210、输入模块220、处理模块230和通信模块240。
其中,显示模块210用于支持终端设备执行上述实施例中的界面显示操作和/或用于本文所描述的技术的其它过程。显示模块可以是触摸屏或其他硬件或硬件与软件的综合体。
输入模块220用于接收用户在终端设备的显示界面上的输入,如触摸输入、语音输入、手势输入等,输入模块用于支持终端设备执行上述实施例中接收用户操作的步骤和/或用于本文所描述的技术的其它过程。输入模块可以是触摸屏或其他硬件或硬件与软件的综合体。
处理模块230用于支持终端设备执行上述实施例中各方法步骤中的处理操作和/或用于本文所描述的技术的其它过程。
通信模块240用于支持终端设备执行上述实施例中与终端设备和其他设备之间的通信过程相关的操作和/或用于本文所描述的技术的其它过程。
本实施例提供的装置可以执行上述方法实施例,其实现原理与技术效果类似,此处不再赘述。
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,仅以上述各功能单元、模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能单元、模块完成,即将所述装置的内部结构划分成不同的功能单元或模块,以完成以上描述的全部或者部分功能。实施例中的各功能单元、模块可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中,上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。另外,各功能单元、模块的具体名称也只是为了便于相互区分,并不用于限制本申请的保护范围。上述系统中单元、模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
基于同一构思,本申请实施例还提供一种终端设备,请参阅图19,图19为本申请实施例提供的终端设备的结构示意图。
终端设备可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线 (universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。
可以理解的是,本申请实施例示意的结构并不构成对终端设备的具体限定。在本申请另一些实施例中,终端设备可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者进行不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(sraphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。
其中,控制器可以是终端设备的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。
在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。
I2C接口是一种双向同步串行总线,包括一根串行数据线(serial data line,SDA)和一根串行时钟线(serail clock line,SCL)。I2S接口可以用于音频通信。PCM接口也可以用于音频通信,将模拟信号抽样,量化和编码。UART接口是一种通用串行数据总线,用于异步通信;该总线可以为双向通信总线,它将要传输的数据在串行通信与并行通信之间转换。MIPI接口可以被用于连接处理器110与显示屏194,摄像头193等外围器件;MIPI接口包括摄像头串行接口(camera serial interface,CSI),显示屏串行接口(display serial interface,DSI)等。GPIO接口可以通过软件配置,GPIO接口可以被配置为控制信号,也可被配置为数据信号。USB接口130是符合USB标准规范的接口,具体可以是Mini USB 接口,Micro USB接口,USB Type C接口等。USB接口130可以用于连接充电器为终端设备充电,也可以用于终端设备与外围设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。该接口还可以用于连接其他终端设备,例如AR设备等。
可以理解的是,本申请实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对终端设备的结构限定。在本申请另一些实施例中,终端设备也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。
充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口130接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块140可以通过终端设备的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为终端设备供电。
电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,外部存储器,显示屏194,摄像头193,和无线通信模块160等供电。电源管理模块141还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块141也可以设置于处理器110中。在另一些实施例中,电源管理模块141和充电管理模块140也可以设置于同一个器件中。
终端设备的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。
天线1和天线2用于发射和接收电磁波信号。终端设备中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。
移动通信模块150可以提供应用在终端设备上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器170A,受话器170B等)输出声音信号,或通过显示屏194显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块150或其他功能模块设置在同一个器件中。
无线通信模块160可以提供应用在终端设备上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT), 全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近场通信技术(near field communication,NFC),红外技术(infrared,IR),毫米波(millimeter wave,mmWave)技术,超宽带(ultra wide band,UWB)技术等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。
在一些实施例中,终端设备的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得终端设备可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(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,和/或IR技术等。所述GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(global navigation satellite system,GNSS),北斗卫星导航系统(beidou navigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellite system,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。
终端设备通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。
显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Mini LED,Micro LED,量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,终端设备可以包括1个或N个显示屏194,N为大于1的正整数。
终端设备可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。
ISP用于处理摄像头193反馈的数据。摄像头193用于捕获静态图像或视频。数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。视频编解码器用于对数字视频压缩或解压缩。
NPU为神经网络(neural-network,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现终端设备的智能认知等应用,例如:图像识别,人脸识别,语音识别,文本理解等。
内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器110通过运行存储在内部存储器121的指令,从而执行终端设备的各种功能应用以及数据处理。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存 储操作系统,以及至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储终端设备使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。
外部存储器接口120可以用于连接外部存储器,例如Micro SD卡,实现扩展终端设备的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。
终端设备可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。在一些实施例中,音频模块170可以设置于处理器110中,或将音频模块170的部分功能模块设置于处理器110中。扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。耳机接口170D用于连接有线耳机。耳机接口170D可以是USB接口130,也可以是3.5mm的开放移动终端设备平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口。
终端设备也可以通过扬声器170A发送超声波,通过麦克风170C接收超声波,实现超声波技术。
按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。终端设备可以接收按键输入,产生与终端设备的用户设置以及功能控制有关的键信号输入。马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。SIM卡接口195用于连接SIM卡。SIM卡可以通过插入SIM卡接口195,或从SIM卡接口195拔出,实现和终端设备的接触和分离。终端设备可以支持1个或N个SIM卡接口,N为大于1的正整数。SIM卡接口195可以支持Nano SIM卡,Micro SIM卡,SIM卡等。
本实施例提供的终端设备可以执行上述方法实施例,其实现原理与技术效果类似,此处不再赘述。
本申请实施例还提供一种计算机可读存储介质,其上存储有计算机程序,计算机程序被处理器执行时实现上述方法实施例所述的方法。
本申请实施例还提供一种计算机程序产品,当计算机程序产品在终端设备上运行时,使得终端设备执行时实现上述方法实施例所述的方法。
本申请实施例还提供一种芯片系统,包括处理器,所述处理器与存储器耦合,所述处理器执行存储器中存储的计算机程序,以实现上述方法实施例所述的方法。其中,所述芯片系统可以为单个芯片,或者多个芯片组成的芯片模组。
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产 品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者通过所述计算机可读存储介质进行传输。所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线)或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质(例如软盘、硬盘或磁带)、光介质(例如DVD)、或者半导体介质(例如固态硬盘(Solid State Disk,SSD))等。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,该流程可以由计算机程序来指令相关的硬件完成,该程序可存储于计算机可读取存储介质中,该程序在执行时,可包括如上述各方法实施例的流程。而前述的存储介质可以包括:ROM或随机存储记忆体RAM、磁碟或者光盘等各种可存储程序代码的介质。
在本申请中出现的对步骤进行的命名或者编号,并不意味着必须按照命名或者编号所指示的时间/逻辑先后顺序执行方法流程中的步骤,已经命名或者编号的流程步骤可以根据要实现的技术目的变更执行次序,只要能达到相同或者相类似的技术效果即可。
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述或记载的部分,可以参见其它实施例的相关描述。
在本申请所提供的实施例中,应该理解到,所揭露的装置/设备和方法,可以通过其它的方式实现。例如,以上所描述的装置/设备实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通讯连接可以是通过一些接口,装置或单元的间接耦合或通讯连接,可以是电性,机械或其它的形式。
应当理解,在本申请说明书和所附权利要求书的描述中,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或模块的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或模块,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或模块。
在本申请的描述中,除非另有说明,“/”表示前后关联的对象是一种“或”的关系,例如,A/B可以表示A或B;本申请中的“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况,其中A,B可以是单数或者复数。
并且,在本申请的描述中,除非另有说明,“多个”是指两个或多于两个。“以下至少一项”或其类似表达,是指的这些项中的任意组合,包括单项或复数项的任意组合。例如,a,b,或c中的至少一项,可以表示:a,b,c,a-b,a-c,b-c,或a-b-c,其中a,b,c可以是单个,也可以是多个。
如在本申请说明书和所附权利要求书中所使用的那样,术语“如果”可以依据上下文被解释为“当...时”或“一旦”或“响应于确定”或“响应于检测到”。类似地,短语“如 果确定”或“如果检测到[所描述条件或事件]”可以依据上下文被解释为意指“一旦确定”或“响应于确定”或“一旦检测到[所描述条件或事件]”或“响应于检测到[所描述条件或事件]”。
另外,在本申请说明书和所附权利要求书的描述中,术语“第一”、“第二”、“第三”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的实施例能够以除了在这里图示或描述的内容以外的顺序实施。
在本申请说明书中描述的参考“一个实施例”或“一些实施例”等意味着在本申请的一个或多个实施例中包括结合该实施例描述的特定特征、结构或特点。由此,在本说明书中的不同之处出现的语句“在一个实施例中”、“在一些实施例中”、“在其他一些实施例中”、“在另外一些实施例中”等不是必然都参考相同的实施例,而是意味着“一个或多个但不是所有的实施例”,除非是以其他方式另外特别强调。
最后应说明的是:以上各实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述各实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的范围。

Claims (24)

  1. 一种内容分享方法,应用于终端设备,其特征在于,包括:
    检测目标设备和作用于所述终端设备的倾倒操作,所述目标设备与所述终端设备之间的距离小于或等于目标距离;
    在检测到所述目标设备和所述倾倒操作的情况下,响应于所述倾倒操作,向所述目标设备分享内容。
  2. 根据权利要求1所述的方法,其特征在于,在所述倾倒操作的倾倒方向朝向所述目标设备的情况下,响应于所述倾倒操作,向所述目标设备分享内容。
  3. 根据权利要求1或2所述的方法,其特征在于,所述检测目标设备,包括:
    基于第一定位功能确定至少一个候选设备,所述至少一个候选设备与所述终端设备之间的距离小于第一距离,所述第一距离大于所述目标距离;
    通知所述至少一个候选设备开启第二定位功能;
    基于所述第二定位功能从所述至少一个候选设备中确定所述目标设备;
    其中,所述第一定位功能的定位精度小于所述第二定位功能的定位精度,或者,所述第一定位功能的功耗大于所述第二定位功能的功耗。
  4. 根据权利要求3所述的方法,其特征在于:
    所述第一定位功能包括:蓝牙定位功能和Wi-Fi定位功能中的至少一种;
    所述第二定位功能包括:超声波定位功能、毫米波定位功能和超宽带定位功能中的至少一种。
  5. 根据权利要求1-4任一项所述的方法,其特征在于,检测所述倾倒操作,包括:
    在检测到作用于所述终端设备的第一操作满足第一条件的情况下,确定检测到所述倾倒操作;其中,所述第一操作为绕目标旋转轴旋转所述终端设备的操作,所述目标旋转轴为沿所述终端设备的长度方向或宽度方向的轴;所述第一条件包括:所述终端设备在第一时长内旋转第一角度,所述第一角度在第一角度范围内。
  6. 根据权利要求5所述的方法,其特征在于,执行所述第一操作时,所述终端设备处于屏幕朝上状态。
  7. 根据权利要求6所述的方法,其特征在于,所述终端设备处于屏幕朝上状态时,所述终端设备的屏幕法线方向与任意水平方向之间的夹角大于0度,小于180度。
  8. 根据权利要求5-7任一项所述的方法,其特征在于,所述第一角度范围为[15°,105°];所述第一角度在第一角度范围内为:15°≤第一角度≤105°。
  9. 根据权利要求5-8任一项所述的方法,其特征在于,所述第一条件还包括:
    所述终端设备在第一时长内旋转第一角度后,静止第二时长;和/或
    所述终端设备旋转所述第一角度的过程中,旋转角加速度大于或等于第一角加速度。
  10. 根据权利要求5-9任一项所述的方法,其特征在于,所述方法还包括:
    在检测到所述第一操作不满足所述第一条件,且在所述第一操作后继续执行的第二操作满足第二条件的情况下,确定检测到所述倾倒操作;
    其中,所述第二操作为绕所述目标旋转轴旋转所述终端设备的操作,所述第二操作的旋转方向与所述第一操作的旋转方向相同;所述第二条件包括:所述终端设备在第三时长内旋转第二角度,所述第二角度在第二角度范围内。
  11. 根据权利要求10所述的方法,其特征在于,所述第二条件还包括下列中的至少一种:
    所述终端设备在所述第三时长内旋转第二角度后,静止第四时长;
    所述第三时长小于所述第一时长;
    所述第二角度范围的角度下限小于所述第一角度范围的角度下限;
    所述第二角度范围的角度上限小于所述第一角度范围的角度上限。
  12. 根据权利要求1-11任一项所述的方法,其特征在于,在检测到所述终端设备处于非静止状态的情况下,启动检测所述目标设备的操作。
  13. 根据权利要求12所述的方法,其特征在于,在检测到所述终端设备处于移动状态的情况下,启动检测所述目标设备的操作。
  14. 根据权利要求1-11任一项所述的方法,其特征在于,在检测到所述倾倒操作的情况下,启动检测所述目标设备的操作。
  15. 根据权利要求1-14任一项所述的方法,其特征在于,在检测到多个所述目标设备的情况下,响应于所述倾倒操作,向所述倾倒操作的倾倒方向所朝向的目标设备分享内容。
  16. 根据权利要求1-14任一项所述的方法,其特征在于,在检测到多个所述目标设备的情况下,响应于所述倾倒操作,向每个所述目标设备分享内容。
  17. 根据权利要求1-16任一项所述的方法,其特征在于,向所述目标设备分享的内容包括下列中的至少一种:文件、投屏内容和应用程序运行信息。
  18. 根据权利要求1-17任一项所述的方法,其特征在于,所述方法还包括:响应于所述倾倒操作,向所述目标设备发送所述终端设备与所述目标设备之间的位置关系,所述位置关系用于所述目标设备在屏幕上靠近所述终端设备的一侧显示所述终端设备分享的内容。
  19. 根据权利要求1-18任一项所述的方法,其特征在于,所述目标设备与所述终端设备在同一局域网内,和/或,所述终端设备为所述目标设备的信任设备;
    其中,所述目标设备的信任设备与所述目标设备登录同一账号,或,所述目标设备的信任设备登录的账号是所述目标设备所登录账号的信任账号,或,所述目标设备的信任设备的设备标识是所述目标设备的信任标识。
  20. 根据权利要求19所述的方法,其特征在于,所述信任设备具有信任有效期,所述信任有效期是所述目标设备根据用户的操作设置的。
  21. 一种终端设备,其特征在于,包括:存储器和处理器,所述存储器用于存储计算机程序;所述处理器用于在调用所述计算机程序时,使得所述终端设备执行如权利要求1-20任一项所述的方法。
  22. 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求1-20任一项所述的方法。
  23. 一种计算机程序产品,其特征在于,当计算机程序产品在电子设备上运行时,使得电子设备执行如权利要求1-20任一项所述的方法。
  24. 一种芯片系统,其特征在于,所述芯片系统包括处理器,所述处理器与存储器耦合,所述处理器执行存储器中存储的计算机程序,以实现如权利要求1-20任一项所述的方法。
PCT/CN2022/138793 2021-12-24 2022-12-13 内容分享方法和终端设备 WO2023116511A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111601985.X 2021-12-24
CN202111601985.XA CN116346981A (zh) 2021-12-24 2021-12-24 内容分享方法和终端设备

Publications (1)

Publication Number Publication Date
WO2023116511A1 true WO2023116511A1 (zh) 2023-06-29

Family

ID=86890192

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/138793 WO2023116511A1 (zh) 2021-12-24 2022-12-13 内容分享方法和终端设备

Country Status (2)

Country Link
CN (1) CN116346981A (zh)
WO (1) WO2023116511A1 (zh)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110081923A1 (en) * 2009-10-02 2011-04-07 Babak Forutanpour Device movement user interface gestures for file sharing functionality
US20150371011A1 (en) * 2014-06-23 2015-12-24 Ricoh Company, Ltd. Terminal device and information processing system
CN106936884A (zh) * 2015-12-31 2017-07-07 阿里巴巴集团控股有限公司 跨移动终端的内容分享方法、装置和系统
WO2017171479A1 (ko) * 2016-04-01 2017-10-05 서용창 기울기에 기초한 컨텐츠 공유 방법 및 장치
AU2020100721A4 (en) * 2019-05-06 2020-06-18 Apple Inc. User interfaces for sharing content with other electronic devices

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110081923A1 (en) * 2009-10-02 2011-04-07 Babak Forutanpour Device movement user interface gestures for file sharing functionality
US20150371011A1 (en) * 2014-06-23 2015-12-24 Ricoh Company, Ltd. Terminal device and information processing system
CN106936884A (zh) * 2015-12-31 2017-07-07 阿里巴巴集团控股有限公司 跨移动终端的内容分享方法、装置和系统
WO2017171479A1 (ko) * 2016-04-01 2017-10-05 서용창 기울기에 기초한 컨텐츠 공유 방법 및 장치
AU2020100721A4 (en) * 2019-05-06 2020-06-18 Apple Inc. User interfaces for sharing content with other electronic devices

Also Published As

Publication number Publication date
CN116346981A (zh) 2023-06-27

Similar Documents

Publication Publication Date Title
CN110622123A (zh) 一种显示方法及装置
WO2022042770A1 (zh) 控制通信服务状态的方法、终端设备和可读存储介质
WO2021197071A1 (zh) 无线通信系统及方法
CN112130788A (zh) 一种内容分享方法及其装置
WO2022068513A1 (zh) 无线通信方法和终端设备
EP4171135A1 (en) Device control method, and related apparatus
WO2022028537A1 (zh) 一种设备识别方法及相关装置
EP4250075A1 (en) Content sharing method, electronic device, and storage medium
CN113973398B (zh) 无线网络连接方法、电子设备及芯片系统
CN113645571A (zh) 数据传输方法及电子设备
WO2023273530A1 (zh) 手写笔检测方法、装置及终端设备
WO2022048453A1 (zh) 解锁方法及电子设备
JP7204902B2 (ja) ファイル転送方法および電子デバイス
WO2021147419A1 (zh) 一种数据传输方法、电子设备及存储介质
WO2023179751A1 (zh) 一种物体寻找方法、系统以及电子设备
US20230087282A1 (en) Dual wi-fi connection method and electronic device
WO2023116511A1 (zh) 内容分享方法和终端设备
WO2022062902A1 (zh) 一种文件传输方法和电子设备
WO2021254294A1 (zh) 一种切换音频输出通道的方法、装置和电子设备
WO2022037725A1 (zh) 一种系统服务恢复方法、装置和电子设备
WO2022068670A1 (zh) 设备间触碰建立无线连接的方法、电子设备及芯片
WO2021218544A1 (zh) 一种提供无线上网的系统、方法及电子设备
CN114489876A (zh) 一种文本输入的方法、电子设备和系统
WO2022228065A1 (zh) 功能跳转方法及电子设备
WO2022268009A1 (zh) 一种屏幕共享的方法及相关设备

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22909825

Country of ref document: EP

Kind code of ref document: A1