SlideShare a Scribd company logo
1 of 27
Fakultät für Informatik
Professur Technische Informatik
www.tu-chemnitz.de
Professur Technische Informatik
Prof. Dr. Wolfram Hardt
Habib Ur Rehman
Master-Thesis
Defense Presentation
University Supervisor: Prof. Wolfram Hardt
Company Supervisor: Dipl.-Inf Stephan Dörr
Date: September, 15, 2016
Design and development of a data bus
logging and monitoring tool
www.tu-chemnitz.de
Fakultät für Informatik
Professur Technische Informatik
Agenda
 Motivation
 Introduction
 Deep Blue Hybrid System Overview
 State of the Art
 Implementation
 Results
 Conclusion & Future Work
16.09.2016 2
www.tu-chemnitz.de
Fakultät für Informatik
Professur Technische Informatik
16.09.2016 3
Motivation
Research Question
 How to implement an automated logging/monitoring tool to
simplify debugging and identify protocol mismatches easily?
Possible Solutions
 Off The Shelf Solutions
 Develop New Monitoring Tool
Aim
 Low cost bus logging with timing analysis features
 Offline tool to analyze logged data
 Online tool to analyze real time data
Agenda • Motivation• Introduction• Deep Blue Hybrid System• State of The Art• Implementation• Results • Conclusion & Future Work
www.tu-chemnitz.de
Fakultät für Informatik
Professur Technische Informatik
Introduction
 The term “data logging” refers to collecting or gathering data over
a period of time.
 “Monitoring” refers to the process of analysing the data over a
communication channel.
 Data loggers are used in a variety of applications
• Vehicle Data Logging
• Environmental Monitoring
• Machine Condition Monitoring
16.09.2016 4
Agenda • Motivation• Introduction • Deep Blue Hybrid System• State of The Art• Implementation• Results • Conclusion & Future Work
www.tu-chemnitz.de
Fakultät für Informatik
Professur Technische Informatik
Introduction(cont.)
Protocol Analyzer
• Tool to capture and analyze data traffic over a communication
channel.
Why Protocol Analyzer?
 Check reliability and performance of communication channel
 Make debugging easy
 Medium sharing strategy
16.09.2016 5
Agenda • Motivation• Introduction • Deep Blue Hybrid System• State of The Art• Implementation• Results • Conclusion & Future Work
www.tu-chemnitz.de
Fakultät für Informatik
Professur Technische Informatik
Introduction(cont.)
OSI Model
 OSI model layers
 CAN is low layer protocol
 CANopen is high layer protocol
 Transmission of time
critical process data
 High flexibility
16.09.2016 6
[5]
Agenda • Motivation• Introduction • Deep Blue Hybrid System• State of The Art• Implementation• Results • Conclusion & Future Work
www.tu-chemnitz.de
Fakultät für Informatik
Professur Technische Informatik
Introduction(cont.)
16.09.2016 7
CANopen Protocol
 CANopen frame message format is based on the CAN frame
format.
 Object Dictionary
 Service Data Object
• SDO Server
• SDO Client
 Process Data Object
• TPDO
• RPDO
[1]
Agenda • Motivation• Introduction • Deep Blue Hybrid System• State of The Art• Implementation• Results • Conclusion & Future Work
www.tu-chemnitz.de
Fakultät für Informatik
Professur Technische Informatik
Introduction(cont.)
Process data objects are used for fast transmission of process
data. A PDO can carry a payload of 8 bytes.
PDO Transmission mode
 Synchronous transmission
 Event driven transmission
Network Management
 Monitor and change the state of the node
 Communication behaviour
Emergency Message
 Convey error within the node
16.09.2016 8
Agenda • Motivation• Introduction • Deep Blue Hybrid System• State of The Art• Implementation• Results • Conclusion & Future Work
www.tu-chemnitz.de
Fakultät für Informatik
Professur Technische Informatik
Deep Blue Hybrid System Overview
16.09.2016 9
[8]
Agenda • Motivation• Introduction• Deep Blue Hybrid System • State of The Art• Implementation• Results • Conclusion & Future Work
www.tu-chemnitz.de
Fakultät für Informatik
Professur Technische Informatik
Deep Blue Hybrid System Overview
(DBHS Connection Box)
16.09.2016 10
System Control Unit(SCU)
 System wide state information
 Handle system configuration
Box Control Unit(BCU)
 Manage DCU modules
 Safety functions
Device Control Unit(DCU)
 Manage device communication
 Parameter handling
Throttle Control Unit(TCU)
[8]
Agenda • Motivation• Introduction• Deep Blue Hybrid System • State of The Art• Implementation• Results • Conclusion & Future Work
www.tu-chemnitz.de
Fakultät für Informatik
Professur Technische Informatik
State of the Art
Off the shelf and open source
 CANopen standards
 Modifying the feature set is difficult
 Large set of code
Torqeedo Approach
 Flexible data transmission
 Bus Balancing
