CN113596202A - Control method of photosensitive sensor and electronic equipment - Google Patents

Control method of photosensitive sensor and electronic equipment Download PDF

Info

Publication number
CN113596202A
CN113596202A CN202110760795.6A CN202110760795A CN113596202A CN 113596202 A CN113596202 A CN 113596202A CN 202110760795 A CN202110760795 A CN 202110760795A CN 113596202 A CN113596202 A CN 113596202A
Authority
CN
China
Prior art keywords
tube
receiving
voltage value
transmitting tube
emitting
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
CN202110760795.6A
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.)
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 CN202110760795.6A priority Critical patent/CN113596202A/en
Publication of CN113596202A publication Critical patent/CN113596202A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • H04M1/0202Portable telephone sets, e.g. cordless phones, mobile phones or bar type handsets
    • H04M1/026Details of the structure or mounting of specific components
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01VGEOPHYSICS; GRAVITATIONAL MEASUREMENTS; DETECTING MASSES OR OBJECTS; TAGS
    • G01V8/00Prospecting or detecting by optical means
    • G01V8/10Detecting, e.g. by using light barriers
    • G01V8/20Detecting, e.g. by using light barriers using multiple transmitters or receivers

Abstract

The application discloses photosensitive sensor's control method and electronic equipment, concretely relates to sensor control technical field, photosensitive sensor includes emission subassembly and receiving element, photosensitive sensor sets up inside electronic equipment's casing, be provided with on the casing and correspond the light emission hole of emission subassembly with correspond the light receiving hole of receiving element, the emission subassembly includes two at least emission nest of tubes, and each emission nest of tubes includes at least one transmitting tube, the method includes: controlling the at least two transmitting tube groups to sequentially send out optical signals; acquiring a first voltage value output by the receiving component, wherein the first voltage value represents the strength of the optical signal received by the receiving component; determining a target launching tube shielded by the shell in the launching tube group according to the first voltage value; and closing the target transmitting tube.

Description

