Professional Documents
Culture Documents
Angrisani 2019 8909245
Angrisani 2019 8909245
208
Fig. 2. How the Communication Node works.
Fig. 3. The flow used in NodeRed.
the payload is parsed to JSON, then sent to the central by the gateway and the drone, a mechanism of Join / Accept
publishing on a MQTT topic [16]. If the measurement values Request is implemented.
exceed the safety thresholds, an alert message is sent to a • Start Command: From the dashboard (UI), a command
chat-bot of an instant messaging application. on a MQTT topic is sent to activate the measurement
routine. This message is read by the flow on the same
A. LoRa topic, converted in a LoRa packet and sent to the drone.
LoRa (Long Range) is a spread spectrum modulation tech- • Drone-To-Central communication: Once a start
nique derived from chirp spread spectrum (CSS) technology message is received and the drone has created a
[17]. LoraWAN is a protocol that operates in a free sub-GHz measurement set, a LoRa packet is transmitted to the
band, the ISM Band [18]. The targets are M2M connection Gateway. Here the payload is parsed in a JSON file by a
(Machine to Machine) and IoT applications; this is a part function block of NodeRed. Depending on the fields of
of LPWAN (Low Power Area Network), that provides an control, a switch block divides and publishes messages
energy-saving feature for sending and receiving messages. in two different topics: one for GPS data and another
The range of communication is quantifiable in the order of for measurements. The GPS data is sent to the web
kilometers [19]. We have chosen an operating mode (Class C) application, so the operator can see on his tablet where
that provides a continuous listening. the drone is. The measurements are sent to the central
B. Node-Red station for storage purposes. This payload is matched
with the GPS data of the measuring location.
Node-Red is a tool to make IoT applications through the
usage of nodes in JavaScript. The nodes are connected to each
other in order to create a flow, input and output are defined V. T HE CENTRAL SOFTWARE STATION
using a graphical interface. The nodes receive messages in The central software station satisfies the following require-
input and apply a JavaScript function in order to modify ments:
content or type.
1) user authentication;
C. MQTT 2) displaying the drone position during flight;
MQTT (Message Queuing Telemetry Transport) is a com- 3) transducers control;
munication protocol designed for M2M, based on pub- 4) filtering and storage measured data;
lish/subscribe model. It works on top of the stack TCP/IP. 5) producing alerts for dangerous zones;
The broker provides the distribution of messages to clients, 6) visualisation all the recorded data.
using topics. Clients subscribe to a chosen topic and receive To meet these requirements, it is necessary that the station
all the messages published on it; this way, a one-to-many have:
communication model is established, in place of a one-to-one 1) a parser to interpret and filter the data that comes from
model. the transducers;
209
2) a database to store all recorded data;
3) a detector to reveal any health risks to operators;
4) a web application that has a user-friendly, captivating
and portable interface.
To promote the use of adequate replication techniques and
maximize the reliability, each component has to be designed
by bearing in mind attributes like coupling, cohesion, re-
usability and portability. Fig. 4-5 summarize the structure and
the interconnections among the various components.
A. Technologies
First of all, the parser is realised by a java application,
which is suitable for distributed software. Moreover, it offers Fig. 4. The measuring process
plenty of useful libraries and middlewares for that purpose.
For instance, Hibernate was used to solve the ORM (object-
relational mapping) problem and the MQTT library supplied
by the Eclipse Paho project was used to retrieve the measured
data from the transducers. Secondly, a relational database is
used to store and share the recorded data. The chosen RDBMS
is MySQL, which is released with an open-source license.
Thirdly, a Telegram bot is used to send adequate and fast
alerts to all parties whose actions are necessary when there
are some health risks in the area under observation. Lastly,
the web application is built on top of three main technologies:
Bootstrap, AngularJS and Google Maps. The first allows Fig. 5. The positioning process
developers to build responsive web pages to achieve portability
on different screens. The second was used in conjunction
with PHP to provide all the functionalities requested by the Nucleo, suitable for low power applications, the different
users. Specifically, AngularJS was employed for the functional transducers were managed and the data supplied by them
requirements 2,3,5,6 while PHP was used to create a software were processed. The parameters of interest were: Tempera-
level to query and update data stored in the database. The third ture, Humidity, Pressure, PM1, PM2.5, PM4, PM10, VOC,
was needed to show to operators the drone position during the CO2 , CO, NHx , NOx . These parameters are sent through the
flight. Semtech SX1272MB2xAS transceiver to the LoRa gateway
B. Functional Principle and, through the usage of the MQTT communication protocol,
made available on a web application, Fig. 6-7-8.
The web application continuously receives data from sen-
sor node and shows the position of the drone. To start
the measuring process, the operator stops the drone in the VII. ACKNOWLEDGMENTS
position of interest and sends the ”Start” command via the
web application. After sending the ”Start”, the drone stops
Authors thank Domenico Accardo and Giancarmine Fasano
sending its location, because only the last reported location
(aerospace systems), Marco Trifuoggi (analytic chemistry), ST
(i.e. where the measurement actually takes place) is needed,
Microelectronics (technological partner), Protom Group Srl,
and the Measuring phase begins in the sensor node. After the
and Capgemini (committing companies).
conclusion of this phase, the central station receives the data
through the library functions of Eclipse Paho that supports
MQTT. The central station analyzes the data and, in case they
are above the threshold, sends an alert message to a Telegram
bot and then saves the data on the database [20]. After saving,
the web application is notified of the changes in the database,
through MQTT. The web application takes from the database
the data of interest, which will be displayed on the screen.
VI. C ONCLUSION
In conclusion, the low-energy, low-cost, drone-based mon-
itoring system is developed to perform real-time measure-
ments of pollutants. Through the usage of the STM32L073RZ Fig. 6. Examples of measures in the Dashboard
210
[13] L. Angrisani, P. Arpaia, F. Bonavolontà, M. Conti, and A. Liccardo,
“Lora protocol performance assessment in critical noise conditions,” in
2017 IEEE 3rd International Forum on Research and Technologies for
Society and Industry (RTSI). IEEE, 2017, pp. 1–5.
[14] M. Carratù, M. Ferro, A. Pietrosanto, and V. Paciello, “Smart power
meter for the iot,” in 2018 IEEE 16th International Conference on
Industrial Informatics (INDIN). IEEE, 2018, pp. 514–519.
[15] D. Capriglione, G. Cerro, L. Ferrigno, and G. Miele, “Performance
analysis of a two-stage spectrum sensing scheme for dynamic spectrum
access in tv bands,” Measurement, vol. 135, pp. 661–671, 2019.
[16] F. Abate, M. Carratù, C. Liguori, and V. Paciello, “A low cost smart
power meter for iot,” Measurement, vol. 136, pp. 59–66, 2019.
Fig. 7. Examples of measures in the Dashboard [17] D. Capriglione, G. Cerro, L. Ferrigno, and G. Miele, “Effects of real
instrument on performance of an energy detection-based spectrum sens-
ing method,” IEEE Transactions on Instrumentation and Measurement,
vol. 68, no. 5, pp. 1302–1312, 2019.
[18] G. Betta, D. Capriglione, L. Ferrigno, and G. Miele, “Influence of wi-fi
computer interfaces on measurement apparatuses,” IEEE Transactions
on Instrumentation and Measurement, vol. 59, no. 12, pp. 3244–3252,
2010.
[19] M. Carratù, M.Ferro, A.Pietrosanto, and P.Sommella, “Adopting smart
metering rf networks for particulate matter distributed measurements,”
vol. 2017-August, 2017, pp. 50–55, cited By 2. [Online].
Available: https://www.scopus.com/inward/record.uri?eid=2-s2.0-
85045530636&partnerID=40&md5=0b72251da4ac9ea174ffdbaf11a970f6
[20] F. Lamonaca, K. Barbe, Y. Kurylyak, D. Grimaldi, W. Van Moer,
A. Furfaro, and V. Spagnuolo, “Application of the artificial neural
Fig. 8. Examples of measures in the Dashboard network for blood pressure evaluation with smartphones,” in 2013
IEEE 7th International Conference on Intelligent Data Acquisition and
Advanced Computing Systems (IDAACS), vol. 1. IEEE, 2013, pp. 408–
412.
R EFERENCES
[1] “Available online at https://www.ipcc.ch/2018/10/08/summary-
for-policymakers-of-ipcc-special-report-on-global-warming-of-1-5c-
approved-by-governments/, accessed on 2019-08-06.”
[2] J. Wivou, L. Udawatta, A. Alshehhi, E. Alzaabi, A. Albeloshi, and S. Al-
falasi, “Air quality monitoring for sustainable systems via drone based
technology,” in 2016 IEEE International Conference on Information and
Automation for Sustainability (ICIAfS). IEEE, 2016, pp. 1–5.
[3] M. Carrozzo, S. De Vito, E. Esposito, F. Formisano, M. Salvato,
E. Massera, G. Di Francia, P. D. Veneri, M. Iadaresta, and A. Mennella,
“An uav mounted intelligent monitoring system for impromptu air
quality assessments,” in Convegno Nazionale Sensori. Springer, 2018,
pp. 497–506.
[4] K. Blattenberger, “Dronebased field measurement system (dbfms),” RF
Cafe, rfcafe. com, 2014.
[5] R. Fontanella, D. Accardo, R. S. L. Moriello, L. Angrisani, and
D. De Simone, “Mems gyros temperature calibration through artificial
neural networks,” Sensors and Actuators A: Physical, vol. 279, pp. 553–
565, 2018.
[6] R. Fontanella, D. Accardo, R. Moriello, L. Angrisani, and D. Simone,
“An innovative strategy for accurate thermal compensation of gyro bias
in inertial units by exploiting a novel augmented kalman filter,” Sensors,
vol. 18, no. 5, p. 1457, 2018.
[7] “Available online at http://dl.djicdn.com/, accessed on 2019-08-06.”
[8] L. De Filippis, G. Guglieri, and F. Quagliotti, “A minimum risk approach
for path planning of uavs,” Journal of Intelligent & Robotic Systems,
vol. 61, no. 1-4, pp. 203–219, 2011.
[9] S. Madakam, R. Ramaswamy, and S. Tripathi, “Internet of things (iot):
A literature review,” Journal of Computer and Communications, vol. 3,
no. 05, p. 164, 2015.
[10] L. Angrisan, P. Arpaia, F. Bonavolontà, A. Liccardo, and R. S. L.
Moriello, “First step towards a cost-effective lot platform for customers
power consumption awareness,” in 2017 IEEE International Workshop
on Measurement and Networking (M&N). IEEE, 2017, pp. 1–5.
[11] A. Baccigalupi and A. Liccardo, “The huang hilbert transform for eval-
uating the instantaneous frequency evolution of transient signals in non-
linear systems,” Measurement: Journal of the International Measurement
Confederation, vol. 86, pp. 1–13, 2016.
[12] A. Baccigalupi, M. D’Arco, and A. Liccardo, “Parameters and methods
for adcs testing compliant with the guide to the expression of uncertainty
in measurements,” IEEE Transactions on Instrumentation and Measure-
ment, vol. 66, no. 3, pp. 424–431, 2017.
211