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

By arranging a distance detection module on the back of the display array of the mobile terminal and transmitting detection signals within the display time slot of the target pixel unit, the problem of distance sensor interference with display is solved and efficient distance detection and excellent display effects are achieved.

CN112882776BActive Publication Date: 2024-09-20BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201911207161.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-11-29
Publication Date
2024-09-20
Estimated Expiration
2039-11-29

AI Technical Summary

Technical Problem

When the distance sensor is set up in a mobile terminal, it will affect the display effect of the display screen because its infrared signal passes through the display screen and interferes with the pixel unit, causing erroneous display.

Method used

The distance detection module is arranged on the back of the display array and emits detection signals within the display time slot of the target pixel unit to reduce interference to the display. The display time slot of the target pixel unit is determined through the frame synchronization signal and the delay time, and the delay unit or counter is used to implement delayed transmission of the detection signal.

Benefits of technology

This reduces the probability of incorrect display of the target pixel unit, ensures the display effect during distance detection, and improves the screen-to-body ratio of the mobile terminal.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112882776B
    Figure CN112882776B
Patent Text Reader

Abstract

The present disclosure relates to a distance detection method, a mobile terminal, a distance detection device and a storage medium. The method is applied to a mobile terminal including a display array and a distance detection module. The method includes: determining a display time slot of a target pixel unit covered by a projection of a distance detection module located on the back of the display array within a plane where the display array is located; and transmitting a detection signal within the display time slot by the distance detection module.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical field of mobile terminals, and in particular to a distance detection method, a mobile terminal, a distance detection device and a storage medium. Background Art

[0002] With the development of mobile terminal technology, proximity sensors (P-Sensors) are widely used in mobile terminals. When a user uses a mobile terminal for communication, the proximity sensor can detect the distance between the user's face and the display screen of the mobile terminal, and when the display screen is too close to the user's face, the screen is turned off to prevent the user's face from being accidentally touched.

[0003] The infrared transmission and receiving paths of the distance sensor correspond to the positions of the display screen. In the related art, in order to reduce the number of holes on the display screen to increase the screen-to-body ratio of the mobile terminal, the distance sensor is set below the display screen. However, the distance sensor will affect the display effect of the display screen when performing distance detection. Summary of the invention

[0004] In view of this, the present disclosure provides a distance detection method, a mobile terminal, a distance detection device and a storage medium.

[0005] According to a first aspect of an embodiment of the present disclosure, there is provided a distance detection method, which is applied to a mobile terminal including a display array and a distance detection module, and the method includes:

[0006] Determine 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 where the display array is located;

[0007] The distance detection module transmits a detection signal within the display time slot.

[0008] Optionally, the determining of 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 where the display array is located includes:

[0009] The display time slot of the target pixel unit is determined according to the frame synchronization signal of the display array and the acquired delay time; wherein the delay time is predetermined according to the positional relationship between the target pixel unit and the first pixel unit of the display array.

[0010] Optionally, the delay time has a predetermined number of delay durations;

[0011] The method further comprises:

[0012] Counting the number of the delay durations, and outputting a first trigger signal when the counting is completed;

[0013] The transmitting of the detection signal in the display time slot by the distance detection module includes:

[0014] Based on the triggering of the first trigger signal, the distance detection module transmits the detection signal within the display time slot.

[0015] Optionally, the determining of 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 where the display array is located includes:

[0016] A frame synchronization signal generated by a display module of the mobile terminal is received through a delay unit; in fact, the fixed delay time of the delay unit is a delay time predetermined according to a positional relationship between the target pixel unit and the first pixel unit of the display array;

[0017] After the fixed delay time has passed since the frame synchronization signal is received, the delay unit outputs a second trigger signal;

[0018] The transmitting of the detection signal in the display time slot by the distance detection module includes:

[0019] Based on the second trigger signal, the distance detection module transmits a detection signal within the display time slot.

[0020] According to a second aspect of an embodiment of the present disclosure, there is provided a mobile terminal, including:

[0021] The display module comprises: a display array;

[0022] The distance detection module is located at the back of the display array, and its projection in the plane where the display array is located covers the target pixel unit in the display array, and is used to emit a detection signal in the display time slot of the target pixel unit.

[0023] Optionally, the display module further comprises: a driving unit for generating a frame synchronization signal; wherein the frame synchronization signal triggers a display refresh of the display module;

[0024] The distance detection module includes: a determination unit electrically connected to the driving unit, used to obtain a delay time, and determine a display time slot of the target pixel unit according to the start 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 the first pixel unit of the display array.

[0025] Optionally, the display module further comprises: a driving unit for generating a frame synchronization signal; wherein the frame synchronization signal triggers a display refresh of the display array;

[0026] The mobile terminal also includes: a processing module, which is electrically connected to the driving unit and the distance detection module, and is used to obtain the delay time, and determine the display time slot of the target pixel unit according to the start time of the frame synchronization signal and the delay time; wherein the delay time is predetermined according to the positional relationship between the target pixel unit and the first pixel unit of the display array.

[0027] Optionally, the delay time has a predetermined number of delay durations; the processing module comprises: a delay device electrically connected to the driving unit, for counting the number of the delay durations and outputting a first trigger signal when the counting ends;

[0028] The distance detection module transmits the detection signal based on the triggering of the first trigger signal.

[0029] Optionally, the display module further comprises: a driving unit for generating a frame synchronization signal; wherein the frame synchronization signal triggers a display refresh of the display array;

[0030] The mobile terminal further includes: a delay unit electrically connected to the driving unit and the distance detection module, and configured to output a second trigger signal from the time when the frame synchronization signal is received to the time when a fixed delay time elapses; wherein the fixed delay time is a delay time predetermined according to a positional relationship between the target pixel unit and the first pixel unit of the display array;

[0031] The distance detection module transmits the detection signal based on the triggering of the second trigger signal.

[0032] processor;

[0033] a memory for storing processor-executable instructions;

[0034] Wherein, the processor is configured to: when executing the executable instructions, implement the steps in the method described in any one of the first aspects of the embodiments of the present disclosure.

[0035] According to the fourth aspect of an embodiment of the present disclosure, a storage medium is provided. When instructions in the storage medium are executed by a processor of a mobile terminal, the mobile terminal is enabled to execute the steps in the method as described in any one of the first aspect of the embodiment of the present disclosure.

[0036] The technical solution provided by the embodiments of the present disclosure may have the following beneficial effects:

[0037] When the detection signal emitted by the distance detection module passes through the target pixel unit, the detection signal will stimulate the electrons in the target pixel unit for display to transition, causing interference to the target pixel unit, causing the target pixel unit to display incorrectly. The distance detection module of the disclosed embodiment emits the detection signal within the display time slot of the target pixel unit, which reduces the interference of the detection signal emitted by the distance detection module on the target pixel unit, reduces the probability of incorrect display of the target pixel unit, and is conducive to ensuring the display effect while performing distance detection.

[0038] After the distance detection module transmits the detection signal, the distance detection module receives the reflection signal formed by the detection signal acting on the target object, thereby detecting the distance between the distance detection module and the target object.

[0039] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0041] Figure 1 The figure is a flow chart of a distance detection method according to an exemplary embodiment.

[0042] Figure 2 is a schematic diagram of a pixel unit according to an exemplary embodiment.

[0043] Figure 3 It is a block diagram of a mobile terminal according to an exemplary embodiment.

[0044] Figure 4 It is a partial schematic diagram of a mobile terminal according to an exemplary embodiment.

[0045] Figure 5 It is a partial schematic diagram of another mobile terminal according to an exemplary embodiment.

[0046] Figure 6 It is a partial schematic diagram of a distance detection module according to an exemplary embodiment.

[0047] Figure 7 It is a partial schematic diagram of another mobile terminal according to an exemplary embodiment.

[0048] Figure 8 It is a block diagram of a device for distance detection according to an exemplary embodiment. DETAILED DESCRIPTION

[0049] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0050] With the development of mobile terminal technology, users' demand for mobile terminals with a larger screen-to-body ratio is gradually increasing. In order to increase the screen-to-body ratio of mobile terminals, it is necessary to set the functional area occupying the front panel of the mobile terminal on the back of the display screen to increase the area on the front panel of the mobile terminal that can be used to set the display screen, that is, to increase the screen-to-body ratio of the mobile terminal. For example, the distance sensor can be set below the display screen, without the need to open a hole on the display screen corresponding to the infrared transmission and receiving path of the distance sensor.

[0051] Generally, by controlling a transistor having a PN junction such as a metal oxide semiconductor (MOS) tube in a display screen, the 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.

[0052] When the distance sensor is set under the display screen, the infrared signal for distance measurement emitted by the distance sensor will pass through the display screen. When the infrared signal emitted by the distance sensor irradiates the MOS tube in the off state, the photons in the infrared signal will collide with the electrons and other carriers in the MOS tube, causing the electrons to transition, and the MOS tube in the off state will be mistakenly turned on, causing the pixel unit connected to the mistakenly turned on MOS tube to emit light, interfering with the display of the pixel unit irradiated by the infrared signal, affecting the display effect. For example, it will stimulate the display screen to show bright spots.

