14
Budapesti Műszaki és Gazdaságtudományi Egyetem Méréstechnika és Információs Rendszerek Tanszék Cloud-deployed Model Railway Control System Benedek Horváth, Dániel Stein Supervisor: András Vörös

Cloud-deployed Model Railway Control System

Embed Size (px)

Citation preview

Page 1: Cloud-deployed Model Railway Control System

Budapesti Műszaki és Gazdaságtudományi EgyetemMéréstechnika és Információs Rendszerek Tanszék

Cloud-deployedModel Railway Control System

Benedek Horváth, Dániel Stein

Supervisor: András Vörös

Page 2: Cloud-deployed Model Railway Control System

Overview

2

CONTROLLER PROXY

Page 3: Cloud-deployed Model Railway Control System

Railway Architecture

3

Master Master

SOC

State Machine [1st Section]

State Machine[2nd Section]

State Machine [3rd Section]

State Machine [Turnout]

State Machine [1st Section]

State Machine[2nd Section]

State Machine [3rd Section]

State Machine [Turnout]

Page 4: Cloud-deployed Model Railway Control System

Railway Communication

4

Model Railway Track Network

KVControl TCP

0x81YakinduCodes - NormalTurnout

KVC-RSKVC-BPE-RS

0x82YakinduCodes - NormalTurnout

KVC-RSKVC-BPE-RS

0x83YakinduCodes - NormalTurnout

KVC-RSKVC-BPE-RS

0x84YakinduCodes - NormalTurnout

KVC-RSKVC-BPE-RS

0x85YakinduCodes - NormalTurnout

KVC-RSKVC-BPE-RS

0x86-0x87YakinduCodes - EnglishTurnout

KVC-RSKVC-BPE-RS

HTTPKVControl-BPExtension HTTP

Cloud Local machine

Page 5: Cloud-deployed Model Railway Control System

Node-RED Introduction

„A visual tool for wiring the Internet of Things”

5

Page 6: Cloud-deployed Model Railway Control System

Communication in Node-RED

6

Page 7: Cloud-deployed Model Railway Control System

Communication in Node-RED

7

Page 8: Cloud-deployed Model Railway Control System

Communication in Node-RED

8

Page 9: Cloud-deployed Model Railway Control System

Communication in Node-RED

9

Page 10: Cloud-deployed Model Railway Control System

Cloud Integration

Running Java:

PaaS

Container

IaaS

10

Communication via:

IBM Workflow for Bluemix

Node-RED via PaaS

Node-RED in a Container

Page 11: Cloud-deployed Model Railway Control System

Node-RED + Bluemix

11

Page 12: Cloud-deployed Model Railway Control System

Cloud Integration

12

Prepared containers, startup script,semi-automated solution.

Page 13: Cloud-deployed Model Railway Control System

DEMO

Docker containers run in Bluemix

Communicate with local machine

Stops the trains on the Model Railway Track

Extra: Bluemix integration with DigitalOcean

IBM Bluemix

13

Page 14: Cloud-deployed Model Railway Control System

Difficulties

Bluemix Docker support undocumented

o Base Docker layer is not provided

o Startup script and configuration is hard to come by

o Only 5 ports published (without a support ticket)

Bluemix not fully reliable

Network communication issues

Monitoring difficulties

14