Detection method and electronic equipment

By calibrating the second detection parameters and adjusting the detection parameters, the problem of mutual influence of sensor detection values ​​after electronic equipment shape switching is solved, the accuracy of the detection results is improved, and the accurate judgment of the usage status under different forms is ensured.

CN119094644APending Publication Date: 2024-12-06LENOVO (BEIJING) LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411203737.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-29
Publication Date
2024-12-06

AI Technical Summary

Technical Problem

When switching the form of electronic equipment, the mutual influence of sensor detection values ​​leads to inaccurate detection results, which affects the judgment of the usage status of electronic equipment.

Method used

By calibrating the second detection parameters, the mutual influence between the sensors is eliminated, and the detection parameters and thresholds are adjusted to ensure that the electronic device can accurately determine its usage status after the form of the electronic device is switched.

Benefits of technology

It improves the accuracy of electronic device detection results, reduces the problems of false triggering and inaccurate detection, and improves the accuracy of SAR detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119094644A_ABST
    Figure CN119094644A_ABST
Patent Text Reader

Abstract

The invention discloses a detection method and electronic equipment, the electronic equipment comprises a plurality of sensors arranged at different positions, the detection method comprises the following steps: determining that the electronic equipment is in a first form, and determining a target use state of the electronic equipment based on current detection values of the plurality of sensors and a first detection parameter; determining that the electronic equipment is switched from the first form to a second form, and determining a target use state of the electronic equipment based on the current detection values of the plurality of sensors and a calibrated second detection parameter, compared with the first detection parameter, the calibrated second detection parameter can eliminate the mutual influence quantity of at least part of the sensors on the current detection value after form switching of the electronic equipment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and more specifically to a detection method and electronic equipment. Background Art

[0002] With the popularization of electronic devices, the form of electronic devices has also undergone various changes. For example, foldable electronic devices can meet the requirements of information processing while making electronic devices more portable. However, in actual application scenarios, the switching of electronic device forms may cause errors in the processing of some information, affecting the final processing results. Summary of the invention

[0003] A detection method is applied to an electronic device, wherein the electronic device includes a plurality of sensors arranged at different positions, and the detection method includes:

[0004] Determining that the electronic device is in a first state, and determining a target usage state of the electronic device based on current detection values ​​of the plurality of sensors and the first detection parameter;

[0005] Determine whether the electronic device switches from the first form to the second form, and determine a target usage state of the electronic device based on current detection values ​​of the multiple sensors and calibrated second detection parameters, wherein the calibrated second detection parameters can eliminate mutual influence of at least some of the multiple sensors on the current detection values ​​after the form of the electronic device is switched, compared with the first detection parameters.

[0006] Optionally, the method further comprises: in response to the electronic device switching from the first form to the second form, obtaining the calibrated second detection parameter;

[0007] Wherein, obtaining the calibrated second detection parameter comprises:

[0008] configuring at least part of the detection values ​​of the corresponding sensor to be initial values ​​to obtain a calibrated second detection parameter;

[0009] or adjusting part of the detection parameters of the corresponding sensors in the first detection parameters to initial values ​​to obtain the calibrated second detection parameters;

[0010] And / or, a first threshold parameter in the first detection parameter used to characterize that the sensor is triggered to detect the usage status of the electronic device is adjusted to a second threshold parameter to obtain a calibrated second detection parameter.

[0011] Optionally, the method further comprises:

[0012] determining a target sensor among a plurality of sensors;

[0013] In response to the electronic device switching from the first form to the second form, the first detection parameter corresponding to the target sensor is not adjusted, so that when the detection value of the target sensor meets the target condition, both the first form and the second form can be in a triggered state.

[0014] Optionally, the method further comprises:

[0015] generating a first detection channel and a second detection channel based on the target sensor, wherein the first detection channel and the second detection channel share a current detection value;

[0016] Wherein, when the electronic device is in a first form, the first detection channel determines the target usage state of the electronic device based on the current detection value and the first detection threshold; when the electronic device is in a second form, the second detection channel determines the target usage state of the electronic device based on the current detection value and the second detection threshold.

[0017] Optionally, the detection value of the target sensor satisfies the target condition including:

[0018] The detection difference between the current detection value of the target sensor and the first detection parameter in the target time period is in an increasing trend.

[0019] Optionally, determining the target usage state of the electronic device based on current detection values ​​of the multiple sensors and the first detection parameter includes:

[0020] Determine a first detection difference between current detection values ​​of the plurality of sensors and the first detection parameter;

[0021] If the first detection difference is greater than a first threshold value, it is determined that the electronic device is in the target usage state.

[0022] Optionally, determining the target usage state of the electronic device based on current detection values ​​of the multiple sensors and a calibrated second detection parameter includes:

[0023] Determine a second detection difference between current detection values ​​of the plurality of sensors and a calibrated second detection parameter;

[0024] If the second detection difference is greater than a second threshold value, it is determined that the target device is in a target usage state.

[0025] Optionally, it also includes:

[0026] If the detection difference between the current detection value of the target sensor and the first detection parameter is in an increasing trend, the power of the antenna module of the electronic device is adjusted so that the power of the antenna module matches the detection difference.

[0027] Optionally, it also includes:

[0028] When the electronic device is in the target usage state, the antenna module of the electronic device is adjusted to a target power.

[0029] An electronic device, comprising:

[0030] A plurality of sensors disposed at different locations on the electronic device, and a processor;

[0031] The processor is used to execute any one of the detection methods described above. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are merely embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.

[0033] Figure 1 A schematic diagram of a detection method provided in an embodiment of the present application;

[0034] Figure 2 A schematic diagram of a device form of an electronic device provided in an embodiment of the present application;

[0035] Figure 3 A schematic diagram of the sensor layout on a foldable mobile phone provided in an embodiment of the present application;

[0036] Figure 4 A schematic diagram of a foldable mobile phone provided in an embodiment of the present application;

[0037] Figure 5 A schematic diagram of a mobile phone in different holding states provided by an embodiment of the present application;

[0038] Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0039] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0040] The terms "first" and "second" in this application are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but may include steps or units that are not listed.

[0041] An embodiment of the present application provides a detection method, which is applied to an electronic device, which may be a mobile terminal with different forms. By executing a detection method that matches the current form of the electronic device, the influence of the device form on the detection process can be reduced, and the accuracy of the detection result can be improved. For example, the detection method can be applied to a scenario where the SAR (Specific Absorption Rate) performance of the electronic device needs to be detected to improve the accuracy of SAR detection of the electronic device.

[0042] See also Figure 1 , is a flow chart of a detection method provided in an embodiment of the present application. The detection method is applied to an electronic device, and the electronic device includes a plurality of sensors arranged at different positions. The method may specifically include the following steps:

[0043] S101: Determine that the electronic device is in a first state, and determine a target usage state of the electronic device based on current detection values ​​of multiple sensors and a first detection parameter.

[0044] S102: Determine whether the electronic device switches from the first form to the second form, and determine a target usage state of the electronic device based on current detection values ​​of multiple sensors and calibrated second detection parameters.

[0045] The first form and the second form of the electronic device are both its device forms. For example, when the electronic device is a mobile terminal, in order to make the display screen of the electronic device larger or make the electronic device more portable, the electronic device can adopt a foldable structure. The foldable electronic device has two main bodies, namely a first main body and a second main body. The two main bodies can be rotatably connected by a rotating shaft, so that the first main body and the second main body can form a folded form or an unfolded form of the electronic device. Figure 2 , is a schematic diagram of a device form of an electronic device provided in an embodiment of the present application, in Figure 2 The left side shows the unfolded form of the electronic device. Figure 2 The right side shows the folded form of the electronic device.

[0046] The electronic device includes a plurality of sensors arranged at different positions. The types of these sensors may be the same or different. For example, the sensors arranged in the electronic device may include motion sensors, Hall sensors, capacitive proximity sensors, etc., wherein the motion sensors or Hall sensors may be used to detect the form of the electronic device. For example, the first body and the second body of the electronic device are respectively provided with Hall sensors, and the detection value of the Hall sensors is used to determine whether the electronic device is in the first form or the second form. For example, when the electronic device is a foldable electronic device, the first form may be the unfolded form of the electronic device, and the second form may be the folded form of the electronic device. The capacitive proximity sensor arranged in the electronic device is a sensor that uses the principle of capacitance to detect the approach or contact of an object. For example, the capacitive proximity sensor may be a SAR sensor. Since the human body has a dielectric constant, it will change the capacitance value around the SAR sensor. Therefore, the SAR sensor can be used to detect such capacitance change to determine whether a human body is close to the electronic device.

[0047] The use state of the electronic device may include a free space (FS) state, that is, the electronic device (such as a mobile phone) is placed on a table, in a pocket or a bag, not held by the user, and the electronic device is in standby state. Or the free space state is an ideal state in which the electronic device is in standby state and is not in contact with any object. The use state of the electronic device (such as a mobile phone) also includes a holding state, and the specific holding state may also include a double-sided holding state and a single-sided holding state, wherein, taking a mobile phone as an example, the double-sided holding state refers to the holding state in which the user's hand contacts the two side frames of the mobile phone; the single-sided holding state may include the mobile phone being held by the user's left hand, that is, the state in which the user's left hand contacts the left side frame of the mobile phone; it may also be the state in which the mobile phone is held by the user's right hand, that is, the state in which the user's right hand contacts the right side frame of the mobile phone. In the embodiment of the present application, it is necessary to detect whether the electronic device is in the target use state, wherein the target use state refers to the holding state described above, and further, when the electronic device is a foldable electronic device, its corresponding target use state includes the holding state of the electronic device in the unfolded form, and the holding state of the electronic device in the folded form (also called the closed form).

[0048] Taking the case where the first form of the electronic device is the unfolded form of a foldable electronic device as an example, current detection values ​​and first detection parameters of multiple sensors of the current electronic device are obtained to determine whether the electronic device is in the target usage state based on the current detection values ​​and first detection parameters of the multiple sensors. The first detection parameter may be a reference value corresponding to the sensor, that is, a value in an initial state, such as the detection value of the sensor when the electronic device is in a free space state. Correspondingly, the first detection parameter may also be a detection threshold in a detection condition for determining that the electronic device is in the target usage state. The sensor may be a SAR sensor, which is usually integrated on a metal frame or glass panel of an electronic device (such as a mobile phone) to better detect whether a human body is approaching the electronic device. See Figure 3 A schematic diagram of the sensor layout on a foldable mobile phone provided in an embodiment of the present application, Figure 3 In the present invention, the sensor can be set on the border of the mobile phone, such as Figure 3 The CH0, CH1, CH2, CH3, CH4 and other positions shown in the figure, so that if the mobile phone is in a gripping state, the hand will approach the sensors at the corresponding positions, and the capacitance values ​​detected by these sensors will change, so that it can be determined whether the electronic device is in the target usage state according to the degree of change in the capacitance value.

[0049] Taking the first detection parameter as the detection value of a sensor when the electronic device is in a free space state (such as a state where the electronic device is not in contact with the human body) as an example, in one embodiment, the target usage state of the electronic device is determined based on the current detection values ​​of multiple sensors and the first detection parameter, including: determining a first detection difference between the current detection values ​​of the multiple sensors and the first detection parameter; if the first detection difference is greater than a first threshold value, determining that the electronic device is in the target usage state.

[0050] Specifically, when a hand or other conductive object (such as a human body) approaches or holds an electronic device, the capacitance value detected by the SAR sensor (capacitive proximity sensor) will increase. This is because the human body has certain capacitance characteristics. When the human body is close to the sensor, it is equivalent to increasing the capacitance value between the sensor and the human body. In the embodiment of the present application, when there is no human body close to the electronic device, that is, when the electronic device is in a free space state, the detection value of the sensor is used as its initial value, that is, the first detection parameter, and the current detection value of the sensor is obtained. Then the change value between the current capacitance detection value and the initial value can be calculated, that is, the first detection difference is obtained, and a threshold value, that is, the first threshold value, can be set. If the first detection difference is greater than the first threshold value, it means that the electronic device is detected to be in a holding state, that is, in the target use state.

[0051] It should be noted that in the embodiment of the present application, when it is detected that the first detection difference between the current detection value of at least one sensor among the multiple sensors and the first detection parameter corresponding thereto is greater than the first threshold value, it can be determined that the electronic device is in the target usage state. Figure 3 As shown, it can be determined that the mobile phone is in a holding state when it is detected that the first detection difference between the current detection value of sensor CH1 and the first detection parameter corresponding to it is greater than the first threshold value. Further, in order to improve the detection accuracy, it can also be determined that the mobile phone is in a holding state when the first detection difference between the current detection value and the first detection parameter corresponding to at least two sensors with position association (such as adjacent sensors) is greater than the first threshold value. Figure 3 Whether the current detection values ​​of the three sensors CH0, CH1, and CH7 in the target duration all meet the above conditions, if so, it means that the electronic device is in a gripping state. Correspondingly, it can also be determined that the electronic device is in a target use state when the current detection values ​​of multiple sensors meet the above conditions during the continuous target duration to avoid the problem of false triggering. For example, if the electronic device is placed on a table and someone walks by, it is also easy to change the sensor capacitance value, so it can be monitored whether the current detection value of the sensor meets the above conditions within the target duration. Further, the first threshold value can also include multiple specific values, and there are relatively large differences between each value, that is, it can be detected whether the current capacitance value of the sensor is a situation of continuous increase. If so, it meets the condition that the person is close to the electronic device, so when the first detection difference is greater than a relatively large value among these threshold values, it can be determined that the target electronic device is in a gripping use state to avoid the problem of false triggering and inaccurate detection.

[0052] When it is detected that the form of the electronic device has changed, if the processing mode in step S101 is continued for detection, the form of the electronic device may affect the detection result. Taking the first form as the unfolded form of the foldable electronic device and the second form as the folded form of the foldable electronic device (also called the closed form) as an example, when the electronic device switches from the unfolded form to the folded state, the capacitance value of the SAR sensor will also change, which makes it impossible for the processor of the electronic device to distinguish whether the capacitance value change is caused by the state switching or the capacitance value change caused by the contact between the human body and the electronic device, which makes the SAR detection of the foldable electronic device inaccurate.

