Skip to Content
Fundamentals of Sensor Network Programming
book

Fundamentals of Sensor Network Programming

by S. Sitharama Iyengar, Nandan Parameshwaran, Vir V. Phoha, Narayanaswamy Balakrishnan, Chuka D. Okoye
December 2010
Beginner to intermediate
344 pages
7h 37m
English
Wiley-IEEE Press
Content preview from Fundamentals of Sensor Network Programming

Chapter 6

Programming in NesC

Low-level programming is good for the programmer’s soul.

—John Carmack

6.1 NesC PROGRAMMING

Because of the highly resource-constrained nature and unpredictability associated with wireless sensor networks, traditional programming techniques cannot be used in the development of programs intended for use in these networks. Unlike conventional programming techniques in which most resources are available locally and remote resources could be accessed through persistent connections, sensor applications have to contend with several factors that may lead to degradation in performance of the sensor network, ranging from energy depletion, to limited or no connectivity, to physical damage of the sensor hardware in hostile environments. In TinyOS-based sensor networks a C-based language called nesC has been developed with several constructs built in to mitigate some of these undesirable properties of sensor networks. NesC shares a similar syntax with C but runs only on the TinyOS operating system. The language is simple so that it can be used for programming embedded systems, wireless sensor nodes, and similar applications, where efficiency in terms of speed and memory is of utmost importance. The nesC language has features borrowed from computer hardware such as the notion of components and subcomponents, each interacting with the other via clearly defined interfaces, and the concept of split-phase operation. We will present concepts in the nesC language using ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Building Wireless Sensor Networks

Building Wireless Sensor Networks

Nandini Mukherjee, Sarmistha Neogy, Sarbani Roy
Wireless Sensor Networks

Wireless Sensor Networks

Feng Zhao, Leonidas Guibas
Algorithms for Communications Systems and their Applications, 2nd Edition

Algorithms for Communications Systems and their Applications, 2nd Edition

Nevio Benvenuto, Giovanni Cherubini, Stefano Tomasin

Publisher Resources

ISBN: 9781118099490Purchase Link