Wpisy

Moduino ESP32 is a compact, powerful and versatile IoT device that can be used for various industrial automation and control applications. One of the communication protocols it supports is the M-Bus (Meter-Bus) protocol. This protocol is used for communication between energy meters, heat cost allocators and other devices in the energy management and building automation systems.

In this article, we will discuss how to use Moduino ESP32 with the M-Bus protocol using RS-232 communication.

Requirements

  • Moduino ESP32
  • M-Bus devices (e.g energy meters)
  • RS-232 to RS-232 cable

Hardware Connections

  1. Connect the Moduino ESP32 to the M-Bus device using an M-Bus cable.
  2. Connect the Moduino ESP32 to a computer using an RS-232 to RS-232 cable.

Software Setup

  1. Download and install the Arduino IDE from the official website.
  2. Open the Arduino IDE and go to File -> Preferences.
  3. In the Additional Board Manager URLs field, add the following URL: https://dl.espressif.com/dl/package_esp32_index.json
  4. Go to Tools -> Board: -> Board Manager and search for „esp32”.
  5. Install the „ESP32 by Espressif Systems”.
  6. Go to Tools -> Board and select „ESP32 Dev Module”.
  7. Go to Sketch -> Include Library -> Manage Libraries.
  8. Search for „MBus library” and install it.

Code

  1. Create a new sketch in the Arduino IDE.
  2. Include the M-Bus library by adding the following line at the top of the sketch:
cCopy code#include <MBus.h>
  1. Define the M-Bus object and the serial port for communication:
scssCopy codeMBus mbus;
HardwareSerial mbusSerial(2);
  1. In the setup() function, initialize the serial port for communication and start the M-Bus:
scssCopy codevoid setup() {
  mbusSerial.begin(2400, SERIAL_8N1, 16, 17);
  mbus.begin(mbusSerial);
}
  1. In the loop() function, read the M-Bus data and print it to the serial monitor:
scssCopy codevoid loop() {
  if (mbus.available()) {
    MBusDataFrame data = mbus.read();
    Serial.println(data.toString());
  }
}
  1. Upload the code to the Moduino ESP32 using the Upload button in the Arduino IDE.

Conclusion

With the above steps, you have successfully set up Moduino ESP32 with the M-Bus protocol using RS-232 communication. This will allow you to communicate with M-Bus devices and receive data from them, which can be further processed for industrial automation and control applications.

Order Moduino X now: https://iiot-shop.com/product/moduino/

Raspberry Pi based controller with Modbus, M-Bus & MQTT support

Raspberry Pi Compute Module 3+ based ModBerry industrial computer series use latest Compute Module 3+, powered by Quad-core Cortex-A53 1.2GHz processor, 1024MB LPDDR2 RAM and up to 32GB Flash eMMC. The module increase the device’s performance up to ten times, maintaining low power consumption and optimal price of the solution. Raspberry Pi based ModBerry features industrial protocol support, e.g. Modbus, M-Bus, SNMP, MQTT and the possibility to add new protocols with ease.

ModBerry protocol modularity

ModBerry remote management

The iMod platform guarantees a quick start and full use of the ModBerry computer, without the need to write complicated software. One of the main advantages of the iMod platform is its ease of use and variety of available functionalities. Due to the available SDK, the platform can be extended with new, dedicated functionalities.

iMod can be installed directly onto ModBerry device or using external PC outside the installation (iModBOX). The third option is using dedicated hosting server to host the iMod software (iModHOST).

iModCloud Ecosystem

Another product is iModCloud software-service, which enables full control of ModBerry/iMod devices. Together they form a stand-alone solution – iModCloud Ecosystem, a combination of cloud services with web-based user interface and industrial devices, fully manageable remotely.

iModCloud can be hosted externally, using stable DELL servers to host the cloud service.(iModCloudHOST). For higher data security or depending on project features, iModCloud can be hosted internally, inside the installation (iModCloudBOX) hosted by the dedicated Mini-PC or from portable memory stick (iModCloudSTARTER).

