A communication method supporting CAN bus transmission of more than 8 bytes of data

By transmitting more than 8 bytes of data segments between CAN bus nodes, using data interception and frame decomposition methods, the problem of low transmission efficiency and accuracy is solved, and efficient data transmission is achieved.

CN115174307BActive Publication Date: 2024-10-15ANHUI XIAOJUN INTELLIGENT EQUIP CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210803933.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-07-07
Publication Date
2024-10-15
Estimated Expiration
2042-07-07

AI Technical Summary

Technical Problem

The existing CAN bus protocol cannot effectively transmit data exceeding 8 bytes, resulting in low transmission efficiency and lack of data transmission accuracy and response mechanism.

Method used

By transmitting more than 8 bytes of data segments between two nodes of the CAN bus, data interception and frame decomposition methods are used to calculate the integer frame and remainder frame, and put the data frame into the designated memory at the receiving end to avoid using CAN data buffer.

Benefits of technology

It improves data transmission efficiency, supports massive data transmission, and ensures data accuracy and efficiency at the receiving end.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115174307B_ABST
    Figure CN115174307B_ABST
Patent Text Reader

Abstract

The invention discloses a communication method supporting CAN bus transmission of more than 8 bytes of data, and relates to the technical field of data transmission. The invention includes a data transmission method and a data receiving method; receiving a frame of data, judging whether the receiving device_id is equal to the device_id of the node; judging whether the result of subtracting frame_index multiplied by 8 from payload_length is greater than or equal to 8; if so, putting this data frame into the 8-byte length memory starting from the frame_index multiplied by 8 of recv_buf; if not, putting this data frame into the (payload_length subtracted frame_index multiplied by 8) length memory starting from the frame_index multiplied by 8 of recv_buf; the data segment content is stored in the recv_buf memory, and the reception ends. The invention intercepts the data to be transmitted through the CAN protocol, judges and processes the integer frame and the remainder frame generated after the interception, and after multiplying each segment identifier of the data frame by eight, the data frame is put into the payload_length subtracted frame_index multiplied by 8 length memory of recv_buf starting from the frame_index multiplied by 8, thereby improving the data transmission efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of data transmission, and in particular relates to a communication method supporting CAN bus transmission of data with more than 8 bytes. Background Art

[0002] With the development of microcomputer control technology and industrial fieldbus technology, fieldbus-based communication methods are increasingly being used in industrial control. Among them, CAN bus is favored by many developers for its simple structure, low cost, good functional characteristics, high reliability, strong anti-interference ability and openness.

[0003] CAN serial bus has the advantages of long transmission distance and high transmission speed, and it has a perfect error detection mechanism. It adopts the frame transmission mode of "multiple access conflict arbitration" mechanism to ensure that no information is lost; each frame can transmit up to 8 bytes of data, which can provide high real-time performance, etc. The performance advantage ensures that CAN can be applied in many fields, and CAN can be seen in the automotive industry, shipping, mechanical control, factory automation, building automation, etc.

[0004] The CAN fieldbus system consists of three layers: the physical layer, the data link layer, and the application layer. The basic protocol specifications of CAN only include the physical layer protocol and the data link layer protocol. One of the core tasks of the system that uses the CAN bus as a transmission mechanism is to design the application layer protocol of the CAN bus. The CAN2.0A standard CAN protocol and the CAN2.0B extended CAN communication protocol support sending up to 8 bytes of data each time. When a node sends a data segment of more than 8 bytes to another node, neither the CAN2.0A nor the CAN2.0B communication protocol can meet the requirement of sending the data segment of this length at one time. However, current embedded systems often have a single function, a simple structure, and limited resources, but require fast transmission speed, high reliability and efficiency, so a new application layer protocol with a simple structure is needed.

[0005] At present, Wu Zhaohui and others from Zhejiang University have completed a communication protocol for CAN buses based on connections for large amounts of data, which implements a connection-based application layer protocol for sending messages with data larger than 8 bytes. Although this protocol implements the packaging and sending of data larger than 8 bytes, it lacks a response mechanism for transmission and therefore cannot handle transmission errors. In particular, this protocol can only achieve a maximum of 256*7 bytes of data transmission, has no mechanism for massive data transmission, and cannot guarantee the accuracy of data transmission. At the same time, this protocol is based on connections, and each transmission requires a connection to be established first, so the transmission efficiency is relatively low.

[0006] Notes on professional names used in this application document:

[0007] 1. CAN data buffer: the data field interval in the CAN data frame.

[0008] 2. Data segment: A piece of data, the size range is 1 to 2 times the power of payload_length, in bytes. If it is larger than 8 bytes, it cannot be transmitted all at once through the CAN bus.

[0009] 3. Data frame: A frame of data, with a size range of 0-8, in bytes, can be transmitted through the CAN bus at one time.

[0010] 4. payload_length: data segment length, in bytes.

[0011] 5. Integer frame: Start intercepting from the starting position of the data segment, and intercept a segment every 8 bytes. This segment of data is called an integer frame.

[0012] 6. Remainder frame: A piece of data with a size less than or equal to 8 intercepted from the data segment, and its length is equal to the remainder of payload_length divided by 8.

[0013] 7. frame_count: the number of integer frames.

[0014] 8. remaining_frame_length: The length of the remainder frame, which is equal to the remainder of payload_length divided by 8.

[0015] 9. frame_index: The identifier of each segment after the data segment is intercepted. Each segment identifier is unique relative to other segments.

[0016] 10. Extended frame id: identifier field in CAN2.0B communication protocol.

[0017] 11. Standard frame id: identifier field in CAN2.0A communication protocol.

[0018] 12. Data frame ID: The ID of the CAN data frame. When using the CAN2.0A protocol, it is equal to the standard frame ID. When using the CAN2.0B protocol, it is equal to the extended frame ID.

[0019] 13. device_id: device id, which is different from the extended frame id / standard frame id and is part of the extended frame id / standard frame id.

[0020] 14. extend_id_head: The value obtained by performing a bitwise OR operation on the result of shifting device_id left by 25 bits, the result of shifting payload_length left by 11 bits, and frame_index.

[0021] 15. extend_id: Synonymous with extended frame id, equal to the bitwise OR result of extend_id_head and frame_index.

[0022] 16. recv_buf: Receive data segment memory buffer, used to store the received data segment content, the length is greater than or equal to the data segment length.

[0023] 17. ID_length: When the CAN2.0A communication protocol is selected, this value is 11; when the CAN2.0B communication protocol is selected, this value is 29. Summary of the invention

[0024] The purpose of the present invention is to provide a communication method that supports CAN bus transmission of more than 8 bytes of data, by transmitting data segments of more than 8 bytes between two nodes of the CAN bus and without using a CAN data buffer, thereby solving the problem that the existing CAN bus cannot upload more than 8 bytes of data, resulting in low transmission efficiency.

[0025] In order to solve the above technical problems, the present invention is achieved through the following technical solutions:

[0026] The present invention is a communication method supporting CAN bus transmission of data with more than 8 bytes, including a data sending method and a data receiving method;

[0027] The data sending method includes the following steps:

[0028] Step S1: Calculate frame_count, remaining_frame_length, and initialize frame_index to 0;

[0029] Step S2: Determine whether frame_index is less than frame_count;

[0030] Step S3: if frame_index is less than frame_count, then get extend_id_head, calculate extend_id=extend_id_head bitwise OR frame_index;

[0031] If frame_index is greater than or equal to frame_count, execute step S6;

[0032] Step S4: Obtain an 8-byte data frame starting from the frame_index*8th byte as the data frame to be sent;

[0033] Step S5: the current node sends the data frame to the CAN bus, then increases the frame_index by 1, and returns to step S2;

[0034] Step S6: Get extend_id_head, calculate extend_id=extend_id_head bitwise OR frame_index;

[0035] Step S7: obtaining data of the length of remaining_frame_length starting from the frame_index*8th byte of the data segment as the data frame to be sent;

[0036] Step S8: the current node sends the data frame to the CAN bus, and the sending of the data segment content ends;

[0037] The data receiving method includes the following steps:

[0038] Step F1: Receive a frame of data and calculate the values ​​of device_id, payload_length, and frame_index;

[0039] Step F2: Determine whether the received device_id is equal to the device_id of the current node;

[0040] If they are equal, execute step F3;

[0041] If they are not equal, the data frame is discarded and step F1 is continued;

