Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
SlideShare a Scribd company logo
TinyOS
Overview
 Need

of TinyOS
 Market Target of TinyOS - WSNs
 What is TinyOS?
 Features of TinyOS
 TinyOS Structure
 TinyOS design models
 TinyOS Basic Constructs
 The nesC Language
Need of TinyOS


Problems with traditional OS :
 Multithreaded Architecture not useful
 Large Memory Footprint
 Does not help to conserve energy and power



Requirements for Wireless Sensor Networks :
 Efficient utilization of energy and power
 Small Footprint and support diversity in design
usage
Market Target of TinyOS


Wireless Sensor Network (Market Target
of TinyOS)

Wireless sensor networks mainly use broadcast
communication.Wireless sensing + Data
networking.
 Consist of sensor networks which have – Low
power, limited memory, energy constrained due to
small size.
 Large no. of heterogeneous sensor node devices
spread over a large field. Consist of sensors which
are distributed in an ad hoc manner.

Wireless Sensor Network
Typical architecture of sensor node
Operating System for WSN
Wireless Application Areas
What is TinyOS?
TinyOS is a free open source operating system.
 Designed for wireless sensor networks.
 TinyOS began as a collaboration between
University of California, Berkeley and Intel
Research.
 An embedded operating system written in nesC
language.
 It features a component based architecture.

TinyOS Design Models
 Component-based

model

(modularity)
Simple functions are incorporated in
components with clean interfaces;



Complex functions can be implemented
by composing components.


TinyOS Design Models
 Event-based model
 Interact with outside by events (no command
shell)
 There
•

•

are two kinds of events for TinyOS:
External events: Clock events and message
events;
Internal events: triggered by external events.
Hardware setup Overview
Features of TinyOS


Completely non-blocking



Programs are built out of software components.



Tasks are non-preemptive and run in FIFO
order.



TinyOS code is statically linked.
Structure of TinyOS
TinyOS as a Solution







Component based architecture allows frequent
changes while still keeping the size of code
minimum.
Event based execution model means no user/kernel
boundary and hence supports high concurrency.
It is power efficient as it makes the sensors sleep as
soon as possible.
Has small footprint as it uses a non-preemptable
FIFO task scheduling.
TinyOS Models
Data

Model
Thread Model
Programming Model
Component Model
Network Model
Data Memory Model


Static Memory Allocation
• No Heaps or any other dynamic structures used.
• Memory requirements determined at compile
time.
• This increases the runtime efficiency.
 Global variables
• Allocated on per frame basis.
 Local Variables
• Saved on the stack
• Defined in the function/method
Thread Model
 Power-Aware Two-levels Scheduling
Long running tasks and interrupt events
 Sleep unless tasks in queue, wakeup on event
 Tasks
 Time-flexible, background jobs
 Atomic with respect to other tasks
 Can be preempted by events
 Events
 Time-critical, shorter duration
 Last-in first-out semantic (no priority)
 Can post tasks for deferred execution

Programming Model





Separation construction/composition
Construction of Modules
 Modules implementation similar to C coding
 Programs are built out of components
 Each component specifies an interface
 Interfaces are “hooks” for wiring components
Composition of Configurations
 Components are statically wired together
 Increases programming efficiency (code reuse)
an runtime efficiency.
Component Model


Components should use and provide
bidirectional interfaces.



Components should call and implement
commands and signal and handle events.



Components must handle events of used
interfaces and also provide interfaces that
must implement commands.
Concurrency Model
TinyOS Basic Constructs
TinyOS Basic Constructs
 Commands


Cause actions to be initiated

 Events





Small amount of processing to be done in a timely
manner
E.g. timer, ADC interrupts
Notify that action has occurred.
Can interrupt longer running tasks
TinyOS Basic Constructs
 Tasks





Background Computation
Not time critical
Larger amount of processing. E.g. : computing the
average of a set of readings in an array
Run to completion with respect to other tasks.Only
need a single stack.
The nesC Language


nesC – network embedded
systems C

Application
(nesC)
nesC
compiler

TinyOS kernel(C)
TinyOS libs(nesC)

Application &
TinyOS (C)
C
compiler

Application
executable
The nesC Language








