IP Library Granted Patent US 12,182,057
Granted Patent B2
US 12,182,057 · App. 18/184,892 · Granted Dec 31, 2024

Inter integrated circuit-based communication method and apparatus

Inventors: Pengxin Bao (Chengdu, CN); Haibo Wen (Shenzhen, CN)
Assignee: HUAWEI TECHNOLOGIES CO., LTD.
G06F13/4282H04L1/1607H04L45/74H04L69/22G06F2213/0016
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 12,182,057
App. No.
18/184,892
Granted
Dec 31, 2024
Kind
B2
Abstract

An inter integrated circuit (I 2 C)-based communication method incudes when an I 2 C signal is encapsulated into a data packet for transparent transmission, an I 2 C status is indicated by a first field in a packet header of the data packet. The data packet may have no load part, or the data packet has a load part but the load part is used to carry a slave address, a read/write flag, or I 2 C data. Because the I 2 C status is indicated in the packet header of the data packet, the I 2 C status may be encapsulated in a same data packet together with the slave address, the read/write flag, or the I 2 C data. In other words, the I 2 C status may not need to occupy one data packet separately.

Claims (66)

1. A communication method implemented by a first device, wherein the communication method comprises:

generating a data packet comprising a packet header and a load, wherein the packet header comprises a first field indicating an inter integrated circuit (I 2 C) status and a third field comprising a fourth field and a fifth field, wherein the third field indicates that the data packet is an I 2 C-based data packet when the fourth field indicates that an encapsulation service type of the data packet is a control service and the fifth field indicates that a data format of the data packet is I 2 C data, wherein the I 2 C status is start of data transmission, continuation of the data transmission, stop of the data transmission, an acknowledgment (ACK), or a negative acknowledgment (NACK), and wherein a length of the load is greater than or equal to 0 bits; and

sending the data packet to a second device.

2. The communication method of claim 1 , wherein the first field comprises:

a first value indicating that the I 2 C status is the start of the data transmission;

a second value indicating that the I 2 C status is the continuation of the data transmission;

a third value indicating that the I 2 C status is the stop of the data transmission;

a fourth value indicating that the I 2 C status is the ACK; or

a fifth value indicating that the I 2 C status is the NACK.

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

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

5. The communication method of claim 1 , wherein the first field indicates that the I 2 C status is the continuation of the data transmission, and wherein the load carries I 2 C data.

6. The communication method of claim 1 , wherein the packet header further comprises a second field indicating an I 2 C interface.

7. The communication method of claim 6 , wherein the second field indicates a flow identifier (ID) of a flow of the data packet, and wherein the flow ID corresponds to the I 2 C interface.

8. The communication method of claim 1 , wherein the third field indicates that the data packet is the I 2 C-based data packet when the third field is a first preset value.

9. The communication method of claim 8 , wherein the fourth field indicates that the encapsulation service type is the control service when the fourth field is a second preset value, and wherein the fifth field indicates that the data format is the I 2 C data when the fifth field is a third preset value.

10. A communication method implemented by a second device, wherein the communication method comprises:

receiving, from a first device, a data packet comprising a packet header and a load, wherein the packet header comprises a first field indicating an inter integrated circuit (I 2 C) status and a third field comprising a fourth field and a fifth field, wherein the third field indicates that the data packet is an I 2 C-based data packet when the fourth field indicates that an encapsulation service type of the data packet is a control service and the fifth field indicates that a data format of the data packet is I 2 C data, wherein the I 2 C status is start of data transmission, continuation of the data transmission, stop of the data transmission, an acknowledgment (ACK), or a negative acknowledgment (NACK), and wherein a length of the load is greater than or equal to 0 bits; and

determining the I 2 C status based on the first field.

11. The communication method of claim 10 , wherein the first field comprises:

a first value indicating that the I 2 C status is the start of the data transmission;

a second value indicating that the I 2 C status is the continuation of the data transmission;

a third value indicating that the I 2 C status is the stop of the data transmission;

a fourth value indicating that the I 2 C status is the ACK; or

a fifth value indicating that the I 2 C status is the NACK.

12. The communication method of claim 10 , wherein the first field indicates that the I 2 C status is the start of the data transmission, wherein the load carries a slave address of a slave device and carries a read/write flag, and wherein the communication method further comprises:

generating a start state on at least one I 2 C interface; and

sending, through the at least one I 2 C interface, the slave address and the read/write flag to the slave device corresponding to the slave address.

13. The communication method of claim 10 , wherein the first field indicates that the I 2 C status is the continuation of the data transmission, wherein the load carries I 2 C data, and wherein the communication method further comprises sending, through at least one I 2 C interface, the I 2 C data to a slave device corresponding to a slave address.

14. The communication method of claim 10 , wherein the packet header further comprises a second field indicating an I 2 C interface.