More information Raspberry Pi based industrial device

TECHBASE provides solutions for industrial automation, telemetry, remote access and integration with IT systems. Since 2012 the company has been actively developing its competences in the market. Due to an innovative approach – based on the use of cutting-edge technologies, open standards and easy to maintain products – the company has earned the trust of Customers all over the world.

TECHBASE’s mission is to provide our Customers with tools, which will shorten and simplify the process of system implementation. With open architecture and high level of configurability, maintenance of a system is not expensive anymore.

To read more about ModBerry 500 M3 solution, download PDF datasheet: http://a2s.pl/products/ModBerry/ModBerry_500M3_EN.pdf
Read more about all ModBerry Industrial Solutions at: https://modberry.techbase.eu/

ModBerry hardware modularity

ModBerry 500 hardware modularity

The main features of ModBerry Industrial Computers series are the extension capabilities to increase input/output number, add up to 4 internal wireless communication modems and modules, support additional features such as accelerometer or opto-isolation options.

ModBerry 500 series offers wide range of industrial interfaces e.g.: digital inputs/outputs, analog inputs/outputs, relay outputs, serial RS-232/485 ports, Ethernet, 1-Wire, CAN, USB 2.0, HDMI, LTE/3G/GPRS, NarrowBand IoT/LTE, GPS, ZigBee, WiFi, Bluetooth, LoRa and many more via extension modules.

Raspberry Pi based controller with Modbus, M-Bus & MQTT support

Raspberry Pi Compute Module 3+ based ModBerry industrial computer series use latest Compute Module 3+, powered by Quad-core Cortex-A53 1.2GHz processor, 1024MB LPDDR2 RAM and up to 32GB Flash eMMC. The module increase the device’s performance up to ten times, maintaining low power consumption and optimal price of the solution. Raspberry Pi based ModBerry features industrial protocol support, e.g. Modbus, M-Bus, SNMP, MQTT and the possibility to add new protocols with ease.

ModBerry protocol modularity

ModBerry remote management

The iMod platform guarantees a quick start and full use of the ModBerry computer, without the need to write complicated software. One of the main advantages of the iMod platform is its ease of use and variety of available functionalities. Due to the available SDK, the platform can be extended with new, dedicated functionalities.

iMod can be installed directly onto ModBerry device or using external PC outside the installation (iModBOX). The third option is using dedicated hosting server to host the iMod software (iModHOST).

iModCloud Ecosystem

Another product is iModCloud software-service, which enables full control of ModBerry/iMod devices. Together they form a stand-alone solution – iModCloud Ecosystem, a combination of cloud services with web-based user interface and industrial devices, fully manageable remotely.

iModCloud can be hosted externally, using stable DELL servers to host the cloud service.(iModCloudHOST). For higher data security or depending on project features, iModCloud can be hosted internally, inside the installation (iModCloudBOX) hosted by the dedicated Mini-PC or from portable memory stick (iModCloudSTARTER).

More information Raspberry Pi based industrial device

TECHBASE provides solutions for industrial automation, telemetry, remote access and integration with IT systems. Since 2012 the company has been actively developing its competences in the market. Due to an innovative approach – based on the use of cutting-edge technologies, open standards and easy to maintain products – the company has earned the trust of Customers all over the world.

TECHBASE’s mission is to provide our Customers with tools, which will shorten and simplify the process of system implementation. With open architecture and high level of configurability, maintenance of a system is not expensive anymore.

To read more about ModBerry 500 M3 solution, download PDF datasheet: http://a2s.pl/products/ModBerry/ModBerry_500M3_EN.pdf
Read more about all ModBerry Industrial Solutions at: https://modberry.techbase.eu/

ModBerry hardware modularity

ModBerry 500 hardware modularity

The main features of ModBerry Industrial Computers series are the extension capabilities to increase input/output number, add up to 4 internal wireless communication modems and modules, support additional features such as accelerometer or opto-isolation options.

ModBerry 500 series offers wide range of industrial interfaces e.g.: digital inputs/outputs, analog inputs/outputs, relay outputs, serial RS-232/485 ports, Ethernet, 1-Wire, CAN, USB 2.0, HDMI, LTE/3G/GPRS, NarrowBand IoT/LTE, GPS, ZigBee, WiFi, Bluetooth, LoRa and many more via extension modules.

Raspberry Pi based controller with Modbus, M-Bus & MQTT support

Raspberry Pi Compute Module 3+ based ModBerry industrial computer series use latest Compute Module 3+, powered by Quad-core Cortex-A53 1.2GHz processor, 1024MB LPDDR2 RAM and up to 32GB Flash eMMC. The module increase the device’s performance up to ten times, maintaining low power consumption and optimal price of the solution. Raspberry Pi based ModBerry features industrial protocol support, e.g. Modbus, M-Bus, SNMP, MQTT and the possibility to add new protocols with ease.

ModBerry protocol modularity

ModBerry 500 hardware modularity

The main features of ModBerry Industrial Computers series are the extension capabilities to increase input/output number, add up to 4 internal wireless communication modems and modules, support additional features such as accelerometer or opto-isolation options.

ModBerry 500 series offers wide range of industrial interfaces e.g.: digital inputs/outputs, analog inputs/outputs, relay outputs, serial RS-232/485 ports, Ethernet, 1-Wire, CAN, USB 2.0, HDMI, LTE/3G/GPRS, NarrowBand IoT/LTE, GPS, ZigBee, WiFi, Bluetooth, LoRa and many more via extension modules.

ModBerry hardware modularity

Raspberry Pi based industrial computer ModBerry expands to new platforms, setting new trends on the industrial automation market. ModBerry series offers now a variety of new processing units, wider range of possible applications due to much higher performance than before. We introduced ModBerry M700 based on NanoPi platform, Intel-based ModBerry M1000 with UpBoard computing module and latest ModBerry 400 to complete Raspberry Pi platform with economical device for further upgrades with extension modules.

ModBerry remote management

The iMod platform guarantees a quick start and full use of the ModBerry computer, without the need to write complicated software. One of the main advantages of the iMod platform is its ease of use and variety of available functionalities. Due to the available SDK, the platform can be extended with new, dedicated functionalities.

iMod can be installed directly onto ModBerry device or using external PC outside the installation (iModBOX). The third option is using dedicated hosting server to host the iMod software (iModHOST).

iModCloud Ecosystem

Another product is iModCloud software-service, which enables full control of ModBerry/iMod devices. Together they form a stand-alone solution – iModCloud Ecosystem, a combination of cloud services with web-based user interface and industrial devices, fully manageable remotely.

iModCloud can be hosted externally, using stable DELL servers to host the cloud service.(iModCloudHOST). For higher data security or depending on project features, iModCloud can be hosted internally, inside the installation (iModCloudBOX) hosted by the dedicated Mini-PC or from portable memory stick (iModCloudSTARTER).

More information Raspberry Pi based industrial device

TECHBASE provides solutions for industrial automation, telemetry, remote access and integration with IT systems. Since 2012 the company has been actively developing its competences in the market. Due to an innovative approach – based on the use of cutting-edge technologies, open standards and easy to maintain products – the company has earned the trust of Customers all over the world.

TECHBASE’s mission is to provide our Customers with tools, which will shorten and simplify the process of system implementation. With open architecture and high level of configurability, maintenance of a system is not expensive anymore.

To read more about ModBerry 500 M3 solution, download PDF datasheet: http://a2s.pl/products/ModBerry/ModBerry_500M3_EN.pdf
Read more about all ModBerry Industrial Solutions at: https://modberry.techbase.eu/