Patent Description:
In recent years, with the continuous advancement of technologies, multi-functionality of terminals such as a mobile phone has also been continuously improved and developed. For example, for sensing of external ambient light, the terminal may transmit the external ambient light into the terminal by using a light guide component that is exposed to a listening hole or a sound hole, so as to implement sensing of the external ambient light by the terminal.

Accuracy of sensing the external ambient light by the terminal depends on accuracy of a mounting position of the light guide component in the terminal. Therefore, it is extremely important that the light guide component is properly mounted in the terminal. However, because the light guide component is mounted in the terminal, has a relatively small size, and is difficult to be observed, it is difficult to effectively detect whether the light guide component is properly mounted and whether the light guide component is not mounted.

<CIT> discloses an apparatus and methods for verifying an acceptable splice termination, including propagating light energy into the stub optical fiber of a fiber optic connector, detecting and collecting the amount of optical power emanating from the stub optical fiber at a termination area of the connector, converting the optical power to an electrical signal proportional to the amount of collected optical power, and displaying the electrical signal on a feedback monitor, such as an optical power meter, an LCD bar graph, or an LED.

<CIT> discloses a method of determining splice losses of mechanically terminated optical connectors in the field, without the need of terminating both sides of the fiber link.

This application provides an apparatus and a method for detecting a mounting state of a light pipe in a terminal, as defined in the appended set of claims, so as to accurately detect whether the light pipe is properly mounted and whether the light pipe is not mounted.

According to a first aspect, an apparatus for detecting a mounting state of a light pipe in a terminal are provided, including a fixture, a light source, and a light detection module. The fixture is configured to support a terminal housing, and a light inlet path is formed in the fixture. An opening that is of the light inlet path and that is exposed to the fixture is opposite to a mounting position of a light pipe in the terminal housing, and the light inlet path is used to allow light transmitted by the light pipe to pass through. The fixture forms an inclined surface that is used to abut against the back of the terminal housing. A stopper that is used to limit a position of a bottom of the terminal housing is disposed at a lower edge of the inclined surface of the fixture. The opening that is of the light inlet path and that is exposed to the fixture is formed at a bottom edge the inclined surface facing the fixture.

The light source is disposed above the fixture, and is configured to emit detection light to the light pipe. The light detection module is disposed in the fixture, and receives, through the light inlet path, the detection light emitted from the light source. The light detection module is configured to determine a mounting state of the light pipe based on a luminous flux value of the detection light.

In the apparatus for detecting a mounting state of a light pipe in a terminal in this embodiment of this application, the light source of the detection apparatus is disposed above the fixture, the detection light emitted from the light source may simulate external ambient light, and the detection light can pass through the mounting position of the light pipe in the terminal housing, and is transmitted, through the light inlet path of the fixture, to the light detection module that is located in the fixture. Due to cases in which the light pipe is properly mounted in the terminal housing, the mounting position is deviated, the light pipe is not mounted, or the like, the luminous flux value of the detection light that is transmitted to the light detection module through the mounting position of the light pipe and the light inlet path in the terminal housing varies accordingly. In this case, when there is a need to determine the mounting state of the light pipe in the terminal housing, only the terminal housing in which a process of mounting the light pipe is performed needs to be placed on the fixture, and the light source needs to be turned on, so that after the light detection module receives the detection light emitted from the light source, the mounting state of the light pipe in the terminal housing may be determined based on the obtained luminous flux value of the detection light, so as to implement fast, accurate, and contactless detection of the mounting state of the light pipe.

Optionally, the light detection module includes a detection module, a data processing module, and an output module. The detection module is configured to obtain the luminous flux value of the detection light emitted into the fixture through the light inlet path; the data processing module is configured to compare the luminous flux value with a preset threshold to obtain a signal indicating the mounting state of the light pipe; and the output module is configured to output and/or display the signal indicating the mounting state of the light pipe.

The output module may be a display apparatus such as a display, or may be a communication module that is communicatively connected to an external could device such as a Wi-Fi module, a <NUM> module, a <NUM> module, and a communication interface supporting an I2C (Inter-Integrated Circuit) or an SPI (Serial Peripheral Interface). The data processing module and the output module may be integrated on the detection module, to reduce an overall size of the light detection module.

Optionally, the detection module includes a first chip. The first chip is opposite to the opening that is of the light inlet path and that is exposed to the fixture, and is configured to obtain a first luminous flux value that is of the detection light emitted into the fixture through the light inlet path and that is in a principal axis direction of the light inlet path.

The threshold includes a first threshold and a second threshold; and the data processing module is configured to compare the first luminous flux value with the first threshold and the second threshold.

When the first luminous flux value is greater than or equal to the first threshold and is less than or equal to the second threshold, the data processing module outputs a signal indicating that the light pipe is properly mounted; or.

Optionally, the detection module further includes a second chip. The second chip is configured to obtain a second luminous flux value of the detection light that is emitted into the fixture through the light inlet path and that deviates from the principal axis direction of the light inlet path.

The threshold further includes a third threshold and a fourth threshold; and the data processing module is configured to compare the first luminous flux value with the first threshold and the second threshold, and is also configured to compare a percentage of a ratio of the second luminous flux value to the first luminous flux value with the third threshold and the fourth threshold.

When the first luminous flux value is greater than or equal to the first threshold and is less than or equal to the second threshold, and the percentage of the ratio of the second luminous flux value to the first luminous flux value is less than or equal to the third threshold and is greater than or equal to the fourth threshold, the data processing module outputs a signal indicating that the light pipe is properly mounted; or.

Optionally, the detection module includes a first chip and a second chip. The first chip is opposite to the opening that is of the light inlet path and that is exposed to the fixture, and is configured to obtain a first luminous flux value that is of the detection light emitted into the fixture through the light inlet path and that is in a principal axis direction of the light inlet path; and the second chip is configured to obtain a second luminous flux value of the detection light that is emitted into the fixture through the light inlet path and that deviates from the principal axis direction of the light inlet path.

The threshold further includes a third threshold and a fourth threshold; and the data processing module is configured to compare a percentage of a ratio of the second luminous flux value to the first luminous flux value with the third threshold and the fourth threshold.

When the percentage of the ratio of the second luminous flux value to the first luminous flux value is less than or equal to the third threshold and is greater than or equal to the fourth threshold, the data processing module outputs a signal indicating that the light pipe is properly mounted.

When the percentage of the ratio of the second luminous flux value to the first luminous flux value is greater than the third threshold or less than the fourth threshold, the data processing module outputs a signal indicating that the mounting position of the light pipe is deviated.

When the percentage of the ratio of the second luminous flux value to the first luminous flux value is less than the fourth threshold, the data processing module outputs a signal indicating that the light pipe is not mounted.

Optionally, there are two second chips, and the two second chips are respectively disposed on opposite sides of the first chip.