[0053] In order to solve the above problem, when it is determined that the electronic device switches from the first form to the second form, a processing mode different from the above step S101 is executed, that is, step S102 is executed to determine the target usage state of the electronic device based on the current detection values ​​of multiple sensors and the calibrated second detection parameters. Compared with the first detection parameters, the calibrated second detection parameters can eliminate the mutual influence of at least some sensors in the multiple sensors after the form of the electronic device is switched on the current detection value. Figure 4 , which shows a schematic diagram of a folded mobile phone provided by an embodiment of the present application. The upper and lower parts of the mobile phone will overlap each other, which will result in Figure 4 The detection values ​​of sensors CH0 and CH4 affect each other, and the detection values ​​of sensors CH1 and CH3 affect each other. In this way, even if no one is close to the mobile phone, it will be determined that the mobile phone is in a state where a person is close, thereby causing false triggering. Therefore, in the embodiment of the present application, a calibrated second detection parameter is used to eliminate the mutual influence of the detection values ​​of the above sensors CH0 and CH4, or the mutual influence of the detection values ​​of sensors CH1 and CH3, that is, to avoid the problem of false triggering caused by the folding state, thereby improving the detection accuracy of the target usage state (such as the holding state) of the mobile phone when it is in the folded state.

[0054] Further, in an embodiment of the present application, the target use state of the electronic device is determined based on the current detection values ​​of multiple sensors and the calibrated second detection parameter, including: determining the second detection difference between the current detection values ​​of multiple sensors and the calibrated second detection parameter; if the second detection difference is greater than the second threshold value, it is determined that the target device is in the target use state. In this embodiment, the second threshold value may be the same as the first threshold value for determining whether the electronic device is in the target use state in the first form, or it may be different. For example, the first threshold value may be 10pF, and the second threshold value may also be 10pF or 12pF, etc. Specifically, the corresponding threshold value may be determined according to the application scenario and use environment of the electronic device. In this embodiment, the processing flow is similar to that of the electronic device in the first form, except that the second detection parameter is obtained by calibration, excluding the influence of the electronic device form when the electronic device is in the second form (such as the folded state). For example, the calibrated second detection parameter may be the initial value of the corresponding sensor. In an embodiment of the present application, in response to the electronic device switching from the first form to the second form, the calibrated second detection parameter is obtained. Among them, obtaining the calibrated second detection parameter includes at least one of the following ways:

[0055] (1) configuring at least part of the detection values ​​of the corresponding sensor as initial values ​​to obtain a calibrated second detection parameter. The corresponding sensor is a sensor affected by the form of the electronic device, such as Figure 4Sensors CH0, CH4, CH1 and CH3 are shown. The initial value is the detection value of the sensor in a normal free space state. If the sensor is a SAR sensor, the initial value of the SAR sensor represents the reference capacitance value of the foldable electronic device in the unfolded form and in the free space state. The reference capacitance value may be configured before the electronic device leaves the factory, or it may be when the electronic device is started for the first time. When it is detected that the electronic device is in the free space state and it is in the unfolded form, the sensor is started to obtain its corresponding capacitance detection value, and this capacitance detection value is used as the initial value. It may also be that each time the use environment of the electronic device changes, the capacitance detection value of the sensor in the unfolded form and in the free space state is obtained once, and the capacitance detection value of the sensor at this time is used as the initial value. When it is detected that the electronic device switches from the unfolded form to the folded form, at least part of the detection value of the corresponding sensor at this time may be configured as the initial value, such as Figure 4 The current detection values ​​of sensors CH1 and CH3 are configured as initial values, and the current detection values ​​of sensors CH0 and CH4 are configured as initial values. At this time, the calibrated second detection parameters obtained are the detection values ​​of these sensors at the current moment. For example, if the initial value of the sensor is 30pF, if the mobile phone is in a folded state during the current time period and has been in a free space with no human body approaching, since the detection values ​​of the above sensors in this state are configured as initial values, the detection values ​​of these sensors remain the same as the reference values, all of which are 30pF, and it is considered that there is no capacitance difference between the two, that is, it is determined that no one is approaching the electronic device. If in the next detection stage, it is detected that the detection value of sensor CH3 gradually increases to 40pF, then the capacitance difference with the initial value gradually increases from 0 to 10pF. If the set trigger threshold is 8pF, 10pF is greater than 8pF, it will be determined that someone is approaching the electronic device. Furthermore, if the detection value changes to 50pF, the capacitance difference with the initial value is 20pF, which is greater than the threshold value of 15pF that meets the holding state, then it will be determined that the electronic device is in a holding state, that is, in the target usage state.

[0056] (2) It is also possible to adjust some detection parameters of the first detection parameters corresponding to the sensor to initial values ​​to obtain calibrated second detection parameters.

