[go: up one dir, main page]

CN115967632B - A TTP/C bus MEDL design method for hybrid topology - Google Patents

A TTP/C bus MEDL design method for hybrid topology Download PDF

Info

Publication number
CN115967632B
CN115967632B CN202211639139.1A CN202211639139A CN115967632B CN 115967632 B CN115967632 B CN 115967632B CN 202211639139 A CN202211639139 A CN 202211639139A CN 115967632 B CN115967632 B CN 115967632B
Authority
CN
China
Prior art keywords
bus
node
medl
ttp
cluster
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202211639139.1A
Other languages
Chinese (zh)
Other versions
CN115967632A (en
Inventor
刘于之
侯学彦
项晟
孙林
金招省
曾志杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
AECC Aero Engine Control System Institute
Original Assignee
AECC Aero Engine Control System Institute
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by AECC Aero Engine Control System Institute filed Critical AECC Aero Engine Control System Institute
Priority to CN202211639139.1A priority Critical patent/CN115967632B/en
Publication of CN115967632A publication Critical patent/CN115967632A/en
Application granted granted Critical
Publication of CN115967632B publication Critical patent/CN115967632B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Small-Scale Networks (AREA)

Abstract

本发明公开了一种面向混合拓扑的TTP/C总线MEDL设计方法,将TTP/C总线MEDL参数的用户输入信息分成三个部分:集群全局信息、总线节点信息、网络拓扑信息;其中集群全局信息主要包含集群在时间域上的行为特征,总线节点信息则用于标识节点的物理实体属性,网络拓扑信息则定义了节点在物理空间上的连接关系。本发明通过将TTP/C总线集群在时间域、物理域和空间域上的相关用户输入参数解耦,同时结合数值矩阵法描述网络拓扑信息,实现了混合拓扑下的TTP/C总线网络规划,降低了从集群整体网络规划到节点MEDL配置的设计复杂度,简化了已有工具复杂、繁琐的操作过程,保证了系统参数到节点参数传递的一致性,为混合拓扑下TTP/C总线的MEDL设计提供了一种便捷有效的解决方案。

The present invention discloses a TTP/C bus MEDL design method for hybrid topology, which divides the user input information of TTP/C bus MEDL parameters into three parts: cluster global information, bus node information, and network topology information; wherein the cluster global information mainly includes the behavior characteristics of the cluster in the time domain, the bus node information is used to identify the physical entity attributes of the node, and the network topology information defines the connection relationship of the node in the physical space. The present invention decouples the relevant user input parameters of the TTP/C bus cluster in the time domain, the physical domain, and the space domain, and combines the numerical matrix method to describe the network topology information, thereby realizing the TTP/C bus network planning under the hybrid topology, reducing the design complexity from the overall cluster network planning to the node MEDL configuration, simplifying the complex and cumbersome operation process of the existing tools, ensuring the consistency of the transmission of system parameters to node parameters, and providing a convenient and effective solution for the MEDL design of the TTP/C bus under the hybrid topology.

Description

TTP/C bus MEDL design method oriented to hybrid topology
Technical Field
The invention relates to the field of communication, in particular to a TTP/C bus MEDL design method facing to a mixed topology.
Background
The Time Triggered Protocol (TTP) bus is a high-speed, masterless and dual-redundancy field bus communication protocol for safety key embedded application in the transportation industry field, has the characteristics of low cost, strong time certainty and the like, and can be used in a distributed fault-tolerant real-time control system consisting of a plurality of intelligent nodes. TTP/C meets the requirements of the american Society of Automotive Engineers (SAE) class C automotive applications and has been incorporated into the AS6003 standard.
Under the time trigger architecture, the communication system automatically decides when to transmit and receive data according to the static scheduling information planned in advance. In the TTP/C bus cluster, these scheduling information are stored in MEDL (Message Descriptor List, message description table). In MEDL, besides the time scheduling information such as the data frame receiving and transmitting time and when to execute clock synchronization correction, physical information such as the node message buffer address and the transmission delay of data between nodes is also included, and the design of MEDL is complex due to the mutual coupling of the physical information and the time information. In order to simplify MEDL the design process, the existing development tools are mainly oriented to system design users, shield most MEDL bottom design details, bring certain convenience to system designers, bring more restrictions to TTP/C bus application, and are difficult to complete finer and more complex task planning and scheduling. In addition, the existing development tools cannot configure bus network topology information, so that it is difficult to conveniently and effectively compensate large data forwarding delay caused by the fact that the bus coupler is introduced into delay correction parameters of MEDL, and application requirements of high-precision synchronous clocks under hybrid topology cannot be met.
Disclosure of Invention
The invention aims to provide a TTP/C bus MEDL design method oriented to a hybrid topology, so that data transmission delay information between points determined by network topology and line transmission delay can be accurately configured in MEDL parameters, and meanwhile, the decoupling of physical attribute configuration and time attribute configuration of a bus network system can be realized, the design flexibility is provided, the design process of MEDL is simplified, and the consistency of transmission from the system parameters to node parameters is ensured.
The design method of the TTP/C bus MEDL oriented to the hybrid topology has the principle that MEDL design input information of the TTP/C bus is divided into three types of cluster global information, bus node information and network topology information, and coupling among various types of information is reduced. Different from the existing MEDL design tools, the method can arbitrarily divide the number and the length of slots in TDMARound, so that bus communication scheduling with higher real-time performance is realized, and the time for a user program to acquire data of other nodes in a network is shortened. By decoupling the TDMA timing schedule including global information from the node physical attribute configuration, after the node physical attribute configuration is completed, any node can be added in the slot, which means that the node occupies the time divided by the corresponding slot to perform message transmission, thereby improving the universality and flexibility of MEDL design. The network topology information of the bus is stored by adopting a numerical matrix describing the connection relation between the bus terminal and the coupler, and a user can realize network topology configuration through a graphical interface and can also directly input the connection relation between the bus terminal and the coupler in a form of a table.
The method comprises the following steps:
(1) The global attribute information of the input bus cluster comprises a TDMA Round period, a cluster Cycle period, a cluster global clock unit and a communication rate.
(2) The physical entity attribute of each node in the bus network is set, the physical entity comprises a bus terminal and a coupler, the bus terminal is a node with autonomous communication capability in the system, and the coupler is responsible for filtering and forwarding data. The physical entity attributes include bus terminal attributes including node ID, node name, application identifier, cold start identifier, permanent passive node identifier, message length, and coupler attributes including coupler ID, coupler name, port number, port correspondence membership, and data forwarding delay.
(3) And (3) setting the slot number and the corresponding length under the constraint of the bus cluster global attribute input in the step (1).
(4) And (3) adding the configured bus terminal in the step (2) under the corresponding slot.
And (4.1) randomly adjusting the slot position of the bus terminal, wherein the slot of the terminal represents the time occupied by the node for transmitting data under a time division multiplexing mechanism.
And (4.2) adding a plurality of nodes under the same slot, wherein when 2 or more nodes are added, the function of multiplexing the nodes is started, and the corresponding Round sequence numbers of the nodes under the cluster Cycle period are required to be further set.
(5) And (3) establishing the physical connection relation between the bus terminal and the coupler defined in the step (2) and configuring the bus network topology.
(5.1) Selecting a defined bus termination or coupler node to add to the cluster.
(5.2) Using a numerical matrix to preserve the connection between the bus termination and the coupler.
(5.3) Converting the connection relation of the corresponding numerical matrix into a data transmission delay correction parameter between nodes when MEDL is generated.
(6) Converting the configuration information input in the steps (1) - (5) into MEDL files required by the TTP/C bus controller.
And (6.1) storing the configuration information input by the user in a database, and generating MEDL files required by the TTP/C bus controller according to a predefined conversion relation.
And (6.2) calculating a delay correction parameter, wherein the method is that whether a transmitting node corresponding to the current slot and the transmitting node are connected to the same coupler port is inquired, if yes, the delay correction parameter is directly calculated according to the line transmission delay between the nodes, otherwise, the number of couplers connected between the transmitting node and the transmitting node is inquired, the data forwarding delay is calculated according to the number of the couplers, and the sum of the data forwarding delay and the line transmission delay is used as the delay correction parameter.
A computer storage medium having stored thereon a computer program which when executed by a processor implements a hybrid topology oriented TTP/C bus MEDL design method as described above.
A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing a hybrid topology oriented TTP/C bus MEDL design method as described above when executing the computer program.
Compared with the prior art, the invention has the following advantages:
1. The invention decouples TTP/C bus cluster design input parameters in a time domain, a physical domain and a space domain, and reduces the complexity of MEDL configuration while considering MEDL design flexibility;
2. The invention realizes the separation of the system design and the node design, and ensures the consistency of the transmission from the system design to the node design parameters;
3. The invention describes network topology information by introducing a matrix method, provides a convenient configuration management and calculation method for data receiving and transmitting delay parameters among different nodes, and supports the realization of a high-precision clock synchronization function under hybrid topology.
Drawings
FIG. 1 is a flow chart of the steps of the method of the present invention;
FIG. 2 is a schematic diagram of a TTP/C bus hybrid topology network;
fig. 3 is a schematic diagram of a node slot attribute configuration interface.
Detailed Description
The technical scheme of the invention is further described below with reference to the accompanying drawings.
The network topology shown in fig. 2 includes 2 couplers and 8 bus terminals. The port 1 of the coupler A is connected with the nodes 1-3, the port 2 is connected with the port 5 of the coupler B, the port 3 is connected with the node 4, the port 4 of the coupler B is connected with the nodes 5-7, and the port 6 is connected with the node 8. Aiming at the hybrid network topology shown in fig. 2, the design method of the TTP/C bus MEDL facing the hybrid topology comprises the following steps:
(1) And configuring global parameters of the system. The method mainly comprises parameters such as cluster planning identification, TDMA Round period, cluster Cycle period, time unit, communication rate and the like. In this example, a TDMA Round period of 5ms and a cluster Cycle period of 25ms are selected.
(2) And configuring physical attributes of the nodes. The bus terminal mainly comprises parameters such as node name, cold start permission identification, passive node identification, message length and the like, and the coupler mainly comprises parameters such as name, port number, forwarding delay and the like.
(3) Programming bus timing. Under TDMARound period constraint set in the step (1), slot information is added, wherein the slot information mainly comprises parameters such as slot length, data frame type, clock synchronization correction execution identification and the like.
(4) Node location allocation. At the slot configured in step (3), the node configured in step (2) is added to indicate that the node occupies the current slot, and for the multiplexing node, a TDMA Round sequence number corresponding to the multiplexing node may be further set, as shown in fig. 3.
(5) And (5) configuring network topology. The connection relation between the nodes and the couplers is represented by a numerical matrix, the network topology configuration information is obtained as shown in table 1, a column of 'connection coupler X port number', a non-negative integer, a row of '1' represents the port serial number connected, a row of corresponding nodes are not connected with the current coupler, and data in a column of 'distance to coupler X' represents how many couplers need to be passed through for connection between the current node and the corresponding coupler.
Table 1 describes an example of network topology information using a matrix method
(6) MEDL is generated. After all the configurations in the steps (1) - (5) are completed, checking the consistency of configuration parameters according to preset rules, and generating MEDL of a format required by TTP/C bus operation after checking without errors. When the delay correction parameter is calculated according to the network topology information in the step (5), the data forwarding delay between two nodes caused by the couplers can be obtained by multiplying the number of couplers required for connecting the two nodes by the forwarding delay of a single coupler.

Claims (7)

1. The design method of the TTP/C bus MEDL facing the hybrid topology is characterized by comprising the following steps of:
(1) Inputting global attribute information of the bus cluster;
(2) Setting physical entity attributes of all nodes in a bus network, wherein the physical entity comprises a bus terminal and a coupler, the bus terminal is a node with autonomous communication capability in a system, and the coupler is responsible for filtering and forwarding data;
(3) Setting the slot number, the corresponding length, the data frame type parameter and the clock synchronous correction execution identification parameter under the constraint of the bus cluster global attribute input in the step (1);
(4) Adding the configured bus terminal in the step (2) under the corresponding slot;
(5) Establishing a physical connection relation between the bus terminal and the coupler defined in the step (2), and configuring a bus network topology;
(6) Converting the configuration information input in the steps (1) - (5) into MEDL files required by the TTP/C bus controller;
the step (4) specifically comprises the following steps:
(4.1) randomly adjusting the slot position of the bus terminal, wherein the slot of the terminal represents the time occupied by the node for transmitting data under a time division multiplexing mechanism;
(4.2) adding a plurality of nodes under the same slot, when adding 2 or more nodes, representing that the multiplexing node function is started, and further setting a corresponding Round sequence number of the node under the cluster Cycle period;
The step (6) specifically comprises the following steps:
(6.1) storing the configuration information input by the user in a database, and generating MEDL files required by the TTP/C bus controller according to a predefined conversion relation;
And (6.2) calculating a delay correction parameter, wherein the method is that whether a transmitting node corresponding to the current slot and the transmitting node are connected to the same coupler port is inquired, if yes, the delay correction parameter is directly calculated according to the line transmission delay between the nodes, otherwise, the number of couplers connected between the transmitting node and the transmitting node is inquired, the data forwarding delay is calculated according to the number of the couplers, and the sum of the data forwarding delay and the line transmission delay is used as the delay correction parameter.
2. The method of claim 1, wherein the global attribute information of the bus cluster in step (1) includes TDMARound cycles, cluster Cycle cycles, cluster global clock units, and communication rate.
3. The method of claim 1, wherein the bus termination in step (2) includes node ID, node name, application identifier, cold start identifier, permanent passive node identifier, message length.
4. The method of claim 1, wherein the properties of the coupler in step (2) include a coupler ID, a coupler name, a number of ports, a port correspondence membership, and a data forwarding delay.
5. The method for designing a TTP/C bus MEDL for hybrid topologies according to claim 1, wherein the step (5) specifically includes:
(5.1) selecting a defined bus terminal or coupler node to add to the cluster;
(5.2) using a numerical matrix to store the connection relationship between the bus terminals and the couplers;
(5.3) converting the connection relation of the corresponding numerical matrix into a data transmission delay correction parameter between nodes when MEDL is generated.
6. A computer storage medium having stored thereon a computer program which, when executed by a processor, implements a hybrid topology oriented TTP/C bus MEDL design method as claimed in any one of claims 1-5.
7. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements a hybrid topology oriented TTP/C bus MEDL design method as claimed in any one of claims 1-5 when executing the computer program.
CN202211639139.1A 2022-12-20 2022-12-20 A TTP/C bus MEDL design method for hybrid topology Active CN115967632B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211639139.1A CN115967632B (en) 2022-12-20 2022-12-20 A TTP/C bus MEDL design method for hybrid topology

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211639139.1A CN115967632B (en) 2022-12-20 2022-12-20 A TTP/C bus MEDL design method for hybrid topology

Publications (2)

Publication Number Publication Date
CN115967632A CN115967632A (en) 2023-04-14
CN115967632B true CN115967632B (en) 2024-12-06

Family

ID=87362936

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211639139.1A Active CN115967632B (en) 2022-12-20 2022-12-20 A TTP/C bus MEDL design method for hybrid topology

Country Status (1)

Country Link
CN (1) CN115967632B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104660477A (en) * 2015-03-02 2015-05-27 中国航空无线电电子研究所 Star topology network constructing method based on time triggered bus
CN111884890A (en) * 2020-06-10 2020-11-03 中国航空工业集团公司西安航空计算技术研究所 Time-triggered bus planning and scheduling method

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE60019981T2 (en) * 2000-12-11 2006-02-23 Nokia Corp. CONFIGURATION OF A DATA TRANSFER INTERFACE IN A COMMUNICATION NETWORK
WO2007000007A1 (en) * 2005-06-28 2007-01-04 Tttech Computertechnik Aktiengesellschaft Safe start-up of a network
CN103850802B (en) * 2012-12-04 2016-04-20 中航商用航空发动机有限责任公司 Based on electronic controller and the FADEC system of time triggered agreement TTP/C bus
CN106444425B (en) * 2016-10-24 2019-12-24 南京航空航天大学 Design method of TTP/C bus controller for distributed control of aeroengine
CN114513556B (en) * 2021-12-31 2024-02-02 西安电子科技大学 Two-stage time triggering service scheduling method and system based on deterministic network

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104660477A (en) * 2015-03-02 2015-05-27 中国航空无线电电子研究所 Star topology network constructing method based on time triggered bus
CN111884890A (en) * 2020-06-10 2020-11-03 中国航空工业集团公司西安航空计算技术研究所 Time-triggered bus planning and scheduling method

Also Published As

Publication number Publication date
CN115967632A (en) 2023-04-14

Similar Documents

Publication Publication Date Title
CN109376197B (en) Data synchronization method, server and computer storage medium
CN101231520B (en) Method and apparatus for generating a schedule for performing functions in a process control system
CN101454763A (en) Gateway for data transfer between serial buses
CN101282860A (en) Method for connecting a flexray-user comprising a microcontroller to a flexray-communication connection via a flexray-communication control device, and flexray-communication control device, flexray-us
CN109117152B (en) Service generation system and method
CN109902056A (en) A method, apparatus, device and computer-readable storage medium for serial transmission
CN114363335A (en) Cross-chain interaction method and device
US7733771B2 (en) NoC semi-automatic communication architecture for “data flows” applications
CN109815202A (en) Log editing method and related device
CN115967632B (en) A TTP/C bus MEDL design method for hybrid topology
CN104821888B (en) Method and device for operating a communication network, in particular a motor vehicle
CN114663177A (en) State change control method, device, electronic device and storage medium
CN105427149A (en) Cross-border e-commerce BPO service method and device based on SOA expansion framework
CN116011371B (en) Simulator simulation method, system, device and medium based on event library
CN118331628A (en) Data generation method, device and computer equipment
CN107809335B (en) Configuration method and device of network system
US11949548B2 (en) Method for service status analysis, server, and storage medium
CN115422184A (en) Data acquisition method, device, equipment and storage medium
CN110347748B (en) Data verification method, system, device and equipment based on inverted index
CN114118811A (en) Service code generation, execution method, apparatus, device and storage medium
CN114546928A (en) Core cluster synchronization method, control method and device, core and medium
CN101510827A (en) Routing exchange device, method and method for updating business of routing exchange device
CN116244249A (en) Method, device, device and storage medium for multi-control board data communication
KR20240008324A (en) Master-slave communication with subdomains
JP5147772B2 (en) Circuit generation device, circuit generation method, and circuit generation program

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant