A measurement system with dual Modbus connections linked through MQTT/TLS to a remote server: internal details and first operation results
DOI:
https://doi.org/10.37537/rev.elektron.6.2.160.2022Keywords:
Monitoring system, Modbus protocol, MQTT/TLS protocol, renewable energyAbstract
This work presents a renewable energy measurement system with two Modbus protocol connections (RTU/Serial to internal modules, TCP to external units) and achieves a TLS-encrypted link between the datalogger module and a centralized remote dashboard application. Recent installation and commissioning of high quality instruments allow for reliable information to be collected, and the system offers remote monitoring and data persistence. The logger acquires wind data using Thies sensors installed on the wind turbine tower, and current and voltage from both the wind turbine and an array of photovoltaic panels. Energy is stored in a battery bank and is used to supply electric power to a greenhouse. In this nearby building, an additional module to measure temperature and humidity of the plant-growing environment was developed and programmed. The module communicates via RS485 using Modbus RTU with the main datalogger, which also uses an internal network connection through Modbus TCP to a Raspberry Pi4B board. The Pi board converts the readings to MQTT/TLS, an added security feature before sending data to the remote server which runs the dashboard application. A continuous performance analysis of the renewable energy unit is possible due to the availability and persistence of real-time data on the server and also on the CF card of the datalogger.Downloads
References
J. Akerlund and J. Ottosson, ”A Datalogger and Remote Control for Hybrid Power Systems,” INTELEC ’87 - The Ninth International Telecommunications Energy Conference, 1987, pp. 443-449, doi: 10.1109/INTLEC.1987.4794595.
Campbell Data Loggers 40 Years On (2014): https://www.instrumentation.co.uk/campbell-data-loggers-40-years-on/
Schneider Solar - Insight Home / Facility & Conext: https://solar.schneider-electric.com/product/insighthome-and- insightfacility-edge-devices/
The Modbus Organization: https://modbus.org/
MQTT: The Standard for IoT Messaging https://mqtt.org/
Transport Layer Security (TLS) v1.3 (2018) https://datatracker.ietf.org/doc/html/rfc8446
AEA-UNPA https://www.energiasalternativas-unpa.net/investigacion-y-desarrollo
Datalogger CR1000 - Campbell Scientific CSI - https://www.campbellsci.com/cr1000
Raspberry Pi 4B (2020) https://www.raspberrypi.org/products/raspberry-pi-4-model-b/
Ubiquiti NanoStation (2019) https://www.ui.com/airmax/nanostationm/
Thingsboard Community Edition (2021) https://thingsboard.io/
Data Acquisition at CERE/UMAG https://github.com/rafoliva/CERE-DataAcq
AEA SISMED/RG24 v1-2019 https://github.com/rafaeloliva/AEA-DataAcq/tree/master/SISMEDRG24/v2019-CR1000
IEC Standard (2017) IEC 61400-12-1 Power performance measurements of electricity producing wind turbines. https://webstore.iec.ch/publication/26603
Mikrotik HexLite Routers (2021) https://mikrotik.com/product/RB750r2
DIN-RS485 Adaptors User Guide LyR Ing. (2021) https://www.lyringenieria.com.ar/wp-content/uploads/2021/08/UserGuide DINRS485board v1den.pdf
Fuentes, C. - Informe de beca WE: MPPT y Protocolo Modbus(2016) https://github.com/rafaeloliva/AEA-DataAcq/tree/master/SISMEDRG24/v2021-CR1000-RBpi4-Ardu-TB/ArduinoMegaModbus/BecaCFuentesModbus
v2021 CR1000/RBPi4/Mega Source and diagrams: https://github.com/rafaeloliva/AEA-DataAcq/tree/master/SISMEDRG24
Arduino Modbus Standard Library (2019) https://www.arduino.cc/en/ArduinoModbus/ArduinoModbus
Arduino IDE https://www.arduino.cc/en/software
Thies FirstClass Wind Sensors (2021) https://www.thiesclima.com/en/Products/Wind-First-Class/
PostgreSQL Open Source Database (2021) https://www.postgresql.org
KeyTool - Oracle Java Platform Tools Reference (2021) https://docs.oracle.com/javase/8/docs/technotes/tools/windows/keytool.html
Windographer: https://www.ul.com/resources/apps/windographer
Downloads
Published
Issue
Section
License
The authors who publish in this journal agree with terms established in the license Attribution-NonCommercial-NoDerivatives 4.0 International (CC BY-NC-ND 4.0)