Ambient light sensor analysis method, system and electronic device

By integrating the original factory data and test data of the ambient light sensor, the spectral band table and channel allocation table are established, which solves the problem of complexity of the calibration measurement process and human error, realizes automated analysis, and reduces the error rate and labor consumption.

CN110646087BActive Publication Date: 2024-09-27HONGFUJIN PRECISION ELECTRONICS (ZHENGZHOU) CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201810669996.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2018-06-26
Publication Date
2024-09-27
Estimated Expiration
2038-06-26

AI Technical Summary

Technical Problem

The ambient light sensor calibration and measurement process is complex and error-prone, resulting in confusing data that is difficult to process in production and consumes a lot of manpower.

Method used

By integrating the original factory data and test data of the ambient light sensor, analyzing the wavelength values ​​of the data, and establishing a spectral band table and channel allocation table, the data analysis is automatically completed and the human error rate is reduced.

Benefits of technology

It automates the establishment of the spectral band table and channel allocation table of the ambient light sensor, reduces the error rate of analysis and calibration, simplifies the process, and improves efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN110646087B
    Figure CN110646087B
Patent Text Reader

Abstract

The present invention discloses an ambient light sensor analysis method for analyzing the ambient light sensor, the method comprising the following steps: obtaining a set of original data about the ambient light sensor; obtaining a set of test data about the ambient light sensor; integrating the original data and the test data to obtain a set of integrated data, wherein the integrated data includes a plurality of data; analyzing the integrated data according to the source of the data and the wavelength values ​​corresponding to the data to obtain a spectral band table and a channel allocation table about the ambient light sensor. The present invention also discloses a system corresponding to the aforementioned method, and an electronic device for implementing the aforementioned method.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a sensor analysis method, system and electronic device, and in particular to an ambient light sensor analysis method, system and electronic device. Background Art

[0002] In modern life, various electronic devices with visual interfaces, such as mobile phones, tablet computers, laptops or personal computers, are mostly equipped with ambient light sensors so that the devices can automatically adjust the brightness according to the ambient light. For ambient light sensors, calibration and measurement are required during their production stage. The calibration and measurement equipment is very precise and needs to rely on professionals and equipment to operate. In addition, the amount of measurement data obtained by the calibration and measurement process is too large and complex, and it is difficult to process such data in production. It is also too labor-intensive and prone to operational errors that cause data confusion and thus abnormal equipment detection. Therefore, how to provide a method to reduce the complexity of the ambient light sensor calibration and measurement process is a problem that needs to be overcome. Summary of the invention

[0003] Provided are an ambient light sensor analysis method, system and electronic device to reduce the complexity of the ambient light sensor calibration measurement process.

[0004] An ambient light sensor analysis method is used to analyze the ambient light sensor, and the method includes the following steps: obtaining a set of original data about the ambient light sensor; obtaining a set of test data about the ambient light sensor; integrating the original data and the test data to obtain a set of integrated data, wherein the integrated data includes a plurality of data; analyzing the integrated data according to the sources of the data in the integrated data and the wavelength values ​​corresponding to the data to obtain a spectral band table and a channel allocation table about the ambient light sensor.

[0005] An electronic device includes a memory and a processor. The memory is used to store a plurality of computer program instructions. The processor is used to load the computer program instructions to execute the ambient light sensor analysis method.

[0006] An ambient light sensor analysis system includes a plurality of computer program instructions, which are used to be loaded and executed by the aforementioned electronic device to control the electronic device to execute the aforementioned ambient light sensor analysis method.

[0007] Compared with the prior art, the ambient light sensor analysis method, system and electronic device provided by the present invention integrate the original data and test data of the ambient light sensor, and analyze the wavelengths of these data to establish a spectral band table and channel allocation table for the ambient light sensor, thereby automatically completing the links that are prone to human errors and reducing the error rate of ambient light sensor analysis and adjustment. BRIEF DESCRIPTION OF THE DRAWINGS

[0008] Figure 1 FIG. 4 is a schematic diagram of an ambient light sensor measurement operation according to an embodiment of the present invention.

[0009] Figure 2 FIG. 4 is a flow chart of a sensing data collection method in an embodiment of the present invention.

[0010] Figure 3 The figure is a flow chart of a method for automatically processing test data in one embodiment of the present invention.

[0011] Figure 4 Flow chart of a method for generating a spectral band table / channel allocation table according to an embodiment of the present invention.

[0012] Figure 5 In one embodiment of the present invention Figure 4 A diagram drawn for the method flow.

[0013] Main component symbols

[0014] Ambient Light Sensor 1000

[0015] Electronic Devices 2000

[0016] Processor 2100

[0017] Memory 2200

[0018] Measuring equipment 3000

[0019] Light source LS1, LS2, LS3

[0020] Photosensitive channels SR, SY, SG, SC, SB

[0021] Steps S210-S250, S310-S350, S410-S430

[0022] The following specific embodiments will further illustrate the present application in conjunction with the above-mentioned drawings. DETAILED DESCRIPTION

[0023] The following specific implementation manner will further illustrate the present invention in conjunction with the above-mentioned drawings.

[0024] Please refer to Figure 1 , which is a hardware schematic diagram of ambient light sensor analysis in one embodiment of the present invention. Figure 1As shown, when the ambient light sensor 1000 is to be detected, generally speaking, the electronic device 2000 controls the measuring device 3000 to output light to the ambient light sensor 1000. The electronic device 2000 collects the signal output by the ambient light sensor 1000, that is, the sensing value of the ambient light sensor. The measuring device 3000 has one or more narrow-bandwidth wavelength-tunable light sources, such as light source LS1, light source LS2, and light source LS3. The wavelength range of the light emitted by the narrow-bandwidth wavelength-tunable light source is extremely small and the center wavelength is adjustable. For example, when the narrow-bandwidth wavelength-tunable light source emits light with a center wavelength of 400 nanometers, the wavelength range of this light is, for example, between 390 nanometers and 410 nanometers. However, the present invention is not limited to this, and the designer can select a narrow-bandwidth wavelength-tunable light source with an appropriate wavelength range according to the needs. The electronic device 2000 has a processor 2100 and a memory 2200, and the memory 2200 stores a plurality of computer program instructions. When the computer program instructions are loaded and executed by the processor 2100 , the electronic device 2000 executes a process described in one of the following embodiments.

[0025] Please refer to Figure 2 , which is a flow chart of a sensing data acquisition method in one embodiment of the present invention. As shown in step S210, the electronic device 2000 obtains a set of original data about the ambient light sensor 1000. Specifically, in a general calibration process, the original data of the ambient light sensor 1000 is usually obtained in advance and stored in the memory 2200 in the electronic device 2000. However, in other embodiments, the electronic device 2000 may need to calibrate more than one type of ambient light sensor, so the electronic device 2000 obtains the original data of the ambient light sensor to be calibrated from a database (not shown). The database is, for example, a database of the manufacturer of the ambient light sensor, or a database of data about various ambient light sensors collected by the tester himself, and the physical location or logical address thereof is not limited by the present invention. In another embodiment, the electronic device 2000 is connected to the Internet and obtains the original data of the ambient light sensor to be calibrated from the cloud server. In one embodiment, the obtained original data is stored in the memory 2200 of the electronic device 2000.

