Proximity detection circuit, proximity detection method, proximity detection device and electronic equipment

By setting the detector and proximity sensor on the folding screen of the electronic device, and using the control module to control the on-off of the detection branch and the parallel connection of the detector according to the folding angle, the problem that a single sensor cannot accurately detect the state of the folding screen is solved, and the problem of the single sensor being unable to accurately detect the state of the folding screen is realized. High-precision detection resource utilization.

CN113740916BActive Publication Date: 2025-02-14VIVO MOBILE COMM CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111025079.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-02
Publication Date
2025-02-14
Estimated Expiration
2041-09-02

AI Technical Summary

Technical Problem

In the prior art, a single sensor cannot accurately detect the expansion and folding state of the folding screen, while multiple sensors independently detect the problem of wasting detection resources.

Method used

By setting a detector and a proximity sensor on the first body and the second body of the electronic device, and using a control module to control the on-off of the detection branch and the parallel connection of the detector according to the folding angle, a single proximity sensor can simultaneously utilize multiple detectors. Perform testing.

Benefits of technology

The detection accuracy is improved, the detection resources are fully utilized, and the normal detection on both sides of the screen is ensured when the folding screen is expanded.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113740916B_ABST
    Figure CN113740916B_ABST
Patent Text Reader

Abstract

The present application discloses a proximity detection circuit, a proximity detection method, a proximity detection device and an electronic device, which belong to the field of detection technology. The circuit includes: a first switch; a first detection branch and a second detection branch, a first proximity sensor is connected to the first detection body through the first detection branch, and the second proximity sensor is connected to the second detection body through the second detection branch; a control module, and the control module is respectively connected to the first switch, the first detection branch, the second detection branch, the first proximity sensor and the second proximity sensor. In an embodiment of the present application, a single proximity sensor can use the first detection body and the second detection body for detection at the same time to improve the detection accuracy and realize the full utilization of detection resources. The two proximity sensors can also independently use one of the first detection body and the second detection body for detection to ensure normal detection on both sides of the screen when the folding screen is unfolded.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of detection technology, and specifically relates to a proximity detection circuit, a proximity detection method, a proximity detection device and an electronic device. Background Art

[0002] With the iteration and change of electronic device design, foldable screens are gradually being used in electronic device design. Electronic devices usually use proximity sensors to achieve proximity detection. However, for electronic devices with foldable screens, the detection environment will change when the foldable screen is unfolded and folded. A single sensor cannot achieve accurate detection, and multiple sensors independently detect and waste detection resources. Summary of the invention

[0003] The purpose of the embodiments of the present application is to provide a proximity detection circuit, a proximity detection method, a proximity detection device and an electronic device, which can solve the problem in the prior art that a single sensor cannot achieve accurate detection, while independent detection by multiple sensors wastes detection resources.

[0004] In a first aspect, an embodiment of the present application provides a proximity detection circuit, which is applied to an electronic device, wherein the electronic device includes a first body and a second body that can rotate relatively, a first detection body and a first proximity sensor are provided on the first body, and a second detection body and a second proximity sensor are provided on the second body, wherein the circuit includes:

[0005] A first switch, wherein the first detection body and the second detection body are connected via the first switch;

[0006] a first detection branch and a second detection branch, wherein the first proximity sensor is connected to the first detection object through the first detection branch, and the second proximity sensor is connected to the second detection object through the second detection branch;

[0007] A control module, wherein the control module is respectively connected to the first switch, the first detection branch, the second detection branch, the first proximity sensor, and the second proximity sensor, and the controller controls the on and off of the first switch, the first detection branch, and the second detection branch according to the folding angle formed by the first body and the second body.

[0008] Optionally, the control module includes:

[0009] An angle sensor, used to detect a folding angle formed by the first body and the second body;

[0010] A comparator, wherein a first input terminal of the comparator is connected to the angle sensor, and an output terminal of the comparator is connected to the first switch.

[0011] Optionally, the first detection branch includes a first detection switch, the second detection branch includes a second detection switch, and the control module is connected to the first detection switch and the second detection switch respectively.

[0012] Optionally, the first switch, the first detection switch and the second detection switch are all MOS tubes.

[0013] Optionally, the first detection branch further includes a first capacitor, a first inductor and a first resistor, a first end of the first detection switch is connected to the first detection body, a second end of the first detection switch is connected to the first end of the first capacitor and the first end of the first inductor, a second end of the first capacitor is grounded, a second end of the first inductor is connected to the first end of the first resistor, and a second end of the first resistor is connected to the first proximity sensor;

[0014] The second detection branch also includes a second capacitor, a second inductor and a second resistor. The first end of the second detection switch is connected to the second detection body, the second end of the second detection switch is connected to the first end of the second capacitor and the first end of the second inductor, the second end of the second capacitor is grounded, the second end of the second inductor is connected to the first end of the second resistor, and the second end of the second resistor is connected to the second proximity sensor.

[0015] Optionally, the first detection body is a metal frame of the first body, and the second detection body is a metal frame of the second body.