[0053] Figure 1 is a flow chart of a distance detection method according to an exemplary embodiment, wherein the method is applied to a mobile terminal including a display array and a distance detection module. Figure 1 As shown, the method comprises the following steps:

[0054] S100: Determine a display time slot of a target pixel unit covered by a projection of a distance detection module located at the back of the display array within the plane where the display array is located;

[0055] S110: Transmitting a detection signal in the display time slot through the distance detection module.

[0056] The display array may include a plurality of pixel units. A pixel unit may include: one or more sub-pixels. For example, a pixel unit may include Figure 2 The 4 sub-pixels shown. Figure 2 As shown in the figure, R (Red) represents a sub-pixel emitting red light, G (Green) represents a sub-pixel emitting green light, and B (Blue) represents a sub-pixel emitting blue light. The sub-pixels may include: organic light-emitting diodes (OLED) or light-emitting diodes (LED).

[0057] When the display array is displaying, each pixel unit has a light-emitting period and a display time slot. Exemplarily, a pixel unit in a light-emitting period generates a light signal according to a driving signal, and a pixel unit in a display time slot suspends generating a light signal. It is understandable that a display time slot is located between two adjacent light-emitting periods of a pixel unit. Due to the persistence of vision phenomenon, in the display time slot between two adjacent light-emitting periods, the visual effect of the light signal generated by the pixel unit in the previous light-emitting period on the retina of the human eye will still remain in the human brain in the display time slot, that is, the user believes that the pixel unit is still displaying in the display time slot.

[0058] The target pixel unit may include one or more of the above-mentioned pixel units. It is understandable that the pixel units in the display array covered by the projection of the distance detection module arranged on the back of the display array in the plane where the display array is located are the above-mentioned target pixel units. The projection of the distance detection module on the plane where the display array is located overlaps with the plane where the display array is located, and the overlapping area is the area covered by the projection of the distance detection module on the plane where the display array is located. The pixel units in the overlapping area are the target pixel units. In practical applications, when the distance detection module emits a detection signal, a conical emission area can be formed. The area in the display array covered by the conical emission area can be regarded as the above-mentioned overlapping area, and the pixel units located in the overlapping area are the target pixel units. In this way, the accuracy of the determined detection signal emission time can be improved, and the interference with the display effect of the target pixel unit can be further reduced.

[0059] The detection signal emitted by the distance detection module may include: an infrared signal. The power of the infrared signal may be a pulse signal with a certain duty cycle (D), a certain frequency and a certain driving current generated by pulse wavelength modulation (PWM). For example, the infrared signal emitted by the distance detection module may be an infrared light signal with a wavelength in the range of 850 nanometers to 1300 nanometers. Specifically, the wavelength of the infrared light signal may be 940nm.

[0060] After the distance detection module transmits the detection signal, the distance detection module receives the reflection signal formed by the detection signal acting on the target object, thereby detecting the distance between the distance detection module and the target object.

[0061] For example, the distance between the target object and the distance detection module can be calculated based on the time difference between the time of receiving the reflected signal and the time of transmitting the detection signal, as well as the propagation speed of the detection signal in the air.

[0062] For another example, the relationship between the distance between the target object and the distance detection module and the preset distance can be determined by comparing the energy of the received reflected signal with the 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 less than the preset energy threshold, the distance between the target object and the distance detection module is greater than the 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 less than the preset distance.

[0063] On the one hand, the embodiment of the present disclosure sets the distance detection module on the back of the display array. The detection signal emitted by the distance detection module directly passes through the display array, and there is no need to perform hole opening processing at the corresponding position of the display array, which lays a foundation for improving the screen-to-body ratio of the mobile terminal.

[0064] On the other hand, the distance detection module of the embodiment of the present disclosure transmits a detection signal within the display time slot of the target pixel unit, which reduces the interference of the detection signal emitted by the distance detection module on the target pixel unit and reduces the probability of erroneous display of the target pixel unit, which is beneficial to ensuring the display effect.

[0065] In some embodiments, S100 may include:

[0066] The display time slot of the target pixel unit is determined according to the frame synchronization signal of the display array and the acquired delay time, wherein the delay time is predetermined according to the positional relationship between the target pixel unit and the first pixel unit of the display array.

[0067] The frame synchronization signal can be generated by the driver IC of the display array. For example, the VYSNC synchronization signal generated after the display array scans a burst of image data can be the frame synchronization signal. At this time, it means that the refresh of the previous burst of images is completed and the refresh of the next frame of images begins.

[0068] For example, the display time slot of the target pixel unit can be determined by the distance detection module (Psensor) of the mobile terminal according to the frame synchronization signal of the display array and the acquired delay time. In this way, the distance detection module uses its own structure to delay the emission of the detection signal after receiving the frame synchronization signal, which is simple.

[0069] For example, the display time slot of the target pixel unit can also be determined by the processing module in the mobile terminal according to the frame synchronization signal of the display array and the acquired delay time. Here, the processing module 130 may include: a central processing unit (CPU), an application processor (AP), a micro-controller unit (MCU), etc. For example, an application processor including a sensor core (sensor core) that controls the distance detection module.

[0070] Through software control, the processing module inside the mobile terminal is used to determine the display time slot of the target pixel unit according to the frame synchronization signal of the display array and the acquired delay time, so as to control the distance detection module to transmit the detection signal in the display time slot of the target pixel unit. It has strong compatibility with the existing technology and is simple in method.

[0071] In some embodiments, the delay time has a predetermined number of delay time lengths;

[0072] The method further comprises:

[0073] Counting the number of delay durations, and outputting a first trigger signal when the counting is completed;

[0074] S110 may include:

[0075] Based on the triggering of the first trigger signal, the distance detection module transmits a detection signal within the display time slot.

[0076] Take the example of the application processor of a mobile terminal receiving a frame synchronization signal. The application processor may include a hardware circuit with a counting function or software with a counting function. When the application processor receives the frame synchronization signal, the counting function is started to start counting, and a positive timing or a countdown method may be used. For example, a positive timing method is used to start counting from 0, and when the count reaches a predetermined number, the timing ends. At the end of the timing, the application processor outputs a first trigger signal to trigger the distance detection module to transmit a detection signal, thereby achieving a delay between the transmission of the detection signal by the distance detection module and the start time of the frame synchronization signal of the display module, ensuring that the distance detection module performs distance detection in the display time slot of the target pixel unit, reducing the interference of the detection signal emitted by the distance detection module on the target pixel unit, and reducing the probability of erroneous display of the target pixel unit, which is conducive to ensuring the display effect.

[0077] In addition, the delay between the detection signal emitted by the distance detection module and the start time of the frame synchronization signal of the display module is realized based on a hardware circuit with a counting function, which is beneficial to improving the stability of the delay and ensuring the user experience.

[0078] During the display refresh process of the target pixel unit, the application processor can continuously output the first trigger signal. The first trigger signal can be a square wave signal. When the display refresh of the target pixel unit is completed, the application processor stops outputting the first trigger signal, and at this time, the distance detection module stops transmitting the distance detection signal. In this way, the interference of the detection signal emitted by the distance detection module on the target pixel unit can be reduced, and the probability of erroneous display of the target pixel unit is reduced, which is conducive to ensuring the display effect.

[0079] In some embodiments, the method further comprises:

[0080] A frame synchronization signal generated by a display module of a mobile terminal is received through a delay unit; wherein a fixed delay time of the delay unit is a delay time predetermined according to a positional relationship between a target pixel unit and a first pixel unit of a display array;

[0081] After a fixed delay time has passed since the frame synchronization signal is received, the delay unit outputs a second trigger signal;

[0082] S110 may include:

[0083] Based on the second trigger signal, the distance detection module transmits a detection signal within the display time slot.

[0084] 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 D flip-flops connected in series. In the disclosed embodiment, the delay between the start time of the distance detection module starting to transmit the detection signal and the start time of the frame synchronization signal of the display module is realized by a hardware circuit with a delay function, which is conducive to improving the stability of the delay and ensuring the user experience.

[0085] During the display refresh process of the target pixel unit, the delay unit can continuously output the second trigger signal. The second trigger signal can be a square wave signal. When the display refresh of the target pixel unit is completed, the delay unit stops outputting the second trigger signal, and at this time, the distance detection module stops transmitting the distance detection signal. In this way, the interference of the detection signal emitted by the distance detection module on the target pixel unit can be reduced, and the probability of erroneous display of the target pixel unit is reduced, which is conducive to ensuring the display effect.

[0086] Figure 3 FIG. 1 is a schematic diagram of a mobile terminal 100 according to an exemplary embodiment. Figure 3 , the mobile terminal 100 includes:

[0087] The display module 110 includes: a display array;

[0088] The distance detection module 120 is located at the back of the display array, and its projection in the plane where the display array is located covers the target pixel unit in the display array, and is used to transmit a detection signal in the display time slot of the target pixel unit.