[0042] Step F3: Determine whether the result of subtracting frame_index from payload_length and multiplying 8 is greater than or equal to 8;

[0043] If yes, execute step F4;

[0044] If not, execute step F5;

[0045] Step F4: put this data frame into the 8-byte length memory starting from the frame_index multiplied by 8 of recv_buf;

[0046] Step F5: put this data frame into the memory of length (payload_length minus frame_index multiplied by 8) starting from frame_index multiplied by 8 in recv_buf;

[0047] Step F6: The data segment content is saved in the recv_buf memory, and the reception is completed.

[0048] As a preferred technical solution, in step F1, payload_length represents the length of a data segment, and the data segment is intercepted to generate an integer frame and a remainder frame. The length of the integer frame is 8 bytes, the number of integer frames is defined as frame_count, the length of the remainder segment is defined as remaining_frame_length, the number of remainder frames is 1, and the calculation formula between frame_count, payload_length and remaining_frame_length is as follows:

[0049] frame_count=payload_length / 8

[0050] remain_frame_length=payload_length%8.

[0051] As a preferred technical solution, the device_id, payload_length, and frame_index are fields of the data frame ID, and the sizes are defined as m bits, n bits, and k bits respectively;

[0052] Among them, m, n and k satisfy the following relationship:

[0053]

[0054] As a preferred technical solution, the values ​​of m, n and k are all defined by the user; after m is defined, n and k are rounded to the nearest integer, and the following conditions must be met:

[0055]

[0056] As a preferred technical solution, the CAN bus uses the CAN communication protocol for transmission; the CAN communication protocol includes the CAD2.0A communication protocol and the CAD2.0B communication protocol.

[0057] As a preferred technical solution, the CAD2.0A communication protocol supports an 11-bit extended frame id; the 11 is the extended frame id, bit10 to bit9 are used to identify the device ID, defined as device_id, with a size of 2 bits and a value range of 0 to 3, supporting up to 4 devices for communication; bit8 to bit3 are used to store payload_length, with a size of 6 bits and a value range of 0 to 63, supporting a maximum transmission data segment size of 64 bytes; bit2 to bit0 are used to store frame_index, with a size of 3 bits and a value range of 0 to 7, supporting a maximum transmission of 8 data frames.

[0058] As a preferred technical solution, the CAD2.0B communication protocol supports a 29-bit extended frame ID; in the 29-bit extended frame ID, bit28 to bit25 are used to identify the device ID, defined as device_id, with a size of 4 bits and a value range of 0 to 15, supporting up to 16 devices for communication; bit24 to bit11 are used to store payload_length, with a size of 14 bits and a value range of 0 to 16383, supporting a maximum transmission data segment size of 16384 bytes; bit10 to bit0 are used to store frame_index, with a size of 11 bits and a value range of 0 to 2047, supporting a maximum transmission of 2048 data frames.

[0059] The present invention has the following beneficial effects:

[0060] The present invention intercepts the data to be transmitted through the CAN protocol, judges and processes the integer frame and the remainder frame generated after the interception, and after multiplying each segment identifier of the data frame by eight, the data frame is put into the (payload_length minus frame_index multiplied by 8) length memory of recv_buf starting from frame_index multiplied by 8, thereby improving data transmission efficiency.

[0061] Of course, any product implementing the present invention does not necessarily need to achieve all of the advantages described above at the same time. BRIEF DESCRIPTION OF THE DRAWINGS

[0062] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for describing the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.

[0063] Figure 1 It is a data transmission flow chart of the present invention;

[0064] Figure 2 This is a data receiving flow chart of the present invention. DETAILED DESCRIPTION

[0065] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0066] This method proposes a communication method that supports CAN bus transmission of more than 8 bytes of data. This method can support CAN bus transmission of more than 8 bytes of data segments between two nodes, and does not use CAN data buffer, thereby improving transmission efficiency.

[0067] During communication, the length of a data segment is defined as payload_length, and the data segment is intercepted to generate integer frames and remainder frames. The length of the integer frame is 8 bytes, the number of integer frames is defined as frame_count, the length of the remainder segment is defined as remaining_frame_length, and the number of remainder frames is 1. The definition and calculation methods of each variable are as follows:

[0068] frame_count=payload_length / 8

[0069] remain_frame_length=payload_length%8

[0070] The data frame ID is decomposed as shown in Table 1:

[0071] device_id payload_length frame_index

[0072] device_id: This area stores the device_id value, and its size is defined as m bits.

[0073] payload_length: This area stores the payload_length value, and the size is defined as n bits.

[0074] frame_index: This area stores the frame_index value, and its size is defined as k bits.

[0075] Among them, m, n, and k satisfy the following relationship:

[0076]

[0077] The values ​​of m, k, and n are set by the user. However, after m is determined, n and k are guaranteed to be integers.

[0078]

[0079] The present invention mainly solves the problem that the traditional CAN2.0A standard CAN protocol and the CAN2.0B extended CAN communication protocol support sending 8 bytes of data at most each time. When a node sends a frame of data segment exceeding 8 bytes in size to another node, neither the CAN2.0A nor the CAN2.0B communication protocol can meet the requirement of sending the data segment of this length at one time.

[0080] Example 1 (taking CAN2.0A communication protocol transmission as an example)

[0081] CAN2.0A supports 11-bit extended frame ID, so ID_length = 11. Assuming m = 2, n = 6, k = 3, the following definition is given:

[0082] ①Bit10~bit9 is used to identify the device ID, defined as device_id, with a size of 2 bits and a value range of 0-3, supporting up to 4 devices for communication.

[0083] ②Bit8~bit3 are used to store payload_length, which is 6 bits in size and ranges from 0 to 63. The maximum supported transmission data segment size is 64 bytes.

[0084] ③Bit2~bit0 is used to store frame_index, the size is 3 bits, the value range is 0~7, and it supports the transmission of up to 8 data frames.

[0085] Assuming that the length of the data to be sent is 64 bytes, bit10 to bit9 are the IDs of other node devices to be sent by the user, which are customized by the user, bit8 to bit3 are 0x3F, and bit2 to bit0 are 0x7.

[0086] like Figure 1 As shown, the sending process is as follows:

[0087] Step ①: Calculate frame_count, remaining_frame_length, and initialize frame_index to 0.

[0088] Step 2: Determine whether frame_index is less than frame_count?

[0089] Step ③: If frame_index is less than frame_count, get extend_id_head and calculate extend_id. If frame_index is greater than or equal to frame_count, execute step ⑥.

[0090] Step ④: Get the frame_index data frame as the data frame to be sent, and the data frame length is 8 bytes.

[0091] Step ⑤: The current node sends the data frame to the CAN bus, and then increases the frame_index by 1.

[0092] Step 6: Get extend_id_head and calculate extend_id.

[0093] Step 7: Get the frame_index data frame as the data frame to be sent, with a length of remain_frame_length

[0094] Step ⑧: The current node sends the data frame to the CAN bus, and the sending of the data segment content ends.

[0095] like Figure 2 As shown, the receiving process is as follows:

[0096] Step 1: Receive a frame of data and calculate the values ​​of device_id, payload_length, and frame_index.

[0097] Step ②: Determine whether the received device_id is equal to the device_id of this node? If they are equal, execute step ③. If they are not equal, discard the data frame and then execute step ①.

[0098] Step ③: If the result of subtracting frame_index from payload_length and multiplying it by 8 is greater than or equal to 8, execute step ④; otherwise, execute step ⑤.

[0099] Step ④: Put this data frame into the 8-byte length memory starting from the frame_index multiplied by 8 in recv_buf.

[0100] Step ⑤: Put this data frame into the (payload_length minus frame_index multiplied by 8) length memory starting from the frame_index multiplied by 8 in recv_buf.

[0101] Step ⑥: The data segment content is saved in the recv_buf memory, and the reception is completed.

[0102] Example 2 (taking CAN2.0B communication protocol transmission as an example)

[0103] CAN2.0B supports 29-bit extended frame ID, so ID_length = 29. Assuming m = 4, n = 14, k = 11, the following definition is given:

[0104] ①Bit28~bit25 is used to identify the device ID, defined as device_id, with a size of 4 bits and a value range of 0-15, supporting up to 16 devices for communication.

