INTER INTEGRATED CIRCUIT BASED COMMUNICATION METHOD AND APPARATUS - Patent application

The method encapsulates I2C status within data packets to reduce bandwidth and improve efficiency in long-distance I2C communication, supporting simultaneous transmission across multiple interfaces by using flow IDs to distinguish between I2C devices.

JP7551913B2Active Publication Date: 2024-09-17YINWANG INTELLIGENT TECHNOLOGIES CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
JP2023517666
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2020-09-17
Publication Date
2024-09-17
Estimated Expiration
2040-09-17

AI Technical Summary

Technical Problem

The challenge of reducing bandwidth requirements and improving transmission efficiency for I2C signals in long-distance communication scenarios, such as in-vehicle networks where peripheral devices and microcontrollers are separated by significant distances, is addressed by encapsulating I2C signals into data packets while minimizing overhead and enabling simultaneous transmission across multiple interfaces.

Method used

A method and device that encapsulate I2C status information, such as start/stop signals and feedback, within a data packet header, allowing for efficient transmission of I2C data without separate encapsulation, and support multiple I/O interfaces by using flow IDs to distinguish between different I2C interfaces.

Benefits of technology

This approach reduces bandwidth requirements and enhances transmission efficiency by minimizing redundant data encapsulation and enabling simultaneous communication with multiple slave devices, thus optimizing I2C signal transmission in long-distance scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007551913000018
    Figure 0007551913000018
  • Figure 0007551913000005
    Figure 0007551913000005
  • Figure 0007551913000013
    Figure 0007551913000013
Patent Text Reader

Abstract

This application is I 2 A C-based communication method and apparatus is disclosed. 2 When the C signal is encapsulated in a data packet for transparent transmission, I 2 The C status is indicated by the first field in the packet header of a data packet. A data packet may have no load portion, or it may have a load portion that contains a slave address, a read / write flag, or an I 2 Used to carry C data. 2 The C status is indicated in the packet header of the data packet, so I 2 The C status can be a slave address, a read / write flag, or an I 2 C data can be encapsulated in the same data packet. 2 The C status may not need to occupy a separate data packet. In this application, the technical effect of reducing the bandwidth required for transmission and improving transmission efficiency can be achieved.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present application relates to the field of communication technology, in particular to the field of Inter Integrated Circuit (IIC) 2 C)-based communication method and apparatus. [Background technology]

[0002] Inter Integrated Circuit (I 2 C) The bus is a low-speed serial bus for short distance transmission routed on a printed circuit board (PCB) and connects the microcontroller and its peripheral devices to the I 2 C signals.

[0003] I 2 The C-bus may be used in multiple possible scenarios, for example, in in-vehicle network transmission scenarios. However, in some in-vehicle network scenarios, the transmission distance between the peripheral device and the microcontroller is long. For example, the camera (i.e., the peripheral device) is mounted on the windshield, rear bumper, or door post, and the microcontroller is mounted inside the vehicle. Therefore, the I 2 The C signal needs to be encapsulated into data packets that support long distance transmission for transparent transmission. 2 How to reduce the bandwidth required and improve the transmission efficiency during the transparent transmission of the C signal is the problem to be solved in this application. Summary of the Invention [Problem to be solved by the invention]

[0004] This application is 2 In order to reduce the bandwidth required to transmit the C signal and improve transmission efficiency, 2 A method and apparatus for C-based communication is provided. [Means for solving the problem]

[0005] According to the first aspect, I 2 A method for C-based communication is provided. 2 The present invention may be applied to a device supporting I / O communications. For example, the method is applied to a first device. The method includes: the first device generating a data packet, the data packet including a packet header portion and a load portion, the packet header portion including a first field, the first field being an I / O field; 2 Used to indicate C status, I 2 The C status includes one of start of data transmission, continue of data transmission, stop of data transmission, ACK, or NACK, and the length of the load is 0 bits or more, and if the length of the load is 0, it indicates that the data packet has no load; the first device sends the data packet to the second device.

[0006] In this embodiment of the present application, I 2 C status is indicated using the first field in the packet header of the data packet, so the load part is I 2 C status, so states such as start of data transmission, continue of data transmission, ACK, or NACK do not need to be encapsulated separately in the data packet, but only the slave address, read / write flag, and I 2 C data and other data are encapsulated in the same data packet, thereby reducing the transmission bandwidth and improving transmission efficiency.

[0007] In one possible implementation, the value of the first field includes one or more of the following values: 2 The first value used to indicate that the C status is the start of data transmission; I 2 C is the second value used to indicate that the status is a continuation of data transmission; 2A third value used to indicate that the C status is a stop of data transmission; I 2 C A fourth value used to indicate that the status is ACK; and I 2 A fifth value used to indicate that the C-status is a NACK.

[0008] Of course, the above is merely an example, not a limitation, and in a specific implementation, the first field may have more or fewer values.

[0009] In one possible implementation, the first field is I 2 When the C status indicates the start of a data transfer, the load section carries the slave address and the read / write flag.

[0010] That is, the indication to start a data transmission may be encapsulated in the same data packet together with the slave address and the read / write flag, thereby reducing the transmission bandwidth and improving the transmission efficiency.

[0011] In one possible implementation, the first field is I 2 If the C status indicates that data transmission is to continue, the load section 2 Carries C data.

[0012] In this way, the second device can determine the I 2 C status determines that data transmission is continuing, and furthermore, I 2 The C data may be parsed and extracted, which may improve the reliability of this solution.

[0013] In one possible implementation, the packet header portion of the data packet may further include a second field, the second field being used to indicate a flow ID of a flow to which the data packet belongs, the flow ID being at least one I 2 Supports the C interface.

[0014] Flow ID and I 2 The correspondence between the C interfaces can be a one-to-one, one-to-many, many-to-one, or many-to-many relationship, which is not a limitation of this application.

[0015] Thus, during the transmission of a data packet, the serializer or deserializer (in the first or second device) can identify the I 2 C interface to distinguish the data packet, and I corresponding to the flow ID of the data packet for transmission 2 C interfaces, thereby allowing multiple I / O connections between a first device and a second device. 2 It can support simultaneous transmission of signals on the C interface, thus further improving transmission efficiency.

[0016] In one possible implementation, the packet header portion of the data packet may further include a third field, the third field indicating that the data packet is an I 2 It is used to indicate that it is a C-based data packet.

[0017] The third field may specifically be implemented using one field, or may be implemented using multiple fields, which is not limited here.

[0018] In this way, the second device can determine whether the data packet is I 2 Identify it as a C-based data packet and then 2 The data in the data packets may be received and processed based on the C protocol, which can further improve the reliability of the solution.

[0019] According to the second aspect, I 2A method for I2C based communication is provided. The method may be applied to a device supporting I2C communication. For example, the method is applied to a second device. The method includes: receiving a data packet from a first device, where the data packet includes a packet header portion and a load portion, the packet header portion includes a first field, and the first field includes an I2C address. 2 Used to indicate C status, I 2 The C status includes one of start of data transmission, continuation of data transmission, stop of data transmission, acknowledgement, or negative acknowledgement NACK, and the length of the load is 0 bits or more; the second device determines the I based on the first field. 2 Determines C status.

[0020] In one possible implementation, the value of the first field includes one or more of the following values: 2 The first value used to indicate that the C status is the start of data transmission; I 2 C is the second value used to indicate that the status is a continuation of data transmission; 2 A third value used to indicate that the C status is a stop of data transmission; I 2 C A fourth value used to indicate that the status is ACK; and I 2 A fifth value used to indicate that the C-status is a NACK.

[0021] Of course, the above is merely an example, not a limitation, and in a specific implementation, the first field may have more or fewer values.

[0022] In one possible implementation, the first field is I 2 The C status indicates the start of data transmission, and the load section carries the slave address and read / write flag of the slave device. 2 After determining that the C status is the start of data transmission, the second device further 2A start state is generated at the I 2 Through the C interface, a slave address and a read / write flag may be sent to the slave device pointed to by the slave address.

[0023] In one possible implementation, the first field is I 2 The C status indicates that data transmission is continuing, and the load part is I 2 It carries C data. 2 After determining that the C status is a continuation of data transmission, the second device further 2 The slave device pointed to by the slave address is connected through the I / O interface. 2 C data may be sent.

[0024] In one possible implementation, the packet header portion further includes a second field, which is used to indicate a flow identifier ID of a flow to which the data packet belongs, the flow ID being determined by at least one I 2 Supports the C interface.

[0025] Flow ID and I 2 The correspondence between the C interfaces can be a one-to-one, one-to-many, many-to-one, or many-to-many relationship, which is not a limitation of this application.

[0026] In one possible implementation, the packet header portion further includes a third field, the third field indicating whether the data packet is 2 It is used to indicate that it is a C-based data packet.

[0027] The third field may specifically be implemented using one field, or may be implemented using multiple fields, which is not limited here.

[0028] According to the third aspect, I 2A C-based communications apparatus is provided, the apparatus including modules configured to perform the method provided in the first aspect or any possible implementation of the first aspect.

[0029] For example, the apparatus may include: A processing module configured to generate a data packet, the data packet including a packet header portion and a load portion, the packet header portion including a first field, the first field being an I 2 Used to indicate C status, I 2 a processing module, the C status including one of start of data transmission, continuation of data transmission, stop of data transmission, acknowledgement ACK, or negative acknowledgement NACK, and the length of the load is equal to or greater than 0 bits; A transmitting module configured to transmit the data packets to a second device.

[0030] In one possible implementation, the value of the first field includes one or more of the following values: 2 The first value used to indicate that the C status is the start of data transmission; I 2 C is the second value used to indicate that the status is a continuation of data transmission; 2 A third value used to indicate that the C status is a stop of data transmission; I 2 C A fourth value used to indicate that the status is ACK; and I 2 A fifth value used to indicate that the C-status is a NACK.

[0031] In one possible implementation, the first field is I 2 The C status indicates the start of data transmission, and the load section carries the slave address and read / write flag of the slave device.

[0032] In one possible implementation, the first field is I 2The C status indicates that data transmission is continuing, and the load part is I 2 Carries C data.

[0033] In one possible implementation, the packet header portion further includes a second field, which is used to indicate a flow identifier ID of a flow to which the data packet belongs, the flow ID being determined by at least one I 2 Supports the C interface.

[0034] In one possible implementation, the packet header portion of the data packet further includes a third field, the third field indicating that the data packet is 2 It is used to indicate that it is a C-based data packet.

[0035] According to the fourth aspect, I 2 A C-based communications apparatus is provided, the apparatus including modules configured to perform the method provided in the second aspect or any possible implementation of the second aspect.

[0036] For example, the device may include: A receiving module configured to receive a data packet from a first device, the data packet including a packet header portion and a load portion, the packet header portion including a first field, the first field being an I 2 Used to indicate C status, I 2 a receiving module, the C status including one of start of data transmission, continuation of data transmission, stop of data transmission, acknowledgement ACK, or negative acknowledgement NACK, and the length of the load is equal to or greater than 0 bits; Based on the first field I 2 A processing module configured to determine a C status.

[0037] In one possible implementation, the value of the first field includes one or more of the following values: 2The first value used to indicate that the C status is the start of data transmission; I 2 C is the second value used to indicate that the status is a continuation of data transmission; 2 A third value used to indicate that the C status is a stop of data transmission; I 2 C A fourth value used to indicate that the status is ACK; and I 2 A fifth value used to indicate that the C-status is a NACK.

[0038] In one possible implementation, the first field is I 2 The C status indicates the start of data transmission, and the load section carries the slave address and read / write flag of the slave device; the processing module further carries at least one I 2 A start state is generated at the I 2 It is configured to send the slave address and read / write flags to the slave device pointed to by the slave address through the C interface.

[0039] In one possible implementation, the first field is I 2 The C status indicates that data transmission is continuing, and the load part is I 2 the processing module further comprises at least one I 2 The slave device pointed to by the slave address is connected through the I / O interface. 2 C configured to transmit data.

[0040] In one possible implementation, the packet header portion further includes a second field, which is used to indicate a flow identifier ID of a flow to which the data packet belongs, the flow ID being determined by at least one I 2 Supports the C interface.

[0041] In one possible implementation, the packet header portion further includes a third field, the third field indicating whether the data packet is 2 It is used to indicate that it is a C-based data packet.

[0042] According to a fifth aspect, there is provided an apparatus, comprising at least one processor and a communication interface communicatively coupled to the at least one processor, the at least one processor executing instructions stored in a memory such that the apparatus is enabled to perform a method provided in the first aspect or any possible implementation of the first aspect using the communication interface.

[0043] Optionally, the memory is located external to the device.

[0044] Optionally, the apparatus includes a memory, said memory coupled to said at least one processor, said memory storing instructions executable by said at least one processor.

[0045] According to a sixth aspect, there is provided an apparatus, comprising at least one processor and a communication interface communicatively coupled to the at least one processor, the at least one processor executing instructions stored in a memory, such that the apparatus is enabled to perform a method provided in the second aspect or any possible implementation of the second aspect using the communication interface.

[0046] Optionally, the memory is located external to the device.

[0047] Optionally, the apparatus includes a memory, said memory coupled to said at least one processor, said memory storing instructions executable by said at least one processor.

[0048] According to a seventh aspect, an apparatus is provided, comprising a processor and an interface circuit configured to receive code instructions and transmit the code instructions to the processor, which executes the code instructions to perform the method provided in the first aspect or any possible implementation of the first aspect.

[0049] According to an eighth aspect, an apparatus is provided, comprising a processor and an interface circuit configured to receive code instructions and transmit the code instructions to the processor, which executes the code instructions to perform the method provided in the second aspect or any possible implementation of the second aspect.

[0050] According to a ninth aspect, there is provided a chip coupled to a memory and configured to read and execute program instructions stored in the memory to implement a method provided in the first aspect or any possible implementation of the first aspect.

[0051] According to a tenth aspect, there is provided a chip coupled to a memory and configured to read and execute program instructions stored in the memory to implement a method provided in the second aspect or any possible implementation of the second aspect.

[0052] According to an eleventh aspect, there is provided a computer-readable storage medium configured to store instructions that, when executed, perform a method provided in the first aspect or any possible implementation of the first aspect.

[0053] According to a twelfth aspect, there is provided a computer readable storage medium configured to store instructions that, when executed, perform a method provided in the second aspect or any possible implementation of the second aspect.

[0054] According to a thirteenth aspect there is provided a computer program product comprising instructions stored therein such that, when the computer program product is executed on a computer, the computer is enabled to perform a method provided in the first aspect or any possible implementation of the first aspect.

[0055] According to a fourteenth aspect there is provided a computer program product comprising instructions stored therein such that, when the computer program product is executed on a computer, the computer is enabled to carry out a method provided in the second aspect or any possible implementation of the second aspect.

[0056] According to a fifteenth aspect, there is provided a communication system, comprising a first device and a second device, the first device being capable of performing a corresponding function in the first aspect or any possible implementation of the first aspect, and the second device being capable of performing a corresponding function in the second aspect or any possible implementation of the second aspect.

[0057] It should be noted that "coupled" in the embodiments of this application refers to a direct or indirect combination of two elements.

[0058] For the beneficial effects of the implementations in the second to fifteenth aspects, please refer to the beneficial effects of the corresponding implementations in the first aspect, and the details will not be described again here. [Brief description of the drawings]

[0059] [Figure 1] FIG. 1 is a schematic diagram of an image transmission system for an in-vehicle camera.

[0060] [Diagram 2] 1 is a schematic diagram of an I2C bus.

[0061] [Diagram 3] A possible diagram of an I2C timeline.

[0062] [Figure 4A] 1 is a possible flowchart for writing data to an I2C bus.

[0063] [Figure 4B] 1 is a possible flowchart for reading data from an I2C bus.

[0064] [Diagram 5] FIG. 1 is a schematic diagram of a method for encapsulating an I2C signal that is transmitted transparently.

[0065] [Figure 6] 1A and 1B are schematic diagrams of alternative ways of encapsulating I2C signals for transparent transmission, respectively.

[0066] [Figure 7] FIG. 2 is a schematic diagram of a possible communication scenario according to an embodiment of the present application;

[0067] [Figure 8] FIG. 2 is a schematic diagram of another possible communication scenario according to an embodiment of the present application;

[0068] [Figure 9] FIG. 2 is a schematic diagram of another possible communication scenario according to an embodiment of the present application;

[0069] [Figure 10] 1 is a flowchart of an I2C-based communication method according to an embodiment of the present application.

[0070] [Figure 11] 1 is a schematic diagram of a possible structure of a data packet according to an embodiment of the present application;

[0071] [Figure 12] FIG. 2 is a schematic diagram of some possible values ​​of the first field.

[0072] [Figure 13A] FIG. 1 is a schematic diagram of a master sending I2C data to a slave.

[0073] [Figure 13B] FIG. 1 is a schematic diagram of a slave sending I2C data to a master.

[0074] [Figure 14] 11 is a schematic diagram of another possible structure of a data packet according to an embodiment of the present application;

[0075] [Figure 15] 11 is a schematic diagram of another possible structure of a data packet according to an embodiment of the present application;

[0076] [Figure 16] 11 is a schematic diagram of another possible structure of a data packet according to an embodiment of the present application;

[0077] [Figure 17] 11 is a schematic diagram of another possible structure of a data packet according to an embodiment of the present application;

[0078] [Figure 18] 11 is a schematic diagram of another possible structure of a data packet according to an embodiment of the present application;

[0079] [Figure 19] FIG. 19 is a schematic diagram of an I2C-based communication device 1900 according to an embodiment of the present application.

[0080] [Figure 20] FIG. 20 is a schematic diagram of another I2C-based communication device 2000 according to an embodiment of the present application.

[0081] [Figure 21] 21 is a schematic diagram of the structure of an apparatus 2100 according to an embodiment of the present application.

[0082] [Figure 22] 22 is a schematic diagram of the structure of an apparatus 2200 according to an embodiment of the present application.

[0083] [Diagram 23] FIG. 23 is a schematic diagram of the structure of an apparatus 2300 according to an embodiment of the present application.

[0084] [Figure 24] FIG. 24 is a schematic diagram of the structure of an apparatus 2400 according to an embodiment of the present application. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0085] Nowadays, automobiles are developing towards intelligence, and more and more driver assistance systems are being installed in automobiles. Most driver assistance systems rely on cameras to sense the environment around the automobile in real time.

[0086] FIG. 1 is a schematic diagram of an image transmission system for an in-vehicle camera. The system includes a camera and further includes a Multi-domain Controller (MDC) or a Mobile Data Center (MDC). Image signals such as Red Green Blue (RGB) data can be transmitted between the camera and the MDC. The camera and the MDC further include an I 2 I / C communication can be performed; that is, between the camera and the MDC 2 C signals can be transmitted. 2 The C signal is primarily used to control the shooting parameters of the camera, such as the pixel quantization depth, frame rate, sensitivity, white balance, etc.

[0087] I 2 C signal is I 2 It is transmitted based on the C bus. 2The C-Bus is a low-speed serial bus, a short-distance transmission bus routed on a Printed Circuit Board (PCB), designed to connect microcontrollers to their peripheral devices.