[0089] On the one hand, the embodiment of the present disclosure sets the distance detection module on the back of the display array. The detection signal emitted by the distance detection module directly passes through the display array, and there is no need to perform hole opening processing at the corresponding position of the display array, which lays a foundation for improving the screen-to-body ratio of the mobile terminal.

[0090] On the other hand, the distance detection module of the embodiment of the present disclosure transmits a detection signal within the display gap of the target pixel unit, which reduces the interference of the detection signal emitted by the distance detection module on the target pixel unit, reduces the probability of erroneous display of the target pixel unit, and is beneficial to ensuring the display effect.

[0091] In some embodiments, reference Figure 4 , the display module 110 further includes: a driving unit 111 for generating a frame synchronization signal; wherein the frame synchronization signal triggers a display refresh of the display array;

[0092] The distance detection module 120 includes: a determination unit, electrically connected to the driving unit 111, for obtaining a delay time, and determining a display time slot of a 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 the first pixel unit of the display array.

[0093] Before the display array of the display module displays each frame of image, the driving unit 111 generates a frame synchronization signal. The display array starts scanning the pixel unit based on the frame synchronization signal, clears the content corresponding to the previous frame of image in the pixel unit, and displays the content corresponding to the next frame of image to complete the display refresh of the display module.

[0094] The determination unit can determine the 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 where the image acquisition module is set. It can be understood that after the delay time has passed since the determination unit receives the frame synchronization signal, the target pixel unit starts to refresh the display, controls the transistor of the target pixel unit to turn off, stops emitting light, and enters the display time slot.

[0095] The determination unit may include: a timer circuit. Specifically, when the determination unit receives a frame synchronization signal, the timer circuit is started and starts timing. The timer circuit can 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 milliseconds as an example, the timer circuit starts from 0 milliseconds and counts up at intervals of 1 millisecond. When the timer circuit counts to 15 milliseconds, the distance detection module 120 transmits a detection signal to perform distance detection.

[0096] Exemplarily, the first pixel unit of the display array may be: the first pixel unit that performs display refresh when the display array is refreshed.

[0097] The positional relationship between the target pixel unit and the first pixel unit of the display array may include: the vertical distance between the target pixel row where the target pixel unit is located and the 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.

[0098] Reference Figure 4 , assuming that point A in the display array is the starting point of each frame image scan, that is, the location of the first pixel unit of the display array, and the refresh rate of the image displayed by the mobile terminal is F, then the refresh time of each frame of the image is t = 1 / F. Assuming that the time required for the mobile terminal to prepare the data required for the next frame of the image and send it to the drive unit is t1, then the time t2 = t-t1 for the display array to refresh a frame of the image after receiving the frame synchronization signal. Here, t1 can be determined based on the information displayed by the system-on-a-chip (soc) management module.

[0099] Assume that the length of the display array in the Y direction is L1, and the vertical distance between the distance detection module 120 disposed on the back of the display array and the row where point A is located is L2. Here, the vertical distance between the distance detection module 120 and the row where point A is located can be reflected by the number of rows of pixel units between the row where the target pixel unit is located and the row where point A is located. For example, the spacing between each row of pixel units is d, and the number of rows of pixel units between the row where the target pixel unit is located and the row where point A is located is n, then L2 = (n+1)d. Specifically, when the row where point A is located is the 1st row and the row where the target pixel unit is located is the 4th row, the number of rows of pixel units between the row where the target pixel unit is located and the row where point A is located is 2, and L2 = 3d.

[0100] When the display array is scanned row by row 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, that is, the total time length of the predetermined number of delay time lengths is t3. At this time, the predetermined number n=(t3 / T), T is the delay time length.

[0101] The disclosed embodiment sends a frame synchronization signal directly to the distance detection module, and determines the display time slot of the target pixel unit based on a determination unit inside the distance detection module, and utilizes the structure of the distance detection module itself to delay the transmission of the detection signal after receiving the frame synchronization signal. The method is simple and has strong compatibility with the existing technology.

[0102] In some embodiments, the display module further includes: a driving unit for generating a frame synchronization signal; wherein the frame synchronization signal triggers a display refresh of the display array;

[0103] The mobile terminal also includes: a processing module, electrically connected to the driving unit and the distance detection module, for obtaining a delay time, and determining a display time slot of the target pixel unit according to a start 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.

[0104] In some embodiments, reference Figure 5 As shown, the display module 110 further includes: a driving unit 111 for generating a frame synchronization signal; wherein the frame synchronization signal triggers the display refresh of the display array;

