Bidirectional communication method based on single line, optical driving circuit and related equipment
By adopting a single-line bidirectional communication method and preset level signal encoding in the optical drive circuit, the problem of low efficiency of the optical drive circuit in fault judgment and data transmission is solved, and more efficient operation and lower power consumption are achieved.
Patent Information
- Application Number
- CN202510128227.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-05
- Publication Date
- 2025-03-07
- Estimated Expiration
- 2045-02-05
AI Technical Summary
When the existing optical driving circuit determines that the light source control chip is faulty, it needs to frequently send readback instructions and wait for readback data, resulting in low working efficiency and the continuous operation of the clock signal increases power consumption.
Using a single-line bidirectional communication method, bidirectional communication is realized on a single data line through preset level signal encoding, reducing the use of clock ports and clock lines. The light source control chip can actively send fault information to the controller, avoiding reading back instructions and waiting processes.
It improves the working efficiency of the optical drive circuit, reduces power consumption, and reduces electromagnetic interference, achieving more efficient fault handling and data transmission.
Smart Images

Figure CN119580657A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the display field, and in particular to a single-line bidirectional communication method, an optical drive circuit and related equipment. Background Art
[0002] The backlight module includes a controller, multiple light source control chips and multiple light sources. Each light source control chip can control one or more light sources, and the controller controls multiple light source control chips.
[0003] The controller will send a readback instruction to each light source control chip at regular intervals to obtain the readback data fed back by each light source control chip and determine whether each light source control chip is faulty.
[0004] In fact, the probability of equipment failure is low, and sending readback instructions and waiting for readback takes a lot of time, affecting the overall work efficiency. In addition, while waiting for data to be read back, each light source control chip needs to control the data transmission through the clock provided by the controller, and the continuous operation of the clock will generate a large power consumption. Summary of the invention
[0005] In view of this, the present application aims to improve a single-line bidirectional communication method, an optical driving circuit and related equipment to improve the working efficiency of the optical driving circuit and reduce power consumption.
[0006] In the first aspect, an embodiment of the present application provides a single-line bidirectional communication method, which is applied to a current control device, wherein the current control device is any control device in a light driving circuit, wherein the control device in the light driving circuit includes a controller and a light source control chip, and each of the control devices is connected in series via a single data line; the controller and the last light source control chip receive and send data via the data line; except for the controller and the last light source control chip, any control device is allowed to send data to adjacent control devices in a first direction and adjacent control devices in a second direction via the data line, and receive data sent by adjacent control devices in the first direction and adjacent control devices in the second direction via the data line; the single-line bidirectional communication method includes: during data transmission, transmitting the data to the target device based on a preset level signal encoding, wherein the preset level signal encoding represents a value in the data based on a preset period, and different level signals within the preset period represent different values; the target device is any control device in the light driving circuit other than the current control device.
[0007] In the embodiment of the present application, each control device in the optical drive circuit is connected in series communication through a data line, and there is no need to set a clock port. Therefore, for each control device, only a pair of ports need to be set for data input and output, thereby effectively reducing the number of communication ports and reducing the layout complexity and implementation difficulty of the optical drive circuit. Further, since there is no need to set a clock port or a clock line, the complexity of wiring is also reduced. Between any control device of the optical drive circuit and the adjacent control device, each control device can respond to the demand for data transmission and actively send data as a data sending device. Therefore, in the event of a fault, the light source control chip can actively send fault information to the controller, and the controller does not need to send a readback instruction to each light source control chip, and does not need to wait for each light source control chip to read back, thereby improving the overall working efficiency of the optical drive circuit. Among them, except for the controller and the last light source control chip, each control device can transmit data to the previous control device or the next control device, and receive data sent by the previous control device or the next control device, so as to realize two-way data transmission. Due to the bidirectional transmission, the last light source control chip of the light driving circuit does not need to connect the output end back to the controller. Therefore, the controller and the last light source control chip only need to set one port, which can further reduce the number of communication ports used on the controller side. In addition, the preset level signal encoding is used for data transmission. This method does not require the use of a clock signal, so that the light driving circuit can achieve bidirectional communication based on a single data line, while effectively reducing the power consumption of the clock and reducing the electromagnetic interference that may be caused by the clock.
[0008] In one embodiment, the preset period is preconfigured, and all the control devices in the light driving circuit are configured to use the same preset period.
[0009] In the embodiment of the present application, by configuring each control device with the same preset period, data can be accurately transmitted between the control devices, thereby improving the accuracy of data transmission.
[0010] In one embodiment, before transmitting the data to the target device based on the preset level signal encoding, the method also includes: sending a third pulse signal for agreeing on the preset period to the target device, so that the target device receives the data sent by the current control device based on the preset period configured in the third pulse signal.
[0011] In an embodiment of the present application, before each data transmission, the current control device sends a third pulse signal to the target device to agree on a preset period. Thus, for some data of higher importance, a longer preset period can be configured for transmission, while for data of lower importance and larger quantity, a shorter preset period can be agreed upon, thereby meeting the accuracy and transmission efficiency requirements of different data.
[0012] In one embodiment, the preset level signal encoding includes: using a pulse signal including a first number of transition edges within one preset period to represent 0; using a pulse signal including a second number of transition edges within one preset period to represent 1.
[0013] In an embodiment of the present application, a pulse signal including different numbers of transition edges within a preset period is used to represent the 0 and 1 of the data. Therefore, there is no need to judge the value of the data by combining a clock signal and high and low levels, so that data transmission can be achieved using a single data line. At the same time, there is no need to combine a clock signal for data transmission, thereby reducing power consumption.
[0014] In one embodiment, before transmitting the data to the target device based on the preset level signal encoding, the method further includes: in response to a demand for the target device to send data, sending a first pulse signal to the target device to notify the target device that the current control device starts transmitting the data to the target device; and / or, after transmitting the data to the target device based on the preset level signal encoding, the method further includes: in response to completion of the data transmission, sending a second pulse signal to the target device to notify the target device that the data transmission is completed.
[0015] During the transmission process, the start or end of data transmission is represented by the first pulse signal or the second pulse signal. This method does not require the use of a clock signal, effectively reduces the power consumption of the clock, and reduces the electromagnetic interference that may be caused by the clock.
[0016] In one embodiment, the first pulse signal is a pulse signal including a third number of transition edges within one of the preset cycles; and the second pulse signal is a pulse signal including a fourth number of transition edges within one of the preset cycles.
[0017] In the embodiment of the present application, the number of transition edges in one cycle is used to indicate the start and end of data transmission, without using a clock signal, thereby reducing clock power consumption.
[0018] In one embodiment, a first pulse signal is sent to the target device to notify the target device that the current control device starts to transmit data to the target device, including: continuously sending a first pulse signal including a fourth number of transition edges in each of the preset cycles to the target device for n consecutive preset cycles to notify the target device that the current control device starts to transmit data to the target device; n is an integer greater than or equal to 1; correspondingly, a second pulse signal is sent to the target device to notify the target device of the end of data transmission, including: continuously sending a pulse signal including a fourth number of transition edges in each of the preset cycles to the target device for m consecutive preset cycles to notify the target device of the end of data transmission; m is an integer greater than or equal to 1, and n and m are not equal.
[0019] In an embodiment of the present application, a pulse signal with a preset period including a third number of transition edges and a pulse signal with a preset period including a fourth number of transition edges are used to distinguish the start and end of data transmission, and the preset number of cycles of the transmission pulse signal is further used to further distinguish the start and end of data transmission, thereby reducing the possibility of data transmission errors and improving the accuracy of single-line two-way communication.
[0020] In one embodiment, before transmitting the data to the target device based on the preset level signal encoding, the method also includes: determining whether the data line interval between the current control device and the adjacent device is idle; the adjacent device is on the path between the current control device and the target device and is adjacent to the current control device; and allowing the demand to send data to the target device when the data line interval between the current control device and the adjacent device is idle.
[0021] In the embodiment of the present application, since the transmission between each control device is bidirectional, there may be a situation where two control devices transmit data to each other at the same time, and there is only one data line, which cannot perform multiple tasks of receiving and sending data at the same time. Therefore, before transmitting data, it is possible to determine whether the data line is idle and whether it can respond to the demand for sending data. If it is idle, it is allowed to send data, thereby effectively reducing the situation of data transmission conflicts. Among them, the data transmission between each adjacent control device pair does not affect each other, so it is only necessary to determine whether the data line section between the current control device and the target device is idle.
[0022] In one embodiment, the determining whether the data line interval between the current control device and the adjacent device is idle includes: upon detecting that the level of the data line interval between the current control device and the adjacent device is always the default value within the preset period, determining that the data line interval between the current control device and the adjacent device is idle.
[0023] The present application uses preset level signal encoding to transmit data, and there is a level change during the transmission process. Therefore, in an embodiment of the present application, it can be determined whether the level is always the default value to determine whether it is idle. If it is always the default value, it indicates that data is being transmitted. Conversely, if there is a change in the level, no data is being transmitted, that is, it is in an idle state. Therefore, it is possible to determine whether the data line is idle even when there is only a single data line.
[0024] In one embodiment, after determining whether the data line interval between the current control device and the adjacent device is idle, the method further includes: if it is determined that the data line interval between the current control device and the adjacent device is not idle, then re-detecting whether the data line interval between the current control device and the adjacent device is idle after waiting for a preset time; until the data line interval between the current control device and the target device is idle, allowing data to be sent to the target device.
[0025] In the embodiment of the present application, when the data line interval is not idle, transmission is performed after waiting for the data line interval to be idle, so that data can be transmitted to the target device, reducing the possibility of data loss.
[0026] In one embodiment, the data includes a first device identifier of a receiving control device; before transmitting the data to the target device based on a preset level signal encoding, the method further includes: detecting the first device identifier in the data; determining whether the first device identifier in the data matches the device identifier of the current control device; if not, sending the data to the target device.
[0027] In the data of the prior art, the controller sends data to each light source control chip, or the light source control chip sends data to the controller. In this method, the data sender and receiver are usually fixed. In the embodiment of the present application, since the data is transmitted in both directions and any control device can be the sender of the data to transmit it to another control device, the sender and receiver of the data are usually uncertain, so they are distinguished by device identification, and the device identification is used to determine whether the data is to be continued to be transmitted or retained, so as to determine whether there is a need to send data. As a result, the single-line two-way communication method can accurately transmit data to the target device and reduce the possibility of data mistransmission and loss.
[0028] In one embodiment, the determination of whether the first device identifier in the data matches the device identifier of the currently controlled device includes: if the first device identifier in the data is a preset target value, determining that the first device identifier in the data matches the device identifier of the currently controlled device, and the target device sends the data; the preset target value is different from the device identifier of any one of the control devices.
[0029] In the embodiment of the present application, the controller or some control devices have the need to send data to all other control devices. Therefore, a device identifier can be configured to represent the receiver as all devices. The number of control devices in the optical drive circuit usually does not reach the maximum value. Therefore, the maximum value can be represented as the receiver as all control devices, so that all control devices receive and transmit the data. This method allows the controller to control all other control chips without sending data one by one, but can send data for controlling all devices at the same time, effectively improving work efficiency.
[0030] In one embodiment, the light source control chip is used to connect the light source, and the current control device is the light source control chip; the data includes fault information; before transmitting the data to the target device based on the preset level signal encoding, the method also includes: in the case of determining that the light source connected to the current control device is faulty, determining that there is a need to send fault information to the target device, and generating the fault information; the fault information includes the device identification of the current control device and the device identification of the controller; the device identification of the controller is the first device identification; taking the controller as the target device, sending the fault information to the target device; correspondingly, during the data transmission process, transmitting the data to the target device based on the preset level signal encoding includes: during the data transmission process, transmitting the fault information to the target device based on the preset level signal encoding.
[0031] In the embodiment of the present application, the light source control chip can determine the need to send fault information in the event of a fault, and actively send the fault information to the controller so that the controller can handle the fault in a timely manner. This method does not require the controller to issue a readback instruction and wait for each light source control chip to read back, effectively improving the efficiency of fault handling.
[0032] In one embodiment, if the current control device is the controller; the single-line bidirectional communication method further includes: sending a read operation instruction to the first light source control chip, and unidirectionally transmitting the read operation instruction to the receiving control device through each controlled device between the first light source control chip and the receiving control device; the transmission direction of the read operation instruction is the direction from the controller to the receiving control device; receiving data corresponding to the read operation instruction fed back by the receiving control device; wherein, after the receiving control device receives the read operation instruction, each control device between the controller and the receiving control device converts the data transmission direction, so as to feed back the data corresponding to the read operation instruction to the current control device based on the converted transmission direction.
[0033] In an embodiment of the present application, the read operation includes the sending of read instruction data and the feedback of data. When the read instruction and feedback data are transmitted, the data transmission between the controller and the receiving control device can be unidirectional transmission, such as the read operation instruction is sent unidirectionally by the controller to the receiving control device, or the receiving control device feeds back data to the controller unidirectionally. During this read operation, other control devices do not transmit data bidirectionally. Therefore, conflicts that may occur during single-line bidirectional data transmission can be effectively reduced.
[0034] In a second aspect, an embodiment of the present application provides a light driving circuit, comprising: multiple control devices and a data line; the control devices communicate in series through the data line; wherein the control device comprises a controller and a light source control chip; each of the control devices is used to execute the single-line bidirectional communication method based on any one of the first aspects.
[0035] In a third aspect, an embodiment of the present application provides a backlight module, comprising: a plurality of light sources and the light driving circuit described in the second aspect; each of the light sources is respectively connected to each of the light source control chips in the light driving circuit.
[0036] In a fourth aspect, an embodiment of the present application provides a display, comprising the optical driving circuit as described in the second aspect or the backlight module as described in the third aspect.
[0037] In a fifth aspect, an embodiment of the present application provides an electronic device, comprising the display as described in the fourth aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments of the present application will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without paying any creative work.
[0039] Figure 1 A schematic diagram of a light driving circuit provided in one embodiment of the present application; Figure 2 A flow chart of a single-line bidirectional communication method provided in one embodiment of the present application; Figure 3 A first schematic diagram of a preset level signal encoding provided by an embodiment of the present application; Figure 4 A second schematic diagram of a preset level signal encoding provided by an embodiment of the present application; Figure 5 A third schematic diagram of a preset level signal encoding provided by an embodiment of the present application; Figure 6 A schematic diagram of a backlight module provided in accordance with an embodiment of the present application.
[0040] Icons: controller 110 ; light source control chip 120 ; light source 130 . DETAILED DESCRIPTION
[0041] The technical solutions in the embodiments of the present application will be described below in conjunction with the accompanying drawings in the embodiments of the present application. The embodiments described later in the present application and the implementation methods in the embodiments can be combined with each other to obtain new embodiments if there is no conflict.
[0042] First, an embodiment of the present application provides a light driving circuit, which can be configured in a backlight module to control the light source in the backlight module.
[0043] See also Figure 1 , Figure 1 This is a schematic diagram of a light driving circuit provided in an embodiment of the present application. The light driving circuit includes: a controller 110 and a light source control chip 120 .
[0044] The controller 110 is used to output control instructions and dimming data for the light source.
[0045] In this embodiment, the controller 110 may include a data port, and the data port is used to connect a light source control chipset through a data line, wherein the light source control chipset includes a plurality of light source control chips 120 connected in series through the data line.
[0046] In this embodiment, the controller 110 may send control instructions and dimming data for the light sources to each light source control chip 120 of each light source control chip group through a data port.
[0047] In this embodiment, the controller 110 may be a device with processing functions such as FPGA (Field Programmable Gate Array), MCU (Microcontroller Unit), etc. The functions, structure, transmitted data, etc. of the controller 110 may refer to the controller 110 of the existing backlight module, which will not be expanded here.
[0048] The light source control chip 120 can be connected to the controller 110 and one or more light sources, and the light source control chip 120 can receive dimming data and control instructions from the controller 110 to turn on or adjust the brightness of the light source. Exemplarily, the light source control chip 120 can implement the functions of an existing AMIC (Active Matrix LED Driver IC) or a backlight driver chip, and the light source can be an LED (light emitting diode).
[0049] In the embodiments of the present application, the above-mentioned controller and light source control chip are both control devices, and each control device is used as a current control device for executing the single-line bidirectional communication method provided in the present application.
[0050] In the embodiment of the present application, each control device is connected in series via a single data line. Figure 1 As shown, the connection between each control device uses one data line as a whole. In the optical drive circuit, each control device can be arranged first and then connected in series through different data line sections of a single data line.
[0051] In an embodiment of the present application, the controller and the last light source control chip receive and send data via the data line. Except for the controller and the last light source control chip, any control device is allowed to send data to adjacent control devices in the first direction and adjacent control devices in the second direction via the data line, and receive data sent from adjacent control devices in the first direction and adjacent control devices in the second direction via the data line. That is, in an embodiment of the present application, each control device can perform bidirectional communication based on a single data line.
[0052] Next, the single-line bidirectional communication method performed by any control device of the present application will be described. The single-line bidirectional communication method includes: During data transmission, data is transmitted to a target device based on a preset level signal encoding.
[0053] In some embodiments of the present application, the above process can be used as S120 of the communication method based on a single-line bidirectional communication method, such as Figure 2 As shown, Figure 2 A flowchart of a single-line bidirectional communication method is provided for an embodiment of the present application. In the embodiment of the present application, S110 may be included before S120, in which a first pulse signal is sent to the target device in response to a demand for the target device to send data.
[0054] And in some embodiments of the present application, after S120, S130 may also be included, in response to the completion of data transmission, sending a second pulse signal to the target device to notify the target device that the data transmission is completed.
[0055] It can be understood that S120 can be executed separately, and S110 and S130 are optional and are instructed together with S120. For example, the communication method based on single-line bidirectional in one embodiment includes S110 and S120, the communication method based on single-line bidirectional in another embodiment includes S120 and S130, and the communication method based on single-line bidirectional in one embodiment includes S110, S120 and S130. Next, the communication method based on single-line bidirectional provided by the present application will be described with an embodiment including S110, S120 and S130 at the same time.
[0056] Next, S120 is described first. S120, during the data transmission process, data is transmitted to the target device based on the preset level signal encoding.
[0057] In the embodiment of the present application, the preset level signal encoding represents a value in the data based on a preset period, and different level signals within the preset period represent different values.
[0058] In the preset level signal encoding, the data values 0 and 1 are defined by using different level signals within a preset period. Depending on the encoding method used, the level signals corresponding to 0 and 1 are also different.
[0059] For example, in one embodiment of the present application, the preset level signal encoding includes: using a pulse signal including a first number of transition edges in a preset period to represent 0, and using a pulse signal including a second number of transition edges in a preset period to represent 1.
[0060] For example, Figure 3 As shown, one transition edge in a preset cycle indicates that the data value is 0. Similarly, two transition edges in a preset cycle indicate that the data value is 1. The transition edge can be either a rising edge or a falling edge.
[0061] In another embodiment of the present application, the preset level signal encoding may include: if the high level is less than the first duty cycle, the characterization value is 0, and if the high level is greater than the second duty cycle, the characterization value is 1. The first duty cycle is greater than 0 and less than 0.5 preset cycles, and the second duty cycle is greater than 0.5 preset cycles and less than 1 preset cycle.
[0062] by Figure 4 For example, logic "1" indicates a value of 1, logic "1" indicates a value of 0, and HT indicates a duty cycle of a high level. For example, a preset period may include 4T. If the duty cycle of the high level is 3T (i.e., 0.75 preset periods) or greater than 2.5T (0.625 preset periods), the value is represented as 1. Correspondingly, if the duty cycle of the high level is greater than 0 and less than or equal to 1T (i.e., 0.25 preset periods), the value is represented as 0.
[0063] In another embodiment of the present application, the preset level signal encoding may include: within a preset period, a falling edge characterization value of 1 and a rising edge characterization value of 0.
[0064] See also Figure 5 ,exist Figure 5 In the figure, the upper signal is the data signal, and the lower signal is a signal encoded with a preset level signal. If the first preset cycle includes a falling edge, the corresponding value of the digital signal is 1, and the second preset cycle includes a rising edge, the corresponding value is 0. If the third preset cycle and the fourth preset cycle both include a falling edge, the corresponding value is 1, and the fifth cycle includes a rising edge, the corresponding value is 0.
[0065] The above preset level signal encoding is an example, and there may be other ways in practice. You can choose a preset level signal encoding to use, and there is no limitation here.
[0066] In the embodiment of the present application, the target device is any control device in the optical drive circuit except the current control device. It should be distinguished that the target device is the device that ultimately receives the data, and the data is transmitted sequentially through the control devices connected in the optical drive circuit, that is, the data of the current control device is transmitted backward or forward through the adjacent control device (referred to as the adjacent device), so each control device actually sends data to the adjacent device, and the adjacent device can also be the target device. Figure 1 For example, if the adjacent device of the controller 110 is the light source control chip 110 with serial number 1, then the light source control chip 110 with serial number 1 can be used as the adjacent device of the controller. Similarly, the adjacent devices of the light source control chip 110 with serial number k can be the light source control chip 110 with serial number k+1 and the light source control chip 110 with serial number k-1.
[0067] In the embodiments of the present application, each control device in the optical driving circuit can act as a current control device to actively initiate data sending operations, including but not limited to sending fault information, instructions or dimming data.
[0068] In some embodiments of the present application, the length of the preset period can be pre-configured, and then each control device in the optical driving circuit can be configured to use the same preset period. Thus, when each control device transmits data, it can accurately determine the start and end, reception and sending of data transmission through the preset period.
[0069] In other embodiments of the present application, before transmitting the data to the target device based on the preset level signal encoding or S110, a third pulse signal for agreeing on a preset period may be sent to the target device, so that the target device receives the data sent by the current control device based on the preset period configured in the third pulse signal.
[0070] In this embodiment, each time data is transmitted, the preset period can be defined between the current control device and the target device through the third pulse signal, and each data transmission can use a different preset period. Therefore, for some more important data, a longer preset period can be configured for transmission, and for less important and more quantity data, a shorter preset period can be agreed upon, thereby meeting the accuracy and transmission efficiency requirements of different data.
[0071] In an embodiment of the present application, single-line bidirectional communication is achieved through a data line. During the single-way and bidirectional communication process, it may happen that two adjacent devices need to send data to each other at the same time. For example, when the control device with sequence number k is sending data to the control device with sequence number k+1, the control device with sequence number k+1 needs to send data to the control device with sequence number k. At this time, a data transmission conflict occurs, the data line is occupied, and the control device with sequence number k+1 cannot send data to the control device with sequence number k.
[0072] Therefore, in one embodiment of the present application, before transmitting data to the target device based on the preset level signal encoding or S110, it is also possible to determine whether the data line interval between the current control device and the adjacent device is idle; when the data line interval between the current control device and the adjacent device is idle, it is allowed to send data to the target device.
[0073] In this embodiment, the adjacent device is on the path between the current control device and the target device and is adjacent to the current control device. In the embodiment of the present application, the data line between any two adjacent control devices can be referred to as a data line interval. By judging whether the data line interval is idle, it is judged whether data is being transmitted between the current control device and the adjacent device. If data is being transmitted, the data line interval is occupied and data transmission cannot be performed. If data is sent to the adjacent device at this time, data loss may result, or anomalies may be caused due to data transmission conflicts. Therefore, data can be sent to the target device when the data line interval between the current control device and the adjacent device is idle.
[0074] In the embodiments of the present application, whether different levels are used to represent different values (for example, a high level is 1 and a low level is 0), or different values are represented by transition edges (for example, a rising edge is 0 and a falling edge is 1), there will usually be changes in levels during data transmission, which will produce transition edges. Therefore, in the embodiments of the present application, it is possible to determine whether the data line interval between the current control device and the adjacent device is idle by the level.
[0075] In an embodiment of the present application, when it is detected that the level of the data line section between the current control device and the adjacent device is always the default value within a preset period, it is determined that the data line section between the current control device and the adjacent device is idle.
[0076] The default value may be 0 or 1, indicating that the level has not changed, and is not limited here. On the contrary, if it is detected that the level of the data line section between the current control device and the adjacent device is non-default within a preset period, it is determined that the data line section between the current control device and the adjacent device is not idle.
[0077] In one embodiment of the present application, if it is determined that the data line interval between the current control device and the adjacent device is not idle, then wait for a preset time and re-detect whether the data line interval between the current control device and the adjacent device is idle; until the data line interval between the current control device and the adjacent device is idle, data is sent to the target device.
[0078] In one embodiment of the present application, each piece of data may include: a frame header, a sender ID (device identification), a receiver ID, an operation address, an operation length, data information, check information, and a frame tail.
[0079] The frame header and frame tail are used to indicate the start and stop conditions. The frame header indicates the start of data transmission. When the slave device receives the frame header, it means that the line is occupied; receiving the frame tail indicates the end of transmission and the line is released. The highest bit of the operation address is the read / write operator, and the remaining bits are the operation address of the slave device (that is, the control device that ultimately needs to receive the data). The operation length is the number of data to be written / read continuously. The data information contains brightness information, fault information or other situation information. The check information ensures that there is no error in the data transmission and reception process. The above content carried in the data can refer to the existing technology and will not be expanded here.
[0080] In the embodiments of the present application, since data transmission is bidirectional, except for the controller of the optical drive circuit and the light source control chip 120 at the rear, the remaining control devices can transmit data forward or backward. Therefore, it is necessary to distinguish the transmission direction of the data. Therefore, in the embodiments of the present application, a corresponding device identifier can be configured for each control device, and the device identifiers of the sender and the receiver can be written into the data to be transmitted at the same time, so as to determine the transmission direction of the data based on the device identifiers of the sender and the receiver.
[0081] In the embodiment of the present application, after power-on initialization, a corresponding device identification may be configured for each control device. For example, the corresponding device identification may be configured according to the connection order of each control device in the light driving circuit, such as the device identification of the controller is 0, the device identification of the light source control chip connected to the controller is 1, and the device identifications of the subsequent light source control chips are 2, 3, 4, 5...N in sequence.
[0082] In the embodiments of the present application, the data to be sent includes but is not limited to data generated by the current control device itself or received from other control devices. Similarly, the end point of data transmission includes but is not limited to adjacent control devices, and can also be multiple control devices at intervals. For example, the light source control chip with sequence number k can generate fault information, and transmit the fault information to the controller with sequence number 0 in sequence through the light source control chips with sequence numbers k-1, k-2...1.
[0083] The optical drive circuit is connected in a daisy chain manner, and the data is transmitted in sequence through the control devices between the starting point and the end point. Therefore, each control device also needs to determine whether the data has been transmitted to the end point through the device identifiers of the sender and the receiver. Therefore, in this embodiment, if the data includes the first device identifier of the receiver's control device, the first device identifier in the data can be detected before S110 to determine whether the first device identifier in the data matches the device identifier of the current control device. If they do not match, it is determined that there is a need to send data to the target device.
[0084] In an embodiment of the present application, the receiving control device refers to the destination control device where the data ultimately needs to reach, that is, the target device is the receiving control device, and the sending control device refers to the starting point control device that generates the data. For example, if the light source control chip 120 with serial number k fails, its fault information needs to be sent to the controller, then the light source control chip with serial number k is the sending control device, and the controller is the receiving control device.
[0085] In the embodiment of the present application, the first device identifier matches the device identifier of the current control device. The first device identifier and the device identifier of the current control device may be the same, or may meet a preset condition, which is not limited here. In the case of a match, it indicates that the data has reached the receiving control device corresponding to the data, and the current control device is the target device, and there is no need to continue transmission. Therefore, there is no need to send data to the target device, and the current control device can perform subsequent processing based on the data. On the contrary, if there is no match, it is necessary to continue transmission and continue to send data to the target device.
[0086] In one embodiment of the present application, if the first device identifier in the data is a preset target value, it is determined that the first device identifier in the data matches the device identifier of the current control device, and it is determined that there is a need to send data to the target device.
[0087] For example, if the controller 110 needs to control all light source control chips 120 , if the receiving device identifier can only set the device identifier of a single light source control chip 120 , the controller 110 will be less efficient in controlling all light source control chips 120 .
[0088] Therefore, in an embodiment of the present application, a specific value can be set to characterize the receiving party as all control devices other than the current control device. In this embodiment, the preset target value can be a value different from the device identification of any one of the control devices. For example, the preset target value can be the maximum value of the binary value supported by the optical drive circuit. In an embodiment of the present application, the device identification of the control device is in the form of a serial number, and the number of control devices usually does not exceed the maximum value of the binary. For example, when there are many control devices, partitions are usually performed for more precise control. In the 8-bit binary value, the maximum value is 255, that is, 11111111. Therefore, the number of control devices connected in a single optical drive circuit usually does not exceed 255, so 11111111 can be used as a device identification characterizing the receiving party control device as all control devices.
[0089] S110, in response to a demand for a target device to send data, sending a first pulse signal to the target device.
[0090] In an embodiment of the present application, a first pulse signal is sent to a target device, and the first pulse signal is used to notify the target device that the current control device starts to transmit data to the target device. After the current control device sends the first pulse signal, data such as instructions or dimming data will be sent subsequently. For the target device, the target device will start receiving data after receiving the first pulse signal sent by the current control device. Therefore, the data transmission can be carried out correctly through the first pulse signal.
[0091] In an embodiment of the present application, the first pulse signal may be a pulse signal including a third number of transition edges within a preset period. For example, if the third number is 2, the first pulse signal may include 2 transition edges within a preset period, thereby sending a pulse signal including 2 transition edges within a preset period to the target device to notify the target device to start data transmission. The above is only an example and should not be a limitation of the present application. The third number may also be other values, for example, including 3, 4, 5 or a larger integer.
[0092] In the above embodiment, the transition edge of the first pulse signal includes a rising edge or a falling edge. For example, if a preset period includes a rising edge and a falling edge, it is regarded as including two transition edges.
[0093] In other embodiments of the present application, the first pulse signal may also be other types of pulse signals, for example, a pulse signal in which the duty cycle of a high level or a low level exceeds a preset threshold within a preset period, which is not limited here.
[0094] Accordingly, S110 may also include: continuously sending a pulse signal including a fourth number of transition edges in each preset period to the target device in n consecutive preset periods to notify the target device that the current control device starts transmitting data to the target device, where n is an integer greater than or equal to 1.
[0095] In this embodiment, the period for sending the first pulse signal is not limited to one, but can also be n consecutive preset periods. By continuously sending the first pulse signal to the target device for multiple consecutive preset periods, the interference of some non-data transmission related signals can be reduced to a limited extent, the stability of data transmission can be improved, and the power consumption caused by the start of data transmission due to interference signals can be reduced.
[0096] S130, in response to the data transmission being completed, sending a second pulse signal to the target device.
[0097] Similar to the aforementioned first pulse signal, in an embodiment of the present application, a second pulse signal may be sent to the target device to notify the target device of the end of data transmission. When the target device receives the second pulse signal and there is no subsequent level change on the data line, it determines that the data transmission is over. After the data transmission is over, the data line becomes idle again, and new data can be transmitted.
[0098] In one embodiment of the present application, the second pulse signal is a pulse signal including a fourth number of transition edges within a preset period. In other embodiments, the second pulse signal may also be a signal whose duty cycle of a high level or a low level exceeds a preset threshold. The fourth number and the third number may be the same or different. For example, the first preset frequency may be a preset period including one transition edge, and the second preset frequency may be a preset period including two transition edges. Similarly, the preset threshold value of the duty cycle used by the second pulse signal may be the same or different from the preset threshold value of the duty cycle used by the first pulse signal.
[0099] In one embodiment of the present application, sending a second pulse signal to a target device to notify the target device of the end of data transmission may include: continuously sending a pulse signal including a fourth number of transition edges in each of m consecutive preset cycles to the target device to notify the target device of the end of data transmission.
[0100] In this embodiment, m is an integer greater than or equal to 1, and the aforementioned n and m are not equal. For example, the aforementioned n is 3, and m here is 2.
[0101] Regardless of whether the first pulse signal and the second pulse signal are the same or different, they can be used to characterize the start and end of data transmission. If the first pulse signal and the second pulse signal are different, the start and end of data transmission can be further distinguished to improve the accuracy of data transmission. Similarly, n and m being different can also further improve the accuracy of data transmission.
[0102] In the embodiment of the present application, between any control device of the light drive circuit and the adjacent control device, each control device can respond to the demand for data transmission, and actively send data as a data sending device. Therefore, in the event of a fault, the light source control chip can actively send fault information to the controller 110, and the controller 110 does not need to send a readback instruction to each light source control chip, and does not need to wait for each light source control chip to read back, thereby improving the working efficiency of the light source control chip 120. In the transmission process, a pulse signal with a first preset frequency or a second preset frequency jump edge is used to represent the start or end of data transmission, and a preset level signal encoding of a level signal within a preset period to represent the value of the data is used to transmit data, and there is no need to use a clock signal, which effectively reduces the power consumption of the clock and reduces the electromagnetic interference that may be caused by the clock. In addition, since there is no clock signal, there is no need to set a clock line and a clock signal port, and the communication connection can be connected only through a data line, which can effectively reduce the layout of the communication port, reduce the circuit complexity of the light drive circuit, and reduce the power consumption caused by the complex circuit.
[0103] For ease of understanding, an example is provided here for illustration. Taking the transmission of fault information as an example, in one embodiment of the present application, if the current control device is a light source control chip, the transmitted data includes fault information.
[0104] Accordingly, in response to the need to send data to the target device, before sending the first pulse signal to the target device, the light source control chip can perform fault detection on the light source to which it is connected. When it is determined that the light source connected to the current control device is faulty, it determines that there is a need to send fault information to the target device and generates the fault information.
[0105] The fault information may include information of the faulty light source, the device identification of the current control device, the controller as the target device, the device identification of the controller (as the first device identification), the type of fault, etc. The target device is a control device that is adjacent to the current control device and on the path between the current control device and the controller.
[0106] Next, the controller is used as the target device to send fault information to the target device, such as: in response to the need for the target device to send data, a first pulse signal is sent to the target device, including: in response to the need for the target device to send fault information, a first pulse signal is sent to the target device.
[0107] And, in the data transmission process, transmitting data to the target device based on the preset level signal encoding, including: in the data transmission process, transmitting fault information to the target device based on the preset level signal encoding. After receiving the fault information, each target device determines whether the first device identifier in the fault information is consistent with its own device identifier. If not, the target device will be used as the current control device and determine whether there is a need to send the fault information to the next target device.
[0108] Then, in response to the completion of the transmission of the fault information, each current device may send a pulse signal with a transition edge of a second preset frequency to the target device to notify the target device of the completion of the data transmission.
[0109] Finally, until the controller 110 receives the fault information, the controller 110 determines that the first device identifier is consistent with its own device identifier, and therefore does not need to send the fault information, and processes the fault according to the fault information.
[0110] In another embodiment of the present application, if the current control device is the controller, the single-line bidirectional communication method may also include: sending a read operation instruction to the first light source control chip, and unidirectionally transmitting the read operation instruction to the receiving control device through each controlled device between the first light source control chip and the receiving control device; receiving data corresponding to the read operation instruction fed back by the receiving control device.
[0111] The controller can read the data of each light source control chip, and each light source control chip can provide feedback according to the read operation instruction. In the embodiment of the present application, the transmission of the read operation instruction and the feedback data can both be unidirectional transmission.
[0112] For example, when a transmission device reads an operation instruction, the transmission direction of the read operation instruction is from the controller to the receiving control device, and each control device between the controller and the receiving control device no longer transmits data in the direction from the receiving control device to the controller.
[0113] Correspondingly, after the receiving control device receives the read operation instruction, each control device between the controller and the receiving control device converts the data transmission direction, and converts the data transmission direction to the direction from the receiving control device to the controller, so as to feedback the data corresponding to the read operation instruction to the current control device based on the converted transmission direction. During the period of feedback of the data corresponding to the read operation instruction, each control device between the controller and the receiving control device no longer transmits data in the direction from the controller to the receiving control device.
[0114] Based on the same inventive concept, the present application also provides a backlight module, see Figure 6 , Figure 6The backlight module includes a plurality of light sources 130 and the light driving circuit provided in the above embodiment, and each light source 130 is connected to each light source control chip 120 in the light driving circuit.
[0115] In the backlight module, each light source 130 is connected to each light source control chip 120 in the light driving circuit, and each light source connection channel of each light source control chip 120 can be connected to one or more light sources.
[0116] Each light source control chip 120 can control the light source 130 to which it is connected according to the dimming data output by the controller 110 .
[0117] Furthermore, each light source control chip 120 can detect whether the connected light source is faulty, and in the event of a fault, actively generate fault information and transmit it to the controller 100 .
[0118] The light driving circuit can refer to the above-mentioned embodiment, which will not be described in detail here. The light source 130 can be an LED or other light emitting device.
[0119] Based on the same inventive concept, the embodiment of the present application further provides a display, which may include a display panel and a backlight module as provided in the above embodiment. The display may also have other structures, which may be specifically referred to in the prior art and will not be elaborated here.
[0120] Based on the same inventive concept, an embodiment of the present application further provides an electronic device, which includes the display provided in the above embodiment.
[0121] In the embodiments of the present application, the electronic device may be a discrete device, for example, the electronic device may be a computer including a host and a display. The electronic device may also be an integrated device, for example, the electronic device may be a mobile phone, a tablet computer, a television, or other electronic device in which a processor and a display are integrated in the same housing. This is not limited here.
[0122] The technical features of the above embodiments can be freely combined without conflict, and the embodiments obtained by the combination are included in the protection scope of this application.
[0123] The above detailed description of the embodiments of the present application provided in the accompanying drawings is not intended to limit the scope of the present application for which protection is sought, but merely represents selected embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.
[0124] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.
[0125] In the description of this application, it is also necessary to explain that, unless otherwise clearly specified and limited, the term "connection" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be an electrical connection; it can be a direct connection, or it can be an indirect connection through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in this application can be understood according to specific circumstances.
[0126] The above description is only an embodiment of the present application and is not intended to limit the protection scope of the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims
1. A single-line bidirectional communication method, characterized in that: Applied to the current control device, the current control device is any control device in the light driving circuit, the control device in the light driving circuit includes a controller and a light source control chip, and each of the control devices is connected in series via a single data line; The controller and the last light source control chip receive and send data through the data line; except for the controller and the last light source control chip, any control device is allowed to send data to the adjacent control device in the first direction and the adjacent control device in the second direction through the data line, and receive data sent by the adjacent control device in the first direction and the adjacent control device in the second direction through the data line; The single-line bidirectional communication method comprises: During data transmission, the data is transmitted to a target device based on a preset level signal encoding, wherein the preset level signal encoding represents a value in the data based on a preset period, and different level signals within the preset period represent different values; The target device can be any control device in the optical driving circuit except the current control device.
2. The method according to claim 1, characterized in that The preset period is preconfigured, and all the control devices in the light driving circuit are configured to use the same preset period.
3. The method according to claim 1, characterized in that Before transmitting the data to the target device based on the preset level signal encoding, the method also includes: sending a third pulse signal for agreeing on the preset period to the target device, so that the target device receives the data sent by the current control device based on the preset period configured in the third pulse signal.
4. The method according to claim 1, characterized in that: The preset level signal encoding includes: Using a pulse signal including a first number of transition edges within one of the preset cycles to represent 0; A pulse signal characterization 1 is used which includes a second number of transition edges within one of the preset cycles.
5. The method according to claim 4, characterized in that Before transmitting the data to the target device based on the preset level signal encoding, the method further includes: in response to a demand for the target device to send data, sending a first pulse signal to the target device to notify the target device that the current control device starts to transmit the data to the target device; and / or, After transmitting the data to the target device based on the preset level signal encoding, the method further includes: in response to the completion of the transmission of the data, sending a second pulse signal to the target device to notify the target device that the data transmission is completed.
6. The method according to claim 5, characterized in that The first pulse signal is a pulse signal including a third number of transition edges within one of the preset cycles; The second pulse signal is a pulse signal including a fourth number of transition edges within one preset period.
7. The method according to claim 6, characterized in that Sending a first pulse signal to the target device to notify the target device that the current control device starts to transmit data to the target device, comprising: Continuously sending a pulse signal including a fourth number of transition edges in each of the preset cycles to the target device in n consecutive preset cycles to notify the target device that the current control device starts to transmit data to the target device; n is an integer greater than or equal to 1; Correspondingly, sending a second pulse signal to the target device to notify the target device that the data transmission is finished includes: A pulse signal including a fourth number of transition edges in each of the preset cycles is continuously sent to the target device in m consecutive preset cycles to notify the target device that data transmission is completed; m is an integer greater than or equal to 1, and n and m are not equal.
8. The method according to claim 1, characterized in that: Before transmitting the data to the target device based on the preset level signal encoding, the method further includes: Determine whether a data line section between the current control device and an adjacent device is idle; the adjacent device is on a path between the current control device and the target device and is adjacent to the current control device; When the data line section between the current control device and the adjacent device is idle, data is allowed to be sent to the target device.
9. The method according to claim 8, characterized in that The determining whether a data line section between the current control device and an adjacent device is idle includes: When it is detected that the level of the data line section between the current control device and the adjacent device is always at a default value within the preset period, it is determined that the data line section between the current control device and the adjacent device is idle.
10. The method according to claim 8, characterized in that After determining whether the data line section between the current control device and the adjacent device is idle, the method further includes: If it is determined that the data line section between the current control device and the adjacent device is not idle, then wait for a preset time and re-detect whether the data line section between the current control device and the adjacent device is idle; Until the data line section between the current control device and the adjacent device is idle, data is allowed to be sent to the target device.
11. The method according to any one of claims 2 to 10, characterized in that: The data includes a first device identification of a receiving party control device; Before transmitting the data to the target device based on the preset level signal encoding, the method further includes: detecting a first device identifier in the data; Determining whether the first device identifier in the data matches the device identifier of the currently controlled device; If there is no match, the data is sent to the target device.
12. The method according to claim 11, characterized in that The determining whether the first device identifier in the data matches the device identifier of the currently controlled device includes: If the first device identifier in the data is a preset target value, it is determined that the first device identifier in the data matches the device identifier of the current control device, and the data is sent to the target device; the preset target value is different from the device identifier of any one of the control devices.
13. The method according to claim 11, characterized in that The light source control chip is used to connect the light source, and the current control device is the light source control chip; the data includes fault information; Before transmitting the data to the target device based on the preset level signal encoding, the method further includes: In the case where it is determined that the light source connected to the current control device is faulty, determining that there is a need to send fault information to the target device, and generating the fault information; the fault information includes the device identification of the current control device and the device identification of the controller; the device identification of the controller is the first device identification; Taking the controller as the target device, sending the fault information to the target device; Correspondingly, during the data transmission process, transmitting the data to the target device based on the preset level signal encoding includes: during the data transmission process, transmitting the fault information to the target device based on the preset level signal encoding.
14. The method according to claim 1, characterized in that If the current control device is the controller; the single-line bidirectional communication method further includes: Sending a read operation instruction to the first light source control chip, and unidirectionally transmitting the read operation instruction to the receiving control device through each controlled device between the first light source control chip and the receiving control device; the transmission direction of the read operation instruction is the direction from the controller to the receiving control device; Receive the data corresponding to the read operation instruction fed back by the receiving control device; wherein, after the receiving control device receives the read operation instruction, each control device between the controller and the receiving control device converts the data transmission direction to feed back the data corresponding to the read operation instruction to the current control device based on the converted transmission direction.
15. A light driving circuit, characterized in that: include: A plurality of control devices and a data line; the control devices are connected in series via the data line; Wherein, the control device includes a controller and a plurality of light source control chips; Each of the control devices is used as a current control device to execute the single-line bidirectional communication method according to any one of claims 1 to 14.
16. A backlight module, characterized in that: include: A plurality of light sources and a light driving circuit as claimed in claim 15; Each of the light sources is connected to each of the light source control chips in the light driving circuit respectively.
17. A display, characterized in that: include: The light driving circuit as claimed in claim 15 or the backlight module as claimed in claim 16.
18. An electronic device, characterized in that: Comprising a display as claimed in claim 17.
Citation Information
Patent Citations
Conversion circuit and method of serial interface
CN102999461A
Single-wire transmission method, chip, and communication system
CN108897712A
Wireless low-power-consumption configuration method and device
CN111935691A
Data transmission method of single-line cascade circuit and LED chip cascade system
CN113207209A
Control system and method based on master-slave station protocol
CN113507387A