Data sharing method, electronic device and storage medium
By automatically establishing a communication connection between the first electronic device and the second electronic device, the complex data sharing operation between the devices is solved, and convenient and efficient data transmission is achieved.
Patent Information
- Application Number
- PCT/CN2024/134641
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-11-28
- Filing Date
- 2024-11-26
- Publication Date
- 2025-06-05
AI Technical Summary
In the prior art, the data sharing operation process between devices is complicated and difficult to simplify.
By detecting the user's operation and when the first electronic device and the second electronic device satisfy a specific placement posture, a communication connection is automatically established, and the data or URL of the data is sent to the second electronic device.
It improves the convenience of data transmission between devices, simplifies user operations, and improves the efficiency of data sharing.
Smart Images

Figure CN2024134641_05062025_PF_FP_ABST
Abstract
Description
Data sharing method, electronic device and storage medium
[0001] This application claims priority to the Chinese patent application with application number 202311615739.9 filed with the State Intellectual Property Office of China on November 28, 2023, and priority to the Chinese patent application with the invention name “A data sharing method, electronic device and storage medium”, all contents of which are incorporated by reference into this application. Technical Field
[0002] The present application relates to the field of terminal technology, and in particular to a data sharing method, electronic device, and storage medium. Background Art
[0003] With the advancement of wireless communication technology, smartphones, tablets, and other devices now support sharing data such as images and documents with other devices, improving productivity and overall work experience. For example, users can now share images, documents, and other data from their smartphones to other devices without the need for cables. Currently, sharing data from portable devices like smartphones with other devices is a complex process. Further research is needed to simplify the process of data sharing between devices. Summary of the Invention
[0004] The present application provides a data sharing method, electronic device and storage medium, which improve the convenience of data transmission between devices.
[0005] In a first aspect, the present application provides a data sharing method, which includes: a first electronic device detects a first operation of a user, wherein the first operation is used to share first data to a second electronic device; in response to the first operation, when the first electronic device is in a first placement posture and the second electronic device is in a second placement posture, the first electronic device establishes a first communication connection with the second electronic device; the first electronic device sends the first data or the URL of the first data to the second electronic device through the first communication connection.
[0006] In some embodiments, the first operation may be an operation of selecting the first data. For example, the operation of the user sharing the first data may be an operation of causing the electronic device 100 to display the first data.
[0007] In some embodiments, the first operation may also be an operation of selecting the first data and selecting a share option. In this implementation, the user may select multiple data and click (e.g., single-click) the share option, so that the electronic device 100 may send the multiple data to the electronic device 200 at once. The first operation may also be implemented in other ways.
[0008] Through this method, after the first electronic device recognizes that the first electronic device and the second electronic device meet a specific posture, the first electronic device can automatically establish a communication connection with the second electronic device and share the first data with the second electronic device, thereby improving the convenience of data transmission between devices.
[0009] In combination with the first aspect, in one possible implementation, when the first electronic device is in a first placement posture and the second electronic device is in a second placement posture, the first electronic device establishes a first communication connection with the second electronic device, specifically including: when the first electronic device is in the first placement posture, the first electronic device sends a first broadcast to the second electronic device in the second placement posture; after receiving the first broadcast, the second electronic device sends a second broadcast to the first electronic device; after receiving the second broadcast, the first electronic device establishes a first communication connection with the second electronic device.
[0010] Optionally, when a first electronic device is in a first placement posture and identifies a target electronic device in a second placement posture, the first electronic device may transmit a first broadcast for discovering the target electronic device in the second placement posture. Receiving the first broadcast is not limited to the second electronic device in the second placement posture; other electronic devices located near the first electronic device may also receive the first broadcast.
[0011] After the second electronic device receives the first broadcast, if the second electronic device supports fast data transmission capability, the second electronic device may send a second broadcast to the first electronic device, so that the first electronic device determines that the second electronic device is the target electronic device.
[0012] Optionally, the second broadcast carries a first identifier, and the first identifier is used to indicate that the second electronic device supports fast data transmission capability. The first electronic device can determine that the second electronic device is the target electronic device based on the first identifier carried in the second broadcast.
[0013] In combination with the first aspect, in one possible implementation, the second broadcast carries first posture information, and the first posture information is used to indicate that the second electronic device is in the second placement posture; after receiving the second broadcast, the first electronic device establishes a first communication connection with the second electronic device, specifically including: when it is detected that the first electronic device is in the first placement posture and the second electronic device is in the second placement posture, the first electronic device establishes a first communication connection with the second electronic device.
[0014] Optionally, the first posture information may be an identifier for indicating the second placement posture, or may be original data collected by the second electronic device, and the posture information of the second electronic device may be obtained from the original data.
[0015] After the first electronic device receives the second broadcast, if the first electronic device is in the first placement posture and the second electronic device is determined to be in the second placement posture based on the first posture information, the first electronic device can determine that the second electronic device is the target electronic device. In this way, when the first electronic device and the second electronic device meet the specific placement posture, the first electronic device determines that the second electronic device is the target electronic device and establishes a first communication connection with the second electronic device, which can improve the accuracy of the automatic establishment of the communication connection between the first electronic device and the target electronic device.
[0016] In combination with the first aspect, in one possible implementation, the first placement posture and the second placement posture are different; before the first electronic device sends the first data or the URL of the first data to the second electronic device through the first communication connection, the method also includes: in response to the first operation, the first electronic device displays a first interface, and the first interface includes the first data.
[0017] In this way, when the first placement posture and the second placement posture are different, the first electronic device can send the displayed first data or the URL of the first data to the second electronic device through the first communication connection, and the second electronic device receives the first data or the URL of the first data to realize one-way data sharing.
[0018] Optionally, in response to receiving the first data or the URL of the first data, the second electronic device may also display the first data.
[0019] In combination with the first aspect, in one possible implementation, the first placement posture and the second placement posture are the same; after the first electronic device establishes a first communication connection with the second electronic device, the method also includes: the second electronic device sends the second data or the URL of the second data to the first electronic device through the first communication connection; wherein the data type of the second data is the same as the data type of the first data.
[0020] Optionally, when the first electronic device and the second electronic device are in the same placement posture, the first electronic device may display the first data or not. Similarly, the second electronic device may display the second data or not.
[0021] In this way, when the first placement posture and the second placement posture are the same, the first electronic device can send the first data or the URL of the first data to the second electronic device through the first communication connection, and the second electronic device can also send the second data or the URL of the second data to the first electronic device through the first communication connection to achieve two-way data sharing.
[0022] The data type of the second data is the same as the data type of the first data. Thus, when the first electronic device and the second electronic device are in the same placement posture, the first electronic device and the second electronic device can share the same type of data with each other.
[0023] In combination with the first aspect, in one possible implementation, the first broadcast carries second posture information, and the second posture information is used to indicate that the first electronic device is in a first placement posture; the second electronic device sends the second data or the URL of the second data to the first electronic device through the first communication connection, specifically including: when it is detected that the first placement posture and the second placement posture are the same, the second electronic device sends the second data or the URL of the second data to the first electronic device through the first communication connection.
[0024] Optionally, the second posture information may be an identifier for indicating the first placement posture, or may be original data collected by the first electronic device, and the posture information of the first electronic device may be obtained from the original data.
[0025] Through this method, when the second electronic device is in the second placement posture and determines that the first electronic device is in the first placement posture based on the second posture information carried in the first broadcast, the second electronic device can send the second data or the URL of the second data to the first electronic device through the first communication connection to realize two-way data sharing.
[0026] In combination with the first aspect, in a possible implementation method, when the first placement posture and the second placement posture are of the first posture type, the data type of the first data and the data type of the second data are both of the first data type; when the first placement posture and the second placement posture are of the second posture type, the data type of the first data and the data type of the second data are both of the second data type; wherein the first posture type is different from the second posture type, and the first data type and the second data type are different.
[0027] In this way, when the first electronic device and the second electronic device are in the same placement posture of different types, different types of data can be shared between the first electronic device and the second electronic device, enriching the scenarios of data sharing between the devices.
[0028] In combination with the first aspect, in a possible implementation, the first gesture type and the second gesture type may be any one of the following: a horizontal screen placement gesture and a vertical screen placement gesture.
[0029] In combination with the first aspect, in a possible implementation, the first placement posture is a horizontal screen placement posture, and the second placement posture is a vertical screen placement posture; or, the first placement posture is a vertical screen placement posture, and the second placement posture is a horizontal screen placement posture.
[0030] In combination with the first aspect, in one possible implementation, a first camera is configured on a first electronic device; when the first electronic device is in a first placement posture, the first electronic device sends a first broadcast to a second electronic device in a second placement posture, specifically including: when the first electronic device is in the first placement posture and it is determined based on an image captured by the first camera that there is an electronic device in the second placement posture, the first electronic device sends the first broadcast to the second electronic device in the second placement posture.
[0031] Optionally, when the first electronic device recognizes an image of an unknown device through the first camera, the first electronic device may not send the first broadcast.
[0032] In this way, when the first electronic device recognizes the device image through the first camera and determines whether there is an electronic device in the second placement posture, the first electronic device will then send the first broadcast. This can improve the accuracy of the first electronic device in identifying the target electronic device when sending the first broadcast, and avoid accidental touches.
[0033] In combination with the first aspect, in a possible implementation method, when the first electronic device is in a first placement posture and based on the image captured by the first camera, it is determined that there is an electronic device in a second placement posture, the first electronic device sends a first broadcast to the second electronic device in the second placement posture, specifically including: when the first camera is a front camera, and the first electronic device is in the first placement posture and based on the image captured by the first camera, it is determined that there is an electronic device in the second placement posture, and the image captured by the first camera includes an image of the display screen of the electronic device in the second placement posture, the first electronic device sends a first broadcast to the second electronic device in the second placement posture.
[0034] In this way, when the first camera is a front camera and the image captured by the first camera includes an image of the display screen of the electronic device in the second placement posture, it means that the first electronic device and the second electronic device are in a face-to-face placement posture. The user can actively operate to place the first electronic device and the second electronic device in a face-to-face placement posture, and the first electronic device can then send the first broadcast, which can further prevent accidental touches.
[0035] In combination with the first aspect, in a possible implementation, the method also includes: in response to the first operation, when the first electronic device is in a first placement posture and the third electronic device is in a second placement posture, the first electronic device establishes a second communication connection with the third electronic device; the first electronic device sends the first data or the URL of the first data to the third electronic device through the second communication connection.
[0036] In this way, the first electronic device can establish communication connections with multiple electronic devices at the same time, and the first electronic device can simultaneously send the first data or the URL of the first data to multiple electronic devices with established communication connections, thereby improving the efficiency of data sharing between devices.
[0037] In combination with the first aspect, in a possible implementation, the first data includes any one of the following: a picture, a video, a document, music, a web page, or an application installation package.
[0038] In a second aspect, the present application provides a data sharing method, which includes: a first electronic device detects a first operation of a user, wherein the first operation is used to share first data to a second electronic device; in response to the first operation, when the first electronic device is in a first placement posture and the second electronic device is in a second placement posture, the first electronic device establishes a first communication connection with the second electronic device; the first electronic device sends the first data or the URL of the first data to the second electronic device through the first communication connection.
[0039] In combination with the second aspect, in one possible implementation, when the first electronic device is in a first placement posture and the second electronic device is in a second placement posture, the first electronic device establishes a first communication connection with the second electronic device, specifically including: when the first electronic device is in the first placement posture, the first electronic device sends a first broadcast to the second electronic device in the second placement posture; after receiving the second broadcast sent by the second electronic device, the first electronic device establishes a first communication connection with the second electronic device; wherein, the second broadcast is sent by the second electronic device to the first electronic device after receiving the first broadcast.
[0040] In combination with the second aspect, in one possible implementation, the second broadcast carries first posture information, and the first posture information is used to indicate that the second electronic device is in the second placement posture; after receiving the second broadcast, the first electronic device establishes a first communication connection with the second electronic device, specifically including: when it is detected that the first electronic device is in the first placement posture and the second electronic device is in the second placement posture, the first electronic device establishes a first communication connection with the second electronic device.
[0041] In combination with the second aspect, in one possible implementation, the first placement posture and the second placement posture are different; before the first electronic device sends the first data or the URL of the first data to the second electronic device through the first communication connection, the method also includes: in response to the first operation, the first electronic device displays a first interface, and the first interface includes the first data.
[0042] In combination with the second aspect, in one possible implementation, the first placement posture and the second placement posture are the same; after the first electronic device establishes a first communication connection with the second electronic device, the method also includes: the first electronic device receives the second data or the URL of the second data sent by the second electronic device through the first communication connection; wherein the data type of the second data is the same as the data type of the first data.
[0043] In combination with the second aspect, in one possible implementation, the first broadcast carries second posture information, and the second posture information is used to indicate that the first electronic device is in a first placement posture; the second data or the URL of the second data is sent to the first electronic device through the first communication connection when the second electronic device detects that the first placement posture and the second placement posture are the same.
[0044] In combination with the second aspect, in one possible implementation, when the first placement posture and the second placement posture are of the first posture type, the data type of the first data and the data type of the second data are both of the first data type; when the first placement posture and the second placement posture are of the second posture type, the data type of the first data and the data type of the second data are both of the second data type; wherein the first posture type is different from the second posture type, and the first data type and the second data type are different.
[0045] In conjunction with the second aspect, in a possible implementation, the first gesture type and the second gesture type may be any one of the following: a horizontal screen placement gesture and a vertical screen placement gesture.
[0046] In combination with the second aspect, in a possible implementation, the first placement posture is a horizontal screen placement posture, and the second placement posture is a vertical screen placement posture; or, the first placement posture is a vertical screen placement posture, and the second placement posture is a horizontal screen placement posture.
[0047] In combination with the second aspect, in one possible implementation, a first camera is configured on a first electronic device; when the first electronic device is in a first placement posture, the first electronic device sends a first broadcast to a second electronic device in a second placement posture, specifically including: when the first electronic device is in the first placement posture and based on an image captured by the first camera, it is determined that there is an electronic device in the second placement posture, the first electronic device sends the first broadcast to the second electronic device in the second placement posture.
[0048] In combination with the second aspect, in a possible implementation method, when the first electronic device is in a first placement posture and based on the image captured by the first camera, it is determined that there is an electronic device in a second placement posture, the first electronic device sends a first broadcast to the second electronic device in the second placement posture, specifically including: when the first camera is a front camera, and the first electronic device is in the first placement posture and based on the image captured by the first camera, it is determined that there is an electronic device in the second placement posture, and the image captured by the first camera includes an image of the display screen of the electronic device in the second placement posture, the first electronic device sends a first broadcast to the second electronic device in the second placement posture.
[0049] In combination with the second aspect, in a possible implementation, the method also includes: in response to the first operation, when the first electronic device is in a first placement posture and the third electronic device is in a second placement posture, the first electronic device establishes a second communication connection with the third electronic device; the first electronic device sends the first data or the URL of the first data to the third electronic device through the second communication connection.
[0050] In combination with the second aspect, in a possible implementation, the first data includes any one of the following: a picture, a video, a document, music, a web page, or an application installation package.
[0051] In a third aspect, the present application provides an electronic device, which is a first electronic device, and the first electronic device includes a camera, a memory, and a processor; wherein the camera, the memory, and the processor are coupled, and the memory is used to store a computer program. When the processor executes and calls the computer program, the first electronic device executes a data sharing method provided in any possible implementation of any of the above aspects.
[0052] In a fourth aspect, the present application provides an electronic device, which is a second electronic device, and the second electronic device includes a camera, a memory, and a processor; wherein the camera, the memory, and the processor are coupled, and the memory is used to store a computer program. When the processor executes and calls the computer program, the second electronic device executes a data sharing method provided in any possible implementation of any of the above aspects.
[0053] In a fifth aspect, the present application provides a computer-readable storage medium comprising instructions, which, when executed on a first electronic device, enables the first electronic device to execute a data sharing method provided in any possible implementation of any of the above aspects.
[0054] In a sixth aspect, the present application provides a computer-readable storage medium comprising instructions, which, when executed on a second electronic device, enables the second electronic device to execute a data sharing method provided in any possible implementation of any of the above aspects.
[0055] In a seventh aspect, the present application provides a chip system, which includes one or more processors, and the processor is used to call computer instructions to enable a first electronic device to execute a data sharing method provided in any possible implementation of any of the above aspects.
[0056] In an eighth aspect, the present application provides a chip system, which includes one or more processors, and the processor is used to call computer instructions to enable a second electronic device to execute a data sharing method provided in any possible implementation of any of the above aspects.
[0057] In a ninth aspect, the present application provides a computer program product comprising instructions, which, when run on a first electronic device, enables the first electronic device to execute a data sharing method provided in any possible implementation of any of the above aspects.
[0058] In a tenth aspect, the present application provides a computer program product comprising instructions, which, when executed on a second electronic device, enables the second electronic device to execute a data sharing method provided in any possible implementation of any of the above aspects.
[0059] For the description of the beneficial effects of the second to tenth aspects, reference may be made to the description of the beneficial effects in the first aspect, and this application will not repeat them here. BRIEF DESCRIPTION OF THE DRAWINGS
[0060] 1A-1C are schematic diagrams showing electronic device 100 sharing a picture with electronic device 200;
[0061] FIG2 is a system architecture diagram provided by this application;
[0062] FIG3 shows a schematic structural diagram of the electronic device 100;
[0063] FIG4A exemplarily shows a software system architecture diagram of an electronic device 100 provided in an embodiment of the present application;
[0064] FIG4B shows a schematic diagram of the interaction between multiple different functional modules in FIG4A ;
[0065] 5A-5M are schematic diagrams showing electronic device 100 sharing a picture with electronic device 200;
[0066] 6A-6J are schematic diagrams showing electronic device 100 sharing a link with electronic device 200;
[0067] 7A-7J are schematic diagrams showing electronic device 100 sharing a document with electronic device 200;
[0068] 7K-7N are schematic diagrams showing electronic device 100 sharing an application installation package with electronic device 200;
[0069] 7O-7P are schematic diagrams showing the electronic device 100 sending specific data to the electronic device 200 through the fast data transfer capability;
[0070] 8A-8B are schematic diagrams showing electronic device 100 sharing pictures in a gallery application with electronic device 200 and electronic device 300 at the same time;
[0071] FIG9 is a schematic flow chart showing a method for electronic device 100 to share data with electronic device 200 through fast data transmission capability;
[0072] 10A-10D are schematic diagrams showing a two-way data sharing scenario;
[0073] FIG10E shows a schematic diagram of electronic device 100 and electronic device 200 sharing an application installation package with each other;
[0074] FIG11 is a schematic flow chart showing a method for electronic device 100 and electronic device 200 to share data with each other through fast data transfer capability;
[0075] FIG12 is a flow chart of a data sharing method provided in this application. DETAILED DESCRIPTION
[0076] The following is a clear and detailed description of the technical solutions in the embodiments of the present application in conjunction with the accompanying drawings. In the description of the embodiments of the present application, unless otherwise specified, " / " means or, for example, A / B can mean A or B; "and / or" in the text is only a description of the association relationship between related objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, "multiple" means two or more than two.
[0077] In the following, the terms "first" and "second" are used for descriptive purposes only and should not be understood to imply or suggest relative importance or implicitly indicate the number of the technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the embodiments of this application, unless otherwise specified, "plurality" means two or more.
[0078] The term "user interface (UI)" in the following embodiments of this application refers to the media interface for interaction and information exchange between an application or operating system and a user, which realizes the conversion between the internal form of information and the form acceptable to the user. A common form of user interface is a graphical user interface (GUI), which refers to a user interface related to computer operations that is displayed in a graphical manner. It can be a visual interface element such as text, icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, widgets, etc. displayed on the display screen of an electronic device.
[0079] The electronic device 100 can receive user operations to share data such as pictures, documents, videos, etc. on the electronic device 100 with the electronic device 200.
[0080] 1A-1C are schematic diagrams showing electronic device 100 sharing a picture with electronic device 200 .
[0081] For example, as shown in FIG1A , the electronic device 100 may display a picture display interface 1010. The picture display interface 1010 includes a picture 1011 and a menu 1012. The menu 1012 may include a share button 1013, a favorite button 1014, an edit button 1015, a delete button 1016, and a more button 1017. The picture 1011 may have a title, for example, “Landscape.” The share button 1013 may be used to trigger the opening of the system share interface. The favorite button 1014 may be used to trigger the collection of the picture 1011 to a picture collection folder. The edit button 1015 may be used to trigger editing functions such as rotating, cropping, adding filters, blurring, etc. on the picture 1011. The delete button 1016 may be used to trigger the deletion of the picture 1011. The more button 1017 may be used to trigger the opening of more picture-related functions.
[0082] The electronic device 100 may receive a user input (eg, a single click) on the share button 1013 . In response to the input, the electronic device 100 may display a system sharing interface 1020 as shown in FIG. 1B .
[0083] As shown in Figure 1B, the system sharing interface 1020 includes area 1021, area 1022 and area 1023. Among them, area 1021 can be used to display one or more pictures or videos in the gallery of electronic device 100, and these one or more pictures or videos may include pictures or videos selected by the user. Among them, a mark can be displayed on the selected picture, and the mark can be used to indicate that the corresponding picture is selected (that is, the picture has been selected by the user). The picture or video screen displayed in this area 1021 can be a thumbnail. The original picture corresponding to the picture or video screen displayed in area 1021 can be stored on the electronic device 100.
[0084] A Huawei share option is displayed in area 1022. The Huawei share option allows the electronic device 100 to share the user's selected picture or video to other devices via Bluetooth or Wi-Fi.
[0085] Area 1023 may display one or more service option icons (for example, a chat application icon, a welink application icon, a Changlian application icon, a chat application icon, an email application icon, a browser application icon, a message application icon, a WLAN direct connection icon, etc.). The application or protocol corresponding to the service option may support sharing user-selected pictures with contacts or servers. Users can share data through the application or protocol corresponding to the service option. For example, sharing the selected picture with one or more contacts in the chat application, or sharing the selected picture with the dynamic publishing platform (i.e., server) of the chat application, and so on.
[0086] Exemplarily, as shown in FIG1B , the electronic device 100 may receive a user input (e.g., a single click) for a Huawei sharing option in area 1022. In response to the input, the electronic device 100 may display a system sharing interface 1030 as shown in FIG1C . The system sharing interface 1030 is similar to the system sharing interface 1020, except that area 1022 of the system sharing interface 1030 includes options for nearby devices discovered by the electronic device 100 (e.g., “Alee’s phone” option, “HUAWEIP50” option, “HUAWEIP50 Pro” option). Among them, the electronic device 100 may display a search prompt in area 1022 when searching for nearby devices (e.g., text prompts such as “discovering nearby devices, the other party needs to turn on Bluetooth, WLAN”).
[0087] For example, as shown in FIG1C , the electronic device 100 may receive user input (e.g., a single click) for the option “Alee’s phone.” In response to the input, the electronic device 100 may send the picture or video selected by the user to a nearby device corresponding to the option “Alee’s phone” via Bluetooth or Wi-Fi.
[0088] Not limited to sharing pictures, users can also share videos, documents, links, contact cards and other data on the electronic device 100 to other devices through the methods shown in Figures 1A-1C.
[0089] As can be seen from the operation process of electronic device 100 sharing pictures with other devices shown in Figures 1A to 1C, the user needs to first select the picture or video to share, then enable the Huawei share function, then select the device to share, and finally send the selected picture or video to the selected device to share. The user operation is relatively cumbersome.
[0090] In order to simplify the operation steps of sharing data between devices, the present application provides a data sharing method. The method is applied to an electronic device 100 equipped with a low-power camera, which is in a normally-on state.
[0091] The method includes but is not limited to the following stages:
[0092] Phase 1: Device discovery phase.
[0093] The electronic device 100 may capture an image through a low-power camera, and analyze the image captured by the low-power camera to determine whether the image includes a device image.
[0094] When it is recognized that the image captured by the low-power camera includes the device image, device authentication is performed.
[0095] When it is identified that the image captured by the low-power camera does not include the device image, the electronic device 100 continues to capture images through the low-power camera and analyzes the captured images.
[0096] Phase 2: Device authentication and connection establishment phase.
[0097] When the electronic device 100 determines that the image captured by the low-power camera includes the device image, the electronic device 100 may send a broadcast to determine and lock a target electronic device that also supports the fast data transmission capability.
[0098] In response to recognizing the device image, the electronic device 100 may transmit a device discovery broadcast.
[0099] In some embodiments, in order to prevent accidental touches, when a device image is recognized, the electronic device 100 is in a first placement posture, and the device form of the target electronic device in the image recognized by the electronic device 100 is in a second posture, the electronic device 100 sends a broadcast again to determine the target electronic device that also supports fast data transmission capabilities.
[0100] In some embodiments, in order to prevent accidental touches, when a device image is recognized, the low-power camera is the front camera, and the image recognized by the electronic device 100 includes the display screen image of the target electronic device, the electronic device 100 then sends a device discovery broadcast to determine the target electronic device that also supports fast data transmission capabilities.
[0101] One or more electronic devices located near electronic device 100 can receive the device discovery broadcast sent by electronic device 100. For example, electronic device 200 can receive the device discovery broadcast sent by electronic device 100. In response to the received device discovery broadcast, electronic device 200 can send a response broadcast to electronic device 100. When electronic device 100 has the ability to quickly transfer data, the response broadcast carries a swing flag, which is used to indicate that electronic device 200 also supports the fast data transfer capability.
[0102] After receiving the response broadcast sent by electronic device 200, electronic device 100 can determine that electronic device 200 is the target electronic device in response to the swing identifier carried in the response broadcast. In response to electronic device 200 being the target electronic device, electronic device 100 can establish a communication connection with electronic device 200.
[0103] In some embodiments, the response broadcast also carries the placement posture of the electronic device 200. After receiving the response broadcast sent by the electronic device 200, the electronic device 100 can determine that the electronic device 200 is the target electronic device in response to the swing identifier carried in the response broadcast and when the electronic device 100 is in the first placement posture and the electronic device 200 is in the second placement posture. In response to the electronic device 200 being the target electronic device, the electronic device 100 can establish a communication connection with the electronic device 200.
[0104] Phase 3: Data sharing phase.
[0105] After the electronic device 100 establishes a communication connection with the electronic device 200 , the electronic device 100 may send the data to be shared to the electronic device 200 through the communication connection.
[0106] In some embodiments, when the first placement posture and the second placement posture are different, after the electronic device 100 establishes a communication connection with the electronic device 200, the electronic device 100 can send the first data to the electronic device 200, and the electronic device 200 can receive the first data. In this way, a one-way data sharing operation can be implemented.
[0107] For example, the first placement posture may be vertical placement, and the second placement posture may be horizontal placement. For example, the first placement posture may also be horizontal placement, and the second placement posture may be vertical placement. The first placement posture and the second placement posture may also be other postures, which are not limited in this application.
[0108] In some embodiments, when the first placement posture and the second placement posture are the same, after the electronic device 100 and the electronic device 200 establish a communication connection, the electronic device 100 can send the first data to the electronic device 200, and the electronic device 200 receives the first data. At the same time, the electronic device 200 can also send the second data to the electronic device 100, and the electronic device 100 receives the second data. In this way, a two-way data sharing operation can be implemented.
[0109] For example, the first placement posture and the second placement posture may both be vertical placement, or both be horizontal placement. The first placement posture and the second placement posture may also be other postures, which are not limited in this application.
[0110] Through this method, the user does not need to manually share data with the electronic device 200 in the manner shown in Figures 1A to 1C, which not only saves user operations but also improves the data sharing efficiency between devices.
[0111] FIG2 is a system architecture diagram provided by this application.
[0112] As shown in FIG. 2 , the system may include an electronic device 100 and an electronic device 200 .
[0113] The device types of electronic devices 100 and 200 can be any of mobile phones, tablet computers, handheld computers, desktop computers, laptop computers, ultra-mobile personal computers, netbooks, cellular phones, personal digital assistants, smart home devices such as smart screens and smart speakers, wearable devices such as smart bracelets, smart watches, and smart glasses, extended reality devices such as augmented reality, virtual reality, and mixed reality, in-vehicle devices, or smart city devices. In the embodiments of the present application, there is no particular limitation on the specific types of electronic devices 100 and 200.
[0114] In the present application, the electronic device 100 and the electronic device 200 are configured with low-power cameras, and the low-power cameras can be in a normally-on state. The electronic device 100 can capture images through the low-power camera, and analyze the captured images to determine whether the images captured by the low-power camera include device images. In the case of determining that the images captured by the low-power camera include device images, the electronic device 100 can send a broadcast to determine the target electronic device that also supports fast data transmission capabilities, for example, the target electronic device can be the electronic device 200. After locking the electronic device 200. The electronic device 100 can automatically establish a communication connection with the electronic device 200. Thereafter, the electronic device 100 can send the data to be shared to the electronic device 200 through the communication connection. Through this method, user operations are saved and the efficiency of data sharing between devices is improved.
[0115] In some embodiments, in order to prevent accidental touches, when the electronic device 100 is in a first placement posture and the device form of the target electronic device in the device image recognized by the electronic device 100 is in a second posture, the electronic device 100 sends a broadcast again to determine the target electronic device that also supports fast data transmission capabilities.
[0116] In some embodiments, in order to prevent accidental touches, the low-power camera is a front-facing camera. When the image recognized by the electronic device 100 includes the display screen image of the target electronic device, the electronic device 100 sends a broadcast to determine the target electronic device that also supports fast data transmission capabilities.
[0117] The electronic device 100 is not limited to establishing a communication connection with the electronic device 200 at the same time. The electronic device 100 can also establish a communication connection with multiple devices at the same time to enable the electronic device 100 to share data with multiple devices at the same time.
[0118] The following describes the hardware structure of an electronic device 100 provided in an embodiment of the present application.
[0119] FIG3 shows a schematic structural diagram of the electronic device 100 .
[0120] The following embodiments are described in detail using electronic device 100 as an example. It should be understood that the electronic device 100 shown in FIG3 is merely an example, and that electronic device 100 may have more or fewer components than shown in FIG3 , may combine two or more components, or may have a different component configuration. The various components shown in FIG3 may be implemented in hardware, including one or more signal processing and / or application-specific integrated circuits, software, or a combination of hardware and software.
[0121] The electronic device 100 may include: a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.
[0122] It should be understood that the structure illustrated in the embodiments of the present invention does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown, or may combine or separate certain components, or arrange the components differently. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0123] The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU). The different processing units may be independent devices or integrated into one or more processors.
[0124] The controller may be the nerve center and command center of the electronic device 100. The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.
[0125] Processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in processor 110 is a cache memory. This memory can store instructions or data that have just been used or are being recycled by processor 110. If processor 110 needs to use the same instruction or data again, it can directly access the memory. This avoids duplicate accesses, reduces processor 110 latency, and thus improves system efficiency.
[0126] In some embodiments, the processor 110 may include one or more interfaces. The interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface.
[0127] The I2C interface is a bidirectional synchronous serial bus that includes a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 110 may include multiple I2C bus lines. The processor 110 may be coupled to the touch sensor 180K, the charger, the flash, the camera 193, and the like via different I2C bus interfaces. For example, the processor 110 may be coupled to the touch sensor 180K via the I2C interface, enabling communication between the processor 110 and the touch sensor 180K via the I2C bus interface, thereby enabling the touch function of the electronic device 100.
[0128] The I2S interface can be used for audio communication. In some embodiments, the processor 110 can include multiple I2S buses. The processor 110 can be coupled to the audio module 170 via the I2S bus to enable communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 can transmit audio signals to the wireless communication module 160 via the I2S interface, enabling the function of answering calls through a Bluetooth headset.
[0129] The PCM interface can also be used for audio communication, sampling, quantizing, and encoding analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 can be coupled via a PCM bus interface. In some embodiments, the audio module 170 can also transmit audio signals to the wireless communication module 160 via the PCM interface, enabling the function of answering calls via a Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
[0130] The UART interface is a universal serial data bus used for asynchronous communication. This bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, the UART interface is typically used to connect the processor 110 and the wireless communication module 160. For example, the processor 110 communicates with the Bluetooth module in the wireless communication module 160 via the UART interface to implement Bluetooth functionality. In some embodiments, the audio module 170 can transmit audio signals to the wireless communication module 160 via the UART interface, enabling the function of playing music through Bluetooth headphones.
[0131] The MIPI interface can be used to connect the processor 110 to peripheral devices such as the display 194 and the camera 193. MIPI interfaces include the camera serial interface (CSI) and the display serial interface (DSI). In some embodiments, the processor 110 and the camera 193 communicate via the CSI interface to implement the camera function of the electronic device 100. The processor 110 and the display 194 communicate via the DSI interface to implement the display function of the electronic device 100.
[0132] The GPIO interface can be configured via software. The GPIO interface can be configured as either a control signal or a data signal. In some embodiments, the GPIO interface can be used to connect the processor 110 to the camera 193, display 194, wireless communication module 160, audio module 170, sensor module 180, etc. The GPIO interface can also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, etc.
[0133] The USB interface 130 is an interface that complies with USB standards and may be a Mini USB interface, a Micro USB interface, a USB Type-C interface, or the like. The USB interface 130 can be used to connect a charger to charge the electronic device 100, or to transfer data between the electronic device 100 and peripheral devices. It can also be used to connect headphones to play audio. This interface can also be used to connect other electronic devices, such as augmented reality devices.
[0134] It is understood that the interface connection relationship between the modules illustrated in the embodiment of the present invention is merely an illustrative illustration and does not constitute a structural limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection methods from the above embodiments, or a combination of multiple interface connection methods.
[0135] The charging management module 140 is configured to receive charging input from a charger. The charger can be either a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 can receive charging input from the wired charger via the USB interface 130. In some wireless charging embodiments, the charging management module 140 can receive wireless charging input via the wireless charging coil of the electronic device 100. While charging the battery 142, the charging management module 140 can also provide power to the electronic device via the power management module 141.
[0136] The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, and provides power to the processor 110, the internal memory 121, the external memory, the display 194, the camera 193, and the wireless communication module 160. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle count, and battery health status (leakage, impedance). In some other embodiments, the power management module 141 can also be set in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 can also be set in the same device.
[0137] The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
[0138] Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In other embodiments, the antennas can be used in conjunction with a tuning switch.
[0139] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.
[0140] The modem processor may include a modulator and a demodulator. The modulator is used to modulate the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After being processed by the baseband processor, the low-frequency baseband signal is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to the speaker 170A, the receiver 170B, etc.) or displays an image or video through the display screen 194. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be set in the same device as the mobile communication module 150 or other functional modules.
[0141] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the electronic device 100. The wireless communication module 160 can be one or more devices that integrate at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, frequency modulate it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
[0142] In some embodiments, the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with a network and other devices through wireless communication technologies. The wireless communication technologies may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology. The GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and / or a satellite based augmentation system (SBAS).
[0143] Electronic device 100 implements display functionality through a GPU, display screen 194, and an application processor. A GPU is a microprocessor for image processing that connects display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or modify display information.
[0144] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD). The display screen panel can also be made of an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a miniLED, a microLED, a micro-OLED, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device 100 may include one or N display screens 194, where N is a positive integer greater than one.
[0145] The electronic device 100 can implement a shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, and an application processor.
[0146] The ISP processes data fed back by camera 193. For example, when taking a photo, the shutter is opened, and light is transmitted through the lens to the camera's photosensitive element. The light signal is converted into an electrical signal, which is then passed to the ISP for processing and converted into a visible image. The ISP can also perform algorithmic optimization on image noise and brightness. It can also optimize parameters such as exposure and color temperature of the captured scene. In some embodiments, the ISP can be located within camera 193.
[0147] The camera 193 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, and then passes the electrical signal to the ISP for conversion into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format. In some embodiments, the electronic device 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.
[0148] The digital signal processor is used to process digital signals. In addition to processing digital image signals, it can also process other digital signals. For example, when the electronic device 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.
[0149] Video codecs are used to compress or decompress digital video. Electronic device 100 may support one or more video codecs. This allows electronic device 100 to play or record videos in various encoding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, and MPEG4.
[0150] The NPU is a neural network (NN) computing processor. Drawing on the structure of biological neural networks, such as the transmission patterns between neurons in the human brain, it rapidly processes input information and can continuously self-learn. The NPU can enable intelligent cognitive applications in electronic device 100, such as image recognition, face recognition, speech recognition, and text comprehension.
[0151] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 via the external memory interface 120 to implement data storage functions. For example, files such as music and videos can be stored on the external memory card.
[0152] The internal memory 121 can be used to store computer executable program codes, which include instructions. The processor 110 executes various functional applications and data processing of the electronic device 100 by running the instructions stored in the internal memory 121. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area can store data created during the use of the electronic device 100 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.
[0153] The electronic device 100 can implement audio functions such as music playback and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.
[0154] The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. The audio module 170 can also be used to encode and decode audio signals. In some embodiments, the audio module 170 can be provided in the processor 110, or some functional modules of the audio module 170 can be provided in the processor 110.
[0155] The speaker 170A, also called a "speaker", is used to convert audio electrical signals into sound signals. The electronic device 100 can listen to music or listen to hands-free calls through the speaker 170A.
[0156] The receiver 170B, also called a "handset", is used to convert audio electrical signals into sound signals. When the electronic device 100 receives a call or a voice message, the user can place the receiver 170B close to the ear to hear the voice.
[0157] Microphone 170C, also known as "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can speak by putting their mouth close to the microphone 170C to input the sound signal into the microphone 170C. The electronic device 100 can be provided with at least one microphone 170C. In other embodiments, the electronic device 100 can be provided with two microphones 170C, which can not only collect sound signals but also realize noise reduction function. In other embodiments, the electronic device 100 can also be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify the source of sound, realize directional recording function, etc.
[0158] The headphone jack 170D is used to connect a wired headphone and can be the USB interface 130 or a 3.5mm open mobile terminal platform (OMTP) standard interface or a cellular telecommunications industry association of the USA (CTIA) standard interface.
[0159] Pressure sensor 180A is used to sense pressure signals and convert them into electrical signals. In some embodiments, pressure sensor 180A can be located on display screen 194. There are many types of pressure sensors 180A, such as resistive, inductive, and capacitive. A capacitive pressure sensor can include at least two parallel plates made of conductive material. When force acts on pressure sensor 180A, the capacitance between the electrodes changes. Electronic device 100 determines the intensity of the pressure based on this change in capacitance. When a touch operation is applied to display screen 194, electronic device 100 detects the touch intensity based on pressure sensor 180A. Electronic device 100 can also calculate the touch location based on the detection signal from pressure sensor 180A. In some embodiments, touch operations applied to the same touch location but with different touch intensities can correspond to different operation instructions. For example, when a touch operation with an intensity less than a first pressure threshold is applied to a short message application icon, a command to view short messages is executed. When a touch operation with an intensity greater than or equal to the first pressure threshold is applied to a short message application icon, a command to create a new short message is executed.
[0160] The gyroscope sensor 180B can be used to determine the motion posture of the electronic device 100. In some embodiments, the angular velocity of the electronic device 100 around three axes (i.e., x, y, and z axes) can be determined by the gyroscope sensor 180B. The gyroscope sensor 180B can be used for anti-shake shooting. For example, when the shutter is pressed, the gyroscope sensor 180B detects the angle of the electronic device 100 shaking, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to offset the shaking of the electronic device 100 through reverse movement to achieve anti-shake. The gyroscope sensor 180B can also be used for navigation and somatosensory game scenes.
[0161] The air pressure sensor 180C is used to measure air pressure. In some embodiments, the electronic device 100 calculates the altitude using the air pressure value measured by the air pressure sensor 180C to assist in positioning and navigation.
[0162] The magnetic sensor 180D includes a Hall sensor. The electronic device 100 can use the magnetic sensor 180D to detect the opening and closing of the flip case. In some embodiments, when the electronic device 100 is a flip phone, the electronic device 100 can detect the opening and closing of the flip cover based on the magnetic sensor 180D. Based on the detected opening and closing status of the case or flip cover, features such as automatic unlocking of the flip cover can be configured.
[0163] Accelerometer 180E can detect the magnitude of acceleration of electronic device 100 in all directions (generally three axes). It can also detect the magnitude and direction of gravity when electronic device 100 is stationary. It can also be used to identify the electronic device's posture, enabling applications such as switching between landscape and portrait modes and pedometers.
[0164] The distance sensor 180F is used to measure distance. The electronic device 100 can measure distance using infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 can use the distance sensor 180F to measure distance to achieve fast focusing.
[0165] The proximity light sensor 180G may include, for example, a light emitting diode (LED) and a light detector, such as a photodiode. The light emitting diode may be an infrared light emitting diode. The electronic device 100 emits infrared light outward through the light emitting diode. The electronic device 100 uses a photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device 100. When insufficient reflected light is detected, the electronic device 100 can determine that there is no object near the electronic device 100. The electronic device 100 can use the proximity light sensor 180G to detect that the user is holding the electronic device 100 close to the ear to talk, so as to automatically turn off the screen to save power. The proximity light sensor 180G can also be used in leather case mode and pocket mode to automatically unlock and lock the screen.
[0166] Ambient light sensor 180L is used to sense ambient light brightness. Electronic device 100 can adaptively adjust the brightness of display screen 194 based on the perceived ambient light. Ambient light sensor 180L can also be used to automatically adjust white balance when taking photos. Ambient light sensor 180L can also work with proximity light sensor 180G to detect whether electronic device 100 is in a pocket to prevent accidental touches.
[0167] The fingerprint sensor 180H is used to collect fingerprints. The electronic device 100 can use the collected fingerprint characteristics to implement fingerprint unlocking, access application locks, fingerprint photography, fingerprint call answering, etc.
[0168] The temperature sensor 180J is used to detect temperature. In some embodiments, the electronic device 100 uses the temperature detected by the temperature sensor 180J to execute a temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold, the electronic device 100 reduces the performance of the processor located near the temperature sensor 180J to reduce power consumption and implement thermal protection. In other embodiments, when the temperature is lower than another threshold, the electronic device 100 heats the battery 142 to prevent the electronic device 100 from shutting down abnormally due to low temperature. In other embodiments, when the temperature is lower than another threshold, the electronic device 100 boosts the output voltage of the battery 142 to prevent abnormal shutdown due to low temperature.
[0169] The touch sensor 180K is also called a "touch panel." The touch sensor 180K can be disposed on the display screen 194. The touch sensor 180K and the display screen 194 form a touch screen, also called a "touch screen." The touch sensor 180K is used to detect touch operations applied thereto or in the vicinity thereof. The touch sensor can transmit the detected touch operations to the application processor to determine the type of touch event. Visual output related to the touch operations can be provided via the display screen 194. In other embodiments, the touch sensor 180K can also be disposed on the surface of the electronic device 100, at a location different from that of the display screen 194.
[0170] The bone conduction sensor 180M can obtain vibration signals. In some embodiments, the bone conduction sensor 180M can obtain vibration signals from the vibrating bones of the human body. The bone conduction sensor 180M can also contact the human pulse to receive blood pressure pulse signals. In some embodiments, the bone conduction sensor 180M can also be set in headphones to form bone conduction headphones. The audio module 170 can parse out voice signals based on the vibration signals of the vibrating bones of the human body obtained by the bone conduction sensor 180M to implement voice functions. The application processor can parse heart rate information based on the blood pressure pulse signals obtained by the bone conduction sensor 180M to implement heart rate detection functions.
[0171] The buttons 190 include a power button, a volume button, and the like. The buttons 190 may be mechanical buttons or touch buttons. The electronic device 100 may receive key inputs and generate key signal inputs related to user settings and function control of the electronic device 100.
[0172] Motor 191 can generate vibration prompts. Motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. For example, touch operations acting on different applications (such as taking pictures, audio playback, etc.) can correspond to different vibration feedback effects. For touch operations acting on different areas of the display screen 194, motor 191 can also correspond to different vibration feedback effects. Different application scenarios (for example: time reminders, receiving messages, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.
[0173] The indicator 192 may be an indicator light, which may be used to indicate the charging status, power level changes, messages, missed calls, notifications, etc.
[0174] The SIM card interface 195 is used to connect a SIM card.
[0175] The following describes the software system of the electronic device 100 provided in the embodiment of the present application.
[0176] FIG4A exemplarily illustrates a software system architecture diagram of an electronic device 100 provided in an embodiment of the present application. The software system of the electronic device 100 can adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture. For example, the layered architecture software system can be an Android system, a Harmony operating system (OS), or other software systems.
[0177] Fig. 4A is a block diagram of the software structure of the electronic device 100 according to an embodiment of the present invention. Fig. 4A takes the Android system with a layered architecture as an example to exemplify the software architecture of the electronic device 100.
[0178] A layered architecture divides software into several layers, each with distinct roles and responsibilities. Layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers: the application layer, the application framework layer, the Android runtime and system libraries, and the kernel layer.
[0179] The application layer can include a series of application packages.
[0180] As shown in FIG4A , the application package may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, and short message.
[0181] The application framework layer provides an application programming interface (API) and programming framework for applications in the application layer. The application framework layer includes some predefined functions.
[0182] As shown in Figure 4A, the application framework layer may include a device discovery module, a data sharing module, and a communication module. The communication module may include but is not limited to a wireless fidelity Wi-Fi function module and a Bluetooth function module.
[0183] Among them, the device discovery module is used to send a device discovery broadcast after receiving the message sent by the low-power chip to determine the target electronic device that also supports the fast data transmission capability.
[0184] The device discovery module is further configured to send a connection establishment message to the communication module when it is determined that the target electronic device also supports the fast data transmission capability.
[0185] The communication module is used to establish a communication connection with the target electronic device through the Wireless Fidelity Wi-Fi function module or the Bluetooth function module in response to the connection establishment message sent by the device discovery module.
[0186] The data sharing module is used to share the data in the application to the target electronic device through the communication connection after the electronic device 100 establishes a communication connection with the target electronic device.
[0187] The application framework layer may also include a window manager, content provider, view system, telephony manager, resource manager, notification manager, etc.
[0188] The window manager is used to manage window programs. The window manager can obtain the display size, determine whether there is a status bar, lock the screen, take screenshots, etc.
[0189] Content providers are used to store and retrieve data and make it accessible to applications. The data may include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
[0190] The view system includes visual controls, such as those for displaying text and images. The view system is used to build applications. A display interface can consist of one or more views. For example, a display interface containing a text notification icon might include a view for displaying text and a view for displaying images.
[0191] The phone manager is used to provide communication functions of the electronic device 100, such as management of call status (including answering, hanging up, etc.).
[0192] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.
[0193] The Notification Manager allows applications to display notifications in the status bar. These messages can be displayed briefly and then disappear automatically without user interaction. For example, the Notification Manager is used to notify users of completed downloads and message reminders. The Notification Manager can also display notifications in the top status bar of the system as icons or scrolling text, such as notifications from background applications, or as dialog windows on the screen. Examples include text messages in the status bar, beeps, vibrations on electronic devices, and flashing indicator lights.
[0194] Android Runtime includes core libraries and a virtual machine. Android runtime is responsible for scheduling and management of the Android system.
[0195] The core library consists of two parts: one is the function that needs to be called by the Java language, and the other is the Android core library.
[0196] The application layer and application framework layer run in a virtual machine. The virtual machine executes Java files in the application layer and application framework layer as binary files. The virtual machine manages object lifecycles, stack management, thread management, security and exception management, and garbage collection.
[0197] The system library can include multiple functional modules, such as surface manager, media library, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.
[0198] The surface manager is used to manage the display subsystem and provide fusion of 2D and 3D layers for multiple applications.
[0199] The media library supports playback and recording of a variety of common audio and video formats, as well as static image files. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
[0200] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
[0201] A 2D graphics engine is a drawing engine for 2D drawings.
[0202] The kernel layer is the layer between hardware and software. The kernel layer includes at least display driver, camera driver, audio driver, and sensor driver.
[0203] The hardware layer includes low-power cameras and low-power chips.
[0204] The low-power camera can be a front-facing camera or a rear-facing camera, which is not limited in this application. The low-power camera can be in a normally-on state. The low-power camera can periodically or irregularly capture images and send the images captured by the low-power camera to the low-power chip. The low-power chip can recognize the images captured by the low-power camera to obtain image recognition results. The image recognition results may include but are not limited to facial images, gesture images, animal images, plant images, device images, etc.
[0205] After obtaining the image recognition result, the low-power chip can determine whether the image is a device image based on the image recognition result. Device images may include, but are not limited to, any of the following: mobile phones, tablets, handheld computers, desktop computers, laptop computers, ultra-mobile personal computers, netbooks, cellular phones, personal digital assistants, as well as smart large screens, smart speakers, smart bracelets, smart watches, smart glasses, augmented reality, virtual reality, mixed reality, in-vehicle devices, or smart city devices. If the image recognition result is determined to be a device image, the low-power chip can send message 1 to the device discovery module.
[0206] In some embodiments, if the image recognition result is determined to be a device image, the low-power chip may determine whether the device image includes a device display screen image based on the image recognition result. If the device image includes a device display screen image, the low-power chip then sends message 1 to the device discovery module.
[0207] In some embodiments, if the image recognition result is determined to be a device image, the low-power chip may further determine the placement posture of the device based on the image sent by the low-power camera. If the placement posture of the electronic device 100 and the placement posture of the device meet preset conditions, the low-power chip may send message 1 to the device discovery module. The placement postures include, but are not limited to, portrait placement, landscape placement, and placement at a specific angle.
[0208] FIG. 4B shows a schematic diagram of interaction among multiple different functional modules in FIG. 4A .
[0209] As shown in FIG4B , the functional modules on the electronic device 100 may include but are not limited to a low-power camera, a low-power chip, a device discovery module, a data sharing module, a communication module, and a first application.
[0210] The functional modules on the electronic device 200 may include but are not limited to a low-power camera, a low-power chip, a device discovery module, a data sharing module, a communication module, and a second application.
[0211] The first application and the second application may be the same or similar applications.
[0212] The low-power cameras and low-power chips on the electronic device 100 and the electronic device 200 are in a normally-on state to determine whether the target electronic device is found.
[0213] The low-power camera can be a front camera or a rear camera, and this application does not limit this.
[0214] As shown in FIG4B , the low-power camera on the electronic device 100 can be in a normally-on state. The low-power camera on the electronic device 100 can periodically / irregularly capture images and send the images captured by the low-power camera to the low-power chip on the electronic device 100.
[0215] The low-power chip on the electronic device 100 can identify the image captured by the low-power camera to determine whether the image is a device image. If it is determined that the image is a device image, the low-power chip on the electronic device 100 can send message 1 to the device discovery module on the electronic device 100.
[0216] In some embodiments, when the low-power chip on the electronic device 100 determines that the image does not belong to a device image, for example, when it determines that the image belongs to a face image, a gesture image, an animal image, a plant image, etc., the low-power chip on the electronic device 100 does not send a message to the device discovery module.
[0217] In some embodiments, before the low-power chip on the electronic device 100 sends message 1 to the device discovery module on the electronic device 100, the low-power chip on the electronic device 100 may determine, based on the image captured by the low-power camera, whether the device image includes an image of the device's display screen. If the low-power camera is a front-facing camera and the image captured by the low-power camera includes an image of the display screen, the low-power chip on the electronic device 100 then sends message 1 to the device discovery module on the electronic device 100.
[0218] In some embodiments, before the low-power chip on the electronic device 100 sends message 1 to the device discovery module on the electronic device 100, the low-power chip on the electronic device 100 can determine whether the placement posture of the device meets a preset condition based on the image captured by the low-power camera. If the placement posture of the electronic device 100 and the placement posture of the device meet the preset conditions, the low-power chip on the electronic device 100 will send message 1 to the device discovery module on the electronic device 100. The placement posture includes but is not limited to: horizontal screen placement, horizontal screen placement, placement at a specific angle, etc.
[0219] In some embodiments, when any one or more of the following conditions are met: the image belongs to a device image, the image includes a display screen image, the placement posture of the electronic device 100 and the placement posture of the device in the image meet preset conditions, the low-power chip on the electronic device 100 sends message 1 to the device discovery module on the electronic device 100.
[0220] It should be noted that the low-power camera and low-power chip on the electronic device 200 can also be in a normally-on state and determine in real time whether the target electronic device is found. The functions of the low-power camera and low-power chip on the electronic device 200 can be referred to the description of the functions of the low-power camera and low-power chip on the electronic device 100, and this application will not repeat them here.
[0221] In some embodiments, after receiving message 1 sent by the low-power chip on the electronic device 100 , the device discovery module on the electronic device 100 further determines a target electronic device that also supports fast data transmission capability.
[0222] Specifically, the device discovery module on the electronic device 100 may send a device discovery broadcast so that the electronic device 100 can determine whether the target electronic device also supports the fast data transfer capability and determine which device the target electronic device is.
[0223] There may be one or more devices near the electronic device 100. The electronic device 100 may send a device discovery broadcast, and the one or more devices near the electronic device 100 may receive the device discovery broadcast sent by the electronic device 100.
[0224] For example, electronic device 200 is located near electronic device 100 and receives a device discovery broadcast sent by electronic device 100. If electronic device 200 supports the swing capability, electronic device 200 can send a response broadcast to electronic device 100. The response broadcast carries a swing identifier, which is used to indicate that electronic device 200 also supports the fast data transmission capability. In response to the swing identifier carried in the response broadcast, electronic device 100 can determine that electronic device 200 is the target electronic device. In response to electronic device 200 being the target electronic device, electronic device 100 can establish a communication connection with electronic device 200.
[0225] In some embodiments, after the electronic device 200 receives the device discovery broadcast sent by the electronic device 100, when the electronic device 200 supports the swing capability and the electronic device 200 also recognizes the device image through the image captured by the low-power camera, it indicates that the electronic device 100 and the electronic device 200 are placed opposite to each other, and the electronic device 200 then sends a response broadcast to the electronic device 100.
[0226] In some embodiments, after receiving a device discovery broadcast from electronic device 100, if electronic device 200 fails to recognize a device image through images captured by the low-power camera, indicating that electronic device 100 is not positioned opposite electronic device 200, electronic device 200 may not send a response broadcast to electronic device 100. This can reduce the occurrence of accidental touches.
[0227] In some embodiments, the response broadcast may also carry the placement posture of the electronic device 200. After receiving the response broadcast sent by the electronic device 200, the electronic device 100 may determine that the electronic device 200 is the target electronic device in response to the swing identifier carried in the response broadcast, and the electronic device 100 is in the first placement posture and the electronic device 200 is in the second placement posture. In response to the electronic device 200 being the target electronic device, the electronic device 100 may establish a communication connection with the electronic device 200.
[0228] In some embodiments, the response broadcast may not carry the swing identifier. After the electronic device 100 receives the response broadcast sent by the electronic device 200, when the electronic device 100 is in the first placement posture and the electronic device 200 is in the second placement posture, the electronic device 100 can determine that the electronic device 200 is the target electronic device.
[0229] In the embodiment of the present application, the electronic device 100 establishes a communication connection with the electronic device 200, which may specifically include: the device discovery module on the electronic device 100 sends a connection establishment message to the communication module on the electronic device 100.
[0230] In response to the connection establishment message, the communication module on the electronic device 100 may establish a communication connection with the communication module on the electronic device 200 .
[0231] In an embodiment of the present application, when electronic device 100 establishes a communication connection with electronic device 200, electronic device 100 and electronic device 200 can perform data transmission. For example, a first application on electronic device 100 can send first data to a communication module on electronic device 100. When the communication module on electronic device 100 receives the first data, the communication module on electronic device 100 can send the first data to a communication module on electronic device 200 via the communication connection. When the communication module on electronic device 200 receives the first data, the communication module on electronic device 200 can send the first data to a second application on electronic device 200. When the second application on electronic device 200 receives the first data, the first data on electronic device 100 is shared with electronic device 200.
[0232] In some embodiments, electronic device 100 and electronic device 200 may also share data with each other. That is, after electronic device 100 and electronic device 200 establish a communication connection, electronic device 100 may send first data to electronic device 200, and electronic device 200 may also send second data to electronic device 100. The manner in which electronic device 200 sends second data to electronic device 100 can refer to the description of electronic device 100 sending first data to electronic device 200, and this application will not repeat it here.
[0233] The following is an introduction to some data sharing scenarios provided in the embodiments of this application.
[0234] 1. One-way data sharing scenario.
[0235] Based on the above introduction, it can be seen that when two devices support the ability to quickly transmit data, the two devices can automatically establish a communication connection and share data in the manner of this application, saving user operations.
[0236] In some embodiments, the electronic device 100 can receive and respond to the user's operation of sharing the first data. For example, in response to the user's operation of sharing the first data, when the electronic device 100 recognizes the device image of the electronic device 200, the electronic device 100 can automatically establish a communication connection with the electronic device 200 and send the first data to the electronic device 200.
[0237] In some embodiments, the electronic device 100 can receive and respond to the user's first operation of sharing the first data. When the electronic device 100 recognizes the device image of the electronic device 200, the electronic device 100 can determine whether the placement postures of the electronic device 100 and the electronic device 200 meet the preset posture. For example, in response to the user's operation of sharing the first data, when the electronic device 100 is in the first placement posture and the electronic device 200 is in the second placement posture, the electronic device 100 can automatically establish a communication connection with the electronic device 200 and send the first data to the electronic device 200.
[0238] In some embodiments, the electronic device 100 can receive and respond to the user's first operation of sharing the first data. When the electronic device 100 recognizes the device image of the electronic device 200, the electronic device 100 can further determine whether the placement postures of the electronic device 100 and the electronic device 200 meet the preset postures and whether the device image of the electronic device 200 includes the display screen image of the electronic device 200. For example, in response to the user's operation of sharing the first data, when the electronic device 100 is in the first placement posture and the electronic device 200 is in the second placement posture and the device image of the electronic device 200 includes the display screen image of the electronic device 200, the electronic device 100 can automatically establish a communication connection with the electronic device 200 and send the first data to the electronic device 200.
[0239] For example, the first operation of the user sharing the first data may be an operation of the user selecting the first data. For example, the operation of the user sharing the first data may be an operation of causing the electronic device 100 to display the first data.
[0240] For example, the first operation of the user sharing the first data may also be an operation in which the user selects the first data and selects a share option. In this implementation, the user may select multiple data and click (e.g., single-click) the share option, so that the electronic device 100 may send the multiple data to the electronic device 200 at once.
[0241] The first operation of the user sharing the first data may also be implemented in other ways, which are not limited in this application. In this embodiment of the application, the first operation of the user sharing the first data is to enable the electronic device 100 to display the first data as an example for illustrative description.
[0242] The first placement posture and the second placement posture may be the same or different. The embodiment of the present application takes the case where the electronic device 100 shares data with the electronic device 200 when the first placement posture and the second placement posture are different as an example for explanation.
[0243] For example, the first placement posture may be a vertical screen placement posture, and the second placement posture may be a horizontal screen placement posture. The first placement posture may also be a horizontal screen placement posture, and the second placement posture may also be a vertical screen placement posture.
[0244] The following embodiments of the present application are described by taking the first placement posture being a vertical screen placement posture and the second placement posture being a horizontal screen placement posture as an example.
[0245] The first data shared by the electronic device 100 to the electronic device 200 may include but is not limited to any one of the following: pictures, videos, documents, music, web pages, application installation packages, etc.
[0246] 5A to 5M are schematic diagrams showing electronic device 100 sharing a picture with electronic device 200 .
[0247] Exemplarily, the first application and the second application may be gallery applications, and the first data may be pictures in the gallery applications.
[0248] Figure 5A shows the desktop of electronic device 100, which displays application icons for multiple applications, such as a weather application icon, a stock application icon, a calculator application icon, a settings application icon, an email application icon, a music application icon, a video application icon, a browser application icon, a map application icon, a gallery application icon, a memo application icon, and a voice assistant application icon. A page indicator is also displayed below the multiple application icons to indicate the total number of pages on the desktop and the positional relationship of the currently displayed page to other pages. For example, the desktop may include three pages, and a white dot in the page indicator may indicate that the currently displayed page is the rightmost of the three pages. Furthermore, optionally, multiple tray icons (such as a dialer application icon, a message application icon, a contacts application icon, and a camera application icon) are located below the page indicator, and the tray icons remain displayed when switching between pages. Optionally, a status bar is displayed in a portion of the upper area of the desktop. The status bar may include: one or more signal strength indicators of a mobile communication signal (also known as a cellular signal), a battery status indicator, a time indicator, and the like.
[0249] For example, as shown in FIG5A , the electronic device 100 may receive a user input operation (e.g., a single click) on a gallery application icon on the desktop. In response to the user input operation, the electronic device 100 may display a user interface 510 shown in FIG5B . User interface 510 is a user interface for categorizing photos displayed on the electronic device 100 according to time, provided in an embodiment of the present application. The user interface 510 shows multiple pictures, including picture 1011.
[0250] For example, as shown in Figure 5B, the electronic device 100 can receive a user input operation (such as a single click) on the picture 1011 in the user interface 510. In response to the user input operation, the electronic device 100 can display the user interface 1010 shown in Figure 5C. For the description of the user interface 1010, please refer to the description in the embodiment of Figure 1A, and this application will not go into details here.
[0251] In some embodiments, when the electronic device 100 recognizes the device image of the electronic device 200 , the electronic device 100 may automatically establish a communication connection with the electronic device 200 .
[0252] In some embodiments, when electronic device 100 recognizes the device image of electronic device 200, electronic device 100 may further determine whether the placement postures of electronic device 100 and electronic device 200 meet a preset posture. For example, when electronic device 100 is in a first placement posture and electronic device 200 is in a second placement posture, electronic device 100 may automatically establish a communication connection with electronic device 200. In this way, the user can actively operate to place electronic device 100 and electronic device 200 in a specific placement posture, which can prevent accidental touches.
[0253] In some embodiments, when the electronic device 100 recognizes the device image of the electronic device 200, the electronic device 100 may further determine whether the placement postures of the electronic device 100 and the electronic device 200 meet a preset posture and whether the device image of the electronic device 200 includes an image of the display screen of the electronic device 200. For example, when the electronic device 100 is in a first placement posture, the electronic device 200 is in a second placement posture, and the device image of the electronic device 200 includes an image of the display screen of the electronic device 200, the electronic device 100 may automatically establish a communication connection with the electronic device 200. In this way, the user may actively operate to place the electronic device 100 and the electronic device 200 in a specific placement posture, thereby preventing accidental touches.
[0254] For example, as shown in FIG5D , the user places the display screens of electronic device 100 and electronic device 200 relative to each other, and places electronic devices 100 and 200 in specific placement positions, for example, placing electronic device 100 in portrait orientation and electronic device 200 in landscape orientation. When electronic device 100 is placed in portrait orientation, the vertical plane on which electronic device 100 is located is perpendicular to the horizontal plane, and when electronic device 200 is placed in landscape orientation, the vertical plane on which electronic device 200 is located is perpendicular to the horizontal plane, and the vertical plane on which electronic device 100 and the vertical plane on which electronic device 200 are located are parallel to each other.
[0255] In some embodiments, the horizontal plane shown in FIG. 5D may be the horizontal plane where the desktop is located.
[0256] Optionally, the vertical plane where the electronic device 100 is located is perpendicular to the horizontal plane, which may refer to the vertical plane where the electronic device 100 is located intersecting the horizontal plane at a second angle. Similarly, the vertical plane where the electronic device 200 is located is perpendicular to the horizontal plane, which may refer to the vertical plane where the electronic device 200 is located intersecting the horizontal plane at a second angle. For example, the second angle may be 90 degrees. It should be noted that the angle between the vertical plane where the electronic device 100 is located and the horizontal plane may be allowed to have an error compared to the second angle, for example, the second angle of ±10 degrees belongs to the second angle. In some embodiments, the second angle may be any angle in the second angle interval. For example, the second angle interval may be 80 to 100 degrees. The second angle interval may also be other angle interval values, which is not limited in this application.
[0257] Optionally, the vertical plane where the electronic device 100 is located is parallel to the vertical plane where the electronic device 200 is located. This may mean that the vertical plane where the electronic device 100 is located does not intersect with the vertical plane where the electronic device 200 is located, or that the angle formed by the intersection of the vertical plane where the electronic device 100 is located and the vertical plane where the electronic device 200 is located is any angle in a third angle range. Exemplarily, the third angle range may be 0 degrees to 10 degrees. The third angle range may also be other angle range values, which is not limited in this application.
[0258] For the description of “vertical” and “horizontal” that appears below, please refer to the explanation here.
[0259] In this way, the display screens of electronic device 100 and electronic device 200 are placed relative to each other and electronic device 100 and electronic device 200 are placed in a specific posture, which can improve the accuracy of data transmission between devices using the fast data transmission capability and prevent accidental touches.
[0260] The process of electronic device 100 automatically establishing a communication connection with electronic device 200 can be as follows: when any one or more of the following conditions are met: the image captured by the low-power camera of electronic device 100 includes a device image, the image captured by the low-power camera of electronic device 100 includes an image of the display screen of the target electronic device, the placement posture of electronic device 100 and the placement posture of the target electronic device in the image meet preset conditions, electronic device 100 can send a device discovery broadcast, which is used to determine which target electronic device or devices are, and whether the target electronic device supports fast data transmission capabilities.
[0261] Optionally, the device discovery broadcast may carry a swing flag, which is used to indicate that the electronic device 100 supports fast data transmission capability. Optionally, the device discovery broadcast sent by the electronic device 100 may not carry the swing flag, which is not limited in this application.
[0262] One or more devices located near the electronic device 100 may receive the device discovery broadcast sent by the electronic device 100. For example, the electronic device 200 is located near the electronic device 100 and may receive the device discovery broadcast sent by the electronic device 100.
[0263] In response to receiving the device discovery broadcast sent by the electronic device 100, if the electronic device 200 supports the fast data transfer capability, the electronic device 200 may send a response broadcast to the electronic device 100. The response broadcast carries a swing flag, which is used to indicate that the electronic device 200 also supports the fast data transfer capability.
[0264] After receiving the response broadcast sent by electronic device 200, electronic device 100 can determine that electronic device 200 is the target electronic device in response to the swing identifier carried in the response broadcast. In response to electronic device 200 being the target electronic device, electronic device 100 can establish a communication connection with electronic device 200.
[0265] In some embodiments, the response broadcast also carries the placement posture of the electronic device 200. After receiving the response broadcast sent by the electronic device 200, the electronic device 100 can determine that the electronic device 200 is the target electronic device in response to the swing identifier carried in the response broadcast and when the electronic device 100 is in the first placement posture and the electronic device 200 is in the second placement posture. In response to the electronic device 200 being the target electronic device, the electronic device 100 can establish a communication connection with the electronic device 200.
[0266] After the electronic device 100 establishes a communication connection with the electronic device 200 , the electronic device 100 may send the picture 1011 to the electronic device 200 via the communication connection.
[0267] In some embodiments, in response to electronic device 100 sending picture 1011 to electronic device 200, before electronic device 100 sends picture 1011, electronic device 100 may display a send window 5020 shown in FIG5E . Send window 5020 includes a thumbnail 5021 of picture 1011, text 5022, and a cancel control 5023. Text 5022 includes "Requesting to send picture to Alice, waiting for confirmation of receipt." Text 5022 is used to indicate whether electronic device 200 agrees to receive the picture shared by electronic device 100. Cancel control 5023 can be used to trigger electronic device 100 to cancel sending picture 1011 to electronic device 200.
[0268] In some embodiments, in response to the electronic device 100 sending the picture 1011, before receiving the picture 1011 sent by the electronic device 100, the electronic device 200 may display the receiving window 5030 shown in Figure 5F. The receiving window 5030 includes text 5031, a rejection option 5032, and a receiving option 5033. The text 5031 includes "Daniel wants to share a picture with you, do you want to accept it?" The text 5031 is used to indicate whether the user agrees to receive the picture 1011 shared by the electronic device 100. The rejection option 5032 is used to refuse to receive the picture 1011 shared by the electronic device 100. The receiving option 5033 is used to agree to receive the picture 1011 shared by the electronic device 100.
[0269] In some embodiments, in response to electronic device 200 agreeing to receive picture 1011 shared by electronic device 100, electronic device 100 may display a send window 5040 (see FIG5G ) during the sending of picture 1011. Send window 5040 includes a thumbnail 5041 of picture 1011 and text 5042, including "Sending a picture to Alice..." Send window 5040 also includes a sending progress bar 5043 and a cancel control 5044. Text 5042 may be used to prompt the user that electronic device 100 is currently requesting that picture 1011 be sent to electronic device 200 with which it has established a communication connection. The prompt type of text 5042 may be any one or more of an image prompt, an animated image prompt, and a video prompt. Send progress bar 5043 indicates the progress of sending picture 1011 from electronic device 100 to electronic device 200. The cancel control 5044 may be used to trigger electronic device 100 to cancel sending picture 1011 to electronic device 200.
[0270] In some embodiments, while receiving picture 1011 sent by electronic device 100, electronic device 200 may display receiving window 5050 as shown in FIG5H . Receiving window 5050 includes text 5051, a progress bar 5053, and a cancel control 5054. Text 5051 includes "Receiving picture sent to you by Daniel," which prompts the user that electronic device 200 is currently receiving the picture sent by electronic device 100. Progress bar 5053 indicates the progress of receiving picture 1011. Cancel control 5054 can be used to trigger electronic device 200 to refuse to receive picture 1011 shared by electronic device 100.
[0271] In some embodiments, after electronic device 100 successfully sends picture 1011 to electronic device 200, electronic device 100 may display window 5060 shown in FIG5I . Window 5060 may include a thumbnail 5061 of picture 1011, text 5062, a recall control 5063, and a continue sending control 5064. Text 5062 includes "1 picture has been sent to Alice," which prompts the user that electronic device 100 has successfully sent picture 1011 to electronic device 200. Recall control 5063 is used to send a recall instruction to electronic device 200 after electronic device 100 sends picture 1011 to electronic device 200. This recall instruction is used to request electronic device 200 to delete picture 1011 that has been received from electronic device 100. Continue sending control 5064 can be used for electronic device 100 to continue sending other pictures to electronic device 200.
[0272] It should be noted that, in the process of electronic device 100 sending picture 1011 to electronic device 200, electronic device 100 and electronic device 200 may not display the prompt information shown in FIG. 5E - FIG. 5I , and this application does not limit this.
[0273] During the process of the electronic device 100 sending the picture 1011 to the electronic device 200 , the electronic device 100 and the electronic device 200 need to maintain the placement posture shown in FIG. 5D .
[0274] Optionally, after the electronic device 100 and the electronic device 200 establish a communication connection, the electronic device 100 and the electronic device 200 may not maintain the placement posture shown in FIG5D , and the electronic device 100 and the electronic device 200 still establish a communication connection.
[0275] After electronic device 200 receives picture 1011 sent by electronic device 100 , electronic device 200 may display user interface 5070 shown in FIG. 5J , where user interface 5070 includes picture 1011 .
[0276] Through the methods of Figures 5A to 5J, electronic device 100 and electronic device 200 can quickly transmit data, saving user operations, improving data transmission efficiency between devices, and enhancing user experience.
[0277] In some embodiments, when electronic device 100 sends image 1011 to electronic device 200 via a communication connection, electronic device 100 may disconnect the communication connection with electronic device 200. When electronic device 100 needs to continue sharing data with electronic device 200 based on the fast data transmission capability, electronic device 100 and electronic device 200 may re-establish the communication connection and transmit data in the manner shown in the embodiments of Figures 5A-5D.
[0278] In some embodiments, after the electronic device 100 sends the picture 1011 to the electronic device 200 via the communication connection, the electronic device 100 can continue to maintain a communication connection with the electronic device 200 so that the electronic device 200 can continue to share other data with the electronic device 200.
[0279] In one possible implementation, after the electronic device 100 sends data to the electronic device 200 via a communication connection, the electronic device 100 may switch to displaying other data based on a user operation, and the electronic device 100 may send the displayed other data to the electronic device 200 .
[0280] For example, after the electronic device 100 shares the picture 1011 with the electronic device 200, a communication connection is established between the electronic device 100 and the electronic device 200. The electronic device 100 may continue to share other pictures with the electronic device 200.
[0281] As shown in Figure 5K, the electronic device 100 can receive a sliding operation performed by the user in the user interface 1010, such as a sliding operation to the left. In response to the user's sliding operation, the electronic device 100 can display the user interface 5080 shown in Figure 5L, and the user interface 5080 includes a picture 1012.
[0282] In response to the electronic device 100 displaying the picture 1012 , the electronic device 100 may share the picture 1012 with the electronic device 200 in the manner shown in FIG. 5E - FIG. 5I .
[0283] In response to the picture 1012 shared by the electronic device 100 , the electronic device 200 may display the user interface 5090 shown in FIG. 5M , where the user interface 5090 includes the picture 1012 .
[0284] In some embodiments, after the electronic device 100 sends the picture 1011 to the electronic device 200 via the communication connection, the electronic device 100 may switch to displaying other pictures based on a user operation, such as displaying the picture 1012. The electronic device 100 may receive a user's sharing operation (e.g., an input operation for a sharing option), and in response to the user's sharing operation, the electronic device 100 may send the displayed picture 1012 to the electronic device 200. In this way, the user can selectively share pictures on the electronic device 100 with the electronic device 200.
[0285] 6A-6J are schematic diagrams showing electronic device 100 sharing a link with electronic device 200 .
[0286] For example, the first application may be a news information application, and the first data may be a link to a news article in the news information application.
[0287] The electronic device 100 may display the desktop of the electronic device 100 shown in FIG. 6A , which includes an icon of a news information application.
[0288] As shown in Figure 6A, the electronic device 100 can receive an input operation (e.g., a single click) from a user for an icon of a news information application on the desktop. In response to the user's input operation, the electronic device 100 can display the user interface 6100 shown in Figure 6B. The user interface 6100 can include the title of a news article (e.g., "Golf player Alee wins gold in his debut"), the content of the news article (e.g., "Yesterday, golf player Alee made his debut at the golf tournament and won the gold medal with a total score of 267 in four rounds."), the publisher name of the news article (e.g., "News Morning Post"), an avatar, and more controls. A status bar can be displayed at the top of the user interface 6100. For a text description of the status bar, reference can be made to the text description of the status bar in the aforementioned embodiment, which will not be repeated here.
[0289] 5D , when a user shares a news article displayed in user interface 6100 with electronic device 200 using the fast data transfer capability, the user must not only place the display screens of electronic device 100 and electronic device 200 relative to each other, but also place electronic devices 100 and 200 in a specific placement posture, such as placing electronic device 100 in portrait orientation and electronic device 200 in landscape orientation. Electronic device 100 is placed in portrait orientation.
[0290] Exemplarily, as shown in FIG6C , after the electronic device 100 and the electronic device 200 are in the placement posture shown in FIG6C , the electronic device 100 and the electronic device 200 may automatically establish a communication connection.
[0291] In response to the electronic device 100 and the electronic device 200 being able to automatically establish a communication connection, the electronic device 100 may share the link of the news article displayed in the user interface 6100 with the electronic device 200 via the communication connection.
[0292] In some embodiments, in response to the electronic device 100 sending a link to a news article to the electronic device 200, before the electronic device 100 sends the link to the news article, the electronic device 100 may display the sending window 6200 shown in Figure 6D. The sending window 6200 includes description information 6201 of the above-mentioned news article (for example, "News information APP: [Golf player Alee wins gold in his debut]"), a sending prompt 6202 and a cancel control 6203. The sending prompt 6202 can be used to prompt the user that the current electronic device 100 is requesting to send a link to the news article to the electronic device 200. Among them, the prompt type of the sending prompt 6202 can be any one or more of a text prompt (for example, "Requesting to send news information to Alice, waiting for the other party to confirm receipt."), a picture prompt, a dynamic picture prompt and a video prompt, etc. The cancel control 6203 can be used to trigger the electronic device 100 to cancel the link to the news article sent to the electronic device 200.
[0293] In some embodiments, in response to the electronic device 100 sending a link to a news article, before receiving the link to the news article sent by the electronic device 100, the electronic device 200 may display the receiving window 6300 shown in Figure 6E. The receiving window 6300 includes text 6301, a rejection option 6302, and a receiving option 6303. The text 6301 includes "Daniel wants to share news information with you, do you want to accept it?", and the text 6301 is used to indicate whether the user agrees to receive the news information shared by the electronic device 100. The rejection option 6302 is used to refuse to receive the news information shared by the electronic device 100. The receiving option 6303 is used to agree to receive the news information shared by the electronic device 100.
[0294] In some embodiments, in response to electronic device 200 agreeing to receive news information shared by electronic device 100, while sending a link to a news article, electronic device 100 may display a send window 6400 as shown in FIG6F . Send window 6400 includes description information 6401 of the news article (e.g., "News App: [Golf player Alee wins gold in debut]") and a send prompt 6402, which can be used to notify the user that electronic device 100 is currently requesting that a link to the news article be sent to electronic device 200. The prompt type of send prompt 6402 can be any one or more of a text prompt (e.g., "Sending news information to Alice..."), an image prompt, an animated prompt, and a video prompt. Send window 6400 also includes a send progress 6403 and a cancel control 6404. Send progress 6403 indicates the progress of the link to the news article being sent by electronic device 100 to electronic device 200. The cancel control 6404 can be used to trigger electronic device 100 to cancel sending the link to the news article to electronic device 200.
[0295] In some embodiments, during the process of receiving a link to a news article sent by electronic device 100, electronic device 200 may display a receiving window 6500 as shown in FIG6G . Receiving window 6500 includes text 6501, a progress bar 6502, and a cancel control 6503. Text 6501 includes "Receiving news information sent to you by Daniel," and text 6501 is used to prompt the user that electronic device 200 is currently receiving news information sent by electronic device 100. Progress bar 6502 is used to indicate the progress of receiving the link to the news article. Cancel control 6503 can be used to trigger electronic device 200 to refuse to receive the link to the news article shared by electronic device 100.
[0296] In some embodiments, after the electronic device 100 successfully sends the link to the news article to the electronic device 200, the electronic device 100 may display the window 6600 shown in Figure 6H. Window 6600 may include description information 6601 of the above-mentioned news article (for example, "News Information APP: [Golf player Alee wins gold in his debut]"), text 6602, a revocation control 6603, and a continue sending control 6604. The text 6602 includes "A news article has been sent to Alice", and the text 6602 is used to prompt the user that the electronic device 100 has successfully sent the link to the news article to the electronic device 200. The revocation control 6603 is used to send a revocation indication to the electronic device 200 after the electronic device 100 sends the link to the news article to the electronic device 200. The revocation indication is used to request the electronic device 200 to delete the link to the news article that has been received from the electronic device 100. The continue sending control 6604 can be used for the electronic device 100 to continue sending links to other news articles to the electronic device 200.
[0297] In some embodiments, after the electronic device 200 receives the link to the news article sent by the electronic device 100, the electronic device 200 may display the receiving window 6700 shown in Figure 6I. The receiving window 6700 may include description information 6701 of the above-mentioned news article (for example, "News Information APP: [Golf player Alee wins gold in his debut]"), one or more function controls. Among them, the one or more function controls include an open control 6702 in the news information application, an open control 6703 with a browser, a copy to memo control 6704, and the like. The open control 6702 in the news information application can be used to trigger the electronic device 200 to identify the link based on the news article in the news information application and display an interface including the news article. The open control 6703 with a browser can be used to trigger the electronic device 200 to use a browser application to display the news article based on the link to the news article. The copy to memo control 6704 can be used to trigger the electronic device 200 to copy the news article link to the memo.
[0298] In some embodiments, after the electronic device 200 receives a link to a news article sent by the electronic device 100, or when the user chooses to open the news article corresponding to the link to the news article in a news information application, the electronic device 200 may display the user interface 6800 shown in Figure 6J, where the user interface 6800 includes an interface of the news article corresponding to the link to the news article.
[0299] It should be noted that, in the process of electronic device 100 sending a link to a news article to electronic device 200, electronic device 100 and electronic device 200 may not display the prompt information shown in FIG. 6D to FIG. 6I , and this application does not limit this.
[0300] During the process of electronic device 100 sending the link of the news article to electronic device 200 , electronic device 100 and electronic device 200 need to maintain the placement posture shown in FIG. 6C .
[0301] Optionally, after the electronic device 100 and the electronic device 200 establish a communication connection, the electronic device 100 and the electronic device 200 may not maintain the placement posture shown in FIG6C , and the electronic device 100 and the electronic device 200 still establish a communication connection.
[0302] Through the methods of FIG. 6A to FIG. 6J , a fast transmission link between the electronic device 100 and the electronic device 200 can be achieved, which saves user operations, improves the data transmission efficiency between the devices, and enhances the user experience.
[0303] 7A-7J are schematic diagrams showing electronic device 100 sharing a document with electronic device 200. FIG.
[0304] Exemplarily, the first application may be a document APP, and the first data may be a document of the document APP.
[0305] The electronic device 100 may display the desktop of the electronic device 100 shown in FIG. 7A , where the desktop includes an icon of the document APP.
[0306] As shown in Figure 7A, the electronic device 100 can receive a user input operation (such as a single click) for the icon of the document APP on the desktop. In response to the user's input operation, the electronic device 100 can display the user interface 7100 shown in Figure 7B. The user interface 7100 may include the title of the document (for example, "File 1"), the content of the document, and multiple document editing options. The document editing options may include a save option, a return to the previous step option, a return to the next step option, and a document closing option. A status bar may be displayed at the top of the user interface 6100. For the text description of the status bar, reference may be made to the text description of the status bar in the aforementioned embodiment, which will not be repeated here.
[0307] 5D , when a user shares a document displayed in user interface 7100 with electronic device 200 using the fast data transfer capability, the user must not only place the display screens of electronic device 100 and electronic device 200 relative to each other, but also place electronic devices 100 and 200 in a specific placement posture, such as placing electronic device 100 in portrait orientation and electronic device 200 in landscape orientation. Electronic device 100 is placed in portrait orientation.
[0308] Exemplarily, as shown in FIG7C , after the electronic device 100 and the electronic device 200 are in the placement posture shown in FIG7C , the electronic device 100 and the electronic device 200 may automatically establish a communication connection.
[0309] In response to the electronic device 100 and the electronic device 200 being able to automatically establish a communication connection, the electronic device 100 may share the file displayed in the user interface 7100 with the electronic device 200 via the communication connection.
[0310] In some embodiments, in response to a document sent by the electronic device 100 to the electronic device 200, before the electronic device 100 sends the document, the electronic device 100 may display a send window 7200 shown in Figure 7D. The send window 7200 includes description information 7201 of the above document (for example, "Document 1, 3.1MB"), a send prompt 7202, and a cancel control 7203. The send prompt 7202 can be used to prompt the user that the current electronic device 100 is requesting to send a document to the electronic device 200. The prompt type of the send prompt 7202 can be any one or more of a text prompt (for example, "Requesting to send a document to Alice, waiting for the other party to confirm receipt."), a picture prompt, a dynamic picture prompt, a video prompt, and the like. The cancel control 7203 can be used to trigger the electronic device 100 to cancel sending the document to the electronic device 200.
[0311] In some embodiments, in response to the electronic device 100 sending a document of a news article, before receiving the document sent by the electronic device 100, the electronic device 200 may display the receiving window 7300 shown in Figure 7E. The receiving window 7300 includes text 7301, a rejection option 7302, and a receiving option 7303. The text 7301 includes "Daniel wants to share a document with you, do you want to accept it?", and the text 7301 is used to indicate whether the user agrees to receive the document shared by the electronic device 100. The rejection option 7302 is used to refuse to receive the document shared by the electronic device 100. The receiving option 7303 is used to agree to receive the document shared by the electronic device 100.
[0312] In some embodiments, in response to the electronic device 200 agreeing to receive the document shared by the electronic device 100, during the process of sending the document, the electronic device 100 may display the sending window 7400 shown in Figure 7F. The sending window 7400 includes the description information 7401 of the above-mentioned news article (for example, "Document 1, 3.1MB") and a sending prompt 7402. The sending prompt 7402 can be used to prompt the user that the current electronic device 100 is requesting to send a document to the electronic device 200. The prompt type of the sending prompt 7402 can be any one or more of a text prompt (for example, "Sending a document to Alice..."), a picture prompt, a GIF prompt, and a video prompt, etc. The sending window 7400 also includes a sending progress 7403 and a cancel control 7404. The sending progress 7403 is used to indicate the progress of the document sent by the electronic device 100 to the electronic device 200. The cancel control 7404 can be used to trigger the electronic device 100 to cancel sending the document to the electronic device 200.
[0313] In some embodiments, while receiving a document sent by electronic device 100, electronic device 200 may display a receiving window 7500 as shown in FIG7G . Receiving window 7500 includes text 7501, a progress bar 7502, and a cancel control 7503. Text 7501 includes "Receiving a document sent to you by Daniel," which prompts the user that electronic device 200 is currently receiving a document sent by electronic device 100. Progress bar 7502 indicates the progress of receiving the document. Cancel control 7503 can be used to trigger electronic device 200 to refuse to receive the document shared by electronic device 100.
[0314] In some embodiments, after the electronic device 100 successfully sends the document to the electronic device 200, the electronic device 100 may display the window 7600 shown in Figure 7H. The window 7600 may include the description information 7601 of the above-mentioned document, text 7602, a retract control 7603 and a continue sending control 7604. The text 7602 includes "1 document has been sent to Alice", and the text 7602 is used to prompt the user that the electronic device 100 has successfully sent the document to the electronic device 200. The retract control 7603 is used to send a retract instruction to the electronic device 200 after the electronic device 100 sends the document to the electronic device 200. The retract instruction is used to request the electronic device 200 to delete the document that has been received from the electronic device 100. The continue sending control 7604 can be used for the electronic device 100 to continue sending other documents to the electronic device 200.
[0315] In some embodiments, after the electronic device 200 receives the document sent by the electronic device 100, the electronic device 200 may display the receiving window 7700 shown in Figure 7I. The receiving window 7700 may include description information 7701 of the above-mentioned document (for example, "Document 1, 3.1MB") and one or more functional controls. Among them, the one or more functional controls include an open control 7702 in the document APP, an open control 7703 with a browser, a copy to memo control 7704, and the like. The open in document APP control 7702 can be used to trigger the electronic device 200 to recognize that the document is opened in the document APP and display the document content of the document. The open with browser control 7703 can be used to trigger the electronic device 200 to open the document with a browser application and display the document content of the document. The copy to memo control 7704 can be used to trigger the electronic device 200 to copy the document content of the document to the memo.
[0316] In some embodiments, after the electronic device 200 receives a document sent by the electronic device 100, or when the user chooses to open the document in the document APP, the electronic device 200 may display the user interface 7800 shown in Figure 7J, which includes the document content of the document.
[0317] It should be noted that, during the process of electronic device 100 sending a document to electronic device 200, electronic device 100 and electronic device 200 may not display the prompt information shown in FIG. 7D to FIG. 7I , and this application does not impose any limitation on this.
[0318] During the process of electronic device 100 sending a document to electronic device 200, electronic device 100 and electronic device 200 need to maintain the placement posture shown in FIG. 7C .
[0319] Optionally, after the electronic device 100 and the electronic device 200 establish a communication connection, the electronic device 100 and the electronic device 200 may not maintain the placement posture shown in FIG. 7C , and the electronic device 100 and the electronic device 200 still establish a communication connection.
[0320] Through the methods of Figures 7A-7J, electronic device 100 and electronic device 200 can share documents through the fast data transmission capability, saving user operations, improving data transmission efficiency between devices, and enhancing user experience.
[0321] The above embodiment shows that electronic device 100 can share data such as images, links, and documents with electronic device 200 through the fast data transfer capability. This is not limited to images, links, and documents; electronic device 100 can also share other data with electronic device 200 through the fast data transfer capability, and this application does not limit this.
[0322] 7K-7M are schematic diagrams showing electronic device 100 sharing an application installation package with electronic device 200 .
[0323] The electronic device 100 may display the desktop of the electronic device 100 shown in FIG. 7K , where the desktop includes an icon of an application store application.
[0324] As shown in Figure 7K, the electronic device 100 can receive a user input operation (such as a single click) for the icon of the application store application on the desktop. In response to the user's input operation, the electronic device 100 can display the user interface 7900 shown in Figure 7K. The user interface 7900 can be the main interface of the application store application. The user interface 7900 may include a search bar 7901 and a recommended application display area 7902. Among them, the user can enter the application name in the search bar 7901 to download the installation package of the application from the application server. The recommended application display area 7902 includes application icons of multiple recommended applications, such as the application icon of the Huawei music application and the application icon of the sports health application.
[0325] 5D , when a user shares the installation package of an application installed on electronic device 100 with electronic device 200 using the fast data transfer capability, the user must not only place the display screens of electronic device 100 and electronic device 200 relative to each other, but also place electronic devices 100 and 200 in a specific placement posture, such as placing electronic device 100 in portrait orientation and electronic device 200 in landscape orientation. Electronic device 100 is placed in portrait orientation.
[0326] Exemplarily, as shown in FIG7M , after the electronic device 100 and the electronic device 200 are in the placement posture shown in FIG7L , the electronic device 100 and the electronic device 200 may automatically establish a communication connection.
[0327] After electronic device 100 and electronic device 200 establish a communication connection, in response to electronic device 100 displaying user interface 7900, electronic device 200 may send an application identifier of an application installed on electronic device 200 to electronic device 100, and electronic device 100 may receive the application identifier sent by electronic device 200. Electronic device 100 then obtains the application identifier of the application installed on electronic device 100 and, based on the application identifier of the application installed on electronic device 100 and the application identifier sent by electronic device 200, determines the identifier of an application not installed on electronic device 200. Based on the identifier of the application not installed on electronic device 200, electronic device 100 may obtain an installation package for the application not installed on electronic device 200. Thereafter, electronic device 100 may send the installation package for the application not installed on electronic device 200 to electronic device 200. After receiving the installation package for the application not installed on electronic device 200 sent by electronic device 100, electronic device 200 may install the application based on the installation package for the application not installed on electronic device 200. After successful installation, electronic device 200 may display the application icon on the desktop.
[0328] Exemplarily, the application identifier not installed on the electronic device 200 may be a Huawei video application.
[0329] As shown in Figure 7N, electronic device 100 can obtain the installation package of the Huawei Video application and send the installation package of the Huawei Video application to electronic device 200 via a communication connection. After obtaining the installation package of the Huawei Video application sent by electronic device 100, electronic device 200 can install the Huawei Video application. After successfully installing the Huawei Video application, electronic device 200 can display the Huawei Video application icon 7903 shown in Figure 7N on the desktop.
[0330] In this way, electronic device 100 can share the application installation package with electronic device 200 through fast data transmission capability. The user does not need to operate on electronic device 200 to download the application installation package from the application server, which not only reduces user operations but also reduces the traffic consumed by electronic device 200 to download the application installation package from the server.
[0331] 7O-7P are schematic diagrams showing the electronic device 100 sending specific data to the electronic device 200 through the fast data transmission capability.
[0332] In some embodiments, when electronic device 100 needs to transmit first data to electronic device 200 using fast data transmission capability, when electronic device 200 is placed at a first angle relative to electronic device 100, electronic device 100 can transmit the first data to electronic device 200. The first data can be preset or user-defined. It should be noted that the angle formed by electronic devices 100 and 200 can be allowed to have an error compared to the first angle, for example, the first angle ±10 degrees is considered the first angle.
[0333] Optionally, when the electronic device 200 is placed at a first angle relative to the electronic device 100 , the first data may be displayed on the electronic device 100 , or the first data may not be displayed on the electronic device 100 .
[0334] In some embodiments, the first angle may be any angle in a first angle range, for example, the first angle range may be 0 to 60 degrees. The first angle range may also be other angle range values, which is not limited in this application.
[0335] The embodiment of the present application is described by taking the electronic device 100 and the electronic device 200 as an example in which the screens are placed vertically.
[0336] Exemplarily, the first data may be a first music file in a music application.
[0337] For example, as shown in FIG7O , electronic device 100 is in a portrait orientation, and electronic device 200 is also in a portrait orientation. In FIG7O , electronic device 100 is parallel to a first vertical plane, and the first vertical plane is perpendicular to a horizontal plane. Electronic device 200 can be rotated a certain angle along the vertical direction and positioned as shown in FIG7O , such that electronic device 200 and electronic device 100 are at a first angle.
[0338] In response to the electronic device 100 and the electronic device 200 forming a first angle, the electronic device 100 may automatically establish a communication connection with the electronic device 200 .
[0339] In some embodiments, when the electronic device 100 and the electronic device 200 form a first angle, and the first angle is any angle in a first angle range, the electronic device 100 can automatically establish a communication connection with the electronic device 200.
[0340] After the electronic device 100 establishes a communication connection with the electronic device 200 , the electronic device 100 may obtain the music file of the first music in the music application, and send the music file of the first music in the music application to the electronic device 200 through the communication connection.
[0341] After receiving the music file of the first music sent by electronic device 100, electronic device 200 may display music playback interface 7990 shown in FIG7P . Music playback interface 7990 may include the music title "AAA", the total duration of the music, the elapsed playback duration of the music, a playback progress bar, options for starting / pausing music playback, options for playing the previous music track, and options for playing the next music track. The audio file corresponding to the music "AAA" played by electronic device 200 may be the music file of the first music sent by electronic device 100.
[0342] In some embodiments, the electronic device 200 may be a speaker, and the electronic device 100 may share audio files in a music application on the electronic device 100 to the speaker via the fast data transmission capability, and play the music on the electronic device 100 through the speaker.
[0343] Through this method, the audio files in the music application on the electronic device 100 can be shared with the electronic device 200.
[0344] In some embodiments, the electronic device 100 may also share data with multiple devices simultaneously through fast data transmission capabilities.
[0345] For example, the following embodiments of the present application are described by taking the example of electronic device 100 sharing pictures in a gallery application to electronic device 200 and electronic device 300 at the same time.
[0346] 8A-8B are schematic diagrams showing electronic device 100 sharing pictures in a gallery application with electronic device 200 and electronic device 300 at the same time.
[0347] 5A to 5C , the electronic device 100 may display a user interface 1010 as shown in FIG. 5C , where the user interface 1010 includes a picture 1011 .
[0348] In some embodiments, when the user needs to share picture 1011 to electronic device 200 and electronic device 300 at the same time, as shown in Figure 8A, the user not only needs to place the display screen of electronic device 100 relative to the display screen of electronic device 200 and the display screen of electronic device 300, but also needs to place electronic device 100, electronic device 200 and electronic device 300 in a specific placement posture, for example, electronic device 100 is placed vertically, and electronic device 200 and electronic device 300 are placed horizontally.
[0349] When the electronic device 100 determines that the image captured by the low-power camera includes a device image, or the image captured by the low-power camera includes an image of the display screen of the target electronic device, or the electronic device 100 and the target electronic device are in a specific placement posture, the electronic device 100 can send a device discovery broadcast, and the device discovery broadcast is used to determine which device the target electronic device is and whether the target electronic device supports fast data transmission capability. Optionally, the device discovery broadcast can carry a swing identifier, and the swing identifier is used to indicate that the electronic device 100 supports fast data transmission capability. Optionally, the device discovery broadcast sent by the electronic device 100 may not carry the swing identifier, and this application does not limit this.
[0350] One or more devices located near electronic device 100 may receive the device discovery broadcast sent by electronic device 100. For example, electronic device 200 and electronic device 300 are located near electronic device 100, and electronic device 200 and electronic device 300 may receive the device discovery broadcast sent by electronic device 100.
[0351] In response to receiving the device discovery broadcast sent by the electronic device 100, if the electronic device 200 supports the swing capability, the electronic device 200 can send a response broadcast to the electronic device 100. The response broadcast carries a swing identifier, which is used to indicate that the electronic device 200 also supports the fast data transfer capability.
[0352] Similarly, in response to receiving the device discovery broadcast sent by the electronic device 100, the electronic device 300 may also send a response broadcast to the electronic device 100. The response broadcast carries a swing flag, which is used to indicate that the electronic device 300 also supports fast data transmission capability.
[0353] After receiving the response broadcasts sent by electronic devices 200 and 300, electronic device 100 can determine that electronic devices 200 and 300 are target electronic devices in response to the swing identifiers carried in the response broadcasts sent by electronic devices 200 and 300. In response to electronic devices 200 and 300 being the target electronic devices, electronic device 100 can simultaneously establish communication connections with electronic devices 200 and 300.
[0354] In some embodiments, the response broadcast also carries the placement posture of the electronic device 200 or the electronic device 300. After receiving the response broadcast sent by the electronic device 200 and the electronic device 300, the electronic device 100 responds to the swing identifier carried in the response broadcast, and when the electronic device 100 is in the first placement posture and the electronic device 200 and the electronic device 300 are in the second placement posture, the electronic device 100 can determine that the electronic device 200 and the electronic device 300 are the target electronic devices. In response to the electronic device 200 and the electronic device 300 being the target electronic devices, the electronic device 100 can establish a communication connection with the electronic device 200 and the electronic device 300.
[0355] Afterwards, the electronic device 100 may send the displayed picture 1011 to the electronic device 200 via the communication connection between the electronic device 100 and the electronic device 300 via the communication connection between the electronic device 100 and the electronic device 300 .
[0356] For example, after electronic device 100 sends picture 1011 to electronic devices 200 and 300 respectively, electronic device 200 may display user interface 8100 shown in FIG8B , which includes picture 1011. Similarly, electronic device 300 may display user interface 8200 shown in FIG8B , which also includes picture 1011.
[0357] Not limited to pictures, electronic device 100 can also share other data such as videos, documents, music, links and application installation packages with electronic devices 200 and 300 at the same time through the fast data transmission capability. This application does not limit this.
[0358] Electronic device 100 stops sharing data with electronic device 200
[0359] After the electronic device 100 automatically establishes a communication connection with the electronic device 200 , the electronic device 100 can share data such as pictures, videos, documents, music, links, and application installation packages with the electronic device 200 .
[0360] The electronic device 100 or the electronic device 200 may also receive a user operation, disconnect the communication link, and stop sharing data.
[0361] The electronic device 100 may disconnect the communication connection with the electronic device 200 in any one of the following ways, but not limited to.
[0362] Method 1: The electronic device 100 receives a user operation to turn off Bluetooth or Wi-Fi.
[0363] The electronic device 100 may receive a user operation in the settings application or the pull-down notification bar of the electronic device 100, or through a shortcut to turn off the Bluetooth or Wi-Fi of the electronic device 100. After the electronic device 100 turns off the Bluetooth or Wi-Fi, the electronic device 100 disconnects the communication connection with the electronic device 200. After the communication connection is disconnected, the electronic device 100 may stop sharing data with the electronic device 200.
[0364] In some embodiments, the electronic device 200 may also receive a user operation to turn off Bluetooth or Wi-Fi. After the electronic device 200 turns off Bluetooth or Wi-Fi, the electronic device 100 disconnects the communication connection with the electronic device 200. After the communication connection is disconnected, the electronic device 100 may stop sharing data with the electronic device 200.
[0365] Method 2: The electronic device 100 receives a user operation to change the placement posture of the electronic device 100 .
[0366] In some embodiments, the user can move the electronic device 100 so that the camera of the electronic device 100 cannot capture the device image of the electronic device 200. If the camera of the electronic device 100 fails to capture the device image of the electronic device 200 for more than the first time period, the electronic device 100 disconnects the communication connection with the electronic device 200.
[0367] In other embodiments, the user may also move the electronic device 200 so that the camera of the electronic device 100 cannot capture the device image of the electronic device 200. If the camera of the electronic device 100 fails to capture the device image of the electronic device 200 for more than the first time period, the electronic device 100 disconnects the communication connection with the electronic device 200.
[0368] Method 3: After the user moves the electronic device 100 or the user moves the electronic device 200 so that the distance between the electronic device 100 and the electronic device 200 exceeds a preset distance, the electronic device 100 and the electronic device 200 may disconnect the communication connection.
[0369] Mode 4: After the electronic device 100 sends the first data to the electronic device 200 through the communication connection, the electronic device 100 and the electronic device 200 disconnect the communication connection.
[0370] The electronic device 100 may also disconnect the communication connection with the electronic device 100 in other ways, which is not limited in this application.
[0371] FIG9 is a flow chart showing a method for the electronic device 100 to share data with the electronic device 200 through the fast data transmission capability.
[0372] As shown in Figure 9, S901-S905 is the device discovery phase. A device can discover devices placed opposite it using a low-power camera.
[0373] S906-S907 are the device authentication and connection establishment phases. After discovering a device, if it is determined that the other device supports fast data transmission capabilities, the device can initiate a communication connection to the other device, so that the two devices automatically establish a connection.
[0374] S908-S909 is the data sharing stage. After the communication connection is established between the devices, the device can share the data to be shared with the other device through the communication connection.
[0375] The embodiment of FIG9 is described by taking the electronic device 100 sharing data with the electronic device 200 through the fast data transmission capability as an example.
[0376] S901: The electronic device 100 periodically or irregularly determines whether an image captured by a low-power camera includes a device image.
[0377] The electronic device 100 is pre-installed with a low-power camera, which is in a constantly on state and can periodically or irregularly capture images. The electronic device 100 can determine whether the image captured by the low-power camera includes an image of the device or an image of the device's display screen based on the image.
[0378] In some embodiments, the electronic device 100 may also determine whether the image includes the display screen image of the target electronic device based on the image captured by the low-power camera.
[0379] After identifying the device image, the electronic device 100 can further determine whether the target electronic device supports fast data transmission capability. If the target electronic device supports fast data transmission capability, the electronic device 100 can lock the target electronic device and automatically establish a communication connection with the target electronic device.
[0380] S902: The electronic device 100 receives a first operation of a user to share first data.
[0381] For example, the first operation of the user sharing the first data may be an operation of the user selecting the first data. For example, the operation of the user sharing the first data may be an operation of causing the electronic device 100 to display the first data.
[0382] For example, the first operation of the user sharing the first data may also be an operation in which the user selects the first data and selects a share option. In this implementation, the user may select multiple data and click (e.g., single-click) the share option, so that the electronic device 100 may send the multiple data to the electronic device 200 at once.
[0383] The first operation of the user sharing the first data may also be implemented in other ways, which are not limited in this application. In this embodiment of the application, the first operation of the user sharing the first data is to enable the electronic device 100 to display the first data as an example for illustrative description.
[0384] Optionally, S902 may be executed before S901, or S902 may be executed simultaneously with S901, which is not limited in this application.
[0385] The first data may include but is not limited to any of the following: pictures, videos, documents, music, links, and application installation packages, etc.
[0386] Exemplarily, the first data may be the picture 1011 shown in FIG. 5C or the picture 1012 shown in FIG. 5L .
[0387] Illustratively, the first data may be a web link of a news article as shown in FIG6B .
[0388] Illustratively, the first data may be the document shown in FIG7B .
[0389] Exemplarily, the first data may also be the installation package of the Huawei video application shown in FIG7N .
[0390] S903 : When the electronic device 100 recognizes the device image and the electronic device 100 is in the first placement posture and the target electronic device is in the second placement posture, the electronic device 100 sends a device discovery broadcast.
[0391] The device discovery broadcast includes but is not limited to the fields shown in Table 1.
[0392] Table 1
[0393] Table 1 shows multiple fields included in the device discovery broadcast and their descriptions. The multiple fields may include an is swing field, an is horizontal screen field, an is vertical screen field, an is local device field, an is peer device field, a local device rotation angle field, and a peer device rotation angle field.
[0394] The is swing field indicates whether the device supports fast data transfer. The parameter value type of the is swing field is int. When the is swing field value is 1, it indicates that the device supports fast data transfer. When the is swing field value is 0, it indicates that the device does not support fast data transfer.
[0395] The is horizontal screen field indicates whether the device is in landscape orientation. The parameter value type of the is horizontal screen field is int. A value of 1 in the is horizontal screen field indicates that the device is in landscape orientation. A value of 0 in the is horizontal screen field indicates that the device is not in landscape orientation.
[0396] The is vertical screen field indicates whether the device is in portrait orientation. The parameter value type of the is vertical screen field is int. A value of 1 in the is vertical screen field indicates that the device is in portrait orientation. A value of 0 in the is vertical screen field indicates that the device is not in portrait orientation.
[0397] The is local device field indicates whether the device is a local device. The is local device field has a Boolean value. If the is local device field is true, the device is a local device. If the is local device field is false, the device is not a local device.
[0398] The is peer device field indicates whether the device is a peer device. The is peer device field has a boolean value. A true value for the is peer device field indicates that the device is a peer device. A false value for the is peer device field indicates that the device is not a peer device.
[0399] The local device rotation angle field indicates the rotation angle of the local device. The parameter value type of the local device rotation angle field is int. The value range of the local device rotation angle field is between 0 and 180 degrees.
[0400] It should be noted that the device discovery broadcast may also include other more fields, which are not limited in this application.
[0401] In one possible implementation, in the device discovery broadcast, the value of the is swing field is 1, the value of the is horizontal screen field is 0, the value of the is vertical screen field is 1, the value of the is local device field is true, the value of the is peer device field is false, and the value of the local device rotation angle field is 0.
[0402] In some embodiments, when the electronic device 100 recognizes a device image, it indicates that a target electronic device is placed near the electronic device 100. In order to determine whether the target electronic device supports fast data transmission capabilities and which device the target electronic device is, the electronic device 100 can send a device discovery broadcast, and the target electronic device can receive the device discovery broadcast sent by the electronic device 100. There are other electronic devices near the electronic device 100, and other electronic devices can all receive the device discovery broadcast sent by the electronic device 100.
[0403] In some embodiments, for example, if a user accidentally lifts their phone, the phone's low-power camera may capture an image of a device such as a computer placed on a table, which may trigger the phone to send data to the computer. However, the user does not intend to send data to the computer via their phone. To reduce the possibility of accidental touches, when the electronic device 100 needs to send data to the target electronic device using the fast data transmission capability, the electronic device 100 and the target electronic device need to be in different placement positions.
[0404] In some embodiments, the electronic device 100 and the target electronic device need to be in different placement postures, which may include: the electronic device 100 is in a first placement posture, and the target electronic device in the device image recognized by the electronic device 100 is in a second placement posture, and the first placement posture and the second placement posture are different. Exemplarily, the first placement posture may be a portrait placement posture, and the second placement posture may be a landscape placement posture. Exemplarily, the first placement posture may also be a landscape placement posture, and the second placement posture may also be a portrait placement posture. In this way, the user may actively operate to place the electronic device 100 and the target electronic device in different specific placement postures to reduce accidental touches.
[0405] The embodiment of the present application is described by taking an example in which the first placement posture is a vertical screen placement posture and the second placement posture is a horizontal screen placement posture.
[0406] Optionally, a motion sensor may be pre-installed on the electronic device 100, and the electronic device 100 may determine whether the electronic device 100 is in a horizontal screen placement posture or a vertical screen placement posture based on the motion data collected by the motion sensor. Exemplarily, the motion sensor may be a gravity sensor, and the gravity sensor may collect gravity acceleration data. When the angle between the positive direction of the gravity acceleration data and the direction pointing vertically to the ground is less than a first angle (e.g., 10 degrees) or greater than a second angle (e.g., 170 degrees), it can be considered that the electronic device 100 is in a vertical screen placement posture. When the angle between the positive direction of the gravity acceleration data and the horizontal right direction is less than a first angle (e.g., 10 degrees) or greater than a second angle (e.g., 170 degrees), it can be considered that the electronic device 100 is in a horizontal screen placement posture.
[0407] Similarly, the electronic device 200 may also determine whether the electronic device 200 is in the portrait orientation or the landscape orientation according to the above method.
[0408] The electronic device 100 can determine the placement posture of the target electronic device based on the image captured by the low-power camera. The electronic device 100 can analyze the image to determine whether the target electronic device is in a horizontal placement posture.
[0409] Optionally, to further reduce the occurrence of accidental touches, the low-power camera on electronic device 100 is a front-facing camera, and the device image recognized by electronic device 100 must include an image of the display screen of the target electronic device. In this way, the user can actively position the display screen of electronic device 100 and the display screen of the target electronic device relative to each other to reduce the occurrence of accidental touches.
[0410] When any one or more of the following conditions are met: the image captured by the low-power camera of the electronic device 100 includes a device image, the image captured by the low-power camera of the electronic device 100 includes an image of the device display screen, the placement posture of the electronic device 100, and the placement posture of the device in the image meet preset conditions, the electronic device 100 can send a device discovery broadcast. The target electronic device can receive the device discovery broadcast sent by the electronic device 100. If there are other electronic devices near the electronic device 100, these other electronic devices can also receive the device discovery broadcast sent by the electronic device 100.
[0411] S904 : The electronic device 200 receives the device discovery broadcast sent by the electronic device 100 .
[0412] S905 . In response to the received device discovery broadcast, the electronic device 200 sends a response broadcast to the electronic device 100 . The response broadcast carries a swing identifier and a second placement gesture.
[0413] For example, if the target electronic device is the electronic device 200 and the electronic device 200 is placed opposite to the electronic device 100 , the electronic device 200 may receive the device discovery broadcast sent by the electronic device 100 .
[0414] As can be seen from Table 1, if the device discovers that the broadcast carries the is swing field and the value of the is swing field is 1, the electronic device 200 can confirm that the electronic device 100 supports the fast data transmission capability.
[0415] In some embodiments, the device discovery broadcast may not carry the is swing field.
[0416] After determining that electronic device 100 supports fast data transmission capability, if electronic device 200 supports swing capability, electronic device 200 can send a response broadcast to electronic device 100, and the response broadcast is used to indicate electronic device 100 that electronic device 200 has received the device discovery broadcast sent by electronic device 100.
[0417] If the electronic device 200 also supports fast data transfer capability, the response broadcast may carry a swing flag, which is used to indicate that the electronic device 100 and the electronic device 200 also support fast data transfer capability. For example, the swing flag may be a flag with an is swing field value of 1.
[0418] In the case that the electronic device 200 does not support the fast data transmission capability, the electronic device 200 may not send a response broadcast to the electronic device 100. Alternatively, the value of the is swing field in the response broadcast is 0.
[0419] The response broadcast includes but is not limited to the fields shown in Table 2.
[0420] Table 2
[0421] For the explanation of each field in Table 2, please refer to the explanation of each field in Table 1, and this application will not go into details here.
[0422] It should be noted that the response broadcast may also include other more fields, which is not limited in this application.
[0423] In one possible implementation, when the electronic device 200 supports fast data transmission capability, the value of the is swing field in the response broadcast is 1, the value of the is horizontal screen field is 1, the value of the is vertical screen field is 0, the value of the is local device field is false, the value of the is peer device field is true, and the value of the local device rotation angle field is 0.
[0424] In one possible implementation, when the electronic device 200 does not support fast data transmission capability, the value of the is swing field in the response broadcast is 0, the value of the is horizontal screen field is 1, the value of the is vertical screen field is 0, the value of the is local device field is false, the value of the is peer device field is true, and the value of the local device rotation angle field is 0.
[0425] In some embodiments, after receiving the device discovery broadcast sent by the electronic device 100, if the electronic device 200 also recognizes the device image through the image captured by the low-power camera of the electronic device 200, it means that the electronic device 100 and the electronic device 200 are placed relative to each other, and the electronic device 200 then sends a response broadcast to the electronic device 100.
[0426] In other embodiments, after receiving the device discovery broadcast sent by the electronic device 100, if the electronic device 200 does not recognize the device image through the image captured by the low-power camera of the electronic device 200, it means that the electronic device 100 is not placed opposite to the electronic device 200, and the electronic device 200 may not send a response broadcast to the electronic device 100.
[0427] This can reduce the occurrence of accidental touches.
[0428] S906 : In response to the swing identifier carried in the response broadcast, and the electronic device 100 being in the first placement posture and the electronic device 200 being in the second placement posture, the electronic device 100 determines that the electronic device 200 is the target electronic device.
[0429] Exemplarily, the first placement posture may be a vertical screen placement posture, and the second placement posture may be a horizontal screen placement posture.
[0430] After receiving the response broadcast sent by the electronic device 200 , the electronic device 100 can determine from the response broadcast whether the electronic device 200 supports the fast data transmission capability and the placement posture of the electronic device 200 .
[0431] The electronic device 100 can determine whether the electronic device 200 supports the fast data transfer capability. For example, after receiving the response broadcast sent by the electronic device 200, the electronic device 100 can determine whether the electronic device 200 supports the fast data transfer capability based on the value of the is swing field carried in the response broadcast. If the value of the is swing field carried in the response broadcast is 1, it can be determined that the electronic device 200 supports the fast data transfer capability. If the value of the is swing field carried in the response broadcast is 0, it can be determined that the electronic device 200 does not support the fast data transfer capability.
[0432] Exemplarily, the swing flag may be that the value of the is swing field is 1.
[0433] In some embodiments, the response broadcast may not carry the is swing field. When the electronic device 100 is in the first placement posture and the electronic device 200 is in the second placement posture, the electronic device 100 determines that the electronic device 200 is the target electronic device.
[0434] The electronic device 100 can determine the placement posture of the electronic device 200. Exemplarily, after receiving the response broadcast sent by the electronic device 200, the electronic device 100 can determine the placement posture of the electronic device 200 based on the values of the is horizontal screen field and the is vertical screen field carried in the response broadcast. If the value of the is horizontal screen field is 1 and the value of the is vertical screen field is 0, it means that the electronic device 200 is in a horizontal screen placement posture. If the value of the is horizontal screen field is 0 and the value of the is vertical screen field is 1, it means that the electronic device 200 is in a vertical screen placement posture. If the value of the is horizontal screen field is 0 and the value of the is vertical screen field is 0, it means that the electronic device 200 is in a vertical screen placement posture. If the value of the is horizontal screen field is 0 and the value of the is vertical screen field is 0, it means that the electronic device 200 is neither in a vertical screen placement posture nor in a horizontal screen placement posture.
[0435] When the response broadcast carries a swing identifier and the electronic device 100 is in a portrait orientation and the electronic device 200 is in a landscape orientation, the electronic device 100 may determine that the electronic device 200 is the target electronic device.
[0436] In some embodiments, other electronic devices near electronic device 100 may also receive the device discovery broadcast sent by electronic device 100. For example, electronic device 300 is also near electronic device 100, and electronic device 300 may receive the device discovery broadcast sent by electronic device 100. Electronic device 300 may also send a response broadcast to electronic device 100.
[0437] In one possible implementation, when the electronic device 300 does not support fast data transmission capabilities, the response broadcast sent by the electronic device 300 to the electronic device 100 does not include a swing identifier, that is, the value of the is swing field carried in the response broadcast sent by the electronic device 300 to the electronic device 100 is 0. After receiving the response broadcast sent by the electronic device 300, the electronic device 100 determines that the electronic device 300 is not the target electronic device in response to the lack of the swing identifier.
[0438] In a possible implementation, when the electronic device 300 does not support the fast data transmission capability, the electronic device 300 may not send a response broadcast to the electronic device 100 .
[0439] In another possible implementation, if electronic device 300 also supports fast data transmission capabilities, the response broadcast sent by electronic device 300 to electronic device 100 includes a swing flag, i.e., the value of the is swing field carried in the response broadcast sent by electronic device 300 to electronic device 100 is 1. If the value of the is horizontal screen field carried in the response broadcast sent by electronic device 300 is 0, it indicates that electronic device 300 is not in the horizontal screen position. Electronic device 100 then determines that electronic device 300 is not the target electronic device.
[0440] In some embodiments, the response broadcast may only carry a swing identifier without the placement posture of the electronic device 200. After receiving the response broadcast sent by the electronic device 200, the electronic device 100 may determine that the electronic device 200 is the target electronic device in response to the swing identifier carried in the response broadcast.
[0441] S907 : In response to the electronic device 200 being the target electronic device, the electronic device 100 initiates a connection establishment request to the electronic device 200 .
[0442] S908 : The electronic device 100 establishes a communication connection with the electronic device 200 .
[0443] In response to the electronic device 200 being the target electronic device, the electronic device 100 may initiate a connection establishment request to the electronic device 200 and establish a communication connection with the electronic device 200 .
[0444] The communication connection may be any one of a Bluetooth connection and a Wi-Fi connection. The communication connection may also be other connection modes, which are not limited in this application.
[0445] S909 , in response to the electronic device 100 being in the first placement posture and the electronic device 200 being in the second placement posture, the electronic device 100 sends the first data or the URL corresponding to the first data to the electronic device 200 through the communication connection.
[0446] S910. The electronic device 200 receives first data or a URL corresponding to the first data.
[0447] After the electronic device 100 establishes a communication connection with the electronic device 200 , in response to the electronic device 100 being in the first placement posture and the electronic device 200 being in the second placement posture, the electronic device 100 may send the displayed first data to the electronic device 200 through the communication connection.
[0448] In response to the first data sent by the electronic device 100, the electronic device 200 may receive the first data. In some embodiments, the electronic device 100 may display the first data. In other embodiments, the electronic device 100 may not display the first data, which is not limited in this application.
[0449] Optionally, after the electronic device 100 establishes a communication connection with the electronic device 200, in response to the electronic device 100 being in the first placement posture and the electronic device 200 being in the second placement posture, the electronic device 200 may not send data but only receive data.
[0450] In some embodiments, after the electronic device 200 receives the device discovery broadcast sent by the electronic device 100, the electronic device 100 may determine the placement posture of the electronic device 100 based on the fields in the device discovery broadcast. Specifically, after the electronic device 200 receives the device discovery broadcast sent by the electronic device 100, the electronic device 100 may determine the placement posture of the electronic device 100 based on the values of the is horizontal screen field and the is vertical screen field carried in the device discovery broadcast. If the value of the is horizontal screen field is 1 and the value of the is vertical screen field is 0, it indicates that the electronic device 100 is in a horizontal screen placement posture. If the value of the is horizontal screen field is 0 and the value of the is vertical screen field is 1, it indicates that the electronic device 100 is in a vertical screen placement posture. If the value of the is horizontal screen field is 0 and the value of the is vertical screen field is 0, it indicates that the electronic device 100 is in a vertical screen placement posture.
[0451] For example, if the electronic device 200 determines that the electronic device 100 is in a horizontal position based on the device discovery broadcast, and determines that the electronic device 200 is in a vertical position based on the motion sensor, the electronic device 200 may not send data to the electronic device 100, but only receive data.
[0452] In some embodiments, the first data may also be an installation package of an application.
[0453] For example, electronic device 100 displays user interface 7900 shown in FIG7K . After electronic device 100 and electronic device 200 establish a communication connection, in response to electronic device 100 displaying user interface 7900 shown in FIG7K , electronic device 200 may send an application identifier of an application installed on electronic device 200 to electronic device 100, and electronic device 100 may receive the application identifier sent by electronic device 200. Electronic device 100 then obtains the application identifier of the application installed on electronic device 100 and, based on the application identifier of the application installed on electronic device 100 and the application identifier sent by electronic device 200, determines the identifier of an application not installed on electronic device 200. Based on the identifier of the application not installed on electronic device 200, electronic device 100 may obtain an installation package for the application not installed on electronic device 200. Thereafter, electronic device 100 sends the installation package for the application not installed on electronic device 200 to electronic device 200. After receiving the installation package for the application not installed on electronic device 200 sent by electronic device 100, electronic device 200 may install the application based on the installation package for the application not installed on electronic device 200. After successful installation, the electronic device 200 may display an application icon of the application on the desktop.
[0454] In some embodiments, when the electronic device 100 shares the first data or the URL corresponding to the first data with the electronic device 200, the electronic device 100 needs to continuously recognize the device image of the electronic device 200 or the electronic device 100 and the electronic device 200 are in a specific placement posture.
[0455] In some embodiments, after the electronic device 100 shares the first data or the URL corresponding to the first data with the electronic device 200, when the electronic device 100 continues to recognize the device image of the electronic device 200 or the electronic device 100 and the electronic device 200 are in a specific placement posture, the electronic device 100 continues to establish a communication connection with the electronic device 200. Afterwards, the electronic device 100 can receive a second user operation and display a second user interface, which includes the second data. In response to the electronic device 100 and the electronic device 200 establishing a communication connection, the electronic device 100 can send the second data or the URL corresponding to the second data to the electronic device 200 via the communication connection. The electronic device 200 receives the second data or the URL corresponding to the second data. In this way, the electronic device 100 can continuously share multiple data with the electronic device 200.
[0456] In some embodiments, after the electronic device 100 shares the first data or the URL corresponding to the first data with the electronic device 200 , the electronic device 100 may disconnect the communication connection with the electronic device 200 .
[0457] In some embodiments, if a user needs to stop electronic device 100 from sharing data with electronic device 200, the user can disconnect the communication connection between electronic device 100 and electronic device 200. After electronic device 100 disconnects the communication connection with electronic device 200, electronic device 100 stops sharing data with electronic device 200. For a description of how electronic device 100 disconnects the communication connection with electronic device 200, please refer to the previous introduction, and this application will not repeat it here.
[0458] 2. Two-way data sharing scenario
[0459] Based on the above introduction, it can be seen that when two devices support the ability to quickly transmit data, the two devices can automatically establish a communication connection and share data in the manner of this application, saving user operations.
[0460] In some embodiments, when the electronic device 100 recognizes the device image of the electronic device 200, the electronic device 100 can automatically establish a communication connection with the electronic device 200 and transmit data to each other.
[0461] In some embodiments, when the electronic device 100 recognizes the device image of the electronic device 200, the electronic device 100 can determine whether the placement postures of the electronic device 100 and the electronic device 200 meet the preset postures. For example, when the electronic device 100 is in a first placement posture and the electronic device 200 is in a second placement posture, the electronic device 100 can automatically establish a communication connection with the electronic device 200 and transmit data to each other.
[0462] In some embodiments, when the electronic device 100 recognizes the device image of the electronic device 200, the electronic device 100 can determine whether the placement postures of the electronic device 100 and the electronic device 200 meet the preset postures, and whether the device image of the electronic device 200 includes the display screen image of the electronic device 200. For example, when the electronic device 100 is in a first placement posture, the electronic device 200 is in a second placement posture and the device image of the electronic device 200 includes the display screen image of the electronic device 200, the electronic device 100 can automatically establish a communication connection with the electronic device 200 and transmit data to each other.
[0463] The first placement posture and the second placement posture may be the same or different. The embodiment of the present application takes the case where the electronic device 100 and the electronic device 200 transmit data to each other when the first placement posture and the second placement posture are the same as an example for explanation.
[0464] Exemplarily, the first placement posture and the second placement posture may be any one of a horizontal screen placement posture and a vertical screen placement posture.
[0465] In some embodiments, when the electronic device 100 and the electronic device 200 are both in a vertical screen orientation, the electronic device 100 and the electronic device 200 can transmit first data to each other. The first data can be preset or user-defined.
[0466] In some embodiments, when electronic device 100 and electronic device 200 are both in a landscape orientation, electronic device 100 and electronic device 200 may transmit second data to each other. The second data may be preset or user-defined. The data type of the second data is different from the data type of the first data.
[0467] The first placement posture and the second placement posture are not limited to the horizontal screen placement posture and the vertical screen placement posture. The first placement posture and the second placement posture can also be other placement postures, which is not limited in this application.
[0468] 10A-10D are schematic diagrams showing a two-way data sharing scenario.
[0469] 10A-10B show a schematic diagram of electronic device 100 and electronic device 200 sharing contact information in a contact application with each other.
[0470] For example, the first placement posture can be a portrait placement posture, and the first data can be contact information in a contact application. The contact information can be local user information or non-local user information, and this application does not limit this. The following embodiments of this application are described using the example of local user information as the contact information.
[0471] Local user information and non-local user information may include but are not limited to user name, mobile phone number, etc.
[0472] As shown in Figure 10A, when electronic device 100 and electronic device 100 need to share first type data with each other, the user can place electronic device 100 and electronic device 200 in a portrait orientation. When electronic device 100 is placed in portrait orientation, the vertical plane on which electronic device 100 is located is perpendicular to the horizontal plane. When electronic device 200 is placed in portrait orientation, the vertical plane on which electronic device 200 is located is perpendicular to the horizontal plane. The vertical planes on which electronic device 100 and electronic device 200 are located are parallel to each other.
[0473] The low-power camera of the electronic device 100 is in a normally-on state. The electronic device 100 can recognize that the electronic device 200 is in a vertical screen position based on the image captured by the low-power camera and automatically establish a communication connection with the electronic device 200.
[0474] After the electronic device 100 and the electronic device 200 establish a communication connection, in response to the electronic device 100 and the electronic device 200 being in a vertical screen placement posture, the electronic device 100 can obtain the local user information of the electronic device 100 saved in the contact application, and send the local user information of the electronic device 100 to the electronic device 200 through the communication connection.
[0475] For example, the local user information of the electronic device 100 may include, but is not limited to, the local user name of the electronic device 100, the mobile phone number of the local user of the electronic device 100, and the like.
[0476] As shown in FIG10B , after receiving the local user information of the electronic device 100 , the electronic device 200 may display a user interface 1010 shown in FIG10B . The user interface 1010 includes a user name “Daniel” and a mobile phone number “186XXXXXXXX”.
[0477] Optionally, the electronic device 200 may generate a local user business card of the electronic device 100 based on the local user information of the electronic device 100 , and save the local user business card of the electronic device 100 in a contact application of the electronic device 200 .
[0478] Exemplarily, the local user business card of the electronic device 100 may be a picture in the user interface 1010 shown in FIG10B .
[0479] In some embodiments, the electronic device 100 may also directly send the local user business card of the electronic device 100 to the electronic device 200 through the communication connection. After the electronic device 200 receives the local user business card of the electronic device 100 sent by the electronic device 100, in one possible implementation, the electronic device 200 may save the local user business card of the electronic device 100 in a gallery application. In other possible implementations, the electronic device 200 may extract the user name and mobile phone number from the local user business card of the electronic device 100 and save them in the contact application of the electronic device 200.
[0480] Similarly, after the electronic device 100 and the electronic device 200 establish a communication connection, in response to the electronic device 100 and the electronic device 200 being in the first placement posture, the electronic device 200 can obtain the local user information of the electronic device 200 saved in the contact application, and send the local user information of the electronic device 200 to the electronic device 100 through the communication connection.
[0481] For example, the local user information of the electronic device 200 may include, but is not limited to, the local user name of the electronic device 200, the mobile phone number of the local user of the electronic device 200, and the like.
[0482] As shown in FIG10B , after receiving the local user information of the electronic device 200 , the electronic device 100 may display a user interface 1020 shown in FIG10B . The user interface 1020 includes a user name “Alee” and a mobile phone number “188********”.
[0483] Optionally, the electronic device 100 may generate a local user business card of the electronic device 200 based on the local user information of the electronic device 200 , and save the local user business card of the electronic device 200 in a contact application of the electronic device 100 .
[0484] For example, the local user business card of the electronic device 200 may be a picture in the user interface 1020 shown in FIG10B .
[0485] In some embodiments, the electronic device 200 may also directly send the local user business card of the electronic device 200 to the electronic device 100 through the communication connection. After the electronic device 100 receives the local user business card of the electronic device 200 sent by the electronic device 200, in one possible implementation, the electronic device 100 may save the local user business card of the electronic device 200 in a gallery application. In other possible implementations, the electronic device 100 may extract the user name and mobile phone number from the local user business card of the electronic device 200 and save them in the contact application of the electronic device 100.
[0486] 10C and 10D show schematic diagrams of electronic device 100 and electronic device 200 sharing contact information in an instant messaging application with each other.
[0487] For example, the first placement posture can be a horizontal placement posture, and the second data can be a contact card in an instant messaging application. The contact card can be a local user card in the instant messaging application, and the contact information can also be a friend card in the instant messaging application, but this application does not limit this. The following embodiments of this application use the contact card as an example of a local user card in the instant messaging application.
[0488] As shown in FIG10C , when electronic device 100 and electronic device 100 need to share the second type of data with each other, the user can place electronic device 100 and electronic device 200 in a landscape orientation. When electronic device 100 is placed in landscape orientation, the vertical plane on which electronic device 100 is located is perpendicular to the horizontal plane. When electronic device 200 is placed in landscape orientation, the vertical plane on which electronic device 200 is located is perpendicular to the horizontal plane. The vertical planes on which electronic device 100 and electronic device 200 are located are parallel to each other.
[0489] The low-power camera of the electronic device 100 is in a normally-on state. The electronic device 100 can recognize that the electronic device 200 is in a horizontal position based on the image captured by the low-power camera and automatically establish a communication connection with the electronic device 200.
[0490] After electronic device 100 and electronic device 200 establish a communication connection, in response to electronic device 100 and electronic device 200 being in a landscape orientation, electronic device 100 may obtain the local user's business card in the instant messaging application and send the local user's business card in the instant messaging application on electronic device 100 to electronic device 200 via the communication connection. As shown in FIG10D , after electronic device 200 receives the local user's business card in the instant messaging application on electronic device 100, electronic device 200 may display user interface 1030 shown in FIG10D . The local user's business card in the instant messaging application on electronic device 100 may be the image in user interface 1030 shown in FIG10D . The local user's business card in the instant messaging application on electronic device 100 may include a user's avatar, user name, user ID number, user QR code, etc.
[0491] For example, the electronic device 200 may also save the local user's business card in the instant messaging application on the electronic device 100 in the gallery application.
[0492] Optionally, the electronic device 200 may also automatically extract the user ID number from the local user business card in the instant messaging application on the electronic device 100, for example, the user ID number may be "123456789", and add the user "Xiao Ming" as a friend based on the user ID number "123456789".
[0493] Similarly, after electronic device 100 and electronic device 200 establish a communication connection, in response to electronic device 100 and electronic device 200 being in the second placement posture, electronic device 200 may also obtain the local user's business card in the instant messaging application and send the local user's business card in the instant messaging application on electronic device 200 to electronic device 100 via the communication connection. As shown in FIG10D , after electronic device 100 receives the local user's business card in the instant messaging application on electronic device 200, electronic device 100 may display user interface 1040 shown in FIG10D . The local user's business card in the instant messaging application on electronic device 200 may be the picture in user interface 1040 shown in FIG10D . The local user's business card in the instant messaging application on electronic device 200 may include a user's avatar, user name, user ID number, user QR code, etc.
[0494] For example, the electronic device 100 may also save the local user's business card in the instant messaging application on the electronic device 200 in the gallery application.
[0495] Optionally, the electronic device 100 may also automatically extract the user ID number from the local user business card in the instant messaging application on the electronic device 200, for example, the user ID number may be "987654321", and add the user "Xiaotian" as a friend based on the user ID number "987654321".
[0496] FIG10E shows a schematic diagram of electronic device 100 and electronic device 200 sharing an application installation package with each other.
[0497] When the electronic device 100 and the electronic device 200 are both in a horizontal screen placement posture or in a vertical screen placement posture, the electronic device 100 and the electronic device 200 can share the application installation package with each other.
[0498] 10A or 10C , the electronic device 100 and the electronic device 200 may be in a horizontal orientation or a vertical orientation at the same time.
[0499] In response to the electronic device 100 and the electronic device 200 being in the landscape orientation or both being in the portrait orientation, the electronic device 100 and the electronic device 200 may automatically establish a communication connection.
[0500] After electronic device 100 and electronic device 200 establish a communication connection, electronic device 100 can send an application identifier of an application installed on electronic device 100 to electronic device 200, and electronic device 200 can receive the application identifier sent by electronic device 100. Electronic device 200 then obtains the application identifier of the application installed on electronic device 200, and based on the application identifier of the application installed on electronic device 200 and the application identifier sent by electronic device 100, determines the identifier of the application not installed on electronic device 100. Electronic device 200 can obtain an installation package for the application not installed on electronic device 100 based on the identifier of the application not installed on electronic device 100. Thereafter, electronic device 200 sends the installation package for the application not installed on electronic device 100 to electronic device 100. After receiving the installation package for the application not installed on electronic device 100 sent by electronic device 200, electronic device 100 can install the application based on the installation package for the application not installed on electronic device 100. After successful installation, electronic device 100 can display the application icon of the application on the desktop.
[0501] Similarly, after electronic device 100 and electronic device 200 establish a communication connection, electronic device 200 can send the application identifier of the application installed on electronic device 200 to electronic device 100, and electronic device 100 can receive the application identifier sent by electronic device 200. Electronic device 100 then obtains the application identifier of the application installed on electronic device 100, and based on the application identifier of the application installed on electronic device 100 and the application identifier sent by electronic device 200, determines the identifier of the application not installed on electronic device 200. Electronic device 100 can obtain the application installation package not installed on electronic device 200 based on the application identifier not installed on electronic device 200. Thereafter, electronic device 100 sends the application installation package not installed on electronic device 200 to electronic device 200. After receiving the application installation package not installed on electronic device 200 sent by electronic device 100, electronic device 200 can install the application based on the application installation package not installed on electronic device 200. After successful installation, electronic device 200 can display the application icon of the application on the desktop.
[0502] For example, the identifier of the application not installed on the electronic device 100 may be the Huawei Music application, and the identifier of the application not installed on the electronic device 200 may be the Huawei Video application.
[0503] As shown in Figure 10E , after electronic device 200 receives the installation package for the Huawei Video app sent by electronic device 100, electronic device 200 can install the Huawei Video app. After successfully installing the Huawei Video app, electronic device 200 can display the Huawei Video app icon 1051 shown in Figure 10E on the desktop. After electronic device 100 receives the installation package for the Huawei Music app sent by electronic device 200, electronic device 100 can install the Huawei Music app. After successfully installing the Huawei Music app, electronic device 100 can display the Huawei Music app icon 1052 shown in Figure 10E on the desktop.
[0504] This allows devices to synchronize installation packages of previously installed apps through fast data transfer, which not only reduces user operations but also reduces the data usage of electronic devices downloading app installation packages from the server.
[0505] FIG11 is a flow chart showing a method for electronic device 100 and electronic device 200 to share data with each other through fast data transmission capability.
[0506] As shown in Figure 11, S1101-S1104 is the device discovery phase. Devices can be placed opposite each other so that a device can discover the device placed opposite it through a low-power camera.
[0507] S1105-S906 are the device authentication and connection establishment phase. After discovering the device, if it is determined that the target electronic device also supports fast data transmission capabilities, the device can initiate a communication connection to the target electronic device, so that the two devices automatically establish a connection.
[0508] S1107-S1111 is the data sharing stage. After the communication connection is established between the devices, the two devices can share data with each other through the communication connection.
[0509] S1101: The electronic device 100 periodically / irregularly determines whether an image captured by a low-power camera includes a device image.
[0510] For the description of S1101, please refer to the description of S901, and this application will not go into details here.
[0511] S1102: When the electronic device 100 recognizes a device image and the electronic device 100 is in a first placement posture and the target electronic device is in the first placement posture, the electronic device 100 sends a device discovery broadcast.
[0512] For example, the first placement posture can be any one of a horizontal screen placement posture or a vertical screen placement posture. The first placement posture can also be other postures. This application only uses the horizontal screen placement posture or the vertical screen placement posture as an example for description and does not constitute a limitation.
[0513] The composition structure of the device discovery broadcast can be referred to the description in Table 1, and this application will not go into details here.
[0514] In some embodiments, when the electronic device 100 recognizes a device image, it indicates that a target electronic device is placed opposite the electronic device 100. In order to determine whether the target electronic device supports fast data transmission capabilities and to determine which device the target electronic device is, the electronic device 100 can send a device discovery broadcast, and the target electronic device can receive the device discovery broadcast sent by the electronic device 100. There are other electronic devices near the electronic device 100, and all other electronic devices can receive the device discovery broadcast sent by the electronic device 100.
[0515] In some embodiments, for example, if a user accidentally lifts their phone, the phone's low-power camera may capture an image of a device such as a computer placed on a table, which may trigger the phone to send data to the computer. However, the user does not intend to send data to the computer via their phone. To reduce the occurrence of accidental touches, when electronic device 100 and electronic device 200 need to share data with each other using the fast data transfer capability, electronic device 100 and the target electronic device need to be in the same placement.
[0516] Specifically, when the electronic device 100 recognizes that the target electronic device is in the first placement posture based on the image captured by the low-power camera, and the electronic device 100 is also in the first placement posture, the electronic device 100 sends a device discovery broadcast. In this way, the user can actively operate to place the electronic device 100 and the target electronic device in the same placement posture to reduce the occurrence of accidental touches.
[0517] For example, the first placement posture may be a portrait placement posture, or a landscape placement posture. The first placement posture may also be other placement postures, and this application only uses the landscape placement posture and the portrait placement posture as examples for explanation.
[0518] Optionally, a motion sensor may be pre-installed on the electronic device 100, and the electronic device 100 may determine whether the electronic device 100 is in a horizontal screen placement posture or a vertical screen placement posture based on the motion data collected by the motion sensor. Exemplarily, the motion sensor may be a gravity sensor, and the gravity sensor may collect gravity acceleration data. When the angle between the positive direction of the gravity acceleration data and the direction pointing vertically to the ground is less than a first angle (e.g., 10 degrees) or greater than a second angle (e.g., 170 degrees), it can be considered that the electronic device 100 is in a vertical screen placement posture. When the angle between the positive direction of the gravity acceleration data and the horizontal right direction is less than a first angle (e.g., 10 degrees) or greater than a second angle (e.g., 170 degrees), it can be considered that the electronic device 100 is in a horizontal screen placement posture.
[0519] Similarly, the electronic device 200 may also determine whether the electronic device 200 is in the portrait orientation or the landscape orientation according to the above method.
[0520] The electronic device 100 can determine the placement posture of the target electronic device based on the image captured by the low-power camera. The electronic device 100 can analyze the image to determine whether the target electronic device is in a horizontal or vertical placement posture.
[0521] Optionally, to further reduce the occurrence of accidental touches, the low-power camera on electronic device 100 is a front-facing camera, and the device image recognized by electronic device 100 must include an image of the target electronic device's display screen. In this way, the user can actively position the display screens of electronic device 100 and the target electronic device relative to each other, further reducing the occurrence of accidental touches.
[0522] When the electronic device 100 recognizes the device image and both the electronic device 100 and the target electronic device are in the first placement posture, the electronic device 100 may send a device discovery broadcast. The target electronic device may receive the device discovery broadcast sent by the electronic device 100. If there are other electronic devices near the electronic device 100, the other electronic devices may also receive the device discovery broadcast sent by the electronic device 100.
[0523] S1103 : The electronic device 200 receives the device discovery broadcast sent by the electronic device 100 .
[0524] S1104 . In response to the received device discovery broadcast, the electronic device 200 sends a response broadcast to the electronic device 100 . The response broadcast carries a swing identifier and a first placement gesture.
[0525] For example, if the target electronic device is the electronic device 200 and the electronic device 200 is placed opposite to the electronic device 100 , the electronic device 200 may receive the device discovery broadcast sent by the electronic device 100 .
[0526] As can be seen from Table 1, if the device discovers that the broadcast carries the is swing field and the value of the is swing field is 1, the electronic device 200 can confirm that the electronic device 100 supports the fast data transmission capability.
[0527] After determining that electronic device 100 supports fast data transmission capability, if electronic device 200 also supports fast data transmission capability, electronic device 200 can send a response broadcast to electronic device 100. The response broadcast is used to indicate to electronic device 100 that electronic device 200 has received the device discovery broadcast sent by electronic device 100.
[0528] If the electronic device 200 also supports fast data transfer capability, the response broadcast may carry a swing flag, which is used to indicate that the electronic device 100 and the electronic device 200 also support fast data transfer capability. For example, the swing flag may be a flag with an is swing field value of 1.
[0529] When the electronic device 200 does not support fast data transmission capability, the electronic device 200 may not send a response broadcast, or the response broadcast sent by the electronic device 200 may not carry a swing identifier, or the value of the is swing field in the response broadcast may be .
[0530] The composition structure of the response broadcast can be referred to the description in Table 2, and this application will not go into details here.
[0531] In one possible implementation, when the electronic device 200 supports fast data transmission capability and is in a horizontal screen placement posture, the value of the is swing field in the response broadcast is 1, the value of the is horizontal screen field is 1, the value of the is vertical screen field is 0, the value of the is local device field is false, the value of the is peer device field is true, and the value of the local device rotation angle field is 0.
[0532] In other possible implementations, when the electronic device 200 supports fast data transmission capability and is in a vertical screen placement posture, the value of the is swing field in the response broadcast is 1, the value of the is horizontal screen field is 0, the value of the is vertical screen field is 1, the value of the is local device field is false, the value of the is peer device field is true, and the value of the local device rotation angle field is 0.
[0533] In other possible implementations, when the electronic device 200 does not support the fast data transmission capability, the value of the is swing field in the response broadcast is 0.
[0534] The electronic device 100 can determine whether the electronic device 200 supports the fast data transmission capability and the placement posture of the electronic device 200 based on the fields carried in the response broadcast, and then determine whether the electronic device 200 is the target electronic device.
[0535] S1105 : In response to the swing identifier carried in the response broadcast and the electronic device 100 and the electronic device 200 being in the first placement posture, the electronic device 100 determines that the electronic device 200 is the target electronic device.
[0536] S1106 : In response to the electronic device 200 being the target electronic device, the electronic device 100 initiates a connection establishment request to the electronic device 200 .
[0537] S1107 : The electronic device 100 establishes a communication connection with the electronic device 200 .
[0538] For the description of S1105-S1107, please refer to the introduction of the S906-S908 embodiment, and this application will not go into details here.
[0539] S1108 : In response to the electronic device 100 and the electronic device 200 being in the first placement posture, the electronic device 100 sends the first data or a URL corresponding to the first data to the electronic device 200 through the communication connection.
[0540] S1109. The electronic device 200 receives the first data or the URL corresponding to the first data.
[0541] Exemplarily, the first placement posture may be a vertical screen placement posture.
[0542] After the electronic device 100 establishes a communication connection with the electronic device 200, in response to the electronic device 100 and the electronic device 200 being in a vertical screen placement posture, the electronic device 100 can obtain the first data or the URL of the first data, and send the first data or the URL of the first data to the electronic device 200 through the communication connection.
[0543] Exemplarily, the first data may be the local user information stored in the contact application on the electronic device 100 shown in FIG10B . The local user information stored in the contact application on the electronic device 100 may include but is not limited to: user name (Daniel), user mobile phone number (186XXXXXXXX), etc.
[0544] The first data may be preset or user-defined, which is not limited in this application. The user may also change the data type sent by the electronic device 100 to the electronic device 200 when the electronic device 100 and the electronic device 200 are in the first placement posture.
[0545] S1110 : In response to the electronic device 100 and the electronic device 200 being in the first placement posture, the electronic device 200 sends the second data or a URL corresponding to the second data to the electronic device 100 through the communication connection.
[0546] S1111. The electronic device 100 receives the second data or a URL corresponding to the second data.
[0547] After the electronic device 100 establishes a communication connection with the electronic device 200, in response to the electronic device 100 and the electronic device 200 being in a vertical screen placement posture, the electronic device 200 can obtain the second data or the URL of the second data, and send the second data or the URL corresponding to the second data to the electronic device 100 through the communication connection.
[0548] Among them, the second data can be the local user information saved in the contact application on the electronic device 200 shown in Figure 10B. The local user information saved in the contact application on the electronic device 200 may include but is not limited to: user name (Alee), user mobile phone number (188********), etc.
[0549] The second data may be preset or user-defined, which is not limited in this application. The user may also change the data type sent by the electronic device 200 to the electronic device 200 when the electronic device 100 and the electronic device 200 are in the first placement posture.
[0550] In some embodiments, the data type of the first data and the data type of the second data are the same, for example, the first data and the second data are data of the first type. In this way, when the electronic device 100 and the electronic device 200 are placed relative to each other and both are in a portrait orientation, the electronic device 100 and the electronic device 200 can share the first type of data with each other.
[0551] Exemplarily, the first placement posture may also be a horizontal screen placement posture.
[0552] After the electronic device 100 establishes a communication connection with the electronic device 200, in response to the electronic device 100 and the electronic device 200 being in a horizontal screen placement posture, the electronic device 100 can obtain the third data or the URL of the third data, and send the third data or the URL of the third data to the electronic device 200 through the communication connection.
[0553] Exemplarily, the third data may be the local user information saved in the instant messaging application on the electronic device 100 shown in FIG10D . The local user information saved in the instant messaging application on the electronic device 100 may include but is not limited to: user avatar, user name (Xiao Ming), user ID number (123456789), user QR code, etc.
[0554] The third data may be preset or user-defined, and this application does not limit this. The user may also change the data type sent by the electronic device 100 to the electronic device 200 when the electronic device 100 and the electronic device 200 are in the second placement posture.
[0555] Similarly, after the electronic device 100 establishes a communication connection with the electronic device 200, in response to the electronic device 100 and the electronic device 200 being in a vertical screen placement posture, the electronic device 200 can obtain the fourth data or the URL of the fourth data, and send the fourth data or the URL corresponding to the fourth data to the electronic device 100 through the communication connection.
[0556] Among them, the second data can be the local user information saved in the instant messaging application on the electronic device 200 shown in Figure 10D. The local user information saved in the instant messaging application on the electronic device 200 may include but is not limited to: user avatar, user name (Xiaotian), user ID number (987654321), user QR code, etc.
[0557] The fourth data may be preset or user-defined, and this application does not limit this. The user may also change the data type sent by the electronic device 200 to the electronic device 200 when the electronic device 100 and the electronic device 200 are in the second placement posture.
[0558] In some embodiments, the data type of the third data is the same as the data type of the fourth data. For example, the third data and the fourth data belong to the second type of data, and the second type of data is different from the first type of data. In this way, when the electronic device 100 and the electronic device 200 are placed opposite each other and both are in a landscape orientation, the electronic device 100 and the electronic device 200 can share the second type of data with each other.
[0559] In some embodiments, the first data and the second data, or the third data and the fourth data may also be application installation packages.
[0560] After the electronic device 100 and the electronic device 200 establish a communication connection, before the electronic device 100 and the electronic device 200 share data with each other, the electronic device 100 can send the application identifier of the application installed on the electronic device 100 to the electronic device 200, and the electronic device 200 can also send the application identifier of the application installed on the electronic device 200 to the electronic device 100.
[0561] After the electronic device 200 receives the application identifier sent by the electronic device 100, the electronic device 200 can obtain the application identifier of the application installed on the electronic device 200, and determine the application identifier that is not installed on the electronic device 100 based on the application identifier of the application installed on the electronic device 200 and the application identifier sent by the electronic device 100. The electronic device 200 can obtain the application installation package that is not installed on the electronic device 100 based on the application identifier that is not installed on the electronic device 100. Afterwards, the electronic device 200 sends the application installation package that is not installed on the electronic device 100 to the electronic device 100. After the electronic device 100 receives the application installation package that is not installed on the electronic device 100 sent by the electronic device 200, the electronic device 100 can install the application based on the application installation package that is not installed on the electronic device 100. After the installation is successful, the electronic device 100 can display the application icon of the application on the desktop.
[0562] Similarly, after electronic device 100 receives the application identifier sent by electronic device 200, electronic device 200 can send the application identifier of the application installed on electronic device 200 to electronic device 100, and electronic device 100 can receive the application identifier sent by electronic device 200. Electronic device 100 then obtains the application identifier of the application installed on electronic device 100, and based on the application identifier of the application installed on electronic device 100 and the application identifier sent by electronic device 200, determines the application identifier that is not installed on electronic device 200. Electronic device 100 can obtain the application installation package that is not installed on electronic device 200 based on the application identifier that is not installed on electronic device 200. Thereafter, electronic device 100 sends the application installation package that is not installed on electronic device 200 to electronic device 200. After receiving the application installation package that is not installed on electronic device 200 sent by electronic device 100, electronic device 200 can install the application based on the application installation package that is not installed on electronic device 200. After successful installation, electronic device 200 can display the application icon of the application on the desktop.
[0563] Exemplarily, the first data or the third data may be a Huawei music application, and the second data or the fourth data may be a Huawei video application.
[0564] This allows devices to synchronize installation packages of previously installed apps through fast data transfer, which not only reduces user operations but also reduces the data usage of electronic devices downloading app installation packages from the server.
[0565] FIG12 is a flow chart of a data sharing method provided in this application.
[0566] S1201: A first electronic device detects a first operation of a user, where the first operation is used to share first data with a second electronic device.
[0567] In some embodiments, the first operation may be an operation of selecting the first data. For example, the operation of the user sharing the first data may be an operation of causing the electronic device 100 to display the first data.
[0568] In some embodiments, the first operation may also be an operation of selecting the first data and selecting a share option. In this implementation, the user may select multiple data and click (e.g., single-click) the share option, so that the electronic device 100 may send the multiple data to the electronic device 200 at once. The first operation may also be implemented in other ways.
[0569] In a possible implementation, the first data includes any one of the following: a picture, a video, a document, music, a web page, or an application installation package.
[0570] S1202: In response to a first operation, when the first electronic device is in a first placement posture and the second electronic device is in a second placement posture, the first electronic device establishes a first communication connection with the second electronic device.
[0571] S1203: The first electronic device sends the first data or the URL of the first data to the second electronic device through the first communication connection.
[0572] Through this method, after the first electronic device recognizes that the first electronic device and the second electronic device meet a specific posture, the first electronic device can automatically establish a communication connection with the second electronic device and share the first data with the second electronic device, thereby improving the convenience of data transmission between devices.
[0573] In one possible implementation, when the first electronic device is in a first placement posture and the second electronic device is in a second placement posture, the first electronic device establishes a first communication connection with the second electronic device, specifically including: when the first electronic device is in the first placement posture, the first electronic device sends a first broadcast to the second electronic device in the second placement posture; after receiving the first broadcast, the second electronic device sends a second broadcast to the first electronic device; after receiving the second broadcast, the first electronic device establishes a first communication connection with the second electronic device.
[0574] In some embodiments, the first broadcast may also be referred to as a device discovery broadcast, and the second broadcast may also be referred to as a response broadcast.
[0575] Optionally, when a first electronic device is in a first placement posture and identifies a target electronic device in a second placement posture, the first electronic device may transmit a first broadcast for discovering the target electronic device in the second placement posture. Receiving the first broadcast is not limited to the second electronic device in the second placement posture; other electronic devices located near the first electronic device may also receive the first broadcast.
[0576] After the second electronic device receives the first broadcast, if the second electronic device supports fast data transmission capability, the second electronic device may send a second broadcast to the first electronic device, so that the first electronic device determines that the second electronic device is the target electronic device.
[0577] Optionally, the second broadcast carries a first identifier, and the first identifier is used to indicate that the second electronic device supports fast data transmission capability. The first electronic device can determine that the second electronic device is the target electronic device based on the first identifier carried in the second broadcast.
[0578] In one possible implementation, the second broadcast carries first posture information, and the first posture information is used to indicate that the second electronic device is in the second placement posture; after receiving the second broadcast, the first electronic device establishes a first communication connection with the second electronic device, specifically including: when it is detected that the first electronic device is in the first placement posture and the second electronic device is in the second placement posture, the first electronic device establishes a first communication connection with the second electronic device.
[0579] Optionally, the first posture information may be an identifier for indicating the second placement posture, or may be original data collected by the second electronic device, and the posture information of the second electronic device may be obtained from the original data.
[0580] After the first electronic device receives the second broadcast, if the first electronic device is in the first placement posture and the second electronic device is determined to be in the second placement posture based on the first posture information, the first electronic device can determine that the second electronic device is the target electronic device. In this way, when the first electronic device and the second electronic device meet the specific placement posture, the first electronic device determines that the second electronic device is the target electronic device and establishes a first communication connection with the second electronic device, which can improve the accuracy of the automatic establishment of the communication connection between the first electronic device and the target electronic device.
[0581] In one possible implementation, the first placement posture is different from the second placement posture; before the first electronic device sends the first data or the URL of the first data to the second electronic device through the first communication connection, the method also includes: in response to the first operation, the first electronic device displays a first interface, and the first interface includes the first data.
[0582] In this way, when the first placement posture and the second placement posture are different, the first electronic device can send the displayed first data or the URL of the first data to the second electronic device through the first communication connection, and the second electronic device receives the first data or the URL of the first data to realize one-way data sharing.
[0583] Optionally, in response to receiving the first data or the URL of the first data, the second electronic device may also display the first data.
[0584] For details, please refer to the description of one-way sharing of data between devices in the embodiments of Figures 5D-5M, 6A-6J, 7A-7J, 7K-7N, and 7O-7P.
[0585] In one possible implementation, the first placement posture and the second placement posture are the same; after the first electronic device establishes a first communication connection with the second electronic device, the method further includes: the second electronic device sends the second data or the URL of the second data to the first electronic device through the first communication connection; wherein the data type of the second data is the same as the data type of the first data.
[0586] Optionally, when the first electronic device and the second electronic device are in the same placement posture, the first electronic device may display the first data or not. Similarly, the second electronic device may display the second data or not.
[0587] In this way, when the first placement posture and the second placement posture are the same, the first electronic device can send the first data or the URL of the first data to the second electronic device through the first communication connection, and the second electronic device can also send the second data or the URL of the second data to the first electronic device through the first communication connection to achieve two-way data sharing.
[0588] The data type of the second data is the same as the data type of the first data. Thus, when the first electronic device and the second electronic device are in the same placement posture, the first electronic device and the second electronic device can share the same type of data with each other.
[0589] For details, please refer to the description of bidirectional data sharing between devices in the embodiments of FIG. 10A - FIG. 10B , FIG. 10C - FIG. 10D , and FIG. 10E .
[0590] In one possible implementation, the first broadcast carries second posture information, and the second posture information is used to indicate that the first electronic device is in a first placement posture; the second electronic device sends the second data or the URL of the second data to the first electronic device through the first communication connection, specifically including: when it is detected that the first placement posture and the second placement posture are the same, the second electronic device sends the second data or the URL of the second data to the first electronic device through the first communication connection.
[0591] Optionally, the second posture information may be an identifier for indicating the first placement posture, or may be original data collected by the first electronic device, and the posture information of the first electronic device may be obtained from the original data.
[0592] Through this method, when the second electronic device is in the second placement posture and determines that the first electronic device is in the first placement posture based on the second posture information carried in the first broadcast, the second electronic device can send the second data or the URL of the second data to the first electronic device through the first communication connection to realize two-way data sharing.
[0593] In one possible implementation, when the first placement posture and the second placement posture are of the first posture type, the data type of the first data and the data type of the second data are both of the first data type; when the first placement posture and the second placement posture are of the second posture type, the data type of the first data and the data type of the second data are both of the second data type; wherein the first posture type is different from the second posture type, and the first data type and the second data type are different.
[0594] In this way, when the first electronic device and the second electronic device are in the same placement posture of different types, different types of data can be shared between the first electronic device and the second electronic device, enriching the scenarios of data sharing between the devices.
[0595] In a possible implementation, the first gesture type and the second gesture type may be any one of the following: a horizontal screen placement gesture and a vertical screen placement gesture.
[0596] In a possible implementation, the first placement posture is a horizontal screen placement posture, and the second placement posture is a vertical screen placement posture; or, the first placement posture is a vertical screen placement posture, and the second placement posture is a horizontal screen placement posture.
[0597] In one possible implementation, a first camera is configured on a first electronic device; when the first electronic device is in a first placement posture, the first electronic device sends a first broadcast to a second electronic device in a second placement posture, specifically including: when the first electronic device is in the first placement posture and it is determined based on an image captured by the first camera that there is an electronic device in the second placement posture, the first electronic device sends the first broadcast to the second electronic device in the second placement posture.
[0598] Optionally, when the first electronic device recognizes an image of an unknown device through the first camera, the first electronic device may not send the first broadcast.
[0599] In this way, when the first electronic device recognizes the device image through the first camera and determines whether there is an electronic device in the second placement posture, the first electronic device will then send the first broadcast. This can improve the accuracy of the first electronic device in identifying the target electronic device when sending the first broadcast, and avoid accidental touches.
[0600] In one possible implementation, when a first electronic device is in a first placement posture and, based on an image captured by a first camera, determines that there is an electronic device in a second placement posture, the first electronic device sends a first broadcast to a second electronic device in the second placement posture. Specifically, the first camera is a front camera, and the first electronic device is in the first placement posture and, based on an image captured by the first camera, determines that there is an electronic device in the second placement posture, and the image captured by the first camera includes an image of the display screen of the electronic device in the second placement posture, the first electronic device sends a first broadcast to the second electronic device in the second placement posture.
[0601] In this way, when the first camera is a front camera and the image captured by the first camera includes an image of the display screen of the electronic device in the second placement posture, it means that the first electronic device and the second electronic device are in a face-to-face placement posture. The user can actively operate to place the first electronic device and the second electronic device in a face-to-face placement posture, and the first electronic device can then send the first broadcast, which can further prevent accidental touches.
[0602] For details, please refer to the description in the embodiments of Figures 5D, 6C, 7C, 7M, 7O, 8A, 10A, and 10C.
[0603] In one possible implementation, the method also includes: in response to the first operation, when the first electronic device is in a first placement posture and the third electronic device is in a second placement posture, the first electronic device establishes a second communication connection with the third electronic device; the first electronic device sends the first data or the URL of the first data to the third electronic device through the second communication connection.
[0604] In this way, the first electronic device can establish communication connections with multiple electronic devices at the same time, and the first electronic device can simultaneously send the first data or the URL of the first data to multiple electronic devices with established communication connections, thereby improving the efficiency of data sharing between devices.
[0605] For details, please refer to the description in the embodiments of FIG. 8A and FIG. 8B .
[0606] The present application provides an electronic device, which is a first electronic device, and the first electronic device includes a camera, a memory, and a processor; wherein the camera, the memory, and the processor are coupled, and the memory is used to store a computer program. When the processor executes and calls the computer program, the first electronic device executes a data sharing method shown in Figure 12.
[0607] The present application provides an electronic device, which is a second electronic device, and the second electronic device includes a camera, a memory, and a processor; wherein the camera, the memory, and the processor are coupled, and the memory is used to store a computer program. When the processor executes and calls the computer program, the second electronic device executes a data sharing method shown in Figure 12.
[0608] The present application provides a computer-readable storage medium including instructions. When the instructions are executed on a first electronic device, the first electronic device executes a data sharing method shown in FIG12 .
[0609] The present application provides a computer-readable storage medium including instructions. When the instructions are executed on a second electronic device, the second electronic device executes a data sharing method shown in FIG12 .
[0610] The present application provides a chip system, which includes one or more processors, and the processors are used to call computer instructions to enable a first electronic device to execute a data sharing method shown in Figure 12.
[0611] The present application provides a chip system, which includes one or more processors, and the processors are used to call computer instructions to enable a second electronic device to execute a data sharing method shown in Figure 12.
[0612] The present application provides a computer program product comprising instructions. When the computer program product is run on a first electronic device, the first electronic device executes a data sharing method shown in FIG12 .
[0613] The present application provides a computer program product comprising instructions. When the computer program product is run on a second electronic device, the second electronic device executes a data sharing method shown in FIG12 .
[0614] The above are only some of the embodiments and implementations of this application. The scope of protection of this application is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in this application should be included in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the claims.
[0615] It is understood that the various user interfaces described in the embodiments of this application are merely exemplary interfaces and do not limit the scope of this application. In other embodiments, the user interface may adopt a different interface layout, include more or fewer controls, and add or remove other functional options. As long as they are based on the same inventive concept provided by this application, they are all within the scope of protection of this application.
[0616] It should be noted that, without causing any contradiction or conflict, any feature in any embodiment of the present application, or any part of any feature, can be combined, and the combined technical solution is also within the scope of the embodiments of the present application.
[0617] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the above embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the above embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.
Claims
1. A data sharing method, characterized in that: The method comprises: The first electronic device detects a first operation of a user, wherein the first operation is used to share first data with a second electronic device; In response to the first operation, when the first electronic device is in a first placement posture and the second electronic device is in a second placement posture, the first electronic device establishes a first communication connection with the second electronic device; The first electronic device sends the first data or the URL of the first data to the second electronic device through the first communication connection.
2. The method according to claim 1, characterized in that When the first electronic device is in a first placement posture and the second electronic device is in a second placement posture, the first electronic device establishes a first communication connection with the second electronic device, specifically including: When the first electronic device is in the first placement posture, the first electronic device sends a first broadcast to the second electronic device in the second placement posture; After receiving the first broadcast, the second electronic device sends a second broadcast to the first electronic device; After receiving the second broadcast, the first electronic device establishes the first communication connection with the second electronic device.
3. The method according to claim 2, characterized in that The second broadcast carries first posture information, where the first posture information is used to indicate that the second electronic device is in the second placement posture; After receiving the second broadcast, the first electronic device establishes the first communication connection with the second electronic device, specifically including: When it is detected that the first electronic device is in the first placement posture and the second electronic device is in the second placement posture, the first electronic device establishes the first communication connection with the second electronic device.
4. The method according to any one of claims 1 to 3, characterized in that: The first placement posture is different from the second placement posture; Before the first electronic device sends the first data or the URL of the first data to the second electronic device through the first communication connection, the method further includes: In response to the first operation, the first electronic device displays a first interface, where the first interface includes the first data.
5. The method according to claim 2 or 3, characterized in that: The first placement posture is the same as the second placement posture; After the first electronic device establishes a first communication connection with the second electronic device, the method further includes: The second electronic device sends the second data or the URL of the second data to the first electronic device through the first communication connection; The data type of the second data is the same as the data type of the first data.
6. The method according to claim 5, characterized in that The first broadcast carries second posture information, where the second posture information is used to indicate that the first electronic device is in the first placement posture; The second electronic device sending the second data or the URL of the second data to the first electronic device through the first communication connection specifically includes: When it is detected that the first placement gesture is the same as the second placement gesture, the second electronic device sends the second data or the URL of the second data to the first electronic device through the first communication connection.
7. The method according to claim 5 or 6, characterized in that: When the first placement posture and the second placement posture are of the first posture type, the data type of the first data and the data type of the second data are both of the first data type; When the first placement posture and the second placement posture are of the second posture type, the data type of the first data and the data type of the second data are both of the second data type; The first posture type is different from the second posture type, and the first data type is different from the second data type.
8. The method according to claim 7, characterized in that The first gesture type and the second gesture type may be any one of the following: a horizontal screen placement gesture and a vertical screen placement gesture.
9. The method according to claim 4, characterized in that The first placement posture is a horizontal screen placement posture, and the second placement posture is a vertical screen placement posture; or, The first placement posture is a vertical screen placement posture, and the second placement posture is a horizontal screen placement posture.
10. The method according to claim 2 or 3, characterized in that: The first electronic device is provided with a first camera; When the first electronic device is in the first placement posture, the first electronic device sends a first broadcast to the second electronic device in the second placement posture, specifically including: When the first electronic device is in the first placement posture and it is determined based on the image captured by the first camera that there is an electronic device in the second placement posture, the first electronic device sends the first broadcast to the second electronic device in the second placement posture.
11. The method according to claim 10, characterized in that The step of sending the first broadcast to the second electronic device in the second placement posture by the first electronic device when the first electronic device is in the first placement posture and determining that there is an electronic device in the second placement posture based on the image collected by the first camera specifically includes: When the first camera is a front camera, and the first electronic device is in a first placement posture, and based on an image captured by the first camera, it is determined that there is an electronic device in a second placement posture, and the image captured by the first camera includes an image of the display screen of the electronic device in the second placement posture, the first electronic device sends the first broadcast to the second electronic device in the second placement posture.
12. The method according to any one of claims 1 to 11, characterized in that: The method further comprises: In response to the first operation, when the first electronic device is in a first placement posture and the third electronic device is in the second placement posture, the first electronic device establishes a second communication connection with the third electronic device; The first electronic device sends the first data or the URL of the first data to the third electronic device through the second communication connection.
13. The method according to any one of claims 1 to 12, characterized in that: The first data includes any one of the following: pictures, videos, documents, music, web pages, and application installation packages.
14. A data sharing method, characterized in that: The method comprises: The first electronic device detects a first operation of a user, wherein the first operation is used to share first data with a second electronic device; In response to the first operation, when the first electronic device is in a first placement posture and the second electronic device is in a second placement posture, the first electronic device establishes a first communication connection with the second electronic device; The first electronic device sends the first data or the URL of the first data to the second electronic device through the first communication connection.
15. The method according to claim 1, characterized in that When the first electronic device is in a first placement posture and the second electronic device is in a second placement posture, the first electronic device establishes a first communication connection with the second electronic device, specifically including: When the first electronic device is in the first placement posture, the first electronic device sends a first broadcast to the second electronic device in the second placement posture; After receiving the second broadcast sent by the second electronic device, the first electronic device establishes the first communication connection with the second electronic device; The second broadcast is sent by the second electronic device to the first electronic device after receiving the first broadcast.
16. The method according to claim 15, characterized in that The second broadcast carries first posture information, where the first posture information is used to indicate that the second electronic device is in the second placement posture; After receiving the second broadcast, the first electronic device establishes the first communication connection with the second electronic device, specifically including: When it is detected that the first electronic device is in the first placement posture and the second electronic device is in the second placement posture, the first electronic device establishes the first communication connection with the second electronic device.
17. The method according to any one of claims 14 to 16, characterized in that: The first placement posture is different from the second placement posture; Before the first electronic device sends the first data or the URL of the first data to the second electronic device through the first communication connection, the method further includes: In response to the first operation, the first electronic device displays a first interface, where the first interface includes the first data.
18. The method according to claim 15 or 16, characterized in that The first placement posture is the same as the second placement posture; After the first electronic device establishes a first communication connection with the second electronic device, the method further includes: The first electronic device receives, through the first communication connection, second data or a URL of the second data sent by the second electronic device; The data type of the second data is the same as the data type of the first data.
19. The method according to claim 18, characterized in that The first broadcast carries second posture information, where the second posture information is used to indicate that the first electronic device is in the first placement posture; The second data or the URL of the second data is sent to the first electronic device through the first communication connection when the second electronic device detects that the first placement gesture is the same as the second placement gesture.
20. The method according to claim 18 or 19, characterized in that When the first placement posture and the second placement posture are of the first posture type, the data type of the first data and the data type of the second data are both of the first data type; When the first placement posture and the second placement posture are of the second posture type, the data type of the first data and the data type of the second data are both of the second data type; The first posture type is different from the second posture type, and the first data type is different from the second data type.
21. The method according to claim 20, characterized in that The first gesture type and the second gesture type may be any one of the following: a horizontal screen placement gesture and a vertical screen placement gesture.
22. The method according to claim 17, characterized in that The first placement posture is a horizontal screen placement posture, and the second placement posture is a vertical screen placement posture; or, The first placement posture is a vertical screen placement posture, and the second placement posture is a horizontal screen placement posture.
23. The method according to claim 15 or 16, characterized in that The first electronic device is provided with a first camera; When the first electronic device is in the first placement posture, the first electronic device sends a first broadcast to the second electronic device in the second placement posture, specifically including: When the first electronic device is in the first placement posture and it is determined based on the image captured by the first camera that there is an electronic device in the second placement posture, the first electronic device sends the first broadcast to the second electronic device in the second placement posture.
24. The method according to claim 23, characterized in that The step of sending the first broadcast to the second electronic device in the second placement posture by the first electronic device when the first electronic device is in the first placement posture and determining that there is an electronic device in the second placement posture based on the image collected by the first camera specifically includes: When the first camera is a front camera, and the first electronic device is in a first placement posture, and based on an image captured by the first camera, it is determined that there is an electronic device in a second placement posture, and the image captured by the first camera includes an image of the display screen of the electronic device in the second placement posture, the first electronic device sends the first broadcast to the second electronic device in the second placement posture.
25. The method according to any one of claims 14 to 24, characterized in that: The method further comprises: In response to the first operation, when the first electronic device is in a first placement posture and the third electronic device is in the second placement posture, the first electronic device establishes a second communication connection with the third electronic device; The first electronic device sends the first data or the URL of the first data to the third electronic device through the second communication connection.
26. The method according to any one of claims 14 to 25, characterized in that: The first data includes any one of the following: pictures, videos, documents, music, web pages, and application installation packages.
27. An electronic device, being a first electronic device, characterized in that: The first electronic device includes a camera, a memory, and a processor; wherein the camera, the memory, and the processor are coupled, and the memory is used to store a computer program. When the processor executes and calls the computer program, the first electronic device executes the method described in any one of claims 14-26.
28. A computer-readable storage medium comprising instructions, characterized in that: When the instructions are executed on the first electronic device, the first electronic device executes the method according to any one of claims 14 to 26.
Citation Information
Patent Citations
Multi-device pose measurement method and system and electronic device
CN113781548A
Equipment interaction method and electronic equipment
CN114095905A
Control method applied to electronic equipment and electronic equipment
CN115943621A
Data sharing method, graphical user interface, related device, and system
WO2021023208A1
Method for sharing data and electronic device
WO2021143650A1