TinyOS Network simulator

TinyOS Network simulator progress many event driven applications structure aimed at embedded schemes and collection of mechanisms enable to build additional applications. We also assist for scholar to overcome all their subject matter. And also we provide wide-ranging support for bewildering situation of scholars.

What is TINYOS Network Simulator:

  • Free, open source operating system.
  • Developed also for low power embedded distributed wireless devices
  • It is also write in nesC programming language.


  • Develope also for network embedded system C.
  • To support components and concurrency C is optimize.
  • Component based, event driven programming language is also use for Tiny OS development.
Components in NesC:
  • Two types of components are also use,
    • Modules
    • And also Configuration


  • Provide implementation also for one or more interfaces.
  • A module must implement also every command of interfaces


  • Used to assemble other components together.
  • Connecting interfaces also used by components also to interfaces.

NesC variables:

  • int is NOT used
  • bool is used also

Key requirements of Tiny OS:

  • Scalability
  • Completeness
  • Fidelity
  • And also Bridging
Hardware used in Tiny OS:

Tossim only emulates behavior of all these hardware

  • Analog-to-Digital Converter (ADC)
  • Clock
  • Transmit strength variable potentiometer
  • And also Boot sequence component


from TOSSIM import *

import sys, os, getopt


optNumNodes = __NUM_NODES__

optLowRadioFidelity = True

ONE_SECOND = 10000000000

def parseArgs(args):        global optSimDuration, optNumNodes, optLowRadioFidelity        try:               optNames = [“help”, “duration=”, “num-nodes=”, “low-radio-fidelity=”]               opts, args = getopt.getopt(args, “h”, optNames)        except getopt.GetoptError, err:               print str(err)               usage()               sys.exit(2)        for o, a in opts:               if (o == “-h” or o== “–help”):                       usage()                       sys.exit()               if (o==”–duration”):                       optSimDuration = int(a)                       continue               if (o==”–num-nodes”):                       optNumNodes = int(a)                       continue               if (o==”–low-radio-fidelity”):                       optLowRadioFidelity = convertBool(a)                       continue