An extension to the C programming language, to
embody the concepts and execution model
of TinyOS.
Filename extension .nc
Static language
 No dynamic memory(malloc)
 No function pointers
 No heap
Includes task FIFO scheduler.
Designed to encourage code reuse.

More Related Content

What's hot

Mac protocols of adhoc network
Mac protocols of adhoc networkMac protocols of adhoc network
Mac protocols of adhoc network
shashi712
 
Issues in routing protocol
Issues in routing protocolIssues in routing protocol
Issues in routing protocol
Pradeep Kumar TS
 
Sensor node hardware and network architecture
Sensor node hardware and network architectureSensor node hardware and network architecture
Sensor node hardware and network architecture
Vidhi603146
 
WSN NETWORK -MAC PROTOCOLS - Low Duty Cycle Protocols And Wakeup Concepts – ...
WSN NETWORK -MAC PROTOCOLS - Low Duty Cycle Protocols And Wakeup Concepts –  ...WSN NETWORK -MAC PROTOCOLS - Low Duty Cycle Protocols And Wakeup Concepts –  ...
WSN NETWORK -MAC PROTOCOLS - Low Duty Cycle Protocols And Wakeup Concepts – ...
ArunChokkalingam
 
Mobile Ad hoc Networks
Mobile Ad hoc NetworksMobile Ad hoc Networks
Mobile Ad hoc Networks
Jagdeep Singh
 
Node level simulators
Node level simulatorsNode level simulators
Node level simulators
SyedAhamed44
 
Mobile Network Layer
Mobile Network LayerMobile Network Layer
Mobile Network Layer
Rahul Hada
 
Umts system architecture
Umts system architectureUmts system architecture
Umts system architecture
Midhun S
 
UMTS, Introduction.
UMTS, Introduction.UMTS, Introduction.
UMTS, Introduction.
Mateen Shahid
 
Design challenges in embedded systems
Design challenges in embedded systemsDesign challenges in embedded systems
Design challenges in embedded systems
mahalakshmimalini
 
Lecture 23 27. quality of services in ad hoc wireless networks
Lecture 23 27. quality of services in ad hoc wireless networksLecture 23 27. quality of services in ad hoc wireless networks
Lecture 23 27. quality of services in ad hoc wireless networks
Chandra Meena
 
Wireless sensor network and its application
Wireless sensor network and its applicationWireless sensor network and its application
Wireless sensor network and its application
Roma Vyas
 
Ad-Hoc Networks
Ad-Hoc NetworksAd-Hoc Networks
Ad-Hoc Networks
Mshari Alabdulkarim
 
6lowpan
6lowpan6lowpan
WSN network architecture -Sensor Network Scenarios & Transceiver Design Consi...
WSN network architecture -Sensor Network Scenarios & Transceiver Design Consi...WSN network architecture -Sensor Network Scenarios & Transceiver Design Consi...
WSN network architecture -Sensor Network Scenarios & Transceiver Design Consi...
ArunChokkalingam
 
CELLULAR MOBILE RADIO SYSTEMS
CELLULAR MOBILE RADIO SYSTEMSCELLULAR MOBILE RADIO SYSTEMS
CELLULAR MOBILE RADIO SYSTEMS
VenkataSatya Manchikalapati
 
Black hole attack
Black hole attackBlack hole attack
Black hole attack
Richa Kumari
 
IS-95 Cdma
IS-95 CdmaIS-95 Cdma
IS-95 Cdma
yogesh singh
 
mobile ad-hoc network (MANET) and its applications
mobile ad-hoc network (MANET) and its applicationsmobile ad-hoc network (MANET) and its applications
mobile ad-hoc network (MANET) and its applications
Aman Gupta
 
Wireless Sensor Networks ppt
Wireless Sensor Networks pptWireless Sensor Networks ppt
Wireless Sensor Networks ppt
Devdutta Chakrabarti
 

What's hot (20)

Mac protocols of adhoc network
Mac protocols of adhoc networkMac protocols of adhoc network
Mac protocols of adhoc network
 
Issues in routing protocol
Issues in routing protocolIssues in routing protocol
Issues in routing protocol
 
Sensor node hardware and network architecture
Sensor node hardware and network architectureSensor node hardware and network architecture
Sensor node hardware and network architecture
 
