OSGi Community Event 2016 Presentation by Roland Ndaka Fru (Yaka 5 GmbH) & Dmytro Pishchukhin
We designed, developed, deployed and have been running an OSGi platform on all high-speed ICE trains in Germany since 2014. Requirements, design and development lasted 6 years and the goal of the platform was to integrate multiple existing systems on the train and link them to the back-office systems using GSM-R and GSM-P network. This integration required a modular platform and OSGi offered the ideal technology to achieve this.
The OSGi based solution meant that functionality such as seat reservation could be achieved via the newly integrated wireless network connectivity rather than a manual offline process. This led to reduced cost and improved reliability. Other systems that were integrated included:
Timetable & schedule data integration,
Restaurant/bistro cash-desk for efficient supply chain management,
Train (preemptive) diagnostics for effective maintenance planning,
Train (GPS) location for effective fleet management.
The solution uses many of the OSGi specification services including Monitor Admin, Event Admin, Configuration Admin, Wire Admin, and others.
The solution has proved very successful and 2nd and 3rd generation extended platforms are being worked on to include QOS, Microservices, Virtualization. These build on the existing platform and will serve as a reference for future trains.
The presentation will include a number of the lessons learnt and recommendations for other practitioners putting the technology in to use in for a highly visible critical service based solution.
The project of course involved more than just the technology and required the adaption of existing processes within a conservative and long existing environment at Deutsche Bahn.
4. CaseStudy
SeatReservation
Reserve Seat via
Kiosk, Online,
Counter etc.
Transfer
Reservation
Data to Floppy
Disk
Carry Floppy
Disk to theTrains
& feed data into
the Reservation
System
26th October 2016 OSGi on High Speed Trains in Germany 4
5. CaseStudy
SupplyChain
Management
Client buys
items e.g.
candy, coffee,
beer on the
train
Each
transaction
gets wired
directly to back
office
SCM Back
Office
organizes stock
refill at next
possible station
26th October 2016 OSGi on High Speed Trains in Germany 5
6. Applications &
Integration
26th October 2016 OSGi on High Speed Trains in Germany 6
Rolling Stock BackOffice / Datacenter
Diagnosis
Seat Reservation
Master Data
Train Infotainment
GPS / Location
Audio /Video
…
Diagnosis
Seat Reservation
Master Data
Train Infotainment
GPS / Location
Audio /Video
…
Gateway
GSM-R
GSM-P
WLAN
8. Technology
Stack
26th October 2016 OSGi on High Speed Trains in Germany 8
Linux OS
Java 6 Java 8
Equinox Karaf
Common Components (Logging, Software Distro,Time, etc.)
Application Application Application …
Leveraged OSGi approach for Application Integration
9. OSGi
SpecificationsinUse
26th October 2016 OSGi on High Speed Trains in Germany 9
Standard
• Log Service
• Preferences Service
• EventAdmin Service
• MonitorAdmin Service
• Wire Admin Service
• HTTP Service
• Web Application
• Position, Measurement and State
• Remote ServiceAdmin
• JDBC/JNDI/JPA
• Configuration and Metatype
Admin
• Declarative Services
Non-Standard
• JEE JMS Messaging
• MQTT Messaging
• Eclipse P2
• Configurer
• EventAdmin Hooks
• Remote services discovery
10. Outlook
SensorData
26th October 2016 OSGi on High Speed Trains in Germany 10
Producers
• Modbus gateways
• CAN bus
• OPC UA
• Serial ports
• GPIO
• MVB (Multifunctional vehicle bus)
• Location services (e.g. gpsd)
• OS state monitoring
Consumers
• Storage (e.g. DBs)
• REST/SOAP calls
• Messages (e.g. MQTT)
• Data pre-processing
12. Outlook
SensorPipelines
26th October 2016 OSGi on High Speed Trains in Germany 12
Reactive streams
Declarative services
Simple and complex stream elements
Simple and complex pipeline nodes
Data and error/state pipelines
Functional testing w/o OSGi
13. Fact & Figures
5Years Development, Production 2014
Over 700Trains in Production
Support Intel,AMD, ARM
Strategic Platform for Connectivity
26th October 2016 OSGi on High Speed Trains in Germany 13