Connect your M-Bus installations with Moduino ESP32

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/

Amazon Alexa approves Espressif’s ESP AFE for ESP32-S3 AI & DSP

Amazon‘s website has introduced a Software Audio Front End (AFE) Development Kit section that lists software algorithms that optimize sound detection in noisy environments. The latest addition is the Amazon Alexa recently certified Espressif audio front end or ESP AFE algorithm for shorts.

Low resource consumption

Espressif’s AFE algorithms are optimized, as they take advantage of Espressif’s AI accelerator that is available in the ESP32-S3 SoC. Espressif’s AFE algorithms consume just 12-20% of CPU and around 460 KB of memory, including 220 KB of internal memory and 240 KB of external memory. This provides sufficient headroom for customer applications on the ESP32-S3 SoC.

Espressif’s AFE algorithms offer an easy and intuitive API for customer applications, so that their performance can change as dynamically as it is required. The distance between the two microphones can be between 20-80 mm, which allows considerable flexibility for the hardware design of developers’ end-products.

Source: https://www.espressif.com/en/solutions/audio-solutions/esp-afe

The Espressif AFE algorithm was certified by Amazon after achieving excellent performance in long-range Alexa testing. In most cases, in low signal-to-noise scenarios, the wakeup rate reaches 100% and the speech recognition rate exceeds 90%.

Amazon-Qualified “Software Audio Front-End” Solution

Industrial use of ESP32-based solutions

One of industrial IoT devices, supporting Espressif’s ESP32 technology is eModGATE from TECHBASE. Economical, ESP32-based solution can serve as an end-point in any installation or works well as a gateway, gathering data from scattered sensor mesh across the installation. For more information and also Raspberry Pi based solutions check Industrial IoT Shop with all the configuration options for eModGATE.

eModGATE with ESP32

Increased demand on TPM 2.0 modules with Windows 11 announcement

Microsoft announced Windows 11 with new system requirements, including hardware with a TPM 2.0 chip. Altho not all computers, laptops, and tablets come with Trusted Platform Module (TPM), which can be a problem, especially if you need version 2.0.

According to a tweet from Shen Ye, Senior Director, Global Head of HTC Hardware Products, the price of TPM 2.0 has quadrupled, so while Windows 11 isn’t officially available yet, Microsoft has it legitimate, and the name is security.

Securing devices with Infineon industrial grade TPM

Infineon Technologies AG has unveiled a new security chip that defines the first TPM (Trusted Platform Module), designed specifically for industrial applications such as industrial computers, servers, industrial controllers and edge gates. The module protects confidential data in connected devices and reduces the risk of leakage of this information due to attacks, e.g. hackers.

The OPTIGA TPM SLM 9670 module protects the integrity of industrial systems and the identity of users using them. The system controls access to sensitive data at key locations in industrial environments, such as an automated factory. It also protects the cloud interface if the network uses one. The security system fully meets the TPM 2.0 standard developed by the Trusted Computing Group and is certified by an independent test laboratory in accordance with the criteria contained in this standard. The new module is meticulously controlled and certified by Infineon. Thanks to its use, it is possible to shorten the time of designing and introducing the device to the market, thanks to the ready security solution in the system.

The TPM system has a lifetime declared as 20 years. It allows programmers to perform firmware updates, which in turn enables them to meet the long-term security requirements in rapidly changing industrial environments. In this way, it can also reduce maintenance costs of industrial equipment thanks to secured remote software updates. The TPM chip will be available in serial production in the second half of 2019.

TPM 2.0 Key Features

  • Random Number Generator (RNG) according to NIST SP800-90A
  • TPM FW update functionality installed
  • 6962 Bytes of free NV memory
  • Full personalization with Endorsement Key (EK) and EK certificate
  • Up to 3 keys in the volatile memory
  • Up to 7 keys in the NV memory
  • Up to 8 NV counters
  • Support of various cryptographic algorithms:
    • RSA-1024 and RSA-2048
    • SHA-1 and SHA-256
    • ECC NIST P256
    • ECC BN256

Security chip implementation in Industrial IoT devices

With knowledge of latest Industrial IoT security measures, the choice of proper end-point conroller or gateway is much easier than you think. Some manufacturers can implement TPM 2.0 security chip in production process, to allow users to generate certification keys after purchase, maximizing security of their installations. TECHBASE offers wide range of solutions, optionally aided with TPM system.

