Documentos de Académico
Documentos de Profesional
Documentos de Cultura
Abstract—The web-services for tele-measurement are In REST [1], simplified demand-response mechanisms are
approached by REST (Representational State Transfer) as the built to create-read-update-delete (”CRUD”) appropriate
unified representation of states-transition-events that enables a resources on the Internet (fig.1).
true integration of resource management in a distributed These actions represented in HTTP also envisage another
environment by simplifying the algorithmic state machines
simplification (of securing measures - such as the restriction
associated with both services and behavioral patterns of
instruments. Each of the sensors we used got an own ESP8266- on the number of ports that must be opened at instruments in-
based Wi-Fi micro-system to publish its specific values in the and-out).
Cloud. Forwarding from the public address of the router to the
Intranet address is monitored by a National Instruments Web-
Shared Variables server. Data produced by the sensors, II. TRANSMISSION OF DATA FROM INTELLIGENT SENSORS
accompanied by their presentation methods are taken-over by a
web-based "thin client", a dynamic and adaptive content-to- For the transmission of tele-measurements to the Cloud we
terminal "Control Board" developed to manage and connect the have chosen ESP8266, produced by Espressif Systems, a cost-
tele-measurement services, using a graphical user interface, with effective and very popular Wi-Fi chip with a full TCP/IP stack
simple browser access and without the need to install additional integrated, governed by an embedded 32-bit RISC micro-
third party modules and plugins. controller -Tensilica Xtensa L106 operating at 80 MHz, based
Keywords— REST, ESP8266 Wi-Fi tag, direct hotspot on instructions stored in 64 KiB of RAM. Programs can be
publishing, web-shared variables, virtual instru-mentation, content- retrieved from an external flash memory of up to 16 MiB via
to-terminal adaption QSPI.
The radio part has an IEEE 802.11b Wi-Fi b/g/n interface,
I. INTRODUCTION
with a T/R switch and an integrated "balun" antenna, LNA for
receiving, respectively a power amplifier and impedance
In instrumental IT (represented in this paper by
adapter for transmitting.
implementations including virtual tools) it has begun a
What was decisive in our choice of ESP8266 is an
thoroughly transposition of all connections (not only in the
integrated 10-bit ADC where any sensor can be connected.
Internet but also locally within the virtual instruments) and all
For our demonstrator we have used a temperature sensor
exchanges of data and commands as simple HTTP messages.
LM35 (Texas Instruments).
Thus, one and the same transaction structure and the same
In order to keep the advantage of miniaturization, restricted
service logic can be deployed (including the automation of
sets of configurations and connections recommended by the
Cloud integration) independent of distance and / or position.
producer of ESP8266 are grouped into a series of modules –
The "instantiation" decision to allocate resources,
we have chosen module 12 that has a direct access to the
including resource management as a service, can be
analog-to-digital converter able to acquire data from a wide
"stateless", "connectionless", "serverless", with new
range of sensors (fig. 2).
optimization criteria, such as the efficiency of costs and,
nevertheless, security.
The Cloud computing infrastructure is based on the Citrix IV. ARCHITECTURE OF THE PROPOSED WEB-SERVICES SYSTEM
XenServer hypervisor running on a consolidated server farm
After the Cloud collection of tele-measured data, we have to
of 6 Dell Power Edge 1950 blades. Remote access is based on
discuss the main aspects of our web-services solution.
the SoftEther VPN solution and the Intranet is based on Cisco
Gigabit router. The National Instruments (NI) software bundle
(centered on LabVIEW) is running on a virtual host on the A.Benefits of presenting the data via RESTful services
XenServer. To enable public access to the server, the
necessary ports (“in-coming” and “out-going”) are forwarded RESTful presentation of data opens new opportunities for
from the public host to the LabVIEW Windows virtual the easy management and maintenance of the sensors
machine. resources [5].
In accordance with the REST concept, data produced by the sensor. The next step is to transform these temperatures in
sensors is organized in resources that can be uniquely user-relevant information.
identified via URI (Uniform Resource Identifiers). Thus, in Here the data management layer comes into play.
order to retrieve a value - measurement (+ time stamp) or This independent layer reads the temperatures (usually
status (often needed to validate the sensor data) that is created “polling them with a constant sampling frequency), stores
by a sensor installed anywhere in the world - it is enough to them and thereafter, creates relevant reports: which part of the
know its URI. Having the address of a sensor, it is only needed room is cooler, where it happens a heat leakage etc.
a simple Web Browser in order to retrieve its data via a GET: It also can send alarms to the user: e.g., if the temperature of
<the URI> request. the window sensor decreases, it would send a message
Another benefit of managing the resources in a RESTful “Window forgot open” (important, for instance, if the outside
manner is that such requests are stateless: when asking for is frozen, in winter-time).
data, no state is created on either server or client side – this The multi-layer abstraction [6] was one of the guidelines of
natural way of accessing resources is also crucial for the our research: we aimed to create an integrated system where
maintenance. each layer is independent – providing only REST APIs for its
”north-bound” partner layer that returns only values
(measurement or status).
B.Layered structure of our solution
These layers can easily be changed in future
implementations with a real potential for virtualization.
Data accessibility via a REST API gives another The NI web service infrastructure was a great choice for our
opportunity: now it is easy to add a data management layer in approach as it provides a robust framework for working with
the system – the architecture of our proposed solution is given raw data from all sorts of sensors and publishing it in an up-to-
in Fig.6. date manner on the Web.
This is a loosely coupled component that is fully using the Data are published in the Cloud only after the interpretation
resources provided by the published web services. The scope of the raw real-world signals that are transformed as
of this data management layer is to take the stateless data and independent and ready to use resources.
to add user-relevant context. Let’s take the following The software based applications that are running in the
example: 10 sensors are installed in a room, each of them in Cloud would take over these resources - without any care on
critical points, under the window, on the floor, at the entrance, how they arrived there - and will start manipulating them in
on the ceiling, near the heater etc. With the actual web order to add more and more value to the end user.
services we can easily read the real-time temperature for each
Fig.11: The project structure with the VlabWS3 data.lvlib (LabVIEW library)