[0026] As shown in step S220, the electronic device 2000 obtains a set of test data about the ambient light sensor 1000 from the ambient light sensor 1000. Specifically, the electronic device 2000 controls the light source LS1, the light source LS2 and / or the light source LS3 of the measuring device 3000 to sequentially and repeatedly illuminate the ambient light sensor 1000 with narrow-wavelength light. For example, the light source LS1 can generate light with a wavelength between 400 nanometers and 580 nanometers. Furthermore, the light source LS1 can generate light with a central wavelength of 400 nanometers, 430 nanometers, 460 nanometers, 490 nanometers, 520 nanometers, 550 nanometers and 580 nanometers, and the wavelength of the light is, for example, 30 nanometers. The light source LS2 can generate light with a wavelength between 610 nanometers and 790 nanometers. And the light source LS3 can generate light with a wavelength between 820 nanometers and 1000 nanometers. In one embodiment, the measuring device 3000 first emits a light with a central wavelength of 400 nanometers from the light source LS1, then emits a light with a central wavelength of 430 nanometers from the light source LS1, then emits a light with a central wavelength of 460 nanometers from the light source LS1, and then emits a light with a central wavelength of 580 nanometers from the light source LS1, and then the measuring device 3000 controls the light source LS2 to emit a light with a central wavelength of 610 nanometers. In other words, in this embodiment, the measuring device 3000 controls one of the light sources to emit light each time, and the central wavelength of the emitted light increases successively. However, in another embodiment, the central wavelength of the light emitted by the light source controlled by the measuring device 3000 may also decrease successively.

[0027] In one embodiment, the measuring device 3000 uses the light sources LS1, LS2, and LS3 to measure the ambient light sensor 1000. In other words, the wavelength of the test light corresponding to the obtained test data is between 400 nanometers and 1000 nanometers. In another embodiment, the measuring device 3000 uses the light sources LS1 and LS2 to measure. In other words, the wavelength of the test light corresponding to the obtained test data is between 400 nanometers and 790 nanometers, that is, the test light is all visible light.

[0028] In one embodiment, when the electronic device 2000 controls the measuring device 3000 to illuminate the ambient light sensor 1000 with a certain light source each time, the ambient light sensor 1000 senses the light irradiated by the light source, and the electronic device 2000 reads the sensing value obtained by the ambient light sensor sensing the light from the ambient light sensor 1000, that is, a test data. In this way, multiple test data are obtained repeatedly. Since the ambient light sensor 1000 generally has multiple photosensitive channels, such as photosensitive channel SR (red light), photosensitive channel SC (cyan light), photosensitive channel SG (green light), photosensitive channel SY (yellow light) and photosensitive channel SB (blue light), a test data correspondingly includes five sensing data, that is, each photosensitive channel corresponds to a sensing data. In one embodiment, the obtained test data is stored in the memory 2200 of the electronic device 2000. In another embodiment, the ambient light sensor 1000 is installed in the measuring device 3000, and the electronic device 2000 obtains the test data of the ambient light sensor 1000 through the measuring device 3000. Wherein, step S210 and step S220 may be performed simultaneously, or their sequence may be adjusted arbitrarily, which is not limited by the present invention.

[0029] After both step S210 and step S220 are completed, as shown in step S230, the electronic device 2000 integrates the original data and the test data to obtain a set of integrated data. The integrated data includes multiple data. Specifically, the test data and the original data obtained by the electronic device 2000 have a specific data structure. For example, the format of a test data is defined as:

[0030] [HD][FLAG][DAT_R][DAT_Y][DAT_G][DAT_C][DAT_B][ED]

[0031] HD is the packet header, ED is the packet end, and the data between HD and ED is a packet, that is, a test data. FLAG is a flag, specifically, it can be a flag with time information, so that the controller can determine the wavelength of the test light emitted by the measuring device 3000 at the corresponding time of this data. The remaining five fields DAT_R, DAT_Y, DAT_G, DAT_C, and DAT_B are the sensing data (sensing values) of the five photosensitive channels respectively. The format of the above data structure is only an example. In fact, the format of the data structure can be determined by the specifications of the ambient light sensor.

