CN111107616A - Light sensor control method and device and terminal - Google Patents

Light sensor control method and device and terminal Download PDF

Info

Publication number
CN111107616A
CN111107616A CN201911359885.3A CN201911359885A CN111107616A CN 111107616 A CN111107616 A CN 111107616A CN 201911359885 A CN201911359885 A CN 201911359885A CN 111107616 A CN111107616 A CN 111107616A
Authority
CN
China
Prior art keywords
light intensity
light
state
photodiode
preset
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.)
Pending
Application number
CN201911359885.3A
Other languages
Chinese (zh)
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.)
Huizhou TCL Mobile Communication Co Ltd
Original Assignee
Huizhou TCL 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 Huizhou TCL Mobile Communication Co Ltd filed Critical Huizhou TCL Mobile Communication Co Ltd
Priority to CN201911359885.3A priority Critical patent/CN111107616A/en
Publication of CN111107616A publication Critical patent/CN111107616A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0261Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level
    • H04W52/0267Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level by controlling user interface components
    • H04W52/027Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level by controlling user interface components by controlling a display operation or backlight unit
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Photometry And Measurement Of Optical Pulse Characteristics (AREA)

Abstract

The embodiment of the application discloses a light sensor control method, a device and a terminal, which comprise the following steps: acquiring preset light intensity; numbering the photosensitive tubes by adopting a preset numbering rule; setting the on or off state of the photosensitive tube according to a preset light intensity interval to generate a photosensitive tube switching sequence; the method comprises the steps of obtaining light intensity to be detected according to light to be detected, calling a photosensitive tube switch sequence corresponding to at least one preset light intensity interval according to the light intensity to be detected, and controlling the photosensitive tube to be opened or closed, and the embodiment of the application also discloses a light sensor control device and a terminal; the scheme that this application embodiment provided aims at when using light sensor in the terminal, makes the inside a plurality of photosensitive tubes of light sensor open by the selectivity through effectual control, reduces the consumption of terminal electric quantity to reduce the consumption when using terminal.

Description

Light sensor control method and device and terminal
Technical Field
The embodiment of the application relates to the technical field of sensor control, in particular to a light sensor control method, a light sensor control device and a terminal.
Background
With the development of technology, terminals increasingly become electronic devices which are indispensable to people in life and work. In order to bring the best visual effect to users, most terminals are provided with light sensors, so that the terminal can adjust the brightness of a terminal screen according to the light intensity, automatically adjust the brightness of a terminal equipment screen, and adapt to the use environment of the users.
In the research and the practice process to prior art, the inventor of this application embodiment discovers, in order to guarantee the precision that detects light intensity, light intensity in the environment is detected to inside a plurality of phototubes that are provided with usually of light sensor among the prior art, but when external light intensity was high or light intensity was low when using, the inside a plurality of phototubes of light sensor all can open simultaneously and detect light, the inside a plurality of phototubes of light sensor open simultaneously and can accelerate the consumption of terminal electric quantity, thereby it is great to lead to the consumption of terminal when the use.
Disclosure of Invention
In view of the defects of the prior art, embodiments of the present application provide a method and an apparatus for controlling a light sensor, and a terminal, so as to solve the problem that in the prior art, a plurality of photodiodes in the light sensor are simultaneously turned on to accelerate consumption of electric power of a mobile terminal, which results in large power consumption of the mobile terminal during use.
In a first aspect, an embodiment of the present application provides a light sensor control method, where the method includes:
acquiring preset light intensity;
numbering the photosensitive tubes by adopting a preset numbering rule;
setting the on or off state of the photosensitive tube according to a preset light intensity interval to generate a photosensitive tube switching sequence;
and acquiring the intensity of light to be detected according to the light to be detected, calling a photosensitive tube switch sequence corresponding to at least one preset light intensity interval according to the intensity of the light to be detected in the preset light intensity interval, and controlling the photosensitive tube to be opened or closed.
In some embodiments, the preset numbering rule indicates that the photodiode is preset to be in an on state by using a first state value, and the photodiode is preset to be in an off state by using a second state value.
In some embodiments, the predetermined light intensity interval is composed of a plurality of predetermined light intensities.
In some embodiments, the predetermined light intensity intervals include a first light intensity interval, a second light intensity interval, a third light intensity interval, and a fourth light intensity interval.
In some embodiments, the first light intensity interval ranges between 0lux and 50lux, the second light intensity interval ranges between 50lux and 300lux, the third light intensity interval ranges between 300lux and 1000lux, and the fourth light intensity interval ranges greater than 1000 lux.
In some embodiments, the on or off state of the photosensitive tubes is set according to a preset ratio corresponding to the preset light intensity interval, so as to obtain the number of the photosensitive tubes on or off.
In some embodiments, a photodiode switching sequence is generated according to the number of the photodiodes turned on or off and the preset numbering rule.
In some embodiments, all of the photosensitive tubes are turned on to detect the light to be detected, and the intensity of the light to be detected is obtained.
In a second aspect, an embodiment of the present application further provides a light sensor control device, including:
the acquisition module is used for acquiring preset light intensity and light to be detected;
the setting module is used for numbering the photosensitive tubes by adopting a preset numbering rule; the light sensitive tube is used for controlling the light sensitive tube to be opened or closed according to the preset light intensity, and the state of the light sensitive tube is set;
the detection module is used for detecting that the intensity of the light to be detected is within a preset light intensity interval;
the calling module is used for calling a photosensitive tube switch sequence corresponding to a preset light intensity interval;
and the processing module is used for enabling the photosensitive sensor to be switched on or switched off according to the photosensitive tube switching sequence.
In a third aspect, an embodiment of the present application provides a terminal, including the light sensor control device according to the second aspect, capable of performing the operations in the light sensor control method according to the first aspect.
Compared with the prior art, the embodiment of the application provides a light sensor control method, a device and a terminal, wherein the on-off state of each photosensitive tube is represented by a sequence formed by each numerical value by setting the corresponding numerical value of each photosensitive tube in the light sensor; the method comprises the steps of detecting the setting of a photosensitive tube corresponding to various light environment changes in advance, obtaining a corresponding numerical value sequence according to the setting, and storing the numerical value sequence in a mobile terminal memory; when the terminal is in a bright screen state, the current light change is detected, and when the detected light intensity is in at least one preset light intensity interval, a photosensitive tube switch sequence corresponding to the preset light intensity interval is called to control the photosensitive tube to be switched on or switched off. The embodiment of the application aims at enabling a plurality of photosensitive tubes inside the light sensor to be selectively opened through effective control when the light sensor is used in the terminal, so that the power consumption of the terminal is reduced, and the power consumption of the terminal in use is reduced.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic flowchart of a control method of a light sensor according to an embodiment of the present disclosure;
FIG. 2 is a schematic diagram illustrating the number of photodiodes provided in an embodiment of the present application;
FIG. 3a is a schematic diagram illustrating a predetermined numbering rule for a plurality of photodiodes according to an embodiment of the present application;
FIG. 3b is a schematic diagram illustrating a predetermined numbering rule for photodiodes according to an embodiment of the present invention;
FIG. 4a is a schematic diagram illustrating another preset numbering rule for a plurality of photodiodes according to an embodiment of the present disclosure;
FIG. 4b is a schematic diagram illustrating another preset numbering rule for a plurality of photodiodes according to an embodiment of the present application;
FIG. 5a is a photodiode switching sequence of a plurality of photodiodes provided in an embodiment of the present application;
FIG. 5b is a photodiode switching sequence for a plurality of photodiodes provided in an embodiment of the present application;
FIG. 6a is a photodiode switching sequence for a plurality of photodiodes provided in an embodiment of the present application;
FIG. 6b is a photodiode switching sequence for a plurality of photodiodes provided in an embodiment of the present application;
FIG. 7a is a photodiode switching sequence for a plurality of photodiodes provided in an embodiment of the present application;
FIG. 7b is a photodiode switching sequence for a plurality of photodiodes provided in an embodiment of the present application;
FIG. 8a is a photodiode switching sequence for a plurality of photodiodes provided in an embodiment of the present application;
FIG. 8b is a photodiode switching sequence for a plurality of photodiodes provided in an embodiment of the present application;
fig. 9 is a schematic view of a scene of a light sensor control method according to an embodiment of the present application;
fig. 10 is a schematic flow chart of a light sensor control method according to an embodiment of the present application;
fig. 11 is a structural diagram of a light sensor device according to an embodiment of the present application;
fig. 12 is a schematic structural diagram of a terminal according to an embodiment of the present application.
Detailed Description
The terms "first," "second," and the like in the description and in the claims of the embodiments of the application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments described herein are capable of operation in other sequences than illustrated or otherwise described herein. The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. 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 application.
The embodiment of the application provides a light sensor control method, a light sensor control device and a terminal. The light sensor control method can be integrated in a terminal, such as a mobile phone, a tablet computer, a notebook computer or a personal computer. The light sensor control method will be described in detail below. It should be noted that the following description of the embodiments is not intended to limit the preferred order of the embodiments.
Referring to fig. 1, fig. 1 is a schematic flowchart illustrating a method for controlling a light sensor according to an embodiment of the present application, including:
101. acquiring preset light intensity;
specifically, open or the off-state in order to set up different photosensitive tubes, acquire photosensitive tube switching sequence, the terminal is opened whole photosensitive tubes and is detected and wait to detect light, obtains to detect light intensity, and light intensity through obtaining under the various light environment changes and corresponding obtains to predetermine light intensity, sets up the photosensitive tube that corresponds according to a plurality of light intensity and opens or the off-state to obtain corresponding photosensitive tube switching sequence. The terminal includes, but is not limited to, a mobile phone, a notebook computer, a tablet computer, and the like.
102. Numbering the photosensitive tubes by adopting a preset numbering rule;
specifically, in order to obtain a switching sequence of the photo sensor, in the embodiment of the present application, a plurality of photo sensors in the photo sensor are numbered according to a preset numbering rule, in the embodiment of the present application, as shown in fig. 2, a plurality of photo sensor banks include a first photo sensor 201, a second photo sensor 202, a third photo sensor 203, and a fourth photo sensor 204, it should be noted that the limitation is set only for the detailed description of the scheme in the embodiment of the present application, and the limitation is to specifically limit the number of the photo sensors.
The embodiment of the application specifically has the following two possible implementation manners:
optionally, in a first possible implementation manner, the preset numbering rule in the embodiment of the present application indicates that the photosensitive tube is preset to be in an on state by using the first state value, and indicates that the photosensitive tube is preset to be in an off state by using the second state value.
The preset numbering rule is as follows: numbering a plurality of photosensitive tubes corresponding to the counting sequence according to a first counting mode, wherein the first counting mode represents that the plurality of photosensitive tubes are all in an open state; and numbering the photosensitive tubes corresponding to the counting sequence according to a second counting mode, wherein the second counting mode indicates that the photosensitive tubes are in a closed state. Specifically, the multiple photodiodes are numbered according to a preset numbering rule, the numbers can be written in two ways by setting corresponding numerical values of the multiple photodiodes in the light sensor, a first counting mode represents that the corresponding multiple photodiodes are in an open state, a second counting mode represents that the multiple photodiodes are in a closed state, specifically, the first counting mode can be set to count for arabic numerals, the arabic numerals "1, 2, 3 and 4" are used for representing that the photodiodes are preset in the open state, the second counting mode is set to count for Chinese numerals, and the Chinese numerals "one, two, three and four" are used for representing that the photodiodes are preset in the closed state; for example, as shown in fig. 3a and 3b, the plurality of photo-sensitive tubes includes a first photo-sensitive tube 201, a second photo-sensitive tube 202, a third photo-sensitive tube 203 and a fourth photo-sensitive tube 204, wherein the arabic numeral "1" indicates that the first photo-sensitive tube 201 is in an open state, the arabic numeral "2" indicates that the second photo-sensitive tube 202 is in an open state, the arabic numeral "3" indicates that the third photo-sensitive tube 203 is in an open state, and the arabic numeral "4" indicates that the fourth photo-sensitive tube 204 is in an open state; the Chinese number "one" indicates that the first photodiode 201 is in an off state, the Chinese number "two" indicates that the second photodiode 202 is in an off state, the Chinese number "three" indicates that the third photodiode 203 is in an off state, and the Chinese number "four" indicates that the fourth photodiode 204 is in an off state. Each photosensitive tube has two state attributes through two digital codes at the same time, and the required attributes are called according to actual needs.
Optionally, in a second possible implementation manner, the preset numbering rule in the embodiment of the present application indicates that the photosensitive tube is preset to be in an on state by using the first state value, and indicates that the photosensitive tube is preset to be in an off state by using the second state value.
The preset numbering rule in the embodiment of the application is as follows: numbering the at least two photosensitive tubes by adopting a first numerical value, wherein the first numerical value represents that the at least two photosensitive tubes are in an open state; numbering the at least two photosensitive tubes by adopting a second numerical value, wherein the second numerical value indicates that the at least two photosensitive tubes are in a closed state, numbering the plurality of photosensitive tubes by adopting a preset numbering rule, setting the corresponding numerical values of the plurality of photosensitive tubes in the light sensor, setting a first numerical value of '1' to indicate that the plurality of photosensitive tubes are in an open state, and setting a first numerical value of '0' to indicate that the plurality of photosensitive tubes are in a closed state; for example, as shown in fig. 4a and 4b, the plurality of photo-sensitive tubes includes a first photo-sensitive tube 201, a second photo-sensitive tube 202, a third photo-sensitive tube 203 and a fourth photo-sensitive tube 204, wherein the arabic numeral "1" indicates that the first photo-sensitive tube 201, the second photo-sensitive tube 202, the third photo-sensitive tube 203 and the fourth photo-sensitive tube 204 are in an on state; the arabic numeral "0" indicates that the first photodiode 201, the second photodiode 202, the third photodiode 203, and the fourth photodiode 204 are in an off state. Each photosensitive tube has two state attributes through two digital codes at the same time, and the required attributes are called according to actual needs.
103. And setting the on-off state of the photosensitive tube according to a preset light intensity interval to obtain a photosensitive tube switching sequence.
Specifically, the preset light intensity interval in the embodiment of the present application includes a first light intensity interval, a second light intensity interval, a third light intensity interval, and a fourth light intensity interval, where the first light intensity interval ranges between 0lux and 50lux, the second light intensity interval ranges between 50lux and 300lux, the third light intensity interval ranges between 300lux and 1000lux, and the fourth light intensity interval ranges greater than 1000 lux.
Optionally, setting the on or off state of the photosensitive tubes according to a preset ratio corresponding to a preset light intensity interval to obtain the number of the photosensitive tubes on or off, and setting the photosensitive tubes to be 25% on according to the first light intensity interval; setting the photosensitive tube to be opened by 50% according to the second light intensity interval; setting 75% of the photosensitive tube to be opened according to the third light intensity interval; setting the photosensitive tube to be opened by 100% according to the fourth light intensity interval, specifically as follows:
setting the photosensitive tubes to be opened by 25% according to a first light intensity interval, and when the preset light intensity meets the first light intensity interval, opening 25% of the photosensitive tubes in the plurality of photosensitive tubes, so that the 25% of the photosensitive tubes in the plurality of photosensitive tubes are set to be in an opened state, and the rest of the photosensitive tubes are set to be in a closed state; for example, the plurality of photodiodes specifically include a first photodiode 201, a second photodiode 202, a third photodiode 203, and a fourth photodiode 204, and when the preset light intensity satisfies the first light intensity interval, 25% of the photodiodes in the plurality of photodiodes need to be turned on, so that the state of one of the plurality of photodiodes is set to be turned on, and the states of the three photodiodes are set to be turned off.
Setting the photosensitive tubes to be opened by 50% according to a second light intensity interval, and when the preset light intensity meets the second light intensity interval, opening 50% of the photosensitive tubes in the plurality of photosensitive tubes, so that the state of 50% of the photosensitive tubes in the plurality of photosensitive tubes is set to be in an opened state, and the states of the rest photosensitive tubes are set to be in a closed state; for example, the plurality of photodiodes specifically include a first photodiode 201, a second photodiode 202, a third photodiode 203, and a fourth photodiode 204, and when the preset light intensity satisfies the second light intensity interval, 50% of the number of photodiodes in the plurality of photodiodes need to be turned on, so that two photodiodes in the plurality of photodiodes are set to be turned on, and two photodiodes are set to be turned off.
Setting the photosensitive tubes to be opened by 75% according to a third light intensity interval, and when the preset light intensity meets the first light intensity interval, opening 75% of the photosensitive tubes in the plurality of photosensitive tubes, so that the state of 75% of the photosensitive tubes in the plurality of photosensitive tubes is set to be an opened state, and the states of the rest photosensitive tubes are set to be closed states; for example, the plurality of photodiodes specifically include a first photodiode 201, a second photodiode 202, a third photodiode 203, and a fourth photodiode 204, and when the preset light intensity satisfies the third light intensity interval, 75% of the photodiodes in the plurality of photodiodes need to be turned on, so that the state of three photodiodes in the plurality of photodiodes is set to be turned on, and the state of one photodiode is set to be turned off.
Setting the photosensitive tubes to be opened by 100% according to a fourth light intensity interval, and when the preset light intensity meets the fourth light intensity interval, opening 100% of the photosensitive tubes in the plurality of photosensitive tubes, so that the state of all the photosensitive tubes in the plurality of photosensitive tubes is set to be an open state; for example, the plurality of photodiodes specifically include a first photodiode 201, a second photodiode 202, a third photodiode 203, and a fourth photodiode 204, and when the preset light intensity satisfies the fourth light intensity interval, 100% of the photodiodes in the plurality of photodiodes need to be turned on, so that all the states of four photodiodes in the plurality of photodiodes are set to be turned on.
Specifically, according to the number of the phototubes that open or close and preset numbering rule, generate the phototube switching sequence, in the embodiment of the present application, a plurality of phototube bodies include first phototube 201, second phototube 202, third phototube 203 and fourth phototube 204, and the number of the phototube that opens or closes is determined according to the light intensity interval that is established that preset light intensity satisfies, and the phototube switching sequence is generated in combination with the preset numbering rule, specifically as follows:
1. when the preset light intensity meets the first light intensity interval:
when presetting light intensity and satisfying first light intensity interval, need open 25% photosensitive tube quantity in a plurality of photosensitive tubes, consequently set up the state of a photosensitive tube in a plurality of photosensitive tubes for the open mode, the state of three photosensitive tube sets up to the closed mode, and is optional, can adopt to preset the numbering rule to be: the first state value is used to indicate that the photodiode is preset to an on state, and the second state value is used to indicate that the photodiode is preset to an off state.
As shown in fig. 5a, optionally, the first counting mode may be set to count with arabic numerals, where arabic numerals "1, 2, 3, and 4" are used to indicate that the phototube is preset to be in an on state, the second counting mode may be set to count with chinese numerals, where chinese numerals "one, two, three, and four" are used to indicate that the phototube is preset to be in an off state; when the preset light intensity meets the first light intensity interval, setting the state of one photosensitive tube in the multiple photosensitive tubes as an on state, and setting the states of three photosensitive tubes as an off state, so that the combination of the photosensitive tube switching sequences of '1, two, three, four', 'one, 2, three, four', 'one, two, 3, four', 'one, two, three, 4', and the like can be obtained, more specific combination modes can be combined according to the method, and are not described herein, wherein the photosensitive tube switching sequences of '1, two, three, four' indicate that the first photosensitive tube 201 is in the on state, the second photosensitive tube 202 is in the off state, the third photosensitive tube 203 is in the off state, and the fourth photosensitive tube 204 is in the off state; the switching sequence of the photodiodes is "one, 2, three, four", which means that the first photodiode 201 is in the off state, the second photodiode 202 is in the on state, the third photodiode 203 is in the off state, and the fourth photodiode 204 is in the off state; the switching sequence of the photo-sensitive cells is "one, two, 3, four", which means that the first photo-sensitive cell 201 is in the off state, the second photo-sensitive cell 202 is in the off state, the third photo-sensitive cell 203 is in the on state, and the fourth photo-sensitive cell 204 is in the off state; the photodiode switch sequence is "one, two, three, 4" indicating that the first photodiode 201 is in an off state, the second photodiode 202 is in an off state, the third photodiode 203 is in an off state, and the fourth photodiode 204 is in an on state.
As shown in fig. 5b, optionally, the at least two photodiodes are numbered by using a first value, where the first value indicates that the at least two photodiodes are both in an open state; numbering the at least two photosensitive tubes by using a second numerical value, wherein the second numerical value indicates that the at least two photosensitive tubes are in a closed state; for example, a first value "1" may be set to indicate that the photodiodes are all in an on state, and a first value "0" may be set to indicate that the photodiodes are all in an off state; when presetting light intensity and satisfying first light intensity interval, the state that sets up a photosensitive tube in a plurality of photosensitive tubes is the on-state, and the state of three photosensitive tube sets up to the off-state, consequently can obtain the photosensitive tube switching sequence and be: combinations such as "1, 0", "0, 1, 0", "0, 1", and more specific combinations may be combined according to the method, which is not described herein, where the switching sequence of the photodiodes is "1, 0" to indicate that the first photodiode 201 is in an on state, the second photodiode 202 is in an off state, the third photodiode 203 is in an off state, and the fourth photodiode 204 is in an off state; the photodiode switching sequence is 0, 1, 0 "indicating that the first photodiode 201 is in an off state, the second photodiode 202 is in an on state, the third photodiode 203 is in an off state, and the fourth photodiode 204 is in an off state; the switching sequence of the photodiodes is "0, 1, 0" indicating that the first photodiode 201 is in the off state, the second photodiode 202 is in the off state, the third photodiode 203 is in the on state, and the fourth photodiode 204 is in the off state; the photodiode switching sequence is "0, 1" indicating that the first photodiode 201 is in an off state, the second photodiode 202 is in an off state, the third photodiode 203 is in an off state, and the fourth photodiode 204 is in an on state.
2. When the preset light intensity meets the second light intensity interval:
when predetermineeing light intensity and satisfying the interval of second light intensity, need open 50% photosensitive tube quantity in a plurality of photosensitive tubes, consequently set up the state of two photosensitive tubes in a plurality of photosensitive tubes for opening the state, the state of two photosensitive tubes sets up to the closed condition, and is optional, can adopt to predetermine the numbering rule to be: the first state value is used to indicate that the photodiode is preset to an on state, and the second state value is used to indicate that the photodiode is preset to an off state.
As shown in fig. 6a, optionally, the first counting mode may be set to count with arabic numerals, where arabic numerals "1, 2, 3, and 4" are used to indicate that the phototube is preset to be in an on state, the second counting mode may be set to count with chinese numerals, where chinese numerals "one, two, three, and four" are used to indicate that the phototube is preset to be in an off state; when the preset light intensity meets the second light intensity interval, the states of two photosensitive tubes in the plurality of photosensitive tubes are set to be the on states, and the states of the two photosensitive tubes are set to be the off states, so that the combination of the photosensitive tube switching sequences of 1, 2, three, four, one, two, 3, 4, 1, two, three, 4 and the like can be obtained, more specific combination modes can be combined according to the method, and are not described herein, wherein the photosensitive tube switching sequences of 1, 2, three and four indicate that the first photosensitive tube 201 and the second photosensitive tube 202 are in the on states and the third photosensitive tube 203 and the fourth photosensitive tube 204 are in the off states; the switching sequence of the photodiodes is "one, 2, 3, four", which indicates that the second photodiode 202 and the third photodiode 203 are turned on and the first photodiode 201 and the fourth photodiode 204 are turned off; the switching sequence of the photodiodes is "one, two, 3, 4", which means that the third photodiode 203 and the fourth photodiode 204 are turned on and the first photodiode 201 and the second photodiode 202 are turned off; the photodiode switch sequence is "1, two, three, 4" to indicate that the first photodiode 201 and the fourth photodiode 204 are turned on and the second photodiode 202 and the third photodiode 203 are turned off.
As shown in fig. 6b, optionally, the at least two photodiodes are numbered by using a first value, where the first value indicates that the at least two photodiodes are both in an open state; numbering the at least two photosensitive tubes by using a second numerical value, wherein the second numerical value indicates that the at least two photosensitive tubes are in a closed state; for example, a first value "1" may be set to indicate that the photodiodes are all in an on state, and a first value "0" may be set to indicate that the photodiodes are all in an off state; when the preset light intensity meets the second light intensity interval, the state of one photosensitive tube in the plurality of photosensitive tubes is set to be an open state, the state of three photosensitive tubes is set to be a closed state, and therefore the photosensitive tube switching sequence can be obtained as follows: combinations such as "1, 0", "0, 1, 0", "0, 1", "1, 0, 1", and more specific combinations may be combined according to the method, which is not described herein, where the photodiode switching sequence is "1, 0" to indicate that the first photodiode 201 and the second photodiode 202 are in an on state and the third photodiode 203 and the fourth photodiode 204 are in an off state; the switching sequence of the photodiodes is "0, 1, 0" indicating that the second photodiode 202 and the third photodiode 203 are in an on state and the first photodiode 201 and the fourth photodiode 204 are in an off state; the switching sequence of the photodiodes is "0, 1" indicating that the third photodiode 203 and the fourth photodiode 204 are in an on state and the first photodiode 201 and the second photodiode 202 are in an off state; the photodiode switch sequence is "1, 0, 1" indicating that the first photodiode 201 and the fourth photodiode 204 are turned on and the second photodiode 202 and the third photodiode 203 are turned off.
3. When the preset light intensity meets the third light intensity interval:
when predetermineeing light intensity and satisfying the interval of third light intensity, need open 75% photosensitive tube quantity in a plurality of photosensitive tubes, consequently set up the state of three photosensitive tube in a plurality of photosensitive tubes for opening the state, the state of a photosensitive tube sets up to the closed condition, and is optional, can adopt to predetermine the numbering rule to be: the first state value is used to indicate that the photodiode is preset to an on state, and the second state value is used to indicate that the photodiode is preset to an off state.
As shown in fig. 7a, optionally, the first counting mode may be set to count with arabic numerals, where arabic numerals "1, 2, 3, and 4" are used to indicate that the phototube is preset to be in an on state, the second counting mode may be set to count with chinese numerals, where chinese numerals "one, two, three, and four" are used to indicate that the phototube is preset to be in an off state; when the preset light intensity meets a third light intensity interval, setting the state of one of the photodiodes as an on state, and setting the states of three photodiodes as an off state, so that combinations of "1, 2, 3, four", "1, 2, three, 4", "1, two, 3, 4", "one, 2, 3, 4", and the like can be obtained as the photodiode switching sequence, more specific combinations can be combined according to the method, and are not described herein, wherein the photodiode switching sequence of "1, 2, 3, four" indicates that the first photodiode 201, the second photodiode 202, the third photodiode 203 are in the on state, and the fourth photodiode 204 is in the off state; the switching sequence of the photodiodes is "1, 2, three, 4", which means that the first photodiode 201, the second photodiode 202, and the fourth photodiode 204 are in an on state, and the third photodiode 203 is in an off state; the switching sequence of the photosensitive tube is "1, two, 3, 4", which means that the first photosensitive tube 201, the third photosensitive tube 203, the fourth photosensitive tube 204 are in an on state, and the second photosensitive tube 202 is in an off state; the photodiode switch sequence is "one, 2, 3, 4" to indicate that the second photodiode 202, the third photodiode 203, and the fourth photodiode 204 are turned on, and the first photodiode 201 is turned off.
As shown in fig. 7b, optionally, the at least two photodiodes are numbered by using a first value, where the first value indicates that the at least two photodiodes are both in an open state; numbering the at least two photosensitive tubes by using a second numerical value, wherein the second numerical value indicates that the at least two photosensitive tubes are in a closed state; for example, a first value "1" may be set to indicate that the photodiodes are all in an on state, and a first value "0" may be set to indicate that the photodiodes are all in an off state; when the predetermined light intensity satisfies the interval of third light intensity, the state that sets up a photosensitive tube in a plurality of photosensitive tubes is the on-state, and the state of three photosensitive tube sets up to the off-state, consequently can obtain the photosensitive tube switching sequence and be: combinations such as "1, 0", "1, 0, 1", "1, 0, 1", and more specific combinations may be combined according to the method, which is not described herein, where the switching sequence of the photodiodes is "1, and 0" to indicate that the first photodiode 201, the second photodiode 202, and the third photodiode 203 are in an on state, and the fourth photodiode 204 is in an off state; the switching sequence of the photodiodes is "1, 0, 1", which means that the first photodiode 201, the second photodiode 202, and the fourth photodiode 204 are in an on state, and the third photodiode 203 is in an off state; the switching sequence of the photosensitive tube is "1, 0, 1", which indicates that the first photosensitive tube 201, the third photosensitive tube 203, and the fourth photosensitive tube 204 are in an on state, and the second photosensitive tube 202 is in an off state; the switching sequence of the photodiodes is "0, 1" indicating that the second photodiode 202, the third photodiode 203, and the fourth photodiode 204 are turned on, and the first photodiode 201 is turned off.
4. When the preset light intensity meets the fourth light intensity interval:
when predetermineeing light intensity and satisfying the fourth light intensity interval, need open 100% photosensitive tube quantity in a plurality of photosensitive tubes, consequently set up the state of whole photosensitive tubes in a plurality of photosensitive tubes for opening the state, it is optional, can adopt to predetermine the numbering rule to be: the first state value is used to indicate that the photodiode is preset to an on state, and the second state value is used to indicate that the photodiode is preset to an off state.
As shown in fig. 8a, optionally, the first counting mode may be set to count with arabic numerals, where arabic numerals "1, 2, 3, and 4" are used to indicate that the phototube is preset to be in an on state, the second counting mode may be set to count with chinese numerals, where chinese numerals "one, two, three, and four" are used to indicate that the phototube is preset to be in an off state; when the preset light intensity satisfies the fourth light intensity interval, the states of all the photodiodes in the plurality of photodiodes are set to be on states, so that the photodiode switch sequence can be obtained as "1, 2, 3, 4", where the photodiode switch sequence of "1, 2, 3, 4" indicates that the first photodiode 201, the second photodiode 202, the third photodiode 203, and the fourth photodiode 204 are on states.
As shown in fig. 8b, optionally, the at least two photodiodes are numbered by using a first value, where the first value indicates that the at least two photodiodes are both in an open state; numbering the at least two photosensitive tubes by using a second numerical value, wherein the second numerical value indicates that the at least two photosensitive tubes are in a closed state; for example, a first value "1" may be set to indicate that the photodiodes are all in an on state, and a first value "0" may be set to indicate that the photodiodes are all in an off state; when the preset light intensity satisfies the fourth light intensity interval, the states of all the photodiodes in the plurality of photodiodes are set to be on states, so that the photodiode switch sequence can be obtained as "1, 1", where the photodiode switch sequence is "1, 1", which means that the first photodiode 201, the second photodiode 202, the third photodiode 203, and the fourth photodiode 204 are in on states.
In summary, the embodiment of the present application provides a method for controlling a light sensor, in which a sequence of values is formed to represent the on-off state of a photodiode by setting corresponding values of each photodiode inside the light sensor; the method comprises the steps of detecting the setting of a photosensitive tube corresponding to various light environment changes in advance, obtaining a corresponding numerical value sequence according to the setting, and storing the numerical value sequence in a mobile terminal memory; when the terminal is in a bright screen state, the current light change is detected, and when the detected light intensity is in at least one preset light intensity interval, a photosensitive tube switch sequence corresponding to the preset light intensity interval is called to control the photosensitive tube to be switched on or switched off. The embodiment of the application aims at enabling a plurality of photosensitive tubes inside the light sensor to be selectively opened through effective control when the light sensor is used in the terminal, so that the power consumption of the terminal is reduced, and the power consumption of the terminal in use is reduced.
Referring to fig. 9, fig. 9 is a schematic view illustrating a scene of a light sensor control method according to an embodiment of the present disclosure. When a user 901 triggers a terminal screen, the screen of the terminal 903 is lighted, the light intensity 902 of the current light is sensed by the light sensor 9031 of the terminal 903 device, light to be detected is obtained, a preset photosensitive tube switching sequence is called according to the light intensity to be detected to automatically adjust the number of photosensitive tubes in the light sensor 9031 which needs to be started, a plurality of photosensitive tubes inside the light sensor 9031 are selectively started through effective control, the power consumption of the terminal 903 is reduced, and therefore the power consumption of the terminal 903 in use is reduced.
Referring to fig. 10, fig. 10 is a schematic flowchart illustrating a method for controlling a light sensor according to an embodiment of the present disclosure. The embodiment of the application comprises the following steps:
1001. acquiring the intensity of light to be detected according to the light to be detected;
specifically, in this application embodiment, when the terminal screen is lighted, all the photodiodes are turned on to detect the brightness of the light at the current position to obtain the light to be detected, and the intensity of the light to be detected is obtained according to the light to be detected.
1002. And calling a photosensitive tube switch sequence corresponding to the preset light intensity interval to control the photosensitive tube to be switched on or switched off when the light intensity to be detected is within at least one preset light intensity interval.
Specifically, the light intensity to be detected is judged to be in at least one preset light intensity interval according to the specific light intensity numerical value of the light intensity to be detected, and a photosensitive tube switch sequence corresponding to the preset light intensity interval is called to control the photosensitive tube to be switched on or switched off.
Optionally, in a preset first light intensity interval, setting the state of one of the photodiodes as an on state, setting the states of three photodiodes as an off state, and obtaining that the photodiode switch sequence is "1, two, three, and four", more specific combination modes may be combined according to the method, which is not described herein, where the photodiode switch sequence is "1, two, three, and four" to indicate that the first photodiode 201 is an on state, the second photodiode 202 is an off state, the third photodiode 203 is an off state, and the fourth photodiode 204 is an off state. Therefore, when the light intensity to be detected is within the preset first light intensity interval, the photodiode switching sequence "1, two, three, four" corresponding to the preset first light intensity interval is called to control the first photodiode 201 to be turned on, the second photodiode 202 to be turned off, the third photodiode 203 to be turned off, and the fourth photodiode 204 to be turned off.
When the light intensity to be detected is within at least one preset light intensity interval, calling a photosensitive tube switch sequence corresponding to the preset light intensity interval, and controlling the photosensitive tube to be turned on or off according to the method, which is not described herein.
In summary, the embodiment of the present application provides a method for controlling a light sensor, in which a sequence of values is formed to represent the on-off state of a photodiode by setting corresponding values of each photodiode inside the light sensor; the method comprises the steps of detecting the setting of a photosensitive tube corresponding to various light environment changes in advance, obtaining a corresponding numerical value sequence according to the setting, and storing the numerical value sequence in a mobile terminal memory; when the terminal is in a bright screen state, the current light change is detected, and when the detected light intensity is in at least one preset light intensity interval, a photosensitive tube switch sequence corresponding to the preset light intensity interval is called to control the photosensitive tube to be switched on or switched off. The embodiment of the application aims at enabling a plurality of photosensitive tubes inside the light sensor to be selectively opened through effective control when the light sensor is used in the terminal, so that the power consumption of the terminal is reduced, and the power consumption of the terminal in use is reduced.
A method for controlling a light sensor in the embodiment of the present application is described above, and a device for performing the method for controlling a light sensor is described below.
Referring to fig. 11, as a schematic structural diagram of an apparatus 11 for controlling a light sensor shown in fig. 11, the apparatus 11 in the embodiment of the present application can implement steps corresponding to the light sensor control method executed in the embodiment corresponding to fig. 1 and fig. 10. The functions implemented by the apparatus 11 may be implemented by hardware, or may be implemented by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above functions, which may be software and/or hardware. The device 11 may include an obtaining module 111, a setting module 112, a detecting module 113, a calling module 114, and a processing module 115.
Specifically, the obtaining module 111 may be configured to obtain a preset light intensity and a light to be detected; the setting module 112 is used for numbering the photosensitive tubes by adopting a preset numbering rule, and is also used for controlling the photosensitive tubes to be opened or closed according to the preset light intensity and setting the states of the photosensitive tubes; the detection module 113 is used for detecting that the intensity of the light to be detected is within a preset light intensity interval; a calling module 114, configured to call a photodiode switch sequence corresponding to a preset light intensity interval; and the processing module 115 is used for enabling the photosensitive sensor to be switched on or switched off according to the switching sequence of the photosensitive tube.
The terminal device in the embodiment of the present application is described above from the perspective of the modular functional entity, and the terminal device in the embodiment of the present application is described below from the perspective of hardware processing. An embodiment of the present application further provides a mobile terminal, as shown in fig. 12, which shows a schematic structural diagram of a terminal according to an embodiment of the present application, where the terminal may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, and the like, and specifically:
as shown in fig. 12, the terminal may include Radio Frequency (RF) circuitry 121, memory 122 including one or more computer-readable storage media, an input unit 123, a display unit 124, a sensor 125, audio circuitry 126, a Wireless Fidelity (Wi-Fi) module 127, a processor 128 including one or more processing cores, and a power supply 129, among other components. Those skilled in the art will appreciate that the terminal structure shown in fig. 12 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. Wherein:
the RF circuit 121 may be used for receiving and transmitting signals during a message transmission or call, and in particular, for receiving downlink messages from a base station and then processing the received downlink messages by one or more processors 128; in addition, data relating to uplink is transmitted to the base station. In general, the RF circuitry 121 includes, but is not limited to, an antenna, at least one Amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the RF circuitry 121 may also communicate with networks and other devices via wireless communications. The wireless communication may use any communication standard or protocol, including but not limited to Global System for Mobile communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Messaging Service (SMS), etc.
The memory 122 may be used to store software programs and modules, and the processor 128 may execute various functional applications and data processing by operating the software programs and modules stored in the memory 122. The memory 122 may mainly include a program storage area and a data storage area, wherein the program storage 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 terminal, etc. Further, the memory 122 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. Accordingly, the memory 122 may also include a memory controller to provide the processor 128 and the input unit 123 with access to the memory 122. In the embodiment of the present application, the photodiode switch sequence generated by setting the on or off state of the photodiode according to the preset light intensity interval is stored in the memory 122, and when the light intensity to be detected is within at least one preset light intensity interval, the photodiode switch sequence corresponding to the preset light intensity interval in the memory 122 is called.
The input unit 123 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, in one particular embodiment, the input unit 123 may include a touch-sensitive surface as well as other input devices. The touch-sensitive surface, also referred to as a touch display screen or a touch pad, may collect touch operations by a user (e.g., operations by a user on or near the touch-sensitive surface using a finger, a stylus, or any other suitable object or attachment) thereon or nearby, and drive the corresponding connection device according to a predetermined program. Alternatively, the touch sensitive surface may comprise two parts, a touch detection means 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 it to touch point coordinates, and sends the touch point coordinates to the processor 128, and can receive and execute commands from the processor 128. In addition, touch sensitive surfaces may be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves. The input unit 123 may include other input devices in addition to the touch-sensitive surface. In particular, other input devices may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 124 may be used to display information input by or provided to the user and various graphical user interfaces of the terminal, which may be made up of graphics, text, icons, video, and any combination thereof. The Display unit 124 may include a Display panel, and optionally, the Display panel may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch-sensitive surface may overlay the display panel, and when a touch operation is detected on or near the touch-sensitive surface, the touch operation is transmitted to the processor 128 to determine the type of touch event, and the processor 128 then provides a corresponding visual output on the display panel according to the type of touch event.
The terminal may also include at least one sensor 125, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel according to the brightness of ambient light, and a proximity sensor that may turn off the display panel and/or the backlight when the terminal is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when the mobile phone is stationary, and can be used for applications of recognizing the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured in the terminal, detailed description is omitted here. In the embodiment of the present application, the at least one sensor 125 included in the terminal includes a light sensor for acquiring the predetermined light intensity and the light intensity to be detected.
Audio circuitry 126, a speaker, and a microphone may provide an audio interface between the user and the terminal. The audio circuit 126 may transmit the electrical signal converted from the received audio data to a speaker, and convert the electrical signal into an audio signal for output; on the other hand, the microphone converts the collected sound signal into an electric signal, which is received by the audio circuit 126 and converted into audio data, which is then processed by the audio data output processor 128, and then passed through the RF circuit 121 to be transmitted to, for example, another terminal, or the audio data is output to the memory 122 for further processing. The audio circuit 126 may also include an earbud jack to provide communication of peripheral headphones with the terminal.
Wi-Fi belongs to short-distance wireless transmission technology, and the terminal can help a user to receive and send e-mails, browse webpages, access streaming media and the like through the Wi-Fi module 127, and provides wireless broadband internet access for the user. Although fig. 12 shows the Wi-Fi module 127, it is understood that it does not belong to the essential constitution of the terminal, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 128 is a control center of the terminal, connects various parts of the entire handset using various interfaces and lines, and performs various functions of the terminal and processes data by operating or executing software programs and/or modules stored in the memory 122 and calling data stored in the memory 122, thereby integrally monitoring the handset. Alternatively, processor 128 may include one or more processing cores; preferably, the processor 128 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 128. In the embodiment of the present application, the processor 128 numbers the photodiodes according to a preset numbering rule, and sets the on or off states of the photodiodes according to a preset light intensity interval to generate a photodiode switching sequence; and acquiring the intensity of light to be detected according to the light to be detected, and calling a photosensitive tube switch sequence corresponding to at least one preset light intensity interval when the processor 128 detects that the intensity of the light to be detected is within at least one preset light intensity interval to control the photosensitive tube to be switched on or switched off.
The terminal also includes a power supply 129 (e.g., a battery) for powering the various components, which may preferably be logically connected to the processor 128 via a power management system that may be used to manage charging, discharging, and power consumption. The power supply 129 may also include any component of one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
Although not shown, the terminal may further include a camera, a bluetooth module, and the like, which will not be described herein. Specifically, in this embodiment, the processor 128 in the terminal loads the executable file corresponding to the process of one or more application programs into the memory 122 according to the following instructions, and the processor 128 runs the application programs stored in the memory 122, thereby implementing various functions.
The light sensor control method, the light sensor control device and the terminal provided by the embodiment of the present application are introduced in detail, a specific example is applied in the embodiment of the present application to explain the principle and the implementation manner of the present application, and the description of the embodiment is only used to help understanding the method and the core idea of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (10)