[0088] Figure 2 is I 2 A schematic diagram of the C bus. 2 The C bus contains two lines. One is the serial data line (SDA) used to transmit data. The other is the serial clock line (SCL) used to transmit the clock signal. 2 The data lines of all devices connected to the C bus are I 2 Connected to the SDA of the C bus, 2 The clock lines of all devices connected to the C bus are I 2 The MDC is connected to the SCL of the I / O bus. One-way transmission from the master device to the slave device occurs on the SCL. Bidirectional transmission from the master device to the slave device or from the slave device to the master device occurs on the SDA. In Figure 1, MDC is the master device, and I 2 In the MDC shown in FIG. 1, the processing chip in the MDC is the master device and the deserializer, serializer, or sensor are slave devices. In the MDC shown in FIG. 1, the processing chip in the MDC is the master device and the deserializer, serializer, or sensor are slave devices.

[0089] In FIG. 2, one master device is communicatively connected to one slave device as an example. In actual applications, one master device may be communicatively connected to multiple slave devices; that is, one master device may control multiple slave devices. In addition, in this specification, a master device may be referred to as a master control device, a master node, etc., and a slave device may be referred to as a slave node, a peripheral device, a peripheral component, an external component, a peripheral device, etc. In this embodiment of the present application, unless otherwise specified, I 2 C and I2C have the same meaning.

[0090] The master device controls the slave device by controlling the level state (time series) of the two lines. Figure 3 shows the I 2 C is an example of a time series diagram.

[0091] When a master device initiates communication with a slave device, 2 A start signal (or start condition) is generated on the I bus. Specifically, SCL is at high level and SDA changes from high to low. After the start signal appears, the I 2 The C bus is considered "busy" and the subsequent I 2 C bus addressing, I 2 C data transmission, etc. may be performed.

[0092] After the start state occurs, the master device and the slave device start to exchange data. The master device and the slave device exchange a fixed 8-bit data each time, and after each interaction is completed, the data sending end needs to receive a 1-bit acknowledgement signal fed back by the receiving end before performing the next operation (for example, sending the next 8-bit data). There are two types of acknowledgement signals: acknowledgement (ACK) and negative acknowledgement (NACK), and the acknowledgement signal is sent by the data receiving end to the data sending end.

[0093] In the process of data transmission between the master device and the slave device, the first 8-bit data exchanged between the master device and the slave device is used for bus addressing. The most significant 7 bits indicate the address of the slave device currently communicating with the master device, and the least significant 1 bit is a read / write (R / W) flag (or read / write flag bit), which is used to indicate whether the current communication is a data read or data write (i.e., whether data is sent from the master device to the slave device or from the slave device to the master device). The data following the first group of 8-bit data indicates the I that needs to be sent in the current communication. 2 C data. 2 The C data are shooting parameters such as the pixel quantization depth, frame rate, sensitivity, or white balance of the camera.

[0094] After the data transmission between the master device and the slave device is completed, that is, when the master device stops communicating with the slave device, 2 A stop signal (or stop condition) is generated on the I bus. SCL is at high level and SDA changes from low to high. After the stop signal, 2 C-bus is considered an "idol".

[0095] As shown above, the I 2 C communication includes: the master device controls the slave device to send data to the master device (i.e., data read procedure), and the master device controls the slave device to receive data sent by the master device (i.e., data write procedure). In the following, the read procedure and write procedure are described separately with examples.

[0096] As shown in FIG. 2One possible write procedure for the C bus may include the following steps.

[0097] Step 1: The master device sends a start (START, S) signal.

[0098] Step 2: The master device sends one byte (8 bits) and waits for an ACK. The most significant 7 bits of the byte carry the address of the slave device, and the least significant 1 bit is a read / write flag bit (R / W). When the read / write flag bit is 1, it indicates a read command, and when the read / write flag bit is 0, it indicates a write command. In FIG. 4A, R / W=0, indicating a write command. Alternatively, in this embodiment of the present application, when the read / write control flag is 0, it may indicate a read command, and when the read / write control bit is 1, it indicates a write command. This is not limited in the present application.

[0099] Step 3: The slave device sends an ACK to indicate successful receipt.

[0100] Step 4: The master device sends one byte and waits for an ACK. This byte carries the data to be written to the slave device.

[0101] Step 5: The slave device writes the data to the storage unit and sends an ACK.

[0102] It should be noted that steps 4 and 5 here may be performed multiple times in succession, i.e. the master device writes data to the slave device sequentially. In Figure 4A, two writes are used as an example.

[0103] Furthermore, it should be noted that if the slave device fails to receive data or fails to write data to the storage unit, it must send a NACK to the master device. For example, in Figure 4A, the master device sends an ACK.

[0104] Step 6: The master device sends a stop (STOP, P) signal.

[0105] As shown in FIG. 2 A possible read procedure for the C bus may include the following steps:

[0106] Step 1: The master device sends a start signal.

[0107] Step 2: The master device sends a byte and waits for an ACK. The most significant 7 bits of the byte carry the address of the slave device to be controlled, and the least significant bit is the read / write flag bit (R / W). If the read / write flag bit is 1, it indicates a read command, and if the read / write control bit is 0, it indicates a write command. In Figure 4B, R / W=1, indicating a read command.

[0108] Step 3: The slave device sends an ACK to indicate successful receipt.

[0109] Step 4: The slave device sends one byte and waits for an ACK. The byte carries the data to be read by the master device (i.e., the data sent by the slave device to the master device).

[0110] Step 5: After receiving the byte, the master device sends an ACK.

[0111] It should be noted that steps 4 and 5 here may be performed multiple times in succession; that is, the master device reads data from the slave device sequentially. In Figure 4B, two reads are used as an example.

[0112] It should be noted that if the master device fails to receive data or completes the data read operation, the master device must send a NACK to the slave device. As shown in Figure 4B, the acknowledge signal corresponding to the last group of 8-bit data is a NACK, which indicates that the master device's data read operation is completed.

[0113] Step 6: The master device sends a stop signal.

[0114] In some in-vehicle network scenarios, I 2 The distance between the master and slave devices in I / O is relatively long (usually about 10m). Therefore, for transparent transmission, 2 The C signal needs to be carried in data packets over long distance transmission technologies.

[0115] As an example, the vehicle-mounted camera shown in Figure 1 is used. The MDC end is the master and the camera end is the slave. In a vehicle, the camera is usually mounted on the windshield, rear bumper, door post, etc., and the MDC is mounted inside the vehicle. Therefore, there is a relatively long distance between the camera and the MDC, and the I 2 However, image signals need to be transmitted between the camera and the MDC, and there is already a long-distance, high-speed transmission interface. 2 The I / C signal can be transmitted transparently over a long-distance high-speed transmission line between the MDC and the camera. 2 For transparent transmission of C, I 2 C signals need to be encapsulated into data packets for transmission according to certain rules.

[0116] Figure 5 shows the transparent transmission of I 2 FIG. 1 is a schematic diagram of a method for encapsulating an I C signal. 2 The level states on the two lines SCL and SDA of C are fixedly carried in various positions in the data packet, with each level state on SCL and SDA occupying one bit, by which the level states on the two lines are transmitted to the peer end.

[0117] In this solution, two I 2 Both states of the C line are encapsulated and transmitted. However, the signal on the clock line SCL is actually meaningless and does not need to be transmitted. Therefore, this solution is I 2 Second, in this solution, only the level states on SCL and SDA are transmitted. The master serializer or deserializer can interpret the states on SCL and SDA as I / O without parsing the meaning of the data. 2 It maps directly to the C interface, and therefore the addresses cannot be used to distinguish between chips. Therefore, the master can only access the sensor or display screen in the camera, but not the serializer or deserializer in the camera. Furthermore, this solution requires multiple I / Os. 2 C interfaces cannot be distinguished, and multiple I 2 Concurrent transmission of information about the C interface is not supported.

[0118] 6A and 6B show the transparent transmission of I 2 FIG. 6B is a schematic diagram of another way to encapsulate the I C signal. In this solution, the data packet shown in FIG. 6A is transmitted on the SDA 2 It is used to encapsulate C data, and each data packet carries 8 bits of data. The 2 bits in the packet header are used to load 8 bits of I 2 C indicates whether it carries data or a special code pattern, and the special code pattern is I 2C indicates line status and feedback information such as START, STOP, ACK, or NACK. The special code pattern is shown in Figure 6B.

[0119] In this solution, I 2 Start and stop on the C line (jointly determined by SCL and SDA) are encoded into a special 8-bit code pattern, and one bit is converted to eight bits for transmission. This increases the amount of data transmitted. Secondly, this solution requires separate encapsulation of data packets for start transmission, stop transmission, ACK, and NACK. The minimum data packet is 104 bits, which increases the bandwidth requirement. Also, this solution requires multiple I 2 It is also not possible to distinguish between C interfaces, and multiple I 2 Concurrent transmission of information about the C interface is not supported.

[0120] In order to solve one or more of the above technical problems, an embodiment of the present application provides: 2 We provide a C-based communication solution that encapsulates only data on SDA and uses smaller packet header overhead. Therefore, signals, e.g. I 2 C line status (e.g., communication start / stop) and feedback information (e.g., ACK / NACK) and I 2 C 8-bit data can be encapsulated into one data packet. In this way, I 2 The bandwidth requirements for encapsulating and transmitting C-signals are reduced. The specific solution is explained in more detail below.

[0121] This embodiment of the present application is 2 It can be used in any scenario where C-based communication is required. For example, Figures 7, 8 and 9 show three possible communication scenarios where this application can be applied.

