Mouser Left Banner
Mouser Left Banner
Mouser Left Banner
Mouser Right Banner
Mouser Right Banner
Mouser Right Banner

    embeNET and STM32WL: 6TiSCH Based Mesh Network Overcomes Big Challenges Plaguing the Internet of Things

    The Challenges Behind Mesh Networks in the Internet of Things (IoT)

    Why Are Energy Efficiency and Interferences Problematic?

    In the book Internet of Things: Challenges and Opportunities, Maria Palattella et al. (2014) explain how industrial networks are increasingly moving toward IP-based technologies. The trend is popular because it relies on familiar concepts while enabling many devices on the same network. The challenge is that it must fit low-power devices, which means radios can’t always be on. The standard must also deal with interferences and fading due to numerous devices using the same frequency for wireless communication. The answer is the IEEE802.15.4-2011 Medium Access Control (MAC) protocol called Timeslotted Channel Hopping (TSCH, pronounced Tish).

    What is TSCH?

    As the name implies, TSCH relies on time synchronization. The standard defines a “time slot” as one unit of time. Its duration isn’t set by the standard and can thus vary. At a specific time in the time slot, the network will send a packet with timing components, and each node will record the time it received that frame. With this information, all devices can synchronize their network clock, thus compensating for any potential drift. Thanks to a counter, each device can also know how many time slots the network has gone through. Called the Absolute Slot Number (ASN), it increments after each time slot, uses a five-byte integer, and can thus last hundreds of years.

    The other major component of TSCH pertains to channel hopping, a mechanism that enables a device to switch wireless frequencies. To ensure nearby nodes use the same frequency and can thus communicate, the standard uses the ASN to calculate an offset that determines what frequency to use. Since all nodes benefit from tight time synchronization and all know the ASN, channel hopping becomes highly reliable. However, in the event of a failed transmission, the retransmission will take place on a different frequency. Indeed, the strategy has more chance of success than resending the same packet on the same frequency.

    Why Does TSCH Matter?

    Using time synchronization means TSCH is a deterministic wireless standard. Transmissions happen precisely, which means microcontrollers know when to turn on the radio and for how long, thus saving a lot of energy. Coordinating around time also prevents a node from missing packets. Moreover, channel hopping enables the use of all the channels available to sub-GHz and 2.4 GHz radios. Engineers can thus use many devices without bogging down one channel, which alleviates the risk of interference. As a result, TSCH opens the door to massive scaling operations.

    What Is 6TiSCH?

    In essence, 6TiSCH is a TSCH network using an IPv6 subnet. Since the protocol uses 128-bit addresses, companies can apply a single IPv6 identifier for each device without fear of running out, even in large industrial settings. Behind the scenes, 6TiSCH is quite comprehensive. It defines how to route and track packets and implements quality of service to prioritize certain packets as well as security features, among other things. Put simply, the IETF (Internet Engineering Task Force) conceived 6TiSCH to answer a wide range of applications. Whether for smart cities, transportation, buildings, or factories, 6TiSCH aims to solve the challenges inherent to mesh networks.

    embeNET, The Solution to the Democratization of Mesh Network in the Internet of Things

    Why 6TiSCH Is Still Not a Buzz Word?

    embeNET and the other EMBETECH technologies
    embeNET and the other EMBETECH technologies

    While 6TiSCH solves many issues plaguing mesh networks of IoT devices, we can ask why the technology is not already ubiquitous. After all, the first IETF mailing list on the topic dates back to January 2013, and the 2014 book mentioned above already outlines the advantages and importance of the technology. Yet, many engineers are still unaware of its existence or don’t have much experience. The reason is that while academically fascinating, 6TiSCH is commercially hard to implement. And it’s what embeNET attempts to solve by offering an entire network stack with APIs for greater ease of use.

    How Is embeNET Solving the Implementation Challenge?

    The STM32WL

    Companies often struggle with implementing a 6TiSCH network stack on a microcontroller. While the IETF defined mechanisms aimed at low-power devices, it doesn’t offer turnkey solutions. Hence, EMBETECH took the technology and improved scheduling functions, ensured stability in an industrial setting, and optimized the network stack for resource-constraint devices. With all services enabled, the library only needs 100 KB of flash. Hence, as an example, let us take the STM32WL, the first MCU with an embedded multi-modulation LoRa transceiver. In this instance, its 256 KB of storage is enough for the firmware, update mechanisms, and application.

    The network stack also uses ST’s hardware feature. For instance, it uses the FSK/(G)FSK modulation capabilities of the STM32WL, which simplifies the overall design. Similarly, the library uses ST’s crypto core and its true number generator to accelerate cryptographic operations. Consequently, embeNET can run on only one of the STM32WL cores. The network stack can run on the same Arm Cortex-M4 as the application without negatively impacting performance. Put simply, developers enjoy a high optimization level and can easily reuse their system on various STM32 MCUs. For example, a basic mesh network for a smart meter application sending one packet a day could use an STM32WL with AA batteries that would last about ten years.

    Getting Started


    Developers can start experimenting with embeNET by grabbing an STM32WL development board like the NUCLEO-WL55JC and downloading the EMBETECH demo software package. An evaluation version of the stack supports up to 10 nodes and three network hops. The company also offers documentation to help developers get started. Additionally, gateway software runs on PCs after connecting an STM32WL Nucleo-64 board to the machine to create a virtual network. Finally, the company provides a cloud solution to help process the data from the nodes on the mesh network.

    ELE Times News
    ELE Times News
    ELE Times provides extensive global coverage of Electronics, Technology, and the Market. In addition to providing in-depth articles, ELE Times attracts the industry’s largest, qualified, and highly engaged audiences, who appreciate our timely, relevant content and popular formats. ELE Times helps you build experience, drive traffic, communicate your contributions to the right audience, generate leads, and market your products favorably.

    Technology Articles

    Popular Posts

    Latest News

    Must Read

    ELE Times Top 10