[0057] Taking the sensor as a SAR sensor as an example, in order to facilitate the change of the capacitance difference of the sensor before and after the current detection moment to determine whether someone is close to the electronic device, if the electronic device switches from the unfolded form to the folded form, the above judgment will be falsely triggered. The calibrated second detection parameter is obtained by adjusting part of the detection parameters of the corresponding sensor in the first detection parameter to the initial value. The initial value here refers to the detection parameter value that can detect that the electronic device is in free space under the current detection environment. At this time, the calibrated second detection parameter is the first detection parameter adjusted by the corresponding sensor. If the first detection parameter is a reference value, the second detection parameter is the adjusted reference value. Figure 4 Taking sensor CH3 in the example, the first detection parameter corresponding to sensor CH3 is 20pF. At this time, if the mobile phone is folded Figure 4 In the state shown, the detection value of the sensor is 30pF. If the normal processing flow is followed, the capacitance difference between the two is greater than the threshold value, which will trigger the logic of detecting someone approaching. In this way, even if no one is approaching, it may be recognized as someone approaching because the mobile phone is folded. Therefore, the first detection parameter 20pF can be adjusted to 30pF, so that the capacitance difference with the current detection value will not be greater than the threshold value, and it will not be mistakenly believed that someone is approaching when no one is approaching the electronic device. If someone approaches the electronic device subsequently, the detection value of the sensor will continue to increase, and the difference between the first detection parameter after the adjustment will be greater than the threshold value, thereby successfully identifying the approach of a person.

[0058] (3) Alternatively, a first threshold parameter in the first detection parameter used to characterize the state in which the sensor is triggered to detect the use of the electronic device may be adjusted to a second threshold parameter to obtain a calibrated second detection parameter.

[0059] In order to solve the problem of low detection accuracy caused by the change of the electronic device's form, it can also be achieved by adjusting the relevant threshold parameters in the first detection parameter. In this embodiment, the first detection parameter may include the detection reference value of the electronic device in the free space state, and may also include a threshold parameter in the condition of identifying the human body approaching the electronic device, that is, the capacitance change of the sensor before and after the detection moment is compared with the threshold parameter to determine whether the condition that the electronic device is in the target use state is met. At this time, the adjusted second detection parameter is the threshold parameter, that is, the first threshold parameter of the electronic device in the first form is adjusted to the second threshold parameter in the second form.

[0060] For example, the first threshold parameter of the electronic device in the unfolded state is 10pF. Figure 4The detection value of the sensor CH1 shown is 30pf when the electronic device is in the folded form. If the initial detection value of the sensor is 15pF, the capacitance difference between the two is 15pF. If the first threshold parameter is 10pF as an example, 15pF is greater than 10pF. At this time, even if no one is approaching the electronic device, it will trigger the recognition process that someone is approaching the electronic device. Therefore, after the electronic device switches from the unfolded form to the folded form, the first threshold parameter is adjusted from 10pF to 20pF. In this way, the capacitance difference of 15pF is less than 20pF, and the recognition process of identifying a person approaching the electronic device will not be triggered. When someone really approaches the electronic device, the detection value continues to increase, and the capacitance difference with the initial value exceeds 20pF, which will enter the determination process of whether the electronic device is in the target usage state to determine whether it is in the holding state of the electronic device.

[0061] In order to further improve the accuracy of detection of electronic devices, the detection method of an embodiment of the present application also includes: determining a target sensor among multiple sensors; in response to the electronic device switching from a first form to a second form, not adjusting a first detection parameter corresponding to the target sensor, so that when the detection value of the target sensor meets the target condition, both the first form and the second form can be in a triggered state.