1. A light sensor control method, comprising:
acquiring preset light intensity;
numbering the photosensitive tubes by adopting a preset numbering rule;
setting the on or off state of the photosensitive tube according to a preset light intensity interval to generate a photosensitive tube switching sequence;
and acquiring the intensity of light to be detected according to the light to be detected, calling a photosensitive tube switch sequence corresponding to at least one preset light intensity interval according to the intensity of the light to be detected in the preset light intensity interval, and controlling the photosensitive tube to be opened or closed.
2. The method of claim 1, wherein the predetermined numbering convention is such that a first state value indicates that the photodiode is predetermined to be in an on state and a second state value indicates that the photodiode is predetermined to be in an off state.
3. The method of claim 1, wherein the predetermined light intensity interval is composed of a plurality of predetermined light intensities.
4. The method of claim 3, wherein the predetermined light intensity intervals comprise a first light intensity interval, a second light intensity interval, a third light intensity interval, and a fourth light intensity interval.
5. The method of claim 4, wherein the first light intensity interval ranges between 0lux and 50lux, the second light intensity interval ranges between 50lux and 300lux, the third light intensity interval ranges between 300lux and 1000lux, and the fourth light intensity interval ranges greater than 1000 lux.
6. The method of claim 4, wherein setting the on or off state of the photodiode according to a predetermined light intensity interval to obtain a photodiode switching sequence comprises:
and setting the opening or closing state of the photosensitive tubes according to the preset light intensity interval corresponding to the preset proportion to obtain the opening or closing quantity of the photosensitive tubes.
7. The method of claim 2, wherein setting the on or off state of the photodiode according to a predetermined light intensity interval to obtain a photodiode switching sequence comprises:
and generating a photosensitive tube switching sequence according to the number of the photosensitive tubes which are switched on or switched off and the preset numbering rule.
8. The method according to claim 1, wherein the obtaining the intensity of the light to be detected according to the light to be detected comprises:
and opening all the photosensitive tubes to detect the light to be detected, and obtaining the intensity of the light to be detected.
9. A light sensor control device, comprising:
the acquisition module is used for acquiring preset light intensity and light to be detected;
the setting module is used for numbering the photosensitive tubes by adopting a preset numbering rule; the light sensitive tube is used for controlling the light sensitive tube to be opened or closed according to the preset light intensity, and the state of the light sensitive tube is set;
the detection module is used for detecting that the intensity of the light to be detected is within a preset light intensity interval;
the calling module is used for calling a photosensitive tube switch sequence corresponding to a preset light intensity interval;
and the processing module is used for enabling the photosensitive sensor to be switched on or switched off according to the photosensitive tube switching sequence.
10. A terminal comprising the light sensor control apparatus according to claim 9, capable of performing the operations in the light sensor control method according to any one of claims 1 to 8.
CN201911359885.3A 2019-12-25 2019-12-25 Light sensor control method and device and terminal Pending CN111107616A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911359885.3A CN111107616A (en) 2019-12-25 2019-12-25 Light sensor control method and device and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911359885.3A CN111107616A (en) 2019-12-25 2019-12-25 Light sensor control method and device and terminal

