CN112882776A - Distance detection method, mobile terminal, distance detection device, and storage medium - Google Patents

Distance detection method, mobile terminal, distance detection device, and storage medium Download PDF

Info

Publication number
CN112882776A
CN112882776A CN201911207161.7A CN201911207161A CN112882776A CN 112882776 A CN112882776 A CN 112882776A CN 201911207161 A CN201911207161 A CN 201911207161A CN 112882776 A CN112882776 A CN 112882776A
Authority
CN
China
Prior art keywords
display
distance detection
pixel unit
signal
detection module
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
CN201911207161.7A
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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software 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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201911207161.7A priority Critical patent/CN112882776A/en
Publication of CN112882776A publication Critical patent/CN112882776A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S17/00Systems using the reflection or reradiation of electromagnetic waves other than radio waves, e.g. lidar systems
    • G01S17/02Systems using the reflection of electromagnetic waves other than radio waves
    • G01S17/06Systems determining position data of a target
    • G01S17/08Systems determining position data of a target for measuring distance only
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G3/00Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes
    • G09G3/20Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters
    • G09G3/22Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters using controlled light sources
    • G09G3/30Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters using controlled light sources using electroluminescent panels
    • G09G3/32Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters using controlled light sources using electroluminescent panels semiconductive, e.g. using light-emitting diodes [LED]
    • HELECTRICITY
    • H10SEMICONDUCTOR DEVICES; ELECTRIC SOLID-STATE DEVICES NOT OTHERWISE PROVIDED FOR
    • H10KORGANIC ELECTRIC SOLID-STATE DEVICES
    • H10K59/00Integrated devices, or assemblies of multiple devices, comprising at least one organic light-emitting element covered by group H10K50/00

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Electromagnetism (AREA)
  • Remote Sensing (AREA)
  • Computer Hardware Design (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • General Engineering & Computer Science (AREA)
  • Control Of Indicators Other Than Cathode Ray Tubes (AREA)

Abstract

The disclosure relates to a distance detection method, a mobile terminal, a distance detection device and a storage medium, wherein the method is applied to the mobile terminal comprising a display array and a distance detection module, and comprises the following steps: determining a display time slot of a target pixel unit covered by the projection of a distance detection module positioned on the back of the display array in a plane where the display array is positioned; and transmitting a detection signal in the display time slot through the distance detection module.

Description

Distance detection method, mobile terminal, distance detection device, and storage medium
Technical Field
The present disclosure relates to the field of mobile terminal technologies, and in particular, to a distance detection method, a mobile terminal, a distance detection apparatus, and a storage medium.
Background
With the development of mobile terminal technology, a Proximity Sensor (P-Sensor) is commonly applied in mobile terminals. When a user uses the mobile terminal to communicate, the distance sensor can detect the distance between the face of the user and the display screen of the mobile terminal, and the screen is turned off to prevent the face of the user from being touched by mistake when the distance between the display screen and the face of the user is too short.
The positions of the infrared transmitting and receiving paths of the distance sensor corresponding to the display screen are processed by punching. In the related art, in order to reduce the open holes on the display screen to improve the screen occupation ratio of the mobile terminal, a distance sensor is disposed below the display screen. However, the distance sensor may affect the display effect of the display screen when detecting the distance.
Disclosure of Invention
In view of the above, the present disclosure provides a distance detection method, a mobile terminal, a distance detection apparatus, and a storage medium.
According to a first aspect of the embodiments of the present disclosure, a distance detection method is provided, which is applied to a mobile terminal including a display array and a distance detection module, and the method includes:
determining a display time slot of a target pixel unit covered by the projection of a distance detection module positioned on the back of the display array in a plane where the display array is positioned;
and transmitting a detection signal in the display time slot through the distance detection module.
Optionally, the determining a display time slot of a target pixel unit covered by a projection of the distance detection module located at the back of the display array in a plane where the display array is located includes:
determining the display time slot of the target pixel unit according to the frame synchronization signal of the display array and the acquired delay time; wherein the delay time is predetermined according to a positional relationship between the target pixel unit and a first pixel unit of the display array.
Optionally, the delay time has a predetermined number of delay durations;
the method further comprises the following steps:
counting the number of the delay time lengths, and outputting a first trigger signal when the counting is finished;
the transmitting detection signal in the display time slot through the distance detection module comprises:
and based on the triggering of the first triggering signal, the distance detection module transmits the detection signal in the display time slot.
Optionally, the determining a display time slot of a target pixel unit covered by a projection of the distance detection module located at the back of the display array in a plane where the display array is located includes:
receiving a frame synchronization signal generated by a display module of the mobile terminal through a delay unit; the fixed delay time of the delay unit is delay time predetermined according to the position relationship between the target pixel unit and the first pixel unit of the display array;
outputting a second trigger signal by a delay unit after the fixed delay time from the reception of the frame synchronization signal;
the transmitting detection signal in the display time slot through the distance detection module comprises:
and based on the second trigger signal, the distance detection module transmits a detection signal in the display time slot.
According to a second aspect of the embodiments of the present disclosure, there is provided a mobile terminal including:
display module assembly includes: displaying the array;
and the distance detection module is positioned on the back of the display array, and the projection in the plane of the display array covers the target pixel unit in the display array, and is used for transmitting a detection signal in the display time slot of the target pixel unit.
Optionally, the display module further includes: a driving unit generating a frame synchronization signal; the frame synchronization signal triggers the display refreshing of the display module;
the distance detection module includes: the determining unit is electrically connected with the driving unit and used for acquiring delay time and determining the display time slot of the target pixel unit according to the starting time of the frame synchronization signal and the delay time; wherein the delay time is predetermined according to a positional relationship between the target pixel unit and a first pixel unit of the display array.
Optionally, the display module further includes: a driving unit generating a frame synchronization signal; wherein the frame synchronization signal triggers a display refresh of the display array;
the mobile terminal further comprises: the processing module is electrically connected with the driving unit and the distance detection module and used for acquiring delay time and determining the display time slot of the target pixel unit according to the starting time of the frame synchronization signal and the delay time; wherein the delay time is predetermined according to a positional relationship between the target pixel unit and a first pixel unit of the display array.
Optionally, the delay time has a predetermined number of delay durations; the processing module comprises: the time delay unit is electrically connected with the driving unit and used for counting the number of the time delay duration and outputting a first trigger signal when the counting is finished;
and the distance detection module transmits the detection signal based on the triggering of the first triggering signal.
Optionally, the display module further includes: a driving unit generating a frame synchronization signal; wherein the frame synchronization signal triggers a display refresh of the display array;
the mobile terminal further comprises: the delay unit is electrically connected with the driving unit and the distance detection module and is used for outputting a second trigger signal after a fixed delay time from the time when the frame synchronization signal is received; the fixed delay time is delay time which is predetermined according to the position relation between the target pixel unit and the first pixel unit of the display array;
and the distance detection module transmits the detection signal based on the triggering of the second triggering signal.
A processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to: when the executable instructions are executed, the steps in the method according to any one of the first aspect of the embodiments of the present disclosure are implemented.
According to a fourth aspect of the embodiments of the present disclosure, there is provided a storage medium, wherein instructions that, when executed by a processor of a mobile terminal, enable the mobile terminal to perform the steps of the method according to any one of the first aspect of the embodiments of the present disclosure.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
when a detection signal emitted by the distance detection module passes through the target pixel unit, the detection signal can excite electrons in the target pixel unit for display to generate transition, interference is generated on the target pixel unit, and the target pixel unit is subjected to error display. The distance detection module of the embodiment of the disclosure transmits the detection signal in the display time slot of the target pixel unit, thereby reducing the interference of the detection signal transmitted by the distance detection module to the target pixel unit, reducing the probability of the target pixel unit displaying in error, and being beneficial to ensuring the display effect while performing distance detection.
After the distance detection module transmits the detection signal, the distance detection module receives a reflection signal formed by the action of the detection signal on the target object, and then the distance between the distance detection module and the target object can be detected.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
FIG. 1 is a flow chart illustrating a method of distance detection according to an exemplary embodiment.
Fig. 2 is a schematic diagram illustrating a pixel cell according to an exemplary embodiment.
Fig. 3 is a block diagram illustrating a mobile terminal according to an example embodiment.
Fig. 4 is a partial schematic diagram illustrating a mobile terminal according to an example embodiment.
Fig. 5 is a partial schematic diagram illustrating another mobile terminal according to an example embodiment.
FIG. 6 is a partial schematic diagram illustrating a distance detection module in accordance with an exemplary embodiment.
Fig. 7 is a partial schematic diagram illustrating another mobile terminal according to an example embodiment.
FIG. 8 is a block diagram illustrating an apparatus for distance detection in accordance with an example embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
With the development of mobile terminal technology, user's demand for mobile terminals having a large screen ratio is gradually increasing. In order to increase the screen occupation ratio of the mobile terminal, a functional area occupying the front panel of the mobile terminal needs to be arranged on the back of the display screen, so as to increase the area of the front panel of the mobile terminal, which can be used for setting the display screen, i.e. increase the screen occupation ratio of the mobile terminal. For example, the distance sensor can be arranged below the display screen, and the hole opening processing is not needed to be carried out on the position, corresponding to the infrared transmitting and receiving path of the distance sensor, of the display screen.
In general, by controlling a transistor having a PN junction such as a Metal Oxide Semiconductor (MOS) transistor in a display panel, display of a pixel unit electrically connected to the transistor is controlled, so that a pixel array including a plurality of pixel units displays a corresponding image.
When the distance sensor is arranged below the display screen, an infrared signal which is emitted by the distance sensor and used for distance measurement can penetrate through the display screen. When an infrared signal emitted by the distance sensor irradiates on the MOS tube in the turn-off state, photons in the infrared signal collide with carriers such as electrons in the MOS tube, so that the electrons jump, the MOS tube in the turn-off state is switched on erroneously, a pixel unit connected with the MOS tube switched on erroneously emits light, the display of the pixel unit irradiated by the infrared signal is interfered, and the display effect is influenced. For example, the display screen may be excited to display a bright spot.
Fig. 1 is a flowchart illustrating a distance detection method according to an exemplary embodiment, which is applied to a mobile terminal including a display array and a distance detection module. Referring to fig. 1, the method includes the steps of:
s100: determining a display time slot of a target pixel unit covered by the projection of a distance detection module positioned on the back of the display array in a plane where the display array is positioned;
s110: and transmitting a detection signal in the display time slot through a distance detection module.
The display array may include a plurality of pixel cells. The pixel unit may include: one or more sub-pixels. For example, a pixel unit may include 4 sub-pixels as shown in fig. 2. Referring to fig. 2, r (red) denotes a sub-pixel emitting red light, g (green) denotes a sub-pixel emitting green light, and b (blue) denotes a sub-pixel emitting blue light. The sub-pixels may include: organic Light-Emitting diodes (OLEDs), or Light-Emitting diodes (LEDs), etc.
When the display array displays, each pixel unit has a light-emitting period and a display time slot. Illustratively, the pixel unit in the light emitting period generates a light signal according to the driving signal, and the pixel unit in the display time slot suspends generating the light signal. It is understood that the display time slot is located between two adjacent light emitting periods of the pixel unit. Due to the persistence of vision, in the display time slot between two adjacent light-emitting periods, the visual effect of the optical signal generated by the pixel unit in the previous light-emitting period on the retina of the human eye still persists in the brain of the human eye in the display time slot, that is, the user thinks that the pixel unit still displays in the display time slot.
The target pixel cell may include one or more of the above-described pixel cells. It can be understood that, in the distance detection module disposed on the back of the display array, the pixel unit in the display array covered by the projection in the plane where the display array is located is the target pixel unit. The projection of the distance detection module on the plane where the display array is located and the plane where the display array is located have an overlapping area, and the overlapping area is an area covered by the projection of the distance detection module on the plane where the display array is located. The pixel unit in the overlapping area is the target pixel unit. In practical application, when the distance detection module transmits the detection signal, a conical transmission area can be formed. The area of the display array covered by the conical emission area can be regarded as the overlap area, and the pixel unit located in the overlap area is the target pixel unit. Therefore, the accuracy of the determined emission time of the detection signal can be improved, and the interference on the display effect of the target pixel unit is further reduced.
The detection signal that the distance detection module was launched can include: an infrared signal. The power of the infrared signal may be a pulse signal having a certain duty ratio (D), a certain frequency and a certain driving current, which is generated by Pulse Wavelength Modulation (PWM). For example, the infrared signal emitted by the distance detection module may be an infrared signal having a wavelength in a range of 850 nm to 1300 nm. Specifically, the wavelength of the infrared light signal may be 940 nm.
After the distance detection module transmits the detection signal, the distance detection module receives a reflection signal formed by the action of the detection signal on the target object, and then the distance between the distance detection module and the target object can be detected.
For example, the distance between the target object and the distance detection module can be calculated by the time difference between the time when the reflected signal is received and the time when the detection signal is emitted, and the propagation speed of the detection signal in the air.
For another example, the relationship between the distance between the target object and the distance detection module and the preset distance may be determined by comparing the energy of the received reflected signal with a preset energy threshold. Here, when the distance between the target object and the distance detection module is equal to the preset distance, the energy of the reflected signal formed by the target object is equal to the preset energy threshold. Specifically, when the energy of the reflected signal is smaller than a preset energy threshold, the distance between the target object and the distance detection module is larger than a preset distance; when the energy of the reflected signal is greater than the preset energy threshold, the distance between the target object and the distance detection module is smaller than the preset distance.
On the one hand, this disclosed embodiment sets up the distance detection module at the back of display array, and the detection signal that the distance detection module launches directly passes display array, need not to carry out the trompil processing in the corresponding position of display array, establishes the basis for improving mobile terminal's screen occupation of ratio.
On the other hand, the distance detection module of the embodiment of the present disclosure transmits the detection signal in the display time slot of the target pixel unit, so that the interference of the detection signal transmitted by the distance detection module to the target pixel unit is reduced, the probability of the target pixel unit displaying in error is reduced, and the display effect is favorably ensured.
In some embodiments, S100 may comprise:
and determining the display time slot of the target pixel unit according to the frame synchronization signal of the display array and the acquired delay time, wherein the delay time is predetermined according to the position relationship between the target pixel unit and the first pixel unit of the display array.
The frame synchronization signal may be generated by a Driver IC of the display array. For example, the VYSNC sync signal generated after the display array scans a complete array of image data may be a frame sync signal. At this time, it indicates that the refresh of the previous image is completed, and the refresh of the next image frame is started.
Illustratively, the display time slot of the target pixel unit can be determined by a distance detection module (Psensor) of the mobile terminal according to the frame synchronization signal of the display array and the acquired delay time. Therefore, the structure of the distance detection module is utilized to delay the emission of the detection signal after receiving the frame synchronization signal, and the mode is simple.
For example, the display time slot of the target pixel unit can be determined according to the frame synchronization signal of the display array and the acquired delay time through a processing module in the mobile terminal. Here, the processing module 130 may include: a Central Processing Unit (CPU), an Application Processor (AP), a Micro-controller Unit (MCU), and the like. For example, an application processor including a sensor core (sensor core) that controls the distance detection module.
And determining the display time slot of the target pixel unit by using a processing module in the mobile terminal according to the frame synchronization signal of the display array and the acquired delay time in a software control mode so as to control the distance detection module to transmit a detection signal in the display time slot of the target pixel unit.
In some embodiments, the delay time has a predetermined number of delay durations;
the method further comprises the following steps:
counting the number of the delay time lengths, and outputting a first trigger signal when the counting is finished;
s110 may include:
and based on the triggering of the first triggering signal, the distance detection module transmits a detection signal in the display time slot.
Take the case that the application processor of the mobile terminal receives the frame synchronization signal as an example. The application processor may include a hardware circuit having a counting function or a software having a counting function inside. When the application processor receives the frame synchronization signal, the counting function is started to start counting, and a positive timing mode or a negative timing mode can be adopted. For example, the count is started from 0 by a positive count method, and the count is ended when a predetermined number of counts are reached. The application processor outputs the first trigger signal when the timing is finished so as to trigger the distance detection module to transmit the detection signal, thereby realizing the time delay between the transmission detection signal of the distance detection module and the starting time of the frame synchronization signal of the display module, ensuring that the distance detection module carries out distance detection in the display time slot of the target pixel unit, reducing the interference of the detection signal transmitted by the distance detection module on the target pixel unit, reducing the probability of error display of the target pixel unit and being beneficial to ensuring the display effect.
In addition, the hardware circuit with the counting function is used for realizing the time delay between the starting time of the frame synchronization signal of the distance detection module transmitting detection signal and the display module, so that the stability of the time delay is improved, and the user experience is ensured.
And the application processor can continuously output the first trigger signal in the process of refreshing the display of the target pixel unit. The first trigger signal may be a square wave signal. And when the display refreshing of the target pixel unit is finished, the application processor stops outputting the first trigger signal, and at the moment, the distance detection module stops transmitting the distance detection signal. Therefore, the interference of the detection signal emitted by the distance detection module on the target pixel unit can be reduced, the probability of error display of the target pixel unit is reduced, and the display effect is favorably ensured.
In some embodiments, the method further comprises:
receiving a frame synchronization signal generated by a display module of the mobile terminal through a delay unit; the fixed delay time of the delay unit is delay time which is predetermined according to the position relation between the target pixel unit and the first pixel unit of the display array;
after a fixed delay time from the reception of the frame synchronization signal, outputting a second trigger signal by the delay unit;
s110 may include:
based on the second trigger signal, the distance detection module transmits a detection signal in the display time slot.
The delay unit may be a hardware circuit disposed outside the processing module of the mobile terminal. For example, the Delay unit may include a plurality of serially connected D flip-flops (Delay flip-flops). In the embodiment of the disclosure, the hardware circuit with the time delay function is used for realizing the time delay between the starting time of the distance detection module for transmitting the detection signal and the starting time of the frame synchronization signal of the display module, thereby being beneficial to improving the stability of the time delay and ensuring the user experience.
And in the process of refreshing the display of the target pixel unit, the delay unit can continuously output the second trigger signal. The second trigger signal may be a square wave signal. And when the display refreshing of the target pixel unit is finished, the delay unit stops outputting the second trigger signal, and at the moment, the distance detection module stops transmitting the distance detection signal. Therefore, the interference of the detection signal emitted by the distance detection module on the target pixel unit can be reduced, the probability of error display of the target pixel unit is reduced, and the display effect is favorably ensured.
Fig. 3 is a diagram illustrating a mobile terminal 100 according to an example embodiment. Referring to fig. 3, the mobile terminal 100 includes:
the display module 110 includes: displaying the array;
the distance detection module 120 is located on the back of the display array, and the projection in the plane of the display array covers the target pixel unit in the display array, and is configured to transmit the detection signal in the display time slot of the target pixel unit.
On the one hand, this disclosed embodiment sets up the distance detection module at the back of display array, and the detection signal that the distance detection module launches directly passes display array, need not to carry out the trompil processing in the corresponding position of display array, establishes the basis for improving mobile terminal's screen occupation of ratio.
On the other hand, the distance detection module of the embodiment of the present disclosure transmits the detection signal in the display gap of the target pixel unit, so that the interference of the detection signal transmitted by the distance detection module to the target pixel unit is reduced, the probability of the target pixel unit displaying in error is reduced, and the display effect is favorably ensured.
In some embodiments, referring to fig. 4, the display module 110 further includes: a driving unit 111 generating a frame synchronization signal; wherein the frame synchronization signal triggers a display refresh of the display array;
the distance detection module 120 includes: the determining unit is electrically connected with the driving unit 111 and is used for acquiring the delay time and determining the display time slot of the target pixel unit according to the starting time and the delay time of the frame synchronization signal; wherein the delay time is predetermined according to a positional relationship between the target pixel unit and a first pixel unit of the display array.
Before the display array of the display module displays each frame of image, the driving unit 111 generates a frame synchronization signal, and the display array starts scanning of the pixel units based on the frame synchronization signal, removes the content corresponding to the previous frame of image in the pixel units, and displays the content corresponding to the next frame of image, so as to complete the display refresh of the display module.
The determining unit may determine a delay time between the start time of the display refresh of the target pixel unit and the start time of the frame synchronization signal of the display module 110 according to the position set by the image capturing module. It can be understood that, after the delay time elapses since the determination unit receives the frame synchronization signal, the target pixel unit starts to perform display refresh, the transistor of the target pixel unit is controlled to be turned off, the target pixel unit stops emitting light, and the target pixel unit enters a display time slot.
The determination unit may include: a timer circuit. Specifically, when the determination unit receives the frame synchronization signal, the timer circuit starts to start timing. The timer circuit may count up or count down. Taking the time difference between the start time of the display refresh of the target pixel unit and the start time of the frame synchronization signal of the display module 110 as 15 ms as an example, the timer circuit starts from 0 ms and counts up at intervals of 1 ms. When the timer circuit counts 15 milliseconds, the distance detection module 120 transmits a detection signal to perform distance detection.
Illustratively, the first pixel cell of the display array may be: when the display array is refreshed, the first pixel unit which is refreshed is displayed.
The positional relationship between the target pixel cell and the first pixel cell of the display array may include: the vertical distance between a target pixel row where the target pixel unit is located and a pixel row where the first pixel unit is located; or the vertical distance between the target pixel column where the target pixel unit is located and the pixel column where the first pixel unit is located.
Referring to fig. 4, assuming that point a in the display array is the starting point of each frame of image scanning, i.e. the position where the first pixel unit of the display array is located, and the refresh rate of the image displayed by the mobile terminal is F, the refresh time t of each array of images is 1/F. Assuming that the time required for the mobile terminal to prepare data required for the next frame of image and transmit the same to the driving unit is t1, the time t2 at which the display array refreshes one frame of image after receiving the frame sync signal is t-t 1. Here, t1 may be determined according to information displayed by a System-on-a-Chip (soc) management module.
Assuming that the length of the display array in the Y direction is L1, the vertical distance between the distance detection module 120 disposed on the back of the display array and the row where the point a is located is L2. Here, the vertical distance between the distance detection module 120 and the row of the point a can be represented by the number of rows of the pixel units spaced between the row of the target pixel unit and the row of the point a. For example, if the pitch between the pixel cells in each row is d, and the number of rows of pixel cells spaced between the row of the target pixel cell and the row of the point a is n, L2 is (n +1) d. Specifically, when the row at the point a is the 1 st row and the row at the point a is the 4 th row, the number of rows of pixel units spaced between the row at the point a and the row at the point a is 2, and L2 is 3 d.
When the display array performs progressive scanning along the Y-direction refresh direction, the time difference t3 between the start time of the display refresh of the target pixel unit and the start time of the frame synchronization signal of the display module 110 is (L2/L1) × t2, i.e., the total time length with the predetermined number of delay time lengths is t 3. In this case, the predetermined number n is (T3/T), and T is the delay time period.
The embodiment of the disclosure directly sends the frame synchronization signal to the distance detection module, determines the display time slot of the target pixel unit based on the determination unit in the distance detection module, and transmits the detection signal in a delayed manner after receiving the frame synchronization signal by using the structure of the distance detection module, so that the method is simple and has strong compatibility with the prior art.
In some embodiments, the display module further comprises: a driving unit generating a frame synchronization signal; wherein the frame synchronization signal triggers a display refresh of the display array;
the mobile terminal further comprises: the processing module is electrically connected with the driving unit and the distance detection module and used for acquiring delay time and determining the display time slot of the target pixel unit according to the starting time of the frame synchronization signal and the delay time; wherein the delay time is predetermined according to a positional relationship between the target pixel unit and a first pixel unit of the display array.
In some embodiments, referring to fig. 5, the display module 110 further includes: a driving unit 111 generating a frame synchronization signal; wherein the frame synchronization signal triggers a display refresh of the display array;
the mobile terminal 100 further includes: the processing module 130 is electrically connected with the driving unit 111 and the distance detection module 120, and is configured to obtain a delay time and determine a display time slot of the target pixel unit according to the start time and the delay time of the frame synchronization signal; wherein the delay time is predetermined according to a positional relationship between the target pixel unit and a first pixel unit of the display array.
The processing module 130 may include: a Central Processing Unit (CPU), an Application Processor (AP), a Micro-controller Unit (MCU), and the like. The processing module 130 may determine the display time slot of the target pixel unit in a software manner, and the processing module 130 may further include a hardware circuit for determining the display time slot of the target pixel unit, thereby providing a plurality of manners for determining the display time slot of the target pixel unit, achieving flexibility, and having strong compatibility with the prior art.
After completing the scanning of one frame of image, the mobile device 100 transmits a frame synchronization signal to the processing module 130 through the driving unit 111 to start the scanning of the next frame of image. After the delay time elapses from the time when the frame synchronization signal is received, the processing module 130 sends a wake-up signal to the distance detection module 120, so that the distance detection module that receives the wake-up signal performs configuration of an internal circuit, thereby completing initialization. And initializing the distance detection module, and waiting for the arrival of a first control signal for starting to transmit the detection signal. When the distance detection module 120 receives the first control signal, it starts to transmit a detection signal. Here, the first control signal and the detection signal may be both pulse signals. For example, the detection signal may be a Pulse Width Modulation (PWM) infrared pulse signal.
When the mobile terminal 100 includes a plurality of distance detection modules, different distance detection modules may be distributed at different positions on the back of the display array. For example, when the display array is rectangular and the mobile terminal includes 4 distance detection modules, 1 distance detection module is respectively disposed at each angle of the rectangular array. At this time, the processing module 130 may also selectively enable at least one distance detection module according to actual requirements.
For example, when the remaining power of the mobile terminal 100 is greater than the low power threshold or the mobile terminal is in a charging state, the distance detection modules located at different positions may be awakened to improve the accuracy of distance detection; when the remaining power of the mobile terminal 100 is less than or equal to the low power threshold, a distance detection module can be awakened, power consumption of the mobile terminal is reduced on the premise that normal use of a distance detection function is guaranteed, and standby time of the mobile terminal is prolonged.
After the processing module 130 determines the display time slot of the target pixel unit, the driving unit 111 sends the frame synchronization signal to a General-purpose input/output (GPIO) interface of the processing module 130, and the processing module 130 sends a first control signal to the distance detection module 120 at the display time slot of the target pixel unit, and controls the distance detection module 120 to send a detection signal for distance detection.
Fig. 6 is a partial schematic diagram illustrating a distance detection module 120 according to an example embodiment. Taking the detection signal as an infrared signal as an example, the infrared signal emitted by the distance detection module 120 is reflected on the surface of the target object in the environment to form a reflected signal. The reflected signal passes through the display array and reaches a Photodiode (PD) array in a photoelectric conversion circuit of the distance detection module 120, so that the PD array forms a photocurrent corresponding to the received reflected signal energy and forms a corresponding voltage signal, which is input to the primary operational amplifier.
Since some infrared signals may exist in the environment, the photodiode may generate bias signals such as current, which may interfere the accuracy of the distance detection module for distance detection. Therefore, by setting a first stage operational amplifier circuit and lowThe filter circuit can filter bias signals such as dark current and the like generated in the photoelectric conversion circuit, and the accuracy of distance detection is improved. And the secondary operational amplifier circuit in the distance detection module is used for amplifying the voltage signal input into the secondary operational amplifier circuit. Here, the input voltage of the first-stage operational amplifier circuit is VLOutput voltage of the first-stage operational amplifier circuit
Figure BDA0002297158740000111
Cut-off frequency of low-pass filter circuit
Figure BDA0002297158740000112
Output voltage of secondary operational amplifier circuit
Figure BDA0002297158740000113
Wherein R isFIs the resistance value R of a resistor connected with a capacitor in parallel in a primary operational amplifier circuit1For the input voltage V in the first-stage operational amplifier circuitLResistance value of the resistor in the path of (1), R4Is the resistance value of the input end resistor, C, of the low-pass filter circuit5The capacitance value R of the grounding capacitor in the low-pass filter circuit5Is the resistance value, R, of the resistor on the path connecting the low-pass filter circuit and the secondary operational amplifier circuitFnIs the resistance value, R, of a resistor in a two-stage operational amplifier circuit6The resistance value of the resistor on the grounding path of the secondary operational amplifier circuit.
The amplified voltage signal is input to a sample-and-hold circuit, and a second control signal is input to a transistor Q 'in the sample-and-hold circuit through a point B, so that the state of the transistor Q' is controlled. Referring to fig. 6, the second control signal may be a square wave signal, when the signal value of the second control signal is at a high level, the transistor Q' is turned on, and the amplified voltage signal is applied to the capacitor C in the sample-and-hold circuit1Charging; when the signal value of the second control signal is low level, the transistor Q' is turned off, and the amplified voltage signal stops flowing to the capacitor C in the sample-and-hold circuit1And (6) charging. Here, the output voltage u of the sample-and-hold circuit0=-u02
When it is coupled to the capacitor C1The charging time of (2) reaches the set integration timeAt this time, an Analog to Digital Converter (ADC) circuit starts sampling and stores a binary value formed by the sampling into a register. After the data in the register is prepared, the distance detection module sends a signal to the processing module through an interrupt PIN (INT PIN) so as to inform the processing module to acquire the data in the register. The processing module can acquire data in the register through a Serial Clock Line (SCL) pin and a serial data line (SDA) pin which support two-wire serial bus (I2C) communication on the distance detection module, convert the acquired binary data into decimal data, compare the decimal data with a set approach threshold and a set distance threshold, and judge whether a target object is close to the mobile terminal or far away from the mobile terminal, so that distance detection can be realized.
In some embodiments, the delay time has a predetermined number of delay durations;
the processing module 130 includes: the delayer is electrically connected with the driving unit 111 and used for counting the number of the delay time and outputting a first trigger signal when the counting is finished;
the distance detection module 120 transmits a detection signal based on the triggering of the first trigger signal.
When the frame synchronization signal generated by the driving unit 111 indicates that the refresh of a frame of image is completed, the time delay starts to time when receiving the frame synchronization signal. The delay timer may count up or count down.
When the display array performs display refreshing line by line from the point a along the Y direction refreshing direction in fig. 4 and the time delay timer finishes timing, the target pixel unit is in the display time slot. At this time, the delay unit sends a first trigger signal to the distance detection module to control the distance detection module 120 to transmit the detection signal.
In the embodiment of the disclosure, the time delay unit starts to time when receiving the frame synchronization signal, and triggers the distance detection module to transmit the detection signal when the time delay is over, so that the time delay between the transmission of the detection signal by the distance detection module and the start time of the frame synchronization signal by the display module is realized, the distance detection module is ensured to perform distance detection in the display time slot of the target pixel unit, the interference of the detection signal transmitted by the distance detection module on the target pixel unit is reduced, the probability of error display of the target pixel unit is reduced, and the display effect is favorably ensured.
In addition, the delay between the starting time of the distance detection module for transmitting the detection signal and the frame synchronization signal of the display module is realized based on hardware circuits such as a delayer, the working stability of the device is high, and the user experience is favorably ensured.
In some embodiments, referring to fig. 7, the display module 100 further includes: a driving unit 111 generating a frame synchronization signal; the frame synchronization signal triggers the display refreshing of the display array;
the mobile terminal 100 further includes: the delay unit 131 is electrically connected to the driving unit 111 and the distance detection module 120, and configured to output a second trigger signal after a fixed delay time elapses from the time when the frame synchronization signal is received; the fixed delay time is delay time which is predetermined according to the position relation between the target pixel unit and the first pixel unit of the display array;
the distance detection module 120 transmits a detection signal based on the triggering of the second trigger signal.
The delay unit 131 is a hardware circuit having a delay function. For example, there may be multiple D flip-flops in series. In the embodiment of the disclosure, the hardware circuit with the time delay function is used for realizing the time delay between the starting time of the distance detection module for transmitting the detection signal and the frame synchronization signal of the display module, thereby being beneficial to improving the stability of the time delay and ensuring the user experience.
Fig. 8 is a block diagram illustrating an apparatus 800 for distance detection in accordance with an example embodiment. For example, the apparatus 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and so forth.
Referring to fig. 8, the apparatus 800 may include one or more of the following components: a processing component 802, a memory 804, a power component 806, a multimedia component 808, an audio component 810, an input/output (I/O) interface 812, a sensor component 814, and a communications component 816.
The processing component 802 generally controls overall operation of the device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 802 may include one or more processors 820 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 802 can also include one or more modules that facilitate interaction between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operations at the apparatus 800. Examples of such data include instructions for any application or method operating on device 800, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 804 may be implemented by any type or combination of volatile or non-volatile storage devices, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
Power component 806 provides power to the various components of device 800. The power assembly 806 may include: a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the device 800.
The multimedia component 808 includes a screen that provides an output interface between the device 800 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 800 is in an operating mode, such as a shooting mode or a video mode. Each front camera and/or rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive external audio signals when the apparatus 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 814 includes one or more sensors for providing various aspects of state assessment for the device 800. For example, the sensor assembly 814 may detect the open/closed status of the device 800, the relative positioning of components, such as a display and keypad of the device 800, the sensor assembly 814 may also detect a change in the position of the device 800 or a component of the device 800, the presence or absence of user contact with the device 800, the orientation or acceleration/deceleration of the device 800, and a change in the temperature of the device 800. The sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 816 is configured to facilitate communications between the apparatus 800 and other devices in a wired or wireless manner. The apparatus 800 may access a wireless network based on a communication standard, such as WiFi, 2G, or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, or other technologies.
In an exemplary embodiment, the apparatus 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 804 comprising instructions, executable by the processor 820 of the device 800 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer readable storage medium, wherein instructions, when executed by a processor of a mobile terminal, enable the mobile terminal to perform the steps of the distance detection method provided by the embodiments of the present disclosure.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (11)

1. A distance detection method is applied to a mobile terminal comprising a display array and a distance detection module, and comprises the following steps:
determining a display time slot of a target pixel unit covered by the projection of a distance detection module positioned on the back of the display array in a plane where the display array is positioned;
and transmitting a detection signal in the display time slot through the distance detection module.
2. The method of claim 1, wherein the determining the display time slot of the target pixel unit covered by the projection of the distance detection module located at the back of the display array in the plane of the display array comprises:
determining the display time slot of the target pixel unit according to the frame synchronization signal of the display array and the acquired delay time; wherein the delay time is predetermined according to a positional relationship between the target pixel unit and a first pixel unit of the display array.
3. The method of claim 2,
the delay time has a predetermined number of delay durations;
the method further comprises the following steps:
counting the number of the delay time lengths, and outputting a first trigger signal when the counting is finished;
the transmitting detection signal in the display time slot through the distance detection module comprises:
and based on the triggering of the first triggering signal, the distance detection module transmits the detection signal in the display time slot.
4. The method of claim 1,
the determining the display time slot of the target pixel unit covered by the projection of the distance detection module positioned on the back of the display array in the plane where the display array is positioned comprises:
receiving a frame synchronization signal generated by a display module of the mobile terminal through a delay unit; the fixed delay time of the delay unit is delay time predetermined according to the position relationship between the target pixel unit and the first pixel unit of the display array;
outputting a second trigger signal by a delay unit from the time when the frame synchronization signal is received to the time when the fixed delay time passes;
the transmitting detection signal in the display time slot through the distance detection module comprises:
and based on the second trigger signal, the distance detection module transmits a detection signal in the display time slot.
5. A mobile terminal, comprising:
display module assembly includes: displaying the array;
and the distance detection module is positioned on the back of the display array, and the projection in the plane of the display array covers the target pixel unit in the display array, and is used for transmitting a detection signal in the display time slot of the target pixel unit.
6. The mobile terminal of claim 5,
the display module assembly still includes: a driving unit generating a frame synchronization signal; wherein the frame synchronization signal triggers a display refresh of the display array;
the distance detection module includes: the determining unit is electrically connected with the driving unit and used for acquiring delay time and determining the display time slot of the target pixel unit according to the starting time of the frame synchronization signal and the delay time; wherein the delay time is predetermined according to a positional relationship between the target pixel unit and a first pixel unit of the display array.
7. The mobile terminal of claim 5,
the display module assembly still includes: a driving unit generating a frame synchronization signal; wherein the frame synchronization signal triggers a display refresh of the display array;
the mobile terminal further comprises: the processing module is electrically connected with the driving unit and the distance detection module and used for acquiring delay time and determining the display time slot of the target pixel unit according to the starting time of the frame synchronization signal and the delay time; wherein the delay time is predetermined according to a positional relationship between the target pixel unit and a first pixel unit of the display array.
8. The mobile terminal of claim 7, wherein the delay time has a predetermined number of delay durations;
the processing module comprises: the time delay unit is electrically connected with the driving unit and used for counting the number of the time delay duration and outputting a first trigger signal when the counting is finished;
and the distance detection module transmits the detection signal based on the triggering of the first triggering signal.
9. The mobile terminal of claim 5,
the display module assembly still includes: a driving unit generating a frame synchronization signal; wherein the frame synchronization signal triggers a display refresh of the display array;
the mobile terminal further comprises: the delay unit is electrically connected with the driving unit and the distance detection module and used for outputting a second trigger signal after a fixed delay time from the time when the frame synchronization signal is received; the fixed delay time is delay time which is predetermined according to the position relation between the target pixel unit and the first pixel unit of the display array;
and the distance detection module transmits the detection signal based on the triggering of the second triggering signal.
10. A distance detection device, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to: the executable instructions, when executed, implement the steps in the method of any one of claims 1 to 4.
11. A non-transitory computer readable storage medium having instructions which, when executed by a processor of a mobile terminal, enable the mobile terminal to perform the steps of the method of any one of claims 1 to 4.
CN201911207161.7A 2019-11-29 2019-11-29 Distance detection method, mobile terminal, distance detection device, and storage medium Pending CN112882776A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911207161.7A CN112882776A (en) 2019-11-29 2019-11-29 Distance detection method, mobile terminal, distance detection device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911207161.7A CN112882776A (en) 2019-11-29 2019-11-29 Distance detection method, mobile terminal, distance detection device, and storage medium

Publications (1)

Publication Number Publication Date
CN112882776A true CN112882776A (en) 2021-06-01

Family

ID=76039151

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911207161.7A Pending CN112882776A (en) 2019-11-29 2019-11-29 Distance detection method, mobile terminal, distance detection device, and storage medium

Country Status (1)

Country Link
CN (1) CN112882776A (en)

Similar Documents

Publication Publication Date Title
CN112333335B (en) Ambient light and proximity detection method, shooting method, terminal and computer storage medium
US10909894B2 (en) Display panel and terminal
US11030946B1 (en) Ambient brightness detection method, electronic device, detection apparatus and storage medium
RU2706461C1 (en) Display panel, as well as a method, a device and a computer-readable data medium for photoelectric detection
US11417270B2 (en) Organic light-emitting diode display, display control method and electronic device
CN109410833B (en) Ambient light detection method, ambient light detection device, terminal and storage medium
US10861418B2 (en) Methods, devices, and storage medium for determining ambient brightness
US11107395B2 (en) Method and apparatus for detecting ambient light, and terminal device and storage medium thereof
EP2991067B1 (en) Backlight brightness control method and device
EP3792904A1 (en) Light intensity detecting module, screen member and mobile terminal
US10930217B2 (en) Method and apparatus for compensating operating parameter of display circuit
CN109192135B (en) Ambient light brightness determination device and method
CN113074812B (en) Ambient light intensity detection method and device, electronic equipment and storage medium
CN112882776A (en) Distance detection method, mobile terminal, distance detection device, and storage medium
US11284029B2 (en) Active pixel sensor array, display panel and electronic device
US10957250B2 (en) Terminal device, sensing method and apparatus with sensor for fingerprint identification
EP3629317A1 (en) Oled displaying method and device
CN112394845B (en) Distance sensor module, display device, electronic equipment and distance detection method
CN111883040B (en) Display effect adjusting method and device of display screen, terminal equipment and medium
CN113571027B (en) Control method and device for display screen of electronic equipment, electronic equipment and storage medium
CN113852720B (en) Ambient light determination method, device, terminal equipment and medium

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