Electronic equipment and communication method
By adding a programmable logic unit between the control unit and the controlled device, expanding the I2C channel and transmitting it through the differential signal line, the problem of access interruption caused by the shortage of I2C interfaces and the hanging of the controlled device is solved, and the flexible configuration of the I2C channel is realized and system scalability.
Patent Information
- Application Number
- CN202410428125.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-10
- Publication Date
- 2024-08-23
AI Technical Summary
In servers and switches, when the mainboard accesses multiple controlled devices in the backplane through the I2C bus, the number of I2C interfaces in the control unit is in short supply, and when a controlled device hangs, all controlled devices on the entire bus will fail. Access, and the number of channels expanded by the I2C expansion device is fixed and cannot be flexibly configured.
By adding a programmable logic unit between the control unit and the controlled device, the number of I2C channels is expanded, and differential signal lines are used for data transmission to achieve flexible configuration of I2C channels, and through different I2C bus connections to avoid the death of the controlled device. access issues.
The control unit uses one I2C interface to access multiple controlled devices, which solves the problem of access interruption caused by the shortage of I2C interfaces and the hang-up of controlled devices. The number of I2C channels is flexibly configured through programming, which improves the scalability and stability of the system. sex.
Smart Images

Figure CN118535509A
Abstract
Description
Technical Field
[0001] The present application relates to communication technology, and in particular to an electronic device and a communication method. Background Art
[0002] The I2C (Inter-Integrated Circuit) communication principle is a simple and efficient serial communication protocol suitable for communication between various integrated circuits. With the development of network communication technology, it has been widely used in electronic devices, sensors, displays and other fields.
[0003] A main board and a backplane are usually provided in a server and a switch. When a control unit in the main board accesses multiple controlled devices in the backplane through an I2C bus, there is a problem of a shortage of I2C interfaces of the control unit. Summary of the invention
[0004] The present application provides an electronic device and a communication method, which are used to solve the problem of a shortage of I2C interfaces of a control unit when a control unit in a mainboard accesses multiple controlled devices in a backplane through an I2C bus.
[0005] In one aspect, the present application provides an electronic device, the electronic device comprising: a main board and a backboard; the main board comprises a control unit and a first programmable logic unit; the backboard comprises: a second programmable logic unit and N controlled devices;
[0006] The control unit and the first programmable logic unit, as well as the second programmable logic unit and the controlled device are connected via an I2C bus, and the first programmable logic unit and the second programmable logic unit are connected via a differential signal line;
[0007] The first programmable logic unit and the second programmable logic unit are used to transmit I2C data between the control unit and the controlled device.
[0008] Optionally, the first programmable logic unit is specifically used to encode the first I2C data sent by the control unit to the target controlled device and the identifier of the target controlled device to obtain a first data frame, and send the first data frame to the second programmable logic unit;
[0009] The second programmable logic unit is specifically configured to decode the first data frame to obtain the first I2C data and an identifier of the target controlled device; and send the first I2C data to the target controlled device according to the identifier of the target controlled device.
[0010] Optionally, the second programmable logic unit is specifically used to encode the second I2C data sent by the target controlled device to the control unit and the identifier of the target controlled device to obtain a second data frame, and send the second data frame to the first programmable logic unit;
[0011] The first programmable logic unit is specifically used to decode the second data frame to obtain the second I2C data and the identifier of the target controlled device; and send the second I2C data to the control unit.
[0012] Optionally, the identifier of the target controlled device is an identifier of an I2C channel corresponding to the target controlled device.
[0013] Optionally, the first programmable logic unit is further used to obtain a mapping relationship between the identifier of the controlled device and the corresponding I2C channel; the second programmable logic unit is further used to obtain a mapping relationship between the identifier of the controlled device and the corresponding I2C channel.
[0014] Optionally, the first data frame and the second data frame both include: a first field and a second field; the first field includes: an identifier of a receiving end of the corresponding I2C data; the second field includes: a status code, and the status code is used to indicate the content of the corresponding I2C data.
[0015] Optionally, the first programmable logic unit and the second programmable logic unit are further used to obtain a mapping relationship between a status code and content of I2C data.
[0016] Optionally, the first programmable logic unit is further used to send a clock extension signal to the control unit so that the control unit delays sending the first I2C data.
[0017] Optionally, the second programmable logic unit is further configured to respond to a clock stretching signal triggered by the controlled device to delay receiving second I2C data sent by the controlled device.
[0018] On the other hand, the present application provides a communication method, wherein the electronic device comprises: a mainboard and a backplane; the mainboard comprises a control unit and a first programmable logic unit; the backplane comprises: a second programmable logic unit and N controlled devices;
[0019] The control unit and the first programmable logic unit, and the second programmable logic unit and the controlled device are connected via an I2C bus, and the first programmable logic unit and the second programmable logic unit are connected via a low voltage differential signal line. The method includes:
[0020] The first programmable logic unit and the second programmable logic unit transmit I2C data between the control unit and the controlled device.
[0021] The electronic device and communication method provided by the present application expand the number of I2C channels between the second programmable logic unit and the controlled device by adding a first programmable logic unit and a second programmable logic unit. The control unit uses an I2C interface to access multiple controlled devices, solving the problem of the shortage of I2C interfaces of the control unit. The second programmable logic unit and the controlled device are connected through different I2C buses respectively, solving the problem that when a controlled device is hung, the control unit cannot access all controlled devices on the bus. By programming the first programmable logic unit and the second programmable logic unit, the number of I2C channels can be flexibly configured, solving the problem that the number of I2C channels that can be expanded by the I2C expansion device is small. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0023] Figure 1 A schematic diagram of the structure of a first electronic device provided by the prior art;
[0024] Figure 2 A schematic diagram of the structure of a second electronic device provided by the prior art;
[0025] Figure 3 A schematic diagram of the structure of a third electronic device provided by the prior art;
[0026] Figure 4 A schematic diagram of an I2C data format;
[0027] Figure 5 A schematic diagram of another I2C data format;
[0028] Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application;
[0029] Figure 7 A flow chart of a communication method provided in an embodiment of the present application;
[0030] Figure 8 A schematic diagram of data transmission between a first programmable logic unit and a second programmable logic unit;
[0031] Fig. 9 A flowchart of another communication method provided in an embodiment of the present application;
[0032] Fig.10 A state transition diagram provided for an embodiment of the present application;
[0033] Fig.11 Another state transition diagram provided for an embodiment of the present application.
[0034] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0035] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0036] The I2C (Inter-Integrated Circuit) communication principle is a simple and efficient serial communication protocol suitable for communication between various integrated circuits. With the development of network communication technology, it has been widely used in electronic devices, sensors, displays and other fields.
[0037] Servers, switches and other electronic devices are usually provided with a mainboard and a backplane, wherein the mainboard includes a control unit and the backplane includes a controlled device. In some embodiments, the control unit may also be referred to as a host and the controlled device as a slave, which is not distinguished in this embodiment.
[0038] The way that the mainboard accesses the controlled device in the backplane through the I2C bus is also called cross-board I2C communication. There are mainly three types:
[0039] (1) Figure 1 The first electronic device provided by the prior art is a schematic diagram of the structure. Figure 1 As shown, the control unit is connected to a controlled device through an I2C interface, and an I2C channel is formed between the I2C interface of the control unit and the controlled device. The control unit can only access a single controlled device through an I2C channel. When the control unit needs to access multiple controlled devices, it needs to be connected to the controlled devices through multiple I2C interfaces respectively to form multiple I2C channels. The control unit can access the corresponding controlled devices through the I2C channel.
[0040] This approach has the problem of a shortage of I2C interfaces of the control unit.
[0041] (2) Figure 2 The following is a schematic diagram of the structure of a second electronic device provided by the prior art. Figure 2 As shown, the control unit is connected to multiple controlled devices through an I2C interface, and the control unit uses an I2C bus to communicate with multiple controlled devices, thereby accessing multiple controlled devices. Because multiple controlled devices are connected to the control unit through an I2C bus, when a controlled device on the bus is hung, it will always occupy the bus, and the control unit cannot access the remaining controlled devices through the bus.
[0042] This method has the problem that when a controlled device hangs up, all controlled devices on the bus cannot be accessed.
[0043] (3) Figure 3 The schematic diagram of the structure of the third electronic device provided by the prior art. Figure 3 As shown, the control unit is connected to the I2C expansion device through an I2C interface, and the I2C expansion device and the controlled device are connected through the I2C bus. An I2C channel is formed between the control unit and the I2C expansion device, and the I2C channel between the I2C expansion device and the controlled device is extended to four or eight, depending on the number of I2C channel extensions supported by the I2C expansion device.
[0044] This approach has the following disadvantages: the number of I2C channels that can be expanded by the I2C expansion device is small, and the number of I2C channels is fixed to four or eight and cannot be flexibly configured.
[0045] In summary, the prior art is not conducive to the main board in the electronic device accessing multiple controlled devices through the I2C bus across boards.
[0046] In view of this, the present application proposes an electronic device, which solves the above-mentioned problem that exists when the main board accesses multiple controlled devices through the I2C bus across boards by adding a programmable logic unit between the control unit and the controlled device and expanding the number of I2C channels.
[0047] For ease of understanding, the format of I2C data is explained below.
[0048] Figure 4 FIG. 1 is a schematic diagram of an I2C data format. Figure 4As shown, when the control unit writes data to the controlled device, the following I2C data can be transmitted between the control unit and the controlled device: start signal S, address byte, slave response signal (Acknowledgment, ACK), write data, stop signal P. The address byte can include, for example, a 7-bit slave address and a 1-bit read / write bit (Read / Write, R / W). The slave address can be the address set at the factory. The read / write bit is '0', indicating that the control unit writes data to the controlled device.
[0049] Figure 5 FIG. 1 is a schematic diagram of another I2C data format. Figure 5 As shown, when the control unit reads data from the controlled device, the following I2C data can be transmitted between the control unit and the controlled device, including: start signal S, address byte, slave response signal ACK, read data, host response signal ACK, host non-response signal (Not Acknowledgment, NACK), stop signal P. The address byte can include, for example, a 7-bit slave address and a 1-bit read / write bit R / W. The read / write bit is '1', indicating that the control unit reads data from the controlled device.
[0050] Figure 6 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Figure 6 As shown, the electronic device may include: a main board and a backboard; the main board may include: a control unit and a first programmable logic unit; the backboard may include: a second programmable logic unit and N controlled devices;
[0051] The control unit and the first programmable logic unit, as well as the second programmable logic unit and the controlled device are connected via an I2C bus, and the first programmable logic unit and the second programmable logic unit are connected via a differential signal line.
[0052] The differential signal line can be a signal line that can transmit signals on both lines, and the two signals are equal in size and opposite in polarity, for example, it can be a Universal Serial Bus (USB), Ethernet, Low-Voltage Differential Signaling (LVDS), etc. The differential signal line has the advantage of strong anti-interference ability. The data transmission between the first programmable logic unit in the mainboard and the second programmable logic unit in the backplane is carried out through LVDS, which can improve the stability of the transmitted data. The following embodiments are schematically described by taking the differential signal line as LVDS as an example.
[0053] The motherboard may be, for example, a core component of an electronic device, and may connect and control various parts of the electronic device. The motherboard may include, for example, a control unit. Optionally, in addition to the control unit, it may also include components such as memory, interfaces, and power management.
[0054] The backplane may be connected to a mainboard or other components, for example. The backplane may include a plurality of controlled devices, and a control unit on the mainboard may communicate with the controlled devices.
[0055] The control unit may be, for example, any unit capable of initiating I2C communication and controlling the read and write operations of the controlled device, and may include any processing unit such as a microcontroller, a processor, a programmable logic device, etc. Optionally, in addition to the processing unit, a peripheral circuit unit of the processing unit may also be included.
[0056] The controlled device may be, for example, any device that can receive an I2C control instruction and thereby perform a corresponding operation, and may include, for example, any device such as an I2C sensor, an I2C memory, an I2C display device, an I2C clock module, and the like.
[0057] The first programmable logic unit and the second programmable logic unit can be any module that can receive and send I2C data in a programmable manner, for example, any programmable logic device such as a Field Programmable Gate Array (FPGA) and a Complex Programming Logic Device (CPLD). Programmable logic devices usually have a large number of pins. In addition to the dedicated pins for clock, power supply and configuration, the remaining pins can be responsible for input / output signals. By programming the programmable logic device, the technician can configure the input / output pins to different numbers of I2C interfaces or LVDS interfaces according to the number of controlled devices required by the user, thereby expanding the number of I2C channels. Figure 6 The method shown can achieve expansion of one I2C channel to 16 I2C channels.
[0058] When the number of devices to be controlled exceeds 16, Figure 6 On the basis of the invention, the control unit is connected to the first programmable logic unit through the second I2C bus, the first programmable logic unit is connected to the second programmable logic unit through the second group of LVDS; the second programmable logic unit is connected to the controlled device through the I2C bus. The control unit can access and control 32 controlled devices through two I2C interfaces. This solves the problem of the shortage of I2C interfaces in the control unit when the control unit in the mainboard accesses multiple controlled devices through the I2C bus.
[0059] When the second programmable logic unit is connected to the controlled device through the I2C bus respectively, each I2C channel needs to occupy two input / output pins of the second programmable logic unit. When the number of input / output pins of the second programmable logic unit can meet the needs of 32 controlled devices, the number of I2C channels can be flexibly configured through programming without adding a second programmable logic unit, thereby solving the problem of channel number limitation and channel number waste of I2C expansion devices.
[0060] In this embodiment, the first programmable logic unit and the second programmable logic unit can transmit I2C data between the control unit and the controlled device.
[0061] For example, the first programmable logic unit can receive the I2C data sent by the control unit through the I2C bus, and send it to the second programmable logic unit through the LVDS interface, and then the second programmable logic unit sends it to the controlled device through the I2C bus.
[0062] Similarly, the second programmable logic unit can receive the I2C data sent by the controlled device through the I2C bus, and send it to the first programmable logic unit through the LVDS interface, and then the first programmable logic unit sends it to the control unit through the I2C bus.
[0063] As mentioned above, the second programmable logic unit and the controlled device are connected through different I2C buses, and multiple independent I2C channels can be formed between the second programmable logic unit and the controlled device. Therefore, when a controlled device is hung, only the I2C bus between the second programmable logic unit and the controlled device is occupied, and the data transmission of the I2C bus between the second programmable logic unit and the remaining controlled devices is not affected. The control unit can continue to transmit data with the remaining controlled devices in the aforementioned manner. This solves the problem that when a controlled device is hung, the control unit cannot access all controlled devices on the bus.
[0064] The electronic device provided in the embodiment of the present application expands the number of I2C channels between the second programmable logic unit and the controlled device by adding a first programmable logic unit and a second programmable logic unit. The control unit uses one I2C interface to access multiple controlled devices, solving the problem of the shortage of I2C interfaces of the control unit. The second programmable logic unit and the controlled device are connected through different I2C buses respectively, solving the problem that when a certain controlled device is hung, the control unit cannot access all controlled devices on the bus. By programming the first programmable logic unit and the second programmable logic unit, the number of I2C channels can be flexibly configured, solving the problem that the number of I2C channels that can be expanded by the I2C expansion device is small.
[0065] It should be understood that the embodiments of the present application can be applied to electronic devices including one mainboard and one backplane, or to electronic devices including one mainboard and multiple backplanes, or to electronic devices including multiple mainboards and multiple backplanes, and also to electronic devices in which the control unit and the controlled device are deployed on one circuit board. This application does not limit this.
[0066] Taking the target controlled device as an example, the following describes in detail how the first programmable logic unit and the second programmable logic unit transmit I2C data between the control unit and the controlled device in combination with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in combination with the accompanying drawings.
[0067] Figure 7 A flow chart of a communication method provided in an embodiment of the present application. Figure 7 As shown, the process of the control unit sending I2C data to the target controlled device may include the following steps:
[0068] S701. A control unit sends first I2C data to a first programmable logic unit.
[0069] Accordingly, the first programmable logic unit receives the first I2C data.
[0070] For example, the first I2C data may be an I2C signal or I2C data sent by the control unit to the target controlled device, and may include any one of: a start signal, an address byte, write data, a stop signal, a host response signal, and a host non-response signal.
[0071] S702: The first programmable logic unit encodes the first I2C data and the identifier of the target controlled device to obtain a first data frame.
[0072] The target controlled device may be, for example, one of the controlled devices, or may be multiple of the controlled devices.
[0073] The identifier of the target controlled device may be the identifier of the I2C channel corresponding to the target controlled device. Taking 16 controlled devices as an example, the identifier of the I2C channel may be represented by a four-bit binary number, and the identifier of the target controlled device may be any one of: 0b0000-0b1111. Different I2C channel identifiers correspond to different identifiers of the target controlled device, so that different target controlled devices can be identified by identifying the identifier of the I2C channel.
[0074] The mapping relationship between the controlled device and the corresponding I2C channel identifier can be pre-set in the first programmable logic unit, for example. The first programmable logic unit obtains the identifier of the target controlled device by reading the mapping relationship between the controlled device and the corresponding I2C channel identifier.
[0075] For example, a coding method may be stored in the first programmable logic unit, and the first I2C data and the identifier of the target controlled device are encoded according to the coding method to obtain a first data frame.
[0076] The first data frame may include, for example, a first field and a second field. Exemplarily, the format of the first data frame may be as shown in the following Table 1:
[0077] Table 1
[0078]
[0079] The first field may include: an identifier of a receiving end of the corresponding I2C data. The second field may include: a status code, and the status code is used to indicate the content of the corresponding I2C data.
[0080] The number of bits occupied by the first field and the second field in the data frame, as well as the positions of the first field and the second field in the data frame, are not limited in this application and can be set according to actual needs. This application uses the first field as the upper four bits of the data frame and the second field as the lower four bits of the data frame as an example for schematic illustration.
[0081] Figure 8 FIG. 1 is a schematic diagram of data transmission between a first programmable logic unit and a second programmable logic unit. Figure 8 As shown, the first programmable logic unit encodes the single-bit I2C data sent by the control unit into an 8-bit data frame, and sends it to the second programmable logic unit in the order of the data frames.
[0082] Similarly, the second programmable logic unit encodes the received single-bit I2C data sent by the target controlled device into 8-bit data frames, and sends them to the first programmable logic unit in the order of the data frames.
[0083] When the first field is four bits, it can represent the identifiers of 16 receiving ends, for example, 0b0000-0b1111 represent the first controlled device to the sixteenth controlled device respectively.
[0084] The status code of the second field may be, for example, as shown in the following Table 2:
[0085] Table 2
[0086]
[0087]
[0088] It should be understood that the values of the status codes in Table 2 are only exemplary and can be set according to actual conditions. This application does not limit this. The following embodiments are all schematically described using the status codes shown in Table 2 as an example.
[0089] Exemplarily, when the receiving end is the second controlled device and the first programmable logic unit receives the start signal, the first field is 0b0001, the second field is 0b0010, and the first data frame encoded and generated by the first programmable logic unit is: 0b00010010.
[0090] When the receiving end is other controlled devices and the first programmable logic unit receives signals of other status codes, the data frame encoded and generated by the first programmable logic unit can be generated by referring to the above method, which will not be repeated here.
[0091] The first programmable logic unit and the second programmable logic unit can also obtain the mapping relationship between the status code and the content of the I2C data. For example, the first programmable logic unit and the second programmable logic unit can store the mapping relationship between the status code and the content of the I2C data in an internal memory, or store the mapping relationship between the status code and the content of the I2C data in an external memory. The first programmable logic unit and the second programmable logic unit obtain the mapping relationship between the status code and the content of the I2C data by reading the data in the memory. The first programmable logic unit and the second programmable logic unit can correctly encode and decode the I2C data according to the mapping relationship, thereby avoiding data recognition errors.
[0092] S703: The first programmable logic unit sends a first data frame to the second programmable logic unit.
[0093] Accordingly, the second programmable logic unit receives the first data frame.
[0094] Exemplarily, the first programmable logic unit may send the first data frame to the second programmable logic unit through an LVDS interface.
[0095] After receiving the first data frame, the second programmable logic unit may further send different received data frames to the first programmable logic unit according to the content of the first data frame, which may be:
[0096] When the status code of the first data frame indicates Start, the second programmable logic unit may send a received data frame whose status code indicates Start Get to the first programmable logic unit. The first field of the data frame is the same as the first field of the first data frame.
[0097] When the status code of the first data frame indicates Send Data 0, the second programmable logic unit may send a receiving data frame whose status code indicates Data 0Get to the first programmable logic unit. The first field of the data frame is the same as the first field of the first data frame.
[0098] When the status code of the first data frame indicates Send Data 1, the second programmable logic unit may send a receiving data frame with a status code indicating Data 1Get to the first programmable logic unit. The first field of the data frame is the same as the first field of the first data frame.
[0099] The second programmable logic unit can notify the first programmable logic unit whether it has received the first data frame by sending a received data frame to the first programmable logic unit. The first programmable logic unit can continue to send data or terminate data transmission, thereby improving the accuracy of data transmission.
[0100] S704: The second programmable logic unit decodes the first data frame to obtain first I2C data and an identifier of the target controlled device.
[0101] The second programmable logic unit may, for example, store a decoding method corresponding to the encoding rule of the first programmable logic unit. As mentioned above, the first data frame is obtained by encoding the first I2C data and the identification of the target controlled device. Therefore, the second programmable logic unit decodes the first data frame to obtain the first I2C data and the identification of the target controlled device.
[0102] After the second programmable logic unit decodes and obtains the first I2C data, it can also send different recovery data frames to the first programmable logic unit according to the content of the first I2C data. Specifically, it can be:
[0103] When the decoded first I2C data is a start signal, the second programmable logic unit may send a recovery data frame with a status code of Start Rev to the first programmable logic unit. The first field of the data frame is an identifier of the target controlled device.
[0104] When the decoded first I2C data is any one of: address byte, write data, host response signal, host non-response signal, the second programmable logic unit can send a recovery data frame with a status code of Data Rev to the first programmable logic unit. The first field of the data frame is the identifier of the target controlled device.
[0105] The second programmable logic unit can notify the first programmable logic unit whether it has correctly recovered the first I2C data by sending a recovery data frame to the first programmable logic unit. The first programmable logic unit can continue to send data or terminate data transmission, thereby improving the accuracy of data transmission.
[0106] When the first programmable logic unit receives the recovery data frame, it can also send the received recovery data frame to the second programmable logic unit according to the content of the recovery data frame. Specifically, it can be:
[0107] When the status code of the restored data frame is Data Rev, the first programmable logic unit may send a segmented data frame with a status code of Data Rev get to the second programmable logic unit. The first field of the data frame is an identifier of the target controlled device.
[0108] When transmitting continuous bits of first I2C data, the first programmable logic unit sends a segmentation data frame to the second programmable logic unit to segment two continuous bits of first I2C data. The second programmable logic unit can determine that one bit of I2C data transmission is completed according to the segmentation data frame. Then the control unit can transmit another bit of first I2C data to the target controlled device. The second programmable logic unit can accurately identify the transmitted continuous bits of first I2C data, thereby improving the accuracy of data transmission.
[0109] S705: The second programmable logic unit sends the first I2C data to the target controlled device according to the identifier of the target controlled device.
[0110] As mentioned above, taking the identifier of the target controlled device as the identifier of the I2C channel corresponding to the target controlled device as an example, the second programmable logic unit can identify the corresponding I2C channel according to the identifier of the target controlled device, thereby sending the first I2C data to the target controlled device through the corresponding I2C channel.
[0111] Thus, the method of the embodiment of the present application realizes the interaction of sending the first I2C data from the control unit to the target controlled device.
[0112] Furthermore, the first programmable logic unit can also send a clock extension signal to the control unit so that the control unit delays sending the first I2C data. Exemplarily, the clock on the I2C bus between the control unit and the first programmable logic unit is generated and controlled by the control unit. As described above, after the first programmable logic unit receives the first I2C data sent by the control unit, the first programmable logic unit will encode the data to obtain a first data frame and send it to the second programmable logic unit; the second programmable logic unit will decode the first data frame to obtain the first I2C data; and the second programmable logic unit will send the first I2C data to the target controlled device. It takes a certain amount of time to perform data interaction between the first programmable logic unit and the second programmable logic unit, and between the second programmable logic unit and the target controlled device. Before the data interaction is completed, the first programmable logic unit can cause the control unit to suspend sending the first I2C data by pulling the clock line low until the first programmable logic unit releases the clock line, and the control unit can continue to send the first I2C data. This avoids the first programmable logic unit or the second programmable logic unit or the target controlled device from having no time to process the data sent by the control unit and causing data transmission errors, and can improve the effectiveness of data transmission.
[0113] The following describes how the target controlled device sends the second I2C data to the control unit, that is, how the target controlled device responds after receiving the first I2C data sent by the control unit.
[0114] Fig. 9 A flow chart of another communication method provided in an embodiment of the present application. Fig. 9 As shown, the target controlled device sends I2C data to the control unit, for example, including the following steps:
[0115] S901. The target controlled device sends second I2C data to a second programmable logic unit.
[0116] Accordingly, the second programmable logic unit receives the second I2C data.
[0117] The second I2C data may be an I2C signal or I2C data sent by the target controlled device to the control unit, and may include, for example, any one of: a slave response signal and read data.
[0118] The target controlled device can perform corresponding operations according to the received first I2C data. For example, when the first I2C data is an address byte, the target controlled device will send a slave response signal; when the read / write bit in the address byte indicates read data, the target controlled device will send read data.
[0119] S902: The second programmable logic unit encodes the second I2C data and the identifier of the target controlled device to obtain a second data frame.
[0120] The mapping relationship between the controlled device and the corresponding I2C channel identifier can be pre-set in the second programmable logic unit, for example. The second programmable logic unit obtains the identifier of the target controlled device by reading the mapping relationship between the controlled device and the corresponding I2C channel identifier.
[0121] For example, the second programmable logic unit may store a coding method, and the second I2C data and the identifier of the target controlled device are encoded according to the coding method to obtain a second data frame.
[0122] The format of the second data frame may be the same as the format of the first data frame. For details, please refer to the description of the format of the first data frame, which will not be repeated here.
[0123] S903: The second programmable logic unit sends a second data frame to the first programmable logic unit.
[0124] Accordingly, the first programmable logic unit receives the second data frame.
[0125] The second programmable logic unit can send the first data frame to the first programmable logic unit through the LVDS interface.
[0126] After receiving the second data frame, the first programmable logic unit may further send different received data frames to the second programmable logic unit according to the content of the second data frame, which may be:
[0127] When the status code of the second data frame indicates Send Data 0, the first programmable logic unit may send a receiving data frame with a status code indicating Data 0Get to the second programmable logic unit. The first field of the receiving data frame is the same as the first field of the second data frame.
[0128] When the status code of the second data frame indicates Send Data 1, the first programmable logic unit may send a receiving data frame with a status code indicating Data 1Get to the second programmable logic unit. The first field of the receiving data frame is the same as the first field of the second data frame.
[0129] The first programmable logic unit can notify the second programmable logic unit whether it has received the second data frame by sending a received data frame to the second programmable logic unit. The second programmable logic unit can continue to send data or terminate data transmission, thereby improving the accuracy of data transmission.
[0130] S904: The first programmable logic unit decodes the second data frame to obtain second I2C data and an identifier of the target controlled device.
[0131] The first programmable logic unit may, for example, store a decoding method corresponding to the coding rule of the second programmable logic unit. As mentioned above, the second data frame is obtained according to the second I2C data and the identification code of the target controlled device. Therefore, the first programmable logic unit decodes the second data frame to obtain the second I2C data and the identification of the target controlled device.
[0132] After the first programmable logic unit decodes and obtains the second I2C data, it may also send a recovery data frame to the second programmable logic unit, which may be specifically:
[0133] When the second I2C data is obtained by decoding, the first programmable logic unit may send a recovery data frame with a status code of Data Rev to the second programmable logic unit. The first field of the data frame is an identifier of the target controlled device.
[0134] The first programmable logic unit can notify the second programmable logic unit whether it has correctly recovered the second I2C data by sending a recovery data frame to the second programmable logic unit. The second programmable logic unit can continue to send data or terminate data transmission, thereby improving the accuracy of data transmission.
[0135] When the second programmable logic unit receives the recovery data frame, it can also send the recovery data frame to the first programmable logic unit according to the content of the recovery data frame. Specifically, it can be:
[0136] When the status code of the restored data frame is Data Rev, the second programmable logic unit sends a segmented data frame with a status code of Data Rev get to the first programmable logic unit. The first field of the data frame is an identifier of the target controlled device.
[0137] When transmitting the second I2C data of consecutive bits, the second programmable logic unit sends a segmented data frame to the first programmable logic unit to segment two consecutive bits of the second I2C data. The first programmable logic unit can determine that the I2C data transmission of one bit is completed according to the segmented data frame. Then the target controlled device can transmit another bit of the second I2C data to the control unit. The first programmable logic unit can accurately identify the transmitted consecutive bits of the second I2C data, thereby improving the accuracy of data transmission.
[0138] S905. The first programmable logic unit sends second I2C data to the control unit.
[0139] The first programmable logic unit may send second I2C data to the control unit through the I2C bus.
[0140] Thus, the method of the embodiment of the present application realizes the interaction in which the target controlled device sends the second I2C data to the control unit.
[0141] Furthermore, the second programmable logic unit may also respond to the clock stretching signal triggered by the controlled device to delay receiving the second I2C data sent by the controlled device.
[0142] Exemplarily, the clock on the I2C bus between the second programmable logic unit and the controlled device is generated and controlled by the second programmable logic unit. As mentioned above, when the control unit needs to read data from the controlled device, the controlled device will send the second I2C data to the second programmable logic unit. If the speed at which the controlled device sends data cannot keep up with the speed of the clock, the controlled device can trigger a clock stretch signal. The controlled device can suspend sending the second I2C data by pulling the clock line to a low level. When the controlled device is ready to send the second I2C data, it can release the clock line, and at this time, the level of the clock line becomes a high level.
[0143] When receiving the second I2C data sent by the controlled device, the second programmable logic unit can first check the level of the clock line. When the level is low, it can be considered that the controlled device triggers the clock stretching signal. At this time, the second programmable unit can wait for the clock line to become a high level, and then send a new clock signal to continue receiving the second I2C data sent by the controlled device.
[0144] By having the second programmable logic unit respond to the clock stretching signal triggered by the controlled device, it is possible to avoid the second programmable logic unit receiving invalid second I2C data when the controlled device is not ready to send the second I2C data, thereby improving the effectiveness of data transmission.
[0145] For example, the first programmable logic unit is CPLD1 and the second programmable logic unit is CPLD2. Developers can use the state machine to write program code to enable CPLD1 and CPLD2 to implement the above data transmission function. Each state of the state machine represents an event, and the transition from executing the current event to executing another event is called a state jump. The state machine controls the process by controlling the jump of each state. When controlling a complex process, it can make the entire code look clearer and easier to understand.
[0146] Fig.10 A state transition diagram provided in an embodiment of the present application. Fig.10 As shown, this state transition diagram is applied to CPLD1.
[0147] Fig.11Another state transition diagram provided in the embodiment of the present application. Fig.11 As shown, this state transition diagram is applied to CPLD2.
[0148] CPLD1 or CPLD2 can define a state machine according to the state identifier shown in Table 2.
[0149] Combine the following Fig.10 and Fig.11 Taking the control unit writing data to the target controlled device as an example, how CPLD1 and CPLD2 execute the current event and the jump of the execution state are explained exemplarily.
[0150] After the electronic device is powered on, both CPLD1 and CPLD2 are in Idle state. In Idle state, CPLD1 detects in real time whether the control unit sends a start signal. When CPLD1 receives the start signal, CPLD1 jumps to Start state.
[0151] In the Start state, CPLD1 encodes the start signal into a Start data frame and sends it to CPLD2. The Start data frame includes the identifier of the target controlled device and the Start status code. After receiving the Start data frame, CPLD2 jumps from the Idle state to the Start Get state. CPLD2 sends a Start Get data frame to CPLD1 and jumps to the Start Rev state. The Start Get data frame includes the identifier of the target controlled device and the Start Get status code.
[0152] When CPLD2 is in the Start Rev state, CPLD2 decodes the Start data frame to obtain the start signal and the identifier of the target controlled device. CPLD2 sends the Start Rev data frame to CPLD1. The Start Rev data frame includes the identifier of the target controlled device and the Start Rev status code. CPLD2 sends the start signal to the target controlled device according to the identifier of the target controlled device.
[0153] Optionally, after receiving the start signal and before receiving the Start Rev data frame sent by CPLD2, CPLD1 can send a clock extension signal to the control unit according to the clock cycle. The control unit delays sending I2C data to CPLD1. After receiving the Start Rev data frame, CPLD1 stops sending the clock extension signal to the control unit. The control unit can resume sending I2C data to CPLD1.
[0154] Next, the control unit sends an 8-bit address byte to the target controlled device. Among them, the read / write bit R / W = 0, 0 means write. The control unit can send in order from the highest bit to the lowest bit. The sending method of 8 bits of data is the same. The following is an example of the control unit sending the first bit of data to the target controlled device. For the sake of convenience, the first bit of data sent by the control unit to the target controlled device is bit7 data.
[0155] CPLD1 receives the bit7 data sent by the control unit. If the bit7 data sent by the control unit is 0, CPLD1 jumps from the start state to the Send Data 0 state; if the bit7 data sent by the control unit is 1, CPLD1 jumps from the start state to the Send Data 1 state.
[0156] In the Send Data 0 state, CPLD1 encodes the bit7 data into a Send Data 0 data frame and sends it to CPLD2. The Send Data 0 data frame includes the identifier of the target controlled device and the Send Data 0 status code. CPLD2 jumps from the Start Rev state to the Data 0Get state. CPLD2 sends a Data 0Get data frame to CPLD1 and jumps to the DataRev state. The Data 0Get data frame includes the identifier of the target controlled device and the Data 0Get status code.
[0157] When CPLD1 is in the Send Data 1 state, it encodes the bit7 data into a Send Data 1 data frame and sends it to CPLD2. The Send Data 1 data frame contains the identifier of the target controlled device and the Send Data 1 status code. CPLD2 jumps from the StartRev state to the Data 1Get state. CPLD2 sends a Data 1Get data frame to CPLD1 and jumps to the Data Rev state. The Data 1Get data frame contains the identifier of the target controlled device and the Data 1Get status code.
[0158] When CPLD2 is in the Data Rev state, CPLD2 decodes the Send Data 0 data frame / Send Data 1 data frame to obtain the bit7 data and the identifier of the target controlled device. CPLD2 sends the Data Rev data frame to CPLD1. The Data Rev data frame includes the identifier of the target controlled device and the Data Rev status code. CPLD2 sends the bit7 data to the target controlled device according to the identifier of the target controlled device. After receiving the Data Rev data frame, CPLD1 jumps from Send Data0 / Send Data 1 to the Data Rev Get state. Send the Data Rev Get data frame to CPLD2. The Data Rev Get data frame includes the identifier of the target controlled device and the Data Rev Get status code.
[0159] At this point, the control unit completes sending bit7 data to the target controlled device.
[0160] Optionally, after receiving the bit7 data and before receiving the Data Rev data frame sent by CPLD2, CPLD1 can send a clock extension signal to the control unit according to the clock cycle. The control unit delays sending data to CPLD1. After receiving the Data Rev data frame, CPLD1 stops sending the clock extension signal to the control unit. The control unit can resume sending data to CPLD1.
[0161] The control unit continues to send the second bit of the address byte bit6 data to the target controlled device. CPLD1 continues to receive the bit6 data sent by the control unit. If the bit6 data received from the control unit is 0, CPLD1 jumps from the Data Rev Get state to the Send Data 0 state; if the bit6 data received from the control unit is 1, CPLD1 jumps from the Data Rev Get state to the Send Data 1 state.
[0162] Continue to refer to the above method until the control unit completes sending the 8-bit address byte to the target controlled device. The control unit waits for the target controlled device to send a slave response signal.
[0163] CPLD2 receives data sent by the target controlled device. If the data received from the target controlled device is 0, CPLD2 jumps to the Send Data 0 state; if the data received from the target controlled device is 1, CPLD2 jumps to the Send Data 1 state.
[0164] When CPLD2 is in the Send Data 0 state, it encodes the data sent by the target controlled device into a Send Data 0 data frame and sends it to CPLD1. The Send Data 0 data frame includes the identifier of the target controlled device and the Send Data 0 status code. CPLD1 jumps from Data Rev Get to Data 0Get state. CPLD1 sends a Data 0Get data frame to CPLD2 and jumps to the Data Rev state. The Data 0Get data frame includes the identifier of the target controlled device and the Data 1Get status code.
[0165] When CPLD2 is in the Send Data 1 state, it encodes the data sent by the target controlled device into a Send Data 1 data frame and sends it to CPLD1. The Send Data 1 data frame includes the identifier of the target controlled device and the Send Data 1 status code. CPLD1 jumps from Data Rev Get to Data 1Get state. CPLD1 sends a Data 1Get data frame to CPLD2 and jumps to the Data Rev state. The Data 1Get data frame includes the identifier of the target controlled device and the Data 1Get status code.
[0166] In the Data Rev state, CPLD1 decodes the Send Data 0 data frame / Send Data 1 data frame to obtain the data sent by the controlled device and the identifier of the target controlled device. CPLD1 sends the Data Rev data frame to CPLD2. The Data Rev data frame contains the identifier of the target controlled device and the Data Rev status code. CPLD1 sends the data sent by the controlled device to the control unit.
[0167] After receiving the Data Rev data frame, CPLD2 jumps to the Data Rev Get state. CPLD2 sends a Data Rev Get data frame to CPLD1. The Data Rev Get data frame contains the identifier of the target controlled device and the Data RevGet status code.
[0168] Optionally, before receiving the data sent by the target controlled device, CPLD2 may respond according to whether the target controlled device triggers a clock extension signal. CPLD2 delays receiving the data sent by the target controlled device.
[0169] After receiving the slave response signal, the control unit starts to send the first byte of write data to the target controlled device.
[0170] The control unit can send in the order from the highest bit to the lowest bit. The sending method of 8-bit write data is the same. The following is an example of the control unit sending the first bit of write data to the target controlled device. For the sake of convenience, the first bit of write data sent by the control unit to the target controlled device is bit7 write data.
[0171] CPLD1 receives the bit7 write data sent by the control unit. If the bit7 write data received from the control unit is 0, CPLD1 jumps from the Data Rev state to the Send Data 0 state; if the bit7 write data received from the control unit is 1, CPLD1 jumps from the Data Rev state to the Send Data 1 state.
[0172] In the Send Data 0 state, CPLD1 encodes the bit7 write data into a Send Data 0 data frame and sends it to CPLD2. The Send Data 0 data frame contains the identifier of the target controlled device and the Send Data 0 status code. CPLD2 jumps from the Data Rev Get state to the Data 0Get state. CPLD2 sends a Data 0Get data frame to CPLD1 and jumps to the Data Rev state. The Data 0Get data frame contains the identifier of the target controlled device and the Data 0Get status code.
[0173] When CPLD1 is in the Send Data 1 state, it encodes the bit 7 write data into a Send Data 1 data frame and sends it to CPLD2. The Send Data 1 data frame contains the identifier of the target controlled device and the Send Data 1 status code. CPLD2 jumps from the DataRev Get state to the Data 1Get state. CPLD2 sends a Data 1Get data frame to CPLD1 and jumps to the DataRev state. The Data 1Get data frame contains the identifier of the target controlled device and the Data 1Get status code.
[0174] When CPLD2 is in the Data Rev state, CPLD2 decodes the Send Data 0 data frame / Send Data 1 data frame to obtain the bit7 write data and the identifier of the target controlled device. CPLD2 sends the Data Rev data frame to CPLD1. The Data Rev data frame includes the identifier of the target controlled device and the Data Rev status code. CPLD2 sends the bit7 write data to the target controlled device based on the identifier of the target controlled device.
[0175] After receiving the Data Rev data frame, CPLD1 jumps from Send Data 0 / Send Data 1 to Data Rev Get state and sends a Data Rev Get data frame to CPLD2. The Data Rev Get data frame includes the identifier of the target controlled device and the Data Rev Get status code.
[0176] At this point, the control unit completes sending bit7 write data to the target controlled device.
[0177] Optionally, after receiving the bit7 write data and before receiving the Data Rev data frame sent by CPLD2, CPLD1 can send a clock extension signal to the control unit according to the clock cycle. The control unit delays sending the write data to CPLD1. After receiving the Data Rev data frame, CPLD1 stops sending the clock extension signal to the control unit. The control unit can resume sending the write data to CPLD1.
[0178] The control unit continues to send the second bit of write data, bit6, to the target controlled device. CPLD1 continues to receive the bit6 write data sent by the control unit. If the bit6 write data received from the control unit is 0, CPLD1 jumps from the DataRev Get state to the Send Data 0 state; if the bit6 write data received from the control unit is 1, CPLD1 jumps from the Data Rev Get state to the Send Data 1 state.
[0179] Continue to refer to the above method until the control unit completes sending the first byte of 8 bits of write data to the target controlled device.
[0180] After receiving the first byte of write data, the target controlled device sends a slave response signal to the control unit.
[0181] After receiving the slave response signal, the control unit sends the next byte of write data to the target controlled device.
[0182] After the control unit sends the last byte of write data to the target controlled device and receives the slave response signal, it sends a stop signal to the target controlled device to end the I2C communication and release the I2C bus.
[0183] The following describes how the control unit sends a stop signal to the target controlled device.
[0184] The control unit sends a stop signal to CPLD1. When CPLD1 receives the stop signal, CPLD1 jumps from the Data Rev state to the Stop state.
[0185] In the Stop state, CPLD1 encodes the start signal into a Stop data frame and sends it to CPLD2. The Stop data frame includes the identifier of the target controlled device and the Stop status code. After receiving the Stop data frame, CPLD2 jumps from Data Rev Get to Stop Get state. CPLD2 sends a Stop Get data frame to CPLD1 and jumps to Stop Rev state. The StopGet data frame includes the identifier of the target controlled device and the Stop Get status code.
[0186] When CPLD2 is in the Stop Rev state, CPLD2 decodes the Stop data frame and obtains the stop signal and the identifier of the target controlled device. CPLD2 sends a Stop Rev data frame to CPLD1 and jumps to the Idle state. The Stop Rev data frame includes the identifier of the target controlled device and the Stop Rev status code. CPLD2 sends a stop signal to the target controlled device based on the identifier of the target controlled device.
[0187] After receiving the Stop Rev data frame, CPLD1 jumps from the Stop state to the Idle state. CPLD1 detects in real time whether the control unit sends a start signal and prepares for the next I2C communication.
[0188] Combine the following Fig.10 and Fig.11 Taking the control unit reading data from the target controlled device as an example, how CPLD1 and CPLD2 execute the current event and the jump of the execution state are exemplified.
[0189] After the electronic device is powered on, CPLD1 and CPLD2 are both in Idle state. In Idle state, CPLD1 detects in real time whether the control unit sends a start signal. After the control unit sends the start signal, it then sends the address byte, where the read / write bit R / W=1, 1 means read. After receiving the address byte, the target controlled device sends a slave response signal to the control unit. The above method can refer to the corresponding method when the control unit writes data to the target controlled device, which will not be repeated here.
[0190] After receiving the address byte, the target controlled device sends the first byte of 8 bits of read data to the control unit. The target controlled device can send in order from the highest bit to the lowest bit. The method of sending 8 bits of read data can refer to the method of sending a slave response signal from the target controlled device to the control unit, which will not be repeated here.
[0191] After receiving the first byte of read data, the control unit sends a host response signal to the target controlled device. The sending method can refer to the method of the control unit sending a bit of write data to the target controlled device, which will not be repeated here.
[0192] After receiving the host response signal, the target controlled device sends the next byte of read data to the control unit.
[0193] After the control unit completes reading data from the target controlled device, it sends a host non-response signal to the target controlled device. The sending method can refer to the method of the control unit sending a bit of write data to the target controlled device, which will not be repeated here.
[0194] The target controlled device stops sending read data to the control unit after receiving a non-response signal from the host.
[0195] After the control unit sends a host non-response signal to the target controlled device, it sends a stop signal to the target controlled device to release the I2C bus and end the communication. The specific method can refer to the method of the control unit sending a stop signal to the target controlled device in the above embodiment. No further description is given here.
[0196] It should be understood that the above method is only for illustrative purposes, and the status or execution events of CPLD1 or CPLD2 during actual execution may be increased or modified accordingly according to actual needs, which is not limited in this application.
[0197] The method provided in the embodiment of the present application expands the number of I2C channels between the second programmable logic unit and the controlled device by adding a first programmable logic unit and a second programmable logic unit. When the control unit uses one I2C interface, it can access multiple controlled devices, solving the problem of the shortage of I2C interfaces of the control unit. The second programmable logic unit and the controlled device are connected through different I2C buses respectively, solving the problem that when a certain controlled device is hung, the control unit cannot access all controlled devices on the bus. By programming the first programmable logic unit and the second programmable logic unit, the number of I2C channels can be flexibly configured, solving the problem that the number of I2C channels that can be expanded by I2C expansion devices is small.
[0198] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present application. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the following claims.
[0199] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.
Claims
1. An electronic device, characterized in that: The electronic device comprises: a main board and a backboard; the main board comprises a control unit and a first programmable logic unit; the backboard comprises: a second programmable logic unit and N controlled devices; The control unit and the first programmable logic unit, as well as the second programmable logic unit and the controlled device are connected via an I2C bus, and the first programmable logic unit and the second programmable logic unit are connected via a differential signal line; The first programmable logic unit and the second programmable logic unit are used to transmit I2C data between the control unit and the controlled device.
2. The device according to claim 1, characterized in that The first programmable logic unit is specifically used to encode the first I2C data sent by the control unit to the target controlled device and the identifier of the target controlled device to obtain a first data frame, and send the first data frame to the second programmable logic unit; The second programmable logic unit is specifically configured to decode the first data frame to obtain the first I2C data and an identifier of the target controlled device; and send the first I2C data to the target controlled device according to the identifier of the target controlled device.
3. The device according to claim 2, characterized in that The second programmable logic unit is specifically used to encode the second I2C data sent by the target controlled device to the control unit and the identifier of the target controlled device to obtain a second data frame, and send the second data frame to the first programmable logic unit; The first programmable logic unit is specifically used to decode the second data frame to obtain the second I2C data and the identifier of the target controlled device; and send the second I2C data to the control unit.
4. The device according to claim 3, characterized in that The identifier of the target controlled device is an identifier of an I2C channel corresponding to the target controlled device.
5. The device according to claim 4, characterized in that The first programmable logic unit is further used to obtain a mapping relationship between the identifier of the controlled device and the corresponding I2C channel; The second programmable logic unit is further used to obtain a mapping relationship between the identifier of the controlled device and the corresponding I2C channel.
6. The device according to claim 3, characterized in that The first data frame and the second data frame each include: a first field and a second field; The first field includes: an identifier of a receiving end of the corresponding I2C data; The second field includes: a status code, where the status code is used to indicate the content of the corresponding I2C data.
7. The device according to claim 6, characterized in that The first programmable logic unit and the second programmable logic unit are further used to obtain a mapping relationship between a status code and content of I2C data.
8. The device according to any one of claims 2 to 7, characterized in that: The first programmable logic unit is further used to send a clock extension signal to the control unit, so that the control unit delays sending the first I2C data.
9. The device according to any one of claims 3 to 7, characterized in that: The second programmable logic unit is further configured to respond to a clock stretching signal triggered by the controlled device to delay receiving second I2C data sent by the controlled device.
10. A communication method, characterized in that: The electronic device comprises: a main board and a backboard; the main board comprises a control unit and a first programmable logic unit; the backboard comprises: a second programmable logic unit and N controlled devices; The control unit and the first programmable logic unit, and the second programmable logic unit and the controlled device are connected via an I2C bus, and the first programmable logic unit and the second programmable logic unit are connected via a low voltage differential signal line. The method includes: The first programmable logic unit and the second programmable logic unit transmit I2C data between the control unit and the controlled device.