For example, ESP-32 based solution, Moduino X series and eModGATE series products offer the support for such security measures. Read more in Industrial IoT Ecosystem brochure, to understand the importance of reliable and secure hardware for Industrial IoT.

ModBerry 500-CM4 with ESP32 and Arduino for ultimate power management

Sleep functionality for ModBerry 500 CM4 devices

TECHBASE company designed an extended version of Raspberry Pi Compute Module 4 based devices, ModBerry 500-CM4-PM series for better power management in changing conditions of industrial applications. With the use of GPIO the module can manage boot, sleep mode or safe shutdown of the device in terms of unexpected drop in the power network with help of built-in ESP32 module and Arduino environment.

In the last few years developers marketed a wide range of ARM-based development boards, lacking in enhanced power management, especially sleep and wake up modes, commonly used in PC-grade computing. These boards are not adjusted for battery power supply, so it’s natural that sleep/wake functions should be implemented. In connection with the development of solutions based on Linux-SBC, key factor is adding sleep modes to any remote installation

ESP32 based addon module for Raspberry Pi

With built-in algorithms and the possibility to program on your own, the TECHBASE’s sleep/wake addon module can wake the device using a scheduler/timer. The module itself is based on ESP32-WROVER, used in the Moduino X series. ESP32 as a lightweight and low-powered solution is a perfect aid system for Raspberry Pi. Another option is wake on external triggers, e.g. change of input state, etc. All the options for sleep, shutdown and wake can be configured for various scenarios to ensure constant operation of devices, safety of data and continuity of work in case of power failure in any installation.

Sleep mode with additional power backup

Additional power management option for ModBerry devices is sleep functionality enhanced with SuperCap UPS energy backup device. This solution allows programming scenarios including the execution of chosen actions, in order to save data, send a notification and restart/shutdown the controller after completion.

Advanced power management solution

Most advanced configuration includes use of ESP32 module, known from the successful, lightweight Moduino X series, for extra logic for wake up / sleep scripts. This addon will allow the RaspberryPi-based ModBerry device to be woken up by the internal ESP32 controller

Moduino-ModBerry symbiosis allows a wide range of wake-up/sleep schedule customization, in order to perform best and save energy according to power supply state. Arduino and MicroPython environments provide libraries to control different scenarios of data and power management.

ModBerry 500-CM4-PM availability

The preliminary ModBerry 500-CM4-PM devices are available on request and delivery time will be specified by the Sales Dept. depending on the size of the project. Contact via email or Live Chat here: https://iiot-shop.com/

Industrial ESP32-based devices utilizing NarrowBand-IoT wireless technology

The NB-IoT is becoming a standard in wireless communication of IoT devices, for standalone solutions and complex installations with thousands of units, coordinated with gateways. Will NarrowBand-IoT replace other wireless technologies in industrial automation?

What exactly is NarrowBand?

NarrowBand-IoT (NB-IoT) is a radio technology in the field of LPWAN (Low Power Wide Area Network) dedicated for IoT devices, operating on the licensed frequency band used by telecommunications operators.

The biggest advantages of NB-IoT include:

  • long battery life (up to 10 years),
  • efficiency in the amount of data transferred,
  • intra-building penetration,
  • the ability to connect even tens of thousands of devices in one system,
  • a global standard,
  • a high level of security and low cost

You can build mass solutions and those that until now were considered unprofitable. NB-IoT technology works in the licensed band, so there is no risk of interference and blocking communication by competing networks.

The service life of devices powered by two AA batteries is up to 10 years. However, the devices themselves are constructed in such a way that they can work for many years without the need for technical supervision and recharging the battery.

NB-IoT used in industrial solutions

One of many uses of NarrowBand-IoT wireless modems can be communication of edge devices, dedicated to data management, process control (e.g. with MQTT protocol) and monitoring. Latest ESP32-based eModGATE controller from TECHBASE company is a series utilizing MicroPython environment to provide data management solutions for end-points applications. The eModGATE has built-in Wi-Fi/BT modem and can be equipped with additional NarrowBand-IoT modems

eModGATE with ESP32

eModGATE eqipped with wireless NB-IoT modem are perfect for industrial automation solutions, e.g. data logging, metering, telemetrics, remote monitoring, security and data management through all Industrial IoT applications.

