CN111399792A - Content sharing method and electronic equipment - Google Patents

Content sharing method and electronic equipment Download PDF

Info

Publication number
CN111399792A
CN111399792A CN202010202014.7A CN202010202014A CN111399792A CN 111399792 A CN111399792 A CN 111399792A CN 202010202014 A CN202010202014 A CN 202010202014A CN 111399792 A CN111399792 A CN 111399792A
Authority
CN
China
Prior art keywords
electronic device
uwb
uwb communication
communication module
determining
Prior art date
Legal status (The legal status 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 status listed.)
Granted
Application number
CN202010202014.7A
Other languages
Chinese (zh)
Other versions
CN111399792B (en
Inventor
王智鹏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202010202014.7A priority Critical patent/CN111399792B/en
Publication of CN111399792A publication Critical patent/CN111399792A/en
Priority to PCT/CN2021/081109 priority patent/WO2021185254A1/en
Application granted granted Critical
Publication of CN111399792B publication Critical patent/CN111399792B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/1454Digital output to display device ; Cooperation and interconnection of the display device with other functional units involving copying of the display data of a local workstation or window to a remote workstation or window so that an actual copy of the data is displayed simultaneously on two or more displays, e.g. teledisplay
    • 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
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the invention provides a content sharing method and electronic equipment, relates to the technical field of communication, and aims to solve the problem that the content sharing process between the electronic equipment is complex. The method comprises the following steps: determining a play source device; determining second electronic equipment located in a target direction, wherein the target direction is determined according to the position of the first electronic equipment; and controlling the playing source equipment to share the target content, wherein the target content is the content currently output by the playing source equipment. The method is applied to a scene that one electronic device shares content with other electronic devices.

Description

Content sharing method and electronic equipment
Technical Field
The embodiment of the invention relates to the technical field of communication, in particular to a content sharing method and electronic equipment.
Background
With the development of communication technology, the functions of electronic devices are more and more abundant. For example, one electronic device may share the content played by the electronic device with other electronic devices for playing.
Specifically, when a user needs to share content played by one electronic device (hereinafter, referred to as electronic device 1) to another electronic device (hereinafter, referred to as electronic device 2) for playing, the user may first trigger the electronic device 1 to establish a communication connection with the electronic device 2; the user may then enter an input on electronic device 1 to trigger electronic device 1 to share the content it plays to electronic device 2. In this way, since the electronic device 1 needs to share the content played by the user on the electronic device 1 to the electronic device 2 after the user operates the electronic device 1, the process of sharing the content between the electronic devices is complicated.
Disclosure of Invention
The embodiment of the invention provides a content sharing method and electronic equipment, and aims to solve the problem that the content sharing process between the electronic equipment is complex.
In order to solve the technical problem, the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides a content sharing method, which may be applied to a first electronic device, where the method includes determining a playback source device; determining second electronic equipment located in the target direction, wherein the target direction is determined according to the position of the first electronic equipment; and controlling the playing source equipment to share the target content, wherein the target content is the content currently output by the playing source equipment.
In a second aspect, an embodiment of the present invention provides an electronic device, which may be a first electronic device, and may include a determination module and a control module; the determining module is used for determining the playing source equipment; determining second electronic equipment located in the target direction, wherein the target direction is determined according to the first electronic equipment; and the control module is used for controlling the playing source equipment determined by the determination module to share the target content to the second electronic equipment determined by the determination module, wherein the target content is the content currently output by the playing source equipment.
In a third aspect, an embodiment of the present invention provides an electronic device, which includes a processor, a memory, and a computer program stored in the memory and executable on the processor, and when the computer program is executed by the processor, the steps of the content sharing method in the first aspect may be implemented.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, can implement the steps of the content sharing method of the first aspect.
In the embodiment of the present invention, the first electronic device may determine a playback source device; and determining a second electronic device located in the target direction (determined according to the orientation of the first electronic device); and controlling the play source device to share the content currently output by the play source device to the second electronic device. According to the scheme, after the first electronic device determines the playing source device, if the first electronic device determines that the second electronic device exists in the target direction, the first electronic device can automatically control the playing source device to share the content output by the playing source device to the second electronic device, so that the second electronic device can output the content output by the playing source device in real time, and the sharing is not required to be triggered manually by a user, so that the process of sharing the content between the electronic devices can be simplified, and the user experience is improved.
Drawings
Fig. 1 is a schematic diagram of a possible structure of a UWB communication system according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a content sharing method according to an embodiment of the present invention;
FIG. 3 is a schematic diagram illustrating a position relationship between electronic devices according to an embodiment of the present invention;
FIG. 4 is a second schematic diagram illustrating a positional relationship between electronic devices according to an embodiment of the present invention;
FIG. 5 is a third schematic diagram illustrating a positional relationship between electronic devices according to an embodiment of the present invention;
fig. 6 is a second schematic diagram illustrating a content sharing method according to an embodiment of the present invention;
FIG. 7 is a schematic diagram illustrating a positional relationship of at least two UWB communication modules according to an embodiment of the invention;
FIG. 8 is a second schematic diagram illustrating a positional relationship between at least two UWB communication modules according to the embodiment of the invention;
fig. 9 is a third schematic diagram illustrating a positional relationship between at least two UWB communication modules according to an embodiment of the present invention;
FIG. 10 is a fourth schematic diagram illustrating the position relationship of at least two UWB communication modules according to the embodiment of the invention;
fig. 11 is a schematic structural diagram of an electronic device according to an embodiment of the present invention;
fig. 12 is a hardware schematic diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The term "and/or" herein is an association relationship describing an associated object, meaning that three relationships may exist, e.g., a and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone. The symbol "/" herein denotes a relationship in which the associated object is or, for example, a/B denotes a or B.
The terms "first" and "second," etc. herein are used to distinguish between different objects and are not used to describe a particular order of objects. For example, the first electronic device and the second electronic device, etc. are for distinguishing different electronic devices, and are not for describing a specific order of the electronic devices.
In the embodiments of the present invention, words such as "exemplary" or "for example" are used to mean serving as examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "e.g.," an embodiment of the present invention is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present concepts related in a concrete fashion.
In the description of the embodiments of the present invention, unless otherwise specified, "a plurality" means two or more, for example, a plurality of elements means two or more elements, and the like.
Some of the nouns or terms referred to in the claims and the specification of the present application will be explained first.
Ultra Wide Band (UWB) communication module: the communication module adopts nanosecond non-sine wave narrow pulses for information transmission. Because the UWB communication module uses ultra-wide baseband pulses (i.e., non-sinusoidal narrow pulses of nanometer scale) with extremely wide frequency spectrum for information transmission, the UWB communication module may also be referred to as a baseband communication module or a wireless carrier communication module. The UWB communication module may be used not only for information transmission but also for distance measurement and precise positioning.
UWB positioning system: the UWB communication system is constituted by a plurality of UWB communication modules, for example, 4 UWB communication modules; UWB coordinate information for each of these UWB communication modules has been determined. The UWB positioning system can accurately position an object (which may be any possible object such as an object, an animal, or a person) within a positioning range of the UWB positioning system and provided with the UWB communication module.
For example, in the embodiment of the present invention, the UWB positioning system may position at least two UWB communication modules in the first electronic device, and thus the first electronic device may acquire UWB coordinate information of the at least two UWB communication modules based on the UWB positioning system.
The embodiment of the invention provides a content sharing method and electronic equipment, wherein the method can be applied to the electronic equipment, and first electronic equipment can determine playing source equipment; and determining a second electronic device located in the target direction (determined according to the orientation of the first electronic device); and controlling the play source device to share the content currently output by the play source device to the second electronic device. According to the scheme, after the first electronic device determines the playing source device, if the first electronic device determines that the second electronic device exists in the target direction, the first electronic device can automatically control the playing source device to share the content output by the playing source device to the second electronic device, so that the second electronic device can output the content output by the playing source device in real time, and the sharing is not required to be triggered manually by a user, so that the process of sharing the content between the electronic devices can be simplified, and the user experience is improved.
The communication system related to the embodiment of the invention is mainly a communication system for communication between electronic equipment. The communication system can comprise at least two electronic devices, and the at least two electronic devices can perform information interaction through a wireless network.
Optionally, in the embodiment of the present invention, the Wireless network may be any possible Wireless network, such as a UWB network, a Wireless-fidelity (Wi-fi) network, a long term evolution L TE (L optical emitter, L TE) network, a future 5G network, and specifically may be determined according to actual use requirements.
The following describes an exemplary communication system according to the content sharing method provided in the embodiment of the present invention, taking an example in which the wireless network is a UWB network, that is, the above-described communication system is a UWB communication system.
Fig. 1 shows a schematic diagram of a possible architecture of a UWB communication system according to an embodiment of the present invention. As shown in fig. 1, the UWB communication system includes at least two electronic devices, for example, an electronic device 11, an electronic device 12, and an electronic device 13; each of the at least two electronic devices includes a UWB communication module therein. Therefore, the electronic devices in the communication system can realize UWB communication based on the UWB communication module included in the electronic devices.
It should be noted that, in this embodiment of the present invention, the electronic device 11 may be a playback source device in this embodiment of the present invention, the electronic device 12 may be a first electronic device in this embodiment of the present invention, and the electronic device 13 may be a second electronic device in this embodiment of the present invention. In this embodiment of the present invention, the electronic device 12 may receive an identifier (hereinafter referred to as identifier 1) sent by the electronic device 11, and in a case that the electronic device 12 includes the identifier 1, determine that the electronic device 11 is a playback source device, then, the electronic device 12 may determine whether an electronic device exists in a target direction of the electronic device 12, if the electronic device 13 is in the target direction of the electronic device 12, the electronic device 12 may obtain the identifier of the electronic device 13, and control the electronic device 11 to share the content currently output by the electronic device 13, for example, the electronic device 12 may control the electronic device 11 to input the content currently output by the electronic device 11 to the electronic device 13 by sending indication information including the identifier of the electronic device 13 to the electronic device 11. Therefore, the electronic equipment 13 can output the content output by the electronic equipment 11 in real time, and the user does not need to manually trigger sharing, so that the process of sharing the content among the electronic equipment can be simplified, and the user experience is improved.
The electronic device in the embodiment of the invention can be a mobile electronic device or a non-mobile electronic device. For example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted terminal, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiment of the present invention is not particularly limited.
The execution subject of the content sharing method provided in the embodiment of the present invention may be the electronic device, or may also be a functional module and/or a functional entity capable of implementing the content sharing method in the electronic device, which may be determined specifically according to actual use requirements, and the embodiment of the present invention is not limited. The following takes an electronic device as an example to exemplarily describe the content sharing method provided by the embodiment of the present invention.
The content sharing method provided by the embodiment of the invention can be executed in a scene that a user needs to share the content currently output by one electronic device to another electronic device.
Specifically, the content sharing method provided by the embodiment of the present invention may be executed in the following two scenarios (i.e., scenario 1 and scenario 2).
Scene 1:
in this embodiment of the present invention, if a user needs to share a content currently output by one electronic device (for example, a first electronic device in this embodiment of the present invention) to another electronic device (for example, a second electronic device in this embodiment of the present invention); the user can trigger the first electronic device to determine whether a second electronic device exists in the target direction; if the first electronic device determines that the second electronic device exists in the target direction, the first electronic device can share the currently output content to the second electronic device, so that the second electronic device can output the content output by the playing source device in real time without manually triggering sharing by a user, and the process of sharing the content among the electronic devices can be simplified.
Scene 2
In this embodiment of the present invention, if a user needs to share a content currently output by one electronic device (for example, a playback source device in this embodiment of the present invention) to another electronic device (for example, a second electronic device in this embodiment of the present invention); the user may trigger another electronic device (e.g., the first electronic device in the embodiments of the present invention) to instruct the one electronic device to share the content it outputs to the other electronic device.
Specifically, the first electronic device may first determine whether a playback source device exists in a communication range of the first electronic device, and if the playback source device exists in the communication range of the first electronic device, the first electronic device may determine whether a second electronic device exists in a target direction of the first electronic device; therefore, if the second electronic device exists in the target direction of the first electronic device, the first electronic device can control the playing source device to share the content output by the playing source device to the second electronic device, so that the second electronic device can output the content output by the playing source device in real time without manually triggering sharing by a user, and the process of sharing the content among the electronic devices can be simplified.
The method for determining whether the play source device exists in the communication range of the first electronic device may include: whether the first electronic device receives the identifications which are transmitted by other electronic devices in the communication range and used for indicating the other electronic devices is determined, and if any identification is not received, the first electronic device can determine that no playing source device exists in the communication range. If the identifier (e.g., the first identifier in the embodiment of the present invention) is received, the first electronic device may further determine whether the stored identifier of the first electronic device includes the first identifier. If the identifier stored in the first electronic device includes the first identifier, the first electronic device may determine that the play source device exists in the communication range of the first electronic device; if the identifier stored in the first electronic device does not include the first identifier, the first electronic device may determine that the playback source device does not exist within the communication range of the first electronic device.
It should be noted that, in the embodiment of the present invention, the communication range of the first electronic device is within a preset distance range with the position of the first electronic device as a center.
Optionally, in this embodiment of the present invention, in the scenario 1 and the scenario 2, the target direction is determined according to a position where the first electronic device is located. If the first electronic device determines that the second electronic device does not exist in the target direction, the first electronic device may output a prompt message to prompt the user to update the position (i.e., location and/or orientation) of the first electronic device. Thus, the first electronic device can re-determine the target direction according to the updated position of the first electronic device; and determining the second electronic device according to the redetermined target direction.
The content sharing method provided by the embodiment of the present invention is described below in detail with reference to the accompanying drawings.
As shown in fig. 2, an embodiment of the present invention provides a content sharing method, which may include S201 to S203 described below.
S201, the first electronic device determines a play source device.
Optionally, in this embodiment of the present invention, the first electronic device may be a wearable electronic device, and for example, may be smart glasses or a smart helmet. The method can be determined according to actual use requirements, and the embodiment of the invention is not limited.
In the embodiment of the invention, the play source equipment is any electronic equipment which outputs the content at present.
Optionally, in this embodiment of the present invention, the playback source device may be the same electronic device as the first electronic device (mode one), or may be an electronic device different from the first electronic device (mode two), which may be determined specifically according to actual usage requirements, and this embodiment of the present invention is not limited. For example, in scenario 1, the playback source device is the same electronic device as the first electronic device. In the scenario 2, the playback source device is an electronic device different from the first electronic device.
The following exemplarily describes a method for determining a playback source device by a first electronic device in combination with the first and second modes, respectively.
The first method is as follows: the playing source equipment is the same electronic equipment as the first electronic equipment
In the embodiment of the present invention, the first electronic device is a playback source device.
In the embodiment of the present invention, when the first electronic device is started, it may be regarded that the first electronic device determines that the playback source device is completed, that is, after the first electronic device is started, the first electronic device may automatically determine that the first electronic device is the playback source device, that is, in this case, the first electronic device is the playback source device.
The second method comprises the following steps: the play source device is an electronic device different from the first electronic device
Optionally, in the embodiment of the present invention, the step S201 may be specifically implemented by the following steps S201a to S201 c.
S201a, the first electronic device receives the first identifier sent by the third electronic device.
The first identifier may be used to indicate a third electronic device.
In the embodiment of the present invention, the number of the third electronic devices is not limited. That is, the number of the third electronic devices may be one or more. Accordingly, the number of the first marks may be one, and may be multiple.
Optionally, in this embodiment of the present invention, one first identifier indicates one third electronic device, and different first identifiers indicate different electronic devices.
Optionally, in this embodiment of the present invention, the first identifier may be an identifier of the third electronic device, or may be an identifier of a communication module (for example, may be an UWB communication module) included in the third electronic device, which may be any identifier that can uniquely indicate the third electronic device, and may be specifically determined according to actual use requirements, and this embodiment of the present invention is not limited.
In the embodiment of the present invention, since the first identifier is sent by the third electronic device, if the first electronic device receives the first identifier sent by the third electronic device, the first electronic device may determine that the third electronic device is in a power-on state, so as to determine that the third electronic device is outputting content (for example, displaying a picture, playing music, playing a video, and the like).
Optionally, in this embodiment of the present invention, the method for the first electronic device to receive the first identifier sent by the third electronic device may include the following method 1 and method 2.
The method comprises the following steps: each electronic device in the communication system periodically transmits a broadcast message, where the broadcast message may carry an identifier of a sender, and the broadcast message may be used to determine whether there are other electronic devices in the vicinity of the sender (e.g., within a preset distance range centered around the sender). Specifically, after the first electronic device sends the broadcast message, if other electronic devices exist near the first electronic device, taking the third electronic device as an example, after the third electronic device receives the broadcast message, the third electronic device may reply a response message to the first electronic device, where the response message carries an identifier of the third electronic device. After the first electronic device receives the response message sent by the third electronic device, the first electronic device may obtain the identifier of the third electronic device from the response message.
The method 2 comprises the following steps: each electronic device in the communication system periodically transmits a broadcast message, which may include an identifier of the sender, and may be used to determine whether other electronic devices exist near the sender (e.g., within a preset distance range centered around the sender). Specifically, when the first electronic device receives other electronic devices located nearby, taking the third electronic device as an example, after the broadcast message is sent, the first electronic device may obtain the identifier of the third electronic device from the broadcast message.
S201b, the first electronic device determines whether the stored identifier thereof includes the first identifier.
In the embodiment of the present invention, at least one identifier may be stored in the first electronic device, where each identifier in the at least one identifier may indicate one electronic device, and different identifiers may be used to indicate different electronic devices.
In the embodiment of the present invention, after receiving the first identifier, the first electronic device may first determine whether the stored identifier includes the first identifier. If the first identifier is included in the identifiers stored in the first electronic device, the first electronic device may continue to perform S201c described below. If the first identifier is not included in the identifiers stored in the first electronic device, the first electronic device may output first prompt information to inquire whether the user needs to store the first identifier; in this case, if the user triggers the first electronic device to store the first identifier, the first electronic device may continue to execute S201c described below after storing the first identifier, and if the user does not trigger the first identifier to be stored, the first electronic device may return to S201a to continue the execution.
S201c, the first electronic device determines that the third electronic device is a playback source device.
Optionally, in an embodiment of the present invention, in a possible manner, when the number of the third electronic devices is multiple, the first electronic device may determine, as the play source device, a third electronic device with a highest frequency of the history shared content among the third electronic devices. In another possible manner, the first electronic device may sort the stored identifiers, and thus, when the number of the third electronic devices is multiple, the identifier stored by the first electronic device may include multiple first identifiers, so that the first electronic device may determine, as the play-source device, the third electronic device indicated by the first identifier sorted at the top among the multiple first identifiers. It is to be understood that the first electronic device may also determine, in any other possible manner, one play source device from the plurality of third electronic devices, which may be determined according to actual usage requirements, and the embodiment of the present invention is not limited thereto.
In the embodiment of the invention, the first electronic equipment can automatically determine the playing source equipment according to the identification sent by other electronic equipment without manually selecting the playing source equipment by a user, so that the process of determining the playing source equipment can be simplified.
Further, since the playback source device can be determined based on the identifier uniquely indicating the electronic device, the accuracy of determining the playback source device can be improved.
Optionally, in this embodiment of the present invention, after the first electronic device determines the play source device, it may be determined whether an electronic device exists in the target direction of the first electronic device, and if an electronic device (for example, a second electronic device described below) exists in the target direction, the first electronic device may continue to execute S202 described below. If the electronic device does not exist in the target direction, the first electronic device may output second prompt information to prompt the user that there is no electronic device capable of receiving the shared content in the target direction of the first electronic device.
S202, the first electronic device determines a second electronic device located in the target direction of the first electronic device.
The target direction may be determined according to a position of the first electronic device.
In the embodiment of the present invention, the target direction changes with a change of an orientation of the first electronic device.
In the embodiment of the present invention, the target direction may be used to indicate a direction in which a face of a user using the first electronic device faces.
Optionally, in this embodiment of the present invention, after the first electronic device determines the play source device, a location system in which the first electronic device is located may be used to determine a location (for example, coordinate information) of an electronic device within a communication range of the first electronic device, so as to determine that the second electronic device is located in the target direction of the first electronic device according to the location. In the embodiment of the present invention, a ray direction of the first electronic device pointing to the second electronic device is the target direction.
Optionally, in this embodiment of the present invention, when the number of the electronic devices located in the target direction of the first electronic device is multiple, the first electronic device may determine the electronic device closest to the first electronic device as the second electronic device, or may determine all of the multiple electronic devices as the second electronic device, which may be determined specifically according to actual usage requirements, and this embodiment of the present invention is not limited.
A specific method for determining the target direction by the first electronic device will be described in detail in the following embodiments, and details are not repeated herein to avoid redundancy.
Optionally, in this embodiment of the present invention, the target direction may be any direction relative to the first electronic device. Specifically, the target direction may be an upward direction with respect to the first electronic device, a downward direction with respect to the first electronic device, a leftward direction with respect to the first electronic device, or any other possible direction. The method can be determined according to actual use requirements, and the embodiment of the invention is not limited.
Optionally, in this embodiment of the present invention, if the target directions are different, the second electronic device determined by the electronic device is also different. Fig. 3 is a schematic diagram of a position relationship of an electronic device. If the target direction is a left direction relative to the first electronic device, the first electronic device 30 may determine that the electronic device 31 located at the left side (i.e. the target direction) of the first electronic device 30 is the second electronic device. If the target direction is a direction to the right (i.e., the target direction) with respect to the first electronic device, the first electronic device 30 may determine that the electronic device 32 located at the right side of the first electronic device 30 is the second electronic device.
Note that an arrow 33 in fig. 3 indicates a leftward direction with respect to the first electronic device, and an arrow 34 in fig. 3 indicates a rightward direction with respect to the first electronic device.
In the embodiment of the present invention, the second electronic device may be a device that the user needs to share the content, that is, the user needs to share the content currently output by the playback source device to the second electronic device.
S203, the first electronic device controls the play source device to share the target content to the second electronic device.
The target content may be a content currently output by the playback source device.
Optionally, in this embodiment of the present invention, the content currently output by the playback source device may be content in a visual form or may be content in an auditory form. For example, the visual form of the content may be a video, a picture, a user interface, text, or a power-on screen. The content in audible form may be music or video or the like. The method can be determined according to actual use requirements, and the embodiment of the invention is not limited.
Optionally, in the embodiment of the present invention, the play source device may share the target content with the second electronic device in any possible communication manner, such as a UWB communication manner, a wi-fi communication manner, and an L TE communication manner.
In the embodiment of the invention, because the UWB communication mode can adopt nanosecond-level non-sinusoidal wave narrow pulses for information transmission, if the play source device can adopt the UWB communication mode to share the target content to the second electronic device, the high-speed and low-delay transmission of the target content can be ensured, so that the output effect of the target content on the second electronic device is ensured to be better, and the user experience is improved.
Optionally, in this embodiment of the present invention, when UWB communication is adopted among the first electronic device, the playback source device, and the second electronic device, distances between any two electronic devices among the first electronic device, the playback source device, and the second electronic device are all smaller than or equal to the maximum UWB communication distance. Therefore, the communication quality of communication between any two electronic equipment of the first electronic equipment, the playing source equipment and the second electronic equipment can be ensured to be good.
Alternatively, in the embodiment of the present invention, in the first mode, the step S203 may be specifically implemented by the step S203a described below.
S203a, the first electronic device sends the target indication information to the playback source device.
The target indication information may be used to indicate the playback source device to share the target content with the second electronic device.
Optionally, in this embodiment of the present invention, after receiving the target indication message, the playback source device may share the currently output content with the second electronic device.
Optionally, in the embodiment of the present invention, the first electronic device may send the target indication message to the play source device in any possible communication manner, such as a UWB communication manner, a wi-fi communication manner, and an L TE communication manner.
Optionally, in this embodiment of the present invention, the target indication message may include an identifier (hereinafter, referred to as a second identifier) indicating the second electronic device. Therefore, the accuracy of the target content shared by the playing source device to the second electronic device can be ensured.
It should be noted that, in the embodiment of the present invention, before the first electronic device sends the target indication information to the play source device, the second identifier is obtained first. For the method for acquiring the second identifier by the first electronic device, reference may be made to the description related to the method for acquiring the first identifier by the first electronic device in the foregoing embodiment, and details are not repeated here to avoid repetition.
In the embodiment of the present invention, since the target indication message includes the second identifier indicating the second electronic device, the accuracy of controlling, by the first electronic device, the playing source device to share the target content with the second electronic device can be ensured.
It can be understood that, in the first embodiment of the present invention, in the first embodiment, the electronic device located in the target direction of the first electronic device may be the playback source device, that is, the playback source device is the same as the second electronic device, that is, the content currently output by the second electronic device is the target content. Therefore, if the first electronic device sends the target indication message to the play source device, network resources are wasted.
Optionally, in the embodiment of the present invention, in the first mode, to avoid wasting network resources, the above-mentioned S203a may be specifically implemented by the following S203a1 and S203a 2.
S203a1, the first electronic device determines whether the second electronic device is the same as the playback source device.
Optionally, in the embodiment of the present invention, after determining the second electronic device, the first electronic device may first determine whether the second electronic device is the same as the play source device; if the second electronic device is the same as the play source device, the first electronic device may re-determine the second electronic device, that is, return to S202 to continue execution; if the second electronic device is different from the playback source device, the first electronic device may continue to perform S203a2 described below.
Specifically, after the first electronic device determines the second electronic device, the second identifier indicating the second electronic device may be acquired from the second electronic device. Then, the first electronic device may compare the second identifier with the first identifier, and if the second identifier is the same as the first identifier, it indicates that the second electronic device is the same as the playback source device. And if the second identifier is different from the first identifier, the second electronic equipment is different from the playing source equipment.
S203a2, the first electronic device sends the target indication message to the play source device.
For the description of S203a2, reference may be made to the related description in S203a, and details are not repeated here to avoid repetition.
In the embodiment of the invention, the first electronic device sends the target indication information to the play source device only when the play source device and the second electronic device are different electronic devices, so that the play source device can be accurately controlled to share the target content with the second electronic device, and network resources can be saved.
The content sharing method provided by the embodiment of the present invention is exemplarily described below with reference to fig. 4 and 5.
Exemplarily, in the first mode, it is assumed that the electronic device 3, the electronic device 4, and the electronic device 5 are included in the communication range of the first electronic device, and the target direction is an upward direction with respect to the first electronic device. Then, as shown in (a) of fig. 4, the first electronic device 40 may determine the first electronic device 40 as a play source device and determine the electronic device 4 located above the first electronic device 40 as a second electronic device. The first electronic device 40 may then share its currently displayed content to the electronic device 4. In the process that the first electronic device 40 shares the content that it currently displays to the electronic device 4, as shown in (b) of fig. 4, the content that the first electronic device 40 currently displays may be displayed on the electronic device 4.
Further exemplarily, in the second mode, the first electronic device includes the electronic device 3, the electronic device 4, and the electronic device 5 within the communication range; the first identification indicates the electronic device 3, and the identification stored by the first electronic device comprises the first identification; the target direction is an upward direction with respect to the first electronic device. Then, if the first electronic device receives the first identifier, as shown in (a) of fig. 5, the first electronic device 40 may determine that the electronic device 3 is a playback source device, and determine that the electronic device 4 located above the first electronic device 40 is a second electronic device. The first electronic device 40 may then send an indication message (i.e. the above-mentioned target indication message) to the electronic device 3, which may be used to instruct the electronic device 3 to share the content currently displayed by the electronic device 3 with the electronic device 4. So that electronic device 3, after receiving the indication message, can share its currently displayed content with electronic device 4. Thus, as shown in fig. 5 (b), the content displayed by the electronic device 3 can be displayed on the electronic device 4 in real time.
In the content sharing method provided by the embodiment of the invention, after the first electronic device determines the play source device, if the first electronic device determines that the second electronic device exists in the target direction, the first electronic device can automatically control the play source device to share the currently output content to the second electronic device, so that the second electronic device can output the content output by the play source device in real time, and a user does not need to manually trigger sharing again, thereby simplifying the process of sharing the content between the electronic devices and improving the user experience.
Optionally, in this embodiment of the present invention, a communication manner between any two electronic devices among the first electronic device, the play source device, and the second electronic device may be a UWB communication manner. Specifically, UWB communication modules are disposed in the first electronic device, the playback source device, and the second electronic device, so that UWB communication between any two of the first electronic device, the playback source device, and the second electronic device can be implemented by the UWB communication modules disposed in the first electronic device, the playback source device, and the second electronic device. Wherein, the first electronic device may comprise at least two UWB communication modules therein.
Optionally, in this embodiment of the present invention, before determining the second electronic device, the first electronic device may determine the target direction by using UWB technology (which refers to UWB communication technology and UWB positioning technology) according to the at least two UWB communication modules. Specifically, the first electronic device may first acquire UWB coordinate information of the at least two UWB communication modules, determine the target direction according to the acquired UWB coordinate information, and determine the second electronic device located in the target direction after determining the target direction.
In this embodiment of the present invention, the first electronic device may obtain UWB coordinate information of the at least two UWB communication modules from a UWB positioning system in which the first electronic device is located. For the description of the UWB positioning system, reference may be made to the description of the UWB positioning system in the above noun explanation section, and details are not repeated here to avoid repetition.
Optionally, in the embodiment of the present invention, the UWB coordinate information of the at least two UWB communication modules may be two-dimensional coordinate information or three-dimensional coordinate information, which may be determined specifically according to actual use requirements, and the embodiment of the present invention is not limited.
It can be understood that, in the embodiment of the present invention, the first electronic device may determine the target direction before determining the playback source device, or may determine the target direction after determining the playback source device, which may be specifically determined according to actual usage requirements, and the embodiment of the present invention is not limited thereto. In the following, the first electronic device determines the target direction after determining the playback source device.
For example, in the embodiment of the present invention, with reference to fig. 2, as shown in fig. 6, before S202, the content sharing method provided in the embodiment of the present invention may further include S204 described below.
S204, the first electronic device determines the target direction according to the UWB coordinate information of the at least two UWB communication modules.
Optionally, in an embodiment of the present invention, the number of the at least two UWB communication modules is different, and a method for determining the target direction by the first electronic device is also different. A method for determining the target direction of the first electronic device is exemplarily described below by taking the number of the at least two UWB communication modules as 2 and the number of the at least two UWB communication modules as 3 as examples, respectively.
One possible implementation: the number of the at least two UWB communication modules is 2.
Optionally, in an embodiment of the present invention, in a possible implementation manner, the at least two UWB communication modules include a first UWB communication module and a second UWB communication module, that is, the number of the at least two UWB communication modules is 2. In this case, S204 can be specifically realized by S204a and S204b described below.
S204a, the first electronic device determines a first straight line where the first UWB communication module and the second UWB communication module are located according to the UWB coordinate information of the first UWB communication module and the UWB coordinate information of the second UWB communication module.
Optionally, in this embodiment of the present invention, the first straight line in which the first UWB communication module and the second UWB communication module are located is a straight line determined by a connection line of the UWB coordinate information of the first UWB communication module and the UWB coordinate information of the second UWB communication module.
Exemplarily, as shown in fig. 7, it is assumed that the position of the first UWB communication module is point a and the position of the second UWB communication module is point B; the first line may be the line 50 defined by points a and B.
S204b, the first electronic device determines, as the target direction, a direction in which the first straight line points, the direction being the same as the first preset direction.
Optionally, in this embodiment of the present invention, the direction indicated by the first straight line includes two directions, which are respectively: the first UWB communication module is directed in a direction of the second UWB communication module and the second UWB communication module is directed in a direction of the first UWB communication module.
Exemplarily, as shown in fig. 7, it is assumed that the position of the first UWB communication module is point a and the position of the second UWB communication module is point B; the UWB coordinate information of the point A is (x1, y1, z1), the UWB coordinate information of the point B is (x2, y2, z 2); then, the first straight line 50 is directed in the direction in which point a points to point B, i.e., in the direction indicated by arrow 52; and point B points in the direction of point a, which is indicated by arrow 51.
Alternatively, in the embodiment of the present invention, the first preset direction may be a direction in which the first UWB communication module points to the second UWB communication module, or may be a direction in which the second UWB communication module points to the first UWB communication module. The method can be determined according to actual use requirements, and the embodiment of the invention is not limited.
Optionally, in this embodiment of the present invention, the first preset direction may be used to represent a gazing direction of a user.
Optionally, in this embodiment of the present invention, taking the first electronic device as an example of smart glasses, the first UWB communication module and the second UWB communication module may be UWB communication modules disposed on the same temple of the smart glasses. Specifically, as shown in fig. 8, the smart glasses 60 may include two rims 61 and two temples 62. One end of each of the two temples is respectively connected with the corresponding lens ring of the temple. Then, the first UWB communication module 63 and the second UWB communication module 64 may be respectively provided at both ends of one temple 62.
The above-mentioned S204a and S204b are exemplarily described below with reference to fig. 8.
Illustratively, taking the first electronic device as smart glasses as an example, as shown in fig. 8, a first UWB communication module 63 and a second UWB communication module 64 are respectively disposed at two ends of one temple 62 of the smart glasses 60. Then, the first straight line where the first UWB communication module 63 and the second UWB communication module 64 are located is a straight line 67 indicated by a dotted line, so that the smart glasses 60 can determine that the two directions indicated by the straight line 67 are the direction indicated by the arrow 65 and the direction indicated by the arrow 66 based on the UWB coordinate information of the first UWB communication module 63 and the UWB coordinate information of the second UWB communication module 64. If the first preset direction is a direction in which the first UWB communication module points to the second UWB communication module, the smart glasses 60 may determine that the target direction is a direction indicated by an arrow 65 in fig. 8; if the first preset direction is a direction in which the second UWB communication module points to the first UWB communication module, the target direction may be a direction indicated by an arrow 66 in fig. 8. Since the first preset direction is used to indicate the gaze direction of the user, the first preset direction is generally the direction indicated by arrow 66.
In the embodiment of the present invention, the first preset direction may be used to represent a gazing direction of a user, so that a target direction determined by the first electronic device according to UWB coordinate information of two UWB communication modules in the first electronic device and the first preset direction may be the gazing direction of the user, so that the second electronic device determined by the first electronic device according to the target direction may meet a user requirement, and thus, user experience may be improved.
Another possible implementation: the number of the at least two UWB communication modules is 3.
Optionally, in another possible implementation manner in the embodiment of the present invention, the at least two UWB communication modules include a first UWB communication module, a second UWB communication module, and a third UWB communication module that form a right triangle in a positional relationship, that is, the number of the at least two UWB communication modules is 3.
For example, assuming that the position of the first UWB communication module is point a, the position of the second UWB communication module is point B, and the position of the third UWB communication module is point C, as shown in (a) of fig. 9, a line between point a and point B may constitute a hypotenuse of the right triangle, a line between point a and point C may constitute one cathetus of the right triangle, and a line between point B and point C may constitute the other cathetus of the right triangle.
Optionally, in the embodiment of the present invention, the step S204 may be specifically implemented by the following steps S204c to S204 e.
S204c, the first electronic device determines UWB coordinate information of a perpendicular point of the third UWB communication module on the hypotenuse of the right triangle, based on the UWB coordinate information of the first UWB communication module, the UWB coordinate information of the second UWB communication module, and the UWB coordinate information of the third UWB communication module.
The hypotenuse of the right triangle is a line segment connecting the UWB coordinate information of the first UWB communication module and the UWB coordinate information of the second UWB communication module.
The above-described S204c is exemplarily described below with reference to fig. 9.
Exemplarily, as shown in (B) of fig. 9, it is assumed that the position of the first UWB communication module is point a, the position of the second UWB communication module is point B, the position of the third UWB communication module is point C, and the position of a perpendicular point of the third UWB communication module on the oblique side is point P; further, assume that the UWB coordinate information of the first UWB communication module is (0, 0, 6), the UWB coordinate information of the second UWB communication module is (0,14,0), and the UWB coordinate information of the third UWB communication module is (0, 0, 0); then, the first electronic device may determine UWB coordinate information of a perpendicular point on the oblique side of the third UWB communication module to be (0, 2, 5) based on the UWB coordinate information of the first UWB communication module, the UWB coordinate information of the second UWB communication module, and the UWB coordinate information of the third UWB communication module.
S204d, the first electronic device determines a second straight line where the third UWB communication module and the vertical point are located according to the UWB coordinate information of the third UWB communication module and the UWB coordinate information of the vertical point.
In an embodiment of the present invention, the vertical point is a vertical point of the third UWB communication module on a hypotenuse of the right triangle.
Optionally, in this embodiment of the present invention, the second straight line is a straight line defined by a connection line between the UWB coordinate information of the third UWB communication module and the UWB coordinate information of the vertical point.
For example, as shown in (b) of fig. 9, assuming that the position of the third UWB communication module is point C, the position of the above-mentioned perpendicular point is point P, the UWB coordinate information of point C is (0, 0, 0), and the UWB coordinate information of point P is (0, 2, 5), then the first electronic device may determine the second straight line 90 from the UWB coordinate information of point P and the UWB coordinate information of point C.
S204e, the first electronic device determines, as the target direction, a direction in which the second straight line points, the direction being the same as the second preset direction.
In the embodiment of the present invention, the direction indicated by the second straight line is two directions, which are respectively: the third UWB communication module points in the direction of the vertical point, which points in the direction of the third UWB communication module. For example, as shown in (b) of fig. 9, the direction of the second straight line 90 is a direction in which the point C points to the point P, i.e., a direction indicated by an arrow 91, and a direction in which the point P points to the point C, i.e., a direction indicated by an arrow 92.
Optionally, in an embodiment of the present invention, the second preset direction may be a direction in which the third UWB communication module points to the vertical point, or a direction in which the vertical point points to the third UWB communication module. The method can be determined according to actual use requirements, and the embodiment of the invention is not limited.
For example, as shown in (b) of fig. 9, when the second preset direction is a direction in which the third UWB communication module points to the above-mentioned perpendicular point, the first electronic device may determine a direction shown by an arrow 91 as a target direction; when the second preset direction is a direction in which the above-mentioned vertical point points to the third UWB communication module, the first electronic device may determine the direction indicated by the arrow 92 as the target direction.
In an embodiment of the present invention, the second preset direction may be used to indicate a gazing direction of a user using the first electronic device.
In another possible implementation manner, the relative positions of the at least two UWB communication modules in the first electronic device are exemplarily described below with reference to fig. 10.
Optionally, in the embodiment of the present invention, the first electronic device is taken as an example of smart glasses. As shown in fig. 10, the first electronic device 80 includes two lens rings 81 and two temples 82; for each of the two temples 82, one end of one temple is connected to the lens ring 81 corresponding to the temple. Then, the first UWB communication module 83 may be disposed on the connection area 84 between the two lens rims 81, and the second UWB communication module 85 and the third UWB communication module 86 may be disposed at both ends of the same temple.
It should be noted that, in the embodiment of the present invention, when the temple of the smart glasses is in the unfolded state, the first UWB communication module, the second UWB communication module and the third UWB communication module may form a right triangle.
In the embodiment of the present invention, since the three UWB communication modules are located in the same plane, it is possible to ensure accuracy of determining, as the target direction, a direction in which the second straight line points, which is the same as the second preset direction.
It should be noted that, in the embodiment of the present invention, in the above one possible implementation manner and the above another possible implementation manner, a method for determining the target direction by the UWB positioning system by the first electronic device is exemplarily described by taking 2 UWB communication modules and 3 UWB communication modules provided in the first electronic device as an example. In practical implementation, when more UWB communication modules (e.g. 4 UWB communication modules, 5 UWB communication modules) or less UWB communication modules (e.g. 1 UWB communication module) may be disposed in the first electronic device, the first electronic device may still determine the target direction through the UWB positioning system. The method can be determined according to actual use requirements, and the embodiment of the invention is not limited.
In the embodiment of the present invention, since the target direction is determined by the first electronic device according to the UWB coordinate information of at least two UWB communication modules included in the first electronic device, and the first electronic device is a wearable electronic device, it can be ensured that the electronic device located in the target direction is an electronic device in the user's sight line direction, that is, an electronic device whose content is shared according to the user's requirement, and thus it can be ensured that the second electronic device determined by the first electronic device according to the target direction meets the actual use requirement of the user.
In the embodiment of the present invention, the content sharing method shown in the above-mentioned method drawings is exemplarily described with reference to one drawing in the embodiment of the present invention. In specific implementation, the content sharing method shown in each method drawing may also be implemented by combining any other drawing which may be combined and is illustrated in the foregoing embodiments, and details are not described here again.
As shown in fig. 11, an embodiment of the present invention provides an electronic device 900, where the electronic device 900 may be a first electronic device, and the electronic device 900 may include a determination module 901 and a control module 902. A determining module 901, which may be used to determine a playback source device; determining second electronic equipment located in a target direction, wherein the target direction can be determined according to the position of the first electronic equipment; the control module 902 may be configured to control the playback source device determined by the determination module to share the target content with the second electronic device determined by the determination module, where the target content may be a content currently output by the playback source device.
Optionally, in this embodiment of the present invention, the determining module 901 may include a receiving sub-module and a determining sub-module. The receiving submodule can be used for receiving a first identifier sent by the third electronic device, and the first identifier can be used for indicating the third electronic device; the determining sub-module may be configured to determine that the third electronic device is the playback source device when the identifier stored in the first electronic device includes the first identifier.
Optionally, in this embodiment of the present invention, the control module 902 may include a sending sub-module. And the sending submodule can be used for sending target indication information to the play source device, and the target indication information can be used for indicating the play source device to share the target content with the second electronic device.
Optionally, in this embodiment of the present invention, the sending sub-module may be specifically configured to send the target indication information to the play source device under a condition that the second electronic device is different from the play source device.
Optionally, in this embodiment of the present invention, the first electronic device may include at least two ultra-wideband UWB communication modules; the determining module 901 may be further configured to determine the target direction according to the UWB coordinate information of the at least two UWB communication modules before determining the second electronic device located in the target direction.
Optionally, in an embodiment of the present invention, the at least two UWB communication modules may include a first UWB communication module and a second UWB communication module; the determining module 901 may be specifically configured to determine a first straight line where the first UWB communication module and the second UWB communication module are located according to the UWB coordinate information of the first UWB communication module and the UWB coordinate information of the second UWB communication module; and determining the direction pointed by the first straight line as the target direction, wherein the direction is the same as the first preset direction.
Optionally, in an embodiment of the present invention, the at least two UWB communication modules include a first UWB communication module, a second UWB communication module, and a third UWB communication module that form a right triangle in a positional relationship; the determining module 901 may be specifically configured to determine UWB coordinate information of a perpendicular point of the third UWB communication module on the hypotenuse of the right triangle according to the UWB coordinate information of the first UWB communication module and the UWB coordinate information of the second UWB communication module; determining a second straight line where the third UWB communication module and the vertical point are located according to the UWB coordinate information of the third UWB communication module and the UWB coordinate information of the vertical point; and determining the direction in which the second straight line points, which is the same as a second preset direction, as the target direction. The hypotenuse of the right triangle may be a line segment connecting the UWB coordinate information of the first UWB communication module and the UWB coordinate information of the second UWB communication module.
Optionally, in this embodiment of the present invention, a distance between the first electronic device, the playback source device, and the second electronic device is less than or equal to a maximum UWB communication distance.
The electronic device 900 provided in the embodiment of the present invention can implement each process implemented by the electronic device shown in the foregoing method embodiment, and is not described here again to avoid repetition.
The embodiment of the invention provides electronic equipment which can be applied to first electronic equipment, wherein the first electronic equipment can determine playing source equipment; and determining a second electronic device located in the target direction (determined according to the orientation of the first electronic device); and controlling the play source device to share the content currently output by the play source device to the second electronic device. According to the scheme, after the first electronic device determines the playing source device, if the first electronic device determines that the second electronic device exists in the target direction, the first electronic device can automatically control the playing source device to share the content output by the playing source device to the second electronic device, so that the second electronic device can output the content output by the playing source device in real time, and the user does not need to manually trigger sharing, and therefore the process of sharing the content among the electronic devices can be simplified.
Fig. 12 is a schematic diagram of a hardware structure of an electronic device implementing various embodiments of the present invention. As shown in fig. 12, the electronic device 100 includes, but is not limited to: radio frequency unit 101, network module 102, audio output unit 103, input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, and power supply 111. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 12 does not constitute a limitation of the electronic device, and that the electronic device may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the electronic device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted electronic device, a wearable device, a pedometer, and the like.
The processor 110 is configured to determine a playback source device; and determining a second electronic device located in the target direction; and controlling the play source device to share the target content to the second electronic device; the target direction is determined according to the position of the first electronic device, and the target content is the content currently output by the play source device.
It can be understood that, in the embodiment of the present invention, the determining module 901 in the structural schematic diagram of the electronic device (for example, fig. 11) may be implemented by the processor 110 and the radio frequency unit 101. The control module 902 in the structural schematic diagram of the electronic device (for example, fig. 11) may be implemented by the radio frequency unit 101.
The embodiment of the invention provides electronic equipment, which can be first electronic equipment, wherein the first electronic equipment can determine playing source equipment; and determining a second electronic device located in the target direction (determined according to the orientation of the first electronic device); and controlling the play source device to share the content currently output by the play source device to the second electronic device. According to the scheme, after the first electronic device determines the playing source device, if the first electronic device determines that the second electronic device exists in the target direction, the first electronic device can automatically control the playing source device to share the content output by the playing source device to the second electronic device, so that the second electronic device can output the content output by the playing source device in real time, and the user does not need to manually trigger sharing, and therefore the process of sharing the content among the electronic devices can be simplified.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 101 may be used for receiving and sending signals during a message transmission or call process, and specifically, after receiving downlink data from a base station, the downlink data is processed by the processor 110; in addition, the uplink data is transmitted to the base station. Typically, radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 101 can also communicate with a network and other devices through a wireless communication system.
The electronic device provides wireless broadband internet access to the user via the network module 102, such as assisting the user in sending and receiving e-mails, browsing web pages, and accessing streaming media.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the network module 102 or stored in the memory 109 into an audio signal and output as sound. Also, the audio output unit 103 may also provide audio output related to a specific function performed by the electronic apparatus 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 103 includes a speaker, a buzzer, a receiver, and the like.
The input unit 104 is used to receive an audio or video signal. The input unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, and the graphics processor 1041 processes image data of a still picture or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the graphic processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the network module 102. The microphone 1042 may receive sound and may be capable of processing such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 101 in case of a phone call mode.
The electronic device 100 also includes at least one sensor 105, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 1061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 1061 and/or the backlight when the electronic device 100 is moved to the ear. As one type of motion sensor, an accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of an electronic device (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 105 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display (L CD), an organic light-emitting diode (O L ED), or the like.
The user input unit 107 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic device. Specifically, the user input unit 107 includes a touch panel 1071 and other input devices 1072. Touch panel 1071, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 1071 (e.g., operations by a user on or near touch panel 1071 using a finger, stylus, or any suitable object or attachment). The touch panel 1071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 110, and receives and executes commands sent by the processor 110. In addition, the touch panel 1071 may be implemented in various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may include other input devices 1072. Specifically, other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
Further, the touch panel 1071 may be overlaid on the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or nearby, the touch panel 1071 transmits the touch operation to the processor 110 to determine the type of the touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of the touch event. Although in fig. 11, the touch panel 1071 and the display panel 1061 are two independent components to implement the input and output functions of the electronic device, in some embodiments, the touch panel 1071 and the display panel 1061 may be integrated to implement the input and output functions of the electronic device, and is not limited herein.
The interface unit 108 is an interface for connecting an external device to the electronic apparatus 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the electronic apparatus 100 or may be used to transmit data between the electronic apparatus 100 and the external device.
The memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 109 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 110 is a control center of the electronic device, connects various parts of the entire electronic device using various interfaces and lines, performs various functions of the electronic device and processes data by operating or executing software programs and/or modules stored in the memory 109 and calling data stored in the memory 109, thereby performing overall monitoring of the electronic device. Processor 110 may include one or more processing units; alternatively, the processor 110 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The electronic device 100 may further include a power supply 111 (e.g., a battery) for supplying power to each component, and optionally, the power supply 111 may be logically connected to the processor 110 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system.
In addition, the electronic device 100 includes some functional modules that are not shown, and are not described in detail herein.
Optionally, an embodiment of the present invention further provides an electronic device, which includes the processor 110 shown in fig. 11, the memory 109, and a computer program stored in the memory 109 and capable of running on the processor 110, where the computer program, when executed by the processor 110, implements the processes of the foregoing method embodiment, and can achieve the same technical effect, and details are not described here to avoid repetition.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements the processes of the method embodiments, and can achieve the same technical effects, and in order to avoid repetition, the details are not repeated here. The computer-readable storage medium may include a read-only memory (ROM), a Random Access Memory (RAM), a magnetic or optical disk, and the like.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling an electronic device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (14)

1. A content sharing method applied to a first electronic device is characterized by comprising the following steps:
determining a play source device;
determining second electronic equipment located in a target direction, wherein the target direction is determined according to the position of the first electronic equipment;
and controlling the play source equipment to share target content to the second electronic equipment, wherein the target content is the content currently output by the play source equipment.
2. The method of claim 1, wherein determining the playback-source device comprises:
receiving a first identifier sent by a third electronic device, wherein the first identifier is used for indicating the third electronic device;
and determining that the third electronic device is the play source device when the identifier stored in the first electronic device includes the first identifier.
3. The method of claim 1, wherein the controlling the playback-source device to share target content with the second electronic device comprises:
and sending target indication information to the play source device, wherein the target indication information is used for indicating the play source device to share the target content to the second electronic device.
4. The method according to claim 3, wherein said sending the target indication information to the playback source device comprises:
and sending the target indication information to the play source equipment under the condition that the second electronic equipment is different from the play source equipment.
5. The method of any of claims 1-4, wherein at least two ultrawideband UWB communication modules are included in the first electronic device;
before the determining the second electronic device located in the target direction, the method further comprises:
and determining the target direction according to the UWB coordinate information of the at least two UWB communication modules.
6. The method of claim 5, wherein said at least two UWB communication modules comprise a first UWB communication module and a second UWB communication module;
said determining said target direction from said UWB coordinate information of said at least two UWB communication modules comprises:
determining a first straight line where the first UWB communication module and the second UWB communication module are located according to the UWB coordinate information of the first UWB communication module and the UWB coordinate information of the second UWB communication module;
and determining the direction which is the same as a first preset direction in the direction pointed by the first straight line as the target direction.
7. The method according to claim 5, wherein said at least two UWB communication modules comprise a first UWB communication module, a second UWB communication module and a third UWB communication module which constitute a right triangle in positional relationship;
said determining said target direction from said UWB coordinate information of said at least two UWB communication modules comprises:
according to the UWB coordinate information of the first UWB communication module, the UWB coordinate information of the second UWB communication module and the UWB coordinate information of the third UWB communication module, determining the UWB coordinate information of a vertical point of the third UWB communication module on the hypotenuse of the right triangle, wherein the hypotenuse is a line segment connecting the UWB coordinate information of the first UWB communication module and the UWB coordinate information of the second UWB communication module;
determining a second straight line where the third UWB communication module and the vertical point are located according to the UWB coordinate information of the third UWB communication module and the UWB coordinate information of the vertical point;
and determining the direction in which the second straight line points to be the same as a second preset direction as the target direction.
8. An electronic device, which is a first electronic device, is characterized by comprising a determination module and a control module;
the determining module is used for determining the playing source equipment; determining second electronic equipment located in a target direction, wherein the target direction is determined according to the position of the first electronic equipment;
the control module is configured to control the playback source device determined by the determination module to share target content with the second electronic device determined by the determination module, where the target content is content currently output by the playback source device.
9. The electronic device of claim 8, wherein the determination module comprises a receiving sub-module and a determination sub-module;
the receiving submodule is used for receiving a first identifier sent by third electronic equipment, and the first identifier is used for indicating the third electronic equipment;
the determining submodule is configured to determine that the third electronic device is the playback source device when the identifier stored in the first electronic device includes the first identifier.
10. The electronic device of claim 8, wherein the control module comprises a transmit sub-module;
the sending sub-module is configured to send target indication information to the playback source device, where the target indication information is used to indicate that the playback source device shares the target content with the second electronic device.
11. The electronic device according to claim 10, wherein the sending sub-module is specifically configured to send the target indication information to the playback source device when the second electronic device is different from the playback source device.
12. The electronic device of any of claims 8-11, wherein the first electronic device comprises at least two ultrawideband UWB communication modules;
the determining module is further configured to determine the target direction according to UWB coordinate information of the at least two UWB communication modules before determining the second electronic device located in the target direction.
13. The electronic device of claim 12, wherein said at least two UWB communication modules comprise a first UWB communication module and a second UWB communication module;
the determining module is specifically configured to determine a first straight line where the first UWB communication module and the second UWB communication module are located according to the UWB coordinate information of the first UWB communication module and the UWB coordinate information of the second UWB communication module; and determining the direction in which the first straight line points to be the same as a first preset direction as the target direction.
14. The electronic device of claim 12, wherein said at least two UWB communication modules comprise a first UWB communication module, a second UWB communication module and a third UWB communication module that constitute a right triangle in positional relationship;
the determining module is specifically configured to determine UWB coordinate information of a perpendicular point of the third UWB communication module on a hypotenuse of the right triangle according to the UWB coordinate information of the first UWB communication module, the UWB coordinate information of the second UWB communication module, and the UWB coordinate information of the third UWB communication module; determining a second straight line where the third UWB communication module and the vertical point are located according to the UWB coordinate information of the third UWB communication module and the UWB coordinate information of the vertical point; determining the direction in which the second straight line points to be the same as a second preset direction as the target direction;
wherein the hypotenuse is a line segment connecting the UWB coordinate information of the first UWB communication module and the UWB coordinate information of the second UWB communication module.
CN202010202014.7A 2020-03-20 2020-03-20 Content sharing method and electronic equipment Active CN111399792B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202010202014.7A CN111399792B (en) 2020-03-20 2020-03-20 Content sharing method and electronic equipment
PCT/CN2021/081109 WO2021185254A1 (en) 2020-03-20 2021-03-16 Content sharing method, and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010202014.7A CN111399792B (en) 2020-03-20 2020-03-20 Content sharing method and electronic equipment

Publications (2)

Publication Number Publication Date
CN111399792A true CN111399792A (en) 2020-07-10
CN111399792B CN111399792B (en) 2023-01-17

Family

ID=71435273

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010202014.7A Active CN111399792B (en) 2020-03-20 2020-03-20 Content sharing method and electronic equipment

Country Status (2)

Country Link
CN (1) CN111399792B (en)
WO (1) WO2021185254A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112130788A (en) * 2020-08-05 2020-12-25 华为技术有限公司 Content sharing method and device
CN112954596A (en) * 2021-03-09 2021-06-11 北京小米移动软件有限公司 Data sharing method, device, equipment and storage medium
WO2021185254A1 (en) * 2020-03-20 2021-09-23 维沃移动通信有限公司 Content sharing method, and electronic device

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101682837A (en) * 2007-06-12 2010-03-24 诺基亚公司 establishing wireless links via orientation
CN105321373A (en) * 2015-09-06 2016-02-10 浙江科技学院 Large-scale parking lot vehicle guiding system and guiding method thereof
CN106603609A (en) * 2015-10-16 2017-04-26 中兴通讯股份有限公司 File sending and transmission method and device
CN106817396A (en) * 2015-12-02 2017-06-09 联发科技(新加坡)私人有限公司 The method and electronic equipment of selected target equipment
US20180004372A1 (en) * 2015-06-30 2018-01-04 Motorola Mobility Llc Method and apparatus for controlling sharing of selected content between a portable communication device and a target device
CN110389736A (en) * 2019-06-05 2019-10-29 华为技术有限公司 A kind of throwing screen display methods and electronic equipment
CN110597473A (en) * 2019-07-30 2019-12-20 华为技术有限公司 Screen projection method and electronic equipment
CN110861087A (en) * 2019-11-22 2020-03-06 深圳市优必选科技股份有限公司 Robot initialization positioning method and device, mobile robot and storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110996136B (en) * 2019-12-04 2022-02-11 聚好看科技股份有限公司 Video resource display method and device
CN111399792B (en) * 2020-03-20 2023-01-17 维沃移动通信有限公司 Content sharing method and electronic equipment

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101682837A (en) * 2007-06-12 2010-03-24 诺基亚公司 establishing wireless links via orientation
US20180004372A1 (en) * 2015-06-30 2018-01-04 Motorola Mobility Llc Method and apparatus for controlling sharing of selected content between a portable communication device and a target device
CN105321373A (en) * 2015-09-06 2016-02-10 浙江科技学院 Large-scale parking lot vehicle guiding system and guiding method thereof
CN106603609A (en) * 2015-10-16 2017-04-26 中兴通讯股份有限公司 File sending and transmission method and device
CN106817396A (en) * 2015-12-02 2017-06-09 联发科技(新加坡)私人有限公司 The method and electronic equipment of selected target equipment
CN110389736A (en) * 2019-06-05 2019-10-29 华为技术有限公司 A kind of throwing screen display methods and electronic equipment
CN110597473A (en) * 2019-07-30 2019-12-20 华为技术有限公司 Screen projection method and electronic equipment
CN110861087A (en) * 2019-11-22 2020-03-06 深圳市优必选科技股份有限公司 Robot initialization positioning method and device, mobile robot and storage medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021185254A1 (en) * 2020-03-20 2021-09-23 维沃移动通信有限公司 Content sharing method, and electronic device
CN112130788A (en) * 2020-08-05 2020-12-25 华为技术有限公司 Content sharing method and device
CN112954596A (en) * 2021-03-09 2021-06-11 北京小米移动软件有限公司 Data sharing method, device, equipment and storage medium
CN112954596B (en) * 2021-03-09 2023-02-28 北京小米移动软件有限公司 Data sharing method, device, equipment and storage medium

Also Published As

Publication number Publication date
WO2021185254A1 (en) 2021-09-23
CN111399792B (en) 2023-01-17

Similar Documents

Publication Publication Date Title
CN110995923B (en) Screen projection control method and electronic equipment
CN107734175B (en) Notification message prompting method and mobile terminal
CN109862504B (en) Display method and terminal equipment
CN109032486B (en) Display control method and terminal equipment
CN109871164B (en) Message sending method and terminal equipment
CN111083684A (en) Method for controlling electronic equipment and electronic equipment
CN109032468B (en) Method and terminal for adjusting equipment parameters
CN111399792B (en) Content sharing method and electronic equipment
CN111130989B (en) Information display and sending method and electronic equipment
CN109710349B (en) Screen capturing method and mobile terminal
CN109257505B (en) Screen control method and mobile terminal
CN110673770B (en) Message display method and terminal equipment
CN109412932B (en) Screen capturing method and terminal
CN107608606A (en) A kind of image display method, mobile terminal and computer-readable recording medium
CN111124706A (en) Application program sharing method and electronic equipment
CN108551525B (en) State determination method of movement track and mobile terminal
CN111131607A (en) Information sharing method, electronic equipment and computer readable storage medium
CN111107223B (en) Message processing method and electronic equipment
CN110022551B (en) Information interaction method and terminal equipment
CN109104573B (en) Method for determining focusing point and terminal equipment
CN111061446A (en) Display method and electronic equipment
CN109117037B (en) Image processing method and terminal equipment
CN110851219A (en) Information processing method and electronic equipment
CN110058686A (en) A kind of control method and terminal device
CN111142998B (en) Background application sharing method and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant