Transcript Bez nadpisu

An open standard for communication in trains
T. Pilc, P. Burget, Z. Šebek, Z. Hanzálek
email: [email protected], burgetpa@…, sebek@…, hanzalek@…
Department of Control Engineering
Faculty of Electrical Engineering
Czech Technical University
Faculty of Electrical Engineering Czech Technical University
Implementation
Overall implementation criteria were specified based on the properties and the field of use of the TCN
protocol stack. The main criteria the implementation is subject to were identified as:
1. Safety – the implementation should be able to detect and gracefully react to a hardware failure of
the WTB2000 unit by notifying the application of the failure.
2. Extendibility and maintenability – the implementation should be well structured to be easy
maintenable and new features and extensions can be added.
3. Memory requirements – the implementation shall have modest memory requirements
g
Fig.2 – TCN services in the context of the ISO OSI architecture
Fig.1 – Train Communication Network structure
Application Callback functions
AMA function calls
Application
AMA functions
AMA
User Application
AMA Shared Objects
Directories
MID_RTP_HEAP
T
Multifunction Vehicle Bus
Topology
linear bus
ESD, EMD: linear bus
OGF: star
Redundancy
optional double-line
optional double-line
Signalling speed SS
1,0 Mbit/s
1,5 Mbit/s
Max. propag. delay
60 s
42,7 s
Data-In
Buffer
Data-Out
Buffer
Wire Train Bus
Function directory
Event Control
Block (ECB)
Call block
The TCN standard
The TCN network is not really another ”fieldbus” standard for industrial communication like CAN,
PROFIBUS or INTERBUS-S although it provides common fieldbus services. The TCN is designed
specially for communication in train compositions. Thanks to its relation to this field it has the
following features:
 Hierarchical – constituted of two distinct busses, each with specific properties:
the Wire Train Bus (WTB) is the communication backbone of the train, interconnecting separable
parts of the train composition like the locomotive and the coaches. The Multifunction Vehicle Bus
(MVB) connecting standard on-board equipment in the non-detachable parts of the train
composition.
 Redundant – the physical layer of both WTB and MVB buses can optionally be duplicated.
 Failure recovery – remains partly operational in case of the failure of one or more nodes.
 Automatic reconfiguration – the WTB interconnecting the separable parts of the train
automatically reconfigures the bus in a defined maximum time and announces the configuration
change to all applications.
 Extendable and open – the standard treats the use of sensor busses as the third level of the TCN
network and enables replacement of the WTB and/or MVB busses by other bus types under
specified conditions.
 Both DSM and messaging supported – two communication mechanisms are supported by the
bus: Process Variables, a Real-Time distributed shared memory or distributed database-like
communication and Application Messages, based on sending of arbitrary length, unicast and
multicast messages.
 Remote network management – mechanisms for managing/configuring the whole network from
one place are defined.
An overview of technical parameters of MVB and WTB busses can be found in tab.1.
Implementation structure
The protocol stack was implemented formerly by UniControls, Inc. under the OS9 Real-Time OS. The
new implementation for the VxWorks 5.4 RT OS was developed by porting the OS9 implementation
under VxWorks and rewriting substantial parts of the port so they better exploit the characteristic
features of the VxWorks RT OS.
New features have been added to the VxWorks implementation as well: a full implementation of the
network layer, better handling of hardware failures through signals and ANSI long jumps, better
deadlock prevention via time-outed intertask communication mechanisms and priority inheritance.
The VxWorks implementation is fully written in the C programming language and consists of 3 parts,
each implementing one of the TCN application interfaces – AVI, AMI and LSI. As the AMI interface is
optional and may not be used in all applications, the AMI part of the protocol stack is optional and can
be excluded from the protocol stack. This saves memory in applications that use only the AVI and LSI
services.
A simplified structure of the VxWorks implementation of the message communication subsystem is
shown on fig. 3. Apart from the OS9 implementation the interrupt handling routine was moved to a
special task, the Interrupt server. This structure preserves short interrupt latencies of the VxWorks OS
and provides control over the relative priority of the interrupt handler to other running tasks.
Event Control
Block (ECB)
Introduction
On the 1st of october 1999 the Train Communication Network (TCN) had received the status of the
international standard No. IEC 61375–1. UniControls Inc., very early implemented the Wire Train Bus
(WTB) that is a crucial part of the standard. The physical and link layers were implemented as the
WTB2000 communication processor unit, a module for the VME-bus based PEP Modular Computers
industrial computer family. The higher layers were implemented under the OS9 operating system. The
Department of Control Systems Engineering FEE CTU aids in the implementation of the higher layers
under the VxWorks 5.4 RT OS.
Trnka Laboratory for Automatic Control
Group directory
Station directory
MID_DATA_HEAP
ESD: 20 m
EMD: 200 m
OGF: 2 km
Cable specification
shielded and jacketed twisted pair
ESD, EMD: shielded twisted pair
OGF: glass fibre pair forming a fullduplex point-to-point link
Cable impedance
120,0 
120,0 
Cable attenuation at
SS
10,0 dB/km
ESD, EMD: 15 dB/km
OGF:
6,0 dB/km
Connector
9 pin Sub-D
ESD, EMD: 9 pin Sub-D
OGF: IEC 60874-10 (ST-bayonet)
Signal
3 ... 7 V
ESD, EMD: 1,5 ... 6 V
OGF:
Low < -40,0 dBm
High: -7,5 ... –4,5 dBm
Encoding
Manchester NRZ
Frame format
ISO/IEC 3309
Frame user data
32 ... 1056 bits
(4 ... 132 bytes)
WTB2000 unit’s DPRAM
Fig.3 – Implementation of the message communication (AMI)
References
[1]
International Standard IEC 61375-1: Electric railway equipment – Train bus,
Part 1: Train Communication Network; IEC, 1999
[3]
Douglas E. Comer: Internetworking With TCP/IP Volume II – Design, Implementatin,
and Internals; Prentice-Hall, 1991
Wind River Systems: VxWorks Programmer’s Guide 5.4, 1st ed.;
Wind River Systems, 1999
Manchester NRZ
24 ... 288 bits
(3 ... 36 bytes)
[4]
Tab.1 – WTB and MVB parameters overview
[3]
[4]
Acknowledgments
This work was published with the kind agreement of UniControls Inc.
This work was supported by the Ministry of Education of the Czech Republic under Project VS97/03.
Event queue
ESD, EMD: 8 dB
OGF:
13,8 dB
Real-Time protocol tasks
Receive queue
Max seg. attenuation 20 dB
Messenger (The Messenger Task)
Send queue
Max. segment length 860 m
Interrupt
Processing
Task
TCN Tutorial: http://www.labs.it/rosin/tcncorso/tutindex.htm
UniControls Inc.: http://www.unicontrols.cz/