16.09.2016 11
Agenda • Motivation• Introduction• Deep Blue Hybrid System• State of The Art • Implementation• Results • Conclusion & Future Work
www.tu-chemnitz.de
Fakultät für Informatik
Professur Technische Informatik
State of the Art(cont.)
CANopen Communication Cycle
16.09.2016 12
Sync Window
Sync
Slot-1
Sync
Slot-200
Sync
Slot-2
SYNC SlotSynchronous section Asynchronous section
PDO
PDO
SDO
SDO1ms 20ms
Agenda • Motivation• Introduction• Deep Blue Hybrid System• State of The Art • Implementation• Results • Conclusion & Future Work
www.tu-chemnitz.de
Fakultät für Informatik
Professur Technische Informatik
State of the Art (cont.)
Flexible Data Transmission
16.09.2016 13
SYNC Window
SYNC Window
Agenda • Motivation• Introduction• Deep Blue Hybrid System• State of The Art • Implementation• Results • Conclusion & Future Work
Sync Slot
5
PDO
Sync Slot
5
Sync Slot
55
Sync Slot
105
Sync Slot
155
PDO PDO PDO PDO
Sync Number= 5
Sync Gap= 50
Sync Number= 5
www.tu-chemnitz.de
Fakultät für Informatik
Professur Technische Informatik
Implementation
• Phase1- Online monitoring tool development
• Phase2- Offline Data Analysis
• Phase3- Embedded Platform
16.09.2016 14
[1]
Agenda • Motivation• Introduction• Deep Blue Hybrid System• State of The Art• Implementation • Results • Conclusion & Future Work
www.tu-chemnitz.de
Fakultät für Informatik
Professur Technische Informatik
Implementation - Phase l
Basic online monitoring tool for PC platform
 Monitoring of Sync Slot
 Bus load measurement
 Slot Monitoring of PDO and SDO
 Monitoring of Heartbeat messages
 Emergency messages
16.09.2016 15
Agenda • Motivation• Introduction• Deep Blue Hybrid System• State of The Art• Implementation • Results • Conclusion & Future Work
www.tu-chemnitz.de
Fakultät für Informatik
Professur Technische Informatik
Implementation - Phase l (cont.)
SYNC Slot Timing
16.09.2016 16
[1]
Agenda • Motivation• Introduction• Deep Blue Hybrid System• State of The Art• Implementation • Results • Conclusion & Future Work
www.tu-chemnitz.de
Fakultät für Informatik
Professur Technische Informatik
Implementation - Phase l (cont.)
Emergency Monitoring
 Double Set
 Double Reset
16.09.2016 17
00 FF 0021 000135 00
EEC ER MSEF
Error code count Additional
Data Section of CAN message
00 00 0021 000121 00
Agenda • Motivation• Introduction• Deep Blue Hybrid System• State of The Art• Implementation• Results • Conclusion & Future Work
www.tu-chemnitz.de
Fakultät für Informatik
Professur Technische Informatik
Implementation - Phase ll
Offline Data Analysis
 Generate recognition file from Database
 Analyze logging file with the use of system Configuration file
 Timing Analysis of Heartbeat messages
 Error logging
 Payload analysis
• Read Physical values
16.09.2016 18
Agenda • Motivation• Introduction• Deep Blue Hybrid System• State of The Art• Implementation• Results • Conclusion &Future Work
www.tu-chemnitz.de
Fakultät für Informatik
Professur Technische Informatik
Implementation- Phase III
Embedded Platform
 SCU Online monitoring
 Logging output format for easy recognition in analysis
16.09.2016 19
Agenda • Motivation• Introduction• Deep Blue Hybrid System• State of The Art• Implementation• Results • Conclusion & Future Work
www.tu-chemnitz.de
Fakultät für Informatik
Professur Technische Informatik
Results
 Reduce debugging time
 Portability
 Log protocol violations
 Flexible jitter testing
 Payload analysis of nodes
 Bus load measurement
16.09.2016 20
Agenda • Motivation• Introduction• Deep Blue Hybrid System• State of The Art• Implementation• Results • Conclusion & Future Work
www.tu-chemnitz.de
Fakultät für Informatik
Professur Technische Informatik
Results(cont.)
16.09.2016 21
Agenda • Motivation• Introduction• Deep Blue Hybrid System• State of The Art• Implementation• Results • Conclusion & Future Work
www.tu-chemnitz.de
Fakultät für Informatik
Professur Technische Informatik
Results(cont.)
16.09.2016 22
PDO Errors List
Heartbeat Errors List
Agenda • Motivation• Introduction• Deep Blue Hybrid System• State of The Art• Implementation• Results • Conclusion & Future Work
www.tu-chemnitz.de
Fakultät für Informatik
Professur Technische Informatik
Results(cont.)
16.09.2016 23
Agenda • Motivation• Introduction• Deep Blue Hybrid System• State of The Art• Implementation• Results • Conclusion & Future Work
[1]
www.tu-chemnitz.de
Fakultät für Informatik
Professur Technische Informatik
Conclusion & Future Work
 Commercial solutions seem expensive with some hidden
weaknesses.
 Developing three in one solution.
 Payload analysis for one device to generate the template for
code generation.
Future Work
 Generating code for Payload analysis of all devices
 Desktop application for simulation and trace analysis
16.09.2016 24
Agenda • Motivation• Introduction• Deep Blue Hybrid System• State of The Art• Implementation• Results • Conclusion & Future Work
www.tu-chemnitz.de
Fakultät für Informatik
Professur Technische Informatik
16.09.2016 25
Thank You
www.tu-chemnitz.de
Fakultät für Informatik
Professur Technische Informatik
References
[1] Master_Thesis_Habib_Ur_Rehman_FinalVersion.pdf
[2] http://www.ni.com/cms/images/devzone/tut/SDO_Comm_Example2.PNG
(Accessed 11-Jun-2016)
[3] http://www.can-cia.org/can-knowledge/canopen/network-management/
(Accessed 08-Jun-2016)
[4] http://www.can-cia.org/can-knowledge/canopen/network-management/
(Accessed 05-July-2016)
[5] CIA 301 CANopen application layer and communication profile © CiA 2011
[6] Automotive testing for CANopen Node – Hui Liang
[7] Steve Corrigan. (2016). Application Report. Introduction to Controller Area Network
(CAN). Available at: http://www.ti.com/lit/an/sloa101a/sloa101a.pdf [Accessed: 19.06.2016]
[8] Torqeedo Gmbh, Internal documents
16.09.2016 26
www.tu-chemnitz.de
Fakultät für Informatik
Professur Technische Informatik
Bus Balancing Method
• PDO distribution
• Bottle neck problem
• Maximum frames
16.09.2016 27

More Related Content

Viewers also liked

Voces 2016 Creando una Cultura de Vida en la Comunidad
Voces 2016   Creando una Cultura de Vida en la ComunidadVoces 2016   Creando una Cultura de Vida en la Comunidad
Voces 2016 Creando una Cultura de Vida en la ComunidadVoces Unidas por la Vida
 
Voces conferencia pro vida anticonceptivos pnf mexico
Voces conferencia pro vida anticonceptivos  pnf mexicoVoces conferencia pro vida anticonceptivos  pnf mexico
Voces conferencia pro vida anticonceptivos pnf mexicoVoces Unidas por la Vida
 
Placa madre 3° tipp
Placa madre 3° tippPlaca madre 3° tipp
Placa madre 3° tippWanda Juarez
 
USA MEXICO. Depresion Suicidio y Trauma Post Aborto
USA  MEXICO.  Depresion  Suicidio  y Trauma Post AbortoUSA  MEXICO.  Depresion  Suicidio  y Trauma Post Aborto
USA MEXICO. Depresion Suicidio y Trauma Post AbortoVoces Unidas por la Vida
 
Guia de la Campaña de Adopción Espiritual
Guia de la Campaña de Adopción EspiritualGuia de la Campaña de Adopción Espiritual
Guia de la Campaña de Adopción EspiritualVoces Unidas por la Vida
 
Conferencia depresion y trauma post aborto mexico
Conferencia depresion   y trauma post aborto mexicoConferencia depresion   y trauma post aborto mexico
Conferencia depresion y trauma post aborto mexicoVoces Unidas por la Vida
 
Voces conferencia pro vida ANTICONCEPTIVOS PLANIFICACION NATURAL
Voces conferencia pro vida ANTICONCEPTIVOS PLANIFICACION NATURAL  Voces conferencia pro vida ANTICONCEPTIVOS PLANIFICACION NATURAL
Voces conferencia pro vida ANTICONCEPTIVOS PLANIFICACION NATURAL Voces Unidas por la Vida
 
Colegio nicolas esguerra vistas
Colegio nicolas esguerra vistasColegio nicolas esguerra vistas
Colegio nicolas esguerra vistasteknopyp
 
Ley io c-ley de igualdad 2005-g.vasco
Ley io c-ley de igualdad  2005-g.vascoLey io c-ley de igualdad  2005-g.vasco
Ley io c-ley de igualdad 2005-g.vascokidetza1
 
The Art of Denise Baldwin of ODD imagination
The Art of Denise Baldwin of ODD imaginationThe Art of Denise Baldwin of ODD imagination
The Art of Denise Baldwin of ODD imaginationDenise Baldwin
 
Projeto de lei cargos comissionados pato branco
Projeto de lei cargos comissionados pato brancoProjeto de lei cargos comissionados pato branco
Projeto de lei cargos comissionados pato brancojuliaopassage
 
Conceptos básicos web 2.0
Conceptos básicos web 2.0Conceptos básicos web 2.0
Conceptos básicos web 2.0teknopyp
 
Panama 2000 bible story trip
Panama 2000 bible story tripPanama 2000 bible story trip
Panama 2000 bible story tripJavataza LLC
 

Viewers also liked (20)

Voces 2016 Creando una Cultura de Vida en la Comunidad
Voces 2016   Creando una Cultura de Vida en la ComunidadVoces 2016   Creando una Cultura de Vida en la Comunidad
Voces 2016 Creando una Cultura de Vida en la Comunidad
 