[0105] ②Bit24 to bit11 are used to store payload_length, which is 14 bits in size and has a value range of 0 to 16383. The maximum supported transmission data segment size is 16384 bytes.

[0106] ③Bit10 to bit0 of San are used to store frame_index, which is 11 bits in size and ranges from 0 to 2047. It supports the transmission of up to 2048 data frames.

[0107] Assuming that the length of the data to be sent is 16384 bytes, bit28 to bit25 are the IDs of other node devices to be sent by the user, which are customized by the user, bit24 to bit11 are 0x3FFF, and bit10 to bit0 are 0x7FF.

[0108] like Figure 1 As shown, the sending process is as follows:

[0109] Step ①: Calculate frame_count, remaining_frame_length, and initialize frame_index to 0.

[0110] Step 2: Determine whether frame_index is less than frame_count?

[0111] Step ③: If frame_index is less than frame_count, get extend_id_head and calculate extend_id. If frame_index is greater than or equal to frame_count, execute step ⑥.

[0112] Step ④: Get the frame_index data frame as the data frame to be sent, and the data frame length is 8 bytes.

[0113] Step 5: The current node sends the data frame to the CAN bus, and then increases the frame_index by 1.

[0114] Step 6: Get extend_id_head and calculate extend_id.

[0115] Step 7: Get the frame_index data frame as the data frame to be sent, with a length of remain_frame_length

[0116] Step ⑧: The current node sends the data frame to the CAN bus, and the sending of the data segment content ends.

[0117] like Figure 2 As shown, the receiving process is as follows:

[0118] Step 1: Receive a frame of data and calculate the values ​​of device_id, payload_length, and frame_index.

[0119] Step ②: Determine whether the received device_id is equal to the device_id of this node. If they are equal, execute step ③. If they are not equal, discard the data frame and then execute step ①.

[0120] Step ③: If the result of subtracting frame_index from payload_length and multiplying it by 8 is greater than or equal to 8, execute step ④; otherwise, execute step ⑤.

[0121] Step ④: Put this data frame into the 8-byte length memory starting from the frame_index multiplied by 8 in recv_buf.

[0122] Step ⑤: Put this data frame into the (payload_length minus frame_index multiplied by 8) length memory starting from the frame_index multiplied by 8 in recv_buf.

[0123] Step ⑥: The data segment content is saved in the recv_buf memory, and the reception is completed.

[0124] It is worth noting that in the above system embodiment, the various units included are only divided according to functional logic, but are not limited to the above division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of the present invention.

[0125] In addition, those skilled in the art can understand that all or part of the steps in the above-mentioned embodiments can be completed by instructing related hardware through a program, and the corresponding program can be stored in a computer-readable storage medium.

[0126] The preferred embodiments of the present invention disclosed above are only used to help illustrate the present invention. The preferred embodiments do not describe all the details in detail, nor do they limit the invention to the specific implementation methods described. Obviously, many modifications and changes can be made according to the content of this specification. This specification selects and specifically describes these embodiments in order to better explain the principles and practical applications of the present invention, so that those skilled in the art can understand and use the present invention well. The present invention is limited only by the claims and their full scope and equivalents.

Claims

1. A communication method supporting CAN bus transmission of more than 8 bytes of data, characterized in that: Including methods for sending data and methods for receiving data; The data sending method includes the following steps: Step S1: Calculate frame_count, remaining_frame_length, and initialize frame_index to 0; Step S2: Determine whether frame_index is less than frame_count; Step S3: if frame_index is less than frame_count, then get extend_id_head, calculate extend_id=extend_id_head bitwise OR frame_index; If frame_index is greater than or equal to frame_count, execute step S6; Step S4: Obtain an 8-byte data frame starting from the frame_index*8th byte as the data frame to be sent; Step S5: the current node sends the data frame to the CAN bus, then increases the frame_index by 1, and returns to step S2; Step S6: Get extend_id_head, calculate extend_id=extend_id_head bitwise OR frame_index; Step S7: obtaining data of the length of remaining_frame_length starting from the frame_index*8th byte of the data segment as the data frame to be sent; Step S8: the current node sends the data frame to the CAN bus, and the sending of the data segment content ends; The data receiving method includes the following steps: Step F1: Receive a frame of data and calculate the values ​​of device_id, payload_length, and frame_index; Step F2: Determine whether the received device_id is equal to the device_id of the current node; If they are equal, execute step F3; If they are not equal, the data frame is discarded and step F1 is continued; Step F3: Determine whether the result of subtracting frame_index from payload_length and multiplying 8 is greater than or equal to 8; If yes, execute step F4; If not, execute step F5; Step F4: put this data frame into the 8-byte length memory starting from the frame_index multiplied by 8 of recv_buf; Step F5: put this data frame into the length memory of the payload_length minus the frame_index multiplied by 8 starting from the frame_index multiplied by 8 in recv_buf; Step F6: The data segment content is saved in the recv_buf memory, and the reception is completed; Among them, frame_count is the number of integer frames; remaining_frame_length is the length of the remainder frame, which is equal to the remainder of payload_length divided by 8; frame_index is the identifier of each segment after the data segment is truncated, and each segment identifier is unique relative to other segments; extend_id_head is the value obtained by bitwise OR operation of the result of device_id shifted left by 25 bits, the result of payload_length shifted left by 11 bits, and frame_index; extend_id is synonymous with extended frame id, which is equal to the bitwise OR result of extend_id_head and frame_index; payload_length is the length of the data segment, in bytes; recv_buf is the memory buffer for receiving data segments, which is used to store the received data segment content, and its length is greater than or equal to the data segment length.

2. A communication method according to claim 1 that supports CAN bus transmission of more than 8 bytes of data, characterized in that: In step F1, payload_length represents the length of a data segment, and the data segment is intercepted to generate an integer frame and a remainder frame. The length of the integer frame is 8 bytes, the number of integer frames is defined as frame_count, and the length of the remainder frame is defined as remaining_frame_length. The number of remainder frames is 1, and the calculation formula between frame_count, payload_length and remaining_frame_length is as follows: frame_count=payload_length / 8 remain_frame_length=payload_length%8; Among them, payload_length / 8 represents the integer of payload_length divided by 8, and payload_length%8 represents the remainder of payload_length divided by 8.

3. A communication method according to claim 2 that supports CAN bus transmission of more than 8 bytes of data, characterized in that: The device_id, payload_length, and frame_index are fields of the data frame ID, and the sizes are defined as m bits, n bits, and k bits, respectively; Among them, m, n and k satisfy the following relationship: Among them, ID_length is 11 when the CAN2.0A communication protocol is selected, and the value is 29 when the CAN2.0B communication protocol is selected.

4. A communication method according to claim 3 that supports CAN bus transmission of more than 8 bytes of data, characterized in that: The values ​​of m, n and k are all user-defined; after m is defined, n and k are rounded, and the following conditions must be met:

5. A communication method according to claim 1 that supports CAN bus transmission of more than 8 bytes of data, characterized in that: The CAN bus uses the CAN communication protocol for transmission; the CAN communication protocol includes the CAN2.0A communication protocol and the CAN2.0B communication protocol.

6. A communication method according to claim 5 that supports CAN bus transmission of more than 8 bytes of data, characterized in that: The CAN2.0A communication protocol supports an 11-bit extended frame ID; in the 11-bit extended frame ID, bit10 to bit9 are used to identify the device ID, defined as device_id, with a size of 2 bits and a value range of 0 to 3, supporting up to 4 devices for communication; bit8 to bit3 are used to store payload_length, with a size of 6 bits and a value range of 0 to 63, supporting a maximum transmission data segment size of 64 bytes; bit2 to bit0 are used to store frame_index, with a size of 3 bits and a value range of 0 to 7, supporting a maximum transmission of 8 data frames.

7. A communication method according to claim 5 that supports CAN bus transmission of more than 8 bytes of data, characterized in that: The CAN2.0B communication protocol supports a 29-bit extended frame ID; in the 29-bit extended frame ID, bit28 to bit25 are used to identify the device ID, defined as device_id, with a size of 4 bits and a value range of 0 to 15, supporting up to 16 devices for communication; bit24 to bit11 are used to store payload_length, with a size of 14 bits and a value range of 0 to 16383, supporting a maximum transmission data segment size of 16384 bytes; bit10 to bit0 are used to store frame_index, with a size of 11 bits and a value range of 0 to 2047, supporting a maximum transmission of 2048 data frames.