ESP32-based LoRa / LoRaWAN wireless network

One way of long-range and low-power data transmission is LoRa wireless technology. Since the Internet of Things market (with ESP32 – based solutions) is mainly covered with short-range Wi-Fi and Bluetooth and long-range with 3G / NarrowBand-IoT technologies, LoRa oftens is omitted or simply unknown by IoT users. Below you will find a short representation of what LoRa is and how can it be used.

What is LoRa / LoRAWAN network?

LoRaWAN® network architecture is deployed in a star-of-stars topology in which gateways relay messages between end-devices and a central network server. The gateways are connected to the network server via standard IP connections and act as a transparent bridge, simply converting RF packets to IP packets and vice versa. The wireless communication takes advantage of the Long Range characteristics of the LoRa physical layer, allowing a single-hop link between the end-device and one or many gateways. All modes are capable of bi-directional communication, and there is support for multicast addressing groups to make efficient use of spectrum during tasks such as Firmware Over-The-Air (FOTA) upgrades or other mass distribution messages.

Source: https://lora-alliance.org/about-lorawan

Industrial use of LoRa & ESP32-based solutions

One of industrial IoT devices, supporting LoRa wireless technology is ESP32 based 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

The RAK2287 is a mini-PCIe LPWAN hub module based on the Semtech SX1302 that can be easily integrated with existing routers and other networking equipment with LPWAN gateway capabilities. It can be used on embedded platforms that offer a free mini PCIe slot with SPI connector. In addition to LPWAN functionality, the module is equipped with a ZOE-M8Q GPS chip that provides GNSS functionality.

This module is an exceptional, complete, and cost-efficient gateway solution offering up to 10 programmable parallel demodulation paths, an 8 x 8 channel LoRa® packet detector, 8 x SF5-SF12 LoRa® demodulators and 8 x SF5-SF10 LoRa® demodulators. It is capable of detecting an uninterrupted combination of packets at 8 different spreading factors and 10 channels with continuous demodulation of up to 16 packets. The module is well suited for Internet-of-Things (IoT) applications, that require node density of up to 500 nodes per km² in an environment with moderate interference.

Source: https://www.semtech.com/company/press/semtech-releases-a-new-portfolio-of-solutions-lora-edge-to-simplify-and-accelerate-iot-applications
LoRaWAN RAK2287 concentrator module

LoRa RAK2287 features

RAK2287 key features and specifications:

  • LoRa Connectivity:
    • Semtech SX1302 LoRa Transceiver with 2x SX1250 Tx/Rx front-end
    • Tx power – up to 27dBm
    • Rx sensitivity – down to -139dBm @ SF12, BW 125 kHz
    • LoRaWAN® 1.0.2 compatible.
    • LoRa band coverage – RU864, IN865, EU868, AU915, US915, KR920, AS923
    • 1x iPEX antenna connector for LoRa
  • GNSS – GPS / QZSS, BeiDou, Galileo, and GLONASS via U-blox ZOE-M8Q GPS SiP; 1x iPEX antenna connect for GPS

Source: https://www.cnx-software.com/2020/08/06/rak2287-mini-pcie-lorawan-concentrator-module-supports-up-to-500-nodes-per-km2/

Use of LoRa in industrial automation

Use of wireless connection makes life and work easier for us every day – from radio stations and GSM to Wi-Fi wireless networks, Zigbee, short-range Bluetooth connectivity and LoRa. With the spread of internet access, the possibility of using wireless connectivity for a new type of service and application has opened. Terminology such as M2M (Machine to Machine) – remote communication between devices and IoT – a network of applications and devices communicating with the Internet have been created.

Device equipped with LoRa module is delivered with a LoRaWAN protocol stack, so it can be easily connected to the existing, fast-growing LoRa Alliance infrastructure – both in privately managed local area networks (LAN) and public telecommunications networks to create wide area low power WAN (LPWAN) on a national scale. LoRaWAN stack integration also allows connection to any microcontroller, such as LoRa Gateway industrial device from TECHBASE.

Sigfox announces changes improving IoT applications

First major announcement is that Sigfox will launch a private network (PAN) that will allow IoT customers to choose private and global services according to their needs. The service was launched for the first time in France in the first quarter of 2020, but Sigfox will be implemented in over 65 countries.

The operator’s wide area network (WAN) will be completed next year in cooperation with Eutelsat. Sigfox provides coverage worldwide using the nano-satellite constellation launched by Eutelsat.

The Sigfox PAN offer will benefit from the existing Sigfox WAN ecosystem. Thanks to the potential to use all components on the market and the use of very low transmit power to support facilities without the need for batteries, the Sigfox PAN offer offers enormous potential,

Ludovic Le Moan, CEO and co-founder of Sigfox.

According to Sigfox, by the end of 2019, there will be more than 15 million registered facilities and over 1,500 customers using this solution in various industries around the world. Sigfox says that PAN customers can expect the same as WAN customers in terms of support and quality. PAN clients can choose to subscribe to additional „WAN Extension” services if needed if the device needs to communicate outside the local network.

Sigfox improving the accuracy of Atlas geolocation services

Internet of Things operators have now launched Atlas Native Complimentary. It is made available free of charge in exchange for the rights to process data regarding GPS data. These data are compared to the fingerprint of the Sigfox network using machine learning, which increases accuracy to 800 meters.

To further increase the accuracy of its geolocation services, Sigfox said it has completed the global implementation of Atlas WiFi in collaboration with HERE Technologies’ mapping experts.

Sigfox uses the global WiFi access point database here. Access points are checked by the Sigfox WiFi tracking module and more closely track the location of external and internal resources with less battery consumption than using GPS.

We are delighted to strengthen our partnership with Amadeus and share our combined expertise to create real digital transformation of the travel sector. Our strategic alliance named PinPoint will not only help to improve the travel experience, but this will also change completely the game for an industry looking for decades for THE technology able to save costs while improving efficiency and quality of services

Raouti Chehih, Chief Adoption Officer at Sigfox
eModGATE with ESP32

Industrial use of ESP32-based solutions

One of industrial IoT devices, supporting Sigfox wireless 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 check Industrial IoT Shop with all the configuration options for eModGATE.

The wM-Bus or Wireless Meter Bus is a European standard (EN 13757-4) that defines communication between usability meters and data loggers, hubs or intelligent meter gates. The M-Bus wireless bus has been developed as a standard to meet the needs of the European network of media meters and remote reading systems and forms the basis of a new advanced measurement infrastructure (AMI). The frequency of M-Bus and sub-GHz wireless connections has been used for several years, but is still evolving to adapt to changing environments and take advantage of technological advances, including the emergence of the Internet of Things.

COVID-19 and wireless technologies

In times of COVID-19 pandemic hazards, the use of wireless technologies is often a must, to prevent further spread of the coronavirus. One of obvious choices for Internet of Things and home monitorng is Wireless M-Bus implementation.

TECHBASE has added high performance module for Wireless M-Bus connectivity and multi-hop networking into Moduino series expansion options. The module is configured as an embedded micro system or simple data modem for low power applications in the metering specifically allocated band of 169 MHz or in the ISM band of 868 MHz. The device is can be configured for interoperability in a WMBus network for Industrial IoT applications.

2.4 GHz band vs unlicensed bands

Intelligent network devices require robust long-range wireless communication. The most common frequencies are around 868 MHz, 434 MHz and 169 MHz, which are unlicensed bands in Europe and offer better radio wave propagation compared to 2.4 GHz. By using one of these unlicensed bands, radio waves can reach difficult areas such as underground meters or the location of buildings with many walls or obstacles. Another advantage of operating in the unlicensed band is that utilities have lower solution costs.

The RF implementation guarantees best-in-class performance in terms of covered area and power consumption. The output power can be increased up to +30 dBm on the 169 MHz band (+27 dBm on optimized version for highest power efficiency) and up to +15 dBm on the 868 MHz band. The extremely reduced power consumption gives access to long lasting battery life requirement (up to 2 μA in sleep mode for wireless M-Bus module with an RTC clock running).

The Moduino devices  can be provided with a W-MBus stack specifically developed by Embit for the platform that allows to integrate the module in the desired system without effort and simplify the interaction in WMBus networks.

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

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:

Is LoRa a 'must be' for Industrial IoT?

As the remote application market is growing rapidly, technology also needs to progress, ensuring greater range and transmission speed while reducing energy consumption. Technological progress makes it possible to create innovative standards for new, sophisticated applications that facilitate our life and work. One of wireless connection choices can be LoRa technogoly.

What exactly is LoRaWAN?

LoRa (Long Range Radio) technology with low data throughput allows IoT and M2M applications to communicate wirelessly over 15 kilometers, with a battery life of more than 10 years. LoRa allows you to connect millions of wireless nodes with compatible gateways and has several key advantages over other wireless solutions. For example, it uses spectrum spreading modulation with the ability to demodulate a signal 20 dB below the noise level.

LoRa uses license-free sub-gigahertz radio frequency bands like 433 MHz, 868 MHz (Europe) and 915 MHz (Australia and North America). LoRa enables long-range transmissions (more than 10 km in rural areas) with low power consumption.[4] The technology is presented in two parts: LoRa, the physical layer and LoRaWAN (Long Range Wide Area Network), the upper layers.

Source: https://en.wikipedia.org/wiki/LoRa

Compared to 3G and 4G cellular networks, LoRa technology is also better scalable and more cost-effective for embedded applications. It has a much greater range than other popular wireless protocols, which allows devices to operate without amplifiers, reducing the total cost of the application.

Thanks to scalability, reliable communication, mobility and ability to work in difficult external conditions, the LoRa module is perfectly suited for use in a wide range of wireless monitoring and control applications that do not require high transmission speeds. Examples of applications may include smart city (street lighting sensors, motion sensors), energy (intelligent measurement of electricity / water / gas consumption) and industrial / commercial / home applications, among others HVAC, intelligent devices, security systems and lighting.

LoRa Coverage
LoRa coverage. Source: https://lora-alliance.org/

Use of LoRa in industrial automation

Use of wireless connection makes life and work easier for us every day – from radio stations and GSM to Wi-Fi wireless networks, Zigbee, short-range Bluetooth connectivity and LoRa. With the spread of internet access, the possibility of using wireless connectivity for a new type of service and application has opened. Terminology such as M2M (Machine to Machine) – remote communication between devices and IoT – a network of applications and devices communicating with the Internet have been created.

Device equipped with LoRa module is delivered with a LoRaWAN protocol stack, so it can be easily connected to the existing, fast-growing LoRa Alliance infrastructure – both in privately managed local area networks (LAN) and public telecommunications networks to create wide area low power WAN (LPWAN) on a national scale. LoRaWAN stack integration also allows connection to any microcontroller, such as LoRa Gateway from TECHBASE.

ESP-MESH is a network protocol based on the Wi-Fi protocol. ESP-MESH enables the connection of a large number of devices (hereinafter nodes) covering a large physical area (both inside and outside) over a single WLAN (wireless local area network). ESP-MESH self-organizes and self-heals, allowing you to build and maintain networks autonomously.

Traditional Wi-Fi Network Architecture. Source: espressif.com

Traditional Infrastructure of Wi-Fi network is a point-to-multipoint network in which a single central node called an Access Point (AP) is directly connected to all other nodes called stations. The AP is responsible for arbitrating and forwarding transmissions between stations. Some access points relay transmissions to and from external IP networks through routers.

Traditional Infrastructure Wi-Fi networks have the downside of having a limited coverage area as all stations need to be in range to connect directly to the access point. In addition, the maximum number of stations allowed in the network is limited by the bandwidth of the access point, making traditional Wi-Fi networks prone to overload.

ESP-MESH vs traditional Wi-Fi infrastucture

ESP-MESH differs from traditional Wi-Fi infrastructure networks in that the nodes do not have to connect to a central node. Instead, the node can connect with its neighbors. Nodes are responsible for relaying transmissions to each other. This allows for achieving interconnections without the need for nodes to be within the range of the central node, which significantly extends the coverage area of the ESP-MESH network. Likewise, ESP-MESH is less prone to congestion as the number of allowed nodes in the network is no longer limited by a single central node.

ESP-MESH Network Architecture. Source: espressif.com

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 check Industrial IoT Shop with all the configuration options for eModGATE.

eModGATE with ESP32

Silicon Labs recently announced two hardware modules based on its BG22 Secure Bluetooth 5.2 SoC: 6x6mm BGM220S system bundled (SiP) and slightly optimized for wireless performance with a better link budget. BGM220P introduced, large PCB variant, wider range.

Both modules can be integrated into products with a battery life of up to 10 years using a single coin cell battery. All variants of BGM220S/P can support Bluetooth directional discovery, and some components can also support Bluetooth mesh low power protocol.

Main features

  • Silicon Labs EFR32BG22 Arm Cortex-M33 with DSP instructions and floating-point unit, up to 512 kB Flash, 32 kB RAM, 2.4 GHz radio with TX power up to 8 dBm, and Embedded Trace Macrocell (ETM) for advanced debugging
  • Supported Protocols
    • Bluetooth Low Energy (Bluetooth 5.2)
    • Direction-finding
    • Bluetooth mesh Low Power Node

Source: https://www.cnx-software.com/2020/09/14/silicon-labs-bluetooth-5-2-bgm220s-sip-and-bgm220p-pcb-module/

Industrial use of ESP32-based solutions

One of industrial IoT devices, supporting Espressif’s ESP32 and Bluetooth 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 check Industrial IoT Shop with all the configuration options for eModGATE.

eModGATE with ESP32
Upcoming Wi-Fi 6 802.11ax and Wi-Fi 7 802.11be forecast for industrial IoT

The new Wi-Fi 6 standard, also known as 802.11ax, is the latest stage in the development of this technology. Based on the benefits of the 802.11ac standard, this standard also provides performance, flexibility and scalability, which in new and existing networks means an increase in speed and bandwidth for new generation applications.

Wi-Fi 6 is now coming to telephones, laptops and network equipment. But engineers are already looking at: Wi-Fi 7. With a high speed of 30 gigabits per second, the new generation of Wi-Fi will offer better video streaming, longer distances and reduced problems with data traffic.

What is Wi-Fi 6?

The Wi-Fi 6 standard enables enterprises and service providers to support new and emerging applications within the same wireless LAN (WLAN) infrastructure while ensuring higher standards of support for older applications. This scenario prepares the ground for new business models and increased use of Wi-Fi.

Upcoming Wi-Fi 6 and Wi-Fi 7 forecast for industrial IoT
Source: TP-Link

This is exactly the same standard as 802.11ax. The Wi-Fi Alliance has launched a campaign to give the IEEE 802.11ax standard the name „Wi-Fi 6”. This name suggests that this standard is a 6th generation Wi-Fi network. The justification for this idea was to simplify the marketing message of the 802.11ax standard in order to gain an image advantage over the standards of the Third Generation Partnership Project (3GPP) used in cellular network technology (e.g. 5G).

Wi-Fi 6 – 802.11ax features

The Wi-Fi 6 network will be based on the success of the 802.11 ac standard. This standard will allow access points to support more clients in dense environments and provide higher standards of use for typical wireless LANs. It will also provide more predictable utility properties for the needs of advanced applications, e.g. for 4K or 8K video playback, high density and high resolution collaboration, fully wireless offices and the Internet of Things (IoT). The Wi-Fi 6 standard will allow Wi-Fi networks to face the challenges of the future accompanying the development of wireless networks.

As with any new product in the area of Wi-Fi technology, the Wi-Fi 6 network is backward compatible with older technologies on which it is based and which makes it more efficient.

Source: TP-Link

Expectations about Wi-Fi 7 standard

During a speech during the August Wi-Fi Qualcomm Day and subsequent interviews, V.K. Jones, vice president of technology, shared details about the operation of Wi-Fi 7. He expects a three-step improvement over today’s Wi-Fi 6, called 802.11ax in the world of technology.

The first improvement expected will increase Wi-Fi 6 bandwidth and use new radio waves that will allow the governments of the United States and Europe to start wireless transmission soon next year. Secondly, the Wi-Fi 6 update in 2022 should improve speed, especially for those who transfer data such as videos from phones and computers. The third, and perhaps the most interesting, is the Wi-Fi update collection expected in 2024, known only under the technical name 802.11be.