Data sharing method, electronic equipment 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 a more convenient data transmission process is achieved.

CN120076067APending Publication Date: 2025-05-30HUAWEI TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202311615739.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-11-28
Publication Date
2025-05-30

AI Technical Summary

Technical Problem

In the prior art, data sharing operations between devices are complex and difficult to simplify.

Method used

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.

Benefits of technology

It improves the convenience of data transmission between devices, simplifies the operation process of data sharing, and saves user operation steps.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120076067A_ABST
    Figure CN120076067A_ABST
Patent Text Reader

Abstract

The invention provides a data sharing method, electronic equipment and a storage medium. The first electronic device detects a first operation of a user, and the first operation is used for sharing first data to the second electronic device; in response to the first operation, when the first electronic equipment is in a first placement posture and the second electronic equipment is in a second placement posture, establishing a first communication connection between the first electronic equipment and the second electronic equipment; and the first electronic equipment sends the first data or the URL of the first data to the second electronic equipment through the first communication connection. Through the method, the first electronic equipment can automatically establish the communication connection with the second electronic equipment after identifying that the first electronic equipment and the second electronic equipment meet the specific posture, and share the first data to the second electronic equipment, so that the convenience of data transmission between the equipment is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the technical field of terminals, and particularly to a data sharing method, an electronic device, and a storage medium. Background Art

[0002] With the development of wireless communication technologies, terminals such as smart phones and tablet computers have begun to support users in sharing data such as pictures and documents with other devices, improving the user's office efficiency and experience. For example, users can share data such as pictures and files on terminals such as smart phones with other devices without using a data cable. Currently, when a user wants to share data on a portable terminal device such as a smart phone with other devices, the operation process is complex. How to simplify the operation process of data sharing between devices remains to be further studied. Summary of the Invention

[0003] This application provides a data sharing method, an electronic device, and a storage medium, improving the convenience of data transmission between devices.

[0004] In a first aspect, this application provides a data sharing method. The method includes: a first electronic device detects a first operation of a user, where 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 a URL of the first data to the second electronic device through the first communication connection.

[0005] In some embodiments, the first operation may be an operation of selecting the first data. For example, the operation of a user sharing the first data may be an operation that causes the electronic device 100 to display the first data.

[0006] In some embodiments, the first operation may also be an operation of selecting the first data and a sharing option. In this implementation, the user can select multiple data and click (such as single-click) the sharing option, so that the electronic device 100 can send the multiple data to the electronic device 200 at one time. The first operation may also be other implementation manners.

[0007] Through this method, after the first electronic device recognizes that the first electronic device and the second electronic device meet specific postures, the first electronic device can automatically establish a communication connection with the second electronic device and share the first data to the second electronic device, improving the convenience of data transmission between devices.

[0008] In combination with the first aspect, in a possible implementation, when 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, which specifically includes: 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.

[0009] Optionally, when the first electronic device is in the first placement posture and identifies the target electronic device in the second placement posture, the first electronic device may send a first broadcast, and the first broadcast is used to discover the target electronic device in the second placement posture. Not only the second electronic device in the second placement posture can receive the first broadcast, but other electronic devices near the first electronic device can also receive the first broadcast.

[0010] After the second electronic device receives the first broadcast, in the case where the second electronic device supports the fast transfer data 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.

[0011] Optionally, the second broadcast carries a first identifier, and the first identifier is used to indicate that the second electronic device supports the fast transfer data capability. The first electronic device may determine that the second electronic device is the target electronic device based on the first identifier carried in the second broadcast.

[0012] In combination with the first aspect, in a 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, which specifically includes: in the case where 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.

[0013] Optionally, the first posture information may be an identifier for indicating the second placement posture, or may be the original data collected by the second electronic device, and the original data can obtain the posture information of the second electronic device.

[0014] After the first electronic device receives the second broadcast, when the first electronic device is in the first placement posture and it is determined based on the first posture information that the second electronic device is in the second placement posture, 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 postures, 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 automatically establishing a communication connection between the first electronic device and the target electronic device.

[0015] In combination with the first aspect, in a possible implementation manner, 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 further includes: in response to a first operation, the first electronic device displays a first interface, and the first interface includes the first data.

[0016] 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 implement one-way data sharing.

[0017] Optionally, in response to receiving the first data or the URL of the first data, the second electronic device can also display the first data.

[0018] In combination with the first aspect, in a possible implementation manner, the first placement posture and the second placement posture are the same; after the first electronic device and the second electronic device establish the first communication connection, 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.

[0019] Optionally, when the first electronic device and the second electronic device are in the same placement posture, the first electronic device can display the first data or may not display the first data. Similarly, the second electronic device can display the second data or may not display the second data.

[0020] 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 implement two-way data sharing.

[0021] Among them, the data type of the second data is the same as that of the first data. In this way, 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.

[0022] Combined with the first aspect, in a 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 the 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.

[0023] Optionally, the second posture information can be an identifier for indicating the first placement posture, or it can be the original data collected by the first electronic device, and the original data can obtain the posture information of the first electronic device.

[0024] 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 achieve two-way data sharing.

[0025] Combined with the first aspect, in a 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 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 the second data type; among them, the first posture type is different from the second posture type, and the first data type is different from the second data type.

[0026] In this way, when the first electronic device and the second electronic device are in the same placement posture of different types, the first electronic device and the second electronic device can share different types of data with each other, enriching the scenarios of sharing data between devices.

[0027] Combined with the first aspect, in a possible implementation, the first posture type and the second posture type can be any one of the following: horizontal screen placement posture, vertical screen placement posture.

[0028] Combined 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.

[0029] In combination with the first aspect, in a possible implementation, a first camera is configured on the first electronic device; 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 a first broadcast to the second electronic device in the second placement posture.

[0030] Optionally, when the first electronic device fails to recognize a device image through the first camera, the first electronic device may not send the first broadcast.

[0031] In this way, the first electronic device determines whether there is an electronic device in the second placement posture by recognizing the device image through the first camera. When the first electronic device recognizes the device image through the first camera and determines based on the image captured by the first camera that there is an electronic device in the second placement posture, the first electronic device then sends the first broadcast. In this way, the accuracy of the first electronic device in sending the first broadcast to identify the target electronic device can be improved, and the occurrence of accidental touches can be avoided.

[0032] In combination with the first aspect, in a possible implementation, 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 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 it is determined based on the image captured by the first camera that there is an electronic device in the second placement posture, and the image captured by the first camera includes the display screen image 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.

[0033] In this way, when the first camera is a front camera and the image captured by the first camera includes the display screen image of the electronic device in the second placement posture, it indicates that the first electronic device and the second electronic device are placed face to face. The user can actively operate to place the first electronic device and the second electronic device face to face, and then the first electronic device sends the first broadcast, which can further prevent the occurrence of accidental touches.

[0034] In combination with the first aspect, in a possible implementation, the method further includes: in response to a first operation, when the first electronic device is in the 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.

[0035] In this way, the first electronic device can establish communication connections with multiple electronic devices simultaneously, and the first electronic device can send the first data or the URL of the first data to the electronic devices with which the communication connections are established at most, improving the efficiency of data sharing between devices.

[0036] In combination with the first aspect, in a possible implementation, the first data includes any one of the following: pictures, videos, documents, music, web pages, and application installation packages.

[0037] In a second aspect, the present application provides a data sharing method, which includes: the first electronic device detects a first operation of the user, where the first operation is used to share the first data with the 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.

[0038] In combination with the second aspect, in a 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 a first placement posture, the first electronic device sends a first broadcast to the second electronic device in the second placement posture; after the first electronic device receives a second broadcast sent by the second electronic device, it establishes a first communication connection with the second electronic device; where the second broadcast is sent by the second electronic device to the first electronic device after receiving the first broadcast.

[0039] In combination with the second aspect, in a 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 a second placement posture; after the first electronic device receives the second broadcast, establishing a first communication connection with the second electronic device specifically includes: in the case of detecting that 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.

[0040] In combination with the second aspect, in a 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 further includes: in response to the first operation, the first electronic device displays a first interface, and the first interface includes the first data.

[0041] In combination with the second aspect, in a possible implementation, 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 sent by the second electronic device or a URL of the second data; wherein, the data type of the second data is the same as the data type of the first data.

[0042] In combination with the second aspect, in a 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 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 posture is the same as the second placement posture.

[0043] In combination with the second aspect, in a 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 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 the second data type; wherein, the first posture type is different from the second posture type, and the first data type is different from the second data type.

[0044] In combination with the second aspect, in a possible implementation, the first posture type and the second posture type can be any one of the following: a landscape screen placement posture, a portrait screen placement posture.

[0045] In combination with the second aspect, in a possible implementation, the first placement posture is a landscape screen placement posture and the second placement posture is a portrait screen placement posture; or, the first placement posture is a portrait screen placement posture and the second placement posture is a landscape screen placement posture.

[0046] In combination with the second aspect, in a possible implementation, a first camera is configured on the first electronic device; 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, which specifically includes: 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 a first broadcast to the second electronic device in the second placement posture.

[0047] In combination with the second aspect, in a possible implementation manner, 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 a first broadcast to the second electronic device in the second placement posture, specifically including: when the first camera is a front camera, the first electronic device is in the first placement posture, it is determined based on the image captured by the first camera that there is an electronic device in the second placement posture, and the image captured by the first camera includes the display screen image 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.

[0048] In combination with the second aspect, in a possible implementation manner, the method further includes: in response to a first operation, when the first electronic device is in the 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.

[0049] In combination with the second aspect, in a possible implementation manner, the first data includes any one of the following: picture, video, document, music, web page, application installation package.

[0050] In a third aspect, the present application provides an electronic device, which is the first electronic device. 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 manner of any of the above aspects.

[0051] In a fourth aspect, the present application provides an electronic device, which is the second electronic device. 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 manner of any of the above aspects.

[0052] In a fifth aspect, the present application provides a computer-readable storage medium, including instructions. When the instructions run on the first electronic device, the first electronic device executes a data sharing method provided in any possible implementation manner of any of the above aspects.

[0053] In a sixth aspect, the present application provides a computer-readable storage medium, including instructions. When the instructions run on the second electronic device, the second electronic device executes a data sharing method provided in any possible implementation manner of any of the above aspects.

[0054] In a seventh aspect, the present application provides a chip system, which includes one or more processors. The processors are configured to call computer instructions to cause a first electronic device to execute a data sharing method provided in any possible implementation manner of any of the above aspects.

[0055] In an eighth aspect, the present application provides a chip system, which includes one or more processors. The processors are configured to call computer instructions to cause a second electronic device to execute a data sharing method provided in any possible implementation manner of any of the above aspects.

[0056] In a ninth aspect, the present application provides a computer program product containing instructions. When the computer program product runs on a first electronic device, it causes the first electronic device to execute a data sharing method provided in any possible implementation manner of any of the above aspects.

[0057] In a tenth aspect, the present application provides a computer program product containing instructions. When the computer program product runs on a second electronic device, it causes the second electronic device to execute a data sharing method provided in any possible implementation manner of any of the above aspects.

[0058] For the description of the beneficial effects of the second aspect to the tenth aspect, reference can be made to the description of the beneficial effects in the first aspect, and the present application will not repeat them here. BRIEF DESCRIPTION OF THE DRAWINGS

[0059] Figures 1A - 1C FIG. shows a schematic diagram of an electronic device 100 sharing a picture with an electronic device 200;

[0060] Figure 2 FIG. is a system architecture diagram provided by the present application;

[0061] Figure 3 FIG. shows a schematic structural diagram of an electronic device 100;

[0062] Figure 4A Exemplarily, FIG. shows a software system architecture diagram of an electronic device 100 provided in an embodiment of the present application;

[0063] Figure 4B FIG. shows a Figure 4A schematic interaction diagram of multiple different functional modules;

[0064] Figures 5A - 5M FIG. shows a schematic diagram of an electronic device 100 sharing a picture with an electronic device 200;

[0065] Figures 6A - 6J FIG. shows a schematic diagram of an electronic device 100 sharing a link with an electronic device 200;

[0066] Figures 7A - 7J It shows a schematic diagram of the electronic device 100 sharing a document with the electronic device 200;

[0067] Figures 7K - 7N It shows a schematic diagram of the electronic device 100 sharing an application installation package with the electronic device 200;

[0068] Figures 7O - 7P It shows a schematic diagram of the electronic device 100 sending specific data to the electronic device 200 through the fast transfer data capability;

[0069] Figures 8A - 8B It shows a schematic diagram of the electronic device 100 simultaneously sharing pictures in the gallery application with the electronic device 200 and the electronic device 300;

[0070] Figure 9 It shows a schematic diagram of the method flow for the electronic device 100 to share data with the electronic device 200 through the fast transfer data capability;

[0071] Figures 10A - 10D It shows a schematic diagram of a two-way data sharing scenario;

[0072] Figure 10E It shows a schematic diagram of the electronic device 100 and the electronic device 200 sharing the application installation package with each other;

[0073] Figure 11 It shows a schematic diagram of the method flow for the electronic device 100 and the electronic device 200 to share data with each other through the fast transfer data capability;

[0074] Figure 12 It is a schematic diagram of the flow of a data sharing method provided by this application. Detailed implementation manners

[0075] Next, the technical solutions in the embodiments of this application will be clearly and elaborately described in conjunction with the accompanying drawings. Among them, in the description of the embodiments of this 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 of the associated objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist simultaneously, and B exists alone. In addition, in the description of the embodiments of this application, "a plurality of" means two or more than two.

[0076] Hereinafter, the terms "first" and "second" are only used for descriptive purposes and cannot be understood as implying or suggesting relative importance or implicitly indicating the quantity of the indicated technical features. Thus, the features defined with "first" and "second" may explicitly or implicitly include one or more of such features. In the description of the embodiments of this application, unless otherwise specified, the meaning of "a plurality of" is two or more than two.

[0077] In the following embodiments of this application, the term "user interface (UI)" is a media interface for interaction and information exchange between an application or an operating system and a user, which realizes the conversion between the internal form of information and the form acceptable to the user. The common manifestation form of the user interface is the graphical user interface (GUI), which refers to the user interface related to computer operation displayed in a graphical manner. It can be visual interface elements 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.

[0078] The electronic device 100 can receive a user operation to share data such as pictures, documents, videos, etc. on the electronic device 100 to the electronic device 200.

[0079] Figures 1A - 1C A schematic diagram showing the electronic device 100 sharing a picture with the electronic device 200 is shown.

[0080] Exemplarily, as Figure 1A shown, the electronic device 100 can 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 can have a title, for example, "Scenery". Among them, the share button 1013 can be used to trigger the opening of the system sharing interface. The favorite button 1014 can be used to trigger favoriting the picture 1011 to the picture favorite folder. The edit button 1015 can be used to trigger editing functions such as rotating, trimming, adding filters, and blurring the picture 1011. The delete button 1016 can be used to trigger deleting the picture 1011. The more button 1017 can be used to trigger the opening of more functions related to the picture.

[0081] The electronic device 100 can receive a user input (such as a click) on the share button 1013. In response to this input, the electronic device 100 can display a system sharing interface 1020 as Figure 1B shown.

[0082] As Figure 1BAs shown, 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 the electronic device 100, and one or more of these pictures or videos can include the 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 its corresponding picture has been selected (that is, the picture has been selected by the user). The picture or video screen displayed in area 1021 can be a thumbnail. The original pictures corresponding to the pictures or videos displayed in area 1021 can be stored on the electronic device 100.

[0083] The Huawei sharing option is displayed in area 1022. The Huawei sharing option can enable the electronic device 100 to share the pictures or videos selected by the user to other devices via Bluetooth or Wi-Fi, etc.

[0084] One or more icons of service options (for example, chat application icon, welink application icon, Changlian application icon, chat application icon, email application icon, browser application icon, information application icon, WLAN direct connection icon, etc.) can be displayed in area 1023. The application programs or protocols corresponding to the service options can support sharing the pictures selected by the user to contacts or servers. The user can perform data sharing through the application programs or protocols corresponding to the service options. For example, sharing the selected pictures to one or more contacts in the chat application, or sharing the selected pictures to the dynamic publishing platform (i.e., the server) of the chat application, etc.

[0085] Exemplarily, as Figure 1B shown, the electronic device 100 can receive the input (such as a click) from the user for the Huawei sharing option in area 1022. In response to this input, the electronic device 100 can display the system sharing interface 1030 as Figure 1C shown. The system sharing interface 1030 is similar to the system sharing interface 1020, except that the area 1022 of the system sharing interface 1030 includes options for nearby devices discovered by the electronic device 100 (for example, the option of "Alee's phone", the option of "HUAWEIP50", the option of "HUAWEIP50 Pro"). Among them, when the electronic device 100 is searching for nearby devices, it can display search prompts in area 1022 (such as text prompts like "Discovering nearby devices, the other party needs to turn on Bluetooth and WLAN").

[0086] Exemplarily, as Figure 1CAs shown, the electronic device 100 can receive an input (such as a click) from the user for the option of "Alee's mobile phone". In response to this input, the electronic device 100 can send the selected picture or video to a nearby device corresponding to the option of "Alee's mobile phone" via Bluetooth or Wi-Fi, etc.