[0122] Figure 7 shows the application scenario of the monocular camera.2 The processing chip in the MDC is used as the master device, and the I 2 The C signal may be used to control the camera, specifically, to control a sensor or a serializer in the camera, and may also control a deserializer in the MDC. The serializer in the camera and the deserializer in the MDC are interface circuits. The serializer and the deserializer are connected through a link. The serializer is configured to convert low-speed parallel signals into high-speed serial signals, and the deserializer is configured to convert high-speed serial signals into low-speed parallel signals.

[0123] The serializer and sensor in the camera as a whole may be used as a slave device, with the camera (serializer and sensor as a whole) having a slave address and the processing chip in the MDC having an I 2 It can be seen that the C signal can be used to control the camera.

[0124] Alternatively, the serializer or the sensor in the camera may alternatively be used independently as a slave device; that is, the serializer and the sensor each have an independent slave address. The serializer may include at least one register configured to store data.

[0125] Additionally, the deserializer within the MDC can alternatively be used as an independent slave device and have an independent slave address.

[0126] Figure 8 shows the application scenario of the multi-lens camera. 2 In this scenario, the MDC can communicate with multiple I 2 In Figure 8, two I 2C interface is used. In practice, more I 2 In this application, the I / O interface of the MDC in the multi-lens camera may be included. 2 The amount of I / O interfaces is not limited. The same deserializer / serializer can be used with multiple I / O interfaces. 2 Supports simultaneous transmission on I / O and I / O interfaces. 2 The I C interface controls different sensors. For example, the processing chip in the MDC in Figure 8 2 C interface 1 is used to control sensor 1, and I 2 The I C interface 2 is used to control the sensor 2 or the processing chip 2 C interface 1 is used to control sensor 2, and I 2 C interface 2 is used to control the sensor 1. In this way, the read / write speed of the MDC for the sensor can be improved.

[0127] As mentioned above, it can be understood that the serializer and sensor in the camera shown in FIG. 8 may be used as a slave device as a whole, and the camera has an independent slave address. 2 The C signal can be used to control the camera.

[0128] Alternatively, each serializer or each sensor in the camera may be used independently as a slave device; that is, each serializer or each sensor has an independent slave address.

[0129] In addition, the deserializer in the MDC can be used as an independent slave device and have an independent slave address.

[0130] Figure 9 shows the Cockpit Domain Controller (CDC) and the display. 2This shows a large-screen application scenario where the processor in the CDC (master device) communicates with each other based on I 2 Use C to control the display (slave device), for example to control the deserializer and display screen in the display. Touch information on the display screen is also recorded in I 2 It may be transmitted to the processor via the C bus.

[0131] As mentioned above, it can be understood that the deserializer and the display screen in the display may be used as a slave device as a whole, i.e., the display has a slave address. The processor in the CDC 2 The C signal may be used to control the display.

[0132] Alternatively, the deserializer and display screen within a display may be used independently as slave devices; that is, the deserializer and display screen each have a slave address.

[0133] Additionally, the serializer in the CDC can alternatively be used as a slave device to the processor and have an independent slave address.

[0134] In order to make the objectives, technical solutions and advantages of the embodiments of the present application clearer, the following will describe in detail the technical solutions in the embodiments of the present application with reference to the accompanying drawings.

[0135] In the embodiments of the present application, the terms "system" and "network" may be used interchangeably. "At least one" means one or more, and "multiple" means two or more. "And / or" refers to an association relationship between associated objects, and indicates that three relationships may exist. For example, A and / or B may represent the following cases: only A is present, both A and B are present, and only B is present. Here, A and B may be singular or plural. The symbol " / " typically indicates an "or" relationship between associated objects. "At least one of the following items" or similar expressions refers to any combination of these items, including any combination of singular items or multiple items. For example, at least one of a, b, or c may refer to a, b, and c, a, b, a, c, b, and c, or a, b, and c.

[0136] In addition, unless otherwise specified, ordinals such as "first" and "second" in the embodiments of the present application are used to distinguish between multiple objects and are not intended to limit the order, chronological order, priority, or importance of multiple objects. For example, a first field and a second field are used simply to distinguish between different fields and do not indicate different contents, priorities, importance, etc. of the two fields.

[0137] Furthermore, the terms "including" and "having" in the embodiments, claims and accompanying drawings of the present application are not exclusive. For example, a process, method, system, product or device that includes a series of steps or modules is not limited to the listed steps or modules and may further include unlisted steps or modules.

[0138] As shown in FIG. 10, an embodiment of the present application includes: 2 A C-based communication method is provided, which may be used in the scenarios shown in Figure 7, Figure 8 or Figure 9. The method includes the following steps:

[0139] S1001: A first device generates a data packet. The data packet includes a packet header portion and a load portion. The packet header portion includes a first field, and the first field is an I 2 Used to indicate C status. The length of the load is 0 or more bits.

[0140] FIG. 11 is a schematic diagram of a possible structure of a data packet according to an embodiment of the present application. The data packet includes a packet header portion (abbreviated as "packet header") and a load portion (abbreviated as "load"). In addition, the data packet further includes a packet tail. The packet header includes a first field, and the packet tail includes a Cyclic Redundancy Check (CRC) bit. For example, the field length of the first field is 3 bits, but the field length may actually be another value, such as 4 bits or 5 bits. This is not limited here.

[0141] I 2 C status is I 2 To indicate the communication status of the C bus or 2 To indicate the type of signal on the C bus, or 2 It is used to indicate the level states on SDA and SCL of the I C bus. 2 C status includes, but is not limited to, five types: start of data communication, continue of data transmission, stop of data transmission, ACK, and NACK. It should be understood that one data packet corresponds to one type.

[0142] Different values ​​of the first field result in different I 2 Represents the C status. For example, the first value is I 2 The C status is used to indicate the start of data transmission, and the second value is I 2 The C status is used to indicate the continuation of data transmission, and the third value is I 2 The C status is used to indicate the stop of data transmission, and the fourth value is I 2It is used to indicate that the C status is an ACK, and the fifth value is I 2 It is used to indicate that the C status is a NACK. Of course, the actual value of the first field is not limited to five types, and there may be more values ​​in practice.

[0143] Figure 12 shows an example of possible values ​​for the first field. The value range for the first field is 0x0 to 0x7, with 0x0 to 0x4 being the five I 2 I C status is represented separately, 0x5 to 0x7 are reserved fields, and the five I 2 I other than C status 2 Can be used to indicate C status.

[0144] I 2 If the C status is Start of Data Transmission or Stop of Data Transmission, the first device is the master and the second device is the slave. 2 If the C status is continue data transmission, stop data transmission, ACK, or NACK, the first device is a master and the second device is a slave, or the second device is a master and the first device is a slave, i.e., the first field in a data packet generated by the master can indicate one of start data transmission, stop data transmission, continue data transmission, ACK, or NACK, and the first field in a data packet generated by the slave can indicate one of continue data transmission, ACK, or NACK.

[0145] It can be understood that the master in this embodiment of the present application may be a controller, such as the MDC in Fig. 7, the MDC in Fig. 8, or the CDC in Fig. 9, or may be a processing chip in the controller, such as a processing chip in the MDC or a processor in the CDC. The slave in this embodiment of the present application may be a peripheral device or peripheral component, such as the camera in Fig. 7, the camera in Fig. 8, or the display in Fig. 9, or may be a chip in the peripheral device or peripheral component, such as a sensor or serializer in the camera, or a deserializer or display screen in the display. Of course, the above are merely examples, and other possibilities are not excluded in practical applications.

[0146] The definitions of start of data transmission, continuation of data transmission, stop of data transmission, ACK, and NACK are shown below.

[0147] (1) Start of data transmission: I 2 A start signal (or start condition) is generated on the C bus; that is, SCL is high and SDA changes from high to low, as shown by the start condition in Figure 3. In this case, the first device is a master, such as a processing chip in the MDC, and the second device is a slave, such as a deserializer in the MDC, a deserializer in a camera, or a sensor in a camera.

[0148] It may be understood that the load portion of a data packet may carry no data; that is, the length of the load is zero; or, the data packet does not include a load portion.

[0149] Optionally, the load portion of a data packet may carry data; that is, the length of the load is greater than 0; or the data packet includes a load portion.

[0150] In one possible design, the load portion carries a 7-bit slave address (used for bus addressing) and a 1-bit read / write flag (used to indicate whether the current communication is a data read or data write), and the corresponding length of the load is 8 bits. Of course, the actual length of the load is not limited to that. For example, an I 2 C data may also be carried.

[0151] The slave address is used to indicate the chip controlled by the master, such as a sensor in a camera or a serializer in a camera (or more specifically, a register in the serializer).

[0152] (2) Continuation of data transmission: This state is an intermediate state between the start of data transmission and the stop of data transmission. 2 If the C status is continuation of data transmission, I 2 I on the C bus 2 A signal of C data is generated.

[0153] In this embodiment of the present application 2 C data is sent after data transmission starts and before data transmission stops. 2 It should be understood that data other than the acknowledgement signals (NACK and ACK) is transmitted by the first and second devices on the C bus.

[0154] In this case, the first device is a master, such as a processing chip in a camera, and the second device is a slave, such as a deserializer in an MDC, a deserializer in a camera, or a sensor in a camera. 2 FIG. 13B shows an example of a slave sending I / O data to a slave. Alternatively, the second device is a master, such as a processing chip in a camera, and the first device is a slave, such as a deserializer in an MDC, a deserializer in a camera, or a sensor in a camera. FIG. 13B shows an example of a slave sending I / O data to a master. 2 Here is an example of sending C data.

