Content sharing method and electronic device
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- HUAWEI TECH CO LTD
- Filing Date
- 2025-06-19
- Publication Date
- 2026-07-21
AI Technical Summary
Cross-device content sharing is complicated, time-consuming, and laborious, resulting in a poor user experience.
By detecting the capacitance parameters of electronic device displays, the system automatically identifies nearby devices and establishes a communication connection, enabling automatic content sharing and simplifying the operation process.
It achieves convenient cross-device content sharing and a technologically advanced user experience, reducing cumbersome steps and data consumption.
Smart Images

Figure CN122439342A_ABST
Abstract
Description
Content sharing methods and electronic devices
[0001] This application claims priority to Chinese patent application filed on August 30, 2024, with application number 202411218712.0 and entitled "Content Sharing Method and Electronic Device", the entire contents of which are incorporated herein by reference. Technical Field
[0002] This application relates to the field of electronic device technology, and in particular to content sharing methods and electronic devices. Background Technology
[0003] Cross-device content sharing has become a daily necessity. However, some solutions require multiple cumbersome steps to complete this task. For example, if the content is a file, these steps might include: locating the file to be sent in the file manager; opening a specific interface and triggering the file sharing function; and selecting the receiving device from a list of devices. This cross-device content sharing operation is complex, time-consuming, and labor-intensive. Summary of the Invention
[0004] This application provides a content sharing method and an electronic device that can simplify the operations required for cross-device content sharing, making cross-device content sharing more convenient and faster.
[0005] To achieve the above objectives, this application adopts the following technical solution:
[0006] In a first aspect, a content sharing method is provided, applied to a second electronic device including a second display screen. The method includes: the second electronic device determining that a first electronic device is close to the second display screen based on the capacitance parameters (or capacitance data) of the second display screen, wherein the first electronic device includes a first display screen; and, based on a communication connection (such as a short-range communication connection like Bluetooth) between the second electronic device and the first electronic device, the second electronic device and the first electronic device share content, wherein the content is either content displayed on the first display screen or content displayed on the second display screen.
[0007] Based on the above technical solution, an electronic device can determine when another electronic device is near its screen by measuring the capacitance parameters of its own display. Then, through the communication connection between the two electronic devices, the content displayed on their screens can be shared. This allows content sharing between two electronic devices simply by bringing one device close to the screen of another. This eliminates the need for complex interface navigation to access the content sharing function or selecting a content receiver from a list of electronic devices, simplifying the process of cross-device content sharing and making it more convenient and faster. Furthermore, it provides users with a "picking things up from the screen" experience, enhancing the sense of technology.
[0008] In one possible design, determining that the first electronic device is close to the second display screen includes: the second electronic device determining that the first electronic device is close to a first area of the second display screen; content sharing between the second electronic device and the first electronic device includes: the second electronic device sending first content or information indicating the first content of the first area to the first electronic device, the content including the first content of the first area; or, the second electronic device receiving the content or information indicating the content displayed on the first display screen from the first electronic device; and the second electronic device displaying the content or information indicating the content in the first area. Thus, when the first electronic device is close to a certain area on the display screen of the second electronic device, it can read the content of that area and display it on its own display screen, achieving content reading in the nearby area, or share the content on its own display screen to display in that area, achieving display of received content in the nearby area.
[0009] In one possible design, determining that the first electronic device is near the second display screen further includes: the second electronic device determining that the first electronic device is near a second area of the second display screen; content sharing between the second electronic device and the first electronic device further includes: the second electronic device sending second content of the second area or information indicating the second content to the first electronic device, wherein the content also includes the second content of the second area, and the second area is different from the first area. Thus, when the first electronic device is near a second area on the display screen of the second electronic device that is different from the first area, it can share the content of the second area with the first electronic device. In this way, the first electronic device can read the content displayed in the corresponding area by being near different areas on the display screen of the second electronic device.
[0010] In one possible design, the information indicating the content includes a preview image of the content. This allows the first electronic device to send the preview image to the second electronic device, making it easier for the user to confirm whether the currently shared content is what they need, while also saving data usage.
[0011] In one possible design, the second electronic device displays the content in the first area, including: the second electronic device receiving a trigger operation on the preview image; and in response to the trigger operation, the second electronic device displays the content in the first area. In this way, after the second electronic device receives the user's trigger operation on the preview image, it displays the content shared by the first electronic device on the screen, meaning the first electronic device then shares the content with the second electronic device. This ensures that the shared content is indeed what the user needs, improving the user experience and saving data usage.
[0012] In one possible design, before the second electronic device determines that the first electronic device is near a first area of the second display screen, the first area displays a first file; the second electronic device displays the content in the first area, including: the second electronic device inserts the content into the first file for display. Thus, when the first electronic device is near a certain area on the display screen of the second electronic device, the second electronic device can directly insert the content shared by the first electronic device into the file displayed in that area for display.
[0013] In one possible design, the first file includes a first sub-region and a second sub-region, where the first region is the first sub-region; the second electronic device inserts the content into the first file for display, including: the second electronic device inserts the content into the first sub-region of the first file for display. In this way, the first electronic device can insert shared content into different regions of the same file by using different regions of the same file that are close to the second electronic device for display.
[0014] In one possible design, the content is the content displayed on the first display screen; content sharing between the second electronic device and the first electronic device includes: the second electronic device receiving the content from the first electronic device; and the second electronic device displaying the content in a target area on the second display screen. In this way, regardless of where the first electronic device is near the second electronic device's display screen, the shared content can be displayed in a fixed area on the second electronic device's display screen. For example, the target area can be a focus window, a focal window, or a top-level window, etc.
[0015] In one possible design, the target area is an area displaying the target file; the second electronic device displays the content in the target area on the second display screen, including: the second electronic device inserting the content into the target file for display. In this way, regardless of where the first electronic device is located on the second electronic device's display screen, it can insert the shared content into a fixed file displayed on the second electronic device's display screen.
[0016] In one possible design, the target file is all the files displayed on the second display screen. Alternatively, the target file can be a file displayed in a focus window, a key window, or a top-level window, etc.
[0017] In one possible design, the first content includes an application interface, or the content includes an application interface.
[0018] In one possible design, the content is a first service; content sharing between the second electronic device and the first electronic device includes: the second electronic device receiving service information from the first electronic device, the service information being used to execute the first service, the first service being a service corresponding to a first execution interface displayed on the first display screen; the second electronic device displaying a second execution interface of the first service on the second display screen based on the service information; or, the second electronic device displaying the second execution interface of the first service on the second display screen; and the second electronic device sending service information to the first electronic device, the service information being used to instruct the first electronic device to execute the first service. In this way, the first electronic device can also share services by having its display screen close to that of the second electronic device.
[0019] In one possible design, after determining that the first electronic device is close to the second display screen, the method further includes: the second electronic device controlling the first electronic device, or the second electronic device being controlled by the first electronic device. In this way, the first electronic device can also achieve mutual control between the devices by being close to the display screen of the second electronic device, such as the first electronic device acting as a remote control for the second electronic device.
[0020] In one possible design, determining that the first electronic device is close to the second display screen includes: the second electronic device acquiring the capacitance parameters of the second display screen, wherein the capacitance parameters satisfy a preset condition.
[0021] In one possible design, the second electronic device determines that the first electronic device is near a first area of the second display screen by: the second electronic device acquiring the capacitance value of the first area within a preset time period; and determining that the first electronic device is near the first area if the capacitance value of the first area within the preset time period meets a preset condition. In this way, the change in the capacitance value of the second electronic device's display screen that might occur when the first electronic device approaches it is relatively minor. Therefore, by using the capacitance value of the first area within the preset time period to determine whether the first electronic device is near its own display screen, the second electronic device can improve the accuracy of its determination and reduce judgment errors.
[0022] Secondly, a content sharing method is provided, applied to a first electronic device including a first display screen, the method comprising: when the first electronic device is close to a second display screen of a second electronic device, based on the communication connection between the first electronic device and the second electronic device, the first electronic device and the second electronic device share content, wherein the content is content displayed on the first display screen or content displayed on the second display screen.
[0023] In one possible design, the content sharing between the first electronic device and the second electronic device when the first electronic device is near the second display screen of the second electronic device includes: when the first electronic device is near a first area of the second display screen, the first electronic device receives first content or information indicating the first content of the first area from the second electronic device, the content including the first content of the first area; the first electronic device displays the first content or the information indicating the first content on the first display screen; or, when the first electronic device is near a first area of the second display screen, the first electronic device sends the content displayed on the first display screen or the information indicating the content to the second electronic device, the content displayed on the first display screen or the information indicating the content being used to display in the first area.
[0024] In one possible design, the content sharing between the first electronic device and the second electronic device when the first electronic device is close to the second display screen of the second electronic device further includes: when the first electronic device is close to a second area of the second display screen, the first electronic device receives second content of the second area or information indicating the second content from the second electronic device, wherein the content also includes the second content of the second area, and the second area is different from the first area; the first electronic device displays the second content or information indicating the second content on the first display screen.
[0025] In one possible design, the information indicating the first content includes a preview image of the first content.
[0026] In one possible design, the first electronic device displays the first content on the first display screen, including: the first electronic device receiving a trigger operation on the preview image; and in response to the trigger operation, the first electronic device displays the first content on the first display screen.
[0027] In one possible design, before the first electronic device approaches a first area of the second display screen, the first electronic device displays a second document on the first display screen; the first electronic device displaying the first content on the first display screen includes: the first electronic device inserting the first content into the second document for display.
[0028] In one possible design, before the first electronic device approaches a first area of the second display screen, the first electronic device also displays a third document on the first display screen; the first electronic device inserts the first content into the second document for display, including: the first electronic device inserts the first content into the second document and displays it in the third document.
[0029] In one possible design, the content is a first service; content sharing between the first electronic device and the second electronic device includes: the first electronic device displaying a first execution interface of the first service on the first display screen; the first electronic device sending service information to the second electronic device, the service information being used by the second electronic device to execute the first service; or, the first electronic device receiving service information from the second electronic device, the service information being used to execute the first service, the first service being the service corresponding to the second execution interface displayed on the second display screen; and the first electronic device displaying the first execution interface of the first service on the first display screen based on the service information.
[0030] In one possible design, before content sharing between the first electronic device and the second electronic device, the method further includes: the first electronic device determining that it is in a handheld scenario. Since other electronic devices besides the first electronic device may be placed around the second electronic device, and these devices may cause changes in the capacitance parameters of the second electronic device, but these electronic devices may not be the ones the user wants to share content with, to facilitate content sharing between the first and second electronic devices, the first electronic device can also determine whether it is in a handheld scenario. If it is determined to be in a handheld scenario, it indicates that the first electronic device is the one the user wants to share content with, and then content sharing can proceed between it and the second electronic device.
[0031] In one possible design, before content sharing occurs between the first electronic device and the second electronic device, the method further includes: when the first electronic device is near the second display screen of the second electronic device, the first electronic device receives a broadcast message from the second electronic device; the first electronic device establishes the communication connection with the second electronic device based on the broadcast message.
[0032] In this way, when the first electronic device is close to the display screen of the second electronic device, it indicates that the user may have a need to share content. At this time, the second electronic device sends a broadcast message, and then the first electronic device establishes a communication connection with the second electronic device based on the broadcast message, which facilitates content sharing between the first and second electronic devices based on the communication connection.
[0033] For the technical effects of other designs in the second aspect, please refer to the technical effects of the corresponding designs in the first aspect.
[0034] Thirdly, a content sharing method is provided, which can be applied to a communication system including a first electronic device and a second electronic device. The method includes: the second electronic device determining that the first electronic device is close to the second display screen based on the capacitance parameters of the second display screen, the second electronic device including the second display screen, and the first electronic device including the first display screen; based on the communication connection between the second electronic device and the first electronic device, the second electronic device and the first electronic device share content, the content being either the content displayed on the first display screen or the content displayed on the second display screen.
[0035] In one possible design, determining that the first electronic device is close to the second display screen includes: the second electronic device determining that the first electronic device is close to a first area of the second display screen; content sharing between the second electronic device and the first electronic device includes: the second electronic device sending first content of the first area or information indicating the first content to the first electronic device; the first electronic device displaying the first content or the information indicating the first content on the first display screen, the content including the first content of the first area; or, the first electronic device sending the content displayed on the first display screen or the information indicating the content to the second electronic device; the second electronic device displaying the content or the information indicating the content in the first area.
[0036] In one possible design, determining that the first electronic device is close to the second display screen further includes: the second electronic device determining that the first electronic device is close to a second area of the second display screen; content sharing between the second electronic device and the first electronic device further includes: the second electronic device sending second content of the second area or information indicating the second content to the first electronic device, wherein the content also includes the second content of the second area, and the second area is different from the first area; and the first electronic device displaying the second content or information indicating the second content on the first display screen.
[0037] In one possible design, the information indicating the first content includes a preview image of the first content.
[0038] In one possible design, the first electronic device displays the first content on the first display screen, including: the first electronic device receiving a trigger operation on the preview image; and in response to the trigger operation, the first electronic device displays the first content on the first display screen.
[0039] In one possible design, before the first electronic device approaches a first area of the second display screen, the first electronic device displays a second document on the first display screen; the first electronic device displaying the first content on the first display screen includes: the first electronic device inserting the first content into the second document for display; or, before the second electronic device determines that the first electronic device is approaching a first area of the second display screen, the first area displays a first document; the second electronic device displaying the content in the first area includes: the second electronic device inserting the content into the first document for display.
[0040] In one possible design, the first file includes a first sub-region and a second sub-region, where the first region is the first sub-region; the second electronic device inserts the content into the first file for display, including: the second electronic device inserts the content into the first sub-region of the first file for display.
[0041] In one possible design, before the first electronic device approaches a first area of the second display screen, the first electronic device also displays a third document on the first display screen; the first electronic device inserts the first content into the second document for display, including: the first electronic device inserts the first content into the second document and displays it in the third document.
[0042] In one possible design, the content is the content displayed on the first display screen; content sharing between the second electronic device and the first electronic device includes: the second electronic device receiving the content from the first electronic device; and the second electronic device displaying the content in a target area on the second display screen.
[0043] In one possible design, the target area is an area displaying the target file; the second electronic device displays the content in the target area on the second display screen, including: the second electronic device inserts the content into the target file for display.
[0044] In one possible design, the target file is all the files displayed on the second display screen.
[0045] In one possible design, the first content includes an application interface, or the content includes an application interface.
[0046] In one possible design, the content is a first service; content sharing between the second electronic device and the first electronic device includes: the first electronic device displaying a first execution interface of the first service on the first display screen; the first electronic device sending service information to the second electronic device, the service information being used by the second electronic device to execute the first service; the second electronic device displaying a second execution interface of the first service on the second display screen based on the service information; or, the second electronic device displaying a second execution interface of the first service on the second display screen; the second electronic device sending service information to the first electronic device, the service information being used to execute the first service; and the first electronic device displaying a first execution interface of the first service on the first display screen based on the service information.
[0047] In one possible design, after determining that the first electronic device is close to the second display screen, the method further includes: the second electronic device controlling the first electronic device, or the first electronic device controlling the second electronic device.
[0048] In one possible design, determining that the first electronic device is close to the second display screen includes: the second electronic device acquiring the capacitance parameters of the second display screen, wherein the capacitance parameters satisfy a preset condition.
[0049] In one possible design, the second electronic device determines that the first electronic device is close to a first area of the second display screen by: the second electronic device acquiring the capacitance value of the first area within a preset time period; and when the capacitance value of the first area within the preset time period meets a preset condition, the second electronic device determines that the first electronic device is close to the first area.
[0050] In one possible design, before content sharing occurs between the second electronic device and the first electronic device, the method further includes: the first electronic device determining that it is in a handheld scenario.
[0051] In one possible design, before content sharing occurs between the second electronic device and the first electronic device, the method further includes: when the first electronic device approaches the second display screen of the second electronic device, the second electronic device sends a broadcast message; the first electronic device establishes the communication connection with the second electronic device based on the broadcast message.
[0052] Fourthly, a detection method is provided for a second electronic device, the method comprising: determining that a first event has occurred; acquiring detection data of the display screen of the second electronic device at a first frequency upon determining that the first event has occurred; identifying a first electronic device or other conductor that is close to the second electronic device based on the detection data acquired at the first frequency; and initiating cooperative operation between the second electronic device and the first electronic device, or initiating cooperative operation between the second electronic device and other conductors.
[0053] Thus, in response to the acquisition of detection data for a specific event, the second electronic device can detect the proximity of the first electronic device or other conductors, triggering collaborative operation. Compared to existing technologies that rely on NFC functionality for collaborative operation, the detection method provided in this application effectively reduces the user's operational difficulty during proximity detection, such as eliminating the need for the user to align the NFC modules of two devices. Furthermore, the electronic device does not need to have an NFC module installed, reducing hardware costs. In addition, compared to real-time proximity detection, it reduces power consumption.
[0054] According to the fourth aspect, the detection data of the display screen is acquired at a first frequency. Specifically, this can be acquiring the detection data reported by the display screen in a first operating mode. The frequency at which the display screen reports the detection data to the processor in the first mode is the first frequency. The first operating mode can be a mode between an idle mode and an active mode (also known as a semi-idle mode). The frequency at which the display screen reports the detection data to the processor in the first operating mode is greater than the frequency at which the display screen reports the detection data in the idle mode but less than the frequency at which the display screen reports the detection data in the active mode.
[0055] Thus, a semi-Idle mode is proposed, which is between Idle mode and Active mode. Optionally, when the display is in semi-Idle mode, the display reports detection data to the processor using a detection data reporting frequency between that of Idle mode and Active mode, thereby achieving a balance between response speed, recall rate, accuracy, and other parameters that are close to the response judgment effect, and power consumption.
[0056] According to the fourth aspect, or any implementation of the fourth aspect above, after determining the first electronic device or other conductor near the second electronic device, the method further includes: acquiring detection data of the refreshed display screen at a second frequency greater than the first frequency. Based on the refreshed detection data, a first area on the display screen near the first electronic device or other conductor is determined.
[0057] In some examples, collaborative work is initiated between the second electronic device and the first electronic device, or between the second electronic device and other conductors, and this collaborative work can then be carried out based on the first region.
[0058] In this way, the second electronic device can obtain the area of the first electronic device near the display screen through capacitance data, enabling more accurate content sharing.
[0059] According to the fourth aspect, or any implementation of the fourth aspect above, before determining that the first event has occurred, the method further includes: acquiring detection data of the display screen at a third frequency, wherein the first frequency is greater than the third frequency.
[0060] In this way, the second electronic device responds to the first event by increasing the frequency of detection data reporting, thereby improving the accuracy of judging the proximity of other devices or conductors.
[0061] According to the fourth aspect, or any of the above implementations of the fourth aspect, the first frequency is greater than or equal to 5 Hz and less than or equal to 50 Hz.
[0062] According to the fourth aspect, or any implementation of the fourth aspect above, the first frequency is greater than or equal to 20 Hz and less than or equal to 25 Hz.
[0063] According to the fourth aspect, or any of the above implementations of the fourth aspect, the first frequency is 20 Hz or 21 Hz.
[0064] According to the fourth aspect, or any implementation of the fourth aspect above, determining the proximity of a first electronic device or other conductor to a second electronic device includes: determining that the first electronic device or other conductor is close to the second electronic device when the detection data acquired at a first frequency meets a first condition; wherein the first condition includes at least one of the following conditions: the amount of change in the detection data acquired at the first frequency is greater than a preset threshold. The arrangement of the detection data exceeding the preset threshold in the detection data acquired at the first frequency conforms to a preset rule.
[0065] In some examples, the second electronic device is equipped with a capacitive touchscreen, which includes multiple capacitor modules. The second electronic device can acquire the capacitance values of the multiple capacitor modules and generate a corresponding capacitance value distribution map. For example, the size of the capacitance value distribution map is the same as the size of the capacitive touchscreen. Optionally, the second electronic device is pre-configured with a reference capacitance value for the capacitor modules. Then, after acquiring the capacitance value of each capacitor module, the second electronic device can compare it with the reference capacitance value to determine whether the difference is greater than or equal to a preset threshold. If the capacitance value difference is greater than or equal to the preset threshold, there is a possibility that a conductor is near the corresponding capacitor module. Optionally, the reference capacitance value can be the average value measured historically when no other conductor has been near the capacitive touchscreen of the second electronic device.
[0066] For example, the second electronic device can scan the entire capacitance value distribution map by a preset shape. At a certain moment, the capacitance value of the capacitor modules within the preset shape is greater than or equal to a preset threshold, or at a certain moment, the average capacitance value of the capacitor modules within the preset shape is greater than or equal to a preset threshold. In this case, it can be determined that the first electronic device or other conductor currently present near the second electronic device can be identified.
[0067] For example, the second electronic device acquires a capacitance value distribution map. In this map, the second electronic device uses a first pattern " / " to indicate capacitance values where the change in capacitance exceeds a preset threshold. For instance, the preset pattern is an arrangement of hollow crosses. Optionally, the lengths of the horizontal and vertical lines of this cross can be different or the same. The second electronic device acquires that the arrangement of the first pattern conforms to the preset pattern. Therefore, the second electronic device can detect the proximity of other electronic devices.
[0068] In this way, by increasing the frequency of reporting detection data, the second electronic device can improve the accuracy and recall of determining whether the first electronic device or other conductors are near the display screen.
[0069] According to the fourth aspect, or any implementation of the fourth aspect above, initiating collaborative work between the second electronic device and the first electronic device includes: sharing first content displayed on the first area to the first electronic device; or displaying second content shared by the first electronic device on the first area. The first or second content is shared via a short-range communication connection.
[0070] In some examples, the collaboration between the first electronic device and the second electronic device is based on the first region.
[0071] In some examples, the first or second content is shared via a short-range communication connection.
[0072] In some examples, a second electronic device establishes a short-range communication connection with the first electronic device before sharing the first or second content.
[0073] Thus, once the first electronic device approaches, the second electronic device can share content based on the first area.
[0074] According to the fourth aspect, or any of the above implementations of the fourth aspect, if a second event is determined to occur, the frequency of acquiring detection data from the display screen is switched to the first frequency. The second event includes: the sharing of the first content or the second content is completed, and the first application continues to be displayed in the foreground.
[0075] For example, if the user still has a need to share content after the initial sharing is complete, causing the second electronic device to continue displaying the first application in the foreground, the processor can instruct the display to switch from Active mode back to semi-Idle mode. The display then reports detection data to the processor at the first frequency corresponding to semi-Idle mode.
[0076] In this way, the second electronic device reduces the reporting frequency of detection data, thereby reducing power consumption. Furthermore, in situations where content sharing is possible, the second electronic device can acquire detection data at a relatively high initial frequency, ensuring the accuracy of subsequent content sharing processes.
[0077] According to the fourth aspect, or any implementation of the fourth aspect above, the method further includes: determining that a fourth event has occurred, switching the frequency of acquiring detection data from the display screen to a third frequency, wherein the fourth event includes: an exit event of the first application or an editing operation on the display interface of the second application.
[0078] For example, if an application triggers an exit event or an edit event, there might not be a need for content sharing. In this case, the processor can instruct the display to switch from half-Idle mode back to Idle mode. The display then reports detection data to the processor at the third frequency corresponding to Idle mode. Alternatively, the processor can instruct the display to switch from Active mode back to Idle mode. The display then reports detection data to the processor at the third frequency corresponding to Idle mode. That is, when there is no need for content sharing, the display can report detection data at a lower frequency to avoid wasting power.
[0079] According to the fourth aspect, or any implementation of the fourth aspect above, the method further includes: determining that a fifth event has occurred, switching the frequency of acquiring detection data from the display screen to a first frequency, wherein the fifth event includes: detecting that the editing operation has stopped during the process of displaying the display interface of the second application in the foreground.
[0080] For example, while the second electronic device is displaying the interface of the second application in the foreground, it reduces the frequency of reporting detection data to the display screen in response to an editing operation, thereby reducing power consumption when there is no need for content sharing. Subsequently, after the editing operation is received, the second application may have a content sharing need, in which case the processor can instruct the display screen to switch from Idle mode to half-Idle mode. Then, the display screen reports detection data to the processor at a first frequency corresponding to half-Idle mode. In this way, the display screen can increase the detection data reporting frequency, and the second electronic device can improve the accuracy of the subsequent content sharing process based on the detection data reported at a higher frequency.
[0081] In this way, the reporting frequency of display detection data can be flexibly adjusted to meet the needs of various scenarios and achieve a balance between power consumption and parameters that measure response performance, such as response speed, recall, and accuracy.
[0082] According to the fourth aspect, or any implementation of the fourth aspect above, the first event includes: a first startup event of a first application in the second electronic device.
[0083] According to the fourth aspect, or any of the above implementations of the fourth aspect, the first application is a system-preset target application or a user-specified target application; and / or, the first application includes one or more of the following: file management application, gallery application, document application.
[0084] According to the fourth aspect, or any implementation of the fourth aspect above, the first event also includes: the presence of other electronic devices logged into the same account as the second electronic device within the short-range communication range of the second electronic device.
[0085] According to the fourth aspect, or any of the above implementations of the fourth aspect, the detection data is capacitance data.
[0086] According to the fourth aspect, or any implementation of the fourth aspect above, the display screen is a capacitive touch screen, the capacitive touch screen includes a touch integrated circuit IC, and the detection data of the display screen of the second electronic device is acquired at a first frequency, including: the processor acquires the detection data reported by the touch IC at the first frequency.
[0087] Fifthly, a detection method is provided, applied to a first electronic device, the method comprising: determining that a third event has occurred. Upon determining that a third event has occurred, transmitting a first signal at a preset frequency, the power of the first signal being greater than or equal to a power threshold, the first signal being used to interfere with detection data on the display screen of a second electronic device, the third event comprising: the first electronic device performing a preset action, the preset action being an action indicating that the first electronic device is moving closer to the display screen of another electronic device.
[0088] In some embodiments, the high-power signal transmitted by the first electronic device may interfere with the detection data of the second electronic device.
[0089] In this way, the first electronic device can respond to the third event by sending a first signal to interfere with the capacitance detection of the display screen of a possible second electronic device in the vicinity, thereby notifying the second electronic device of the proximity of the first electronic device and improving the accuracy of the proximity detection of the second electronic device.
[0090] According to the fifth aspect, the preset action is specifically an action that starts from rest, moves in a preset direction, and then stops. The preset direction includes: the direction from the top of the first electronic device to the display screen of the second electronic device.
[0091] According to the fifth aspect, or any implementation of the fifth aspect above, the acceleration of the preset action from rest to movement exceeds a first threshold, and / or the deceleration of the preset action from movement to stop exceeds a second threshold.
[0092] For example, as a user holds a first electronic device and approaches another electronic device, the first electronic device may change from a stationary state to a moving state and then back to a stationary state. During this process, the acceleration or deceleration detected by the accelerometer of the first electronic device may exceed a certain threshold. Optionally, the first electronic device obtains its linear acceleration magnitude and angular velocity magnitude from the detection data of the accelerometer. If the linear acceleration magnitude is greater than the acceleration threshold and the angular velocity magnitude is greater than the angular velocity threshold, the first electronic device can determine that it is currently in motion.
[0093] Thus, by combining its own movement status and distance traveled, the first electronic device can determine whether it is in a "hovering state." When the first electronic device is in a "hovering state," it may be in a handheld scenario. In this state, there may be a need to share content. Therefore, the first electronic device can send a first signal to trigger a nearby, potentially second, electronic device to share the content.
[0094] According to the fifth aspect, or any implementation of the fifth aspect above, the third event also includes detecting the presence of other electronic devices logged into the same account as the first electronic device within the short-range communication range of the first electronic device.
[0095] In this way, the first electronic device will trigger the transmission of the first signal only when it determines that there are other electronic devices with the same account nearby, thereby improving the accuracy of the first signal transmission.
[0096] According to the fifth aspect, or any implementation of the fifth aspect above, the first signal is sent at a preset frequency, including: sending the first signal at a preset frequency through the target hardware.
[0097] According to the fifth aspect, or any implementation of the fifth aspect above, the target hardware is a wireless charging coil.
[0098] According to the fifth aspect, or any implementation of the fifth aspect above, the display screen of the second electronic device is a capacitive touch screen, and the detection data is capacitance data.
[0099] A sixth aspect provides a second electronic device, comprising: a processor, a memory, and a display screen. The memory and display screen are coupled to the processor. The memory stores computer program code, including computer instructions. When the processor reads the computer instructions from the memory, the second electronic device executes: determining that a first event has occurred; acquiring detection data from the display screen of the second electronic device at a first frequency, based on the detection data acquired at the first frequency; identifying a first electronic device or other conductor near the second electronic device; and initiating cooperative operation between the second electronic device and the first electronic device, or initiating cooperative operation between the second electronic device and other conductors.
[0100] According to the sixth aspect, when the processor reads computer instructions from memory, it also causes the second electronic device to perform the following: acquire refreshed display detection data at a second frequency, the second frequency being greater than the first frequency; and determine a first area on the display screen where the first electronic device or other conductor is located, based on the refreshed detection data.
[0101] According to the sixth aspect, or any implementation of the sixth aspect above, when the processor reads computer instructions from memory, it also causes the second electronic device to perform: acquiring detection data of the display screen at a third frequency, wherein the first frequency is greater than the third frequency.
[0102] According to the sixth aspect, or any implementation of the sixth aspect above, the first frequency is greater than or equal to 5 Hz and less than or equal to 50 Hz.
[0103] According to the sixth aspect, or any implementation of the sixth aspect above, the first frequency is greater than or equal to 20 Hz and less than or equal to 25 Hz.
[0104] According to the sixth aspect, or any implementation of the sixth aspect above, the first frequency is 20 Hz or 21 Hz.
[0105] According to the sixth aspect, or any implementation thereof, determining the proximity of a first electronic device or other conductor to a second electronic device includes: determining that the first electronic device or other conductor is close to the second electronic device when detection data acquired at a first frequency satisfies a first condition; wherein the first condition includes at least one of the following conditions: the amount of change in the detection data acquired at the first frequency is greater than a preset threshold. The arrangement of the detection data exceeding the preset threshold in the detection data acquired at the first frequency conforms to a preset rule.
[0106] According to the sixth aspect, or any implementation thereof, the collaborative operation between the second electronic device and the first electronic device is initiated, including: sharing the first content displayed on the first area to the first electronic device; or, displaying the second content shared by the first electronic device on the first area.
[0107] According to the sixth aspect, or any implementation of the sixth aspect above, if a second event is determined to occur, the frequency of acquiring detection data from the display screen is switched to the first frequency. The second event includes: the sharing of the first content or the second content is completed, and the first application continues to be displayed in the foreground.
[0108] According to the sixth aspect, or any implementation of the sixth aspect above, when the processor reads computer instructions from memory, it also causes the second electronic device to perform: determining that a fourth event has occurred, switching the frequency of acquiring detection data from the display screen to a third frequency, the fourth event including: an exit event of the first application or an editing operation on the display interface of the second application.
[0109] According to the sixth aspect, or any implementation of the sixth aspect above, when the processor reads computer instructions from memory, it also causes the second electronic device to perform: determining that a fifth event has occurred, switching the frequency of acquiring detection data from the display screen to a first frequency, the fifth event including: detecting that an editing operation has stopped during the display interface of the second application in the foreground.
[0110] According to the sixth aspect, or any implementation of the sixth aspect above, the first event includes: a first startup event of a first application in the second electronic device.
[0111] According to the sixth aspect, or any implementation of the sixth aspect above, the first application is a target application preset by the system or a target application specified by the user; and / or, the first application includes one or more of the following: file management application, gallery application, document application.
[0112] According to the sixth aspect, or any implementation of the sixth aspect above, the first event also includes: the presence of other electronic devices logged into the same account as the second electronic device within the short-range communication range of the second electronic device.
[0113] According to the sixth aspect, or any implementation of the sixth aspect above, the detection data is capacitance data.
[0114] According to the sixth aspect, or any implementation thereof, the display screen is a capacitive touch screen, the capacitive touch screen includes a touch integrated circuit IC, and the detection data of the display screen of the second electronic device is acquired at a first frequency, including: the processor acquiring the detection data reported by the touch IC at the first frequency.
[0115] A seventh aspect provides a first electronic device, comprising: a processor and a memory. The memory is coupled to the processor and stores computer program code, including computer instructions. When the processor reads the computer instructions from the memory, the first electronic device executes: determining that a third event has occurred. Upon determining that the third event has occurred, the first signal is transmitted at a preset frequency, the power of the first signal being greater than or equal to a power threshold. The first signal is used to interfere with detection data on the display screen of a second electronic device. The third event includes: the first electronic device performing a preset action, the preset action being an action indicating that the first electronic device moves closer to the display screen of another electronic device.
[0116] According to the seventh aspect, the preset action is specifically an action that starts from rest, moves in a preset direction, and then stops. The preset direction includes: the direction from the top of the first electronic device to the display screen of the second electronic device.
[0117] According to the seventh aspect, or any implementation of the seventh aspect above, the acceleration of the preset action from rest to movement exceeds a first threshold, and / or the deceleration of the preset action from movement to stop exceeds a second threshold.
[0118] According to the seventh aspect, or any implementation of the seventh aspect above, the third event also includes detecting the presence of other electronic devices logged into the same account as the first electronic device within the short-range communication range of the first electronic device.
[0119] According to the seventh aspect, or any implementation of the seventh aspect above, the first signal is sent at a preset frequency, including: sending the first signal at a preset frequency through the target hardware.
[0120] According to aspect seven, or any implementation of aspect seven above, the target hardware is a wireless charging coil.
[0121] According to the seventh aspect, or any implementation of the seventh aspect above, the display screen of the second electronic device is a capacitive touch screen, and the detection data is capacitance data.
[0122] Eighthly, a content sharing method is provided, characterized in that it is applied to a second electronic device including a display screen, the method comprising: the display screen of the second electronic device displaying first payment information, the first payment information including a payment code; the second electronic device determining that the first electronic device is close to the display screen based on the capacitance parameters of the display screen; and, based on a communication connection between the first electronic device and the second electronic device, the second electronic device sending the first payment information to the first electronic device, the first payment information being used by the first electronic device to complete a payment. Optionally, the first payment information may further include a payment amount.
[0123] A ninth aspect provides a content sharing method, characterized in that it is applied to a first electronic device, the method comprising: responding to the first electronic device approaching the display screen of a second electronic device, based on a communication connection between the first electronic device and the second electronic device, the first electronic device receiving first payment information from the second electronic device, the first payment information being payment information displayed on the display screen, the first payment information including a payment code; and the first electronic device completing payment based on the first payment information. Thus, when payment information is displayed on the display screen of the second electronic device, payment can be completed simply by the first electronic device approaching the display screen of the second electronic device, thereby improving payment efficiency.
[0124] A tenth aspect provides a content sharing method, characterized in that it is applied to a second electronic device including a display screen. The method includes: the display screen of the second electronic device displays target information, the target information indicating that a verification code received by a first electronic device is input into the second electronic device to complete verification; the second electronic device determines that the first electronic device is close to the display screen based on the capacitance parameters of the display screen; and the second electronic device receives the verification code from the first electronic device based on a communication connection between the first and second electronic devices. Optionally, the second electronic device can automatically complete verification while receiving the verification code from the first electronic device. Thus, when the second electronic device needs to input a verification code, the verification code can be input into the second electronic device by bringing the first electronic device close to the display screen of the second electronic device, improving the convenience and efficiency of verification code input.
[0125] Eleventhly, a content sharing method is provided, characterized in that it is applied to a first electronic device, the method comprising: in response to the first electronic device approaching the display screen of a second electronic device, based on the communication connection between the first electronic device and the second electronic device, the first electronic device sending a verification code to the second electronic device, the verification code being a verification code input to the second electronic device by target information displayed on the display screen of the second electronic device.
[0126] In a twelfth aspect, a content sharing method is provided, characterized in that it is applied to a second electronic device including a display screen. The method includes: the display screen of the second electronic device displays target information, the target information indicating that the second electronic device requires authentication from a first electronic device; the second electronic device determines that the first electronic device is close to the display screen based on the capacitance parameters of the display screen; based on the communication connection between the first electronic device and the second electronic device, the second electronic device receives authentication information from the first electronic device, the authentication information being used to complete authentication of the second electronic device. Optionally, the target information can also be used to indicate that the second electronic device requires authentication from the first electronic device to perform a target function. Thus, when the second electronic device requires authentication from the first electronic device, authentication of the second electronic device can be completed by the first electronic device being close to the display screen of the second electronic device, improving authentication efficiency.
[0127] In a thirteenth aspect, a content sharing method is provided, characterized in that it is applied to a first electronic device, the method comprising: when a target information is displayed on the screen of a second electronic device, the target information indicating that the second electronic device requires authentication by the first electronic device, in response to the first electronic device approaching the screen of the second electronic device, based on the communication connection between the first electronic device and the second electronic device, the first electronic device sending authentication information to the second electronic device, the authentication information being used to complete the authentication of the second electronic device.
[0128] In a fourteenth aspect, an electronic device is provided, which has the function of implementing the method as described in any of the designs of any of the preceding aspects. This function can be implemented by hardware or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the described function.
[0129] In a fifteenth aspect, an electronic device is provided, comprising: a processor, a memory, a display screen, and a communication interface, wherein the memory, the display screen, and the communication interface are coupled to the processor, the communication interface is used for communicating with other devices, the memory is used to store program code including instructions, and the processor reads the instructions from the memory to cause the electronic device to perform the method described in any of the designs of any of the preceding aspects. Optionally, the memory may be coupled to the processor or may be independent of the memory. Exemplarily, the communication interface may be a transceiver, an input / output interface, an interface circuit, an output circuit, an input circuit, a pin, or related circuitry, etc. The display screen can be used by the electronic device to perform display operations.
[0130] In a sixteenth aspect, a computer-readable storage medium is provided, the computer-readable storage medium including a computer program that, when run on an electronic device, causes the electronic device to perform the method as described in any of the preceding aspects.
[0131] In a seventeenth aspect, a computer program product is provided, the computer program product comprising: a computer program or instructions that, when run on a computer, cause the computer to perform the method as designed in any of the preceding aspects.
[0132] Eighteenth aspect, a chip system is provided, including at least one processor and at least one interface circuit, the at least one interface circuit being used to perform transceiver functions and send instructions to at least one processor, wherein when at least one processor executes instructions, at least one processor performs the method as described in any of the designs in any of the preceding aspects.
[0133] In a nineteenth aspect, a communication system is provided, including a first electronic device and a second electronic device, wherein the first electronic device is configured to perform a method performed by the first electronic device as described in any of the preceding aspects, and the second electronic device is configured to perform a method performed by the second electronic device as described in any of the preceding aspects and any of the preceding aspects.
[0134] The technical effects of the aforementioned aspects can be referenced from each other, and will not be elaborated further here. Attached Figure Description
[0135] Figure 1 is a schematic diagram of a content sharing scenario provided by an embodiment of this application;
[0136] Figure 2 is a schematic diagram of an interface for selecting a content receiving end provided in an embodiment of this application;
[0137] Figure 3 is a schematic diagram of the architecture of a communication system provided in an embodiment of this application;
[0138] Figure 4 is a schematic diagram of the structure of an electronic device provided in an embodiment of this application;
[0139] Figure 5 is a structural schematic diagram of an electronic device touch screen provided in an embodiment of this application;
[0140] Figure 6 is a schematic diagram of a scenario where a first electronic device is close to the display screen of a second electronic device, according to an embodiment of this application.
[0141] Figure 7 is a schematic diagram of a method for determining that a first electronic device is close to the display screen of a second electronic device according to an embodiment of this application;
[0142] Figure 8A is a schematic diagram of a handheld scenario where a first electronic device is close to the display screen of a second electronic device, according to an embodiment of this application.
[0143] Figure 8B is a schematic diagram of determining whether a second electronic device is in a handheld scenario according to an embodiment of this application;
[0144] Figure 8C is a schematic diagram of the second electronic device being brought close to an embodiment of this application.
[0145] Figure 8D is a schematic diagram of a touch IC mode switching scenario provided in an embodiment of this application;
[0146] Figure 8E is a schematic diagram of a capacitance value change scenario provided in an embodiment of this application;
[0147] Figure 8F is a flowchart illustrating a detection method provided in an embodiment of this application;
[0148] Figures 9 to 26e are schematic diagrams of application scenarios for sharing different content between the first electronic device and the second electronic device provided in the embodiments of this application;
[0149] Figure 27 is a schematic diagram of an interface for setting up a file sharing terminal according to an embodiment of this application;
[0150] Figures 28 and 29 are schematic diagrams of a scenario in which the first electronic device provided in the embodiments of this application serves as the control device for the second electronic device;
[0151] Figure 30a is a schematic flowchart of a content sharing method provided in an embodiment of this application;
[0152] Figure 30b is a schematic diagram of a payment scenario provided in an embodiment of this application;
[0153] Figure 30c is a schematic diagram of a scenario for inputting a verification code provided in an embodiment of this application;
[0154] Figure 30d is a schematic diagram of a device authentication scenario provided by an embodiment of this application;
[0155] Figure 31 is a schematic diagram of the structure of another electronic device provided in an embodiment of this application;
[0156] Figure 32 is a schematic diagram of the structure of a chip system provided in an embodiment of this application. Detailed Implementation
[0157] In the description of this application, unless otherwise stated, " / " indicates that the objects before and after are in an "or" relationship. For example, A / B can mean A or B. "And / or" in this application is merely a description of the relationship between the related 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. A and B can be singular or plural.
[0158] In the description of this application, unless otherwise stated, "multiple" means two or more. "At least one of the following" or similar expressions refer to any combination of these items, including any combination of single or multiple items. For example, at least one of a, b, or c can mean: a, b, c, a and b, a and c, b and c, a and b and c, where a, b, and c can be single or multiple.
[0159] Furthermore, to facilitate a clear description of the technical solutions in the embodiments of this application, the terms "first" and "second" are used in the embodiments of this application to distinguish identical or similar items with substantially the same function and effect. Those skilled in the art will understand that the terms "first" and "second" do not limit the quantity or execution order, and the terms "first" and "second" are not necessarily different.
[0160] Cross-device content sharing refers to sharing content from one electronic device to another. Some cross-device sharing solutions, such as sharing via social networking services (SNS) groups, multi-screen collaboration, and Bluetooth, may require one or more cumbersome steps to complete the cross-device sharing process.
[0161] Taking a file as an example, step 1 is required: find the file to be shared in the file manager. For example, taking a computer as the sender, the user needs to open the computer's file manager first. In response to this operation, as shown in Figure 1 (1), the computer displays the running interface 100 of the file manager. The running interface 100 contains multiple files (such as abc, Poc, etc.) stored under different storage paths (such as desktop, documents, folder 1, etc.). The user needs to find the file to be shared from the multiple files stored under the corresponding path. In this way, the user needs to find the file to be shared from many files, which is quite time-consuming and laborious. Taking document 1 contained in the running interface 100 as an example, step 2 is required: open a specific interface and trigger the file sharing function from it. For example, the user needs to open document 1. In response to this operation, as shown in Figure 1 (2), the computer presents the opening interface 110 of document 1. Then the user can call up the sharing control in the opening interface 110 of document 1 to trigger the file sharing function. If a user performs an operation such as clicking the file button 111, in response to that operation, as shown in interface 120 in Figure 1 (3), the computer can display a save button, a print button, a share button 121, etc. If a user performs an operation such as clicking the share button 121, in response to that operation, as shown in Figure 1 (4), the computer can display one or more sharing methods, such as sharing with others, email, online presentation, etc., to share document 1. In this way, the user needs to control the electronic device through multiple interface jumps to trigger the sharing function, which is quite time-consuming and laborious.
[0162] In some scenarios, an electronic device acting as a file sender may simultaneously connect to multiple electronic devices that can act as file receivers. In such cases, step 3, selecting the file receiver from the device list, is also required. For example, taking a mobile phone as the sender, the phone can display a device list 200 as shown in Figure 2. This list contains identifiers for multiple electronic devices, from which the user can select the file receiver. However, this requires the user to select the receiver from a device list containing electronic device identifiers. This necessitates the user knowing which electronic device each identifier corresponds to, and the identifiers for the receivers may change periodically, making it time-consuming and laborious.
[0163] Based on this, this application provides a content sharing method. By bringing electronic device A close to the display screen of electronic device B, content on electronic device A can be shared to electronic device B, or content on electronic device B can be shared to electronic device A. Electronic devices A and B can be any different electronic devices equipped with a display screen. This eliminates the need for complex interface navigation to access the content sharing function and for selecting a content receiving device from a list of electronic devices, simplifying the operations required for cross-device content sharing and making it more convenient and faster. The technical solution provided in this application can be applied to various content sharing scenarios. For example, the content may include, but is not limited to, one or more of files, services, and application interfaces.
[0164] For example, Figure 3 shows a schematic diagram of the architecture of a communication system for a content sharing method application provided in an embodiment of this application. As shown in Figure 3, the communication system 300 includes a first electronic device 301 and a second electronic device 302.
[0165] In some embodiments, the first electronic device 301 can act as a content sender, sending content to the second electronic device 302. The second electronic device 302 can act as a content receiver, receiving content from the first electronic device 301. In other embodiments, the second electronic device 302 can act as a content sender, sending content to the first electronic device 301. The first electronic device 301 can act as a content receiver, receiving content from the second electronic device 302. That is, in the embodiments of this application, either the first electronic device 301 or the second electronic device 302 can act as either a content sender or a content receiver.
[0166] For example, the first electronic device 301 or the second electronic device 302 may include, but is not limited to, mobile phones, tablets, desktop computers, laptops, handheld computers, notebook computers, ultra-mobile personal computers (UMPCs), netbooks, and various electronic devices equipped with displays, such as personal digital assistants (PDAs), augmented reality (AR) devices, virtual reality (VR) devices, artificial intelligence (AI) devices, wearable devices, in-vehicle devices, smart home devices, and / or smart city devices. Optionally, the first electronic device 301 and the second electronic device 302 may be fixed devices or portable devices. The first electronic device 301 and the second electronic device 302 may be the same type of electronic device or different types of electronic devices.
[0167] Optionally, the operating system installed on the first electronic device 301 or the second electronic device 302 may include, but is not limited to, the following: Or other operating systems.
[0168] Optionally, the first electronic device 301 and the second electronic device 302 can establish a connection through wired communication technology or wireless communication technology. For example, wireless communication technology may include, but is not limited to, Bluetooth (BT) (e.g., classic Bluetooth or Bluetooth Low Energy (BLE) Bluetooth), Sparklink (e.g., classic Sparklink or Sparklink Low Energy (SLE)), near field communication (NFC), wireless local area networks (WLAN) (e.g., wireless fidelity (Wi-Fi) networks), Zigbee, frequency modulation (FM), infrared (IR), etc.
[0169] For example, Figure 4 shows a schematic diagram of the structure of an electronic device provided in an embodiment of this application. This electronic device can be either the first electronic device 301 or the second electronic device 302 described above. As shown in Figure 4, the electronic device 400 may include a processor 110, a memory 120, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, antenna 1, antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a sensor module 180, buttons 190, a camera 191, a display screen 192, etc.
[0170] Processor 110 may include one or more processing units, such as application processor (AP), modem processor, graphics processing unit (GPU), image signal processor (ISP), controller, video codec, digital signal processor (DSP), baseband processor, and / or neural network processing unit (NPU). These different processing units may be independent devices or integrated into one or more processors.
[0171] The controller can generate operation control signals based on the instruction opcode and timing signals to complete the control of instruction fetching and execution.
[0172] The processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. This memory can store instructions or data that the processor 110 has just used or that are used repeatedly. If the processor 110 needs to use the instruction or data again, it can retrieve it directly from the memory. This avoids repeated accesses, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0173] In some embodiments, processor 110 may include one or more interfaces, such as USB interface 130.
[0174] The charging management module 140 receives charging input from the charger. While charging the battery 142, the charging management module 140 can also supply power to the electronic device through the power management module 141.
[0175] The power management module 141 is used to connect the battery 142, the charging management module 140, and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140 to power the processor 110, memory 120, display 192, and wireless communication module 160, etc.
[0176] The wireless communication function of the electronic device 400 can be implemented through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor, and baseband processor.
[0177] Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 400 can be used to cover one or more communication frequency bands. Different antennas can also be reused to improve antenna utilization.
[0178] The mobile communication module 150 can provide wireless communication solutions, including 2G / 3G / 4G / 5G, for use in electronic devices 400.
[0179] The wireless communication module 160 can provide solutions for wireless communication applications on electronic devices 400, including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), Starflash, global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), and infrared (IR) technologies.
[0180] In some embodiments, antenna 1 of electronic device 400 is coupled to mobile communication module 150, and antenna 2 is coupled to wireless communication module 160, enabling electronic device 400 to communicate with networks and other devices via wireless communication technology. The wireless communication technology may include Global System for Mobile Communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Time-Division Code Division Multiple Access (TD-SCDMA), Long Term Evolution (LTE), BT, Starflash, GNSS, WLAN, NFC, FM, and / or IR technologies, etc.
[0181] In some embodiments of this application, taking electronic device 400 as a first electronic device 301 as an example, when the first electronic device 301 is a content sender, the wireless communication module 160 can be used by electronic device 400 to send content to second electronic device 302. When the first electronic device 301 is a content receiver, the wireless communication module 160 can be used by electronic device 400 to receive content shared from second electronic device 302. Similarly, taking electronic device 400 as a second electronic device 302 as an example, when the second electronic device 302 is a content sender, the wireless communication module 160 can be used by electronic device 400 to send content to first electronic device 301. When the second electronic device 302 is a content receiver, the wireless communication module 160 can be used by electronic device 400 to receive content shared from first electronic device 301.
[0182] Electronic device 400 implements display functions through a GPU, display screen 192, and application processor. The GPU is a microprocessor for image processing, connected to the display screen 192 and the application processor. The GPU is used to perform mathematical and geometric calculations and for graphics rendering. Processor 110 may include one or more GPUs, which execute program instructions to generate or modify display information.
[0183] The display screen 192 is used to display images, videos, etc. The display screen 192 includes a display panel. In some embodiments, the electronic device 400 may include one or N display screens 192, where N is a positive integer greater than 1. Optionally, the display screen 192 can be various types of touch screens, such as capacitive touch screens, infrared touch screens, and acoustic wave touch screens. In some embodiments of this application, the display screen 192 can be used to determine whether other electronic devices are near the electronic device 400. As one possible implementation, when other electronic devices approach the display screen 192 of the electronic device 400, the detection parameters corresponding to the display screen 192 may change, thereby determining that other electronic devices are near the display screen 192 of the electronic device 400. For example, if the display screen 192 is a capacitive touch screen, the detection parameters corresponding to the display screen 192 may include capacitance, voltage, current, etc. If the display screen 192 is an infrared touch screen, the detection parameters corresponding to the display screen 192 may include infrared signals. If the display screen 192 is an acoustic wave touch screen, the detection parameters corresponding to the display screen 192 may include ultrasonic signals, etc.
[0184] Electronic device 400 can perform shooting functions through ISP, camera 191, video codec, GPU, display 192 and application processor.
[0185] Camera 191 is used to capture still images or videos. In some embodiments, electronic device 400 may include one or N cameras 191, where N is a positive integer greater than 1. In some embodiments of this application, camera 191 may be used to acquire images of the surroundings of electronic device 400 to determine whether electronic device 400 is near a display screen with other electronic devices, or to determine whether there are other electronic devices near a display screen with electronic device 400.
[0186] The memory 120 can be used to store computer executable program code, which includes instructions. The memory 120 may include a program storage area and a data storage area. The program storage area may store the operating system, applications required for at least one function, etc. The data storage area may store data created during the use of the electronic device 400, etc. Furthermore, the memory 120 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, universal flash storage (UFS), etc. The processor 110 executes various functional applications and data processing of the electronic device 400 by running instructions stored in the memory 120 and / or instructions stored in memory disposed in the processor.
[0187] In some embodiments of this application, the memory 120 may also be used to store a preset model, which can be used to determine whether an object near the display screen of the electronic device 400 is an electronic device. A description of this preset model is provided below.
[0188] Electronic device 400 can implement audio functions through audio module 170 and application processor, such as music playback and recording.
[0189] The audio module 170 is used to convert digital audio information into analog audio signals for output, and also to convert analog audio input into digital audio signals. The audio module 170 can also be used for encoding and decoding audio signals. In some embodiments, the audio module 170 may be located in the processor 110, or some functional modules of the audio module 170 may be located in the processor 110.
[0190] The sensor module 180 may include one or more sensors that can be used by the electronic device 400 to determine whether a display screen of another electronic device is nearby, or to determine whether another electronic device is nearby. For example, these one or more sensors may include one or more of a pressure sensor 180A, a gyroscope sensor 180B, an accelerometer sensor 180C, etc.
[0191] Pressure sensor 180A is used to sense pressure signals and convert them into electrical signals. In some embodiments, pressure sensor 180A may be disposed on display screen 192; in other embodiments, pressure sensor 180A may also be disposed in other locations, such as the frame of electronic device 400. In some embodiments of this application, pressure sensor 180A can be used to detect whether pressure is applied to electronic device 400 to determine whether a scenario of handheld electronic device 400 is occurring.
[0192] The gyroscope sensor 180B can be used to determine the motion attitude of the electronic device 400. In some embodiments, the gyroscope sensor 180B can determine the angular velocity of the electronic device 400 about three axes (i.e., the x, y, and z axes). The accelerometer sensor 180C can detect the magnitude of the acceleration of the electronic device 400 in various directions (generally three axes). In some embodiments of this application, the gyroscope sensor 180B and the accelerometer sensor 180C can be used to detect whether the electronic device 400 is in motion, and thus to determine whether the electronic device 400 is near a display screen containing other electronic devices.
[0193] It is understood that the sensor shown in Figure 4 is only an illustrative example. In actual applications, electronic device 400 may include more or fewer sensors or different types of sensors to sense whether electronic device 400 is near a display screen with other electronic devices, or whether there are other electronic devices near the display screen with electronic device 400.
[0194] Buttons 190 include a power button, volume buttons, etc. Buttons 190 can be mechanical buttons or touch-sensitive buttons. Electronic device 400 can receive button input and generate key signal inputs related to user settings and function control of electronic device 400.
[0195] It is understood that the structure illustrated in Figure 4 does not constitute a specific limitation on the first electronic device 301 or the second electronic device 302. In other embodiments of this application, the first electronic device 301 or the second electronic device 302 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0196] The technical solutions involved in the following embodiments can all be implemented in the device with the structure shown in FIG4 and the system with the architecture shown in FIG3. The technical solutions of the embodiments of this application will be described below using first electronic device 301 as the first electronic device and second electronic device 302 as the second electronic device.
[0197] In some embodiments, a first electronic device can be placed close to the display screen of a second electronic device to share content from the first electronic device to the second electronic device, or vice versa. In this embodiment, the second electronic device can be any electronic device equipped with a display screen. In other embodiments, the second electronic device can be placed close to the display screen of the first electronic device to share content from the first electronic device to the second electronic device, or vice versa. In this embodiment, the first electronic device can be any electronic device equipped with a display screen. The following description uses the example of the first electronic device being close to the display screen of the second electronic device; similar implementations can be referenced for the implementation of the second electronic device being close to the display screen of the first electronic device.
[0198] The proximity in the embodiments of this application may include non-contact proximity and / or contact proximity (i.e., touching).
[0199] It is understood that in the embodiments of this application, the proximity of the first electronic device to the display screen of the second electronic device can refer to the distance between the first electronic device and the display screen of the second electronic device meeting a preset distance range. For example, the preset distance range can be less than or equal to a preset distance threshold, etc.
[0200] In this embodiment of the application, the proximity of the first electronic device to the display screen of the second electronic device may include a situation where the first electronic device and the display screen of the second electronic device are so close (e.g., 1-2 mm) that they touch. In this case, the proximity of the first electronic device to the display screen of the second electronic device can also be described as the first electronic device touching the display screen of the second electronic device.
[0201] Optionally, in some embodiments, content sharing between the first and second electronic devices is only possible when the duration of the first electronic device touching the display screen of the second electronic device is greater than or equal to a preset duration. For example, the preset duration could be 500ms. The preset duration can be set by the developers based on empirical values.
[0202] In other embodiments, content sharing between the first and second electronic devices is only possible when the effective contact area between the displays of the first and second electronic devices is greater than or equal to a preset area. Optionally, the effective area can be determined by at least one of the following: the included angle between the first and second electronic devices, the contact area, etc.
[0203] In some other embodiments, when the first electronic device is in contact with the display screen of the second electronic device, the edge of the first electronic device cannot extend beyond the edge of the display screen of the second electronic device in order for content sharing to occur between the first electronic device and the second electronic device.
[0204] Optionally, the solutions in the three embodiments described above can be used individually or in combination. The solutions in the three embodiments described above can improve the accuracy of content sharing.
[0205] In some embodiments, when a first electronic device approaches the display screen of a second electronic device, the detection parameters corresponding to the display screen change, thereby allowing the second electronic device to determine that an electronic device (such as the first electronic device) is approaching its own display screen. In this embodiment, as a specific implementation, taking a capacitive touchscreen as the display screen of the second electronic device and capacitance as the detection parameter corresponding to the display screen, the process by which the second electronic device determines the presence of an electronic device with its own display screen will be described.
[0206] A capacitive touchscreen may include one or more capacitor modules. When a charged conductor, such as a first electronic device, approaches the display screen of a second electronic device, the capacitance value of these capacitor modules changes (e.g., increases or decreases). This allows the second electronic device to determine that the first electronic device is approaching its display screen. In some embodiments, these capacitor modules may be distributed across different areas of the capacitive touchscreen. When a charged conductor, such as a first electronic device, approaches a certain area of the display screen of the second electronic device, the capacitance value of the capacitor module located in the corresponding area changes. This allows the second electronic device to determine which area of its display screen the first electronic device is approaching. In other words, in this embodiment, the second electronic device can not only determine whether the first electronic device is approaching its display screen, but also which area of its display screen the first electronic device is approaching.
[0207] Optionally, one or more of the aforementioned capacitor modules can be composed of horizontally arranged electrode arrays and vertically arranged electrode arrays. In some implementations, as shown in Figure 5, two sets of electrodes (such as horizontal electrode 501 and vertical electrode 502) form a capacitor 503 at their intersection. That is, a horizontally arranged electrode and the vertically arranged electrode that intersects with it each form the two poles of a capacitor, thus forming a capacitor module. When the first electronic device approaches the display screen of the second electronic device, it affects the coupling between the two electrodes near the proximity position, thereby changing the capacitance between these two electrodes and causing the capacitance value to change, which in turn changes the capacitance value of the capacitor module near the proximity position. When detecting the capacitance value, the horizontally arranged electrodes can sequentially emit excitation signals, and all the vertically arranged electrodes simultaneously receive signals. In this way, the capacitance values of all intersection points (such as capacitor 503) on the display screen can be obtained, that is, the capacitance value of each capacitor module can be obtained.
[0208] Of course, in other implementations, horizontally arranged electrodes and vertically arranged electrodes can also form capacitors with ground, that is, form a capacitor module. Alternatively, the capacitance value of all the capacitors to ground on the display screen can be obtained by detecting the capacitance between the electrodes and ground, that is, the capacitance value of each capacitor module can be obtained.
[0209] Optionally, the aforementioned horizontally arranged electrode array and vertically arranged electrode array can be achieved by etching different ITO conductive circuit modules on two different nano-indium tin oxide (ITO) conductive glass coatings, with the etched patterns on the two modules being perpendicular to each other.
[0210] In other embodiments, the above-mentioned one or more capacitor modules may also be configured in other ways or have other arrangements, and this application embodiment does not impose specific limitations on this.
[0211] In some embodiments, since the change in capacitance of the display screen of the second electronic device caused by the first electronic device approaching the display screen of the second electronic device is relatively slight, in order to improve the accuracy of the second electronic device in determining that the first electronic device is approaching its display screen and reduce the judgment error, the second electronic device can use time-domain aggregation to determine whether the capacitance of the display screen has changed. The time-domain aggregation method refers to the second electronic device detecting the capacitance value of the display screen within a preset time period. When it is determined that the capacitance value of the display screen meets a preset condition within the preset time period, it is determined that the capacitance of the display screen has changed, and thus it can be determined that the first electronic device is approaching the display screen of the second electronic device. For example, in this embodiment, the preset condition may include the amount of capacitance change being greater than or equal to a preset change threshold. Optionally, the amount of change may include, for example, the difference between the average value of the capacitance values detected over a period of time and a preset capacitance value. Optionally, the amount of change may also include, for example, the difference between the average value of the capacitance values of a certain area of the display screen of the second electronic device 302 detected over a period of time and a preset capacitance value. The preset capacitance value is, for example, a pre-configured reference capacitance value. The reference capacitance value may be the average value measured in the history of the capacitive touch screen of the second electronic device 302 when no other conductor has been approached.
[0212] Similarly, to improve the accuracy of the second electronic device in determining which area of its own display screen the first electronic device is approaching and to reduce judgment errors, the second electronic device can use a combination of spatial and temporal aggregation to determine whether the capacitance of the display screen has changed. This combination of spatial and temporal aggregation means that the second electronic device detects the capacitance value of a certain area on the display screen. This area can be the area approached by the first electronic device, i.e., the area where the capacitance value changes slightly. When the capacitance value of this area meets a preset condition within a preset time period, it is determined that the capacitance of the display screen has changed, and thus it can be determined which area of its own display screen the first electronic device is approaching. As shown in Figure 6, when the first electronic device 301 approaches area 1 on the display screen of the second electronic device 302, the second electronic device 302 detects a slight change in the capacitance value in area 1. Optionally, area 1 may include one or more capacitor modules as described above. The capacitance value of area 1 can be determined based on the capacitance value of each of these capacitor modules, such as the mean, median, or other numerical values of these capacitor modules. Then, it detects whether the capacitance value of region 1 within a preset time period meets the preset conditions. When the preset conditions are met, the second electronic device 302 can determine that there is region 1 on the display screen of the first electronic device 301 near the second electronic device.
[0213] In the above embodiments, the display screen of the second electronic device is a capacitive screen, and the detection parameter (or described as detection data) is the capacitance. In other embodiments, the detection parameter can also be the parameter converted from capacitance, such as current, voltage, etc.
[0214] Similarly, when the display screen of the second electronic device is implemented as other types of screens, such as infrared touch screens or acoustic touch screens, it is also possible to determine whether the first electronic device is close to the display screen of the second electronic device by detecting whether the detection parameters corresponding to the display screen change.
[0215] It is understood that in the embodiments of this application, the first electronic device has a characteristic that can cause the detection parameters corresponding to the display screen to change, such as conductivity. That is to say, only when an object with this characteristic approaches the display screen of the second electronic device can the detection parameters corresponding to the display screen change. Conversely, when an object without this characteristic approaches the second electronic device, the detection parameters corresponding to the display screen will not change.
[0216] In some embodiments, objects other than electronic devices may also have characteristics that can cause changes in the detection parameters corresponding to the display screen. Taking capacitance as an example, when a human body part such as a finger approaches the display screen of the second electronic device, the capacitance value of the display screen of the second electronic device may also change. Therefore, to facilitate the second electronic device in identifying whether the object approaching its display screen is an electronic device or a finger, in some embodiments, the second electronic device can input the detected capacitance data of the display screen into a preset model, and output the recognition result through the preset model. Optionally, in the embodiments of this application, the preset model can be various deep learning models or machine learning models. For example, as shown in FIG7, the capacitance data of the display screen can be a capacitance value distribution map 701 on the entire display screen, and each capacitance value included in the capacitance value distribution map 701 is sequentially the capacitance value corresponding to each capacitance module included in the display screen. It can be understood that the capacitance value distribution map 701 uses patterns to represent the capacitance value size, and different patterns represent different capacitance values, such as the patterns "×", " / ", "\", and "√" representing different capacitance values. It can also be understood that when the second electronic device adopts the time-domain aggregation, spatial-domain aggregation, or other methods as described above, each capacitance value included in the capacitance value distribution diagram 701 can be obtained by accumulating the capacitance values of the same capacitance modules detected by the second electronic device within a preset time period.
[0217] The capacitance value distribution map 701 can be input into a preset model 702, and the preset model 702 will output a recognition result 703. The recognition result 703 can be something like an electronic device approaching a display screen, or a finger approaching a display screen. Of course, in other examples, the capacitance data of the aforementioned display screen can also be a capacitance value distribution map corresponding to the approach area on the display screen, etc.
[0218] In the above embodiments, the determination of whether a first electronic device is near a display screen containing a second electronic device is based on detection parameters corresponding to the display screen of the second electronic device. In other embodiments, the first and second electronic devices can also determine whether the first electronic device is near a second electronic device through other means. For example, the first or second electronic device can detect ultrasonic signals, near-field communication signals, or other types of wireless signals emitted by the other end to determine whether the first electronic device is near a second electronic device. In this embodiment, when it is determined that the first electronic device is near the second electronic device, the first and second electronic devices can also execute the content sharing scheme described in the following embodiments, such as sharing application interfaces, files, services, etc., without conflict.
[0219] When the second electronic device detects that the first electronic device is near its display screen using the above method, it begins to establish a network connection with the first electronic device. In some embodiments, the first and second electronic devices can establish a connection through near-field communication (NFC) technology, which may include, but is not limited to, Bluetooth, or satellite communication. As one possible implementation, the second electronic device can periodically send broadcast messages to the outside world. These broadcast messages may carry information identifying the second electronic device, such as its name, identifier, and address. Correspondingly, the first electronic device can listen for these broadcast messages, and when it detects a broadcast message from the second electronic device, it can establish a communication connection with it.
[0220] For example, after the second electronic device detects the approach of the first electronic device, it sends an instruction message to the first electronic device to trigger the establishment of a short-range communication connection with the first electronic device.
[0221] In some embodiments, since other electronic devices may be simultaneously broadcasting messages around the first electronic device, and these broadcast messages may have different purposes—for example, the broadcast message from the second electronic device may be for content sharing, while the broadcast messages from other electronic devices may be for audio connection or other purposes—the broadcast messages sent by the second electronic device may carry a specific identifier to help the first electronic device identify which broadcast messages are for content sharing. This specific identifier can be used to characterize that the broadcast message is for content sharing.
[0222] In some scenarios, as shown in Figure 8A, when the first electronic device 301 is near the display screen of the second electronic device 302, other electronic devices besides the first electronic device 301, such as electronic device 303, may be placed around the second electronic device 302. These other electronic devices can also listen to the broadcast messages of the second electronic device. In order to facilitate an electronic device to determine whether to establish a communication connection with the second electronic device after listening to the broadcast message of the second electronic device, the first electronic device can also establish a communication connection with the second electronic device only when it is determined that it is near the display screen of the second electronic device. Conversely, it will not establish a communication connection with the second electronic device when it is determined that it is not near the display screen of the second electronic device. This can ensure that the electronic device that establishes a communication connection with the second electronic device is the electronic device that is near the display screen of the second electronic device, and not other electronic devices such as electronic device 303 placed next to the second electronic device. In the above example, the electronic device started listening to the broadcast message before the second electronic device started broadcasting. In other embodiments, the electronic device may not have started listening to the broadcast message before the second electronic device started broadcasting. Therefore, in order to facilitate an electronic device, such as the first electronic device, to determine when to start listening to the broadcast message of the second electronic device, the first electronic device may also start listening to (or describe as acquiring) the broadcast message of the second electronic device when it determines that it is close to the display screen of the second electronic device.
[0223] For example, as shown in Figure 8A, when the first electronic device is near the display screen of the second electronic device, the first electronic device may be in a handheld scenario. In this case, the first electronic device can establish a communication connection with the second electronic device after listening to the broadcast message of the second electronic device, once it is determined that it is in a handheld scenario. In other words, other electronic devices placed around the second electronic device, once it is determined that they are not in a handheld scenario, may not perform the operation of listening to the broadcast message of the second electronic device, or may perform the operation of listening to the broadcast message of the second electronic device but not perform the operation of establishing a communication connection with the second electronic device.
[0224] For example, when the first electronic device is held in a handheld scenario, a finger may touch the display screen, causing changes in the corresponding detection parameters. The first electronic device can then determine whether it is in a handheld scenario by checking for changes in these display parameters. For an explanation of the display detection parameters, please refer to the description of detection parameters above. Alternatively, the first electronic device can also determine whether it is in a handheld scenario by capturing surrounding images using a camera. Furthermore, when the first electronic device is held in a handheld scenario, its posture may change. The first electronic device can determine whether it is in a handheld scenario by detecting the posture using gyroscope sensors, accelerometers, etc. Finally, when the first electronic device is held in a handheld scenario, a finger may apply force to it. The first electronic device can determine whether it is in a handheld scenario by detecting pressure using pressure sensors, etc. Optionally, the solutions described in the foregoing examples can be used individually or in combination.
[0225] Accordingly, once the first electronic device and the second electronic device establish a connection in the manner described above, content sharing can be performed based on the established communication connection. The following section, with reference to the accompanying drawings, introduces application scenarios for content sharing between the first and second electronic devices.
[0226] Optionally, in the above embodiments, the communication connection between the first and second electronic devices is established after the second electronic device detects that the first electronic device is near the display screen containing the second electronic device. In other embodiments, the communication connection between the first and second electronic devices may be established before the first electronic device is near the display screen containing the second electronic device. When the second electronic device detects that the first electronic device is near the display screen containing the second electronic device, the first and second electronic devices do not need to establish a communication connection again, but can directly share content.
[0227] Optionally, in the above embodiments, taking the second electronic device sending a broadcast message to the outside world as an example, in other embodiments, the first electronic device can also send a broadcast message to the outside world, such as sending a Bluetooth broadcast message. In some examples, the first electronic device determines that it is in a "moving hover state," which indicates that it is in a handheld scenario, so the first electronic device can send a Bluetooth broadcast message. Typically, when a user holds the first electronic device to share content with other electronic devices, the first electronic device, upon determining that it is in a handheld scenario, can obtain information about the user's potential content sharing needs, and thus can send a Bluetooth broadcast message. Optionally, the "moving hover state" includes, for example, the state where the first electronic device has stopped after moving, such as when a user holds the first electronic device close to the display screen of the second electronic device and stops; currently, the first electronic device is in a "moving hover state," and the user may have a content sharing need.
[0228] In some examples, the first electronic device can determine whether it is in a handheld scenario based on the example methods described above. The following example illustrates the process by which the first electronic device determines whether it is in a handheld scenario based on data detected by its own sensors.
[0229] For example, as a user holds a first electronic device and approaches another electronic device, the first electronic device may change from a stationary state to a moving state and then back to a stationary state. During this process, the acceleration or deceleration detected by the accelerometer of the first electronic device may exceed a certain threshold. Optionally, the first electronic device obtains its linear acceleration magnitude and angular velocity magnitude from the detection data of the accelerometer. If the linear acceleration magnitude is greater than the acceleration threshold and the angular velocity magnitude is greater than the angular velocity threshold, the first electronic device can determine that it is currently in motion.
[0230] Optionally, during this process, the first electronic device may undergo certain displacements in various directions in space. Therefore, by determining the displacement of the first electronic device in the spatial coordinate system, it can be determined whether the first electronic device is in a handheld scenario. For example, as shown in Figure 8B(a), the top of the first electronic device 301 moves a distance greater than a distance threshold 1 (e.g., 5 cm) along the y-axis, and / or, as shown in Figure 8B(b), the first electronic device 301 moves a distance greater than a distance threshold 2 (e.g., 5 cm) along the z-axis. In response to the aforementioned displacement conditions, the first electronic device 301 can be determined to be in a handheld scenario. Optionally, the first electronic device 301 can obtain the speed and distance of its movement along the coordinate axes through linear acceleration integration.
[0231] Optionally, during this process, the first electronic device 301 may undergo attitude changes such as rotation (or tilting). Therefore, by determining the rotation angle of the first electronic device in the spatial coordinate system, it can be determined whether the first electronic device is in a handheld scenario. For example, as shown in Figure 8B(c), the first electronic device 301 obtains, through the detection data of the gyroscope sensor, that its rotation angle around the x-axis is greater than an angle threshold (e.g., 15 degrees). Therefore, the first electronic device can determine that it is in a handheld scenario. Optionally, during the attitude determination process of the first electronic device, the first electronic device can obtain the angles between the x, y, and z axes and the horizontal plane through gravity calculation, and can obtain the angle of rotation of the first electronic device along the three axes through angular velocity integration.
[0232] Optionally, the first electronic device determines whether it is in a handheld scenario by judging at least one of acceleration, displacement, and rotation angle.
[0233] Optionally, the handheld scene detection process of the first electronic device can also be implemented using an inertial measurement unit (IMU), which includes a gyroscope sensor and an accelerometer sensor. In some embodiments, after the second electronic device 302 and the first electronic device 301 establish a short-range communication connection, they can share content based on this short-range communication connection. Optionally, this content sharing may include, for example, the sharing of application interfaces, files, services, etc.
[0234] Optionally, after content sharing is completed, the second electronic device 302 and the first electronic device 301 can disconnect the short-range communication connection used to transmit the shared content. Optionally, after the short-range communication connection is disconnected, the second electronic device 302 can re-trigger the establishment of a short-range communication connection with the first electronic device 301 to share other content by judging the capacitance value, etc.
[0235] For example, after the second electronic device 302 sends shared content to the first electronic device 301 via a short-range communication connection, it can send an indication message to the first electronic device 301. This indication message can be sent separately or along with the last shared content sent. Based on this indication message, the first electronic device 301 can determine that the current content has been shared and can disconnect the short-range communication connection with the second electronic device 302.
[0236] As described above, the second electronic device 302 can obtain the proximity event of other electronic devices (such as the first electronic device 301) and the location (or area) of the first electronic device 301 near the display screen by detecting the capacitance value on the display screen.
[0237] In some embodiments, the second electronic device 302 includes a display screen and a processor. Optionally, the display screen is a touch screen, such as including a touch integrated circuit (IC). Optionally, the processor includes, for example, an application processor (AP) core. In some examples, the AP core acquires detection data, such as capacitance values, from the touch IC at a certain frequency. Then, the second electronic device 302 can obtain the proximity event, proximity area, etc. of the first electronic device 301 based on the acquired detection data through the AP core.
[0238] In some embodiments, the touch IC is configured with a detection data reporting frequency, and the touch IC reports detection data to the AP core according to the detection data reporting frequency. Optionally, the AP core in the second electronic device 302 can send indication information to the touch IC, which is used to indicate the detection data reporting frequency.
[0239] In some embodiments, different modes of the touch IC correspond to different detection data reporting frequencies. Optionally, the touch IC modes include an idle mode and an active mode. Specifically, when the touch IC is in idle mode, it reports detection data to the AP core at a lower frequency. When the touch IC is in active mode, it reports detection data to the AP core at a higher frequency.
[0240] Alternatively, the AP can also indicate the operating mode to the touch IC through the indication information, so as to trigger the touch IC to report the detection data to the AP core according to the reporting frequency corresponding to the indicated operating mode.
[0241] For example, when the touch IC is in Idle mode, the AP core reads the capacitance value of the display screen from the touch IC at a frequency of 1 Hz. When the touch IC is in Active mode, the AP core reads the capacitance value of the display screen from the touch IC at a frequency of 120Hz-180Hz.
[0242] In some embodiments, the AP core combines temporal and spatial aggregation to obtain information such as the presence and location of a nearby conductor based on detection data from multiple frames of images within a preset time period. If the AP core reads detection data from the touch IC at a low frequency, it may result in a slow proximity sensing response and low recall and accuracy. Conversely, if the AP core reads detection data from the touch IC at a higher frequency, while improving the proximity sensing response speed, recall, and accuracy, the higher frequency increases device power consumption, making it unsuitable for the AP core to maintain this high frequency for extended periods.
[0243] Optionally, recall indicates the proportion of frames correctly identifying a conductor's proximity to the actual number of frames with a conductor nearby, used to measure the sensitivity of proximity sensing. Precision indicates the proportion of frames correctly identifying a conductor's proximity to the actual number of frames with a conductor nearby, used to measure the false touch rate of proximity sensing. The algorithm in question is used to determine proximity events and proximity locations based on detection data.
[0244] Therefore, the detection method provided in this application proposes a semi-Idle mode, which is between Idle mode and Active mode. Optionally, when the touch IC is in semi-Idle mode, the touch IC uses a detection data reporting frequency between the detection data reporting frequencies corresponding to Idle mode and Active mode to report detection data to the AP core, thereby achieving a balance between response speed, recall rate, accuracy, and other parameters that are close to the response judgment effect and power consumption.
[0245] It should be understood that the semi-Idle mode can also be described as the semi-Active mode, or other names, and the embodiments of this application do not limit this.
[0246] Alternatively, the mode of the touch IC can also be understood as the mode of the touch panel (TP) where the touch IC is located.
[0247] Optionally, the touch IC can switch the reporting frequency of detection data after mode switching. For example, in some examples, after the AP core instructs the touch IC to switch modes, the touch IC reports detection data to the AP core at the frequency corresponding to the new mode. In other examples, after the AP core instructs the touch IC to switch modes, it reads detection data at the frequency corresponding to the new mode.
[0248] Optionally, the AP core sends bit information to the touch IC via the bus, indicating the reporting frequency of the touch IC's capacitance data. For example, 00 represents the reporting frequency corresponding to Idle mode, 01 represents the reporting frequency corresponding to half-Idle mode, and 10 represents the reporting frequency corresponding to Active mode. Different reporting frequencies correspond to different touch IC modes. Alternatively, the AP core sends bit information to the touch IC via the bus, indicating the touch IC's mode. For example, 00 represents Idle mode, half-Idle mode, and 10 represents Active mode. Different modes correspond to different detection data reporting frequencies.
[0249] Optionally, as mentioned above, when the touch IC is in Idle mode, the detection data reporting frequency of the touch IC (e.g., frequency 1) is 1Hz; when the touch IC is in Active mode, the detection data reporting frequency of the touch IC (e.g., frequency 3) is a frequency between 120Hz and 180Hz. Therefore, when the touch IC is in semi-Idle mode, the detection data reporting frequency of the touch IC (e.g., frequency 2) can be a frequency between 1Hz and 120Hz.
[0250] For example, when the touch IC is in half-Idle mode, the capacitance data reporting frequency of the touch IC is greater than or equal to 5Hz and less than or equal to 50Hz.
[0251] For example, when the touch IC is in half-Idle mode, the capacitance data reporting frequency of the touch IC is greater than or equal to 20Hz and less than or equal to 25Hz.
[0252] For example, when the touch IC is in half-Idle mode, the capacitance data reporting frequency of the touch IC is 20Hz or 21Hz. Optionally, this application embodiment does not limit the specific value of the touch IC's detection data reporting frequency when the touch IC is in Idle mode, half-Idle mode, or Active mode. However, the detection data reporting frequency of the touch IC in half-Idle mode is greater than that in Idle mode, and less than that in Active mode.
[0253] Optionally, the touch IC mode and the detection data reporting frequency can also be decoupled. The AP core, responding to different trigger events, can instruct the touch IC to report detection data to the AP core at the corresponding detection data reporting frequency, without needing to instruct the touch IC mode. Optionally, trigger events may include events such as whether the user needs to perform collaborative work between different devices, proximity events, touch events, etc., which will be described in detail below.
[0254] In some embodiments, the second electronic device 302, upon obtaining information about a preset scenario, determines that the current user has a need for collaborative work between different devices. Optionally, the event requiring collaborative work includes, for example, an event where different devices need to share content. The preset scenario includes, for example, a scenario where the user instructs the launch of a target application. For example, the target application includes a file management application, a gallery application, a document application, etc. Optionally, the file management application is, for example, a native local application used to manage files on the second electronic device 302. The gallery application is used to manage images, videos, etc., on the second electronic device 302. The document application is used to launch files of a preset type, such as Word files, PDF files, Excel files, PPT files, etc. Optionally, the document application can be a native local application or a third-party application.
[0255] For example, when no other device is near the second electronic device 302, the touch IC in the second electronic device 302 reports detection data to the AP core at a lower detection data reporting frequency. For instance, if the touch IC is currently in Idle mode, it reports detection data to the AP core at a frequency of 1Hz to save power. Subsequently, if the second electronic device 302 detects a user instruction to launch a file management application and realizes that the user may need to perform collaborative work between different devices, the user may bring another electronic device (such as the first electronic device 301) near the second electronic device 302. In response, the second electronic device 302 can increase the detection data reporting frequency, thereby improving the values of metrics such as proximity sensing response speed, recall, and accuracy. For example, if the touch IC switches to half-Idle mode, it reports detection data to the AP core at a frequency between 5Hz and 20Hz, improving the aforementioned metrics without wasting more power.
[0256] In some embodiments, the preset scenario may further include a scenario where the second electronic device 302 acquires a Bluetooth signal sent by the first electronic device 301.
[0257] In some examples, the first electronic device 301 detects its own movement and enters a stopped state, which can trigger the transmission of a Bluetooth signal. Optionally, the first electronic device 301 transmits the Bluetooth signal via broadcast. Optionally, the first electronic device 301 obtains its own state changes through sensor detection data. For example, the first electronic device 301 obtains state changes such as movement and stopping after movement through an IMU. In an example scenario, a user holds the first electronic device 301 close to the second electronic device 302 and then stops at a certain position in front of the display screen of the second electronic device 302 to meet the user's content sharing needs. Then, the first electronic device 301 can determine whether the user has a content sharing need by determining whether it has entered a stopped state after movement. If it determines that it has entered a stopped state after movement, the first electronic device 301 can transmit a Bluetooth signal via broadcast to inform the approaching device that there is a content sharing need. It should be understood that the first electronic device 301 can also trigger the content sharing scenario by sending other types of signals. Optionally, the first electronic device 301 entering a stopped state after movement can also be described as the first electronic device 301 entering a hovering state.
[0258] Correspondingly, after receiving the Bluetooth signal sent by the first electronic device 301 via broadcast, the second electronic device 302 can determine that the current scenario meets the preset scenario and trigger the touch IC of the second electronic device 302 to switch from Idle mode to half-Idle mode. In half-Idle mode, the capacitance value of the display screen is obtained through a higher data reading frequency, thereby determining whether there is a real proximity event of the first electronic device 301.
[0259] Optionally, the Bluetooth signal broadcast by the first electronic device 301 carries relevant information about the first electronic device 301. For example, this information may include account information, device identifier, etc. Optionally, after receiving the Bluetooth signal, the second electronic device 302 determines whether to switch from Idle mode to half-Idle mode based on the relevant information carried within it. For example, if the second electronic device 302 determines that it and the first electronic device 301 are logged into the same account based on this information, it can trigger the touch IC to switch from Idle mode to half-Idle mode. A user may have multiple devices that can log into the same account. Therefore, proximity between devices logged into the same account may require content sharing. Thus, if the second electronic device 302 determines that the currently received Bluetooth signal is sent by an electronic device logged into the same account, it can trigger the touch IC to switch modes, so that the proximity of the first electronic device 301 can be determined subsequently through capacitance values read at a higher frequency.
[0260] In other examples, after receiving a Bluetooth signal, the second electronic device 302 detects that the user has launched the target application. In this case, the second electronic device 302 can trigger the touch IC to switch from Idle mode to half-Idle mode. Alternatively, after detecting that the user has launched the target application, the second electronic device also receives a Bluetooth signal. In this case, the second electronic device 302 can trigger the touch IC to switch from Idle mode to half-Idle mode. That is, the above-mentioned preset scenarios include detecting the launch event of the target application and / or receiving a Bluetooth signal.
[0261] In some embodiments, the preset scenario may further include a scenario where the second electronic device 302 displays an always-on display (such as an AOD interface). For example, during the process of the second electronic device 302 displaying an always-on display, in response to the user's touch operation (or hover operation) on the display screen, the elements displayed on the always-on display can change according to the movement of the user's finger (or stylus) to achieve a responsive effect. Therefore, to improve the quality of the responsiveness, after the second electronic device 302 detects that it has switched to displaying an always-on display, it can trigger the touch IC to switch from Idle mode to semi-Idle mode, thereby increasing the frequency at which the touch IC reports the capacitance value of the display screen. This allows the second electronic device 302 to more accurately determine the proximity of the finger and, consequently, the position of the user's finger, thus improving the responsiveness.
[0262] In some embodiments, after increasing the detection data reporting frequency, the AP core in the touch IC of the second electronic device 302 can more accurately determine whether other electronic devices are approaching based on the acquired detection data. Optionally, the second electronic device 302 obtains the detection data based on the detection data and finds that the detection data meets a preset condition. Then, in response to the satisfaction of the preset condition, the second electronic device 302 determines that it has acquired the proximity event of the first electronic device 301. Then, the touch IC in the second electronic device 302 can further improve the detection data reporting efficiency, thereby further improving the values of measurement parameters such as proximity perception response speed, recall rate, and accuracy. This makes it easier for the second electronic device 302 to obtain the authenticity of the proximity event and the proximity position of the first electronic device 301.
[0263] Optionally, the preset conditions may include, for example, that the change in the detected data exceeds a preset threshold. For instance, the AP core in the second electronic device 302 processes the detected data read at frequency 2 using temporal and spatial aggregation methods, and obtains that the change in the detected data exceeds a preset threshold. Then, the AP core can determine that the preset conditions are met, and that an event occurs where the first electronic device 301 is nearby.
[0264] For example, as shown in Figure 8C, the first electronic device 301 is located at position A, which is far from the second electronic device 302. In response to a user's instruction to launch a gallery application, the second electronic device 302 can determine that it is currently in a preset scenario and that the user is likely to share an image from the gallery application. Then, as shown in Figure 8D, the second electronic device 302 can instruct the touch IC to switch from Idle mode to half-Idle mode, thereby increasing the frequency of the touch IC's detection data reporting. Subsequently, the first electronic device 301 moves from position A to position B. The AP core in the second electronic device 302, based on changes in the read detection data (such as capacitance value), determines that the current preset conditions are met, thereby identifying a proximity event of the first electronic device 301. Then, as shown in Figure 8D, the second electronic device 302 can instruct the touch IC to switch from half-Idle mode to Active mode, further increasing the frequency of the touch IC's detection data reporting. In this way, the AP core can obtain information such as whether the first electronic device 301 is truly close and its proximity location based on the read detection data. When the touch IC switches to Active mode, the AP core can also achieve more accurate temporal and spatial aggregation processing based on the detection data acquired at a higher frequency.
[0265] Optionally, during the temporal and spatial aggregation processes, the second electronic device 302 can determine the first region approached by the first electronic device 301 by checking whether the change in capacitance value within a preset time period is greater than or equal to a preset threshold. For example, the second electronic device 302 acquires a capacitance value distribution map and scans the map with a preset shape to obtain regions within the preset shape whose average capacitance value is greater than or equal to a preset threshold, and identifies these regions as the first region. Optionally, the second electronic device 302 acquires the coordinates of the first region for subsequent content sharing.
[0266] For example, if the length and width of the capacitance value distribution map are 74 mm and 49 mm respectively, the second electronic device 302 scans the entire capacitance value distribution map using a 3 mm * 15 mm rectangular frame. As shown in Figure 8E(a), during the scanning process, if the average capacitance value within the rectangular frame 71 is greater than a preset threshold, the second electronic device 302 can determine that the area within the rectangular frame 71 is the first region.
[0267] It should be understood that the capacitance value distribution diagram and rectangles of the above dimensions are merely illustrative examples, and the embodiments of this application do not impose any limitations on them.
[0268] As mentioned above, if the capacitance value is greater than or equal to a preset threshold, a conductor may be nearby. Therefore, by scanning a capacitance value distribution map with a preset shape, if the average capacitance value within the first region corresponding to the preset shape is greater than or equal to the preset threshold, it can be determined that a conductor is near that first region. This avoids the influence of sporadic capacitance value changes caused by interference on the determination of the first region. In other words, if multiple capacitance values within a region are greater than or equal to the preset threshold, the second electronic device 302 identifies the first region.
[0269] Subsequently, the second electronic device 302 can trigger the establishment of a short-range communication connection with the first electronic device 301 as the first electronic device 301 approaches, enabling collaborative work, such as content sharing.
[0270] It can be seen that, compared to the prior art, the second electronic device 302 can only increase the detection data reporting frequency after determining that a touch event has occurred. The detection method provided in this application embodiment, under the condition of satisfying a preset scenario, can increase the detection data reporting frequency from frequency 1 to frequency 2, thereby more accurately determining the proximity event (or touch event) of the first electronic device 301. Thus, after the first electronic device 301 approaches, the detection data reporting frequency can be further increased from frequency 2 to frequency 3, without necessarily waiting until the first electronic device 301 touches the display screen of the second electronic device 302 before increasing the detection data reporting frequency from frequency 1 to frequency 3, thereby improving the efficiency of obtaining the proximity position of the first electronic device 301.
[0271] It should be understood that in this embodiment, the first electronic device 301 increases the reporting frequency of detection data after determining that the second electronic device 302 is approaching. This approach includes scenarios where the distance between the second electronic device 302 and the first electronic device 301 decreases until it reaches zero. For example, the approach event may also include a touch event.
[0272] In this way, by increasing the frequency of detection data reporting in stages, a balance can be achieved between parameters that measure the effectiveness of response judgment, such as response speed, recall, and accuracy, and power consumption.
[0273] Furthermore, enabling collaboration between different devices without relying on NFC modules can reduce device hardware costs and simplify user operation.
[0274] In some embodiments, with the development of terminal charging technology, electronic devices are generally equipped with wireless charging coils to realize the wireless charging function of the electronic devices. Optionally, the wireless charging coil can transmit high-power signals.
[0275] In some embodiments, when the first electronic device 301 determines that it is currently in a preset sharing scenario, it can transmit a high-power signal via the wireless charging coil. Optionally, the preset sharing scenario includes, for example, the first electronic device 301 entering a stopped state after detecting its own movement. In this preset sharing scenario, there is a possibility that the first electronic device 301 may collaborate with other electronic devices, potentially triggering content sharing. Optionally, the high-power signal may include, for example, a signal with a power value greater than a preset power threshold. It should be understood that the first electronic device 301 can also transmit this high-power signal via other modules. Optionally, the preset power threshold is, for example, a power value between 70kHz and 110Hz.
[0276] Optionally, the first electronic device 301 acquires information about its movement and subsequent stop state via an IMU. For example, the first electronic device 301 acquires its attitude change based on parameters detected by a gyroscope sensor; and it acquires its movement speed change based on parameters detected by an accelerometer sensor. Therefore, the first electronic device 301 can determine whether it has stopped after movement, such as entering a hovering state, based on the detection data reported by the IMU. The implementation of the movement and hovering state determination of the first electronic device 301 can be found in the relevant embodiments described above.
[0277] Optionally, the first electronic device 301 (or the second electronic device 302) can also obtain the proximity action of other devices through other modules. For example, the first electronic device 301 can obtain the proximity action of the first electronic device 301 to the second electronic device 302 through the Bluetooth ranging function of the Bluetooth module.
[0278] Optionally, the first electronic device 301 transmits the high-power signal at a preset frequency.
[0279] In some embodiments, the high-power signal sent by the first electronic device 301 may interfere with the detection data of the second electronic device 302. Optionally, as described above, the second electronic device 302 may increase the detection data reporting frequency when it determines that a preset condition is met, such as instructing the touch IC to switch from half-Idle mode to Active mode. Therefore, if the first electronic device 301 triggers the transmission of a high-frequency signal after detecting a proximity action, the preset condition for the second electronic device 302 to determine the proximity event may also include detecting this high-power signal.
[0280] Optionally, the second electronic device 302 can determine whether the high-power signal exists based on the interference of the detection data, or it can directly detect the high-power signal.
[0281] For example, a high-power signal sent by the first electronic device 301 at a preset frequency can cause regular interference to the detection data of the second electronic device 302. As described above in Figure 7, the capacitance value of the display screen of the second electronic device 302 can form a capacitance value distribution map 401 on the entire display screen. Different patterns in the capacitance value distribution map 401 can represent different capacitance values. In some examples, after the capacitance value of the display screen of the second electronic device 302 is regularly interfered with by the interference signal, the arrangement of some capacitance values in the capacitance value distribution map 401 may conform to a preset rule. For example, if the capacitance value change of a capacitor module is greater than a preset threshold, the pattern corresponding to that capacitor module in the capacitance value distribution map 401 is the first pattern. If the arrangement of the first pattern in the capacitance value distribution map 401 conforms to the preset rule, the second electronic device 302 can obtain the interference signal currently detected by other electronic devices. Then, the second electronic device 302 can instruct the touch IC to switch from half-Idle mode to Active mode.
[0282] Optionally, different preset rules correspond to different power and frequency interference signals. Developers can then obtain these preset rules in advance through experiments, select appropriate interference signals and preset rules, and configure the parameters of the interference signal (such as power value and transmission frequency) and the corresponding preset rules into the electronic device. Subsequently, the first electronic device 301 sends an interference signal according to the pre-configured parameters, and the second electronic device 302, upon obtaining the first pattern in the capacitance value distribution diagram, confirms that the arrangement conforms to the preset rules, thus identifying the interference signals currently detected from other electronic devices and determining that other devices are approaching.
[0283] For example, as shown in Figure 8E(b), the second electronic device 302 acquires a capacitance value distribution map. In this capacitance value distribution map, the second electronic device 302 uses a first pattern " / " to indicate capacitance values where the capacitance value change is greater than a preset threshold. For example, the preset rule is that the arrangement conforms to a hollow cross shape. Optionally, the lengths of the horizontal and vertical lines of this cross shape can be different or the same. As shown by reference numeral 72, the second electronic device 302 acquires that the arrangement of the first pattern conforms to the preset rule. Then, the second electronic device 302 can acquire the interference signals currently detected by other electronic devices.
[0284] Thus, the first electronic device 301 triggers the second electronic device 302 to detect the regular changes in the capacitance value of the display screen by the interference signal, thereby improving the accuracy of the judgment of the proximity of the first electronic device 301.
[0285] For example, the second electronic device 302 may have a preset power threshold. When the second electronic device 302 receives a high-power signal exceeding the preset power threshold, it can determine that the first electronic device 301 has approached.
[0286] Thus, compared to simply relying on detection data to determine whether the first electronic device 301 is approaching, the second electronic device 302 determines whether the first electronic device 301 is approaching by using interference signals actively sent by the first electronic device 301, thereby improving the accuracy and recall rate of the second electronic device 302 in determining whether the first electronic device 301 is approaching the display screen.
[0287] Furthermore, the second electronic device 302 can directly detect the approach of the first electronic device 301 based on the interference signal sent by the first electronic device 301, and it is no longer necessary to determine whether the approaching conductor is an electronic device or a user's finger through the method shown in Figure 7, thus reducing the computational difficulty for the second electronic device 302.
[0288] The previous section described the forward process of the touch IC switching from Idle mode to half-Idle mode, and then from half-Idle mode to Active mode. The following section will describe in detail the reverse switching process between each mode.
[0289] In some embodiments, in response to meeting preset conditions, the AP core in the second electronic device 302 increases the detection data reporting frequency of the touch IC from frequency 2 to frequency 3. Optionally, increasing the detection data reporting frequency to frequency 3 is used to more accurately obtain the position of the first electronic device 301 near the display screen of the second electronic device 302, thereby obtaining the first area corresponding to that position. For example, after a short-range communication connection is established, the second electronic device 302 can share the first content displayed in the first area with the first electronic device 301; or, the second electronic device 302 can receive the content shared by the first electronic device 301 and display the obtained shared content in the first area.
[0290] Optionally, after content sharing is completed, the AP core in the second electronic device 302 can reduce the frequency of detection data reporting by the touch IC.
[0291] For example, after content sharing is completed, the second electronic device 302 still maintains the display interface of the target application in the foreground. Therefore, the second electronic device 302 still has the potential to share other content. Based on this, the AP core's frequency of reporting the touch IC's detection data can be reduced from frequency 3 to frequency 2. For example, as shown in Figure 8D, the second electronic device 302 instructs the touch IC to switch from Active mode to semi-Idle mode. After the mode switch, the touch IC reports detection data to the AP core at frequency 2. In this way, the AP core can also obtain the proximity of the first electronic device 301 through detection data acquired at a relatively high frequency, thereby enabling subsequent content sharing without wasting power due to excessively high detection data reporting frequency.
[0292] Optionally, the foreground display of the target application's interface includes the target application's window as the focus window.
[0293] Thus, when there is a possibility of content sharing, the second electronic device 302 instructs the touch IC to switch to half-Idle mode, which ensures a certain response speed, recall rate, and accuracy while avoiding excessive power consumption.
[0294] For example, after content sharing is completed, the second electronic device 302 does not display the target application's interface in the foreground. Therefore, the second electronic device 302 may not have the possibility of continuing content sharing. Based on this, the frequency of the AP core triggering the touch IC to report detection data can be reduced from frequency 3 to frequency 1. For example, as shown in Figure 8D, the second electronic device 302 instructs the touch IC to switch from Active mode to Idle mode, and the corresponding touch IC reports detection data to the AP core at frequency 1 after the mode switch. In this way, the AP core obtains detection data at a lower frequency, reducing power consumption when the possibility of content sharing is low.
[0295] Optionally, the display interface of the target application not being displayed in the foreground includes closing the target application window, exiting the target application to the background, or the target application window losing focus.
[0296] For example, during content sharing, the second electronic device 302 runs the target application process in the background. Therefore, if the second electronic device 302 does not display the target application's interface in the foreground after content sharing ends, it can be determined that the user does not need to continue sharing content. In this case, the second electronic device 302 can instruct the AP core to acquire detection data at a lower frequency.
[0297] Optionally, during content sharing, the second electronic device 302 runs the target application process in the background. Before or after content sharing ends, the second electronic device 302 displays the target application's interface in the foreground based on user input. In this case, the AP core in the second electronic device 302 can maintain frequency 3 to acquire detection data, facilitating the determination of areas where subsequent content sharing is needed.
[0298] Thus, in the absence of any possibility of content sharing, the second electronic device 302 instructs the touch IC to switch to Idle mode to avoid excessive power consumption.
[0299] In some embodiments, in response to a preset scenario, the AP core in the second electronic device 302 instructs the touch IC to increase the detection data reporting frequency from frequency 1 to frequency 2. Optionally, increasing the detection data reporting frequency to frequency 2 is used to more accurately acquire the proximity event of the first electronic device 301. However, after the user triggers the target application, content sharing may not be necessary, so a higher detection data reporting frequency may result in wasted power consumption. Therefore, the AP core in the second electronic device 302 can then instruct the touch IC to reduce the detection data reporting frequency from frequency 2 back to frequency 1, thereby effectively reducing power consumption. Optionally, the second electronic device 302 can acquire events where the user does not need to share content based on user operations, the display duration of the target application interface, and other judgment conditions.
[0300] For example, as shown in Figure 8D, after the second electronic device 302 displays the display interface of the target application, it instructs the touch IC to switch from Idle mode to half-Idle mode. Correspondingly, the touch IC increases the detection data reporting frequency from frequency 1 to frequency 2. Subsequently, if the second electronic device 302 detects an editing operation by the user on the display interface of the target application, it indicates that the current user's request is to edit the displayed content, rather than share it. Therefore, the second electronic device 302 can instruct the touch IC to switch from half-Idle mode back to Idle mode, and the touch IC correspondingly decreases the detection data reporting frequency from frequency 2 back to frequency 1.
[0301] Optionally, if the second electronic device 302 detects that the user has finished editing, but still displays the target application's interface in the foreground, it indicates that the user may need to share content. For example, the user may need to share the edited content. In this case, the second electronic device 302 can instruct the touch IC to switch from Idle mode to half-Idle mode, and the touch IC will increase the detection data reporting frequency from frequency 1 to frequency 2.
[0302] For example, as shown in Figure 8D, after the second electronic device 302 displays the target application's interface, it instructs the touch IC to switch from Idle mode to half-Idle mode. Correspondingly, the touch IC increases its detection data reporting frequency from frequency 1 to frequency 2. Subsequently, after a preset time, the AP core reads that the touch IC, based on the detection data reported at frequency 2, still has not detected the proximity event of the first electronic device 301. Therefore, the second electronic device 302 can determine that the current user may not have a need for content sharing. Thus, the second electronic device 302 can instruct the touch IC to switch back from half-Idle mode to Idle mode, and the touch IC reduces its detection data reporting frequency from frequency 2 back to frequency 1.
[0303] Thus, the second electronic device 302 can flexibly adjust the mode of the touch IC and the frequency of detection data reporting according to user needs, thereby achieving a more flexible balance between response speed, recall rate, accuracy and other parameters that are close to the response judgment effect and power consumption.
[0304] The above describes the switching process of the touch IC between Idle mode, half-Idle mode, and Active mode. In some examples, the touch IC can meet the usage requirements after switching from Idle mode to half-Idle mode, so it is not necessary to perform the subsequent steps related to switching to Active mode, such as not needing to perform the detection of the first area that is close.
[0305] For example, when a user enters a vehicle carrying a first electronic device 301 (such as a mobile phone), a second electronic device 302 (such as an in-vehicle terminal) can detect the first electronic device 301. Specifically, the first electronic device 301 detects that the user has launched a navigation application and is approaching the display screen of the second electronic device 302. In response to the approach of the first electronic device 301, the second electronic device 302 can display the navigation application interface. This scenario is a vehicle-mounted system flow scenario. It should be understood that the above example uses the flow of a navigation application as an example to illustrate a vehicle-mounted system flow scenario and does not impose limitations on this scenario. Optionally, in a vehicle-mounted system flow scenario, the second electronic device 302 also needs to determine the approach of the first electronic device 301 to achieve the flow display of the application currently displayed by the first electronic device 301. Based on the foregoing descriptions of the touch IC mode switching in the various embodiments, when the second electronic device 302 detects the presence of other electronic devices with the same account within its communication range, it can trigger the touch IC to switch from Idle mode to half-Idle mode. This allows it to use higher frequency capacitance values to determine whether the electronic device with the same account is near the display screen of the second electronic device 302, thereby determining whether the current situation is a vehicle-mounted infotainment system scenario. For example, after the second electronic device 302 detects the proximity of the first electronic device 301, it can determine that it is currently in a vehicle-mounted infotainment system scenario and can directly trigger collaborative work with the first electronic device 301. Optionally, after determining that the second electronic device 302 is in a vehicle-mounted infotainment system scenario, the second electronic device 302 may not instruct the touch IC to switch from half-Idle mode to Active mode. Optionally, after determining that the second electronic device 302 is in a vehicle-mounted infotainment system scenario, the second electronic device 302 may instruct the touch IC to switch from half-Idle mode to Idle mode.
[0306] In this way, in various scenarios, the reporting frequency can be flexibly adjusted by adjusting the capacitance value, thereby achieving more efficient and accurate collaborative work.
[0307] Figure 8F is a schematic flowchart of a detection method provided in an embodiment of this application. It should be noted that this method is not limited to the specific order described in Figure 8F and below. It should be understood that in other embodiments, the order of some steps in this method can be interchanged according to actual needs, or some steps can be omitted or deleted. The method includes the following steps:
[0308] S801, The second electronic device determines that the first event has occurred.
[0309] In some embodiments, the first event includes a first launch event of a first application in the second electronic device. Optionally, the first application is a system-preset target application or a user-specified target application; and / or, the first application includes one or more of the following: a file management application, a gallery application, and a document application.
[0310] In some examples, the second electronic device is pre-configured with the first application, or the second electronic device acquires the first application based on user actions.
[0311] For example, if a second electronic device detects the first launch event of a user launching a first application, it can determine that the user has a need for collaborative work between different devices. Then, the second electronic device can perform the following steps to trigger the acquisition of detection data and determine if other devices are nearby for collaborative work. For instance, if the user instructs the second electronic device to launch a gallery application, the second electronic device may need to share photos with other electronic devices through the gallery application.
[0312] In other examples, the first event also includes: the presence of other electronic devices logged into the same account as the second electronic device within the short-range communication range of the second electronic device.
[0313] For example, a second electronic device periodically sends short-range broadcast messages (such as Bluetooth broadcast messages), which carry the account the second electronic device is logged into. Other devices receiving these broadcast messages return response messages, carrying their own logged-in account in these response messages. If the second electronic device receives a response message carrying the account it is logged into, it determines that there are other devices (such as the first electronic device) within a preset range that may be cooperating. Subsequently, the second electronic device maintains its discovery status with these other devices through heartbeat packets.
[0314] Optionally, the process by which the second electronic device determines that the first event has occurred can refer to the process by which the second electronic device determines whether a preset scenario is met in the various embodiments described above. For example, in response to determining the first event, the second electronic device determines that it is currently in a preset scenario and needs to trigger a subsequent determination of whether other devices are approaching.
[0315] S802. Upon determining that the first event has occurred, the second electronic device acquires the detection data of the display screen of the second electronic device at a first frequency.
[0316] The detection data is capacitance data.
[0317] In some embodiments, the display screen is a capacitive touch screen, which includes a touch IC. Acquiring detection data of the display screen of the second electronic device at a first frequency includes: a processor (such as an AP core) acquiring the detection data reported by the touch IC at the first frequency.
[0318] In some embodiments, the touch IC reports detection data to the AP core according to the corresponding reporting frequency in different modes. Optionally, each time the frequency of acquiring detection data needs to be switched, the processor instructs the display screen (specifically, the touch IC in the display screen) to switch the frequency of reporting detection data. Since there is a one-to-one correspondence between the operating mode and the frequency, the processor can specifically switch the reporting frequency of detection data by instructing the display screen to switch operating modes.
[0319] For example, in response to the occurrence of the first event, the AP core instructs the touch IC to switch to half-Idle mode. Then, the touch IC reports the detection data to the AP core according to the first frequency corresponding to half-Idle mode.
[0320] In some examples, the first frequency is greater than or equal to 5 Hz and less than or equal to 50 Hz. In other examples, the first frequency is greater than or equal to 20 Hz and less than or equal to 25 Hz. In still other examples, the first frequency is 20 Hz or 21 Hz.
[0321] In some embodiments, before determining that the first event has occurred, the second electronic device acquires the detection data of the display screen at a third frequency, wherein the first frequency is greater than the third frequency.
[0322] For example, the AP core instructs the touch IC to be in Idle mode, and the touch IC reports detection data to the AP core at the third frequency corresponding to Idle mode. During this process, in response to the occurrence of the first event, the AP core instructs the touch IC to switch to half-Idle mode. Then, the touch IC reports detection data to the AP core at the first frequency corresponding to half-Idle mode. That is, in response to the first event, the second electronic device increases the detection data reporting frequency of the touch IC.
[0323] S803. The second electronic device determines the first electronic device or other conductor that is close to the second electronic device based on the detection data acquired at the first frequency.
[0324] In some embodiments, if the detection data acquired at the first frequency meets a first condition, the second electronic device determines that the first electronic device or other conductor is close to the second electronic device. The first condition includes at least one of the following: the change in the detection data acquired at the first frequency is greater than a preset threshold; the arrangement of the detection data exceeding the preset threshold in the detection data acquired at the first frequency conforms to a preset rule.
[0325] In some examples, the second electronic device is equipped with a capacitive touchscreen, which includes multiple capacitor modules. The second electronic device can acquire the capacitance values of the multiple capacitor modules and generate a corresponding capacitance value distribution map. For example, the size of the capacitance value distribution map is the same as the size of the capacitive touchscreen. Optionally, the second electronic device is pre-configured with reference capacitance values for the capacitor modules. Then, after acquiring the capacitance value of each capacitor module, the second electronic device can compare it with the reference capacitance value to determine whether the difference is greater than or equal to a preset threshold. If the capacitance value difference is greater than or equal to the preset threshold, there is a possibility that a conductor is approaching the corresponding capacitor module.
[0326] Optionally, the reference capacitance value may be the average value measured historically when no other conductors were near the capacitive touchscreen of the second electronic device.
[0327] For example, the second electronic device can scan the entire capacitance value distribution map by a preset shape. At a certain moment, the capacitance value of the capacitor modules within the preset shape is greater than or equal to a preset threshold, or at a certain moment, the average capacitance value of the capacitor modules within the preset shape is greater than or equal to a preset threshold. In this case, it can be determined that the first electronic device or other conductor currently present near the second electronic device can be identified.
[0328] For example, as shown in Figure 8E(b), the second electronic device acquires a capacitance value distribution map. In this map, the second electronic device uses a first pattern " / " to indicate capacitance values where the change in capacitance value exceeds a preset threshold. For example, the preset pattern is an arrangement of hollow crosses. As shown by reference numeral 72, the second electronic device acquires a first pattern arrangement that conforms to the preset pattern. Therefore, the second electronic device can detect the proximity of other electronic devices.
[0329] In this way, by increasing the frequency of reporting detection data, the second electronic device can improve the accuracy and recall of determining whether the first electronic device or other conductors are near the display screen.
[0330] In some embodiments, the first electronic device determines that a third event has occurred. Upon determining that the third event has occurred, the first electronic device transmits a first signal at a preset frequency. The power of the first signal is greater than or equal to a power threshold, and this first signal is used to interfere with the detection data of the display screen of the second electronic device. The third event includes: the first electronic device performing a preset action, the preset action being an action indicating that the first electronic device is moving closer to the display screen of another electronic device.
[0331] Optionally, the first electronic device transmits a first signal at a preset frequency via target hardware. Optionally, the target hardware is a wireless charging coil. For example, the first electronic device transmits a high-power interference signal (such as the first signal) at a preset frequency via the wireless charging coil. Optionally, the first signal is used by a second electronic device to determine the proximity of the first electronic device based on detection data from the display screen of the second electronic device interfered with by the first signal.
[0332] In some examples, the preset action is specifically a movement that starts from rest, moves in a preset direction, and then stops. The preset direction includes: the direction from the top of the first electronic device to the display screen of the second electronic device.
[0333] In some examples, the acceleration of the preset action from rest to movement exceeds a first threshold, and / or the deceleration of the preset action from movement to stop exceeds a second threshold.
[0334] For example, as a user holds a first electronic device and approaches another electronic device, the first electronic device may change from a stationary state to a moving state and then back to a stationary state. During this process, the acceleration or deceleration detected by the accelerometer of the first electronic device may exceed a certain threshold. Optionally, the first electronic device obtains its linear acceleration magnitude and angular velocity magnitude from the detection data of the accelerometer. If the linear acceleration magnitude is greater than the acceleration threshold and the angular velocity magnitude is greater than the angular velocity threshold, the first electronic device can determine that it is currently in motion.
[0335] For example, as shown in Figure 8B(a), the top of the first electronic device moves a distance greater than a distance threshold 1 (e.g., 5 cm) along the y-axis, and / or, as shown in Figure 8B(b), the first electronic device moves a distance greater than a distance threshold 2 (e.g., 5 cm) along the z-axis. In response to the aforementioned displacement conditions, the first electronic device can determine that it is in a handheld scenario.
[0336] Thus, by combining its own movement status and distance traveled, the first electronic device can determine whether it is in a "hovering state." When the first electronic device is in a "hovering state," it may be in a handheld scenario. In this state, there may be a need to share content. Therefore, the first electronic device can send a first signal to trigger a nearby, potentially second, electronic device to share the content.
[0337] Correspondingly, compared to judging the proximity of other devices or conductors by changes in capacitance, the second electronic device can improve the accuracy of detection by detecting interference signals.
[0338] In some embodiments, the third event further includes detecting the presence of other electronic devices logged into the same account as the first electronic device within short-range communication range of the first electronic device.
[0339] Optionally, as described above, the second electronic device sends a broadcast message carrying its login account. The first electronic device can then receive this broadcast message and determine whether the second electronic device's account matches its own. If they match, the first electronic device triggers the first signal based on the hovering condition.
[0340] In this way, the first electronic device will trigger the transmission of the first signal only when it determines that there are other electronic devices with the same account nearby, thereby improving the accuracy of the first signal transmission.
[0341] S804. The second electronic device initiates cooperative operation between the second electronic device and the first electronic device, or initiates cooperative operation between the second electronic device and other conductors.
[0342] Optionally, collaborative work may include, for example, content sharing between devices.
[0343] In some embodiments, initiating collaborative work between the second electronic device and the first electronic device includes: the second electronic device sharing first content displayed on a first area to the first electronic device; or, displaying second content shared by the first electronic device on the first area.
[0344] In some examples, the collaboration between the first electronic device and the second electronic device is based on the first region.
[0345] In some examples, the first or second content is shared via a short-range communication connection.
[0346] In some examples, a second electronic device establishes a short-range communication connection with the first electronic device before sharing the first or second content.
[0347] For example, the first application is a gallery application. When the second electronic device detects the approach of the first electronic device, the detection module reports this proximity event to the gallery application. Optionally, the detection module may be located at the kernel layer. In response to the proximity event, the gallery application broadcasts a short-range connection establishment request. Correspondingly, the first electronic device in a "moving hover state" can receive this short-range connection establishment request. The first electronic device may also be the electronic device that sent the first signal. In response to the connection establishment request, the first electronic device can reply with a response message to the second electronic device. Then, the gallery application in the second electronic device can trigger the establishment of a short-range communication connection between the second and first electronic devices based on this response message.
[0348] Thus, by acquiring detection data, the second electronic device can detect the proximity of the first electronic device to trigger collaborative operation. Compared to existing technologies that rely on NFC functionality for collaborative operation, the detection method provided in this application effectively reduces the user's operational difficulty during proximity detection, such as eliminating the need for the user to align the NFC modules of both devices. Furthermore, the electronic device does not need to have an NFC module installed, reducing hardware costs.
[0349] In some embodiments, after determining that a first electronic device or other conductor is near the second electronic device, the second electronic device acquires refreshed display detection data at a second frequency, which is greater than a first frequency. Based on the refreshed detection data, the second electronic device determines a first area on the display screen where the first electronic device or other conductor is near.
[0350] In some examples, in response to the proximity of a first electronic device, the AP core instructs the touch IC to switch from half-Idle mode to Active mode. Then, the touch IC reports detection data to the AP core at the second frequency corresponding to Active mode.
[0351] In this way, by increasing the frequency of reporting detection data, the accuracy of obtaining the first region can be improved.
[0352] For example, the second electronic device can scan the entire capacitance value distribution map through a preset shape. At a certain moment, the capacitance value of the capacitor modules within the preset shape is greater than or equal to a preset threshold, or at a certain moment, the average capacitance value of the capacitor modules within the preset shape is greater than or equal to a preset threshold. In this case, it can be determined that the first electronic device or other conductor is currently close to the first region within the preset shape.
[0353] For example, the second electronic device scans the entire capacitance value distribution map using a 3mm*15mm rectangular frame. As shown in Figure 8E(a), during the scanning process, if the average capacitance value within the rectangular frame 71 is greater than a preset threshold, the second electronic device can determine that the area within the rectangular frame 71 is the first region.
[0354] In this way, the second electronic device can obtain the area of the first electronic device near the display screen through capacitance data, enabling more accurate content sharing.
[0355] In some embodiments, the second electronic device determines that a second event has occurred and switches the frequency of acquiring detection data from the display screen to a first frequency. Optionally, the second event includes: the sharing of first or second content is completed, and the first application continues to be displayed in the foreground.
[0356] For example, after content sharing is completed, if the user still has a need to share content, causing the second electronic device to continue displaying the first application in the foreground, then the AP core can instruct the touch IC to switch from Active mode back to semi-Idle mode. The touch IC then reports detection data to the AP core at the first frequency corresponding to the semi-Idle mode.
[0357] In this way, the second electronic device reduces the reporting frequency of detection data, thereby reducing power consumption. Furthermore, in situations where content sharing is possible, the second electronic device can acquire detection data at a relatively high initial frequency, ensuring the accuracy of subsequent content sharing processes.
[0358] In some embodiments, the second electronic device determines that a fourth event has occurred and switches the frequency of acquiring detection data from the display screen to a third frequency. Optionally, the fourth event includes: an exit event of the first application or an editing operation on the display interface of the second application.
[0359] Optionally, exit events include: exiting to the background or closing.
[0360] Optionally, the fourth event may be detected when the touch IC is in Idle mode or when the touch IC is in Active mode.
[0361] For example, if an application triggers an exit event or an edit event, there might not be a need for content sharing. In this case, the AP core can instruct the touch IC to switch from half-Idle mode back to Idle mode. The touch IC then reports detection data to the AP core at the third frequency corresponding to Idle mode. Alternatively, the AP core can instruct the touch IC to switch from Active mode back to Idle mode. The touch IC then reports detection data to the AP core at the third frequency corresponding to Idle mode. That is, when there is no need for content sharing, the touch IC can report detection data at a lower frequency to avoid wasting power.
[0362] In some embodiments, the second electronic device determines that a fifth event has occurred and switches the frequency of acquiring detection data from the display screen to a first frequency. Optionally, the fifth event includes: detecting that an editing operation has stopped during the display of the second application's interface in the foreground. Optionally, the second application is the target application.
[0363] For example, while the second electronic device is displaying the interface of the second application in the foreground, it reduces the frequency of the touch IC reporting detection data in response to an editing operation, thereby reducing power consumption when there is no content sharing requirement. Subsequently, after the editing operation is received, the second application may have a content sharing requirement, in which case the AP core can instruct the touch IC to switch from Idle mode to half-Idle mode. Then, the touch IC reports detection data to the AP core at a first frequency corresponding to half-Idle mode. In this way, the touch IC can increase the detection data reporting frequency, and the second electronic device can improve the accuracy of the subsequent content sharing process based on the detection data reported at a higher frequency.
[0364] In this way, the reporting frequency of touch IC detection data can be flexibly adjusted to meet the needs of various scenarios and achieve a balance between power consumption and parameters that measure the effectiveness of response judgment, such as response speed, recall rate, and accuracy.
[0365] In some scenarios, the first electronic device and the second electronic device can share application interfaces. These application interfaces can be various running interfaces of various applications installed on the first or second electronic device, or they can be specific running interfaces among the various running interfaces of various applications installed on the first or second electronic device, such as a desktop. For example, as shown in FIG9, the first electronic device 301 displays a desktop 900 (or main interface 900), which includes icons of one or more applications installed on the first electronic device 301, such as icons for calendar applications and video applications. Different application icons can be used to open the running interface of the corresponding application. The second electronic device 302 displays a desktop 910. Then, the first electronic device 301 approaches the display screen of the second electronic device 302. In response to this operation, as shown in FIG10(1), the first electronic device 301 can share the desktop 900 to the display screen of the second electronic device 302, such as the second electronic device 302 displaying interface 920. Optionally, in this scenario, the display effect (e.g., layout) of the application interface on the display screen of the second electronic device can be the same as the display effect on the first electronic device, as shown in Figure 10(1), where the display effects of interface 920 and desktop 900 are the same. This application embodiment does not limit the display position of the application interface on the display screen of the second electronic device. For example, regardless of which area of the second electronic device's display screen the first electronic device is near, the application interface can be displayed in a fixed area of the second electronic device's display screen, or the area where the application interface is displayed on the second electronic device's display screen can be the area of the second electronic device's display screen that the first electronic device is near.
[0366] In this scenario, in some embodiments, after the application interface is transmitted to the display screen of the second electronic device, the user can perform various operations on the application interface on the display screen of the second electronic device, causing the application interface to jump or causing the presentation effect of the application interface on the second electronic device (such as size, position, layout, etc.) to change, thereby realizing multi-screen collaborative operation. For example, if the user can perform an open operation on the icon 921 of the settings application contained in the interface 920 shown in Figure 10 (1), then in response to the operation, as shown in Figure 10 (2), the interface 920 can jump to the running interface 930 of the settings application.
[0367] Optionally, in this embodiment, content sharing between the first electronic device and the second electronic device can refer to the transmission of display content between them, where the content displayed on one electronic device can be transmitted to the storage of the other electronic device. Multi-screen collaboration can refer to a situation where no content transmission occurs between them, where the content displayed on one electronic device can be projected onto the screen of another electronic device, and the content is actually still stored in the original electronic device. Optionally, when the second electronic device detects that the first electronic device is close to its own display screen, whether the second electronic device shares content or engages in multi-screen collaboration can be determined based on user operation. For example, the first electronic device and / or the second electronic device can display options such as content sharing and multi-screen collaboration for the user to choose from.
[0368] The examples shown in Figures 9 and 10 illustrate a scenario where one application interface is simultaneously displayed on the first electronic device. In other examples, multiple application interfaces may be displayed simultaneously on the first electronic device, and these multiple running interfaces can be shared between the first and second electronic devices simultaneously. For instance, as shown in Figure 11, the first electronic device 301 simultaneously displays the running interface 1101 of a video application and the running interface 1102 of a gallery application, while the second electronic device still displays the desktop 910. Then, the first electronic device 301 moves closer to the display screen of the second electronic device 302. In response to this operation, as shown in Figure 12, the first electronic device 301 shares running interface 1101 and / or running interface 1102 to the display screen of the second electronic device 302. For example, if the first electronic device simultaneously shares running interface 1101 and running interface 1102 to the second electronic device 302, as shown in Figure 12, the second electronic device 302 can display running interface 1201 and running interface 1202.
[0369] Optionally, in this example, when multiple running interfaces are displayed simultaneously on the first electronic device, the specific method of sharing some or all of these running interfaces to the second electronic device can be determined by the first electronic device. For example, the first electronic device can share one or all of them to the second electronic device by default. Alternatively, the specific method of sharing some or all of these running interfaces to the second electronic device can be determined by the user. For example, when the first electronic device is close to the display screen of the second electronic device, the user can perform various selection operations such as clicking on an application interface displayed on the first electronic device. In response to the selection operation, the first electronic device can share the application interface selected by the user to the second electronic device.
[0370] Optionally, in the above examples, before the first electronic device shares the application interface to the second electronic device, there are no restrictions on the running interface displayed on the screen of the second electronic device. The second electronic device can display the running interfaces of various applications. The above examples take the desktop displayed by the second electronic device as an example, and the above examples take the application interface shared by the first electronic device as being displayed on top of the desktop of the second electronic device. In other examples, the application interface shared by the first electronic device can also be displayed in a split-screen manner with the application interface originally displayed by the second electronic device, or the application interface originally displayed by the second electronic device can be switched to display the application interface shared by the first electronic device.
[0371] In other scenarios, the first electronic device and the second electronic device can share files. These files can include, but are not limited to, documents (such as text documents, PPTs, spreadsheets, etc.), images, videos, audio files, folders, compressed files, and other types of files. Optionally, these files can be presented in an unopened form (as shown in Figure 13, the icon 1301 for document 1, the icon 1302 for folder 1, the icon for images, the icon for compressed files, etc.) or an opened form (as shown in Figure 13, the document opening interface 1303). For example, as shown in Figure 14, the first electronic device 301 displays an image 1401 in an open form, and the second electronic device 302 displays a PPT 1402 in an open form. Then, the first electronic device 301 moves close to the screen of the second electronic device 302. In response to this operation, the first electronic device 301 shares image 1401 to the screen of the second electronic device 302 for display, as shown in Figure 15. Image 1401 can be inserted into PPT 1402 for display. In some implementations, image 1401 can be inserted into a specific area of PPT 1402, such as a blank area.
[0372] In other examples, an unopened document icon displayed on the first electronic device can be inserted into an open folder displayed on the second electronic device, and an unopened video icon displayed on the first electronic device can be inserted into an open PowerPoint presentation on the second electronic device.
[0373] In the above example, the specific location on the second electronic device's screen where the file shared by the first electronic device is inserted can be determined based on the area of the first electronic device closest to the second electronic device's screen. For example, when the first electronic device is near a blank area of the open file (PPT 1402 as shown in Figure 14), the file shared by the first electronic device can be inserted into that blank area. It's understood that the open file on the second electronic device may contain multiple blank areas simultaneously; therefore, when the first electronic device is near different blank areas, the second electronic device can insert the file shared by the first electronic device into the nearest blank area. In other words, when the first electronic device is near different areas (or positions) of the same file, the second electronic device can insert the file shared by the first electronic device into different areas of the file displayed on the second electronic device. Alternatively, the second electronic device can determine which blank area to insert the file into based on the size of the blank area and the size of the file shared by the first electronic device to achieve a better display effect. Conversely, when the first electronic device is near a non-blank area of the open file on the second electronic device's screen, the file shared by the first electronic device can be inserted into that non-blank area. Alternatively, when the first electronic device is near a display area on the second electronic device other than the area where the file is displayed (such as the desktop display area shown in Figure 14), the file shared by the first electronic device can be inserted into that other display area on the second electronic device.
[0374] Alternatively, the second electronic device may, by default, insert the file shared by the first electronic device into the blank area of the open file that is normally displayed. In other words, regardless of which area of the second electronic device's screen the first electronic device is near, the second electronic device will insert the file shared by the first electronic device into the blank area of the open file that is normally displayed, regardless of whether the blank area is near the first electronic device.
[0375] Alternatively, the second electronic device can determine the specific position on its screen where the file shared by the first electronic device will be inserted, based on the file's format (e.g., open, unopened), file type (e.g., image, video, document, folder), and the file type displayed in the open format by the second electronic device. For example, if the file shared by the first electronic device is in open format and the file type displayed by the second electronic device is a document, the second electronic device can insert the file shared by the first electronic device into a blank area of its own open format file. As another example, if the file shared by the first electronic device is in unopened format, the second electronic device can display the file shared by the first electronic device in any area of its own screen. Similarly, if the file shared by the first electronic device is in unopened format and the file type displayed by the second electronic device is a folder, the second electronic device can insert the file shared by the first electronic device into a blank area of its own open format file, and so on.
[0376] The examples shown in Figures 14 and 15 illustrate a scenario where one open file is simultaneously displayed on the second electronic device. In other embodiments, multiple open files may be displayed simultaneously on the second electronic device. As a possible example, when the second electronic device receives a file shared by the first electronic device, it can simultaneously insert this file into the multiple open files it displays. For instance, as shown in Figure 16, the first electronic device 301 displays an open image 1401, while the second electronic device displays an open PPT 1402 and a text document 1601. Then, the first electronic device 301 approaches the display screen of the second electronic device 302. In response to this operation, as shown in Figure 17, the second electronic device simultaneously inserts the image 1401 shared by the first electronic device into both the text document 1601 and the PPT 1402.
[0377] Alternatively, in other examples, the second electronic device can also be determined based on the area of the second electronic device's display screen that the first electronic device is close to, in the manner described above. That is, the second electronic device will insert the file shared by the first electronic device into the corresponding open file displayed by the second electronic device, depending on which open file the first electronic device is close to.
[0378] Alternatively, the user can decide which open file the file will be inserted into on the second electronic device. For example, after the second electronic device receives a file shared from the first electronic device, a reminder message can be displayed before the file is displayed, reminding the user which open file the file will be inserted into. Based on this reminder message, the user can select one or more open files on the second electronic device. Correspondingly, the second electronic device will insert the file received from the first electronic device into the open file selected by the user.
[0379] It is understood that the above example illustrates a scenario where the file is displayed in an open state on the second electronic device before the first electronic device shares it with the second electronic device. In some embodiments, the file may not be displayed in an open state on the second electronic device; for example, the desktop may be displayed instead. In this example, the second electronic device can directly display the file shared by the first electronic device at any location on the desktop.
[0380] In the above example, a file shared by the first electronic device to the second electronic device is presented in the same way (e.g., open or closed) as it is on the first electronic device. In other examples, the presentation on the second electronic device can differ from that on the first. For instance, when the second electronic device receives a file in an unopened state shared by the first electronic device, it can present the file in an open state. As shown in Figure 18, the first electronic device 301 displays a text document 1801 presented as an icon, and the second electronic device 302 displays a desktop 910 or other interface. Then, the first electronic device 301 approaches the display screen of the second electronic device 302. In response to this operation, as shown in Figure 19, the first electronic device 301 shares the text document 1801 presented as an icon with the second electronic device 302, and the second electronic device 302 can present the open interface 1901 of the text document 1801. For example, the first electronic device 301 can also share a video or other content presented as an icon with the second electronic device 302, and the second electronic device 302 can present the playback interface of the video or other content.
[0381] It is understood that the examples shown in Figures 18 and 19 illustrate a scenario where one unopened file is displayed on the first electronic device 301. In other embodiments, multiple unopened files may be displayed on the first electronic device 301 simultaneously. The first electronic device 301 can share all of these unopened files with the second electronic device 302, and the second electronic device 302 can then open all of these files. Alternatively, when the first electronic device 301 displays multiple unopened files, the user can select a file to share with the second electronic device 302. For details on user selection methods, please refer to the implementation of similar selection methods described above.
[0382] In other scenarios, the first electronic device and the second electronic device can also share services. A service can refer to a business being performed on the electronic device. For example, services can include, but are not limited to, ongoing navigation, playing music, playing video, ongoing video calls, ongoing voice calls, and ongoing games. For example, as shown in Figure 20, the first electronic device 301 is performing navigation, displaying a navigation execution interface 2000, while the second electronic device 302 (such as a car infotainment system) displays a desktop 2001. Then, the first electronic device 301 moves close to the display screen of the second electronic device 302. In response to this operation, the first electronic device 301 shares the navigation service with the second electronic device 302. As shown in Figure 21a, the second electronic device 302 can then perform navigation, displaying a navigation execution interface 2101.
[0383] Optionally, in this scenario, the first electronic device can transmit information for launching the service to the second electronic device, so that the second electronic device can present the service execution interface. For example, the information for launching the service may include, but is not limited to, various information such as the link to the application corresponding to the service, the service identifier, and the link to the interface corresponding to the service.
[0384] Similarly, in this scenario, multiple services may exist simultaneously on the first electronic device. How some or all of these services are shared to the second electronic device can be determined by the first electronic device. For example, the first electronic device can default to sharing one or all of them to the second electronic device. Alternatively, the user can decide which services are shared to the second electronic device. For instance, when the first electronic device is near the display of the second electronic device, the user can select several services on the first electronic device, or the first electronic device can output a reminder message to prompt the user to perform the selection. In response to the user's selection, the first electronic device can share the selected services to the second electronic device.
[0385] Similarly, in this scenario, there are no restrictions on the running interface presented by the second electronic device before the first electronic device shares the service to the second electronic device. The example shown in Figure 20 is also an example of the second electronic device presenting its desktop before receiving the service shared by the first electronic device, and it is an example of the running interface originally displayed by the second electronic device being switched to the execution interface of the service shared by the first electronic device. In other examples, the second electronic device can also use split-screen or other methods to present the running interface of the application originally displayed and the execution interface of the service shared by the first electronic device.
[0386] Optionally, in this scenario, the display effects (such as layout) of the service execution interface presented by the second electronic device and the service execution interface presented by the first electronic device can be the same or different. In some implementations, the service execution interface presented by the second electronic device can be related to the types of the first and second electronic devices. For example, when the first and second electronic devices are of the same type, such as both being mobile phones or tablets, the display effects of the service execution interface presented by the second electronic device and the service execution interface presented by the first electronic device can be the same. As another example, when the first and second electronic devices are of different types, such as the first electronic device being a mobile phone and the second electronic device being a car infotainment system, the display effects of the service execution interface presented by the second electronic device and the service execution interface presented by the first electronic device can be different, as shown in Figure 21a.
[0387] In the above scenarios, the first electronic device shares content with the second electronic device when the first electronic device approaches the display screen of the second electronic device. Optionally, before sharing content with the second electronic device, the first electronic device can also receive user operations and, in response to the user operations, share the corresponding content with the second electronic device. As a specific embodiment, Figure 21b shows a flowchart of a first electronic device sharing content with a second electronic device provided in this application embodiment. As shown in Figure 21b (1), when the first electronic device 301 approaches the display screen of the second electronic device 302, the first electronic device 301 and the second electronic device 302 establish a communication connection. Subsequently, the user can perform a trigger operation (such as swiping up) on the content displayed on the first electronic device 301. Taking content D as an example, as shown in Figure 21b (2), the first electronic device 301 detects an swipe operation performed by the user on content D. In response to the operation, as shown in Figure 21b (3), the first electronic device 301 shares content D with the second electronic device 302, and the second electronic device 302 can display content D on the display screen.
[0388] Similarly, in the above-mentioned content scenarios, when the first electronic device is close to the display screen of the second electronic device, the second electronic device can also share content with the first electronic device.
[0389] For example, as shown in Figure 22, the first electronic device 301 displays a desktop 2201, and the second electronic device 302 displays an open image 2202, an open PPT 2203, an unopened document 1 icon 2204, an unopened folder 1 icon 2205, an unopened PPT 1 icon 2206, etc. Next, the first electronic device 301 moves close to the display screen of the second electronic device 302. When the first electronic device 301 moves close to different areas of the display screen of the second electronic device 302, the content in the corresponding area can be read into the first electronic device 301. That is, the second electronic device 302 can share the content displayed in the area that the first electronic device 301 moves close to with the first electronic device 301. As shown in Figure 23 (1), when the first electronic device 301 moves close to the display area of the open image 2202 on the second electronic device 302, for example, close to the image 2202 or close to the window where the image 2202 is located, the image 2202 can be read into the first electronic device 301. As shown in Figure 23(2), when the first electronic device 301 approaches the icon 2206 of PPT1, which is in an unopened state on the second electronic device 302, PPT1 can be read into the first electronic device 301, and so on.
[0390] In some embodiments, before the first electronic device 301 fully reads the content near the display area, i.e., before saving it, the first electronic device 301 may first present a preview of the read content so that the user can confirm whether the content read by the first electronic device 301 is what the user needs. For example, in conjunction with the example shown in Figure 23(1), the first electronic device 301 may present a preview image 2401 as shown in Figure 24. Subsequently, after receiving the user's confirmation operation, such as a click operation on the preview image 2401, in response to the operation, the first electronic device 301 reads the full content corresponding to the preview image and then presents the interface shown in Figure 23(1). Optionally, the preview image presented by the first electronic device 301 may include the content corresponding to the preview image on the second electronic device, part or all of the content in the display effect on the second electronic device. This application embodiment does not limit the specific display effect of the preview image. The user can identify which content is read by the first electronic device and displayed on the second electronic device through the preview image. For example, the preview image of picture 2202 may be the effect of the entire picture or some elements in the picture. For example, the preview image of PPT 2203 can be the entire interface of PPT 2203 displayed on a second electronic device, or it can be a part of the interface, etc.
[0391] The examples shown in Figures 22 and 23 use the desktop displayed on the first electronic device 301 as an example. In other examples, the first electronic device may also display the running interface of other applications. Similarly, when the content read by the first electronic device 301 from the second electronic device 302 is a service, an application interface, or an open file, the first electronic device 301 can switch the running interface of other applications to the execution interface of the read service, application, or open file, etc. Alternatively, the first electronic device 301 may also use split-screen or other methods to display the aforementioned read content and its own displayed application interface. Optionally, for the display screen of the first electronic device close to the second electronic device, after receiving the content shared by the second electronic device, the specific method (such as full screen, split screen, open form, closed form, etc.) for displaying this content can refer to the implementation of the second electronic device displaying the content shared by the first electronic device.
[0392] The examples shown in Figures 22 and 23 illustrate a scenario where multiple contents are simultaneously displayed on the second electronic device. In other embodiments, the second electronic device may display only one content. Optionally, in this embodiment, the content can be read into the first electronic device from any position near the display screen of the second electronic device.
[0393] In some embodiments, before the first electronic device approaches the second electronic device, the first electronic device may also display a file in an open format, in which case the first electronic device may insert content read from the second electronic device into that file. For example, as shown in FIG25, the first electronic device 301 displays a document 2501 in an open format, and the second electronic device 302 displays an image 2502 in an open format. Then, the first electronic device 301 approaches the display screen of the second electronic device 302, as shown in FIG26a. In response to this operation, the first electronic device 301 receives the image 2502 shared by the second electronic device 302 and inserts the image 2502 into the document 2501.
[0394] Optionally, in this embodiment, when multiple files are displayed on the second electronic device, the first electronic device can insert the file displayed in the area closest to the displayed file into the opened document. For a description of the file, please refer to the relevant description above.
[0395] Similarly, in this embodiment, the first electronic device can also insert the file shared by the second electronic device into the blank area of the open file it displays by default. Alternatively, the first electronic device can determine the specific position on its screen where the file shared by the second electronic device will be inserted based on the file's format (e.g., open, unopened, etc.), file type (e.g., image, video, document, folder, etc.), and the file type displayed by the first electronic device in its open format. For example, when the file shared by the second electronic device is in open format and the file type displayed by the first electronic device is document, the first electronic device can insert the file shared by the second electronic device into the blank area of the open file it displays. As another example, when the file shared by the second electronic device is in unopened format, the first electronic device can display the file shared by the second electronic device in any area of its screen. As yet another example, when the file shared by the second electronic device is in unopened format and the file type displayed by the first electronic device is folder, the first electronic device can insert the file shared by the second electronic device into the blank area of the open file it displays, and so on.
[0396] Similarly, in this embodiment, the file shared by the second electronic device to the first electronic device can be presented in the same or different ways on the second electronic device (e.g., in an open or unopened form) as it is on the first electronic device. For example, when the first electronic device receives an unopened file shared by the second electronic device, the first electronic device can present the file in an open form.
[0397] As a specific embodiment, Figure 26b shows a schematic diagram of a process for a second electronic device to share content with a first electronic device according to an embodiment of this application. As shown in Figure 26b (1), when the first electronic device 301 approaches the display screen of the second electronic device 302, the first electronic device 301 establishes a communication connection with the second electronic device 302. The first electronic device 301 can select the content on the display screen of the second electronic device 302 by approaching different areas of the display screen of the second electronic device 302. As shown in Figure 26b (2), when the first electronic device 301 approaches the position of the content B displayed on the second electronic device 302, in response to the approach of the first electronic device 301, the second electronic device 302 sends the instruction information of the content B to the first electronic device 301, such as the preview image of the content B. As shown in Figure 26b (3), the first electronic device 301 displays the preview image of the content B. Next, as shown in Figure 26b (4), the user can perform a trigger operation (such as pull-down) on the preview image of content B. In response to this operation, as shown in Figure 26b (5), the second electronic device 302 shares content B with the first electronic device 301, and the first electronic device 301 can display content B on the display screen.
[0398] As a specific application scenario, the content shared by the second electronic device to the first electronic device can also be a picture. For example, the second electronic device may have a drawing application installed, and the user can use the drawing application to perform various drawing operations. The second electronic device can share the picture drawn by the user using the drawing application with the first electronic device. For example, as shown in Figure 26c (1), the second electronic device 302 can display one or more pictures drawn by the user, such as picture 1, picture 2, picture 3, etc. Optionally, these pictures can be displayed in the running interface of the drawing application, or in the running interface of other applications. The first electronic device 301 can move closer to the display area of different pictures. Correspondingly, the second electronic device 302 can share the picture displayed in the area that the first electronic device 301 is close to with the first electronic device 301. As shown in Figure 26c (1), the first electronic device 301 is close to the display area of picture 2. In response to this operation, optionally, as shown in Figure 26c (2), the second electronic device 302 can first send the thumbnail of picture 2 to the first electronic device 301, and the first electronic device 301 can first display the thumbnail 11 of picture 2. Next, the user can perform a pull-down or other triggering operation on the thumbnail 11 of picture 2. In response to this operation, as shown in Figure 26c (3), the second electronic device 302 shares picture 2 with the first electronic device 301. Optionally, the first electronic device 301 can save picture 2 to a gallery application (or a photo album application, etc., used to store pictures). The first electronic device 301 can also display the running interface 10 of the gallery application to present picture 2. Optionally, in this scenario, before the first electronic device 301 approaches the second electronic device 302, the interface presented can be the running interface of the gallery application, or other interfaces (such as the desktop, etc.). When the first electronic device 301 does not present the running interface of the gallery application, after receiving the picture shared by the second electronic device 302, the first electronic device 301 can jump to the running interface of the gallery application to present the picture. Similarly, the implementation is similar when the content shared by the first electronic device to the second electronic device is a picture.
[0399] As another specific application scenario, the content shared by the second electronic device to the first electronic device can be directly sent to others. Taking the pictures shared by the second electronic device to the first electronic device as an example in the above application scenario, for example, as shown in Figure 26d (1), when the first electronic device 301 approaches the second electronic device 302, a chat interface 20 is displayed on the first electronic device 301. The chat interface 20 can be a chat interface with any contact in any application with chat function (such as social application, shopping application, video application, etc.). One or more pictures are displayed on the second electronic device 302, such as picture 1, picture 2, and picture 3. Taking the display area of picture 1 displayed on the second electronic device 302 as an example, in response to the approach of the first electronic device 301, the second electronic device 302 can optionally send a thumbnail of picture 1 to the first electronic device 301, as shown in Figure 26d (2). The first electronic device 301 can first display the thumbnail 21 of picture 1. Next, the user can perform a pull-down or other triggering operation on the thumbnail 21 of picture 1. In response to this operation, as shown in Figure 26d (3), the second electronic device can share picture 1 with the first electronic device 301. The first electronic device 301 can then directly send picture 1 to the chat interface 20, thereby sending the picture to others. Of course, in other embodiments, the aforementioned content can also be other content besides pictures, such as files, images, videos, etc. This application embodiment does not limit this. Similarly, the content shared by the first electronic device to the second electronic device can also be directly sent to others. The specific implementation can refer to the aforementioned similar implementation.
[0400] As another specific application scenario, the content shared by the first electronic device to the second electronic device can be used for color reference. As shown in Figure 26e (1), the second electronic device 302 displays the running interface 30 of a painting application, where the user can perform various painting operations. The first electronic device 301 displays an image 31. The first electronic device 301 moves close to the display screen of the second electronic device 302. Then, the user performs various trigger operations on the image 31, such as swiping up. In response to this operation, the first electronic device 301 shares the image 31 with the second electronic device 302. As shown in Figure 26e (2), the second electronic device 302 can display the image 31 in the running interface 30. Subsequently, the user can use a color picker to pick the colors in the image 31 to paint in the running interface 30, or color the drawing, etc. Similarly, the content shared by the second electronic device to the first electronic device can also be used for color reference. The specific implementation can refer to the aforementioned implementation.
[0401] The above text introduces the application scenarios of the first electronic device sharing content with the second electronic device, and the second electronic device sharing content with the first electronic device.
[0402] Optionally, before sharing content, the first and second electronic devices may simultaneously display the same type of content (e.g., both displaying open images, files, etc.). In this case, both devices may be able to share content with each other, thus requiring determination of which electronic device specifically shares content with which device. Of course, the solution described in the following embodiments also applies when the first and second electronic devices display different types of content (e.g., one device displays an open file, and the other displays the desktop). In some embodiments, when the first electronic device is near the display of the second electronic device, whether the first electronic device shares content with the second electronic device or vice versa can be determined by the user. For example, before sharing content, the first electronic device can output a reminder message 2701, as shown in Figure 27, reminding the user to set the file sharing endpoint, i.e., to set whether to share content with the second electronic device or receive content shared by the second electronic device. After receiving the user's confirmation to share content with the second electronic device, such as selecting option 2702, the first electronic device, in response to this operation, performs the operation of sharing content with the second electronic device as described above. Conversely, upon receiving an operation from the user confirming the receipt of content shared by the second electronic device, such as selecting option 2703, the second electronic device, in response to that operation, performs an operation such as sharing content with the first electronic device as described above.
[0403] Alternatively, before the first electronic device approaches the display screen of the second electronic device, functional controls may be displayed on the first and / or second electronic devices, allowing the user to set whether the first electronic device shares content with the second electronic device or the second electronic device shares content with the first electronic device.
[0404] In other embodiments, when the first electronic device approaches the display screen of the second electronic device, whether the first electronic device shares content with the second electronic device or the second electronic device shares content with the first electronic device can be determined by the first and / or the second electronic device. For example, when the first and / or the second electronic device determines that a specific scenario has occurred, it can determine whether to share content with the other end or receive content shared by the other end based on that specific scenario. In some embodiments, the first and / or the second electronic device can determine whether a specific scenario has occurred based on at least one of the content displayed on the first electronic device and the content displayed on the second electronic device.
[0405] For example, when a first electronic device is near the screen of a second electronic device, and the first electronic device displays a specific application interface, it can determine that it wants to share that application interface with the second electronic device. Similarly, when the first electronic device is near the screen of the second electronic device, and the second electronic device displays a specific application interface, it can determine that it wants to share that application interface with the first electronic device. As another example, when the first electronic device is near the screen of the second electronic device, and the first electronic device is performing a specific service, it can determine that it wants to share that specific service with the second electronic device. Similarly, when the first electronic device is near the screen of the second electronic device, and the second electronic device displays a specific service, it can determine that it wants to share that specific service with the first electronic device.
[0406] For example, when a first electronic device is near the screen of a second electronic device, and the first device displays a file while the second device displays an open file or a desktop, the two devices can negotiate to determine that the first device wants to share a file with the second device. Similarly, when a first electronic device is near the screen of a second electronic device, and the first device displays an open file or a desktop, the two devices can negotiate to determine that the second device wants to share a file with the first device.
[0407] The above describes the implementation of content sharing when the first electronic device is near the display screen of the second electronic device. In some embodiments, when the first electronic device is near the display screen of the second electronic device, specific functions of the first or second electronic device can also be triggered, such as multi-screen collaboration functions and device control functions. Multi-screen collaboration functions may include, but are not limited to: answering audio / video calls from the first electronic device via the second electronic device; simultaneously opening multiple application windows of the first electronic device on the second electronic device to achieve multitasking; recording the screen on the second electronic device via the first electronic device; and using the first electronic device as a secondary screen for the second electronic device. For application scenarios of multi-screen collaboration functions, please refer to the application scenarios in related technologies. Similarly, when the device control function of the first electronic device is triggered, the first electronic device can act as the control device for the second electronic device, controlling the second electronic device. Likewise, when the device control function of the second electronic device is triggered, the second electronic device can act as the control device for the first electronic device, controlling the first electronic device.
[0408] For example, as shown in Figure 28, taking a mobile phone 2800 as the first electronic device and a smart screen 2810 as the second electronic device, the mobile phone 2800 displays a desktop 2801, and the smart screen displays a saver interface 2811. When the mobile phone 2800 is close to the display screen of the smart screen 2810, in response to this operation, the mobile phone 2800 can activate the device control function to control the smart screen 2810, such as acting as a remote control for the smart screen 2810. Optionally, the mobile phone 2800 can present a control interface 2901 as shown in Figure 29, which includes one or more multi-functional controls, through which the smart screen 2810 can be controlled. In some implementations, the mobile phone 2800 can control the content contained in the smart screen 2810, such as the smart screen displaying its own content, and thus the mobile phone 2800 can operate on this content. In other implementations, the mobile phone 2800 can also control the content shared by the mobile phone 2800 on the smart screen 2810. That is, in this implementation, the mobile phone 2800 can not only share its own content with the smart screen 2810, but also act as a control device to control the content shared with the smart screen 2810. As shown in Figure 29, the smart screen 2810 can display an interface 2902, which contains the content shared by the mobile phone 2800, such as icons of various applications. Users can operate on these application icons through the mobile phone 2800, such as opening the running interface of the application corresponding to the icon in the interface 2902 displayed on the smart screen 2810 through the mobile phone 2800.
[0409] In some embodiments, when the first electronic device approaches the display screen of the second electronic device, the specific electronic device whose device function is triggered, i.e. which electronic device acts as the control device for which electronic device, can be determined based on the type of the first electronic device and the type of the second electronic device. For example, other types of electronic devices can act as the control devices for the smart screen.
[0410] In other embodiments, the user can determine which electronic device acts as the controller for another electronic device. For example, when the first electronic device approaches the second electronic device, the first electronic device may output a reminder message to remind the user to set the controller and the controlled device. Alternatively, before the first electronic device approaches the second electronic device, the user can also set the roles (such as controller, controlled device, etc.) of the first and / or second electronic devices through the function controls on the first or second electronic devices.
[0411] In some embodiments, whether the user decides to perform the content sharing operation or the specific function triggering operation described above when the first electronic device approaches the second electronic device can be determined by the user. For example, before the first electronic device approaches the second electronic device, the user can also set the operation to be performed when the first electronic device approaches the second electronic device through the function controls on the first and / or second electronic devices. Alternatively, when the first electronic device approaches the second electronic device, the first and / or second electronic devices can remind the user to set the operation to be performed by outputting a reminder message, etc.
[0412] For example, Figure 30a shows a schematic flowchart of a content sharing method provided in an embodiment of this application. As shown in Figure 30a, the method includes the following steps:
[0413] S3001. The second electronic device determines that the first electronic device is close to the second display screen based on the capacitance parameters of the second display screen.
[0414] The first electronic device is equipped with a display screen, which is a first display screen, and the second electronic device is equipped with a display screen, which is a second display screen. Optionally, the first electronic device may be equipped with one or more first display screens, and the second electronic device may be equipped with one or more second display screens.
[0415] In some embodiments, when the first electronic device approaches the second display screen, the first electronic device and the second electronic device can establish a communication connection. For example, the communication connection can be established using near-field communication (NFC) technology, which may include Bluetooth, Starlink, etc. Of course, the communication connection established between the first electronic device and the second electronic device can also be established before the first electronic device approaches the second electronic device.
[0416] As a specific implementation, when the first electronic device approaches the second display screen, the second electronic device sends a broadcast message; in response to the received broadcast message, the first electronic device establishes a connection with the second electronic device via near-field communication (NFC) technology. For details on this specific implementation, please refer to the related implementations described above.
[0417] In some embodiments, step S3001 can be specifically implemented as follows: the second electronic device acquires the capacitance parameters of the second display screen; if the capacitance parameters meet a preset condition, the second electronic device determines that the first electronic device is close to the second display screen. For example, the capacitance parameters may include the capacitance value within a preset time period. Of course, when the first electronic device is close to a certain area of the second display screen (such as a first area), the second electronic device can also acquire the capacitance value of that area within a preset time period, and if the capacitance value of that area within the preset time period meets a preset condition, determine that the first electronic device is close to the first area.
[0418] For example, the aforementioned preset conditions may include a change in capacitance value greater than or equal to a preset threshold within a preset time period. Optionally, the preset threshold may be determined based on the change in capacitance value caused by an electronic device approaching the display screen of another electronic device, or the change in capacitance value caused by an object other than an electronic device, such as a finger, approaching the display screen of another electronic device. Of course, if it cannot be determined whether the electronic device or a finger is approaching through the preset conditions, the second electronic device may also input the detection parameters into the preset model described above, and output the recognition result through the preset model. A specific implementation can be found above.
[0419] In some embodiments, before performing step S3002, the first electronic device may further determine that it is in a handheld scenario. For details on this implementation, please refer to the relevant implementations described above.
[0420] S3002. Based on the communication connection between the second electronic device and the first electronic device, the second electronic device and the first electronic device share content.
[0421] The content can be displayed on the first display screen or on the second display screen.
[0422] In some embodiments, the content shared between the first electronic device and the second electronic device is the content on the second display screen. When the first electronic device is close to a first area of the second display screen, the first area displays the first content, and the second electronic device sends the first content or information indicating the first content to the first electronic device. The first electronic device displays the first content or information indicating the first content on the first display screen. For example, in this embodiment, the first content may include an application interface. That is, as shown in the examples of Figures 22 and 23, the first electronic device can read the content displayed in a certain area of the second display screen into the first electronic device by being close to that area.
[0423] In this embodiment, in some implementations, when the first electronic device is near a second area of the second display screen, the second area displays second content. The second electronic device sends the second content or information indicating the second content to the first electronic device. The second area is different from the first area. The first electronic device displays the second content or information indicating the second content on the first display screen. For example, the second content may include an application interface, a file, etc. Optionally, the first content and the second content may be the same or different. That is, the first electronic device can read the content displayed in a corresponding area of the second display screen by being near it.
[0424] In some embodiments, if the content is near a window, the content in that window can be shared or the received content can be displayed in that window. Optionally, if the content is near a display element (such as an image component) within that window, the content in that display element can be shared or the received content can be displayed in that display element. Optionally, if there are multiple pieces of content to be shared in the nearby area, one or more of the target content can be selected from these multiple pieces of content through additional operations, and then the sharing operation can be performed on these target contents.
[0425] For example, the information indicating the first content may be a preview image of the first content, or the information indicating the second content may be a preview image of the second content.
[0426] In some implementations, before displaying the first content on the first display screen, the first electronic device displays a preview image of the first content on the first display screen. In this implementation, the first electronic device can receive a trigger operation on the preview image, and in response to the trigger operation, the first electronic device then displays the first content on the first display screen, as shown in the example in Figure 23.
[0427] In some implementations, before the first electronic device approaches a first area of the second display screen, the first electronic device displays a second file on the first display screen; then the first electronic device can insert the first content into the second file for display, as shown in the examples in Figures 25 and 26a. In other words, the first electronic device can insert content read from a certain display area of the second electronic device into the file it is displaying.
[0428] In some implementations, before the first electronic device approaches a first area of the second display screen, the first electronic device also displays a third file on the first display screen; in this case, the first electronic device inserts the first content into both the second and third files for display. That is, the first electronic device can simultaneously insert content read from a display area of the second electronic device into multiple files for display.
[0429] Optionally, in the embodiments of this application, the types and contents of the first file, the second file, and the third file may be the same or different, and this application does not impose specific restrictions on this.
[0430] In other embodiments, the content shared between the first electronic device and the second electronic device is the content on the first display screen. When the first electronic device approaches a first area of the second display screen, the first electronic device sends the content or information indicating that content to the second electronic device. The second electronic device then displays the content or the information indicating that content in the first area. In other words, the first electronic device can share its displayed content to the corresponding area of the second display screen by approaching it from different areas.
[0431] For example, the information indicating the content mentioned above may be a preview image of the content.
[0432] In some embodiments, the second electronic device displaying content in the first area can be specifically implemented as follows: the second electronic device receives a trigger operation on the preview image; in response to the trigger operation, the second electronic device displays content in the first area.
[0433] In this embodiment, in some implementations, the first area displays the first file before the first electronic device approaches the first area of the second display screen; then the second electronic device inserts the content into the first file for display, as shown in the examples in Figures 14 and 15.
[0434] In some embodiments, the first file may include a first sub-region and a second sub-region, the first region being the first sub-region; the second electronic device inserts content into the first file for display, including: the second electronic device inserts content into the first sub-region of the first file for display.
[0435] In this way, simply bringing one electronic device close to the screen of another allows for content sharing between the two devices. This eliminates the need for complex interface transitions to access the content sharing function or selecting the receiving device from a list of devices, simplifying the process of cross-device content sharing and making it more convenient and faster. Furthermore, it provides users with a "picking something up from the screen" experience, enhancing the sense of technology.
[0436] In some embodiments, the content is the content on the first display screen; step S3002 can be specifically implemented as follows: when the first electronic device approaches the second display screen, the first electronic device sends the content to the second electronic device. The second electronic device displays the content in a target area on the second display screen. For example, in this embodiment, the content may include an application interface, as shown in the examples in Figures 9 and 10. In this embodiment, regardless of which area of the second display screen the first electronic device approaches, the second electronic device can display the content shared by the first electronic device in a fixed area. For example, the target area may be a focus window, a focal window, or a top-level window, etc.
[0437] In this embodiment, in some implementations, the target area is the area displaying the target file, and the second electronic device inserts content into the target file for display. Optionally, the target file can be all files displayed on the second display screen, or files in the focus window, or files displayed in the top-level window, etc. That is, regardless of which area of the second display screen the first electronic device is close to, the second electronic device can insert the content shared by the first electronic device into all files for display.
[0438] In some embodiments, the content is a first service; step S3002 can be specifically implemented as follows: a first electronic device displays a first execution interface of the first service on a first display screen. The first electronic device sends service information (as described above for initiating the service) to a second electronic device, the service information being used to execute the first service. The second electronic device displays a second execution interface of the first service on the second display screen based on the service information, as shown in the examples in Figures 20 and 21a. Alternatively, the second electronic device displays a second execution interface of the first service on the first display screen. The second electronic device sends service information to the first electronic device, the service information being used to execute the first service. The first electronic device displays the first execution interface of the first service on the first display screen based on the service information. Optionally, the first execution interface and the second execution interface can be the same or different.
[0439] In some other embodiments, after the first electronic device approaches the second display screen, the first electronic device controls the second electronic device, or the second electronic device controls the first electronic device, as illustrated in the example of FIG28.
[0440] In some scenarios, the first electronic device can also achieve collaborative authentication by bringing its screen close to that of the second electronic device, such as scenarios including but not limited to payment, filling in verification codes, and authentication. For example, in a payment scenario, as shown in Figure 30b (1), the second electronic device 302 displays payment information 3001. For example, the payment information 3001 may include at least one piece of information such as payment amount and payment code. Then, as shown in Figure 30b (2), the first electronic device 301 brings its screen close to that of the second electronic device 302. Optionally, when the first electronic device 301 brings its screen close to that of the second electronic device 302, before completing the payment, the first electronic device may also output a reminder message such as "close to payment" to remind the user that the close-to-pay function is about to be performed.
[0441] In response to the first electronic device 301 approaching the display screen of the second electronic device 302, as shown in FIG30b(3), the first electronic device 301 completes the payment. Optionally, the first electronic device 301 may also display payment success indication information 3002 to indicate to the user that the payment has been successful. Optionally, the second electronic device 302 may also output payment success indication information (not shown in FIG30b(3)).
[0442] Optionally, in this payment scenario, in some implementations, the display screen of the second electronic device can show only one payment information, and the first electronic device can complete the payment operation by approaching any position on the display screen of the second electronic device. In other implementations, the display screen of the second electronic device can also support the display of multiple payment information. When the first electronic device approaches the display area of different payment information, it can complete the payment for the payment information in the approached area. Alternatively, a payment information can include multiple payment methods (e.g., QR codes of different payment applications). When the first electronic device approaches the display area of different payment methods, it can complete the payment using the corresponding payment method. For example, the second electronic device displays payment information 1, which includes payment code 1, payment code 2, and payment amount "200". When the first electronic device approaches payment code 1 included in the payment information 1 displayed by the second electronic device, in response to this operation, the first electronic device uses the payment application supported by payment code 1 to complete the payment of "200".
[0443] For another example, taking the scenario of filling in a verification code as an example, as shown in Figure 30c (1), the second electronic device 302 displays a verification code input area 3010, which is used to input the verification code received by the first electronic device 301 to complete the authentication. Optionally, the verification code can be a verification code used for various scenarios such as logging into an application, logging into a website, and making a payment. This application embodiment does not limit the use of the verification code. Next, as shown in Figure 30c (2), the first electronic device 301 approaches the display screen of the second electronic device 302, whereby the first electronic device 301 has received the verification code "1234" required to be entered by the verification code input area 3010 in front of the display screen of the second electronic device 302. In response to this operation, as shown in Figure 30c (3), the verification code received by the first electronic device 301 is input into the verification code input area 3010, and the second electronic device 302 reminds the user that the authentication has been successful. Optionally, the first electronic device 301 can also remind the user that the authentication has been successful (not shown in Figure 30c).
[0444] For another example, taking an authentication scenario, in this scenario, the first electronic device 301 serves as the verification end (or authentication device) of the second electronic device 302. The second electronic device 302 requires authentication (or authorization) from the first electronic device 301 to perform a certain function, such as, but not limited to, powering on, accessing a website, downloading an application, continuing to use an application after a set time limit, or continuing to use the device after a set time limit. For example, the second electronic device 302 is a device held by user 1 (e.g., a child), and the first electronic device 301 is a device held by user 2 (e.g., a parent). The second electronic device 302 requires authentication from the first electronic device 301 to power on. Or, in various scenarios such as when the usage time of the second electronic device 302 exceeds the set time limit, authentication from the first electronic device 301 is required for continued use, the first electronic device always serves as the verification end of the second electronic device.
[0445] As shown in Figure 30d(1), when the second electronic device 302 requires authentication from the first electronic device 301, the second electronic device 302 may display an interface 3020 requiring authentication from the verification end. Then, as shown in Figure 30d(2), the first electronic device 301 approaches the display screen of the second electronic device 302. Optionally, when the first electronic device 301 approaches the display screen of the second electronic device 302, before completing authentication, the first electronic device may also output a reminder message such as "Approach Authentication" to remind the user that the approach authentication function is about to be performed.
[0446] In response to the first electronic device 301 approaching the display screen of the second electronic device 302, as shown in Figure 30d (3), the first electronic device 301 completes the authentication of the second electronic device 302, and the second electronic device 302 can notify the user that the authentication has been successful. Of course, the first electronic device 301 can also notify the user that the authentication has been successful (not shown in Figure 30d (3)). Subsequently, the second electronic device 302 can perform the functions that can be performed after the authentication is successful.
[0447] The above primarily describes the solutions provided by the embodiments of this application from a methodological perspective. It is understood that, in order to achieve the above functions, the electronic device includes hardware structures and / or software modules corresponding to the execution of each function. Based on the units and algorithm steps of the various examples described in the embodiments disclosed in this application, the embodiments of this application can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed in hardware or by a computer driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the technical solutions of the embodiments of this application.
[0448] This application provides embodiments for dividing an electronic device into functional modules based on the above method examples. For example, each function can be divided into its own functional modules, or two or more functions can be integrated into a single processing unit. The integrated unit can be implemented in hardware or as a software functional module. It should be noted that the unit division in this application embodiment is illustrative and represents only one logical functional division; in actual implementation, other division methods may be used.
[0449] Figure 31 shows a schematic diagram of an electronic device provided in an embodiment of this application. The electronic device 3100 can be used to implement the methods executed by the electronic devices described in the above method embodiments. For example, the electronic device 3100 may include a processing unit 3101, a communication unit 3102, and a display unit 3103.
[0450] As a possible example, taking electronic device 3100 as the first electronic device, the processing unit 3101 is used to support electronic device 3100 in performing the processing function of the first electronic device as described in any one of Figures 1 to 30d; the communication unit 3102 is used to support electronic device 3100 in performing the communication function of the first electronic device as described in any one of Figures 1 to 30d; and the display unit 3103 is used to support electronic device 3100 in performing the display function of the first electronic device as described in any one of Figures 1 to 30d.
[0451] As another possible example, taking electronic device 3100 as a second electronic device, the processing unit 3101 is used to support electronic device 3100 in performing the processing function of the second electronic device as described in any one of Figures 1 to 30d; the communication unit 3102 is used to support electronic device 3100 in performing the communication function of the second electronic device as described in any one of Figures 1 to 30d; and the display unit 3103 is used to support electronic device 3100 in performing the display function of the second electronic device as described in any one of Figures 1 to 30d.
[0452] Optionally, the electronic device 3100 shown in FIG. 31 may further include a storage unit (not shown in FIG. 31) storing a program or instructions. When the processing unit 3101 executes the program or instructions, the electronic device 3100 shown in FIG. 31 can perform the method described in the above-described method embodiments.
[0453] The technical effects of the electronic device 3100 shown in Figure 31 can be referred to the technical effects described in the above method embodiments, and will not be repeated here. The processing unit 3101 involved in the electronic device 3100 shown in Figure 31 can be implemented by a processor or processor-related circuit components, and can be a processor or processing module. The communication unit 3102 can be implemented by a transceiver or transceiver-related circuit components, and can be a transceiver or transceiver module. The display unit 3103 can be implemented by display screen-related components.
[0454] This application also provides a chip system, as shown in FIG32, which includes at least one processor 3201 and at least one interface circuit 3202. The processor 3201 and the interface circuit 3202 are interconnected via lines. For example, the interface circuit 3202 can be used to receive signals from other devices. As another example, the interface circuit 3202 can be used to send signals to other devices (e.g., the processor 3201). Exemplarily, the interface circuit 3202 can read instructions stored in a memory and send the instructions to the processor 3201. When the instructions are executed by the processor 3201, the electronic device can perform the various steps performed by the electronic device in the above embodiments. Of course, the chip system may also include other discrete devices, which are not specifically limited in this application.
[0455] Optionally, the chip system may contain one or more processors. These processors can be implemented in hardware or software. When implemented in hardware, the processor can be a logic circuit, an integrated circuit, etc. When implemented in software, the processor can be a general-purpose processor, implemented by reading software code stored in memory.
[0456] Optionally, the chip system may contain one or more memories. The memory may be integrated with the processor or disposed separately from it; this application does not limit this. For example, the memory may be a non-transient processor, such as a read-only memory (ROM), which may be integrated with the processor on the same chip or disposed separately on different chips. This application does not specifically limit the type of memory or the arrangement of the memory and processor.
[0457] For example, the chip system may be a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), a system on chip (SoC), a central processor unit (CPU), a network processor (NP), a digital signal processor (DSP), a micro controller unit (MCU), a programmable logic device (PLD), or other integrated chips.
[0458] It should be understood that each step in the above method embodiments can be completed by integrated logic circuits in the processor hardware or by instructions in software form. The method steps disclosed in the embodiments of this application can be directly manifested as being executed by a hardware processor, or being executed by a combination of hardware and software modules in the processor.
[0459] This application also provides a computer storage medium storing computer instructions, which, when executed on an electronic device, cause the electronic device to perform the methods described in the above-described method embodiments.
[0460] This application provides a computer program product, which includes a computer program or instructions that, when run on a computer, cause the computer to perform the methods described in the above-described method embodiments.
[0461] In addition, this application also provides an apparatus, which may specifically be a chip, component or module. The apparatus may include a connected processor and a memory. The memory is used to store computer execution instructions. When the apparatus is running, the processor can execute the computer execution instructions stored in the memory to cause the apparatus to perform the methods in the above-described method embodiments.
[0462] In this embodiment, the electronic device, computer storage medium, computer program product or chip are all used to execute the corresponding method provided above. Therefore, the beneficial effects that can be achieved can be referred to the beneficial effects of the corresponding method provided above, and will not be repeated here.
[0463] Through the above description of the embodiments, those skilled in the art will understand that, for the sake of convenience and brevity, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0464] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. The embodiments can be combined with or referenced to each other without conflict. The apparatus embodiments described above are merely illustrative; for example, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another device, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms.
[0465] The units described as separate components may or may not be physically separate. A component shown as a unit can be one or more physical units; that is, it can be located in one place or distributed in multiple different locations. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0466] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0467] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solutions of the embodiments of this application, in essence, or the parts that contribute to the prior art, or all or part of the technical solutions, can be embodied in the form of a software product. This software product is stored in a storage medium and includes several instructions to cause a device (which may be a microcontroller, chip, etc.) or processor to execute all or part of the steps of the methods of the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0468] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A content sharing method, characterized in that, Applied to a second electronic device including a second display screen, the method includes: The second electronic device determines that the first electronic device is close to the second display screen based on the capacitance parameters of the second display screen, wherein the first electronic device includes the first display screen; Based on the communication connection between the second electronic device and the first electronic device, the second electronic device and the first electronic device share content, which is either the content displayed on the first display screen or the content displayed on the second display screen.
2. The method according to claim 1, characterized in that, The step of determining that the first electronic device is close to the second display screen includes: The second electronic device determines a first area where the first electronic device is close to the second display screen; Content sharing between the second electronic device and the first electronic device includes: the second electronic device sending the first content of the first area or information indicating the first content to the first electronic device, wherein the content includes the first content of the first area; or, The second electronic device receives the content or information indicating the content displayed on the first display screen from the first electronic device; the second electronic device displays the content or information indicating the content in the first area.
3. The method according to claim 2, characterized in that, The step of determining that the first electronic device is close to the second display screen also includes: The second electronic device determines a second area of the first electronic device that is close to the second display screen; Content sharing between the second electronic device and the first electronic device also includes: The second electronic device sends the second content of the second area or information indicating the second content to the first electronic device, wherein the content also includes the second content of the second area, and the second area is different from the first area.
4. The method according to claim 2 or 3, characterized in that, The information indicating the content includes a preview image of the content.
5. The method according to claim 4, characterized in that, The second electronic device displays the content in the first area, including: The second electronic device receives a trigger operation on the preview image; In response to the triggering operation, the second electronic device displays the content in the first area.
6. The method according to any one of claims 2-5, characterized in that, Before the second electronic device determines that the first electronic device is near the first area of the second display screen, the first area displays the first document; The second electronic device displays the content in the first area, including: The second electronic device inserts the content into the first file for display.
7. The method according to claim 6, characterized in that, The first file includes a first sub-region and a second sub-region, wherein the first region is the first sub-region; the second electronic device inserts the content into the first file for display, including: The second electronic device inserts the content into the first sub-region of the first file for display.
8. The method according to claim 1, characterized in that, The content is the content displayed on the first screen; content sharing between the second electronic device and the first electronic device includes: The second electronic device receives the content from the first electronic device; The second electronic device displays the content in a target area on the second display screen.
9. The method according to claim 8, characterized in that, The target area is the area where the target file is displayed; The second electronic device displays the content in a target area on the second display screen, including: The second electronic device inserts the content into the target file for display.
10. The method according to claim 2 or 8, characterized in that, The first content includes the application interface, or the content includes the application interface.
11. The method according to claim 1, characterized in that, The content is the first service; the second electronic device shares content with the first electronic device, including: The second electronic device receives service information from the first electronic device. The service information is used to execute a first service, which is the service corresponding to the first execution interface displayed on the first display screen. The second electronic device displays a second execution interface of the first service on the second display screen based on the service information; or, The second electronic device displays a second execution interface for the first service on the second display screen; The second electronic device sends service information to the first electronic device, and the service information is used to instruct the first electronic device to perform the first service.
12. The method according to any one of claims 1-11, characterized in that, After determining that the first electronic device is close to the second display screen, the method further includes: The second electronic device controls the first electronic device, or the second electronic device is controlled by the first electronic device.
13. The method according to any one of claims 1-12, characterized in that, The step of determining that the first electronic device is close to the second display screen includes: the second electronic device acquiring the capacitance parameters of the second display screen, wherein the capacitance parameters satisfy a preset condition.
14. The method according to claim 2, characterized in that, The second electronic device determines a first area near the second display screen by the first electronic device, including: The second electronic device acquires the capacitance value of the first region within a preset time period; If the capacitance value in the first region meets a preset condition within a preset time period, the second electronic device determines that the first electronic device is close to the first region.
15. A content sharing method, characterized in that, Applied to a first electronic device including a first display screen, the method includes: When the first electronic device is close to the second display screen of the second electronic device, based on the communication connection between the first electronic device and the second electronic device, the first electronic device and the second electronic device share content, which is either the content displayed on the first display screen or the content displayed on the second display screen.
16. The method according to claim 15, characterized in that, The content sharing between the first electronic device and the second electronic device when the first electronic device is close to the second display screen of the second electronic device includes: When the first electronic device is near a first area of the second display screen, the first electronic device receives first content of the first area or information indicating the first content from the second electronic device, the content including the first content of the first area; the first electronic device displays the first content or the information indicating the first content on the first display screen; Alternatively, when the first electronic device is near a first area of the second display screen, the first electronic device sends the content displayed on the first display screen or information indicating the content to the second electronic device, and the content displayed on the first display screen or information indicating the content is used to display in the first area.
17. The method according to claim 16, characterized in that, The provision that the first electronic device and the second electronic device share content when the first electronic device is close to the second display screen of the second electronic device further includes: When the first electronic device is close to the second area of the second display screen, the first electronic device receives second content of the second area or information indicating the second content from the second electronic device. The content also includes the second content of the second area, which is different from the first area. The first electronic device displays the second content or information indicating the second content on the first display screen.
18. The method according to claim 16 or 17, characterized in that, The information indicating the first content includes a preview image of the first content.
19. The method according to claim 18, characterized in that, The first electronic device displays the first content on the first display screen, including: The first electronic device receives a trigger operation on the preview image; In response to the triggering operation, the first electronic device displays the first content on the first display screen.
20. The method according to any one of claims 16-19, characterized in that, Before the first electronic device approaches the first area of the second display screen, the first electronic device displays the second document on the first display screen; The first electronic device displays the first content on the first display screen, including: The first electronic device inserts the first content into the second file for display.
21. The method according to claim 20, characterized in that, Before the first electronic device approaches the first area of the second display screen, the first electronic device also displays a third document on the first display screen; The first electronic device inserts the first content into the second file for display, including: The first electronic device inserts the first content into the second file and the third file for display.
22. The method according to claim 15, characterized in that, The content is the first service; content sharing between the first electronic device and the second electronic device includes: The first electronic device displays a first execution interface of the first service on the first display screen; The first electronic device sends service information to the second electronic device, and the service information is used by the second electronic device to perform the first service; or, The first electronic device receives service information from the second electronic device. The service information is used to execute a first service, which is the service corresponding to the second execution interface displayed on the second display screen. The first electronic device displays a first execution interface of the first service on the first display screen based on the service information.
23. The method according to any one of claims 15-22, characterized in that, Before content sharing occurs between the first electronic device and the second electronic device, the method further includes: The first electronic device is determined to be in a handheld scenario.
24. The method according to any one of claims 15-23, characterized in that, Before content sharing occurs between the first electronic device and the second electronic device, the method further includes: When the first electronic device approaches the second display screen of the second electronic device, the first electronic device receives a broadcast message from the second electronic device; The first electronic device establishes the communication connection with the second electronic device based on the broadcast message.
25. An electronic device, characterized in that, include: The electronic device includes a processor, a memory, a display screen, and a communication interface, wherein the memory, the display screen, and the communication interface are coupled to the processor, the communication interface is used to communicate with other devices, the memory is used to store program code including instructions, and the processor reads the instructions from the memory to cause the electronic device to perform the method as claimed in any one of claims 1-14, or to cause the electronic device to perform the method as claimed in any one of claims 15-24.
26. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a computer program that, when run on an electronic device, causes the electronic device to perform the method as claimed in any one of claims 1-14, or causes the electronic device to perform the method as claimed in any one of claims 15-24.
27. A computer program product, characterized in that, The computer program product includes: a computer program or instructions that, when executed on a computer, cause the computer to perform the method as described in any one of claims 1-14, or cause the computer to perform the method as described in any one of claims 15-24.
28. A communication system, characterized in that, It includes a first electronic device and a second electronic device, the first electronic device being configured to perform the method as described in any one of claims 15-24, and the second electronic device being configured to perform the method as described in any one of claims 1-14.