Control method of photosensitive sensor and electronic equipment
Technical Field
The application belongs to the technical field of sensor control, and particularly relates to a control method of a photosensitive sensor and electronic equipment.
Background
With the continuous development of smart phones, the screen of the smart phone is also larger and larger, which affects the screen occupation ratio of the phone, wherein the screen occupation ratio is a relative ratio representing the area of the screen and the front panel of the phone, and is a parameter for easily obtaining visual good feeling on the appearance design of the phone. Therefore, the micro-slit photosensitive sensor which places the infrared photosensitive sensor at the micro-slit of the mobile phone is widely applied, the micro-slit photosensitive sensor can reduce the hole digging area of the screen, and the screen occupation ratio is improved.
However, the slit infrared photosensitive sensor has a small window size during assembly, and the assembly deviation of the structure easily causes the slit infrared photosensitive emission lamp to be shielded by the middle frame. Firstly, the light signal generated by the shielded transmitting lamp part cannot penetrate through the mobile phone cover plate, so that the overall transmitting effect of the light signal is influenced; secondly, the light path that is produced by the transmission lamp of the part that is sheltered from still can be through multiple reflection in the apron inside, and part light is received by infrared photosensitive sensor's receiver tube, and then has produced new crosstalk route, increases infrared bottom noise, influences sensor performance.
Disclosure of Invention
The embodiment of the application aims to provide a control method of a photosensitive sensor and electronic equipment, and the problem that the performance of the conventional micro-slit photosensitive sensor is affected after assembly can be solved.
In a first aspect, the embodiments of the present application provide a method for controlling a photosensitive sensor, where the photosensitive sensor includes an emitting component and a receiving component, the photosensitive sensor is disposed inside a housing of an electronic device, the housing is provided with a light emitting hole corresponding to the emitting component and a light receiving hole corresponding to the receiving component, the emitting component includes at least two emitting tube groups, each emitting tube group includes at least one emitting tube,
the method comprises the following steps: controlling the at least two transmitting tube groups to sequentially send out optical signals; acquiring a first voltage value output by the receiving component, wherein the first voltage value represents the strength of the optical signal received by the receiving component; determining a target launching tube shielded by the shell in the launching tube group according to the first voltage value; and closing the target transmitting tube.
In a second aspect, an embodiment of the present application provides an electronic device, where the electronic device includes a housing and a photosensitive sensor disposed inside the housing, the photosensitive sensor includes an emitting component and a receiving component, the photosensitive sensor is disposed inside the housing of the electronic device, a light emitting hole corresponding to the emitting component and a light receiving hole corresponding to the receiving component are disposed on the housing, the emitting component includes at least two emitting tube groups, and each emitting tube group includes at least one emitting tube;
the electronic device further includes: the first control module is used for controlling the transmitting tube groups of the at least two transmitting tube groups to sequentially send out optical signals; the voltage acquisition module is used for acquiring a first voltage value output by the receiving component, wherein the first voltage value represents the strength of the optical signal received by the receiving component; the detection module is used for determining a target transmitting tube shielded by the shell in the transmitting tube group according to the first voltage value; and the second control module is used for closing the target transmitting tube.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a memory and a processor, and a program or instructions stored on the memory and executable on the processor, and when executed by the processor, the program or instructions implement the method according to the first aspect.
In a fourth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the method according to the first aspect.
In the embodiment of the application, whether the optical signal is shielded by the shell is judged according to the condition that the optical signal generated by the transmitting tube of the photosensitive sensor is received by the receiving tube, the target transmitting tube shielded by the shell is determined, and the corresponding target transmitting tube is closed, so that the propagation of the photosensitive sensor in the electronic equipment shell is reduced, the bottom noise is reduced, and the performance of the photosensitive sensor is improved.
Drawings
FIG. 1 is a schematic view of a conventional micro-slit photosensor mounted in an electronic device;
FIG. 2 is a schematic diagram of a photosensitive sensor;
FIG. 3 is a schematic view of another arrangement of the emitter tube set of the photosensitive sensor;
FIG. 4 is a flow chart of steps of a method of controlling a light sensitive sensor;
FIG. 5 is an assembly of the transmitter assembly in a practical application;
FIG. 6 is a step of the control method of the photo sensor of the present embodiment in practical application;
FIG. 7 is another arrangement of the transmitter assembly in a practical application;
FIG. 8 is a further alternative arrangement of the transmitter assembly in practice;
fig. 9 is a schematic structural diagram of an electronic device provided in this embodiment;
fig. 10 is a schematic structural diagram of another electronic device provided in this embodiment;
fig. 11 is a schematic structural diagram of another electronic device provided in this embodiment.
In the figure: photosensitive sensor 01, emitting component 02, receiving component 03, emitting tube group 04, emitting tube 05, receiving tube 06, light emitting hole 07, light receiving hole 08, casing 09 and screen 10.
Detailed Description
The technical solutions in the embodiments of the present application will be described clearly below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments that can be derived by one of ordinary skill in the art from the embodiments given herein are intended to be within the scope of the present disclosure.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The following describes in detail a control method of a photosensitive sensor and an electronic device provided in the embodiments of the present application with reference to the accompanying drawings.
Referring to fig. 1, fig. 1 is a schematic view illustrating an assembly of a conventional micro-slit photosensor in an electronic device, the micro-slit photosensor in fig. 1 employs a single transmitting tube capable of integrally transmitting a light signal, the electronic device is provided with a light transmitting hole 07 and a light receiving hole 08, a transmitting tube 05 of a transmitting assembly 02 is disposed right below the light transmitting hole 07, and a receiving tube is disposed right below the light receiving hole 08. The optical path of the optical signal emitted by the transmitting tube 05 is: the light signal is transmitted to the environment through the light emitting hole 07, and after being reflected by a reflector in the environment, the light signal passes through the light receiving hole 08 and is finally received by the receiving module. The influence of temperature on the optical signal can be used to detect the ambient temperature according to the intensity of the optical signal received by the receiving tube, or the influence of distance on the propagation of the optical signal can be used to measure the distance between a reflector and the electronic device in the environment according to the intensity of the optical signal received by the receiving tube. However, since the opening of the light emitting hole 07 or the light receiving hole 08 is small, and there may be errors in assembling the micro-slit photosensitive sensor, for example, there is a tolerance between the emitting tube 05 and the light emitting hole 07 in the Y direction, which may cause a part of the optical path of the emitting tube 05 to be blocked by the electronic device itself, and the light signal generated by the blocked emitting tube 05 may interfere with the inside of the electronic device, increasing the noise floor of the sensor itself, and thus affecting the performance of the sensor.
Thus, in order to solve the above-mentioned problems, the present embodiment provides a control method of a photosensor 01, which is applicable to the photosensor 01 provided in the present embodiment, and referring to fig. 2, the photosensor 01 includes a transmitting element 02 and a receiving element 03, the transmitting element 02 is used for transmitting an optical signal, and the receiving element 03 is used for receiving an optical signal. The photosensor 01 is disposed inside a housing of the electronic apparatus, on which a light emitting hole 07 corresponding to the emitting component 02 and a light receiving hole 08 corresponding to the receiving component 03 shown in fig. 1 are disposed. For example, the emitting assembly 02 is disposed inside the housing at a position below the light emitting hole 07 to facilitate the emission of the light signal; the receiving module 03 is disposed inside the housing at a position below the light receiving hole 08 to facilitate the reception of the optical signal.
The electronic device can be an intelligent terminal device such as a mobile phone, a computer, a tablet computer and the like, when the electronic device is a mobile phone, the shell 09 can be a cover plate of a mobile phone main body, the cover plate and the screen 10 are combined to form the upper surface of the mobile phone, and the photosensitive sensor 01 is arranged at the edge of the screen 10.
Wherein, referring to fig. 2, the launching assembly 02 in the embodiment includes at least two launching tube sets 04, each launching tube set 04 includes at least one launching tube 05, for example, the launching assembly 02 includes two launching tube sets 04, each launching tube set 04 includes one launching tube 05, then the launching assembly 02 includes 2 launching tubes, and the opening and closing of the two launching tubes can be controlled respectively.
For another example, referring to fig. 3, the launching assembly 02 includes 2 launching tube groups 04, each of which includes 3 launching tubes 05, and then the launching tube group 04 includes 6 launching tubes, so that the launching tubes in each launching tube group 04 can be customized by controlling the launching tubes 05 of the same launching tube group to be opened and closed at a time.
The emitting tube 05 may be one of a semiconductor light source, a light emitting diode, a laser diode and an infrared emitting diode, the receiving assembly 03 includes a receiving tube 06, and the receiving tube 06 may be a photodiode and a phototransistor.
It should be noted that, considering that the space available for installing the photosensitive sensor 01 on the housing of the electronic device is narrow, and therefore, the tolerance generated by the photosensitive sensor 01 when being assembled with the electronic device is mostly the tolerance in the Y direction, in this embodiment, the emitting tubes 05 of each emitting tube group 04 may form an array, that is, when the emitting assembly 02 includes two emitting tube groups 04, and each emitting tube group 04 includes one emitting tube 05, the emitting assembly 02 is a 2 × 1 emitting tube array; when the launching assembly 02 comprises 3 launching tube groups 04, each launching tube group 04 comprising 2 launching tubes 05, the launching assembly 02 is a 3 x 2 array of launching tubes. So that a single or entire column of emitter tubes obscured by the housing can be shut off by individually controlling the closure of the emitter tubes 05 of each column.
For the above photosensitive sensor 01, the present embodiment provides a control method of the photosensitive sensor, which includes the following steps with reference to fig. 4:
step 1100, controlling at least two transmitting tube sets 04 to sequentially transmit optical signals.
In order to detect whether the emitting tube 05 in the emitting assembly 02 is shielded by the housing when the photosensitive sensor 01 is assembled, the emitting tube group of each emitting tube group needs to be detected, and the detection method comprises the following steps: and controlling at least two emission tube groups 04 to sequentially emit light signals according to the set shielding detection sequence, wherein under the condition that the emission tube groups comprise at least two emission tubes, the emission tubes 05 in the same emission tube group 04 have the same detection sequence. That is, all the fire tubes 05 in each fire tube group are controlled to be simultaneously opened or closed.
In a practical example, when the transmitting assembly 02 includes 5 transmitting tube groups 04 and there is only one transmitting tube in each transmitting tube group 04, that is, the transmitting assembly 02 has a total of 5 transmitting tubes, the 5 transmitting tubes may be aligned in an array manner or may not have a specific setting bit. The embodiment may sequentially control the opening and closing of the 5 transmitting tubes, for example, when the first transmitting tube is opened, the other transmitting tubes are kept closed, after the optical signal of the first transmitting tube is received, the first transmitting tube is closed, the second transmitting tube is opened, and the process is sequentially cycled to respectively obtain the optical signal of each transmitting tube 05 when the transmitting tube is opened.
In a practical example, when the launching assembly 02 includes 3 launching tube groups 04 and there are 2 launching tubes in each launching tube group 04, that is, the launching assembly 02 has a total of 6 launching tubes, the 3 launching tube groups 04 may be aligned in an array or may not have a specific setting. The present embodiment can obtain the light signals of the emitting tubes 05 in each emitting tube group when the emitting tubes 05 are opened by controlling the opening and closing of every two emitting tubes 05 in the 3 emitting tube groups 04 in sequence, for example, when 2 emitting tubes 05 in the first emitting tube group are opened, keeping the emitting tubes 05 in the other emitting tube groups closed, after receiving the light signals of the first emitting tube group, closing the emitting tubes 05 in the first emitting tube group, opening the emitting tubes 05 in the second emitting tube group, and circulating in sequence.
In this embodiment, the larger the number of emitting tubes in each emitting tube group, the greater the intensity of the light signal, and thus the greater the intensity of the received light signal, therefore, the number of emitting tubes in each emitting tube group is preferably greater than 1, so as to improve the detection effect.
Step 1200, obtaining a first voltage value output by the receiving component.
In this embodiment, the photosensitive sensor 01 may be a device that converts an optical signal into an electrical signal, and therefore, after controlling the transmitting tube set 04 in the current detection order to send an optical signal, the optical signal received by the receiving component 03 may be converted into a corresponding electrical signal, so as to output a first voltage value, where the first voltage value represents the strength of the optical signal received by the receiving component 03.
In one possible example, the receiving assembly may be provided with a photoelectric conversion circuit, and after the receiving tube in the receiving assembly receives the optical signal, the photoelectric conversion circuit converts the optical signal into a corresponding voltage value.
Step 1300, determining a target launching tube shielded by the shell in the launching tube group according to the first voltage value.
Under the condition that the number and the emission intensity of the emission tubes are fixed and the emission tubes are not shielded by the shell, the light signals received by the receiving tubes comprise light signals received by the receiving tubes through the light receiving holes and light signals generated by bottom noise in the shell, the distance between an external emitting object and the photosensitive sensor is fixed, and under the condition that the external temperature is not changed, namely under the condition that environmental variables are not changed, the intensity of the light signals received by the receiving tubes can be regarded as unchanged, so that the voltage value output by the receiving tubes is also unchanged.
In this embodiment, because the optical signal is transmitted in a relatively small space when the transmitting tube is shielded by the housing, the intensity of the optical signal is greater than the intensity of the optical signal reflected by the scattered air, that is, if the transmitting tube is shielded, the total intensity of the optical signal received by the receiving tube is increased. Therefore, in this embodiment, in the case that the first voltage value is greater than the first preset threshold, it is determined that the optical signal emitted by the transmitting tube group is blocked by the casing, and at this time, the target transmitting tube is one or more transmitting tubes in the blocked transmitting tube group.
For example, the transmitting assembly 02 includes 3 transmitting tube groups 04, each transmitting tube group 04 includes 2 transmitting tubes, the 2 transmitting tubes simultaneously transmit light signals, when a first group of transmitting tubes transmits light signals, and when other transmitting tubes are closed, a first voltage value output by the receiving tube is greater than a first preset threshold, which indicates that the transmitting tube of the group is blocked by the housing, and then the transmitting tube of the first group is determined to be a target transmitting tube.
For another example, the transmitting assembly 02 includes 3 transmitting tube groups 04, each transmitting tube group 04 has 2 transmitting tubes, the 2 transmitting tubes in the same group are respectively controlled to sequentially transmit optical signals, when the first transmitting tube in the group transmits an optical signal, and the second transmitting tube is turned off, the first voltage value output by the receiving tube is a, when the first transmitting tube in the group is turned off, and the second transmitting tube transmits an optical signal, the first voltage value output by the receiving tube is B, a is equal to the first preset threshold, and B is greater than the first preset threshold, then the second transmitting tube in the group is determined as the target transmitting tube.
In this embodiment, since the optical signal received by the receiving component includes the optical signal received by the receiving tube through the light receiving hole and the optical signal received by the receiving tube inside the housing, the first voltage value includes a voltage value corresponding to the optical signal received by the receiving tube through the light receiving hole and a voltage value corresponding to the optical signal received by the receiving tube inside the housing.
And 1400, closing the target transmitting tube.
In this embodiment, because under the condition that the transmitting tube is shielded by the casing, a noise floor is generated inside the photosensor 01, which affects the performance of the photosensor, in this embodiment, the corresponding target transmitting tube is controlled to be in the closed state when the target transmitting tube whose optical signal is shielded by the casing is detected.
For example, when it is detected that the first voltage value output by the receiving component 03 is greater than a first preset threshold, a closing instruction is generated, and after receiving the closing instruction, a chip in the control circuit controls the transmitting tube 05 to be kept closed.
For example, referring to fig. 5, it can be seen that the transmitting assembly 02 includes two transmitting tube sets 04, wherein each transmitting tube set 04 includes 1 transmitting tube 05, and at this time, the transmitting tube 05 located above is shielded by the housing, so that the noise floor inside the photosensor 01 can be reduced by controlling the shielded transmitting tube 05 to be closed.
Referring to fig. 6, fig. 6 shows the steps of the control method of the photosensor according to the present embodiment in practical application, including: each group of transmitting tube group 04 is sequentially opened according to the shielding detection sequence, a first voltage value output by the receiving component 03 is recorded, under the condition that the first voltage value is larger than a first preset threshold value, it is determined that the corresponding opened transmitting tube group 04 is shielded by the shell, the corresponding transmitting tube in the transmitting tube group 04 is closed, under the condition that the first voltage value is smaller than the first preset threshold value, processing is not carried out, the steps are sequentially circulated until the last group of transmitting tube group 04 finishes detection, and therefore the photosensitive sensor 01 has higher performance in normal use.
It can be known from the foregoing embodiment that, in the case that each transmitting tube group 04 in the transmitting assembly 02 of the photosensor 01 only includes one transmitting tube 05 in this embodiment, the control method of this embodiment can implement individual controllability for each transmitting tube 05, and this manner is suitable for a situation where there are tolerances in both the X direction and the Y direction in the assembly of the transmitting assembly 02, for example, in fig. 7, in a situation where the transmitting assembly 02 is inclined with respect to the light emitting hole 07, the performance of the sensor can be improved by individually controlling the blocked transmitting tube 05 to close.
In this embodiment, in the case that each emitting tube group 04 in the emitting assembly 02 of the photosensor 01 includes a plurality of emitting tubes 05, the whole group of each emitting tube group 05 can be controlled, which is suitable for the situation that the assembly of the emitting assembly 02 has a tolerance in the Y direction, for example, in fig. 8, the whole row of emitting tubes 05 of the emitting assembly 02 are all blocked by the housing, the performance of the sensor can be improved by controlling the blocked group of emitting tubes 05 to be closed, and the power consumption can be reduced by controlling the whole group of emitting tubes 05 to be closed.
In order to further reduce the noise floor and improve the performance of the photosensitive sensor 01, in this embodiment, after the target transmitting tube is turned off, the position information of each transmitting tube 05 relative to the receiving assembly 03 is also acquired, so as to adjust the optical signal intensity of each transmitting tube 05 according to the position information.
The position information of each transmitting tube 05 relative to the receiving assembly 03 can be the distance of each transmitting tube 05 relative to the center of the receiving assembly, that is, the position information includes the distance between the transmitting tube 05 and the receiving assembly. The manner of obtaining the position information of each transmitting tube 05 relative to the receiving assembly may be by setting a reflector on the optical signal propagation path of the transmitting tube 05, and detecting the intensity of the optical signal received by the receiving assembly when each transmitting tube 05 is opened to determine the distance between the corresponding transmitting tube 05 and the receiving assembly, for example, the weaker the intensity of the optical signal received by the receiving assembly is, the farther the transmitting tube 05 is from the receiving assembly is represented, and conversely, the stronger the intensity of the optical signal received by the receiving assembly is, the closer the transmitting tube 05 is to the receiving assembly is represented.
In addition, the distance between each of the launching tubes 05 and the launching assembly 02 may be preset according to the fixing position of the launching tube 05 at the time of assembly.
In this embodiment, the intensity of the optical signal of each transmitting tube 05 is adjusted according to the position information, a current control instruction can be generated according to the position information, and the intensity of the optical signal of the transmitting tube 05 is controlled according to the current control instruction. Specifically, the optical signal intensity of the emitter tube within a first distance from the receiver assembly is reduced, and the optical signal intensity of the emitter tube within a second distance from the receiver assembly is increased, wherein the second distance is greater than the first distance.
In this embodiment, because the transmitting tube closer to the receiving component, the optical signal emitted by the transmitting tube is more likely to be received by the receiving tube, and by reducing the intensity of the optical signal of the transmitting tube closer to the receiving component, the probability that the receiving component receives the optical signal inside the housing can be reduced, and the noise of the photosensitive sensor 01 can be reduced. And the intensity of the optical signal of the transmitting tube far away from the receiving component is increased, the transmitting current of the transmitting tube 05 far away from the receiving component is increased, and the detection distance of the photosensitive sensor 01 can be improved.
In an optional example, after the target transmitting tubes are turned off, the transmitting intensity of the transmitting tubes which are not shielded can be increased according to the number of the turned-off target transmitting tubes, for example, when the turned-off target transmitting tubes are one third of the total transmitting tubes, the current light signal intensity of the transmitting tubes which are not shielded can be adjusted to be 2 times of the previous time, and the detection efficiency of the photosensitive sensor can be improved while the light signal intensity is ensured.
The receiving component in this embodiment may be a receiving tube 06, and when the receiving component is a receiving tube 06, the receiving tube 06 receives the optical signal.
Considering that the receiving tube 06 may also be shielded by the housing to affect the performance of the photosensitive sensor 01, the receiving assembly of this embodiment may be at least two individually controllable receiving tubes 06, and when the receiving assembly includes at least two individually controllable receiving tubes 06, after the target transmitting tube is closed, this embodiment may further implement control of the receiving assembly by controlling the opening and closing of each receiving tube 06, so as to reduce power consumption and further improve the performance of the photosensitive sensor 01.
After the target transmitting tube is closed, whether the receiving component is shielded by the shell needs to be detected, and the detection method can detect based on the fact that the intensity of the optical signal received by the receiving tube 06 is different between the case that no reflector exists outside the electronic device and the case that a reflector exists.
In this embodiment, the detection method includes: acquiring a second voltage value and a third voltage value output by the receiving assembly, and detecting whether the receiving tube is shielded by the shell or not according to the difference value of the second voltage value and the third voltage value; and controlling the corresponding receiving pipe to be in a closed state under the condition that the receiving pipe is shielded by the shell. The second voltage value is a voltage value output by the receiving component under the condition that no reflector exists outside the electronic device, and the third voltage value is a voltage value output by the receiving component under the condition that the reflector exists outside the electronic device.
In a practical example, if the electronic device part detects without a reflector, when the optical signal is emitted from the emitting tube 05, since the optical signal cannot pass through the light receiving hole 08 by being reflected by the reflector, most of the generated optical signal will be scattered in the environment, and the probability of receiving the optical signal by the receiving tube 06 is very small. At this time, the optical signal received by the receiving tube is mainly obtained due to the original noise generated in the shell by the optical signal sent by the transmitting tube, and the voltage value output by the receiving component is the second voltage value.
In a practical example, if a detection mode is adopted in which there is a reflector outside the electronic device, when an optical signal is emitted from the emitting tube 05, the receiving tube 06 receives the optical signal because the optical signal passes through the light receiving hole 08 by reflection of the reflector, so that the optical signal received by the receiving tube includes the optical signal received by the light receiving hole and the original noise in the interior of the housing, and the voltage value output by the receiving tube is the third voltage value.
Since the original noise floor received by the receiving tube is much smaller than that received by the transmitting tube through the light receiving hole under the condition that the photosensor is normally assembled. Therefore, the third voltage value should be much larger than the second voltage value, and if the third voltage value is the same as the second voltage value or the difference between the third voltage value and the second voltage value is small, the corresponding receiving tube 06 is marked to be blocked, and cannot receive the optical signal reflected from the outside; if the difference between the third voltage value and the second voltage value is large, the corresponding receiving tube 06 is not shielded, and the optical signal reflected by the outside can be normally received.
Therefore, the present embodiment compares the difference between the third voltage value and the second voltage value with the magnitude of the second preset threshold; under the condition that the difference value is smaller than a second preset threshold value, the second voltage value is represented to be the same as or slightly changed from the third voltage value, and the light signal reflected from the outside cannot be received, so that the receiving tube 06 is determined to be shielded by the shell; under the condition that the difference value is larger than the second preset threshold value, the change of the second voltage value and the third voltage value is represented to be larger, and the receiving tube 06 can receive the externally reflected optical signal, so that the receiving tube 06 is determined not to be shielded by the shell.
In another possible embodiment, it is also possible to change the intensity of the optical signal of the transmitting tube 05 by applying different current intensities to the transmitting tube 05 under the condition that the reflector is arranged outside the electronic device, and detect whether the corresponding receiving tube 06 is shielded by the housing by detecting the voltage value change of the receiving tube 06 under two different optical signal intensities.
Under the condition that the receiving tube 06 is shielded by the shell, the corresponding receiving tube 06 is controlled to be in a closed state, so that the receiving tube 06 which cannot normally receive optical signals can be prevented from being powered, and the energy consumption of the photosensitive sensor 01 is reduced.
The present embodiment further provides an electronic device 11, referring to fig. 9, the electronic device 11 includes a housing 09 and a photosensitive sensor 01 disposed inside the housing, referring to fig. 2, the photosensitive sensor 01 includes an emitting component 02 and a receiving component 03, the photosensitive sensor 01 is disposed inside the housing of the electronic device, a light emitting hole 07 corresponding to the emitting component 02 and a light receiving hole 08 corresponding to the receiving component 03 are disposed on the housing, the emitting component 02 includes at least two emitting tube groups 04, and each emitting tube group 04 includes at least one emitting tube 05.
The receiving assembly 03 of the photosensitive sensor of the embodiment may include one receiving tube 06, or may include at least two separately controllable receiving tubes to control the opening and closing of the receiving tubes, so as to reduce the energy consumption of the photosensitive sensor from the receiving tube end and improve the sensor performance. The specific structure and function of the photosensitive sensor are described above, and are not described herein again to avoid repetition.
The electronic device 11 of the present embodiment further includes:
the first control module 12 is configured to control the at least two transmitting tube sets 04 to sequentially transmit the light signals. Specifically, at least two emission tube groups are controlled to sequentially emit light signals according to a set detection sequence, wherein in the case that the emission tube groups comprise at least two emission tubes, the emission tubes in the same emission tube group have the same detection sequence.
The voltage obtaining module 13 is configured to obtain a first voltage value output by the receiving component, where the first voltage value represents the strength of the optical signal received by the receiving component.
And the detection module 14 is used for determining a target transmitting tube shielded by the shell in the transmitting tube group according to the first voltage value. Specifically, under the condition that the first voltage value is greater than a first preset threshold value, it is determined that the optical signal emitted by the emitting tube group is shielded by the shell, and the target emitting tube is one or more emitting tubes in the shielded emitting tube group; the first voltage value comprises a voltage value corresponding to an optical signal received by the receiving component through the light receiving hole, and a voltage value corresponding to an optical signal received by the receiving component in the shell.
And the second control module 15 is used for closing the target transmitting tube.
The second control module 15 is further configured to, after the target transmitting tube is closed, obtain position information of each transmitting tube relative to the receiving assembly, and adjust the optical signal intensity of each transmitting tube according to the position information. Wherein the location information comprises a distance between the launch tube and the receiving assembly.
The second control module 15 is further configured to generate a current control instruction according to the position information; and according to the current control instruction, reducing the intensity of the optical signal of the transmitting tube within a first distance from the receiving assembly, and increasing the intensity of the optical signal of the transmitting tube within a second distance from the receiving assembly.
The detection module 14 is further configured to, after the target transmitting tube is closed, obtain a second voltage value and a third voltage value output by the receiving assembly, and detect whether the receiving tube is shielded by the housing according to a difference between the second voltage value and the third voltage value; the second voltage value is a voltage value output by the receiving component under the condition that no reflector exists outside the electronic device, and the third voltage value is a voltage value output by the receiving component under the condition that the reflector exists outside the electronic device. Comparing the difference value with a second preset threshold value; under the condition that the difference value is smaller than a second preset threshold value, the receiving pipe is determined to be shielded by the shell; and under the condition that the difference value is larger than a second preset threshold value, determining that the receiving pipe is not shielded by the shell.
The second control module 15 is further configured to control the corresponding receiving pipe to be in a closed state under the condition that the receiving pipe is shielded by the housing. The specific steps and methods are described above, and are not described herein again to avoid repetition.
The first control module 12, the voltage obtaining module 13, the detecting module 14 and the second control module 15 in this embodiment may be non-mobile electronic devices, or may be components, integrated circuits, or chips in a terminal. For example, the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a television (television), a teller machine, a self-service machine, or the like, and the embodiments of the present application are not limited in particular.
The first control module 12, the voltage acquisition module 13, the detection module 14 and the second control module 15 in the embodiment of the present application may be part of a device having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present application are not limited specifically.
The electronic device of this embodiment may be a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, a Personal Digital Assistant (PDA), or the like, and the embodiment of the present application is not particularly limited.
The present embodiment further provides an electronic device, where the electronic device includes a housing and a photosensitive sensor arranged in the housing as shown in fig. 2, and optionally, as shown in fig. 10, the electronic device 900 in the embodiment of the present application further includes a processor 901, a memory 902, and a program or an instruction stored in the memory 902 and executable on the processor 901, where the program or the instruction is executed by the processor 901 to implement each process of the above-mentioned embodiment of the control method for a photosensitive sensor, and can achieve the same technical effect, and in order to avoid repetition, the description is omitted here.
Fig. 11 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 100 includes, but is not limited to: a radio frequency unit 101, a network module 102, an audio output unit 103, an input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, and a processor 110.
Those skilled in the art will appreciate that the electronic device 100 may further comprise a power source (e.g., a battery) for supplying power to various components, and the power source may be logically connected to the processor 110 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system. The electronic device structure shown in fig. 10 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is not repeated here.
The processor 110 is configured to control at least two transmitting tube groups to sequentially transmit optical signals; acquiring a first voltage value output by a receiving component, wherein the first voltage value represents the strength of an optical signal received by the receiving component; determining a target transmitting tube shielded by the shell in the transmitting tube group according to the first voltage value; and closing the target transmitting tube, thereby improving the performance of the sensor.
Optionally, the processor 110 is further configured to obtain a first voltage value output by the receiving component after controlling the transmitting tube group of the current detection sequence to emit the optical signal, where the first voltage value represents the strength of the optical signal received by the receiving component; and under the condition that the first voltage value is larger than a first preset threshold value, determining that the optical signal is shielded by the shell. Thereby detecting whether the optical signal of the transmitting tube is blocked by the shell.
Optionally, the processor 110 is further configured to obtain position information of each transmitting tube relative to the receiving assembly after closing the target transmitting tube, where the position information includes a distance between the transmitting tube and the receiving assembly; and adjusting the light signal intensity of each transmitting tube according to the position information.
Optionally, the processor 110 is further configured to generate a current control instruction according to the position information; and according to the current control instruction, reducing the intensity of the optical signal of the transmitting tube within a first distance from the receiving assembly, and increasing the intensity of the optical signal of the transmitting tube within a second distance from the receiving assembly.
Optionally, the processor 110 is further configured to obtain a second voltage value and a third voltage value output by the receiving component after the target transmitting tube is closed, and detect whether the receiving tube is blocked by the housing according to a difference between the second voltage value and the third voltage value; and controlling the corresponding receiving pipe to be in a closed state under the condition that the receiving pipe is shielded by the shell. The second voltage value is a voltage value output by the receiving component under the condition that no reflector exists outside the electronic device, and the third voltage value is a voltage value output by the receiving component under the condition that the reflector exists outside the electronic device.
It should be understood that, in the embodiment of the present application, the input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, and the Graphics Processing Unit 1041 processes image data of a still picture or a video obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 107 includes a touch panel 1071 and other input devices 1072. The touch panel 1071 is also referred to as a touch screen. The touch panel 1071 may include two parts of a touch detection device and a touch controller. Other input devices 1072 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. The memory 109 may be used to store software programs as well as various data including, but not limited to, application programs and an operating system. The processor 110 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 110.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to execute a program or an instruction to implement each process of the control method embodiment of the above photosensitive sensor, and can achieve the same technical effect, and in order to avoid repetition, the details are not repeated here.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
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 an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (10)