Optionally, the fixture further includes a base and a support member. The support member is detachably disposed on the base, the inclined surface is formed on the support member, the stopper is disposed at a lower end of the support member, the light inlet path is formed in the support member, an accommodation cavity that is used to accommodate the light detection module is provided at a bottom of the support member, and the light inlet path and the accommodation cavity are communicated.

Optionally, a cable trough is disposed at the bottom of the support member An opening on one side of the cable trough is exposed to a side wall of the support member, and an opening on the other side of the cable trough and the accommodation cavity are communicated, so that a cable connected to the light detection module can be hidden in the support member.

Optionally, the support member may be connected to or embedded in the base by using a bolt.

Optionally, the support member includes an oblique supporting block and a horizontal supporting block. The inclined surface is formed on the oblique supporting block, and the oblique supporting block is detachably disposed on the base. The horizontal supporting block is disposed at a lower edge of the oblique supporting block, the stopper is disposed on the horizontal supporting block, and the accommodation cavity is formed at a bottom of the horizontal supporting block. The oblique supporting block and the horizontal supporting block may be integrally cast.

Optionally, the fixture further includes a base and an oblique supporting block. The inclined surface is formed on the oblique supporting block, and the oblique supporting block is detachably disposed on the base. The stopper is disposed on the base and is adjacent to the oblique supporting block. The light inlet path is formed in the base, and an accommodation cavity that is used to accommodate the light detection module is provided at a bottom of the base. The light inlet path and the accommodation cavity are communicated.

Optionally, a projection of an opening that is of the light inlet path and that is exposed to the accommodation cavity covers the light detection module in a height direction of the fixture.

Optionally, the fixture further includes a positioning pin, and the positioning pin is disposed on the inclined surface and is configured to fasten the terminal housing.

Optionally, the fixture further includes two clamping blocks, and the two clamping blocks are detachably disposed on the inclined surface. The two clamping blocks are disposed at intervals, and are configured to clamp the terminal housing.

Optionally, the apparatus for detecting a mounting state of a light pipe in a terminal further includes a box body. The fixture is disposed in the box body, and the light source is disposed on an inner top of the box body.

According to a second aspect, a method for detecting a mounting state of a light pipe in a terminal is provided. The detection method includes the following steps:.

When the method for detecting a mounting state of a light pipe in a terminal provided in this embodiment of this application is implemented, the light source emits the detection light to the mounting position of the light pipe in the terminal housing, and the detection light reaches the light detection module through the mounting position of the light pipe and the light inlet path, so that the light detection module can obtain the luminous flux value of the detection light. In this case, due to cases in which the light pipe is properly mounted in the terminal housing, the mounting position of the light pipe is deviated, the light pipe is not mounted, or the like, the luminous flux value of the detection light that is transmitted to the light detection module through the light inlet path and the mounting position of the light pipe in the terminal housing varies accordingly. In this way, the light detection module can determine the mounting state of the light pipe in the terminal housing based on the obtained luminous flux value of the detection light, so as to implement fast, accurate, and contactless detection of the mounting state of the light pipe.

Optionally, that the light detection module receives, through the light inlet path, detection light emitted from the light source, and determines the mounting state of the light pipe based on a luminous flux value of the detection light includes:.

The light detection module obtains a first luminous flux value that is of the detection light emitted into the fixture through the light inlet path and that is in a principal axis direction of the light inlet path, and compares the first luminous flux value with a preset first threshold and a preset second threshold.

When the first luminous flux value is greater than or equal to the first threshold and is less than or equal to the second threshold, the light detection module outputs a signal indicating that the light pipe is properly mounted.

When the first luminous flux value is less than the first threshold, the light detection module outputs a signal indicating that the mounting position of the light pipe is deviated.

When the first luminous flux value is greater than the second threshold, the light detection module outputs a signal indicating that the light pipe is not mounted.

Optionally, that the light detection module receives, through the light inlet path, detection light emitted from the detection light source, and determines the mounting state of the light pipe based on a luminous flux value of the detection light includes:.

The light detection module obtains a first luminous flux value that is of the detection light emitted into the fixture through the light inlet path and that is in a principal axis direction of the light inlet path, and compares the first luminous flux value with a preset first threshold and a preset second threshold; and
the light detection module obtains a second luminous flux value of the detection light that is emitted into the fixture through the light inlet path and that deviates from the principal axis direction of the light inlet path, and compares a percentage of a ratio of the second luminous flux value to the first luminous flux value with a preset third threshold and a preset fourth threshold.

When the first luminous flux value is greater than or equal to the first threshold and is less than or equal to the second threshold, and the percentage of the ratio of the second luminous flux value to the first luminous flux value is less than or equal to the fourth threshold, the light detection module outputs a signal indicating that the light pipe is properly mounted; or.

The light detection module obtains a first luminous flux value that is of the detection light emitted into the fixture through the light inlet path and that is in a principal axis direction of the light inlet path, and obtains a second luminous flux value of the detection light that is emitted into the fixture through the light inlet path and that deviates from the principal axis direction of the light inlet path; and.

To describe the technical solutions in the embodiments of this application more clearly, the following briefly describes the accompanying drawings required for describing the embodiments or the conventional technology. Apparently, the accompanying drawings in the following descriptions merely show some embodiments of this application, and a person of ordinary skill in the art may still derive others drawings from these accompanying drawings without creative efforts.

Reference numerals in figures are as follows:.

Embodiments of this application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, where the same or similar reference numerals always indicate the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to <FIG> are examples and are intended to explain this application.

In the description of this application, it should be understood that the orientation or positional relationship indicated by the terms "length", "width", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", and the like. is based on the orientation or positional relationship shown in the accompanying drawings, and is only for ease of describing this application and simplifying the description, rather than indicating or implying that the apparatus or component referred to must have a specific orientation, be constructed and operated in a specific orientation, which therefore cannot be understood as a limitation to this application.

In addition, the terms "first" and "second" are used for description only, and cannot be understood as indicating or implying relative importance or implicitly indicating the quantity of indicated technical features. Therefore, the features defined with "first" and "second" may explicitly or implicitly include one or more of the features. In the description of this application, "a plurality of" means two or more, unless otherwise specifically defined.

In this application, unless otherwise specified and defined, the terms, "install", "connected to", "connect", "fix", and the like. , should be understood in a broad sense, for example, a connection may be a fixed connection, or a detachable connection, or an integrated connection; or a mechanical connection or an electric connection; or a direct connection, an indirect connection based on an intermediate medium, or internal communication between two elements or a relationship of interaction between two elements. A person of ordinary skill in the art can understand specific meanings of these terms in this application based on specific situations.

To facilitate understanding by a reader, proper nouns in this application are explained below:
Luminous flux (Luminous Flux) refers to light emitted from a light source with a luminous intensity of <NUM> cd in a solid angle.

Cd (candela) is called kandela in Chinese, and represents a unit of the luminous intensity.

Field of vision (FOV, Field of Vision): In an optical instrument, an angle that uses a lens of the optical instrument as a vertex and that is formed by two edges of a maximum range of the lens through which an object image of a measured target can pass is referred to as a field of vision.