Campaña 40 dias por la vida
Campaña 40 dias por la vida Campaña 40 dias por la vida
Campaña 40 dias por la vida
 
Voces conferencia pro vida anticonceptivos pnf mexico
Voces conferencia pro vida anticonceptivos  pnf mexicoVoces conferencia pro vida anticonceptivos  pnf mexico
Voces conferencia pro vida anticonceptivos pnf mexico
 
Campaña la familia provida
Campaña la familia providaCampaña la familia provida
Campaña la familia provida
 
Placa madre 3° tipp
Placa madre 3° tippPlaca madre 3° tipp
Placa madre 3° tipp
 
USA MEXICO. Depresion Suicidio y Trauma Post Aborto
USA  MEXICO.  Depresion  Suicidio  y Trauma Post AbortoUSA  MEXICO.  Depresion  Suicidio  y Trauma Post Aborto
USA MEXICO. Depresion Suicidio y Trauma Post Aborto
 
Tics
TicsTics
Tics
 
Guia de la Campaña de Adopción Espiritual
Guia de la Campaña de Adopción EspiritualGuia de la Campaña de Adopción Espiritual
Guia de la Campaña de Adopción Espiritual
 
Conferencia depresion y trauma post aborto mexico
Conferencia depresion   y trauma post aborto mexicoConferencia depresion   y trauma post aborto mexico
Conferencia depresion y trauma post aborto mexico
 
Voces conferencia pro vida ANTICONCEPTIVOS PLANIFICACION NATURAL
Voces conferencia pro vida ANTICONCEPTIVOS PLANIFICACION NATURAL  Voces conferencia pro vida ANTICONCEPTIVOS PLANIFICACION NATURAL
Voces conferencia pro vida ANTICONCEPTIVOS PLANIFICACION NATURAL
 
Campaña celebrando la vida
Campaña celebrando la vida Campaña celebrando la vida
Campaña celebrando la vida
 
Colegio nicolas esguerra vistas
Colegio nicolas esguerra vistasColegio nicolas esguerra vistas
Colegio nicolas esguerra vistas
 
Ley io c-ley de igualdad 2005-g.vasco
Ley io c-ley de igualdad  2005-g.vascoLey io c-ley de igualdad  2005-g.vasco
Ley io c-ley de igualdad 2005-g.vasco
 
Informe sobre VNC
 Informe sobre VNC Informe sobre VNC
Informe sobre VNC
 
The Art of Denise Baldwin of ODD imagination
The Art of Denise Baldwin of ODD imaginationThe Art of Denise Baldwin of ODD imagination
The Art of Denise Baldwin of ODD imagination
 
Projeto de lei cargos comissionados pato branco
Projeto de lei cargos comissionados pato brancoProjeto de lei cargos comissionados pato branco
Projeto de lei cargos comissionados pato branco
 
Bauhaus
Bauhaus Bauhaus
Bauhaus
 
Conceptos básicos web 2.0
Conceptos básicos web 2.0Conceptos básicos web 2.0
Conceptos básicos web 2.0
 
Panama 2000 bible story trip
Panama 2000 bible story tripPanama 2000 bible story trip
Panama 2000 bible story trip
 
Ser professor3304 (1)
Ser professor3304 (1)Ser professor3304 (1)
Ser professor3304 (1)
 

Similar to Final Defence-Presentation15-Sep-2016

Service Engineering, ZHAW for CeBIT
Service Engineering, ZHAW for CeBITService Engineering, ZHAW for CeBIT
Service Engineering, ZHAW for CeBITAmrita Prasad
 
Cwin16 tls-s2 cf safety critical systems
Cwin16 tls-s2 cf safety critical systemsCwin16 tls-s2 cf safety critical systems
Cwin16 tls-s2 cf safety critical systemsCapgemini
 
Using “Big-Data” to improve roadway performance across strategic road network...
Using “Big-Data” to improve roadway performance across strategic road network...Using “Big-Data” to improve roadway performance across strategic road network...
Using “Big-Data” to improve roadway performance across strategic road network...Italo Broggini
 
Ensuring optimised design, successful migration and safety compliant systems
Ensuring optimised design, successful migration and safety compliant systemsEnsuring optimised design, successful migration and safety compliant systems
Ensuring optimised design, successful migration and safety compliant systemsTorben Haagh
 
Presentation mongo db munich
Presentation mongo db munichPresentation mongo db munich
Presentation mongo db munichMongoDB
 
Implementation of a SaaS based simulation platform using open standards and o...
Implementation of a SaaS based simulation platform using open standards and o...Implementation of a SaaS based simulation platform using open standards and o...
Implementation of a SaaS based simulation platform using open standards and o...Thomas Paviot
 
Confluent Partner Tech Talk with QLIK
Confluent Partner Tech Talk with QLIKConfluent Partner Tech Talk with QLIK
Confluent Partner Tech Talk with QLIKconfluent
 