[0155] I 2 It should be understood that C data is transmitted using groups of 8 bits. 2 After a group of C data is sent, the next I 2 Before transmitting a group of C data, the data sender must wait until the receiver feedbacks ACK or NACK. In the following embodiments of this specification, unless otherwise specified, the data sender will be referred to as a unit (e.g., I 2 C One piece of data, I 2 COne group of data, or I 2 C) in one segment of data 2 C data is 8 bits in length 2 It should be understood that this means C data.

[0156] (3) Stopping data transmission: 2 A stop signal (or stop condition) is generated on the I C bus; that is, SCL is high and SDA goes from low to high, as shown by the stop condition in Figure 3. 2 After it occurs on the C bus, the I 2 On the C bus, I 2 No I2C data is transmitted. In this case, the first device is a master, such as a processing chip in an MDC, and the second device is a slave, such as a deserializer in an MDC, a deserializer in a camera, or a sensor in a camera. The load portion of the data packet does not carry any I2C data; that is, the length of the load is zero.

[0157] (4) ACK is an ACK sent by a second device to a first device. 2 C data (8 bits) was received correctly. 2An ACK condition is generated on the C bus, where the first device is a master, such as a processing chip in the MDC, and the second device is a slave, such as a deserializer in the MDC, a deserializer in the camera, or a sensor in the camera; or the second device is a master, such as a processing chip in the MDC, and the first device is a slave, such as a deserializer in the MDC, a deserializer in the camera, or a sensor in the camera. This is not limited to this.

[0158] (5) NACK is a signal that the first device is not receiving an I / O from the second device. 2 C data received from the second device or 2 C Either the meaning of the data could not be parsed, or the master (first device) stopped reading data from the slave (second device) and 2 Indicates that a NACK condition was generated on the C bus, where the first device is a master, such as a processing chip in the MDC, and the second device is a slave, such as a deserializer in the MDC, a deserializer in the camera, or a sensor in the camera; or the second device is a master, such as a processing chip in the MDC, and the first device is a slave, such as a deserializer in the MDC, a deserializer in the camera, or a sensor in the camera, without limitation.

[0159] Optionally, as shown in FIG. 13B, when the first device is a slave and the second device is a master, in the process of the master performing a read operation on the slave, in the process of the slave sending an acknowledgment information (ACK or NACK) on the "slave address; read / write flag bit" to the master, the slave will send an ACK / NACK and an I 2 The first group of C data is encapsulated into a single data packet for transmission, reducing overhead.

[0160] S1002: A first device transmits a data packet to a second device, and the second device receives the data packet from the first device.

[0161] In this embodiment of the present application, the first device includes one or more I 2 The second device may support one or more I / O 2 The first device may support an I2C interface, and data packets may be transmitted between the first device and the second device based on one or more I2C transmission channels.

[0162] For example, if the first device is a processing chip in the MDC and the second device is a sensor in the monocular camera in FIG. 7, the data packets are transmitted between the first device and the second device based on one I2C transmission channel, i.e., the transmission channel between the I2C interface of the sensor and the I2C interface of the processing chip.

[0163] For example, if the first device is a processing chip in the MDC in FIG. 8 and the second device is a serializer in the multi-lens camera or a deserializer in the MDC in FIG. 8, data packets may be transmitted between the first device and the second device simultaneously based on up to two I2C transmission channels, for example, a transmission channel between the I2C interface of sensor 1 and the I2C interface 1 of the processing chip and a transmission channel between the I2C interface of sensor 2 and the I2C interface 2 of the processing chip.

[0164] S1003: The second device determines whether or not the I 2 Determine the C status.

[0165] After receiving the data packet, the second device parses the data packet.

[0166] For example, if the second device selects an I 2If the C status determines that data transmission is about to begin, the second device must generate at least one I 2 It generates a start condition on the C interface, that is, it controls SCL to a high level and SDA to change from a high level to a low level.

[0167] Optionally, the second device further obtains a slave address and a read / write flag from the load section and at least one I 2 A slave address and a read / write flag may be sent through the C interface to the slave device pointed to by the slave address.

[0168] For example, if the first device is the processing chip in the MDC in FIG. 8, and the second device is the serializer in the multi-lens camera in FIG. 8 (which is a slave device of the processing chip in the MDC), and the slave address points to sensor 1 (which is a slave device of the processing chip in the MDC), after receiving the data packet, the serializer will 2 Send the slave address and read / write flag to sensor 1 through the C interface.

[0169] Additionally, if the read / write flag indicates that data is to be read, the second device then reads the I 2 C Read the data, I 2 C data to the first device; if the read / write flag indicates that data is to be written, the second device then reads the I 2 C data is received and the received I 2 Write C data to the chip.

[0170] For example, if the second device selects an I 2 If the C status determines that data transmission is to continue, the second device will 2The slave device pointed to by the slave address is connected through the I / O interface. 2 C Send the data.

[0171] For example, if the first device is the processing chip in the MDC in FIG. 8, and the second device is the serializer in the multi-lens camera in FIG. 8 (which is a slave device of the processing chip in the MDC), and the slave address points to sensor 2 (which is a slave device of the processing chip in the MDC), after receiving the data packet, the serializer will 2 Sensor 2 is connected to the I / O 2 C Send the data.

[0172] For example, if the second device selects an I 2 If the C status determines that data transmission has stopped, at least one I 2 A halt condition is generated on the C interface, that is, SCL is controlled to a high level and SDA is controlled to change from a low level to a high level.

[0173] For example, if the second device selects an I 2 To determine if the C status is ACK, the corresponding 8-bit I 2 At least one I 2 An ACK condition is generated on the C interface.

[0174] For example, if the second device selects an I 2 When determining that the C status is NACK, the corresponding 8-bit I 2 C data not received or 8 bits I 2 At least one NACK condition is returned to indicate that the meaning of the C data cannot be parsed or that the master has stopped reading data from the slave. 2 Generated on top of the C interface.

[0175] From the above description, it can be seen that in this embodiment of the present application, only the data on the SDA line is encapsulated and transmitted, so that the transmission bandwidth can be reduced and the transmission efficiency can be improved. 2 The first field in the packet header of the data packet is set to indicate the C status, and the load portion does not include the slave address, the read / write flag, or the I 2 It is used to carry C data, so that conditions such as start of transmission, ACK, NACK, etc. do not have to be individually encapsulated in the data packet, but rather the slave address, read / write flags, or I 2 C data are encapsulated in the same data packet, so that the transmission bandwidth can be further reduced and the transmission efficiency can be further improved. Also, in this embodiment of the present application, when the data packet is encapsulated, the meaning of the data is parsed, so that the read / write slave device can be distinguished based on the slave address, and the same I 2 The C interface can control different slave devices.

[0176] Optionally, in this embodiment of the present application, the packet header portion further includes a second field, the second field is used to indicate a flow identifier ID of a flow to which the data packet belongs, and each flow ID is represented by at least one I 2 The flow ID in this specification corresponds to the I 2 It is used to distinguish between the I / O interfaces; that is, data packets with the same Flow ID are 2 It should be understood that the data packets are transmitted over the I / O interface. Thus, when a data packet is transmitted between a first device and a second device, the serializer / deserializer in the first device and the second device identify the I / O flow ID and use the I / O interface. 2 C interface, and for each data packet, I corresponding to the flow ID of the data packet for transmission 2C interfaces, allowing multiple I / O connections between a first device and a second device. 2 It can support simultaneous transmission of signals on the C interface, thus improving transmission efficiency.

[0177] FIG. 14 is a schematic diagram of another possible structure of a data packet according to an embodiment of the present application. 2 In addition to the first field used to indicate the C status, the packet header further includes a second field used to indicate the flow ID. For example, the second field in FIG. 14 is 2 bits, but it should be understood that in practice this is not limited thereto. For example, the second field may alternatively be 3 bits, 4 bits, or 5 bits. The particular length may be I 2 This can be set by one skilled in the art based on the amount of C interfaces or another rule.

[0178] In this embodiment of the present application, the flow ID and I 2 The correspondence between the I and C interfaces may be a one-to-one relationship; that is, data packets corresponding to the same flow ID are sent to the same I 2 It can only be transmitted on the C interface. Alternatively, the flow ID and I 2 The correspondence between C interfaces may be a one-to-many relationship; that is, data packets corresponding to the same flow ID may be sent to multiple different I / O interfaces. 2 Alternatively, the flow ID and the I 2 The correspondence between C interfaces may be many-to-one; that is, data packets with different flow IDs may be sent to the same I 2 It may be transmitted on the I / O interface. Alternatively, the flow ID and I 2 The correspondence between C interfaces may be many-to-many; that is, data packets corresponding to multiple different flow IDs may be sent to multiple different I 2 C interface, which is not a limitation of this application.

[0179] Here, referring to the scenario shown in Figure 8, we take the flow ID and I as an example. 2 As shown in Figure 8, flow ID "1" corresponds to the I 2 C interface 1, and flow ID "2" is I 2 C interface 2. When sending a data packet to sensor 1 of the multi-lens camera, the MDC may indicate in a second field in the packet header of the data packet that the flow ID is "1". After the data packet is transmitted to the serializer of the multi-lens camera, the serializer identifies the flow ID "1" and distributes the data packet to sensor 1. When sending a data packet to sensor 2 of the multi-lens camera, the MDC may indicate in a second field in the packet header of the data packet that the flow ID is "2". After the data packet is transmitted to the serializer of the multi-lens camera, the serializer identifies the flow ID "2" and distributes the data packet to sensor 2. Correspondingly, when sending a data packet to the MDC, sensor 1 of the multi-lens camera may indicate in a second field in the packet header of the data packet that the flow ID is "1". After the data packet is transmitted to the deserializer of the MDC, the deserializer identifies the flow ID "1" and distributes the data packet to sensor 2. 2 Sensor 2 of the multi-lens camera may send a data packet to the processing chip in the MDC through I / C interface 1, so that the processing chip can identify that the data packet is from Sensor 1. When sending the data packet to the MDC, Sensor 2 of the multi-lens camera may indicate in a second field in the packet header of the data packet that the flow ID is "2". After the data packet is sent to the deserializer of the MDC, the deserializer identifies the flow ID "2" and 2The data packet is sent to the processing chip in the MDC via C interface 2, so that the processing chip can identify that the data packet is from sensor 2.