[0062] Among them, the target sensor refers to a sensor that will not be triggered due to the overlap of the upper and lower parts of the electronic device when it is folded, and it can be triggered when the electronic device is in a gripping state. Taking the target sensor as a SAR sensor as an example, the SAR sensor includes a detection chip and a section of metal connected to the detection chip. This section of metal can be a section of metal in the metal frame of the electronic device. Objects with a large dielectric constant such as the human body and metal can cause the capacitance value of this section of metal to change. Therefore, it can be determined based on the change in capacitance whether there is a human body, metal or other object close to the electronic device. Figure 4 In the electronic device shown, since both sensor CH1 and sensor CH3 include metal disposed on the electronic device, when the electronic device is in a folded state, the capacitance values ​​of both sensors will change. Therefore, if the relevant parameters of the two sensors are not calibrated, false triggering may occur. When the electronic device is folded, a sensor that does not contain any metal other than the metal of the sensor itself at the contact point of the folded electronic device may be selected as the target sensor, and the sensor may be within the range of the user holding the electronic device in contact with the electronic device regardless of whether the electronic device is in an unfolded state or a folded state. For example, the target sensor may be as follows: Figure 3 The sensor CH7 in the unfolded state is shown, in which the sensor can be within the range of the user's grip, and see Figure 5 , which shows a schematic diagram of the electronic device in a folded state of holding. Figure 5The middle sensor CH7 can be touched by the user in both the right hand and the left hand. In response to the electronic device switching from the first form to the second form, the first detection parameter corresponding to the target sensor is not adjusted to avoid the problem of misidentifying the user's hand as part of the electronic device due to the adjustment of the first detection parameter, thereby failing to accurately identify the holding state. For example, the electronic device is in Figure 5 In the state shown, if the first detection parameter of the sensor CH7 (such as the detection reference value of the sensor) is adjusted, for example, from 20pF to its current detection value of 30pF, the capacitance change of the sensor, that is, the capacitance difference between the current detection value and the reference value, is calculated. The result obtained will be 0, and the process of triggering the recognition of the holding state is not satisfied, and the electronic device will not be detected to be in the holding state. Therefore, the first detection parameter of the sensor CH7 is not adjusted, that is, its detection reference value is kept unchanged at 20pF, and the capacitance difference at this time is 10pF greater than the corresponding threshold value, and it can be identified that the electronic device is in the holding state. Specifically, the detection value of the target sensor meets the target condition including: the detection difference between the current detection value of the target sensor and the first detection parameter within the target time period is an increasing trend. That is, when it is detected that the detection value of the target sensor meets this condition, it can enter the trigger state of judging whether the electronic device is in the holding state. When the target sensor is a SAR sensor, when a hand or other conductive object (such as a human body) approaches or holds the electronic device, the capacitance value detected by the SAR sensor (capacitive proximity sensor) will increase. This is because the human body has certain capacitive characteristics. When the human body is close to the sensor, it is equivalent to increasing the capacitance value between the sensor and the human body. The current detection capacitance value corresponding to this increasing trend in the holding state can reach the preset maximum value.

[0063] Furthermore, in order to accurately identify whether the electronic device is in the target usage state, while trying not to change the existing sensor hardware of the electronic device, that is, without increasing the cost of the device. The detection data of the target sensor can be reused to detect whether the electronic device is in the target usage state when it is in different forms. Specifically, a first detection channel and a second detection channel are generated based on the target sensor, and the first detection channel and the second detection channel share the current detection value of the target sensor. Among them, when the electronic device is in the first form, the first detection channel determines the target usage state of the electronic device based on the current detection value and the first detection threshold, and when the electronic device is in the second form, the second detection channel determines the target usage state of the electronic device based on the current detection value and the second detection threshold.

[0064] For example, when the electronic device is in the first state, it is in the unfolded state of the electronic device. If the target sensor is a SAR sensor, such as Figure 3The sensor shown set at the CH2 / CH7 position has two detection channels, that is, CH2 and CH7 represent the sensors corresponding to the two detection channels respectively. The actual sensor hardware is one, but the two share the current detection value of the sensor, that is, CH7 can be regarded as a virtual shared sensor of the actual sensor CH2, and the current detection value of CH7 is the detection value obtained by the current detection of CH2. Specifically, in the expanded form, the target sensor is less affected by other metals on the frame of the electronic device, and the corresponding first detection threshold can be set to a relatively small value, such as 5pF. If the current detection value is 20pF and the detection reference value is 10pF, the first detection channel can determine the capacitance detection difference between the two based on the current detection value and the first detection threshold. If the capacitance change is 10pF greater than 5pF, it can be determined that the electronic device is in the target usage state in the first form. When the electronic device is in the second form, it is in a folded form. The target sensor may be affected by other metals on the frame due to folding. The corresponding second detection threshold can be set to a value greater than the first detection threshold, such as 12pF. If the current detection value is still 20pF, the detection reference value is 10pF. In this way, the second detection channel can determine the capacitance detection difference between the current detection value and the second detection threshold based on the current detection value and the second detection threshold. That is, the capacitance change is 10pF less than 12pF, and it is determined that the electronic device is not in the target usage state.

[0065] Furthermore, the detection method provided in the embodiment of the present application can also be applied to the control scenario of the electronic device, that is, when the electronic device is detected to be in the target use state, the power of the antenna of the electronic device can be adjusted to reduce the radio frequency energy absorbed by the human body. Taking the target sensor as a SAR sensor and its detection process as an example, if the detection difference between the current detection value of the target sensor and the first detection parameter is an increasing trend, it can be identified that a human body is approaching the electronic device. If the increasing trend is obvious in a continuous period of time, or the detection value of the target sensor has exceeded a certain threshold, it can be determined that the human body is approaching the electronic device. At this time, the power of the antenna module of the electronic device will be adjusted to match the power of the antenna module with the detection difference, such as reducing the transmission power of the antenna, thereby reducing the radio frequency absorbed by the human body. Specifically, different adjustable intervals of the antenna transmission frequency can be set to dynamically adjust the antenna transmission power to meet the process of the user approaching the electronic device, that is, when the user initially walks into the electronic device, the antenna transmission power can be kept unchanged, when the distance between the two is less than a first distance threshold, the antenna transmission power can be controlled at a first power, and when the distance between the two is less than a second distance threshold, the antenna transmission power can be controlled at a second power, wherein the first distance threshold is greater than the second distance threshold, and the first power is greater than the second power.

