Communication method, optical drive circuit and related devices based on bidirectional double lines
By adopting a bidirectional two-wire-based communication method in the backlight module, the two-way data transmission of optical driving circuits is realized, which solves the problems of high power consumption and complex structure in the prior art, and improves the working efficiency and integration.
Patent Information
- Application Number
- CN202510128228.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-05
- Publication Date
- 2025-06-03
- Estimated Expiration
- 2045-02-05
AI Technical Summary
When determining the fault of the light source control chip, the existing backlight module requires the controller to continuously provide clock signals and wait for readback data, resulting in high power consumption and low working efficiency, and complex structure and trace design.
Using a bidirectional and bi-wire-based communication method, bidirectional data transmission is realized through data lines and clock lines, allowing any control device to actively initiate data packet transmission, and providing clock signals through clock lines to reduce the controller's clock working time.
It effectively reduces the working time and power consumption of the clock signal, improves the working efficiency of the optical drive circuit, and reduces the structural complexity and the complexity of trace design.
Smart Images

Figure CN119559911B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of displays, and more particularly, to a communication method, an optical drive circuit, and related devices based on bidirectional two-wire lines. Background Art
[0002] A backlight module includes a controller, a plurality of light source control chips, and a plurality of light sources. Each light source control chip can control one or more light sources, and the controller controls the plurality of light source control chips.
[0003] Currently, in a backlight module, the controller is usually configured to send a read-back instruction to each light source control chip at regular intervals to obtain the read-back data fed back by each light source control chip, and to determine whether each light source control chip is faulty.
[0004] During the process of the controller sending the read-back instruction and waiting for the feedback of the read-back data, the controller needs to continuously provide a clock signal to each light source control chip. The continuous operation of the clock will generate relatively high power consumption. And waiting for the feedback of the read-back data will take a long time, affecting the working efficiency. In addition, if the controller needs to read data from each light source control chip, the last-stage light source control chip of the plurality of light source control chips needs to be connected to the controller to form a loop. This method requires more communication ports to be configured on the controller and corresponding connections to be made, which will increase the structural complexity of the backlight module, as well as the complexity of the wiring design and manufacturing of the backlight module. Summary of the Invention
[0005] In view of this, this application aims to provide a communication method, an optical drive circuit, and related devices based on bidirectional two-wire lines to improve the working efficiency of the optical drive circuit and reduce power consumption.
[0006] In a first aspect, an embodiment of the present application provides a communication method based on two-way two-wire, which is applied to a current control device. The current control device is any control device in an optical drive circuit. The control devices in the optical drive circuit include a controller and a light source control chip, and any two adjacent control devices are connected by a data line and a clock line; the controller and the last light source control chip receive and send data through the data line and the clock 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 the clock 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 and the clock line; the communication method based on two-way two-wire includes: obtaining a data packet to be transmitted; in response to a transmission requirement for the data packet to be transmitted, sending a clock signal to a target device through the clock line, and transmitting the data packet to be transmitted to the target device through the data line under the control of the clock signal, so that the target device receives the data packet to be transmitted through the data line under the control of the clock signal received on the clock line; the target device is a control device that is connected to the current control device through the data line and the clock line and finally receives the data packet.
[0007] In the embodiment of the present application, the transmission of the data packet can be actively initiated by any control device. Moreover, when data needs to be transmitted, the current control device provides a clock signal to the target device through the clock line. Thus, during the data transmission process, the controller does not need to provide clock signals for each control device, reducing the clock working time, and further effectively reducing the power consumption caused by the clock. Also, since the data packet is actively initiated by any control device, the controller does not need to issue a read-back instruction and then feedback the read-back data, effectively reducing the occupation of working time by data read-back and improving the overall working efficiency of the optical drive circuit. In addition, due to the two-way transmission (i.e., sending data in the first direction and the second direction, and receiving data in the first direction and the second direction), the last light source control chip of the optical drive 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 clock port and one data port, and there is no need to set ports for sending and receiving data and clock signals separately, which can further reduce the number of communication ports used at the controller end, reduce the structural complexity of the optical drive circuit, and reduce the wiring design and manufacturing difficulty of the optical drive circuit.
[0008] In one embodiment, each of the control devices is configured with corresponding identification information; the data packet to be transmitted includes first identification information of the target device; the current control device is any device other than the target device on the path from the sending control device to the target device; the sending control device is the control device that generates the data packet to be transmitted.
[0009] In the embodiments of the present application, by configuring identification information for each control device and configuring first identification information of the receiving control device in the data packet, the data packet can be accurately sent to the receiving control device. Different from the prior art in which the light source control chip can only forward the data packet sent by the previous-level light source control chip (the light source control chip cannot actively send data packets to other light source control chips), in the embodiments of the present application, the sending and receiving of data packets between light source control chips are realized, which can improve the control effectiveness of the light driving circuit, help connect more light source control chips in the same light driving circuit, and improve the integration level.
[0010] In one embodiment, the obtaining of the data packet to be transmitted includes: receiving the data packet transmitted by the previous-level control device; determining whether its own device identification matches the first identification information in the data packet transmitted by the previous-level control device; and when its own device identification does not match the first identification information of the data packet transmitted by the previous-level control device, determining the data packet transmitted by the previous-level control device as the data packet to be transmitted.
[0011] In the embodiments of the present application, the receiving party and the initiating party of the data packet can be any control device, and the control device on the path between the receiving party and the initiating party only needs to forward the data packet. Therefore, each control device judges the identification information of the data packet transmitted by the previous-level control device to determine whether to send the data packet to be transmitted, so that the data packet to be transmitted can be correctly transmitted downward until it reaches the receiving party. This method can enable each control device to determine the receiving party of the data and accurately transmit the data packet in the case of no fixed receiving party, improving the reliability of communication between each control device in the bidirectional two-wire system.
[0012] In one embodiment, the light source control chip is used to connect to a light source; if the current control device is the light source control chip, the data packet to be transmitted includes the status information of the control device that generates the data packet to be transmitted; or, the obtaining of the data packet to be transmitted includes: detecting the connected light source; and if the connected light source has a fault, generating the data packet to be transmitted based on the faulty light source.
[0013] In the embodiments of the present application, after detecting a light source failure, the light source control chip can actively generate and send a data packet to instruct the controller to process the failure in a timely manner. This method does not require the controller to send a read-back instruction and wait for the acquisition of the failure information, and can improve the timeliness of failure handling in case of a failure. Moreover, the data packet to be transmitted can also include the status information of the control device that generates the data packet to be transmitted. Thus, each control device can send its own status information to other control devices to indicate the correct transmission of the data packet.
[0014] In one embodiment, before sending a clock signal to a target device through the clock line and transmitting the data packet to be transmitted to the target device through the data line under the control of the clock signal, the method further includes: determining that the clock line is in an idle state.
[0015] Since data packets can be transmitted bidirectionally between control devices, it is possible that two devices transmit data to each other simultaneously. In the embodiments of the present application, it is determined that the clock line is in an idle state before data transmission, and the data packet is transmitted in the idle state, so as to reduce the possible conflict situation in data transmission and improve the reliability of communication between control devices under two-way two-wire.
[0016] In one embodiment, the method further includes: if the clock line is in a non-idle state, continuously detecting whether the clock line is in an idle state; after detecting that the clock line is in an idle state, sending a clock signal to the target device through the clock line, and transmitting the data packet to be transmitted to the target device through the data line under the control of the clock signal.
[0017] In the embodiments of the present application, if the clock line is in a non-idle state, the clock line is continuously detected, the clock signal is transmitted after the clock line is idle, and the data packet is transmitted through the data line. Thus, the data packet can be transmitted to the target device, effectively reducing the situation of data packet loss and improving the reliability of communication between control devices under two-way two-wire.
[0018] In one embodiment, the current control device is further configured to receive data packets sent by an adjacent control device, and the communication method based on two-way two-wire further includes: if the current control device simultaneously receives clock signals sent by two adjacent control devices through the clock line, determining the priorities of the two adjacent control devices based on a preset priority relationship; receiving the clock signal and data packet sent by the adjacent control device with a higher priority, and instructing the adjacent control device with a lower priority to wait for transmission.
[0019] In the embodiments of the present application, by setting priorities, two adjacent control devices transmit data packets in sequence, effectively reducing data transmission conflicts and the loss of data packets due to such conflicts, and improving the reliability of communication between control devices in a bidirectional two-wire scenario.
[0020] In a second aspect, an optical driving circuit provided by an embodiment of the present application includes: a plurality of control devices, a data line, and a clock line. The plurality of control devices include a controller and a light source control chip, and any two adjacent control devices communicate in series through the data line and the clock line; wherein, any of the control devices is configured to act as a current control device and execute the communication method based on bidirectional two-wires according to any item in the first aspect.
[0021] In a third aspect, a backlight module provided by an embodiment of the present application includes: a plurality of light sources and the optical 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 optical driving circuit.
[0022] In a fourth aspect, a display provided by an embodiment of the present application includes the optical driving circuit described in the second aspect or the backlight module described in the third aspect.
[0023] In a fifth aspect, an electronic device provided by an embodiment of the present application includes the display described in the fourth aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] To more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required to be used in the embodiments of the present application. It should be understood that the following drawings only show some embodiments of the present application and should not be regarded as limiting the scope. For those skilled in the art, other relevant drawings can be obtained based on these drawings without creative efforts.
[0025] Figure 1 Schematic diagram of an optical driving circuit provided by an embodiment of the present application;
[0026] Figure 2 Flowchart of a communication method based on bidirectional two-wires provided by an embodiment of the present application;
[0027] Figure 3 First schematic diagram of data transmission conflict provided by an embodiment of the present application;
[0028] Figure 4 Second schematic diagram of data transmission conflict provided by an embodiment of the present application;
[0029] Figure 5 Schematic diagram of a backlight module provided by an embodiment of the present application.
[0030] Icons: Controller 110; Light source control chip 120; Light source 130. Detailed implementation
[0031] Next, the technical solutions in the embodiments of the present application will be described with reference to 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.
[0032] First, an embodiment of the present application provides an optical drive circuit, which can be configured in a backlight module to control the light source in the backlight module.
[0033] Please refer to Figure 1 , Figure 1 which is a schematic diagram of an optical drive circuit provided by an embodiment of the present application. The optical drive circuit includes: a controller 110 and multiple light source control chips 120.
[0034] In the embodiment of the present application, both the controller 110 and the light source control chip 120 are control devices. Between any adjacent control devices, they are communicatively connected by two lines, namely the clock line SDA and the data line SCL.
[0035] For example, as Figure 1 shown, if the optical drive circuit includes a controller and N light source control chips 120, the serial numbers of each light source control chip are 1, 2, 3... N respectively. The controller is connected to the light source control chip with the serial number 1 through SDA and SCL. SDA is the data line and SCL is the clock line. Similarly, the light source control chip with the serial number 1 and the light source control chip with the serial number 2 are also connected through SDA and SCL. The light source control chip with the serial number k - 1 and the light source control chip with the serial number k are connected by two lines, SDA and SCL, where k is less than or equal to N and greater than 1. Among them, in the optical drive circuit, it can be that after arranging each control device, they are connected in a daisy chain manner through different data line intervals of the data line and the clock line.
[0036] The controller 110 is used to output control instructions and dimming data for the light source.
[0037] In this embodiment, the controller 110 may include a data port and a clock port. The data port is used to connect a group of light source control chips through a data line, and the clock port is used to pass the clock first. Among them, a group of light source control chips includes multiple light source control chips 120 connected in series through a data line.
[0038] In this embodiment, the controller 110 can send control instructions and dimming data for the light source to each light source control chip 120 of each group of light source control chips through the data port.
[0039] In this embodiment, the controller 110 may be a device with processing functions such as an FPGA (Field Programmable Gate Array) or an MCU (Microcontroller Unit). The functions, structure, transmitted data, etc. of the controller 110 may refer to the controller 110 of the existing backlight module, and will not be elaborated here.
[0040] 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).
[0041] 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 the current control device for executing the two-way two-wire communication method provided by the present application.
[0042] In the embodiments of the present application, the controller and the last light source control chip may receive and send data through the data line and the clock 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 the clock 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 and the clock line. The first direction and the second direction respectively represent the direction pointing to the controller and the direction pointing to the last light source control chip. That is, in the embodiments of the present application, the intermediate light source control chips can perform two-way two-wire data transmission through the data line and the clock line.
[0043] In the existing data transmission solution through a data line and a clock line, each control device usually sets an input port and an output port respectively. For example, the controller will set an input port to receive data and an output port to send data. The input ports of each light source control chip are connected to the output port of the previous-level control device, and the output port of the last-level light source control chip will be connected to the input port of the controller. This method is not only a one-way data transmission, but also uses more ports, and the connection between the output port of the last-level light source control chip and the input port of the controller will make the wiring more complex. In the embodiments of the present application, by enabling each control device to implement bidirectional two-wire communication, the use of communication ports of the controller can be reduced, and the last-level light source control chip does not need to be connected to the controller to form a loop. Thus, the structural complexity of the light driving circuit is effectively reduced, and the wiring design and manufacturing difficulty of the light driving circuit are reduced.
[0044] Next, the communication method based on bidirectional two-wires executed by any control device of the present application will be described. Please refer to Figure 2 , Figure 2 which is a flowchart of the communication method based on bidirectional two-wires provided by an embodiment of the present application. The communication method based on bidirectional two-wires includes:
[0045] S110, obtaining a data packet to be transmitted.
[0046] In the embodiments of the present application, whether it is the controller 110 or the light source control chip 120, both can initiate the transmission of data packets actively. For example, the light source control chip 120 actively sends a data packet to the controller without an instruction from the controller 110.
[0047] In the embodiments of the present application, the data packet to be transmitted can be generated by the current control device itself or sent by an adjacent control device of the current control device. For example, the control device with the serial number k can receive a data packet sent by the control device with the serial number k-1 or a data packet sent by the control device with the serial number k+1. At the same time, in the embodiments of the present application, the data transmission can be bidirectional. For example, the control device with the serial number k can also send a data packet to the control device with the serial number k-1 or send a data packet to the control device with the serial number k+1.
[0048] In the embodiments of the present application, the content of each data packet can include: a frame header, a sender ID (identification information), a receiver ID, an operation address, an operation length, data information, check information, and a frame tail. Among them, the sender ID is the second identification information of the sender control device that initially sends the data packet to be transmitted, and the receiver ID is the first identification information of the receiver control device that finally receives the data packet to be transmitted. The receiver control device is also the target device in the embodiments of the present application.
[0049] 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; when it receives the frame tail, it means the transmission ends 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 data transmission and reception. The above content carried in the data can refer to the prior art and will not be elaborated here.
[0050] In the embodiments of the present application, since the data transmission is two-way, 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, corresponding identification information can be configured for each control device, and the second identification information of the sender and the first identification information of the receiver are simultaneously written into the data to be transmitted, so as to judge the data transmission direction according to the second identification information and the first identification information. Correspondingly, after the control device generates the data packet, the second identification information and the first identification information need to be added to the data packet to be transmitted.
[0051] In some embodiments, only the first identification information can be configured in the data packet, and the second identification information is not configured. This method can be applied to the situation where the data initiator is fixed. For example, the controller will actively initiate data transmission and send data packets to some or all of the light source control chips. At this time, the sender of the data packet is fixed, and the controller can only configure the first identification information of the receiving control device that receives the data packet in the data packet it needs to output. The above is only an example and should not be a limitation to the present application.
[0052] In the embodiments of the present application, after power-on initialization, corresponding device identification information can be configured for each control device. For example, the identification information can be configured according to the connection order of each control device in the optical drive circuit. For example, the identification information of the controller 110 is 0, the identification information of the light source control chip 120 connected to the controller is 1, and the identification information of the subsequent light source control chips 120 is 2, 3, 4, 5... N in sequence.
[0053] It should be noted that in the embodiments of the present application, there may be multiple control devices on the path between the sending control device and the receiving control device. The transmission of data packets is through each control device between the sending control device and the receiving control device, and the data packets are sequentially transmitted from the sending control device to the receiving control device. In the data packet, the carried second identification information is the identification information of the sending control device that initially issued the data packet to be transmitted, and the first identification information is the identification information of the receiving control device that finally receives the data packet to be transmitted. That is, the identification information of each control device on the path between the sending control device and the receiving control device (target device) will not appear in the data packet.
[0054] Correspondingly, the current control device that executes the communication method based on two-way double lines provided by the present application is any control device other than the receiving control device on the path between the sending control device and the receiving control device (target device). Among them, the control device that finally receives the data packet is the target device. In fact, the current control device is transmitted to the target device by forwarding through other control devices between the current control device and the target device. Therefore, the control device that receives the data packet output by the current control device is actually: the control device adjacent to the current control device on the path between the current control device and the target device.
[0055] Since the data packet will not be transmitted downward at the receiving control device, for S110, it may include: receiving the data packet transmitted by the previous control device; determining whether its own device identification matches the first identification information in the data packet transmitted by the previous control device; and in the case where its own device identification does not match the first identification information of the data packet transmitted by the previous control device, determining the data packet transmitted by the previous control device as the data packet to be transmitted.
[0056] In the prior art, usually, the controller 110 sends instructions or data to some or all of the light source control chips 120, and the controller 110 receives the information fed back by each light source control chip 120. After receiving the information sent by the previous light source control chip, the light source control chip 120 usually forwards it directly and finally transmits it to the controller. The controller locates the fault according to the information without parsing and retaining the received data. Therefore, in the prior art, the data sender and receiver are usually fixed.
[0057] Different from the existing method, in the embodiments of the present application, since any control device can initiate the transmission of a data packet as the current control device and the sending control device, and determine any other control device as the receiving control device, that is, the sender and receiver are usually not fixed, and any two light source control chips 120 can also transmit data to each other.
[0058] Therefore, in an embodiment of the present application, each control device needs to determine whether the received data packet needs to be transmitted further. Therefore, S110 may include: receiving a data packet transmitted by a previous-stage control device; determining whether its own device identifier matches the first identifier information in the data packet transmitted by the previous-stage control device; and in the case where its own device identifier does not match the first identifier information of the data packet transmitted by the previous-stage control device, determining the data packet transmitted by the previous-stage control device as a data packet to be transmitted.
[0059] By setting the second identifier information and the first identifier information, and enabling each control device to judge the first identifier information in the data packet and its own identifier information, it can be determined whether the data packet needs to be transmitted further. Thus, any two control devices in the optical drive circuit can perform data transmission.
[0060] In some embodiments of the present application, determining whether its own device identifier matches the first identifier information in the data packet transmitted by the previous-stage control device may include: determining whether its own device identifier is the same as the first identifier information in the data packet transmitted by the previous-stage control device. In the case of being the same, it is determined as a match; in the case of being different, it is determined as a non-match.
[0061] In some other embodiments of the present application, a specific value representing all control devices may be preset. If the first identifier information is this specific value, all devices need to respond to this data packet. Correspondingly, determining whether its own device identifier matches the first identifier information in the data packet transmitted by the previous-stage control device may further include: in the case where it is determined that the first identifier information is the specific value representing all control devices, also determining the data packet transmitted by the previous-stage control device as a data packet to be transmitted and receiving it.
[0062] The data packet to be transmitted is not limited to being transmitted by the previous-stage control device, and may also be generated by the current control device. For example, a light source control chip is used to connect to a light source. In an embodiment of the present application, if the current control device is a light source control chip, obtaining a data packet to be transmitted may include: detecting the connected light source; if the connected light source has a fault, generating a data packet to be transmitted based on the faulty light source.
[0063] In this embodiment, generating a data packet to be transmitted based on the faulty light source includes relevant information of the faulty light source, using the identifier information of the current control device itself as the second identifier information, and using the identifier information of the controller as the first identifier information.
[0064] In this embodiment, the light source control chip 120 can detect faults of the light sources connected thereto. When it is determined that a connected light source is faulty, a data packet to be transmitted to the controller is generated, and the data packet to be transmitted is sent to the controller sequentially through the control devices between the current control device and the controller.
[0065] In this way, the controller 110 does not need to send a read-back instruction to each light source control chip, nor does it need to wait for the light source control chip to feedback read-back data. After a fault occurs, each light source control chip can send a data packet including fault information to the controller by itself, effectively reducing the impact on the overall working efficiency of the optical drive circuit caused by the transmission of the read-back instruction and the read-back data when there is no fault in the controller 110 and the light source control chip 120.
[0066] In some other embodiments of the present application, the data packet to be transmitted may also include the status information of the control device (sending control device) that generates the data packet to be transmitted. For example, the status information of each register of the light source control chip is used to indicate the target device to know the status of the sending control device, so that the data packet can be transmitted accurately and orderly.
[0067] S120, in response to the sending requirement of the data packet to be transmitted, sends a clock signal to the target device through the clock line, and transmits the data packet to be transmitted to the target device through the data line under the control of the clock signal.
[0068] As described above, the target device is a control device connected to the current control device through the data line and the clock line, and the target device is adjacent to the current control device. In the embodiments of the present application, the target device can receive the clock signal through the clock line, and under the control of the clock signal, receive the data packet to be transmitted sent by the current control device through the data line. The prior art of controlling the data line to send and receive data packets based on the clock signal will not be elaborated here.
[0069] Compared with the prior art in which the controller 110 provides the clock signal for data transmission, in the embodiments of the present application, the transmission of the clock signal is only between the two control devices that need to transmit data packets, and between other control devices that do not perform data transmission, the transmission of the clock signal will no longer be carried out. Compared with the prior art, it can effectively reduce the power consumption caused by the operation of the clock line and the transmission of the clock signal.
[0070] Please refer to Figure 3 , Figure 3 FIG. 22 is a first schematic diagram of data transmission conflict provided in an embodiment of the present application, in which the arrow represents the data transmission direction. In the embodiments of the present application, since the transmission of the data packet is two-way, there may be a situation where adjacent control devices send data packets to each other at the same time, which may lead to abnormal data transmission, data packet loss, etc.
[0071] Therefore, in an embodiment of the present application, before S120, it is necessary to determine that the clock line is in an idle state.
[0072] In an embodiment of the present application, determining that the clock line is in an idle state may be to determine whether there is a change in the level on the clock line, such as whether there is a transition edge, and whether there are both high and low levels within a preset time period.
[0073] After determining that the clock line is in an idle state, then allow the clock signal to be transmitted through the clock line, and transmit the data packet to be transmitted to the target device through the data line under the control of the clock signal.
[0074] In an embodiment of the present application, if the clock line is in a non-idle state, then it is possible to continuously detect whether the clock line is in an idle state; after detecting that the clock line is in an idle state, then send a clock signal to the target device through the clock line, and transmit the data packet to be transmitted to the target device through the data line under the control of the clock signal.
[0075] In an embodiment of the present application, continuous detection may be to perform a detection every other period of time. During the interval, the current control device waits for the transmission of the data packet. By this method, it is possible to effectively avoid the situation of abnormal data transmission caused by data transmission conflicts.
[0076] Please refer to Figure 4 , Figure 4 which is the second schematic diagram of data transmission conflict in an embodiment of the present application. Among them, the arrow represents the data transmission direction. In an embodiment of the present application, for a control device, there may be a situation where two adjacent control devices both send data packets to this control device. For example, the light source control chips numbered k + 1 and k - 1 simultaneously send data packets to the light source control chip numbered k. This situation may also cause data packet loss.
[0077] Therefore, in an embodiment of the present application, the communication method based on two-way two-wire may further include: if the current control device simultaneously receives clock signals sent by two adjacent control devices through the clock line, then determine the priorities of the two adjacent control devices based on a preset priority relationship; receive the clock signal and data packet sent by the adjacent control device with a higher priority, and instruct the adjacent control device with a lower priority to wait for transmission.
[0078] In an embodiment of the present application, the configuration method of the preset priority relationship is not limited. For example, it may be configured according to the importance of each control device in the optical drive circuit, or configured according to the connection order of each control device in the optical drive circuit.
[0079] In the embodiments of the present application, when receiving the clock signals of two control devices simultaneously, enabling the two control devices to transmit according to the priority successively can effectively reduce data conflicts and prevent abnormal transmission and loss of data packets.
[0080] In summary, when the communication method based on bidirectional two-wire provided by the present application is applied to any control device in the optical drive circuit, the data packet transmission can be initiated actively by any control device. And when data needs to be transmitted, the current control device provides a clock signal to the target device through the clock line. Thus, during the data transmission process, the controller does not need to provide clock signals for each control device, reducing the clock working time, and further effectively reducing the power consumption caused by the clock. Also, since the data packet is initiated actively by any control device, the controller does not need to issue a read-back instruction and then wait for the feedback of the read-back data, effectively reducing the occupation of working time by data read-back and improving the overall working efficiency of the optical drive circuit.
[0081] Based on the same inventive concept, embodiments of the present application also provide a backlight module. Please refer to Figure 5 , Figure 5 which is a schematic diagram of the backlight module provided by an embodiment of the present application. The backlight module includes a plurality of light sources 130 and the optical drive circuit provided by the foregoing embodiment, and each light source 130 is respectively connected to each light source control chip 120 in the optical drive circuit.
[0082] In the backlight module, each light source 130 is respectively connected to each light source control chip 120 in the optical drive circuit, and each light source connection channel of each light source control chip 120 can be connected to one or more light sources.
[0083] Each light source control chip 120 can control the respective connected light sources 130 according to the dimming data output by the controller 110.
[0084] Also, each light source control chip 120 can detect whether the connected light source is faulty, and in case of a fault, actively generate a fault message and transmit it to the controller 100.
[0085] The optical drive 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 devices.
[0086] Based on the same inventive concept, embodiments of the present application also provide a display, which can include a display panel and the backlight module provided by the above embodiment. The display may also have other structures, which can specifically refer to the prior art and will not be elaborated here.
[0087] Based on the same inventive concept, embodiments of the present application also provide an electronic device, which includes the display provided by the above embodiment.
[0088] 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, etc., in which the processor and the display are integrated in the same housing. There is no limitation here.
[0089] The technical features of the above embodiments can be freely combined without conflict, and the combined embodiments are covered by the protection scope of the present application.
[0090] 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 claimed, but merely represents selected embodiments of the present application. All other embodiments obtained by those of ordinary skill in the art based on the embodiments in the present application without creative efforts belong to the protection scope of the present application.
[0091] It should be noted that like reference numerals and letters denote 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.
[0092] In the description of the present application, it should also be noted that, unless otherwise clearly defined and limited, the term "connection" should be understood in a broad sense. For example, it may be a fixed connection, a detachable connection, or an integral connection; it may be an electrical connection; it may be directly connected, or indirectly connected through an intermediate medium, and it may be the communication inside two elements. 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 circumstances.
[0093] The above are only the 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 may 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 communication method based on two-way two-line, characterized in that: Applied to a current control device, the current control device is any control device in a light driving circuit, the control device in the light driving circuit includes a controller and a light source control chip, and any two adjacent control devices are connected via a data line and a clock line; The light source control chip can actively initiate the transmission of a data packet; the data packet includes: a frame header, a sender ID, a receiver ID, an operation address, an operation length, data information, check information and a frame tail; The controller and the last light source control chip receive and send data through the data line and the clock 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 the clock 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 and the clock line; The bidirectional two-line communication method comprises: Get the data packet to be transmitted; In response to the transmission demand of the data packet to be transmitted, a clock signal is transmitted to the target device through the clock line, and the data packet to be transmitted is transmitted to the target device through the data line under the control of the clock signal, so that the target device receives the data packet to be transmitted through the data line under the control of the clock signal received by the clock line; the target device is a control device connected to the current control device through the data line and the clock line, and finally receives the data packet; the transmission of the clock signal is only transmitted between two control devices that need to transmit data packets; Each of the control devices is configured with corresponding identification information; the data packet to be transmitted includes the first identification information of the target device and the second identification information of the sender control device; The current control device is any device on the path from the sender control device to the target device except the target device; the sender control device is the control device that generates the data packet to be transmitted; Before sending a clock signal to a target device through the clock line and transmitting the data packet to be transmitted to the target device through the data line under the control of the clock signal, the method further includes: determining that the clock line is in an idle state; If the clock line is in a non-idle state, continuously detecting whether the clock line is in an idle state; after detecting that the clock line is in an idle state, sending a clock signal to the target device through the clock line, and transmitting the data packet to be transmitted to the target device through the data line under the control of the clock signal; The current control device is also used to receive data packets sent by an adjacent control device. The bidirectional two-line based communication method also includes: if the current control device simultaneously receives clock signals sent by two adjacent control devices through the clock line, the priority of the two adjacent control devices is determined based on a preset priority relationship; the clock signal and data packet sent by the adjacent control device with a higher priority is received, and the adjacent control device with a lower priority is instructed to wait for transmission.
2. The method according to claim 1, characterized in that: The step of obtaining a data packet to be transmitted comprises: Receive data packets from the front-end control device; Determine whether the device identification of the device matches the first identification information in the data packet transmitted by the preceding control device; In the case that the device identification of the device itself does not match the first identification information of the data packet transmitted by the preceding control device, it is determined that the data packet transmitted by the preceding control device is the data packet to be transmitted.
3. The method according to claim 1, characterized in that The light source control chip is used to connect the light source; If the current control device is the light source control chip, the data packet to be transmitted includes status information of the control device that generates the data packet to be transmitted; Or, the obtaining of the data packet to be transmitted includes: Detect the connected light source; If the connected light source fails, the data packet to be transmitted is generated based on the failed light source.
4. A light driving circuit, characterized in that: include: A plurality of control devices, data lines and clock lines, wherein the plurality of control devices include a controller and a light source control chip, and any adjacent control devices communicate in series via the data lines and the clock lines; Wherein, any of the control devices is used as a current control device to execute the bidirectional two-line based communication method as described in any one of claims 1-3.
5. A backlight module, characterized in that: include: A plurality of light sources and a light driving circuit as claimed in claim 4; Each of the light sources is connected to each of the light source control chips in the light driving circuit respectively.
6. A display, characterized in that: It comprises the optical driving circuit as claimed in claim 4 or the backlight module as claimed in claim 5.
7. An electronic device, characterized in that: Comprising a display as claimed in claim 6.
Citation Information
Patent Citations
Master-slave controller communication method of APF control system
CN113985726A
Light driving circuit, backlight module, dimming method, display and electronic equipment
CN118314842A
Electronic system, address configuration and data transmission method, slave device, and electronic apparatus
WO2024178689A1