[0016] In a second aspect, an embodiment of the present application provides an electronic device, the electronic device comprising a first body and a second body that can rotate relatively, the first body being provided with a first detection body and a first proximity sensor, the second body being provided with a second detection body and a second proximity sensor, the electronic device further comprising the proximity detection circuit as described in the first aspect. .

[0017] In a third aspect, an embodiment of the present application provides a proximity detection method, which is applied to the electronic device as described in the second aspect, and the method includes:

[0018] Detecting a folding angle of the folding screen;

[0019] When the folding angle is less than a preset angle threshold, the first switch is controlled to be connected, and the first detection branch is controlled to be connected in a first time period, and the second detection branch is controlled to be connected in a second time period, wherein when the first detection branch is connected, the first proximity sensor performs detection through the first detection branch, the first detection body and the second detection body, and when the second detection branch is connected, the second proximity sensor performs detection through the second detection branch, the first detection body and the second detection body.

[0020] Optionally, after detecting the folding angle of the folding screen, the method further includes:

[0021] When the folding angle is greater than a preset angle threshold, the first switch is controlled to be disconnected, and the first detection branch and the second detection branch are controlled to be connected, the first proximity sensor performs detection through the first detection branch and the first detection body, and the second proximity sensor performs detection through the second detection branch and the second detection body.

[0022] In a fourth aspect, an embodiment of the present application provides a proximity detection device, the device comprising:

[0023] An angle detection module, used to detect the folding angle of the folding screen;

[0024] The first proximity detection module is used to control the first switch to be connected when the folding angle is less than a preset angle threshold, and to control the first detection branch to be connected in a first time period, and to control the second detection branch to be connected in a second time period, wherein when the first detection branch is connected, the first proximity sensor performs detection through the first detection branch, the first detection body and the second detection body, and when the second detection branch is connected, the second proximity sensor performs detection through the second detection branch, the first detection body and the second detection body.

[0025] Optionally, the device further comprises:

[0026] The second proximity detection module is used to control the first switch to be disconnected and the first detection branch and the second detection branch to be connected when the folding angle is greater than a preset angle threshold, the first proximity sensor performs detection through the first detection branch and the first detection body, and the second proximity sensor performs detection through the second detection branch and the second detection body.

[0027] In a fifth aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the method described in the third aspect.

[0028] In a sixth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method described in the third aspect are implemented.

[0029] In a seventh aspect, an embodiment of the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the method described in the third aspect.

[0030] In an embodiment of the present application, the on / off of the first detection branch and the second detection branch and whether the first detection body and the second detection body are connected in parallel are controlled according to the folding angle between the first body and the second body, so that a single proximity sensor can use the first detection body and the second detection body for detection at the same time to improve the detection accuracy and make full use of the detection resources. The two proximity sensors can also independently use one of the first detection body and the second detection body for detection to ensure normal detection on both sides of the screen when the folding screen is unfolded. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] Figure 1 One of the structural schematic diagrams of the proximity detection circuit provided in the embodiment of the present application;

[0032] Figure 2 A second structural diagram of a proximity detection circuit provided in an embodiment of the present application;

[0033] Figure 3 A schematic diagram of a folding screen in an unfolded state provided in an embodiment of the present application;

[0034] Figure 4 A schematic diagram of a folding screen in a folded state provided in an embodiment of the present application;

[0035] Figure 5 A schematic diagram of a flow chart of a proximity detection method provided in an embodiment of the present application;

[0036] Figure 6 A control timing diagram provided for an embodiment of the present application;

[0037] Figure 7 A schematic diagram of a flow chart of another proximity detection method provided in an embodiment of the present application;

[0038] Figure 8A schematic diagram of the structure of a proximity detection device provided in an embodiment of the present application;

[0039] Fig. 9 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application;

[0040] Fig.10 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application. DETAILED DESCRIPTION

[0041] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.

[0042] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.

[0043] The proximity detection circuit, proximity detection method, proximity detection device and electronic device provided in the embodiments of the present application are described in detail below with reference to the accompanying drawings through specific embodiments and their application scenarios.

[0044] Please refer to Figure 1 and Figure 2 , Figure 1 This is one of the structural schematic diagrams of the proximity detection circuit provided in the embodiment of the present application, Figure 2The second structural schematic diagram of the proximity detection circuit provided in the embodiment of the present application. The first aspect of the embodiment of the present application provides a proximity detection circuit, which is applied to an electronic device, and the electronic device includes a first body and a second body that can rotate relative to each other, the first body is provided with a first detection body 11 and a first proximity sensor 12, and the second body is provided with a second detection body 21 and a second proximity sensor 22; the proximity detection circuit includes a first switch 30, a first detection branch 13, a second detection branch 23 and a control module, wherein the first detection body 11 and the second detection body 21 are connected through the first switch 30, when the first switch 30 is disconnected, the first detection body 11 and the second detection body 21 are disconnected, when the first switch 30 is connected, the first detection body 11 and the second detection body 21 are electrically connected; the first proximity sensor 12 is connected to the second detection body 21 through the first detection branch 13. A detection body 11 is connected, so that the first proximity sensor 12 can use the first detection body 11 to realize proximity detection, and the second proximity sensor 22 is connected to the second detection body 21 through the second detection branch 23, so that the second proximity sensor 22 can use the second detection body 21 to realize proximity detection; the control module is respectively connected to the first switch 30, the first detection branch 13, the second detection branch 23, the first proximity sensor 12 and the second proximity sensor 22, and the control module can control the on and off of the first switch 30, the first detection branch 13 and the second detection branch 23 according to the folding angle formed by the first body and the second body. The control module can also obtain the data detected by the first proximity sensor 12 and the second proximity sensor 22, so as to process the obtained data and then realize proximity judgment.

