Multistage bus data communication method

By dividing multi-level buses into different levels and optimizing data transmission processes, the problem of data conflict in multi-level bus data communication is solved, and efficient and accurate data transmission and system stability are achieved.

CN119669125APending Publication Date: 2025-03-21TIANJIN JINHANG COMP TECH RES INST
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202411733232.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-29
Publication Date
2025-03-21

AI Technical Summary

Technical Problem

In multi-stage bus data communication, data conflicts may occur when two or more devices attempt to send data at the same time, resulting in data transmission failure, and it is not possible to ensure efficient and accurate transmission of data from the source node to the target node.

Method used

By dividing the bus into the main bus, the secondary bus and the local bus, each level is responsible for data communication, data classification and identification of different ranges, determining data priority, performing data preprocessing and encapsulation, selecting data with high priority for transmission, and using a high priority preferred scheduling algorithm to determine the transmission order of data.

Benefits of technology

By grading buses and optimizing data transmission processes, reduce bus conflicts and interference, improve transmission efficiency, and ensure data accuracy and system stability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119669125A_ABST
    Figure CN119669125A_ABST
Patent Text Reader

Abstract

The invention discloses a multi-level bus data communication method which specifically comprises the following steps: S1, bus grading: buses in a system are divided into three levels, namely a main bus, a secondary bus and a local bus, and each level is responsible for data communication in different ranges; s2, data classification and identification: classifying the transmitted data according to characteristics and purposes of the transmitted data, and allocating a unique identifier to each type of data so as to facilitate identification in a transmission process; the invention relates to the technical field of communication. According to the multi-level bus data communication method, data transmission tasks are dispersed to different bus levels, so that data flow can be optimized, conflicts and interference on the buses can be reduced, the transmission efficiency is further improved, a system is allowed to process various types of communication requirements more flexibly, and the communication efficiency is improved through coordination work of the buses of different levels. Efficient and reliable data transmission is realized, and the accuracy of data transmission and the stability of the system are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communication technology, in particular to a multi-level bus data communication method. Background Art

[0002] The bus is a communication line in a computer system that is responsible for connecting various hardware. It can transmit data, addresses and control signals. A multi-level bus refers to a communication system in a computer system that is used to connect different levels of hardware devices. These levels may include CPU, memory, peripherals, etc. Each level of the bus has its specific functions and transmission rate.

[0003] The reference patent name is: A data selection method in multi-level bus data transmission (patent publication number: CN109582617A, patent publication date: 2019.04.05), which combines the communication status of the devices on the data transmission path with the data validity judgment at the data source to form a multi-level data validity judgment mechanism to achieve accurate selection of data in multi-level bus data transmission, wherein the multi-level data validity judgment mechanism is divided into first-level data validity judgment, second-level data validity judgment and third-level data validity judgment. Only when all three levels of data validity judgment are valid, the data is considered valid. The data selection method in multi-level bus data transmission comprehensively considers the communication status of all devices on the data transmission path and the data validity of the data source to form a multi-level data validity judgment mechanism to achieve accurate data selection, and the electromechanical core processor performs abnormal data processing to improve the reliability of multi-level bus data transmission.

[0004] Based on what is described in the above document: In multi-level bus data communication, data conflict is a common problem. When two or more devices try to send data on the bus at the same time, data conflict may occur, resulting in data transmission failure, and thus it is impossible to ensure that the data can be efficiently and accurately transmitted from the source node to the target node. For this reason, the present invention provides a multi-level bus data communication method. Summary of the invention

[0005] In view of the shortcomings of the prior art, the present invention provides a multi-level bus data communication method, which solves the problem that in multi-level bus data communication, when two or more devices try to send data on the bus at the same time, data conflicts may occur, resulting in data transmission failure, and thus it is impossible to ensure that data can be efficiently and accurately transmitted from the source node to the target node.

[0006] To achieve the above objectives, the present invention is implemented through the following technical solutions: a multi-level bus data communication method, specifically comprising the following steps:

[0007] S1. Bus classification: The buses in the system are divided into three levels: primary bus, secondary bus and local bus. Each level is responsible for data communication in a different range.

[0008] S2. Data classification and identification: Classify the transmitted data according to its characteristics and purpose, and assign a unique identifier to each type of data to facilitate identification during transmission;

[0009] S3. Determine data priority: Assign priority to each type of data based on its real-time nature, importance, and transmission requirements;

[0010] S4, data preprocessing: preprocess the data to reduce the data volume or improve data security. After the preprocessing is completed, encapsulate the data into frames;

[0011] S5, multi-level bus data selection and scheduling: select the next batch of data to be transmitted according to the sending node, the current communication environment and the data priority, and use the high priority optimization scheduling algorithm to determine the order in which the data is sent;

[0012] S6, data transmission and confirmation: the selected data is sent to the target node through the bus. After the target node receives the data, it verifies the data and sends a confirmation signal to the sending node;

[0013] S7, Error handling and retransmission: If an error is detected during data transmission, the error handling process is executed to retransmit the data or use error correction code to repair the data to ensure that all data can meet the predetermined reliability standards during transmission;

[0014] S8, Data arrival and processing: The target node receives and processes the arriving data.

[0015] Preferably, the main bus in S1 is responsible for the main data transmission of the entire system and connects key components in the system, such as the central processing unit, memory and I / O devices; the secondary bus connects the main bus with subsystems, such as graphics cards and sound cards, and is used to transmit specific types of data; the local bus is used to connect the secondary bus with local devices, such as sensors and actuators.

[0016] Preferably, the S2 can be divided into control instructions, status data, real-time data and non-real-time data according to the characteristics and uses of the transmitted data.

[0017] Preferably, the high priority data in S3 includes real-time control signals and critical status updates, and the low priority data includes log information and non-critical configuration data.

[0018] Preferably, the data preprocessing in S4 includes: compression, encryption and encoding.

[0019] Preferably, the data encapsulation into frames in S4 includes: a frame header, a data payload, a frame trailer and check information.

[0020] Preferably, the multi-level bus data selection step in S5 mainly includes:

[0021] S5-1, main bus level: on the main bus, select high priority data for transmission. If the main bus is idle, the data is sent; if the main bus is busy, wait according to the data priority and the data in the current queue;

[0022] S5-2, secondary bus level: on the secondary bus, according to the request and priority of the secondary device, select the data on the secondary bus for transmission, ensuring that the data on the secondary bus will not affect the high priority data transmission on the primary bus;

[0023] S5-3, local bus level: On the local bus, select the data required by the local device for transmission, and give priority to data with high real-time requirements, such as sensor data.

[0024] Preferably, if the data in S8 is a control instruction, a corresponding operation is executed; if it is status data, the status information is updated.

[0025] Beneficial Effects

[0026] The present invention provides a multi-level bus data communication method. Compared with the prior art, it has the following beneficial effects:

[0027] This multi-level bus data communication method can optimize data flow by dispersing data transmission tasks to different bus levels, reduce conflicts and interference on the bus, thereby improving transmission efficiency, and allowing the system to more flexibly handle various types of communication requirements. Through the coordination of buses at different levels, efficient and reliable data transmission is achieved, and the accuracy of data transmission and the stability of the system are improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] Figure 1 It is a flow chart of the various bus data communication methods of the present invention. DETAILED DESCRIPTION

[0029] 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.

[0030] See also Figure 1The present invention provides a technical solution: a multi-level bus data communication method, which specifically includes the following steps:

[0031] S1. Bus classification: The buses in the system are divided into three levels: primary bus, secondary bus and local bus. Each level is responsible for data communication in a different range.

[0032] S2. Data classification and identification: Classify the transmitted data according to its characteristics and purpose, and assign a unique identifier to each type of data to facilitate identification during transmission;

[0033] S3. Determine data priority: Assign priority to each type of data based on its real-time nature, importance, and transmission requirements;

[0034] S4, data preprocessing: preprocess the data to reduce the data volume or improve data security. After the preprocessing is completed, encapsulate the data into frames;

[0035] S5, multi-level bus data selection and scheduling: select the next batch of data to be transmitted according to the sending node, the current communication environment and the data priority, and use the high priority optimization scheduling algorithm to determine the order in which the data is sent;

[0036] S6, data transmission and confirmation: the selected data is sent to the target node through the bus. After the target node receives the data, it verifies the data and sends a confirmation signal to the sending node;

[0037] S7, Error handling and retransmission: If an error is detected during data transmission, the error handling process is executed to retransmit the data or use error correction code to repair the data to ensure that all data can meet the predetermined reliability standards during transmission;

[0038] S8, Data arrival and processing: The target node receives and processes the arriving data.

[0039] Communication protocol: Specific communication protocols are defined for each level of the bus to ensure efficient transmission and synchronization of data.

[0040] Main bus: Use efficient communication protocols such as Ethernet, PCIe, etc. to ensure high-speed and reliable data transmission;

[0041] Secondary bus: Select appropriate communication protocol according to the characteristics of the subsystem, such as SPI, I2C, etc.;

[0042] Local bus: Uses simple communication protocols, such as UART, I2S, etc., to meet the data transmission needs of local devices.

[0043] In the embodiment of the present invention, the main bus in S1 is responsible for the main data transmission of the entire system and connects the key components in the system, such as the central processing unit, memory and I / O devices; the secondary bus connects the main bus with the subsystem, such as the graphics card and sound card, and is used to transmit specific types of data; the local bus is used to connect the secondary bus with local devices, such as sensors and actuators.

[0044] In the embodiment of the present invention, S2 can be divided into control instructions, status data, real-time data and non-real-time data according to the characteristics and uses of the transmitted data.

[0045] In the embodiment of the present invention, the high priority data in S3 includes real-time control signals and critical status updates, and the low priority data includes log information and non-critical configuration data.

[0046] In the embodiment of the present invention, the data preprocessing in S4 includes: compression, encryption and encoding.

[0047] In the embodiment of the present invention, the data encapsulated into a frame in S4 includes: a frame header, a data payload, a frame trailer and check information.

[0048] In the embodiment of the present invention, the multi-level bus data selection step in S5 mainly includes:

[0049] S5-1, main bus level: on the main bus, select high priority data for transmission. If the main bus is idle, the data is sent; if the main bus is busy, wait according to the data priority and the data in the current queue;

[0050] S5-2, secondary bus level: on the secondary bus, according to the request and priority of the secondary device, select the data on the secondary bus for transmission, ensuring that the data on the secondary bus will not affect the high priority data transmission on the primary bus;

[0051] S5-3, local bus level: On the local bus, select the data required by the local device for transmission, and give priority to data with high real-time requirements, such as sensor data.

[0052] In the embodiment of the present invention, if the data in S8 is a control instruction, a corresponding operation is executed; if it is status data, the status information is updated.

[0053] To sum up: this multi-level bus data communication method can optimize data flow by dispersing data transmission tasks to different bus levels, reduce conflicts and interference on the bus, thereby improving transmission efficiency, and allowing the system to more flexibly handle various types of communication needs. Through the coordination of buses at different levels, efficient and reliable data transmission is achieved, and the accuracy of data transmission and the stability of the system are improved.

[0054] Meanwhile, the contents not described in detail in this specification belong to the prior art known to those skilled in the art.

[0055] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device.

[0056] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.

Claims

1. A multi-level bus data communication method, characterized in that: The specific steps include: S1. Bus classification: The buses in the system are divided into three levels: primary bus, secondary bus and local bus. Each level is responsible for data communication in a different range. S2. Data classification and identification: Classify the transmitted data according to its characteristics and purpose, and assign a unique identifier to each type of data to facilitate identification during transmission; S3. Determine data priority: Assign priority to each type of data based on its real-time nature, importance, and transmission requirements; S4, data preprocessing: preprocess the data to reduce the data volume or improve data security. After the preprocessing is completed, encapsulate the data into frames; S5, multi-level bus data selection and scheduling: select the next batch of data to be transmitted according to the sending node, the current communication environment and the data priority, and use the high priority optimization scheduling algorithm to determine the order in which the data is sent; S6, data transmission and confirmation: the selected data is sent to the target node through the bus. After the target node receives the data, it verifies the data and sends a confirmation signal to the sending node; S7, Error handling and retransmission: If an error is detected during data transmission, the error handling process is executed to retransmit the data or use error correction code to repair the data to ensure that all data can meet the predetermined reliability standards during transmission; S8, Data arrival and processing: The target node receives and processes the arriving data.

2. A multi-level bus data communication method according to claim 1, characterized in that: The main bus in S1 is responsible for the main data transmission of the entire system and connects key components in the system, such as the central processing unit, memory and I / O devices; the secondary bus connects the main bus with subsystems, such as graphics cards and sound cards, and is used to transmit specific types of data; the local bus is used to connect the secondary bus with local devices, such as sensors and actuators.

3. A multi-level bus data communication method according to claim 1, characterized in that: The S2 can be divided into control instructions, status data, real-time data and non-real-time data according to the characteristics and uses of the transmitted data.

4. A multi-level bus data communication method according to claim 1, characterized in that: The high-priority data in S3 includes real-time control signals and critical status updates, and the low-priority data includes log information and non-critical configuration data.

5. A multi-level bus data communication method according to claim 1, characterized in that: The data preprocessing in S4 includes: compression, encryption and encoding.

6. A multi-level bus data communication method according to claim 1, characterized in that: The data encapsulation into frames in S4 includes: a frame header, a data payload, a frame trailer and check information.

7. A multi-level bus data communication method according to claim 1, characterized in that: The multi-level bus data selection step in S5 mainly includes: S5-1, main bus level: on the main bus, select high priority data for transmission. If the main bus is idle, the data is sent; if the main bus is busy, wait according to the data priority and the data in the current queue; S5-2, secondary bus level: on the secondary bus, according to the request and priority of the secondary device, select the data on the secondary bus for transmission, ensuring that the data on the secondary bus will not affect the high priority data transmission on the primary bus; S5-3, local bus level: On the local bus, select the data required by the local device for transmission, and give priority to data with high real-time requirements, such as sensor data.

8. A multi-level bus data communication method according to claim 1, characterized in that: In S8, if the data is a control instruction, the corresponding operation is executed; if it is status data, the status information is updated.

Citation Information

Patent Citations

  • Data selection method in multistage bus data transmission

    CN109582617A

  • Graded data transmission method

    CN101222436A

  • Open bus structure with multi-stage expansion structure

    CN104753899A

  • Bus arbitration device and bus arbitration method

    JP2007026022A

  • Dynamic arbitration system and method

    US5619661A