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
This data could be voltage, pressure, resistance, temperature, speed etc
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
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:
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
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
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.
Modifications done by Torqeedo
Low latency to High latency
We have more broader window to chose the latency from 20 ms to 4 seconds
Define the format of the output so our analysis tool can read the data.