Design phase kick-off event and Ceremony
Design phase kick-off event and CeremonyDesign phase kick-off event and Ceremony
Design phase kick-off event and CeremonyArchiver
 
Marchand leny mass digitization systems and open source software
Marchand leny mass digitization systems and open source softwareMarchand leny mass digitization systems and open source software
Marchand leny mass digitization systems and open source softwareFIAT/IFTA
 
Design flow for Controller Area Network systems
Design flow for Controller Area Network systemsDesign flow for Controller Area Network systems
Design flow for Controller Area Network systemsAlexios Lekidis
 
PyData Barcelona Keynote
PyData Barcelona KeynotePyData Barcelona Keynote
PyData Barcelona KeynoteTravis Oliphant
 
DE-CPS 2017 The INTO-CPS Cyber-Physical System Profile Alessandra Bagnato
DE-CPS 2017 The INTO-CPS Cyber-Physical System Profile Alessandra BagnatoDE-CPS 2017 The INTO-CPS Cyber-Physical System Profile Alessandra Bagnato
DE-CPS 2017 The INTO-CPS Cyber-Physical System Profile Alessandra BagnatoAlessandra Bagnato
 
Concourse, Spinnaker, Cloud Foundry, Oh My! Creating Sophisticated Deployment...
Concourse, Spinnaker, Cloud Foundry, Oh My! Creating Sophisticated Deployment...Concourse, Spinnaker, Cloud Foundry, Oh My! Creating Sophisticated Deployment...
Concourse, Spinnaker, Cloud Foundry, Oh My! Creating Sophisticated Deployment...VMware Tanzu
 
cReComp : Automated Design Tool for ROS-Compliant FPGA Component
cReComp : Automated Design Tool  for ROS-Compliant FPGA Component cReComp : Automated Design Tool  for ROS-Compliant FPGA Component
cReComp : Automated Design Tool for ROS-Compliant FPGA Component Kazushi Yamashina
 
Automatic generation of hardware memory architectures for HPC
Automatic generation of hardware memory architectures for HPCAutomatic generation of hardware memory architectures for HPC
Automatic generation of hardware memory architectures for HPCFacultad de Informática UCM
 
BigDataEurope @BDVA Summit2016 2: Societal Pilots
BigDataEurope @BDVA Summit2016 2: Societal PilotsBigDataEurope @BDVA Summit2016 2: Societal Pilots
BigDataEurope @BDVA Summit2016 2: Societal PilotsBigData_Europe
 

Similar to Final Defence-Presentation15-Sep-2016 (20)

Service Engineering, ZHAW for CeBIT
Service Engineering, ZHAW for CeBITService Engineering, ZHAW for CeBIT
Service Engineering, ZHAW for CeBIT
 
Cwin16 tls-s2 cf safety critical systems
Cwin16 tls-s2 cf safety critical systemsCwin16 tls-s2 cf safety critical systems
Cwin16 tls-s2 cf safety critical systems
 
Using “Big-Data” to improve roadway performance across strategic road network...
Using “Big-Data” to improve roadway performance across strategic road network...Using “Big-Data” to improve roadway performance across strategic road network...
Using “Big-Data” to improve roadway performance across strategic road network...
 
Ensuring optimised design, successful migration and safety compliant systems
Ensuring optimised design, successful migration and safety compliant systemsEnsuring optimised design, successful migration and safety compliant systems
Ensuring optimised design, successful migration and safety compliant systems
 
Arkena IMF case study
Arkena IMF case studyArkena IMF case study
Arkena IMF case study
 
Presentation mongo db munich
Presentation mongo db munichPresentation mongo db munich
Presentation mongo db munich
 
An approach to production scheduling optimization, A Case of an Oil Lubricati...
An approach to production scheduling optimization, A Case of an Oil Lubricati...An approach to production scheduling optimization, A Case of an Oil Lubricati...
An approach to production scheduling optimization, A Case of an Oil Lubricati...
 
Implementation of a SaaS based simulation platform using open standards and o...
Implementation of a SaaS based simulation platform using open standards and o...Implementation of a SaaS based simulation platform using open standards and o...
Implementation of a SaaS based simulation platform using open standards and o...
 
Confluent Partner Tech Talk with QLIK
Confluent Partner Tech Talk with QLIKConfluent Partner Tech Talk with QLIK
Confluent Partner Tech Talk with QLIK
 
Design phase kick-off event and Ceremony
Design phase kick-off event and CeremonyDesign phase kick-off event and Ceremony
Design phase kick-off event and Ceremony
 
Marchand leny mass digitization systems and open source software
Marchand leny mass digitization systems and open source softwareMarchand leny mass digitization systems and open source software
Marchand leny mass digitization systems and open source software
 
Design flow for Controller Area Network systems
Design flow for Controller Area Network systemsDesign flow for Controller Area Network systems
Design flow for Controller Area Network systems
 
PyData Barcelona Keynote
PyData Barcelona KeynotePyData Barcelona Keynote
PyData Barcelona Keynote
 
DE-CPS 2017 The INTO-CPS Cyber-Physical System Profile Alessandra Bagnato
DE-CPS 2017 The INTO-CPS Cyber-Physical System Profile Alessandra BagnatoDE-CPS 2017 The INTO-CPS Cyber-Physical System Profile Alessandra Bagnato
DE-CPS 2017 The INTO-CPS Cyber-Physical System Profile Alessandra Bagnato
 
Concourse, Spinnaker, Cloud Foundry, Oh My! Creating Sophisticated Deployment...
Concourse, Spinnaker, Cloud Foundry, Oh My! Creating Sophisticated Deployment...Concourse, Spinnaker, Cloud Foundry, Oh My! Creating Sophisticated Deployment...
Concourse, Spinnaker, Cloud Foundry, Oh My! Creating Sophisticated Deployment...
 
cReComp : Automated Design Tool for ROS-Compliant FPGA Component
cReComp : Automated Design Tool  for ROS-Compliant FPGA Component cReComp : Automated Design Tool  for ROS-Compliant FPGA Component
cReComp : Automated Design Tool for ROS-Compliant FPGA Component
 
Automatic generation of hardware memory architectures for HPC
Automatic generation of hardware memory architectures for HPCAutomatic generation of hardware memory architectures for HPC
Automatic generation of hardware memory architectures for HPC
 
Cloud, Fog, or Edge: Where and When to Compute?
Cloud, Fog, or Edge: Where and When to Compute?Cloud, Fog, or Edge: Where and When to Compute?
Cloud, Fog, or Edge: Where and When to Compute?
 
BigDataEurope @BDVA Summit2016 2: Societal Pilots
BigDataEurope @BDVA Summit2016 2: Societal PilotsBigDataEurope @BDVA Summit2016 2: Societal Pilots
BigDataEurope @BDVA Summit2016 2: Societal Pilots
 
simulation
simulationsimulation
simulation
 