[0045] Exemplarily, in the embodiment of the present application, the control module obtains the folding angle formed by the first body and the second body, and compares it with a preset angle threshold. When the folding angle formed by the first body and the second body is greater than the preset angle threshold, the control module controls the first switch 30 to disconnect, that is, the first detection body 11 and the second detection body 21 are disconnected. At this time, the first proximity sensor 12 is only connected to the first detection body 11 through the first detection branch 13, and performs proximity detection alone, while the second proximity sensor 22 is only connected to the second detection body 21 through the second detection branch 23, and performs proximity detection alone; and at the folding angle formed by the first body and the second body, When the angle is less than the preset angle threshold, the control module controls the first switch 30 to be connected. At this time, the first detection body 11 and the second detection body 21 are connected, which is equivalent to the two being connected in parallel. The first proximity sensor 12 can be connected to the first detection body 11 and the second detection body 21 through the first detection branch 13 at the same time, and the second proximity sensor 22 can also be connected to the first detection body 11 and the second detection body 21 through the second detection branch 23 at the same time, thereby allowing the first proximity sensor 12 and the second proximity sensor 22 to connect more detection bodies only through the original detection branch, without losing the single channel detection performance, and improving the human body proximity detection performance. In addition, the control module can also control the on and off of the first detection branch 13 and the second detection branch 23 according to the folding angle formed by the first body and the second body, so as to realize the time-sharing operation of the first proximity sensor 12 and the second proximity sensor 22, and the two do not interfere with each other.

[0046] Therefore, in the embodiment of the present application, by controlling the on and off of the first detection branch and the second detection branch and whether the first detection body and the second detection body are connected in parallel according to the folding angle between the first body and the second body, a single proximity sensor can use the first detection body and the second detection body for detection at the same time to improve the detection accuracy and make full use of the detection resources. The two proximity sensors can also independently use one of the first detection body and the second detection body for detection to ensure normal detection on both sides of the screen when the folding screen is unfolded.

[0047] In some embodiments of the present application, the first proximity sensor 12 and the second proximity sensor 22 are SAR (Specific Absorption Rate) sensors. The SAR sensor is a smart capacitive proximity sensor. When a user uses an electronic device equipped with a SAR sensor and a human body approaches, the proximity will be reported.

[0048] Taking the capacitive proximity sensor as an example, when the folding angle formed by the first body and the second body is less than the preset angle threshold, the control module controls the first switch 30 to be connected. At this time, the first detection body 11 and the second detection body 21 are connected, which is equivalent to the two being connected in parallel. The first proximity sensor 12 can be connected to the first detection body 11 and the second detection body 21 at the same time through the first detection branch 13, and the second proximity sensor 22 can also be connected to the first detection body 11 and the second detection body 21 at the same time through the second detection branch 23. When any one of the first proximity sensor 12 and the second proximity sensor 22 performs detection, an oscillation loop is formed between the first detection body 11 and the earth. When the human body approaches the first detection body 11, the capacitance of the loop changes, thereby realizing proximity detection. The same is true for the second detection body 21. At this time, it is equivalent to the first detection body 11 and the second detection body 21 forming a parallel relationship after being connected through the first switch 30, so that without losing the detection performance of a single channel, the first detection body and the second detection body are used for detection at the same time to improve the detection accuracy, realize full utilization of detection resources, and improve the human proximity detection performance.

[0049] like Figure 1 and Figure 2 As shown, in some embodiments of the present application, optionally, the control module includes a controller 43, an angle sensor 42 and a comparator 41, wherein the angle sensor 42 is used to detect the folding angle of the folding screen, and the folding angle is also the angle between the first body and the second body. The folding angle detected by the angle sensor 42 will be transmitted to the controller 43 in real time, and the angle sensor 42 is connected to the first input end of the comparator 41, the second input end of the comparator 41 can be configured as a preset angle threshold, and the output end of the comparator 41 is connected to the first switch 30. Thus, the comparator 41 compares the folding angle detected by the angle sensor 42 with the preset angle threshold, and outputs a control signal to control the on and off of the first switch 30.

[0050] In some other embodiments of the present application, the first detection branch 13 includes a first detection switch 131, and the second detection branch 23 includes a second detection switch 231. The control module is connected to the first detection switch and the second detection switch, respectively, that is, the controller 43 is connected to the first detection switch 131 and the second detection switch 231, respectively, so as to control the on-off of the first detection switch 131 and the second detection switch 231 to control the on-off of the first detection branch 13 and the second detection branch 23, and then control whether the first proximity sensor 12 and the second proximity sensor 22 can perform detection normally, thereby providing a circuit basis and control logic for the time-sharing operation of the first proximity sensor 12 and the second proximity sensor 22 to ensure that the two do not interfere with each other.

[0051] In some embodiments of the present application, the first switch 30, the first detection switch 131 and the second detection switch 231 can all adopt MOS tubes, which are metal-oxide semiconductor field effect transistors (metal-oxide semiconductor FET, MOS-FET), which can operate under very small current and very low voltage conditions, and use pulse width modulation (Pulse Width Modulation, PWM) to control their opening and closing, thereby reducing power consumption and occupying volume.

[0052] The following takes the example that both the first detection switch 131 and the second detection switch 231 are MOS tubes to introduce the connection relationship of the various parts of the first detection branch 13 and the second detection branch 23.

[0053] like Figure 2 As shown, in some embodiments of the present application, the first detection branch 13 also includes a first capacitor 132, a first inductor 133 and a first resistor 135, the first end of the first detection switch 131 is connected to the first detection body 11, the second end of the first detection switch 131 is connected to the first end of the first capacitor 132 and the first end of the first inductor 133, the third end of the first detection switch 131 is connected to the controller 50, the second end of the first capacitor 132 is grounded, the second end of the first inductor 133 is connected to the first end of the first resistor 135, and the second end of the first resistor 135 is connected to the first proximity sensor 12. Among them, the first inductor 133 serves as an isolation inductor of the detection path, and the first resistor 135 serves as a current limiting resistor of the detection path. When the human body approaches or moves away from the first detection body 11, the capacitance value of the first capacitor 132 will change, thereby realizing proximity detection. Among them, exemplarily, the first end, the second end, and the third end of the first detection switch 131 are the source, drain, and gate of the MOS tube, respectively.

[0054] like Figure 2As shown, in some other embodiments of the present application, the second detection branch 23 also includes a second capacitor 232, a second inductor 233 and a second resistor 235, the first end of the second detection switch 231 is connected to the second detection body 21, the second end of the second detection switch 231 is connected to the first end of the second capacitor 232 and the first end of the second inductor 233, the third end of the second detection switch 231 is connected to the controller 50, the second end of the second capacitor 232 is grounded, the second end of the second inductor 233 is connected to the first end of the second resistor 235, and the second end of the second resistor 235 is connected to the second proximity sensor 22. Wherein, the second inductor 233 serves as an isolation inductor of the detection path, and the second resistor 235 serves as a current limiting resistor of the detection path. When the human body approaches or moves away from the second detection body 21, the capacitance value of the second capacitor 232 will change, thereby realizing proximity detection. Wherein, exemplarily, the first end, the second end, and the third end of the second detection switch 231 are the source, the drain, and the gate of the MOS tube, respectively.

[0055] Optionally, the first detection branch 13 also includes a first analog signal line 134, and the second end of the first inductor 133 is connected to the first end of the first resistor 135 through the first analog signal line 134; the second detection branch 23 also includes a second analog signal line 234, and the second end of the second inductor 233 is connected to the first end of the second resistor 235 through the second analog signal line 234.

[0056] In some other embodiments of the present application, the first body and the second body are metal frames of the electronic device, the first detection body 11 is composed of at least part of the metal frame of the first body, and the second detection body 21 is composed of at least part of the metal frame of the second body. For example, the first detection body 11 can be composed of a metal frame at the outer peripheral bending angle of the first body, and the two ends of the metal frame at the bending angle are separated from other parts of the frame. Similarly, the second detection body 21 can be composed of a metal frame at the outer peripheral bending angle of the second body, and the two ends of the metal frame at the bending angle are separated from other parts of the frame. Optionally, the first detection body 11 and the second detection body 21 are located at the same corner of the electronic device when the folding screen is in a folded state.

[0057] In the embodiment of the present application, optionally, a third resistor 31 is further provided on the connection path between the first detection body 11 and the second detection body 21, that is, the first switch 30 and the third resistor 31 are sequentially connected between the first detection body 11 and the second detection body 21, and the third resistor 31 plays the role of a protective resistor. Specifically, taking the first switch 30 as an example of a MOS tube, the gate of the first switch 30 is connected to the output end of the comparator 41, the source of the first switch 30 is respectively connected to the source of the first detection body 11 and the first detection switch 131, the drain of the first switch 30 is connected to the first end of the third resistor 31, and the second end of the third resistor 31 is respectively connected to the drain of the second detection body 12 and the second detection switch 231.

[0058] Please refer to Figure 3 and Figure 4 , Figure 3 A schematic diagram of a folding screen in an unfolded state provided in an embodiment of the present application, Figure 4 A schematic diagram of a folding screen in a folded state provided in an embodiment of the present application. In the embodiment of the present application, the first body and the second body are used to support the folding screen of the electronic device, that is, the relative rotation between the first body and the second body can drive the folding screen of the electronic device to unfold or fold. Among them, the angle sensor 42 detects the folding angle formed by the first body and the second body. When the folding angle is greater than the preset angle threshold, Figure 3 As shown, the first switch 30 is controlled to be disconnected, and the first detection branch 13 and the second detection branch 23 are controlled to be connected, the first proximity sensor 12 is detected through the first detection branch 13 and the first detection body 11, and the second proximity sensor 22 is detected through the second detection branch 23 and the second detection body 21. At this time, the proximity detection circuit can simultaneously detect whether the human body is close to the electronic device through the first proximity sensor 12 and the second proximity sensor 22; when the folding angle is less than the preset angle threshold, as Figure 4 As shown, the first switch 30 is controlled to be connected, and the first detection branch 13 and the second detection branch 23 are controlled to be connected in time-sharing manner, wherein when the first detection branch 13 is connected, the first proximity sensor 12 performs detection through the first detection branch 13, the first detection body 11 and the second detection body 21, and when the second detection branch 23 is connected, the second proximity sensor 22 performs detection through the second detection branch 23, the first detection body 11 and the second detection body 21. At this time, the proximity detection circuit can detect whether the human body is close to the electronic device through the first proximity sensor 12 and the second proximity sensor 22 in time-sharing manner, and since the first detection body 11 and the second detection body 21 are connected in parallel, the distance detection effect in a single direction can be doubled, and through the form of time-sharing multiplexing, without losing the detection performance of a single channel, the dynamic controllability of the proximity sensor detection mechanism configuration is achieved, thereby improving the human body proximity detection performance.

[0059] In an embodiment of the present application, the on / off of the first detection branch and the second detection branch and whether the first detection body and the second detection body are connected in parallel are controlled according to the folding angle between the first body and the second body, so that a single proximity sensor can use the first detection body and the second detection body for detection at the same time to improve the detection accuracy and make full use of the detection resources. The two proximity sensors can also independently use one of the first detection body and the second detection body for detection to ensure normal detection on both sides of the screen when the folding screen is unfolded.

[0060] The second aspect embodiment of the present application also provides an electronic device, which includes a first body and a second body that can rotate relative to each other, a first detection body and a first proximity sensor are provided on the first body, and a second detection body and a second proximity sensor are provided on the second body. The electronic device also includes a proximity detection circuit as in any of the above embodiments.

[0061] The electronic device in the embodiment of the present application has the structure of the proximity detection circuit in the above embodiment and can achieve the same technical effect. To avoid repetition, it will not be described here.

[0062] Please refer to Figure 5 , Figure 5 A schematic diagram of a flow chart of a proximity detection method provided in an embodiment of the present application. Figure 5 As shown, the third aspect of the present application further provides a proximity detection method, which is applied to the electronic device in the second aspect of the present application, and the method includes the following steps:

[0063] Step 501: Detecting the folding angle of the folding screen;

[0064] Step 502: When the folding angle is less than a preset angle threshold, the first switch is controlled to be connected, and the first detection branch is controlled to be connected in a first time period, and the second detection branch is controlled to be connected in a second time period, wherein, when the first detection branch is connected, the first proximity sensor performs detection through the first detection branch, the first detection body and the second detection body, and when the second detection branch is connected, the second proximity sensor performs detection through the second detection branch, the first detection body and the second detection body.

[0065] In an embodiment of the present application, the folding angle between the first body and the second body of the electronic device can be detected, specifically by using an angle sensor, and the detected folding angle can be transmitted to a comparator and a controller in real time. The comparator outputs a comparison result based on the current folding angle and a preset angle threshold, thereby outputting a control signal to control the on and off of the first switch.

[0066] Specifically, when the folding angle formed between the first body and the second body is less than a preset angle threshold, the first switch is controlled to be connected, and the first detection branch is controlled to be connected in a first time period, and the second detection branch is controlled to be connected in a second time period, the first time period and the second time period are different, and the two are alternating with each other, wherein, when the first detection branch is connected, the first proximity sensor is connected to the first detection body and the second detection body through the first detection branch at the same time, so that the first detection body and the second detection body are used for detection at the same time, and when the second detection branch is connected, the second proximity sensor is connected to the first detection body and the second detection body through the second detection branch at the same time, so that the first detection body and the second detection body are used for detection at the same time, at this time, the proximity detection circuit can detect whether the human body is close to the electronic device through the first proximity sensor and the second proximity sensor in time sharing, and because the first detection body and the second detection body are short-circuited in parallel, the distance detection effect in a single direction can be doubled, and through the form of time-sharing multiplexing, without losing the detection performance of a single channel, the dynamic controllability of the proximity sensor detection mechanism configuration is realized, thereby improving the human body proximity detection performance.

[0067] In some other embodiments of the present application, after detecting the folding angle of the folding screen, the method further includes:

[0068] When the folding angle is greater than a preset angle threshold, the first switch is controlled to be disconnected, and the first detection branch and the second detection branch are controlled to be connected, the first proximity sensor performs detection through the first detection branch and the first detection body, and the second proximity sensor performs detection through the second detection branch and the second detection body.

[0069] That is to say, when the folding angle between the first body and the second body is greater than the preset angle threshold, the first switch is controlled to be disconnected, and the first detection branch and the second detection branch are controlled to be connected. At this time, the first proximity sensor is connected only to the first detection body through the first detection branch to perform proximity detection, and the second proximity sensor is connected to the second detection body through the second detection branch to perform proximity detection. At this time, the proximity detection circuit can simultaneously detect whether the human body is close to the electronic device through the first proximity sensor and the second proximity sensor to ensure normal detection on both sides of the screen when the folding screen is unfolded.

[0070] Please refer to Figure 6 , Figure 6 This is a control timing diagram provided by the embodiment of the present application. Figure 6As shown, when the folding angle between the first body and the second body is greater than the preset angle threshold, that is, after the folding screen is unfolded, the comparator outputs a low level to control the first switch to be disconnected. At this time, the first detection body and the second detection body are disconnected. The controller outputs a high level to the first detection switch and the second detection switch respectively according to the low level signal output by the comparator to control the first detection switch and the second detection switch to be closed. At this time, the first proximity sensor and the second proximity sensor work independently at the same time to perform proximity detection; and when the folding angle between the first body and the second body is less than the preset angle threshold, also after the folding screen is folded, the comparator outputs a high level to control the first switch to be connected. At this time, the first detection body and the second detection body are connected. The controller controls the first detection switch and the second detection switch respectively in a PWM manner according to the high level output by the comparator. Time-sharing connection, specifically, the controller outputs a low level to the first detection switch and a high level to the second detection switch in the first control period, so as to control the first detection switch to be disconnected and the second detection switch to be connected. At this time, the first proximity sensor cannot detect, while the second proximity sensor can use the first detection body and the second detection body for detection; then, the controller outputs a high level to the first detection switch and a low level to the second detection switch in the second control period, so as to control the first detection switch to be connected and the second detection switch to be disconnected. At this time, the second proximity sensor cannot detect, while the first proximity sensor can use the first detection body and the second detection body for detection; and so on and so forth, so as to realize the time-sharing operation of the first proximity sensor and the second proximity sensor, and the first detection body and the second detection body are multiplexed by the first proximity sensor and the second proximity sensor in time-sharing.

[0071] Please refer to Figure 7 , Figure 7 A schematic diagram of another approach detection method provided in an embodiment of the present application. Figure 7 As shown, the proximity detection method includes the following steps:

[0072] Step 201: System initialization configuration;

[0073] Step 202: Detect the folding angle of the folding screen and determine whether the folding angle satisfies the trigger threshold θ. If yes, proceed to step 203; if not, jump to step 216;

[0074] Step 203: Control the first switch to close, so that the first detection body is connected to the second detection body;

[0075] Step 204: the first detection switch of the first detection branch is closed, so that the first detection branch is connected;

[0076] Step 205: the second detection switch of the second detection branch is turned off, so that the second detection branch is disconnected;

[0077] Step 206: The first detection branch completes a calibration, and the calibration can reduce the error introduced by the detection channel itself;

[0078] Step 207: the first proximity sensor completes one sampling cycle of the external capacitance change, that is, the first proximity sensor completes one proximity detection through the first detection branch, the first detection body and the second detection body;

[0079] Step 208: The controller obtains sampling data of the first proximity sensor;

[0080] Step 209: exit the first proximity sensor sampling data sampling mode;

[0081] Step 210: the first detection switch in the first detection branch is turned off, so that the first detection branch is disconnected;

[0082] Step 211: the second detection switch in the second detection branch is closed, so that the second detection branch is connected;

[0083] Step 212: The second detection branch completes a calibration, and the calibration can reduce the error introduced by the detection channel itself;

[0084] Step 213: the second proximity sensor completes one sampling cycle of the external capacitance change, that is, the second proximity sensor completes one proximity detection through the second detection branch, the first detection body and the second detection body;

[0085] Step 214: The controller obtains sampling data of the second proximity sensor;

[0086] Step 215: exit the second proximity sensor data sampling mode, and jump to step 221;

[0087] Step 216: Control the first switch to be turned off, so that the first detection body and the second detection body are disconnected;

[0088] Step 217: the first detection switch of the first detection branch is closed, so that the first detection branch is connected;

[0089] Step 218: the second detection switch in the second detection branch is closed, so that the second detection branch is connected;

[0090] Step 219: Entering synchronous sampling mode;

[0091] Step 220: the first proximity sensor and the second proximity sensor complete data collection, that is, the first proximity sensor completes a proximity detection through the first detection branch and the first detection object, and the second proximity sensor completes a proximity detection through the second detection branch and the second detection object;

[0092] Step 221: Do you want to close the job? If yes, then end; if no, then jump back to step 202.