[0105] The mobile terminal 100 also includes: a processing module 130, which is electrically connected to the driving unit 111 and the distance detection module 120, and is used to obtain a delay time, and determine a display time slot of a target pixel unit according to a start time and a delay time of a 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.

[0106] The processing module 130 may include: a central processing unit (CPU), an application processor (AP), a micro-controller unit (MCU), etc. The processing module 130 may determine the display time slot of the target pixel unit by software, and the processing module 130 may also include a hardware circuit for determining the display time slot of the target pixel unit, which provides a variety of methods for determining the display time slot of the target pixel unit, is flexible to implement, and has strong compatibility with existing technologies.

[0107] After completing the scanning of a frame of image, the mobile device 100 transmits a frame synchronization signal to the processing module 130 through the driving unit 111 to start scanning the next frame of image. From the moment the processing module 130 receives the frame synchronization signal, after the delay time, it sends a wake-up signal to the distance detection module 120, so that the distance detection module that receives the wake-up signal configures the internal circuit and completes the initialization. The initialized distance detection module waits for the arrival of the first control signal to start transmitting the detection signal. When the distance detection module 120 receives the first control signal, it starts to transmit the detection signal. Here, both the first control signal and the detection signal can be pulse signals. For example, the detection signal may be a pulse width modulated (Pulse Width Modulation, PWM) infrared pulse signal.

[0108] When the mobile terminal 100 includes multiple distance detection modules, different distance detection modules can 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 four distance detection modules, each corner of the rectangular array is respectively provided with one distance detection module. At this time, the processing module 130 can also select to enable at least one distance detection module according to actual needs.

[0109] For example, when the remaining power of the mobile terminal 100 is greater than a low-power threshold or the mobile terminal is in a charging state, multiple distance detection modules located at different positions can 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, one distance detection module can be awakened to reduce the power consumption of the mobile terminal and extend the standby time of the mobile terminal while ensuring that the distance detection function can be used normally.

[0110] After the processing module 130 determines the display time slot of the target pixel unit, the driving unit 111 sends a frame synchronization signal to the general-purpose input / output (GPIO) interface of the processing module 130. The processing module 130 sends a first control signal to the distance detection module 120 during the display time slot of the target pixel unit to control the distance detection module 120 to transmit a detection signal for distance detection.

[0111] Figure 61 is a partial schematic diagram of a distance detection module 120 according to an exemplary 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 reflection signal. The reflection signal passes through the display array and reaches the photodiode (PD) array in the photoelectric conversion circuit of the distance detection module 120, so that the photodiode array forms a photocurrent corresponding to the received reflection signal energy, and forms a corresponding voltage signal to be input into the first-stage operational amplifier.

[0112] Since there may be some infrared signals in the environment that will also cause the photodiode to generate current and other bias signals, it will interfere with the distance detection module's accuracy in distance detection. Therefore, by setting up a primary op amp circuit and a low-pass filter circuit, the bias signals such as dark current generated in the photoelectric conversion circuit can be filtered to improve the accuracy of distance detection. The secondary op amp circuit in the distance detection module is used to amplify the voltage signal input to the secondary op amp circuit. Here, the input voltage of the primary op amp circuit is V L , the output voltage of the first stage op amp circuit Cut-off frequency of low-pass filter circuit Output voltage of the secondary op amp circuit Among them, R F is the resistance value of the resistor connected in parallel with the capacitor in the first-stage op amp circuit, and R1 is the input voltage V in the first-stage op amp circuit L R4 is the resistance value of the resistor on the path connecting the low-pass filter circuit to the input terminal, C5 is the capacitance value of the grounding capacitor in the low-pass filter circuit, R5 is the resistance value of the resistor on the path connecting the low-pass filter circuit to the secondary op amp circuit, R Fn is the resistance value of the resistor in the two-stage operational amplifier circuit, and R6 is the resistance value of the resistor on the ground path of the two-stage operational amplifier circuit.

[0113] The amplified voltage signal is input to the sample-and-hold circuit, and the second control signal is input to the transistor Q' in the sample-and-hold circuit through point B to control the state of the transistor Q'. Figure 6 , the second control signal can be a square wave signal. When the signal value of the second control signal is high, the transistor Q' is turned on, and the amplified voltage signal charges the capacitor C1 in the sample and hold circuit; when the signal value of the second control signal is low, the transistor Q' is turned off, and the amplified voltage signal stops charging the capacitor C1 in the sample and hold circuit. Here, the output voltage u0 of the sample and hold circuit is -u 02 .

[0114] When the charging time of capacitor C1 reaches the set integration time, the analog to digital converter (ADC) circuit starts sampling and stores the sampled binary value in the register. After the data in the register is ready, the distance detection module sends a signal to the processing module through the interrupt pin (INT PIN) to notify the processing module to obtain the data in the register. The processing module can obtain the data in the register through the serial clock line (SCL) pin and serial data line (SDA) pin that support two-wire serial bus (I2C) communication on the distance detection module, and convert the obtained binary data into decimal data, and then compare it with the set proximity threshold and distance threshold to determine whether the target object is close to the mobile terminal or far away from the mobile terminal, so as to achieve distance detection.

[0115] In some embodiments, the delay time has a predetermined number of delay time lengths;

[0116] The processing module 130 includes: a delay device, electrically connected to the driving unit 111, for counting the number of delay durations and outputting a first trigger signal when the counting ends;

[0117] The distance detection module 120 transmits a detection signal based on the triggering of the first trigger signal.

[0118] When the frame synchronization signal generated by the driving unit 111 reports that a frame image refresh is completed, the delay device starts timing when receiving the frame synchronization signal. The delay device can count up or count down.

[0119] When the display array is along Figure 4 The Y direction refresh direction starts from point A and performs display refresh line by line, and when the delay timer ends, the target pixel unit is in the display time slot. At this time, the delay timer sends a first trigger signal to the distance detection module to control the distance detection module 120 to transmit a detection signal.

[0120] In the disclosed embodiment, a timer starts timing when a frame synchronization signal is received, and triggers the distance detection module to transmit a detection signal when the timing ends, thereby achieving a delay between the start time of the distance detection module transmitting the detection signal and the start time of the frame synchronization signal of the display module, so as to ensure that the distance detection module performs distance detection in the display time slot of the target pixel unit, reduce the interference of the detection signal emitted by the distance detection module on the target pixel unit, reduce the probability of erroneous display of the target pixel unit, and help to ensure the display effect.

[0121] In addition, based on hardware circuits such as delay devices, the delay between the distance detection module transmitting the detection signal and the start time of the display module's frame synchronization signal is realized. The device has high working stability, which is conducive to ensuring user experience.

[0122] In some embodiments, reference Figure 7 , the display module 110 further includes: a driving unit 111 for generating a frame synchronization signal; wherein the frame synchronization signal triggers a display refresh of the display array;

[0123] The mobile terminal 100 further includes: a delay unit 131, electrically connected to the driving unit 111 and the distance detection module 120, and configured to output a second trigger signal from the time when the frame synchronization signal is received to the time when a fixed delay time elapses; wherein the fixed delay time is a delay time predetermined according to a positional relationship between the target pixel unit and the first pixel unit of the display array;

[0124] The distance detection module 120 transmits a detection signal based on the triggering of the second trigger signal.

[0125] The delay unit 131 is a hardware circuit with a delay function. For example, it can be a plurality of D flip-flops connected in series. In the embodiment of the present disclosure, the delay between the start time of the detection signal emitted by the distance detection module and the frame synchronization signal of the display module is realized by a hardware circuit with a delay function, which is conducive to improving the stability of the delay and ensuring the user experience.

[0126] Figure 8 8 is a block diagram of an apparatus 800 for distance detection according to an exemplary 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, a fitness device, a personal digital assistant, etc.

[0127] Reference Figure 8 , the device 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 communication component 816 .

[0128] The processing component 802 generally controls the overall operation of the device 800, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 802 may also include one or more modules to facilitate the interaction between the processing component 802 and other components. For example, the processing component 802 may include a multimedia module to facilitate the interaction between the multimedia component 808 and the processing component 802.

[0129] The memory 804 is configured to store various types of data to support operations on the device 800. Examples of such data include instructions for any application or method operating on the device 800, contact data, phone book data, messages, pictures, videos, etc. The memory 804 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, 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 disk, or optical disk.

[0130] The power component 806 provides power to the various components of the device 800. The power component 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the device 800.

[0131] The multimedia component 808 includes a screen that provides an output interface between the device 800 and the 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 input signals from the 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 boundaries of the 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 camera and / or a rear camera. When the device 800 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and / or the rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

[0132] The audio component 810 is configured to output and / or input audio signals. For example, the audio component 810 includes a microphone (MIC), and when the device 800 is in an operating mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 804 or sent via the communication component 816. In some embodiments, the audio component 810 also includes a speaker for outputting audio signals.

[0133] I / O interface 812 provides an interface between processing component 802 and peripheral interface modules, such as 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.

