A TTP / C bus MEDL design method for hybrid topology
The MEDL design method decouples physical and time attributes to simplify and flexibly configure TTP/C bus networks, addressing limitations in existing tools by enabling precise synchronization and flexible slot allocation for hybrid topologies.
Patent Information
- Application Number
- CN202211639139.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-20
- Publication Date
- 2024-12-06
- Estimated Expiration
- 2042-12-20
AI Technical Summary
Existing TTP/C bus MEDL design tools are limited in configuring bus network topology information and cannot effectively compensate for large data forwarding delays, lacking flexibility and precision in hybrid topologies, complicating sophisticated scheduling and time synchronization.
The MEDL design method decouples physical and time attributes, allowing flexible configuration of network topology and slot allocation, using a numerical matrix to describe connections and calculate delay parameters, enabling high-precision synchronization and simplified design.
This approach simplifies the MEDL design process, enhances flexibility, and ensures precise synchronization across hybrid topologies, reducing complexity and improving real-time performance.
Smart Images

Figure CN115967632B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the field of communication, in particular to a TTP / C bus MEDL design method oriented to a hybrid topology. Background Art
[0002] The Time Triggered Protocol (TTP) bus is a high-speed, masterless, dual-redundant fieldbus communication protocol for safety-critical embedded applications in the transportation industry. It has the characteristics of low cost and strong time determinism, and can be used in distributed fault-tolerant real-time control systems composed of multiple intelligent nodes. TTP / C meets the requirements of the American Society of Automotive Engineers (SAE) Class C automotive applications and has been included in the AS6003 standard.
[0003] Under the time-triggered architecture, the communication system automatically decides when to send and receive data based on the pre-planned static scheduling information. In the TTP / C bus cluster, these scheduling information are stored in MEDL (Message Descriptor List). In addition to the time scheduling information such as the time of data frame sending and receiving and when to perform clock synchronization correction, MEDL also contains physical information such as the node message cache address and the transmission delay of data between nodes. The coupling between physical information and time information makes the design of MEDL more complicated. In order to simplify the MEDL design process, the existing development tools are mainly oriented to system design users, shielding most of the MEDL underlying design details. While bringing certain conveniences to system designers, it also brings more restrictions to the application of TTP / C bus, making it difficult to complete more sophisticated and complex task planning and scheduling. In addition, the existing development tools cannot configure the bus network topology information, making it difficult to conveniently and effectively compensate for the large data forwarding delay caused by the introduction of the bus coupler in the delay correction parameters of MEDL, and cannot meet the application requirements of high-precision synchronous clocks under hybrid topologies. Summary of the invention
[0004] Purpose of the invention: The purpose of the present invention is to provide a TTP / C bus MEDL design method for hybrid topology, so that the point-to-point data transmission delay information determined by the network topology and line transmission delay can be accurately configured in the MEDL parameters, and at the same time, the physical attribute configuration and time attribute configuration of the bus network system can be decoupled, while providing design flexibility, simplifying the MEDL design process and ensuring the consistency of the transmission of system parameters to node parameters.
[0005] Technical solution: The invention discloses a TTP / C bus MEDL design method for hybrid topology. The principle is: the MEDL design input information of the TTP / C bus is divided into three categories: cluster global information, bus node information, and network topology information, so as to reduce the coupling between the various types of information. Different from the existing MEDL design tools, this solution can arbitrarily divide the number and length of slots in TDMARound, thereby realizing bus communication scheduling with higher real-time performance and shortening the time for user programs to obtain data from other nodes in the network. By decoupling the TDMA timing planning containing global information from the node physical property configuration, after completing the node physical property configuration, any node can be added to the slot, indicating that the node occupies the time divided by the corresponding slot to send messages, thereby improving the versatility and flexibility of the MEDL design. The network topology information of the bus is saved by using a numerical matrix that describes the connection relationship between the bus terminal and the coupler. The user can implement the network topology configuration through a graphical interface, or directly input the connection relationship between the bus terminal and the coupler in the form of a table.
[0006] The method comprises the following steps:
[0007] (1) Input bus cluster global attribute information, including TDMA round period, cluster cycle period, cluster global clock unit, and communication rate.
[0008] (2) Set the physical entity attributes of each node in the bus network. The physical entity includes a bus terminal and a coupler. The bus terminal is a node in the system with autonomous communication capabilities, and the coupler is responsible for filtering and forwarding data. Therefore, the physical entity attributes include bus terminal attributes and coupler attributes. The bus terminal attributes include node ID, node name, application identifier, cold start identifier, permanent passive node identifier, and message length. The coupler attributes include coupler ID, coupler name, port number, port corresponding member relationship, and data forwarding delay.
[0009] (3) Under the constraints of the bus cluster global properties input in step (1), set the number of slots and the corresponding length.
[0010] (4) Add the bus terminal configured in step (2) to the corresponding slot.
[0011] (4.1) The slot position of the bus terminal can be adjusted arbitrarily. Under the time division multiplexing mechanism, the slot where the terminal is located represents the time taken by the node to send data.
[0012] (4.2) Add multiple nodes to the same slot. When adding two or more nodes, it means that the node reuse function is enabled. You need to further set the corresponding round number of the node in the cluster cycle.
[0013] (5) Establish the physical connection relationship between the bus terminal and the coupler defined in step (2) and configure the bus network topology.
[0014] (5.1) Select a defined bus terminal or coupler node to add to the cluster.
[0015] (5.2) Use a numerical matrix to save the connection relationship between the bus terminal and the coupler.
[0016] (5.3) When generating MEDL, the connection relationship of the corresponding numerical matrix is converted into the data transmission delay correction parameter between nodes.
[0017] (6) Convert the configuration information input in steps (1) to (5) into the MEDL file required by the TTP / C bus controller.
[0018] (6.1) The user input configuration information is saved in the database, and the MEDL file required by the TTP / C bus controller is generated according to the pre-defined conversion relationship.
[0019] (6.2) Calculate the delay correction parameter by querying whether the sending node corresponding to the current slot is connected to the same coupler port as the current node. If so, directly calculate the delay correction parameter based on the line transmission delay between the nodes. Otherwise, query the number of couplers connected between the current node and the sending node, calculate the data forwarding delay based on the number of couplers, and use the sum of the data forwarding delay and the line transmission delay as the delay correction parameter.
[0020] A computer storage medium stores a computer program, which, when executed by a processor, implements the above-mentioned TTP / C bus MEDL design method for hybrid topology.
[0021] A computer device comprises a memory, a processor and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the above-mentioned TTP / C bus MEDL design method for hybrid topology is implemented.
[0022] Beneficial effects: Compared with the prior art, the present invention has the following advantages:
[0023] 1. The present invention decouples the input parameters of TTP / C bus cluster design in the time domain, physical domain and space domain, taking into account the flexibility of MEDL design while reducing the complexity of MEDL configuration;
[0024] 2. The present invention realizes the separation of system design and node design, while ensuring the consistency of parameter transmission from system design to node design;
[0025] 3. The present invention introduces a matrix method to describe network topology information, provides a convenient configuration management and calculation method for data transmission and reception delay parameters between different nodes, and supports the realization of high-precision clock synchronization function under hybrid topology. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] Figure 1 is a flowchart of the steps of the method of the present invention;
[0027] Figure 2 It is a schematic diagram of a TTP / C bus hybrid topology network;
[0028] Figure 3 It is a schematic diagram of the node slot attribute configuration interface. DETAILED DESCRIPTION
[0029] The technical solution of the present invention is further described below in conjunction with the accompanying drawings.
[0030] Figure 2 The network topology shown contains 2 couplers and 8 bus terminals. Port 1 of coupler A is connected to nodes 1 to 3, port 2 is connected to port 5 of coupler B, and port 3 is connected to node 4; port 4 of coupler B is connected to nodes 5 to 7, and port 6 is connected to node 8. Figure 2 The hybrid network topology shown in the figure, a TTP / C bus MEDL design method for hybrid topology described in the present invention comprises the following steps:
[0031] (1) Configure the system global parameters. These mainly include parameters such as cluster planning identifier, TDMA Round period, cluster Cycle period, time unit, and communication rate. In this example, select the TDMA Round period as 5 ms and the cluster Cycle period as 25 ms.
[0032] (2) Configure the physical properties of the node. For the bus terminal, it mainly includes parameters such as node name, cold start permission flag, passive node flag, message length, etc. For the coupler, it mainly includes parameters such as name, number of ports, forwarding delay, etc.
[0033] (3) Plan bus timing. Under the TDMARound cycle constraint set in step (1), add slot information, mainly including slot length, data frame type, clock synchronization correction execution flag and other parameters.
[0034] (4) Node position allocation. Add the node configured in step (2) to the slot configured in step (3), indicating that the node occupies the current slot. For multiplexed nodes, you can further set their corresponding TDMA Round numbers, such as Figure 3 shown.
[0035] (5) Network topology configuration. The connection relationship between nodes and couplers is represented by a numerical matrix, and the network topology configuration information is shown in Table 1. In Table 1, in the column "Connected coupler X port number", the non-negative integer represents the serial number of the connected port, "-1" means that the corresponding node in this row has no connection with the current coupler; the data in the column "Distance to coupler X" indicates how many couplers the shortest connection between the current node and the corresponding coupler needs to pass through.
[0036] Table 1 An example of describing network topology information using the matrix method
[0037]
[0038]
[0039] (6) Generate MEDL. After completing all configurations in steps (1) to (5), check the consistency of the configuration parameters according to the pre-set rules. After the check is correct, generate MEDL in the format required for TTP / C bus operation. When calculating the delay correction parameter based on the network topology information in step (5), the data forwarding delay caused by the coupler between the two nodes can be obtained by multiplying the number of couplers required to connect the two nodes by the forwarding delay of a single coupler.
Claims
1. A TTP / C bus MEDL design method for hybrid topology, characterized in that: The following steps are involved: (1) Input bus cluster global attribute information; (2) Setting the physical entity attributes of each node in the bus network. The physical entity includes the bus terminal and the coupler. The bus terminal is a node in the system with autonomous communication capabilities, and the coupler is responsible for filtering and forwarding data. (3) Under the constraints of the bus cluster global attributes input in step (1), set the number of slots and the corresponding length, data frame type parameters and clock synchronization correction execution identification parameters; (4) Add the bus terminal configured in step (2) to the corresponding slot; (5) establishing the physical connection relationship between the bus terminal and the coupler defined in step (2) and configuring the bus network topology; (6) Convert the configuration information input in steps (1) to (5) into the MEDL file required by the TTP / C bus controller; The step (4) is specifically as follows: (4.1) Arbitrarily adjust the slot position of the bus terminal. Under the time division multiplexing mechanism, the slot where the terminal is located represents the time occupied by the node to send data; (4.2) Add multiple nodes to the same slot. When adding two or more nodes, it means that the node reuse function is enabled. You need to further set the corresponding round number of the node in the cluster cycle. The step (6) is specifically as follows: (6.1) The user input configuration information is saved in the database, and the MEDL file required by the TTP / C bus controller is generated according to the pre-defined conversion relationship; (6.2) Calculate the delay correction parameter by querying whether the sending node corresponding to the current slot is connected to the same coupler port as the current node. If so, directly calculate the delay correction parameter based on the line transmission delay between the nodes. Otherwise, query the number of couplers connected between the current node and the sending node, calculate the data forwarding delay based on the number of couplers, and use the sum of the data forwarding delay and the line transmission delay as the delay correction parameter.
2. A TTP / C bus MEDL design method for hybrid topology according to claim 1, characterized in that: The bus cluster global attribute information described in step (1) includes TDMARound cycle, cluster Cycle cycle, cluster global clock unit, and communication rate.
3. A TTP / C bus MEDL design method for hybrid topology according to claim 1, characterized in that: The attributes of the bus terminal described in step (2) include node ID, node name, application identifier, cold start identifier, permanent passive node identifier, and message length.
4. A TTP / C bus MEDL design method for hybrid topology according to claim 1, characterized in that: The coupler described in step (2) has attributes including coupler ID, coupler name, number of ports, port-corresponding member relationship, and data forwarding delay.
5. The TTP / C bus MEDL design method for hybrid topology according to claim 1, characterized in that: The step (5) is specifically as follows: (5.1) Select the defined bus terminal or coupler node and add it to the cluster; (5.2) Use a numerical matrix to save the connection relationship between the bus terminal and the coupler; (5.3) When generating MEDL, the connection relationship of the corresponding numerical matrix is converted into the data transmission delay correction parameter between nodes.
6. A computer storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the computer program implements a TTP / C bus MEDL design method for a hybrid topology as claimed in any one of claims 1 to 5.
7. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the processor implements a TTP / C bus MEDL design method for hybrid topology according to any one of claims 1 to 5.
Citation Information
Patent Citations
Star topology network constructing method based on time triggered bus
CN104660477A
Time-triggered bus planning and scheduling method
CN111884890A