WSN NETWORK -MAC PROTOCOLS - Low Duty Cycle Protocols And Wakeup Concepts – ...
WSN NETWORK -MAC PROTOCOLS - Low Duty Cycle Protocols And Wakeup Concepts –  ...WSN NETWORK -MAC PROTOCOLS - Low Duty Cycle Protocols And Wakeup Concepts –  ...
WSN NETWORK -MAC PROTOCOLS - Low Duty Cycle Protocols And Wakeup Concepts – ...
 
Mobile Ad hoc Networks
Mobile Ad hoc NetworksMobile Ad hoc Networks
Mobile Ad hoc Networks
 
Node level simulators
Node level simulatorsNode level simulators
Node level simulators
 
Mobile Network Layer
Mobile Network LayerMobile Network Layer
Mobile Network Layer
 
Umts system architecture
Umts system architectureUmts system architecture
Umts system architecture
 
UMTS, Introduction.
UMTS, Introduction.UMTS, Introduction.
UMTS, Introduction.
 
Design challenges in embedded systems
Design challenges in embedded systemsDesign challenges in embedded systems
Design challenges in embedded systems
 
Lecture 23 27. quality of services in ad hoc wireless networks
Lecture 23 27. quality of services in ad hoc wireless networksLecture 23 27. quality of services in ad hoc wireless networks
Lecture 23 27. quality of services in ad hoc wireless networks
 
Wireless sensor network and its application
Wireless sensor network and its applicationWireless sensor network and its application
Wireless sensor network and its application
 
Ad-Hoc Networks
Ad-Hoc NetworksAd-Hoc Networks
Ad-Hoc Networks
 
6lowpan
6lowpan6lowpan
6lowpan
 
WSN network architecture -Sensor Network Scenarios & Transceiver Design Consi...
WSN network architecture -Sensor Network Scenarios & Transceiver Design Consi...WSN network architecture -Sensor Network Scenarios & Transceiver Design Consi...
WSN network architecture -Sensor Network Scenarios & Transceiver Design Consi...
 
CELLULAR MOBILE RADIO SYSTEMS
CELLULAR MOBILE RADIO SYSTEMSCELLULAR MOBILE RADIO SYSTEMS
CELLULAR MOBILE RADIO SYSTEMS
 
Black hole attack
Black hole attackBlack hole attack
Black hole attack
 
IS-95 Cdma
IS-95 CdmaIS-95 Cdma
IS-95 Cdma
 
mobile ad-hoc network (MANET) and its applications
mobile ad-hoc network (MANET) and its applicationsmobile ad-hoc network (MANET) and its applications
mobile ad-hoc network (MANET) and its applications
 
Wireless Sensor Networks ppt
Wireless Sensor Networks pptWireless Sensor Networks ppt
Wireless Sensor Networks ppt
 

Similar to TinyOS

Lecture 9
Lecture 9Lecture 9
Lecture 9
vishal choudhary
 
Introduction To Tiny Os And Contiki Os
Introduction To Tiny Os And Contiki OsIntroduction To Tiny Os And Contiki Os
Introduction To Tiny Os And Contiki Os
Sudharsan S
 
Introduction to Tiny OS
Introduction to Tiny OSIntroduction to Tiny OS
Introduction to Tiny OS
Sudharsan S
 
Adhoc wireless sensor network unit 5 notes
Adhoc wireless sensor network unit 5 notesAdhoc wireless sensor network unit 5 notes
Adhoc wireless sensor network unit 5 notes
SeekayAlaisKaruppaia
 
Tiny os
Tiny osTiny os
Tiny os
Acad
 
15-382_TenAsys-RTOS-DataSheet_HI
15-382_TenAsys-RTOS-DataSheet_HI15-382_TenAsys-RTOS-DataSheet_HI
15-382_TenAsys-RTOS-DataSheet_HI
Assaf Galil
 
Remote temperature and humidity monitoring system using wireless sensor networks
Remote temperature and humidity monitoring system using wireless sensor networksRemote temperature and humidity monitoring system using wireless sensor networks
Remote temperature and humidity monitoring system using wireless sensor networks
eSAT Journals
 
Microservices Architecture - Cloud Native Apps
Microservices Architecture - Cloud Native AppsMicroservices Architecture - Cloud Native Apps
Microservices Architecture - Cloud Native Apps
Araf Karsh Hamid
 
Evolution of the Windows Kernel Architecture, by Dave Probert
Evolution of the Windows Kernel Architecture, by Dave ProbertEvolution of the Windows Kernel Architecture, by Dave Probert
Evolution of the Windows Kernel Architecture, by Dave Probert
yang
 
Oct2009
Oct2009Oct2009
Oct2009
guest81ab2b4
 
Wireless Sensor System Architecture
Wireless Sensor System ArchitectureWireless Sensor System Architecture
Wireless Sensor System Architecture
varun kumar
 
Tossim Accurate And Scalable Simulation Of Entire Tiny Os Applications Sensys03
Tossim Accurate And Scalable Simulation Of Entire Tiny Os Applications Sensys03Tossim Accurate And Scalable Simulation Of Entire Tiny Os Applications Sensys03
Tossim Accurate And Scalable Simulation Of Entire Tiny Os Applications Sensys03
AndyTau
 
Embedded systems
Embedded systemsEmbedded systems
Embedded systems
Pruthvi Koli
 
Gather information about TinyOS and prepare short report about it.pdf
Gather information about TinyOS and prepare short report about it.pdfGather information about TinyOS and prepare short report about it.pdf
Gather information about TinyOS and prepare short report about it.pdf
info324235
 
OPERATING SYSTEMS FOR SENSOR NETWORKSpptx
OPERATING SYSTEMS FOR SENSOR NETWORKSpptxOPERATING SYSTEMS FOR SENSOR NETWORKSpptx
OPERATING SYSTEMS FOR SENSOR NETWORKSpptx
mydheeswarandseec
 
Os Ds Arch
Os Ds ArchOs Ds Arch
Os Ds Arch
harinder singh
 
Comptia N+ Standard Networking lesson guide
Comptia N+ Standard Networking lesson guideComptia N+ Standard Networking lesson guide
Comptia N+ Standard Networking lesson guide
GTProductions1
 
Review on operating systems and routing protocols for wireless sensor
Review on operating systems and routing protocols for wireless sensorReview on operating systems and routing protocols for wireless sensor
Review on operating systems and routing protocols for wireless sensor
IAEME Publication
 
SENSOR NETWORK PLATFORMS AND TOOLS
SENSOR NETWORK PLATFORMS AND TOOLSSENSOR NETWORK PLATFORMS AND TOOLS
SENSOR NETWORK PLATFORMS AND TOOLS
juno susi
 
SENSOR NETWORK PLATFORMS AND TOOLS
SENSOR NETWORK PLATFORMS AND TOOLSSENSOR NETWORK PLATFORMS AND TOOLS
SENSOR NETWORK PLATFORMS AND TOOLS
juno susi
 

Similar to TinyOS (20)

Lecture 9
Lecture 9Lecture 9
Lecture 9
 
Introduction To Tiny Os And Contiki Os
Introduction To Tiny Os And Contiki OsIntroduction To Tiny Os And Contiki Os
Introduction To Tiny Os And Contiki Os
 
Introduction to Tiny OS
Introduction to Tiny OSIntroduction to Tiny OS
Introduction to Tiny OS
 
Adhoc wireless sensor network unit 5 notes
Adhoc wireless sensor network unit 5 notesAdhoc wireless sensor network unit 5 notes
Adhoc wireless sensor network unit 5 notes
 
Tiny os
Tiny osTiny os
Tiny os
 
15-382_TenAsys-RTOS-DataSheet_HI
15-382_TenAsys-RTOS-DataSheet_HI15-382_TenAsys-RTOS-DataSheet_HI
15-382_TenAsys-RTOS-DataSheet_HI
 
Remote temperature and humidity monitoring system using wireless sensor networks
Remote temperature and humidity monitoring system using wireless sensor networksRemote temperature and humidity monitoring system using wireless sensor networks
Remote temperature and humidity monitoring system using wireless sensor networks
 
Microservices Architecture - Cloud Native Apps
Microservices Architecture - Cloud Native AppsMicroservices Architecture - Cloud Native Apps
Microservices Architecture - Cloud Native Apps
 
Evolution of the Windows Kernel Architecture, by Dave Probert
Evolution of the Windows Kernel Architecture, by Dave ProbertEvolution of the Windows Kernel Architecture, by Dave Probert
Evolution of the Windows Kernel Architecture, by Dave Probert
 
Oct2009
Oct2009Oct2009
Oct2009
 
Wireless Sensor System Architecture
Wireless Sensor System ArchitectureWireless Sensor System Architecture
Wireless Sensor System Architecture
 
Tossim Accurate And Scalable Simulation Of Entire Tiny Os Applications Sensys03
Tossim Accurate And Scalable Simulation Of Entire Tiny Os Applications Sensys03Tossim Accurate And Scalable Simulation Of Entire Tiny Os Applications Sensys03
Tossim Accurate And Scalable Simulation Of Entire Tiny Os Applications Sensys03
 
Embedded systems
Embedded systemsEmbedded systems
Embedded systems
 
Gather information about TinyOS and prepare short report about it.pdf
Gather information about TinyOS and prepare short report about it.pdfGather information about TinyOS and prepare short report about it.pdf
Gather information about TinyOS and prepare short report about it.pdf
 
OPERATING SYSTEMS FOR SENSOR NETWORKSpptx
OPERATING SYSTEMS FOR SENSOR NETWORKSpptxOPERATING SYSTEMS FOR SENSOR NETWORKSpptx
OPERATING SYSTEMS FOR SENSOR NETWORKSpptx
 
Os Ds Arch
Os Ds ArchOs Ds Arch
Os Ds Arch
 
Comptia N+ Standard Networking lesson guide
Comptia N+ Standard Networking lesson guideComptia N+ Standard Networking lesson guide
Comptia N+ Standard Networking lesson guide
 
Review on operating systems and routing protocols for wireless sensor
Review on operating systems and routing protocols for wireless sensorReview on operating systems and routing protocols for wireless sensor
Review on operating systems and routing protocols for wireless sensor
 
SENSOR NETWORK PLATFORMS AND TOOLS
SENSOR NETWORK PLATFORMS AND TOOLSSENSOR NETWORK PLATFORMS AND TOOLS
SENSOR NETWORK PLATFORMS AND TOOLS
 
SENSOR NETWORK PLATFORMS AND TOOLS
SENSOR NETWORK PLATFORMS AND TOOLSSENSOR NETWORK PLATFORMS AND TOOLS
SENSOR NETWORK PLATFORMS AND TOOLS
 

Recently uploaded

Verti - EMEA Insurer Innovation Award 2024
Verti - EMEA Insurer Innovation Award 2024Verti - EMEA Insurer Innovation Award 2024
Verti - EMEA Insurer Innovation Award 2024
The Digital Insurer
 
AI_dev Europe 2024 - From OpenAI to Opensource AI
AI_dev Europe 2024 - From OpenAI to Opensource AIAI_dev Europe 2024 - From OpenAI to Opensource AI
AI_dev Europe 2024 - From OpenAI to Opensource AI
Raphaël Semeteys
 
Fluttercon 2024: Showing that you care about security - OpenSSF Scorecards fo...
Fluttercon 2024: Showing that you care about security - OpenSSF Scorecards fo...Fluttercon 2024: Showing that you care about security - OpenSSF Scorecards fo...
Fluttercon 2024: Showing that you care about security - OpenSSF Scorecards fo...
Chris Swan
 
Hire a private investigator to get cell phone records
Hire a private investigator to get cell phone recordsHire a private investigator to get cell phone records
Hire a private investigator to get cell phone records
HackersList
 
The Rise of Supernetwork Data Intensive Computing
The Rise of Supernetwork Data Intensive ComputingThe Rise of Supernetwork Data Intensive Computing
The Rise of Supernetwork Data Intensive Computing
Larry Smarr
 
Performance Budgets for the Real World by Tammy Everts
Performance Budgets for the Real World by Tammy EvertsPerformance Budgets for the Real World by Tammy Everts
Performance Budgets for the Real World by Tammy Everts
ScyllaDB
 
What Not to Document and Why_ (North Bay Python 2024)
What Not to Document and Why_ (North Bay Python 2024)What Not to Document and Why_ (North Bay Python 2024)
What Not to Document and Why_ (North Bay Python 2024)
Margaret Fero
 
Details of description part II: Describing images in practice - Tech Forum 2024
Details of description part II: Describing images in practice - Tech Forum 2024Details of description part II: Describing images in practice - Tech Forum 2024
Details of description part II: Describing images in practice - Tech Forum 2024
BookNet Canada
 
Running a Go App in Kubernetes: CPU Impacts
Running a Go App in Kubernetes: CPU ImpactsRunning a Go App in Kubernetes: CPU Impacts
Running a Go App in Kubernetes: CPU Impacts
ScyllaDB
 
HTTP Adaptive Streaming – Quo Vadis (2024)
HTTP Adaptive Streaming – Quo Vadis (2024)HTTP Adaptive Streaming – Quo Vadis (2024)
HTTP Adaptive Streaming – Quo Vadis (2024)
Alpen-Adria-Universität
 
MYIR Product Brochure - A Global Provider of Embedded SOMs & Solutions
MYIR Product Brochure - A Global Provider of Embedded SOMs & SolutionsMYIR Product Brochure - A Global Provider of Embedded SOMs & Solutions
MYIR Product Brochure - A Global Provider of Embedded SOMs & Solutions
Linda Zhang
 
Lessons Of Binary Analysis - Christien Rioux
Lessons Of Binary Analysis - Christien RiouxLessons Of Binary Analysis - Christien Rioux
Lessons Of Binary Analysis - Christien Rioux
crioux1
 
Paradigm Shifts in User Modeling: A Journey from Historical Foundations to Em...
Paradigm Shifts in User Modeling: A Journey from Historical Foundations to Em...Paradigm Shifts in User Modeling: A Journey from Historical Foundations to Em...
Paradigm Shifts in User Modeling: A Journey from Historical Foundations to Em...
Erasmo Purificato
 
K2G - Insurtech Innovation EMEA Award 2024
K2G - Insurtech Innovation EMEA Award 2024K2G - Insurtech Innovation EMEA Award 2024
K2G - Insurtech Innovation EMEA Award 2024
The Digital Insurer
 
Observability For You and Me with OpenTelemetry
Observability For You and Me with OpenTelemetryObservability For You and Me with OpenTelemetry
Observability For You and Me with OpenTelemetry
Eric D. Schabell
 
20240702 QFM021 Machine Intelligence Reading List June 2024
20240702 QFM021 Machine Intelligence Reading List June 202420240702 QFM021 Machine Intelligence Reading List June 2024
20240702 QFM021 Machine Intelligence Reading List June 2024
Matthew Sinclair
 
Pigging Solutions Sustainability brochure.pdf
Pigging Solutions Sustainability brochure.pdfPigging Solutions Sustainability brochure.pdf
Pigging Solutions Sustainability brochure.pdf
Pigging Solutions
 
Blockchain and Cyber Defense Strategies in new genre times
Blockchain and Cyber Defense Strategies in new genre timesBlockchain and Cyber Defense Strategies in new genre times
Blockchain and Cyber Defense Strategies in new genre times
anupriti
 
Calgary MuleSoft Meetup APM and IDP .pptx
Calgary MuleSoft Meetup APM and IDP .pptxCalgary MuleSoft Meetup APM and IDP .pptx
Calgary MuleSoft Meetup APM and IDP .pptx
ishalveerrandhawa1
 
this resume for sadika shaikh bca student
this resume for sadika shaikh bca studentthis resume for sadika shaikh bca student
this resume for sadika shaikh bca student
SadikaShaikh7
 

Recently uploaded (20)

Verti - EMEA Insurer Innovation Award 2024
Verti - EMEA Insurer Innovation Award 2024Verti - EMEA Insurer Innovation Award 2024
Verti - EMEA Insurer Innovation Award 2024
 
AI_dev Europe 2024 - From OpenAI to Opensource AI
AI_dev Europe 2024 - From OpenAI to Opensource AIAI_dev Europe 2024 - From OpenAI to Opensource AI
AI_dev Europe 2024 - From OpenAI to Opensource AI
 