1. A method for controlling a photosensitive sensor, the photosensitive sensor including an emitting component and a receiving component, the photosensitive sensor being disposed inside a housing of an electronic device, the housing being provided with a light emitting hole corresponding to the emitting component and a light receiving hole corresponding to the receiving component, the emitting component including at least two emitting tube groups, each emitting tube group including at least one emitting tube, the method comprising:
controlling the at least two transmitting tube groups to sequentially send out optical signals;
acquiring a first voltage value output by the receiving component, wherein the first voltage value represents the strength of the optical signal received by the receiving component;
determining a target launching tube shielded by the shell in the launching tube group according to the first voltage value;
and closing the target transmitting tube.
2. The method of claim 1, wherein controlling the at least two banks of emission tubes to emit light signals in sequence comprises:
and controlling the at least two emission tube groups to sequentially emit the optical signals according to a set detection sequence, wherein the emission tubes in the same emission tube group have the same detection sequence under the condition that the emission tube group comprises at least two emission tubes.
3. The method of claim 1, wherein determining a target launch tube of the set of launch tubes that is obscured by the casing based on the first voltage value comprises:
under the condition that the first voltage value is larger than a first preset threshold value, determining that the optical signals sent by the transmitting tube group are blocked by the shell, wherein the target transmitting tube is one or more transmitting tubes in the blocked transmitting tube group;
the first voltage value comprises a voltage value corresponding to an optical signal received by the receiving component through the light receiving hole, and a voltage value corresponding to an optical signal received by the receiving component inside the shell.
4. The method of claim 1, wherein after closing the target launch tube, the method further comprises:
acquiring position information of each transmitting tube relative to a receiving assembly, wherein the position information comprises the distance between the transmitting tube and the receiving assembly;
and adjusting the light signal intensity of each transmitting tube according to the position information.
5. The method of claim 4, wherein adjusting the optical signal intensity of each emitter tube based on the position information comprises:
generating a current control instruction according to the position information;
and according to the current control instruction, reducing the light signal intensity of the transmitting tube within a first distance from the receiving assembly, and increasing the light signal intensity of the transmitting tube within a second distance from the receiving assembly.
6. The method of claim 1, wherein the receiver assembly comprises at least two individually controllable receiver tubes, and after closing the target transmitter tube, the method further comprises:
acquiring a second voltage value and a third voltage value output by a receiving component, wherein the second voltage value is a voltage value output by the receiving component under the condition that no reflector exists outside the electronic equipment, and the third voltage value is a voltage value output by the receiving component under the condition that a reflector exists outside the electronic equipment;
detecting whether the receiving tube is shielded by the shell or not according to the difference value of the second voltage value and the third voltage value;
and controlling the corresponding receiving pipe to be in a closed state under the condition that the receiving pipe is shielded by the shell.
7. The method of claim 6, wherein detecting whether the receiving tube is obstructed by the housing according to a difference between the second voltage value and the third voltage value comprises:
comparing the difference value with a second preset threshold value;
determining that the receiving pipe is shielded by the shell under the condition that the difference value is smaller than the second preset threshold value;
and determining that the receiving pipe is not shielded by the shell under the condition that the difference value is larger than the second preset threshold value.
8. An electronic device, characterized in that the electronic device comprises a shell and a photosensitive sensor arranged inside the shell, the photosensitive sensor comprises an emitting component and a receiving component, the photosensitive sensor is arranged inside the shell of the electronic device, a light emitting hole corresponding to the emitting component and a light receiving hole corresponding to the receiving component are arranged on the shell, the emitting component comprises at least two emitting tube groups, and each emitting tube group comprises at least one emitting tube;
the electronic device further includes:
the first control module is used for controlling the transmitting tube groups of the at least two transmitting tube groups to sequentially send out optical signals;
the voltage acquisition module is used for acquiring a first voltage value output by the receiving component, wherein the first voltage value represents the strength of the optical signal received by the receiving component;
the detection module is used for determining a target transmitting tube shielded by the shell in the transmitting tube group according to the first voltage value;
and the second control module is used for closing the target transmitting tube.
9. The electronic device of claim 8, wherein the receiving assembly comprises at least two individually controllable receiving tubes.
10. An electronic device, characterized in that the electronic device comprises a memory and a processor, and a program or instructions stored on the memory and executable on the processor, which when executed by the processor implement the steps of the control method of a light-sensitive sensor according to any one of claims 1-7.
CN202110760795.6A 2021-07-06 2021-07-06 Control method of photosensitive sensor and electronic equipment Pending CN113596202A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110760795.6A CN113596202A (en) 2021-07-06 2021-07-06 Control method of photosensitive sensor and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110760795.6A CN113596202A (en) 2021-07-06 2021-07-06 Control method of photosensitive sensor and electronic equipment

