Wpisy

Node-RED and Raspberry Pi

Node-RED is an interesting environment for modeling processes, by visually defining information flows. It is a module working in the node.js environment. It is a flow-based programming tool, originally developed by the IBM Emerging Technology Services team and now part of the JS Foundation.

History of Node-RED environment

Node-RED provides users with a ready-made set of easy-to-connect nodes and supports code creation by configuring data transmission and sensor communication to their applications. It is up to you whether you create a new flow of equipment to increase and control the economics of the IoT system. Hardware platform for this system can easily be Raspberry Pi based industrial device, like ModBerry computer.

Node-RED started life in early 2013 as a side-project by Nick O’Leary and Dave Conway-Jones of IBM’s Emerging Technology Services group. What began as a proof-of-concept for visualising and manipulating mappings between MQTT topics, quickly became a much more general tool that could be easily extended in any direction.

It was open-sourced in September 2013 and has been developed in the open ever since, culminating in it being one of the founding projects of the JS Foundation in October 2016.

Source: https://nodered.org/about/

Who can benefit from Node-RED?

Flow-based programming is ideal for the creators of IoT solutions for visualizing and controlling data flow, maintaining and managing a series of cause-related events. Apart from the fact that Node-RED can be run basically anywhere you can install NodeJS, this program is a card for IoT solution developers for mapping and maintaining solutions.

With the development and implementation of Internet of Things solutions around the world, Node-RED has become an invaluable tool for solution architects and programmers, due to its ease of use in flow programming and solution mapping. IoT solutions, also known as applications, are the convergence of the physical world with the digital world to extract valuable data for insight that increases process or system performance. This convergence results in countless triggers and events that must be performed to control systems or notify those responsible when the system is above its expectations.

How does Node-RED work?

Node.js is a runtime environment for programs written in JavaScript, currently based on the Chrome V8 engine. While I used to associate JavaScript only with scripts for animated galleries on websites, after a really short period of learning I notice the great advantages of using JS as a language for creating programs launched outside of the browser. Programs run in node.js work in the background, in the console, or even have their own UI with normal windows in Windows, macOS or Linux.

Node-RED example
Node-RED example

The principle of operation is relatively simple. Visually, we combine different blocks that perform specific functions. Through connections, Node-RED sends messages, which are basically a JavaScript object, consisting of various data.

Node-RED consists of a Node.js based runtime that you point a web browser at to access the flow editor. Within the browser you create your application by dragging nodes from your palette into a workspace and start to wire them together. With a single click, the application is deployed back to the runtime where it is run. The palette of nodes can be easily extended by installing new nodes created by the community and the flows you create can be easily shared as JSON files.

Source: https://nodered.org/about/
Arduino ESP32 Serial Port to TCP Converter via WiFi

TECHBASE posted new class, in which you will create serial port to TCP converter using Arduino code running on ESP32 processor. We will use one of device which uses such processor: Moduino X ESP32. For TCP communication WiFi module will be used.

You will need:

  • Moduino X4 ESP32 device (check this website to find out more)
  • PC with Linux operating system
  • socat application
  • RS-232/RS-485 port in your computer or USB to RS-232/RS-485 converter (for programmming and testing)

Introduction

In example, data sent to serial port (which is used as terminal port in regular Micropython ESP32 device) will be send via WiFi using TCP protocol. It also decodes incomming TCP packets and writes them to serial port. Then virtual serial port can be opened for that TCP packets and perform serial communication. We will use socat application for that.

You can read the complete tutorial at Hackster.io:

Arduino ESP32 Serial Port to TCP Converter via WiFi

TECHBASE posted new class, in which you will create serial port to TCP converter using Arduino code running on ESP32 processor. We will use one of device which uses such processor: Moduino X ESP32. For TCP communication WiFi module will be used.

You will need:

  • Moduino X4 ESP32 device (check this website to find out more)
  • PC with Linux operating system
  • socat application
  • RS-232/RS-485 port in your computer or USB to RS-232/RS-485 converter (for programmming and testing)

Introduction

In example, data sent to serial port (which is used as terminal port in regular Micropython ESP32 device) will be send via WiFi using TCP protocol. It also decodes incomming TCP packets and writes them to serial port. Then virtual serial port can be opened for that TCP packets and perform serial communication. We will use socat application for that.

You can read the complete tutorial at Hackster.io:

Hyperautomation is a process in which businesses automate as numerous commerce and IT forms as conceivable utilizing apparatuses like AI, machine learning, event-driven computer program, mechanical process automation, and other sorts of choice prepare and task automation instruments.

It is the key to both computerized operational greatness and operational resiliency for organizations. To empower this, organizations had to digitize their documents/artifacts and guarantee their trade and IT process workflows were advanced. They got to mechanize tasks, processes and coordinate computerization over utilitarian zones.

Hyperautomation is irreversible and inevitable. Everything that can and should be automated will be automated.

Brian Burke, Research Vice President, Gartner

Gartner prepared a Tech Trends 2021 summary with key features of the constantly changing market. Read more at: https://www.gartner.com/en/information-technology/trends/top-strategic-technology-trends-iot-gb-pd

Industrial IoT market evolution

Data generated over the Internet of Things is growing exponentially faster than the traditional cloud environment where data is stored, so just the amount of data can justify the acceleration. In addition, in the cloud as the destination, problems related to data transfer (delay and bandwidth) occur, so travel speed is the main issue. This edge is necessary as a solution to the inefficiency of IIoT to Cloud architecture.

Fast data processing of Industrial IoT devices

When industrial IoT devices and edge processing work together, digital information becomes more powerful. Especially in contexts where you need to collect data in a traditional edge context, such as a smart meter, a parking meter or a connected trash can in a street apartment. The installation of sensors with internet access in metropolitan garbage containers is becoming increasingly common for smart urban engineers. You can then remotely monitor the container using the sensor. When it is full, the city sanitation service receives a notification and can register an order and empty the container.

By introducing AI (artificial intelligence) into the device itself, edge computing can also make more context-sensitive, quick decisions at the edge. Data gathered from the sensors can be transferred to the cloud at any time after local work has been completed, contributing to a more global AI process, or archived. With the combination of industrial IoT devices and advanced technology, high quality analysis and small footprint will become the AI standard in 2020.

ModBerry AI GATEWAY with Raspberry Pi CM4 and Google Coral

Latest innovations used in industrial solutions

One of many uses of IoT can be 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, LoRa, ZigBee, etc.

For example 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.

Advantages of Industrial IoT in modern manufacturing and smart environments

Industrial Internet of Things (Industrial IoT or just IIoT for short) uses Internet of Things technology to improve production and industrial processes. These processes increasingly require connected devices to perform their tasks effectively.

Data generated over the Internet of Things is growing exponentially faster than the traditional cloud environment where data is stored, so just the amount of data can justify the acceleration. In addition, in the cloud as the destination, problems related to data transfer (delay and bandwidth) occur, so travel speed is the main issue. This edge is necessary as a solution to the inefficiency of IIoT to Cloud architecture.

IIoT market predictions

Industrial IoT devices and edge computing have grown at impressive rates. Accenture predicts the IIoT market will reach $500 billion by 2020; and IIoT already generates 400 zetabytes a year. Gartner estimates that IoT currently generates about 10% of enterprise data; by 2022, Gartner has predicted this will increase to 50%.

According to IDC, IT’s annual investment on edge infrastructure will hit 18% of total IoT spending; and per last year’s Forrester Analytics Global Business Technographics Mobility Survey, 27% of global telecom decision-makers say their companies will either implement or expand edge computing this year.

Source: https://www.cisco.com/c/en/us/solutions/internet-of-things/industrial-iot-devices.html

Perimeter (edge) computing architectures bring computing processing closer to the users and devices that need it, rather than centrally processing it in a local data center or public cloud. This edge is important for industrial and production processes that use large amounts of data that require fast response times and tight security.

Fast data processing of Industrial IoT devices

When industrial IoT devices and edge processing work together, digital information becomes more powerful. Especially in contexts where you need to collect data in a traditional edge context, such as a smart meter, a parking meter or a connected trash can in a street apartment. The installation of sensors with internet access in metropolitan garbage containers is becoming increasingly common for smart urban engineers. You can then remotely monitor the container using the sensor. When it is full, the city sanitation service receives a notification and can register an order and empty the container.

By introducing AI (artificial intelligence) into the device itself, edge computing can also make more context-sensitive, quick decisions at the edge. Data gathered from the sensors can be transferred to the cloud at any time after local work has been completed, contributing to a more global AI process, or archived. With the combination of industrial IoT devices and advanced technology, high quality analysis and small footprint will become the AI standard in 2020.

Industrial IoT use of ESP32 chip in eModGATE

Latest innovations used in industrial solutions

One of many uses of IoT can be 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, LoRa, ZigBee, etc.

For example 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.

Node-RED and Raspberry Pi

Node-RED is an interesting environment for modeling processes, by visually defining information flows. It is a module working in the node.js environment. It is a flow-based programming tool, originally developed by the IBM Emerging Technology Services team and now part of the JS Foundation.

History of Node-RED environment

Node-RED provides users with a ready-made set of easy-to-connect nodes and supports code creation by configuring data transmission and sensor communication to their applications. It is up to you whether you create a new flow of equipment to increase and control the economics of the IoT system. Hardware platform for this system can easily be Raspberry Pi based industrial device, like ModBerry computer.

Node-RED started life in early 2013 as a side-project by Nick O’Leary and Dave Conway-Jones of IBM’s Emerging Technology Services group. What began as a proof-of-concept for visualising and manipulating mappings between MQTT topics, quickly became a much more general tool that could be easily extended in any direction.

It was open-sourced in September 2013 and has been developed in the open ever since, culminating in it being one of the founding projects of the JS Foundation in October 2016.

Source: https://nodered.org/about/

How does Node-RED work?

Node.js is a runtime environment for programs written in JavaScript, currently based on the Chrome V8 engine. While I used to associate JavaScript only with scripts for animated galleries on websites, after a really short period of learning I notice the great advantages of using JS as a language for creating programs launched outside of the browser. Programs run in node.js work in the background, in the console, or even have their own UI with normal windows in Windows, macOS or Linux.

Node-RED example
Node-RED example

The principle of operation is relatively simple. Visually, we combine different blocks that perform specific functions. Through connections, Node-RED sends messages, which are basically a JavaScript object, consisting of various data.

Node-RED consists of a Node.js based runtime that you point a web browser at to access the flow editor. Within the browser you create your application by dragging nodes from your palette into a workspace and start to wire them together. With a single click, the application is deployed back to the runtime where it is run. The palette of nodes can be easily extended by installing new nodes created by the community and the flows you create can be easily shared as JSON files.

Source: https://nodered.org/about/

Who can benefit from Node-RED?

Flow-based programming is ideal for the creators of IoT solutions for visualizing and controlling data flow, maintaining and managing a series of cause-related events. Apart from the fact that Node-RED can be run basically anywhere you can install NodeJS, this program is a card for IoT solution developers for mapping and maintaining solutions.

With the development and implementation of Internet of Things solutions around the world, Node-RED has become an invaluable tool for solution architects and programmers, due to its ease of use in flow programming and solution mapping. IoT solutions, also known as applications, are the convergence of the physical world with the digital world to extract valuable data for insight that increases process or system performance. This convergence results in countless triggers and events that must be performed to control systems or notify those responsible when the system is above its expectations.

Arduino ESP32 Serial Port to TCP Converter via WiFi

TECHBASE posted new class, in which you will create serial port to TCP converter using Arduino code running on ESP32 processor. We will use one of device which uses such processor: Moduino X ESP32. For TCP communication WiFi module will be used.

You will need:

  • Moduino X2 (may be also X1) ESP32 device (check this website to find out more)
  • PC with Linux operating system
  • socat application
  • RS-232/RS-485 port in your computer or USB to RS-232/RS-485 converter (for programmming and testing)

Introduction

In example, data sent to serial port (which is used as terminal port in regular Micropython ESP32 device) will be send via WiFi using TCP protocol. It also decodes incomming TCP packets and writes them to serial port. Then virtual serial port can be opened for that TCP packets and perform serial communication. We will use socat application for that.

You can read the complete tutorial at Hackster.io:

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/

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://iot-industrial-devices.com/

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.

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: 

Various data connection protocols & MQTT data management solutions

To take full advantage of the TECHBASE’s Industrial IoT Ecosystem’s capabilities, you can build your own installation, depending on project requirements, choosing from variety of Gateways (Gateway Layer) to control data collected from an array of Moduino edge devices (Sensor Layer). Moduino can be programmed in one of open software platforms, e.g. MicroPython to gather the data and send it, using MQTT standard protocol, further to Gateway and/or cloud service.

Both Moduino ESP32 and Pycom-based Moduino supports open & free libraries, shared by Pycom, tested and approved by constantly growing ESP32/Arduino community. TECHBASE company has plans to provide an open-source platform for managing services & remote configuration and control of endpoint Moduino devices using MicroPython.

MQTT Data Management

Wide range of protocol support

All TECHBASE’s solution can be empowered with iMod software incl. protocol support for industrial interfaces, e.g. M-Bus, Modbus, SNMP, MQTT. iMod software works seamlessly with Node-RED using MQTT protocol, allowing use of bacnet and direct control over devices I/Os with Google’s platform-neutral protobuf – extensible mechanism for serializing structured data and zeroMQ controls to connect the code in any modern language, on any platform. The protocol drivers library can be expanded with CODESYS development system to support PROFIBUS, CANopen, EtherCAT, PROFINET and EtherNet/IP.