Publications (1)

Publication Number Publication Date
CN111107616A true CN111107616A (en) 2020-05-05

Family

ID=70425320

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911359885.3A Pending CN111107616A (en) 2019-12-25 2019-12-25 Light sensor control method and device and terminal

Country Status (1)

Country Link
CN (1) CN111107616A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112055452A (en) * 2020-09-03 2020-12-08 惠州Tcl移动通信有限公司 Light source brightness control method and device and terminal

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102456317A (en) * 2010-10-19 2012-05-16 昆达电脑科技(昆山)有限公司 Display screen with adjustable partial backlights
CN105605525A (en) * 2015-12-21 2016-05-25 无锡信大气象传感网科技有限公司 Method for controlling light supplementing system based on solar optical fiber transmission
WO2016165338A1 (en) * 2015-09-14 2016-10-20 中兴通讯股份有限公司 Method and device for controlling user equipment, and user equipment
CN106055296A (en) * 2016-05-25 2016-10-26 维沃移动通信有限公司 Control method for display brightness of terminal screen and terminal
CN205878088U (en) * 2016-06-06 2017-01-11 珠海市众兴华盈科技有限公司 Novel LED lamp grading device
CN106330313A (en) * 2016-09-05 2017-01-11 京东方科技集团股份有限公司 Cell aligning substrate, display panel and display device
CN108665869A (en) * 2017-04-01 2018-10-16 佛山市顺德区美的电热电器制造有限公司 Household electrical appliance and its brightness of display screen adjusting method and regulating device
US20190371239A1 (en) * 2018-05-31 2019-12-05 Beijing Xiaomi Mobile Software Co., Ltd. Terminal device, sensing method and apparatus

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102456317A (en) * 2010-10-19 2012-05-16 昆达电脑科技(昆山)有限公司 Display screen with adjustable partial backlights
WO2016165338A1 (en) * 2015-09-14 2016-10-20 中兴通讯股份有限公司 Method and device for controlling user equipment, and user equipment
CN105605525A (en) * 2015-12-21 2016-05-25 无锡信大气象传感网科技有限公司 Method for controlling light supplementing system based on solar optical fiber transmission
CN106055296A (en) * 2016-05-25 2016-10-26 维沃移动通信有限公司 Control method for display brightness of terminal screen and terminal
CN205878088U (en) * 2016-06-06 2017-01-11 珠海市众兴华盈科技有限公司 Novel LED lamp grading device
CN106330313A (en) * 2016-09-05 2017-01-11 京东方科技集团股份有限公司 Cell aligning substrate, display panel and display device
CN108665869A (en) * 2017-04-01 2018-10-16 佛山市顺德区美的电热电器制造有限公司 Household electrical appliance and its brightness of display screen adjusting method and regulating device
US20190371239A1 (en) * 2018-05-31 2019-12-05 Beijing Xiaomi Mobile Software Co., Ltd. Terminal device, sensing method and apparatus

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112055452A (en) * 2020-09-03 2020-12-08 惠州Tcl移动通信有限公司 Light source brightness control method and device and terminal