[0066] Furthermore, when the electronic device is in the target usage state, the antenna module of the electronic device is adjusted to the target power. For example, the target power is the minimum power within the power setting range, that is, when the electronic device is detected to be in the gripping usage state, the transmission power of the antenna module of the electronic device is controlled to be the lowest to reduce the radio frequency absorbed by the human body.

[0067] It should be noted that in the embodiments of the present application, the electronic device is switched from a first form to a second form as an example for explanation. If the first form is the unfolded form of the electronic device, and the second form is the folded form of the electronic device, when the electronic device is switched from the unfolded form to the folded form, a calibration process will be performed during the detection process, that is, the use form of the electronic device is determined based on the calibrated second parameter. At this time, if the folded state is switched to the original unfolded state, the calibration process will also be performed, that is, the second detection parameter calibrated in the folded state is restored to the original parameter, such as calibrating the sensor's detection reference value from 10pF to 15pF when folded, and when switching from folded to unfolded, the reference value of the sensor is switched back from 15pF to 10pF. The specific process may be the reverse process of obtaining the second detection parameter mentioned above, which will not be described in detail here. Furthermore, the electronic device in the folded form exemplified in the embodiments of the present application includes the form in which the electronic device is completely folded, that is, Figure 4 The closed state shown also includes the state from the unfolded state to Figure 4 The incompletely closed state shown in the figure means that there is a certain angle between the first body and the second body of the electronic device. The processing mode in the incompletely closed state is similar to the processing mode of the fully closed state, except that the range of corresponding parameter adjustment may be different, which can be determined according to the actual application scenario.

[0068] Correspondingly, an electronic device is also provided in an embodiment of the present application, the electronic device comprising: a plurality of sensors arranged at different positions on the electronic device, and a processor, see Figure 6 ,exist Figure 6 The case where three sensors are included is shown in FIG. The specific number of sensors can be determined according to the configuration of the electronic device. In addition, the electronic device may also include an antenna module, a network module, etc. Figure 6 In this paper, only three sensors and processors are used as examples. Figure 6 As shown, the electronic device includes:

[0069] Sensors 601, 602 and 603 are arranged at different positions, and a processor 604 is also included. The above-mentioned sensors are used to detect and obtain detection values, and the processor 604 is used to execute the detection method:

[0070] Determining that the electronic device is in a first state, and determining a target usage state of the electronic device based on current detection values ​​of the plurality of sensors and the first detection parameter;

[0071] Determine whether the electronic device switches from the first form to the second form, and determine a target usage state of the electronic device based on current detection values ​​of the multiple sensors and calibrated second detection parameters, wherein the calibrated second detection parameters can eliminate mutual influence of at least some of the multiple sensors on the current detection values ​​after the form of the electronic device is switched, compared with the first detection parameters.

[0072] Optionally, the method further comprises: in response to the electronic device switching from the first form to the second form, obtaining the calibrated second detection parameter;

[0073] Wherein, obtaining the calibrated second detection parameter comprises:

[0074] configuring at least part of the detection values ​​of the corresponding sensor to be initial values ​​to obtain a calibrated second detection parameter;

[0075] or adjusting part of the detection parameters of the corresponding sensors in the first detection parameters to initial values ​​to obtain the calibrated second detection parameters;

[0076] And / or, a first threshold parameter in the first detection parameter used to characterize that the sensor is triggered to detect the usage status of the electronic device is adjusted to a second threshold parameter to obtain a calibrated second detection parameter.

[0077] Optionally, the method further comprises:

[0078] determining a target sensor among a plurality of sensors;

[0079] In response to the electronic device switching from the first form to the second form, the first detection parameter corresponding to the target sensor is not adjusted, so that when the detection value of the target sensor meets the target condition, both the first form and the second form can be in a triggered state.

[0080] Optionally, the method further comprises:

[0081] generating a first detection channel and a second detection channel based on the target sensor, wherein the first detection channel and the second detection channel share a current detection value;

[0082] Wherein, when the electronic device is in a first form, the first detection channel determines the target usage state of the electronic device based on the current detection value and the first detection threshold; when the electronic device is in a second form, the second detection channel determines the target usage state of the electronic device based on the current detection value and the second detection threshold.

[0083] Optionally, the detection value of the target sensor satisfies the target condition including:

[0084] The detection difference between the current detection value of the target sensor and the first detection parameter in the target time period is in an increasing trend.

[0085] Optionally, determining the target usage state of the target electronic device based on the current detection values ​​of the multiple sensors and the first detection parameter includes:

[0086] Determine a detection difference between current detection values ​​of the plurality of sensors and the first detection parameter and a first detection difference of the first detection parameter;

[0087] If the first detection difference is greater than a first threshold value, it is determined that the target device is in the target usage state. It is determined that the electronic device is in the target usage state.

[0088] Optionally, determining the target usage state of the electronic device based on current detection values ​​of the multiple sensors and a calibrated second detection parameter includes:

[0089] Determine a second detection difference between current detection values ​​of the plurality of sensors and a calibrated second detection parameter;

[0090] If the second detection difference is greater than a second threshold value, it is determined that the target device is in a target usage state.

[0091] Optionally, it also includes:

[0092] If the detection difference between the current detection value of the target sensor and the first detection parameter is in an increasing trend, the power of the antenna module of the electronic device is adjusted so that the power of the antenna module matches the detection difference.

[0093] Optionally, it also includes:

[0094] When the electronic device is in the target usage state, the antenna module of the electronic device is adjusted to a target power.

[0095] In another embodiment of the present application, a readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the detection method as described in any one of the above items is implemented.

[0096] It should be noted that the specific implementation of the processor in this embodiment can refer to the corresponding content in the previous text and will not be described in detail here.

[0097] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.

[0098] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0099] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

[0100] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be 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 the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A detection method, applied to an electronic device, wherein the electronic device comprises a plurality of sensors arranged at different positions, the detection method comprising: Determining that the electronic device is in a first state, and determining a target usage state of the electronic device based on current detection values ​​of the multiple sensors and a first detection parameter; Determine whether the electronic device switches from the first form to the second form, and determine the target usage state of the electronic device based on current detection values ​​of the multiple sensors and calibrated second detection parameters, wherein the calibrated second detection parameters can eliminate the mutual influence of at least some of the multiple sensors on the current detection values ​​after the form of the electronic device is switched, compared with the first detection parameters.

2. The detection method according to claim 1, further comprising: In response to the electronic device switching from the first state to the second state, obtaining the calibrated second detection parameter; Wherein, obtaining the calibrated second detection parameter comprises: configuring at least part of the detection values ​​of the corresponding sensor to be initial values ​​to obtain the calibrated second detection parameter; or adjusting part of the detection parameters of the corresponding sensors in the first detection parameters to initial values ​​to obtain the calibrated second detection parameters; And / or, a first threshold parameter in the first detection parameter used to characterize that the sensor is triggered to detect the usage status of the electronic device is adjusted to a second threshold parameter to obtain the calibrated second detection parameter.

3. The detection method according to claim 2, further comprising: determining a target sensor among the plurality of sensors; In response to the electronic device switching from the first form to the second form, the first detection parameter corresponding to the target sensor is not adjusted, so that when the detection value of the target sensor meets the target condition, both the first form and the second form can be in a triggered state.

4. The detection method according to claim 3, further comprising: generating a first detection channel and a second detection channel based on the target sensor, wherein the first detection channel and the second detection channel share a current detection value; Wherein, when the electronic device is in a first form, the first detection channel determines the target usage state of the electronic device based on the current detection value and a first detection threshold; when the electronic device is in a second form, the second detection channel determines the target usage state of the electronic device based on the current detection value and the second detection threshold.

5. The detection method according to claim 3, wherein the detection value of the target sensor satisfies the target condition comprises: The detection difference between the current detection value of the target sensor and the first detection parameter in the target time period is in an increasing trend.

6. The detection method according to claim 1, wherein determining the target usage state of the electronic device based on the current detection values ​​of the plurality of sensors and the first detection parameter comprises: Determine a first detection difference between current detection values ​​of the plurality of sensors and the first detection parameter; If the first detection difference is greater than a first threshold value, it is determined that the electronic device is in the target usage state.

7. The detection method according to claim 1, wherein determining the target usage state of the electronic device based on the current detection values ​​of the plurality of sensors and the calibrated second detection parameter comprises: Determine a second detection difference between current detection values ​​of the plurality of sensors and a calibrated second detection parameter; If the second detection difference is greater than a second threshold value, it is determined that the target device is in a target usage state.

8. The detection method according to claim 5, further comprising: If the detection difference between the current detection value of the target sensor and the first detection parameter is in an increasing trend, the power of the antenna module of the electronic device is adjusted so that the power of the antenna module matches the detection difference.

9. The detection method according to claim 8, further comprising When the electronic device is in the target usage state, the antenna module of the electronic device is adjusted to a target power.

10. An electronic device comprising: A plurality of sensors disposed at different locations on the electronic device, and a processor; The processor is used to execute the detection method according to any one of claims 1 to 9.