Publications (1)

Publication Number Publication Date
CN113596202A true CN113596202A (en) 2021-11-02

Family

ID=78246157

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110760795.6A Pending CN113596202A (en) 2021-07-06 2021-07-06 Control method of photosensitive sensor and electronic equipment

Country Status (1)

Country Link
CN (1) CN113596202A (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202351648U (en) * 2011-12-02 2012-07-25 广州都盛机电有限公司 Intelligent control system of light curtain
US20150069242A1 (en) * 2013-09-11 2015-03-12 Motorola Mobility Llc Electronic Device and Method for Detecting Presence
CN108965721A (en) * 2018-08-22 2018-12-07 Oppo广东移动通信有限公司 The control method and device of camera module, electronic equipment
CN109151271A (en) * 2018-08-22 2019-01-04 Oppo广东移动通信有限公司 Laser projection mould group and its control method, image acquisition equipment and electronic device
CN109708751A (en) * 2018-12-29 2019-05-03 奥克斯空调股份有限公司 Photosensitive sensor detects modification method, device and air conditioner
CN109884725A (en) * 2019-03-26 2019-06-14 珠海格力智能装备有限公司 Detection method, device, system, storage medium and the processor of optical-signal end
US20190293484A1 (en) * 2018-03-21 2019-09-26 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Electronic device and manufacturing method for electronic device
CN110321989A (en) * 2018-03-28 2019-10-11 拉碧斯半导体株式会社 Communication device and the method for sensing of environmental change
CN210839665U (en) * 2019-12-27 2020-06-23 北京小米移动软件有限公司 Mobile terminal
WO2020181433A1 (en) * 2019-03-08 2020-09-17 Oppo广东移动通信有限公司 Free space optical communications method, and transmitter and receiver
US20210151006A1 (en) * 2018-07-31 2021-05-20 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Display Screen Assembly, Electronic Device, and Method for Controlling Electronic Device
CN113014320A (en) * 2021-02-08 2021-06-22 维沃移动通信有限公司 Visible light communication control method and device for electronic equipment and electronic equipment

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202351648U (en) * 2011-12-02 2012-07-25 广州都盛机电有限公司 Intelligent control system of light curtain
US20150069242A1 (en) * 2013-09-11 2015-03-12 Motorola Mobility Llc Electronic Device and Method for Detecting Presence
US20190293484A1 (en) * 2018-03-21 2019-09-26 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Electronic device and manufacturing method for electronic device
CN110321989A (en) * 2018-03-28 2019-10-11 拉碧斯半导体株式会社 Communication device and the method for sensing of environmental change
US20210151006A1 (en) * 2018-07-31 2021-05-20 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Display Screen Assembly, Electronic Device, and Method for Controlling Electronic Device
CN108965721A (en) * 2018-08-22 2018-12-07 Oppo广东移动通信有限公司 The control method and device of camera module, electronic equipment
CN109151271A (en) * 2018-08-22 2019-01-04 Oppo广东移动通信有限公司 Laser projection mould group and its control method, image acquisition equipment and electronic device
CN109708751A (en) * 2018-12-29 2019-05-03 奥克斯空调股份有限公司 Photosensitive sensor detects modification method, device and air conditioner
WO2020181433A1 (en) * 2019-03-08 2020-09-17 Oppo广东移动通信有限公司 Free space optical communications method, and transmitter and receiver
CN109884725A (en) * 2019-03-26 2019-06-14 珠海格力智能装备有限公司 Detection method, device, system, storage medium and the processor of optical-signal end
CN210839665U (en) * 2019-12-27 2020-06-23 北京小米移动软件有限公司 Mobile terminal
CN113014320A (en) * 2021-02-08 2021-06-22 维沃移动通信有限公司 Visible light communication control method and device for electronic equipment and electronic equipment

Similar Documents

Publication Publication Date Title
CN107943345B (en) Method and device for calibrating proximity sensor, storage medium and electronic equipment
CN110249613B (en) Display screen state control method and device, storage medium and electronic equipment
US8711127B2 (en) Scanning of a touch screen
WO2019024644A1 (en) Proximity detection method and apparatus, storage medium, and electronic device
CN109656317B (en) Apparatus having distance sensing function and distance sensing method
CN106791120B (en) Control method and device for screen-off of mobile terminal
CN108881875B (en) Image white balance processing method and device, storage medium and terminal
CN112484850B (en) Light intensity detection module, screen component and mobile terminal
CN109067983A (en) Information cuing method, storage medium and electronic equipment
US11514872B2 (en) Mitigating display interference with captured image by controlling display brightness
US20220207675A1 (en) Generating Calibration Images By Merging Captured Recalibration Images With Previously Captured Calibration Images
WO2019212786A1 (en) Time of flight ranging with varying fields of emission
CN108923865A (en) Calibration method, device, mobile terminal and the storage medium of infrared distance sensor
US11615517B2 (en) Mitigating display interference with captured image using calibration images
CN107845627A (en) More proximity detection optical sensors
US9377366B2 (en) Navigation device including thermal sensor
WO2022028470A1 (en) Electronic device and infrared module control method
WO2022142587A1 (en) Electronic device and sensor control method
CN113014320B (en) Visible light communication control method and device for electronic equipment and electronic equipment
CN113596202A (en) Control method of photosensitive sensor and electronic equipment
CN109510896B (en) Proximity sensor selection method and device, storage medium and electronic device
CN109144221B (en) Information prompting method, storage medium and electronic equipment
CN110913040A (en) Terminal equipment
CN112540377B (en) Distance detection assembly, method, electronic device and storage medium
CN109946709B (en) Image sensor, depth of field measuring method of terminal and terminal

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