[0093] Among them, the folding angle of the folding screen corresponds to the folding angle between the first body and the second body.

[0094] In an embodiment of the present application, by controlling the on and off of the first detection branch and the second detection branch and whether the first detection body and the second detection body are connected in parallel according to the folding angle of the folding screen, a single proximity sensor can use the first detection body and the second detection body for detection at the same time to improve the detection accuracy and fully utilize the detection resources. The two proximity sensors can also independently use one of the first detection body and the second detection body for detection to ensure normal detection on both sides of the screen when the folding screen is unfolded.

[0095] It should be noted that the proximity detection method provided in the embodiment of the present application can be executed by a proximity detection device or a control module in the proximity detection device for executing the proximity detection method. In the embodiment of the present application, the proximity detection device provided in the embodiment of the present application is described by taking the proximity detection device executing the proximity detection method as an example.

[0096] Please refer to Figure 8 , Figure 8 Schematic diagram of a proximity detection device provided in an embodiment of the present application. Figure 8 As shown, the fourth aspect of the present application also provides a proximity detection device, the device 800 includes:

[0097] Angle detection module 801, used to detect the folding angle of the folding screen;

[0098] The first proximity detection module 802 is used to control the connection of the first switch when the folding angle is less than a preset angle threshold, and to control the connection of the first detection branch in a first time period, and to control the connection of the second detection branch in a second time period, wherein when the first detection branch is connected, the first proximity sensor performs detection through the first detection branch, the first detection body and the second detection body, and when the second detection branch is connected, the second proximity sensor performs detection through the second detection branch, the first detection body and the second detection body.

[0099] Optionally, the device further comprises:

[0100] The second proximity detection module is used to control the first switch to be disconnected and the first detection branch and the second detection branch to be connected when the folding angle is greater than a preset angle threshold, the first proximity sensor performs detection through the first detection branch and the first detection body, and the second proximity sensor performs detection through the second detection branch and the second detection body.

[0101] In an embodiment of the present application, by controlling the on and off of the first detection branch and the second detection branch and whether the first detection body and the second detection body are connected in parallel according to the folding angle of the folding screen, a single proximity sensor can use the first detection body and the second detection body for detection at the same time to improve the detection accuracy and fully utilize the detection resources. The two proximity sensors can also independently use one of the first detection body and the second detection body for detection to ensure normal detection on both sides of the screen when the folding screen is unfolded.

[0102] The proximity detection device in the embodiment of the present application can be a device, or a component, integrated circuit, or chip in a terminal. The device can be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc., and the non-mobile electronic device can be a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.

[0103] The proximity detection device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.

[0104] The proximity detection device provided in the embodiment of the present application can achieve Figures 5 to 7 To avoid repetition, the various processes implemented by the method embodiment are not described here.

[0105] Optional, such as Fig. 9 As shown, an embodiment of the present application also provides an electronic device 900, including a processor 901, a memory 902, and a program or instruction stored in the memory 902 and executable on the processor 901. When the program or instruction is executed by the processor 901, each process of the above-mentioned proximity detection method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0106] It should be noted that the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.

[0107] Fig.10 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.

[0108] The electronic device 1000 includes but is not limited to: a radio frequency unit 1001, a network module 1002, an audio output unit 1003, an input unit 1004, a sensor 1005, a display unit 1006, a user input unit 1007, an interface unit 1008, a memory 1009, and a processor 1010 and other components.

[0109] Those skilled in the art will appreciate that the electronic device 1000 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 1010 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Fig.10 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.

[0110] Wherein, the sensor 1005 is used to detect the folding angle of the folding screen;

[0111] Processor 1010 is used to control the first switch to be connected when the folding angle is less than a preset angle threshold, and to control the first detection branch to be connected in a first time period, and to control the second detection branch to be connected in a second time period, wherein when the first detection branch is connected, the first proximity sensor performs detection through the first detection branch, the first detection body and the second detection body, and when the second detection branch is connected, the second proximity sensor performs detection through the second detection branch, the first detection body and the second detection body.

[0112] In an embodiment of the present application, by controlling the on and off of the first detection branch and the second detection branch and whether the first detection body and the second detection body are connected in parallel according to the folding angle of the folding screen, a single proximity sensor can use the first detection body and the second detection body for detection at the same time to improve the detection accuracy and fully utilize the detection resources. The two proximity sensors can also independently use one of the first detection body and the second detection body for detection to ensure normal detection on both sides of the screen when the folding screen is unfolded.

[0113] Optionally, the processor 1010 is also used to control the first switch to be disconnected and control the first detection branch and the second detection branch to be connected when the folding angle is greater than a preset angle threshold, the first proximity sensor performs detection through the first detection branch and the first detection body, and the second proximity sensor performs detection through the second detection branch and the second detection body.

