A processing method and electronic device
By switching the sensor's operating mode under different postures of the electronic device, and utilizing different inherent capacitance values and detection paths, parasitic capacitance interference is eliminated, thus solving the problem of inaccurate sensor measurements caused by changes in the posture of the electronic device and achieving accurate measurement by the sensor under different postures.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- LENOVO (BEIJING) LTD
- Filing Date
- 2023-08-30
- Publication Date
- 2026-07-03
AI Technical Summary
When existing electronic devices change orientation, the performance of sensors is affected by parasitic capacitance, leading to inaccurate measurement results.
By switching the operating mode of the target sensor under different postures, and utilizing different inherent capacitance values and detection paths, the influence of parasitic capacitance is eliminated, ensuring the accuracy of measurement results.
Under different postures of electronic devices, the target sensor can accurately measure the distance parameters of the detected object, improving the sensor's performance and measurement accuracy.
Smart Images

Figure CN117156041B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of electronic equipment technology, and more specifically, to a processing method and an electronic device. Background Technology
[0002] With the continuous advancement of science and technology, more and more electronic devices are being widely used in people's daily lives and work, bringing great convenience to people's daily lives and work, and becoming an indispensable tool for people today.
[0003] To meet diverse user needs, some electronic devices are capable of changing their orientation. However, changes in the orientation of existing electronic devices can affect the performance of integrated sensors. Summary of the Invention
[0004] In view of this, this application provides a processing method and an electronic device, the solution of which is as follows:
[0005] A processing method, the processing method comprising:
[0006] Obtain the target parameters;
[0007] If the target parameter indicates that the electronic device is in a first posture, the target sensor operates in a first mode;
[0008] If the target parameter indicates that the electronic device is in a second posture, the target sensor operates in a second mode;
[0009] in,
[0010] The electronic device is in a first posture, and the first body of the electronic device and the second body of the electronic device satisfy the stacking condition;
[0011] The electronic device is in a second posture, and the first body and the second body of the electronic device satisfy the condition of being parallel.
[0012] Preferably, in the above processing method, the inherent capacitance of the target sensor operating in the first mode is different from the inherent capacitance of the target sensor operating in the second mode.
[0013] Preferably, in the above processing method, the target sensor operating in a first mode includes:
[0014] A first inherent capacitance value is obtained, which is used to characterize the capacitance of the first detection path of the target sensor when the electronic device is in a first posture;
[0015] The target sensor operates in a second mode including:
[0016] A second inherent capacitance value is obtained, which is used to characterize the capacitance of the second detection path of the target sensor when the electronic device is in the second posture;
[0017] The first detection path is different from the second detection path, and the first inherent capacitance value is different from the second inherent capacitance value.
[0018] Preferably, in the above processing method, the target sensor is controlled to adjust the capacitance of the detection path of the target sensor to the target capacitance value based on the target functional module.
[0019] Preferably, in the above processing method, the processing method further includes:
[0020] If the target parameter indicates that the electronic device is in a first posture, the first metal body of the first body is connected to the second metal body of the second body;
[0021] If the target parameter indicates that the electronic device is in a second posture, the first metal body of the first body is disconnected from the second metal body of the second body.
[0022] This application also provides an electronic device, the electronic device comprising:
[0023] first ontology;
[0024] The first body is connected to the second body; the first body and the second body of the electronic device satisfy a stacking condition to indicate that the electronic device is in a first posture; the first body and the second body of the electronic device satisfy a parallel condition to indicate that the electronic device is in a second posture.
[0025] A target sensor is used to acquire distance parameters of the detected object relative to the electronic device, wherein if the target parameter indicates that the electronic device is in a first posture, the target sensor operates in a first mode; if the target parameter indicates that the electronic device is in a second posture, the target sensor operates in a second mode.
[0026] Preferably, in the above-described electronic device, in the first mode, the target sensor detects capacitance through a first detection path; in the second mode, the target sensor detects capacitance through a second detection path.
[0027] The electronic device has a target function module, which can control the target sensor to adjust the capacitance of the detection path of the target sensor to a target capacitance value based on the target function module.
[0028] Preferably, in the above-mentioned electronic device, the first body includes a first metal body, and the second body includes a second metal body;
[0029] The target sensor is connected to the first metal body;
[0030] In the first mode, the first metal body is connected to the second metal body, and the target sensor detects capacitance based on the first metal body and the second metal body. In the second mode, the first metal body is disconnected from the second metal body, and the target sensor detects capacitance based on the first metal body.
[0031] Preferably, in the above-mentioned electronic device, the first body includes a first antenna, and the second body includes a second antenna;
[0032] The first antenna reuses the first metal body as the radiator of the first antenna, and the second antenna reuses the second metal body as the radiator of the second antenna.
[0033] Preferably, in the above-mentioned electronic device, the first antenna and the second antenna are respectively connected to an isolation circuit, which is used to isolate the antenna signal from the capacitance detection signal.
[0034] As described above, the processing method and electronic device provided in this application can determine the posture of the electronic device based on target parameters. If the target parameters indicate that the electronic device is in a first posture, the target sensor operates in a first mode; if the target parameters indicate that the electronic device is in a second posture, the target sensor operates in a second mode. Specifically, when the electronic device is in the first posture, the first and second bodies of the electronic device satisfy a stacking condition; when the electronic device is in the second posture, the first and second bodies satisfy a parallel condition. Therefore, this application's technical solution can enable the target sensor to operate in different modes according to the posture of the electronic device, thus adapting the target sensor's operating mode to the posture of the electronic device and improving the performance of the target sensor. Attached Figure Description
[0035] To more clearly illustrate the technical solutions in the embodiments of this application or related technologies, the drawings used in the description of the embodiments or prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of this application. For those skilled in the art, other drawings can be obtained based on the provided drawings without creative effort.
[0036] The structures, proportions, sizes, etc., shown in the accompanying drawings are only for the purpose of assisting those skilled in the art in understanding and reading the content disclosed in the specification, and are not intended to limit the implementation conditions of this application. Therefore, they have no substantial technical significance. Any modifications to the structure, changes in the proportions, or adjustments to the size, without affecting the effects and purposes that this application can produce, should still fall within the scope of the technical content disclosed in this application.
[0037] Figure 1 A side view of an electronic device in a first posture, provided as an embodiment of this application;
[0038] Figure 2 A side view of an electronic device in a second posture, provided as an embodiment of this application;
[0039] Figure 3 A top view of an electronic device in a second posture, provided as an embodiment of this application;
[0040] Figure 4 A flowchart illustrating a processing method provided in an embodiment of this application;
[0041] Figure 5 A top view of a metal body in an electronic device in a first posture, provided as an embodiment of this application;
[0042] Figure 6 A side view of a metal body in an electronic device in a first posture, provided as an embodiment of this application;
[0043] Figure 7 A top view of a metal body in an electronic device in a second posture, provided as an embodiment of this application;
[0044] Figure 8 A schematic diagram of the circuit structure of a target sensor in the first mode of operation is provided in an embodiment of this application;
[0045] Figure 9 A schematic diagram of the circuit structure of a target sensor in a second mode is provided in an embodiment of this application;
[0046] Figure 10 A schematic diagram of the circuit structure of a target sensor in the first mode of operation is provided in an embodiment of this application;
[0047] Figure 11 A schematic diagram of the circuit structure of a target sensor in a second mode is provided in an embodiment of this application;
[0048] Figure 12 This is a schematic diagram illustrating the working principle of an electronic device provided in an embodiment of this application. Detailed Implementation
[0049] The embodiments of this application will now be clearly and completely described with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of them. All other embodiments obtained by those skilled in the art based on the embodiments of this application without creative effort are within the scope of protection of this application.
[0050] Various modifications and variations can be made to this application without departing from its spirit or scope, which will be apparent to those skilled in the art. Therefore, this application is intended to cover modifications and variations falling within the scope of the corresponding claims (the claimed technical solutions) and their equivalents. It should be noted that the embodiments provided in this application can be combined with each other without contradiction.
[0051] As described in the background section, in existing electronic devices capable of changing posture, changes in the posture of the electronic device can affect the performance of the integrated sensors.
[0052] In view of the above, this application provides a processing method and an electronic device, the processing method including:
[0053] Obtain the target parameters;
[0054] If the target parameters indicate that the electronic device is in a first posture, the target sensor operates in the first mode;
[0055] If the target parameters characterize the electronic device in a second posture, the target sensor operates in a second mode;
[0056] in,
[0057] The electronic device is in a first posture, and the first body of the electronic device and the second body of the electronic device satisfy the stacking condition;
[0058] The electronic device is in the second posture, and the first body and the second body of the electronic device satisfy the parallel condition.
[0059] The technical solution of this application can determine the attitude of an electronic device based on target parameters. If the target parameters indicate that the electronic device is in a first attitude, the target sensor operates in a first mode; if the target parameters indicate that the electronic device is in a second attitude, the target sensor operates in a second mode. Therefore, the technical solution of this application can make the target sensor operate in different modes according to the attitude of the electronic device, thus adapting the operating mode of the target sensor to the attitude of the electronic device and improving the performance of the target sensor.
[0060] To make the above-mentioned objectives, features and advantages of this application more apparent and understandable, the application will be further described in detail below with reference to the accompanying drawings and specific embodiments.
[0061] refer to Figures 1-4 As shown, Figure 1 This is a side view of an electronic device in a first posture, provided as an embodiment of this application. Figure 2 This is a side view of an electronic device in a second posture, as provided in an embodiment of this application. Figure 3 This is a top view of an electronic device in a second posture, provided in an embodiment of this application. Figure 4 This is a flowchart illustrating a processing method provided in an embodiment of this application.
[0062] like Figures 1-3 As shown in the embodiments of this application, the electronic device includes a first body 11 and a second body 12 connected together. The first body 11 and the second body can be folded relative to each other, thereby enabling the electronic device to have at least a first posture and a second posture. In the first posture, the first body 11 and the second body 12 of the electronic device satisfy the stacking condition, and the electronic device is in a closed state, with the first body 11 and the second body 12 folded and arranged parallel or approximately parallel. In the second posture, the first body 11 and the second body 12 of the electronic device satisfy the parallel condition, and the electronic device is in an unfolded state, with the first body 11 and the second body unfolded and located on the same plane or approximately on the same plane.
[0063] It is easy to see that electronic devices are not limited to having only a first posture and a second posture. Based on the different angles between the first body 11 and the second body 12, they can have multiple postures with corresponding different angles between the first posture and the second posture.
[0064] Figure 4 The processing method shown can be used for Figures 1-3 The electronic device shown, the processing method includes:
[0065] Step S11: Obtain the target parameters.
[0066] Step S12: Determine the attitude of the electronic device based on the target parameters.
[0067] If the target parameters indicate that the electronic device is in a first posture, step S13 is executed; if the target parameters indicate that the electronic device is in a second posture, step S14 is executed.
[0068] Step S13: If the target parameters indicate that the electronic device is in a first attitude, the target sensor operates in a first mode.
[0069] Step S14: If the target parameters indicate that the electronic device is in a second attitude, the target sensor operates in a second mode.
[0070] The processing method provided in this application can determine the attitude of an electronic device based on target parameters and enable the target sensor to work in a mode that adapts to the current attitude, thereby improving the performance of the sensor.
[0071] When the electronic device is in its first posture, such as Figure 1 As shown, since the first body 11 and the second body 12 are arranged parallel to each other, the metal bodies in the first body 11 and the metal bodies in the second body 12 have overlapping portions, which will form parasitic capacitance. When the electronic device is in the second posture, such as Figure 2 and Figure 3 As shown, when the first body 11 and the second body 12 are unfolded, the metal parts inside them do not overlap. At this time, there is no parasitic capacitance or the parasitic capacitance between them is very small. The different angles between the first body 11 and the second body 12 will result in different areas and distances of the overlapping parts of the metal bodies between them, thus generating different parasitic capacitances.
[0072] In conventional electronic devices, sensors acquire measurement information based on the electronic device being in an unfolded state. This does not take into account the interference of parasitic capacitance on the sensor measurement results when the electronic device is in a closed state. Therefore, this can lead to inaccurate sensor measurement results and affect the performance of the sensor.
[0073] In this embodiment, the inherent capacitance of the target sensor operating in a first mode is different from that operating in a second mode. This means that the target sensor corresponds to different operating modes and inherent capacitances depending on the electronic device's posture. This allows the inherent capacitance of the target sensor in its operating mode to match the parasitic capacitance of its posture, ensuring a corresponding inherent capacitance in any posture. This eliminates the influence of parasitic capacitance on the measurement results of the target sensor in that posture, improving the accuracy of the measurement results.
[0074] In some embodiments of this application, the target sensor operates in a first mode including: obtaining a first inherent capacitance value, which characterizes the capacitance of a first detection path of the target sensor when the electronic device is in a first posture; the target sensor operates in a second mode including: obtaining a second inherent capacitance value, which characterizes the capacitance of a second detection path of the target sensor when the electronic device is in a second posture; wherein the first detection path and the second detection path are different, and the first inherent capacitance value and the second inherent capacitance value are different. In this method, the target sensor outputs measurement information based on the inherent capacitance of its current detection path, and the difference between the target sensor's detection information and the inherent capacitance-related quantity is the measurement information related to the detected object. Since the sensor's detection information is a current / voltage signal, the inherent capacitance-related quantity is the current / voltage related to the inherent capacitance, so that parameters of the same dimension can be calculated.
[0075] When the electronic device is in a first posture, the target sensor is in a first detection path, and the first inherent capacitance characterizes the capacitance of the first detection path when there is no object to be detected. When the electronic device is in a second posture, the target sensor is in a second detection path, and the second inherent capacitance characterizes the capacitance of the second detection path when there is no object to be detected.
[0076] Taking a target sensor as an example, used to measure the distance parameter between a detection object and an electronic device, in conventional electronic devices, the distance parameter between the detection object and the electronic device is calculated based on the same inherent capacitance in both the first and second postures. Therefore, in both postures, conventional electronic devices output measurement information that characterizes the aforementioned distance parameter based on the difference between the detection information of the target sensor and the correlation quantity of the same inherent capacitance. In the first posture, the parasitic capacitance is close to zero or approximately zero, and the measurement information can accurately characterize the aforementioned distance parameter. However, in the second posture, the difference includes not only the correlation quantity of the detection object but also the correlation quantity of the parasitic capacitance, resulting in the measurement information not accurately characterizing the aforementioned distance parameter.
[0077] In this embodiment, since the first posture corresponds to the first inherent capacitance and the second posture corresponds to the second inherent capacitance, in the first posture, the target sensor operates in the first mode, and the measurement information is the difference between the detection information and the first inherent capacitance. In the second posture, the target sensor operates in the second mode, and the measurement information is the difference between the detection information and the second inherent capacitance. This allows the parasitic capacitance to be eliminated through the corresponding inherent capacitance in both the first and second postures, thereby ensuring that the target sensor can have relatively accurate measurement results in different modes.
[0078] In this embodiment, the target sensor is in a first detection path with a first inherent capacitance in a first mode, and in a second detection path with a second inherent capacitance in a second mode. Thus, when the target sensor is working in the first mode, it can acquire measurement information through the first detection path, and when it is working in the second mode, it can acquire measurement information through the second detection path. Moreover, the first detection path and the second detection path have different inherent capacitances, which are used to eliminate the influence of parasitic capacitance under the corresponding posture of the electronic device on the measurement results, ensuring the accuracy of the measurement results of the target sensor under different postures of the electronic device, and improving the performance of the target sensor.
[0079] In the above method, the first inherent capacitance characterizes the capacitance of the first detection path when the electronic device is in a first posture, and the second inherent capacitance characterizes the capacitance of the first detection path when the electronic device is in a second posture. Based on this, in some embodiments of this application, the processing method further includes: if the target parameter characterizes the electronic device as being in a first posture, the first metal body of the first body 11 is connected to the second metal body of the second body 12; if the target parameter characterizes the electronic device as being in a second posture, the first metal body of the first body 11 is disconnected from the second metal body of the second body 12. In this method, different inherent capacitances correspond to different postures of the electronic device, and the posture of the electronic device can be determined based on whether the first metal body and the second metal body in the first body are connected. When the electronic device switches to a different posture, the inherent capacitance of the current detection path needs to be recalibrated to obtain the inherent capacitance value corresponding to the current posture.
[0080] In the first posture, the first metal body is connected to the second metal body, and the first inherent capacitance value is related to the connected first and second metal bodies. In the second posture, the first metal body is disconnected from the second metal body, and the second inherent capacitance value is related to the first metal body but independent of the second metal body. When the target sensor senses and detects an object, whether in the first or second mode, it needs to calculate the measurement information based on the current inherent capacitance.
[0081] In some embodiments of this application, the electronic device may also have a target function module capable of adjusting the capacitance of the detection path of the target sensor. In this case, the processing method further includes controlling the target sensor to adjust the capacitance of its detection path to a target capacitance value based on the target function module. The target capacitance value is a set constant. In this method, regardless of whether the target sensor operates in a first mode or a second mode, the capacitance of the current detection path of the target sensor is adjusted to the target capacitance value through the target function module, thereby eliminating the influence of parasitic capacitance on the measurement results of the target sensor. At this time, the target sensor outputs measurement information based on the target capacitance value, and the difference between the target sensor's detection information and the inherent capacitance-related quantity is the measurement information related to the detected object.
[0082] The target capacitance value is the reference capacitance of the detection path where the target sensor is located when there is no object being detected. Thus, although the first and second postures have different parasitic capacitances, the target function module can adjust the capacitance of the detection path where the target sensor is located to the target capacitance value, eliminating the influence of parasitic capacitance on the measurement results under different postures of the electronic device. Optionally, to facilitate the calculation of measurement results based on the measurement information of the target sensor and simplify the calculation process, the target capacitance value can be set to zero, so that the detection information of the target sensor is the measurement information. It is readily apparent that in other embodiments of this application, the target capacitance value can also be set to other fixed non-zero constants.
[0083] Taking a target sensor used to measure the distance parameter between a detection object and an electronic device as an example, based on a target functional module that can adjust the capacitance value of the detection path, in the first posture, a first adjustment amount is used to eliminate the parasitic capacitance in the first posture, and in the second posture, a second adjustment amount is used to eliminate the parasitic capacitance in the second posture. This ensures that the measurement information can accurately represent the aforementioned distance parameter, thereby enabling the target sensor to have relatively accurate measurement results in different modes. When the electronic device switches to different postures, this method requires adjustment of the capacitance of the detection path where the target capacitor is located. Specifically, after determining the inherent capacitance value of the detection path where the target capacitor is located in the current posture, the capacitance of the detection path is adjusted through the target functional module based on the difference between the inherent capacitance value and the target capacitance value.
[0084] The target functional module includes multiple electrodes arranged in an array, and a capacitance is formed between the electrodes and the reference ground. The capacitance value of the detection path can be adjusted by controlling the number of electrodes connected to the detection path in the target functional module.
[0085] In the above method, the capacitance of the detection path of the target sensor can be adjusted to the target capacitance value based on the target functional module. Therefore, in some embodiments of this application, the processing method further includes: if the target parameter indicates that the electronic device is in a first posture, the first metal body of the first body 11 is connected to the second metal body of the second body 12; if the target parameter indicates that the electronic device is in a second posture, the first metal body of the first body 11 is disconnected from the second metal body of the second body 12. In this method, the connection state of the first metal body and the second metal body can be controlled based on the posture change of the electronic device, and the capacitance of the current detection circuit can be adjusted through the target functional module based on the connection state of the first metal body and the second metal body. In the first posture, the first metal body and the second metal body are connected; in the second posture, the first metal body and the second metal body are disconnected.
[0086] Based on the processing method provided in the above embodiments, another embodiment of this application also provides an electronic device, which can perform the following... Figures 1-3 As shown, the electronic device includes:
[0087] First ontology 11;
[0088] The second body 11 is connected to the first body 11 and the second body 12; the first body 11 and the second body 12 of the electronic device satisfy the stacking condition to indicate that the electronic device is in a first posture; the first body and the second body of the electronic device satisfy the parallel condition to indicate that the electronic device is in a second posture.
[0089] A target sensor is used to acquire distance parameters of the detected object relative to the electronic device. If the target parameters indicate that the electronic device is in a first posture, the target sensor operates in a first mode; if the target parameters indicate that the electronic device is in a second posture, the target sensor operates in a second mode.
[0090] The target sensor is located inside the electronic device, in Figures 1-3 The target sensor is not shown.
[0091] The electronic device provided in this application embodiment can perform the above processing method, determine the attitude of the electronic device based on the target parameters, and make the target sensor work in the current attitude-adapted mode, thereby improving the performance of the sensor.
[0092] Optionally, in the first mode, the target sensor detects capacitance through a first detection path; in the second mode, the target sensor detects capacitance through a second detection path. The electronic device has a target function module, which can control the target sensor to adjust the capacitance of its detection path to a target capacitance value based on the target function module. The target function module is located inside the electronic device. Figures 1-3 The target functional module is not shown.
[0093] refer to Figures 5-7 As shown, Figure 5 This is a top view of a metal body in an electronic device in a first posture, provided in an embodiment of this application. Figure 6 This is a side view of a metal body in an electronic device in a first posture, provided as an embodiment of this application. Figure 7 This is a top view of a metal body in an electronic device in a second posture, provided as an embodiment of this application.
[0094] The electronic device has a metal body. Optionally, the metal body can be a metal frame of the electronic device. The metal body includes a first metal body 21 located on a first body 11 and a second metal body 22 located on a second body 12. The metal body includes a first portion located on the first body 11 and a second body located on the second body 12. The metal body can be configured to include a cutout 23, based on which the first portion is divided into multiple disconnected sections to form the first metal body 21, and the second portion is divided into multiple disconnected sections to form the second metal body 22. The cutout 23 can be filled with an insulating material, which can be an insulating colloid or plastic, etc. Figures 5-7 The insulating material is not shown in the diagram.
[0095] like Figures 5-7 As shown, in some embodiments of this application, the first body 11 includes a first metal body 21, and the second body 12 includes a second metal body 22; the target sensor is connected to the first metal body 21; in a first mode, the first metal body 21 is connected to the second metal body 22, and the target sensor detects capacitance based on the first metal body 21 and the second metal body 22; in a second mode, the first metal body 21 is disconnected from the second metal body 22, and the target sensor detects capacitance based on either the first metal body 21 or the second metal body 22.
[0096] In this embodiment of the application, the connection state of the first metal body 21 and the second metal body 22 can be controlled by a switch.
[0097] refer to Figure 8 and Figure 9 As shown, Figure 8 This is a schematic diagram of the circuit structure of a target sensor in the first mode of operation, provided in an embodiment of this application. Figure 9This is a schematic diagram of the circuit structure of a target sensor operating in a second mode, provided in an embodiment of this application. In this mode, the electronic device has a target sensor 20, which is connected to a first metal body 21 and a second metal body 22 via a first switch SW1. A second switch SW2 is connected between a first node N1 and a second node N2. The first node N1 is located on the connection line between the target sensor 20 and the first metal body 21, and the second node N2 is located on the connection line between the second metal body 22 and the first switch SW1.
[0098] like Figure 8 As shown, when the target sensor 20 operates in the first mode, the first switch SW1 is open and the second switch SW2 is short, thus enabling the first metal body 21 and the second metal body 22 to connect and be connected to the same port of the target sensor 20. Figure 9 As shown, when the target sensor 20 operates in the second mode, the first switch SW1 is closed and the second switch SW2 is open, causing the first metal body 21 and the second metal body 22 to disconnect, and the two are respectively connected to a corresponding port of the target sensor 20.
[0099] for Figure 8 and Figure 9 As shown, the electronic device has a target sensor 20, which can be disposed within the first body 11 or the second body 12. When the electronic device is in a first posture, the target sensor 20 operates in a first mode, acquiring detection information through the first metal body 21 or the second metal body 22. When the electronic device is in a second posture, the target sensor 20 operates in a second mode, acquiring detection information through both the first metal body 21 and the second metal body 22. When the target sensor 20 is used to acquire the distance parameter between the detected object and the electronic device, in the first posture, the target sensor can measure the distance parameter through either the first metal body 21 or the second metal body 22, and the smaller of the two measurements is taken as the final measurement result.
[0100] In other embodiments of this application, the electronic device may also have two target sensors 20. In this case, one target sensor 20 is respectively disposed in the first body 11 and the second body 12, and the circuit structure can be as follows: Figure 10 and Figure 11 As shown.
[0101] refer to Figure 10 and Figure 11 As shown, Figure 10 This is a schematic diagram of the circuit structure of a target sensor in the first mode of operation, provided in an embodiment of this application. Figure 11This is a schematic diagram of the circuit structure of a target sensor in the second mode, provided as an embodiment of this application.
[0102] for Figure 10 and Figure 11 In the illustrated configuration, a first target sensor is connected to a first metal body 21, and a second target sensor is connected to a second metal body 22 via a first switch SW1. A second switch SW2 connects a first node N1 and a second node N2. The first node N1 is located on the connection line between the first target sensor and the first metal body 21, and the second node N2 is located on the connection line between the first switch SW2 and the second metal body 22. In this configuration, when the electronic device is in a first posture, the first target sensor operates in a first mode and can acquire detection information through the first metal body 21. When the electronic device is in a second posture, the first target sensor operates in a second mode and can acquire detection information through the first metal body 21 and the second metal body 22. When the target sensor 20 is used to acquire the distance parameter between the detected object and the electronic device, in the first posture, the first target sensor can measure the distance parameter through the first metal body 21, and the second target sensor can measure the distance parameter through the second metal body 22. The smaller of the two measurement results is taken as the final measurement result.
[0103] In some embodiments of this application, the first body 11 includes a first antenna, and the second body 12 includes a second antenna. The first antenna reuses a first metal body 21 as the radiator of the first antenna, and the second antenna reuses a second metal body 22 as the radiator of the second antenna. In this configuration, the metal body can be used not only as the radiator of the antenna but also as the detection electrode of the target sensor, improving the integration of the electronic device and facilitating miniaturization and thinner design. The first body 11 may have one or more antennas, with each wire corresponding to at least one first metal body 21. The second body 12 may have one or more antennas, with each wire corresponding to at least one second metal body 22.
[0104] When the first antenna reuses the first metal body 21 as the radiator of the first antenna and the second antenna reuses the second metal body 22 as the radiator of the second antenna, in order to avoid crosstalk between the antenna signal and the capacitance detection signal, the first antenna and the second antenna are respectively connected to isolation circuits. The isolation circuits are used to isolate the antenna signal and the capacitance detection signal.
[0105] In this embodiment, the target sensor 20 can be a capacitive sensor. When the target sensor 20 operates in a first mode, the electronic device can perform a preset function based on the detection result of the target sensor in the first mode. When the target sensor operates in a second mode, the electronic device can perform a preset function based on the detection result of the target sensor in the second mode.
[0106] The electronic device can determine the distance parameters between the detected object and the electronic device based on the detection results of the target sensor. The detected object can be a human body. When the distance parameters between the detected object and the electronic device are different, the impact on the capacitance of the detection path where the target sensor 20 is located is different. The target sensor 20 can determine the aforementioned distance parameters based on the capacitance change of the detection circuit.
[0107] The preset function allows you to adjust the antenna's radiation intensity to match the aforementioned distance parameters. Specifically, it makes the antenna's radiation intensity positively correlated with the distance parameters, so that the antenna's radiation intensity decreases as the distance parameter decreases and increases as the distance parameter increases, thereby reducing the impact of the antenna's radiation signal on the human body. In this case, the target sensor is equivalent to a SARSensor (electromagnetic energy absorption ratio sensor).
[0108] When the electronic device is in its first posture, a parasitic capacitance forms between the first metal body 21 and the second metal body 22, increasing the trigger threshold of the SAR sensor. In conventional electronic devices, the SAR sensor does not consider the interference of parasitic capacitance on the detection results when the electronic device is in a closed state, severely affecting detection sensitivity and accuracy. Because it cannot accurately detect a person approaching, it cannot accurately control the radiation power, resulting in an excessive electromagnetic wave energy absorption ratio. To solve this problem, conventional methods involve increasing the sensor's trigger threshold or adding decision logic to eliminate the influence of parasitic capacitance. Increasing the trigger threshold shortens the detection range, limiting the detection distance to within 15mm, or even within 5mm. This is because a higher trigger threshold results in a smaller detection distance that the sensor can recognize. Adding decision logic increases the complexity of sensor debugging and the amount of data processing required.
[0109] In this embodiment, the SAR sensor can operate in a mode that adapts to the attitude of the electronic device, so as to adjust the radiation intensity and distance parameters without affecting the detection distance, thereby improving the accuracy and sensitivity of the SAR sensor detection results, and without adding complex judgment logic.
[0110] Furthermore, as mentioned above, the antenna radiator can be reused as the detection electrode of the SARSensor, which can improve the integration of electronic devices. Moreover, using the antenna radiator as the detection electrode of the detection path can more directly calculate the distance between the antenna radiator and the detection object, so as to more accurately control the radiation intensity to match the distance between the current user and the antenna radiator.
[0111] In other methods, the preset function can also adapt the output volume of the electronic device to the aforementioned distance parameters. Specifically, it makes the output volume positively correlated with the distance parameters, so that the intensity of the output volume decreases as the distance parameters decrease and increases as the distance parameters increase, ensuring that users can comfortably perceive the sound emitted by the electronic device at different distances. It is easy to understand that the above volume adjustment method is performed when the distance parameters are less than a set threshold. When the distance parameters are greater than the set threshold, the user is not near the electronic device, and the electronic device turns off its volume output to save energy.
[0112] In other methods, the preset function can also adjust the display brightness of the electronic device to match the aforementioned distance. Specifically, the display brightness is positively correlated with the distance parameter, so that the display brightness intensity decreases as the distance parameter decreases and increases as the distance parameter increases, ensuring that the user can comfortably perceive the image displayed by the electronic device within different distance ranges. It is easy to understand that the above-mentioned display brightness adjustment method is performed when the distance parameter is less than a set threshold. When the distance parameter is greater than the set threshold, the user is not near the electronic device, and the electronic device enters a silent state to save energy.
[0113] Electronic devices can be configured to perform one or more of the above-mentioned preset functions based on requirements, and the embodiments of this application do not limit this.
[0114] In this embodiment, the electronic device can be a mobile phone, tablet computer, etc. When the electronic device is in the unfolded state, if it is rectangular or rounded rectangle, the electronic device can be folded based on the long side or the short side to achieve different posture changes.
[0115] The following is combined Figure 10 and Figure 11 The following example illustrates the technical solution for adjusting the antenna radiation intensity of the electronic device in this embodiment, using a target sensor 20 that is a capacitive sensor for detecting the distance parameter between the user and the electronic device. In this case, both the first target sensor and the second target sensor are capacitive sensors.
[0116] In its first posture, the electronic device, such as Figure 10As shown, the first metal body 21 and the second metal body 22 are connected via the second switch SW2, and both metal bodies 21 and 22 share the same sensor. The first target sensor can perform capacitance detection based on the first metal body 21 and the second metal body 22, thus it can function as a SAR sensor. The second target sensor is disconnected from the second metal body 22 and is not connected to the detection electrode, preventing false triggering. At this time, after recalibrating or re-evaluating the inherent capacitance of the detection path, the electronic device can detect the user's approach and the distance parameters within a larger range, adjusting the antenna's transmission power to match the antenna radiation intensity with these distance parameters.
[0117] When performing inherent capacitance calibration on electronic devices, one approach is to obtain the inherent capacitance value of the target sensor within the current detection path, without any object affecting the detection path. Another approach is to pre-store the inherent capacitance values corresponding to different postures in the electronic device, and directly read the inherent capacitance value corresponding to the current posture when the electronic device switches to a new posture. Other methods include preset calibration conditions, where capacitance calibration is performed only when these conditions are met. Preset calibration conditions include device restart and termination of flight mode, indicating that the electronic device needs to be used normally. Meeting these preset conditions ensures accurate detection results from the target sensor when the electronic device is in normal operation.
[0118] When an electronic device re-evaluates its operation, the working principle of the electronic device is as follows: Figure 12 As shown, Figure 12 This is a schematic diagram illustrating the working principle of an electronic device provided in an embodiment of this application.
[0119] When the electronic device starts operating, it determines whether it is in the deployed state. If the electronic device is in the deployed state (corresponding to the first posture), SW1 is closed and SW2 is open. When the first target sensor acts as the SAR sensor, it calls the reference value of the Cap Sensor in the deployed state, calculates the change in the SAR sensor's sensing capacitance, and calculates the difference between the sensing capacitance and the reference value. If this difference meets the trigger condition, it outputs the changed sensor value and calls the corresponding transmission power to make the antenna radiation intensity of the electronic device match the distance parameter. If the difference does not meet the trigger condition, it outputs an unchanged sensor value and maintains the current transmission power. If the electronic device is in the closed state (corresponding to the second posture), SW1 is open and SW2 is closed. When the first target sensor acts as the SAR sensor, it calls the reference value of the Cap Sensor in the closed state, calculates the change in the SAR sensor's sensing capacitance, and calculates the difference between the sensing capacitance and the reference value. If this difference meets the trigger condition, it outputs the changed sensor value and calls the corresponding transmission power to make the antenna radiation intensity of the electronic device match the distance parameter. If the difference does not meet the trigger condition, it outputs an unchanged sensor value and maintains the current transmission power.
[0120] The various embodiments in this specification are described in a progressive, parallel, or combined manner. Each embodiment focuses on the differences from other embodiments, and the same or similar parts between the embodiments can be referred to each other.
[0121] It should be noted that, in the description of this application, the accompanying drawings and embodiments are illustrative rather than restrictive. The same reference numerals throughout the embodiments identify the same structures. Additionally, for ease of understanding and description, the thicknesses of some layers, films, panels, regions, etc., may be exaggerated in the drawings. It is also understood that when an element such as a layer, film, region, or substrate is referred to as being "on" another element, the element may be directly on the other element or there may be intermediate elements. Furthermore, "on" means positioning an element on or below another element, but does not inherently mean positioning it above another element according to the direction of gravity.
[0122] The terms "upper," "lower," "top," "bottom," "inner," and "outer," etc., indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings. They are used only for the convenience of describing this application and for simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, they should not be construed as limitations on this application. When a component is considered to be "connected" to another component, it can be directly connected to the other component or there may be a component positioned centrally in the middle.
[0123] It should also be noted that, in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that an article or apparatus comprising a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such an article or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the article or apparatus that includes the aforementioned element.
[0124] The above description of the disclosed embodiments enables those skilled in the art to make or use this application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of this application. Therefore, this application is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A processing method, the processing method comprising: Obtain the target parameters; If the target parameter indicates that the electronic device is in a first posture, the target sensor operates in a first mode; The electronic device includes a first body and a second body; the inherent capacitance of the first mode is the capacitance of the first detection path of the target sensor, and the first detection path is activated in response to the electronic device being in the first posture, so that the target sensor is connected to the first metal body of the first body and the second metal body of the second body respectively; the electronic device is in the first posture, and the first body and the second body satisfy the stacking condition. If the target parameter indicates that the electronic device is in a second posture, the target sensor operates in a second mode; the inherent capacitance of the second mode is the capacitance of the second detection path of the target sensor, the second detection path being activated in response to the electronic device being in the second posture, controlling the switch to open so that the target sensor is connected to one of the first metal body and the second metal body; the electronic device is in the second posture, and the first body and the second body satisfy the parallel condition; Wherein, the first detection path is different from the second detection path, and the inherent capacitance of the target sensor in the first mode is different from the inherent capacitance in the second mode; The target sensor is used to sense the distance parameter between the detection object and the electronic device.
2. The processing method according to claim 1, wherein the target sensor operates in a first mode comprising: Obtain the capacitance of the first detection path of the target sensor when the electronic device is in the first posture; The target sensor operates in a second mode including: The capacitance of the second detection path of the target sensor is obtained when the electronic device is in the second posture.
3. According to the processing method of claim 1, the target sensor is controlled to adjust the capacitance of the detection path of the target sensor to the target capacitance value based on the target functional module.
4. An electronic device, the electronic device comprising: first ontology; The second body is connected to the first body; wherein, the first body and the second body of the electronic device satisfy a stacking condition to indicate that the electronic device is in a first posture; the first body and the second body of the electronic device satisfy a parallel condition to indicate that the electronic device is in a second posture; A target sensor is used to acquire distance parameters of a detected object relative to the electronic device. If the electronic device is in a first posture, the target sensor operates in a first mode, where the inherent capacitance of the first mode is the capacitance of a first detection path of the target sensor. The first detection path controls a switch to be turned on in response to the electronic device being in the first posture, allowing the target sensor to connect to a first metal body of the first body and a second metal body of the second body, respectively. If the electronic device is in a second posture, the target sensor operates in a second mode, where the inherent capacitance of the second mode is the capacitance of a second detection path of the target sensor. The second detection path controls a switch to be turned off in response to the electronic device being in the second posture, allowing the target sensor to connect to one of the first metal body and the second metal body. The first detection path is different from the second detection path, and the inherent capacitance of the target sensor operating in the first mode is different from the inherent capacitance of the target sensor operating in the second mode.
5. The electronic device according to claim 4, wherein in the first mode, the target sensor detects capacitance through a first detection path; and in the second mode, the target sensor detects capacitance through a second detection path; The electronic device has a target function module, which can control the target sensor to adjust the capacitance of the detection path of the target sensor to a target capacitance value based on the target function module.
6. The electronic device according to claim 4, wherein the target sensor is connected to the first metal body; In the first mode, the first metal body is connected to the second metal body, and the target sensor detects capacitance based on the first metal body and the second metal body. In the second mode, the first metal body is disconnected from the second metal body, and the target sensor detects capacitance based on the first metal body.
7. The electronic device according to claim 6, wherein the first body includes a first antenna, and the second body includes a second antenna; The first antenna reuses the first metal body as the radiator of the first antenna, and the second antenna reuses the second metal body as the radiator of the second antenna.
8. The electronic device according to claim 7, wherein the first antenna and the second antenna are respectively connected to an isolation circuit, the isolation circuit being used to isolate the antenna signal from the capacitance detection signal.