[0180] Optionally, in this embodiment of the present application, the packet header portion further includes a third field, the third field indicating that the data packet is 2 The third field is used to indicate that the packet is a C-based data packet. The third field may be specifically implemented using one field or may be implemented using multiple fields. This is not a limitation of this application.

[0181] For example, FIG. 15 is a schematic diagram of another possible structure of a data packet according to an embodiment of the present application. 2 In addition to the first field used to indicate the C status and the second field used to indicate the flow ID, the packet header further contains a third field used to indicate the encapsulation service type of the data packet.

[0182] For example, it should be understood that although the third field in FIG. 15 is 4 bits, this is not limited thereto in practice. For example, the third field may alternatively be 2 bits, 3 bits, or 5 bits. The specific length may be set by a person skilled in the art based on the type of data packet that may be transmitted between the first device and the second device or another rule.

[0183] If the third field is the first preset value, the third field indicates that the encapsulation service type of the data packet is I 2 C; that is, the data packet is I 2When the third field is another value other than the first preset value, the third field may be used to indicate another encapsulation service type, for example, a General-purpose input / output (GPIO), a Serial Peripheral Interface (SPI), or a Universal Asynchronous Receiver / Transmitter (UART) data packet.

[0184] For example, FIG. 16 is a schematic diagram of another possible structure of a data packet according to an embodiment of the present application. 2 In addition to the first field used to indicate the C status and the second field used to indicate the flow ID, the packet header further includes a fourth field and a fifth field (i.e., the third field actually includes two fields, the fourth field and the fifth field). The fourth field is used to indicate the encapsulation service type, and the fifth field is used to indicate the data format. If the fourth field is the second preset value, it indicates that the encapsulation service type is a controlled service, and if the fifth field is the third preset value, it indicates that the data format is an I / O service. 2 Indicates that this is C data.

[0185] For example, the fourth field in FIG. 16 is 4 bits, and the fifth field is 6 bits, but it should be understood that this is not limited thereto. For example, the fourth field may be 2 bits, 3 bits, 5 bits, etc., and the fifth field may be 4 bits, 8 bits, 12 bits, etc. The specific length of the fourth field may be set by a person skilled in the art based on the type of encapsulation service supported by the first device and the second device or another rule, and the specific length of the fifth field may be set by a person skilled in the art based on the type of data format supported by the first device and the second device or another rule.

[0186] The encapsulation service type indicated by the fourth field is a control service, and the data format indicated by the fifth field is I 2 If C data, the encapsulation service type of the data packet is I 2 C; that is, the data packet is I 2 If the encapsulation service type indicated by the fourth field is not a control service (for example, it is a data service), the data packet is an I 2 The encapsulation service type indicated by the fourth field is a control service, but the data format indicated by the fifth field is an I / O-based data packet. 2 If the data packet is not I / O data (for example, it is SPI data, UART data, or GPIO data), the data packet is still 2 It is not a C-based data packet.

[0187] Optionally, in this embodiment of the present application, in addition to the first field, the second field, and the third field, the packet header may further include another field, such as a cyclic sequence number used to count data packets. For example, a load length indicator is used to indicate the length of the data in the load. In addition, the packet header may further include some reserved fields that may be used for subsequent expansion.

[0188] It should be noted that the above implementations of the present application can be combined with each other to form different data packet structures and implement different technical effects. For example, FIG. 17 is a schematic diagram of another possible structure of a data packet according to an embodiment of the present application. FIG. 17 is an example obtained after a cyclic sequence number field and a load length indication field are further added to the packet header of the data packet shown in FIG. 15. FIG. 18 is a schematic diagram of another possible structure of a data packet according to an embodiment of the present application. FIG. 18 is an example obtained after a cyclic sequence number field and a load length indication field are further added to the packet header of the data packet shown in FIG. 16. Of course, in practical applications, there may be other combination aspects that are not listed one by one here.

[0189] The method provided in the embodiment of the present application has been described above with reference to Figures 11 to 18. The apparatus provided in the embodiment of the present application will be described below with reference to Figures 19 to 22.

[0190] Based on the same technical concept, an embodiment of the present application is 2Further provided is a C-based communication device 1900. The device 1900 has a function of implementing the first device in the embodiment shown in Figure 11 to Figure 18. For example, the device 1900 includes corresponding modules, units or means for executing the steps performed by the first device in the embodiment shown in Figure 11 to Figure 18. The functions, units or means may be implemented by software or hardware, or may be implemented by executing corresponding software by hardware.

[0191] For example, as shown in FIG. 19, an apparatus 1900 may include: A processing module 1901 configured to generate a data packet, the data packet including a packet header portion and a load portion, the packet header portion including a first field, the first field being an I 2 Used to indicate C status, I 2 a processing module, the C status including one of start of data transmission, continuation of data transmission, stop of data transmission, acknowledgement ACK, or negative acknowledgement NACK, and the length of the load is equal to or greater than 0 bits; A transmitting module 1902 configured to transmit the data packet to a second device.

[0192] In one possible implementation, the value of the first field includes one or more of the following values: 2 The first value used to indicate that the C status is the start of data transmission; I 2 C is the second value used to indicate that the status is a continuation of data transmission; 2 A third value used to indicate that the C status is a stop of data transmission; I 2 C A fourth value used to indicate that the status is ACK; and I 2 A fifth value used to indicate that the C-status is a NACK.

[0193] Of course, the above five values ​​are merely examples and not limitations, and in specific implementations, the first field may have more or fewer values.

[0194] In one possible implementation, the first field is I 2 The C status indicates the start of a data transmission, and the load section carries the slave address and read / write flag of the slave device.

[0195] In one possible implementation, the first field is I 2 The C status indicates that data transmission is continuing, and the load part is I 2 Carries C data.

[0196] In one possible implementation, the packet header portion further includes a second field, which is used to indicate a flow identifier ID of a flow to which the data packet belongs, the flow ID being determined by at least one I 2 Supports the C interface.

[0197] Flow ID and I 2 The correspondence between the C interfaces can be a one-to-one, one-to-many, many-to-one, or many-to-many relationship, which is not a limitation of this application.

[0198] In one possible implementation, the packet header portion further includes a third field, the third field indicating whether the data packet is 2 It is used to indicate that it is a C-based data packet.

[0199] The third field may specifically be implemented using one field, or may be implemented using multiple fields, which is not limited here.

[0200] It should be understood that all the relevant contents of the steps of the above method embodiments may be cited in the functional description of the corresponding functional modules, and the details will not be described again here.

[0201] Based on the same technical concept, an embodiment of the present application is 2 Further provided is a C-based communication device 2000. The device 2000 has a function of implementing the second device in the embodiment shown in Figures 11 to 18. For example, the device 2000 includes corresponding modules, units or means for executing the steps performed by the second device in the embodiment shown in Figures 11 to 18. The functions, units or means may be implemented by software or hardware, or may be implemented by executing corresponding software by hardware.

[0202] For example, the device 2000 may include: A receiving module 2001 configured to receive a data packet from a first device, the data packet including a packet header portion and a load portion, the packet header portion including a first field, the first field being an I 2 Used to indicate C status, I 2 a receiving module, the C status including one of start of data transmission, continuation of data transmission, stop of data transmission, acknowledgement ACK, or negative acknowledgement NACK, and the length of the load is equal to or greater than 0 bits; Based on the first field I 2 A processing module 2002 configured to determine the C status.

[0203] In one possible implementation, the value of the first field includes one or more of the following values: 2 The first value used to indicate that the C status is the start of data transmission; I 2 C is the second value used to indicate that the status is a continuation of data transmission; 2 A third value used to indicate that the C status is a stop of data transmission; I 2C A fourth value used to indicate that the status is ACK; and I 2 A fifth value used to indicate that the C-status is a NACK.

[0204] Of course, the above five values ​​are merely examples and not limitations, and in specific implementations, the first field may have more or fewer values.

[0205] In one possible implementation, the first field is I 2 The C status indicates the start of data transmission, and the load section carries the slave address and read / write flag of the slave device; the processing module 2002 further includes at least one I 2 A start state is generated at the I 2 It is configured to send the slave address and read / write flags to the slave device pointed to by the slave address through the C interface.

[0206] In one possible implementation, the first field is I 2 The C status indicates that data transmission is continuing, and the load part is I 2 2002 further comprises at least one I 2 The slave device pointed to by the slave address is connected through the I / O interface. 2 C configured to transmit data.

[0207] In one possible implementation, the packet header portion further includes a second field, which is used to indicate a flow identifier ID of a flow to which the data packet belongs, the flow ID being determined by at least one I 2 Supports the C interface.

[0208] Flow ID and I 2 The correspondence between the C interfaces can be a one-to-one, one-to-many, many-to-one, or many-to-many relationship, which is not a limitation of this application.

[0209] In one possible implementation, the packet header portion further includes a third field, the third field indicating whether the data packet is 2 It is used to indicate that it is a C-based data packet.

[0210] The third field may specifically be implemented using one field, or may be implemented using multiple fields, which is not limited here.

