Electronic device and photosensor control method

By setting a rotatable photosensor assembly and a driving assembly in an electronic device and adjusting its light-sensitive range to avoid interference from the screen area, the problem of the screen area affecting the photosensor's light metering accuracy is solved, thereby improving the light metering accuracy.

CN116320104BActive Publication Date: 2025-09-19VIVO MOBILE COMM CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202211733442.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-30
Publication Date
2025-09-19
Estimated Expiration
2042-12-30

AI Technical Summary

Technical Problem

In an electronic device having a first body and a second body, interference of light from a screen area on a light-sensitive sensor affects its light measurement accuracy.

Method used

By arranging a rotatable photosensor assembly and a driving assembly in an electronic device, the light-sensitive range of the photosensor assembly is adjusted to avoid interference from the screen area when switching between the unfolded and folded states.

Benefits of technology

It effectively improves the light metering accuracy of the light sensor and avoids the influence of light reflected and emitted from the screen area on the light sensor.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116320104B_ABST
    Figure CN116320104B_ABST
Patent Text Reader

Abstract

The present application discloses an electronic device and a method for controlling a photosensor. The device comprises a first body and a second body, wherein the first body and the second body are rotatably connected to enable the electronic device to switch between an unfolded state and a folded state; a photosensor assembly and a drive assembly are disposed in the first body; when the electronic device switches between the unfolded state and the folded state, the drive assembly drives the photosensor assembly to rotate relative to the first body, and the rotation angle of the photosensor assembly is associated with the angle between the first body and the second body. The photosensor assembly can rotate as the electronic device is folded, thereby adjusting the light-sensitive range of the photosensor assembly, so that the light-sensitive range of the photosensor assembly avoids interference from the second body of the electronic device, and prevents the light reflected or emitted by the second body from affecting the photosensor assembly, thereby improving the accuracy of the photosensor assembly.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] With the continuous development of science and technology, more and more electronic devices have begun to have folding structures. By folding two screens together, the display area of ​​the electronic device can be significantly increased while keeping the size of the electronic device relatively small. Electronic devices are usually equipped with light sensors, which can measure the light intensity of the environment in which the electronic device is located, thereby providing support for advanced functions such as automatic brightness adjustment.

[0003] In the related art, an electronic device includes a first body and a second body that are folded relative to each other. A photosensor is usually installed on one of the bodies. When the electronic device is unfolded to a smaller angle, the light emitted and reflected from the screen area of ​​the other body will enter the sensitive range of the photosensor, thereby affecting the accuracy of the photosensor's measurement of ambient light.

[0004] Therefore, how to prevent the screen area from interfering with the light sensor in the electronic device having the first body and the second body and improve the light measurement accuracy of the light sensor has become a technical problem that needs to be solved urgently. Summary of the Invention

[0005] The purpose of the embodiments of the present application is to provide an electronic device and a photosensor control method, which can solve the problem of poor light measurement accuracy of photosensors in the prior art.

[0006] In a first aspect, an embodiment of the present application provides an electronic device, comprising a first body and a second body, wherein the first body and the second body are rotatably connected to each other so as to switch the electronic device between an unfolded state and a folded state;

[0007] The first body is provided with a photosensor component and a driving component;

[0008] When the electronic device switches between the unfolded state and the folded state, the driving component drives the light sensor component to rotate relative to the first body, and the rotation angle of the light sensor component is associated with the angle between the first body and the second body.

[0009] In a second aspect, an embodiment of the present application provides a method for controlling a photosensor, the method comprising:

[0010] Obtaining an expansion angle between a first body and a second body of the electronic device;

[0011] Determining an overlap angle based on the expansion angle; wherein the overlap angle represents an angle at which a light-sensing range of the light-sensitive sensor component located in the first body overlaps with a screen area of ​​the second body;

[0012] According to the overlapping angle, the light-sensing range of the light-sensitive sensor assembly is adjusted so that the light-sensing range does not overlap with the screen area.

[0013] In a third aspect, an embodiment of the present application provides a photosensor control device, the device comprising:

[0014] An expansion angle module, configured to obtain an expansion angle between the first body and the second body of the electronic device;

[0015] an overlap angle module, configured to determine an overlap angle based on the expansion angle; wherein the overlap angle represents an angle at which the light-sensing range of the light-sensitive sensor component located in the first body overlaps with the screen area of ​​the second body;

[0016] The range adjustment module is used to adjust the light-sensitive range of the light-sensitive sensor assembly according to the overlapping angle so that the light-sensitive range does not overlap with the screen area.

[0017] In a fourth aspect, an embodiment of the present application provides an electronic device comprising a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the programs or instructions are executed by the processor, the above-mentioned photosensor control method is implemented.

[0018] In a fifth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the above-mentioned photosensor control method is implemented.

[0019] In an embodiment of the present application, an electronic device is provided, comprising a first body and a second body, the first body and the second body being rotatably connected to enable the electronic device to switch between an unfolded state and a folded state; a photosensor assembly and a drive assembly are disposed within the first body; when the electronic device switches between the unfolded state and the folded state, the drive assembly drives the photosensor assembly to rotate relative to the first body, and the rotation angle of the photosensor assembly is correlated with the angle between the first body and the second body. In an embodiment of the present application, the electronic device is equipped with a rotatable photosensor assembly, so that the photosensor assembly can rotate as the electronic device is folded, thereby adjusting the light-sensitive range of the photosensor assembly, so that the light-sensitive range of the photosensor assembly avoids interference from the second body of the electronic device, preventing light reflected from or emitted from the second body from affecting the photosensor assembly, and effectively improving the light measurement accuracy of the photosensor assembly. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] Figure 1 This is a side view of an electronic device provided by an embodiment of the present application;

[0021] Figure 2 This is a top view of an electronic device provided by an embodiment of the present application;

[0022] Figure 3 is a top view of another electronic device provided in an embodiment of the present application;

[0023] Figure 4 This is a side view of a first body provided in an embodiment of the present application;

[0024] Figure 5 This is a schematic diagram of a screen area provided by an embodiment of the present application;

[0025] Figure 6 This is a schematic diagram of the light-sensitive range of a photosensor assembly provided in an embodiment of the present application;

[0026] Figure 7 This is a schematic diagram of a photosensor assembly provided by an embodiment of the present application;

[0027] Figure 8 is a schematic diagram of another photosensor assembly provided in an embodiment of the present application;

[0028] Figure 9 This is a schematic diagram of the first position of the light-shielding structure provided in an embodiment of the present application;

[0029] Figure 10 This is a schematic diagram of the second position of the light shielding structure provided in an embodiment of the present application;

[0030] Figure 11 This is a schematic diagram of another photosensor assembly provided in an embodiment of the present application;

[0031] Figure 12 This is a flowchart of a method for controlling a photosensor provided in an embodiment of the present application;

[0032] Figure 13 This is a flowchart of another method for controlling a photosensor provided in an embodiment of the present application;

[0033] Figure 14 This is a schematic diagram of an expanded electronic device provided by an embodiment of the present application;

[0034] Figure 15 This is a schematic diagram of the geometric structure of an electronic device provided in an embodiment of the present application;

[0035] Figure 16This is a flowchart of another method for controlling a photosensor provided in an embodiment of the present application;

[0036] Figure 17 This is a flowchart of another method for controlling a photosensor provided in an embodiment of the present application;

[0037] Figure 18 This is a block diagram of a photosensor control device provided in an embodiment of the present application;

[0038] Figure 19 This is an electronic device provided by an embodiment of the present application;

[0039] Figure 20 This is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application.

[0040] Reference numerals:

[0041] 10. First body; 20. Second body; 21. Screen area; 30. Connecting shaft; 40. Photosensor assembly; 41. Photosensor body; 42. First drive assembly; 43. Photosensitive element; 44. Shading structure; 441. Side panel; 442. Shading plate; 45. Second drive assembly; 51. First edge; 52. Second edge; 60. First rotating shaft; 61. Second rotating shaft. DETAILED DESCRIPTION

[0042] The following will be combined with the accompanying drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the embodiments described are 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 are within the scope of protection of this application.

[0043] The terms "first," "second," and the like in the specification and claims of this application are used to distinguish similar objects, and are not used to describe a specific order or precedence. It should be understood that the terms used in this manner are interchangeable where appropriate, so that the embodiments of this application can be implemented in an order other than that illustrated or described herein, and that the objects distinguished by "first," "second," and the like are generally of the same type, and do not limit the number of objects; for example, the first object can be one or more. In addition, the term "and / or" in the specification and claims refers to at least one of the connected objects, and the character " / " generally indicates that the objects connected are in an "or" relationship.

[0044] In the description of this application, it should be understood that the terms "length", "width", "thickness", "up", "down", "vertical", "top", "bottom", "inside", "outside", "circumferential", etc., indicating the orientation or position relationship, are based on the orientation or position relationship shown in the accompanying drawings. They are only for the convenience of describing this application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation. Therefore, they cannot be understood as limiting this application.

[0045] In the description of this application, it should be noted that, unless otherwise expressly specified or limited, the terms "mounted," "connected," and "connected" should be understood in a broad sense. For example, they can refer to fixed connections, detachable connections, or integral connections; mechanical connections or electrical connections; direct connections or indirect connections through an intermediate medium; and internal connections between two components. Those skilled in the art will understand the specific meanings of the above terms in this application based on the specific circumstances.

[0046] Figure 1 is a side view of an electronic device provided by an embodiment of the present invention, such as Figure 1 As shown, the electronic device includes a first body 10 and a second body 20 .

[0047] like Figure 1 As shown, the first body 10 and the second body 20 are rotatably connected by a connecting shaft 30. The first body 10 and the second body 20 can be folded relative to each other around the connecting shaft 30, thereby enabling the electronic device to be folded and unfolded. For example, the electronic device can be a foldable screen mobile phone, a laptop computer, etc.

[0048] It should be noted that the connecting axis 30 in the embodiment of the present application is not limited to a physical rotating axis, and can be a virtual axis of rotation between the first body 10 and the second body 20. For example, when the rotating structure is a rotating axis, the connecting axis 30 can represent the axis of the rotating axis. When the rotating structure is a non-rotating axis (such as a flexible material), the connecting axis 30 can represent the virtual axis around which the first body 10 and the second body 20 rotate relative to each other.

[0049] like Figure 1As shown, the first body 10 includes a light-sensitive sensor assembly 40 and a driving assembly for driving the light-sensitive sensor assembly to rotate relative to the first body. The light-sensitive sensor assembly 40 is used to receive ambient light and output the light intensity corresponding to the ambient light, providing the electronic device with a light intensity detection function. Through the light intensity detection function, the electronic device can implement many advanced functions such as automatic brightness adjustment and automatic night mode. In an embodiment of the present application, the light-sensitive sensor assembly 40 can be arranged inside the first body 10, and the detection direction is toward the direction of the surface of the first body 10 opposite to the second body 20 in the folded state. For example, if the electronic device is a folding screen mobile phone, the light-sensitive sensor assembly 40 can be arranged on the inner side of the screen of the first body 10 of the folding screen mobile phone, and detect the ambient light in the direction of the screen of the first body 10.

[0050] According to different design requirements, the light sensor assembly can be located at different positions of the first body. Figure 2 , Figure 2 FIG. 1 shows a top view of an electronic device provided by an embodiment of the present application, such as Figure 2 As shown, if the electronic device is a vertical folding screen mobile phone, the light sensor assembly 40 can be arranged near the first edge 51 of the first body 10 parallel to the connecting axis 30. Figure 3 ,, Figure 3 FIG. 1 shows a top view of another electronic device provided in an embodiment of the present application, such as Figure 3 As shown, if the electronic device is a horizontally foldable screen mobile phone, the light-sensitive sensor assembly can be arranged near the second edge 52 of the first body 10 perpendicular to the connecting axis 30.

[0051] Reference Figure 4 , Figure 4 A side view of a first body provided in an embodiment of the present application is shown. Figure 4 As shown, the light sensor assembly 40 is rotatably connected to the first body 10 via a first rotating shaft 60 parallel to the connecting shaft 30. The light sensor assembly 40 can be driven by a driving assembly so that the light sensor assembly 40 can rotate around the first rotating shaft 60 as the rotation axis. The rotation direction of the first rotating shaft 60 is as shown in FIG. Figure 4 In the embodiment of the present application, the connecting shaft 30 and the first rotating shaft 60 can be parallel to each other.

[0052] Reference Figure 5 , Figure 5 A schematic diagram of a screen area provided by an embodiment of the present application is shown in FIG. Figure 5As shown, the second body 20 includes a screen area 21. When the electronic device is in an intermediate state (a state between the unfolded state and the fully folded state), the screen area 21 of the second body 20 will be aligned with the light sensitive range ( Figure 5 The area between the two dotted lines in FIG2 overlaps, that is, the light sensor component receives the reflected light from the screen area 21 of the second body 20 (such as Figure 5 As shown by arrow a) and / or emit light (as shown by arrow a) Figure 5 The light intensity of the ambient light is detected by the light sensor assembly 40 (indicated by the arrow b).

[0053] Among them, the above-mentioned screen area 21 can be the entire surface of the second body 20 facing the first body 10 in the folded state, or it can represent the area on the surface of the second body 20 facing the first body 10 in the folded state that can mirror-reflect light, or it can represent the display area of ​​the second body 20.

[0054] In an embodiment of the present application, when the electronic device switches between the unfolded state and the folded state, the driving component drives the light sensor component to rotate relative to the first body, and the rotation angle of the light sensor component is associated with the angle between the first body and the second body. The light sensor component 40 rotates around the first rotation axis 60 to adjust the light-sensitive range of the light sensor component 40. The rotation angle of the light sensor component 40 is associated with the angle between the first body and the second body. It can be expressed as follows: when the electronic device switches between the unfolded state and the folded state, by rotating the light sensor component 40 relative to the first body, the light-sensitive range of the light sensor component 40 does not overlap with the screen area 21 at all times, thereby preventing the light sensor component 40 from being affected by the light and reflection of the screen area 21. Reference Figure 6 , Figure 6 A schematic diagram of the light-sensing range of a photosensor assembly provided in an embodiment of the present application is shown in FIG. Figure 6 As shown, the light sensitive range of the light sensitive sensor assembly 40 is the area between the two dotted lines. Figure 6 In the photosensitive range shown, a portion of the screen area 21 of the second body 20 is located within the photosensitive range of the photosensor assembly 40. Since the first rotating axis 60 of the photosensor assembly 40 is parallel to the connecting axis 30, when the photosensor assembly 40 rotates around the first rotating axis 60, the photosensitive range of the photosensor assembly 40 can be adjusted so that the photosensitive range of the photosensor assembly 40 avoids the screen area 21 of the second body 20.

[0055] In an embodiment of the present application, the light-sensitive sensor assembly 40 can be rotated by driving the assembly to adjust the light-sensitive range of the light-sensitive sensor assembly 40, so that the light-sensitive sensor assembly 40 located in the second body 20 avoids the light emitted or reflected by the screen area 21 of the first body 10 during use, thereby improving the accuracy of ambient light measurement on the folding screen electronic device.

[0056] Optionally, refer to Figure 7 , Figure 7 A schematic diagram of a photosensor assembly provided by an embodiment of the present application is shown in FIG. Figure 7 As shown, the photosensor assembly 40 includes a photosensor body 41. The drive assembly may include a first drive assembly 42 fixedly connected to the first body 10. The photosensor body 41 and the first drive assembly 42 are rotationally connected via a first rotating shaft 60. Driven by the first drive assembly 42, the photosensor body 41 rotates about the first rotating shaft 60 to adjust the orientation of the photosensor body 41, thereby changing the direction in which the light sensing element 43 of the photosensor body 41 receives light, so that the light sensing range does not overlap with the screen area 21.

[0057] In the embodiment of the present application, the first driving assembly (42) can be directly connected to the photosensor body (41) via the first rotating shaft (60) to form the photosensor assembly (40), so that the photosensor body (41) can rotate around the first rotating shaft (60) under the drive of the first driving assembly (42), thereby changing the direction in which the photosensor body (41) receives light, thereby changing the light-sensitive range of the photosensor body (41). Therefore, the photosensor assembly (40) realized by the above method has good integrity, can achieve high production efficiency and good product rate, and helps to reduce production costs.

[0058] The first drive assembly (42) can be a micro motor, a servo motor, etc., and is used to drive the photosensor body (41) to rotate via the first rotating shaft (60). In one embodiment, one end of the first rotating shaft (60) can be connected to one side of the photosensor body (41), and the other end of the first rotating shaft (60) can be connected to the first drive assembly (42); in another embodiment, the first rotating shaft (60) can be sleeved inside the photosensor body (41), and one end of the first rotating shaft (60) is connected to the first drive assembly (42). In the embodiment of the present application, the connection relationship between the first drive assembly (42), the first rotating shaft (60) and the photosensor body (41) can be flexibly set by technicians according to actual needs, and the embodiment of the present application does not specifically limit this.

[0059] It should be noted that when the first driving component (42) is a motor, since the motor usually has its own rotating shaft, the photosensor body (41) can be directly mounted on the rotating shaft. In this case, the first rotating shaft (60) can be the rotating shaft of the motor.

[0060] Optionally, refer to Figure 8 , Figure 8 FIG. 1 shows another schematic diagram of a photosensor assembly provided in an embodiment of the present application. Figure 8 As shown, the photosensor assembly 40 includes a photosensor body 41 and a light-shielding structure 44, and the driving assembly may include a first driving assembly 42 fixedly connected to the first body 10; the light-shielding structure 44 and the first driving assembly 42 are rotationally connected via a first rotating shaft 60; the light-shielding structure 44 is driven by the first driving assembly 42 to rotate relative to the first body 10 around the first rotating shaft 60 to form a shielding between the photosensor body 41 and the screen area 21, so that the light-sensitive range does not overlap with the screen area 21.

[0061] Reference Figure 9 and Figure 10 , Figure 9 Schematic diagram of the first position of the light shielding structure provided in an embodiment of the present application is shown. Figure 10 FIG. 1 shows a schematic diagram of the second position of the light shielding structure provided in an embodiment of the present application. Figure 9 As shown, when the light shielding structure 44 is in the first position, the light sensitive range of the light sensor body 41 (the area between the two dotted lines) is larger, as shown in FIG. Figure 10 As shown, when the light shielding structure 44 rotates to the second position, the light-sensitive range of the photosensor body 41 (the area between the two dotted lines) becomes smaller.

[0062] In an embodiment of the present application, the photosensor assembly 40 can also be composed of a photosensor body 41 and a shading structure 44, and the driving unit can include a first driving assembly 42, wherein the first driving assembly 42 is connected to the shading structure 44 through a first rotating shaft 60, and the first driving assembly 42 can adjust the shading position of the shading structure 44 through the first rotating shaft 60, thereby blocking the light-sensitive range of the photosensor body 41 to prevent the photosensor body 41 from receiving light emitted and reflected by the screen area 21 of the second body 20. In this case, the photosensor body 41 does not need to be actuated and can be fixedly connected to the first body 10, which increases the impact resistance of the photosensor body 41 and helps to improve the durability of the electronic device.

[0063] The above-mentioned shading structure 44 can be a circular ring structure with a certain width, or a frame structure with a certain width. Technicians can flexibly set the shape of the shading structure 44 according to actual needs, and the embodiments of the present application do not specifically limit this.

[0064] It should be noted that in the solution using the shading structure 44, the first rotating shaft 60 may not be connected to the photosensor body 41. The first rotating shaft 60 only needs to be set near the photosensor body 41 to ensure that the shading structure 44 can rotate around the photosensor body 41 with the first rotating shaft 60 as the rotation center.

[0065] Alternatively, as Figure 8 As shown, the shading structure 44 includes at least one side panel 441 and a shading plate 442 connected to the side panel 441; one end of the side panel 441 is rotatably connected to the first driving assembly 42 via a first rotating shaft 60, and the other end of the side panel 441 is connected to the shading plate 442. Driven by the first driving assembly 42, the side panel 441 drives the shading plate 442 to rotate around the light sensor body 41 to form a shielding between the light sensor body 41 and the screen area.

[0066] In the embodiment of the present application, the light shielding structure 44 can be composed of a side panel 441 and a light shielding plate 442. The number of side panels 441 can be one or two. One end of the side panel 441 is fixedly connected to the light shielding plate 442, and the other end of the side panel 441 is connected to the first drive assembly 42 via the first rotating shaft 60. When the number of side panels 441 is one, the structural complexity of the light shielding structure 44 is low, which can effectively reduce production costs. The light shielding structure 44 is also light, which can effectively improve the response speed of the light shielding structure 44 during actuation. When the number of side panels 441 is two, the light shielding structure 44 has a higher structural strength and stronger impact resistance, which can effectively improve the reliability of the light shielding structure 44.

[0067] Optionally, in Figure 8 Based on the light-sensitive sensor assembly shown, the driving assembly may further include a second driving assembly 45, and the electronic device may further include a second rotating shaft 61 parallel to the first rotating shaft 60. Figure 11 , Figure 11 A schematic diagram of another photosensor assembly provided in an embodiment of the present application is shown. Figure 11 As shown, the photosensor assembly and the second driving assembly 45 are rotationally connected via a second rotating shaft 61; the photosensor assembly 40 is driven by the second driving assembly 45 to rotate around the second rotating shaft 61 to adjust the overall orientation direction of the photosensor assembly 40 so that the light-sensitive range does not overlap with the screen area.

[0068] In the embodiment of the present application, while adjusting the photosensor body 41's light-shielding structure 44's light-sensitive range, the photosensor assembly 40 as a whole can also be rotated through the second rotating shaft 61 and the second driving assembly 45. This can reduce the photosensor body 41's light-sensitive range while changing the orientation of the photosensor assembly 40, thereby synchronously changing the photosensor body 41's light-sensitive direction, achieving a greater adjustment range for the photosensor range, and helping to increase the photosensor body 41's adaptability to the opening and closing angles of electronic devices.

[0069] For example, if the light-shielding structure is used alone, the photosensor body's light-sensitive range can be adjusted to 30 degrees; if the light-shielding structure is used alone, the photosensor body's light-sensitive range can be adjusted to 20 degrees; and by setting up the light-shielding structure and rotating the photosensor assembly, the photosensor body's light-sensitive range can be adjusted to 50 degrees.

[0070] Optionally, the electronic device includes a linkage mechanism; the connecting shaft 30 and the first rotating shaft 60 can be connected through the linkage mechanism, and the first rotating shaft 60 rotates in conjunction with the connecting shaft 30 through the linkage mechanism, so that the sensitive range of the photosensor assembly 40 and the screen area 21 never overlap during the folding and unfolding process of the electronic device.

[0071] In the embodiment of the present application, the connecting shaft 30 and the first rotating shaft 60 are mechanically connected via a linkage mechanism. When the connecting shaft 30 rotates, the connecting shaft 30 drives the linkage mechanism, which in turn drives the first rotating shaft 60 to rotate, thereby achieving linkage between the connecting shaft 30 and the first rotating shaft 60. As a result, when the user folds the first body 10 and the second body 20 of the electronic device, the light-sensitive range of the photosensor assembly 40 always avoids the screen area 21 of the second body 20. This solution does not require a complex electronic control structure or control program design, and not only achieves a zero-delay response, but also prevents functionality from being affected by program failures.

[0072] The linkage mechanism can be designed based on at least one of a chain structure, a gear structure, a screw structure, a pull rod structure, and the like, and is used to transmit rotational torque between the connecting shaft 30 and the first rotating shaft 60. The linkage mechanism can be located inside or outside the electronic device. A skilled person can design the linkage mechanism based on actual needs, and the embodiments of this application do not limit the specific form of the linkage mechanism.

[0073] In summary, an embodiment of the present invention provides an electronic device, comprising: a first body and a second body, the first body and the second body being rotatably connected to enable the electronic device to switch between an unfolded state and a folded state; a photosensor assembly and a drive assembly are provided in the first body; when the electronic device switches between the unfolded state and the folded state, the drive assembly drives the photosensor assembly to rotate relative to the first body, and the rotation angle of the photosensor assembly is associated with the angle between the first body and the second body. In an embodiment of the present application, the electronic device is equipped with a rotatable photosensor assembly, so that the photosensor assembly can rotate as the electronic device is folded, thereby adjusting the light-sensitive range of the photosensor assembly, so that the light-sensitive range of the photosensor assembly avoids interference from the second body of the electronic device, and prevents the light reflected or emitted by the second body from affecting the photosensor assembly, thereby effectively improving the light measurement accuracy of the photosensor assembly.

[0074] The photosensor control method provided in the embodiment of the present application is described in detail below through specific embodiments and application scenarios in conjunction with the accompanying drawings.

[0075] Reference Figure 12 , Figure 12 A flowchart of a method for controlling a light-sensitive sensor according to an embodiment of the present invention is shown. The method is applied to an electronic device such as Figure 12 As shown, the method may include:

[0076] Step 101: Acquire an unfolding angle between a first body and a second body of the electronic device.

[0077] The first body and the second body of the electronic device can be connected via a connecting shaft, and the first body and the second body can rotate relative to each other around the connecting shaft, thereby realizing the folding and unfolding of the electronic device.

[0078] In an embodiment of the present application, an angle sensor may be provided at the connection axis of the electronic device, and the angle between the first body and the second body may be determined by the angle sensor.

[0079] For example, when the electronic device is closed, the unfolding angle between the first body and the second body is 0 degrees, and when the electronic device is fully unfolded, the unfolding angle between the first body and the second body is 180 degrees. Figure 6 As shown, the expansion angle between the first body and the second body is α.

[0080] Step 102 : determining an overlapping angle according to the expansion angle; wherein the overlapping angle represents an angle at which the light-sensing range of the light-sensitive sensor component located in the first body overlaps with the screen area of ​​the second body.

[0081] After the expansion angle is obtained, the overlap angle can be calculated based on the expansion angle, wherein the overlap angle represents the angle at which the light-sensing range of the light-sensitive sensor component located in the first body overlaps with the screen area of ​​the second body.

[0082] Specifically, since the positions of the first body, the second body, and the photosensor assembly are relatively fixed, there is a fixed functional relationship between the deployment angle and the overlap angle. As the deployment angle gradually decreases, the overlap angle will gradually increase. Technicians can pre-design an overlap angle calculation model through simulation, experiment, etc., and by inputting the deployment angle into the overlap angle calculation model, they can obtain the overlap angle output by the overlap angle calculation model. It should be noted that since the setting position of the photosensor assembly, the size of the first body, and the size of the second body may differ between different models of electronic devices, the functional relationship between the deployment angle and the overlap angle may not be the same for different models of electronic devices. Therefore, in the embodiments of the present application, different models of electronic devices may correspond to different overlap angle calculation models.

[0083] like Figure 6 As shown, the expansion angle between the first body and the second body of the electronic device is α, and the sensitivity range of the photosensor assembly is β. According to the overlapping angle calculation model corresponding to the electronic device, the corresponding overlapping angle can be calculated to be γ.

[0084] Step 103: Adjust the light-sensitive range of the light-sensitive sensor assembly according to the overlapping angle so that the light-sensitive range does not overlap with the screen area.

[0085] In an embodiment of the present application, the photosensor assembly may include a movable structure. After determining the overlap angle, the movable structure of the photosensor assembly may be adjusted according to the overlap angle to adjust the light-sensing range. The movable structure may be a rotating structure. The photosensor assembly may include a rotatable photosensor body or a light-shielding structure. The orientation of the light-sensing range may be adjusted by rotating the photosensor body, and the size of the light-sensing range may be adjusted by rotating the light-shielding structure, thereby adjusting the light-sensing range.

[0086] Specifically, the photosensor assembly or the light-shielding structure may be connected to a power unit. After determining the overlapping angle, a control signal is sent to the power unit to control the power unit to drive the photosensor assembly or the light-shielding structure to rotate, so that the photosensor assembly's sensitive range is reduced or deflected by the overlapping angle, thereby avoiding the screen area of ​​the second body.

[0087] In summary, the embodiment of the present application provides a light sensor control method, including obtaining the unfolding angle between the first body and the second body of the electronic device; determining the overlap angle based on the unfolding angle; wherein the overlap angle represents the angle at which the light-sensitive range of the light-sensitive sensor assembly located in the first body overlaps with the screen area of ​​the second body; and adjusting the light-sensitive range of the light-sensitive sensor assembly based on the overlap angle so that the light-sensitive range and the screen area do not overlap. In the embodiment of the present application, the electronic device is equipped with a rotatable light-sensitive sensor assembly, so that the light-sensitive sensor assembly can rotate as the electronic device is folded, thereby adjusting the light-sensitive range of the light-sensitive sensor assembly so that the light-sensitive range of the light-sensitive sensor assembly avoids interference from the second body of the electronic device, preventing the light reflected or emitted by the second body from affecting the light-sensitive sensor assembly, and effectively improving the light measurement accuracy of the light-sensitive sensor assembly.

[0088] Reference Figure 13 , Figure 13 FIG. 1 shows a flow chart of another method for controlling a light-sensitive sensor according to an embodiment of the present invention. Figure 13 As shown, the specific steps include:

[0089] Step 201: Acquire an unfolding angle between a first body and a second body of the electronic device.

[0090] This step can be referred to as step 101 and will not be described in detail in this embodiment of the present application.

[0091] Step 202: When the unfolding angle is less than or equal to a critical angle, determine an overlapping angle based on the unfolding angle; wherein the critical angle represents the minimum angle that can be reached between the first body and the second body when the light sensor assembly is in an initial state and the light-sensitive range of the light sensor assembly does not overlap with the screen area of ​​the second body.

[0092] In the embodiments of the present application, when the electronic device is unfolded at a large angle, the screen area of ​​the second body will not affect the light sensor located in the first body. In this case, the light-sensitive range of the light sensor does not need to be adjusted. Therefore, a critical angle can be determined for the electronic device. When the unfolded angle of the electronic device is greater than the critical angle, the light-sensitive range of the light-sensitive sensor assembly in its initial state will not overlap with the screen area of ​​the second body. Only when the light-sensitive range of the light-sensitive sensor assembly is less than or equal to the critical angle will the light-sensitive range of the light-sensitive sensor assembly in its initial state overlap with the screen area of ​​the second body.

[0093] Reference Figure 14 , Figure 14 A schematic diagram of an electronic device provided in an embodiment of the present application is shown. Figure 14As shown, the unfolding angle α1 of the electronic device is 180 degrees. If the critical angle α2 corresponding to the electronic device is 120 degrees, the light-sensitive range of the light-sensitive sensor assembly will not overlap with the screen area of ​​the second body.

[0094] Correspondingly, if the unfolding angle is greater than the critical angle, it means that the light-sensitive range of the light-sensitive sensor assembly does not include the screen area of ​​the second body. Therefore, when the unfolding angle is greater than the critical angle, the light-sensitive sensor assembly can maintain its initial state.

[0095] Optionally, step 202 may include:

[0096] Sub-step 2021, determining an excess angle based on the deployment angle and the critical angle.

[0097] When the unfolding angle is less than or equal to the critical angle, the excess angle can be determined based on the absolute value of the difference between the critical angle and the unfolding angle, where the excess angle indicates that the unfolding angle of the electronic device is less than the critical angle. Generally speaking, the larger the excess angle, the more seriously the light-sensitive sensor assembly is affected by the screen area of ​​the second body.

[0098] For example, if the unfolding angle of an electronic device is 120 degrees and the critical angle is 120 degrees, it can be determined that the excess angle is |100-120|=20 degrees.

[0099] Sub-step 2022: determining an overlap angle based on the excess angle.

[0100] In the embodiments of the present application, a technician can determine the functional relationship between the excess angle and the overlap angle in advance based on the structural geometry of the electronic device. After obtaining the excess angle, the corresponding overlap angle can be calculated based on the functional relationship. It should be noted that due to the different structures of different electronic devices, different models of electronic devices may have different functional relationships between the excess angle and the overlap angle.

[0101] Preferably, under normal circumstances, the first body and the second body of the electronic device are of the same length, and the light sensor assembly is arranged at the end of the first body farthest from the second body, which is commonly referred to as the "forehead" position. For an electronic device with this layout, when unfolded, its geometric structure can be simplified to an isosceles triangle, where the two sides of the isosceles triangle are the sides of the first body and the second body respectively. Figure 15 , Figure 15 A schematic diagram of the geometric structure of an electronic device provided in an embodiment of the present application is shown. Figure 15As shown, vertex A of the isosceles triangle ABC is the connection axis position, side AB of the isosceles triangle ABC represents the side of the first body, and side AC of the isosceles triangle ABC represents the side of the second body. The light sensor assembly is located at vertex B of the isosceles triangle ABC. When the light sensor assembly is in the initial state and angle BAC is the critical angle, its light-sensitive range is angle DBC. Line segment BE is the angle bisector of angle DBC, which is perpendicular to side AB. Therefore, if the angle of angle DBC is θ, the angle of angle EBC is θ / 2. Let angle DBC be x, angle BAC be y, and angle EBC be z. Based on the above geometric structure, the following formulas 1 to 3 can be constructed:

[0102]

[0103] x=yFormula 2

[0104]

[0105] Based on the above formulas 1 to 3, the following formula 4 can be derived:

[0106]

[0107] Formula 4 represents the functional relationship between the excess angle and the overlap angle under the hardware layout of the electronic device described above. Δz represents the overlap angle, and Δy represents the excess angle. For example, if the current excess angle of the electronic device is 20 degrees, the calculated overlap angle is 10 degrees.

[0108] Furthermore, when the unfolding angle is greater than the critical angle, the light sensor assembly will not be affected by the screen area of ​​the second body in the initial state, and the light sensor assembly can be restored to the initial state.

[0109] Step 203: Control the photosensor body to rotate by the overlapping angle through the first driving component, so that the light-sensing range of the photosensor body is entirely shifted by the overlapping angle in a direction away from the second body.

[0110] In an embodiment of the present application, the photosensor assembly may include a photosensor body and a first drive assembly. The first drive assembly can control the photosensor body to rotate around a first rotation axis to change the orientation of the photosensor body, thereby achieving an offset in the photosensor range of the photosensor body.

[0111] Specifically, a control signal for the first drive component can be determined in advance based on the overlap angle, and the control signal can be sent to the first drive component to control the first drive component to rotate, thereby driving the photosensor body to rotate to an offset from the initial angle to reach the above-mentioned overlap angle.

[0112] For example, if it is assumed that the photosensor component is in the initial state, the angle of the photosensor body is 0 degrees. At the first moment, it is determined that the overlapping angle is 20 degrees, then the photosensor body is rotated 20 degrees to rotate the angle of the photosensor body from 0 degrees to 20 degrees. At the second moment, it is determined that the overlapping angle is 30 degrees, then the photosensor body is rotated 10 degrees to rotate the angle of the photosensor body from 20 degrees to 30 degrees.

[0113] Furthermore, since the photosensor is arranged below the screen area of ​​the first body, and the screen area of ​​the first body is usually covered with transparent materials (such as glass, plastic, sapphire, etc.), the light emitted by the screen of the first body will be refracted and reflected inside the transparent material, which will also affect the accuracy of the photosensor. Therefore, in the embodiment of the present application, the photosensor can also be calibrated in advance to eliminate the influence of the screen light of the first body on the photosensor readings.

[0114] Specifically, the calibration process can be divided into dark box bright screen calibration and light box off screen calibration. When performing dark box bright screen calibration, the electronic device can be fully unfolded and placed in a standard dark box, so that the screen of the first body displays pure white at maximum brightness. At the same time, the first light intensity of the currently received light is collected through the photosensitive sensor component, and the first light intensity compensation corresponding to the electronic device is calculated using the following formula 5:

[0115] A=C / C base ×A compensation Formula 5

[0116] Wherein, A represents the first light intensity compensation amount corresponding to the electronic device, C represents the first light intensity, and C base Indicates the light intensity measured by the standard machine under the same conditions, A compensation Indicates the theoretical illumination compensation amount corresponding to the standard machine. The above standard machine is a standard electronic device of the same model as the electronic device. compensation It is obtained by theoretical calculation based on the actual measured hardware data of a standard machine (such as the maximum screen brightness value, photosensor sensitivity, etc.).

[0117] In the actual application of electronic devices, the compensated light intensity can be calculated using the following formula 6:

[0118] A corrected =A original -A formula 6

[0119] Among them, A corrected Indicates the light intensity after compensation, A original represents the actual light intensity measurement value, and A represents the first light intensity compensation amount.

[0120] Since a light sensor usually includes four light-sensitive channels, namely R (red), G (green), B (blue), and IR (infrared) channels, the light intensity is calculated based on the light sensitivity values ​​of the four light-sensitive channels. All four light-sensitive channels need to be compensated to eliminate the influence of screen light. Therefore, in addition to using the above overall method to compensate for the overall light intensity of the light sensor, the following formulas 7 to 10 can also be used based on the same principle to compensate for the light sensitivity value output by each channel in the light sensor:

[0121] R corrected =R original -R Formula 7

[0122] G corrected =G original -G Formula 8

[0123] B corrected =B original -B Formula 9

[0124] IR corrected =IR original -IR formula 10

[0125] Among them, R corrected Indicates the red light sensitivity value after compensation, R original Indicates the actual value of red light sensitivity, R indicates the compensation value of red light sensitivity; G corrected Indicates the green photosensitivity value after compensation, G original Indicates the measured value of green photosensitivity, G indicates the compensation value of green photosensitivity; B corrected Indicates the blue light sensitivity value after compensation, B original Indicates the measured value of blue light sensitivity, B indicates the compensation value of blue light sensitivity; IR corrected Indicates the infrared sensitivity value after compensation, IR original Indicates the actual measured value of infrared sensitivity, and IR indicates the compensation amount of infrared sensitivity.

[0126] In addition, due to the differences in screen transmittance, glass parameters, structural micro-changes, sensor consistency, etc. between the electronic device and the standard device, there is a certain deviation between the photosensitivity of the electronic device and the standard device. In the embodiment of the present application, the above deviation can also be calibrated by turning off the screen in a light box. Specifically, the standard device can be placed in a standard light box, and the light box can be calibrated using the photosensor of the standard device so that the illumination intensity of the standard light is the preset illumination value. Then, the standard device can be taken out of the standard light box, and the electronic device can be placed in the standard light box to obtain the light intensity measured by the photosensor of the electronic device under the preset illumination value. The second illumination intensity compensation value for the electronic device can be calculated according to the following formula 11:

[0127] Lux=F lux (R corrected , G corrected , B corrected , IR corrected )*500 / D Formula 11

[0128] Lux represents the second light intensity compensation value, D represents the light intensity actually measured by the light sensor of the electronic device under the preset illumination value, and F lux (R corrected , G corrected , B corrected , IR corrected ) is a regression function fitted by the measured photosensitivity values ​​of each photosensitive channel, which is used to calculate the ambient light intensity based on the photosensitivity values ​​of each photosensitive channel of the photosensor.

[0129] In summary, another photosensor control method provided by an embodiment of the present application includes obtaining an unfolding angle between the first body and the second body of the electronic device; determining an overlap angle based on the unfolding angle; wherein the overlap angle represents the angle at which the light-sensitive range of the photosensor assembly located in the first body overlaps with the screen area of ​​the second body; and adjusting the light-sensitive range of the photosensor assembly based on the overlap angle so that the light-sensitive range does not overlap with the screen area. In an embodiment of the present application, the electronic device is equipped with a rotatable photosensor assembly, so that the photosensor assembly can rotate as the electronic device is folded, thereby adjusting the photosensor range of the photosensor assembly so that the photosensor range of the photosensor assembly avoids interference from the second body of the electronic device, and avoids the light reflected or emitted by the second body from affecting the photosensor assembly, thereby effectively improving the light measurement accuracy of the photosensor assembly.

[0130] Reference Figure 16 , Figure 16 A flowchart of another method for controlling a light-sensitive sensor according to an embodiment of the present invention is shown. Figure 16As shown, the specific steps include:

[0131] Step 301: Acquire an unfolding angle between a first body and a second body of the electronic device.

[0132] Step 302: When the unfolding angle is less than or equal to a critical angle, determine an overlapping angle based on the unfolding angle; wherein the critical angle represents the minimum angle that can be reached between the first body and the second body when the light sensor assembly is in an initial state and the light-sensitive range of the light sensor assembly does not overlap with the screen area of ​​the second body.

[0133] Step 303: Control the light shielding structure to rotate through the first driving component to shield the light sensitive range of the photosensor body, so that the light sensitive range is reduced by the overlapping angle.

[0134] In the embodiment of the present application, the light sensor assembly includes a light sensor body, a light shielding structure, and a first driving assembly. The first driving assembly can also drive the light shielding structure to shield the light sensor body, thereby adjusting the light sensitivity range of the light sensor body and preventing interference with the light sensor from the screen area of ​​the second body.

[0135] Specifically, a control signal for the first drive component can be determined in advance based on the overlapping angle, and the control signal can be sent to the first drive component to control the first drive component to rotate, thereby driving the shading structure to rotate, so that the angle of the light-shielding structure blocking the light-sensitive sensor body in the initial state reaches the above-mentioned overlapping angle.

[0136] For example, if it is assumed that the photosensor component is in the initial state, the photosensor body's sensitivity range is 120 degrees. At the first moment, it is determined that the overlapping angle is 20 degrees, and the light-shielding structure is controlled to rotate so that the photosensor body's sensitivity range is reduced by 20 degrees relative to the initial state, that is, from 120 degrees to 100 degrees. At the second moment, it is determined that the overlapping angle is 30 degrees, and the light-shielding structure is continued to be controlled to rotate so that the photosensor body's sensitivity range is reduced by 30 degrees relative to the initial state, that is, continues to decrease from 100 degrees to 90 degrees.

[0137] In summary, another photosensor control method provided by an embodiment of the present application includes obtaining an unfolding angle between the first body and the second body of the electronic device; determining an overlap angle based on the unfolding angle; wherein the overlap angle represents the angle at which the light-sensitive range of the photosensor assembly located in the first body overlaps with the screen area of ​​the second body; and adjusting the light-sensitive range of the photosensor assembly based on the overlap angle so that the light-sensitive range does not overlap with the screen area. In an embodiment of the present application, the electronic device is equipped with a rotatable photosensor assembly, so that the photosensor assembly can rotate as the electronic device is folded, thereby adjusting the photosensor range of the photosensor assembly so that the photosensor range of the photosensor assembly avoids interference from the second body of the electronic device, preventing the light reflected or emitted by the second body from affecting the photosensor assembly, and effectively improving the light measurement accuracy of the photosensor assembly.

[0138] Reference Figure 17 , Figure 17 FIG. 1 shows a flow chart of steps of another light sensor control method provided in an embodiment of the present application. Figure 17 As shown, the specific steps include:

[0139] Step 401: Acquire an unfolding angle between a first body and a second body of the electronic device.

[0140] Step 402: When the unfolding angle is less than or equal to a critical angle, determine an overlapping angle based on the unfolding angle; wherein the critical angle represents the minimum angle that can be reached between the first body and the second body when the light sensor assembly is in an initial state and the light-sensitive range of the light sensor assembly does not overlap with the screen area of ​​the second body.

[0141] Step 403: Determine a deflection angle and a reduction angle according to the overlap angle; wherein the sum of the deflection angle and the reduction angle is equal to the overlap angle.

[0142] In an embodiment of the present application, the photosensor assembly includes a photosensor body, a light-shielding structure, a first drive assembly, and a second drive assembly, so as to simultaneously adjust the direction and angle of the photosensitivity range, thereby further improving the adjustment range of the photosensitivity range.

[0143] Specifically, after determining the overlapping angle, a deflection angle and a reduction angle may be determined according to the overlapping angle, wherein the deflection angle is used to deflect the light-sensitive range of the photosensitive sensor body, and the reduction angle is used to reduce the light-sensitive range of the photosensitive sensor body.

[0144] Specifically, one of the deflection angle and the reduction angle may be preferentially used to meet the overlap angle requirement. When the maximum deflection angle or the maximum reduction angle provided by the electronic device is insufficient, the other angle may be used to compensate for the overlap angle requirement.

[0145] For example, the deflection angle can be prioritized. If the electronic device can achieve a maximum deflection angle and a maximum reduction angle of 30 degrees, and the overlap angle is 40 degrees, the deflection angle can be determined to be 30 degrees and the reduction angle can be set to 10 degrees, so that the sum of the deflection angle and the reduction angle equals 40 degrees. Alternatively, the reduction angle can be prioritized, and the determined deflection angle can be 10 degrees and the reduction angle can be 30 degrees.

[0146] The overlap angles can also be allocated according to a preset ratio. For example, the overlap angles can be allocated according to a 1:1 ratio. When the overlap angle is 30 degrees, the deflection angle is determined to be 15 degrees and the reduction angle is determined to be 15 degrees. Technicians can flexibly set the above preset ratios according to actual needs, and the embodiments of this application are not specifically limited to this.

[0147] Step 404: Control the light shielding structure to rotate and shield the light-sensitive range of the photosensor body through the first driving component, so that the light-sensitive range is reduced by the reduction angle.

[0148] This step can be referred to as step 303 and will not be described in detail in this embodiment of the present application.

[0149] Step 405: Control the photosensor body and the light shielding structure to rotate as a whole by the deflection angle through the second driving component.

[0150] In an embodiment of the present application, the photosensor assembly may further include a second driving assembly, and the entirety formed by the photosensor body and the light-shielding structure is connected to the second driving assembly. The second driving assembly can rotate the entirety formed by the photosensor body and the light-shielding structure, so that while the light-shielding structure blocks the photosensor body, the direction of the light-sensitive range of the photosensor body is adjusted, so that the light-sensitive range of the photosensor body is offset as a whole by the above-mentioned deflection angle in the direction away from the second body.

[0151] In the embodiment of the present application, the above-mentioned method of adjusting the direction and size of the photosensitive range can achieve "two-stage" adjustment of the photosensitive range, effectively improving the adjustment amplitude of the photosensitive range and enhancing the range in which the photosensor body is not affected.

[0152] In summary, another photosensor control method provided by an embodiment of the present application includes obtaining an unfolding angle between the first body and the second body of the electronic device; determining an overlap angle based on the unfolding angle; wherein the overlap angle represents the angle at which the light-sensitive range of the photosensor assembly located in the first body overlaps with the screen area of ​​the second body; and adjusting the light-sensitive range of the photosensor assembly based on the overlap angle so that the light-sensitive range does not overlap with the screen area. In an embodiment of the present application, the electronic device is equipped with a rotatable photosensor assembly, so that the photosensor assembly can rotate as the electronic device is folded, thereby adjusting the photosensor range of the photosensor assembly so that the photosensor range of the photosensor assembly avoids interference from the second body of the electronic device, preventing the light reflected or emitted by the second body from affecting the photosensor assembly, and effectively improving the light measurement accuracy of the photosensor assembly.

[0153] Reference Figure 18 , Figure 18 This is a block diagram of a photosensor control device provided by an embodiment of the present application, such as Figure 18 As shown, the photosensor control device includes:

[0154] The unfolding angle module 501 is configured to obtain an unfolding angle between a first body and a second body of the electronic device.

[0155] The overlapping angle module 502 is configured to determine an overlapping angle according to the expansion angle; wherein the overlapping angle represents the angle at which the sensitive range of the light-sensitive sensor component located in the first body overlaps with the screen area of ​​the second body.

[0156] The range adjustment module 503 is configured to adjust the light-sensing range of the light-sensitive sensor assembly according to the overlapping angle so that the light-sensing range does not overlap with the screen area.

[0157] Optionally, the overlap angle module includes:

[0158] An overlapping angle submodule is configured to determine an overlapping angle based on the unfolded angle when the unfolded angle is less than or equal to a critical angle; wherein the critical angle represents the minimum angle that can be reached between the first body and the second body when the light sensor assembly is in an initial state and the light-sensitive range of the light sensor assembly does not overlap with the screen area of ​​the second body.

[0159] The initial state submodule is used to keep the photosensor assembly in the initial state when the deployment angle is greater than the critical angle.

[0160] Optionally, the overlap angle module includes:

[0161] An excess angle submodule is used to determine an excess angle based on the expansion angle and the critical angle; wherein the critical angle represents the minimum angle that can be reached between the first body and the second body when the light sensor component is in an initial state and the sensitivity range of the light sensor component does not overlap with the screen area of ​​the second body.

[0162] The overlap angle determination submodule is configured to determine the overlap angle according to the excess angle.

[0163] Optionally, the photosensor assembly includes a photosensor body and a first driving assembly, and the range adjustment module includes:

[0164] The first range adjustment submodule is used to control the photosensor body to rotate by the overlapping angle through the first driving component, so that the light-sensing range of the photosensor body is entirely shifted by the overlapping angle in a direction away from the second body.

[0165] Optionally, the photosensor assembly includes a photosensor body, a light shielding structure, and a first driving assembly, and the range adjustment module includes:

[0166] The second range adjustment submodule is used to control the light shielding structure to rotate through the first driving component to block the light sensitive range of the photosensor body, so that the light sensitive range is reduced by the overlapping angle.

[0167] Optionally, the photosensor assembly includes a photosensor body, a light shielding structure, a first driving assembly, and a second driving assembly, and the range adjustment module includes:

[0168] The angle determination submodule is configured to determine a deflection angle and a reduction angle according to the overlap angle; wherein the sum of the deflection angle and the reduction angle is equal to the overlap angle.

[0169] The reduction submodule is used to control the light shielding structure to rotate and block the light-sensitive range of the photosensor body through the first driving component, so that the light-sensitive range is reduced by the reduction angle.

[0170] The deflection submodule is used to control the photosensor body and the light shielding structure to rotate as a whole to the deflection angle through the second driving component.

[0171] In summary, an embodiment of the present application provides a light sensor control device, comprising: an unfolding angle module for obtaining the unfolding angle between the first body and the second body of the electronic device; an overlap angle module for determining the overlap angle based on the unfolding angle; wherein the overlap angle represents the angle at which the light-sensitive range of the light-sensitive sensor assembly located in the first body overlaps with the screen area of ​​the second body; and a range adjustment module for adjusting the light-sensitive range of the light-sensitive sensor assembly based on the overlap angle so that the light-sensitive range does not overlap with the screen area. In an embodiment of the present application, the electronic device is equipped with a rotatable light-sensitive sensor assembly, so that the light-sensitive sensor assembly can rotate as the electronic device is folded, thereby adjusting the light-sensitive range of the light-sensitive sensor assembly so that the light-sensitive range of the light-sensitive sensor assembly avoids interference from the second body of the electronic device, preventing the light reflected or emitted by the second body from affecting the light-sensitive sensor assembly, and effectively improving the light measurement accuracy of the light-sensitive sensor assembly.

[0172] The light sensor control device in the embodiment of the present application can be an electronic device or a component in an electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal or other devices other than a terminal. For example, the electronic device can be a GPU BOX, a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (AR) / virtual reality (VR) device, a robot, 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. It can also be a server, a network attached storage (NAS), a personal computer (PC), a television (TV), a teller machine or a self-service machine, etc., and the embodiment of the present application does not specifically limit it.

[0173] The light sensor control 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, a Linux operating system, a Windows operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.

[0174] The light sensor control device provided in the embodiment of the present application can achieve Figures 12 to 17To avoid repetition, the various processes implemented in the method embodiment are not described here.

[0175] Alternatively, as Figure 19 As shown, an embodiment of the present application also provides an electronic device M00, including a processor M01 and a memory M02, wherein the memory M02 stores programs or instructions that can be run on the processor M01, and when the program or instruction is executed by the processor M01, the various steps of the above-mentioned photosensitive sensor control method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

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

[0177] Figure 20 A schematic diagram of the hardware structure of an electronic device implementing an embodiment of the present application.

[0178] The electronic device 1000 includes but is not limited to components such as 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 .

[0179] Those skilled in the art will understand that the electronic device 1000 may also include a power source (such as a battery) to power each component, and the power source may be logically connected to the processor 1010 through a power management system, thereby implementing functions such as charging, discharging, and power consumption management through the power management system. Figure 20 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 repeated here.

[0180] Among them, the processor 1010 is used to obtain the expansion angle between the first body and the second body of the electronic device; determine the overlapping angle based on the expansion angle; wherein the overlapping angle represents the angle at which the sensitive range of the photosensor component located in the first body overlaps with the screen area of ​​the second body; according to the overlapping angle, adjust the sensitive range of the photosensor component so that the sensitive range does not overlap with the screen area.

[0181] In summary, the present application can use a rotatable photosensor assembly so that the photosensor assembly can rotate along with the folding process of the electronic device, thereby adjusting the photosensor range of the photosensor assembly so that the photosensor range of the photosensor assembly avoids the interference of the second body of the electronic device, and avoids the light reflected and emitted by the second body from affecting the photosensor assembly, thereby effectively improving the light measurement accuracy of the photosensor assembly.

[0182] It should be understood that in an embodiment of the present application, the input unit 1004 may include a graphics processing unit (GPU) 10041 and a microphone 10042, and the graphics processor 10041 processes the image data of a static picture or video obtained by an image capture device (such as a camera) in a video capture mode or an 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 at least one of 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, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and an operating stick, which will not be repeated here.

[0183] The memory 1009 can be used to store software programs and various data. The memory 1009 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, applications or instructions required for at least one function (such as a sound playback function, an image playback function, etc.). In addition, the memory 1009 may include a volatile memory or a non-volatile memory, or the memory x09 may include both volatile and non-volatile memory. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM), and a direct memory bus random access memory (DRRAM). The memory 1009 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.

[0184] Processor 1010 may include one or more processing units. Optionally, processor 1010 integrates an application processor and a modem processor. The application processor primarily handles operations related to the operating system, user interface, and application programs, while the modem processor primarily processes wireless communication signals, such as a baseband processor. It is understood that the modem processor may not be integrated into processor 1010.

[0185] 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, the various processes of the above-mentioned photosensitive sensor control method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0186] The processor is the 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.

[0187] 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 photosensitive sensor control method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0188] 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.

[0189] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the above-mentioned photosensitive sensor control method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0190] It should be noted that, in this article, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the statement "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device comprising the element. In addition, it should be noted 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 the opposite 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.

[0191] 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 the necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application is essentially 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, magnetic disk, optical disk), including a number of instructions for enabling a terminal (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present application.

[0192] 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 this application, ordinary technicians in this field can also make many forms without departing from the purpose of this application and the scope of protection of the claims, all of which are within the protection of this application.

Claims

1. An electronic device, characterized in that: The electronic device comprises a first body and a second body, wherein the first body and the second body are rotatably connected to each other so as to switch the electronic device between an unfolded state and a folded state; The first body is provided with a photosensor component and a driving component; When the electronic device switches between the unfolded state and the folded state, the driving assembly drives the light sensor assembly to rotate relative to the first body, and the rotation angle of the light sensor assembly is associated with the angle between the first body and the second body; The photosensor assembly includes a photosensor body and a light shielding structure, and the driving assembly includes a first driving assembly; The shading structure and the first driving assembly are rotatably connected via a first rotating shaft; The light-shielding structure is driven by the first driving assembly to rotate relative to the first body around the first rotation axis, and the rotation angle of the light-shielding structure is associated with the angle between the first body and the second body.

2. The electronic device according to claim 1, wherein The drive assembly further includes a second drive assembly; The photosensor assembly and the second driving assembly are rotatably connected via a second rotating shaft parallel to the first rotating shaft; The light sensor assembly is driven by the second driving assembly to rotate relative to the first body around the second rotation axis, and the rotation angle of the light sensor assembly is associated with the angle between the first body and the second body.

3. The electronic device according to claim 1, wherein The driving assembly includes a linkage mechanism, and the electronic device includes a connecting shaft connecting the first body and the second body, and a first rotating shaft connecting the light sensor assembly and the first body; The connecting shaft is connected to the first rotating shaft via the linkage mechanism, and the first rotating shaft rotates in conjunction with the connecting shaft via the linkage mechanism, so that the photosensor assembly rotates around the first rotating shaft relative to the first body when the connecting shaft rotates.

4. The electronic device according to claim 3, wherein: The linkage mechanism includes at least one of a chain structure, a gear structure, a screw structure, and a pull rod structure.

5. A photosensor control method, characterized in that: Applied to the electronic device according to any one of claims 1 to 4, the method comprising: Obtaining an expansion angle between a first body and a second body of the electronic device; Determining an overlap angle based on the expansion angle; wherein the overlap angle represents an angle at which a light-sensing range of the light-sensitive sensor component located in the first body overlaps with a screen area of ​​the second body; According to the overlapping angle, the light-sensing range of the light-sensitive sensor assembly is adjusted so that the light-sensing range does not overlap with the screen area.

6. The method according to claim 5, characterized in that Determining the overlap angle according to the deployment angle includes: When the deployment angle is less than or equal to a critical angle, determining an overlap angle based on the deployment angle; wherein the critical angle represents a minimum angle that can be reached between the first body and the second body when the light sensor assembly is in an initial state and the light-sensing range of the light sensor assembly does not overlap with the screen area of ​​the second body; When the deployment angle is greater than a critical angle, the photosensor assembly is kept in an initial state.

7. The method according to claim 5 or 6, characterized in that The determining the overlap angle according to the expansion angle includes: determining an excess angle based on the deployed angle and a critical angle; wherein the critical angle represents a minimum angle that can be reached between the first body and the second body when the light sensor assembly is in an initial state and a light-sensing range of the light sensor assembly does not overlap with a screen area of ​​the second body; An overlap angle is determined based on the excess angle.

8. The method according to claim 5, characterized in that The light sensor assembly includes a light sensor body and a first driving assembly. Adjusting the light sensitive range of the light sensor assembly according to the overlapping angle includes: The first driving assembly controls the photosensor body to rotate by the overlapping angle, so that the light-sensing range of the photosensor body is entirely shifted by the overlapping angle in a direction away from the second body.

9. The method according to claim 5, characterized in that The light sensor assembly includes a light sensor body, a light shielding structure, and a first driving assembly. Adjusting the light sensing range of the light sensor assembly according to the overlapping angle includes: The first driving component is used to control the light shielding structure to rotate so as to shield the light-sensitive range of the photosensor body, so that the light-sensitive range is reduced by the overlapping angle.

10. The method according to claim 5, characterized in that The light sensor assembly includes a light sensor body, a light shielding structure, a first driving assembly, and a second driving assembly. Adjusting the light sensing range of the light sensor assembly according to the overlapping angle includes: Determining a deflection angle and a reduction angle according to the overlap angle; wherein the sum of the deflection angle and the reduction angle is equal to the overlap angle; Controlling the light shielding structure to rotate and shield the light-sensitive range of the photosensor body by the first driving component, so that the light-sensitive range is reduced by the reduction angle; The second driving assembly controls the photosensor body and the light shielding structure to rotate as a whole to the deflection angle.

Citation Information

Patent Citations

  • Electronic device

    CN112565490A