Supported bandwidths:

  • Global-Band LTE CAT-M1:  B1/B2/B3/B4/B5/B8/B12/B13/B18/B19/B20/B26/B28/B39;
  • Global-Band LTE CAT NB-IoT1:  B1/B2/B3/B5/B8/B12/B13/B17/B18/B19/B20/B26/B28;
  • GPRS/EDGE 850/900/1800/1900Mhz Control Via AT Commands

Supported data transfer:

  • LTE CAT-M1(eMTC) – Uplink up to 375kbps, Downlink up to 300kbps
  • NB-IoT – Uplink up to 66kbps, Downlink up to 34kbps
  • EDGE Class – Uplink up to 236.8Kbps, Downlink up to 236.8Kbps
  • GPRS – Uplink up to 85.6Kbps, Downlink up to 85.6Kbps

eSIM support for Rasperry Pi based ModBerry industrial device

eSIM support for Rasperry Pi based ModBerry industrial device

The embedded SIM card (eSIM) is a form of programmable SIM card that is directly built in the device. eSIM is a global GSMA specification that enables remote SIM delivery to any supported device, and GSMA defines eSIM as the SIM card for the next generation of connected consumer / professional devices and network solution with the use of eSIM technology.

Easy SIM operator swap

In Industrial IoT applications in which there is no need to change the SIM card, the need of using a connector is avoided, which increases reliability and data security. eSIM can be remotely configured – users can add or change operators without having to physically swap the SIM card from the device. It is often a crucial requirement for the installations where factors such as temperature, water and shock resistance, as well as lack of access forces user to choose remote solutions.

eSIM Raspberry Pi Connvectivity

Raspberry Pi & ESP32-based devices

TECHBASE company is now developing eSIM support for Raspberry Pi and ESP32 industrial devices, such as ModBerry and Moduino X to improve the handling of wireless modem connectivity. To receive an offer for ModBerry/Moduino device with eSIM-based modem, contact our Sales Department via e-mail or Live Chat.



SIMCom modems now available in Industrial IoT Shop

SIMCom SIM7000G

TECHBASE’s Industrial IoT devices, ModBerry & Moduino series supports latest SIMCom global-band SIM7000G eMTC & NB-IoT Module. Now the latest SIM7000G as well as 7000E / 7000A versions of modem are available at IIoT-Shop.

SIMCom SIM7000G

Our ModBerry / Moduino devices equipped with latest SIM7000G modem are perfect for industrial automation solutions, e.g. data logging, metering, telemetrics, remote monitoring, security and data management through all Industrial IoT applications.

Supported bandwidths:

    • Global-Band LTE CAT-M1:  B1/B2/B3/B4/B5/B8/B12/B13/B18/B19/B20/B26/B28/B39;
    • Global-Band LTE CAT NB-IoT1:  B1/B2/B3/B5/B8/B12/B13/B17/B18/B19/B20/B26/B28;
    • GPRS/EDGE 850/900/1800/1900Mhz Control Via AT Commands

Supported data transfer:

    • LTE CAT-M1(eMTC) – Uplink up to 375kbps, Downlink up to 300kbps
    • NB-IoT – Uplink up to 66kbps, Downlink up to 34kbps
    • EDGE Class – Uplink up to 236.8Kbps, Downlink up to 236.8Kbps
    • GPRS – Uplink up to 85.6Kbps, Downlink up to 85.6Kbps

You can browse wireless modem category here: https://iiot-shop.com/product-category/modems/

Supported ModBerry series

Supported Moduino series

Economical Moduino X3 with ESP32 on-board available NOW

Moduino X3 ESP32

New version of Moduino ESP32, model X3 designed for various economical applications

Moduino X3 model offers new approach to Industrial IoT by upgrading mainboard elements to ensure high performance and ultra-low cost of implementation. In comparison with X2 version, new X3 limits additional ExCard expansion modules, drasticly changing the price of the device, but maintaining the 3-terminal I/Os of previous model. An important change is providing opto-isolation for DIO interface (optionally interchangeable with Relay interface for that I/O).

New version of Moduino ESP32, model X3 is designed for various economical applications, such as Industrial IoT installations, data management & remote edge-devices control. Basic configurations of X3 can be purchased for a price even lower than X1/X2 models for development purposes. Please contact our Sales Department (via Chat or e-mail) to get best price for these devices.

To read more about Industrial Moduino X solution, check here: 

PDF Datasheet  

Full comparison below:

Moduino ESP32 Comparison

