engine employs the JSON encoding method (Crock-
ford, 2006) for encoding data in event’s message.
To illustrate how the JSON message looks like,
let us examine the simple frame in Fig. 5. From
the frame description in Fig. 6, the STDL engine
knows how to extract the necessary fields from the
raw frame. It also knows how to add the semantics to
the extracted data to compose the message to include
in the event. Consequently, by combining this infor-
mation, the engine creates the following JSON object
message:
{”light temperature”:[{”senderId”: 2, ”light”:50,
”temperature”:64} ]}.
It is worth noting that, in this case, an array of objects
is used even though there is only one object. The rea-
son for this is that we can use only one message for-
mat for all events raised by STDL engine.
5 CONCLUSIONS
Interoperating between WSNs and application envi-
ronments is an undeniable demand. The architecture
proposed in this paper allows for the use of integration
infrastructure with diverse types of sensor networks.
By using STDL, developers only need to describe the
data frame structures when applying the framework
to a new sensor network. The event-based approach
also makes it very easy to add new components to the
framework. In addition, exposing data and function-
alities as web services greatly facilitates the use of
WSNs in mash up applications that use them for mon-
itoring, controlling, and visualizing real world data.
All of the proposed methods were implemented and
are running in our test platforms. As a future work, we
will try expand the interface for sending commands to
the sensor network, in order to make it easier to find
and understand which commands the WSNs offers.
ACKNOWLEDGEMENTS
The work presented in this paper was partially fi-
nanced by the iCIS project (grant CENTRO-07-ST24-
FEDER-002003).
REFERENCES
Aberer, K., Hauswirth, M., and Salehi, A. (2007). Infras-
tructure for data processing in large-scale intercon-
nected sensor networks. In Mobile Data Management,
2007 International Conference on, pages 198–205.
Bray, T., Paoli, J., Sperberg-McQueen, C. M., Maler,
E., Yergeau, F., and Cowan, J. (2006). Extensible
markup language (xml) 1.1. http://www.w3.org/TR/
2006/REC-xml11-20060816/.
Crockford, D. (2006). The application/json media type for
javascript object notation (json). Internet RFC 4627.
http://www.ietf.org/rfc/rfc4627.txt.
Dawson-Haggerty, S., Jiang, X., Tolle, G., Ortiz, J., and
Culler, D. (2010). smap: a simple measurement and
actuation profile for physical information. In Proceed-
ings of the 8th ACM Conference on Embedded Net-
worked Sensor Systems, SenSys ’10, pages 197–210,
New York, NY, USA. ACM.
Dunkels, A. (2003). Full tcp/ip for 8-bit architectures. In
Proceedings of the 1st international conference on
Mobile systems, applications and services, MobiSys
’03, pages 85–98, New York, NY, USA. ACM.
Eneida, I. (2012). Industrial wireless sensor networks.
http://www.eneida.pt/produtos/.
Grosky, W., Kansal, A., Nath, S., Liu, J., and Zhao, F.
(2007). Senseweb: An infrastructure for shared sens-
ing. MultiMedia, IEEE, 14(4):8–13.
Guinard, D. (2009). Towards the web of things: Web
mashups for embedded devices. In In MEM 2009 in
Proceedings of WWW 2009. ACM.
Hui, J. and Culler, D. (2008). Extending ip to low-power,
wireless personal area networks. Internet Computing,
IEEE, 12(4):37–45.
NIST. (2009). Ieee 1451 smart transducer interface stan-
dard. The National Institute of Standards and Tech-
nology. http://www.nist.gov/el/isd/ieee/ieee1451.cfm.
OGC (2013). Sensor web enablement (swe). Open Geospa-
tial Consortium. http://www.opengeospatial.org/ogc/
markets-technologies/swe.
OReilly, T. (2012). Ogc puck protocol standard
version 1.4. https://portal.opengeospatial.org/files/
?artifact id=47604.
Priyantha, B., Kansal, A., Goraczko, M., and Zhao, F.
(2008). Tiny web services for sensor device inter-
operability. In Proceedings of the 7th international
conference on Information processing in sensor net-
works, IPSN ’08, pages 567–568, Washington, DC,
USA. IEEE Computer Society.
Richardson, L. and Ruby, S. (2007). RESTful Web Services
- Web services for the real world. O’Reilly Media.
Shelby, Z., Hartke, K., and Bormann, C. (2013). Con-
strained application protocol (coap) draft-ietf-
core-coap-18. https://datatracker.ietf.org/doc/
draft-ietf-core-coap/.
Shu, L., Cho, J., Lee, S., Hauswirth, M., and Zhang, Z.
(2007). Vip bridge: Leading ubiquitous sensor net-
works to the next generation. Journal of Internet Tech-
nology (JIT), 8(3):1–13.
Tolle, G. (2010). Embedded binary http (ebhttp). IETF
draft-tolle-core-ebhttp-00. http://tools.ietf.org/html/
draft-tolle-core-ebhttp-00.
Tran, T., Nunes, D., Gomes, A., and S Silva, J. (2012).
An adaptive model for exposing wsn as a service plat-
form. In In Proceeding of INForum 2012 conference.
SENSORNETS2014-InternationalConferenceonSensorNetworks
102