[0032] The electronic device 2000 obtains the original data and also obtains the format of the device data of the ambient light sensor 1000, so that the received multiple test data and multiple original data can be analyzed. For example, the original data, for example, puts all the data of all the photosensitive channels SR~SB together, but each test data includes the data of each photosensitive channel, so in one embodiment, the electronic device 2000 sorts all the test data to obtain the sensing data corresponding to each photosensitive channel to correspond to the original data. Specifically, the original data, for example, includes the data of the photosensitive channel SR at each wavelength, the data of the photosensitive channel SY at each wavelength, the data of the photosensitive channel SG at each wavelength, the data of the photosensitive channel SC at each wavelength, and the data of the photosensitive channel SB at each wavelength. In other words, the data of each photosensitive channel is stored in the original data in partition blocks, and the electronic device 2000 stores the five fields DAT_R, DAT_Y, DAT_G, DAT_C, and DAT_B in each test data according to the photosensitive channel partition blocks, and sorts them according to the size of the corresponding wavelength.

[0033] The electronic device 2000 organizes the original data and the organized sensing data of each photosensitive channel into a set of integrated data according to the above principle. In other words, in the integrated data, the original data and the test data of each photosensitive channel are stored in corresponding or adjacent blocks.

[0034] Then, as shown in step S240, the electronic device 2000 analyzes the integrated data according to the source of each piece of data in the integrated data and the wavelength value corresponding to the data to obtain a spectrum band table and a channel allocation table for the ambient light sensor 1000. Specifically, the electronic device 2000 can directly determine whether a piece of data is test data or original data based on whether the data comes from the test equipment 3000 or from the database. When generating the integrated data, the electronic device 2000 directly adds a flag to each piece of data to indicate the source of the data.

[0035] Specifically, the original data, like the test data, will define data of multiple photosensitive channels respectively, and the electronic device 2000 can read the wavelength range corresponding to each photosensitive channel from the original data. For example, the wavelength range corresponding to the photosensitive channel SR is, for example, 500 nanometers to 710 nanometers, the wavelength range corresponding to the photosensitive channel SY is, for example, 450 nanometers to 670 nanometers, the wavelength range corresponding to the photosensitive channel SG is, for example, 450 nanometers to 620 nanometers, the wavelength range corresponding to the photosensitive channel SC is, for example, 410 nanometers to 600 nanometers, and the wavelength range corresponding to the photosensitive channel SB is, for example, 390 nanometers to 550 nanometers. Therefore, in one embodiment, the electronic device 2000 can obtain the spectral band table and channel allocation table of the ambient light sensor 1000 based on the original data. The spectral band table is used to describe the sensitivity of the ambient light sensor 1000 to each wavelength of light, and the channel allocation table defines which wavelength range of light each color of light specifically corresponds to. In another embodiment, the electronic device 2000 analyzes all the data (sensing data) from the test. For example, the sensing data of the photosensitive channel SR has non-zero values ​​at wavelengths of 490 nanometers to 700 nanometers, and also has a non-zero value at a wavelength of 790 nanometers. Since the sensing of the photosensitive channel is usually continuous, the data at a wavelength of 790 nanometers is an outlier, so the non-zero value corresponding to the wavelength of 790 nanometers should actually be an error and should be discarded. The electronic device 2000 therefore determines that the wavelength range corresponding to the photosensitive channel SR of the ambient light sensor 1000 is 490 nanometers to 700 nanometers. The electronic device 2000 determines the wavelength range corresponding to each photosensitive channel in a similar manner, thereby obtaining the spectral band table and channel allocation table of the ambient light sensor 1000. In another embodiment, the electronic device 2000 integrates the original factory data and the test data to determine the spectral band table and channel allocation table of the ambient light sensor 1000. For example, the original data defines the wavelength range corresponding to the photosensitive channel SR as 500 nanometers to 710 nanometers. According to the test data, the photosensitive channel SR senses light in the wavelength range of 490 nanometers to 700 nanometers. However, the reading value of 490 nanometers is extremely small. Therefore, the electronic device 2000 determines that the wavelength range of the photosensitive channel SR of the ambient light sensor 1000 is 500 nanometers to 700 nanometers based on the original data and the test data.