Final Defence-Presentation15-Sep-2016

  • 1. Fakultät für Informatik Professur Technische Informatik www.tu-chemnitz.de Professur Technische Informatik Prof. Dr. Wolfram Hardt Habib Ur Rehman Master-Thesis Defense Presentation University Supervisor: Prof. Wolfram Hardt Company Supervisor: Dipl.-Inf Stephan Dörr Date: September, 15, 2016 Design and development of a data bus logging and monitoring tool
  • 2. www.tu-chemnitz.de Fakultät für Informatik Professur Technische Informatik Agenda  Motivation  Introduction  Deep Blue Hybrid System Overview  State of the Art  Implementation  Results  Conclusion & Future Work 16.09.2016 2
  • 3. www.tu-chemnitz.de Fakultät für Informatik Professur Technische Informatik 16.09.2016 3 Motivation Research Question  How to implement an automated logging/monitoring tool to simplify debugging and identify protocol mismatches easily? Possible Solutions  Off The Shelf Solutions  Develop New Monitoring Tool Aim  Low cost bus logging with timing analysis features  Offline tool to analyze logged data  Online tool to analyze real time data Agenda • Motivation• Introduction• Deep Blue Hybrid System• State of The Art• Implementation• Results • Conclusion & Future Work
  • 4. www.tu-chemnitz.de Fakultät für Informatik Professur Technische Informatik Introduction  The term “data logging” refers to collecting or gathering data over a period of time.  “Monitoring” refers to the process of analysing the data over a communication channel.  Data loggers are used in a variety of applications • Vehicle Data Logging • Environmental Monitoring • Machine Condition Monitoring 16.09.2016 4 Agenda • Motivation• Introduction • Deep Blue Hybrid System• State of The Art• Implementation• Results • Conclusion & Future Work
  • 5. www.tu-chemnitz.de Fakultät für Informatik Professur Technische Informatik Introduction(cont.) Protocol Analyzer • Tool to capture and analyze data traffic over a communication channel. Why Protocol Analyzer?  Check reliability and performance of communication channel  Make debugging easy  Medium sharing strategy 16.09.2016 5 Agenda • Motivation• Introduction • Deep Blue Hybrid System• State of The Art• Implementation• Results • Conclusion & Future Work
  • 6. www.tu-chemnitz.de Fakultät für Informatik Professur Technische Informatik Introduction(cont.) OSI Model  OSI model layers  CAN is low layer protocol  CANopen is high layer protocol  Transmission of time critical process data  High flexibility 16.09.2016 6 [5] Agenda • Motivation• Introduction • Deep Blue Hybrid System• State of The Art• Implementation• Results • Conclusion & Future Work
  • 7. www.tu-chemnitz.de Fakultät für Informatik Professur Technische Informatik Introduction(cont.) 16.09.2016 7 CANopen Protocol  CANopen frame message format is based on the CAN frame format.  Object Dictionary  Service Data Object • SDO Server • SDO Client  Process Data Object • TPDO • RPDO [1] Agenda • Motivation• Introduction • Deep Blue Hybrid System• State of The Art• Implementation• Results • Conclusion & Future Work
  • 8. www.tu-chemnitz.de Fakultät für Informatik Professur Technische Informatik Introduction(cont.) Process data objects are used for fast transmission of process data. A PDO can carry a payload of 8 bytes. PDO Transmission mode  Synchronous transmission  Event driven transmission Network Management  Monitor and change the state of the node  Communication behaviour Emergency Message  Convey error within the node 16.09.2016 8 Agenda • Motivation• Introduction • Deep Blue Hybrid System• State of The Art• Implementation• Results • Conclusion & Future Work
  • 9. www.tu-chemnitz.de Fakultät für Informatik Professur Technische Informatik Deep Blue Hybrid System Overview 16.09.2016 9 [8] Agenda • Motivation• Introduction• Deep Blue Hybrid System • State of The Art• Implementation• Results • Conclusion & Future Work
  • 10. www.tu-chemnitz.de Fakultät für Informatik Professur Technische Informatik Deep Blue Hybrid System Overview (DBHS Connection Box) 16.09.2016 10 System Control Unit(SCU)  System wide state information  Handle system configuration Box Control Unit(BCU)  Manage DCU modules  Safety functions Device Control Unit(DCU)  Manage device communication  Parameter handling Throttle Control Unit(TCU) [8] Agenda • Motivation• Introduction• Deep Blue Hybrid System • State of The Art• Implementation• Results • Conclusion & Future Work
  • 11. www.tu-chemnitz.de Fakultät für Informatik Professur Technische Informatik State of the Art Off the shelf and open source  CANopen standards  Modifying the feature set is difficult  Large set of code Torqeedo Approach  Flexible data transmission  Bus Balancing 16.09.2016 11 Agenda • Motivation• Introduction• Deep Blue Hybrid System• State of The Art • Implementation• Results • Conclusion & Future Work
  • 12. www.tu-chemnitz.de Fakultät für Informatik Professur Technische Informatik State of the Art(cont.) CANopen Communication Cycle 16.09.2016 12 Sync Window Sync Slot-1 Sync Slot-200 Sync Slot-2 SYNC SlotSynchronous section Asynchronous section PDO PDO SDO SDO1ms 20ms Agenda • Motivation• Introduction• Deep Blue Hybrid System• State of The Art • Implementation• Results • Conclusion & Future Work
  • 13. www.tu-chemnitz.de Fakultät für Informatik Professur Technische Informatik State of the Art (cont.) Flexible Data Transmission 16.09.2016 13 SYNC Window SYNC Window Agenda • Motivation• Introduction• Deep Blue Hybrid System• State of The Art • Implementation• Results • Conclusion & Future Work Sync Slot 5 PDO Sync Slot 5 Sync Slot 55 Sync Slot 105 Sync Slot 155 PDO PDO PDO PDO Sync Number= 5 Sync Gap= 50 Sync Number= 5
  • 14. www.tu-chemnitz.de Fakultät für Informatik Professur Technische Informatik Implementation • Phase1- Online monitoring tool development • Phase2- Offline Data Analysis • Phase3- Embedded Platform 16.09.2016 14 [1] Agenda • Motivation• Introduction• Deep Blue Hybrid System• State of The Art• Implementation • Results • Conclusion & Future Work
  • 15. www.tu-chemnitz.de Fakultät für Informatik Professur Technische Informatik Implementation - Phase l Basic online monitoring tool for PC platform  Monitoring of Sync Slot  Bus load measurement  Slot Monitoring of PDO and SDO  Monitoring of Heartbeat messages  Emergency messages 16.09.2016 15 Agenda • Motivation• Introduction• Deep Blue Hybrid System• State of The Art• Implementation • Results • Conclusion & Future Work
  • 16. www.tu-chemnitz.de Fakultät für Informatik Professur Technische Informatik Implementation - Phase l (cont.) SYNC Slot Timing 16.09.2016 16 [1] Agenda • Motivation• Introduction• Deep Blue Hybrid System• State of The Art• Implementation • Results • Conclusion & Future Work
  • 17. www.tu-chemnitz.de Fakultät für Informatik Professur Technische Informatik Implementation - Phase l (cont.) Emergency Monitoring  Double Set  Double Reset 16.09.2016 17 00 FF 0021 000135 00 EEC ER MSEF Error code count Additional Data Section of CAN message 00 00 0021 000121 00 Agenda • Motivation• Introduction• Deep Blue Hybrid System• State of The Art• Implementation• Results • Conclusion & Future Work
  • 18. www.tu-chemnitz.de Fakultät für Informatik Professur Technische Informatik Implementation - Phase ll Offline Data Analysis  Generate recognition file from Database  Analyze logging file with the use of system Configuration file  Timing Analysis of Heartbeat messages  Error logging  Payload analysis • Read Physical values 16.09.2016 18 Agenda • Motivation• Introduction• Deep Blue Hybrid System• State of The Art• Implementation• Results • Conclusion &Future Work
  • 19. www.tu-chemnitz.de Fakultät für Informatik Professur Technische Informatik Implementation- Phase III Embedded Platform  SCU Online monitoring  Logging output format for easy recognition in analysis 16.09.2016 19 Agenda • Motivation• Introduction• Deep Blue Hybrid System• State of The Art• Implementation• Results • Conclusion & Future Work
  • 20. www.tu-chemnitz.de Fakultät für Informatik Professur Technische Informatik Results  Reduce debugging time  Portability  Log protocol violations  Flexible jitter testing  Payload analysis of nodes  Bus load measurement 16.09.2016 20 Agenda • Motivation• Introduction• Deep Blue Hybrid System• State of The Art• Implementation• Results • Conclusion & Future Work
  • 21. www.tu-chemnitz.de Fakultät für Informatik Professur Technische Informatik Results(cont.) 16.09.2016 21 Agenda • Motivation• Introduction• Deep Blue Hybrid System• State of The Art• Implementation• Results • Conclusion & Future Work
  • 22. www.tu-chemnitz.de Fakultät für Informatik Professur Technische Informatik Results(cont.) 16.09.2016 22 PDO Errors List Heartbeat Errors List Agenda • Motivation• Introduction• Deep Blue Hybrid System• State of The Art• Implementation• Results • Conclusion & Future Work
  • 23. www.tu-chemnitz.de Fakultät für Informatik Professur Technische Informatik Results(cont.) 16.09.2016 23 Agenda • Motivation• Introduction• Deep Blue Hybrid System• State of The Art• Implementation• Results • Conclusion & Future Work [1]
  • 24. www.tu-chemnitz.de Fakultät für Informatik Professur Technische Informatik Conclusion & Future Work  Commercial solutions seem expensive with some hidden weaknesses.  Developing three in one solution.  Payload analysis for one device to generate the template for code generation. Future Work  Generating code for Payload analysis of all devices  Desktop application for simulation and trace analysis 16.09.2016 24 Agenda • Motivation• Introduction• Deep Blue Hybrid System• State of The Art• Implementation• Results • Conclusion & Future Work
  • 25. www.tu-chemnitz.de Fakultät für Informatik Professur Technische Informatik 16.09.2016 25 Thank You
  • 26. www.tu-chemnitz.de Fakultät für Informatik Professur Technische Informatik References [1] Master_Thesis_Habib_Ur_Rehman_FinalVersion.pdf [2] http://www.ni.com/cms/images/devzone/tut/SDO_Comm_Example2.PNG (Accessed 11-Jun-2016) [3] http://www.can-cia.org/can-knowledge/canopen/network-management/ (Accessed 08-Jun-2016) [4] http://www.can-cia.org/can-knowledge/canopen/network-management/ (Accessed 05-July-2016) [5] CIA 301 CANopen application layer and communication profile © CiA 2011 [6] Automotive testing for CANopen Node – Hui Liang [7] Steve Corrigan. (2016). Application Report. Introduction to Controller Area Network (CAN). Available at: http://www.ti.com/lit/an/sloa101a/sloa101a.pdf [Accessed: 19.06.2016] [8] Torqeedo Gmbh, Internal documents 16.09.2016 26
  • 27. www.tu-chemnitz.de Fakultät für Informatik Professur Technische Informatik Bus Balancing Method • PDO distribution • Bottle neck problem • Maximum frames 16.09.2016 27

Editor's Notes

  1. This data could be voltage, pressure, resistance, temperature, speed etc
  2. A "Protocol analyzer" is a tool (hardware or software) used to capture and analyze signals and data traffic over a communication channel. Such a channel varies from a local computer bus to a satellite link, that provides a means of communication using a standard communication protocol (networked or point-to-point). Protocol analyzers vary in their abilities to display data in multiple views, automatically detect errors, determine root causes of errors, generate timing diagrams
  3. 1-High-voltage electric drives 2- High-voltage battery system 3- 12 V batteries 4- High-voltage diesel generator 5- Onshore power chargers 6- Drive connection box 7- Onshore power connection 8- System connection box 9- AC inverter 10- Isolated AC power system 11 – 17- Remote throttle: controls the performance of the electric motors. 18- Deep Blue Hybrid information system:
  4. This is the internal structure of our system connection Box. Allocation of Node ID to all devices connected with DCUs is deterministic TCU-> BCU leaver position and button states SCU -> BCU basic system information SOC, speed, motor Power. Parameter change request BCU -> TCU Power enabling. Box state information. Active station information SCU is connected with Ethernet to SCU of other box SCU is the silent listener of the CAN bus
  5. Transmission of PDO can be coupled with the SYNC slot. but in our implementation PDO is coupled with the SYNC Gap and sync slot We are using our own Bus balancing Algorithm to balance the data more efficiently over a bus
  6. Modifications done by Torqeedo as per project requirements. With this implementation we can have more broader window of latency to achieve. We can get minimum latency of 20 ms and maximum of 4 seconds.
  7. Modifications done by Torqeedo Low latency to High latency We have more broader window to chose the latency from 20 ms to 4 seconds
  8. Define the format of the output so our analysis tool can read the data.
  9. 3 in 1 OFFline, Online, Embedded Fast simulation