Multi-channel light source controller calibration method, device, equipment and storage medium
By setting the current range and total current level, obtaining the current sequence of the light source channel, determining the standard current value and target current value, and sorting the dimming parameters, the problem of poor consistency of the light source controller is solved, and the consistency and accuracy of the test results in different environments are achieved.
Patent Information
- Application Number
- CN202510478647.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-16
- Publication Date
- 2025-07-04
AI Technical Summary
The poor consistency of existing light source controllers leads to inaccurate test results under different environmental conditions.
By setting the current range and total current level, obtain the current sequence of the light source channel, determine the standard current value and target current value, sort the dimming parameters, calculate the current gap value, and store the target dimming parameter sequence within the preset range.
Improve the consistency of the light source controller under different environmental conditions to ensure the accuracy and reliability of the test results.
Smart Images

Figure CN120264555A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of device calibration, and particularly to a calibration method, device, equipment and storage medium for a multi-channel light source controller. Background Art
[0002] The consistency of the light source controller is crucial for the accuracy and reliability of test results. The reason is that if the consistency of the light source controller is poor, then under different environmental conditions, the lighting conditions of semiconductor test equipment will change, resulting in inaccurate test results. Nowadays, for newly produced light source controllers, new light source control technologies are usually equipped to ensure the consistency of light source control. However, for previously produced light source controllers, due to the lack of new light source control technologies, there are technical problems of poor consistency in previously produced light source controllers.
[0003] Therefore, for previously produced light source controllers, how to improve the consistency of light source control is a technical problem that those skilled in the art still need to solve. Summary of the Invention
[0004] The main purpose of this application is to provide a calibration method, device, equipment and storage medium for a multi-channel light source controller, aiming to solve the technical problem of how to improve the consistency of light source control for previously produced light source controllers.
[0005] To achieve the above purpose, this application proposes a calibration method for a multi-channel light source controller, and the method includes:
[0006] Based on a preset dimming parameter sequence, obtain the current sequence corresponding to each light source channel in the light source controller to be tested;
[0007] According to a preset current range and the total number of preset current levels, obtain the standard current value corresponding to each current level;
[0008] For each current sequence, among the currents in the current sequence, determine the target current value corresponding to each standard current value, and based on each target current value, sort each dimming parameter in the dimming parameter sequence to obtain the target dimming parameter sequence corresponding to each light source channel;
[0009] Calculate the current difference value between each standard current value and each target current value, and when each current difference value belongs to a preset difference range, store each target dimming parameter sequence into the storage space corresponding to each light source channel respectively.
[0010] In one embodiment, the step of determining, for each of the currents in the current sequence, the target current value corresponding to each of the standard current values includes:
[0011] For each of the standard current values, calculate the current difference between each of the currents in the current sequence and the standard current value respectively, and use the current value corresponding to the minimum value among the current differences as the target current value corresponding to the standard current value.
[0012] In one embodiment, the multi-channel light source controller calibration method further includes:
[0013] Detect whether the target current values corresponding to the respective standard current values are repeated;
[0014] In the case where the target current values corresponding to the respective standard current values are repeated, increase the total number of current levels, and return to execute the step of obtaining the standard current value corresponding to each current level according to the preset current range and the preset total number of current levels;
[0015] In the case where the target current values corresponding to the respective standard current values are not repeated, execute the step of sorting each dimming parameter in the dimming parameter sequence based on the respective target current values to obtain the target dimming parameter sequence corresponding to each light source channel.
[0016] In one embodiment, the step of sorting each dimming parameter in the dimming parameter sequence based on the respective target current values to obtain the target dimming parameter sequence corresponding to each light source channel includes:
[0017] Based on the first correspondence between the respective target current values and the respective standard current values, and the second correspondence between the respective target current values and each dimming parameter in the dimming parameter sequence, obtain the target correspondence between the respective standard current values and each dimming parameter;
[0018] Sort the respective standard current values in a preset order, and based on the sorted order of the respective standard current values and the target correspondence, sort each dimming parameter to obtain the target dimming parameter sequence corresponding to each light source channel.
[0019] In one embodiment, after the step of calculating the current gap value between each of the standard current values and each of the target current values, the method further includes:
[0020] In the case where it is detected that there is a current gap value that does not belong to the difference range, determine that the light source controller to be tested is unqualified.
[0021] In one embodiment, the step of obtaining the standard current value corresponding to each current level according to a preset current range and a preset total number of current levels includes:
[0022] Calculate the ratio between the preset current range and the preset total number of current levels, and use the ratio as the unit current value;
[0023] Multiply the serial number of each current level in the total number of current levels by the unit current value to obtain the standard current value corresponding to each current level.
[0024] In one embodiment, the method further includes:
[0025] Detect whether the ratio belongs to a preset unit value range;
[0026] In the case where the ratio belongs to the unit value range, execute the step of using the ratio as the unit current value.
[0027] In addition, to achieve the above object, the present application also proposes a multi-channel light source controller calibration device, and the multi-channel light source controller calibration device includes:
[0028] A load light source;
[0029] A light source controller to be tested;
[0030] A multimeter, the multimeter is connected to the load light source;
[0031] A relay switching control board, the relay switching control board includes a single-chip microcomputer, a first relay group and a second relay group, the single-chip microcomputer is connected to the first relay group and the second relay group, the first relay group is connected to the light source controller to be tested, and the second relay group is connected to the light source controller to be tested and the multimeter;
[0032] A main control device, the main control device is connected to the multimeter, the first relay group and the single-chip microcomputer.
[0033] In addition, to achieve the above object, the present application also proposes an electronic device, and the device includes: a memory, a processor, and a computer program stored on the memory and executable on the processor, and the computer program is configured to implement the steps of the multi-channel light source controller calibration method as described above.
[0034] In addition, to achieve the above object, the present application also proposes a storage medium, the storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium, and when the computer program is executed by a processor, the steps of the multi-channel light source controller calibration method as described above are implemented.
[0035] In an embodiment of the present application, based on a preset dimming parameter sequence, a current sequence corresponding to each light source channel in the light source controller to be tested is obtained, and current values corresponding to different dimming parameters can be obtained; by obtaining standard current values corresponding to each current level according to a preset current range and a preset total number of current levels, the standard current value corresponding to each current level can be determined based on the current range and the total number of current levels; then, for each current sequence, among the currents in the current sequence, the target current value corresponding to each standard current value is determined, and based on the target current values, the dimming parameters in the dimming parameter sequence are sorted to obtain a target dimming parameter sequence corresponding to each light source channel. The obtained current values can be respectively corresponded to the standard current values, so that the sorting of the dimming parameters can be realized based on this corresponding relationship, and thus a target dimming parameter sequence corresponding to each light source channel can be obtained; then, the current difference values between the standard current values and the target current values are calculated, and when the current difference values all belong to a preset difference range, the target dimming parameter sequences are respectively stored in the storage spaces corresponding to the respective light source channels.
[0036] In an embodiment of the present application, the present application divides the size of the current range into multiple current levels by setting the current range and the total number of current levels; then, the corresponding relationship between each current level and each dimming parameter can be obtained by corresponding the actually measured current to the standard current value corresponding to each current level. Thus, under different environmental conditions, if the specified current level is the same, the current magnitude in the light source controller is also the same, improving the consistency of light source control. Description of the Drawings
[0037] The drawings here are incorporated into the specification and form a part of this specification, showing embodiments consistent with the present application and used together with the specification to explain the principles of the present application.
[0038] To more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, for those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.
[0039] Figure 1 It is a schematic flowchart provided for the first embodiment of the calibration method for a multi-channel light source controller of the present application;
[0040] Figure 2 It is a schematic diagram of the standard deviation of each dimming parameter in the initial dimming parameter sequence;
[0041] Figure 3It is a schematic diagram of the standard deviation of each dimming parameter in the dimming parameter sequence obtained by the multi-channel light source controller calibration method of the present application;
[0042] Figure 4 It is a schematic diagram of the functional modules of the multi-channel light source controller calibration device of the present application;
[0043] Figure 5 It is a schematic diagram of the device structure of the hardware operating environment involved in the multi-channel light source controller calibration method in the embodiment of the present application.
[0044] The implementation, functional features and advantages of the present application will be further described with reference to the embodiments and the accompanying drawings. Detailed Embodiments
[0045] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.
[0046] In order to better understand the technical solutions of the present application, the following will be described in detail with reference to the accompanying drawings of the specification and specific embodiments.
[0047] It can be understood that the consistency of the light source controller is crucial for the accuracy and reliability of the test results. The reason is that if the consistency of the light source controller is not good, then under different environmental conditions, the lighting conditions of the semiconductor test equipment will change, resulting in inaccurate test results. Nowadays, for newly produced light source controllers, new light source control technologies are usually equipped to ensure the consistency of light source control. However, for previously produced light source controllers, due to the lack of new light source control technologies, there are technical problems with poor consistency in previously produced light source controllers.
[0048] Therefore, for previously produced light source controllers, how to improve the consistency of light source control is a technical problem that those skilled in the art still need to solve.
[0049] To solve the above problems, based on a preset dimming parameter sequence, this application obtains the current sequence corresponding to each light source channel in the light source controller to be tested, and can obtain the current values corresponding to different dimming parameters. By obtaining the standard current value corresponding to each current level according to the preset current range and the total number of preset current levels, the standard current value corresponding to each current level can be determined based on the current range and the total number of current levels. Then, for each current sequence, among the currents in the current sequence, the target current value corresponding to each standard current value is determined, and based on the target current values, the dimming parameters in the dimming parameter sequence are sorted to obtain the target dimming parameter sequence corresponding to each light source channel. The obtained current values can be respectively corresponding to the standard current values, so that the sorting of the dimming parameters can be realized based on this corresponding relationship, and thus the target dimming parameter sequence corresponding to each light source channel can be obtained. Then, the current difference value between each standard current value and each target current value is calculated, and when each current difference value belongs to the preset difference range, each target dimming parameter sequence is respectively stored in the storage space corresponding to each light source channel.
[0050] In the embodiment of this application, by setting the current range and the total number of current levels, the size of the current range can be divided into multiple current levels. Then, by corresponding the actually measured current to the standard current value corresponding to each current level, the corresponding relationship between each current level and each dimming parameter can be obtained. Thus, under different environmental conditions, if the specified current level is the same, the current size in the light source controller is also the same, improving the consistency of light source control.
[0051] It should be noted that the execution subject of the multi-channel light source controller calibration method of this application can be an electronic device with data processing, network communication, and program running functions, such as a tablet computer, a personal computer, etc. In the following embodiments, the execution subject is omitted for elaboration.
[0052] Based on this, the embodiment of this application provides a multi-channel light source controller calibration method, referring to Figure 1 , Figure 1 which is the flowchart of the first embodiment of the multi-channel light source controller calibration method of this application.
[0053] In this embodiment, the multi-channel light source controller calibration method includes steps S10 to S40:
[0054] Step S10, based on a preset dimming parameter sequence, obtain the current sequence corresponding to each light source channel in the light source controller to be tested;
[0055] It should be noted that in this application, the dimming parameter refers to the duty cycle or the DAC value. The dimming parameter sequence includes each dimming parameter in a preset order. It can be understood that there are multiple light source channels in the light source controller to be tested in this application. Therefore, this application calibrates each light source channel in sequence. Among them, each light source channel will be assigned a dimming parameter sequence in advance, and a corresponding current sequence for each light source channel will be obtained.
[0056] In this embodiment, after presetting the dimming parameter sequence corresponding to each light source channel, the dimming parameters in the dimming parameter sequence can be sequentially transmitted to the corresponding light source channel, and then the current value corresponding to the light source channel can be obtained, so as to obtain the current sequence corresponding to each light source channel.
[0057] Step S20: Obtain the standard current value corresponding to each current level according to the preset current range and the total number of preset current levels;
[0058] It should be noted that the current range and the total number of current levels are preset in advance. Among them, the current range refers to the maximum current value that may be output by the light source controller, and the total number of current levels is the number of levels into which the maximum current value is divided. The standard current value is the current value corresponding to the current level and determined according to the current range and the total number of current levels.
[0059] In a feasible implementation manner, the above step S20 includes:
[0060] Step S201: Calculate the ratio between the preset current range and the total number of preset current levels, and use the ratio as the unit current value;
[0061] Step S202: Multiply the serial numbers of each current level in the total number of current levels by the unit current value respectively to obtain the standard current value corresponding to each current level.
[0062] Exemplarily, when the current range is 100 mA and the total number of current levels is 1000, the unit current value is 0.1 mA. The standard current value corresponding to current level 1 is 0.1 mA, and the standard current value corresponding to current level 970 is 97 mA.
[0063] Step S30: For each current sequence, determine the target current value corresponding to each standard current value among the currents in the current sequence, and sort the dimming parameters in the dimming parameter sequence based on each target current value to obtain the target dimming parameter sequence corresponding to each light source channel;
[0064] It should be noted that the target dimming parameter sequence refers to the sequence obtained by sorting each dimming parameter.
[0065] It can be understood that since different current sequences correspond to different light source channels, in this application, the steps of determining the target current value and sorting the dimming parameters are carried out in units of light source channels.
[0066] In this embodiment, for the current sequence corresponding to a certain light source channel, each standard current value can be compared with each current in the current sequence respectively, so as to determine the target current value closest to the standard current value in the current sequence. Furthermore, the dimming parameters can be sorted based on the order of the target current values, and then the target dimming parameter sequence corresponding to the current light source channel can be obtained. Then, based on a basically similar method, the target dimming parameter sequences corresponding to other light source channels in the light source controller to be detected can be obtained.
[0067] In a feasible implementation manner, the above step S30 includes:
[0068] Step S301, for each of the standard current values, calculate the current difference between each current in the current sequence and the standard current value respectively, and use the current value corresponding to the minimum value among the current differences as the target current value corresponding to the standard current value.
[0069] Exemplarily, when the standard current value corresponding to the 970th level is 97 mA, the difference between each current in the current sequence and 97 mA can be calculated respectively, that is, the current difference is calculated; then the current value corresponding to the minimum value among the current differences is used as the target current value corresponding to 97 mA. For example, assuming that the current value closest to 97 mA in the current sequence is 97.2341 mA, the target current value corresponding to the standard current value of 97 mA is 97.2341 mA. Thus, for the standard current values corresponding to each level, each target current value can be obtained through a similar method.
[0070] Please refer to Figure 2 In a feasible implementation manner, the above step S30 further includes:
[0071] Step S302, based on the first correspondence between each target current value and each standard current value, and the second correspondence between each target current value and each dimming parameter in the dimming parameter sequence, obtain the target correspondence between each standard current value and each dimming parameter;
[0072] It should be noted that the first correspondence refers to the correspondence between the target current value and the standard current value, the second correspondence refers to the correspondence between the target current value and the dimming parameter, and the target correspondence refers to the correspondence between the standard current value and the dimming parameter.
[0073] It can be understood that the target current value actually also originates from the current sequence corresponding to the dimming parameter sequence. Since there is a corresponding relationship between the currents in the current sequence and the dimming parameters in the dimming parameter sequence, and the target current value actually also originates from the current sequence, there is also a corresponding relationship between the target current value and the dimming parameters. In this embodiment, based on obtaining the first corresponding relationship and the second corresponding relationship, the target corresponding relationship between the standard current value and the dimming parameters can be obtained with the target current value as a bridge.
[0074] Step S303: Sort the standard current values in a preset order, and based on the order after sorting the standard current values and the target corresponding relationship, sort the dimming parameters to obtain the target dimming parameter sequence corresponding to each light source channel.
[0075] It can be understood that the preset order can be an ascending order or a descending order, and this application does not limit this. After sorting the standard current values, the order between the dimming parameters can be adjusted based on the corresponding relationship between the standard current value and the dimming parameters, so that the target dimming parameter sequence corresponding to each light source channel can be obtained.
[0076] Exemplarily, when the preset order is an ascending order, the sorted standard current values can be: 0.1 mA, 0.2 mA, 0.3 mA,... 100 mA; then, assuming that the dimming parameter value corresponding to 0.1 mA is 12, the dimming parameter value corresponding to 0.2 mA is 10, the dimming parameter value corresponding to 0.3 mA is 15, and the dimming parameter value corresponding to 100 mA is 20, then the target dimming parameter sequence corresponding to the current light source channel is: 12, 10, 15, 20.
[0077] Step S40: Calculate the current difference value between each standard current value and each target current value, and when each current difference value belongs to a preset difference range, store each target dimming parameter sequence into the storage space corresponding to each light source channel respectively.
[0078] It should be noted that the current difference value refers to the difference between the standard current value and the target current value.
[0079] It can be understood that when it is detected that each current difference value belongs to the difference range, it indicates that the target current value obtained through the above steps S10 to S30 is relatively close to the standard current value, and the gap between the target current value and the standard current value meets the expectation. Therefore, the target dimming parameter sequence can be written into the storage space corresponding to the current light source channel so that the user can control the current in the light source controller by selecting the current level.
[0080] In a feasible implementation manner, after the above step S40, the method further includes:
[0081] Step S50, when it is detected that the current gap value does not belong to the difference range, it is determined that the light source controller to be tested is unqualified.
[0082] Thus, the present application can also determine unqualified light source controllers through the current gap value and the difference range.
[0083] In the embodiments of the present application, based on a preset dimming parameter sequence, the current sequences corresponding to the respective light source channels in the light source controller to be tested can be obtained, and the current values corresponding to different dimming parameters can be obtained; by obtaining the standard current values corresponding to the respective current levels according to the preset current range and the total number of preset current levels, the standard current values corresponding to each current level can be determined based on the current range and the total number of current levels; then for each current sequence, among the currents in the current sequence, the target current values corresponding to the respective standard current values are determined, and based on the respective target current values, the dimming parameters in the dimming parameter sequence are sorted to obtain the target dimming parameter sequences corresponding to the respective light source channels. The obtained current values can be respectively corresponded to the standard current values, so that the sorting of the dimming parameters can be realized based on this correspondence relationship, and thus the target dimming parameter sequences corresponding to the respective light source channels can be obtained; then the current gap values between the respective standard current values and the respective target current values are calculated, and when all the current gap values belong to the preset difference range, the respective target dimming parameter sequences are respectively stored in the storage spaces corresponding to the respective light source channels.
[0084] In the embodiments of the present application, by setting the current range and the total number of current levels, the size of the current range can be divided into multiple current levels; then, by corresponding the actually measured current to the standard current values corresponding to the respective current levels, the correspondence relationship between each current level and each dimming parameter can be obtained. Thus, under different environmental conditions, if the specified current level is the same, the current magnitude in the light source controller is also the same, improving the consistency of light source control.
[0085] Further, based on the first embodiment of the multi-channel light source controller calibration method of the present application, a second embodiment of the multi-channel light source controller calibration method of the present application is proposed.
[0086] Please refer to Figure 3 , in this embodiment, the multi-channel light source controller calibration method further includes:
[0087] Step S100, detecting whether the target current values corresponding to the respective standard current values are repeated;
[0088] It can be understood that after obtaining the target current value corresponding to each standard current value, it can be detected whether there is a situation where different standard current values correspond to the same target current value.
[0089] Step S200, in the case where there are repetitions in the target current values corresponding to the respective standard current values, increase the total number of current levels, and return to execute the step of obtaining the standard current value corresponding to each current level according to the preset current range and the preset total number of current levels;
[0090] Step S300, in the case where there are no repetitions in the target current values corresponding to the respective standard current values, execute the step of sorting each dimming parameter in the dimming parameter sequence based on the respective target current values to obtain the target dimming parameter sequence corresponding to each light source channel.
[0091] It can be understood that when it is detected that there is a situation where different standard current values correspond to the same target current value, it indicates that the current total number of current levels is small, and it is difficult to achieve the purpose of light source controller consistency. Therefore, it is necessary to increase the total number of current levels, and then facilitate further subdivision of the current values in the current sequence, so as to achieve the purpose of improving light source control consistency.
[0092] In a feasible implementation manner, after the above step of "calculating the ratio between the preset current range and the preset total number of current levels", the method further includes:
[0093] Step S400, detecting whether the ratio belongs to a preset unit value range;
[0094] Step S500, in the case where the ratio belongs to the unit value range, execute the step of using the ratio as the unit current value.
[0095] It can be understood that if the ratio is too large, it will cause a certain current value in the current sequence to correspond to multiple current levels at the same time; if the ratio is too small, it will cause too many current levels and a large amount of processing and calculation. Therefore, it is necessary to limit the range of the ratio through a preset unit value range to avoid the problem that a certain current value corresponds to multiple current levels at the same time and the problem of a large amount of processing and calculation.
[0096] Furthermore, based on each embodiment of the multi-channel light source controller calibration method of the present application, a specific embodiment of the multi-channel light source controller calibration method of the present application is proposed.
[0097] After measuring the corresponding relationship between the dimming parameter sequence and the actual current value, the dimming parameters in the dimming parameter sequence can be re-sorted according to the standard current value corresponding to each level. For specific information, please refer to Table 1.
[0098] Table 1
[0099]
[0100]
[0101] Among them, when the dimming parameter is 0, the measured current value is 317.0403 mA, and when the dimming parameter is 1, the measured current value is 317.0338 mA. And so on, the corresponding relationship between each dimming parameter and the current value can be obtained. Then, the dimming parameter X2 refers to the level divided according to the preset range. The number of levels in Table 1 is 1000. Then, for each level, the standard current value can be determined, and then the dimming parameters can be sorted. Specifically, the current value closest to the standard current value of the first level is 0.2759, so the dimming parameter value 3639 corresponding to 0.2759 is used as the parameter value corresponding to the first level. And so on, the re-sorted DAC sequence (new dimming parameter sequence) can be obtained. Then, for the preset multiple levels, the current value can be measured again, and the re-measured current value can be compared with the standard value. If the difference between the currents meets the expectation, the re-sorted DAC sequence can be written into the light source controller.
[0102] Furthermore, for the initial dimming parameter sequence, the standard deviation of the dimming parameters is as Figure 2 shown, and for the re-sorted dimming parameter sequence, the standard deviation of the dimming parameters is as Figure 3 shown. It can be understood that the smaller the standard deviation, the smaller the difference between data points, that is, the data is more concentrated or has higher consistency. Thus, by comparing Figure 3 and Figure 4 , it can be known that this application can improve the consistency of the light source controller, so as to meet the increasingly high consistency requirements of industrial equipment.
[0103] It should be noted that the above examples are only for understanding this application and do not constitute a limitation on the multi-channel light source controller calibration method of this application. Based on this technical concept, more forms of simple transformations are within the protection scope of this application.
[0104] This application also provides a multi-channel light source controller calibration device. Please refer to Figure 4 , the multi-channel light source controller calibration device includes:
[0105] Load light source;
[0106] Light source controller to be tested;
[0107] Multimeter, the multimeter is connected to the load light source;
[0108] Relay switching control board, the relay switching control board includes a single-chip microcomputer, a first relay group and a second relay group, the single-chip microcomputer is connected to the first relay group and the second relay group, the first relay group is connected to the light source controller to be tested, and the second relay group is connected to the light source controller to be tested and the multimeter;
[0109] Master control device, the master control device is connected to the multimeter, the first relay group and the single-chip microcomputer.
[0110] It can be understood that the single-chip microcomputer in the relay switching control board is used to receive instructions from the master control device through the RS232 interface, and then switch the serial port of the light source controller to be tested through the first relay group. The circuit output channel of the light source controller can be switched through the second relay group. In addition, the first relay group can also receive instructions directly transmitted by the master control device through the RS232 interface. The multimeter is used to obtain the current sequence and transmit the current sequence to the master control device, so that the master control device can obtain the standard current value corresponding to each current level according to the preset current range and the total number of preset current levels; then for each current sequence, among the currents in the current sequence, determine the target current value corresponding to each standard current value, and based on each target current value, sort each dimming parameter in the dimming parameter sequence to obtain the target dimming parameter sequence corresponding to each light source channel; then calculate the current difference value between each standard current value and each target current value, and when each current difference value belongs to the preset difference range, store each target dimming parameter sequence into the storage space corresponding to each light source channel respectively.
[0111] In an embodiment, the master control device integrates upper computer calibration software, and the upper computer calibration software sends instructions to the relay switching control circuit board through the serial port according to the Free Modbus communication protocol. Among them, the interface of the serial port on the relay switching control circuit board uses the SP3232E communication chip circuit to convert the RS232 level into the TTL level and perform asynchronous communication with the USART1 of the GD32F103 single-chip microcomputer. After receiving the Free Modbus instruction data, the single-chip microcomputer identifies the content of the data packet and executes actions according to the coil status of the corresponding address: if it is 1, the corresponding relay is opened; if it is 0, the corresponding relay is closed. The single-chip microcomputer program has a forced limit: at most 1 serial port 1 communication circuit can be established at the same time.
[0112] The multi-channel light source controller calibration device provided by the present application adopts the multi-channel light source controller calibration method in the above embodiment, and can solve the technical problem of how to improve the consistency of light source control for the light source controllers produced in the past. Compared with the prior art, the beneficial effects of the multi-channel light source controller calibration device provided by the present application are the same as those of the multi-channel light source controller calibration method provided by the above embodiment, and other technical features in the multi-channel light source controller calibration device are the same as the features disclosed in the above embodiment method, which will not be elaborated here.
[0113] The present application provides an electronic device, which can be used as the main control device of the above multi-channel light source controller calibration device. The electronic device includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein, the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the multi-channel light source controller calibration method in the first embodiment above.
[0114] Next, refer to Figure 5 , which shows a schematic structural diagram of an electronic device suitable for implementing the embodiments of the present application. Figure 5 The electronic device shown is only an example and should not impose any limitation on the functions and usage scope of the embodiments of the present application.
[0115] As Figure 5 shown, the electronic device may include a processing device 1001 (such as a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes according to the program stored in the read-only memory 1002 or the program loaded from the storage device 1003 into the random access memory 1004. In the random access memory 1004, various programs and data required for the operation of the electronic device are also stored. The processing device 1001, the read-only memory 1002, and the random access memory 1004 are connected to each other through a bus 1005. The input / output interface 1006 is also connected to the bus. Generally, the following systems can be connected to the input / output interface 1006: an input device 1007 including, for example, a touch screen, a touchpad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the electronic device to communicate with other devices wirelessly or wiredly to exchange data. Although the figure shows an electronic device with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be alternatively implemented or had.
[0116] In particular, according to the embodiments disclosed in the present application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, the embodiments disclosed in the present application include a computer program product that includes a computer program carried on a computer-readable medium, and the computer program contains program codes for executing the methods shown in the flowcharts. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a read-only memory 1002. When the computer program is executed by a processing device 1001, the above-mentioned functions defined in the methods of the embodiments disclosed in the present application are executed.
[0117] The electronic device provided by the present application adopts the multi-channel light source controller calibration method in the above-mentioned embodiment, and can solve the technical problem of how to improve the consistency of light source control for the light source controllers produced in the past. Compared with the prior art, the beneficial effects of the electronic device provided by the present application are the same as those of the multi-channel light source controller calibration method provided in the above-mentioned embodiment, and other technical features in the electronic device are the same as those disclosed in the method of the previous embodiment, which will not be elaborated here.
[0118] It should be understood that the various parts disclosed in the present application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in a suitable manner in any one or more embodiments or examples.
[0119] As described above, the above are only specific embodiments of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed in the present application, and all should be covered by the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.
[0120] The present application provides a computer-readable storage medium having computer-readable program instructions (i.e., computer programs) stored thereon, and the computer-readable program instructions are used to execute the multi-channel light source controller calibration method in the above-mentioned embodiment.
[0121] The computer-readable storage medium provided by the present application can be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems or devices, or any combination of the above. More specific examples of computer-readable storage media can include, but are not limited to: electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM) or flash memory, optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the above. In this embodiment, the computer-readable storage medium can be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system or device. The program code contained on the computer-readable storage medium can be transmitted by any suitable medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.
[0122] The above computer-readable storage medium can be included in an electronic device; it can also exist separately without being assembled into the electronic device.
[0123] The above computer-readable storage medium carries one or more programs. When the above one or more programs are executed by an electronic device, the electronic device is caused to: based on a preset dimming parameter sequence, obtain the current sequence corresponding to each light source channel in the light source controller to be tested; according to a preset current range and the total number of preset current levels, obtain the standard current value corresponding to each current level; for each current sequence, among the currents in the current sequence, determine the target current value corresponding to each standard current value, and based on the target current values, sort the dimming parameters in the dimming parameter sequence to obtain the target dimming parameter sequence corresponding to each light source channel; calculate the current difference value between each standard current value and each target current value, and when each current difference value belongs to a preset difference range, store the target dimming parameter sequences into the storage spaces corresponding to each light source channel respectively.
[0124] Computer program code for performing the operations of this application can be written in one or more programming languages or combinations thereof. The above-mentioned programming languages include object-oriented programming languages such as Java, Smalltalk, C++, and also include conventional procedural programming languages such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, executed as an independent software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (for example, by connecting through the Internet using an Internet service provider).
[0125] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architectures, functions, and operations of systems, methods, and computer program products according to various embodiments of this application. In this regard, each block in the flowchart or block diagram can represent a module, a program segment, or a part of the code, and this module, program segment, or part of the code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks can occur in a different order from that marked in the accompanying drawings. For example, two consecutively represented blocks can actually be executed substantially in parallel, and they can sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each block in the block diagram and / or flowchart, and the combination of blocks in the block diagram and / or flowchart, can be implemented by a dedicated hardware-based system for performing the specified functions or operations, or can be implemented by a combination of dedicated hardware and computer instructions.
[0126] The modules involved in the embodiments described in this application can be implemented in software or in hardware. Among them, the name of the module does not constitute a limitation on the unit itself in some cases.
[0127] The readable storage medium provided in this application is a computer-readable storage medium. The computer-readable storage medium stores computer-readable program instructions (i.e., computer programs) for performing the above-mentioned multi-channel light source controller calibration method, and can solve the technical problem of how to improve the consistency of light source control for the light source controllers produced in the past. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in this application are the same as those of the multi-channel light source controller calibration method provided in the above embodiments, and will not be elaborated here.
[0128] The above are only some embodiments of the present application, and thus do not limit the patent scope of the present application. Any equivalent structural transformation made under the technical concept of the present application by using the content of the specification and drawings of the present application, or any direct / indirect application in other related technical fields, is included in the patent protection scope of the present application.
Claims
1. A calibration method for a multi-channel light source controller, characterized in that, The calibration method for the multi-channel light source controller includes: Based on a preset dimming parameter sequence, obtain the current sequence corresponding to each light source channel in the light source controller to be tested; According to a preset current range and the total number of preset current levels, obtain the standard current value corresponding to each current level; For each current sequence, among the currents in the current sequence, determine the target current value corresponding to each standard current value, and based on each target current value, sort each dimming parameter in the dimming parameter sequence to obtain the target dimming parameter sequence corresponding to each light source channel; Calculate the current difference value between each standard current value and each target current value, and when each current difference value belongs to a preset difference range, store each target dimming parameter sequence into the storage space corresponding to each light source channel respectively.
2. The multi-channel light source controller calibration method according to claim 1, wherein The step of determining the target current value corresponding to each standard current value among the currents in the current sequence includes: For each standard current value, calculate the current difference between each current in the current sequence and the standard current value respectively, and use the current value corresponding to the minimum value among the current differences as the target current value corresponding to the standard current value.
3. The multi-channel light source controller calibration method according to claim 1, wherein The calibration method for the multi-channel light source controller further includes: Detect whether the target current values corresponding to each standard current value are repeated; When the target current values corresponding to each standard current value are repeated, increase the total number of current levels, and return to execute the step of obtaining the standard current value corresponding to each current level according to the preset current range and the total number of preset current levels; When the target current values corresponding to each standard current value are not repeated, execute the step of sorting each dimming parameter in the dimming parameter sequence based on each target current value to obtain the target dimming parameter sequence corresponding to each light source channel.
4. The calibration method of the multi-channel light source controller according to claim 1, wherein, The step of sorting each dimming parameter in the dimming parameter sequence based on each target current value to obtain the target dimming parameter sequence corresponding to each light source channel includes: Based on the first correspondence between each target current value and each standard current value, and the second correspondence between each target current value and each dimming parameter in the dimming parameter sequence, obtain the target correspondence between each standard current value and each dimming parameter; Sort each standard current value in a preset order, and based on the sorted order of each standard current value and the target correspondence, sort each dimming parameter to obtain the target dimming parameter sequence corresponding to each light source channel.
5. The multi-channel light source controller calibration method according to claim 1, wherein After the step of calculating the current difference value between each standard current value and each target current value, the method further includes: When it is detected that there is a current difference value that does not belong to the difference range, determine that the light source controller to be tested is unqualified.
6. The calibration method of the multi-channel light source controller according to claim 1, characterized in that, The step of obtaining the standard current value corresponding to each current level according to the preset current range and the total number of preset current levels includes: Calculate the ratio between a preset current range and the total number of preset current levels, and use the ratio as the unit current value; Multiply the sequence number of each current level in the total number of current levels by the unit current value to obtain the standard current value corresponding to each current level.
7. The multi-channel light source controller calibration method according to claim 6, characterized in that, The method further includes: Detect whether the ratio belongs to a preset unit value range; When the ratio belongs to the unit value range, perform the step of using the ratio as the unit current value.
8. A multi-channel light source controller calibration device, characterized in that, The multi-channel light source controller calibration device includes: A load light source; A light source controller to be measured; A multimeter connected to the load light source; A relay switching control board, which includes a single-chip microcomputer, a first relay group and a second relay group. The single-chip microcomputer is connected to the first relay group and the second relay group. The first relay group is connected to the light source controller to be measured, and the second relay group is connected to the light source controller to be measured and the multimeter; A main control device connected to the multimeter, the first relay group and the single-chip microcomputer.
9. An electronic device, the electronic device comprising: A memory, a processor, and a computer program stored on the memory and executable on the processor. The computer program is configured to implement the steps of the multi-channel light source controller calibration method according to any one of claims 1 to 7.
10. A storage medium, characterized in that, The storage medium is a computer-readable storage medium. A computer program is stored on the storage medium. When the computer program is executed by a processor, it implements the steps of the multi-channel light source controller calibration method according to any one of claims 1 to 7.