[0114] It should be understood that in the embodiment of the present application, the input unit 1004 may include a graphics processor (Graphics Processing Unit, GPU) 10041 and a microphone 10042, and the graphics processor 10041 processes the image data of the static picture or video obtained by the image capture device (such as a camera) in the video capture mode or the image capture mode. The display unit 1006 may include a display panel 10061, and the display panel 10061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 1007 includes a touch panel 10071 and other input devices 10072. The touch panel 10071 is also called a touch screen. The touch panel 10071 may include two parts: a touch detection device and a touch controller. Other input devices 10072 may include, but are not limited to, a physical keyboard, a function key (such as a volume control button, a switch button, etc.), a trackball, a mouse, and a joystick, which will not be repeated here. The memory 1009 can be used to store software programs and various data, including but not limited to applications and operating systems. The processor 1010 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the modem processor may not be integrated into the processor 1010.

[0115] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of the above-mentioned proximity detection method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0116] The processor is a processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0117] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned proximity detection method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0118] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.

[0119] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.

[0120] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0121] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

Claims

1. A proximity detection circuit, characterized in that: Applied to an electronic device, the electronic device comprises a first body and a second body which can rotate relatively, the first body is provided with a first detection body and a first proximity sensor, the second body is provided with a second detection body and a second proximity sensor, the circuit comprises: A first switch, wherein the first detection body and the second detection body are connected via the first switch; a first detection branch and a second detection branch, wherein the first proximity sensor is connected to the first detection object through the first detection branch, and the second proximity sensor is connected to the second detection object through the second detection branch; A control module, wherein the control module is respectively connected to the first switch, the first detection branch, the second detection branch, the first proximity sensor, and the second proximity sensor, and the control module controls the on and off of the first switch, the first detection branch, and the second detection branch according to a folding angle formed by the first body and the second body.

2. The proximity detection circuit according to claim 1, characterized in that: The control module comprises: An angle sensor, used to detect a folding angle formed by the first body and the second body; A comparator, wherein a first input terminal of the comparator is connected to the angle sensor, and an output terminal of the comparator is connected to the first switch.

3. The proximity detection circuit according to claim 1, characterized in that: The first detection branch includes a first detection switch, the second detection branch includes a second detection switch, and the control module is connected to the first detection switch and the second detection switch respectively.

4. The proximity detection circuit according to claim 3, characterized in that: The first switch, the first detection switch and the second detection switch all use MOS tubes.

5. The proximity detection circuit according to claim 3, characterized in that: The first detection branch further includes a first capacitor, a first inductor and a first resistor, a first end of the first detection switch is connected to the first detection body, a second end of the first detection switch is connected to the first end of the first capacitor and the first end of the first inductor, a second end of the first capacitor is grounded, a second end of the first inductor is connected to the first end of the first resistor, and a second end of the first resistor is connected to the first proximity sensor; The second detection branch also includes a second capacitor, a second inductor and a second resistor. The first end of the second detection switch is connected to the second detection body, the second end of the second detection switch is connected to the first end of the second capacitor and the first end of the second inductor, the second end of the second capacitor is grounded, the second end of the second inductor is connected to the first end of the second resistor, and the second end of the second resistor is connected to the second proximity sensor.

6. The proximity detection circuit according to claim 1, characterized in that: The first detection body is a metal frame of the first body, and the second detection body is a metal frame of the second body.

7. An electronic device, characterized in that: The electronic device comprises a first body and a second body which can rotate relative to each other, the first body is provided with a first detection body and a first proximity sensor, the second body is provided with a second detection body and a second proximity sensor, and the electronic device further comprises a proximity detection circuit as described in any one of claims 1-6.

8. A proximity detection method, characterized in that: Applied to the electronic device as claimed in claim 7, the method comprising: Detect the folding angle of the folding screen; When the folding angle is less than a preset angle threshold, the first switch is controlled to be connected, and the first detection branch is controlled to be connected in a first time period, and the second detection branch is controlled to be connected in a second time period, wherein when the first detection branch is connected, the first proximity sensor performs detection through the first detection branch, the first detection body and the second detection body, and when the second detection branch is connected, the second proximity sensor performs detection through the second detection branch, the first detection body and the second detection body.

9. The method according to claim 8, characterized in that After detecting the folding angle of the folding screen, the method further includes: When the folding angle is greater than a preset angle threshold, the first switch is controlled to be disconnected, and the first detection branch and the second detection branch are controlled to be connected, the first proximity sensor performs detection through the first detection branch and the first detection body, and the second proximity sensor performs detection through the second detection branch and the second detection body.

10. A proximity detection device, characterized in that: Applied to the electronic device as claimed in claim 7, the device comprises: Angle detection module, used to detect the folding angle of the folding screen; The first proximity detection module is used to control the first switch to be connected when the folding angle is less than a preset angle threshold, and to control the first detection branch to be connected in a first time period, and to control the second detection branch to be connected in a second time period, wherein when the first detection branch is connected, the first proximity sensor performs detection through the first detection branch, the first detection body and the second detection body, and when the second detection branch is connected, the second proximity sensor performs detection through the second detection branch, the first detection body and the second detection body.

Citation Information

Patent Citations

  • Electronic device and control method

    CN109660642A

  • Proximity detection method, terminal and storage medium

    WO2021092811A1