15. The communication method of claim 14 , wherein the second field indicates a flow identifier (ID) of a flow of the data packet, and wherein the flow ID corresponds to the I 2 C interface.

16. The communication method of claim 10 , wherein the third field indicates that the data packet is the I 2 C-based data packet when the third field is a first preset value.

17. A communication apparatus, comprising:

a memory configured to store instructions; and

a processor coupled to the memory and configured to:

generate a data packet comprising a packet header and a load, wherein the packet header comprises a first field indicating an I 2 C status and a third field comprising a fourth field and a fifth field, wherein the third field indicates that the data packet is an I 2 C-based data packet when the fourth field indicates that an encapsulation service type of the data packet is a control service and the fifth field indicates that a data format of the data packet is I 2 C data, wherein the I 2 C status is start of data transmission, continuation of the data transmission, stop of the data transmission, an acknowledgment (ACK), or a negative acknowledgment (NACK), and wherein a length of the load is greater than or equal to 0 bits; and

send the data packet to a second device.

18. The communication apparatus of claim 17 , wherein the first field comprises:

a first value indicating that the I 2 C status is the start of the data transmission;

a second value indicating that the I 2 C status is the continuation of the data transmission;

a third value indicating that the I 2 C status is the stop of the data transmission;

a fourth value indicating that the I 2 C status is the ACK; or

a fifth value indicating that the I 2 C status is the NACK.

19. The communication apparatus of claim 17 , wherein the first field indicates that the I 2 C status is the start of the data transmission, and wherein the load carries a slave address of a slave device and carries a read/write flag.

20. The communication apparatus of claim 17 , wherein the first field indicates that the I 2 C status is the continuation of the data transmission, and wherein the load carries I 2 C data.

21. The communication apparatus of claim 17 , wherein the packet header further comprises a second field indicating an I 2 C interface.

22. The communication apparatus of claim 21 , wherein the second field indicates a flow identifier (ID) of a flow of the data packet, and wherein the flow ID corresponds to the I 2 C interface.

23. The communication apparatus of claim 17 , wherein the third field indicates that the data packet is the I 2 C-based data packet when the third field is a first preset value.

24. A communication apparatus, comprising:

a memory configured to store instructions; and

a processor coupled to the memory and configured to:

receive a data packet from a first device, wherein the data packet comprises a packet header and a load, wherein the packet header comprises a first field indicating an I 2 C status and a third field comprising a fourth field and a fifth field, wherein the third field indicates that the data packet is an I 2 C-based data packet when the fourth field indicates that an encapsulation service type of the data packet is a control service and the fifth field indicates that a data format of the data packet is I 2 C data, wherein the I 2 C status is start of data transmission, continuation of the data transmission, stop of the data transmission, an acknowledgment (ACK), or a negative acknowledgment (NACK), and wherein a length of the load is greater than or equal to 0 bits; and

determine the I 2 C status based on the first field.

25. The communication apparatus of claim 24 , wherein the first field comprises:

a first value indicating that the I 2 C status is the start of the data transmission;

a second value indicating that the I 2 C status is the continuation of the data transmission;

a third value indicating that the I 2 C status is the stop of the data transmission;

a fourth value indicating that the I 2 C status is the ACK; or

a fifth value indicating that the I 2 C status is the NACK.

26. The communication apparatus of claim 24 , wherein the first field indicates that the I 2 C status is the start of the data transmission, wherein the load carries a slave address of a slave device and carries a read/write flag, and wherein the processor is further configured to:

generate a start state on at least one I 2 C interface; and

send, through the at least one I 2 C interface, the slave address and the read/write flag to the slave device corresponding to the slave address.

27. The communication apparatus of claim 24 , wherein the first field indicates that the I 2 C status is the continuation of the data transmission, wherein the load carries I 2 C data, and wherein the processor is further configured to send, through at least one I 2 C interface, the I 2 C data to a slave device corresponding to a slave address.

28. The communication apparatus of claim 24 , wherein the packet header further comprises a second field indicating an I 2 C interface.

29. The communication apparatus of claim 28 , wherein the second field indicates a flow identifier (ID) of a flow of the data packet, and wherein the flow ID corresponds to at least one I 2 C interface.

30. The communication apparatus of claim 24 , wherein the third field indicates that the data packet is the I 2 C-based data packet when the third field is a first preset value.

Assignments (2)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Nov 12, 2024
From: HUAWEI TECHNOLOGIES CO., LTD.
To: SHENZHEN YINWANG INTELLIGENT TECHNOLOGIES CO., LTD.
Reel/Frame 069336/0125 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Sep 11, 2024
From: BAO, PENGXIN; WEN, HAIBO
To: HUAWEI TECHNOLOGIES CO., LTD.
Reel/Frame 068555/0277 →