Attenuation ratio (Attenuation ratio) is a ratio of amplitudes in two adjacent directions in attenuation oscillation of an optical path.

With the development of technologies, functions of terminals such as a mobile phone are being constantly improved and developed. For example, in recent years, a display of a terminal such as a mobile phone has developed a function such as automatic backlight brightness adjustment. However, to implement the foregoing function, the terminal needs to be capable of sensing a change of external ambient light.

For example, to achieve a purpose of sensing the external ambient light, a solution in which a light guide component that is exposed to a sound hole is disposed in the terminal may be used. The external ambient light is transmitted into the terminal by using the light guide component, so that a related device in the terminal can obtain a parameter such as luminous flux of ambient light. Certainly, the foregoing solution for obtaining ambient light in which a light pipe is exposed to the sound hole is only one of a plurality of solutions for obtaining ambient light.

Apparently, accuracy of sensing the external ambient light by the terminal depends on accuracy of a mounting position of the light guide component in the terminal. If the light guide component is not properly mounted, an attenuation ratio of the external ambient light that is transmitted into the terminal by using the light pipe is increased. Consequently, the external ambient light that is transmitted into the terminal flickers, an error will occur in the automatic backlight brightness of the terminal, and product experience of a user of the terminal is affected. If the light guide component is not mounted, the external ambient light may directly enter the terminal through the sound hole. In this case, a field of vision of the external ambient light is significantly decreased, and consequently it is difficult for the related device in the terminal to sense the external ambient light, so that the function of the automatic backlight brightness adjustment of the terminal fails.

In addition, the light guide component needs to be exposed to an opening of a small-diameter hole such as the sound hole, and therefore a diameter of the light guide component is usually less than <NUM>, and a length of the light pipe is also less than or equal to <NUM>. Consequently, after the light pipe is mounted in the terminal, it is usually difficult for an operator to visually observe whether a light pipe <NUM> is mounted in an accurate position and whether the light guide component is not mounted.

To resolve the foregoing problems, an embodiment of this application provides an apparatus for detecting a mounting state of a light pipe in a terminal, so as to accurately detect whether the light pipe <NUM> is properly mounted in the terminal, whether the light pipe <NUM> is not mounted, or the like. In this embodiment, the terminal may be a mobile terminal device such as a mobile phone, a tablet computer, and a laptop computer, or may be a large-scale device such as a desktop computer and a communication base station.

Specifically, according to a first aspect, referring to <FIG>, an apparatus for detecting a mounting state of a light pipe in a terminal in this embodiment includes a fixture <NUM>, a detection light source <NUM>, and a light detection module <NUM>. The fixture <NUM> is configured to support a terminal housing <NUM>, and a light inlet path <NUM> is formed in the fixture <NUM>. An opening that is of the light inlet path <NUM> and that is exposed to the fixture <NUM> is opposite to a mounting position of the light pipe <NUM> in the terminal housing <NUM>, and the light inlet path <NUM> is used to allow light transmitted by the light pipe <NUM> to pass through.

More specifically, the detection light source <NUM> is disposed above the fixture <NUM>, and is configured to emit detection light to the light pipe <NUM>. The detection light source <NUM> may be disposed just above the mounting position of the light pipe <NUM> in the terminal housing <NUM>. The light detection module <NUM> is disposed in the fixture <NUM>, and receives, through the light inlet path <NUM>, the detection light emitted from the detection light source <NUM>, and the light detection module <NUM> is configured to determine the mounting state of the light pipe <NUM> based on a luminous flux value of the detection light. The light detection module <NUM> is disposed just below the mounting position of the light pipe <NUM> in the terminal housing <NUM>.

Specifically, in a process of detecting the mounting state of the light pipe <NUM>, the terminal housing <NUM> in which the light pipe <NUM> is mounted may be placed on the fixture <NUM>, so that the detection light source <NUM> is located just above the mounting position of the light pipe <NUM> in the terminal housing <NUM>, and the light detection module <NUM> is located just below the mounting position of the light pipe <NUM> in the terminal housing <NUM>. The terminal housing <NUM> is open, and therefore the detection light emitted from the detection light source <NUM> that is disposed above the fixture <NUM> may be directly emitted to the light pipe <NUM>, and reaches the light detection module <NUM> through transmission and diffusion that are performed by the light pipe <NUM> or through the mounting position of the light pipe <NUM>. In this case, the light is transmitted bidirectionally, and therefore the foregoing detection solution can better reversely simulate a case in which the external ambient light is directly emitted into the terminal through the mounting position of the light pipe <NUM> in the terminal housing <NUM>.

Referring to <FIG>, the apparatus for detecting a mounting state of a light pipe in a terminal provided in this embodiment of this application is further described below. In the apparatus for detecting a mounting state of a light pipe in a terminal, the detection light source <NUM> of the detection apparatus is disposed above the fixture <NUM>. The detection light emitted from the detection light source may simulate the external ambient light. The detection light can pass through the mounting position of the light pipe <NUM> in the terminal housing <NUM>, and is transmitted, through the light inlet path <NUM> of the fixture <NUM>, to the light detection module <NUM> that is located in the fixture <NUM>. Due to cases in which the light pipe <NUM> is properly mounted in the terminal housing <NUM>, the mounting position is deviated, the light pipe <NUM> is not mounted, or the like, the luminous flux value of the detection light that is transmitted to the light detection module <NUM> through the mounting position of the light pipe <NUM> in the terminal housing <NUM> and the light inlet path <NUM> varies accordingly. In this case, when there is a need to determine the mounting state of the light pipe <NUM> in the terminal, only the terminal housing <NUM> in which a process of mounting the light pipe <NUM> is performed needs to be placed on the fixture <NUM>, and the detection light source <NUM> needs to be turned on, so that after the light detection module30 receives the detection light emitted from the detection light source <NUM>, the mounting state of the light pipe <NUM> in the terminal housing <NUM> may be determined based on the obtained luminous flux value of the detection light, so as to implement fast, accurate, and contactless detection of the mounting state of the light pipe <NUM>.

In some other embodiments, as shown in <FIG>, the light detection module <NUM> includes a detection module <NUM>, a data processing module, and an output module. The detection module <NUM> is configured to obtain the luminous flux value of the detection light emitted into the fixture <NUM> through the light inlet path <NUM>; the data processing module is configured to compare the luminous flux value with a preset threshold to obtain a signal indicating the mounting state of the light pipe <NUM>; and the output module is configured to output and/or display the signal indicating the mounting state of the light pipe <NUM>.

