Single-line bidirectional communication method, optical drive circuit and related devices
By adopting a single-line bidirectional communication method and preset level signal encoding in the optical drive circuit, the inefficiency of the optical drive circuit in the prior art in fault judgment and clock signal use is solved, and the effects of efficient communication and low power consumption are achieved.
Patent Information
- Application Number
- CN202510128227.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-05
- Publication Date
- 2025-05-30
- 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.
A single-line bidirectional communication method is adopted to realize bidirectional communication on a single data line through preset level signal encoding, reducing the use of clock signals, thereby improving working efficiency and reducing power consumption.
It realizes efficient communication of optical drive circuits, reduces fault judgment time, reduces power consumption, and simplifies circuit layout and implementation difficulty.
Smart Images

Figure CN119580657B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of displays. Specifically, it relates to a communication method based on single-line bidirectional, a light driving circuit, and related devices. 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 sends a read-back instruction to each light source control chip at regular intervals to obtain the data feedback read-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 relatively low. Sending the read-back instruction and waiting for the read-back take a lot of time, affecting the overall working efficiency. And during the process of waiting for data 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 relatively high power consumption. Summary of the Invention
[0005] In view of this, this application aims to provide a communication method based on single-line bidirectional, a light driving circuit, and related devices to improve the working efficiency of the light driving circuit and reduce power consumption.
[0006] In a first aspect, an embodiment of this application provides a communication method based on single-line bidirectional, which is applied to a current control device. The current control device is any control device in the light driving circuit. The control devices in the light driving circuit include a controller and a light source control chip, and each control device is connected in series through 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 adjacent control devices in the first direction and adjacent control devices in the second direction through the data line, and receive data sent by the adjacent control devices in the first direction and the adjacent control devices in the second direction through the data line; the communication method based on single-line bidirectional includes: during data transmission, transmitting the data to the target device based on a preset level signal encoding. 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 embodiments of the present application, the control devices in the optical drive circuit are connected in series through a data line for communication, 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. Thus, the number of communication ports can be effectively reduced, and the complexity of the layout and the implementation difficulty of the optical drive circuit can be reduced. Further, since there is no need to set a clock port and no need to set 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 need for data transmission and actively send data as a data sending device. Thus, in the event of a failure, the light source control chip can actively send the fault information to the controller, and the controller does not need to send a read-back 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, realizing two-way data transmission. Since it is two-way transmission, the last light source control chip of the optical drive circuit does not need to connect the output end back to the controller. Thus, only one port needs to be set for the controller and the last light source control chip, which can further reduce the number of communication ports used at the controller end. Also, the preset level signal coding is used for data transmission. This method does not require the use of a clock signal, enabling the optical drive circuit to achieve two-way communication based on a single data line, effectively reducing the power consumption of the clock, and reducing the electromagnetic interference that the clock may bring.
[0008] In one embodiment, the preset period is pre-configured, and all the control devices in the optical drive circuit are configured to use the same preset period.
[0009] In the embodiments of the present application, by making each control device configure the same preset period that is pre-configured, the control devices can accurately transmit data to each other, improving the accuracy of data transmission.
[0010] In one embodiment, before transmitting the data to the target device based on the preset level signal coding, the method further 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 the embodiments of the present application, before each data transmission, the current control device may send a third pulse signal to the target device to agree on a preset period. Thus, for some more important data, a longer preset period can be configured for transmission, while for data with lower importance and larger quantity, a shorter preset period can be agreed upon, so as to meet the requirements of different data for accuracy and transmission efficiency.
[0012] In one embodiment, the preset level signal encoding includes: using a pulse signal including a first number of edges in one preset period to represent 0; using a pulse signal including a second number of edges in one preset period to represent 1.
[0013] In the embodiments of the present application, 0 and 1 of data are represented by pulse signals including different numbers of edges in a preset period. Thus, there is no need to combine a clock signal and high and low levels to judge the value of data, and 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, 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 the need to send data to the target device, 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 data transmission, sending a second pulse signal to the target device to notify the target device that the data transmission ends.
[0015] During the transmission process, the start or end of data transmission is represented by a first pulse signal or a second pulse signal. This method does not require the use of a clock signal, effectively reducing the power consumption of the clock and the electromagnetic interference that the clock may bring.
[0016] In one embodiment, the first pulse signal is a pulse signal including a third number of edges in one preset period; the second pulse signal is a pulse signal including a fourth number of edges in one preset period.
[0017] In the embodiments of the present application, the start and end of data transmission are indicated by the number of edges in one period, without the need to use a clock signal, reducing the power consumption of the clock.
[0018] In one embodiment, 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 includes: continuously sending, in n consecutive preset periods, a pulse signal (the first pulse signal) including a fourth number of edges in each preset period 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 data transmission ends includes: continuously sending, in m consecutive preset periods, a pulse signal including a fourth number of edges in each preset period to notify the target device that data transmission ends; m is an integer greater than or equal to 1, and n and m are not equal.
[0019] In the embodiments of the present application, while using a pulse signal including a third number of edges in a preset period and a pulse signal including a fourth number of edges in a preset period to distinguish the start and end of data transmission, the number of preset periods for transmitting the pulse signal is further used to further distinguish the start and end of data transmission, reducing the possibility of data transmission errors and improving the accuracy of single-line bidirectional communication.
[0020] In one embodiment, before transmitting the data to the target device based on the preset level signal encoding, the method further includes: determining whether the data line section 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; when the data line section between the current control device and the adjacent device is idle, allowing the requirement to send data to the target device.
[0021] In the embodiments of the present application, since two-way transmission exists between control devices, there may be a situation where two control devices transmit data to each other simultaneously. However, there is only one data line and it is impossible to perform multiple tasks of receiving and sending data simultaneously. Therefore, before transmitting data, it is possible to determine whether the data line is idle to determine whether the requirement to send data can be responded to, and allow data transmission only when it is idle, thereby effectively reducing the situation of data transmission conflicts. Among them, the data transmission between each pair of adjacent control devices does not affect each other. Therefore, 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, determining whether the data line section between the current control device and the 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 the default value within the preset period, determining that the data line section between the current control device and the adjacent device is idle.
[0023] In this application, preset level signals are used to encode and transmit data. During the transmission process, there are level changes. Therefore, in the embodiments of this application, it is possible to determine 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. On the contrary, if there is a change in the level, no data is being transmitted, that is, it is in an idle state. Thus, 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 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 target device is idle, allow data to be sent to the target device.
[0025] In the embodiments of this application, when the data line section is not idle, wait until the data line section is idle before transmitting, so that the data can be transmitted to the target device, reducing the possibility of data loss.
[0026] In one embodiment, the data includes the first device identifier of the receiving control device; before transmitting the data to the target device based on the 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, then send the data to the target device.
[0027] In the prior art, in the data, the controller sends the data to each light source control chip, or the light source control chip sends the data to the controller. In such a way, the data sender and receiver are usually fixed. However, in the embodiments of this application, since the data is transmitted bidirectionally and any control device can be the data sender and transmit the data to another control device, the data sender and receiver are usually uncertain. Therefore, they are distinguished by device identifiers, and it is determined whether to continue to transmit the data or retain it based on the device identifiers, so as to determine whether there is a need to send data. Thus, the single-line bidirectional communication method can accurately transmit the data to the target device, reducing the situations of data mistransmission and loss.
[0028] In one embodiment, determining whether the first device identifier in the data matches the device identifier of the current control 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 current control 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 embodiments of the present application, the controller or some control devices have a need to send data to all other control devices. Therefore, a device identifier can be configured to represent that the recipient is all devices. Since the number of control devices in the optical drive circuit usually does not reach the maximum value, the maximum value can be used to represent that the recipient is all devices, so that all control devices can receive and forward the data. This method enables the controller to control all other control chips without sending data for control 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 to a 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 of determining that the light source connected to the current control device is faulty, determining that there is a need to send the fault information to the target device, and generating the fault information; the fault information includes the device identifier of the current control device and the device identifier of the controller; the device identifier of the controller is the first device identifier; taking the controller as the target device and sending the fault information to the target device; correspondingly, in the data transmission process, transmitting the data to the target device based on the preset level signal encoding includes: in the data transmission process, transmitting the fault information to the target device based on the preset level signal encoding.
[0031] In the embodiments of the present application, the light source control chip can determine the need to send fault information in case of a fault, so as to actively send the fault information to the controller to enable the controller to process the fault in time. This method does not require the controller to issue a read-back instruction and wait for each light source control chip to read back, effectively improving the efficiency of fault processing.
[0032] In one embodiment, if the current control device is the controller; the single - wire 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 - end control device through each controlled device between the first light source control chip and the receiving - end control device; the transmission direction of the read operation instruction is from the controller to the receiving - end control device; receiving the data corresponding to the read operation instruction fed back by the receiving - end control device; wherein, after receiving the read operation instruction, each control device between the controller and the receiving - end 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 the embodiments of the present application, the read operation includes the issuance of read instruction data and the feedback of data. When the read instruction and the feedback data are transmitted, the data transmission between the controller and the receiving - end control device can be unidirectional transmission. For example, the read operation instruction is unidirectionally sent from the controller to the receiving - end control device, or the receiving - end control device unidirectionally feeds back data to the controller. During this read operation, other control devices do not transmit data bidirectionally. Thus, conflicts that may occur during the single - wire bidirectional data transmission can be effectively reduced.
[0034] In a second aspect, an embodiment of the present application provides an optical drive circuit, including: a plurality of control devices and a data line; each of the control devices communicates in series through the data line; wherein, the control device includes a controller and a light source control chip; each of the control devices is configured to execute the single - wire bidirectional communication method according to any one of the first aspect.
[0035] In a third aspect, an embodiment of the present application provides a backlight module, including: a plurality of light sources and the optical drive circuit according to the second aspect; each of the light sources is respectively connected to each of the light source control chips in the optical drive circuit.
[0036] In a fourth aspect, an embodiment of the present application provides a display, including the optical drive circuit according to the second aspect or the backlight module according to the third aspect.
[0037] In a fifth aspect, an embodiment of the present application provides an electronic device, including the display according to the fourth aspect. Description of the Drawings
[0038] To more clearly illustrate the technical solutions of the embodiments of the present application, the following will briefly introduce the accompanying drawings required for use in the embodiments of the present application. It should be understood that the following drawings only show certain embodiments of the present application, and thus should not be regarded as limiting the scope. For those skilled in the art, without creative efforts, other related drawings can also be obtained based on these drawings.
[0039] Figure 1 Schematic diagram of a light driving circuit provided by an embodiment of the present application;
[0040] Figure 2 Flowchart of a communication method based on single - line bidirectional provided by an embodiment of the present application;
[0041] Figure 3 First schematic diagram of preset level signal encoding provided by an embodiment of the present application;
[0042] Figure 4 Second schematic diagram of preset level signal encoding provided by an embodiment of the present application;
[0043] Figure 5 Third schematic diagram of preset level signal encoding provided by an embodiment of the present application;
[0044] Figure 6 Schematic diagram of a backlight module provided by an embodiment of the present application.
[0045] Icons: Controller 110; Light source control chip 120; Light source 130. Detailed implementation manners
[0046] The following will describe the technical solutions in the embodiments of the present application in conjunction with the accompanying drawings in the embodiments of the present application. The subsequent embodiments described in the present application and the implementation manners in each embodiment can be combined with each other without conflict to obtain new embodiments.
[0047] 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.
[0048] Please refer to Figure 1 , Figure 1 Schematic diagram of a light driving circuit provided by an embodiment of the present application. The light driving circuit includes: a controller 110 and a light source control chip 120.
[0049] The controller 110 is used to output a control instruction and dimming data for the light source.
[0050] 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. Among them, a light source control chipset includes a plurality of light source control chips 120 connected in series through a data line.
[0051] In this embodiment, the controller 110 may send control instructions and dimming data of the light source to each light source control chip 120 of each light source control chipset through the data port.
[0052] In this embodiment, the controller 110 may be a device with processing functions such as FPGA (Field Programmable Gate Array) or MCU (Microcontroller Unit). The functions, structures, transmitted data, etc. of the controller 110 may refer to the existing controller 110 of the backlight module, and will not be elaborated here.
[0053] The light source control chip 120 may be connected to the controller 110 and one or more light sources. The light source control chip 120 may receive the dimming data and control instructions of the controller 110 to turn on / off the light source or adjust the brightness, etc. Exemplarily, the light source control chip 120 may implement the functions of the existing AMIC (Active Matrix LED Driver IC) or backlight driver chip, and the light source may be an LED (light-emitting diode).
[0054] In the embodiment of the present application, the above-mentioned controller and light source control chip are both control devices, and each control device is used as the current control device for executing the one-wire bidirectional communication method provided by the present application.
[0055] In the embodiment of the present application, the control devices are connected in series through a single data line. As Figure 1 shown, a single data line is used for the overall connection between the control devices. In the optical drive circuit, it may be that after the control devices are arranged, they are connected in series in different data line intervals through a single data line.
[0056] In the embodiment of the present application, 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. That is, in the embodiment of the present application, each control device can perform bidirectional communication based on a single data line.
[0057] Next, the communication method based on single - wire bidirectional performed by any control device of the present application will be described. The communication method based on single - wire bidirectional includes:
[0058] During data transmission, data is transmitted to the target device based on a preset level signal encoding.
[0059] In some embodiments of the present application, the above process can be used as S120 of the communication method based on single - wire bidirectional. As Figure 2 shown, Figure 2 is a flowchart of a communication method based on single - wire bidirectional provided by an embodiment of the present application. In the embodiments of the present application, before S120, S110 may further be included. In response to the need to send data to the target device, a first pulse signal is sent to the target device.
[0060] And in some embodiments of the present application, after S120, S130 may further be included. In response to the completion of data transmission, a second pulse signal is sent to the target device to notify the target device that the data transmission is ended.
[0061] It can be understood that S120 can be executed alone, and S110 and S130 are optional and are used together with S120. For example, the communication method based on single - wire bidirectional in one embodiment includes S110 and S120, the communication method based on single - wire bidirectional in another embodiment includes S120 and S130, and the communication method based on single - wire bidirectional in one embodiment includes S110, S120, and S130. Next, the communication method based on single - wire bidirectional provided by the present application will be described with an embodiment that includes S110, S120, and S130 at the same time.
[0062] Next, S120 will be described first. In S120, during data transmission, data is transmitted to the target device based on a preset level signal encoding.
[0063] In the embodiments of the present application, the preset level signal encoding represents one value in the data based on a preset period, and different level signals within the preset period represent different values.
[0064] In the preset level signal encoding, the values 0 and 1 of the data are defined using different level signals within a preset period. According to different encoding methods used, the level signals corresponding to 0 and 1 are also different.
[0065] For example, in an embodiment of the present application, the preset level signal encoding includes: using a pulse signal including a first number of edge transitions within a preset period to represent 0. Using a pulse signal including a second number of edge transitions within a preset period to represent 1.
[0066] Exemplarily, as Figure 3As shown, including 1 transition edge within a preset period indicates that the value of the data is 0. Similarly, including 2 transition edges within a preset period indicates that the value of the data is 1. Among them, the transition edge can be either a rising edge or a falling edge.
[0067] 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, it represents a value of 0, and if the high level is greater than the second duty cycle, it represents a value of 1. The first duty cycle is greater than 0 and less than 0.5 preset periods, and the second duty cycle is greater than 0.5 preset periods and less than 1 preset period.
[0068] Take Figure 4 as an example, where logic “1” represents a value of 1, logic “1” represents a value of 0, and HT represents the duty cycle of the 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), it represents that the value is 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), it represents a value of 0.
[0069] In another embodiment of the present application, the preset level signal encoding may include: including a falling edge within a preset period represents a value of 1, and including a rising edge represents 0.
[0070] Please refer to Figure 5 , in Figure 5 , the upper signal is the data signal, and the lower signal is the signal of the preset level signal encoding. If there is a falling edge in the first preset period, it corresponds to the value 1 of the digital signal. If the second preset period includes a rising edge, it corresponds to the value 0. If the third preset period and the fourth preset period both include a falling edge, they correspond to the value 1. If the fifth period includes a rising edge, it corresponds to the value 0.
[0071] Taking the above preset level signal encoding as an example, there can actually be other ways. One of the preset level signal encodings can be selected for use, and no limitation is made here.
[0072] In the embodiments of the present application, the target device is any control device in the optical drive circuit other than the current control device. It should be noted that the target device is the device that finally receives the data, and the data is transmitted sequentially downward 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). Therefore, each control device actually sends data to the adjacent device, and the adjacent device can also be the target device. Take Figure 1For example, the adjacent device of the controller 110 is the light source control signal 110 with the serial number 1. Then, the light source control chip 110 with the serial number 1 can be used as the adjacent device of the controller. Similarly, for the light source control chip 110 with the serial number k, its adjacent devices can be the light source control chip with the serial number k + 1 and the light source control chip 110 with the serial number k - 1.
[0073] In the embodiments of the present application, each control device in the optical drive circuit can be used as the current control device to actively initiate the data sending operation, including but not limited to sending fault information, instructions, or dimming data, etc.
[0074] Among them, 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 drive 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 of data transmission, as well as reception and sending, through the preset period.
[0075] In some other embodiments of the present application, before transmitting the data or S110 to the target device based on the preset level signal encoding, a third pulse signal for agreeing on the preset period can also be sent to the target device, so that the target device can receive the data sent by the current control device based on the preset period configured in the third pulse signal.
[0076] In this embodiment, during each data transmission, the preset period can be defined between the current control device and the target device through the third pulse signal, and different preset periods can be used for each data transmission. Thus, for some more important data, a longer preset period can be configured for transmission, while for less important and more numerous data, a shorter preset period can be agreed upon, so as to meet the requirements of different data for accuracy and transmission efficiency.
[0077] In the embodiments of the present application, one data line is used to achieve single-line bidirectional communication. During the unidirectional and bidirectional communication process, it is possible that two adjacent devices need to send data to each other at the same time. For example, when the control device with the serial number k sends data to the control device with the serial number k + 1, the control device with the serial number k + 1 needs to send data to the control device with the serial number k. At this time, a data transmission conflict occurs, the data line is being occupied, and the control device with the serial number k + 1 cannot send data to the control device with the serial number k.
[0078] Therefore, in an embodiment of the present application, before transmitting data or S110 to the target device based on the preset level signal encoding, 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, permission is given to send a data request to the target device.
[0079] 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 embodiments of the present application, the data line between any two adjacent control devices can be referred to as a data line interval. By determining whether the data line interval is idle, it is determined 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, it may cause data loss or anomalies 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.
[0080] In the embodiments of the present application, whether different values are represented by different levels (for example, high level is 1 and low level is 0) or different values are represented by edge transitions (for example, rising edge is 0 and falling edge is 1), there will usually be a change in level during the data transmission process, resulting in edge transitions. 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 detecting the level.
[0081] In the embodiments of the present application, when it is detected that the level of the data line interval 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 interval between the current control device and the adjacent device is idle.
[0082] The default value can be 0 or 1, as long as it represents that the level has not changed, and there is no limitation here. On the contrary, if it is detected that the level of the data line interval between the current control device and the adjacent device is a non-default value within a preset period, it is determined that the data line interval between the current control device and the adjacent device is not idle.
[0083] In an 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 then 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, then send data to the target device.
[0084] In an embodiment of the present application, each piece of data may include: a frame header, a sender ID (device identifier), a receiver ID, an operation address, an operation length, data information, check information, and a frame tail.
[0085] The frame header and frame tail are used to indicate the start and stop conditions. The data transmission is indicated by the frame header to start. When the slave device receives the frame header, it means the line is occupied; receiving the frame tail indicates the end of the 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 (i.e., the control device that ultimately needs to receive this data). The operation length is the number of consecutive data to be written / read. The data information includes brightness information, fault information, or other situation information. The check information ensures that no error occurs during the transmission and reception of the data. The above content carried in the data can refer to the prior art and will not be elaborated here.
[0086] In the embodiments of the present application, since the data transmission is bidirectional, except for the controller of the optical drive circuit and the light source control chip 120 at the tail, the rest of the control devices can transmit data forward or backward. Therefore, it is necessary to distinguish the data transmission direction. Thus, 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 are simultaneously written into the data to be transmitted, so as to judge the data transmission direction according to the device identifiers of the sender and the receiver.
[0087] In the embodiments of the present application, after power-on initialization, a corresponding device identifier can be configured for each control device. For example, the device identifiers can be configured according to the connection order of each control device in the optical drive circuit. For example, the device identifier of the controller is 0, the device identifier of the light source control chip connected to the controller is 1, and the device identifiers of the subsequent light source control chips are 2, 3, 4, 5... N in sequence.
[0088] In the embodiments of the present application, the data to be transmitted includes but is not limited to data generated by the current control device itself or data transmitted by other control devices. Similarly, the destination of the data transmission includes but is not limited to adjacent control devices, and can also be multiple control devices apart. For example, the light source control chip with the serial number k can generate fault information, and transmit the fault information to the controller with the serial number 0 through the light source control chips with the serial numbers k - 1, k - 2... 1 in sequence.
[0089] The optical drive circuit is connected in a daisy-chain manner, and the data is transmitted sequentially through the control devices between the start point and the end point. Therefore, each control device also needs to judge whether the data has been transmitted to the end point through the device identifiers of the sender and the receiver. Thus, in this embodiment, if the data includes the first device identifier of the receiving control device, before S110, the first device identifier in the data can be detected to judge whether the first device identifier in the data matches the device identifier of the current control device. If not, it is determined that there is a need to send data to the target device.
[0090] In the embodiments of the present application, the receiving - end control device refers to the end - point control device where the data finally needs to arrive, that is, the target device is the receiving - end control device. The sending - end control device refers to the starting - point control device that generates data. For example, if the light - source control chip 120 with serial number k fails and its fault information needs to be sent to the controller, then the light - source control chip with serial number k is the sending - end control device, and the controller is the receiving - end control device.
[0091] In the embodiments of the present application, the first device identifier matches the device identifier of the current control device. It can be that the first device identifier is the same as the device identifier of the current control device, or it can meet a preset condition, which is not limited here. In the case of a match, it indicates that the data has reached the receiving - end control device corresponding to the data. 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, transmission needs to continue, and data needs to be sent to the target device.
[0092] In an 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.
[0093] For example, if the controller 110 has a need to control all the light - source control chips 120, at this time, if the receiving - end device identifier can only set the device identifier of a single light - source control chip 120, then when the controller 110 controls all the light - source control chips 120, the efficiency is relatively low.
[0094] Therefore, in the embodiments of the present application, a specific value can be set to represent that the receiving - end is all other control devices except the current control device. In this embodiment, the preset target value can be a value different from the device identifier of any one of the control devices. For example, the preset target value can be the maximum value of the binary values supported by the optical drive circuit. In the embodiments of the present application, the serial number is used as the device identifier of the control device, and the number of control devices usually does not exceed the maximum value of the binary system. For example, in the case of a large number of control devices, partitioning is usually carried out for more precise control. In an 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 the device identifier representing that the receiving - end control device is all control devices.
[0095] S110, in response to the need to send data to the target device, send a first pulse signal to the target device.
[0096] 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, subsequent data such as instructions or dimming data will be sent. For the target device, after receiving the first pulse signal sent by the current control device, it will start receiving data. Thus, through the first pulse signal, data transmission can be correctly carried out.
[0097] In an embodiment of the present application, the first pulse signal may be a pulse signal including a third number of edges within a preset period. Exemplarily, if the third number is 2, the first pulse signal may be a pulse signal including 2 edges within a preset period. Thus, a pulse signal including 2 edges within a preset period can be sent to the target device to notify the target device to start data transmission. It should be noted that the above is only an example and should not be a limitation to the present application. The third number may also be other values, such as including 3, 4, 5 or larger integers, etc.
[0098] In the above embodiment, the edges of the first pulse signal include rising edges or falling edges. For example, if a preset period includes one rising edge and one falling edge, it is regarded as including two edges.
[0099] In some other embodiments of the present application, the first pulse signal may also be other types of pulse signals. For example, a pulse signal with a duty cycle of the high level or low level exceeding a preset threshold within a preset period is not limited herein.
[0100] Correspondingly, S110 may also include: continuously sending, to the target device, pulse signals including a fourth number of edges within each of consecutive n preset periods, to notify the target device that the current control device starts to transmit data to the target device. Herein, n is an integer greater than or equal to 1.
[0101] In this embodiment, the period for sending the first pulse signal is not limited to one, but may also be consecutive n preset periods. By continuously sending the first pulse signal to the target device through consecutive multiple preset periods, interference from some signals not related to data transmission can be effectively reduced, the stability of data transmission can be improved, and power consumption caused by the start of data transmission due to interference signals can be reduced.
[0102] S130, in response to the completion of data transmission, sends a second pulse signal to the target device.
[0103] Similar to the foregoing first pulse signal, in an embodiment of the present application, a second pulse signal may be sent to a target device to notify the target device that data transmission has ended. When the target device receives the second pulse signal and there is no level change on the subsequent data line, it determines that the data transmission has ended. After the data transmission ends, the data line returns to the idle state, and new data can be transmitted.
[0104] In an 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 some other embodiments, the second pulse signal may also be a signal with a duty cycle exceeding a preset threshold of high level or low level. Among them, 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 of the duty cycle used for the second pulse signal and the preset threshold of the duty cycle used for the first pulse signal may be the same or different.
[0105] In an embodiment of the present application, sending a second pulse signal to the target device to notify the target device that data transmission has ended may include: continuously sending to the target device a pulse signal including a fourth number of transition edges within each of the preset periods for m consecutive preset periods to notify the target device that data transmission has ended.
[0106] In this embodiment, m is an integer greater than or equal to 1, and the foregoing n and m are not equal. For example, the foregoing n is 3, and m here is 2.
[0107] Regardless of whether the first pulse signal and the second pulse signal are the same or different, they can both be used to represent 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, different n and m can also further improve the accuracy of data transmission.
[0108] In the embodiments of the present application, between any control device of the optical drive circuit and the adjacent control device, each control device can respond to the requirement of data transmission and actively send data as the data sending device. Thus, in the event of a failure, the light source control chip can actively send the failure information to the controller 110. The controller 110 does not need to send a read-back instruction to each light source control chip and does not need to wait for each light source control chip to perform a read-back, thereby improving the working efficiency of the light source control chip 120. During 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 using the level signal within a preset period to represent the value of the data is used for data transmission, without the need to use a clock signal, effectively reducing the power consumption of the clock and reducing the electromagnetic interference that the clock may bring. In addition, due to the absence of a clock signal, there is no need to set up a clock line and a port for the clock signal, and communication can be connected only through a single data line, which can effectively reduce the layout of communication ports, reduce the circuit complexity of the optical drive circuit, and reduce the power consumption caused by the complex circuit.
[0109] For ease of understanding, an example is provided here for illustration. Taking the transmission of failure information as an example, in an embodiment of the present application, if the current control device is a light source control chip, the data transmitted includes failure information.
[0110] Correspondingly, before sending the first pulse signal to the target device in response to the requirement of sending data to the target device, the light source control chip can perform a failure detection on the light source connected to itself. In the case of determining that the light source connected to the current control device fails, it is determined that there is a requirement to send failure information to the target device, and the failure information is generated.
[0111] Among them, the failure information may include information about the failed light source, the device identifier of the current control device, the device identifier of the controller (as the first device identifier), the type of failure, etc. Among them, the target device is a control device adjacent to the current control device and on the path between the current control device and the controller.
[0112] Next, taking the controller as the target device, the failure information is sent to the target device. For example: in response to the requirement of sending data to the target device, sending the first pulse signal to the target device includes: in response to the requirement of sending failure information to the target device, sending the first pulse signal to the target device.
[0113] Also, during data transmission, data is transmitted to the target device based on a preset level signal encoding, including: during data transmission, fault information is transmitted to the target device based on the preset level signal encoding. Wherein, after each target device receives the fault information, it 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 it is determined that there is a need to send the fault information to the next target device.
[0114] Then, each current device can, in response to the completion of the transmission of the fault information, send a pulse signal with a jump edge of a second preset frequency to the target device to notify the target device that the data transmission has ended.
[0115] Finally, until the controller 110 receives the fault information, and the controller 110 determines that the first device identifier is consistent with its own device identifier, there is no need to send the fault information, and the fault is processed according to the fault information.
[0116] In another embodiment of the present application, if the current control device is the controller, based on a single-wire bidirectional communication method, it may further include: sending a read operation instruction to the first light source control chip, and unidirectionally transmitting the read operation instruction from the first light source control chip to each controlled device between the first light source control chip and the receiving control device to the receiving control device; receiving the data corresponding to the read operation instruction fed back by the receiving control device.
[0117] The controller can read the data of each light source control chip, and each light source control chip can give feedback according to the read operation instruction. In the embodiment of the present application, the transmission of the read operation instruction and the fed-back data can both be unidirectional transmissions.
[0118] For example, when reading the transmission device of the read 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.
[0119] 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, converts the data transmission direction to the direction from the receiving control device to the controller, and based on the converted transmission direction, feeds back the data corresponding to the read operation instruction to the current control device. During the period of feeding back 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.
[0120] Based on the same inventive concept, an embodiment of the present application also provides a backlight module. Please refer to Figure 6 , Figure 6Schematic diagram of a backlight module provided by an embodiment of the present application. The backlight module includes a plurality of light sources 130 and the light driving circuit provided in the foregoing embodiment, and each light source 130 is respectively connected to each light source control chip 120 in the light driving circuit.
[0121] In the backlight module, each light source 130 is respectively 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.
[0122] Each light source control chip 120 can control the light sources 130 connected thereto according to the dimming data output by the controller 110.
[0123] Moreover, each light source control chip 120 can detect whether the connected light source is faulty, and in the case of a fault, actively generate a fault message and transmit it to the controller 100.
[0124] The light driving circuit can refer to the foregoing embodiment and will not be elaborated here. The light source 130 can be an LED or other light-emitting device.
[0125] Based on the same inventive concept, an embodiment of the present application further provides a display, which can include a display panel and the backlight module provided in the above embodiment. The display may also have other structures, which can specifically refer to the prior art and will not be elaborated here.
[0126] 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.
[0127] In the embodiment of the present application, the electronic device can be a discrete device. For example, the electronic device can be a computer including a host and a display. The electronic device can also be an integrated device. For example, the electronic device can be an electronic device such as a mobile phone, a tablet computer, or a television in which a processor and a display are integrated in the same housing. There is no limitation here.
[0128] The technical features of the above embodiments can be freely combined without conflict, and the combined embodiments are covered within the protection scope of the present application.
[0129] The detailed description of the embodiments of the present application provided in the drawings above is not intended to limit the scope of the present application to be protected, but merely represents the selected embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts belong to the protection scope of the present application.
[0130] It should be noted that like reference numerals and letters refer to like items in the following figures. Therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures.
[0131] In the description of the present application, it should also be noted 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 directly connected, or indirectly connected through an intermediate medium, and it can be the communication inside two components. For those of ordinary skill in the art, the specific meaning of the above terms in the present application can be understood according to specific situations.
[0132] The above are only embodiments of the present application and are not used to limit the protection scope of the present application. For those skilled in the art, the present application can have various changes and modifications. 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 adjacent control devices in the first direction and adjacent control devices in the second direction through the data line, and receive data sent by adjacent control devices in the first direction and adjacent control devices in the second direction through the data line; each piece of data includes: a frame header, a sender ID, a receiver ID, an operation address, an operation length, data information, a checksum information and a frame tail; The single-line bidirectional communication method comprises: During the data transmission process, the data is transmitted 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 can be any control device in the optical drive circuit except the current control device; The preset level signal encoding includes: using a pulse signal including a first number of transition edges within a preset period to represent 0; using a pulse signal including a second number of transition edges within a preset period to represent 1; Before transmitting the data to the target device based on the preset level signal encoding, the method further includes: judging whether the data line section 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 data to be sent to the target device when the data line section between the current control device and the adjacent device is idle; 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 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; 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 of the preset cycles.
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: 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 third 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.
5. The method according to claim 1, 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.
6. The method according to claim 1, 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.
7. The method according to any one of claims 2 to 6, 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.
8. The method according to claim 7, 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.
9. The method according to claim 7, 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.
10. 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.
11. 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 10.
12. A backlight module, characterized in that: include: A plurality of light sources and a light driving circuit as claimed in claim 11; Each of the light sources is connected to each of the light source control chips in the light driving circuit respectively.
13. A display, characterized in that: include: The optical driving circuit as claimed in claim 11 or the backlight module as claimed in claim 12.
14. An electronic device, characterized in that: Comprising a display as claimed in claim 13.
Citation Information
Patent Citations
LED driving chip and communication control method and circuit thereof
CN117995102A
LED driving system and port multiplexing method
CN119091817A
Driving chip, controller, backlight unit and signal transmission method
CN119314438A