To order configurable devices, choose Moduino X3 option in Moduino X product configurator here:

ORDER NOW

 

Moduino ESP32 controller now powered with Pycom modules

New base platforms for Moduino device

Revised version of TECHBASE’s Moduino edge controller offers now support and compatibility with wide range of Pycom’s compute modules with built-in communication interfaces, e.g. LoRa, Sigfox, NarrowBand-IoT / LTE cat. M1/NB1 and WiFi/BT4.2, similarly to standard Moduino devices, powered by Espressif’s ESP32-WROVER module.

With new Moduino platform you can choose from variety of Pycom modules to power the unit, in order to receive specific wireless features. At the present day Moduino supports these models:

    • WiPy 3.0 with WiFi & Bluetooth 4.2
    • SiPy with WiFi/BT and Sigfox
    • LoPy4 with WiFi/BT and LoRa, Sigfox
    • GPy with WIFi/BT and NarrowBand-IoT / LTE cat.M1/NB1
    • FiPy with WIFi/BT and LoRa, Sigfox, NarrowBand-IoT / LTE cat.M1/NB1

If physical network connection is a must, you can always choose standard Moduino ESP32 with Ethernet expansion module to ensure communication via LAN. Of course the possibility to choose wired-to-wireless communication is also available with the Moduino configurator.

All Pycom-based Moduino solutions are compatible with wide range of interface expansions for standard Moduino ESP32 platform, e.g. RS-232/485, Analog I/Os, Digital I/Os, Relay, CAN and many more, including SuperCap & OLED screen options. You can find the whole list of available expansions here: https://iiot-shop.com/product/moduino/

To read more about Industrial Moduino X solution, visit: https://moduino.techbase.eu/

ORDER NOW

 

New ModBerry M2000 based on Aaeon’s UP Squared x86 board

UP Board Squared ModBerry M2000

First Industrial IoT device based on UP Board
In 2017, the first unit that entered the ModBerry series was a device called ModBerry M1000, utilizing the capabilities of Aaeon’s UP Board platform. The solution uses Quad-core Intel Atom x5-Z8350 processor with 4x 1.44GHz frequency (boost up to 4x 1.92GHz), up to 4GB RAM and 64GB eMMC on board. The platform also features USB 3.0 and Gigabit Ethernet 10/100/1000Mbps for faster communication and supports various operating systems, e.g.: full distribution of Microsoft Windows 10 Pro/Home/IoT, Microsoft Windows 10 IoT Core, Linux and Android.

To read more about Industrial ModBerry solutions, visit: https://modberry.techbase.eu/

New base platform for Industrial ModBerry device
New addition to TECHBASE’s Industrial IoT Ecosystem is Modberry M2000, powered by Aaeon’s UP Squared development platform, to maximise the performance of Gateway Layer and provide the best data management for end-point layer, built with Industrial Moduino ESP32 devices.

ModBerry M2000 is an industrial computer series designed for the needs of automation, telecommunications, remote supervision and monitoring. ModBerry M2000 comes a choice of processor: Dual-Core Intel N3350 2×2.4GHz or Quad-Core Intel N4200 4×2.5GHz, 2/4/8GB and 16/32/64/128GB eMMC on-board with possibility to expand the storage even further with SATA3 & M.2 slot.

ModBerry M2000 platform can be extended with supported ExCard modules, including physical industrial interfaces: RS-232/485 ports, Digital I/Os, Analog I/Os, Relay, Ethernet, 1-Wire, USB, CAN; and wide range of wireless communication modules: Wi-Fi, Bluetooth GPRS/3G/LTE, for energy-efficient NarrowBand-IoT/LTE cat. M1/NB1, GPS, Wireless M-Bus, LoRa, ZigBee and many more.

Industrial IoT ExCard

ModBerry device and be equipped with dedicated iMod software platform to support standard protocol, such as MQTT, MODBUS, SNMP, M-Bus and many custom protocols. iMod – an innovative software platform allowing for quick start-up and full exploitation of device capabilities without the need for writing programs. A fully configurable system is reflecting typical C-L-V (Convert-Log-Visualize) use. Of course, the PLC software for creation of algorithms in the ladder system with the capability of operation on ModBerry device services the MODBUS protocol is also available.

To order sample devices, visit our new Industrial IoT Shop and ask our Sales Department via chat about new ModBerry M2000: 

ORDER NOW