Introduction to Mango M2M Open Source SCADA Platform: Modbus Device Monitoring and Data Acquisition Solution

freeFree Technical Resource

This content is free to read, suitable for basic learning and search traffic.

Introduction to Mango M2M Open Source SCADA Platform: Modbus Device Monitoring and Data Acquisition Solution缩略图

What is Mango M2M?

Mango M2M (now renamed Mango Automation) is a browser based human-machine interaction (HMI) and data acquisition and monitoring control (SCADA) platform developed by Serotonin Software (Canada). It is one of the few "complete platform level" projects on the official recommendation page of modbus.org. Unlike a single debugging tool or protocol library, Mango provides a complete solution from data collection to visualization.

The open-source module of Mango Automation is hosted on GitHub:github.com/MangoAutomation/ma-modules-public. The latest version is v4.5. x (updated in July 2024).

Mango M2M Core Features

  • Multi Protocol Support: Built in support of various industrial communication protocols such as Modbus TCP/RTU, BACnet, SNMP, HTTP, MQTT, OPC, etc.
  • Web Visualization: Ajax based browser interface, no need to install client software, can view real-time data and historical trends in any browser
  • Data Logs: Supports storing collected data to SQL databases (MySQL, H2, Derby) for easy historical data analysis and report generation
  • Alarm Management: Configurable Threshold Alarm, Notify Operations Personnel via Email, SMS, etc.
  • Automation Script: Supports JavaScript/Python Script to Implement Complex Business Logic and Automation Control
  • User and Permission Management: Supports Multi User, Multi Role Permission Control

Install Mango Automation

Linux Installation

# 下载 Mango Automation(Java 应用,需要 JRE 8+)
wget https://github.com/MangoAutomation/ma-core-public/releases/latest

# 解压并运行
unzip mango-*.zip
cd mango
./bin/start.sh

# 默认访问地址: http://localhost:8080/mango
# 默认用户名/密码: admin/admin

Windows Installation

Download ZIP Package, Extract, Runbinstart.batStart the service. Mango can also be registered as a Windows service to achieve self startup upon startup.

Configure Modbus TCP data source

After starting Mango, enter the management interface through the browser. Steps to add Modbus TCP data source:

  1. Click on the menuData SourcesAdd Data Source
  2. Select the protocol type asModbus TCP/IP
  3. Set the data source name (such as "Distribution Cabinet No.1")
  4. Fill in the device IP address and port (default 502)
  5. Set the polling period, such as 5 seconds
  6. Set timeout and retry times
  7. Save Configuration

Add Data Points:

  1. Click on the created data sourceAdd Data Point
  2. Set data point name (such as "A-phase voltage")
  3. Select register type (Holding Register/Input Register/Coil, etc.)
  4. Set slave address (Slave ID) and register offset address
  5. Select data type (Binary/Numerical/Alphanumeric)
  6. If unit conversion is required, set the scaling factor and offset (e.g. original value x 0.1=actual temperature ° C)
  7. Save

Create Dashboard

Mango's graphical interface editor allows drag and drop creation of dashboards:

  1. Click on the menuGraphical ViewsAdd View
  2. Choose a template (such as an empty template)
  3. Enter the drag and drop editor and select from the left component library:
  • Analog Gauge(Analog dial): Suitable for displaying analog quantities such as voltage, current, temperature, etc
  • Digital Display(digital display): concise numerical display
  • Line Chart(line chart): display historical trend curves
  • Binary Indicator(switch indication): Display status variables such as run/stop, on/off

Drag the data point to the corresponding component and bind it. After saving, you can view device data in real-time in the browser.

Configure Alarm Rules

Taking High Temperature Alarm as an Example:

  1. Click on MenuEvent DetectorsAdd Event Detector
  2. Select TypeHigh Limit(Upper Limit Alarm)
  3. Set Upper Limit Value (e.g. 80 ° C)
  4. Set Alarm Level (Critical/Warning/Info)
  5. Event HandlersConfigure Notification Method:
  • Email Handler: Send Email Notification
  • Set Point Handler: Modify Other Data Points (e.g. Turn Off Device)
  • Script Handler: Execute custom scripts

Mango vs other open source SCADA

platformslanguagefeaturesapplicable scenarios
Mango M2MJavabrowser native, drag and drop editor, Modbus supportsmall and medium-sized projects, rapid prototyping
Rapid SCADAC #comprehensive functionality, Windows platformmonitoring for large factories
FUXANode.jsModern UI, Docker deployment friendlyWeb native monitoring panel
Grafana+Node REDHybridData visualization+process orchestration, flexible but needs to be combined to buildCustomized project
ThingsBoardJavaIoT platform, supporting MQTT/CoAP/ModbusIoT device management platform

Summary

Mango M2M has a unique positioning in the open source SCADA/HMI field - it is not a library or command-line tool, but a complete platform that can be directly deployed and used. Mango provides a full chain solution for Modbus device data collection, real-time dashboard display, historical data storage, and alarm notifications. For teams that need to quickly build Modbus device monitoring systems, Mango can significantly shorten the time from device integration to visual delivery. If you are looking for an open-source SCADA solution that supports Modbus protocol, Mango M2M is worth a careful evaluation.

Put this resource to use in a real project?

Go to the Tool Center for message parsing, CRC verification and device debugging, or submit your requirements for selection and integration advice.

Engineer Membership

Turn this article into actionable debugging resources

After activation, you can use advanced message parsing, resource pack downloads, code examples, engineering cases and priority technical support, suitable for real project delivery.

Unlimited Advanced Tools
Resource & Code Packs
Complete Engineering Case Library
Priority Technical Support

Leave a Reply

Your email address will not be published. Required fields are marked *.