Specifically, in the process of detecting the mounting state of the light pipe <NUM>, there is a need to evaluate an indicator such as the luminous flux value of the detection light received by the detection module <NUM> of the light detection module <NUM>. When a luminous flux value of detection light in a specific direction or a percentage of a ratio between luminous flux values of detection light in different directions is greater than a specific value, less than a specific value, or between the two values, it indicates that the mounting state of the light pipe <NUM> is deviated, the light pipe <NUM> is not mounted, or the light pipe <NUM> is properly mounted. In this case, based on an evaluation indicator of an optical parameter, the data processing module first experimentally determines, in different cases in which the light pipe <NUM> is mounted in the deviated position, is not mounted, or is properly mounted, a critical value of the luminous flux value of the detection light obtained by the detection module <NUM> or a critical value of a percentage of a ratio between different luminous flux values, and uses the critical value as a threshold. In this case, after the detection module <NUM> obtains the luminous flux value of the detection light, the data processing module can compare the luminous flux value or the percentage of the ratio between different luminous flux values with a corresponding threshold. The mounting state of the light pipe <NUM> determines the luminous flux value of the detection light transmitted by using the light pipe <NUM>, and therefore the data processing module can determine the mounting state of the light pipe <NUM> based on a comparison result, and transmits the signal indicating the mounting state of the light pipe <NUM> to the output module. For example, based on a comparison of the luminous flux value and the threshold, the data processing module may output a signal indicating that light pipe <NUM> is properly mounted, a signal indicating that the mounting position of the light pipe <NUM> is deviated, or a signal indicating that the light pipe <NUM> is not mounted, and the output module may output the signal to an external device.

For example, the output module may be a display apparatus such as a display, or may be a communication module that is communicatively connected to an external could device such as a Wi-Fi module, a <NUM> module, a <NUM> module, and a communication interface supporting an I2C (Inter-Integrated Circuit) or an SPI (Serial Peripheral Interface).

For example, the data processing module may be a programmable logic controller. The data processing module and the output module may be integrated on the detection module <NUM>, to reduce an overall size of the light detection module <NUM>.

In some other embodiments of this application, as shown in <FIG> and <FIG>, in the first manner of determining the mounting state of the light pipe <NUM>, the detection module <NUM> includes a first chip <NUM>. The first chip <NUM> is opposite to the light inlet path <NUM> that is exposed to the opening of the fixture <NUM>, and is configured to obtain a first luminous flux value that is of the detection light emitted into the fixture <NUM> through the light inlet path <NUM> that is in a principal axis direction of the light inlet path <NUM>.

Specifically, the threshold includes a first threshold and a second threshold. The data processing module is configured to compare the first luminous flux value with the first threshold and the second threshold. In this case, when the first luminous flux value is greater than or equal to the first threshold and is less than or equal to the second threshold, the data processing module may output a signal indicating that the light pipe <NUM> is properly mounted; or when the first luminous flux value is less than the first threshold, the data processing module outputs a signal indicating that the mounting position of the light pipe <NUM> is deviated; or when the first luminous flux value is greater than the second threshold, the data processing module outputs a signal indicating that the light pipe <NUM> is not mounted.

In this way, the first chip <NUM> of the light detection module <NUM> first obtains the first luminous flux value that is of the detection light emitted into the fixture <NUM> through the light inlet path <NUM> and that is in the principal axis direction of the light inlet path <NUM>, and transmits the first luminous flux value to the data processing module. The data processing module compares the first luminous flux value with the first threshold and the second threshold. In this case, when the first luminous flux value is between the first threshold and the second threshold, the light pipe <NUM> is mounted in a correct position; or when the first luminous flux value is less than the first threshold, the light pipe <NUM> is mounted in a deviated position; or when the first luminous value is greater than the second threshold, the light pipe <NUM> is not mounted. In this way, quick determining of the mounting state of the light pipe <NUM> in the terminal housing <NUM> is implemented simply and reliably.

In some other embodiments of this application, as shown in <FIG> and <FIG>, in the second manner of determining the mounting state of the light pipe <NUM>, the detection module <NUM> includes a first chip <NUM> and a second chip <NUM>. Both the first chip <NUM> and the second chip <NUM> are photosensor chips. The first chip <NUM> is opposite to the light inlet path <NUM> that is exposed to the opening of the fixture <NUM>, so that the first chip <NUM> can obtain a first luminous flux value that is of the detection light emitted into the fixture <NUM> through the light inlet path <NUM> that is in a principal axis direction of the light inlet path <NUM>. The second chip <NUM> is configured to obtain a second luminous flux value of the detection light that is emitted into the fixture <NUM> through the light inlet path <NUM> and that deviates from the principal axis direction of the light inlet path <NUM>.

Specifically, the threshold includes a first threshold, a second threshold, a third threshold, and a fourth threshold. The first threshold is less than the second threshold, and the fourth threshold is less than the third threshold. Values between the first threshold and the second threshold indicate a value interval of the first luminous flux value when the light pipe <NUM> is properly mounted. Values between the third threshold and the fourth threshold indicate a value interval of a ratio of the second luminous flux value to the first luminous flux value when the light pipe <NUM> is properly mounted.

More specifically, the data processing module is configured to compare the first luminous flux value with the first threshold and the second threshold, and is also configured to compare the percentage of the ratio of the second luminous flux value to the first luminous flux value with the third threshold and the fourth threshold.

Referring to <FIG>, when the first luminous flux value is greater than or equal to the first threshold and is less than or equal to the second threshold, and the percentage of the ratio of the second luminous flux value to the first luminous flux value is less than or equal to the third threshold and is greater than or equal to the fourth threshold, the data processing module outputs a signal indicating that the light pipe <NUM> is properly mounted. That is, it can be determined that the light pipe <NUM> is properly mounted only when the first luminous flux value is within the value interval between the first threshold and the second threshold and the percentage of the ratio of the second luminous flux value to the first luminous flux value is within the value interval between the third threshold and the fourth threshold. In this way, accuracy of determining a state in which the light pipe <NUM> is properly mounted in the terminal housing <NUM> can be better improved.

In addition, provided that a condition in which the first luminous flux value is less than the first threshold, the percentage of the ratio of the second luminous flux value to the first luminous flux value is greater than the third threshold, or the percentage of the ratio of the second luminous flux value to the first luminous flux value is less than the fourth threshold is met, in this case, it indicates that the mounting position of the light pipe <NUM> is deviated, resulting in an abnormal first luminous flux value or percentage of the ratio of the second luminous flux value to the first luminous flux value. In this case, the data processing module may output a signal indicating that the mounting position of the light pipe <NUM> is deviated. In this way, accuracy of determining that the mounting position of the light pipe <NUM> is deviated in the terminal housing <NUM> can be better improved.

Alternatively, when the first luminous flux value is greater than the second threshold, and the percentage of the ratio of the second luminous flux value to the first luminous flux value is less than the fourth threshold, in this case, it indicates that the light pipe <NUM> is not placed at a position in which the light pipe <NUM> should have been mounted in the terminal housing, and consequently the detection light is not diffused when the detection light passes through the light inlet path <NUM>, so that the first luminous flux value is greater than the second threshold, and the percentage of the ratio of the second luminous flux value to the first luminous flux value is less than the fourth threshold. In this case, the data processing module may output a signal indicating that the light pipe is not mounted. In this way, accuracy of determining that the light pipe <NUM> is not mounted in the terminal housing <NUM> can be better improved.