[0036] In one embodiment, as shown in step S250, the electronic device 2000 discards all the sensing data of the photosensitive channels SR, which corresponds to the wavelength of the test light that does not belong to 500 nanometers to 710 nanometers. The sensing data of other photosensitive channels are also sorted in a similar manner, so that the electronic device 2000 matches and integrates the original data with the test data.

[0037] In one embodiment, please refer to Figure 3To understand how the electronic device 2000 operates in step S240, Figure 3 This is a flow chart of a method for automatically processing test data in one embodiment of the present invention. Figure 2 After the step, as shown in step S310, the electronic device 2000 obtains multiple data corresponding to one of the photosensitive channels from the integrated data, and the multiple data come from the set of original factory data. Specifically, the electronic device 2000, for example, captures the original factory data about the photosensitive channel SB from the integrated data. Then, as shown in step S320, the electronic device 2000 calculates the optical path reference value of the ambient light sensor 1000 based on the data corresponding to the obtained photosensitive channel. Specifically, the obtained original factory data includes the sensor coefficients of each photosensitive channel of the ambient light sensor 1000. Here, the original factory data of the photosensitive channel SB (blue light) is multiplied by the sensor coefficient of this photosensitive channel, and then divided by the sensing data of the ambient light sensor 1000 for white light, to obtain the above-mentioned optical path reference value. The white light data referred to here refers to the reading value of the ambient light sensor 1000 sensing the preset white light in the data provided by the original manufacturer. The so-called preset white light is, for example, white light with a color temperature of 6500K and a preset intensity (lumen value).

[0038] In one embodiment, as shown in step S330, the electronic device 2000 calculates the channel data corresponding to each photosensitive channel based on the optical path reference value and multiple data (sensing data) from the test data in the integrated data. The channel data is used to describe the sensitivity distribution of each photosensitive channel for each wavelength of light and the corresponding light color. Then, as shown in step S340, the electronic device 2000 determines whether the channel data of each sensing channel has an error based on the verification rule. In one embodiment, the verification rule, for example, determines whether the error between the channel data calculated in step S330 and the default channel data is less than a preset threshold. If so, the channel data is judged to be error-free, otherwise the channel data is judged to be error-free. In another embodiment, the channel data is calculated again. If the results obtained by calculating the channel data twice are the same, the channel data is judged to be error-free, otherwise the channel data is judged to be error-free. When the channel data is error-free, as shown in step S350, the electronic device 2000 records these channel data to obtain a spectral band table and a channel allocation table. When the channel data is incorrect, it returns to step S310.

[0039] In one embodiment, when processing the spectral band table and the channel allocation table, please refer to Figure 4, which is a flow chart of a method for generating a spectral band table / channel allocation table according to an embodiment of the present invention. As shown in step S410, the electronic device 2000 classifies the channel data according to channels and colors. For example, the photosensitive channel SB corresponds to blue light, so the channel data associated with the photosensitive channel SB will be marked with its color as blue, or directly presented as blue when presented. As shown in step S420, the electronic device 2000 analyzes the maximum and minimum values ​​of the channel data, and calculates the coordinate range and coordinate axis density based on the maximum and minimum values. Specifically, since it is not necessary to present wavelength data with no data in the graph when presenting the processed spectral band allocation table and channel allocation table in a graphical form, the wavelengths with no data are removed and the coordinate axis density is adjusted to make the presented graph more readable to the user. As shown in step S430, the electronic device 2000 presents the channel data in a corresponding chart (such as Figure 5 In other words, this chart presents the spectral band table and the channel allocation table in an icon format. The chart includes at least one test curve corresponding to the test data and at least one default curve corresponding to the original factory data. Specifically, the number of test curves and the number of default curves match the number of photosensitive channels.

[0040] Through the above-mentioned embodiments, the actual sensitivity of an ambient light sensor 1000 to each wavelength of light can be automatically established, and a large amount of test data and original factory data are automatically matched by the electronic device 2000 and the corresponding data conversion is completed. The errors that are easy to be generated by manual processing of these data can be avoided. According to the spectral band table, channel allocation table and / or corresponding data chart (such as Figure 5 ), making the analysis and adjustment of the ambient light sensor 1000 easier to operate. For example, if the final adjustment is done manually, the adjuster can visually and intuitively read from the data chart whether the current ambient light sensor has obvious errors, such as too high or too low sensitivity to a specific wavelength of light. Alternatively, if the final adjustment is done automatically by a computer, since the data has been sorted, classified and converted, the computer can directly adjust the data of each wavelength and each photosensitive channel.

[0041] In summary, the provided method integrates the original data and test data of the ambient light sensor and analyzes the wavelengths of these data to establish the spectral band table and channel allocation table of the ambient light sensor, automatically completing the links that are prone to human errors and reducing the error rate of ambient light sensor analysis and adjustment.

Claims

1. An ambient light sensor analysis method, used to analyze an ambient light sensor, characterized in that: The method comprises: Obtain a set of original factory data about the ambient light sensor; Obtain a set of test data about the ambient light sensor; Integrate the set of original data and the set of test data to obtain a set of integrated data, wherein the set of integrated data includes a plurality of data; and The integrated data is analyzed according to the sources of the multiple data and the wavelength values ​​corresponding to the multiple data to obtain a spectral band table and a channel allocation table for the ambient light sensor, including obtaining the multiple data corresponding to one of the multiple photosensitive channels from the integrated data, the multiple data coming from the set of original factory data; and calculating an optical path reference value of the ambient light sensor based on the multiple data obtained.

2. The ambient light sensor analysis method according to claim 1, characterized in that: Also includes: sequentially generating a plurality of test lights to illuminate the ambient light sensor to obtain the set of test data; The multiple test lights are all narrow-wavelength test lights.

3. The ambient light sensor analysis method according to claim 2, characterized in that: The wavelengths of the multiple test lights are all between 400 nanometers and 1000 nanometers.

4. The ambient light sensor analysis method according to claim 3, characterized in that: The multiple test lights are all visible light.

5. The ambient light sensor analysis method according to claim 1, characterized in that: Also includes: Calculate channel data corresponding to each photosensitive channel according to the optical path reference value and a plurality of data from the set of test data in the set of integrated data; Determining whether the channel data have errors according to a verification rule; and When the channel data have no errors, the channel data are recorded.

6. The ambient light sensor analysis method according to claim 5, characterized in that: Also includes: When the channel data have errors, the step of returning to the step of calculating the channel data corresponding to each photosensitive channel according to the optical path reference value and a plurality of data from the set of test data in the set of integrated data.

7. The ambient light sensor analysis method according to claim 5, characterized in that: Also includes: Classify the channel data according to channel and color; Analyzing the maximum and minimum values ​​of the channel data, and calculating the coordinate range and the coordinate axis density according to the maximum and minimum values; and The channel data are correspondingly presented in a chart according to the coordinate range and the coordinate axis density.

8. The ambient light sensor analysis method according to claim 7, characterized in that: The chart includes at least one test curve corresponding to the set of test data and at least one default curve corresponding to the set of original factory data.

9. An ambient light sensor analysis system, characterized in that: The method comprises a plurality of computer program instructions, which are used to be loaded and executed by an electronic device to control the electronic device to execute the ambient light sensor analysis method according to any one of claims 1 to 8.

10. An electronic device, characterized in that: include: A memory for storing a plurality of computer program instructions; as well as A processor, configured to load the computer program instructions to execute the ambient light sensor analysis method according to any one of claims 1 to 8.