[0134] The sensor assembly 814 includes one or more sensors for providing various aspects of status assessment for the device 800. For example, the sensor assembly 814 can detect the open / closed state of the device 800, the relative positioning of components, such as the display and keypad of the device 800, and the sensor assembly 814 can also detect the position change 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 the temperature change of the device 800. The sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 814 may also include an optical 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.

[0135] The communication component 816 is configured to facilitate wired or wireless communication between the device 800 and other devices. The device 800 can 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 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology or other technologies.

[0136] 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, microcontrollers, microprocessors or other electronic components to perform the above method.

[0137] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 804 including instructions, and the instructions can be executed by the processor 820 of the device 800 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0138] A non-transitory computer-readable storage medium, when instructions in the storage medium are executed by a processor of a mobile terminal, enables the mobile terminal to execute the steps in the distance detection method provided in an embodiment of the present disclosure.

[0139] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure, which follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the appended claims.

[0140] It should be understood that the present disclosure is not limited to the exact structures that have been 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

1. A distance detection method, characterized in that: Applied to a mobile terminal including a display array and a distance detection module, the method includes: Determine the display time slot of the target pixel unit covered by the projection of the distance detection module located on the back of the display array in the plane where the display array is located based on the delay time; wherein the delay time includes a time predetermined according to the positional relationship between the target pixel unit and the first pixel unit of the display array; The distance detection module transmits a detection signal within the display time slot.

2. The method according to claim 1, characterized in that: The step of 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 within the plane where the display array is located comprises: The display time slot of the target pixel unit is determined according to the frame synchronization signal of the display array and the acquired delay time.

3. The method according to claim 2, characterized in that The delay time has a predetermined number of delay durations; The method further comprises: Counting the number of the delay durations, and outputting a first trigger signal when the counting is completed; The transmitting of the detection signal in the display time slot by the distance detection module includes: Based on the triggering of the first trigger signal, the distance detection module transmits the detection signal within the display time slot.

4. The method according to claim 1, characterized in that: The step of 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 within the plane where the display array is located comprises: Receiving a frame synchronization signal generated by a display module of the mobile terminal through a delay unit; From the time when the frame synchronization signal is received to the time when the delay unit passes, the delay unit outputs a second trigger signal; The transmitting of the detection signal in the display time slot by the distance detection module includes: Based on the second trigger signal, the distance detection module transmits a detection signal within the display time slot.

5. A mobile terminal, characterized in that: include: The display module comprises: a display array; A distance detection module is located on the back side of the display array, and its projection in the plane where the display array is located covers the target pixel unit in the display array, and is used to transmit a detection signal in the display time slot of the target pixel unit based on a delay time; wherein the delay time includes a time predetermined according to the positional relationship between the target pixel unit and the first pixel unit of the display array.

6. The mobile terminal according to claim 5, characterized in that: The display module further includes: a driving unit for generating a frame synchronization signal; wherein the frame synchronization signal triggers a display refresh of the display array; The distance detection module includes: a determination unit electrically connected to the driving unit, used to obtain the delay time, and determine the display time slot of the target pixel unit according to the start time of the frame synchronization signal and the delay time.

7. The mobile terminal according to claim 5, characterized in that: The display module further includes: a driving unit for generating a frame synchronization signal; wherein the frame synchronization signal triggers a display refresh of the display array; The mobile terminal further includes: a processing module electrically connected to the driving unit and the distance detection module, for acquiring a delay time, and determining a display time slot of the target pixel unit according to a start time of the frame synchronization signal and the delay time.

8. The mobile terminal according to claim 7, characterized in that: The delay time has a predetermined number of delay durations; The processing module includes: a delay device electrically connected to the driving unit, used to count the number of delay durations and output a first trigger signal when the counting ends; The distance detection module transmits the detection signal based on the triggering of the first trigger signal.

9. The mobile terminal according to claim 5, characterized in that: The display module further includes: a driving unit for generating a frame synchronization signal; wherein the frame synchronization signal triggers a display refresh of the display array; The mobile terminal further includes: a delay unit electrically connected to the driving unit and the distance detection module, and configured to output a second trigger signal after the delay time of the delay unit has elapsed since the frame synchronization signal was received; The distance detection module transmits the detection signal based on the triggering of the second trigger signal.

10. A distance detection device, characterized in that: include: processor; a memory for storing processor-executable instructions; Wherein, the processor is configured to: implement the steps in the method according to any one of claims 1 to 4 when executing the executable instructions.

11. A non-transitory computer-readable storage medium, when instructions in the storage medium are executed by a processor of a mobile terminal, the mobile terminal is enabled to perform the steps in the method according to any one of claims 1 to 4.