International Journal of Distributed Sensor Networks (Apr 2012)

Logic Macroprogramming for Wireless Sensor Networks

  • Supasate Choochaisri,
  • Nuttanart Pornprasitsakul,
  • Chalermek Intanagonwiwat

DOI
https://doi.org/10.1155/2012/171738
Journal volume & issue
Vol. 8

Abstract

Read online

It is notoriously difficult and tedious to program wireless sensor networks (WSNs). To simplify WSN programming, we propose Sense2P, a logic macroprogramming system for abstracting, programming, and using WSNs as globally deductive databases. Unlike macroprograms in previous works, our logic macroprograms can be described declaratively and imperatively. In Sense2P, logic macroprogrammers can easily express a recursive program or query that is unsupported in existing database abstractions for WSNs. We have evaluated Sense2P analytically and experimentally. Our evaluation result indicates that Sense2P successfully realizes the logic macroprogramming concept while consuming minimal energy as well as maintaining completeness and soundness of the answers.