[0087] Not limited to sharing pictures, users can also Figures 1A - 1C share data such as videos, documents, links, contact business cards, etc. on the electronic device 100 to other devices in the manner shown.

[0088] From Figures 1A - 1C the operation process of sharing pictures from the electronic device 100 shown to other devices, it can be seen that the user needs to first select the picture or video to be shared, then turn on the Huawei Share function, then select the device to be shared, and finally send the selected picture or video to the selected device to be shared by the user. The user operation is relatively cumbersome.

[0089] To simplify the operation steps of sharing data between devices, the present application provides a data sharing method. This method is applied to the electronic device 100 configured with a low-power camera, and the low-power camera is in an always-on state.

[0090] This method includes but is not limited to the following stages:

[0091] Stage 1: Device discovery stage.

[0092] The electronic device 100 can collect images through the low-power camera and analyze the images collected by the low-power camera to determine whether the image includes a device image.

[0093] In the case where it is recognized that the image collected by the low-power camera includes a device image, device authentication is performed.

[0094] In the case where it is recognized that the image collected by the low-power camera does not include a device image, the electronic device 100 continues to collect images through the low-power camera and analyze the collected images.

[0095] Stage 2: Device authentication and connection establishment stage.

[0096] In the case where the electronic device 100 determines that the image collected by the low-power camera includes a device image, the electronic device 100 can send a broadcast to determine and lock the target electronic device that simultaneously supports the fast transfer data capability.

[0097] In response to recognizing the device image, the electronic device 100 can send a device discovery broadcast.

[0098] In some embodiments, to prevent accidental touches, when the device image is recognized and the electronic device 100 is in the first placement posture, and the device form of the target electronic device in the image recognized by the electronic device 100 is in the second posture, the electronic device 100 then sends a broadcast to determine the target electronic device that simultaneously supports the fast data transfer capability.

[0099] In some embodiments, to prevent accidental touches, when the device image is recognized, the low-power camera is the front camera, and when 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 simultaneously supports the fast data transfer capability.

[0100] One or more electronic devices located near the electronic device 100 can receive the device discovery broadcast sent by the electronic device 100. For example, the electronic device 200 can receive the device discovery broadcast sent by the electronic device 100. In response to the received device discovery broadcast, the electronic device 200 can send a response broadcast to the electronic device 100. When the electronic device 100 has the fast data transfer capability, the response broadcast carries a swing identifier, and the swing identifier is used to indicate that the electronic device 200 also supports the fast data transfer capability.

[0101] After the electronic device 100 receives the response broadcast sent by the electronic device 200, in response to the swing identifier carried in the response broadcast, the electronic device 100 can determine that the electronic device 200 is the target electronic device. 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.

[0102] In some embodiments, the response broadcast also carries the placement posture of the electronic device 200. After the electronic device 100 receives the response broadcast sent by the electronic device 200, 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, the electronic device 100 can determine that the electronic device 200 is the target electronic device. 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.

[0103] Phase Three: Data Sharing Phase.

[0104] After the electronic device 100 establishes a communication connection with the electronic device 200, the electronic device 100 can send the data to be shared to the electronic device 200 through the communication connection.

[0105] In some embodiments, when the first placement posture is different from the second placement posture, after the electronic device 100 establishes a communication connection with the electronic device 200, the electronic device 100 may send the first data to the electronic device 200, and the electronic device 200 receives the first data. In this way, a one-way data sharing operation can be realized.

[0106] Exemplarily, the first placement posture may be a vertical placement, and the second placement posture may be a landscape screen placement. Exemplarily, the first placement posture may also be a landscape screen placement, and the second placement posture may be a vertical placement. The first placement posture and the second placement posture may also be other postures, which are not limited in this application.

[0107] In some embodiments, when the first placement posture is the same as the second placement posture, after the electronic device 100 establishes a communication connection with the electronic device 200, the electronic device 100 may 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 may 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 realized.

[0108] Exemplarily, both the first placement posture and the second placement posture may be vertical placements, or both the first placement posture and the second placement posture may be landscape screen placements. The first placement posture and the second placement posture may also be other postures, which are not limited in this application.

[0109] Through this method, there is no need for the user to manually share data with the electronic device 200 in the Figures 1A - 1C shown manner, which not only saves user operations but also improves the data sharing efficiency between devices.

[0110] Figure 2 This is a system architecture diagram provided by this application.

[0111] As Figure 2 shown, the system may include an electronic device 100 and an electronic device 200.

[0112] The device types of the electronic device 100 and the electronic device 200 may be any one of a mobile phone, a tablet computer, a handheld computer, a desktop computer, a laptop computer, a super mobile personal computer, a netbook, a cellular phone, a personal digital assistant, and smart home devices such as a smart large screen and a smart speaker, wearable devices such as a smart bracelet, a smart watch, 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 this application, the specific types of the electronic device 100 and the electronic device 200 are not particularly limited.

[0113] In this application, the electronic device 100 and the electronic device 200 are configured with a low-power camera, and the low-power camera can be in an always-on state. The electronic device 100 can collect images through the low-power camera and analyze the collected images to determine whether the images collected by the low-power camera include device images. When it is determined that the images collected by the low-power camera include device images, the electronic device 100 can send a broadcast to determine the target electronic device that simultaneously supports the fast data transfer capability. 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. Then, 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 data sharing efficiency between devices is improved.

[0114] In some embodiments, to prevent accidental touch, when the electronic device 100 is in the first placement posture and the device form of the target electronic device in the device image recognized by the electronic device 100 is in the second posture, the electronic device 100 sends a broadcast to determine the target electronic device that simultaneously supports the fast data transfer capability.

[0115] In some embodiments, to prevent accidental touch, the low-power camera is a front 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 simultaneously supports the fast data transfer capability.

[0116] Not limited to establishing a communication connection with the electronic device 200 simultaneously, the electronic device 100 can also establish communication connections with multiple devices simultaneously to enable the electronic device 100 to share data with multiple devices simultaneously.

[0117] The following introduces the hardware structure of an electronic device 100 provided in the embodiments of this application.

[0118] Figure 3 The schematic diagram of the structure of the electronic device 100 is shown.

[0119] The following takes the electronic device 100 as an example to specifically illustrate the embodiments. It should be understood that Figure 3 The shown electronic device 100 is only an example, and the electronic device 100 can have more or fewer components than those shown in Figure 3 It can combine two or more components, or can have different component configurations. Figure 3 The various components shown in can be implemented in hardware, software, or a combination of hardware and software including one or more signal processing and / or application specific integrated circuits.

[0120] 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, a headphone interface 170D, a sensor module 180, a key 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, a barometric 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.

[0121] It can be understood that the structure schematically shown 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 in the figures, or combine certain components, or split certain components, or have different component arrangements. The components shown in the figures may be implemented in hardware, software, or a combination of software and hardware.

[0122] The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (AP), a modulation and demodulation 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), etc. Among them, different processing units may be independent devices or integrated in one or more processors.

[0123] Among them, the controller may be the nerve center and command center of the electronic device 100. The controller may generate operation control signals according to the instruction operation code and timing signal to complete the control of fetching instructions and executing instructions.

[0124] A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. This memory can store the instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to use the instruction or data again, it can be directly called from the memory. This avoids repeated accesses and reduces the waiting time of the processor 110, thus improving the efficiency of the system.

[0125] 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, etc.

[0126] The I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 110 may include multiple groups of I2C buses. The processor 110 may be respectively coupled to the touch sensor 180K, the charger, the flash, the camera 193, etc. through different I2C bus interfaces. For example: the processor 110 may be coupled to the touch sensor 180K through the I2C interface, enabling the processor 110 to communicate with the touch sensor 180K through the I2C bus interface to implement the touch function of the electronic device 100.

[0127] The I2S interface can be used for audio communication. In some embodiments, the processor 110 may include multiple groups of I2S buses. The processor 110 may be coupled to the audio module 170 through the I2S bus to implement communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 may transmit an audio signal to the wireless communication module 160 through the I2S interface to implement the function of answering a call through a Bluetooth headset.

[0128] The PCM interface can also be used for audio communication to sample, quantize, and encode analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 can be coupled through a PCM bus interface. In some embodiments, the audio module 170 can also transmit audio signals to the wireless communication module 160 through the PCM interface to implement the function of answering a call through a Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.

[0129] The UART interface is a general-purpose serial data bus 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 through the UART interface to implement the Bluetooth function. In some embodiments, the audio module 170 can transmit audio signals to the wireless communication module 160 through the UART interface to implement the function of playing music through a Bluetooth headset.

[0130] The MIPI interface can be used to connect the processor 110 to peripheral devices such as the display screen 194 and the camera 193. The MIPI interface includes a camera serial interface (CSI), a display serial interface (DSI), etc. In some embodiments, the processor 110 and the camera 193 communicate through the CSI interface to implement the shooting function of the electronic device 100. The processor 110 and the display screen 194 communicate through the DSI interface to implement the display function of the electronic device 100.

[0131] The GPIO interface can be configured by software. The GPIO interface can be configured as 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, the display screen 194, the wireless communication module 160, the audio module 170, the 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.

[0132] The USB interface 130 is an interface that conforms to the USB standard specification, and can specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used for data transmission between the electronic device 100 and peripheral devices. It can also be used to connect a headset to play audio. This interface can also be used to connect other electronic devices, such as AR devices, etc.

[0133] It is understandable that the interface connection relationships among the modules illustrated in the embodiments of the present invention are only illustrative descriptions and do 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 manners in the above embodiments, or a combination of multiple interface connection manners.

[0134] The charging management module 140 is configured to receive a charging input from a charger. Herein, the charger may be a wireless charger or a wired charger. In some embodiments of wired charging, the charging management module 140 may receive the charging input from the wired charger through the USB interface 130. In some embodiments of wireless charging, the charging management module 140 may receive the wireless charging input through the wireless charging coil of the electronic device 100. While charging the battery 142, the charging management module 140 may also supply power to the electronic device through the power management module 141.

[0135] The power management module 141 is configured to connect to the battery 142, the charging management module 140, and the processor 110. The power management module 141 receives the inputs from the battery 142 and / or the charging management module 140 and supplies power to the processor 110, the internal memory 121, the external memory, the display screen 194, the camera 193, the wireless communication module 160, etc. The power management module 141 may also be used to monitor parameters such as the battery capacity, the number of battery cycles, and the battery health status (leakage, impedance). In some other embodiments, the power management module 141 may also be disposed in the processor 110. In some other embodiments, the power management module 141 and the charging management module 140 may also be disposed in the same device.

[0136] The wireless communication function of the electronic device 100 may be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modulation and demodulation processor, and the baseband processor, etc.

[0137] The antenna 1 and the antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the electronic device 100 may be used to cover a single or multiple communication frequency bands. Different antennas may also be multiplexed to improve the utilization rate of the antennas. For example, the antenna 1 may be multiplexed as the diversity antenna of the wireless local area network. In some other embodiments, the antenna may be used in combination with a tuning switch.

[0138] The mobile communication module 150 may provide a solution for wireless communication including 2G / 3G / 4G / 5G, etc., applied to the electronic device 100. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. The mobile communication module 150 may receive electromagnetic waves through the antenna 1, filter and amplify the received electromagnetic waves, and then transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 may also amplify the signal modulated by the modulation and demodulation processor and convert it into electromagnetic waves through the antenna 1 for radiation. In some embodiments, at least some functional modules of the mobile communication module 150 may be disposed in the processor 110. In some embodiments, at least some functional modules of the mobile communication module 150 and at least some modules of the processor 110 may be disposed in the same device.

[0139] The modulation and demodulation processor may include a modulator and a demodulator. Among them, 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. Subsequently, the demodulator 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 transmitted to the application processor. The application processor outputs a sound signal through an audio device (not limited to the speaker 170A, receiver 170B, etc.), or displays an image or video through the display screen 194. In some embodiments, the modulation and demodulation processor may be an independent device. In other embodiments, the modulation and demodulation processor may be independent of the processor 110 and disposed in the same device as the mobile communication module 150 or other functional modules.

[0140] The wireless communication module 160 may provide solutions for wireless communications applied to the electronic device 100, including wireless local area networks (WLANs) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite systems (GNSSs), frequency modulation (FM), near field communication (NFC), infrared (IR), etc. The wireless communication module 160 may be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, performs frequency modulation and filtering processing on the electromagnetic wave signals, and sends the processed signals to the processor 110. The wireless communication module 160 may also receive signals to be sent from the processor 110, perform frequency modulation and amplification on them, and convert them into electromagnetic waves through the antenna 2 for radiation.

[0141] In some embodiments, antenna 1 of electronic device 100 is coupled to mobile communication module 150, and antenna 2 is coupled to wireless communication module 160, enabling electronic device 100 to communicate with a network and other devices via 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, etc. The GNSS may include Global Positioning System (GPS), Global Navigation Satellite System (GLONASS), BeiDou Navigation Satellite System (BDS), Quasi-Zenith Satellite System (QZSS), and / or Satellite Based Augmentation Systems (SBAS).

[0142] Electronic device 100 implements a display function through a GPU, display screen 194, and an application processor, etc. The GPU is a microprocessor for image processing, connected to 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 change display information.

[0143] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel can adopt a liquid crystal display (LCD). The display screen panel can also adopt an organic light-emitting diode (OLED), 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. to manufacture. In some embodiments, the electronic device 100 may include one or N display screens 194, where N is a positive integer greater than 1.

[0144] The electronic device 100 can implement the shooting function through the ISP, the camera 193, the video codec, the GPU, the display screen 194, and the application processor, etc.

[0145] The ISP is used to process the data fed back by the camera 193. For example, when taking a photo, the shutter is opened, and the light passes through the lens and is transmitted to the camera photosensitive element. The optical signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing and converts it into an image visible to the naked eye. The ISP can also optimize the noise and brightness of the image through algorithms. The ISP can also optimize parameters such as the exposure and color temperature of the shooting scene. In some embodiments, the ISP can be set in the camera 193.

[0146] The camera 193 is used to capture static images or videos. An 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 optical signal into an electrical signal, and then transmits the electrical signal to the ISP to convert it 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 standard RGB, YUV, etc. formats. In some embodiments, the electronic device 100 may include one or N cameras 193, where N is a positive integer greater than 1.

[0147] The digital signal processor is used to process digital signals. Besides being able to process 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, etc.

[0148] The video codec is used to compress or decompress digital videos. The electronic device 100 can support one or more video codecs. In this way, the electronic device 100 can play or record videos in multiple coding formats, such as: Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.

[0149] The NPU is a neural-network (NN) computing processor. By drawing on the structure of the biological neural network, such as the transmission mode between human brain neurons, it can quickly process the input information and can also continuously self-learn. Through the NPU, applications such as intelligent cognition of the electronic device 100 can be realized, such as: image recognition, face recognition, speech recognition, text understanding, etc.

[0150] 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 through the external memory interface 120 to achieve the data storage function. For example, save files such as music and videos in the external memory card.

[0151] The internal memory 121 can be used to store computer-executable program code, and the executable program code includes 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 can include a program storage area and a data storage area. Among them, the program storage area can store the operating system, application programs required for at least one function (such as the sound playback function, the image playback function, etc.). The data storage area can store the data created during the use of the electronic device 100 (such as audio data, phone book, etc.). In addition, the internal memory 121 can include high-speed random access memory and can also include non-volatile memory, such as at least one disk storage device, flash memory device, universal flash storage (UFS), etc.

[0152] The electronic device 100 can achieve audio functions through the audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, and the application processor, etc. For example, music playback, recording, etc.

[0153] The audio module 170 is used to convert digital audio information into an analog audio signal for output, and is also used to convert an analog audio input into a digital audio signal. The audio module 170 can also be used for encoding and decoding audio signals. In some embodiments, the audio module 170 can be disposed in the processor 110, or some functional modules of the audio module 170 can be disposed in the processor 110.

[0154] The speaker 170A, also known as the "loudspeaker", is used to convert an audio electrical signal into a sound signal. The electronic device 100 can listen to music or hands-free calls through the speaker 170A.

[0155] The receiver 170B, also known as the "earpiece", is used to convert an audio electrical signal into a sound signal. When the electronic device 100 answers a call or a voice message, the voice can be listened to by placing the receiver 170B close to the human ear.

[0156] The microphone 170C, also known as the "microphone" or "transmitter", is used to convert a sound signal into an electrical signal. When making a call or sending a voice message, the user can speak by placing the 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 some other embodiments, the electronic device 100 can be provided with two microphones 170C, which can not only collect sound signals but also implement a noise reduction function. In some 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 sound source, and implement functions such as directional recording.

[0157] The headphone jack 170D is used to connect a wired headphone. The headphone jack 170D can be a USB interface 130, or a 3.5 mm open mobile terminal platform (OMTP) standard interface, or a cellular telecommunications industry association of the USA (CTIA) standard interface.

[0158] The pressure sensor 180A is used to sense pressure signals and can convert the pressure signals into electrical signals. In some embodiments, the pressure sensor 180A may be disposed on the display screen 194. There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, etc. The capacitive pressure sensor may include at least two parallel plates having conductive materials. When a force acts on the pressure sensor 180A, the capacitance between the electrodes changes. The electronic device 100 determines the intensity of the pressure according to the change in capacitance. When a touch operation acts on the display screen 194, the electronic device 100 detects the intensity of the touch operation according to the pressure sensor 180A. The electronic device 100 can also calculate the position of the touch according to the detection signal of the pressure sensor 180A. In some embodiments, touch operations acting on the same touch position but with different touch operation intensities may correspond to different operation instructions. For example: when a touch operation with a touch operation intensity less than the first pressure threshold acts on the short message application icon, the instruction to view the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, the instruction to create a new short message is executed.

[0159] 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., the x, y, and z axes) can be determined by the gyroscope sensor 180B. The gyroscope sensor 180B can be used for anti-shake shooting. Exemplarily, when the shutter is pressed, the gyroscope sensor 180B detects the angle of jitter of the electronic device 100, calculates the distance that the lens module needs to compensate according to the angle, and enables the lens to offset the jitter 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 scenarios.

[0160] The barometric pressure sensor 180C is used to measure barometric pressure. In some embodiments, the electronic device 100 calculates the altitude according to the barometric pressure value measured by the barometric pressure sensor 180C to assist in positioning and navigation.

[0161] 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 leather 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 according to the magnetic sensor 180D. Furthermore, according to the detected opening and closing state of the leather case or the opening and closing state of the flip, features such as automatic flip unlocking are set.

[0162] The acceleration sensor 180E can detect the magnitude of the acceleration of the electronic device 100 in various directions (generally three axes). When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of the electronic device and is applied to applications such as horizontal and vertical screen switching and pedometers.

[0163] A distance sensor 180F is used to measure distance. The electronic device 100 can measure distance through 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 rapid focusing.

[0164] 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 the photodiode to detect the 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 when the user holds the electronic device 100 close to the ear for a call, so as to automatically turn off the screen to achieve the purpose of power saving. The proximity light sensor 180G can also be used for automatic unlocking and locking of the holster mode and pocket mode.

[0165] The ambient light sensor 180L is used to sense the ambient light brightness. The electronic device 100 can adaptively adjust the brightness of the display screen 194 according to the sensed ambient light brightness. The ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures. The ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in the pocket to prevent accidental touch.

[0166] The fingerprint sensor 180H is used to collect fingerprints. The electronic device 100 can use the collected fingerprint characteristics to achieve fingerprint unlocking, access to application locks, fingerprint photography, fingerprint answering of incoming calls, etc.

[0167] 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 near the temperature sensor 180J in order 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 avoid abnormal shutdown of the electronic device 100 caused by low temperature. In some other embodiments, when the temperature is lower than yet another threshold, the electronic device 100 boosts the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.

[0168] The touch sensor 180K, also known as the "touch panel". The touch sensor 180K can be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, also known as the "touch control screen". The touch sensor 180K is used to detect touch operations acting thereon or nearby. The touch sensor can transmit the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 194. In some other embodiments, the touch sensor 180K can also be disposed on the surface of the electronic device 100, at a different position from where the display screen 194 is located.

[0169] The bone conduction sensor 180M can acquire vibration signals. In some embodiments, the bone conduction sensor 180M can acquire vibration signals of the vibrating bone mass of the human vocal part. The bone conduction sensor 180M can also contact the human pulse to receive blood pressure pulsation signals. In some embodiments, the bone conduction sensor 180M can also be disposed in the earphone to form a bone conduction earphone. The audio module 170 can parse out voice signals based on the vibration signals of the vibrating bone mass of the human vocal part acquired by the bone conduction sensor 180M to implement the voice function. The application processor can parse out heart rate information based on the blood pressure pulsation signals acquired by the bone conduction sensor 180M to implement the heart rate detection function.

[0170] The button 190 includes a power-on button, a volume button, etc. The button 190 can be a mechanical button or a touch button. The electronic device 100 can receive button inputs to generate key signal inputs related to the user settings and function controls of the electronic device 100.

[0171] The motor 191 can generate vibration prompts. The 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, playing audio, etc.) can correspond to different vibration feedback effects. Touch operations acting on different regions of the display screen 194 can also correspond to different vibration feedback effects for the motor 191. Different application scenarios (such as time reminder, receiving information, alarm clock, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.

[0172] The indicator 192 can be an indicator light and can be used to indicate the charging state, power change, and can also be used to indicate messages, missed calls, notifications, etc.

[0173] The SIM card interface 195 is used to connect the SIM card.

[0174] The following introduces the software system of the electronic device 100 provided in the embodiments of the present application.

[0175] Figure 4AAn exemplary software system architecture diagram of an electronic device 100 provided in an embodiment of the present application is shown. The software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservices architecture, or a cloud architecture. For example, the software system with a layered architecture may be the Android system, or the Harmony operating system (OS), or other software systems.

[0176] Figure 4A It is a software structure block diagram of the electronic device 100 according to an embodiment of the present invention. Figure 4A Taking the Android system with a layered architecture as an example, the software architecture of the electronic device 100 is exemplarily described.

[0177] The layered architecture divides the software into several layers, and each layer has a clear role and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom, namely the application layer, the application framework layer, the Android runtime and system libraries, and the kernel layer.

[0178] The application layer may include a series of application packages.

[0179] As Figure 4A shown, the application packages may include applications such as a camera, a gallery, a calendar, a call, a map, a navigation, a WLAN, a Bluetooth, music, a video, a short message, etc.

[0180] The application framework layer provides application programming interfaces (APIs) and programming frameworks for the applications in the application layer. The application framework layer includes some predefined functions.

[0181] As Figure 4A shown, 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.

[0182] Among them, the device discovery module is used to send a device discovery broadcast after receiving a message sent by a low-power chip to determine a target electronic device that also supports the fast data transfer capability.

[0183] The device discovery module is further used to send a connection establishment message to the communication module when it is determined that the target electronic device also supports the fast data transfer capability.

[0184] A communication module, which is used to establish a communication connection with a target electronic device through a Wi-Fi function module or a Bluetooth function module in response to a connection establishment message sent by a device discovery module.

[0185] A data sharing module, which is used to share in-app data to the target electronic device through the communication connection after the electronic device 100 establishes a communication connection with the target electronic device.

[0186] The application framework layer may also include a window manager, a content provider, a view system, a telephone manager, a resource manager, a notification manager, etc.

[0187] The window manager is used to manage window programs. The window manager can obtain the display screen size, determine whether there is a status bar, lock the screen, capture the screen, etc.

[0188] The content provider is used to store and obtain data, and make this data accessible to application programs. The data may include videos, images, audios, dialed and answered calls, browsing histories and bookmarks, phone books, etc.

[0189] The view system includes visible controls, such as controls for displaying text, controls for displaying pictures, etc. The view system can be used to build application programs. The display interface can be composed of one or more views. For example, a display interface including a short message notification icon may include a view for displaying text and a view for displaying pictures.

[0190] The telephone manager is used to provide the communication function of the electronic device 100. For example, the management of call states (including connection, disconnection, etc.).

[0191] The resource manager provides various resources for application programs, such as localized strings, icons, pictures, layout files, video files, etc.

[0192] The notification manager enables application programs to display notification information in the status bar, can be used to convey notification-type messages, can automatically disappear after a short stay without user interaction. For example, the notification manager is used to inform the completion of a download, a message reminder, etc. The notification manager can also be a notification that appears in the system top status bar in the form of a chart or a scroll bar text, such as the notification of a background-running application program, and can also be a notification that appears on the screen in the form of a dialogue window. For example, prompt text information in the status bar, emit a prompt sound, the electronic device vibrates, the indicator light flashes, etc.

[0193] Android Runtime includes a core library and a virtual machine. Android runtime is responsible for the scheduling and management of the Android system.

[0194] The core library consists of two parts: one is the functional functions that the Java language needs to call, and the other is the core library of Android.

[0195] The application layer and the application framework layer run in the virtual machine. The virtual machine executes the Java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as management of object life cycles, stack management, thread management, security and exception management, and garbage collection.

[0196] The system library can include multiple functional modules. For example: surface manager, Media Libraries, 3D graphics processing library (e.g., OpenGL ES), 2D graphics engine (e.g., SGL), etc.

[0197] The surface manager is used to manage the display subsystem and provides the fusion of 2D and 3D layers for multiple applications.

[0198] The media library supports the playback and recording of multiple common audio and video formats, as well as static image files, etc. The media library can support multiple audio and video coding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.

[0199] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, synthesis, and layer processing, etc.

[0200] The 2D graphics engine is the drawing engine for 2D drawing.

[0201] The kernel layer is the layer between the hardware and the software. The kernel layer contains at least a display driver, a camera driver, an audio driver, and a sensor driver.

[0202] The hardware layer includes a low-power camera and a low-power chip.

[0203] Among them, the low-power camera can be a front camera or a rear camera, and this application does not make a limitation on this. The low-power camera can be in an always-on state. The low-power camera can periodically / irregularly collect images and send the images collected by the low-power camera to the low-power chip. The low-power chip can identify the images collected by the low-power camera to obtain an image recognition result. The image recognition result can include but is not limited to face images, gesture images, animal images, plant images, device images, etc.

[0204] After obtaining the image recognition result, the low-power chip can determine whether the image belongs to the device image based on the image recognition result. The device image can include, but is not limited to, any one of the following: mobile phone, tablet computer, handheld computer, desktop computer, laptop computer, ultra-mobile personal computer, netbook, cellular phone, personal digital assistant, and smart large screen, smart speaker, etc., smart bracelet, smart watch, smart glasses, etc., augmented reality, virtual reality, mixed reality, etc., in-vehicle device or smart city device, etc. When it is determined that the image recognition result belongs to the device image, the low-power chip can send Message 1 to the device discovery module.

[0205] In some embodiments, when it is determined that the image recognition result belongs to the device image, the low-power chip can determine whether the device image includes the display screen image of the device based on the image recognition result. When the device image includes the display screen image of the device, the low-power chip then sends Message 1 to the device discovery module.

[0206] In some embodiments, when it is determined that the image recognition result belongs to the device image, the low-power chip can also determine the placement posture of the device based on the image sent by the low-power camera. When the placement posture of the electronic device 100 and the placement posture of the device meet the preset conditions, the low-power chip then sends Message 1 to the device discovery module. Among them, the placement posture includes, but is not limited to: vertical screen placement, horizontal screen placement, placement at a specific angle, etc.

[0207] Figure 4B Shows a Figure 4A Interaction schematic diagram of multiple different functional modules in.

[0208] Such as Figure 4B As shown, the functional modules on the electronic device 100 can 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, etc.

[0209] The functional modules on the electronic device 200 can 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, etc.

[0210] Among them, the first application and the second application can be the same or similar applications.

[0211] The low-power cameras and low-power chips on the electronic device 100 and the electronic device 200 are in an always-on state to determine whether a target electronic device is found.

[0212] The low-power camera can be a front camera or a rear camera, and this application does not make a limitation on this.

[0213] As shown Figure 4B in Figure 4B , the low-power camera on the electronic device 100 can be in an always-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.

[0214] Among them, the low-power chip on the electronic device 100 can identify the images captured by the low-power camera to determine whether the images belong to device images. When it is determined that the images belong to device images, the low-power chip on the electronic device 100 can send Message 1 to the device discovery module on the electronic device 100.

[0215] In some embodiments, when the low-power chip on the electronic device 100 determines that the images do not belong to device images, for example, it is determined that the images belong to face images, gesture images, animal images, plant images, etc., the low-power chip on the electronic device 100 does not send messages to the device discovery module.

[0216] 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 further determine whether the device images include the display screen image of the device based on the images captured by the low-power camera. When the low-power camera is a front camera and the images captured by the low-power camera include the display screen image, the low-power chip on the electronic device 100 sends Message 1 to the device discovery module on the electronic device 100.

[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 can further determine whether the placement posture of the device meets the preset conditions based on the images captured by the low-power camera. When 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 sends Message 1 to the device discovery module on the electronic device 100. Among them, the placement posture includes but is not limited to: horizontal screen placement, horizontal screen placement, placement at a specific angle, etc.

[0218] In some embodiments, when any one or more of the following conditions are met: the images belong to device images, the images include the display screen image, the placement posture of the electronic device 100 and the placement posture of the device in the images meet the preset conditions, the low-power chip on the electronic device 100 sends Message 1 to the device discovery module on the electronic device 100.

[0219] It should be noted that the low-power camera and low-power chip on the electronic device 200 can also be in an always-on state and continuously determine whether a target electronic device is detected. For the functions of the low-power camera and low-power chip on the electronic device 200, reference can be made to the description of the functions of the low-power camera and low-power chip on the electronic device 100, and details are not elaborated herein.

[0220] In some embodiments, after the device discovery module on the electronic device 100 receives Message 1 sent by the low-power chip on the electronic device 100, the device discovery module on the electronic device 100 further determines the target electronic device that also supports the fast data transfer capability.

[0221] Specifically, the device discovery module on the electronic device 100 can send a device discovery broadcast to enable the electronic device 100 to determine whether the target electronic device also supports the fast data transfer capability and which device the target electronic device is.

[0222] There may be one or more devices near the electronic device 100, and the electronic device 100 can send a device discovery broadcast, and one or more devices near the electronic device 100 can all receive the device discovery broadcast sent by the electronic device 100.

[0223] For example, the electronic device 200 is located near the electronic device 100 and receives the device discovery broadcast sent by the electronic device 100. When the electronic device 200 supports the swing capability, the electronic device 200 can send a response broadcast to the electronic device 100, and the response broadcast carries a swing identifier, and the swing identifier is used to indicate that the electronic device 200 also supports the fast data transfer capability. In response to the swing identifier carried in the response broadcast, the electronic device 100 can determine that the electronic device 200 is the target electronic device. 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.

[0224] 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 image captured by the low-power camera on the electronic device 200 also recognizes the device image, indicating that the electronic device 100 and the electronic device 200 are placed opposite each other, the electronic device 200 then sends a response broadcast to the electronic device 100.

[0225] In some embodiments, after the electronic device 200 receives the device discovery broadcast sent by the electronic device 100, when the device image is not recognized in the image captured by the low-power camera of the electronic device 200, it indicates 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. In this way, the occurrence of accidental touches can be reduced.

[0226] In some embodiments, the response broadcast may also carry the placement posture of the electronic device 200. After the electronic device 100 receives the response broadcast sent by the electronic device 200, 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, the electronic device 100 may determine that the electronic device 200 is the target electronic device. 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.

[0227] 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 may determine that the electronic device 200 is the target electronic device.

[0228] In the embodiments of the present application, for the electronic device 100 to establish a communication connection with the electronic device 200, it 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.

[0229] 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.

[0230] In the embodiments of the present application, when the electronic device 100 establishes a communication connection with the electronic device 200, the electronic device 100 and the electronic device 200 may perform data transmission. Exemplarily, the first application of the electronic device 100 may send the first data to the communication module of the electronic device 100; when the communication module of the electronic device 100 receives the first data, the communication module of the electronic device 100 may send the first data to the communication module of the electronic device 200 through the communication connection; when the communication module of the electronic device 200 receives the first data, the communication module of the electronic device 200 may send the first data to the second application of the electronic device 200. When the second application of the electronic device 200 receives the first data, the sharing of the first data of the electronic device 100 to the electronic device 200 is realized.

[0231] In some embodiments, the electronic device 100 and the electronic device 200 can also share data with each other. That is, 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 can also send the second data to the electronic device 100. The manner in which the electronic device 200 sends the second data to the electronic device 100 can refer to the description of how the electronic device 100 sends the first data to the electronic device 200, and this application will not elaborate further here.

[0232] The following introduces some data sharing scenarios provided by the embodiments of this application.

[0233] I. One-way data sharing scenario.

[0234] Based on the foregoing introduction, it can be seen that when two devices support the fast transfer data capability, the two devices can automatically establish a communication connection and share data in the manner of this application, saving user operations.

[0235] In some embodiments, the electronic device 100 can receive and respond to the user's operation of sharing the first data. Exemplarily, 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.

[0236] In some embodiments, the electronic device 100 can receive and respond to the first operation of the user 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 postures. 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.

[0237] In some embodiments, the electronic device 100 may receive and respond to a first operation by the user to share first data. 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 the display screen image of the electronic device 200. For example, in response to the operation of the user to share the first data, 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 may automatically establish a communication connection with the electronic device 200 and send the first data to the electronic device 200.

[0238] Exemplarily, the first operation by the user to share the first data may be an operation by the user to select the first data. For example, the operation by the user to share the first data may be an operation that causes the electronic device 100 to display the first data.

[0239] Exemplarily, the first operation by the user to share the first data may also be an operation by the user to select the first data and then perform an operation on the sharing option. In this implementation, the user may select multiple data and click (e.g., single-click) the sharing option, so that the electronic device 100 can send the multiple data to the electronic device 200 at one time.

[0240] The first operation by the user to share the first data may also be other implementation manners, which are not limited in this application. In the embodiments of this application, the example where the first operation by the user to share the first data is an operation that causes the electronic device 100 to display the first data is used for exemplary illustration.

[0241] Among them, the first placement posture and the second placement posture may be the same or different. In the embodiments of this application, the example where the electronic device 100 shares data with the electronic device 200 when the first placement posture and the second placement posture are different is used for illustration.

[0242] Exemplarily, the first placement posture may be a portrait placement posture, and the second placement posture may be a landscape placement posture. The first placement posture may also be a landscape placement posture, and the second placement posture may also be a portrait placement posture.

[0243] In the following embodiments of this application, the example where the first placement posture is a portrait placement posture and the second placement posture is a landscape placement posture is used for illustration.

[0244] The first data shared by the electronic device 100 with 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.

[0245] Among them, Figures 5A - 5MA schematic diagram showing an electronic device 100 sharing a picture with an electronic device 200 is shown.

[0246] Exemplarily, the first application and the second application may be gallery applications, and the first data may be pictures in the gallery application.

[0247] Figure 5A The desktop of the electronic device 100 is shown. Application icons of multiple applications are displayed on the desktop of the electronic device 100. For example, 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, a voice assistant application icon, etc. 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 between the currently displayed page and other pages. For example, the desktop may include three pages, and the white dot in the page indicator may indicate that the currently displayed page is the rightmost one of the three pages. Further optionally, there are multiple tray icons (such as a dial application icon, a messaging application icon, a contacts application icon, a camera application icon) below the page indicator, and the tray icons remain displayed during page switching. Optionally, a status bar is displayed in the upper part of the desktop. The status bar may include: one or more signal strength indicators of mobile communication signals (also known as cellular signals), a battery status indicator, a time indicator, etc.

[0248] Exemplarily, as Figure 5A shown, the electronic device 100 may receive an input operation (such as a click) from the user on the gallery application icon on the desktop. In response to the user's input operation, the electronic device 100 may display Figure 5B the user interface 510 shown. The user interface 510 is a user interface in which the photos displayed on the electronic device 100 provided in the embodiments of the present application are classified by time. Multiple pictures are shown in the user interface 510, and picture 1011 is included in the multiple pictures.

[0249] Exemplarily, as Figure 5B shown, the electronic device 100 may receive an input operation (such as a click) from the user on picture 1011 in the user interface 510. In response to the user's input operation, the electronic device 100 may display Figure 5C the user interface 1010 shown. For the description of the user interface 1010, reference may be made to the description in Figure 1A the embodiments. The present application will not elaborate herein.

[0250] 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.

[0251] In some embodiments, 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 a preset posture. 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. In this way, it can be that the user actively operates to place the electronic device 100 and the electronic device 200 in specific placement postures, which can prevent the occurrence of accidental touches.

[0252] In some embodiments, 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 a preset posture 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. In this way, it can be that the user actively operates to place the electronic device 100 and the electronic device 200 in specific placement postures, which can prevent the occurrence of accidental touches.

[0253] Exemplarily, as Figure 5D shown, the user places the display screens of the electronic device 100 and the electronic device 200 opposite to each other and places the electronic device 100 and the electronic device 200 in specific placement postures. For example, the electronic device 100 is placed in a vertical screen posture, and the electronic device 200 is placed in a horizontal screen posture. When the electronic device 100 is placed in a vertical screen posture, the vertical plane where the electronic device 100 is located is perpendicular to the horizontal plane. When the electronic device 200 is placed in a horizontal screen posture, the vertical plane where the electronic device 200 is located is perpendicular to the horizontal plane, and the vertical plane where the electronic device 100 is located is parallel to the vertical plane where the electronic device 200 is located.

[0254] In some embodiments, Figure 5D the horizontal plane shown can be the horizontal plane where the desktop is located.

[0255] Optionally, the vertical plane where the electronic device 100 is located is perpendicular to the horizontal plane, which may mean that the vertical plane where the electronic device 100 is located intersects the horizontal plane at a second angle. Similarly, the vertical plane where the electronic device 200 is located being perpendicular to the horizontal plane may also mean that the vertical plane where the electronic device 200 is located intersects the horizontal plane at a second angle. For example, the second angle may be 90 degrees. It should be noted that it is allowed that the angle formed by the vertical plane where the electronic device 100 is located and the horizontal plane has an error compared to the second angle. For example, the second angle ±10 degrees both belong to the second angle. In some embodiments, the second angle may be any angle in the second angle range. Exemplarily, the second angle range may be from 80 degrees to 100 degrees. The second angle range may also be other angle range values, and the present application does not limit this either.

[0256] Optionally, the vertical plane where the electronic device 100 is located is parallel to the vertical plane where the electronic device 200 is located, which may mean that the vertical plane where the electronic device 100 is located does not intersect the vertical plane where the electronic device 200 is located, or 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 the third angle range. Exemplarily, the third angle range may be from 0 degrees to 10 degrees. The third angle range may also be other angle range values, and the present application does not limit this either.

[0257] The descriptions of "vertical" and "horizontal" appearing below can refer to the explanations here.

[0258] In this way, the relative placement of the displays of the electronic device 100 and the electronic device 200 and the specific placement postures of the electronic device 100 and the electronic device 200 can improve the accuracy of data transmission using the fast transfer data capability between devices and prevent accidental touches.

[0259] The process by which the electronic device 100 automatically establishes a communication connection with the 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 the electronic device 100 includes a device image, the image captured by the low-power camera of the electronic device 100 includes the display image of the target electronic device, and the placement posture of the electronic device 100 and the placement posture of the target electronic device in the image meet the preset conditions, the electronic device 100 can send a device discovery broadcast. The device discovery broadcast is used to determine which one or which devices the target electronic device is, and whether the target electronic device supports the fast transfer data capability.

[0260] Optionally, the device discovery broadcast may carry a swing identifier, and this swing identifier is used to indicate that the electronic device 100 supports the fast transfer data capability. Optionally, the device discovery broadcast sent by the electronic device 100 may also not carry this swing identifier, and the present application does not limit this.

[0261] One or more devices located near the electronic device 100 can receive the device discovery broadcast sent by the electronic device 100. Exemplarily, the electronic device 200 is located near the electronic device 100, and the electronic device 200 can receive the device discovery broadcast sent by the electronic device 100.

[0262] In response to receiving the device discovery broadcast sent by the electronic device 100, when the electronic device 200 supports the fast transfer data capability, the electronic device 200 can send a response broadcast to the electronic device 100. Among them, the response broadcast carries a swing identifier, and the swing identifier is used to indicate that the electronic device 200 also supports the fast transfer data capability.

[0263] After the electronic device 100 receives the response broadcast sent by the electronic device 200, in response to the swing identifier carried in the response broadcast, the electronic device 100 can determine that the electronic device 200 is the target electronic device. 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.

[0264] In some embodiments, the response broadcast also carries the placement posture of the electronic device 200. After the electronic device 100 receives the response broadcast sent by the electronic device 200, 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, the electronic device 100 can determine that the electronic device 200 is the target electronic device. 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.

[0265] After the electronic device 100 establishes a communication connection with the electronic device 200, the electronic device 100 can send the picture 1011 to the electronic device 200 through the communication connection.

[0266] In some embodiments, in response to the electronic device 100 sending the picture 1011 to the electronic device 200, before the electronic device 100 sends the picture 1011, the electronic device 100 can display Figure 5E the shown sending window 5020. The sending window 5020 includes a thumbnail 5021 of the picture 1011, text 5022, and a cancel control 5023. The text 5022 includes "Requesting to send a picture to Alice, waiting for the other party to confirm receipt", and the text 5022 is used to indicate whether the electronic device 200 agrees to receive the picture shared by the electronic device 100. The cancel control 5023 can be used to trigger the electronic device 100 to cancel sending the picture 1011 to the electronic device 200.

[0267] 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 Figure 5F the receiving window 5030 shown. 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 receive it?", and 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 reject receiving 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.

[0268] In some embodiments, in response to the electronic device 200 agreeing to receive the picture 1011 shared by the electronic device 100, during the process of sending the picture 1011, the electronic device 100 may display Figure 5G the sending window 5040 shown. The sending window 5040 includes a thumbnail 5041 of the picture 1011, text 5042, and the text 5042 includes "Sending a picture to Alice...". The sending window 5040 also includes a sending progress 5043 and a cancel control 5044. Among them, the text 5042 can be used to prompt the user that the current electronic device 100 is requesting to send the picture 1011 to the electronic device 200 with which a communication connection is established. Among them, the prompting type of the text 5042 can also be any one or more of a picture prompt, a GIF prompt, a video prompt, etc. The sending progress 5043 is used to indicate the progress of the picture 1011 sent by the electronic device 100 to the electronic device 200. The cancel control 5044 can be used to trigger the electronic device 100 to cancel sending the picture 1011 to the electronic device 200.

[0269] In some embodiments, during the process of receiving the picture 1011 sent by the electronic device 100, the electronic device 200 may display Figure 5H the receiving window 5050 shown. The receiving window 5050 includes text 5051, a progress bar 5053, and a cancel control 5054. The text 5051 includes "Receiving the picture sent by Daniel to you", and the text 5051 is used to prompt the user that the current electronic device 200 is receiving the picture 1011 sent by the electronic device 100. The progress bar 5053 is used to indicate the receiving progress of the picture 1011. The cancel control 5054 can be used to trigger the electronic device 200 to reject receiving the picture 1011 shared by the electronic device 100.

[0270] In some embodiments, after the electronic device 100 successfully sends the picture 1011 to the electronic device 200, the electronic device 100 may display Figure 5IThe window 5060 shown. The window 5060 may include a thumbnail 5061 of the picture 1011, text 5062, a recall control 5063, and a continue sending control 5064. The text 5062 includes "1 picture has been sent to Alice", and the text 5062 is used to prompt the user that the electronic device 100 has successfully sent the picture 1011 to the electronic device 200. The recall control 5063 is used to send a recall instruction to the electronic device 200 after the electronic device 100 sends the picture 1011 to the electronic device 200, and the recall instruction is used to request the electronic device 200 to delete the picture 1011 received from the electronic device 100. The continue sending control 5064 can be used for the electronic device 100 to continue sending other pictures to the electronic device 200.

[0271] It should be noted that 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 may not display Figures 5E - 5I the prompt information shown. This application does not make any limitations in this regard.

[0272] 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 Figure 5D the placement posture shown.

[0273] 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 Figure 5D the placement posture shown, and the electronic device 100 and the electronic device 200 still have a communication connection established.

[0274] After the electronic device 200 receives the picture 1011 sent by the electronic device 100, the electronic device 200 may display Figure 5J the user interface 5070 shown, and the user interface 5070 includes the picture 1011.

[0275] By Figures 5A - 5J the method shown, the electronic device 100 and the electronic device 200 can quickly transfer data, save user operations, improve the data transfer efficiency between devices, and enhance the user experience.

[0276] In some embodiments, when the electronic device 100 sends the picture 1011 to the electronic device 200 through a communication connection, the electronic device 100 can disconnect the communication connection with the electronic device 200. When the electronic device 100 needs to continue sharing data with the electronic device 200 based on the fast transfer data capability, the electronic device 100 and the electronic device 200 can re - establish a communication connection to transfer data in the manner shown in Figures 5A - 5D the embodiment.

[0277] In some embodiments, after the electronic device 100 sends the picture 1011 to the electronic device 200 via a communication connection, the electronic device 100 can continue to maintain the communication connection with the electronic device 200, so that the electronic device 200 can continue to share other data with the electronic device 200.

[0278] In a possible implementation, after the electronic device 100 sends data to the electronic device 200 via a communication connection, the electronic device 100 can switch to display other data based on a user operation, and the electronic device 100 can send the other displayed data to the electronic device 200.

[0279] Exemplarily, after the electronic device 100 shares the picture 1011 with the electronic device 200, a communication connection is also established between the electronic device 100 and the electronic device 200. The electronic device 100 can continue to share other pictures with the electronic device 200.

[0280] As Figure 5K shown, the electronic device 100 can receive a sliding operation of the user on the user interface 1010, such as a leftward sliding operation. In response to the user's sliding operation, the electronic device 100 can display Figure 5L the user interface 5080 shown, and the user interface 5080 includes the picture 1012.

[0281] In response to the electronic device 100 displaying the picture 1012, the electronic device 100 can share the picture 1012 with the electronic device 200 in the manner shown Figures 5E - 5I as shown.

[0282] In response to the picture 1012 shared by the electronic device 100, the electronic device 200 can display Figure 5M the user interface 5090 shown, and the user interface 5090 includes the picture 1012.

[0283] In some embodiments, after the electronic device 100 sends the picture 1011 to the electronic device 200 via a communication connection, the electronic device 100 can switch to display other pictures based on a user operation, such as displaying the picture 1012. The electronic device 100 can receive a sharing operation of the user (such as an input operation for a sharing option). In response to the user's sharing operation, the electronic device 100 can send the displayed picture 1012 to the electronic device 200. In this way, the user can selectively share the pictures on the electronic device 100 with the electronic device 200.

[0284] Figures 6A - 6J The figure shows a schematic diagram of the electronic device 100 sharing a link with the electronic device 200.

[0285] Exemplarily, the first application may be a news application, and the first data may be a link to a news article in the news application.

[0286] The electronic device 100 may display Figure 6A the desktop of the electronic device 100 shown, and the desktop includes an icon of the news application.

[0287] As Figure 6A shown, the electronic device 100 may receive an input operation (such as a click) from the user on the icon of the news application in the desktop. In response to the user's input operation, the electronic device 100 may display Figure 6B the user interface 6100 shown. The user interface 6100 may include the title of the news article (e.g., "Golf prodigy Alee makes his debut and wins gold"), the content of the news article (e.g., "Yesterday, golf prodigy Alee made his debut at the golf tournament and won the gold medal with a total score of 267 strokes in four rounds."), the name and avatar of the publisher of the news article (e.g., "Morning News"), and more controls. A status bar may be displayed at the top of the user interface 6100. For the textual description of the status bar, reference may be made to the textual description of the status bar in the foregoing embodiments, which will not be elaborated herein.

[0288] Referring to Figure 5D the description in the embodiments, when the user shares the news article displayed in the user interface 6100 to the electronic device 200 through the fast transfer data capability, the user not only needs to place the display screens of the electronic device 100 and the electronic device 200 opposite to each other, but also needs to place the electronic device 100 and the electronic device 200 in a specific placement posture. For example, the electronic device 100 is placed vertically, and the electronic device 200 is placed horizontally. The electronic device 100 is placed vertically.

[0289] Exemplarily, as Figure 6C shown, after the electronic device 100 and the electronic device 200 are in Figure 6C the placement posture shown, the electronic device 100 and the electronic device 200 may automatically establish a communication connection.

[0290] 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 to the electronic device 200 through the communication connection.

[0291] In some embodiments, in response to the electronic device 100 sending the link of the news article to the electronic device 200, before the electronic device 100 sends the link of the news article, the electronic device 100 may display Figure 6DThe sending window 6200 as shown. The sending window 6200 includes the description information 6201 of the above news article (e.g., "News APP: [Golf prodigy Alee makes his debut and wins the gold medal]"), a sending prompt 6202, and a cancellation control 6203. The sending prompt 6202 can be used to prompt the user that the current electronic device 100 is requesting to send the link of 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 text prompts (e.g., "Requesting to send news to Alice, waiting for the other party to confirm receipt."), picture prompts, animated picture prompts, video prompts, etc. The cancellation control 6203 can be used to trigger the electronic device 100 to cancel sending the link of the news article to the electronic device 200.

[0292] In some embodiments, in response to the electronic device 100 sending the link of the news article, before receiving the link of the news article sent by the electronic device 100, the electronic device 200 can display Figure 6E The receiving window 6300 as shown. 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 with you. Do you want to receive it?", and the text 6301 is used to indicate whether the user agrees to receive the news shared by the electronic device 100. The rejection option 6302 is used to reject receiving the news shared by the electronic device 100. The receiving option 6303 is used to agree to receive the news shared by the electronic device 100.

[0293] In some embodiments, in response to the electronic device 200 agreeing to receive the news shared by the electronic device 100, during the process of sending the link of the news article, the electronic device 100 can display Figure 6F The sending window 6400 as shown. The sending window 6400 includes the description information 6401 of the above news article (e.g., "News APP: [Golf prodigy Alee makes his debut and wins the gold medal]") and a sending prompt 6402. The sending prompt 6402 can be used to prompt the user that the current electronic device 100 is requesting to send the link of the news article to the electronic device 200. Among them, the prompt type of the sending prompt 6402 can be any one or more of text prompts (e.g., "Sending news to Alice..."), picture prompts, animated picture prompts, video prompts, etc. The sending window 6400 also includes a sending progress 6403 and a cancellation control 6404. Among them, the sending progress 6403 is used to indicate the progress of the link of the news article sent by the electronic device 100 to the electronic device 200. The cancellation control 6404 can be used to trigger the electronic device 100 to cancel sending the link of the news article to the electronic device 200.

[0294] In some embodiments, during the process of receiving the link of the news article sent by the electronic device 100, the electronic device 200 may display Figure 6G the receiving window 6500 as shown. The receiving window 6500 includes text 6501, a progress bar 6502, and a cancel control 6503. The text 6501 includes "Receiving news information sent by Daniel to you", and the text 6501 is used to prompt the user that the current electronic device 200 is receiving the news information sent by the electronic device 100. The progress bar 6502 is used to indicate the receiving progress of the link of the news article. The cancel control 6503 can be used to trigger the electronic device 200 to reject receiving the link of the news article shared by the electronic device 100.

[0295] In some embodiments, after the electronic device 100 successfully sends the link of the news article to the electronic device 200, the electronic device 100 may display Figure 6H the window 6600 as shown. The window 6600 may include the description information 6601 of the above news article (for example, "News APP: [Golf prodigy Alee makes his debut and wins the gold medal]"), text 6602, a recall control 6603, and a continue sending control 6604. The text 6602 includes "Have sent a news article to Alice", and the text 6602 is used to prompt the user that the electronic device 100 has successfully sent the link of the news article to the electronic device 200. The recall control 6603 is used to send a recall instruction to the electronic device 200 after the electronic device 100 sends the link of the news article to the electronic device 200, and the recall instruction is used to request the electronic device 200 to delete the link of the news article received from the electronic device 100. The continue sending control 6604 can be used for the electronic device 100 to continue sending the links of other news articles to the electronic device 200.

[0296] In some embodiments, after the electronic device 200 receives the link of the news article sent by the electronic device 100, the electronic device 200 may display Figure 6IThe receiving window 6700 shown. The description information 6701 of the above news article (e.g., "News APP: [Golf prodigy Alee makes his debut and wins the gold medal]") and one or more function controls may be included in the receiving window 6700. Among them, the one or more function controls include an open control 6702 in the news application, an open control 6703 with a browser, a copy to memo control 6704, and so on. The open control 6702 in the news application can be used to trigger the electronic device 200 to identify a link based on the news article in the news 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 the browser application to display the news article based on the link of the news article. The copy to memo control 6704 can be used to trigger the electronic device 200 to copy the link of the news article to the memo.

[0297] In some embodiments, after the electronic device 200 receives the link of the news article sent by the electronic device 100, or when the user selects to open the news article corresponding to the link of the news article in the news application, the electronic device 200 may display Figure 6J The user interface 6800 shown, and the user interface 6800 includes an interface of the news article corresponding to the link of the news article.

[0298] It should be noted that during the process of the electronic device 100 sending the link of the news article to the electronic device 200, the electronic device 100 and the electronic device 200 may not display Figures 6D - 6I The prompt information shown, and the present application does not limit this.

[0299] During the process of the electronic device 100 sending the link of the news article to the electronic device 200, the electronic device 100 and the electronic device 200 need to maintain Figure 6C The placement posture shown.

[0300] 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 Figure 6C The placement posture shown, and the electronic device 100 and the electronic device 200 still have a communication connection established.

[0301] Through Figures 6A - 6J The method can achieve the rapid transmission of the link between the electronic device 100 and the electronic device 200, save user operations, improve the data transmission efficiency between devices, and enhance the user experience.

[0302] Figures 7A - 7J The schematic diagram showing the electronic device 100 sharing a document with the electronic device 200 is shown.

[0303] Exemplarily, the first application may be a document APP, and the first data may be the document of the document APP.

[0304] The electronic device 100 may display Figure 7A the desktop of the electronic device 100 shown, and the desktop includes the icon of the document APP.

[0305] As Figure 7A shown, the electronic device 100 may receive an input operation (such as a click) of the user on the icon of the document APP on the desktop. In response to the user's input operation, the electronic device 100 may display Figure 7B the user interface 7100 shown. 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, etc. 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 close option, etc. A status bar may be displayed at the top of the user interface 6100. For the textual description of the status bar, reference may be made to the textual description of the status bar in the foregoing embodiments, which will not be elaborated herein.

[0306] Referring to Figure 5D the description in the embodiment, when the user shares the document displayed in the user interface 7100 to the electronic device 200 through the fast transfer data capability, the user not only needs to place the display screens of the electronic device 100 and the electronic device 200 opposite to each other, but also needs to place the electronic device 100 and the electronic device 200 in a specific placement posture. For example, the electronic device 100 is placed vertically, and the electronic device 200 is placed horizontally. The electronic device 100 is placed vertically.

[0307] Exemplarily, as Figure 7C shown, after the electronic device 100 and the electronic device 200 are in Figure 7C the placement posture shown, the electronic device 100 and the electronic device 200 may automatically establish a communication connection.

[0308] 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 to the electronic device 200 through the communication connection.

[0309] In some embodiments, in response to the document sent from the electronic device 100 to the electronic device 200, before the electronic device 100 sends the document, the electronic device 100 may display Figure 7DThe sending window 7200 as shown. The sending window 7200 includes the description information 7201 of the above-mentioned document (e.g., "Document 1, 3.1MB"), a sending prompt 7202, and a cancellation control 7203. The sending 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. Among them, the prompt type of the sending prompt 7202 can be any one or more of a text prompt (e.g., "Requesting to send a document to Alice, waiting for the other party to confirm receipt."), a picture prompt, a GIF prompt, and a video prompt, etc. The cancellation control 7203 can be used to trigger the electronic device 100 to cancel sending the document to the electronic device 200.

[0310] 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 can display Figure 7E The receiving window 7300 as shown. 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 receive it?" 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 reject receiving 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.

[0311] 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 can display Figure 7F The sending window 7400 as shown. The sending window 7400 includes the description information 7401 of the above-mentioned news article (e.g., "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. Among them, the prompt type of the sending prompt 7402 can be any one or more of a text prompt (e.g., "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 cancellation control 7404. Among them, 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 cancellation control 7404 can be used to trigger the electronic device 100 to cancel sending the document to the electronic device 200.

[0312] In some embodiments, during the process of receiving the document sent by the electronic device 100, the electronic device 200 can display Figure 7GThe receiving window 7500 shown. The receiving window 7500 includes text 7501, a progress bar 7502, and a cancel control 7503. The text 7501 includes "Receiving the document sent by Daniel to you", and the text 7501 is used to prompt the user that the current electronic device 200 is receiving the document sent by the electronic device 100. The progress bar 7502 is used to indicate the receiving progress of the document. The cancel control 7503 can be used to trigger the electronic device 200 to reject the document shared by the electronic device 100.

[0313] In some embodiments, after the electronic device 100 successfully sends a document to the electronic device 200, the electronic device 100 can display Figure 7H The window 7600 shown. The window 7600 may include the description information 7601 of the above document, text 7602, a recall control 7603, and a continue sending control 7604. The text 7602 includes "Have sent 1 document 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 recall control 7603 is used to send a recall instruction to the electronic device 200 after the electronic device 100 sends the document to the electronic device 200, and the recall instruction is used to request the electronic device 200 to delete the document 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.

[0314] In some embodiments, after the electronic device 200 receives the document sent by the electronic device 100, the electronic device 200 can display Figure 7I The receiving window 7700 shown. The receiving window 7700 may include the description information 7701 of the above document (for example, "Document 1, 3.1MB"), and one or more function controls. Among them, the one or more function controls include an open in document APP control 7702, an open with browser control 7703, a copy to memo control 7704, and so on. The open in document APP control 7702 can be used to trigger the electronic device 200 to recognize opening the document 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 the 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.

[0315] In some embodiments, after the electronic device 200 receives the document sent by the electronic device 100, or when the user selects to open the document in the document APP, the electronic device 200 can display Figure 7J The user interface 7800 shown, and the user interface 7800 includes the document content of the document.

[0316] It should be noted that during the process of the electronic device 100 sending a document to the electronic device 200, the electronic device 100 and the electronic device 200 may not display Figures 7D - 7I the prompt information shown. This application does not make any limitations in this regard.

[0317] During the process of the electronic device 100 sending a document to the electronic device 200, the electronic device 100 and the electronic device 200 need to maintain Figure 7C the placement posture shown.

[0318] 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 Figure 7C the placement posture shown, and the electronic device 100 and the electronic device 200 still have a communication connection established.

[0319] Through Figures 7A - 7J the method, the electronic device 100 and the electronic device 200 can share documents through the fast transfer data capability, saving user operations, improving the data transmission efficiency between devices, and enhancing the user experience.

[0320] The above embodiments show that the electronic device 100 can share data such as pictures, links, and documents with the electronic device 200 through the fast transfer data capability. It is not limited to data such as pictures, links, and documents. The electronic device 100 can also share other data with the electronic device 200 through the fast transfer data capability. This application does not make any limitations in this regard.

[0321] Figures 7K - 7M shows a schematic diagram of the electronic device 100 sharing an application installation package with the electronic device 200.

[0322] The electronic device 100 can display Figure 7K the desktop of the electronic device 100 shown, and the desktop includes the icon of the app store application.

[0323] As Figure 7K shown, the electronic device 100 can receive an input operation (such as a click) from the user on the icon of the app store application on the desktop. In response to the user's input operation, the electronic device 100 can display Figure 7K the user interface 7900 shown. The user interface 7900 can be the main interface of the app 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, etc.

[0324] Reference Figure 5D As described in the embodiments, when the user shares the installation package of the application installed on the electronic device 100 to the electronic device 200 through the fast transfer data capability, the user not only needs to place the display screen of the electronic device 100 and the display screen of the electronic device 200 opposite to each other, but also needs to place the electronic device 100 and the electronic device 200 in a specific placement posture. For example, the electronic device 100 is placed vertically, and the electronic device 200 is placed horizontally. The electronic device 100 is placed vertically.

[0325] Exemplarily, as Figure 7M shown, after the electronic device 100 and the electronic device 200 are in the Figure 7L placement posture shown, the electronic device 100 and the electronic device 200 can automatically establish a communication connection.

[0326] After the electronic device 100 and the electronic device 200 establish a communication connection, in response to the electronic device 100 displaying the user interface 7900, the electronic device 200 can send the application identifier of the application installed on the electronic device 200 to the electronic device 100, and the electronic device 100 can receive the application identifier sent by the electronic device 200. The electronic device 100 then obtains the application identifier of the application installed on the electronic device 100, and based on the application identifier of the application installed on the electronic device 100 and the application identifier sent by the electronic device 200, determines the application identifier that is not installed on the electronic device 200. The electronic device 100 can obtain the application installation package that is not installed on the electronic device 200 based on the application identifier that is not installed on the electronic device 200. After that, the electronic device 100 sends the application installation package that is not installed on the electronic device 200 to the electronic device 200. After the electronic device 200 receives the application installation package that is not installed on the electronic device 200 sent by the electronic device 100, the electronic device 200 can install the application based on the application installation package that is not installed on the electronic device 200. After successful installation, the electronic device 200 can display the application icon on the desktop.

[0327] Exemplarily, the application identifier that is not installed on the electronic device 200 can be the Huawei Video application.

[0328] As Figure 7N shown, the electronic device 100 can obtain the installation package of the Huawei Video application and send the installation package of the Huawei Video application to the electronic device 200 through the communication connection. After the electronic device 200 obtains the installation package of the Huawei Video application sent by the electronic device 100, the electronic device 200 can install the Huawei Video application. After successfully installing the Huawei Video application, the electronic device 200 can display Figure 7N the icon 7903 of the Huawei Video application shown.

[0329] In this way, the electronic device 100 can share the installation package of an application with the electronic device 200 through the fast data transfer capability. Without the user operating on the electronic device 200 to download the installation package of the application from the application server, it can not only reduce the user operation but also reduce the traffic consumed by the electronic device 200 to download the application installation package from the server.

[0330] Figures 7O - 7P The figure shows a schematic diagram of the electronic device 100 sending specific data to the electronic device 200 through the fast data transfer capability.

[0331] In some embodiments, when the electronic device 100 needs to send the first data to the electronic device 200 through the fast data transfer capability, when the electronic device 200 is placed at a first angle relative to the electronic device 100, the electronic device 100 can send the first data to the electronic device 200. Among them, the first data can be preset or user-defined. It should be noted that an error is allowed for the angle formed by the electronic device 100 and the electronic device 200 compared with the first angle. For example, the first angle ±10 degrees all belong to the first angle.

[0332] 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.

[0333] Among them, in some embodiments, the first angle can be any angle in the first angle range. Exemplarily, the first angle range can be from 0 degrees to 60 degrees. The first angle range can also be other numerical values of the angle range, and the present application does not limit this either.

[0334] In the embodiments of the present application, it is described by taking the electronic devices 100 and 200 being placed in the vertical screen as an example.

[0335] Exemplarily, the first data can be the first music file in the music application.

[0336] Exemplarily, as Figure 7O shown, the electronic device 100 is in the vertical screen placement posture, and the electronic device 200 is also in the vertical screen placement posture. Figure 7O In the figure, the electronic device 100 is parallel to the first vertical plane, and the first vertical plane is perpendicular to the horizontal plane. The electronic device 200 can rotate a certain angle along the vertical direction and be in the Figure 7O position shown, so that the electronic device 200 and the electronic device 100 form a first angle.

[0337] In response to the electronic device 100 and the electronic device 200 forming a first angle, the electronic device 100 can automatically establish a communication connection with the electronic device 200.

[0338] In some embodiments, when the electronic device 100 and the electronic device 200 form a first angle, and the first angle is any angle within the first angle range, the electronic device 100 can automatically establish a communication connection with the electronic device 200.

[0339] After the electronic device 100 establishes a communication connection with the electronic device 200, the electronic device 100 can 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.

[0340] After the electronic device 200 receives the music file of the first music sent by the electronic device 100, the electronic device 200 can display Figure 7P the music playing interface 7990 as shown. The music playing interface 7990 may include the music name "AAA", the total music duration, the played music duration, a progress bar, options for starting / pausing music playback, options for playing the previous music, options for playing the next music, etc. The audio file corresponding to the music "AAA" played by the electronic device 200 may be the music file of the first music sent by the electronic device 100.

[0341] In some embodiments, the electronic device 200 may be a speaker, and the electronic device 100 can share the audio file in the music application on the electronic device 100 to the speaker through the fast transfer data capability, and play the music on the electronic device 100 through the speaker.

[0342] Through this method, it is possible to share the audio file in the music application on the electronic device 100 to the electronic device 200.

[0343] In some embodiments, the electronic device 100 can also share data with multiple devices simultaneously through the fast transfer data capability.

[0344] Exemplarily, in the following embodiments of the present application, an example is given in which the electronic device 100 shares pictures in the gallery application to the electronic device 200 and the electronic device 300 simultaneously.

[0345] Figures 8A - 8B A schematic diagram showing the electronic device 100 sharing pictures in the gallery application to the electronic device 200 and the electronic device 300 simultaneously.

[0346] Refer to Figures 5A - 5C the description in the embodiment, the electronic device 100 can display Figure 5C the user interface 1010 as shown, and the user interface 1010 includes a picture 1011.

[0347] In some embodiments, when the user needs to share the picture 1011 to the electronic device 200 and the electronic device 300 simultaneously, such as Figure 8AAs shown, the user not only needs to place the display screen of the electronic device 100 opposite to the display screens of the electronic device 200 and the electronic device 300 respectively, but also needs to place the electronic device 100, the electronic device 200 and the electronic device 300 in specific placement postures. For example, the electronic device 100 is placed in a vertical screen posture, and the electronic device 200 and the electronic device 300 are placed in a horizontal screen posture.

[0348] 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 the display screen image 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. The device discovery broadcast is used to determine which device the target electronic device is and whether the target electronic device supports the fast transfer data capability. Optionally, the device discovery broadcast may carry a swing identifier, and the swing identifier is used to indicate that the electronic device 100 supports the fast transfer data capability. Optionally, the device discovery broadcast sent by the electronic device 100 may not carry the swing identifier either, and this application does not make any limitations on this.

[0349] One or more devices near the electronic device 100 can receive the device discovery broadcast sent by the electronic device 100. Exemplarily, the electronic device 200 and the electronic device 300 are near the electronic device 100, and the electronic device 200 and the electronic device 300 can receive the device discovery broadcast sent by the electronic device 100.

[0350] In response to receiving the device discovery broadcast sent by the electronic device 100, when the electronic device 200 supports the swing capability, the electronic device 200 can send a response broadcast to the electronic device 100. Among them, the response broadcast carries a swing identifier, and the swing identifier is used to indicate that the electronic device 200 also supports the fast transfer data capability.

[0351] Similarly, in response to receiving the device discovery broadcast sent by the electronic device 100, the electronic device 300 can also send a response broadcast to the electronic device 100. Among them, the response broadcast carries a swing identifier, and the swing identifier is used to indicate that the electronic device 300 also supports the fast transfer data capability.

[0352] After the electronic device 100 receives the response broadcasts sent by the electronic device 200 and the electronic device 300, in response to the swing identifiers carried in the response broadcasts sent by the electronic device 200 and the electronic device 300, the electronic device 100 can determine that the electronic device 200 and the electronic device 300 are target electronic devices. In response to the electronic device 200 and the electronic device 300 being target electronic devices, the electronic device 100 can establish communication connections with the electronic device 200 and the electronic device 300 simultaneously.

[0353] In some embodiments, the response broadcast further carries the placement postures of the electronic device 200 or the electronic device 300. After receiving the response broadcasts sent by the electronic device 200 and the electronic device 300, when the electronic device 100 is in the first placement posture in response to the swing identifier carried in the response broadcast, 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 target electronic devices. In response to the electronic device 200 and the electronic device 300 being target electronic devices, the electronic device 100 can establish a communication connection with the electronic device 200 and the electronic device 300.

[0354] After that, the electronic device 100 can send the displayed picture 1011 to the electronic device 200 through the communication connection with the electronic device 200, and send the picture 1011 to the electronic device 300 through the communication connection with the electronic device 300.

[0355] Exemplarily, after the electronic device 100 sends the picture 1011 to the electronic device 200 and the electronic device 300 respectively, the electronic device 200 can display Figure 8B the user interface 8100 as shown, and the user interface 8100 includes the picture 1011. Similarly, the electronic device 300 can display Figure 8B the user interface 8200 as shown, and the user interface 8200 also includes the picture 1011.

[0356] Not limited to pictures, the electronic device 100 can also share other data such as videos, documents, music, links, and application installation packages with the electronic device 200 and the electronic device 300 simultaneously through the fast transfer data capability. This application does not make any limitations in this regard.

[0357] The electronic device 100 stops sharing data with the electronic device 200

[0358] After the above-mentioned 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.

[0359] The electronic device 100 or the electronic device 200 can also receive a user operation to disconnect the communication link and stop sharing data.

[0360] The electronic device 100 can disconnect the communication connection with the electronic device 200 through but not limited to any of the following methods.

[0361] Method 1: The electronic device 100 receives a user operation to turn off Bluetooth or turn off Wi-Fi.

[0362] The electronic device 100 can receive a user operation to turn off the Bluetooth or Wi-Fi of the electronic device 100 in the settings application, or in the pull-down notification bar of the electronic device 100, or through a shortcut. 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 can stop sharing data with the electronic device 200.

[0363] In some embodiments, the electronic device 200 can also receive a user operation to turn off the Bluetooth or Wi-Fi. After the electronic device 200 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 can stop sharing data with the electronic device 200.

[0364] Method 2: The electronic device 100 receives a user operation to change the placement posture of the electronic device 100.

[0365] 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. In the case where the camera of the electronic device 100 does not capture the device image of the electronic device 200 for more than a first duration, the electronic device 100 disconnects the communication connection with the electronic device 200.

[0366] In other embodiments, the user can 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. In the case where the camera of the electronic device 100 does not capture the device image of the electronic device 200 for more than a first duration, the electronic device 100 disconnects the communication connection with the electronic device 200.

[0367] 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 can disconnect the communication connection.

[0368] Method 4: After the electronic device 100 sends the first data to the electronic device 200 through the communication connection, the electronic device 100 disconnects the communication connection with the electronic device 200.

[0369] The electronic device 100 can also disconnect the communication connection with the electronic device 100 through other means, and this application does not limit this.

[0370] Figure 9 A schematic flowchart of a method for the electronic device 100 to share data with the electronic device 200 through the fast transfer data capability is shown.

[0371] AsFigure 9 As shown, S901 - S905 is the device discovery stage. The device can discover the device placed opposite through a low - power camera.

[0372] S906 - S907 is the device authentication and connection establishment stage. After discovering the device, when it is determined that the opposite device supports the fast - transfer data capability, the device can initiate a communication connection to the opposite device, enabling the two devices to establish a connection automatically.

[0373] S908 - S909 is the data sharing stage. After establishing a communication connection between the devices, the device can share the data to be shared to the opposite device through the communication connection.

[0374] Figure 9 The embodiment is described by taking the example that the electronic device 100 shares data to the electronic device 200 through the fast - transfer data capability.

[0375] S901. The electronic device 100 periodically / irregularly determines whether the image captured by the low - power camera includes a device image.

[0376] The electronic device 100 is pre - equipped with a low - power camera. The low - power camera is in an always - on state and can capture images periodically / irregularly. The electronic device 100 can determine whether the image includes a device image or a display screen image of the device based on the image captured by the low - power camera.

[0377] In some embodiments, the electronic device 100 can 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.

[0378] After recognizing the device image, the electronic device 100 can further determine whether the target electronic device supports the fast - transfer data capability. When the target electronic device supports the fast - transfer data capability, the electronic device 100 can lock the target electronic device and automatically establish a communication connection with the target electronic device.

[0379] S902. The electronic device 100 receives the first operation of the user to share the first data.

[0380] Exemplarily, the first operation of the user to share the first data can be the operation of the user selecting the first data. For example, the operation of the user sharing the first data can be the operation of making the electronic device 100 display the first data.

[0381] Exemplarily, the first operation of the user to share the first data can also be the operation of the user selecting the first data and operating on the sharing option. In this implementation, the user can select multiple data and click (such as single - click) the sharing option, enabling the electronic device 100 to send the multiple data to the electronic device 200 at one time.

[0382] The first operation for the user to share the first data may also be implemented in other ways, which is not limited in this application. In the embodiments of this application, an example is given where the first operation for the user to share the first data is an operation that causes the electronic device 100 to display the first data.

[0383] Optionally, S902 may also be executed before S901, or S902 may be executed simultaneously with S901, which is not limited in this application.

[0384] The first data may include but is not limited to any one of the following: pictures, videos, documents, music, links, application installation packages, etc.

[0385] Exemplarily, the first data may be Figure 5C the picture 1011 shown in Figure 5L or the picture 1012 shown in

[0386] Exemplarily, the first data may be Figure 6B the web link of the news article shown in

[0387] Exemplarily, the first data may be Figure 7B the document shown in

[0388] Exemplarily, the first data may also be Figure 7N the installation package of the Huawei Video application shown in

[0389] In 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 device discovery broadcast is sent.

[0390] Among them, the device discovery broadcast includes but is not limited to the fields shown in Table 1.

[0391] Table 1

[0392]

[0393] Table 1 shows multiple fields included in the device discovery broadcast and the descriptions of the fields. The multiple fields may include the is swing field, the is horizontal screen field, the is vertical screen field, the is local device field, the is peer device field, the local device rotation angle field, and the peer device rotation angle field.

[0394] Among them, the is swing field is used to indicate whether the device supports the fast transfer data capability. The parameter value type of the is swing field is int. When the value of the is swing field is 1, it means the device supports the fast transfer data capability; when the value of the is swing field is 0, it means the device does not support the fast transfer data capability.

[0395] The is horizontal screen field is used to indicate whether the device is placed horizontally. The parameter value type of the is horizontalscreen field is int. When the value of the is horizontal screen field is 1, it means the device is placed horizontally; when the value of the is horizontal screen field is 0, it means the device is not placed horizontally.

[0396] The is vertical screen field is used to indicate whether the device is placed vertically. The parameter value type of the is vertical screen field is int. When the value of the is vertical screen field is 1, it means the device is placed vertically; when the value of the is vertical screen field is 0, it means the device is not placed vertically.

[0397] The is local device field is used to indicate whether the device is a local device. The parameter value type of the is local device field is boolean. When the value of the is local device field is true, it means the device is a local device; when the value of the is local device field is false, it means the device is not a local device.

[0398] The is peer device field is used to indicate whether the device is a peer device. The parameter value type of the is peer device field is boolean. When the value of the is peer device field is true, it means the device is a peer device; when the value of the ispeer device field is false, it means the device is not a peer device.

[0399] The local device rotation angle field is used to indicate the rotation angle of the local device. The parameter value type of the localdevice 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 further include other more fields, which are not limited in this application.

[0401] In a possible implementation manner, 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. To determine whether the target electronic device supports the fast data transfer capability and which device the target electronic device is, 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, and there are also other electronic devices near the electronic device 100, and all other electronic devices may receive the device discovery broadcast sent by the electronic device 100.

[0403] In some embodiments, for example, when the user inadvertently lifts the mobile phone, the low-power camera of the mobile phone captures an image of a device such as a computer placed on the table, and at this time, it may trigger the mobile phone to send data to the computer. However, at this time, the user does not want to send data from the mobile phone to the computer. To reduce the occurrence of accidental touches, when the electronic device 100 needs to send data to the target electronic device through the fast data transfer capability, the electronic device 100 and the target electronic device need to be in different placement postures.

[0404] In some embodiments, the electronic device 100 and the target electronic device being in different placement postures 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 vertical screen placement posture, and the second placement posture may be a horizontal screen placement posture. Exemplarily, 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. In this way, the user can actively operate to place the electronic device 100 and the target electronic device in different specific placement postures to reduce the occurrence of accidental touches.

[0405] In the embodiments of this application, an example is given where 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. The electronic device 100 can determine whether it is in a landscape - placed posture or a portrait - placed posture based on the motion data collected by the motion sensor. Exemplarily, the motion sensor may be a gravity sensor, and the gravity sensor can collect gravity acceleration data. When the angle between the positive direction of the gravity acceleration data and the direction perpendicular 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 portrait - placed posture. When the angle between the positive direction of the gravity acceleration data and the direction horizontally pointing to the right 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 landscape - placed posture.

[0407] Similarly, the electronic device 200 can also determine whether it is in a portrait - placed posture or a landscape - placed posture according to the above - mentioned method.

[0408] The electronic device 100 can determine the placement posture of the target electronic device based on the image collected by the low - power camera. The electronic device 100 can analyze the image to determine whether the target electronic device is in a landscape - placed posture.

[0409] Optionally, in order to further reduce the occurrence of accidental touches, the low - power camera on the electronic device 100 is a front - facing camera, and the device image recognized by the electronic device 100 needs to include the display screen image of the target electronic device. In this way, the user can actively operate to place the display screen of the electronic device 100 opposite to the display of the target electronic device to reduce the occurrence of accidental touches.

[0410] When any one or more of the following conditions are met: the image collected by the low - power camera of the electronic device 100 includes the device image, the image collected by the low - power camera of the electronic device 100 includes the display screen image of the device, and the placement posture of the electronic device 100 and the placement posture of the device in the image meet the 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. There are also 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.

[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 posture.

[0413] Exemplarily, if the target electronic device is Electronic Device 200, and Electronic Device 200 is placed opposite Electronic Device 100, then Electronic Device 200 can receive the device discovery broadcast sent by Electronic Device 100.

[0414] As can be seen from Table 1, the device discovery broadcast carries the is swing field, and the value of the is swing field is 1. Then, Electronic Device 200 can confirm that Electronic Device 100 supports the fast transfer data capability.

[0415] In some embodiments, the device discovery broadcast may not carry the is swing field either.

[0416] After determining that Electronic Device 100 supports the fast transfer data capability, when Electronic Device 200 supports the swing 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.

[0417] When Electronic Device 200 also supports the fast transfer data capability, the response broadcast may carry a swing identifier. The swing identifier is used to indicate to Electronic Device 100 that Electronic Device 200 also supports the fast transfer data capability. Exemplarily, the swing identifier can be an identifier with the value of the is swing field being 1.

[0418] When Electronic Device 200 does not support the fast transfer data capability, Electronic Device 200 may not send a response broadcast to Electronic Device 100. Or the value of the is swing field in the response broadcast is 0.

[0419] Among them, the response broadcast includes but is not limited to the fields shown in Table 2.

[0420] Table 2

[0421]

[0422] For the explanations of each field in Table 2, reference can be made to the explanations of each field in Table 1, and details are not elaborated in this application.

[0423] It should be noted that the response broadcast may also include other more fields, and this application does not make any limitations on this.

[0424] In a possible implementation, when the electronic device 200 supports the fast transfer data capability, in response to the broadcast, the value of the is swing field 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.

[0425] In a possible implementation, when the electronic device 200 does not support the fast transfer data capability, in response to the broadcast, the value of the is swing field 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.

[0426] In some embodiments, after the electronic device 200 receives the device discovery broadcast sent by the electronic device 100. When the electronic device 200 also recognizes the device image through the image collected by the low-power camera, it indicates that the electronic device 100 and the electronic device 200 are placed opposite to each other, and then the electronic device 200 sends a response broadcast to the electronic device 100.

[0427] In other embodiments, after the electronic device 200 receives the device discovery broadcast sent by the electronic device 100. When the electronic device 200 does not recognize the device image through the image collected by the low-power camera, it indicates 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.

[0428] In this way, the occurrence of accidental touches can be reduced.

[0429] S906. 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, the electronic device 100 determines that the electronic device 200 is the target electronic device.

[0430] Exemplarily, the first placement posture may be the vertical screen placement posture, and the second placement posture may be the horizontal screen placement posture.

[0431] After the electronic device 100 receives 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 transfer capability and the placement posture of the electronic device 200.

[0432] The electronic device 100 can determine that the electronic device 200 supports the fast data transfer capability. Exemplarily, after the electronic device 100 receives 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.

[0433] Exemplarily, the swing identifier can be that the value of the is swing field is 1.

[0434] In some embodiments, the is swing field may not be carried in the response broadcast. 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.

[0435] The electronic device 100 can determine the placement posture of the electronic device 200. Exemplarily, after the electronic device 100 receives 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 the landscape 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 the portrait 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 the portrait screen placement posture nor in the landscape screen placement posture.

[0436] When the swing identifier is carried in the response broadcast, and the electronic device 100 is in the portrait screen placement posture and the electronic device 200 is in the landscape screen placement posture, the electronic device 100 can determine that the electronic device 200 is the target electronic device.

[0437] In some embodiments, other electronic devices near the electronic device 100 can also receive the device discovery broadcast sent by the electronic device 100. For example, the electronic device 300 is also located near the electronic device 100, and the electronic device 300 can receive the device discovery broadcast sent by the electronic device 100. The electronic device 300 can also send a response broadcast to the electronic device 100.

[0438] In a possible implementation, when the electronic device 300 does not support the fast transfer data capability, the response broadcast sent by the electronic device 300 to the electronic device 100 does not include the 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, in response to the absence of the swing identifier, the electronic device 100 determines that the electronic device 300 is not the target electronic device.

[0439] In a possible implementation, when the electronic device 300 does not support the fast transfer data capability, the electronic device 300 may not send a response broadcast to the electronic device 100.

[0440] In other possible implementations, when the electronic device 300 also supports the fast transfer data capability, the response broadcast sent by the electronic device 300 to the electronic device 100 includes the 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 1. If the value of the is horizontal screen field carried in the response broadcast sent by the electronic device 300 is 0, it means that the electronic device 300 is not in the landscape orientation. Then the electronic device 100 determines that the electronic device 300 is not the target electronic device.

[0441] In some embodiments, the response broadcast may also carry only the swing identifier and not the placement posture of the electronic device 200. After receiving the response broadcast sent by the electronic device 200, in response to the swing identifier carried in the response broadcast, the electronic device 100 can determine that the electronic device 200 is the target electronic device.

[0442] 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.

[0443] S908. The electronic device 100 establishes a communication connection with the electronic device 200.

[0444] 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.

[0445] The communication connection may be any one of a Bluetooth connection and a Wi-Fi connection. The communication connection may also be other connection methods, which are not limited in this application.

[0446] 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.

[0447] S910. The electronic device 200 receives the first data or the URL corresponding to the first data.

[0448] After the electronic device 100 and the electronic device 200 establish a communication connection, 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.

[0449] 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 also not display the first data, which is not limited in this application.

[0450] Optionally, after the electronic device 100 and the electronic device 200 establish a communication connection, 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 and only receive data.

[0451] In some embodiments, after the electronic device 200 receives the device discovery broadcast sent by the electronic device 100, the electronic device 100 can 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 can 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 means that the electronic device 100 is in the landscape 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 100 is in the portrait 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 100 is neither in the portrait placement posture nor in the landscape placement posture.

[0452] Exemplarily, if the electronic device 200 determines that the electronic device 100 is in the landscape placement posture based on the device discovery broadcast and determines that the electronic device 200 is in the portrait placement posture based on the motion sensor, the electronic device 200 can refrain from sending data to the electronic device 100 and only receive data.

[0453] In some embodiments, the first data can also be an installation package of an application.

[0454] Exemplarily, the electronic device 100 displays Figure 7K the user interface 7900 as shown. After the electronic device 100 and the electronic device 200 establish a communication connection, in response to the electronic device 100 displaying Figure 7KFor the user interface 7900 shown, the electronic device 200 may send the application identifier of the application installed on the electronic device 200 to the electronic device 100, and the electronic device 100 may receive the application identifier sent by the electronic device 200. The electronic device 100 then obtains the application identifier of the application installed on the electronic device 100, and based on the application identifier of the application installed on the electronic device 100 and the application identifier sent by the electronic device 200, determines the application identifier that is not installed on the electronic device 200. The electronic device 100 may obtain the application installation package that is not installed on the electronic device 200 based on the application identifier that is not installed on the electronic device 200. After that, the electronic device 100 sends the application installation package that is not installed on the electronic device 200 to the electronic device 200. After the electronic device 200 receives the application installation package that is not installed on the electronic device 200 sent by the electronic device 100, the electronic device 200 may install the application based on the application installation package that is not installed on the electronic device 200. After successful installation, the electronic device 200 may display the application icon of the application on the desktop.

[0455] 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.

[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, when the electronic device 100 continuously recognizes 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 also continues to establish a communication connection with the electronic device 200. After that, the electronic device 100 may receive a second user operation and display a second user interface, and the second user interface includes second data. In response to the establishment of a communication connection between the electronic device 100 and the electronic device 200, the electronic device 100 may send the second data or the URL corresponding to the second data to the electronic device 200 through 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.

[0457] 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.

[0458] In some embodiments, when the user needs to stop the electronic device 100 from sharing data with the electronic device 200, the user can disconnect the communication connection between the electronic device 100 and the electronic device 200. After the electronic device 100 disconnects the communication connection with the electronic device 200, the electronic device 100 will stop sharing data with the electronic device 200. For the description of how the electronic device 100 disconnects the communication connection with the electronic device 200, reference can be made to the previous introduction, and details will not be elaborated in this application.

[0459] II. Two-way data sharing scenario

[0460] Based on the foregoing introduction, it can be seen that when two devices support the fast transfer data capability, the two devices can automatically establish a communication connection and share data in the manner of this application, saving user operations.

[0461] 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.

[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 a preset posture. 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.

[0463] 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 a preset posture, 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.

[0464] Among them, the first placement posture and the second placement posture may be the same or different. In the embodiments of this application, the case where the first placement posture and the second placement posture are the same and the electronic device 100 and the electronic device 200 transmit data to each other is taken as an example for illustration.

[0465] Exemplarily, the first placement posture and the second placement posture can be any one of the landscape screen placement posture and the portrait screen placement posture.

[0466] In some embodiments, when both the electronic device 100 and the electronic device 200 are in the portrait orientation, the electronic device 100 and the electronic device 200 can transmit the first data to each other. The first data can be preset or user-defined.

[0467] In some embodiments, when both the electronic device 100 and the electronic device 200 are in the landscape orientation, the electronic device 100 and the electronic device 200 can transmit the second data to each other. The second data can be preset or user-defined. Among them, the data type to which the second data belongs is different from the data type to which the first data belongs.

[0468] Not limited to the landscape orientation and the portrait orientation, the first placement posture and the second placement posture can also be other placement postures, which are not limited in this application.

[0469] Figures 10A - 10D The figure shows a schematic diagram of a two-way data sharing scenario.

[0470] Among them, Figures 10A - 10B The figure shows a schematic diagram of the electronic device 100 and the electronic device 200 sharing the contact information in the contact application with each other.

[0471] Exemplarily, the first placement posture can be the portrait orientation, and the first data can be the contact information in the contact application. The contact information can be the information of the local user, or the contact information can also be the information of non-local users, which is not limited in this application. In the following embodiments of this application, the contact information is taken as an example of the information of the local user for illustration.

[0472] The information of the local user and the information of non-local users can include but are not limited to; user name, mobile phone number, etc.

[0473] Such as Figure 10A As shown, when the electronic device 100 and the electronic device 100 need to share the first type of data with each other, the user can place the electronic device 100 and the electronic device 200 in the portrait orientation respectively. When the electronic device 100 is placed in the portrait orientation, the vertical plane where the electronic device 100 is located is perpendicular to the horizontal plane. When the electronic device 200 is placed in the portrait orientation, the vertical plane where the electronic device 200 is located is perpendicular to the horizontal plane. The vertical plane where the electronic device 100 is located is parallel to the vertical plane where the electronic device 200 is located.

[0474] The low-power camera of the electronic device 100 is in the always-on state. The electronic device 100 can automatically establish a communication connection with the electronic device 200 based on the image collected by the low-power camera and recognize that the electronic device 200 is in the portrait orientation.

[0475] 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 portrait 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.

[0476] Exemplarily, 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, etc.

[0477] As Figure 10B shown, after the electronic device 200 receives the local user information of the electronic device 100, the electronic device 200 can display Figure 10B the user interface 1010 shown, and the user interface 1010 includes the user name "Daniel" and the mobile phone number "186XXXXXXXX".

[0478] Optionally, the electronic device 200 can 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 the contact application of the electronic device 200.

[0479] Exemplarily, the local user business card of the electronic device 100 may be Figure 10B the picture in the user interface 1010 shown.

[0480] In some embodiments, the electronic device 100 can 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 can save the local user business card of the electronic device 100 in the gallery application, and in other possible implementations, the electronic device 200 can extract the user name, mobile phone number, etc. from the local user business card of the electronic device 100, and save them in the contact application of the electronic device 200.

[0481] 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.

[0482] Exemplarily, 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, etc.

[0483] As Figure 10B shown, after receiving the local user information of the electronic device 200, the electronic device 100 may display Figure 10B the user interface 1020 shown, and the user interface 1020 includes the user name "Alee" and the mobile phone number "188********".

[0484] 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 the contact application of the electronic device 100.

[0485] Exemplarily, the local user business card of the electronic device 200 may be Figure 10B the picture in the user interface 1020 shown.

[0486] 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 a communication connection. After receiving 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 the gallery application. In other possible implementations, the electronic device 100 may extract the user name, mobile phone number, etc. from the local user business card of the electronic device 200, and save them in the contact application of the electronic device 100.

[0487] Wherein, Figures 10C - 10D shows a schematic diagram of the electronic device 100 and the electronic device 200 sharing the contact information in the instant messaging application with each other.

[0488] Exemplarily, the first placement posture may be a landscape placement posture, and the second data may be a contact business card in the instant messaging application. The contact business card may be a local user business card in the instant messaging application, and the contact information may also be a friend business card in the instant messaging application. This application does not make any limitations in this regard. The following embodiments of this application take the contact business card as the local user business card in the instant messaging application as an example for illustration.

[0489] As Figure 10CAs shown, when the electronic device 100 and the electronic device 200 need to share the second type of data with each other, the user can place the electronic device 100 and the electronic device 200 in the landscape orientation respectively. When the electronic device 100 is placed in the landscape orientation, the vertical plane where the electronic device 100 is located is perpendicular to the horizontal plane. When the electronic device 200 is placed in the landscape orientation, the vertical plane where the electronic device 200 is located is perpendicular to the horizontal plane, and the vertical plane where the electronic device 100 is located is parallel to the vertical plane where the electronic device 200 is located.

[0490] The low-power camera of the electronic device 100 is always on. The electronic device 100 can recognize that the electronic device 200 is in the landscape orientation based on the images captured by the low-power camera, and automatically establish a communication connection with the electronic device 200.

[0491] 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 landscape orientation, the electronic device 100 can obtain the local user business card in the instant messaging application, and send the local user business card in the instant messaging application on the electronic device 100 to the electronic device 200 through the communication connection. As Figure 10D shown, after the electronic device 200 receives the local user business card in the instant messaging application on the electronic device 100, the electronic device 200 can display Figure 10D the user interface 1030 as shown. The local user business card in the instant messaging application on the electronic device 100 can be Figure 10D the picture in the user interface 1030 as shown. The local user business card in the instant messaging application on the electronic device 100 can include a user avatar, a user name, a user ID number, a user QR code, etc.

[0492] Exemplarily, the electronic device 200 can also save the local user business card in the instant messaging application on the electronic device 100 in the gallery application.

[0493] Optionally, the electronic device 200 can also automatically extract the user ID number in the local user business card in the instant messaging application on the electronic device 100. For example, the user ID number can be "123456789", and add the user "Xiaoming" as a friend based on the user ID number "123456789".

[0494] 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 second placement orientation, the electronic device 200 can also obtain the local user business card in the instant messaging application, and send the local user business card in the instant messaging application on the electronic device 200 to the electronic device 100 through the communication connection. As Figure 10DAs shown, after the electronic device 100 receives the local user business card in the instant messaging application on the electronic device 200, the electronic device 100 can display Figure 10D the user interface 1040 shown. The local user business card in the instant messaging application on the electronic device 200 can be Figure 10D the picture in the user interface 1040 shown. The local user business card in the instant messaging application on the electronic device 200 can include a user avatar, a user name, a user ID number, a user QR code, etc.

[0495] Exemplarily, the electronic device 100 can also save the local user business card in the instant messaging application on the electronic device 200 in the gallery application.

[0496] Optionally, the electronic device 100 can also automatically extract the user ID number in the local user business card in the instant messaging application on the electronic device 200. For example, the user ID number can be "987654321", and add the user "Xiaotian" as a friend based on the user ID number "987654321".

[0497] Figure 10E The figure shows a schematic diagram of the electronic device 100 and the electronic device 200 sharing an application installation package with each other.

[0498] When the electronic device 100 and the electronic device 200 are both in the landscape orientation or both in the portrait orientation, the electronic device 100 and the electronic device 200 can share the application installation package with each other.

[0499] Refer to Figure 10A or Figure 10C the description in the embodiment, the electronic device 100 and the electronic device 200 can be both in the landscape orientation or both in the portrait orientation.

[0500] In response to the electronic device 100 and the electronic device 200 being in the landscape orientation or both in the portrait orientation, the electronic device 100 and the electronic device 200 can automatically establish a communication connection.

[0501] After the electronic device 100 and the electronic device 200 establish a communication connection, the electronic device 100 can send the application identifiers of the applications installed on the electronic device 100 to the electronic device 200, and the electronic device 200 can receive the application identifiers sent by the electronic device 100. The electronic device 200 then obtains the application identifiers of the applications installed on the electronic device 200, and based on the application identifiers of the applications installed on the electronic device 200 and the application identifiers sent by the electronic device 100, determines the application identifiers that are not installed on the electronic device 100. The electronic device 200 can obtain the application installation packages that are not installed on the electronic device 100 based on the application identifiers that are not installed on the electronic device 100. After that, the electronic device 200 sends the application installation packages that are not installed on the electronic device 100 to the electronic device 100. After the electronic device 100 receives the application installation packages that are 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 packages that are not installed on the electronic device 100. After successful installation, the electronic device 100 can display the application icons of the applications on the desktop.

[0502] Similarly, after the electronic device 100 and the electronic device 200 establish a communication connection, the electronic device 200 can send the application identifiers of the applications installed on the electronic device 200 to the electronic device 100, and the electronic device 100 can receive the application identifiers sent by the electronic device 200. The electronic device 100 then obtains the application identifiers of the applications installed on the electronic device 100, and based on the application identifiers of the applications installed on the electronic device 100 and the application identifiers sent by the electronic device 200, determines the application identifiers that are not installed on the electronic device 200. The electronic device 100 can obtain the application installation packages that are not installed on the electronic device 200 based on the application identifiers that are not installed on the electronic device 200. After that, the electronic device 100 sends the application installation packages that are not installed on the electronic device 200 to the electronic device 200. After the electronic device 200 receives the application installation packages that are not installed on the electronic device 200 sent by the electronic device 100, the electronic device 200 can install the application based on the application installation packages that are not installed on the electronic device 200. After successful installation, the electronic device 200 can display the application icons of the applications on the desktop.

[0503] Exemplarily, the application identifier that is not installed on the electronic device 100 can be the Huawei Music application, and the application identifier that is not installed on the electronic device 200 can be the Huawei Video application.

[0504] As Figure 10E shown, after the electronic device 200 receives the installation package of the Huawei Video application sent by the electronic device 100, the electronic device 200 can install the Huawei Video application. After successfully installing the Huawei Video application, the electronic device 200 can display Figure 10EThe icon 1051 of the Huawei Video application as shown. After the electronic device 100 receives the installation package of the Huawei Music application sent by the electronic device 200, the electronic device 100 can install the Huawei Music application. After successfully installing the Huawei Music application, the electronic device 100 can display on the desktop Figure 10E the icon 1052 of the Huawei Music application as shown.

[0505] In this way, devices can synchronize the installation packages of uninstalled applications through the fast data transfer capability. This can not only reduce user operations but also reduce the traffic consumed by the electronic device when downloading the application installation package from the server.

[0506] Figure 11 The schematic diagram of the method flow for the electronic device 100 and the electronic device 200 to share data with each other through the fast data transfer capability is shown.

[0507] As Figure 11 shown, S1101 - S1104 is the device discovery stage. The devices can be placed opposite each other so that the devices can discover the devices placed opposite through the low-power camera.

[0508] S1105 - S906 is the device authentication and connection establishment stage. After discovering the device, when it is determined that the target electronic device also supports the fast data transfer capability, the device can initiate a communication connection to the target electronic device, enabling the two devices to establish a connection automatically.

[0509] S1107 - S1111 is the data sharing stage. After establishing a communication connection between the devices, the two devices can share data with each other through the communication connection.

[0510] S1101. The electronic device 100 periodically / irregularly determines whether the image collected by the low-power camera includes a device image.

[0511] For the description of S1101, reference can be made to the description in S901, and this application will not elaborate here.

[0512] S1102. 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 first placement posture, it sends a device discovery broadcast.

[0513] Exemplarily, the first placement posture can be any one of the landscape placement posture or the portrait placement posture. The first placement posture can also be other postures. This application only takes the landscape placement posture or the portrait placement posture as an example for illustration and does not constitute a limitation.

[0514] The composition structure of the device discovery broadcast can be referred to the description in Table 1, and this application will not elaborate here.

[0515] In some embodiments, when the electronic device 100 recognizes the device image, it indicates that there is a target electronic device placed opposite the electronic device 100. To determine whether the target electronic device supports the fast data transfer capability and which device the target electronic device is, 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. There are also 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.

[0516] In some embodiments, for example, when the user inadvertently lifts the mobile phone, the low-power camera of the mobile phone captures an image of a device such as a computer placed on the table. At this time, it may trigger the mobile phone to send data to the computer. However, at this time, the user does not want to send data from the mobile phone to the computer. To reduce the occurrence of accidental touches, when the electronic device 100 and the electronic device 200 need to share data with each other through the fast data transfer capability, the electronic device 100 and the target electronic device need to be in the same placement posture.

[0517] 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, it can be that the user actively operates to place the electronic device 100 and the target electronic device in the same placement posture to reduce the occurrence of accidental touches.

[0518] Exemplarily, the first placement posture may be a portrait placement posture, and the first placement posture may also be a landscape placement posture. The first placement posture may also be other placement postures. This application is only illustrated by taking the landscape placement posture and the portrait placement posture as examples.

[0519] Optionally, a motion sensor may be pre-installed on the electronic device 100. The electronic device 100 may determine whether the electronic device 100 is in a landscape placement posture or a portrait 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 perpendicular to the ground is less than a first angle (for example, 10 degrees) or greater than a second angle (for example, 170 degrees), it may be considered that the electronic device 100 is in a portrait placement posture. When the angle between the positive direction of the gravity acceleration data and the direction horizontally pointing to the right is less than a first angle (for example, 10 degrees) or greater than a second angle (for example, 170 degrees), it may be considered that the electronic device 100 is in a landscape placement posture.

[0520] Similarly, the electronic device 200 can also determine whether the electronic device 200 is in a portrait placement posture or a landscape placement posture according to the above method.

[0521] The electronic device 100 can determine the placement posture of the target electronic device based on the images captured by the low-power camera. The electronic device 100 can analyze the images to determine whether the target electronic device is in a landscape or portrait placement posture.

[0522] Optionally, in order to further reduce the occurrence of accidental touches, the low-power camera on the electronic device 100 is a front camera, and the device image recognized by the electronic device 100 needs to include the display screen image of the target electronic device. In this way, the user can actively operate to place the display screen of the electronic device 100 opposite to the display screen of the target electronic device, further reducing the occurrence of accidental touches.

[0523] 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 can send a device discovery broadcast. The target electronic device can receive the device discovery broadcast sent by the electronic device 100. There are also 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.

[0524] S1103. The electronic device 200 receives the device discovery broadcast sent by the electronic device 100.

[0525] 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 the first placement posture.

[0526] Exemplarily, 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 can receive the device discovery broadcast sent by the electronic device 100.

[0527] As can be seen from Table 1, the device discovery broadcast carries an is swing field, and the value of the is swing field is 1. Then, the electronic device 200 can confirm that the electronic device 100 supports the fast data transfer capability.

[0528] After determining that the electronic device 100 supports the fast data transfer capability, when the electronic device 200 also supports the fast data transfer capability, the electronic device 200 can send a response broadcast to the electronic device 100. The response broadcast is used to indicate to the electronic device 100 that the electronic device 200 has received the device discovery broadcast sent by the electronic device 100.

[0529] When the electronic device 200 also supports the fast transfer data capability, the response broadcast may carry a swing identifier, and the swing identifier is used to indicate the electronic device 100, and the electronic device 200 also supports the fast transfer data capability. Exemplarily, the swing identifier may be an identifier with the value of the is swing field being 1.

[0530] When the electronic device 200 does not support the fast transfer data 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 is 0.

[0531] The composition structure of the response broadcast may refer to the description in Table 2, which is not elaborated herein.

[0532] In a possible implementation manner, when the electronic device 200 supports the fast transfer data capability and the electronic device 200 is placed in a landscape orientation, 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 ispeer device field is true, and the value of the local device rotation angle field is 0.

[0533] In other possible implementation manners, when the electronic device 200 supports the fast transfer data capability and the electronic device 200 is placed in a portrait orientation, 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 ispeer device field is true, and the value of the local device rotation angle field is 0.

[0534] In other possible implementation manners, when the electronic device 200 does not support the fast transfer data capability, the value of the is swing field in the response broadcast is 0.

[0535] The electronic device 100 may determine whether the electronic device 200 supports the fast transfer data capability and determine 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.

[0536] S1105. In response to the swing identifier carried in the response broadcast and the fact that the electronic device 100 and the electronic device 200 are in the first placement posture, the electronic device 100 determines that the electronic device 200 is the target electronic device.

[0537] S1106. In response to the electronic device 200 being the target electronic device, the electronic device 100 initiates a connection request to the electronic device 200.

[0538] S1107. The electronic device 100 and the electronic device 200 establish a communication connection.

[0539] For the descriptions of S1105 - S1107, reference can be made to the introduction of the embodiments of S906 - S908, which will not be elaborated herein in this application.

[0540] 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 the URL corresponding to the first data to the electronic device 200 through the communication connection.

[0541] S1109. The electronic device 200 receives the first data or the URL corresponding to the first data.

[0542] Exemplarily, the first placement posture may be the portrait placement posture.

[0543] 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 portrait 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.

[0544] Exemplarily, the first data may be Figure 10B the local user information saved in the contacts application on the electronic device 100 as shown. The local user information saved in the contacts application on the electronic device 100 may include but is not limited to: user name (Daniel), user mobile phone number (186XXXXXXXX), etc.

[0545] Among them, the first data may be preset or user - defined, and this application does not make any limitations in this regard. The user can 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.

[0546] 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 the URL corresponding to the second data to the electronic device 100 through the communication connection.

[0547] S1111. The electronic device 100 receives the second data or the URL corresponding to the second data.

[0548] 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 the portrait 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.

[0549] Wherein, the second data may be Figure 10B the local user information saved in the contact application on the electronic device 200 as shown, and 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.

[0550] Wherein, the second data may be preset or user-defined, and the present application does not limit this. The user can 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.

[0551] In some embodiments, the data type of the first data is the same as the data type of the second data. For example, the first data and the second data belong to the first type of data. In this way, when the electronic device 100 and the electronic device 200 are placed opposite to each other and both are in the portrait placement state, the electronic device 100 and the electronic device 200 can share the first type of data with each other.

[0552] Exemplarily, the first placement posture may also be the landscape placement posture.

[0553] 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 the landscape 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 corresponding to the third data to the electronic device 200 through the communication connection.

[0554] Exemplarily, the third data may be Figure 10D the local user information saved in the instant messaging application on the electronic device 100 as shown, and 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 (Xiaoming), user ID number (123456789), user QR code, etc.

[0555] Among them, the third data can be preset or user-defined, and this application does not limit this. The user can also change the data type sent by the electronic device 100 to the electronic device 200 when the electronic devices 100 and 200 are in the second placement posture.

[0556] Similarly, after the electronic devices 100 and 200 establish a communication connection, in response to the electronic devices 100 and 200 being in the portrait 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.

[0557] Among them, the second data can be Figure 10D the local user information saved in the instant messaging application on the electronic device 200 as shown. 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.

[0558] Among them, the fourth data can be preset or user-defined, and this application does not limit this. The user can also change the data type sent by the electronic device 200 to the electronic device 100 when the electronic devices 100 and 200 are in the second placement posture.

[0559] In some embodiments, the data types of the third data and the fourth data are the same. 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 devices 100 and 200 are placed opposite to each other and are both in the landscape placement state, the electronic devices 100 and 200 can share the second type of data with each other.

[0560] In some embodiments, the first data and the second data, or the third data and the fourth data can also be application installation packages.

[0561] After the electronic devices 100 and 200 establish a communication connection, before the electronic devices 100 and 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.

[0562] After receiving the application identifier sent by the electronic device 100, the electronic device 200 can obtain the application identifiers of the applications installed on the electronic device 200, and based on the application identifiers of the applications installed on the electronic device 200 and the application identifier sent by the electronic device 100, determine the application identifiers that are not installed on the electronic device 100. The electronic device 200 can obtain the application installation packages that are not installed on the electronic device 100 based on the application identifiers that are not installed on the electronic device 100. After that, the electronic device 200 sends the application installation packages that are not installed on the electronic device 100 to the electronic device 100. After receiving the application installation packages that are 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 packages that are not installed on the electronic device 100. After successful installation, the electronic device 100 can display the application icon of the application on the desktop.

[0563] Similarly, after receiving the application identifier sent by the electronic device 200, the electronic device 100 can send the application identifiers of the applications installed on the electronic device 200 to the electronic device 100, and the electronic device 100 can receive the application identifier sent by the electronic device 200. The electronic device 100 then obtains the application identifiers of the applications installed on the electronic device 100, and based on the application identifiers of the applications installed on the electronic device 100 and the application identifier sent by the electronic device 200, determines the application identifiers that are not installed on the electronic device 200. The electronic device 100 can obtain the application installation packages that are not installed on the electronic device 200 based on the application identifiers that are not installed on the electronic device 200. After that, the electronic device 100 sends the application installation packages that are not installed on the electronic device 200 to the electronic device 200. After receiving the application installation packages that are not installed on the electronic device 200 sent by the electronic device 100, the electronic device 200 can install the application based on the application installation packages that are not installed on the electronic device 200. After successful installation, the electronic device 200 can display the application icon of the application on the desktop.

[0564] Exemplarily, the first data or the third data may be the Huawei Music application, and the second data or the fourth data may be the Huawei Video application.

[0565] In this way, the devices can synchronize the installation packages of the uninstalled applications through the fast transfer data capability. This can not only reduce user operations but also reduce the traffic consumed by the electronic device to download the application installation packages from the server.

[0566] Figure 12 It is a schematic flow diagram of a data sharing method provided by this application.

[0567] S1201. The first electronic device detects a first operation of the user, where the first operation is used to share the first data with the second electronic device.

[0568] In some embodiments, the first operation may be an operation of selecting the first data. For example, an operation of a user sharing the first data may be an operation that causes the electronic device 100 to display the first data.

[0569] In some embodiments, the first operation may also be an operation of selecting the first data and then operating on the sharing option. In this implementation, the user may select multiple data and click (e.g., single-click) the sharing option, so that the electronic device 100 can send the multiple data to the electronic device 200 at one time. The first operation may also be other implementations.

[0570] In one possible implementation, the first data includes any one of the following: pictures, videos, documents, music, web pages, application installation packages.

[0571] S1202. In response to the first operation, when 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.

[0572] 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.

[0573] 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, improving the convenience of data transmission between devices.

[0574] In one possible implementation, when 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 establishing a first communication connection with the second electronic device specifically includes: 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.

[0575] In some embodiments, the first broadcast may also be referred to as a device discovery broadcast. The second broadcast may also be referred to as a response broadcast.

[0576] Optionally, when the first electronic device is in the first placement posture and a target electronic device in the second placement posture is recognized, the first electronic device may send a first broadcast for discovering the target electronic device in the second placement posture. Not only the second electronic device in the second placement posture can receive the first broadcast, but other electronic devices near the first electronic device can also receive the first broadcast.

[0577] After the second electronic device receives the first broadcast, when the second electronic device supports the fast data transfer 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.

[0578] Optionally, the second broadcast carries a first identifier for indicating that the second electronic device supports the fast data transfer capability. The first electronic device may determine that the second electronic device is the target electronic device based on the first identifier carried in the second broadcast.

[0579] In a possible implementation, the second broadcast carries first posture information for indicating 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, which specifically includes: 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.

[0580] Optionally, the first posture information may be an identifier for indicating the second placement posture or the raw data collected by the second electronic device, and the raw data can obtain the posture information of the second electronic device.

[0581] After the first electronic device receives the second broadcast, when the first electronic device is in the first placement posture and determines that the second electronic device is in the second placement posture based on the first posture information, the first electronic device may 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 postures, 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 automatically establishing a communication connection between the first electronic device and the target electronic device.

[0582] In a 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 further includes: in response to the first operation, the first electronic device displays a first interface, and the first interface includes the first data.

[0583] In this way, when the first placement posture is different from the second placement posture, the first electronic device can send the first data displayed 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 achieve one-way data sharing.

[0584] Optionally, in response to receiving the first data or the URL of the first data, the second electronic device can also display the first data.

[0585] Specifically, reference can be made to Figures 5D - 5M 、 Figures 6A - 6J 、 Figures 7A - 7J 、 Figures 7K - 7N 、 Figures 7O - 7P the description of one-way data sharing between devices in the embodiments.

[0586] In a possible implementation manner, the first placement posture is the same as the second placement posture; after the first electronic device and the second electronic device establish the first communication connection, 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.

[0587] Optionally, when the first electronic device and the second electronic device are in the same placement posture, the first electronic device can display the first data or not. Similarly, the second electronic device can display the second data or not.

[0588] In this way, when the first placement posture is the same as the second placement posture, 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.

[0589] Wherein, the data type of the second data is the same as the data type of the first data. In this way, 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.

[0590] Specifically, reference can be made to Figures 10A - 10B 、 Figures 10C - 10D 、 Figure 10E the description of two-way data sharing between devices in the embodiments.

[0591] In a 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.

[0592] Optionally, the second posture information may be an identifier for indicating the first placement posture, or may be the original data collected by the first electronic device, and the original data can obtain the posture information of the first electronic device.

[0593] 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 achieve two-way data sharing.

[0594] In a possible implementation, when the first placement posture and the second placement posture are of the first posture type, the data types of the first data and 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 types of the first data and 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 is different from the second data type.

[0595] In this way, when the first electronic device and the second electronic device are in the same placement posture of different types, the first electronic device and the second electronic device can share different types of data with each other, enriching the scenarios of sharing data between devices.

[0596] In a possible implementation, the first posture type and the second posture type can be any one of the following: horizontal screen placement posture, vertical screen placement posture.

[0597] 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.

[0598] In a possible implementation, a first camera is configured on the first electronic device; when the first electronic device is in a first placement posture, the first electronic device sends a first broadcast to the 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 the image collected by the first camera that there is an 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.

[0599] Optionally, when the first electronic device fails to recognize a device image through the first camera, the first electronic device may not send the first broadcast.

[0600] In this way, it is determined whether there is an electronic device in the second placement posture when the first electronic device recognizes a device image through the first camera. When the first electronic device recognizes a device image through the first camera and it is determined based on the image collected by the first camera that there is an electronic device in the second placement posture, the first electronic device then sends the first broadcast. In this way, the accuracy of the first electronic device in sending the first broadcast to recognize the target electronic device can be improved, and the situation of accidental touch can be avoided.

[0601] In a possible implementation, when the first electronic device is in the first placement posture and it is determined based on the image collected by the first camera that there is an 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, specifically including: when the first camera is a front camera, and the first electronic device is in the first placement posture and it is determined based on the image collected by the first camera that there is an electronic device in the second placement posture, and the image collected by the first camera includes the display screen image 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.

[0602] In this way, when the first camera is a front camera and the image collected by the first camera includes the display screen image of the electronic device in the second placement posture, it indicates that the first electronic device and the second electronic device are placed face to face. The user can actively operate to place the first electronic device and the second electronic device face to face, and then the first electronic device sends the first broadcast, which can further prevent the situation of accidental touch.

[0603] Specifically, reference can be made to Figure 5D 、 Figure 6C 、 Figure 7C 、 Figure 7M 、 Figure 7O 、 Figure 8A 、 Figure 10A 、 Figure 10C the descriptions in the embodiments.

[0604] In a possible implementation, the method further includes: in response to a 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.

[0605] In this way, the first electronic device can simultaneously establish communication connections with multiple electronic devices, and the first electronic device can simultaneously send the first data or the URL of the first data to the electronic devices with which the communication connections are established, improving the efficiency of data sharing between devices.

[0606] Specifically, reference can be made to Figures 8A - 8B the description in the embodiments.

[0607] This application provides an electronic device, which is the first electronic device. 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 Figure 12 a data sharing method as shown.

[0608] This application provides an electronic device, which is the second electronic device. 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 Figure 12 a data sharing method as shown.

[0609] This application provides a computer-readable storage medium, including instructions. When the instructions run on the first electronic device, the first electronic device executes Figure 12 a data sharing method as shown.

[0610] This application provides a computer-readable storage medium, including instructions. When the instructions run on the second electronic device, the second electronic device executes Figure 12 a data sharing method as shown.

[0611] This application provides a chip system. The chip system includes one or more processors, and the processors are used to call computer instructions to enable the first electronic device to execute Figure 12 a data sharing method as shown.

[0612] This application provides a chip system. The chip system includes one or more processors, and the processors are used to call computer instructions to enable the second electronic device to execute Figure 12 a data sharing method as shown.

[0613] The present application provides a computer program product including instructions. When the computer program product runs on a first electronic device, it causes the first electronic device to execute Figure 12 a data sharing method as shown.

[0614] The present application provides a computer program product including instructions. When the computer program product runs on a second electronic device, it causes the second electronic device to execute Figure 12 a data sharing method as shown.

[0615] The above are only partial embodiments and implementation manners of the present application. The protection scope of the present application is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed in the present application, and all should be covered within the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

[0616] It can be understood that each user interface described in the embodiments of the present application is only an example interface and does not limit the solution of the present application. In other embodiments, the user interface can adopt different interface layouts, can include more or fewer controls, and can add or reduce other function options. As long as it is based on the same inventive concept provided by the present application, it is within the protection scope of the present application.

[0617] It should be noted that without 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.

[0618] As mentioned above, the above embodiments are only used to illustrate the technical solutions of the present application and are not intended to limit them. Although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions recorded in the foregoing embodiments, or perform equivalent substitutions on some of the technical features; and these modifications or substitutions 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 includes: The first electronic device detects a first operation of the user, wherein the first operation is used to share first data to the 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, 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 the first communication connection with the second electronic device, specifically including: In the case of detecting 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-3, characterized in that, 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 further includes: In response to the first operation, the first electronic device displays a first interface, and the first interface includes the first data.

5. The method according to claim 2 or 3, characterized in that, 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 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.

6. The method according to claim 5, characterized in that, The first broadcast carries second posture information, and the second posture information is used to indicate that the first electronic device is in the 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.

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 types of the first data and 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 types of the first data and 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 is different from the second data type.

8. The method according to claim 7, characterized in that, The first posture type and the second posture type can be any one of the following: horizontal screen placement posture, vertical screen placement posture.

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, A first camera is configured on the first electronic device; 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 collected 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, When the first electronic device is in the first placement posture and it is determined based on the image collected 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, specifically including: When the first camera is a front camera, and the first electronic device is in the first placement posture and it is determined based on the image collected by the first camera that there is an electronic device in the second placement posture, and the image collected by the first camera includes the display screen image 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-11, characterized in that, The method further includes: In response to the first operation, when the first electronic device is in the 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-12, characterized in that The first data includes any one of the following: pictures, videos, documents, music, web pages, application installation packages.

14. A data sharing method, characterized in that The method includes: The first electronic device detects a first operation of the 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 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; 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 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, 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; Wherein, 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, 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 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-16, characterized in that 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 further includes: In response to the first operation, the first electronic device displays a first interface, and the first interface includes the first data.

18. The method according to claim 15 or 16, characterized in that The first placement posture and the second placement posture are the same; After establishing a first communication connection between the first electronic device and the second electronic device, the method further includes: The first electronic device receives, via the first communication connection, second data sent by the second electronic device or a URL of the second data; Wherein, 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, wherein, The first broadcast carries second attitude information, and the second attitude information is used to indicate that the first electronic device is in the first placement attitude; The second data or the URL of the second data is sent to the first electronic device via the first communication connection when the second electronic device detects that the first placement attitude and the second placement attitude are the same.

20. The method according to claim 18 or 19, wherein, When the first placement attitude and the second placement attitude are of a first attitude type, the data type of the first data and the data type of the second data are both of a first data type; When the first placement attitude and the second placement attitude are of a second attitude type, the data type of the first data and the data type of the second data are both of a second data type; Wherein, the first attitude type is different from the second attitude type, and the first data type is different from the second data type.

21. The method according to claim 20, wherein, The first attitude type and the second attitude type can be any one of the following: a landscape placement attitude, a portrait placement attitude.

22. The method according to claim 17, wherein, The first placement attitude is a landscape placement attitude, and the second placement attitude is a portrait placement attitude; or, The first placement attitude is a portrait placement attitude, and the second placement attitude is a landscape placement attitude.

23. The method according to claim 15 or 16, wherein, A first camera is configured on the first electronic device; When the first electronic device is in the first placement attitude, the first electronic device sending a first broadcast to the second electronic device in the second placement attitude specifically includes: When the first electronic device is in the first placement attitude and it is determined based on an image captured by the first camera that there is an electronic device in the second placement attitude, the first electronic device sends the first broadcast to the second electronic device in the second placement attitude.

24. The method according to claim 23, wherein, When the first electronic device is in the first placement attitude and it is determined based on an image captured by the first camera that there is an electronic device in the second placement attitude, the first electronic device sending the first broadcast to the second electronic device in the second placement attitude specifically includes: When the first camera is a front camera, and the first electronic device is in a 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, and the image captured by the first camera includes the display screen image 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 - 24, wherein, the method further includes: In response to the first operation, when the first electronic device is in the 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 - 25, wherein, the first data includes any one of the following: picture, video, document, music, web page, application installation package.

27. An electronic device, being the first electronic device, wherein, the first electronic device includes a camera, a memory, and a processor; wherein, the camera, the memory, and the processor are coupled, the memory is used to store a computer program, and when the processor executes and calls the computer program, the first electronic device executes the method according to any one of claims 14 - 26.

28. A computer-readable storage medium, including instructions, wherein, when the instructions run on the first electronic device, the first electronic device executes the method according to any one of claims 14 - 26.

Citation Information

Cited By

  • Screen projection method and program product

    CN122602129A