m2mDAS is a multi platform SCADA developed in standard C++ using POSIX library capable of communicating with different devices and sensors with standard and proprietary protocols like Modbus RTU/TCP, IEC 870-5-102 (ASDU 162: instant data), enOcean EVC, ATERSA, Wavenis CORONIS, SAD SCADA, webBox XML files, etc.
m2mDAS is an acronym of “machine to (2) machine Data Acquisition System”.
The acquired values can be stored in an internal file or a SQLite database using its data-logging capabilities. It is possible to produce calculated data applying mathematical functions over acquired information or using other data sources.
Setup is simple thanks to its integrated web server. m2mDAS provides different ways to show or publish acquired or calculated information:
- Using integrated web server. It shows real time data and it is also possible to save historical data to a CSV file.
- Using its integrated API REST
- It is possible to copy the whole SQLite database because it is binary compatible in all supported platforms.
- Using command line agent with telnet command.
- Using integrated Modbus RTU/TCP slave. The acquired data or the calculated data can be communicated to other SCADA/PLC’s.
m2mDAS is fully compatible with any third-party IoT platforms that can accept web requests following a RESTful methodology. It is possible to provide different formats of data and use different verbs (GET, PUT, POST).
It is also possible to use m2mDAS as a gateway from its accepted protocols to modbus RTU/TCP, a de facto standard communication protocol used in industrial systems.
m2mDAS is robust and efficient. The application does not use lots of resources from the host machine making sure that it will not impact its performance.
A typical configuration is shown below:
Every sensor or information that can be retrieved from the field or calculated using mathematical functions is represented by a channel that has a short name or TAG, a long description, a unit, etc. Channels are grouped into a device and the devices are grouped into device drivers depending on the protocol used to acquire the information.
Several examples of this combinations are:
- A temperature sensor integrated into a weather station that has a serial port that can communicate the measured data using Modbus RTU protocol. The channel is the temperature sensor, the device is a Modbus command that contains the temperature data and the device driver is the reader of all the accessible devices in the same Modbus bus.
- In a complex installation with several temperature sensors, m2mDAS computes the average temperature. This computed average is the channel that can be grouped in a logical set named statistics and the device driver is the internal protocol of m2mDAS.
Once the application is installed and executed, its embedded web server will be accessible at port 8008 of your E220 router. This web server is used to configure and set the device up. This can be done from Status > Select an action > Configure device:
m2mDAS can use the RS-485 of E220 routers to retrieve and log data from Modbus slaves. Ther serial interface to use is /dev/ttyS1. This can be configured from Managers > Channel Manager > Manage Device Drivers > Create entry:
Once the new communication driver is configured, the Modbus slaves can be added and configured from Manage Devices:
After adding the relevant parameters to retrieve from each slave, the current status of each parameter from each slave can be checked under real time:
From that same screen, it is possible to show the historical data for a single TAG both in a graph and table view (note that the application automatically calculates maximum, minimum and average values):
m2mDAS will allow you to export the TAGs you select to any IoT platform of your liking. You can easily configure this from Publishers > Data publisher. All parameters freely configurable such as remote server, verb to use, format of the data, interval to push the data, etc.
Publishing data to Sentilo
m2mDAS allows to easily published the logged data to sentilo.io. Sentilo is an open source sensor and actuator platform designed to fit in the Smart City architecture of any city who looks for openness and easy interoperability.
Publishing data to nrgAuditor
m2mDAS was originally developed to push data to nrgAuditor platform, so it is easily configurable to publish data to such server. This is an example of data sent to nrgAuditor:
About the author
m2mDAS is a software application developed by SIGE. SIGE is a company based in Barcelona with more than 20 years of experience dedicated to the development of automation and information systems, focusing its main activity on projects related to the energy sector. SIGE is specialized in the design, installation and setup of control solutions and the development of technical software.