RTLINUX/RTFIFO and Tcl/Tk Nishant Upadhyaya Maung Wynn Aung Han Professor Insup Lee CIS642: Seminar in Real-time Systems University of Pennsylvania.

Slides:



Advertisements
Similar presentations
Real Time Versions of Linux Operating System Present by Tr n Duy Th nh Quách Phát Tài 1.
Advertisements

Slide 19-1 Copyright © 2004 Pearson Education, Inc. Operating Systems: A Modern Perspective, Chapter 19.
Computer Hardware & Systems
Prof. B. I. Khodanpur HOD – Dept. of CSE R. V. College of Engineering. ID: Subject: Computer Fundamentals (For EDUSAT) Common.
QNX® real-time operating system
Mr Manesh T Dept. of CSE College of Arts and Science Chapter 3 Types of Softwares Code: 1400 Tech.
Chorus and other Microkernels Presented by: Jonathan Tanner and Brian Doyle Articles By: Jon Udell Peter D. Varhol Dick Pountain.
1 Tornado: An Embedded System Development Tool Maung Wynn Aung Han CIS 642, Spring 2001 Prof. Insup Lee.
UNIX Chapter 01 Overview of Operating Systems Mr. Mohammad A. Smirat.
Priority Inversion Higher priority task is blocked by a lower priority one. May be caused by semaphore usage, device conflicts, bad design of interrupt.
INTRODUCTION OS/2 was initially designed to extend the capabilities of DOS by IBM and Microsoft Corporations. To create a single industry-standard operating.
Operating System Structure. Announcements Make sure you are registered for CS 415 First CS 415 project is up –Initial design documents due next Friday,
3.5 Interprocess Communication
OPERATING SYSTEMS Introduction
Linux Operating System
Silberschatz, Galvin and Gagne ©2013 Operating System Concepts – 9 th Edition Chapter 2: Operating-System Structures.
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition Chapter 2: Operating-System Structures Modified from the text book.
Operating Systems Concepts 1. A Computer Model An operating system has to deal with the fact that a computer is made up of a CPU, random access memory.
I NTRODUCTION TO C OMPUTER S OFTWARE. S OFTWARE & H ARDWARE ? Computer Instructions or data, anything that can be stored electronically is Software. Hardware.
CprE 458/558: Real-Time Systems (G. Manimaran)1 RTLinux Lab – Introduction Cpre 558 Anil
COMPUTER SOFTWARE Chapter 3. Software & Hardware? Computer Instructions or data, anything that can be stored electronically is Software. Hardware is one.
An Introduction to Device Drivers Sarah Diesburg COP 5641 / CIS 4930.
Chapter 51 Threads Chapter 5. 2 Process Characteristics  Concept of Process has two facets.  A Process is: A Unit of resource ownership:  a virtual.
Chapter 3 Operating Systems Concepts 1. A Computer Model An operating system has to deal with the fact that a computer is made up of a CPU, random access.
Chapter 3.1:Operating Systems Concepts 1. A Computer Model An operating system has to deal with the fact that a computer is made up of a CPU, random access.
Chapter 8 Windows Outline Programming Windows 2000 System structure Processes and threads in Windows 2000 Memory management The Windows 2000 file.
Rensselaer Polytechnic Institute CSCI-4210 – Operating Systems David Goldschmidt, Ph.D.
Architecture Of ASP.NET. What is ASP?  Server-side scripting technology.  Files containing HTML and scripting code.  Access via HTTP requests.  Scripting.
UNIX System Administration OS Kernal Copyright 2002, Dr. Ken Hoganson All rights reserved. OS Kernel Concept Kernel or MicroKernel Concept: An OS architecture-design.
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition, Chapter 2: System Structures.
UNIX SVR4 COSC513 Zhaohui Chen Jiefei Huang. UNIX SVR4 UNIX system V release 4 is a major new release of the UNIX operating system, developed by AT&T.
Upgrade to Real Time Linux Target: A MATLAB-Based Graphical Control Environment Thesis Defense by Hai Xu CLEMSON U N I V E R S I T Y Department of Electrical.
ANDROID Presented By Mastan Vali.SK. © artesis 2008 | 2 1. Introduction 2. Platform 3. Software development 4. Advantages Main topics.
CASE STUDY 1: Linux and Android Tanenbaum & Bo, Modern Operating Systems:4th ed., (c) 2013 Prentice-Hall, Inc. All rights reserved.
Chapter 2: Operating-System Structures. 2.2 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts – 7 th Edition, Jan 14, 2005 Operating System.
1 Haptic Systems Mohsen Mahvash Lecture 4 12/1/06.
Lecture 3 Process Concepts. What is a Process? A process is the dynamic execution context of an executing program. Several processes may run concurrently,
The Performance of Micro-Kernel- Based Systems H. Haertig, M. Hohmuth, J. Liedtke, S. Schoenberg, J. Wolter Presentation by: Seungweon Park.
Operating Systems David Goldschmidt, Ph.D. Computer Science The College of Saint Rose CIS 432.
CE Operating Systems Lecture 3 Overview of OS functions and structure.
The Linux Operating System C. Blane Adcock Bryan Knehr Kevin Estep Jason Niesz.
Copyright © cs-tutorial.com. Overview Introduction Architecture Implementation Evaluation.
CS533 - Concepts of Operating Systems 1 The Mach System Presented by Catherine Vilhauer.
The Performance of μ-Kernel-Based Systems H. Haertig, M. Hohmuth, J. Liedtke, S. Schoenberg, J. Wolter Presenter: Sunita Marathe.
An Introduction to Device Drivers Ted Baker  Andy Wang COP 5641 / CIS 4930.
Computer Software Types Three layers of software Operation.
System Components ● There are three main protected modules of the System  The Hardware Abstraction Layer ● A virtual machine to configure all devices.
The Mach System Silberschatz et al Presented By Anjana Venkat.
Chapter 1 Basic Concepts of Operating Systems Introduction Software A program is a sequence of instructions that enables the computer to carry.
CENG334 Introduction to Operating Systems 1 Erol Sahin Dept of Computer Eng. Middle East Technical University Ankara, TURKEY URL:
ICOM Noack Linux I/O structure Device special files Device switch tables and fops How the kernel finds a device Parts of a device driver or module.
CEG 2400 FALL 2012 Linux/UNIX Network Operating Systems.
Project Paper Presentation Hanlin Wan March 15, 2011.
January 2010 – GEO-ISC KickOff meeting Christian Gräf, AEI 10 m Prototype Team State-of-the-art digital control: Introducing LIGO CDS.
OPERATING SYSTEMS DO YOU REQUIRE AN OPERATING SYSTEM IN YOUR SYSTEM?
1 Chapter 2: Operating-System Structures Services Interface provided to users & programmers –System calls (programmer access) –User level access to system.
Systems Software / The Operating System CSC October 14, 2010.
A simple control application with Real Time Linux Peter Wurmsdobler Real Time Systems Lab Jong-Koo, Lim Paper Survey.
Chapter 2 Operating System Overview Dave Bremer Otago Polytechnic, N.Z. ©2008, Prentice Hall Operating Systems: Internals and Design Principles, 6/E William.
Synchronization between native threads and java threads for embedded real-time systems Real Time Systems Lab June 3, 2002 Jong-Koo, Lim.
RT-Linux: Ross Johnston Jonathan Blackburn Jason Siciliano.
Introduction to Operating Systems Concepts
Kernel Design & Implementation
CASE STUDY 1: Linux and Android
INTER-PROCESS COMMUNICATION
Chapter 2: Operating-System Structures
Threads and Data Sharing
Tonga Institute of Higher Education
Chapter 2: System Structures
A Virtual Machine Monitor for Utilizing Non-dedicated Clusters
Presentation transcript:

RTLINUX/RTFIFO and Tcl/Tk Nishant Upadhyaya Maung Wynn Aung Han Professor Insup Lee CIS642: Seminar in Real-time Systems University of Pennsylvania

Objectives  To develop a Real-Time Extensions for Tcl-Tk that interfaces with RT Tasks through RT-FIFO  To exploit the power of Tcl-Tk and X-Window for fast RT application development

What is RT-FIFO?  RT-FIFO are located in kernel address space  RT-FIFO are character device interfaces acting as pipes between RT and non-RT tasks  Used for Inter-Process Communication (IPC) RT-Kernel RT-FIFO Linux ProcessRT Processes X-WindowLinux Kernel DisplayDiskDevices Software level Hardware level Data

RT-FIFO (contd.)  RT-FIFO is unidirectional by default  Number of FIFO is fixed and can only be changed in the RT Kernel source code RT Kernel SpaceStd Linux Space RT Task non-RT Task RT-FIFO

RT-FIFO (contd.)  Data transfer rate is about 100MB/sec in a modern x86  RT-FIFO functions are non-blocking and atomic on RT side (avoids priority inversion)  Standard Linux processes see it as standard character device  They are in /dev file system and named as /dev/rtfx where x is FIFO ID integer number.

RT-FIFO Handling API  rtf_create: create a new RT-FIFO  rtf_create_handler: to attach a data handler  rtf_destroy: to destroy the RT-FIFO  rtf_get: to read data  rtf_put: to write data  rtf_resize: to change size of RT-FIFO

Difficulties  To include RT-FIFO handling functions into a user space task is inflexible  User space tasks usually use Tcl/Tk for rapid UI development for X-Window  Mixing RT-FIFO implementations and Tcl/Tk functions can be counter productive due to changes in software versions, RT task implementation details, etc.

Approach for Tcl/Tk-RT Extension  It consists of a small extension to Tcl-Tk  The Extension can be linked to Tcl-Tk libraries dynamically using load command  Extension acts as a virtual IPC layer for Tcl- Tk applications  Takes care of how data is passed between Tcl-Tk application and Real-Time task

Extension Design  User space application only have to deal with Tcl/Tk RT-Kernel RT-FIFO RT Task X-Window Display Tcl/Tk-RT Ext. Tcl/Tk App Device

Tcl/Tk-RT Extension API  Provides a simple API for testing rtf_open: Open a new RT-FIFO rtf_close: Close a RT-FIFO rtf_read: Read data from RT-FIFO rtf_write: Write data to RT-FIFO

Advantages  Advantages of the approach are- User space tasks are easier to develop using Tcl/Tk Command Module can be loaded/unloaded dynamically It allows flexibility in modification, testing, upgrading RT applications

Implementation and Testing  Developed a small test program using Tcl/Tk that uses our extension to interface with RT Tasks  Test program includes a Tcl/Tk console it controls and monitors the RT Tasks  Two RT Tasks are created and send data, Alpha and Beta respectively, through the RT-FIFO pipes  The console can start, stop, monitor the RT modules and data received

Program Structure RT-Kernel RT-FIFO Command Module RT Task  X-Window Tcl/Tk-RT Ext. Tcl/Tk App RT Task  Device

User Console

Data From RT Tasks

Program Demonstration  Running the demonstration program under X windows

Conclusions  RT application development can be greatly enhanced by introducing RT-extension to Tcl/Tk  It can be further improved by introducing more sophisticated real-time services  Scripts can be automatically generated by using Graphical UI tools

References     RTLinux Whitepaper (Victor Yodaiken)  RTLinux Manifesto (Yodaiken)  RTLinux FAQ (Barabanov, Yodaiken, Hilton)  RT Linux man pages:  Tcl/Tk Documentation: