Detection method and electronic device
By using a semi-Idle mode in electronic devices to acquire detection data from capacitive touchscreens, the proximity of electronic devices or conductors can be determined, solving the problems of high operational difficulty and high power consumption of NFC modules, and enabling convenient and low-cost collaborative work.
Patent Information
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2025-06-19
- Publication Date
- 2026-03-05
AI Technical Summary
In existing technologies, electronic devices that rely on NFC functionality need to be aligned with the NFC module for collaborative operation, which is difficult to operate and increases hardware costs. At the same time, real-time proximity detection consumes a lot of power.
By acquiring display detection data in a semi-Idle mode (between Idle and Active modes) under specific events, and utilizing the capacitance distribution map of the capacitive touchscreen, the system can determine the proximity of electronic devices or conductors, triggering collaborative work, reducing operational difficulty and power consumption.
It enables convenient collaborative operation without aligning with the NFC module, reducing hardware costs and power consumption, and improving the accuracy and response speed of proximity detection.
Smart Images

Figure CN2025102209_05032026_PF_FP_ABST
Abstract
Description
Detection methods and electronic equipment
[0001] This application claims priority to Chinese Patent Application No. 202411218738.5, filed with the State Intellectual Property Office of China on August 30, 2024, entitled "Detection Method and Electronic Equipment", the entire contents of which are incorporated herein by reference. Technical Field
[0002] This application relates to the field of terminal technology, and in particular to a detection method and electronic device. Background Technology
[0003] In daily life or work, users may need to use different types of electronic devices. By enabling multiple electronic devices to work collaboratively, tasks can be completed more conveniently and efficiently. Generally, based on Near Field Communication (NFC) technology, content sharing between different devices is possible. For example, a user can tap their phone against the NFC recognition area of a computer to trigger a short-range communication connection between the phone and computer. Based on this short-range communication connection, the phone can share content to the computer, or the computer can share content to the phone, enabling collaborative work between the phone and computer.
[0004] However, content sharing that relies on NFC increases hardware costs and requires users to align the NFC modules of different devices, making it more difficult to operate.
[0005] In addition, users may also collaborate with electronic devices through gestures, such as controlling the content displayed on the device with their hands. However, current gesture control relies on real-time proximity detection of an external conductor, resulting in high power consumption. Summary of the Invention
[0006] To address the aforementioned technical problems, this application provides a detection method and an electronic device. The technical solution provided by this application can, upon the occurrence of a specific event, acquire detection data obtained at a first frequency to detect the proximity of other electronic devices or conductors, triggering collaborative operation. This reduces the difficulty of user operation, improves the user experience, and reduces the power consumption of proximity detection.
[0007] To achieve the above objectives, this application adopts the following technical solution:
[0008] A first aspect provides a detection method applied to a first electronic device, the method comprising: determining that a first event has occurred; acquiring detection data of the display screen of the first electronic device at a first frequency upon determining that the first event has occurred; identifying a second electronic device or other conductor close to the first electronic device based on the detection data acquired at the first frequency; and initiating cooperative operation between the first electronic device and the second electronic device, or initiating cooperative operation between the first electronic device and other conductors.
[0009] Thus, in response to the acquisition of detection data for a specific event, the first electronic device can detect the proximity of the second electronic device or other conductor, 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, electronic devices can be exempt from installing NFC modules, reducing hardware costs. In addition, compared to real-time proximity detection, it reduces power consumption.
[0010] According to the first aspect, the detection data of the display screen is acquired at a first frequency. Specifically, this may be to acquire 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 may be a mode between an idle mode and an active mode (also known as a half-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.
[0011] 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.
[0012] According to the first aspect, or any implementation of the first aspect above, after determining the second electronic device or other conductor near the first electronic device, the method further includes: acquiring detection data of a 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 second electronic device or other conductor is determined.
[0013] In some examples, collaborative work is initiated between the first electronic device and the second electronic device, or between the first electronic device and other conductors, and then this collaborative work can be carried out based on the first region.
[0014] In this way, the first electronic device can obtain the area of the second electronic device near the display screen through capacitance data, enabling more accurate content sharing.
[0015] According to the first aspect, or any implementation of the first 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.
[0016] In this way, the first electronic device responds to the first event by increasing the frequency of reporting detection data, thereby improving the accuracy of judging the proximity of other devices or conductors.
[0017] According to the first aspect, or any implementation of the first aspect above, the first frequency is greater than or equal to 5 Hz and less than or equal to 50 Hz.
[0018] According to the first aspect, or any implementation of the first aspect above, the first frequency is greater than or equal to 20 Hz and less than or equal to 25 Hz.
[0019] According to the first aspect, or any implementation of the first aspect above, the first frequency is 20 Hz or 21 Hz.
[0020] According to the first aspect, or any implementation of the first aspect above, determining a second electronic device or other conductor close to a first electronic device includes: determining that the second electronic device or other conductor is close to the first 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 change in the detection data acquired at the first frequency is greater than a preset threshold. In some examples, the first electronic device is equipped with a capacitive touch screen, which includes multiple capacitor modules. The first 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 touch screen. Optionally, a reference capacitance value for the capacitor modules is pre-configured in the first electronic device. Then, after acquiring the capacitance value of each capacitor module, the first electronic device can compare it with the reference capacitance value to determine whether the difference is greater than or equal to a preset threshold. Wherein, if the capacitance value difference is greater than or equal to the preset threshold, there is a possibility that a conductor is close to the corresponding capacitor module. Optionally, the reference capacitance value may be the average value measured in the history of the capacitive touch screen of the first electronic device when no other conductor is close.
[0021] For example, the first 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 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 a second electronic device or other conductor currently present near the first electronic device can be identified.
[0022] For example, the first electronic device acquires a capacitance value distribution map. In this map, the first electronic device uses a first pattern " / " to indicate capacitance values where the change in capacitance value exceeds a preset threshold. For instance, the preset pattern is an arrangement that 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. The first electronic device acquires that the arrangement of the first pattern conforms to the preset pattern. Therefore, the first electronic device can detect the proximity of other electronic devices.
[0023] In this way, by increasing the frequency of reporting detection data, the first electronic device can improve the accuracy and recall of determining whether the second electronic device or other conductors are near the display screen.
[0024] According to the first aspect, or any implementation of the first aspect above, initiating collaborative work between the first electronic device and the second electronic device includes: sharing first content displayed on the first area to the second electronic device; or, displaying second content shared by the second electronic device on the first area.
[0025] In some examples, the collaboration between the first electronic device and the second electronic device is based on the first region.
[0026] In some examples, the first or second content is shared via a short-range communication connection.
[0027] In some examples, a short-range communication connection is established between a first electronic device and a second electronic device before the first or second content is shared.
[0028] Thus, when the second electronic device approaches, the first electronic device can share content based on the first area.
[0029] Based on the first aspect, or any implementation of the first 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.
[0030] For example, after content sharing is completed, if the user still has a need to share content, causing the first electronic device to continue displaying the first application in the foreground, then 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.
[0031] In this way, the first electronic device reduces the frequency of reporting detection data, thereby reducing power consumption. Furthermore, in situations where content sharing is possible, the first electronic device can acquire detection data at a relatively high initial frequency, ensuring the accuracy of subsequent content sharing processes.
[0032] According to the first aspect, or any implementation of the first 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.
[0033] 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.
[0034] According to the first aspect, or any implementation of the first aspect above, the method further includes: determining that a fifth event has occurred, and switching the frequency of acquiring detection data from the display screen to a first frequency, wherein the fifth event includes: detecting that an editing operation has stopped during the process of displaying the display interface of the second application in the foreground.
[0035] For example, while the first 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 first electronic device can improve the accuracy of the subsequent content sharing process based on the detection data reported at a higher frequency.
[0036] 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.
[0037] According to the first aspect, or any implementation of the first aspect above, the first event includes: a first launch event of a first application in a first electronic device.
[0038] According to the first aspect, or any implementation of the first 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.
[0039] According to the first aspect, or any implementation of the first aspect above, the first event further includes: 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.
[0040] According to the first aspect, or any implementation of the first aspect above, the detection data is capacitance data.
[0041] According to the first aspect, or any implementation of the first 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 first electronic device is acquired at a first frequency, including: the processor acquiring the detection data reported by the touch IC at the first frequency.
[0042] Secondly, a detection method is provided, applied to a first electronic device, the method comprising: determining that a first event has occurred; upon determining that the first event has occurred, acquiring detection data of the display screen of the first electronic device at a first frequency; wherein the first frequency is greater than the frequency at which the display screen detection data was acquired before the first event occurred; determining, based on the detection data acquired at the first frequency, the presence of a second electronic device or other conductor close to the first electronic device; and initiating cooperative operation between the first electronic device and the second electronic device, or initiating cooperative operation between the first electronic device and other conductors.
[0043] In some examples, the first electronic device determines the presence of a conductor near it based on detection data acquired at a first frequency. This conductor could be, for example, a second electronic device or another conductor.
[0044] Thus, in response to the acquisition of detection data for a specific event, the first electronic device can detect the proximity of the second electronic device or other conductor, 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, electronic devices can be exempt from installing NFC modules, reducing hardware costs. In addition, compared to real-time proximity detection, it reduces power consumption.
[0045] According to the second 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 operating 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 half-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.
[0046] In some examples, the semi-Idle mode can also be described as the Monitor mode.
[0047] 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.
[0048] According to the second aspect, or any implementation of the second aspect above, after determining that a second electronic device or other conductor is near the first electronic device, the method further includes: acquiring detection data of a refreshed display screen at a second frequency greater than the first frequency. Based on the refreshed detection data, determining the location of the second electronic device or other conductor near the display screen.
[0049] In some examples, collaborative operation is initiated between the first electronic device and the second electronic device, or between the first electronic device and other conductors. This collaborative operation can then be based on the proximity of the second electronic device. Optionally, this proximity can be associated with a first display area on the screen.
[0050] For example, the first display area is the display area corresponding to the first window, wherein the first window is the window on the display screen near which the second electronic device is located. For example, the first display area can be the area corresponding to this first window, such as the area where the first window is located. Alternatively, the first display area can also be the area where the element near the second electronic device is located within the first window.
[0051] For example, the first display area is specifically the display area corresponding to the first display element, wherein the first display area is the display area on the display screen where the second electronic device is close to it.
[0052] In this way, the first electronic device can obtain the area of the second electronic device near the display screen through capacitance data, enabling more accurate content sharing.
[0053] According to the second aspect, or any implementation of the second 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.
[0054] In this way, the first electronic device responds to the first event by increasing the frequency of reporting detection data, thereby improving the accuracy of judging the proximity of other devices or conductors.
[0055] According to the second aspect, or any implementation of the second aspect above, the first frequency is less than the second frequency and greater than the third frequency, wherein the second frequency is the frequency at which the first electronic device acquires the detection data of the display screen when the display screen is in an active mode (such as Active mode), and the third frequency is the frequency at which the first electronic device acquires the detection data of the display screen when the display screen is in an idle mode (such as Idle mode), wherein the frequency at which the detection data of the display screen is acquired before the first event occurs is the third frequency.
[0056] In this way, the first electronic device can switch the display mode and adjust the frequency of acquiring detection data from the display, thereby achieving a balance between power consumption and parameters that measure response performance, such as response speed, recall, and accuracy.
[0057] According to the second aspect, or any implementation of the second aspect above, the first frequency is greater than or equal to 5 Hz and less than or equal to 50 Hz.
[0058] According to the second aspect, or any implementation of the second aspect above, the first frequency is greater than or equal to 20 Hz and less than or equal to 25 Hz.
[0059] According to the second aspect, or any implementation of the second aspect above, the first frequency is 20 Hz or 21 Hz.
[0060] According to the second aspect, or any implementation of the second aspect above, the first frequency is greater than or equal to 5 Hz and less than or equal to 20 Hz.
[0061] According to the second aspect, or any implementation of the second aspect above, the first frequency is greater than or equal to 8 Hz and less than or equal to 12 Hz.
[0062] According to the second aspect, or any implementation of the second aspect above, the first frequency is 9 Hz, 10 Hz or 11 Hz.
[0063] According to the second aspect, or any implementation of the second aspect above, determining the existence of a second electronic device or other conductor close to the first electronic device includes: determining that the second electronic device or other conductor is close to the first electronic device when the detection data acquired at the first frequency meets a first condition; wherein the first condition includes: the arrangement of target detection data in the detection data acquired at the first frequency conforms to a preset rule, the target detection data is detection data that meets the target condition, and the target condition includes: the change amount is greater than a preset threshold.
[0064] In some examples, the first electronic device is equipped with a capacitive touchscreen, which includes multiple capacitor modules. The first 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 first 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 first 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 second electronic device or other conductor may be near the corresponding capacitor module. Optionally, the reference capacitance value may be the average value measured historically when no other conductor has been near the capacitive touchscreen of the first electronic device.
[0065] As mentioned above, the capacitance value distribution map can be a distribution map of the capacitance values detected by the first electronic device. Alternatively, the capacitance value distribution map can also be a distribution map of the difference between the capacitance value detected by the first electronic device and the reference capacitance value.
[0066] For example, a first electronic device can scan the entire capacitance value distribution map using a preset shape. If, at a certain moment, the first difference between the capacitance value of all capacitor modules within the preset shape and the reference capacitance value is greater than or equal to a preset threshold, or if, at a certain moment, the first difference between the average capacitance value of the capacitor modules within the preset shape and the reference capacitance value is greater than or equal to the preset threshold, then it can be determined that a second electronic device or other conductor is currently close to the first electronic device. In the current example scenario, the first condition satisfied by the detection data acquired at the first frequency is that the change in the detection data acquired at the first frequency is greater than a preset threshold.
[0067] For example, a first electronic device acquires a capacitance value distribution map. In this map, the first electronic device uses a first pattern " / " to indicate capacitance values whose second difference from a reference capacitance value is greater than or equal to a preset threshold. For instance, the preset pattern might be an arrangement conforming to a hollow cross shape. Optionally, the lengths of the horizontal and vertical lines of this cross shape can be different or the same. The first electronic device acquires that the arrangement of the first pattern conforms to the preset pattern. Therefore, the first electronic device can detect the proximity of other electronic devices. In the current example scenario, the target detection data is the detection data acquired at a first frequency whose change exceeds a preset threshold. The first condition satisfied by the detection data acquired at the first frequency is that the arrangement of the target detection data in the detection data acquired at the first frequency conforms to the preset pattern.
[0068] For example, the first electronic device acquires a capacitance value distribution map. From this map, it identifies capacitance values whose third difference from a reference capacitance value is greater than or equal to a preset threshold. Then, among these capacitance values, the first electronic device first finds point A with the largest third difference. For instance, the third difference between point A and the reference capacitance value must be greater than the differences between the capacitance values of other points and the reference capacitance value. Next, the first electronic device searches within a 3x3 grid centered on point A for at least one point B that satisfies the growth condition, and incorporates point B into a connected component containing point A. Optionally, the growth condition includes, for example, that the third difference corresponding to point B is greater than or equal to X% of the third difference corresponding to point A at the center of the 3x3 grid (where X is between 0 and 100). For example, if the third difference corresponding to point B is b, the third difference corresponding to point A is a, X is 20%, and b ≥ 20%a. Then, the aforementioned steps are repeated, with the first electronic device performing the 3x3 search centered on each newly incorporated point until no more points are incorporated into the connected component. For example, if the new 3x3 grid no longer includes points whose corresponding third difference is greater than or equal to a preset threshold capacitance value, or if the new 3x3 grid no longer includes points whose corresponding third difference is greater than or equal to the third difference of the center point, the search can stop. Then, the first electronic device calculates the length of the long side and the length of the short side of the connected component. The length of the long side and the length of the short side conform to a third preset rule. Then, the first electronic device can detect the proximity of other electronic devices. Optionally, the third preset rule may include, for example, that the long side length is within a first interval and the short side length is within a second interval. Optionally, the connected component can be rectangular, approximately elliptical, or other regular or irregular shapes. For example, in the case of a rectangular connected component, the long side is the long side of the rectangle, and the short side is the short side of the rectangle. In the case of an approximately elliptical connected component, the long side is the major axis of the approximately ellipse, and the short side is the minor axis of the approximately ellipse. It should be understood that each point in the capacitance value distribution map corresponds to one or more capacitance modules. In the current example scenario, the target detection data is a portion of the detection data obtained at the first frequency whose change exceeds a preset threshold. The first condition that the detection data obtained at the first frequency meets is that the arrangement of the target detection data in the detection data obtained at the first frequency conforms to a preset rule.
[0069] In this way, by increasing the frequency of reporting detection data, the first electronic device can improve the accuracy and recall of determining whether the second electronic device or other conductors are near the display screen.
[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 short-range communication connection is established between a first electronic device and a second electronic device before the first or second content is shared.
[0073] Thus, when the second electronic device approaches, the first electronic device can share content based on the first area.
[0074] According to the second aspect, or any implementation of the second 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.
[0075] 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.
[0076] According to the second aspect, or any implementation of the second aspect above, the method further includes: determining that a fifth event has occurred, and switching the frequency of acquiring detection data from the display screen to a first frequency, wherein the fifth event includes: detecting that an editing operation has stopped during the process of displaying the display interface of the second application in the foreground.
[0077] For example, while the first 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 first electronic device can improve the accuracy of the subsequent content sharing process based on the detection data reported at a higher frequency.
[0078] 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.
[0079] According to the second aspect, or any implementation of the second aspect above, the method further includes: determining that a sixth event has occurred, and switching the frequency of acquiring detection data of the display screen to a first frequency. The sixth event includes: within a preset time period after switching the frequency of acquiring detection data of the display screen to a second frequency, the detection data acquired at the second frequency does not meet a second condition. The second condition includes: the arrangement of target detection data in the detection data acquired at the second frequency conforms to a preset rule, the target detection data being detection data that meets a target condition, and the target condition including: the amount of change is greater than a preset threshold.
[0080] For example, if the first electronic device detects the approach of the second electronic device while acquiring detection data at a first frequency, it can switch to a second frequency to continue acquiring detection data. For instance, it can switch from a semi-idle mode to an active mode. After content sharing is completed, within a preset time (e.g., 3 seconds, 5 seconds), the first electronic device, based on the detection data acquired at the second frequency, determines that some or all of the detection data whose difference from the baseline detection data is greater than or equal to a preset threshold does not meet a preset rule. The first electronic device can then determine that the second electronic device is no longer approaching. Therefore, the first electronic device can switch back to the first frequency to continue acquiring detection data. For instance, it can switch from an active mode to a semi-idle mode.
[0081] In this way, after sharing is completed, the frequency of reporting detection data can be reduced, thereby reducing power consumption.
[0082] According to the second aspect, or any implementation of the second aspect above, the first event includes at least one of the following events: an unlocking event of the first electronic device; a first launch event of a first application in a first application set in the first electronic device; a first exit event of a third application in a second application set of the first electronic device, wherein, after the first exit event of the third application, all applications in the second application set are not in the foreground running state; 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; and an activation event of the proximity sharing function of the first electronic device.
[0083] According to the second aspect, or any implementation of the second 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.
[0084] According to the second aspect, or any implementation of the second aspect above, the third application is a second target application preset by the system or a second target application specified by the user; and / or, the third application includes: a game application.
[0085] According to the second aspect, or any implementation of the second aspect above, the method further includes: determining that a seventh event has occurred during the process of acquiring detection data of the display screen of the first electronic device at a first frequency. Upon determining that the seventh event has occurred, acquiring detection data of the display screen of the first electronic device at a third frequency, wherein the first frequency is greater than the third frequency; wherein the seventh event includes at least one of the following events: a second exit event of a first application in a first application set of the first electronic device, and after the second exit event of the first application, all applications in the first application set are not in the foreground running state; a screen lock event of the first electronic device; a second launch event of a third application in a second application set of the first electronic device; no other electronic device logged into the same account as the first electronic device within the short-range communication range of the first electronic device; and a disabling event of the proximity sharing function of the first electronic device.
[0086] For example, after the first electronic device is activated, a first event occurs, determining the possibility that a second electronic device or other conductor may be approaching for interaction. Then, the first electronic device can acquire detection data at a first frequency. Optionally, if the first electronic device determines that a second electronic device or other conductor is approaching while acquiring detection data at the first frequency, it can switch to a higher second frequency to acquire detection data. Optionally, if the first electronic device determines a seventh event while acquiring detection data at the first frequency, indicating a low probability of sharing, it can switch to a lower third frequency to acquire detection data. Optionally, if the first electronic device determines a first event while acquiring detection data at the third frequency, indicating an increased probability of sharing, it can switch to a higher first frequency to acquire detection data, in order to determine whether a second electronic device or other conductor is approaching.
[0087] 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.
[0088] According to the second aspect, or any implementation of the second aspect above, the first event further includes: 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.
[0089] According to the second aspect, or any implementation of the second aspect above, the detection data is capacitance data.
[0090] According to the second aspect, or any implementation of the second 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 first electronic device is acquired at a first frequency, including: the processor acquiring the detection data reported by the touch IC at the first frequency.
[0091] According to the second aspect, or any implementation of the second aspect above, initiating the collaborative work between the first electronic device and the second electronic device includes: sending first sharing content to the second electronic device, wherein the first sharing content is determined according to a first window; wherein the first window is the window on the display screen in which the second electronic device is close.
[0092] Therefore, in this embodiment, when the second electronic device approaches the display screen of the first electronic device, it can trigger the first electronic device to share content with the second electronic device, improving the convenience and efficiency of cross-device content sharing. Furthermore, if a user wants to share information from the first window of the first electronic device with the second electronic device, the second electronic device is brought close to the first window. In other words, the content to be shared is determined based on which window the second electronic device is close to, making content sharing more precise and improving the user experience.
[0093] According to the second aspect, or any implementation of the second aspect above, the first shared content includes at least one of the following: first content in the first window; or, first information for indicating the first content; or, second information indicated by the first content.
[0094] Therefore, in this embodiment, the second electronic device shares the first content or its associated information within a window of the first electronic device with the second electronic device, enabling more precise cross-device content sharing and improving user experience. The associated information of the first content may be first information indicated by the first content, or second information used to indicate the first content.
[0095] According to the second aspect, or any implementation of the second aspect above, the first shared content is the content of the first application to which the first window belongs.
[0096] Therefore, in this embodiment, the content of the application to which the second electronic device belongs is shared with the second electronic device based on which window the second electronic device is closer to. In other words, by being closer to the window, content sharing of the application to which the window belongs is achieved, making content sharing more accurate and improving the user experience.
[0097] According to the second aspect, or any implementation of the second aspect above, the first window is a window on the display screen where the second electronic device is close, including: the first window contains a first position coordinate, the first position coordinate being the coordinate of the position where the second electronic device is close on the display screen.
[0098] Therefore, in this embodiment of the application, the first electronic device can detect the coordinates of the proximity position of the second electronic device on the display screen, determine which window the second electronic device is close to based on the coordinates, and then determine the content to be shared based on the window, so as to achieve the effect of sharing the content of the window that is close to.
[0099] According to the second aspect, or any implementation of the second aspect above, the first position coordinate is a position coordinate within a first region, and the first region is the region where the detection parameters of the display screen change when the second electronic device approaches the display screen.
[0100] Therefore, in this embodiment of the application, the first electronic device can determine the area of change of detection parameters on the display screen, determine the first position coordinates within the area, determine which window the second electronic device is close to based on the coordinates, and then determine the content to be shared based on the window, so as to achieve the effect of sharing the content of the window that is close to.
[0101] According to the second aspect, or any implementation of the second aspect above, the first window is one of N windows on the display screen, where N is an integer greater than or equal to 2.
[0102] Therefore, in this embodiment of the application, when the first electronic device displays multiple windows, the second electronic device determines the content to be shared based on which window it is closest to, thus achieving more accurate cross-device content sharing.
[0103] According to the second aspect, or any implementation of the second aspect above, the first window is a non-focus window.
[0104] Therefore, in this embodiment of the application, when the first electronic device displays multiple windows, the second electronic device may be close to a non-focus window. The content to be shared is then determined based on the non-focus window. In this process, the user does not need to manually adjust the non-focus window to the focus window, which improves convenience.
[0105] According to the second aspect, or any implementation of the second aspect above, when the second electronic device is close to multiple windows on the display screen, the first window is the topmost window among the multiple windows.
[0106] Therefore, in this embodiment of the application, if the first electronic device displays multiple windows, and the second electronic device is close to the multiple windows, the content to be shared is determined based on the topmost window, making the content sharing more accurate.
[0107] According to the second aspect, or any implementation of the second aspect above, sending the first shared content to the second electronic device includes: sending the second electronic device first information for indicating the first content; and, upon receiving a request message sent by the second electronic device, sending the first content to the second electronic device, wherein the request message is used to request the first content.
[0108] Therefore, in this embodiment of the application, by first sending preview information of the first content (i.e., first information used to indicate the first content), it is determined whether the first content is the content that the user expects to receive. If so, the first content itself is then sent, avoiding the direct sending of the first content, which would result in a large amount of data and is not the content that the user expects, thus avoiding wasted power consumption.
[0109] According to the second aspect, or any implementation of the second aspect above, sending the first shared content to the second electronic device includes: sending the second electronic device first information for indicating the first content; and not sending the first content to the second electronic device if a request message is not received from the second electronic device, wherein the request message is used to request the first content.
[0110] Therefore, in this embodiment of the application, the first electronic device first sends preview information of the first content (i.e., first information used to indicate the first content) to the second electronic device. If no request message is received from the second electronic device, there is no need to send the first content itself, thus avoiding sending the first content directly. The first content has a large amount of data and is not the content expected by the user, resulting in wasted power consumption.
[0111] According to the second aspect, or any implementation of the second aspect above, the method further includes: detecting the second electronic device approaching the display screen again; sending third sharing content to the second electronic device, the third sharing content being determined based on a second window, the second window being the window that the second electronic device is approaching when the second electronic device is detected approaching the display screen again, the second window and the first window belonging to the same application or different applications.
[0112] Therefore, in this embodiment, when a user brings the second electronic device close to the first window on the first electronic device, the first electronic device is triggered to share the content of the first window with the second electronic device; if the user brings the second electronic device close to the first electronic device and then close to the second window on the first electronic device, the first electronic device is triggered to share the content of the second window with the second electronic device, thus achieving the effect of sharing the content of the window that is brought close to.
[0113] It should be noted that the principle by which the first electronic device sends the third shared content to the second electronic device is the same as the principle by which it sends the first shared content to the second electronic device. For example, the first electronic device sends information to the second electronic device to indicate the second content (the content in the second window); if it receives a request message from the second electronic device, it sends the second content to the second electronic device; if it does not receive a request message from the second electronic device, it does not send the second content to the second electronic device. The request message is used to request the second content.
[0114] According to the second aspect, or any implementation of the second aspect above, if no request message is received from the second electronic device, the first electronic device does not interrupt the connection between the first electronic device and the second electronic device, and the third sharing content is sent through the connection.
[0115] Therefore, in this embodiment of the application, the first electronic device first sends preview information of the first content (i.e., first information used to indicate the first content) to the second electronic device. If no request message is received from the second electronic device, the first content itself does not need to be sent, and the connection between the first electronic device and the second electronic device is not interrupted. This way, when the second electronic device is detected to be close to the display screen again, there is no need to re-establish the connection, and the third shared content can be sent through the connection, thereby improving efficiency.
[0116] According to the second aspect, or any implementation thereof, the first information used to indicate the first content includes: preview information of the first content. Therefore, this method avoids directly transmitting the first content, which may not be what the user expects, thus preventing wasted power consumption.
[0117] According to the second aspect, or any implementation of the second aspect above, the preview information of the first content is a preview image of the first content.
[0118] According to the second aspect, or any implementation of the second aspect above, if the first content is a first image, then the preview information is a thumbnail of the first image; or, if the first shared content is a first document, then the preview information includes at least one of the following: the name, format, brief content description, and screenshot of the content page of the first document.
[0119] According to the second aspect, or any implementation of the second aspect above, before sending the first information to the second electronic device, the method includes: obtaining first shared content in the first window from a first application, wherein the first application is the application to which the first window belongs.
[0120] Therefore, in this embodiment of the application, when the first electronic device determines that the second electronic device is close to the first window, it can obtain the shared content from the first application to which the first window belongs, and send the shared content to the second electronic device to realize content sharing at the window level, making cross-device content sharing more accurate.
[0121] According to the second aspect, or any implementation of the second aspect above, obtaining the first shared content from the first application in the first window includes: calling a callback function of the first window, the callback function being used to trigger the first application to provide the first shared content in the first window.
[0122] Therefore, in this embodiment of the application, when the first electronic device determines that the second electronic device is close to the first window, it can obtain the shared content through the callback function of the first window and send the shared content to the second electronic device to realize content sharing at the window level, making cross-device content sharing more accurate.
[0123] According to the second aspect, or any implementation of the second aspect above, before sending the first shared content to the second electronic device, the method further includes: obtaining the first shared content in a first display element, wherein the first display element is the display element in the first window that the second electronic device is close to.
[0124] Therefore, in this embodiment of the application, when the first electronic device determines that the second electronic device is close to the first display element of the first window, it can send the shared content in the first display element to the second electronic device to realize content sharing at the display element level, making cross-device content sharing more accurate.
[0125] According to the second aspect, or any implementation of the second aspect above, obtaining the first shared content in the first display element includes: calling a callback function of the first display element, wherein the callback function is used to trigger the first application to provide the first shared content in the first display element, and the first application is the application to which the first window belongs.
[0126] Therefore, in this embodiment of the application, when the first electronic device determines that the second electronic device is close to the first display element, it can obtain the shared content in the first display element through the callback function of the first display element and send the shared content to the second electronic device to realize content sharing at the display element level, making cross-device content sharing more accurate.
[0127] According to the second aspect, or any implementation of the second aspect above, the first display element includes at least one of the following: a search component, a text input component, a form component, a rich text editing component, an image component, and a hyperlink component. It should be noted that this is merely an example of a display element, and other types of display elements are also possible.
[0128] According to the second aspect, or any implementation of the second aspect above, before sending the first shared content to the second electronic device, the method further includes: obtaining the first shared content of the first application, wherein the first application is the application to which the first window belongs.
[0129] Therefore, in this embodiment of the application, when the first electronic device determines that the second electronic device is close to the first window, it can obtain the shared content of the application to which the first window belongs and send it to the second electronic device. By being close to the window, the content sharing of the application to which the window belongs is realized, making the content sharing more accurate and the user experience better.
[0130] According to the second aspect, or any implementation of the second aspect above, obtaining the first shared content of the first application from the first application includes: calling a callback function of the first application, the callback function being used to trigger the first application to provide the first shared content of the first application.
[0131] Therefore, in this embodiment of the application, when the first electronic device determines that the second electronic device is close to the first window, it can obtain the shared content and send it to the second electronic device through the callback function of the application to which the first window belongs, thereby realizing content sharing at the application level.
[0132] According to the second aspect, or any implementation of the second aspect above, the method further includes: displaying first indication information on the display screen, the first indication information being used to indicate the proximity position of the second electronic device on the display screen. Therefore, in this way, the user can know the proximity position of the second electronic device on the display screen, resulting in a better user experience.
[0133] According to the second aspect, or any implementation thereof, displaying the first indication information on the display screen includes: displaying the first indication information in a second area on the display screen, the second area including first position coordinates, the first position coordinates being the coordinates of the proximity position of the second electronic device on the display screen. Therefore, in this way, the user can know which position the second electronic device is closest to on the display screen, resulting in a better user experience.
[0134] According to the second aspect, or any implementation thereof, displaying the first indication information in the second area includes: displaying the second area as a first color. Therefore, in this way, the user can know the location of the second electronic device on the display screen, resulting in a better user experience.
[0135] According to the second aspect, or any implementation of the second aspect above, the method further includes: detecting that a first condition is met, and canceling the display of the first indication information, wherein the first condition includes at least one of: the display duration of the first indication information reaching a preset duration, the second electronic device leaving the display screen, and the connection between the second electronic device and the first electronic device being disconnected. Therefore, this method can prevent the first indication information from being continuously displayed, thus avoiding interference with the user.
[0136] According to the second aspect, or any implementation of the second aspect above, the method further includes: after the second electronic device leaves the display screen, determining the mapped position of the second electronic device on the display screen based on the position movement of the second electronic device; sending fourth sharing content to the second electronic device, the fourth sharing content being determined based on a fourth window, the fourth window being a window containing the mapped position.
[0137] Therefore, in this embodiment of the application, after the second electronic device leaves the display screen of the first electronic device, the second electronic device moves its position, which can trigger the first electronic device to share new content (the content in the window at the mapped position of the second electronic device on the display screen) with the second electronic device, thereby achieving the effect of sharing multiple times with one approach.
[0138] According to the second aspect, or any implementation of the second aspect above, the method further includes: displaying a first animation effect on the display screen, the first animation effect being used to demonstrate the visual effect of the dynamic change of the mapped position of the second electronic device on the display screen as the position of the second electronic device changes. Therefore, in this way, the user can know how the mapped position of the second electronic device changes on the display screen. Thus, the user can change the position of the second electronic device so that its mapped position moves to the user's desired window, thereby triggering the first electronic device to share the content in that window with the second electronic device. In this process, the user only needs to move the second electronic device to trigger the content sharing by the first electronic device, making the operation convenient and providing a good user experience.
[0139] According to the second aspect, or any implementation thereof, the first animation effect displayed on the display screen includes: displaying first indication information at a position close to the second electronic device on the display screen, and maintaining the display of the first indication information after the second electronic device leaves the display screen; the display position of the first indication information correspondingly moves as the second electronic device moves. Therefore, in this way, the user can know how the mapped position of the second electronic device on the display screen changes, resulting in a better user experience.
[0140] According to the second aspect, or any implementation of the second aspect above, before sending the first information to the second electronic device, the method further includes: determining the first electronic device as a sharing party based on the content displayed in the first window; or receiving a user-specified operation for specifying the first electronic device as a sharing party.
[0141] Therefore, in this embodiment of the application, when the first electronic device detects that the second electronic device is close to the first window, if it is determined that there is content to be shared in the first window, the first electronic device is determined to be the sender and the content to be shared is shared with the second electronic device, thereby achieving efficient and convenient cross-device content sharing.
[0142] According to the second aspect, or any implementation of the second aspect above, the method further includes: if the first window is a non-focus window, then switching the first window to a focus window. Therefore, in this embodiment of the application, when the second electronic device is close to the first window and the first window is a non-focus window, the first electronic device can switch the first window to a focus window without requiring the user to manually adjust the first window to a focus window, which is more convenient.
[0143] According to the second aspect, or any implementation of the second aspect above, switching the first window to the focus window includes: generating a virtual event for the first window, the virtual event being used to trigger the first window to switch to the focus window. Therefore, this method eliminates the need for the user to manually adjust the focus window, making it more convenient.
[0144] According to the second aspect, or any implementation of the second 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.
[0145] For example, after content sharing is completed, if the user still has a need to share content, causing the first electronic device to continue displaying the first application in the foreground, then 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.
[0146] In this way, the first electronic device reduces the frequency of reporting detection data, thereby reducing power consumption. Furthermore, in situations where content sharing is possible, the first electronic device can acquire detection data at a relatively high initial frequency, ensuring the accuracy of subsequent content sharing processes.
[0147] According to the second aspect, or any implementation of the second aspect above, initiating the collaborative work between the first electronic device and the second electronic device includes: receiving second shared content sent by the second electronic device, and processing the second shared content through a first application to which the first window belongs; wherein, the first window is the window on the first display screen where the second electronic device is located.
[0148] Therefore, in this embodiment, when the second electronic device approaches the first display screen of the first electronic device, it can trigger the second electronic device to share content with the first electronic device, improving the convenience and efficiency of cross-device content sharing. Furthermore, if a user wants to "deliver" content from the second electronic device to the first window of the first electronic device, they simply move the second electronic device close to the first window. In other words, the content is "delivered" to the window the second electronic device is close to, achieving precise content sharing and a better user experience.
[0149] According to the second aspect, or any implementation of the second aspect above, the second shared content includes at least one of the following: first content in the first window; or, first information for indicating the first content; or, second information indicated by the first content.
[0150] According to the second aspect, or any implementation of the second aspect above, the step of processing the second shared content through the first application to which the first window belongs includes: displaying the second shared content in the first window through the first application.
[0151] Therefore, in this embodiment of the application, after the electronic device receives the shared content from the second electronic device, it displays the shared content in the first window through the first application, thereby realizing the "delivery" of content at the window level.
[0152] According to the second aspect, or any implementation of the second aspect above, the first window is a window on the first display screen where the second electronic device is close, including: the first window contains a first position coordinate, the first position coordinate being the coordinate of the position where the second electronic device is close on the first display screen.
[0153] According to the second aspect, or any implementation of the second aspect above, the first position coordinate is a position coordinate within a first region, and the first region is the region where the detection parameters of the first display screen change when the second electronic device approaches the first display screen.
[0154] According to the second aspect, or any implementation of the second aspect above, the first window is one of N windows on the first display screen, where N is an integer greater than or equal to 2.
[0155] According to the second aspect, or any implementation of the second aspect above, the first window is a non-focus window.
[0156] According to the second aspect, or any implementation of the second aspect above, when the second electronic device is close to multiple windows on the first display screen, the first window is the topmost window among the multiple windows.
[0157] According to the second aspect, or any implementation of the second aspect above, after receiving the second shared content sent by the second electronic device, the method further includes: detecting again that the second electronic device is close to the first display screen; receiving the fourth shared content sent by the second electronic device; and processing the fourth shared content through the second application to which the third window belongs, wherein the third window is the window that the second electronic device is close to when it is detected again that the second electronic device is close to the first display screen, and the third window and the first window are windows of the same application or windows of different applications.
[0158] Therefore, in this embodiment of the application, when a user brings the second electronic device close to the first window on the first electronic device, the second electronic device is triggered to "deliver" content to the first window; if the user brings the second electronic device close to the second window on the first electronic device again, the second electronic device is triggered to "deliver" content to the second window. The first window and the second window can be different windows of the same application or windows of different applications, so that the content is delivered to the window that the user is close to.
[0159] According to the second aspect, or any implementation thereof, the step of processing the second shared content through the first application to which the first window belongs includes: sending the second shared content to the first application so that the first application processes the second shared content within the first window. Therefore, this method achieves window-level content delivery, making cross-device content sharing more precise.
[0160] According to the second aspect, or any implementation of the second aspect above, sending the second shared content to the first application includes: invoking a callback function of the first window, wherein the callback function is used to send the second shared content to the first application. Therefore, this method achieves window-level content delivery, making cross-device content sharing more precise.
[0161] According to the second aspect, or any implementation thereof, the processing of the second shared content through the first application to which the first window belongs includes: sending the second shared content to the first application so that the first application processes the second shared content within a first display element in the first window, wherein the first display element is the display element within the first window closest to the second electronic device. Therefore, this method achieves content delivery at the display element level, making cross-device content sharing more precise.
[0162] According to the second aspect, or any implementation of the second aspect above, sending the second shared content to the first application includes: calling a callback function of the first display element, wherein the callback function is used to send the second shared content to the first application. Therefore, this method achieves content delivery at the display element level, making cross-device content sharing more precise.
[0163] According to the second aspect, or any implementation of the second aspect above, the first display element includes at least one of the following: a search component, a text input component, a form component, a rich text editing component, an image component, and a hyperlink component.
[0164] According to the second aspect, or any implementation thereof, the step of processing the second shared content through the first application to which the first window belongs includes: sending the second shared content to the first application so that the first application can process the second shared content, wherein the first application is the application to which the first window belongs. Therefore, this method achieves application-level content delivery; that is, the shared content of the second electronic device is provided to the application to which the window is closest, so that the application can process the shared content, making cross-device content sharing more precise.
[0165] According to the second aspect, or any implementation of the second aspect above, sending the second shared content to the first application includes: invoking a callback function of the first application, wherein the callback function is used to send the second shared content to the first application. Therefore, this method achieves application-level content delivery, making cross-device content sharing more precise.
[0166] According to the second aspect, or any implementation of the second aspect above, the method further includes: displaying first indication information on the first display screen, the first indication information being used to indicate the proximity position of the second electronic device on the first display screen.
[0167] According to the second aspect, or any implementation of the second aspect above, displaying the first instruction information on the first display screen includes: displaying the first instruction information in a second area on the first display screen, the second area including a first position coordinate, the first position coordinate being the coordinate of the nearest position of the second electronic device on the first display screen.
[0168] According to the second aspect, or any implementation of the second aspect above, displaying the first indication information in the second area includes: displaying the second area as a first color.
[0169] According to the second aspect, or any implementation of the second aspect above, the method further includes: detecting that a first condition is met, and canceling the display of the first indication information, wherein the first condition includes at least one of: the display duration of the first indication information reaches a preset duration, the second electronic device leaves the first display screen, and the connection between the second electronic device and the first electronic device is disconnected.
[0170] According to the second aspect, or any implementation of the second aspect above, the method further includes: after the second electronic device leaves the first display screen, determining the mapped position of the second electronic device on the first display screen based on the position movement of the second electronic device; receiving fifth shared content sent by the first electronic device; and processing the fifth shared content through a fifth application to which the fifth window belongs, wherein the fifth window is a window containing the mapped position.
[0171] According to the second aspect, or any implementation of the second aspect above, the method further includes: displaying a first motion effect on the first display screen, the first motion effect being used to demonstrate a visual effect that the mapped position of the second electronic device on the first display screen dynamically changes as the position of the second electronic device changes.
[0172] According to the second aspect, or any implementation of the second aspect above, displaying a first animation effect on the first display screen includes: displaying first indication information at a position close to the second electronic device on the first display screen, and maintaining the display of the first indication information after the second electronic device leaves the first display screen, and the display position of the first indication information correspondingly moving during the movement of the second electronic device.
[0173] According to the second aspect, or any implementation of the second aspect above, the method further includes: if the first window is a non-focus window, then switching the first window to a focus window.
[0174] According to the second aspect, or any implementation of the second aspect above, switching the first window to the focus window includes: generating a virtual event for the first window, the virtual event being used to trigger the first window to switch to the focus window.
[0175] According to the second aspect, or any implementation of the second aspect above, before receiving the first information sent by the second electronic device, the method further includes: determining the first electronic device as the recipient based on the content displayed in the first window; or receiving a user-specified operation for designating the first electronic device as the recipient.
[0176] According to the second aspect, or any implementation of the second aspect above, before initiating the collaborative work between the first electronic device and the second electronic device, the method further includes: receiving a second request message, and, if it is determined that there is a second electronic device near the first electronic device, replying to the second electronic device with a second response message to establish a connection with the second electronic device; wherein, the second request message is a request message sent by the second electronic device when a third condition is met, the third condition including the second electronic device determining that the second electronic device is near other electronic devices; initiating the collaborative work between the first electronic device and the second electronic device includes: collaborating with the second electronic device through the connection.
[0177] According to the second aspect, or any implementation of the second aspect above, when a device is detected approaching the first window of the first electronic device, and the first window includes shareable content, the second response message includes a second flag bit, which is used to indicate that the first electronic device has shareable content. Specifically, the second flag bit is used to instruct the second electronic device to display a first animation effect, which in turn indicates that the second electronic device is about to receive shareable content sent by the first electronic device.
[0178] According to the second aspect, or any implementation of the second aspect above, the second response message includes the account information logged in by the first electronic device; the second response message is used by the second electronic device to display the first animation when it determines that the account information logged in by the first electronic device is the same as the account information logged in by the second electronic device, and determines that the first electronic device has content to share.
[0179] According to the second aspect, or any implementation of the second aspect above, when the second electronic device satisfies the third condition and the window displayed by the second electronic device includes shareable content, the second request message includes a first flag bit, which is used to indicate that the second electronic device has content to share; the method further includes: when it is determined that there is a second electronic device close to the first electronic device, and it is determined according to the first flag bit that the second electronic device has content to share, the first electronic device preloads a second animation effect, and when it is determined that the account logged in by the first electronic device is the same as the account logged in by the second electronic device, the second animation effect is played, which is used to indicate that the first electronic device is about to receive the shared content sent by the second electronic device.
[0180] According to the second aspect, or any implementation of the second aspect above, the method further includes: upon receiving the second request message and determining that the first electronic device has content to share, the first electronic device preloads a third animation effect, and upon determining that the account logged in by the first electronic device is the same as the account logged in by the second electronic device, plays the third animation effect, wherein the third animation effect is used to indicate that the first electronic device is about to send shared content to the second electronic device.
[0181] According to the second aspect, or any implementation of the second aspect above, the second response message is a Wi-Fi action frame.
[0182] According to the second aspect, or any implementation of the second aspect above, the second response message is used to instruct the second electronic device to send a third response message to the first electronic device after receiving the second response message, the third response message including the account information logged in by the second electronic device; the method further includes: receiving the third response message; and if it is determined from the third response message that the account information logged in by the second electronic device is the same as the account information logged in by the first electronic device, and the first electronic device has content to share, sending a connection establishment request message to the second electronic device, the connection establishment request message being used to request to establish the connection with the second electronic device.
[0183] According to the second aspect, or any implementation of the second aspect above, the third response message is a Wi-Fi action frame; after receiving the second request message, the method further includes: starting to listen for Wi-Fi action frames.
[0184] Thirdly, this application also provides a communication system comprising a second electronic device and a first electronic device. Specifically, the second electronic device is configured to issue a second request message when a third condition is met, the third condition including the second electronic device determining that the second electronic device is near another electronic device; the first electronic device is configured to receive the second request message and, when a fourth condition is met, reply to the second electronic device with a second response message, the fourth condition including detecting that a device is near the display screen of the first electronic device; the second electronic device is configured to establish a communication link with the first electronic device based on the second response message.
[0185] Using the above technical solution, the second electronic device can send a request when it determines that it is close to the display screen of another device. After receiving the request, the first electronic device can establish a communication link with the second electronic device if it determines that a device is close to its display screen. This method eliminates the need for the user to manually select a device; device selection and connection are completed simply by determining the proximity of the device.
[0186] In one possible design, the second electronic device determines its proximity to other electronic devices by:
[0187] The second electronic device determines that it has touched the display screen of the other electronic device.
[0188] In one possible implementation, the second electronic device touching the display screen of the other electronic device includes: touching the display screen of the other electronic device along a first direction, the angle between the first direction and a first target direction being less than 90 degrees, and / or the angle between the first direction and a second target direction being less than 90 degrees, the first target direction being the direction from the bottom to the top of the second electronic device, and the second target direction being a direction perpendicular to the display screen of the second electronic device and away from the display screen.
[0189] In one possible design, the second electronic device determines its proximity to other electronic devices by:
[0190] It is determined that the second electronic device has performed a preset action, which is an action indicating that the second electronic device has moved and touched another electronic device. The movement can be a movement in a first direction.
[0191] In one possible design, the second electronic device being near other electronic devices also includes detecting that the distance between the second electronic device and the first electronic device is less than a set threshold.
[0192] In one possible design, the first electronic device detects that a device is approaching the display screen of the first electronic device, including: the first electronic device determines that a device is approaching the display screen of the first electronic device based on a change in the capacitance parameter of the display screen.
[0193] In one possible design, the fourth condition further includes the first electronic device being in an unlocked state. That is, the first electronic device is in an unlocked state when the second electronic device approaches it, or in other words, the first electronic device detects a device approaching its display screen while in an unlocked state.
[0194] In one possible design, when a device is detected approaching the first window of the first electronic device, and the first window includes shareable content, the second response message includes a second flag bit, which is used to indicate that the first electronic device has content that can be shared.
[0195] The second electronic device is further configured to display a first animation effect when it is determined, based on the second flag bit, that the first electronic device has content to share. The first animation effect is used to indicate that the second electronic device is about to receive the shared content sent by the first electronic device.
[0196] In one possible design, the second response message includes the account information logged in by the first electronic device; the second electronic device is specifically used to display the first animation when it is determined, based on the second response message, that the account information logged in by the first electronic device is the same as the account information logged in by the second electronic device, and when it is determined that the first electronic device has content to share.
[0197] In one possible design, when the second electronic device meets the third condition and the window displayed by the second electronic device includes shareable content, the second request message includes a first flag bit, which is used to identify that the second electronic device has content to share; the first electronic device is further configured to, when the fourth condition is met and it is determined according to the first flag bit that the second electronic device has content to share, preload a second animation effect, and when it is determined that the account logged in by the first electronic device is the same as the account logged in by the second electronic device, play the second animation effect, which is used to indicate that the first electronic device is about to receive the shared content sent by the second electronic device.
[0198] In one possible design, the first electronic device is further configured to, upon receiving the second request message and determining that the first electronic device has content to share, preload a third animation effect, and, upon determining that the account logged in by the first electronic device is the same as the account logged in by the second electronic device, play the third animation effect, wherein the third animation effect is used to indicate that the first electronic device is about to send shared content to the second electronic device.
[0199] In one possible design, the second response message is a Wi-Fi action frame.
[0200] In one possible design, the second electronic device is also used to enable listening to Wi-Fi action frames after determining that the third condition is met.
[0201] In one possible design, the second electronic device is further configured to, upon receiving the second response message, send a link establishment request message to the first electronic device if it is determined that the second electronic device has content to share. The link establishment request message is used to request the establishment of a communication link with the first electronic device.
[0202] In one possible design, the second response message includes the account information logged in by the first electronic device;
[0203] The second electronic device is further configured to send a connection request message to the first electronic device if, based on the second response message, it is determined that the account information logged in by the first electronic device is the same as the account information logged in by the second electronic device, and the second electronic device has content to share.
[0204] In one possible design, the second electronic device is further configured to, upon receiving the second response message, send a third response message to the first electronic device, the third response message including the account information logged in by the second electronic device; the first electronic device is further configured to, based on the third response message, determine that the account information logged in by the second electronic device is the same as the account information logged in by the first electronic device, and that the first electronic device has content to share, send a link establishment request message to the second electronic device, the link establishment request message being used to request the establishment of a communication link with the second electronic device.
[0205] In one possible design, the first electronic device is further configured to display a fifth animation effect when, based on the third response message, it is determined that the account information logged in by the second electronic device is the same as the account information logged in by the first electronic device, and neither the second electronic device nor the first electronic device has any content to share. The fifth animation effect is used to indicate that there is no content to share.
[0206] In one possible design, the second request message is a Bluetooth broadcast message; the first electronic device is further configured to increase the Bluetooth signal scanning duty cycle of the first electronic device when a device is detected approaching the display screen of the first electronic device.
[0207] In one possible design, the third response message is a Wi-Fi action frame; the first electronic device is further configured to, after receiving the second request message, start listening for Wi-Fi action frames.
[0208] Fourthly, a detection method is provided, applied to a first electronic device. The method includes: acquiring detection data of the display screen of the first electronic device at a third frequency. During the acquisition of detection data at the third frequency, a first touch event is detected in the first electronic device based on detection data from the inertial measurement unit (IMU) of the first electronic device. The first touch event indicates that the display screen of the first electronic device has been touched. In response to the touch event, refreshed detection data of the display screen is acquired at a second frequency, which is greater than the third frequency. Based on the refreshed detection data, a position on the display screen touched by a second electronic device or another conductor is determined. Based on the position, cooperative operation between the first electronic device and the second electronic device, or cooperative operation between the first electronic device and other conductors, is initiated.
[0209] In this way, during operation, the first electronic device can switch from Idle mode to Active mode based on touch events to initiate collaborative work.
[0210] According to the fourth aspect, initiating collaborative work between the first electronic device and the second electronic device includes: sending first shared content to the second electronic device, the first shared content being determined based on a first window; and / or receiving second shared content sent by the second electronic device, and processing the second shared content through a first application to which the first window belongs; wherein the first window is the window on the display screen where the second electronic device is located.
[0211] According to the fourth aspect, or any implementation of the fourth aspect above, before initiating the collaborative operation between the first electronic device and the second electronic device, the method further includes: receiving a second request message, and, upon determining that the first touch event has occurred, replying to the second electronic device with a second response message to establish a connection with the second electronic device; wherein the second request message is a request message sent by the second electronic device when a third condition is met, the third condition including the second electronic device determining that the second electronic device is near another electronic device. Initiating the collaborative operation between the first electronic device and the second electronic device includes: collaborating with the second electronic device through the connection.
[0212] Fifthly, a detection method is provided, applied to a second electronic device. The method includes: determining that a third event has occurred. Upon determining that a third event has occurred, a 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 first electronic device. The third event includes: the second electronic device performing a preset action, the preset action being an action indicating that the second electronic device is moving closer to the display screen of another electronic device.
[0213] In some embodiments, the high-power signal transmitted by the second electronic device may interfere with the detection data of the first electronic device.
[0214] Thus, the second electronic device can respond to a third event by sending a first signal to interfere with the capacitance detection of the display screen of the first electronic device that may be nearby, thereby notifying the first electronic device of the proximity of the second electronic device and improving the accuracy of the proximity detection of the first electronic device.
[0215] 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 second electronic device to the display screen of the first electronic device.
[0216] 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.
[0217] For example, as a user holds a second electronic device and approaches another electronic device, the second 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 second electronic device may exceed a certain threshold. Optionally, the second electronic device obtains its linear acceleration magnitude and angular velocity magnitude from the detection data of the accelerometer. If the linear acceleration magnitude exceeds the acceleration threshold and the angular velocity magnitude exceeds the angular velocity threshold, the second electronic device can determine that it is currently in motion.
[0218] Thus, by combining its own movement status and distance traveled, the second electronic device can determine whether it is in a "hovering state." When the second 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 second electronic device can send a first signal to trigger a nearby first electronic device to share content.
[0219] 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 second electronic device within the short-range communication range of the second electronic device.
[0220] In this way, the second electronic device can 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.
[0221] 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.
[0222] According to the fifth aspect, or any implementation of the fifth aspect above, the target hardware is a wireless charging coil.
[0223] According to the fifth aspect, or any implementation of the fifth aspect above, the display screen of the first electronic device is a capacitive touch screen, and the detection data is capacitance data.
[0224] A sixth aspect provides a first electronic device, comprising: a processor, a memory, and a display screen. The memory and the 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 first electronic device executes: determining that a first event has occurred; acquiring detection data from the display screen of the first electronic device at a first frequency, based on the detection data acquired at the first frequency; identifying a second electronic device or other conductor near the first electronic device; and initiating cooperative operation between the first electronic device and the second electronic device, or initiating cooperative operation between the first electronic device and other conductors.
[0225] According to the sixth aspect, when the processor reads computer instructions from memory, it also causes the first electronic device to: acquire detection data of a refreshed display screen at a second frequency, the second frequency being greater than the first frequency; and, based on the refreshed detection data, determine a first area on the display screen where a second electronic device or other conductor is near.
[0226] 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 first 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.
[0227] 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.
[0228] 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.
[0229] According to the sixth aspect, or any implementation of the sixth aspect above, the first frequency is 20 Hz or 21 Hz.
[0230] According to the sixth aspect, or any implementation of the sixth aspect above, determining a second electronic device or other conductor that is close to the first electronic device includes: determining that the second electronic device or other conductor is close to the first electronic device when the detection data acquired at the first frequency meets a first condition; wherein the first condition includes: the arrangement of target detection data in the detection data acquired at the first frequency conforms to a preset rule, the target detection data being detection data that meets the target condition, and the target condition including: the amount of change is greater than a preset threshold.
[0231] According to the sixth aspect, or any implementation thereof, the collaborative operation between the first electronic device and the second electronic device is initiated, including: sharing the first content displayed on the first area to the second electronic device; or, displaying the second content shared by the second electronic device on the first area.
[0232] 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.
[0233] 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 first 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.
[0234] 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 first 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.
[0235] 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 a first electronic device.
[0236] 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.
[0237] According to the sixth aspect, or any implementation of the sixth aspect above, the first event further includes: 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.
[0238] According to the sixth aspect, or any implementation of the sixth aspect above, the detection data is capacitance data.
[0239] 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 first electronic device is acquired at a first frequency, including: the processor acquiring the detection data reported by the touch IC at the first frequency.
[0240] A seventh aspect provides a first electronic device comprising: a processor, a memory, and a display screen. The memory and the display screen are coupled to the processor. The memory stores computer program code, including computer instructions, which, when read from the memory, cause the first electronic device to execute the method described in the second aspect above and any of the designs thereof.
[0241] Eighthly, a first electronic device is provided, comprising: a processor, a memory, and a display screen. The memory and the display screen are coupled to the processor. The memory stores computer program code, including computer instructions, which, when read from the memory, cause the first electronic device to execute the method described in the fourth aspect above and any of the designs therein.
[0242] A ninth aspect provides a second 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 second electronic device executes: determining that a third event has occurred. Upon determining that the third event has occurred, the second electronic device transmits a first signal at a preset frequency, the power of which is greater than or equal to a power threshold. The first signal is used to interfere with detection data on the display screen of a first electronic device. The third event includes: the second electronic device performing a preset action, the preset action being an action indicating that the second electronic device moves closer to the display screen of another electronic device.
[0243] According to the ninth 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 second electronic device to the display screen of the first electronic device.
[0244] According to the ninth aspect, or any implementation of the ninth 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.
[0245] According to the ninth aspect, or any implementation of the ninth aspect above, the third event also includes detecting 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.
[0246] According to aspect nine, or any implementation thereof, the first signal is sent at a preset frequency, including: sending the first signal at a preset frequency through the target hardware.
[0247] According to aspect nine, or any implementation thereof, the target hardware is a wireless charging coil.
[0248] According to the ninth aspect, or any implementation thereof, the display screen of the first electronic device is a capacitive touch screen, and the detection data is capacitance data.
[0249] In some embodiments, the first electronic device initiates collaborative work with the second electronic device. Optionally, this collaborative work may include, for example, content sharing. The specific implementation process of the collaborative work is described below using the content sharing methods described in aspects ten to twelfth.
[0250] A tenth aspect provides a content sharing method applied to a first electronic device including a first display screen, the method comprising: the first electronic device determining, based on capacitance data of the first display screen, that a second electronic device is close to the first display screen, the second electronic device including a second display screen; and, based on a communication connection (such as a short-range communication connection like Bluetooth) between the first electronic device and the second electronic device, sharing content between the first electronic device and the second electronic device, the content being either content displayed on the second display screen or content displayed on the first display screen.
[0251] Based on the above technical solution, an electronic device can determine when another electronic device is near its screen by using the capacitance data of its own display. Then, based on the communication connection between the two electronic devices, the content displayed on their screens can be shared. 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 navigation to access the content sharing function or selecting a content receiver from a list of electronic devices, simplifying the operations required for 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.
[0252] In one possible design, determining that the second electronic device is close to the first display screen includes: the first electronic device determining that the second electronic device is close to a first area of the first display screen; content sharing between the first and second electronic devices includes: the first electronic device sending first content or information indicating the first content of the first area to the second electronic device, the content including the first content of the first area; or, the first electronic device receiving the content or information indicating the content displayed on the second display screen from the second electronic device; and the first electronic device displaying the content or information indicating the content in the first area. Thus, when the second electronic device is close to a certain area on the display screen of the first 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.
[0253] In one possible design, determining that the second electronic device is near the first display screen further includes: the first electronic device determining that the second electronic device is near a second area of the first display screen; content sharing between the first and second electronic devices further includes: the first electronic device sending second content of the second area or information indicating the second content to 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. Thus, when the second electronic device is near a second area on the display screen of the first electronic device that is different from the first area, the content of the second area can be shared with the second electronic device. In this way, the second electronic device can read the content displayed in the corresponding area by being near different areas on the display screen of the first electronic device.
[0254] In one possible design, the information indicating the content includes a preview image of the content. This allows the second electronic device to send the preview image to the first electronic device, making it easier for the user to confirm whether the currently shared content is what they need, while also saving data usage.
[0255] In one possible design, the first electronic device displays the content in the first area, 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 content in the first area. In this way, after the first electronic device receives the user's trigger operation on the preview image, it displays the content shared by the second electronic device on the screen, meaning the second electronic device then shares the content with the first electronic device. This ensures that the shared content is indeed what the user needs, improving the user experience and saving data usage.
[0256] In one possible design, before the first electronic device determines that the second electronic device is near a first area of the first display screen, the first area displays a first file; the first electronic device displays the content in the first area, including: the first electronic device inserts the content into the first file for display. Thus, when the second electronic device is near a certain area on the display screen of the first electronic device, the first electronic device can directly insert the content shared by the second electronic device into the file displayed in that area for display.
[0257] 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 first electronic device inserts the content into the first file for display, comprising: the first electronic device inserting the content into the first sub-region of the first file for display. In this way, the second electronic device can insert shared content into different regions of the same file, adjacent to different regions displayed by the first electronic device, for display.
[0258] In one possible design, the content is the content displayed on the second display screen; content sharing between the first electronic device and the second electronic device includes: the first electronic device receiving the content from the second electronic device; and the first electronic device displaying the content in a target area on the first display screen. In this way, regardless of where the second electronic device is near the first electronic device's display screen, it can display the shared content in a fixed area on the first electronic device's display screen. For example, the target area can be a focus window, a focal window, or a top-level window, etc.
[0259] In one possible design, the target area is an area displaying the target file; the first electronic device displays the content in the target area on the first display screen, including: the first electronic device inserts the content into the target file for display. In this way, regardless of where the second electronic device is located on the display screen of the first electronic device, it can insert the shared content into the fixed file displayed on the display screen of the first electronic device.
[0260] In one possible design, the target file is all the files displayed on the first display screen. Alternatively, the target file can be a file displayed in a focus window, a key window, or a top-level window, etc.
[0261] In one possible design, the first content includes an application interface, or the content includes an application interface.
[0262] 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 receiving service information from the second 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 second display screen; the first electronic device displaying a second execution interface of the first service on the first display screen based on the service information; or, the first electronic device displaying a second execution interface of the first service on the first display screen; and the first electronic device sending service information to the second electronic device, the service information being used to instruct the second electronic device to execute the first service. In this way, the second electronic device can also share services by being close to the display screen of the first electronic device.
[0263] In one possible design, after determining that the second electronic device is close to the first display screen, the method further includes: the first electronic device controlling the second electronic device, or the first electronic device being controlled by the second electronic device. In this way, the second electronic device can also achieve mutual control by being close to the display screen of the first electronic device, such as the second electronic device acting as a remote control for the first electronic device.
[0264] In one possible design, determining that the second electronic device is close to the first display screen includes: the first electronic device acquiring capacitance data of the first display screen, wherein the capacitance data satisfies a preset condition.
[0265] In one possible design, the first electronic device determines that the second electronic device is near a first area of the first display screen by: the first electronic device acquiring the capacitance value of the first area within a preset time period; and determining that the second 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 first electronic device's display screen caused by the second electronic device approaching it is relatively slight. Therefore, by using the capacitance value of the first area within the preset time period to determine whether the second electronic device is near its own display screen, the first electronic device can improve the accuracy of its determination and reduce judgment errors.
[0266] Eleventhly, a content sharing method is provided, applied to a second electronic device including a second display screen, the method comprising: when the second electronic device is close to a first display screen of a first electronic device, 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, wherein the content is content displayed on the second display screen or content displayed on the first display screen.
[0267] In one possible design, the content sharing between the second electronic device and the first electronic device when the second electronic device is near the first display screen of the first electronic device includes: when the second electronic device is near a first area of the first display screen, the second electronic device receives first content or information indicating the first content of the first area from the first electronic device, the content including the first content of the first area; the second electronic device displays the first content or the information indicating the first content on the second display screen; or, when the second electronic device is near a first area of the first display screen, the second electronic device sends the content displayed on the second display screen or the information indicating the content to the first electronic device, the content displayed on the second display screen or the information indicating the content being used to display in the first area.
[0268] In one possible design, the content sharing between the second electronic device and the first electronic device when the second electronic device is close to the first display screen of the first electronic device further includes: when the second electronic device is close to a second area of the first display screen, the second electronic device receives second content of the second area or information indicating the second content from 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; the second electronic device displays the second content or information indicating the second content on the second display screen.
[0269] In one possible design, the information indicating the first content includes a preview image of the first content.
[0270] In one possible design, the second electronic device displays the first content on the second display screen, 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 first content on the second display screen.
[0271] In one possible design, before the second electronic device approaches a first area of the first display screen, the second electronic device displays a second document on the second display screen; the display of the first content on the second display screen by the second electronic device includes: the second electronic device inserting the first content into the second document for display.
[0272] In one possible design, before the second electronic device approaches a first area of the first display screen, the second electronic device also displays a third document on the second display screen; the second electronic device inserts the first content into the second document for display, including: the second electronic device inserts the first content into the second document and displays it in the third document.
[0273] 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 displaying a first execution interface of the first service on a second display screen; the second electronic device sending service information to the first electronic device, the service information being used by the first electronic device to execute the first service; or, 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 the service corresponding to the second execution interface displayed on the first display screen; and the second electronic device displaying the first execution interface of the first service on the second display screen based on the service information.
[0274] In one possible design, before content sharing between the second electronic device and the first electronic device, the method further includes: the second electronic device determining that it is in a handheld scenario. Since other electronic devices besides the second electronic device may be placed around the first electronic device, and these electronic devices may also cause changes in the capacitance data of the first electronic device, but these electronic devices may not be the ones the user wants to share content with, to facilitate content sharing between the second and first electronic devices, the second 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 second electronic device is the one the user wants to share content with, and then content sharing between it and the first electronic device can proceed.
[0275] In one possible design, before content sharing occurs between the second electronic device and the first electronic device, the method further includes: when the second electronic device is near a first display screen of the first electronic device, the second electronic device receives a broadcast message from the first electronic device; the second electronic device establishes the communication connection with the first electronic device based on the broadcast message.
[0276] In this way, when the second electronic device is close to the display screen of the first electronic device, it indicates that the user may have a need to share content. At this time, the first electronic device sends a broadcast message, and then the second electronic device establishes a communication connection with the first electronic device based on the broadcast message, which facilitates content sharing between the second electronic device and the first electronic device based on the communication connection.
[0277] In a twelfth aspect, a content sharing method is provided, applicable to a communication system including a second electronic device and a first electronic device. The method includes: a first electronic device determining that a second electronic device is close to the first display screen based on capacitance data of a first display screen, wherein the first electronic device includes the first display screen and the second electronic device includes a second display screen; and, based on a 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 either content displayed on the second display screen or content displayed on the first display screen.
[0278] In one possible design, determining that the second electronic device is close to the first display screen includes: the first electronic device determining that the second electronic device is close to a first area of the first display screen; content sharing between the first electronic device and the second electronic device includes: the first electronic device sending first content or information indicating the first content in the first area to the second electronic device; the second electronic device displaying the first content or the information indicating the first content on the second display screen, the content including the first content in the first area; or, the second electronic device sending the content displayed on the second display screen or the information indicating the content to the first electronic device; the first electronic device displaying the content or the information indicating the content in the first area.
[0279] In one possible design, determining that the second electronic device is close to the first display screen further includes: the first electronic device determining that the second electronic device is close to a second area of the first display screen; content sharing between the first electronic device and the second electronic device further includes: the first electronic device sending second content of the second area or information indicating the second content to 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; and the second electronic device displaying the second content or information indicating the second content on the second display screen.
[0280] In one possible design, the information indicating the first content includes a preview image of the first content.
[0281] In one possible design, the second electronic device displays the first content on the second display screen, 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 first content on the second display screen.
[0282] In one possible design, before the second electronic device approaches a first area of the first display screen, the second electronic device displays a second document on the second display screen; the second electronic device displaying the first content on the second display screen includes: the second electronic device inserting the first content into the second document for display; or, before the first electronic device determines that the second electronic device is approaching a first area of the first display screen, the first area displays a first document; the first electronic device displaying the content in the first area includes: the first electronic device inserting the content into the first document for display.
[0283] 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 first electronic device inserts the content into the first file for display, including: the first electronic device inserts the content into the first sub-region of the first file for display.
[0284] In one possible design, before the second electronic device approaches a first area of the first display screen, the second electronic device also displays a third document on the second display screen; the second electronic device inserts the first content into the second document for display, including: the second electronic device inserts the first content into the second document and displays it in the third document.
[0285] In one possible design, the content is the content displayed on the second display screen; content sharing between the first electronic device and the second electronic device includes: the first electronic device receiving the content from the second electronic device; and the first electronic device displaying the content in a target area on the first display screen.
[0286] In one possible design, the target area is an area displaying the target file; the first electronic device displays the content in the target area on the first display screen, including: the first electronic device inserts the content into the target file for display.
[0287] In one possible design, the target file is all the files displayed on the first display screen.
[0288] In one possible design, the first content includes an application interface, or the content includes an application interface.
[0289] In one possible design, the content is a first service; content sharing between the first electronic device and the second electronic device includes: the second electronic device displaying a first execution interface of the first service on a second display screen; the second electronic device sending service information to the first electronic device, the service information being used by the first electronic device to execute the first service; the first electronic device displaying a second execution interface of the first service on the first display screen based on the service information; or, the first electronic device displaying a second 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 to execute the first service; and the second electronic device displaying a first execution interface of the first service on the second display screen based on the service information.
[0290] In one possible design, after determining that the second electronic device is close to the first display screen, the method further includes: the first electronic device controlling the second electronic device, or the second electronic device controlling the first electronic device.
[0291] In one possible design, determining that the second electronic device is close to the first display screen includes: the first electronic device acquiring capacitance data of the first display screen, wherein the capacitance data satisfies a preset condition.
[0292] In one possible design, the first electronic device determines that the second electronic device is close to a first area of the first display screen by: the first 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 first electronic device determines that the second electronic device is close to the first area.
[0293] In one possible design, before content sharing occurs between the first electronic device and the second electronic device, the method further includes: the second electronic device determining that it is in a handheld scenario.
[0294] In one possible design, before content sharing occurs between the first electronic device and the second electronic device, the method further includes: when the second electronic device approaches the first display screen of the first electronic device, the first electronic device sends a broadcast message; the second electronic device establishes a communication connection with the first electronic device based on the broadcast message.
[0295] In a thirteenth aspect, an electronic device is provided that has the function of implementing the method described in any one of the designs of the first, second, fourth, and fifth aspects above. 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.
[0296] In a fourteenth 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 as described in the first, second, fourth, and fifth aspects above. Optionally, the memory may be coupled to the processor or 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.
[0297] In a fifteenth aspect, a computer-readable storage medium is provided, the computer-readable storage medium comprising a computer program that, when executed on an electronic device, causes the electronic device to perform the method as described in the first, second, fourth, and fifth aspects and any one thereof.
[0298] In a sixteenth aspect, a computer program product is provided, the computer program product comprising: a computer program or instructions that, when executed on a computer, cause the computer to perform the methods described in the first, second, fourth, and fifth aspects and any one thereof.
[0299] In a seventeenth aspect, a chip system is provided, including at least one processor and at least one interface circuit, wherein the at least one interface circuit is used to perform transceiver functions and send instructions to the at least one processor, and when the at least one processor executes instructions, the at least one processor performs the method described in any of the designs of the first, second, fourth, and fifth aspects described above.
[0300] Eighteenth aspect: A communication system is provided, including a second electronic device and a first electronic device, the second electronic device being configured to perform the method as described in the first, second, fourth, fifth aspects and any one thereof.
[0301] The technical effects of the aforementioned aspects can be referenced from each other, and will not be elaborated further here. Attached Figure Description
[0302] Figure 1 is a schematic diagram of a content sharing scenario based on an NFC module provided in an embodiment of this application;
[0303] Figure 2 is a schematic diagram of the communication system used in the detection method provided in the embodiments of this application;
[0304] Figure 3 is a schematic diagram of the hardware structure of the first electronic device provided in an embodiment of this application;
[0305] Figure 4A is a schematic diagram of the capacitor module arrangement scenario provided in the embodiment of this application;
[0306] Figure 4B is a schematic diagram of the area on the display screen of the second electronic device near the first electronic device provided in an embodiment of this application;
[0307] Figure 4C is a schematic diagram of the proximity conductor type determination provided in an embodiment of this application;
[0308] Figure 5A is a schematic diagram of a handheld scenario where a second electronic device is close to the display screen of a first electronic device, according to an embodiment of this application.
[0309] Figure 5B is a schematic diagram of determining whether a second electronic device is in a handheld scenario according to an embodiment of this application;
[0310] Figure 6A is a schematic diagram of the second electronic device being brought close to an embodiment of this application.
[0311] Figure 6B is a schematic diagram of a touch IC mode switching scenario provided in an embodiment of this application;
[0312] Figure 7 is a schematic diagram of a capacitance value change scenario provided in an embodiment of this application;
[0313] Figure 8 is a flowchart illustrating a detection method provided in an embodiment of this application;
[0314] Figures 9 to 26e are schematic diagrams of application scenarios for sharing different content between the second electronic device and the first electronic device provided in the embodiments of this application;
[0315] Figure 27 is a schematic diagram of an interface for setting up a file sharing terminal according to an embodiment of this application;
[0316] Figures 28 and 29 are schematic diagrams of a scenario in which the second electronic device provided in the embodiments of this application serves as a control device for the first electronic device;
[0317] Figure 30 is a flowchart illustrating a detection method provided in an embodiment of this application;
[0318] Figure 31 is a schematic diagram of the IMU touch detection process provided in an embodiment of this application;
[0319] Figure 32 is a schematic flowchart of a communication method provided in an embodiment of this application;
[0320] Figure 33 is a schematic diagram of an application scenario provided by an embodiment of this application;
[0321] Figure 34A is a schematic diagram of a first electronic device determining a first window according to an embodiment of this application;
[0322] Figure 34B is another schematic diagram of a first electronic device determining a first window according to an embodiment of this application;
[0323] Figure 34C is another schematic diagram of a first electronic device determining a first window according to an embodiment of this application;
[0324] Figure 35 is a schematic diagram of a user selecting shareable content on the desktop according to an embodiment of this application;
[0325] Figure 36A is a schematic diagram of content sharing when a mobile phone is brought close to the desktop according to an embodiment of this application;
[0326] Figure 36B is a schematic diagram of content sharing when a mobile phone is brought close to an application window according to an embodiment of this application;
[0327] Figure 36C is a schematic diagram of a mobile phone displaying elements near an application window to achieve content sharing according to an embodiment of this application;
[0328] Figure 36D is another schematic diagram of content sharing provided by an embodiment of this application, whereby a mobile phone displays elements when it is near an application window.
[0329] Figure 37A is a schematic diagram of a focus switching window provided in an embodiment of this application;
[0330] Figure 37B is an example diagram of a first electronic device sharing content with a second electronic device according to an embodiment of this application;
[0331] Figure 37C is another example diagram of a first electronic device sharing content with a second electronic device according to an embodiment of this application;
[0332] Figure 38 is a schematic diagram of instruction information provided in an embodiment of this application;
[0333] Figures 39A and 39B are another schematic diagram of the instruction information provided in an embodiment of this application;
[0334] Figure 40 is a schematic diagram of another application scenario provided by an embodiment of this application;
[0335] Figure 41 is a schematic flowchart of another communication method provided in an embodiment of this application;
[0336] Figure 42A is a schematic diagram of a second electronic device delivering content to the desktop window of a first electronic device according to an embodiment of this application;
[0337] Figure 42B is a schematic diagram of a second electronic device delivering content to the application window of a first electronic device according to an embodiment of this application;
[0338] Figure 42C is another schematic diagram of a second electronic device delivering content to the application window of a first electronic device according to an embodiment of this application;
[0339] Figure 43A is a schematic diagram of a second electronic device delivering content to the icon component of a first electronic device according to an embodiment of this application;
[0340] Figure 43B is a schematic diagram of a second electronic device delivering content to the search component of a first electronic device according to an embodiment of this application;
[0341] Figure 43C is a schematic diagram of a second electronic device delivering content to the rich text editing component of a first electronic device according to an embodiment of this application;
[0342] Figures 44A to 44D are example diagrams of a second electronic device sharing content with a first electronic device according to an embodiment of this application;
[0343] Figure 45 is another schematic diagram of a communication system provided in an embodiment of this application;
[0344] Figure 46 is a flowchart illustrating a communication method provided in an embodiment of this application;
[0345] Figure 47 is a schematic flowchart of another communication method provided in an embodiment of this application;
[0346] Figure 48 is a schematic diagram of capacitance change on a screen provided in an embodiment of this application;
[0347] Figure 49 is a schematic diagram of a user interface provided in an embodiment of this application;
[0348] Figure 50 is a flowchart of a device connection method provided in an embodiment of this application;
[0349] Figure 51 is a schematic diagram of a user interface provided in an embodiment of this application;
[0350] Figure 52 is a schematic diagram of a user interface provided in an embodiment of this application;
[0351] Figure 53 is a flowchart of a device connection method provided in an embodiment of this application;
[0352] Figure 54 is a schematic diagram of the structure of an electronic device provided in an embodiment of this application;
[0353] Figure 55 is a schematic diagram of the structure of a chip system provided in an embodiment of this application. Detailed Implementation
[0354] The technical solutions of the embodiments of this application are described below with reference to the accompanying drawings. In the description of the embodiments of this application, the terminology used in the following embodiments is for the purpose of describing specific embodiments only and is not intended to be a limitation of this application. As used in the specification and appended claims of this application, the singular expressions “a,” “an,” “the,” “the,” “the,” and “this” are intended to include expressions such as “one or more,” unless the context clearly indicates otherwise. It should also be understood that in the following embodiments of this application, “at least one” and “one or more” refer to one or more (including two).
[0355] References to "one embodiment" or "some embodiments" in this specification mean that one or more embodiments of this application include a specific feature, structure, or characteristic described in connection with that embodiment. Therefore, the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in still other embodiments," etc., appearing in different parts of this specification do not necessarily refer to the same embodiment, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless otherwise specifically emphasized. The term "connection" includes direct connections and indirect connections, unless otherwise stated. "First" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated.
[0356] In the embodiments of this application, the words "exemplarily" or "for example" are used to indicate examples, illustrations, or explanations. Any embodiment or design described as "exemplarily" or "for example" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or design solutions. Specifically, the use of the words "exemplarily" or "for example" is intended to present the relevant concepts in a specific manner.
[0357] In some embodiments, users can share content between devices via the "tap-to-pay" function. For example, as shown in Figure 1, a user can tap their phone against the NFC recognition area of a computer to trigger the establishment of a short-range communication connection between the phone and the computer. Based on this short-range communication connection, the phone can share content to the computer, or the computer can share content to the phone, enabling collaborative work between the phone and the computer.
[0358] However, the content sharing process that relies on NFC functionality requires different electronic devices to have an NFC module installed, increasing the hardware cost of the devices.
[0359] Furthermore, as shown in Figure 1, during the triggering of collaborative work, users need to align the NFC modules of different devices to establish a short-range communication connection. However, the positions of the NFC modules on different devices vary, and some devices do not mark the specific location of the NFC modules, which can easily lead to misalignment of the NFC antennas of the two devices. Therefore, if the NFC deviation between the two devices exceeds a preset distance range (e.g., 5 cm), the short-range communication connection between the devices will fail to be established, and content sharing will be impossible. It can be seen that this places high demands on the user's operation and affects the user experience.
[0360] In response, electronic devices can also determine if another device is near the capacitive touchscreen by detecting changes in its data (such as the touchscreen's capacitance value), thus enabling content sharing. This process eliminates the need for an NFC module and is relatively easy for users. However, the power consumption of determining proximity based on detection data can be high, making it crucial to balance accuracy and power consumption a key challenge.
[0361] Based on this, this application provides a detection method in which a first electronic device can obtain the proximity event of other electronic devices by acquiring detection data at different frequencies. This reduces the difficulty of user operation and improves the user experience, while also reducing device power consumption by adjusting the frequency of detection data acquisition.
[0362] For example, Figure 2 shows a schematic diagram of the architecture of a communication system for a detection method provided in an embodiment of this application. As shown in Figure 2, the communication system includes a first electronic device 100 and a second electronic device 200.
[0363] In some embodiments, the first electronic device 100 can obtain the proximity event of the second electronic device 200 through proximity detection and obtain the proximity position of the second electronic device 200. Alternatively, the second electronic device 200 can obtain the proximity event of the first electronic device 100 through proximity detection and obtain the proximity position of the first electronic device 100. Optionally, in response to the proximity event, the first electronic device 100 can establish a short-range communication connection with the second electronic device 200, and based on the short-range communication connection, content sharing can be realized. Optionally, this application embodiment uses the example of the second electronic device 200 approaching the first electronic device 100 and the first electronic device 100 detecting the proximity of the second electronic device 200 to introduce the detection method provided by this application embodiment. For the second electronic device 200 detecting the proximity of the first electronic device 100, please refer to the various embodiments exemplified below, which will not be exemplified one by one in this application embodiment.
[0364] In some embodiments, the second electronic device 200 can act as a content sender, sending content to the first electronic device 100. The first electronic device 100 can act as a content receiver, receiving content from the second electronic device 200. In other embodiments, the first electronic device 100 can act as a content sender, sending content to the second electronic device 200. The second electronic device 200 can act as a content receiver, receiving content from the first electronic device 100. That is, in the embodiments of this application, the first electronic device 100 or the second electronic device 200 can act as both a content sender and a content receiver. The technical solutions provided in the embodiments of 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, application interfaces, etc.
[0365] For example, the first electronic device 100 or the second electronic device 200 may include, but is not limited to, mobile phones, laptops, tablets, desktop computers, laptop computers, handheld 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 100 and the second electronic device 200 may be fixed devices or portable devices. The first electronic device 100 and the second electronic device 200 may be the same type of electronic device or different types of electronic devices.
[0366] Optionally, the operating systems installed on the first electronic device 100 and the second electronic device 200 may include, but are not limited to, those for... Or other operating systems.
[0367] Optionally, the first electronic device 100 and the second electronic device 200 in the embodiments of this application can be implemented by different devices. Different devices can have the same, similar or different hardware structures, such as the hardware structure shown in Figure 3.
[0368] For example, taking the first electronic device 100 having the hardware structure shown in FIG3 as an example, the hardware structure shown in FIG3 will be described.
[0369] For example, Figure 3 shows a schematic diagram of the hardware structure of a first electronic device 100 provided in an embodiment of this application. As shown in Figure 3, the first electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc.
[0370] It is understood that the structures illustrated in the embodiments of this application do not constitute a specific limitation on the first electronic device 100. In other embodiments of this application, the first electronic device 100 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.
[0371] 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.
[0372] The controller can generate operation control signals based on the instruction opcode and timing signals to complete the control of instruction fetching and execution.
[0373] 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.
[0374] The MIPI interface can be used to connect the processor 110 to peripheral devices such as the display screen 194 and the camera 193. The MIPI interface includes a camera serial interface (CSI) and a display serial interface (DSI). In some embodiments, the processor 110 and the camera 193 communicate via the CSI interface to enable the shooting function of the first electronic device 100. The processor 110 and the display screen 194 communicate via the DSI interface to enable the display function of the first electronic device 100.
[0375] The wireless communication function of the first electronic device 100 can be implemented through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor, and baseband processor.
[0376] The wireless communication module 160 can provide solutions for wireless communication applications on the first electronic device 100, including wireless local area networks (WLANs) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), and infrared (IR) technologies. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via antenna 2, performs frequency modulation and filtering of the electromagnetic wave signals, and sends the processed signal to processor 110. The wireless communication module 160 can also receive signals to be transmitted from processor 110, perform frequency modulation and amplification, and convert them into electromagnetic waves for radiation via antenna 2.
[0377] In some embodiments, antenna 1 of the first electronic device 100 is coupled to mobile communication module 150, and antenna 2 is coupled to wireless communication module 160, enabling the first electronic device 100 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, GNSS, WLAN, NFC, FM, and / or IR technologies, etc. The GNSS may include the Global Positioning System (GPS), the Global Navigation Satellite System (GLONASS), the BeiDou Navigation Satellite System (BDS), the Quasi-Zenith Satellite System (QZSS), and / or satellite-based augmentation systems (SBAS).
[0378] In some embodiments, when the first electronic device 100 is a content sender, the wireless communication module 160 can be used to send content from the first electronic device 100 to the second electronic device 200. When the first electronic device 100 is a content receiver, the wireless communication module 160 can be used to receive content shared by the second electronic device 200.
[0379] The first electronic device 100 implements display functions through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, connected to the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations and for graphics rendering. The processor 110 may include one or more GPUs, which execute program instructions to generate or modify display information.
[0380] Display screen 194 is used to display images, videos, etc. Display screen 194 includes a display panel. The display panel can be manufactured using a liquid crystal display (LCD), such as an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a mini-LED, a micro-LED, a micro-OLED, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the first electronic device 100 may include one or N displays 194, where N is a positive integer greater than 1.
[0381] Internal memory 121 can be used to store computer executable program code, which includes instructions. Internal memory 121 may include a program storage area and a data storage area. The program storage area may store the operating system, at least one application program required for a function (such as sound playback, image playback, etc.), etc. The data storage area may store data created during the use of the first electronic device 100 (such as audio data, phonebook, etc.). Furthermore, internal memory 121 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. Processor 110 executes various functional applications and data processing of the first electronic device 100 by running instructions stored in internal memory 121 and / or instructions stored in memory disposed in the processor.
[0382] In some embodiments, the internal memory 121 may also be used to store a preset model, which can be used to determine whether an object near the display screen of the first electronic device 100 is an electronic device. A description of this preset model can be found in the relevant content described below.
[0383] In some embodiments, the second electronic device 200 can be placed close to the display screen of the first electronic device 100 to share content from the second electronic device 200 to the first electronic device 100, or vice versa. In this embodiment, the first electronic device 100 can be any electronic device equipped with a display screen. In other embodiments, the first electronic device 100 can be placed close to the display screen of the second electronic device 200 to share content from the second electronic device 200 to the first electronic device 100, or vice versa. In this embodiment, the second electronic device 200 can be any electronic device equipped with a display screen. The following description uses the example of the second electronic device 200 being close to the display screen of the first electronic device 100. Similar implementations can be referenced for the implementation of the first electronic device 100 being close to the display screen of the second electronic device 200.
[0384] The proximity in the embodiments of this application may include non-contact proximity and / or contact proximity (i.e., touching).
[0385] It is understood that in this embodiment of the application, the second electronic device 200 being close to the display screen of the first electronic device 100 can mean that the distance between the second electronic device 200 and the display screen of the first electronic device 100 meets a preset distance range. For example, the preset distance range can be less than or equal to a preset distance threshold, etc.
[0386] In this embodiment of the application, the second electronic device 200 approaching the display screen of the first electronic device 100 may include the second electronic device 200 and the display screen of the first electronic device 100 being very close (e.g., 1-2 mm), to the point that they touch. In this case, the second electronic device 200 approaching the display screen of the first electronic device 100 can also be described as the second electronic device 200 touching the display screen of the first electronic device 100.
[0387] Optionally, in some embodiments, content sharing between the second electronic device 200 and the first electronic device 100 is only possible when the duration of the second electronic device 200 touching the display screen of the first electronic device 100 is greater than or equal to a preset duration. For example, the preset duration can be 500ms. The preset duration can be set by the developers based on empirical values.
[0388] In other embodiments, content sharing between the second electronic device 200 and the first electronic device 100 is only possible when the effective contact area between the display screens of the second electronic device 200 and the first electronic device 100 is greater than or equal to a preset area. Optionally, the effective area can be determined by at least one of the following: the angle between the second electronic device 200 and the first electronic device 100, the contact area, etc.
[0389] In some other embodiments, when the second electronic device 200 is in contact with the display screen of the first electronic device 100, the edge of the second electronic device 200 cannot extend beyond the edge of the display screen of the first electronic device 100, so that content sharing can be performed between the second electronic device 200 and the first electronic device 100.
[0390] 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.
[0391] In some embodiments, when the second electronic device 200 approaches the display screen of the first electronic device 100, the detection data corresponding to the display screen changes, thereby allowing the first electronic device 100 to determine that an electronic device (such as the second electronic device 200) is currently approaching its display screen. In this embodiment, as a specific implementation, taking the display screen of the first electronic device 100 as a capacitive touchscreen and the detection data corresponding to the display screen as capacitance, the process by which the first electronic device 100 determines the presence of an electronic device approaching its display screen will be described.
[0392] A capacitive touchscreen may include one or more capacitor modules. When a charged conductor such as a second electronic device 200 approaches the display screen of a first electronic device 100, the capacitance value of these one or more capacitor modules changes (e.g., increases or decreases), allowing the first electronic device 100 to determine that the second electronic device 200 is currently near its display screen. In some embodiments, these one or more capacitor modules may be distributed in different areas of the capacitive touchscreen. When a charged conductor such as the second electronic device 200 approaches a certain area of the display screen of the first electronic device 100, the capacitance value of the capacitor module distributed in the corresponding area changes, allowing the first electronic device 100 to determine which area of its display screen the second electronic device 200 is approaching. In other words, in this embodiment, the first electronic device 100 can not only determine whether the second electronic device 200 is near its display screen, but also determine which area of its display screen the second electronic device 200 is approaching.
[0393] Optionally, the aforementioned one or more capacitor modules can be composed of horizontally arranged electrode arrays and vertically arranged electrode arrays. In some implementations, as shown in Figure 4A, two sets of electrodes (such as horizontal electrode 41 and vertical electrode 42) form a capacitor 43 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 second electronic device 200 approaches the display screen of the first electronic device 100, 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 43) on the display screen can be obtained, that is, the capacitance value of each capacitor module can be obtained.
[0394] Of course, in other implementations, horizontally arranged electrodes and vertically arranged electrodes can also form a capacitor 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.
[0395] 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.
[0396] 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.
[0397] In some embodiments, since the change in capacitance of the display screen of the first electronic device 100 caused by the second electronic device 200 approaching its display screen is relatively slight, to improve the accuracy of the first electronic device 100 in determining the presence of the second electronic device 200 and reduce the judgment error, the first electronic device 100 can use time-domain aggregation to determine whether the capacitance of the display screen has changed. The time-domain aggregation method refers to the first electronic device 100 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 second electronic device 200 is approaching the display screen of the first electronic device 100. For example, in this embodiment, the preset condition may include a capacitance value change greater than or equal to a preset change threshold. Optionally, the change may include, for example, the difference between the average capacitance value detected over a period of time and a preset capacitance value. Optionally, the change may also include, for example, the difference between the average capacitance value of a certain area of the display screen of the first electronic device 100 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 can be the average value measured historically when no other conductor is nearby on the capacitive touchscreen of the first electronic device 100. The change in capacitance value can also be described as a capacitance difference. For example, this capacitance difference represents the difference between the detected capacitance value and the reference capacitance value.
[0398] Similarly, to improve the accuracy of the first electronic device 100 in determining which area of its own display screen the second electronic device 200 is approaching, and to reduce the judgment error, the first electronic device 100 can use a combination of spatial domain aggregation and temporal domain aggregation to determine whether the capacitance of the display screen has changed. The combination of spatial domain aggregation and temporal domain aggregation means that the first electronic device 100 detects the capacitance value of a certain area on the display screen. This area can be the area approached by the second electronic device 200, i.e., the area where the capacitance value changes slightly. When it is determined that 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 second electronic device 200 is approaching. As shown in Figure 4B, when the second electronic device 200 approaches area 1 on the display screen of the first electronic device 100, the first electronic device 100 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 first electronic device 100 can determine that there is region 1 on the display screen of the second electronic device 200 near the first electronic device 100.
[0399] In the above embodiment, the display screen of the first electronic device 100 is a capacitive screen, and the detection data is the capacitance. In other embodiments, the detection data can also be parameters converted from capacitance, such as current and voltage.
[0400] Similarly, when the display screen of the first electronic device 100 is implemented as other types of screens, such as infrared touch screens or acoustic touch screens, it is also possible to determine whether there is a second electronic device 200 approaching the display screen of the first electronic device 100 by detecting whether the detection data corresponding to the display screen changes.
[0401] It is understood that in this embodiment, the second electronic device 200 has characteristics that can cause changes in the detection data corresponding to the display screen, such as conductivity. That is, only when an object with this characteristic approaches the display screen of the first electronic device 100 can the detection data corresponding to the display screen change; conversely, when an object without this characteristic approaches the first electronic device 100, the detection data corresponding to the display screen will not change.
[0402] In some embodiments, objects other than electronic devices may also have characteristics that can cause changes in the detection data 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 first electronic device 100, it may also cause a change in the capacitance value of the display screen of the first electronic device 100. Therefore, in order to facilitate the first electronic device 100 in identifying whether the object approaching its display screen is an electronic device or a finger, in some embodiments, the first electronic device 100 can input the detected capacitance value of the display screen into a preset model, and output the recognition result through the preset model.
[0403] Optionally, in this embodiment, the preset model can be various deep learning models or machine learning models. For example, as shown in FIG4C, the capacitance value of the display screen can be a capacitance value distribution map 401 on the entire display screen, where each capacitance value included in the capacitance value distribution map 401 is sequentially the capacitance value corresponding to each capacitor module included in the display screen. It is understood that the capacitance value distribution map 401 uses patterns to represent the capacitance value size; different patterns represent different capacitance values, such as the patterns "×", " / ", "\", and "√" representing different capacitance values. It is also understood that when the first electronic device 100 uses methods such as time-domain aggregation and spatial-domain aggregation as described above, each capacitance value included in the capacitance value distribution map 401 can be obtained by accumulating the capacitance values of the same capacitor module detected by the first electronic device 100 within a preset time period.
[0404] The capacitance value distribution map 401 can be input into a preset model 402, and the preset model 402 will output a recognition result 403. The recognition result 403 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 value of the aforementioned display screen can also be a capacitance value distribution map corresponding to the approach area on the display screen, etc.
[0405] In the above embodiments, the determination of whether a second electronic device 200 is near the display screen of the first electronic device 100 is based on the detection data corresponding to the display screen of the first electronic device 100. In other embodiments, the first electronic device 100 may also determine whether the second electronic device 200 is near the first electronic device 100 by other means, such as detecting ultrasonic signals, near-field communication signals, or other types of wireless signals emitted by the other end, and then determining whether the second electronic device 200 is near the first electronic device 100.
[0406] When the first electronic device 100 detects the second electronic device 200 approaching its display screen via the above method, it begins to establish a network connection with the second electronic device 200. In some embodiments, the second electronic device 200 and the first electronic device 100 can establish a short-range communication connection via near-field communication (NFC) technology. For example, this NFC technology may include, but is not limited to, Bluetooth, and satellite communication. As one possible implementation, the first electronic device 100 can periodically send broadcast messages to the outside world. These broadcast messages may carry information identifying the first electronic device 100, such as its name, identifier, and address. Correspondingly, the second electronic device 200 can receive these broadcast messages, and upon receiving a broadcast message from the first electronic device 100, it can establish a communication connection with the first electronic device 100.
[0407] For example, after the first electronic device 100 detects the approach of the second electronic device 200, it sends an instruction message to the second electronic device 200 to trigger the establishment of a short-range communication connection with the second electronic device 200.
[0408] In some embodiments, since other electronic devices may be simultaneously broadcasting messages around the second electronic device, and these broadcast messages may have different purposes—for example, the first electronic device's broadcast message might be for content sharing, while the other electronic devices' broadcast messages might be for audio connection or other purposes—the second electronic device can identify which broadcast messages are for content sharing. Therefore, to facilitate the second electronic device's identification of which broadcast messages are for content sharing, the broadcast messages sent by the first electronic device can carry a specific identifier, which can be used to characterize that the broadcast message is for content sharing.
[0409] In some scenarios, as shown in Figure 5A, when the second electronic device 200 is near the display screen of the first electronic device 100, other electronic devices besides the second electronic device 200, such as electronic device 501, may be placed around the first electronic device 100. These other electronic devices can also receive the broadcast messages of the first electronic device. To facilitate an electronic device in determining whether to establish a communication connection with the first electronic device after receiving the broadcast message, the second electronic device can also establish a communication connection with the first electronic device only when it is determined to be near the display screen of the first electronic device. Conversely, it will not establish a communication connection with the first electronic device when it is determined not to be near the display screen of the first electronic device. This ensures that the electronic device that establishes a communication connection with the first electronic device is the electronic device that is near the display screen of the first electronic device, and not other electronic devices such as electronic device 501 placed next to the first electronic device. In the above example, the electronic device starts acquiring broadcast messages before the first electronic device starts broadcasting. In other embodiments, the electronic device may not start acquiring broadcast messages before the first electronic device starts broadcasting. Therefore, to facilitate an electronic device, such as a second electronic device, in determining when to start acquiring the broadcast messages of the first electronic device, the second electronic device may also start acquiring the broadcast messages of the first electronic device when it determines that it is close to the display screen of the first electronic device.
[0410] For example, as shown in Figure 5A, when the second electronic device is near the display screen of the first electronic device, the second electronic device may be in a handheld scenario. In this case, the second electronic device can establish a communication connection with the first electronic device after receiving the broadcast message from the first electronic device, once it is determined that it is in a handheld scenario. In other words, other electronic devices placed around the first electronic device, once it is determined that they are not in a handheld scenario, may not perform the operation of receiving the broadcast message from the first electronic device, or they may perform the operation of receiving the broadcast message from the first electronic device but not perform the operation of establishing a communication connection with the first electronic device.
[0411] For example, when the second electronic device is held in a handheld environment, a finger may touch the display screen, causing changes in the corresponding detection data. The second electronic device can then determine whether it is in a handheld environment by observing these changes in the display screen's detection data. For an explanation of the detection data corresponding to the display screen, please refer to the description of detection data above. Alternatively, the second electronic device can also determine whether it is in a handheld environment by capturing surrounding images using a camera. Furthermore, when the second electronic device is held in a handheld environment, its posture may change. The second electronic device can use gyroscope sensors, accelerometers, etc., to detect its posture and determine whether it is in a handheld environment. Finally, when the second electronic device is held in a handheld environment, a finger may apply force to it. The second electronic device can use pressure sensors to detect whether it is under pressure and determine whether it is in a handheld environment. Optionally, the solutions described in the above examples can be used individually or in combination.
[0412] Accordingly, once the second electronic device and the first 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 second and first electronic devices.
[0413] Optionally, in the above embodiments, the communication connection between the second electronic device and the first electronic device is established after the first electronic device detects that the second electronic device is near the display screen containing the first electronic device. In other embodiments, the communication connection between the second electronic device and the first electronic device may be established before the second electronic device is near the display screen containing the first electronic device. After the first electronic device detects that the second electronic device is near the display screen containing the first electronic device, the second electronic device and the first electronic device do not need to establish a communication connection again, but can directly share content.
[0414] Optionally, in the above embodiments, taking the first electronic device sending a broadcast message to the outside world as an example, in other embodiments, the second electronic device can also send a broadcast message to the outside world, such as sending a Bluetooth broadcast message. In some examples, the second electronic device determines that it is in a "moving hover state," which indicates that it is in a handheld scenario, so the second electronic device can send a Bluetooth broadcast message. Typically, when a user holds the second electronic device to share content with other electronic devices, the second electronic device, upon determining that it is in a handheld scenario, can detect the user's potential need to share content, and thus can send a Bluetooth broadcast message. Optionally, the "moving hover state" includes, for example, the state where the second electronic device has stopped after moving, such as when a user holds the second electronic device close to the display screen of the first electronic device and stops; currently, the second electronic device is in a "moving hover state," and the user may have a need to share content.
[0415] In some examples, the second electronic device can determine whether it is in a handheld scenario based on the example methods described above. The following example illustrates the implementation process of the second electronic device determining whether it is in a handheld scenario based on data detected by its own sensors.
[0416] For example, as a user holds a second electronic device and approaches another electronic device, the second 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 second electronic device may exceed a certain threshold. Optionally, the second electronic device obtains its linear acceleration magnitude and angular velocity magnitude from the detection data of the accelerometer. If the linear acceleration magnitude exceeds the acceleration threshold and the angular velocity magnitude exceeds the angular velocity threshold, the second electronic device can determine that it is currently in motion.
[0417] Optionally, during this process, the second electronic device may undergo certain displacements in various directions in space. Therefore, by determining the displacement of the second electronic device in the spatial coordinate system, it can be determined whether the second electronic device is in a handheld scenario. For example, as shown in Figure 5B(a), the top of the second 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 5B(b), the second electronic device moves a distance greater than a distance threshold 2 (e.g., 5 cm) along the z-axis. Then, in response to the aforementioned displacement conditions, the second electronic device can be determined to be in a handheld scenario. Optionally, the second electronic device can obtain its speed and distance of movement along the coordinate axes through linear acceleration integration.
[0418] Optionally, during this process, the second electronic device may undergo attitude changes such as rotation (or tilting). Therefore, by determining the rotation angle of the second electronic device in the spatial coordinate system, it can be determined whether the second electronic device is in a handheld scenario. For example, as shown in Figure 5B(c), the second electronic device, through the detection data of the gyroscope sensor, obtains that its rotation angle around the x-axis is greater than an angle threshold (e.g., 15 degrees). Therefore, the second electronic device can be determined to be in a handheld scenario. Optionally, during the attitude determination process of the second electronic device, the second 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 second electronic device along the three axes through angular velocity integration.
[0419] Optionally, the second electronic device determines whether it is in a handheld scenario by judging at least one of acceleration, displacement, and rotation angle.
[0420] Optionally, the handheld scene detection process of the second 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 first electronic device 100 and the second electronic device 200 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.
[0421] Optionally, after content sharing is completed, the first electronic device 100 and the second electronic device 200 can disconnect the short-range communication connection used to transmit the shared content. Optionally, after the short-range communication connection is disconnected, the first electronic device 100 can re-trigger the establishment of a short-range communication connection with the second electronic device 200 by judging the capacitance value, etc., to allow for the sharing of other content.
[0422] For example, after sending shared content to the second electronic device 200 via a short-range communication connection, the first electronic device 100 can send an indication message to the second electronic device 200. This indication message can be sent separately or along with the last sent shared content. Based on this indication message, the second electronic device 200 can determine that the current content has been shared and can disconnect the short-range communication connection with the first electronic device 100.
[0423] As described above, the first electronic device 100 can obtain the proximity event of other electronic devices (such as the second electronic device 200) and the location (or area) of the second electronic device 200 near the display screen by detecting the capacitance value on the display screen.
[0424] In some embodiments, the first electronic device 100 includes a display screen and a processor. Optionally, the display screen is a touch screen, for example, 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 first electronic device 100 can, through the AP core, acquire proximity events, proximity areas, etc., of the second electronic device 200 based on the acquired detection data.
[0425] 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 first electronic device 100 can send indication information to the touch IC, the indication information being used to indicate the detection data reporting frequency.
[0426] 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.
[0427] 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.
[0428] 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.
[0429] 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.
[0430] 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.
[0431] 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.
[0432] It should be understood that the semi-Idle mode can also be described as Monitor mode, semi-Active mode, or other names, and the embodiments of this application do not limit this.
[0433] 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.
[0434] 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.
[0435] 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.
[0436] 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.
[0437] 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.
[0438] 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.
[0439] 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.
[0440] 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.
[0441] In some embodiments, the first electronic device 100, 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 first electronic device 100. The gallery application is used to manage images, videos, etc., on the first electronic device 100. 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.
[0442] For example, when no other device is near the first electronic device 100, the touch IC in the first electronic device 100 reports detection data to the AP core at a low 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 first electronic device 100 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 second electronic device 200) near the first electronic device 100. In response, the first electronic device 100 can increase the detection data reporting frequency to improve 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.
[0443] In some embodiments, the preset scenario may further include a scenario where the first electronic device 100 acquires a Bluetooth signal sent by the second electronic device 200.
[0444] In some examples, the second electronic device 200 detects its own movement and enters a stopped state, which can trigger the transmission of a Bluetooth signal. Optionally, the second electronic device 200 transmits the Bluetooth signal via broadcast. Optionally, the second electronic device 200 obtains its own state changes through sensor detection data. For example, the second electronic device 200 obtains state changes such as movement and stopping after movement through an IMU. In an example scenario, a user holds the second electronic device 200 close to the first electronic device 100 and then stops at a certain position in front of the first electronic device 100's display screen to meet the user's content sharing needs. Then, the second electronic device 200 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 second electronic device 200 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 second electronic device 200 can also trigger the content sharing scenario by sending other types of signals. Optionally, the second electronic device 200 entering a stopped state after movement can also be described as the second electronic device 200 entering a hovering state.
[0445] Correspondingly, after receiving the Bluetooth signal sent by the second electronic device 200 via broadcast, the first electronic device 100 can determine that the current scenario meets the preset scenario and trigger the touch IC of the first electronic device 100 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 second electronic device 200.
[0446] Optionally, the Bluetooth signal broadcast by the second electronic device 200 carries relevant information about the second electronic device 200. For example, this information may include account information, device identifier, etc. Optionally, after receiving the Bluetooth signal, the first electronic device 100 determines whether to switch from Idle mode to half-Idle mode based on the relevant information carried within it. For example, if the first electronic device 100 determines that it and the second electronic device 200 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, and these devices may be able to log into the same account. Therefore, proximity between devices logged into the same account may require content sharing. Thus, if the first electronic device 100 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 second electronic device 200 can be determined subsequently through capacitance values read at a higher frequency.
[0447] In other examples, after receiving a Bluetooth signal, the first electronic device 100 detects that the user has launched the target application. In this case, the first electronic device 100 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 first electronic device also receives a Bluetooth signal. In this case, the first electronic device 100 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.
[0448] In some embodiments, the preset scenario may further include a scenario where the first electronic device 100 displays an always-on display (such as an AOD interface). For example, during the process of the first electronic device 100 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 first electronic device 100 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 first electronic device 100 to more accurately determine the proximity of the finger and, consequently, the position of the user's finger, thus improving the responsiveness.
[0449] In some embodiments, after increasing the detection data reporting frequency, the AP core in the first electronic device 100 can more accurately determine whether other electronic devices are approaching based on the acquired detection data. Optionally, the first electronic device 100 obtains detection data that meets preset conditions. Then, in response to the satisfaction of the preset conditions, the first electronic device 100 determines that it has acquired an approach event of the second electronic device 200. The touch IC in the first electronic device 100 can then further improve the detection data reporting efficiency, thereby further improving the values of measurement parameters such as the response speed, recall rate, and accuracy of proximity sensing. This facilitates the first electronic device 100 in verifying the authenticity of the proximity event and determining the proximity location of the second electronic device 200.
[0450] 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 first electronic device 100 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, indicating the presence of an approach event of the second electronic device 200.
[0451] For example, as shown in Figure 6A, the second electronic device 200 is located at position A, which is far from the first electronic device 100. In response to a user's instruction to launch a gallery application, the first electronic device 100 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 6B, the first electronic device 100 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 second electronic device 200 moves from position A to position B. The AP core in the first electronic device 100, based on the changes in the read detection data (such as capacitance value), determines that the current preset conditions are met, thereby determining that the second electronic device 200 has approached. Then, as shown in Figure 6B, the first electronic device 100 can instruct the touch IC to switch from half-Idle mode to Active mode, thereby 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 second electronic device 200 has truly approached and its 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.
[0452] Optionally, during the temporal and spatial aggregation processes, the first electronic device 100 can determine the first region approached by the second electronic device 200 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 first electronic device 100 acquires a capacitance value distribution map and scans the map using 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 first electronic device 100 acquires the coordinates of the first region for subsequent content sharing.
[0453] For example, if the length and width of the capacitance value distribution map are 74 mm and 49 mm respectively, the first electronic device 100 scans the entire capacitance value distribution map using a 3 mm * 15 mm rectangular frame. As shown in Figure 7(a), during the scanning process, if the average capacitance value within the rectangular frame 71 is greater than a preset threshold, the first electronic device 100 can determine that the area within the rectangular frame 71 is the first region.
[0454] 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.
[0455] 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 first electronic device 100 identifies the first region.
[0456] Subsequently, the first electronic device 100 can trigger the establishment of a short-range communication connection with the second electronic device 200 when the second electronic device 200 approaches, so as to achieve collaborative work, such as content sharing.
[0457] It can be seen that, compared to the prior art, the first electronic device 100 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 second electronic device 200. Thus, after the second electronic device 200 approaches, the detection data reporting frequency can be further increased from frequency 2 to frequency 3, without necessarily waiting until the second electronic device 200 touches the display screen of the first electronic device 100 before increasing the detection data reporting frequency from frequency 1 to frequency 3, thereby improving the efficiency of obtaining the proximity position of the second electronic device 200.
[0458] It should be understood that in this embodiment of the application, after determining that the second electronic device 200 is approaching, the first electronic device 100 increases the reporting frequency of detection data. This approach includes scenarios where the distance between the second electronic device 200 and the first electronic device 100 decreases until it reaches zero. For example, the approach event may also include a touch event.
[0459] 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.
[0460] Furthermore, enabling collaboration between different devices without relying on NFC modules can reduce device hardware costs and simplify user operation.
[0461] 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.
[0462] In some embodiments, when the second electronic device 200 determines that it is currently in a preset sharing scenario, it can transmit a high-power signal via a wireless charging coil. Optionally, the preset sharing scenario includes, for example, the second electronic device 200 entering a stopped state after detecting its own movement. In this preset sharing scenario, there is a possibility that the second electronic device 200 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 second electronic device 200 can also transmit this high-power signal via other modules. Optionally, the preset power threshold may be, for example, a power value between 70kHz and 110Hz.
[0463] Optionally, the second electronic device 200 acquires information about its movement and subsequent stop state via an IMU. For example, the second electronic device 200 acquires its attitude change based on parameters detected by a gyroscope sensor; and its movement speed change based on parameters detected by an accelerometer sensor. Therefore, the second electronic device 200 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 second electronic device 200 can be found in the relevant embodiments described above.
[0464] Optionally, the second electronic device 200 (or the first electronic device 100) can also acquire the proximity action of other devices through other modules. For example, the second electronic device 200 can acquire the proximity action of the second electronic device 200 to the first electronic device 100 through the Bluetooth ranging function of the Bluetooth module.
[0465] Optionally, the second electronic device 200 transmits the high-power signal at a preset frequency.
[0466] In some embodiments, the high-power signal sent by the second electronic device 200 may interfere with the detection data of the first electronic device 100. Optionally, as described above, the first electronic device 100 increases 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 second electronic device 200 triggers the transmission of a high-frequency signal after acquiring a proximity action, the preset condition for the first electronic device 100 to determine the proximity event may also include detecting the high-power signal.
[0467] Optionally, the first electronic device 100 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.
[0468] For example, a high-power signal sent by the second electronic device 200 at a preset frequency can cause regular interference to the detection data of the first electronic device 100. As described above in Figure 4C, the capacitance value of the display screen of the first electronic device 100 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 first electronic device 100 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 first electronic device 100 can obtain the interference signal currently detected by other electronic devices. Then, the first electronic device 100 can instruct the touch IC to switch from half-Idle mode to Active mode.
[0469] 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, when the second electronic device 200 sends an interference signal using the pre-configured parameters, the first electronic device 100, upon obtaining a capacitance value distribution diagram showing that the arrangement of the first pattern conforms to the preset rules, can detect interference signals sent by other electronic devices and determine the presence of other devices nearby.
[0470] For example, as shown in FIG7(b), the first electronic device 100 acquires a capacitance value distribution map. In this capacitance value distribution map, the first electronic device 100 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 the cross shape can be different or the same. As shown by reference numeral 72, the first electronic device 100 acquires that the arrangement of the first pattern conforms to the preset rule. Then, the first electronic device 100 can acquire the interference signals currently detected by other electronic devices.
[0471] Thus, the second electronic device 200 triggers the first electronic device 100 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 second electronic device 200.
[0472] For example, the first electronic device 100 may have a preset power threshold. When the first electronic device 100 receives a high-power signal exceeding the preset power threshold, it can determine that the second electronic device 200 is approaching.
[0473] Thus, compared to simply relying on detection data to determine whether the second electronic device 200 is approaching, the first electronic device 100 determines whether the second electronic device 200 is approaching by actively sending interference signals from the second electronic device 200, thereby improving the accuracy and recall rate of the first electronic device 100 in determining whether the second electronic device 200 is approaching the display screen.
[0474] Furthermore, the first electronic device 100 can directly detect the approach of the second electronic device 200 based on the interference signal sent by the second electronic device 200, 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 4C, thus reducing the computational difficulty for the first electronic device 100.
[0475] 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.
[0476] In some embodiments, in response to meeting preset conditions, the AP core in the first electronic device 100 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 second electronic device 200 near the display screen of the first electronic device 100, thereby obtaining the first area corresponding to that position. For example, after a short-range communication connection is established, the first electronic device 100 can share the first content displayed in the first area to the second electronic device 200; or, the first electronic device 100 can receive the content shared by the second electronic device 200 and display the obtained shared content in the first area.
[0477] Optionally, after content sharing is completed, the AP core in the first electronic device 100 can reduce the frequency of detection data reporting by the touch IC.
[0478] For example, after content sharing is completed, the first electronic device 100 still maintains the display interface of the target application in the foreground. Therefore, the first electronic device 100 still has the possibility of sharing 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 6B, the first electronic device 100 instructs the touch IC to switch from Active mode to half-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 second electronic device 200 through detection data acquired at a relatively high frequency, thereby enabling subsequent content sharing without wasting power due to an excessively high detection data reporting frequency.
[0479] Optionally, the foreground display of the target application's interface includes the target application's window as the focus window.
[0480] Thus, when there is a possibility of content sharing, the first electronic device 100 instructs the touch IC to switch to half-Idle mode, ensuring a certain level of response speed, recall rate, and accuracy while avoiding excessive power consumption.
[0481] For example, after content sharing is completed, the first electronic device 100 does not display the target application's interface in the foreground. Therefore, the first electronic device 100 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 6B, the first electronic device 100 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.
[0482] 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.
[0483] For example, during content sharing, the first electronic device 100 runs the target application process in the background. Therefore, if the first electronic device 100 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 first electronic device 100 can instruct the AP core to acquire detection data at a lower frequency.
[0484] Optionally, during content sharing, the first electronic device 100 runs the target application process in the background. Before or after content sharing ends, the first electronic device 100 displays the target application's interface in the foreground based on user input. In this case, the AP core in the first electronic device 100 can maintain a frequency of 3 to acquire detection data, facilitating the determination of areas where subsequent content sharing is needed.
[0485] Thus, in the absence of any possibility of content sharing, the first electronic device 100 instructs the touch IC to switch to Idle mode to avoid excessive power consumption.
[0486] In some embodiments, in response to a preset scenario, the AP core in the first electronic device 100 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 second electronic device 200. 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 first electronic device 100 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 first electronic device 100 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.
[0487] For example, as shown in FIG6B, after the first electronic device 100 displays the display interface of the target application, it instructs the touch IC to switch from Idle mode to half-Idle mode, and the corresponding touch IC increases the detection data reporting frequency from frequency 1 to frequency 2. Subsequently, if the first electronic device 100 detects an editing operation by the user on the display interface of the target application, it indicates that the current user's need is to edit the displayed content, rather than share it. Therefore, the first electronic device 100 can instruct the touch IC to switch from half-Idle mode back to Idle mode, and the corresponding touch IC decreases the detection data reporting frequency from frequency 2 back to frequency 1.
[0488] Optionally, if the first electronic device 100 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 first electronic device 100 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.
[0489] For example, as shown in Figure 6B, after the first electronic device 100 displays the display interface of the target application, it instructs the touch IC to switch from Idle mode to half-Idle mode, and the corresponding touch IC increases the detection data reporting frequency from frequency 1 to frequency 2. Subsequently, after a preset period of 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 second electronic device 200. Therefore, the first electronic device 100 can determine that the current user may not have a need for content sharing. Thus, the first electronic device 100 can instruct the touch IC to switch from half-Idle mode back to Idle mode, and the corresponding touch IC reduces the detection data reporting frequency from frequency 2 back to frequency 1.
[0490] In this way, the first electronic device 100 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.
[0491] 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.
[0492] For example, when a user enters a vehicle carrying a second electronic device 200 (such as a mobile phone), the first electronic device 100 (such as an in-vehicle terminal) can detect the second electronic device 200. Specifically, the second electronic device 200 detects that the user has launched a navigation application and is approaching the display screen of the first electronic device 100. In response to the approach of the second electronic device 200, the first electronic device 100 can display the navigation application interface. This scenario is a vehicle-to-everything (V2X) scenario. It should be understood that the above example uses the navigation application as an example to illustrate the V2X scenario and does not impose limitations on this V2X scenario. Optionally, in the V2X scenario, the first electronic device 100 also needs to determine the approach of the second electronic device 200 to realize the switching display of the application currently displayed by the second electronic device 200. Based on the foregoing descriptions of the various modes of the touch IC in the embodiments, when the first electronic device 100 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 obtain information about whether the electronic device with the same account is near the display screen of the first electronic device 100 via a higher frequency capacitance value, thereby determining whether the current situation is a vehicle-mounted system transition scenario. For example, if the first electronic device 100 detects the proximity of the second electronic device 200, it can determine that it is currently in a vehicle-mounted system transition scenario and can directly trigger collaborative work with the second electronic device 200. Optionally, after determining that the first electronic device 100 is in a vehicle-mounted system transition scenario, the first electronic device 100 may not instruct the touch IC to switch from half-Idle mode to Active mode. Optionally, after determining that the first electronic device 100 is in a vehicle-mounted system transition scenario, the first electronic device 100 may instruct the touch IC to switch from half-Idle mode to Idle mode.
[0493] 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.
[0494] Figure 8 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 8 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:
[0495] S801, The first electronic device determines that the first event has occurred.
[0496] In some embodiments, the first event includes: a first launch event of a first application in a first set of applications of the first electronic device. Optionally, the first application is a first target application preset by the system or a first target application specified by the user; and / or, the first application includes one or more of the following: a file management application, a gallery application, and a document application.
[0497] In some examples, the first electronic device has a first application pre-configured in it, or the first electronic device acquires the first application based on user actions.
[0498] In some examples, the first launch event includes opening the first application or switching the first application running in the background to run in the foreground.
[0499] For example, if a first electronic device detects a user launching a first application, it can determine that the user has a need for collaborative work between different devices. Then, the first 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 first electronic device to launch a gallery application, the first electronic device may need to share images with other electronic devices through the gallery application.
[0500] In other examples, the first event also includes: 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.
[0501] For example, a first electronic device periodically sends short-range broadcast messages (such as Bluetooth broadcast messages), which carry the account the first electronic device is logged into. Other devices receiving the broadcast messages return response messages, carrying their own logged-in accounts. If the first electronic device receives a response message carrying the account it is logged into, it determines that there are other devices (such as a second electronic device) within a preset range that may be cooperating. Subsequently, the first electronic device maintains its discovery status with these other devices via heartbeat packets. For example, the first electronic device determines, based on the response message to the broadcast message, that there are no other electronic devices nearby logged into the same account as it. Afterward, the first electronic device continues to send broadcast messages and receives corresponding response messages. Based on the newly received response messages to the broadcast messages, the first electronic device determines that there are other electronic devices nearby logged into the same account as it, thus determining that a first event has occurred and that step S802 needs to be executed to increase the frequency of data acquisition.
[0502] In some embodiments, the first event may further include at least one of the following events: an unlocking event of the first electronic device; an activation event of the proximity sharing function of the first electronic device.
[0503] For example, after the first electronic device detects an unlock event, it determines that there may be a need for collaborative work between different devices. Or, for example, after the first electronic device activates the sharing function upon proximity, it determines that there may be a need for collaborative work between different devices.
[0504] For example, if the proximity sharing function of the first electronic device is enabled and it is in an unlocked state, and the first launch event of the first application in the first application set of the first electronic device is detected, it can be determined that the current user has a need for collaborative work between different devices.
[0505] For example, the first event is the event that causes the frequency switching condition to be met. For instance, the frequency switching condition includes one or more of the following: the first electronic device is unlocked; the proximity sharing function of the first electronic device is enabled; there is an application running in the foreground in the first application set of the first electronic device; there is no application running in the foreground in the second application set of the first electronic device; and there are other electronic devices logged into the same account as the first electronic device within the short-range communication range of the first electronic device. A detailed explanation of the second application set is provided below.
[0506] Optionally, the process by which the first electronic device determines that the first event has occurred can refer to the process by which the first electronic device determines whether a preset scenario is met in the above embodiments. For example, in response to determining the first event, the first electronic device determines that it is currently in a preset scenario and needs to trigger a subsequent determination of whether other devices are approaching.
[0507] S802. When it is determined that the first event has occurred, the first electronic device acquires the detection data of the display screen of the first electronic device at a first frequency.
[0508] The detection data is capacitance data. The first frequency is greater than the frequency at which the display screen's detection data was acquired before the first event occurred.
[0509] 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 first 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.
[0510] 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.
[0511] 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.
[0512] In some examples, the first frequency is greater than or equal to 2 Hz and less than or equal to 50 Hz. In other examples, the first frequency is greater than or equal to 5 Hz and less than or equal to 50 Hz. In still other examples, the first frequency is greater than or equal to 20 Hz and less than or equal to 25 Hz. In yet another example, the first frequency is 20 Hz or 21 Hz.
[0513] Implementation Method A: In some examples, the first frequency is greater than or equal to 5 Hz and less than or equal to 20 Hz. In other examples, the first frequency is greater than or equal to 8 Hz and less than or equal to 12 Hz. In still other examples, the first frequency is 9 Hz, 10 Hz, or 11 Hz. In practical implementation, if the first electronic device is a PC, Implementation Method A can be used.
[0514] Implementation Method B: In some examples, the first frequency is greater than or equal to 2 Hz and less than or equal to 15 Hz. In other examples, the first frequency is greater than or equal to 2 Hz and less than or equal to 10 Hz. In still other examples, the first frequency is 3 Hz, 4 Hz, or 5 Hz. In practical implementation, if the first electronic device is a tablet computer, Implementation Method B can be used.
[0515] In some embodiments, before determining that a first event has occurred, a first electronic device acquires detection data of the display screen at a third frequency, wherein the first frequency is greater than the third frequency.
[0516] 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 first electronic device increases the detection data reporting frequency of the touch IC.
[0517] S803. The first electronic device determines, based on the detection data acquired at the first frequency, that there is a second electronic device or other conductor near the first electronic device.
[0518] In some embodiments, determining a second electronic device or other conductor that is close to a first electronic device includes: determining that the second electronic device or other conductor is close to the first electronic device when the detection data acquired at a first frequency meets a first condition; wherein the first condition includes: the arrangement of target detection data in the detection data acquired at the first frequency conforms to a preset rule, the target detection data is detection data that meets the target condition, and the target condition includes: the change amount is greater than a preset threshold.
[0519] For example, the first difference between the detection data acquired at a first frequency and the benchmark detection data is greater than or equal to a first preset threshold. In the current example scenario, the first condition satisfied by the detection data acquired at the first frequency is that the change in the detection data acquired at the first frequency is greater than the preset threshold.
[0520] For example, the arrangement of detection data in the detection data acquired at the first frequency whose second difference from the benchmark detection data is greater than or equal to a second preset threshold conforms to a first preset rule. In the current example scenario, the target detection data are the detection data in the detection data acquired at the first frequency whose change is greater than the preset threshold. The first condition satisfied by the detection data acquired at the first frequency is that the arrangement of the target detection data in the detection data acquired at the first frequency conforms to a preset rule.
[0521] For example, the arrangement of some detection data in the detection data acquired at the first frequency where the third difference between the detection data and the benchmark detection data is greater than or equal to a third preset threshold conforms to a second preset rule. In the current example scenario, the target detection data is a portion of the detection data acquired at the first frequency where the change is greater than a preset threshold. The first condition satisfied by the detection data acquired at the first frequency is that the arrangement of the target detection data in the detection data acquired at the first frequency conforms to a preset rule.
[0522] In some examples, the detection data is, for example, capacitance value, and the reference detection data is, for example, reference capacitance value.
[0523] In some examples, the first difference, the second difference, and the third difference may be the same, partially the same, or different. The first preset threshold, the second preset threshold, and the third preset threshold may be the same, partially the same, or different.
[0524] In some examples, the first electronic device is equipped with a capacitive touchscreen, which includes multiple capacitor modules. The first 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 first 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 first 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 second electronic device or other conductor may approach the corresponding capacitor module.
[0525] Optionally, the reference capacitance value may be the average value measured historically when no other conductors were near the capacitive touchscreen of the first electronic device.
[0526] As mentioned above, the capacitance value distribution map can be a distribution map of the capacitance values detected by the first electronic device. Alternatively, the capacitance value distribution map can also be a distribution map of the difference between the capacitance value detected by the first electronic device and the reference capacitance value.
[0527] For example, the first electronic device can scan the entire capacitance value distribution map by a preset shape. At a certain moment, the first difference between the capacitance value of the capacitor module within the preset shape and the reference capacitance value is greater than or equal to a first preset threshold, or at a certain moment, the first difference between the average capacitance value of the capacitor module within the preset shape and the reference capacitance value is greater than or equal to the first preset threshold. In this case, it can be determined that a second electronic device or other conductor currently present near the first electronic device can be identified.
[0528] For example, as shown in Figure 7(b), the first electronic device acquires a capacitance value distribution map. In this capacitance value distribution map, the first electronic device uses a first pattern " / " to indicate capacitance values whose second difference from a reference capacitance value is greater than or equal to a second preset threshold. For example, the first preset rule is that the arrangement conforms to a hollow cross shape. As shown by reference numeral 72, the first electronic device acquires that the arrangement of the first pattern conforms to the first preset rule. Then, the first electronic device can detect the proximity of other electronic devices.
[0529] For example, the first electronic device acquires a capacitance value distribution map. From this map, the first electronic device identifies capacitance values whose third difference from a reference capacitance value is greater than or equal to a third preset threshold. Then, among these capacitance values, the first electronic device first finds point A with the largest third difference. For example, the third difference between the capacitance value of point A and the reference capacitance value must be greater than the differences between the capacitance values of other points and the reference capacitance value. Next, the first electronic device searches within a 3x3 grid centered on point A for at least one point B that satisfies the growth condition and incorporates point B into a connected component. Optionally, the growth condition includes, for example, that the third difference corresponding to point B is greater than or equal to X% of the third difference corresponding to point A at the center of the 3x3 grid (where X is between 0 and 100). For example, the third difference corresponding to point B is b, the third difference corresponding to point A is a, X is 20%, and b ≥ 20%a. Then, the aforementioned steps are repeated, with the first electronic device performing the aforementioned 3x3 search centered on each newly incorporated point in the connected component until no new points are incorporated into the connected component. For example, if the new 3x3 grid no longer includes points whose corresponding third difference is greater than or equal to the third preset threshold capacitance value, or if the new 3x3 grid no longer includes points whose corresponding third difference is greater than or equal to the third difference of the center point, the search can stop. Then, the first electronic device calculates the length of the long side and the length of the short side of the connected component. The length of the long side and the length of the short side conform to the third preset rule. Then, the first electronic device can detect the proximity of other electronic devices. Optionally, the third preset rule includes, for example, the long side length being within a first interval and the short side length being within a second interval. Optionally, the connected component can be rectangular, approximately elliptical, or other regular or irregular shapes. For example, in the case of a rectangular connected component, the long side is the long side of the rectangle, and the short side is the short side of the rectangle. In the case of an approximately elliptical connected component, the long side is the major axis of the approximately ellipse, and the short side is the minor axis of the approximately ellipse. It should be understood that each point in the capacitance value distribution map corresponds to one or more capacitance modules.
[0530] In this way, by increasing the frequency of reporting detection data, the first electronic device can improve the accuracy and recall of determining whether the second electronic device or other conductors are near the display screen.
[0531] In some embodiments, the second electronic device determines that a third event has occurred. Upon determining that the third event has occurred, the second 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 first electronic device. The third event includes: the second electronic device performing a preset action, the preset action being an action indicating that the second electronic device is moving closer to the display screen of another electronic device.
[0532] Optionally, the second 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 second 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 the first electronic device to determine the proximity of the second electronic device based on the detection data of the display screen of the first electronic device interfered with by the first signal.
[0533] 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 second electronic device to the display screen of the first electronic device.
[0534] 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.
[0535] For example, as a user holds a second electronic device and approaches another electronic device, the second 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 second electronic device may exceed a certain threshold. Optionally, the second electronic device obtains its linear acceleration magnitude and angular velocity magnitude from the detection data of the accelerometer. If the linear acceleration magnitude exceeds the acceleration threshold and the angular velocity magnitude exceeds the angular velocity threshold, the second electronic device can determine that it is currently in motion.
[0536] For example, as shown in Figure 5B(a), the top of the second 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 5B(b), the second 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 second electronic device can determine that it is in a handheld scenario.
[0537] Thus, by combining its own movement status and distance traveled, the second electronic device can determine whether it is in a "hovering state." When the second 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 second electronic device can send a first signal to trigger a nearby first electronic device to share content.
[0538] Correspondingly, compared to judging the proximity of other devices or conductors by changes in capacitance, the first electronic device can improve the accuracy of detection by detecting interference signals.
[0539] In some embodiments, the third event also includes detecting the presence of other electronic devices logged into the same account as the second electronic device within short-range communication range of the second electronic device.
[0540] Optionally, as described above, the first electronic device sends a broadcast message carrying its login account. The second electronic device can then receive this broadcast message and determine whether the account used by the first electronic device is the same as the account it logged into. If they are the same, the second electronic device triggers the first signal based on the hovering condition.
[0541] In this way, the second electronic device can 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.
[0542] In some embodiments, during the process of acquiring detection data of the display screen of the first electronic device at a first frequency, the first electronic device determines that a seventh event has occurred. Upon determining that the seventh event has occurred, the first electronic device acquires detection data of the display screen of the first electronic device at a third frequency, where the first frequency is greater than the third frequency. The seventh event includes at least one of the following events: a second exit event of a first application in a first application set of the first electronic device, and after the second exit event of the first application, all applications in the first application set are not in the foreground running state; a screen lock event of the first electronic device; a second launch event of a third application in a second application set of the first electronic device; no other electronic device logged into the same account as the first electronic device within the short-range communication range of the first electronic device; and a disabling event of the proximity sharing function of the first electronic device.
[0543] For example, if, during the process of acquiring detection data at a third frequency after the first electronic device is activated, a first event is determined to have occurred, indicating a possibility that a second electronic device or other conductor may be approaching for interaction, then the first electronic device can increase the frequency of acquiring detection data and acquire detection data at the first frequency. Optionally, if, during the process of acquiring detection data at the first frequency, the first electronic device determines that a second electronic device or other conductor is approaching, it can switch to a higher second frequency to acquire detection data (see step S804). Optionally, if, during the process of acquiring detection data at the first frequency, a seventh event is determined, indicating a low probability of sharing, then the first electronic device can switch back to a lower third frequency to acquire detection data. Optionally, if, during the process of acquiring detection data at the third frequency, a first event is again determined, indicating an increased probability of sharing, then the first electronic device can switch to a higher first frequency to acquire detection data to better determine whether a second electronic device or other conductor is approaching.
[0544] 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.
[0545] S804, The first electronic device initiates cooperative operation between the first electronic device and the second electronic device, or initiates cooperative operation between the first electronic device and other conductors.
[0546] Optionally, collaborative work may include content sharing between devices (such as content sharing between a PC or tablet and a mobile phone near the display of the PC or tablet), configuration management of screenless devices such as headphone boxes and styluses near the display of the first electronic device by the first electronic device, and the use of a conductor near the display of the first electronic device as an input device by the first electronic device.
[0547] In some embodiments, initiating collaborative work between the first electronic device and the second electronic device includes: the first electronic device sharing first content displayed on a first display area to the second electronic device; or, displaying second content shared by the second electronic device on the first display area.
[0548] For example, the first display area is the display area corresponding to the first window, where the first window is the window on the display screen where the second electronic device is located. For instance, the first display area could be the area corresponding to this first window, such as the area where the first window is located. Alternatively, the first display area could also be the area within the first window where the element closest to the second electronic device is located.
[0549] For example, the first display area specifically refers to the display area corresponding to the first display element, where the first display area is the display area on the screen where the second electronic device is close to. For instance, the first window is used to display the first application. For example, based on detection data, the first electronic device determines that the first display area where the second electronic device is close to is a certain area within the first window of the first application. For example, the first display area might be located in the lower right corner, middle, or lower left corner of the first window. Then, the first electronic device can determine that the second electronic device needs to share with the first application, and can send the content to be shared (such as the first content) existing in the first window to the second electronic device, or display the shared content (such as the second content) received from the second electronic device in the first display area.
[0550] For example, the first electronic device has high recognition accuracy and can determine the first content displayed on the first display area near the second electronic device, thereby directly sending the first content to the second electronic device. Alternatively, the first electronic device can directly display the second content on the first display area near the second electronic device after receiving the second content sent by the second electronic device.
[0551] In some examples, the collaboration between the first electronic device and the second electronic device is based on the first region.
[0552] In some examples, the first or second content is shared via a short-range communication connection.
[0553] In some examples, before sharing first or second content, a first electronic device establishes a short-range communication connection with a second electronic device. For instance, the first application is a gallery application. After the first electronic device detects the approach of the second 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. Accordingly, the second electronic device, which is in a "hovered state," can receive this short-range connection establishment request. The second electronic device may also be the one sending the first signal. In response to the connection establishment request, the second electronic device can reply with a response message to the first electronic device. Then, the gallery application in the first electronic device can trigger the establishment of a short-range communication connection between the first and second electronic devices based on this response message.
[0554] Thus, by acquiring detection data, the first electronic device can detect the proximity of the second 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 the proximity detection process, such as eliminating the need for the user to align the two devices' NFC modules. Furthermore, the electronic device does not need to have an NFC module installed, reducing hardware costs.
[0555] In some embodiments, after determining that a second electronic device or other conductor is close to the first electronic device, the first 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 first electronic device determines a first area on the display screen where the second electronic device or other conductor is close.
[0556] In some examples, in response to the proximity of a second 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.
[0557] In this way, by increasing the frequency of reporting detection data, the accuracy of obtaining the first region can be improved.
[0558] For example, the first 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 second electronic device or other conductor is currently close to the first region within the preset shape.
[0559] For example, the first electronic device scans the entire capacitance value distribution map using a 3mm*15mm rectangular frame. As shown in Figure 7(a), during the scanning process, if the average capacitance value within the rectangular frame 71 is greater than a preset threshold, the first electronic device can determine that the area within the rectangular frame 71 is the first region.
[0560] In this way, the first electronic device can obtain the area of the second electronic device near the display screen through capacitance data, enabling more accurate content sharing.
[0561] In some embodiments, the first electronic device determines that a second event has occurred and switches the frequency of acquiring detection data from the display screen back to the 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.
[0562] For example, after content sharing is completed, if the user still has a need to share content, causing the first 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.
[0563] In this way, the first electronic device reduces the frequency of reporting detection data, thereby reducing power consumption. Furthermore, in situations where content sharing is possible, the first electronic device can acquire detection data at a relatively high initial frequency, ensuring the accuracy of subsequent content sharing processes.
[0564] In some embodiments, the first 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.
[0565] Optionally, exit events include: exiting to the background or closing.
[0566] Optionally, the fourth event may be detected when the touch IC is in Idle mode or when the touch IC is in Active mode.
[0567] 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.
[0568] In some embodiments, the first 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.
[0569] For example, while the first 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 first electronic device can improve the accuracy of the subsequent content sharing process based on the detection data reported at a higher frequency.
[0570] 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.
[0571] In some embodiments, the first electronic device determines that a sixth event has occurred and switches the frequency of acquiring detection data of the display screen to a first frequency. The sixth event includes: within a preset time period after switching the frequency of acquiring detection data of the display screen to a second frequency, the detection data acquired at the second frequency does not meet a second condition. The second condition includes: the arrangement of target detection data in the detection data acquired at the second frequency conforms to a preset rule; the target detection data is detection data that meets the target condition; the target condition includes: the amount of change is greater than a preset threshold.
[0572] For example, while acquiring detection data at a first frequency, if the first electronic device detects the approach of a second electronic device, it can switch to a second frequency to continue acquiring detection data. For instance, it can switch from a semi-idle mode to an active mode. After content sharing is completed, within a preset time (e.g., 3 seconds, 5 seconds), the first electronic device, based on the detection data acquired at the second frequency, determines that there is no detection data in the data whose difference from the benchmark detection data is greater than or equal to a preset threshold; or, it determines that some or all of the detection data in the data whose difference from the benchmark detection data is greater than or equal to the preset threshold does not meet a preset rule. Therefore, the first electronic device can determine that the second electronic device is no longer approaching. Then, the first electronic device can switch back to the first frequency to continue acquiring detection data. For instance, it can switch from an active mode to a semi-idle mode.
[0573] In this way, after sharing is completed, the frequency of reporting detection data can be reduced, thereby reducing power consumption.
[0574] In the embodiments described above, after the first electronic device starts up, it first acquires detection data at the third frequency corresponding to the idle mode. Then, after the first application starts, the first electronic device switches to the first frequency corresponding to the semi-idle mode to acquire detection data. Afterward, when the first electronic device detects that a second electronic device or other conductor is approaching, it switches to the second frequency corresponding to the active mode to acquire detection data. It can be seen that during operation, the first electronic device first acquires detection data at the third frequency corresponding to the idle mode, and then flexibly switches the acquisition frequency of the detection data according to different scenarios.
[0575] It should be understood that the switching between different frequencies is not limited to the aforementioned example scenarios. For example, the first electronic device may have the potential for interaction after startup. Therefore, after startup, the first electronic device can directly acquire detection data at the first frequency corresponding to idle mode. Then, upon detecting the approach of a second electronic device or other conductor, the first electronic device switches to the second frequency corresponding to active mode to acquire detection data. Alternatively, after detecting the startup of a third application, the first electronic device switches to the third frequency corresponding to idle mode to acquire detection data. After the third application exits, the first electronic device switches back to the first frequency corresponding to semi-idle mode to acquire detection data. It can be seen that during operation, the first electronic device first acquires detection data at the first frequency corresponding to semi-idle mode, and then flexibly switches the acquisition frequency of detection data according to different scenarios. The following provides an exemplary description of this implementation. Optionally, the methods described in the above embodiments can be combined and applied to this implementation, which will not be elaborated further.
[0576] In some embodiments, the first event in step S801 may further include, for example, a first exit event of a third application in the second application set of the first electronic device, wherein after the third application experiences the first exit event, all applications in the second application set are not in the foreground running state.
[0577] In some examples, the third application is a system-preset second target application or a user-specified second target application; and / or, the third application includes: a game application.
[0578] In some examples, during the process of acquiring detection data of the display screen of the first electronic device at a first frequency, the first electronic device determines that a seventh event has occurred. Upon determining that the seventh event has occurred, the first electronic device acquires detection data of the display screen of the first electronic device at a third frequency. The seventh event includes: a second launch event of a third application in the first electronic device.
[0579] For example, after the first electronic device is started, there is a possibility that a second electronic device or other conductor may approach and interact. In this case, the first electronic device can acquire detection data at a first frequency. Optionally, if the first electronic device determines that a second electronic device or other conductor is approaching while acquiring detection data at the first frequency, it can switch to a higher second frequency to acquire detection data. Optionally, if the first electronic device determines that a second startup event of a third application has occurred while acquiring detection data at the first frequency, indicating a low probability of sharing, it can switch to a lower third frequency to acquire detection data. Optionally, if the first electronic device determines that a first exit event of a third application has occurred while acquiring detection data at the third frequency (e.g., the third application is closed or switched from foreground to background), indicating an increased probability of sharing, it can switch to a higher first frequency to acquire detection data to better determine the presence of a second electronic device or other conductor.
[0580] Optionally, a whitelist can be configured in the first electronic device, and the whitelist includes a third application. Optionally, the second application set includes whitelisted applications. The whitelist can be described as a first list, a blacklist, etc., and this embodiment of the application does not impose such limitations. And / or, a blacklist can be configured in the first electronic device, and the blacklist includes a first application. The blacklist can be described as a second list, a whitelist, etc., and this embodiment of the application does not impose such limitations. Optionally, the first application set includes blacklisted applications.
[0581] 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.
[0582] The following section describes the specific implementation process of collaborative work between the first electronic device and the second electronic device. Optionally, this collaborative work may include, for example, content sharing.
[0583] In some scenarios, the second electronic device and the first electronic device can share application interfaces. These application interfaces can be various running interfaces of various applications installed on the second or first electronic device, or they can be specific running interfaces among the various running interfaces of various applications installed on the second or first electronic device, such as a desktop. For example, as shown in FIG9, the second electronic device 200 displays a desktop 900 (or main interface 900), which includes icons of one or more applications installed on the second electronic device 200, such as icons for calendar applications or video applications. Different application icons can be used to open the running interface of the corresponding application. The first electronic device 100 displays a desktop 910. Then, the second electronic device 200 approaches the display screen of the first electronic device 100. In response to this operation, as shown in FIG10(1), the second electronic device 200 can share the desktop 900 to the display screen of the first electronic device 100, such as the first electronic device 100 displaying interface 920. Optionally, in this scenario, the display effect (e.g., layout) of the application interface on the display screen of the first electronic device can be the same as the display effect on the second 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 first electronic device. For example, regardless of which area of the first electronic device's display screen the second electronic device is near, the application interface can be displayed in a fixed area of the first electronic device's display screen, or the area where the application interface is displayed on the first electronic device's display screen can be the area of the first electronic device's display screen that the second electronic device is near.
[0584] In this scenario, in some embodiments, after the application interface is transmitted to the display screen of the first electronic device, the user can perform various operations on the application interface on the display screen of the first electronic device, causing the application interface to jump or causing the presentation effect of the application interface on the first 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.
[0585] Optionally, in this embodiment, content sharing between the second electronic device and the first 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 first electronic device detects that the second electronic device is close to its own display screen, whether the first electronic device shares content or engages in multi-screen collaboration can be determined based on user operation. For example, the second electronic device and / or the first electronic device can display options such as content sharing and multi-screen collaboration for the user to choose from.
[0586] The examples shown in Figures 9 and 10 illustrate a scenario where one application interface is simultaneously displayed on the second electronic device. In other examples, multiple application interfaces may be displayed simultaneously on the second electronic device, and these multiple running interfaces can be shared between the second and first electronic devices. For instance, as shown in Figure 11, the second electronic device 200 simultaneously displays the running interface 1101 of a video application and the running interface 1102 of a gallery application, while the first electronic device still displays the desktop 910. Then, the second electronic device 200 moves closer to the display screen of the first electronic device 100. In response to this operation, as shown in Figure 12, the second electronic device 200 shares running interface 1101 and / or running interface 1102 to the display screen of the first electronic device 100. For example, if the second electronic device simultaneously shares running interface 1101 and running interface 1102 to the first electronic device 100, as shown in Figure 12, the first electronic device 100 can display running interface 1201 and running interface 1202.
[0587] Optionally, in this example, when multiple running interfaces are displayed simultaneously on the second electronic device, the specific method of sharing some or all of these running interfaces to the first electronic device can be determined by the second electronic device. For example, the second electronic device can share one or all of them to the first electronic device by default. Alternatively, the specific method of sharing some or all of these running interfaces to the first electronic device can be determined by the user. For example, when the second electronic device is close to the display screen of the first electronic device, the user can perform various selection operations such as clicking on a certain application interface displayed on the second electronic device. In response to the selection operation, the second electronic device can share the application interface selected by the user to the first electronic device.
[0588] Optionally, in the above example, before the second electronic device shares the application interface to the first electronic device, there is no restriction on the running interface displayed on the screen of the first electronic device. The first electronic device can display the running interfaces of various applications. The above example takes the desktop displayed by the first electronic device as an example. In the above example, the application interface shared by the second electronic device is displayed on top of the desktop of the first electronic device. In other examples, the application interface shared by the second electronic device can also be displayed in a split screen with the application interface originally displayed by the first electronic device, or the application interface originally displayed by the first electronic device can be switched to display the application interface shared by the second electronic device.
[0589] In other scenarios, the second electronic device and the first 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 various 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 second electronic device 200 displays an image 1401 in an open form, and the first electronic device 100 displays a PPT 1402 in an open form. Then, the second electronic device 200 moves close to the screen of the first electronic device 100. In response to this operation, the second electronic device 200 shares image 1401 to the screen of the first electronic device 100 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.
[0590] In other examples, an unopened document icon displayed on a second electronic device can be inserted into a folder displayed as an open document on a first electronic device, and an unopened video icon displayed on a second electronic device can be inserted into a PowerPoint presentation displayed as an open document on a first electronic device.
[0591] In the above example, the specific location on the first electronic device's screen where the file shared by the second electronic device is inserted can be determined based on the area of the second electronic device closest to the first electronic device's screen. For example, when the second electronic device is near a blank area of the open file displayed on the first electronic device's screen (as shown in Figure 14, PPT 1402 in open form), the file shared by the second electronic device can be inserted into that blank area of the open file on the first electronic device. It's understood that the open file displayed on the first electronic device may contain multiple blank areas simultaneously. Therefore, when the second electronic device is near different blank areas, the first electronic device can insert the file shared by the second electronic device into the nearest blank area. In other words, when the second electronic device is near different areas (or positions) of the same file, the first electronic device can insert the file shared by the second electronic device into different areas of the file displayed on the first electronic device. Alternatively, the first 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 second electronic device to achieve a better display effect. Conversely, when the second electronic device is near a non-blank area of the open file displayed on the first electronic device's screen, the file shared by the second electronic device can be inserted into that non-blank area of the open file on the first electronic device. Alternatively, when the second electronic device is near a display area on the first 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 second electronic device can be inserted into that other display area on the first electronic device.
[0592] Alternatively, the first electronic device may, by default, insert the file shared by the second electronic device into the blank area of the open file that is originally displayed. That is, no matter which area of the first electronic device's screen the second electronic device is near, the first electronic device will insert the file shared by the second electronic device into the blank area of the open file that is originally displayed, regardless of whether the blank area is near the second electronic device.
[0593] 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), file type (e.g., image, video, document, folder), and the file type displayed in the open format by the first electronic device. For example, if the file shared by the second electronic device is in open format and the file type displayed by the first electronic device is a document, the second electronic device can insert the shared file into a blank area of its own open format file. As another example, if the file shared by the second electronic device is in unopened format, the first electronic device can display the shared file in any area of its own screen. Similarly, if the file shared by the second electronic device is in unopened format and the file type displayed by the first electronic device is a folder, the first electronic device can insert the shared file into a blank area of its own open format file, and so on.
[0594] The examples shown in Figures 14 and 15 illustrate a scenario where one open file is simultaneously displayed on the first electronic device. In other embodiments, multiple open files may be displayed simultaneously on the first electronic device. As a possible example, when the first electronic device receives a file shared by the second electronic device, it can simultaneously insert this file into the multiple open files it already displays. For instance, as shown in Figure 16, the second electronic device 200 displays an open image 1401, while the first electronic device displays an open PPT 1402 and a text document 1601. Then, the second electronic device 200 approaches the display screen of the first electronic device 100. In response to this operation, as shown in Figure 17, the first electronic device simultaneously inserts the image 1401 shared by the second electronic device into both the text document 1601 and the PPT 1402.
[0595] Alternatively, in other examples, the first electronic device can also determine the location of the second electronic device based on the area of the first electronic device's display screen that the second electronic device is close to, that is, the first electronic device will insert the file shared by the second electronic device into the corresponding open file it displays, based on the area of the first electronic device's display screen that the second electronic device is close to.
[0596] Alternatively, the user can decide which open file the file will be inserted into on the first electronic device. For example, when the first electronic device receives a file shared from the second 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 the reminder message, the user can select one or more open files on the first electronic device. Correspondingly, the first electronic device will insert the file received from the second electronic device into the open file selected by the user.
[0597] It is understood that the above example illustrates a file that is displayed in an open state on the first electronic device before the second electronic device shares the file with it. In some embodiments, the first electronic device may not display the file in an open state, for example, it may display the desktop. In this example, the first electronic device can directly display the file shared by the second electronic device at any location on the desktop.
[0598] In the above example, a file shared by a second electronic device to a first electronic device is presented in the same way (e.g., open or closed) on the first electronic device. However, in other examples, the presentation on the first and second electronic devices can differ. For instance, when the first electronic device receives a file in an closed state shared by the second electronic device, it can present the file in an open state. As shown in Figure 18, the second electronic device 200 displays a text document 1801 presented as an icon, while the first electronic device 100 displays a desktop 910 or other interface. Then, the second electronic device 200 approaches the display screen of the first electronic device 100. In response to this operation, as shown in Figure 19, the second electronic device 200 shares the text document 1801 presented as an icon with the first electronic device 100, and the first electronic device 100 can present the open interface 1901 of the text document 1801. For example, the second electronic device 200 can also share a video or similar content presented as an icon with the first electronic device 100, and the first electronic device 100 can present the playback interface of the video or similar content.
[0599] It is understood that the examples shown in Figures 18 and 19 illustrate a scenario where the second electronic device 200 displays one unopened file. In other embodiments, the second electronic device 200 may simultaneously display multiple unopened files. The second electronic device 200 can share all of these unopened files with the first electronic device 100, and the first electronic device 100 can then open all of these files. Alternatively, when the second electronic device 200 displays multiple unopened files, the user can select a file to share with the first electronic device 100. For details on user selection methods, please refer to the implementation of similar selection methods described above.
[0600] In other scenarios, the second electronic device and the first electronic device can also share services. These services can refer to ongoing business processes performed on the electronic devices. 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, navigation is in progress on the second electronic device 200, displaying a navigation execution interface 2000, while the first electronic device 100 (such as a car infotainment system) displays a desktop 2001. Then, the second electronic device 200 moves close to the display screen of the first electronic device 100. In response to this operation, the second electronic device 200 shares the navigation service with the first electronic device 100. As shown in Figure 21a, the first electronic device 100 can then perform navigation, displaying a navigation execution interface 2101.
[0601] Optionally, in this scenario, the second electronic device can transmit information for launching the service to the first electronic device, so that the first 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.
[0602] Similarly, in this scenario, multiple services may exist simultaneously on the second electronic device. How some or all of these services are shared with the first electronic device can be determined by the second electronic device. For example, the second electronic device can default to sharing one or all of them with the first electronic device. Alternatively, the user can decide which services are shared with the first electronic device. For instance, when the second electronic device is near the display of the first electronic device, the user can select several services on the second electronic device, or the second electronic device can output a reminder message to prompt the user to perform the selection. In response to the user's selection, the second electronic device can share the selected services with the first electronic device.
[0603] Similarly, in this scenario, there are no restrictions on the running interface presented by the first electronic device before the second electronic device shares the service to the first electronic device. The example shown in Figure 20 is also an example of the first electronic device displaying the desktop before receiving the service shared by the second electronic device, and it is an example of the running interface originally displayed by the first electronic device being switched to the execution interface of the service shared by the second electronic device. In other examples, the first electronic device can also use split-screen or other methods to display the running interface of the application originally displayed and the execution interface of the service shared by the second electronic device.
[0604] Optionally, in this scenario, the display effects (such as layout) of the service execution interface presented by the first electronic device and the service execution interface presented by the second electronic device can be the same or different. In some implementations, the service execution interface presented by the first electronic device can be related to the type of the second electronic device, the first electronic device, etc. For example, when the second electronic device and the first electronic device are of the same type, such as both being mobile phones or both being tablets, the display effects of the service execution interface presented by the first electronic device and the service execution interface presented by the second electronic device can be the same. As another example, when the second electronic device and the first electronic device are of different types, such as the second electronic device being a mobile phone and the first electronic device being a car infotainment system, the display effects of the service execution interface presented by the first electronic device and the service execution interface presented by the second electronic device can be different, as shown in Figure 21a.
[0605] In the above scenarios, the second electronic device shares content with the first electronic device when the second electronic device approaches the display screen of the first electronic device. Optionally, before sharing content with the first electronic device, the second electronic device can also receive user operations and, in response to the user operations, share the corresponding content with the first electronic device. As a specific embodiment, Figure 21b shows a flowchart of a second electronic device sharing content with a first electronic device provided in this application embodiment. As shown in Figure 21b (1), when the second electronic device 200 approaches the display screen of the first electronic device 100, the second electronic device 200 establishes a communication connection with the first electronic device 100. Subsequently, the user can perform a trigger operation (such as swiping up) on the content displayed on the second electronic device 200. Taking content D as an example, as shown in Figure 21b (2), the second electronic device 200 detects an swipe operation performed by the user on content D. In response to the operation, as shown in Figure 21b (3), the second electronic device 200 shares content D with the first electronic device 100, and the first electronic device 100 can display content D on the display screen.
[0606] Similarly, in the above-mentioned content scenarios, when the second electronic device is close to the display screen of the first electronic device, the first electronic device can also share content to the second electronic device.
[0607] For example, as shown in Figure 22, the second electronic device 200 displays a desktop 2201, while the first electronic device 100 displays an open image 2202, an open PPT 2203, an unopened document 1 icon 2204, an unchecked folder 1 ic...
Claims
1. A detection method, characterized in that, Applied to a first electronic device, the method includes: The first event has been confirmed; Upon determining that the first event has occurred, detection data of the display screen of the first electronic device is acquired at a first frequency; wherein the first frequency is greater than the frequency at which the detection data of the display screen was acquired before the first event occurred; Based on the detection data obtained at the first frequency, it is determined that there is a second electronic device or other conductor close to the first electronic device; Initiate collaborative operation between the first electronic device and the second electronic device, or initiate collaborative operation between the first electronic device and the other conductor.
2. The method according to claim 1, characterized in that, After determining the second electronic device or other conductor that is close to the first electronic device, the method further includes: The detection data of the refreshed display screen is obtained at a second frequency, which is greater than the first frequency; Based on the refreshed detection data, the location of the second electronic device or other conductor near the display screen is determined.
3. The method according to claim 1 or 2, characterized in that, Prior to determining that the first event has occurred, the method further includes: The detection data of the display screen is acquired according to a third frequency, wherein the first frequency is greater than the third frequency.
4. The method according to any one of claims 1-3, characterized in that, The first frequency is less than the second frequency and greater than the third frequency; wherein, the second frequency is the frequency at which the first electronic device acquires detection data of the display screen when the display screen is in an active mode, and the third frequency is the frequency at which the first electronic device acquires detection data of the display screen when the display screen is in an idle mode, wherein the frequency at which the detection data of the display screen is acquired before the first event occurs is the third frequency.
5. The method according to any one of claims 1-4, characterized in that, The first frequency is greater than or equal to 5 Hz and less than or equal to 50 Hz.
6. The method according to any one of claims 1-5, characterized in that, The first frequency is greater than or equal to 5 Hz and less than or equal to 20 Hz.
7. The method according to any one of claims 1-6, characterized in that, The first frequency is greater than or equal to 8 Hz and less than or equal to 12 Hz.
8. The method according to any one of claims 1-7, characterized in that, The first frequency is 9 Hz, 10 Hz or 11 Hz.
9. The method according to any one of claims 1-8, characterized in that, The determination of a second electronic device or other conductor that is close to the first electronic device includes: If the detection data acquired at the first frequency meets a first condition, it is determined that the second electronic device or other conductor is close to the first electronic device; wherein, the first condition includes: The arrangement of the target detection data in the detection data obtained according to the first frequency conforms to a preset rule. The target detection data is the detection data that meets the target conditions. The target conditions include that the change amount is greater than a preset threshold.
10. The method according to claim 2, characterized in that, The method further includes: If a sixth event is determined to occur, the frequency of acquiring detection data of the display screen is switched to the first frequency. The sixth event includes: within a preset time period after the frequency of acquiring detection data of the display screen is switched to the second frequency, the detection data acquired at the second frequency does not meet the second condition. The second condition includes: The arrangement of the target detection data in the detection data obtained according to the second frequency conforms to a preset rule. The target detection data is the detection data that meets the target conditions. The target conditions include that the change amount is greater than a preset threshold.
11. The method according to any one of claims 1-10, characterized in that, The first event includes at least one of the following events: The unlock event of the first electronic device; The first startup event of the first application in the first application set of the first electronic device; The event of the first exit of the third application in the second application set of the first electronic device, wherein after the first exit of the third application occurs, all applications in the second application set are not in the foreground running state; there are other electronic devices logged into the same account as the first electronic device within the short-range communication range of the first electronic device; the event of the first electronic device activating the proximity sharing function.
12. The method according to any one of claims 1-11, characterized in that, The method further includes: During the process of acquiring detection data of the display screen of the first electronic device at the first frequency, it is determined that a seventh event has occurred; If the seventh event is determined to have occurred, detection data of the display screen of the first electronic device is acquired at a third frequency, wherein the first frequency is greater than the third frequency; The seventh event includes at least one of the following events: The second exit event of the first application in the first application set of the first electronic device, and after the second exit event of the first application, all applications in the first application set are not in the foreground running state; The screen lock event of the first electronic device; The second startup event of the third application in the second application set of the first electronic device; There are no other electronic devices logged into the same account as the first electronic device within the short-range communication range of the first electronic device; The event that disables the proximity sharing function of the first electronic device.
13. The method according to claim 11 or 12, characterized in that, The first application is a system-preset first target application or a user-specified first target application; and / or; The first application includes one or more of the following: file management application, gallery application, and document application.
14. The method according to any one of claims 11-13, characterized in that, The third application is a second target application preset by the system or a second target application specified by the user; and / or; The third application includes: game applications.
15. The method according to any one of claims 1-14, characterized in that, The detection data is capacitance data.
16. The method according to any one of claims 1-15, characterized in that, The display screen is a capacitive touch screen, which includes a touch integrated circuit IC. Acquiring the detection data of the display screen of the first electronic device at a first frequency includes: The processor acquires the detection data reported by the touch IC at the first frequency.
17. The method according to any one of claims 1-16, characterized in that, The initiation of collaborative operation between the first electronic device and the second electronic device includes: Send first shared content to the second electronic device, the first shared content being determined based on the first window; and / or, Receive the second shared content sent by the second electronic device, and process the second shared content through the first application to which the first window belongs; The first window is the window on the display screen where the second electronic device is located.
18. The method according to claim 17, characterized in that, The first shared content includes at least one of the following: The first content in the first window; or, First information used to indicate the first content; or... The second information indicated by the first content.
19. The method according to claim 17 or 18, characterized in that, The first window is one of N windows on the display screen, where N is an integer greater than or equal to 2.
20. The method according to any one of claims 17-19, characterized in that, The first window is a non-focus window.
21. The method according to claim 18, characterized in that, Sending first shared content to the second electronic device, including: Send first information to the second electronic device to indicate the first content; Upon receiving a request message from the second electronic device, the first content is sent to the second electronic device, the request message being used to request the first content.
22. The method according to claim 18, characterized in that, Sending first shared content to the second electronic device, including: Send first information to the second electronic device to indicate the first content; If no request message is received from the second electronic device, the first content will not be sent to the second electronic device, wherein the request message is used to request the first content.
23. The method according to claim 21 or 22, characterized in that, The method further includes: The second electronic device was detected approaching the display screen again; Send a third sharing content to the second electronic device. The third sharing content is determined based on a second window, which is the window that the second electronic device is close to when it is detected to be close to the display screen again. The second window and the first window belong to the same application or different applications.
24. The method according to claim 23, characterized in that, If no request message is received from the second electronic device, the first electronic device does not interrupt the connection between the first electronic device and the second electronic device, and the third shared content is sent through the connection.
25. The method according to any one of claims 21-24, characterized in that, The first information used to indicate the first content includes: Preview information for the first content.
26. The method according to claim 25, characterized in that, The preview information for the first content is a preview image of the first content.
27. The method according to any one of claims 17-26, characterized in that, Before sending the first shared content to the second electronic device, the method includes: The first shared content in the first window is obtained from the first application, where the first application is the application to which the first window belongs.
28. The method according to claim 27, characterized in that, The step of obtaining the first shared content from the first application in the first window includes: The callback function of the first window is invoked, and the callback function is used to trigger the first application to provide the first shareable content in the first window.
29. The method according to any one of claims 17-28, characterized in that, Before sending the first shared content to the second electronic device, the method further includes: Obtain the first shared content from the first display element, where the first display element is the display element within the first window where the second electronic device is located.
30. The method according to claim 29, characterized in that, The step of obtaining the first shared content in the first display element includes: The callback function of the first display element is invoked. The callback function is used to trigger the first application to provide the first shareable content in the first display element. The first application is the application to which the first window belongs.
31. The method according to any one of claims 17-30, characterized in that, The process of processing the second shared content through the first application to which the first window belongs includes: The second shared content is displayed in the first window through the first application.
32. The method according to any one of claims 17-31, characterized in that, After receiving the second shared content sent by the second electronic device, the method further includes: The second electronic device was detected approaching the display screen again; The system receives the fourth shared content sent by the second electronic device, processes the fourth shared content through the second application to which the third window belongs, and the third window is the window that the second electronic device approaches when it is detected to be approaching the display screen again. The third window and the first window are either windows of the same application or windows of different applications.
33. The method according to any one of claims 17-32, characterized in that, The process of processing the second shared content through the first application to which the first window belongs includes: Send the second shared content to the first application so that the first application processes the second shared content within the first window.
34. The method according to claim 33, characterized in that, Sending the second shared content to the first application includes: The callback function of the first window is invoked, and the callback function is used to send the second shared content to the first application.
35. The method according to any one of claims 17-34, characterized in that, The process of processing the first shared content through the first application to which the first window belongs includes: The first shared content is sent to the first application so that the first application processes the first shared content in a first display element within the first window, wherein the first display element is the display element within the first window in which the second electronic device is located.
36. The method according to claim 35, characterized in that, Sending the second shared content to the first application includes: The callback function of the first display element is invoked, and the callback function is used to send the second shared content to the first application.
37. The method according to any one of claims 17-36, characterized in that, The method further includes: If the first window is not the focus window, then switch the first window to the focus window.
38. The method according to claim 37, characterized in that, Switching the first window to the focus window includes: A virtual event is generated for the first window, which is used to trigger the first window to switch to the focus window.
39. The method according to any one of claims 17-38, characterized in that, The method further includes: Once a second event is determined to have occurred, the frequency of acquiring detection data from the display screen is switched back to the first frequency. The second event includes: the sharing of the first or second shared content is completed.
40. The method according to any one of claims 1-39, characterized in that, Before initiating collaborative operation between the first electronic device and the second electronic device, the method further includes: Upon receiving a second request message and determining that a second electronic device is nearby, the system replies with a second response message to the second electronic device to establish a connection with it; wherein the second request message is a request message sent by the second electronic device when a third condition is met, the third condition including the second electronic device determining that it is near other electronic devices; The initiation of collaborative operation between the first electronic device and the second electronic device includes: It works in conjunction with the second electronic device through the connection.
41. The method according to claim 40, characterized in that, When a device is detected approaching the first window of the first electronic device, and the first window includes shareable content, the second response message includes a second flag bit, which is used to indicate that the first electronic device has content that can be shared. The second flag bit is used to instruct the second electronic device to display the first animation effect, and the first animation effect is used to instruct the second electronic device to receive the shared content sent by the first electronic device.
42. The method according to claim 41, characterized in that, The second response message includes the account information logged in by the first electronic device; The second response message is used by the second electronic device to display the first animation when it determines that the account information logged in by the first electronic device is the same as the account information logged in by the second electronic device, and determines that the first electronic device has content that can be shared.
43. The method according to any one of claims 40-42, characterized in that, If the second electronic device meets the third condition and the window displayed by the second electronic device includes shareable content, the second request message includes a first flag bit, which is used to indicate that the second electronic device has content to share; the method further includes: If it is determined that there is a second electronic device near the first electronic device, and it is determined according to the first flag that the second electronic device has content to share, the first electronic device preloads a second animation effect, and if it is determined that the account logged in by the first electronic device is the same as the account logged in by the second electronic device, the second animation effect is played. The second animation effect is used to indicate that the first electronic device is about to receive the shared content sent by the second electronic device.
44. The method according to any one of claims 40-43, characterized in that, The method further includes: Upon receiving the second request message and determining that the first electronic device has content to share, the first electronic device preloads a third animation effect, and if it is determined that the account logged in by the first electronic device is the same as the account logged in by the second electronic device, it plays the third animation effect, which is used to indicate that the first electronic device is about to send shared content to the second electronic device.
45. The method according to any one of claims 40-44, characterized in that, The second response message is a Wi-Fi action frame.
46. The method according to any one of claims 40-45, characterized in that, The second response message is used to instruct the second electronic device to send a third response message to the first electronic device after receiving the second response message. The third response message includes the account information logged in by the second electronic device. The method further includes: Receive the third response message; If the third response message determines that the account information logged in by the second electronic device is the same as the account information logged in by the first electronic device, and the first electronic device has content to share, a connection establishment request message is sent to the second electronic device. The connection establishment request message is used to request to establish the connection with the second electronic device.
47. The method according to claim 46, characterized in that, The third response message is a Wi-Fi action frame; After receiving the second request message, the method further includes: Enable listening for Wi-Fi action frames.
48. A detection method, characterized in that, Applied to a second electronic device, the method includes: A third event has been confirmed; In the event that the third event is determined to occur, a first signal is sent at a preset frequency. The power of the first signal is greater than or equal to a power threshold. The first signal is used to interfere with the detection data of the display screen of the first electronic device. The third event includes: the second electronic device performing a preset action, which is an action indicating that the second electronic device moves closer to the display screen of another electronic device.
49. The method according to claim 48, characterized in that, 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 second electronic device to the display screen of the first electronic device.
50. The method according to claim 49, characterized in that, The preset action is initiated when the acceleration from rest to movement exceeds a first threshold, and / or the preset action is initiated when the deceleration from movement to stop exceeds a second threshold.
51. The method according to any one of claims 48-50, characterized in that, The third event also includes detecting the presence of other electronic devices logged into the same account as the second electronic device within short-range communication range of the second electronic device.
52. The method according to any one of claims 48-51, characterized in that, The step of sending the first signal at a preset frequency includes: The first signal is transmitted by the target hardware at the preset frequency.
53. The method according to claim 52, characterized in that, The target hardware is a wireless charging coil.
54. The method according to any one of claims 48-53, characterized in that, The display screen of the first electronic device is a capacitive touch screen, and the detection data is capacitance data.
55. A detection method, characterized in that, Applied to a first electronic device, the method includes: The detection data of the display screen of the first electronic device is acquired according to the third frequency; During the process of acquiring detection data according to the third frequency, a first touch event is detected in the first electronic device based on the detection data of the inertial measurement unit (IMU) of the first electronic device. The first touch event is used to indicate that the display screen of the first electronic device has been touched. In response to the touch event, refreshed detection data of the display screen is acquired at a second frequency, which is greater than the third frequency; Based on the refreshed detection data, determine the location on the display screen that was touched by the second electronic device or other conductor; Based on the location, initiate collaborative work between the first electronic device and the second electronic device, or initiate collaborative work between the first electronic device and other conductors.
56. The method according to claim 55, characterized in that, The initiation of collaborative operation between the first electronic device and the second electronic device includes: Send first shared content to the second electronic device, the first shared content being determined based on the first window; and / or, Receive the second shared content sent by the second electronic device, and process the second shared content through the first application to which the first window belongs; The first window is the window on the display screen where the second electronic device is located.
57. The method according to claim 55 or 56, characterized in that, Before initiating collaborative operation between the first electronic device and the second electronic device, the method further includes: Upon receiving a second request message and determining that the first touch event has occurred, the device replies with a second response message to the second electronic device to establish a connection with the second electronic device; wherein, the second request message is a request message sent by the second electronic device when a third condition is met, the third condition including the second electronic device determining that the second electronic device is near other electronic devices; The initiation of collaborative operation between the first electronic device and the second electronic device includes: It works in conjunction with the second electronic device through the connection.
58. An electronic device, characterized in that, include: The electronic device includes a processor, a memory, and a display screen, the memory and the display screen being coupled to the processor. The memory stores computer program code, the computer program code including computer instructions, which, when read from the memory, cause the electronic device to perform the method as described in any one of claims 1-47; or cause the electronic device to perform the method as described in any one of claims 48-54; or cause the electronic device to perform the method as described in any one of claims 55-56.
59. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a computer program that, when executed on an electronic device, causes the electronic device to perform the method as described in any one of claims 1-47; or causes the electronic device to perform the method as described in any one of claims 48-54; or causes the electronic device to perform the method as described in any one of claims 55-56.
60. A computer program product, characterized in that, When the computer program product is run on a computer, it causes the computer to perform the method as described in any one of claims 1-47; or, causes the computer to perform the method as described in any one of claims 48-54; or, causes the computer to perform the method as described in any one of claims 55-56.
Citation Information
Patent Citations
Electromagnetic pen for operating capacitance touch panel
CN101893979A
Method and system for sharing contents
CN103812531A
Information sharing method and device
CN114327175A
Method for establishing wireless connection between devices through touch, electronic device and chip
CN114339698A
Information processing device, information processing system, method for controlling information processing device, and program
US20170163840A1