In some other embodiments of this application, as shown in <FIG> and <FIG>, in the third manner of determining the mounting state of the light pipe <NUM>, the detection module <NUM> includes a first chip <NUM> and a second chip <NUM>. The first chip <NUM> is opposite to the light inlet path <NUM> that is exposed to the opening of the fixture <NUM>, and is configured to obtain a first luminous flux value that is of the detection light emitted into the fixture <NUM> through the light inlet path <NUM> that is in a principal axis direction of the light inlet path <NUM>, and the second chip <NUM> is configured to obtain a second luminous flux value of the detection light that is emitted into the fixture <NUM> through the light inlet path <NUM> and that deviates from the principal axis direction of the light inlet path <NUM>.

Specifically, the threshold includes a third threshold and a fourth threshold. The data processing module is configured to compare a percentage of a ratio of the second luminous flux value to the first luminous flux value with the third threshold and the fourth threshold. When the percentage of the ratio of the second luminous flux value to the first luminous flux value is less than or equal to the third threshold and is greater than or equal to the fourth threshold, the data processing module outputs a signal indicating that the light pipe <NUM> is properly mounted; or when the percentage of the ratio of the second luminous flux value to the first luminous flux value is greater than the third threshold or less than the fourth threshold, the data processing module outputs a signal indicating that the mounting position of the light pipe <NUM> is deviated; or when the percentage of the ratio of the second luminous flux value to the first luminous flux value is less than the fourth threshold, the data processing module outputs a signal indicating that the light pipe <NUM> is not mounted.

In this embodiment, provided that a relationship between the percentage of the ratio of the second luminous flux value to the first luminous flux value and the third threshold/the fourth threshold is determined, a result of the mounting state of the light pipe <NUM> can be obtained, and therefore efficiency of detecting the mounting state of the light pipe <NUM> is improved.

For example, when the light pipe <NUM> is not mounted, the detection light is not diffused by using the light pipe <NUM>, and is directly emitted to the second chip <NUM> and the first chip <NUM> through the light inlet path <NUM>, so that the second luminous flux value obtained by the second chip <NUM> is relatively small. In this case, the percentage of the ratio of the second luminous flux value to the first luminous flux value will approach <NUM>%.

In some other embodiments of this application, as shown in <FIG> and <FIG>, there are two second chip <NUM>, and the two second chip <NUM> are respectively disposed on opposite sides of the first chip <NUM>. Both the first chip <NUM> and the second chip <NUM> are disposed on a PCB board <NUM>. Specifically, there may be a plurality of second chips <NUM>, and therefore there may be a plurality of percentages of the ratio of the second luminous flux value to the first luminous flux value accordingly. In this case, the data processing module can compare a percentage of the ratio of the second luminous flux value to the first luminous flux value and the third threshold/the fourth threshold a plurality of times, and may output a signal indicating the mounting state of the light pipe <NUM> only when a plurality of comparison results are all consistent. Therefore, accuracy of determining, by the light detection module <NUM>, a signal indicating the mounting state of the light pipe <NUM> is better improved.

For example, as described above, based on an evaluation of optical parameter indicators such as maximum luminous flux, field of vision, and an attenuation ratio of ambient light that is emitted into the terminal, the data processing module correspondingly stores the first threshold, the second threshold, the third threshold, and the fourth threshold. Specific examples of the optical parameter indicators, the threshold settings, and luminous flux detection items are provided. As shown in Table <NUM>:.

In this example, a control standard for detection of the fixture <NUM> may be set based on an actual requirement of a test terminal: The first threshold is <NUM> cd, the second threshold is <NUM> cd, the third threshold is <NUM>%, and the fourth threshold is <NUM>%. As shown in Table <NUM>, when the light pipe <NUM> is properly mounted, the first luminous flux value detected by the first chip <NUM> is <NUM> cd. The value falls between the first threshold and the second threshold. A percentage of a ratio of a second luminous flux value obtained by one second chip <NUM> to the first luminous flux value is <NUM>%, and a percentage of a ratio of a second luminous flux value obtained by the other second chip <NUM> to the first luminous flux value is <NUM>%. Both the ratios fall between the third threshold and the fourth threshold, and meet a criterion for evaluating that the light pipe <NUM> is properly mounted.

When the mounting position of the light pipe <NUM> is deviated, the first luminous flux value detected by the first chip <NUM> is <NUM> cd. The value falls between the first threshold and the second threshold. A percentage of a ratio of a second luminous flux value obtained by one second chip <NUM> to the first luminous flux value is <NUM>%, and a percentage of a ratio of a second luminous flux value obtained by the other second chip <NUM> to the first luminous flux value is <NUM>%. Both the ratios are less than the fourth threshold. In this case, even if the first luminous flux value falls between the first threshold and the second threshold, the ratio of the second luminous flux value to the first luminous flux value is less than the fourth threshold. Therefore, a criterion for evaluating that the mounting position of the light pipe <NUM> is deviated is also met.

When the light pipe <NUM> is not mounted, the first luminous flux value detected by the first chip <NUM> is <NUM> cd, which is far greater than the second threshold; in addition, a percentage of a ratio of a second luminous flux value obtained by each of the two second chips <NUM> to the first luminous flux value is <NUM>%, which is far less than the fourth threshold. Therefore, a criterion for evaluating that the light pipe <NUM> is not mounted is also met.

In an actual detection process, the apparatus for detecting a mounting state of a light pipe in a terminal provided in this embodiment of this application accurately detects the mounting state of the light pipe <NUM> in the terminal housing. When the apparatus for detecting a mounting state of a light pipe in a terminal detects that the light pipe <NUM> is properly mounted in the terminal, during an actual test process of the test terminal after start-up, the field of vision of the ambient light that is entered into the terminal and that is obtained by the terminal is greater than <NUM>°, and the attenuation ratio is less than <NUM>. In this way, an optical parameter requirement of the terminal for the ambient light is met, it indicates that the light pipe <NUM> is properly mounted in the terminal housing, and a detection result obtained by the apparatus for detecting a mounting state of a light pipe in a terminal is confirmed.

More specifically, a control flowchart and a control logic diagram of the apparatus for detecting a mounting state of a light pipe <NUM> in a terminal are respectively shown in <FIG> and <FIG>. When detection of the mounting state of the light pipe <NUM> starts, a control device such as an external cloud device may send a working instruction to the detection module <NUM>, and then the first chip <NUM> and the second chip <NUM> of the detection module <NUM> start to receive the detection light and respectively output the first luminous flux value and the second luminous flux value. After receiving the first luminous flux value and the second luminous flux value, the data processing module compares the first luminous flux value with the first threshold and the second threshold, and compares the percentage of the ratio of the second luminous flux value to the first luminous flux value with the third threshold and the fourth threshold, to obtain a detection result of the mounting state of the light pipe <NUM>. The data processing module transmits the detection result of the mounting state of the light pipe <NUM> to the output module, and records a sequence number of the terminal housing <NUM> that corresponds to the detection result. Then, the output module displays or stores the detection result of the mounting state of the light pipe <NUM> corresponding to the terminal housing <NUM>, or transmits the detection result to the external could device and a corresponding application.

In some other embodiments of this application, as shown in <FIG>, the fixture <NUM> forms an inclined surface <NUM> that is used to abut against the back of the terminal housing <NUM>. A stopper <NUM> that is used to limit a position of a bottom of the terminal housing <NUM> is disposed at a lower edge of the inclined surface <NUM> of the fixture <NUM>. The light inlet path <NUM> that is exposed to the opening of the fixture <NUM> is formed at a bottom edge of the fixture <NUM> facing the inclined surface <NUM>.

Specifically, a hole such as the sound hole is usually disposed obliquely at an edge of the terminal housing <NUM>, and therefore correspondingly, when the terminal is placed vertically or horizontally, the light pipe is also in an oblique posture in the terminal. During mounting state detection, the light pipe needs to be in a vertical posture perpendicular to a bottom of the fixture <NUM>, to accurately detect the luminous flux value of the detection light that is transmitted and diffused by using the light pipe <NUM>. Therefore, the inclined surface <NUM> is formed on the fixture <NUM>. In this way, the terminal is disposed on the inclined surface <NUM>, and is in the oblique posture. Correspondingly, the light pipe <NUM> can be in the vertical posture perpendicular to the bottom of the fixture <NUM>. By disposing the stopper <NUM> at a lower edge of the inclined surface <NUM>, the stopper <NUM> can abut against a lower edge of the terminal housing <NUM> to prevent the terminal housing <NUM> from slipping down along the inclined surface <NUM>, so that the terminal housing <NUM> can be stably placed on the fixture <NUM>. In addition, the opening that is of the light inlet path <NUM> and that is exposed to the fixture <NUM> is formed at the bottom edge of the inclined surface <NUM> facing the fixture <NUM>. In this way, the light inlet path <NUM> may be disposed opposite to the sound hole, so that the detection light emitted from the detection light source <NUM> is transmitted and diffused by using the light pipe <NUM>, and is directly emitted to the light detection module <NUM> through the light inlet path <NUM>.

In some other embodiments, as shown in <FIG> and <FIG>, the fixture <NUM> further includes a base <NUM> and a support member <NUM>. The support member <NUM> is detachably disposed on the base <NUM>, and the inclined surface <NUM> is formed on the support member <NUM>. The stopper <NUM> is disposed at a lower end of the support member <NUM>, and the light inlet path <NUM> is formed in the support member <NUM>. An accommodation cavity <NUM> that is used to accommodate the light detection module <NUM> is provided at a bottom of the support member <NUM>, and the light inlet path <NUM> and the accommodation cavity <NUM> are communicated.

Specifically, in a structure of the fixture <NUM>, the fixture <NUM> includes the base <NUM>, the support member <NUM>, and the stopper <NUM>. The support member <NUM> that includes the formed inclined surface <NUM> is detachably disposed on the base <NUM>, so that the fixture <NUM> can correspondingly select, based on a terminal with different specifications and structural dimensions, a support member <NUM> with different inclination angles, and therefore the fixture <NUM> can be compatible with the terminal with different specifications and structural dimensions, thereby improving compatibility of the fixture <NUM> for the terminal.

In addition, the accommodation cavity <NUM> is provided at the bottom of the support member <NUM>, so that the light detection module <NUM> may be accommodated in the accommodation cavity <NUM>, to implement hidden mounting in the fixture <NUM>. Therefore, on the one hand, the light detection module <NUM> is protected; on the other hand, an enclosed detection environment is provided for the light detection module <NUM>, so that the light detection module <NUM> can receive the detection light only from the light inlet path <NUM>, thereby preventing the light detection module <NUM> from being interfered with by the external ambient light.

Optionally, as shown in <FIG> and <FIG>, a cable trough <NUM> is further disposed at the bottom of the support member <NUM>. An opening on one side of the cable trough <NUM> is exposed to a side wall of the support member <NUM>, and an opening on the other side of the cable trough <NUM> and the accommodation cavity <NUM> are communicated, so that a cable connected to the light detection module <NUM> can be hidden in the support member <NUM>.

For example, in the first detachable connection manner of the support member <NUM> and the base <NUM>, the support member <NUM> may be connected to the base <NUM> by using a bolt, so that the support member <NUM> and the base <NUM> may be detachably connected, and connection strength between the support member <NUM> and the base <NUM> is also improved. In addition, in the second detachable connection manner of the support member <NUM> and the base <NUM>, the support member <NUM> may be embedded in the base <NUM>, to reduce costs of connecting the support member <NUM> and the base <NUM>, thereby reducing overall manufacturing costs of the fixture <NUM>.

In some other embodiments of this application, as shown in <FIG> and <FIG>, the support member <NUM> includes an oblique supporting block <NUM> and a horizontal supporting block <NUM>. The inclined surface <NUM> is formed on the oblique supporting block <NUM>, and the oblique supporting block <NUM> is detachably disposed on the base <NUM>. The horizontal supporting block <NUM> is disposed at a lower edge of the oblique supporting block <NUM>, the stopper <NUM> is disposed on the horizontal supporting block <NUM>, and the accommodation cavity <NUM> is formed at a bottom of the horizontal supporting block <NUM>.

Specifically, the oblique supporting block <NUM> of the support member <NUM> is used to support the back of the terminal housing <NUM>, and the horizontal supporting block <NUM> is used to mount the stopper <NUM> and accommodate the light detection module <NUM>. The opening that is of the light inlet path <NUM> and that is exposed to the fixture <NUM> is formed at a junction of the oblique supporting block <NUM> and the horizontal supporting block <NUM>, so that the opening that is of the light inlet path <NUM> and that is exposed to the fixture <NUM> is opposite to a hole such as the sound hole of the light pipe that is disposed in the terminal housing <NUM>.

Optionally, the oblique supporting block <NUM> and the horizontal supporting block <NUM> may be integrally cast, so that manufacturing costs of the support member <NUM> can be reduced on the one hand and the manufacturing costs of the support member <NUM> can be saved on the other hand.

In some other embodiments of this application, as shown in <FIG> and <FIG>, the fixture <NUM> further includes a base <NUM> and an oblique supporting block <NUM>. The inclined surface <NUM> is formed on the oblique supporting block <NUM>, and the oblique supporting block <NUM> is detachably disposed on the base <NUM>. The stopper <NUM> is disposed on the base <NUM> and is adjacent to the oblique supporting block <NUM>. The light inlet path <NUM> is formed in the base <NUM>, and an accommodation cavity <NUM> that is used to accommodate the light detection module <NUM> is provided at a bottom of the base <NUM>. The light inlet path <NUM> and the accommodation cavity <NUM> are communicated.