Similar Documents

Publication Publication Date Title
CN106293375B (en) A kind of method for changing scenes and equipment
WO2014086218A1 (en) Interface adjustment method, device and terminal
CN106911848B (en) Method for outputting prompt message and terminal equipment
CN107219951B (en) Touch screen control method and device, storage medium and terminal equipment
CN105094501B (en) Method, device and system for displaying messages in mobile terminal
US11915633B2 (en) Screen color temperature control method, apparatus, storage medium, and mobile terminal
CN110930964B (en) Display screen brightness adjusting method and device, storage medium and terminal
CN112286122A (en) Intelligent household control method, device, terminal and storage medium
CN109688611B (en) Frequency band parameter configuration method, device, terminal and storage medium
CN106302101B (en) Message reminding method, terminal and server
CN108564539B (en) Method and device for displaying image
CN108829338A (en) A kind of lookup method of application program, device and terminal
CN111372003A (en) Camera switching method and device and terminal
CN110891262A (en) Bluetooth pairing method, system and terminal equipment
CN111107616A (en) Light sensor control method and device and terminal
CN108924357A (en) A kind of method, apparatus and terminal that adjustment terminal desktop is shown
CN112367425B (en) Volume adjusting method and device and terminal
CN111308303B (en) Method and device for detecting radio frequency power amplifier of mobile terminal
CN108259676B (en) Terminal device and photosensitive control method
CN111898542A (en) Display screen control method and device and terminal
CN106657278B (en) Data transmission method and device and computer equipment
CN110618798A (en) Multi-screen display method, multi-screen device, storage medium and terminal equipment
CN105988801B (en) Method and device for displaying annotation information
CN106033358B (en) Batch installation method and device of application programs
CN108833715A (en) A kind of method, device and mobile terminal reading text information

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20200505