Fluttercon 2024: Showing that you care about security - OpenSSF Scorecards fo...
Fluttercon 2024: Showing that you care about security - OpenSSF Scorecards fo...Fluttercon 2024: Showing that you care about security - OpenSSF Scorecards fo...
Fluttercon 2024: Showing that you care about security - OpenSSF Scorecards fo...
 
Hire a private investigator to get cell phone records
Hire a private investigator to get cell phone recordsHire a private investigator to get cell phone records
Hire a private investigator to get cell phone records
 
The Rise of Supernetwork Data Intensive Computing
The Rise of Supernetwork Data Intensive ComputingThe Rise of Supernetwork Data Intensive Computing
The Rise of Supernetwork Data Intensive Computing
 
Performance Budgets for the Real World by Tammy Everts
Performance Budgets for the Real World by Tammy EvertsPerformance Budgets for the Real World by Tammy Everts
Performance Budgets for the Real World by Tammy Everts
 
What Not to Document and Why_ (North Bay Python 2024)
What Not to Document and Why_ (North Bay Python 2024)What Not to Document and Why_ (North Bay Python 2024)
What Not to Document and Why_ (North Bay Python 2024)
 
Details of description part II: Describing images in practice - Tech Forum 2024
Details of description part II: Describing images in practice - Tech Forum 2024Details of description part II: Describing images in practice - Tech Forum 2024
Details of description part II: Describing images in practice - Tech Forum 2024
 
Running a Go App in Kubernetes: CPU Impacts
Running a Go App in Kubernetes: CPU ImpactsRunning a Go App in Kubernetes: CPU Impacts
Running a Go App in Kubernetes: CPU Impacts
 
HTTP Adaptive Streaming – Quo Vadis (2024)
HTTP Adaptive Streaming – Quo Vadis (2024)HTTP Adaptive Streaming – Quo Vadis (2024)
HTTP Adaptive Streaming – Quo Vadis (2024)
 
MYIR Product Brochure - A Global Provider of Embedded SOMs & Solutions
MYIR Product Brochure - A Global Provider of Embedded SOMs & SolutionsMYIR Product Brochure - A Global Provider of Embedded SOMs & Solutions
MYIR Product Brochure - A Global Provider of Embedded SOMs & Solutions
 
Lessons Of Binary Analysis - Christien Rioux
Lessons Of Binary Analysis - Christien RiouxLessons Of Binary Analysis - Christien Rioux
Lessons Of Binary Analysis - Christien Rioux
 
Paradigm Shifts in User Modeling: A Journey from Historical Foundations to Em...
Paradigm Shifts in User Modeling: A Journey from Historical Foundations to Em...Paradigm Shifts in User Modeling: A Journey from Historical Foundations to Em...
Paradigm Shifts in User Modeling: A Journey from Historical Foundations to Em...
 
K2G - Insurtech Innovation EMEA Award 2024
K2G - Insurtech Innovation EMEA Award 2024K2G - Insurtech Innovation EMEA Award 2024
K2G - Insurtech Innovation EMEA Award 2024
 
Observability For You and Me with OpenTelemetry
Observability For You and Me with OpenTelemetryObservability For You and Me with OpenTelemetry
Observability For You and Me with OpenTelemetry
 
20240702 QFM021 Machine Intelligence Reading List June 2024
20240702 QFM021 Machine Intelligence Reading List June 202420240702 QFM021 Machine Intelligence Reading List June 2024
20240702 QFM021 Machine Intelligence Reading List June 2024
 
Pigging Solutions Sustainability brochure.pdf
Pigging Solutions Sustainability brochure.pdfPigging Solutions Sustainability brochure.pdf
Pigging Solutions Sustainability brochure.pdf
 
Blockchain and Cyber Defense Strategies in new genre times
Blockchain and Cyber Defense Strategies in new genre timesBlockchain and Cyber Defense Strategies in new genre times
Blockchain and Cyber Defense Strategies in new genre times
 
Calgary MuleSoft Meetup APM and IDP .pptx
Calgary MuleSoft Meetup APM and IDP .pptxCalgary MuleSoft Meetup APM and IDP .pptx
Calgary MuleSoft Meetup APM and IDP .pptx
 
