CN111366240B - Ambient light detection method, electronic device, and medium - Google Patents

Ambient light detection method, electronic device, and medium Download PDF

Info

Publication number
CN111366240B
CN111366240B CN202010238701.4A CN202010238701A CN111366240B CN 111366240 B CN111366240 B CN 111366240B CN 202010238701 A CN202010238701 A CN 202010238701A CN 111366240 B CN111366240 B CN 111366240B
Authority
CN
China
Prior art keywords
light
target
electronic equipment
solar panel
light intensity
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010238701.4A
Other languages
Chinese (zh)
Other versions
CN111366240A (en
Inventor
滕孝军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202010238701.4A priority Critical patent/CN111366240B/en
Publication of CN111366240A publication Critical patent/CN111366240A/en
Application granted granted Critical
Publication of CN111366240B publication Critical patent/CN111366240B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01JMEASUREMENT OF INTENSITY, VELOCITY, SPECTRAL CONTENT, POLARISATION, PHASE OR PULSE CHARACTERISTICS OF INFRARED, VISIBLE OR ULTRAVIOLET LIGHT; COLORIMETRY; RADIATION PYROMETRY
    • G01J1/00Photometry, e.g. photographic exposure meter
    • G01J1/42Photometry, e.g. photographic exposure meter using electric radiation detectors
    • G01J1/4204Photometry, e.g. photographic exposure meter using electric radiation detectors with determination of ambient light

Landscapes

  • Life Sciences & Earth Sciences (AREA)
  • Sustainable Development (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Spectroscopy & Molecular Physics (AREA)
  • Power Sources (AREA)
  • Telephone Function (AREA)

Abstract

The embodiment of the invention discloses an ambient light detection method, electronic equipment and a medium. Wherein the electronic device is provided with a transparent solar panel, the method comprising: obtaining a target generating current output by the transparent solar panel; and determining the light intensity of the target environment light corresponding to the target generating current according to the preset mapping relation between the generating current and the light intensity. The embodiment of the invention can solve the problem of low reliability of ambient light detection.

Description

Ambient light detection method, electronic device, and medium
Technical Field
The embodiment of the invention relates to the technical field of light detection, in particular to an ambient light detection method, electronic equipment and a medium.
Background
In an electronic device, it is often necessary to detect the brightness of ambient light to perform some function control, such as backlight adjustment of the electronic device.
In the present electronic device, the ambient light detection is mainly realized by adding a photosensitive sensor and a light guide path in the electronic device and arranging a light transmission hole on a screen cover plate. However, in this method, the light-transmitting hole is easily blocked, and the reliability of the detection of the ambient light is low.
Disclosure of Invention
Embodiments of the present invention provide an ambient light detection method, an electronic device, and a medium, which can solve the problem of low reliability of ambient light detection.
In a first aspect, an embodiment of the present invention provides an ambient light detection method, which is applied to an electronic device, where the electronic device is provided with a transparent solar panel, and the method includes:
obtaining a target generating current output by the transparent solar panel;
and determining the light intensity of the target environment light corresponding to the target generating current according to the preset mapping relation between the generating current and the light intensity.
In a second aspect, an embodiment of the present invention further provides an electronic device, where the electronic device is provided with a transparent solar panel, and the electronic device includes:
the current acquisition module is used for acquiring the target generating current output by the transparent solar panel;
and the light intensity determining module is used for determining the light intensity of the target environment light corresponding to the target generating current according to the preset mapping relation between the generating current and the light intensity.
In a third aspect, an embodiment of the present invention provides an electronic device, which includes a processor, a memory, and a computer program stored on the memory and executable on the processor, and when executed by the processor, the electronic device implements the steps of the ambient light detection method according to the first aspect.
In a fourth aspect, the present invention provides a computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements the steps of the ambient light detection method according to the first aspect.
In the embodiment of the invention, the electronic equipment is provided with the transparent solar panel, the transparent solar panel can sense external light and convert the external light into current, and after the target generating current output by the transparent solar panel is obtained, the light intensity of the ambient light currently sensed by the transparent solar panel can be determined according to the preset mapping relation between the generating current and the light intensity. Therefore, in the embodiment, the influence of external shielding on the ambient light detection is reduced, and the reliability of the ambient light detection is improved.
Drawings
FIG. 1 is a schematic flowchart of an ambient light detection method according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart of another method for detecting ambient light according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating a further method for detecting ambient light according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present invention;
FIG. 5 is a diagram illustrating a screen structure of an electronic device;
fig. 6 is a schematic diagram of a screen structure of an electronic device according to an embodiment of the present invention;
fig. 7 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment of the invention is realized on the basis of the electronic equipment provided with the transparent solar panel and the control circuit of the transparent solar panel, and the current generated by the transparent solar panel is converted into the light intensity of the ambient light by utilizing the capacity of the transparent solar panel for sensing the ambient light to generate the current, so that the purpose of ambient light detection is realized.
The transparent solar panel is described below.
Transparent Solar panels, i.e. Transparent Solar concentrators (TLSCs), can convert any window or glass, such as the screen of a smartphone, into a photovoltaic Solar cell. The transparent solar panel exists as a charging layer in the electronic device of the present invention, and senses ambient light to generate current. Wherein, the principle that transparent solar panel carries out photoelectric conversion does:
transparent solar panels are composed of organic salts that absorb ultraviolet and infrared light at a particular wavelength, which then emit infrared light at another wavelength that is also invisible. These invisible infrared light is directed to the edge of the transparent solar panel and then converted into electrical energy by a thin ordinary photovoltaic solar cell strip built in at the edge location.
Based on the transparent solar panel, an embodiment of the invention provides an electronic device provided with a transparent solar panel, and referring to fig. 1, fig. 1 shows a flowchart of an ambient light detection method provided by an embodiment of the invention. The method comprises the following steps:
101, obtaining target generating current output by a transparent solar panel;
because transparent solar panel sets up in the electronic equipment surface, under the outside ambient light's that exists of electronic equipment condition, transparent solar panel can respond to ambient light promptly and generate electricity to output target generating current. Optionally, the target generated current output by the transparent solar panel may be sensed by an electricity meter in the electronic device, and the target generated current may be stored, for example, by a component such as a software display service program.
And 102, determining the light intensity of target environment light corresponding to the target generating current according to the preset mapping relation between the generating current and the light intensity.
In the photovoltaic power generation process, the light and the power generation current have positive correlation corresponding relation, namely the stronger the light is, the larger the power generation current is, therefore, the embodiment of the invention determines the intensity of the external light by combining the characteristic that the transparent solar panel can convert the external light into the current and by the charging current output by the transparent solar panel, namely, the transparent solar panel is used as the photosensitive sensor.
In the embodiment of the invention, the electronic equipment is provided with the transparent solar panel, the transparent solar panel can sense external light and convert the external light into current, and after the target generating current output by the transparent solar panel is obtained, the light intensity of the ambient light currently sensed by the transparent solar panel can be determined according to the preset mapping relation between the generating current and the light intensity. It can be seen that in this embodiment, the influence of external shielding on the ambient light detection is reduced, the problem of poor photosensitive adjustment caused by foreign matter coverage, oil pollution coverage and other reasons is reduced, and the reliability of the ambient light detection is improved. Besides, the special function of sunlight charging is provided for users, and a convenient automatic ambient light adjusting function is also provided.
The preset mapping relationship between the generated current and the light intensity can be obtained by measuring the current which can be converted from the light intensity of different ambient lights through experiments, for example, table 1, where table 1 is a mapping relationship table between the generated current and the light intensity.
TABLE 1A table of the mapping relationship between the generated current and the light intensity
Figure BDA0002431853770000041
In some embodiments of the present invention, after step 102, the method may further include:
and adjusting the backlight brightness of the screen of the electronic equipment to the target backlight brightness corresponding to the target ambient light intensity according to the target ambient light intensity and the preset corresponding relation between the light intensity and the backlight.
Backlight refers to light that is illuminated from the side or back of a display screen to adjust the illumination in low light environments and the brightness of the display, liquid crystal screen. In this embodiment, the backlight control is performed according to the light intensity of the target environment determined by the transparent solar panel, so that the situation that the backlight control cannot be performed when the light hole is blocked can be avoided, and the reliability of the backlight control is improved.
The preset corresponding relation between the light intensity and the backlight can be realized in a list mode or through a backlight control curve, and the backlight brightness of the corresponding screen under the current target environment light intensity can be determined according to the preset corresponding relation between the light intensity and the backlight.
Optionally, a backlight control program may be set in the electronic device, and after the target generated current is obtained, the target generated current may be sent to the backlight control program, and then the backlight control program executes the content of step 102, and invokes the preset corresponding relationship to perform backlight control. Specifically, the backlight control program may control the backlight hardware through the backlight control interface, so that the backlight hardware controls the backlight of the electronic device and stores the current backlight gear. The backlight gear refers to a current backlight brightness gear, and by storing the current backlight gear, the backlight can be further adjusted based on the previously stored backlight gear in the case of the change of the ambient light in the subsequent process, so that the discomfort degree of the user to the backlight change is reduced.
Of course, the target ambient light intensity determined by the present invention may also be used for other functions requiring the ambient light intensity in the electronic device, for example, adjusting the focus position according to the light intensity during photographing, which is not limited by the present invention.
In other embodiments of the present invention, referring to fig. 2, fig. 2 shows a schematic flow chart of another ambient light detection method provided by an embodiment of the present invention. The method can comprise the following steps:
step 201, periodically acquiring a target generating current output by the transparent solar panel; for example, the target generation current is acquired every 10 seconds, but the present invention is not limited to the period of acquiring the target generation current.
Step 202, judging whether the target generating current obtained in the current ith period is different from the generating current obtained in the ith-1 period; in a different case, step 203 is executed; in the same case, step 205 is performed; where i is an integer greater than 1, for example, i may be 2.
For example, if the target generated current is changed from 0mA to 1mA, it is determined that the user is changing from a dark environment to a relatively bright environment, and the backlight needs to be adjusted from the minimum brightness to the intermediate brightness, so the operation of step 204 needs to be performed at this time.
Step 203, determining the light intensity of target environment light corresponding to the target generating current according to a preset mapping relation; step 203 is similar to step 102 in fig. 1, and is not repeated here.
And 204, adjusting the backlight brightness of the screen of the electronic equipment to the target backlight brightness corresponding to the target ambient light intensity according to the target ambient light intensity and the preset corresponding relation between the light intensity and the backlight.
Step 205, no backlight control is performed. At this time, the target ambient light intensity corresponding to the target generated current also does not need to be determined.
As for the function of performing photosensitive adjustment according to the intensity of ambient light, photosensitive adjustment is generally not required when the intensity of ambient light is not changed, and therefore, in this embodiment, under the condition that the intensity of ambient light is not changed, the intensity of ambient light does not need to be determined according to the preset mapping relationship between the generated current and the intensity of light, and subsequent operations such as backlight control are not required, which can reduce invalid detection operations of ambient light and improve the efficiency of ambient light detection.
In addition, in another embodiment, it is also possible to determine whether the target ambient light intensity has changed without determining whether the target generated current has changed, and if the target ambient light intensity has not changed, step 205 is not executed.
In the embodiment of the invention, the electronic equipment can be provided with only the transparent solar panel without a photosensitive component, such as a photosensitive sensor.
In the mode, the photosensitive assembly, the light guide path and the like are not required to be arranged inside the electronic equipment, so that the manufacturing complexity of the electronic equipment is reduced, the (Printed Circuit Board, PCB) mainboard space, the material manufacturing cost and the like are saved, a hole is not required to be reserved on the screen cover plate of the electronic equipment, the processing cost of the screen cover plate is reduced, and the attractiveness of the electronic equipment is improved.
In some further embodiments of the present invention, the electronic device may further include a photosensitive sensor and a light hole while the transparent solar panel is disposed, and the photosensitive sensor is connected to the light hole through the light guide path. At this time, referring to fig. 3, fig. 3 is a schematic flow chart illustrating a further ambient light detection method according to an embodiment of the present invention. The method can comprise the following steps:
step 301, detecting whether the light hole is in a shielding state, and if the light hole is in the shielding state, executing step 302; if the light hole is not in the blocking state, go to step 304;
step 302, obtaining a target generating current output by the transparent solar panel;
for example, when the user plays games or watches video with both hands, then the light trap can usually be sheltered from to user's finger or palm, and photosensitive induction ware can't normally work this moment, then need rely on transparent solar panel's output current to carry out the ambient light and detect.
Step 303, determining the light intensity of the target environment light corresponding to the target generating current according to the preset mapping relation between the generating current and the light intensity, and executing step 305;
step 304, acquiring the light intensity of the target environment according to the output data of the photosensitive sensor, and executing step 305;
step 305, adjusting the backlight brightness of the screen of the electronic device to the target backlight brightness corresponding to the target ambient light intensity according to the target ambient light intensity and the preset corresponding relationship between the light intensity and the backlight.
This embodiment combines through photosensitive induction ware and transparent solar panel both, carries out the detection of ambient light, and photosensitive induction ware's accuracy is higher, consequently, uses photosensitive induction ware to detect the accuracy that can improve photosensitive control under the normal condition, and under the unable normal condition of working of photosensitive induction ware, uses transparent solar panel's output current to convert, confirms ambient light intensity. The mode of combining the two can ensure that correct ambient light data can be provided under any condition, and the accuracy and reliability of ambient light detection are improved.
In addition, in other embodiments, whether the user touches both ends of the screen with both hands may be detected through the touch screen, specifically, S101 may include:
detecting whether a touch area of a display screen of the electronic equipment touched by a user meets a preset condition;
under the condition that a touch area of a display screen of the electronic equipment touched by a user meets a preset condition, acquiring a target generating current output by the transparent solar panel;
under the condition that a touch area of a display screen of the electronic equipment touched by a user does not meet a preset condition, determining the light intensity of the target environment light according to the output data of the photosensitive sensor;
wherein, the touch area of the user touch screen meets preset conditions, including: the touch control area of the display screen of the user touch control electronic equipment comprises a first touch control area and a second touch control area, the first touch control area is an area of a first preset range comprising the light hole, and the second touch control area is an area of a second preset range which is not overlapped with the first touch control area in the display screen of the electronic equipment.
The method of the embodiment of the application can be applied to a scene that both hands of a user contact both ends of a screen, for example, the first touch area and the second touch area can be left and right side areas of the electronic device when the electronic device is in a horizontal state, when the user watches videos or plays games through the electronic device, the electronic device can be turned into the horizontal state, and both hands of the user can respectively contact the left and right sides of the electronic device. Because the light trap sets up in the position of the left and right sides of electronic equipment when horizontal usually, under this kind of circumstances, user's finger is removed the in-process and probably can be sheltered from the light trap, so this embodiment directly utilizes transparent solar panel to detect under the condition of two touch-control districts of user's touch-control, can improve the accuracy of ambient light detection to avoid follow-up use electronic equipment's in-process because the user shelters from and leads to the untimely condition of ambient light detection.
In addition to the above-described embodiments, it may be determined whether or not the target generated current has changed in combination with the embodiment shown in fig. 1, and if the target generated current has not changed, the subsequent steps are not executed. Alternatively, it may be determined whether the generated target ambient light intensity is changed, and the backlight control is not executed if the target ambient light intensity is not changed.
In still other embodiments of the present invention, after determining the target ambient light intensity corresponding to the target generated current, the method may further include:
outputting a first prompt; the first prompt is used for indicating that the brightness of the external light changes.
Because the user is when using electronic equipment, probably too enthusiasm leads to not discovering external light and changing, and this embodiment is through promoting for the user can in time know that current external light has changed, thereby makes the user realize whether should turn on the light or pull up (window) curtain etc. and then avoids light too strong or too weak to the influence of user's eyes, and the protection user's eye is healthy.
Optionally, the first prompt may include any one of a text prompt, a voice prompt, an indicator light prompt, and a vibration prompt, or may also adopt other prompt manners, and the specific content of the first prompt is not limited in the present invention.
Based on the embodiment of the ambient light detection method provided by the above embodiment, correspondingly, an embodiment of the present invention further provides an electronic device, where the electronic device is provided with a transparent solar panel, and referring to fig. 4, fig. 4 shows a schematic structural diagram of an electronic device provided by the embodiment of the present invention. The electronic device includes:
the current obtaining module 401 is configured to obtain a target generation current output by the transparent solar panel;
the light intensity determining module 402 is configured to determine, according to a preset mapping relationship between the generated current and the light intensity, a target ambient light intensity corresponding to the target generated current.
In the embodiment of the invention, the electronic equipment is provided with the transparent solar panel, the transparent solar panel can sense external light and convert the external light into current, and after the target generating current output by the transparent solar panel is obtained, the light intensity of the ambient light currently sensed by the transparent solar panel can be determined according to the preset mapping relation between the generating current and the light intensity. Therefore, in the embodiment, the influence of external shielding on the ambient light detection is reduced, and the reliability of the ambient light detection is improved.
In some embodiments of the invention, the electronic device may further comprise:
and the backlight control module is used for adjusting the backlight brightness of the screen of the electronic equipment to the target backlight brightness corresponding to the target ambient light intensity according to the target ambient light intensity and the preset corresponding relation between the light intensity and the backlight.
In this embodiment, the backlight control is performed according to the light intensity of the target environment determined by the transparent solar panel, so that the situation that the backlight control cannot be performed when the light hole is blocked can be avoided, and the reliability of the backlight control is improved.
Optionally, a backlight control program may be set in the electronic device, and after the target generated current is obtained, the target generated current may be sent to the backlight control program, and then the backlight control program determines the light intensity of the target ambient light and invokes the preset corresponding relationship to perform backlight control. Specifically, the backlight control program may control the backlight hardware through the backlight control interface, so that the backlight hardware controls the backlight of the electronic device and stores the current backlight gear. The backlight gear refers to a current backlight brightness gear, and by storing the current backlight gear, the backlight can be further adjusted based on the previously stored backlight gear conveniently under the condition of the change of the ambient light transmission, so that the discomfort degree of the user to the backlight change is reduced.
In other embodiments of the present invention, the electronic device may further include:
a judging module, configured to judge whether the target generated current obtained in the current ith period is different from the generated current obtained in the i-1 th period, and trigger the light intensity determining module 402 in case of difference; in the same case, the backlight control is not performed. Wherein i is an integer greater than 1.
As for the function of photosensitive adjustment according to the intensity of ambient light, when the intensity of ambient light does not change, photosensitive adjustment is generally not required, and therefore, in this embodiment, under the condition that the intensity of ambient light does not change, the light intensity of ambient light is not determined according to the preset mapping relationship between the generated current and the light intensity, and this way, the invalid detection operation of ambient light can be reduced, and the efficiency of ambient light detection is improved.
In the embodiment of the invention, the electronic device can be provided with only the transparent solar panel without a photosensitive component, such as a photosensitive sensor.
In the mode, the photosensitive assembly, the light guide channel and the like are not required to be arranged in the electronic equipment, so that the manufacturing complexity of the electronic equipment is reduced, the PCB (printed circuit board) space, the material manufacturing cost and the like are saved, a hole is not required to be reserved on the screen cover plate of the electronic equipment, the processing cost of the screen cover plate is reduced, and the attractiveness of the electronic equipment is improved.
In some embodiments of the present invention, the electronic device may further include a photosensitive sensor and a light hole, where the photosensitive sensor is connected to the light hole through a light guide path, while the transparent solar panel is disposed. At this time, the electronic device may further include:
the shielding detection module is used for detecting whether the light hole is in a shielding state, and if the light hole is in the shielding state, the current acquisition module 401 is triggered; if the light hole is not in a shielding state, triggering the photosensitive detection module;
and the photosensitive detection module is used for acquiring the light intensity of the target environment light according to the output data of the photosensitive sensor.
This embodiment combines through photosensitive induction ware and transparent solar panel both, carries out the measuring of ambient light, and photosensitive induction ware's accuracy is higher, consequently, uses photosensitive induction ware to detect the accuracy that can improve photosensitive control under the normal condition, and under the unable normal condition of working of photosensitive induction ware, uses transparent solar panel's output current to convert, confirms ambient light intensity. The mode of combining the two can ensure that correct ambient light data can be provided under any condition, and the accuracy and the reliability of ambient light detection are improved.
Furthermore, in other embodiments, the electronic device may further include:
the touch detection module is used for detecting whether a touch area of a display screen of the electronic equipment touched by a user meets a preset condition; under the condition that a touch area of a display screen of the electronic device touched by a user meets a preset condition, triggering a current acquisition module 401; and under the condition that the touch area of the display screen of the electronic equipment touched by the user does not meet the preset condition, triggering the photosensitive detection module.
This kind of mode in this implementation is because the condition that the light trap received to shelter from is when the condition at user's both hands contact screen both ends mostly, consequently the touch-control region at user's touch-control electronic equipment display screen is two, and under the regional condition that includes the region that the light trap belongs to of touch-control, the user probably causes the light trap to shelter from in the time afterwards, consequently direct utilization transparent solar panel detects during this time, can improve the accuracy of ambient light detection, and avoid the in-process of follow-up use electronic equipment because the user shelters from and leads to the untimely condition of ambient light detection.
In still other embodiments of the present invention, the electronic device may further include:
the prompting module is used for outputting a first prompt after the target ambient light intensity corresponding to the target generating current is determined; the first prompt is used for indicating that the brightness of the external light changes.
Because the user is when using electronic equipment, probably too indulges and leads to not discovering external light and change, this embodiment is through indicateing for the user can in time know current external light and have changed, thereby makes the user realize whether should turn on light or pull up (window) curtain etc. and then avoids light too strong or too weak to the influence of user's eye, and the protection user's eye is healthy.
The electronic device provided in the embodiment of the present invention can implement each method step implemented in the method embodiments of fig. 1 to fig. 3, and is not described herein again to avoid repetition.
Fig. 7 shows a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present invention.
The electronic device 500 includes, but is not limited to: transparent solar panel 512, radio frequency unit 501, network module 502, audio output unit 503, input unit 504, sensor 505, display unit 506, user input unit 507, interface unit 508, memory 509, processor 510, and power supply 511. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 7 does not constitute a limitation of the electronic device, and that the electronic device may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the electronic device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
The processor 510 is configured to obtain a target generated current output by the transparent solar panel 512; and determining the light intensity of the target environment light corresponding to the target generating current according to the preset mapping relation between the generating current and the light intensity.
In the embodiment of the invention, the electronic equipment is provided with the transparent solar panel, the transparent solar panel can sense external light and convert the external light into current, and after the target generating current output by the transparent solar panel is obtained, the light intensity of the ambient light currently sensed by the transparent solar panel can be determined according to the preset mapping relation between the generating current and the light intensity. Therefore, in the embodiment, the influence of external shielding on the ambient light detection is reduced, and the reliability of the ambient light detection is improved.
Referring to fig. 5 and 6, fig. 5 is a schematic diagram illustrating a screen structure of an electronic device; the screen structure of the electronic device includes: a screen cover plate, a polarizing plate, a flexible encapsulation Film, an organic light emitting diode, a flexible Thin Film, and a Thin Film Transistor (TFT) panel lamp. Fig. 6 is a schematic view illustrating a screen structure of an electronic device according to an embodiment of the present invention, and in the example of fig. 6, a screen cover of the electronic device is replaced with a transparent solar panel according to the embodiment.
In this embodiment, directly utilize transparent solar panel to replace the original glass screen apron of electronic equipment, this kind of mode not only makes whole screen can supply power as photovoltaic cell to can also make whole screen as photosensitive inductor, carry out the ambient light and detect, thereby greasy dirt or dirty etc. shelter from the problem in the photosensitive hole of cell-phone before effectual solution, improve photosensitive accuracy, improve user experience. In addition, the screen structure of the electronic equipment does not need to be greatly improved, the volume of the electronic equipment is not additionally increased, and the production cost of the electronic equipment is reduced as much as possible.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 501 may be used for receiving and sending signals during a message sending and receiving process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 510; in addition, uplink data is transmitted to the base station. In general, radio frequency unit 501 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 501 can also communicate with a network and other devices through a wireless communication system.
The electronic device provides wireless broadband internet access to the user via the network module 502, such as assisting the user in sending and receiving e-mails, browsing web pages, and accessing streaming media.
The audio output unit 503 may convert audio data received by the radio frequency unit 501 or the network module 502 or stored in the memory 509 into an audio signal and output as sound. Also, the audio output unit 503 may also provide audio output related to a specific function performed by the electronic apparatus 500 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 503 includes a speaker, a buzzer, a receiver, and the like.
The input unit 504 is used to receive audio or video signals. The input Unit 504 may include a Graphics Processing Unit (GPU) 5041 and a microphone 5042, and the Graphics processor 5041 processes image data of still pictures or video obtained by an image capturing device (e.g., a camera) in a video capture mode or an image capture mode. The processed image frames may be displayed on the display unit 506. The image frames processed by the graphics processor 5041 may be stored in the memory 509 (or other storage media) or transmitted via the radio frequency unit 501 or the network module 502. The microphone 5042 may receive sound, and may be capable of processing such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 501 in case of the phone call mode.
The electronic device 500 also includes at least one sensor 505, such as light sensors, motion sensors, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 5061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 5061 and/or a backlight when the electronic device 500 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of the electronic device (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration identification related functions (such as pedometer, tapping), and the like; the sensors 505 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 506 is used to display information input by the user or information provided to the user. The Display unit 506 may include a Display panel 5061, and the Display panel 5061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 507 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic device. Specifically, the user input unit 507 includes a touch panel 5071 and other input devices 5072. Touch panel 5071, also referred to as a touch screen, can collect touch operations by a user on or near it (e.g., operations by a user on or near touch panel 5071 using a finger, a stylus, or any other suitable object or attachment). The touch panel 5071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 510, and receives and executes commands sent by the processor 510. In addition, the touch panel 5071 may be implemented in various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 5071, the user input unit 507 may include other input devices 5072. In particular, other input devices 5072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
Further, the touch panel 5071 may be overlaid on the display panel 5061, and when the touch panel 5071 detects a touch operation thereon or nearby, the touch operation is transmitted to the processor 510 to determine the type of the touch event, and then the processor 510 provides a corresponding visual output on the display panel 5061 according to the type of the touch event. Although in fig. 7, the touch panel 5071 and the display panel 5061 are two independent components to implement the input and output functions of the electronic device, in some embodiments, the touch panel 5071 and the display panel 5061 may be integrated to implement the input and output functions of the electronic device, and is not limited herein.
The interface unit 508 is an interface for connecting an external device to the electronic apparatus 500. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 508 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the electronic apparatus 500 or may be used to transmit data between the electronic apparatus 500 and an external device.
The memory 509 may be used to store software programs as well as various data. The memory 509 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 509 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device.
The processor 510 is a control center of the electronic device, connects various parts of the whole electronic device by using various interfaces and lines, performs various functions of the electronic device and processes data by running or executing software programs and/or modules stored in the memory 509 and calling data stored in the memory 509, thereby performing overall monitoring of the electronic device. Processor 510 may include one or more processing units; preferably, the processor 510 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 510.
The electronic device 500 may further include a power supply 511 (e.g., a battery) for supplying power to various components, and preferably, the power supply 511 may be logically connected to the processor 510 via a power management system, so as to implement functions of managing charging, discharging, and power consumption via the power management system.
In addition, the electronic device 500 includes some functional modules that are not shown, and are not described in detail here.
Preferably, an embodiment of the present invention further provides an electronic device, which includes a processor 510, a memory 509, and a computer program that is stored in the memory 509 and can run on the processor 510, and when the computer program is executed by the processor 510, the computer program implements each process of the above-described embodiment of the ambient light detection method, and can achieve the same technical effect, and in order to avoid repetition, details are not described here again.
An embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the above-mentioned embodiment of the ambient light detection method, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising a … …" does not exclude the presence of another identical element in a process, method, article, or apparatus that comprises the element.
Through the description of the foregoing embodiments, it is clear to those skilled in the art that the method of the foregoing embodiments may be implemented by software plus a necessary general hardware platform, and certainly may also be implemented by hardware, but in many cases, the former is a better implementation. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (9)

1. The utility model provides an ambient light detection method, is applied to electronic equipment, and its characterized in that, electronic equipment is provided with transparent solar panel, photosensitive inductor and light trap, photosensitive inductor pass through the leaded light route with the light trap is connected, the method includes:
obtaining a target generating current output by the transparent solar panel;
determining the light intensity of target environment light corresponding to the target generating current according to a preset mapping relation between the generating current and the light intensity;
the obtaining of the target generated current output by the transparent solar panel comprises:
under the condition that a touch area of a display screen of the electronic equipment touched by a user meets a preset condition, acquiring a target generating current output by the transparent solar panel;
under the condition that a touch area of a display screen of the electronic equipment touched by a user does not meet a preset condition, determining the light intensity of the target environment light according to the output data of the photosensitive sensor;
wherein, the touch area of the display screen of the user touch electronic equipment meets the preset conditions, including: the touch control area of the display screen of the electronic equipment touched by the user comprises a first touch control area and a second touch control area, the first touch control area is an area of a first preset range comprising the light holes, and the second touch control area is an area of a second preset range, which is not overlapped with the first touch control area, in the display screen of the electronic equipment; the first touch area and the second touch area are respectively left and right side areas of the electronic equipment in the transverse direction.
2. The method of claim 1, wherein after determining the target ambient light intensity corresponding to the target generated current, further comprising:
and adjusting the backlight brightness of the display screen of the electronic equipment to the target backlight brightness corresponding to the target ambient light intensity according to the target ambient light intensity and the preset corresponding relation between the light intensity and the backlight.
3. The method of claim 1 or 2, wherein the obtaining the target generation current output by the transparent solar panel comprises:
periodically acquiring target generating current output by the transparent solar panel;
the determining the light intensity of the target environment light corresponding to the target generating current according to the preset mapping relation between the generating current and the light intensity comprises the following steps:
under the condition that the target generating current obtained in the current ith period is different from the generating current obtained in the ith-1 period, determining the light intensity of the target environment light corresponding to the target generating current according to the preset mapping relation;
wherein i is an integer greater than 1.
4. The method according to claim 1 or 2, wherein the electronic device is further provided with a light-sensitive sensor and a light-transmissive hole, the light-sensitive sensor being connected to the light-transmissive hole through a light-conductive path;
the obtaining of the target generated current output by the transparent solar panel comprises:
under the condition that the light holes are in a shielding state, acquiring target generating current output by the transparent solar panel;
and under the condition that the light hole is not in a shielding state, determining the light intensity of the target environment light according to the output data of the photosensitive sensor.
5. The method according to claim 1 or 2, wherein after determining the target ambient light intensity corresponding to the target generated current, further comprising:
and outputting a first prompt, wherein the first prompt is used for indicating that the brightness of the outside light changes.
6. The utility model provides an electronic equipment, its characterized in that, electronic equipment is provided with transparent solar panel, photosensitive induction ware and light trap, photosensitive induction ware pass through the leaded light route with the light trap is connected, electronic equipment includes:
the current acquisition module is used for acquiring target generation current output by the transparent solar panel;
the light intensity determination module is used for determining the light intensity of target environment light corresponding to the target generating current according to the preset mapping relation between the generating current and the light intensity;
a contact detection module to:
under the condition that a touch area of a display screen of the electronic equipment touched by a user meets a preset condition, acquiring a target generating current output by the transparent solar panel;
under the condition that a touch area of a display screen of the electronic equipment touched by a user does not meet a preset condition, determining the light intensity of the target environment light according to the output data of the photosensitive sensor;
wherein, the touch area of the display screen of the user touch electronic equipment meets the preset conditions, including: the touch control area of the display screen of the electronic equipment touched by the user comprises a first touch control area and a second touch control area, the first touch control area is an area of a first preset range comprising the light hole, and the second touch control area is an area of a second preset range which is not overlapped with the first touch control area in the display screen of the electronic equipment; the first touch area and the second touch area are respectively areas on the left side and the right side of the electronic equipment in the transverse direction.
7. An electronic device comprising a transparent solar panel, a processor, a memory, and a computer program stored on the memory and executable on the processor, the computer program when executed by the processor implementing the steps of the ambient light detection method according to any one of claims 1 to 5.
8. The electronic device of claim 7, wherein the display cover of the electronic device is the transparent solar panel.
9. A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, which computer program, when being executed by a processor, realizes the steps of the ambient light detection method according to any one of claims 1 to 5.
CN202010238701.4A 2020-03-30 2020-03-30 Ambient light detection method, electronic device, and medium Active CN111366240B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010238701.4A CN111366240B (en) 2020-03-30 2020-03-30 Ambient light detection method, electronic device, and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010238701.4A CN111366240B (en) 2020-03-30 2020-03-30 Ambient light detection method, electronic device, and medium

Publications (2)

Publication Number Publication Date
CN111366240A CN111366240A (en) 2020-07-03
CN111366240B true CN111366240B (en) 2022-11-22

Family

ID=71210651

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010238701.4A Active CN111366240B (en) 2020-03-30 2020-03-30 Ambient light detection method, electronic device, and medium

Country Status (1)

Country Link
CN (1) CN111366240B (en)

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101521934B1 (en) * 2009-03-19 2015-05-28 엘지전자 주식회사 Portable terminal and display controlliing method of the same
CN104765422A (en) * 2015-04-28 2015-07-08 小米科技有限责任公司 Screen module of mobile equipment and mobile equipment
CN106057170A (en) * 2016-06-30 2016-10-26 联想(北京)有限公司 Adjusting method and electronic equipment
CN107426428A (en) * 2017-07-26 2017-12-01 北京小米移动软件有限公司 Electronic equipment and display lightness regulating method
CN107990978A (en) * 2017-11-22 2018-05-04 广东欧珀移动通信有限公司 Environment light detection method, device, storage medium and electronic equipment

Also Published As

Publication number Publication date
CN111366240A (en) 2020-07-03

Similar Documents

Publication Publication Date Title
CN108459797B (en) Control method of folding screen and mobile terminal
CN110784637B (en) Camera module and electronic equipment
CN109739394B (en) SAR value processing method and mobile terminal
CN108008859B (en) Screen control method and mobile terminal
CN108628565A (en) A kind of mobile terminal operating method and mobile terminal
CN107635072B (en) Control method of mobile terminal and mobile terminal
CN108681413B (en) Control method of display module and mobile terminal
CN110061557B (en) Charging method of wearable device, wearable device and readable storage medium
CN108984145B (en) Brightness adjusting method and electronic equipment
CN108173993A (en) A kind of camera module, control method and mobile terminal
WO2020020060A1 (en) Fill-light module, fingerprint identification method, and terminal device
CN110531915A (en) Screen operating method and terminal device
CN109558046A (en) A kind of information display method and terminal device
CN110197159B (en) Fingerprint acquisition method and terminal
CN108111750A (en) A kind of zooming adjustment method and mobile terminal
CN110300286A (en) A kind of image display method and terminal
CN108170310B (en) Touch screen control method and mobile terminal
CN107888780B (en) Illumination control method of mobile terminal and mobile terminal
CN111310677B (en) Fingerprint image processing method and electronic equipment
KR20220166853A (en) Display method and electronic device
CN109343811A (en) A kind of display adjusting method and terminal device
CN110740214B (en) Prompting method, terminal and computer readable storage medium
CN110471808B (en) Pressure key detection method and device and mobile terminal
CN111366240B (en) Ambient light detection method, electronic device, and medium
CN109947345B (en) Fingerprint identification method and terminal equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant