Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terminology used in the embodiments of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the embodiments of the present invention, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
The words "if", as used herein, may be interpreted as "at … …" or "at … …" or "in response to a determination" or "in response to a detection", depending on the context. Similarly, the phrases "if determined" or "if detected (a stated condition or event)" may be interpreted as "when determined" or "in response to a determination" or "when detected (a stated condition or event)" or "in response to a detection (a stated condition or event)", depending on the context.
It is also noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a good or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such good or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a commodity or system that includes the element.
Fig. 1 is a schematic view of an application scenario provided in an embodiment of the present invention. As shown in fig. 1, a plurality of LEDs 20 are provided on a substrate 10, an LED20 is controlled by an LED Driver (Driver)30, and each square on the substrate 10 in the figure represents an LED20 and a rectangle represents the LED Driver 30. For simplicity of illustration, only a portion of the LED driver 30 is shown.
Each LED driver 30 may control one or more LEDs 20, and fig. 1 shows a specific scheme of controlling the LED20 by the LED driver 30 in a form of a dashed-line frame, and for each LED driver 30, it may be connected to four surrounding LEDs 20, that is, four LEDs 20 in the dashed-line frame of the LED driver 30, respectively, and control the brightness of the connected four LEDs 20.
In the present embodiment, the plurality of LED drivers 30 may be in a Cascade (Cascade) state. Alternatively, the LED drivers 30 are cascaded, which means that the LED drivers 30 are connected in series, and the output pin of the previous LED driver 30 is connected to the input pin of the next LED driver 30.
The signal sent by the Controller (Controller)40 can be sequentially transmitted between the LED drivers 30, and each LED driver 30 controls the brightness of the corresponding LED20 according to the received signal, thereby implementing the brightness control in the cascade state.
Fig. 2 is a schematic structural diagram of an LED driving system according to an embodiment of the present invention. As shown in fig. 2, the LED driving system may include a plurality of cascaded LED drivers. The plurality of cascaded LED drivers may include LED driver A, LED driver B and LED driver C, and so on. Each LED driver may control four zones of LEDs, each zone may be provided with one or more LEDs.
Specifically, the LED driver a may control the LEDs of the 1 st, 2 nd, 3 rd and 4 th regions; the LED driver B may control the LEDs of the 5 th, 6 th, 7 th and 8 th regions; the LED driver C may control the LEDs of the 9 th, 10 th, 11 th and 12 th regions.
In the normal operation mode, the controller sends a control signal to the first LED driver, i.e. LED driver a, where the control signal may include signals for each LED driver, for example, signals for driving the LEDs in the 1 st, 2 nd, 3 th and 4 th areas, signals for driving the LEDs in the 5 th, 6 th, 7 th and 8 th areas, and signals for driving the LEDs in the 9 th, 10 th, 11 th and 12 th areas. These signals are backlight luminance signals. The signals to the different LED drivers are arranged in sequence.
Each LED driver may include an input pin DI and an output pin DO, the DI of each LED driver being connected to the controller or the DO of a previous LED driver, and may receive a signal from the controller or the DO of a previous LED driver, and the DO of each LED driver being connected to the DI of a subsequent LED driver (if any), and may send a signal to the DI of a subsequent LED driver.
For LED driver a, the controller may send a signal for controlling the LEDs in the 1 st, 2 nd, 3 th, and 4 th zones to the DI of LED driver a, and after receiving the signal, LED driver a may control the LEDs in the 1 st, 2 nd, 3 th, and 4 th zones according to the signal.
For the LED driver B, the controller may send the signal for controlling the LEDs in the 5 th, 6 th, 7 th, and 8 th areas to the LED driver B through the LED driver a, that is, the signal reaches the DI of the LED driver B after passing through the DI of the LED driver a and the DO of the LED driver a, and after receiving the signal, the LED driver B may control the LEDs in the 5 th, 6 th, 7 th, and 8 th areas according to the signal.
For LED driver C, the controller may send a signal for controlling the LEDs in the 9 th, 10 th, 11 th, and 12 th areas to LED driver C through LED driver A, LED, i.e., the signal passes through DI of LED driver a, DO of LED driver a, DI of LED driver B, and DO of LED driver B and reaches DI of LED driver C, and after receiving the signal, LED driver C may control the LEDs in the 9 th, 10 th, 11 th, and 12 th areas according to the signal.
In the implementation shown in fig. 2, the LED drivers may be connected to each other through a single signal line, and both address and data may be transmitted through the single signal line.
In order to improve the performance of the LED driving system, the LED driving system may be tested before the factory or at any other time to determine whether the LED driver in the LED driving system has a fault.
In a cascade state, when an LED driving system is tested, data firstly enters DI of an LED driver A, then is output through DO of the LED driver A, then is transmitted to DI of the LED driver B, and is transmitted to DI of the LED driver C through DO of the LED driver B, and so on, DO of the LED driver C can transmit the data to the next LED driver again until all the LED drivers acquire the data in sequence.
In this test mode, if one LED driver fails, it is impossible to test other LED drivers located behind the failed LED driver. For example, if LED driver a fails, LED driver B and the LED drivers behind LED driver B cannot be tested.
When a failed LED driver is encountered, in order to continue testing the remaining LED drivers, the failed LED driver needs to be repaired before the testing can be continued.
For example, in the event of a failure of LED driver a, LED driver a needs to be repaired first before LED driver B can continue to be tested. If LED driver B is the one that fails, LED driver B needs to be repaired before LED driver C can be tested.
This test method requires more test time and test resources (human and material costs), resulting in lower test efficiency and higher test cost.
Fig. 3 is a schematic structural diagram of another LED driving system according to an embodiment of the present invention. Similar to the previous figures, LED driver a may control LEDs of regions 1, 2, 3, 4, and LED driver B may control LEDs of regions 5, 6, 7, 8; the LED driver C may control the LEDs of the 9 th, 10 th, 11 th, and 12 th regions.
Referring to fig. 3, address and data can be transmitted between the LED drivers through address lines and data lines, respectively. Specifically, the cascaded plurality of LED drivers may use a Daisy Chain (Daisy Chain) configuration: the address is transmitted from one LED driver to another LED driver through the input pin DI to the output pin DO, and the data is simultaneously transmitted to all the LED drivers through the data line.
When the LED driving system is tested, whether a data pin, a power supply pin and a pin connected with an LED of the LED driver have faults or not can be tested through the data line, but whether DI and DO have faults or not cannot be checked. Testing DI and DO still takes a lot of manpower, material resources, and time.
In view of this, embodiments of the present invention provide an LED driving test method, when performing a test, each LED driver simultaneously sends first preset data to a DI of a next LED driver through a DO, and after receiving the first preset data sent by the DO of a previous LED driver, the DI of each LED driver may feed back second preset data to the DO of the previous LED driver, and each LED driver may control brightness of a corresponding LED according to data received from the DO of the previous LED driver and the DI of the next LED driver, so that data may be spontaneously and simultaneously transmitted to the next LED driver and data fed back by the next LED driver may be received, thereby implementing a simultaneous test of multiple LED drivers, and it is not necessary to test the next LED driver after the previous LED driver is repaired, thereby effectively improving test efficiency and reducing test cost.
The technical solutions of the embodiments of the present invention will be described below with reference to the accompanying drawings. These particular embodiments may be combined with each other below, and details of the same or similar concepts or processes may not be repeated in some embodiments.
Fig. 4 is a schematic flow chart of an LED driving test method according to an embodiment of the present invention. The execution subject of the method in the embodiment can be any LED driver in the LED driving system. The LED driving system may include a plurality of LED drivers, and the plurality of LED drivers are connected in a cascade manner, that is, the plurality of LED drivers are connected in sequence, an input pin of each LED driver is connected to the controller or an output pin of a previous LED driver, and an output pin of each LED driver is connected to an input pin of a subsequent LED driver (if any). As shown in fig. 4, the method may include:
step 401, after entering the test mode, sending first preset data to an input pin of a next LED driver through an output pin.
Optionally, for example, taking the execution main body as a first LED driver in the LED driving system, after entering the test mode, an output pin of the first LED driver is connected to an input pin of a subsequent LED driver, and the first preset data may be sent to the input pin of the subsequent LED driver through the output pin.
In addition, after entering the test mode, the controller may further send first preset data to the LED driver directly connected to the controller, so as to ensure that the LED driver directly connected to the controller can also receive the first preset data.
Optionally, the first preset data may be sent immediately after entering the test mode, or the first preset data may be sent after a certain period of time elapses after entering the test mode, which is not limited in this embodiment.
In this embodiment, the test mode may refer to a mode for testing the driving system, and is different from the normal operating mode. Generally, the test mode is mostly used before factory shipment, and the normal operation mode is mostly used after factory shipment.
Step 402, after first preset data is acquired from an output pin of a controller or a previous LED driver through an input pin, second preset data is sent to the output pin of the controller or the previous LED driver through the input pin.
Optionally, when the input pin of the first LED driver is directly connected to the controller, the input pin of the first LED driver obtains first preset data from the controller, and when the input pin of the first LED driver is directly connected to the previous LED driver, the input pin of the first LED driver obtains first preset data from the output pin of the previous LED driver.
Correspondingly, if the input pin of the first LED driver acquires first preset data from the controller, second preset data may be sent to the controller through the input pin; or, after the input pin of the first LED driver obtains the first preset data from the output pin of the previous LED driver, the first LED driver sends the second preset data to the output pin of the previous LED driver through its own input pin.
And step 403, controlling the brightness of the corresponding LED according to the data acquired by the input pin and the output pin.
Optionally, after the input pin acquires the data, the first LED driver may control the corresponding LED according to the data acquired by the input pin, and after the output pin acquires the data, the first LED driver may control the corresponding LED according to the data acquired by the output pin. Or after the input pin and the output pin both acquire data, controlling the corresponding LED according to the acquired data.
The LED corresponding to the LED driver may refer to an LED connected to the LED driver and controlled by the LED driver. There may be one or more of the corresponding LEDs.
Fig. 5 is a schematic diagram illustrating a principle of a method for testing LED driving according to an embodiment of the present invention. As shown in fig. 5, in the LED driving system, a plurality of LED drivers are cascaded, and the plurality of LED drivers may include an LED driver A, LED, a driver B, a driver C, and the like. The controller, LED driver A, LED, driver B, and LED driver C are connected in series, each LED driver including an input pin DI and an output pin DO. The DI of LED driver a is connected to the controller and the DI of LED drivers B and C are connected to the DO of LED drivers a and B, respectively, which can be connected in a similar manner if there are other LED drivers behind LED driver C.
Similar to the previous figures, LED driver a may control LEDs of regions 1, 2, 3, 4, and LED driver B may control LEDs of regions 5, 6, 7, 8; the LED driver C may control the LEDs of the 9 th, 10 th, 11 th, and 12 th regions.
Bi-directional communication is provided between any two adjacent LED drivers, and the DI of each LED driver can send data to the DO of the next LED driver (if any), and the DO of each LED driver can also send data to the DI or controller of the previous LED driver.
Alternatively, a single signal line may be used for communication between any two adjacent LED drivers. Data may be sent from the DO of the previous LED driver to the DI of the next LED driver, and then from the DO of the previous LED driver to the DI of the next LED driver.
Two dotted lines in fig. 5 are used to indicate DI of the LED driver C and DO of the LED driver B, where the DO of the LED driver B sends first preset data to the DI of the LED driver C first, and the DI of the LED driver C feeds back second preset data to the DO of the LED driver B after acquiring the first preset data. The first preset data and the second preset data may be designed according to actual needs, and may be 10101010 and 11001100, respectively, for example.
Each LED driver may control the brightness of the LED according to the data acquired by the DI and the DO, for example, if both the DI and the DO acquire correct data, that is, the DI acquires first preset data, and the DO acquires second preset data, the LED may be controlled to flash according to a predetermined mode. And if the DI or DO does not acquire correct data, controlling the LED not to be on so that a tester can intuitively see whether the LED driver works normally.
In practical application, each LED driver in the LED driving system may have the above-mentioned function, and the above-mentioned method flow is executed, so that each LED driver may perform bidirectional data interaction with an adjacent LED driver in a test mode and control a corresponding LED according to the obtained data, and when a tester finds that an LED corresponding to a certain LED driver does not blink according to a predetermined mode, it indicates that the LED driver or the adjacent LED driver may have a fault, so that all LED drivers that may have faults may be found in time among a plurality of LED drivers, and the test efficiency is improved.
Of course, in the LED driving system, a part of the LEDs may have the above-mentioned functions to execute the above-mentioned method flow, and another part of the LEDs do not have the above-mentioned functions, so that the LED driver having the above-mentioned functions and the adjacent LED drivers thereof can be tested as soon as possible to determine whether there is a possible failure, and other LED drivers may be tested by using other schemes, thereby also improving the testing efficiency to a certain extent.
According to the LED drive test method provided by the embodiment, after the LED driver enters the test mode, the LED driver can send first preset data to the input pin of the next LED driver through the output pin, after the first preset data is obtained from the output pin of the controller or the previous LED driver through the input pin, second preset data is sent to the output pin of the controller or the previous LED driver through the input pin, and the brightness of the corresponding LED is controlled according to the data obtained by the input pin and the output pin, so that data can be spontaneously transmitted to the next LED driver and data fed back by the next LED driver can be received, simultaneous test of a plurality of LED drivers is realized, the previous LED driver with a fault is not required to be repaired, the test efficiency is effectively improved, and the test cost is reduced.
On the basis of the technical solution provided in the above embodiment, optionally, if the control signal is received within a first preset time after power-on, the LED enters a normal operating mode, and sends the control signal to a subsequent LED driver; and if the control signal is not received within the first preset time after the power-on, entering a test mode.
The first preset time may be set according to actual needs, and may be 5 seconds, for example. By waiting for the first preset time after power-on and determining whether to enter the test mode according to whether the control signal is received within the first preset time, the current working state can be judged quickly and accurately, and the stability of entering the test mode is improved.
Alternatively, the decision as to whether to enter the normal operating mode may be made by controlling a signal input to the controller. The controller may be configured to: if a first signal for indicating normal work is acquired after power-on, entering a normal work mode according to the first signal, and sending a control signal to the first LED driver after entering the normal work mode; if a second signal for indicating to test is acquired after the LED driver is powered on, entering a test mode according to the second signal, avoiding sending a control signal to the first LED driver within a first preset time after the LED driver enters the test mode, and sending first preset data to the first LED driver after the first preset time.
Alternatively, the first signal and the second signal may be input signals of a certain port of the controller. Taking the first signal and the second signal as an example, where the first signal and the second signal are respectively at a high level and a low level, before leaving a factory, the port is at the low level after being powered on, the controller enters a test mode when detecting that the port is at the low level, and the level of the port can be adjusted when leaving the factory, so that after leaving the factory, the port is at the high level after being powered on, and the controller enters a normal operating mode when detecting that the port is at the high level.
Of course, the determination of whether to enter the test mode may be made in other ways, for example, the first signal and the second signal may be input to the controller by a user, or the determination of whether to enter the test mode after power-on may be made by changing the configuration in the controller.
After entering the normal operating mode, the controller may send a control signal to a first LED driver connected thereto within a first preset time (e.g., immediately), and when the first LED driver acquires the control signal within the first preset time, the controller enters the normal operating mode and sends the control signal to a subsequent LED driver, so that each LED driver sequentially enters the normal operating mode.
If the controller enters a test mode, the controller avoids sending a control signal to the first LED driver within a first preset time, and sends first preset data to the first LED driver after the first preset time. Therefore, each LED driver does not receive data within the first preset time after being electrified, the LED driver directly enters a test mode, and the input pin of the first LED driver can also acquire the first preset data, so that the smooth proceeding of the test process is ensured.
On the basis of the technical solutions provided by the above embodiments, optionally, any one of the LED drivers is used to control a plurality of LEDs.
Correspondingly, controlling the brightness of the corresponding LED according to the data acquired by the input pin and the output pin comprises the following steps: if the first preset data is acquired through the input pin, controlling part of the corresponding LEDs to work according to a first brightness mode; and/or if the second preset data is acquired through the output pin, controlling other LEDs in the corresponding plurality of LEDs to work according to a second brightness mode. This is explained below by means of an embodiment shown in fig. 6.
Fig. 6 is a schematic flow chart of another LED driving test method according to an embodiment of the present invention. In this embodiment, based on the technical solutions provided in the foregoing embodiments, a scheme is provided for controlling different LEDs by using data acquired through an input pin and an output pin. As shown in fig. 6, the method includes:
step 601, after entering the test mode, sending first preset data to an input pin of a next LED driver through an output pin.
In this embodiment, the specific implementation manner of step 601 is similar to that of the previous embodiment, and is not described here again.
Step 602, after first preset data is acquired from an output pin of a controller or a previous LED driver through an input pin, controlling a part of LEDs in the corresponding plurality of LEDs to operate according to a first brightness mode, and sending second preset data to the output pin of the controller or the previous LED driver through the input pin.
Step 603, after the second preset data is obtained through the output pin, controlling other corresponding LEDs in the plurality of LEDs to work according to a second brightness mode.
Optionally, the partial LEDs may be LEDs whose distance from the input pin is smaller than that from the output pin; the other LEDs may be LEDs that are located at a greater distance from the input pins than the output pins. That is, for any LED, if the distance between the LED and the input pin is smaller than the distance between the LED and the output pin, the LED may be the LED corresponding to the input pin and controlled by the data acquired by the input pin; if the distance between the LED and the input pin is greater than the distance between the LED and the output pin, the LED can be the LED corresponding to the output pin and is controlled by the data acquired by the output pin. Therefore, the data acquired by each pin can be used for controlling the LED which is close to the pin, so that the tester can conveniently check the data, and the pin which is in the wrong position can be timely positioned.
Referring to fig. 5, one LED driver may control a plurality of LEDs, and the input pin DI and the output pin DO may correspond to LEDs of different regions. For each LED driver in the figure, DI of the LED driver may correspond to two zones of LEDs located below the LED driver that are proximate thereto, and DO may correspond to two zones of LEDs located above the LED driver that are proximate thereto.
Specifically, DI of the LED driver a corresponds to the LEDs in the 1 st and 2 nd areas, and DO corresponds to the LEDs in the 3 rd and 4 th areas; DI of the LED driver B corresponds to the LEDs of 5 th and 6 th areas, and DO corresponds to the LEDs of 7 th and 8 th areas; DI of the LED driver C corresponds to the LEDs of the 9 th and 10 th areas, and DO corresponds to the LEDs of the 11 th and 12 th areas.
If the DI receives the first preset data, the LED driver can control the LED corresponding to the DI to work according to a first brightness mode; if the DO receives the second preset data, the LED driver may control the LED corresponding to the DO to operate according to the second brightness mode. If the DI and/or DO not receive the preset data, the LED driver may control the corresponding LED to operate in other modes.
Optionally, the first brightness mode is to control the LED to flash at a first preset frequency and a first preset brightness; the second brightness mode is to control the LED to flash at a second preset frequency and a second preset brightness. Other modes may be to control the LEDs not to be lit.
The first luminance pattern and the second luminance pattern may be the same or different. For example, the first brightness mode may be brightness blinking at a frequency of 1Hz, 128, and the second brightness mode may be brightness blinking at a frequency of 2Hz, 256.
When all the LED drivers are normal, after the power is turned on, all the LED drivers wait for a period of time, and then enter the test mode, the controller and the LED driver A, B, C simultaneously output the first preset data 10101010 through their own DO, and after the DI of the LED driver A, B, C receives the first preset data, the corresponding LEDs are simultaneously controlled to operate in the first brightness mode, that is, the LEDs in the 1 st, 2 nd, 5 th, 6 th, 9 th, and 10 th areas all operate in the first brightness mode.
Then, the LED driver A, B, C outputs the second preset data 11001100 through the DI at the same time, and after the DO of the LED driver A, B receives the second preset data, the corresponding LEDs are controlled to operate in the second brightness mode at the same time, that is, the LEDs in the 3 rd, 4 th, 7 th and 8 th regions all operate in the second brightness mode.
Optionally, when the LEDs in the 3 rd, 4 th, 7 th and 8 th regions operate according to the second brightness mode, the LEDs in the 1 st, 2 nd, 5 th, 6 th, 9 th and 10 th regions, which have been operated according to the first brightness mode, do not need to be turned off, and the LEDs can still maintain the operating state according to the first brightness mode, so that the LEDs can be conveniently checked by a tester.
Through the analysis, under the condition that all the LED drivers are normal, after the LED drivers enter the test mode, the LEDs corresponding to the DI of all the LED drivers flicker in the first brightness mode, and then the LEDs corresponding to the DO flicker in the second brightness mode, so that a tester can determine whether all the LED drivers in the LED driving system are normal or not only by checking the flicker modes of all the LEDs.
When some of the LED drivers are abnormal, the associated LEDs do not operate in a predetermined mode. For example, the DO of LED driver B fails, then the LEDs in zones 7, 8, 9, 10 are not lit after entering the test mode, or are lit in other modes. Thus, the situation that the LED is lighted can determine which places are possibly in which problems occur.
According to the LED drive test method provided by the embodiment, when the first preset data is acquired through the input pin, part of the corresponding LEDs in the plurality of LEDs can be controlled to work according to the first brightness mode, and when the second preset data is acquired through the output pin, other LEDs in the corresponding plurality of LEDs can be controlled to work according to the second brightness mode, so that a worker can conveniently check whether the input channel or the output channel of the LED driver has a problem, the fault is more accurately positioned, and the test efficiency is further improved.
The specific test flow is described above by taking fig. 5 as an example, and on this basis, a person skilled in the art can set different brightness modes according to actual needs. For example, for any LED driver, when the DI receives the first preset data, all the LEDs corresponding to the LED driver may be controlled to operate according to the first brightness mode, and when the DO receives the second preset data, all the LEDs corresponding to the LED driver may be controlled to operate according to the second brightness mode. Furthermore, the number and location of LED zones, e.g. more than four zones of LEDs, may also be adjusted.
On the basis of the technical solution provided by the foregoing embodiment, optionally, after entering the test mode, sending the first preset data to the input pin of the subsequent LED driver through the output pin may include: after entering the test mode, controlling the corresponding LED to work according to a third brightness mode; and after the second preset time, sending first preset data to an input pin of a next LED driver through the output pin.
Specifically, the third brightness mode may be set according to actual needs, for example, the third brightness mode may be normally bright according to a brightness of 256. After entering the test mode, all the LEDs corresponding to the LED driver may be controlled to be turned on, and kept normally on without flashing, and then after a second preset time, for example, 10 seconds, the process in the foregoing embodiment may be executed to start sending first preset data to a next LED driver, so that the corresponding LED flashes in a certain mode.
Thus, if the LED driver can normally control the LEDs, but the input pin or the output pin has a problem, after entering the test mode, the corresponding LED will appear fully bright according to the third brightness mode, but after the second preset time, the LED cannot blink according to the first brightness mode and the second brightness mode; if the LED driver is completely damaged, the corresponding LED is not lighted after the LED driver enters the test mode, so that different faults can be distinguished, and the test efficiency is improved.
Optionally, after the second preset data is sent to the controller or the output pin of the previous LED driver through the input pin, sending the first preset data to the input pin of the next LED driver through the output pin may be executed again.
Correspondingly, after preset data are acquired through the input pin or the output pin, the corresponding LED can be controlled to be on for a period of time in a certain mode, and the LED is turned off after a period of time. When preset data is received through the input pin or the output pin again, the corresponding LED can be controlled to be lightened again, so that the LED driver is tested through multiple times of cyclic processing, and the stability of the LED driver is ensured.
Fig. 7 is a schematic structural diagram of an LED driving test apparatus according to an embodiment of the present invention. The apparatus may be applied to any of a plurality of LED drivers in a cascade. As shown in fig. 7, the apparatus includes:
the first sending module 701 is configured to send first preset data to an input pin of a subsequent LED driver through an output pin after entering the test mode;
a second sending module 702, configured to send second preset data to an output pin of a controller or a previous LED driver through an input pin after obtaining first preset data from the output pin of the controller or the previous LED driver through the input pin;
the control module 703 is configured to control the brightness of the corresponding LED according to the data obtained by the input pin and the output pin.
Optionally, the first sending module 701 is further configured to:
if the control signal is received within the first preset time after power-on, entering a normal working mode and sending the control signal to a next LED driver;
and if the control signal is not received within the first preset time after the power-on, entering a test mode.
Optionally, any one of the plurality of LED drivers is configured to control a plurality of LEDs;
correspondingly, the control module 703 is specifically configured to:
if the first preset data is acquired through the input pin, controlling part of the corresponding LEDs to work according to a first brightness mode; and/or the presence of a gas in the gas,
and if the second preset data is acquired through the output pin, controlling other LEDs in the corresponding plurality of LEDs to work according to a second brightness mode.
Optionally, the partial LEDs are LEDs whose distance from the input pin is smaller than that from the output pin; the other LEDs are LEDs with the distance from the input pin larger than the distance from the output pin;
the first brightness mode is to control the LED to flash at a first preset frequency and a first preset brightness; the second brightness mode is to control the LED to flash at a second preset frequency and a second preset brightness.
Optionally, the first sending module 701 is specifically configured to:
after entering the test mode, controlling the corresponding LED to work according to a third brightness mode;
and after the second preset time, sending first preset data to an input pin of a next LED driver through the output pin.
Optionally, the second sending module 702 is further configured to:
and after the second preset data is sent to the controller or the output pin of the previous LED driver through the input pin, the first preset data is sent to the input pin of the next LED driver through the output pin again.
The LED driving test apparatus provided in this embodiment can send first preset data to an input pin of a subsequent LED driver through the output pin after entering a test mode, and after obtaining the first preset data from an output pin of a controller or a previous LED driver through the input pin, send second preset data to an output pin of the controller or the previous LED driver through the input pin, and control the brightness of a corresponding LED according to the data obtained by the input pin and the output pin, so that data can be spontaneously transmitted to the subsequent LED driver and data fed back by the subsequent LED driver is received, thereby implementing simultaneous testing of a plurality of LED drivers, without waiting for a previous LED driver with a fault to be repaired, effectively improving the efficiency of testing, and reducing the cost of testing.
Fig. 8 is a schematic structural diagram of an LED driver according to an embodiment of the present invention. As shown in fig. 8, the LED driver may include: at least one processor 801 and memory 802;
the memory 802 stores computer-executable instructions;
the at least one processor 801 executes computer-executable instructions stored by the memory 802 to cause the at least one processor 801 to perform a method as in any of the embodiments described above.
On this basis, the input pins and the input pins of the LED driver may be pins of the processor 801, or may be other pins connected with the processor 801.
For a specific implementation principle and beneficial effects of the LED driver provided by this embodiment, reference may be made to the above embodiments, which are not described herein again.
An embodiment of the present invention further provides an LED driving system, including: a controller and a plurality of cascaded LED drivers, wherein the LED driver is the LED driver according to any of the embodiments described above;
the controller is connected with a first LED driver in the plurality of cascaded LED drivers and used for sending first preset data to the first LED driver in a test mode.
Optionally, the controller is specifically configured to: if a first signal for indicating normal work is acquired after power-on, entering a normal work mode according to the first signal, and sending a control signal to the first LED driver after entering the normal work mode; and if a second signal for indicating to test is acquired after the power-on, entering a test mode according to the second signal, and sending first preset data to the first LED driver after a first preset time.
For a specific implementation principle and beneficial effects of the LED driving system provided by this embodiment, reference may be made to the above embodiments, which are not described herein again.
The embodiment of the invention also provides electronic equipment which comprises the LED driving system and the liquid crystal panel. The LED driving system is used for providing backlight for the liquid crystal panel.
Optionally, the electronic device may be any device provided with an LED, such as a liquid crystal television, and the embodiment of the present invention is not limited thereto.
The structure, function, connection relationship, specific implementation principle, process, and effect of each component in the electronic device provided in this embodiment may be referred to in the foregoing embodiments, and are not described herein again.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described device embodiments are merely illustrative, and for example, the division of the modules is only one logical division, and other divisions may be realized in practice, for example, a plurality of modules may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or modules, and may be in an electrical, mechanical or other form.
The modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to implement the solution of the present embodiment.
In addition, functional modules in the embodiments of the present invention may be integrated into one processing unit, or each module may exist alone physically, or two or more modules are integrated into one unit. The unit formed by the modules can be realized in a hardware form, and can also be realized in a form of hardware and a software functional unit.
The integrated module implemented in the form of a software functional module may be stored in a computer-readable storage medium. The software functional module is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) or a processor to execute some steps of the methods according to the embodiments of the present invention.
It should be understood that the Processor may be a Central Processing Unit (CPU), other general purpose Processor, a DIgital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with the present invention may be embodied directly in a hardware processor, or in a combination of the hardware and software modules within the processor.
The memory may comprise a high-speed RAM memory, and may further comprise a non-volatile storage NVM, such as at least one disk memory, and may also be a usb disk, a removable hard disk, a read-only memory, a magnetic or optical disk, etc.
The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended ISA (Extended Industry Standard Architecture) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, the buses in the figures of the present invention are not limited to only one bus or one type of bus.
The storage medium may be implemented by any type or combination of volatile or non-volatile memory devices, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks. A storage media may be any available media that can be accessed by a general purpose or special purpose computer.
An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium. Of course, the storage medium may also be integral to the processor. The processor and the storage medium may reside in an Application Specific Integrated Circuits (ASIC). Of course, the processor and the storage medium may reside as discrete components in an electronic device or host device.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.