Specifically, in another structure of the fixture <NUM>, the fixture <NUM> includes the base <NUM>, the oblique supporting block <NUM>, and the stopper <NUM>. The oblique supporting block <NUM> is used to obliquely support the terminal housing <NUM>, and the accommodation cavity <NUM> that is used to accommodate the light detection module <NUM> is directly provided at the bottom of the base <NUM>. In this way, when the oblique supporting block <NUM> is changed, no light detection module needs to be detached from the base <NUM>, thereby improving maintenance convenience of the fixture <NUM>.

In some other embodiments of this application, as shown in <FIG>, a projection of an opening that is of the light inlet path <NUM> and that is exposed to the accommodation cavity <NUM> covers the detection module <NUM> in a height direction of the fixture <NUM>. Specifically, the opening that is of the light inlet path <NUM> and that is exposed to the accommodation cavity <NUM> covers the detection module <NUM>, so that both the first chip <NUM> and the second chip <NUM> of the detection module <NUM> can receive sufficient detection light that is transmitted from the light inlet path <NUM>.

For example, overall configuration of the light inlet pipe <NUM> may be in a "horn" shape. A narrow end of the horn is the opening that is of the light inlet path <NUM> and that is exposed to the fixture <NUM>, and a wide end of the horn is the opening that is of the light inlet path <NUM> and that is exposed to the accommodation cavity <NUM>. In this way, the light inlet path <NUM> is designed as the "horn" shape, so that on the one hand, a size of the opening that is of the light inlet path <NUM> and that is exposed to the fixture <NUM> can match that of a hole such as the sound hole of the terminal; on the other hand, the opening that is of the light inlet path <NUM> and that is exposed to the accommodation cavity <NUM> can cover the first chip <NUM> and the second chip <NUM> of the detection module <NUM>, so that the first chip <NUM> and the second chip <NUM> can sufficiently receive the detection light.

In some other embodiments of this application, as shown in <FIG>, <FIG>, and <FIG>, the fixture <NUM> further includes a positioning pin <NUM>, and the positioning pin <NUM> is disposed on the inclined surface <NUM> and is configured to fasten the terminal housing <NUM>. Specifically, the positioning pin <NUM> is disposed on the inclined surface <NUM>, so that the positioning pin <NUM> can be inserted into a groove in the terminal housing <NUM> to fasten the terminal housing <NUM> to the inclined surface <NUM>, so as to prevent the terminal housing <NUM> from sliding relative to the inclined surface <NUM>, so that the terminal housing <NUM> is more stably disposed on the fixture <NUM>.

For example, one or more positioning pins <NUM> may be designed based on a quantity of grooves in the terminal housing <NUM>. The positioning pin <NUM> may be designed into a column shape, a block shape, or the like based on a shape of the groove in the terminal housing <NUM>.

Optionally, as shown in <FIG>, a limiting bar <NUM> may be further disposed at a position that is on the inclined surface <NUM> and that is close to light inlet path <NUM>, and the limiting bar <NUM> can abut against a bottom edge of the terminal housing <NUM>, so that the terminal housing <NUM> can be more stably disposed on the fixture <NUM>.

In some other embodiments of this application, as shown in <FIG>, <FIG>, and <FIG>, the fixture <NUM> further includes two clamping blocks <NUM>, and the two clamping blocks <NUM> may be detachably disposed on the inclined surface <NUM>. The two clamping blocks <NUM> are disposed at intervals to clamp the terminal housing <NUM>. Specifically, the two clamping blocks <NUM> is disposed on the inclined surface <NUM>, so that the two clamping blocks <NUM> can respectively abut against opposite sides of an edge of the terminal housing <NUM> that is disposed on the inclined surface <NUM>, to limit a position in a width direction or a length direction of the terminal housing <NUM>, and therefore the terminal housing <NUM> can be more stably disposed on the fixture <NUM>.

In some other embodiments of this application, as shown in <FIG> and <FIG>, the apparatus for detecting a mounting state of a light pipe <NUM> in a terminal further includes a box body <NUM>. The fixture <NUM> is disposed in the box body <NUM>, and the detection light source <NUM> is disposed on an inner top of the box body <NUM>. Specifically, by disposing the box body <NUM>, on the one hand, the box body <NUM> can better protect the fixture <NUM>, the terminal housing <NUM>, and the detection light source <NUM>; on the other hand, the box body <NUM> can also provide an enclosed space for the fixture <NUM>, the terminal housing <NUM>, and the detection light source <NUM>, so that the detection light source <NUM> is the only light source in the space, thereby improving accuracy and objectivity of the detection result of the mounting state of the light pipe <NUM> in the terminal housing <NUM>.

For example, a door panel is disposed on one side of the box body <NUM>; the door panel is provided with a doorknob <NUM>; and the door panel is connected to a door frame of the box body <NUM> by using a hinge <NUM>.

As shown in <FIG> and <FIG>, according to a second aspect, an embodiment of this application provides a method for detecting a mounting state of a light pipe in a terminal. The detection method includes the following steps:.

Specifically, steps of the method for detecting a mounting state of a light pipe in a terminal in this embodiment of this application may be in the following sequence:.

When the method for detecting a mounting state of a light pipe in a terminal provided in this embodiment of this application is implemented, the detection light source <NUM> emits the detection light to the mounting position of the light pipe <NUM> in the terminal housing <NUM>, and the detection light reaches the light detection module <NUM> through the mounting position of the light pipe <NUM> and the light inlet path <NUM>, so that the light detection module <NUM> can obtain the luminous flux value of the detection light. In this case, due to cases in which the light pipe <NUM> is properly mounted in the terminal housing <NUM>, the mounting position is deviated, the light pipe <NUM> is not mounted, or the like, the luminous flux value of the detection light that is transmitted to the light detection module <NUM> through the light inlet path <NUM> and the mounting position of the light pipe <NUM> in the terminal housing <NUM> varies accordingly. In this way, the light detection module <NUM> can determine the mounting state of the light pipe <NUM> in the terminal housing <NUM> based on the obtained luminous flux value of the detection light, to implement fast, accurate, and contactless detection of the mounting state of the light pipe <NUM>.

In some other embodiments of this application, the step in which "the light detection module <NUM> receives, through the light inlet path <NUM>, detection light emitted from the detection light source <NUM>, and determines the mounting state of the light pipe <NUM> based on a luminous flux value of the detection light" may be specifically as follows:.

The light detection module <NUM> obtains a first luminous flux value that is of the detection light emitted into the fixture <NUM> through the light inlet path <NUM> that is in a principal axis direction of the light inlet path <NUM>, and compares the first luminous flux value with a preset first threshold and a preset second threshold.

When the first luminous flux value is greater than or equal to the first threshold and is less than or equal to the second threshold, the data processing module outputs a signal indicating that the light pipe <NUM> is properly mounted; or.

Specifically, the threshold includes the first threshold and the second threshold. The light detection module <NUM> is configured to compare the first luminous flux value with the first threshold and the second threshold. In this case, when the first luminous flux value is greater than or equal to the first threshold and is less than or equal to the second threshold, the light detection module <NUM> may output the signal indicating that the light pipe <NUM> is properly mounted; or when the first luminous flux value is less than the first threshold, the light detection module <NUM> outputs the signal indicating that the mounting position of the light pipe <NUM> is deviated; or when the first luminous flux value is greater than the second threshold, the light detection module <NUM> outputs the signal indicating that the light pipe <NUM> is not mounted.

In this way, the light detection module <NUM> can first obtain the first luminous flux value that is of the detection light emitted into the fixture <NUM> through the light inlet path <NUM> and that is in the principal axis direction of the light inlet path <NUM>, and compare the first luminous flux value with the preset first threshold and the preset second threshold. In this case, when the first luminous flux value is between the first threshold and the second threshold, the light pipe <NUM> is mounted in a correct position; or when the first luminous flux value is less than the first threshold, the light pipe <NUM> is mounted in a deviated position; or when the first luminous value is greater than the second threshold, the light pipe <NUM> is not mounted. In this way, quick determining of the mounting state of the light pipe <NUM> in the terminal housing <NUM> is implemented simply and reliably.

In some other embodiments of this application, the step in which "the light detection module <NUM> receives, through the light inlet path <NUM>, detection light emitted from the detection light source <NUM>, and determines the mounting state of the light pipe <NUM> based on a luminous flux value of the detection light" may be further specifically as follows:.

The light detection module <NUM> obtains a first luminous flux value that is of the detection light emitted into the fixture <NUM> through the light inlet path <NUM> that is in a principal axis direction of the light inlet path <NUM>, and compares the first luminous flux value with a preset first threshold and a preset second threshold; and
the light detection module <NUM> obtains a second luminous flux value of the detection light that is emitted into the fixture <NUM> through the light inlet path <NUM> and that deviates from the principal axis direction of the light inlet path <NUM>, and compares a percentage of a ratio of the second luminous flux value to the first luminous flux value with a preset third threshold and a preset fourth threshold.

When the first luminous flux value is greater than or equal to the first threshold and is less than or equal to the second threshold, and the percentage of the ratio of the second luminous flux value to the first luminous flux value is less than or equal to the fourth threshold, the light detection module <NUM> outputs a signal indicating that the light pipe <NUM> is properly mounted; or.

Specifically, when the first luminous flux value is greater than or equal to the first threshold and is less than or equal to the second threshold, and the percentage of the ratio of the second luminous flux value to the first luminous flux value is less than or equal to the third threshold and is greater than or equal to the fourth threshold, the light detection module <NUM> outputs the signal indicating that the light pipe <NUM> is properly mounted. That is, it can be determined that the light pipe <NUM> is properly mounted only when the first luminous flux value is within the value interval between the first threshold and the second threshold and the percentage of the ratio of the second luminous flux value to the first luminous flux value is within the value interval between the third threshold and the fourth threshold. In this way, accuracy of determining a state in which the light pipe <NUM> is properly mounted in the terminal housing <NUM> can be better improved.

In addition, provided that a condition in which the first luminous flux value is less than the first threshold, the percentage of the ratio of the second luminous flux value to the first luminous flux value is greater than the third threshold, or the percentage of the ratio of the second luminous flux value to the first luminous flux value is less than the fourth threshold is met, in this case, it indicates that the mounting position of the light pipe <NUM> is deviated, resulting in an abnormal first luminous flux value or percentage of the ratio of the second luminous flux value to the first luminous flux value. In this case, the light detection module <NUM> may output a signal indicating that the mounting position of the light pipe <NUM> is deviated. In this way, accuracy of determining that the mounting position of the light pipe <NUM> is deviated in the terminal housing <NUM> can be better improved.

Alternatively, when the first luminous flux value is greater than the second threshold, and the percentage of the ratio of the second luminous flux value to the first luminous flux value is less than the fourth threshold, in this case, it indicates that the light pipe <NUM> is not placed at a position in which the light pipe <NUM> should have been mounted in the terminal housing, and consequently the detection light is not diffused when the detection light passes through the light inlet path <NUM>, so that the first luminous flux value is greater than the second threshold, and the percentage of the ratio of the second luminous flux value to the first luminous flux value is less than the fourth threshold. In this case, the light detection module <NUM> may output a signal indicating that the light pipe is not mounted. In this way, accuracy of determining that the light pipe <NUM> is not mounted in the terminal housing <NUM> can be better improved.

The light detection module <NUM> obtains a first luminous flux value that is of the detection light emitted into the fixture <NUM> through the light inlet path <NUM> and that is in a principal axis direction of the light inlet path <NUM>, and obtains a second luminous flux value of the detection light that is emitted into the fixture <NUM> through the light inlet path <NUM> and that deviates from the principal axis direction of the light inlet path <NUM>; and.

Specifically, in this embodiment, provided that a relationship between the percentage of the ratio of the second luminous flux value to the first luminous flux value and the third threshold/the fourth threshold is determined, a result of the mounting state of the light pipe <NUM> is obtained, and therefore efficiency of detecting the mounting state of the light pipe <NUM> is improved.

Claim 1:
An apparatus for detecting a mounting state of a light pipe (<NUM>) in a terminal, comprising:
a fixture (<NUM>), wherein the fixture (<NUM>) is configured to support a terminal housing (<NUM>), a light inlet path (<NUM>) is formed in the fixture (<NUM>), an opening that is of the light inlet path (<NUM>) and that is exposed to the fixture (<NUM>) is opposite to a mounting position of the light pipe (<NUM>) in the terminal housing (<NUM>), and the light inlet path (<NUM>) is used to allow light transmitted by the light pipe (<NUM>) to pass through;
a light source (<NUM>), wherein the light source (<NUM>) is disposed above the fixture (<NUM>), and is configured to emit detection light to the light pipe (<NUM>); and
a light detection module (<NUM>), wherein the light detection module (<NUM>) is disposed in the fixture (<NUM>), and receives, through the light inlet path (<NUM>), the detection light emitted from the light source (<NUM>), and the light detection module (<NUM>) is configured to determine the mounting state of the light pipe (<NUM>) based on a luminous flux value of the detection light,
characterized in that the fixture (<NUM>) forms an inclined surface (<NUM>) that is used to abut against the back of the terminal housing (<NUM>), a stopper (<NUM>) that is used to limit a position of a bottom of the terminal housing (<NUM>) is disposed at a lower edge of the inclined surface (<NUM>) of the fixture (<NUM>), and the opening that is of the light inlet path (<NUM>) and that is exposed to the fixture (<NUM>) is formed at a bottom edge of the inclined surface (<NUM>) facing the fixture (<NUM>).