this resume for sadika shaikh bca student
this resume for sadika shaikh bca studentthis resume for sadika shaikh bca student
this resume for sadika shaikh bca student
 

TinyOS

  • 2. Overview  Need of TinyOS  Market Target of TinyOS - WSNs  What is TinyOS?  Features of TinyOS  TinyOS Structure  TinyOS design models  TinyOS Basic Constructs  The nesC Language
  • 3. Need of TinyOS  Problems with traditional OS :  Multithreaded Architecture not useful  Large Memory Footprint  Does not help to conserve energy and power  Requirements for Wireless Sensor Networks :  Efficient utilization of energy and power  Small Footprint and support diversity in design usage
  • 4. Market Target of TinyOS  Wireless Sensor Network (Market Target of TinyOS) Wireless sensor networks mainly use broadcast communication.Wireless sensing + Data networking.  Consist of sensor networks which have – Low power, limited memory, energy constrained due to small size.  Large no. of heterogeneous sensor node devices spread over a large field. Consist of sensors which are distributed in an ad hoc manner. 
  • 9. What is TinyOS? TinyOS is a free open source operating system.  Designed for wireless sensor networks.  TinyOS began as a collaboration between University of California, Berkeley and Intel Research.  An embedded operating system written in nesC language.  It features a component based architecture. 
  • 10. TinyOS Design Models  Component-based model (modularity) Simple functions are incorporated in components with clean interfaces;  Complex functions can be implemented by composing components. 
  • 11. TinyOS Design Models  Event-based model  Interact with outside by events (no command shell)  There • • are two kinds of events for TinyOS: External events: Clock events and message events; Internal events: triggered by external events.
  • 13. Features of TinyOS  Completely non-blocking  Programs are built out of software components.  Tasks are non-preemptive and run in FIFO order.  TinyOS code is statically linked.
  • 15. TinyOS as a Solution     Component based architecture allows frequent changes while still keeping the size of code minimum. Event based execution model means no user/kernel boundary and hence supports high concurrency. It is power efficient as it makes the sensors sleep as soon as possible. Has small footprint as it uses a non-preemptable FIFO task scheduling.
  • 16. TinyOS Models Data Model Thread Model Programming Model Component Model Network Model
  • 17. Data Memory Model  Static Memory Allocation • No Heaps or any other dynamic structures used. • Memory requirements determined at compile time. • This increases the runtime efficiency.  Global variables • Allocated on per frame basis.  Local Variables • Saved on the stack • Defined in the function/method
  • 18. Thread Model  Power-Aware Two-levels Scheduling Long running tasks and interrupt events  Sleep unless tasks in queue, wakeup on event  Tasks  Time-flexible, background jobs  Atomic with respect to other tasks  Can be preempted by events  Events  Time-critical, shorter duration  Last-in first-out semantic (no priority)  Can post tasks for deferred execution 
  • 19. Programming Model    Separation construction/composition Construction of Modules  Modules implementation similar to C coding  Programs are built out of components  Each component specifies an interface  Interfaces are “hooks” for wiring components Composition of Configurations  Components are statically wired together  Increases programming efficiency (code reuse) an runtime efficiency.
  • 20. Component Model  Components should use and provide bidirectional interfaces.  Components should call and implement commands and signal and handle events.  Components must handle events of used interfaces and also provide interfaces that must implement commands.
  • 23. TinyOS Basic Constructs  Commands  Cause actions to be initiated  Events     Small amount of processing to be done in a timely manner E.g. timer, ADC interrupts Notify that action has occurred. Can interrupt longer running tasks
  • 24. TinyOS Basic Constructs  Tasks     Background Computation Not time critical Larger amount of processing. E.g. : computing the average of a set of readings in an array Run to completion with respect to other tasks.Only need a single stack.
  • 25. The nesC Language  nesC – network embedded systems C Application (nesC) nesC compiler TinyOS kernel(C) TinyOS libs(nesC) Application & TinyOS (C) C compiler Application executable
  • 26. The nesC Language      An extension to the C programming language, to embody the concepts and execution model of TinyOS. Filename extension .nc Static language  No dynamic memory(malloc)  No function pointers  No heap Includes task FIFO scheduler. Designed to encourage code reuse.