[0211] It should be understood that all the relevant contents of the steps of the above method embodiments may be cited in the functional description of the corresponding functional modules, and the details will not be described again here.

[0212] Based on the same technical concept, as shown in FIG. 21, an embodiment of the present application is an apparatus 2100, which comprises: There is further provided an apparatus including at least one processor 2101 and a communication interface 2103 communicatively connected to the at least one processor 2101. The at least one processor 2101 executes instructions stored in memory 2102, thereby enabling the apparatus to use the communication interface 2103 to perform the method steps performed by the first device in the embodiments shown in Figures 11 to 18.

[0213] Although FIG. 21 shows only one processor 2101, it should be understood that in practice there may be multiple processors 2101.

[0214] Optionally, the memory 2102 is located external to the device 2100 .

[0215] Optionally, the apparatus 2100 includes a memory 2102 coupled to said at least one processor 2101 , the memory 2102 storing instructions that can be executed by said at least one processor 2101 .

[0216] It should be understood that in FIG. 21, dashed lines are used to indicate that memory 2102 is optional to device 2100.

[0217] The processor 2101 and the memory 2102 may be coupled through an interface circuit or may be integrated together, which is not a limitation in this application.

[0218] The specific connection medium between the processor 2101, the memory 2102, and the communication interface 2103 is not limited in this embodiment of the present application. In this embodiment of the present application, the processor 2101, the memory 2102, and the communication interface 2103 are connected through a bus 2104 in FIG. 21. The bus is represented by a thick line in FIG. 21. The connection manner between other components is merely an example for explanation and is not limited thereto. The bus may be classified into an address bus, a data bus, a control bus, etc. For the sake of simplicity of expression, only one thick line is used for expression in FIG. 21, but this does not mean that there is only one bus or only one type of bus.

[0219] Based on the same technical concept, as shown in FIG. 22, an embodiment of the present application is an apparatus 2200, which comprises: There is further provided an apparatus including at least one processor 2201 and a communication interface 2203 communicatively coupled to the at least one processor 2201. The at least one processor 2201 executes instructions stored in memory 2202, thereby enabling the apparatus to use the communication interface 2203 to perform the method steps performed by the second device in the embodiments shown in Figures 11 to 18.

[0220] Although FIG. 22 shows only one processor 2201, it should be understood that in practice there may be multiple processors 2201.

[0221] Optionally, the memory 2202 is located external to the device 2200 .

[0222] Optionally, the apparatus 2200 includes a memory 2202 coupled to said at least one processor 2201, the memory 2202 storing instructions that can be executed by said at least one processor 2201. In FIG. 22, dashed lines are used to indicate that the memory 2202 is optional for the apparatus 2200.

[0223] The processor 2201 and the memory 2202 may be coupled through an interface circuit or may be integrated together, which is not a limitation in this application.

[0224] The specific connection medium between the processor 2201, the memory 2202, and the communication interface 2203 is not limited in this embodiment of the present application. In this embodiment of the present application, the processor 2201, the memory 2202, and the communication interface 2203 are connected through the bus 2204 in FIG. 22. The bus is represented by using a thick line in FIG. 22. The connection manner between other components is merely an example for explanation and is not limited thereto. The bus may be classified into an address bus, a data bus, a control bus, etc. For the sake of simplicity of representation, only one thick line is used for representation in FIG. 22, but this does not mean that there is only one bus or only one type of bus.

[0225] It should be understood that the processors referred to in the embodiments of the present application may be implemented by hardware or software. When the processor is implemented by hardware, the processor may be a logic circuit, an integrated circuit, etc. When the processor is implemented using software, the processor may be a general-purpose processor and is implemented by reading software code stored in a memory.

[0226] For example, a processor may be a Central Processing Unit (CPU), or may be another general purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA), another programmable logic device, discrete gates, transistor logic devices, discrete hardware components, etc. A general purpose processor may be a microprocessor, a processor may be a conventional processor, etc.

[0227] It can be understood that the memory referred to in the embodiments of the present application may be a volatile memory or a non-volatile memory, or may include both a volatile memory and a non-volatile memory. The non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM) and is used as an external cache. By way of example and not limitation, many forms of RAM can be used, such as static random access memory (Static RAM, SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (Synchronous DRAM, SDRAM), double data rate synchronous dynamic random access memory (Double Data Rate SDRAM, DDR SDRAM), enhanced synchronous dynamic random access memory (Enhanced SDRAM, ESDRAM), synchronous link dynamic random access memory (Synchlink DRAM, SLDRAM), and direct Rambus random access memory (Direct Rambus RAM, DR RAM).

[0228] It should be noted that where the processor is a general purpose processor, a DSP, an ASIC, an FPGA, another programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component, the memory (storage module) may be integrated into the processor.

[0229] It should be noted that the memory described herein is intended to include, but is not limited to, these and other suitable types of memory.

[0230] Based on the same technical concept, as shown in Fig. 23, an embodiment of the present application further provides an apparatus 2300, including a processor 2301 and an interface circuit 2302. The interface circuit 2302 is configured to receive code instructions and send the code instructions to the processor 2301. The processor 2301 can execute the code instructions to perform the methods performed by the first device in the embodiments shown in Fig. 11 to Fig. 18.

[0231] Based on the same technical concept, as shown in Fig. 24, an embodiment of the present application further provides an apparatus 2400, including a processor 2401 and an interface circuit 2402. The interface circuit 2402 is configured to receive code instructions and send the code instructions to the processor 2401. The processor 2401 can execute the code instructions to perform the method performed by the second device in the embodiments shown in Fig. 11 to Fig. 18.

[0232] Based on the same technical concept, an embodiment of the present application further provides a chip, which is coupled to a memory and configured to read and execute program instructions stored in the memory to implement the method performed by the first device in the embodiments shown in Figures 11 to 18.

[0233] Based on the same technical concept, an embodiment of the present application further provides a chip, which is coupled to the memory and configured to read and execute program instructions stored in the memory to implement the method performed by the second device in the embodiments shown in Figures 11 to 18.

[0234] Based on the same technical concept, an embodiment of the present application further provides a computer-readable storage medium, which is configured to store instructions, which, when executed, implement the method performed by the first device in the embodiments shown in Figures 11 to 18.

[0235] Based on the same technical concept, an embodiment of the present application further provides a computer-readable storage medium, which is configured to store instructions, which, when executed, implement the method performed by the second device in the embodiments shown in Figures 11 to 18.

[0236] Based on the same technical concept, an embodiment of the present application further provides a computer program product including instructions, the computer program product storing instructions, which, when executed on a computer, enable the computer to execute the method performed by the first device in the embodiments illustrated in FIG.

[0237] Based on the same technical concept, an embodiment of the present application further provides a computer program product including instructions, the computer program product storing instructions, which, when executed on a computer, enable the computer to execute the method performed by the second device in the embodiments illustrated in FIG.

[0238] Those skilled in the art will appreciate that the embodiments of the present application may be provided as a method, an apparatus, a system, or a computer program product. Thus, the present application may use the form of a hardware-only embodiment, a software-only embodiment, or an embodiment that combines software and hardware. Furthermore, the present application may use the form of a computer program product embodied in one or more computer usable storage media (including, but not limited to, disk memory, CD-ROM, optical memory, etc.) that contains computer usable program code.

[0239] The present application is described with reference to flowcharts and / or block diagrams of methods, apparatus, systems, and computer program products herein. It should be understood that computer program instructions may be used to implement each process and / or each block of the flowcharts and / or block diagrams, and combinations of processes and / or blocks of the flowcharts and / or block diagrams. Computer program instructions may be provided for a processor of a general purpose computer, a special purpose computer, an embedded processor, or another programmable data processing apparatus to generate a machine, whereby the instructions executed by the processor of said computer or said another programmable data processing apparatus to generate an apparatus for implementing a particular function in one or more steps in the flowcharts and / or one or more blocks in the block diagrams.

[0240] The computer program instructions may alternatively be stored in a computer-readable memory that can direct a computer or another programmable data processing apparatus to operate in a particular manner, such that the instructions stored in the computer-readable memory generate an artifact that includes an instruction apparatus that implements a particular function in one or more steps in the flowcharts and / or one or more blocks in the block diagrams.

[0241] The computer program instructions may alternatively be loaded into a computer or another programmable data processing apparatus such that a sequence of operational steps are executed on the computer or another programmable apparatus to generate a computer-implemented process, such that the instructions executed on the computer or another programmable apparatus provide steps for implementing a particular function in one or more procedures in the flowcharts and / or in one or more blocks in the block diagrams.

[0242] It is obvious that those skilled in the art can make various modifications and variations to the present application without departing from the scope of the present application. Thus, the present application is intended to cover these modifications and variations as long as they fall within the scope of protection defined by the appended claims and their equivalent technologies.

Claims

1. Inter-Integrated Circuit I 2 1. A C-based communication method, the communication method comprising: generating, by a first device, a data packet, the data packet including a packet header and a load, the packet header including a first field, the first field being an I 2 Used to indicate C status, 2 C status includes one of: start of data transmission, continue of data transmission, stop of data transmission, acknowledgement ACK, or negative acknowledgement NACK, and the length of the load is equal to or greater than 0 bits; transmitting, by the first device, the data packet to a second device; Communication methods.

2. The value of the first field may be one of the following: Above I 2 A first value used to indicate that C status is the start of said data transmission; Above I 2 A second value used to indicate that the C status is a continuation of the data transmission; Above I 2 a third value used to indicate that the C status is a stop of the data transmission; Above I 2 A fourth value used to indicate that the C status is the ACK; and Above I 2 A fifth value used to indicate that the C status is a NACK. The method of claim 1 , comprising one or more of the following:

3. The first field is 2 3. The communication method according to claim 1, wherein the C status indicates the start of the data transfer, and the load carries a slave address and a read / write flag of a slave device.

4. 4. The communication method according to claim 3, wherein the slave address is represented by 7 bits and the read / write flag is represented by 1 bit.

5. The first field is 2 The C status indicates that the data transmission is to continue, and the load is I 2 3. The communication method according to claim 1, further comprising: transmitting C data.

6. The packet header further includes a second field, the second field being I 2 6. The method of claim 1, further comprising identifying a C interface.

7. The second field is used to indicate a flow identifier ID of a flow to which the data packet belongs, and the flow ID is represented by at least one I 2 The communication method according to claim 6, which corresponds to a C interface.

8. The packet header further includes a third field, the third field indicating that the data packet is 2 8. The communication method according to claim 1, wherein the C-based data packet is used to indicate that the C-based data packet is a C-based data packet.

9. The third field includes a fourth field and a fifth field, and the fourth field is used to indicate that the encapsulation service type of the data packet is a control service by a second preset value, and the fifth field is used to indicate that the data format of the data packet is I 2 The communication method according to claim 8, wherein the third preset value is used to indicate that the data is C data.

10. Inter-Integrated Circuit I 2 1. A C-based communication method, the communication method comprising: receiving, by a second device, a data packet from a first device, the data packet including a packet header and a load, the packet header including a first field, the first field being an I 2 Used to indicate C status, 2 C status includes one of: start of data transmission, continue of data transmission, stop of data transmission, acknowledgement, or negative acknowledgement NACK, and the length of the load is equal to or greater than 0 bits; The second device calculates the I based on the first field. 2 and determining C status. Communication methods.

11. The value of the first field is: Above I 2 A first value used to indicate that C status is the start of said data transmission; Above I 2 A second value used to indicate that the C status is a continuation of the data transmission; Above I 2 a third value used to indicate that the C status is a stop of the data transmission; Above I 2 A fourth value used to indicate that the C status is the ACK; and Above I 2 A fifth value used to indicate that the C status is a NACK. The method of claim 10, comprising one or more of the following:

12. The first field is 2 A C status indicates the start of the data transfer, and the load carries the slave address and read / write flag of the slave device; The communication method further includes: The second device generates at least one I 2 creating a starting state in the C interface; The at least one I 2 transmitting the slave address and the read / write flag over a C interface to the slave device corresponding to the slave address; A communication method according to claim 10 or 11.

13. 13. The communication method according to claim 12, wherein the slave address is represented by 7 bits and the read / write flag is represented by 1 bit.

14. The first field is the I 2 The C status indicates that the data transmission is to continue, and the load is I 2 C data; The communication method further includes: At least one I 2 The I / O is sent to the slave device pointed to by the slave address through the I / O interface. 2 C. transmitting the data; A communication method according to claim 10 or 11.

15. The packet header further includes a second field, the second field being I 2 15. The method of claim 10, further comprising identifying a C interface.

16. The second field is used to indicate a flow identifier ID of a flow to which the data packet belongs, and the flow ID is represented by at least one I 2 The communication method according to claim 15, which is compatible with a C interface.

17. The packet header further includes a third field, the third field indicating that the data packet is 2 17. The communication method according to claim 10, wherein the packet is used to indicate that the packet is a C-based data packet.

18. The third field includes a fourth field and a fifth field, and the fourth field is used to indicate that the encapsulation service type of the data packet is a control service by a second preset value, and the fifth field is used to indicate that the data format of the data packet is I 2 The communication method according to claim 17, wherein the third preset value is used to indicate that the data is C data.

19. Inter-Integrated Circuit I 2 1. A C-based communications device, the communications device comprising: A processing module configured to generate a data packet, the data packet including a packet header and a load, the packet header including a first field, the first field being an I 2 Used to indicate C status, 2 A processing module, wherein the C status includes one of: start of data transmission, continuation of data transmission, stop of data transmission, acknowledgement ACK, or negative acknowledgement NACK, and the length of the load is equal to or greater than 0 bits; a transmission module configured to transmit the data packets to a second device. Communications equipment.

20. The value of the first field may be one of the following: Above I 2 A first value used to indicate that C status is the start of said data transmission; Above I 2 A second value used to indicate that the C status is a continuation of the data transmission; Above I 2 a third value used to indicate that the C status is a stop of the data transmission; Above I 2 A fourth value used to indicate that the C status is the ACK; and Above I 2 A fifth value used to indicate that the C status is a NACK.

20. The communication device of claim 19, comprising one or more of:

21. The first field is the I 2 21. The communication device according to claim 19 or 20, wherein the C status indicates the start of the data transmission, and the load carries a slave address of a slave device and a read / write flag.

22. 22. The communication device of claim 21, wherein the slave address is represented by 7 bits and the read / write flag is represented by 1 bit.

23. The first field is the I 2 The C status indicates that the data transmission is to continue, and the load is I 2 21. A communication device as claimed in claim 19 or 20, for carrying C data.

24. The packet header further includes a second field, the second field being I 2 24. A communication device according to any one of claims 19 to 23, which is used to identify a C interface.

25. The second field is used to indicate a flow identifier ID of a flow to which the data packet belongs, and the flow ID is represented by at least one I 2 25. The communication device of claim 24, which is compatible with a C interface.

26. The packet header further includes a third field, the third field indicating that the data packet is 2 26. A communication device according to claim 19, wherein said signal is used to indicate that said data packet is a C-based data packet.

27. The third field includes a fourth field and a fifth field, and the fourth field is used to indicate that the encapsulation service type of the data packet is a control service by a second preset value, and the fifth field is used to indicate that the data format of the data packet is I 2 The communication device according to claim 26, wherein the third preset value is used to indicate that the data is C data.

28. Inter-Integrated Circuit I 2 1. A C-based communications device, the communications device comprising: A receiving module configured to receive a data packet from a first device, the data packet including a packet header and a load, the packet header including a first field, the first field being an I 2 Used to indicate C status, 2 A receiving module, wherein the C status includes one of: start of data transmission, continuation of data transmission, stop of data transmission, acknowledgement ACK, or negative acknowledgement NACK, and the length of the load is equal to or greater than 0 bits; Based on the first field, 2 and a processing module configured to determine a C status. Communications equipment.

29. The value of the first field may be one of the following: Above I 2 A first value used to indicate that C status is the start of said data transmission; Above I 2 A second value used to indicate that the C status is a continuation of the data transmission; Above I 2 a third value used to indicate that the C status is a stop of the data transmission; Above I 2 A fourth value used to indicate that the C status is the ACK; and Above I 2 A fifth value used to indicate that the C status is a NACK.

30. The communication device of claim 28, comprising one or more of:

30. The first field is 2 A C status indicates the start of the data transfer, and the load carries the slave address and read / write flag of the slave device; The processing module further comprises: At least one I 2 Create the starting state in the C interface; The at least one I 2 configured to transmit the slave address and the read / write flag over a C interface to the slave device pointed to by the slave address; 30. A communication device according to claim 28 or 29.

31. 31. The communication device of claim 30, wherein the slave address is represented by 7 bits and the read / write flag is represented by 1 bit.

32. The first field is the I 2 The C status indicates that the data transmission is to continue, and the load is I 2 C data; The processing module further comprises: At least one I 2 The I / O is sent to the slave device corresponding to the slave address through the I / O interface. 2 C configured to transmit data; 30. A communication device according to claim 28 or 29.

33. The packet header further includes a second field, the second field being I 2 33. A communication device according to any one of claims 28 to 32, used to identify a C interface.

34. The second field is used to indicate a flow identifier ID of a flow to which the data packet belongs, and the flow ID is represented by at least one I 2 34. The communication device of claim 33, which is compatible with a C interface.

35. The packet header further includes a third field, the third field indicating that the data packet is 2 35. A communication device according to any one of claims 28 to 34, used to indicate that the data packet is a C-based data packet.

36. The third field includes a fourth field and a fifth field, and the fourth field is used to indicate that the encapsulation service type of the data packet is a control service by a second preset value, and the fifth field is used to indicate that the data format of the data packet is I 2 The communication device according to claim 35, wherein the third preset value is used to indicate that the data is C data.

37. An apparatus having at least one processor, a memory communicatively coupled to the at least one processor, and a communication interface, comprising: The memory stores instructions executable by the at least one processor, and the at least one processor executes the instructions stored in the memory, whereby the device performs the method of any one of claims 1 to 9 or 10 to 18 using the communication interface. Device.

38. 20. An apparatus having a processor and an interface circuit, the interface circuit configured to receive code instructions and transmit the code instructions to the processor, the processor executing the code instructions to perform the method of any one of claims 1 to 9 or 10 to 18.

39. 20. A computer readable storage medium configured to store instructions that, when executed, perform a method according to any one of claims 1 to 9 or 10 to 18.

40. A communication system having a first device and a second device, the first device configured to perform a method according to any one of claims 1 to 9 and the second device configured to perform a method according to any one of claims 10 to 18.

41. A communication method described in any one of claims 1 to 9, wherein the first device supports one or more I2C interfaces, the second device supports one or more I2C interfaces, and the data packets are transmitted between the first device and the second device based on one or more I2C transmission channels.

Citation Information

Patent Citations

  • Methods and apparatus for electronic device communication

    JP2015513805A

  • Synchronous slave-to-slave communications

    JP2020010395A

  • 2-wire differential-end bus transceiver system based on 12c-bus, and associated method for communication of 2-wire differential-end bus

    WO2015155242A1

  • Host-side transceiver device and transceiver system

    WO2016208038A1