Why IoT Devices Choose RTOS Over Linux

Follow+Star public number, don’t miss wonderful content

Why IoT Devices Choose RTOS Over Linux

Compilation | strongerHuang

WeChat Public Account | Embedded Column

The rapid development of the Internet of Things in recent years, everyone must have seen it, because of the Internet of Things, C language has become the most popular language (JAVA has always been the leader in previous years).

Let’s first take a look at the TIOBE index in December 2020:

Why IoT Devices Choose RTOS Over Linux

C language has ranked first for several months, surpassing JAVA and Python, indicating that the Internet of Things has reached a very popular level.

Embedded Column

1

Why do IoT devices choose RTOS?
The IoT devices we talk about usually refer to terminal devices in the IoT system, and we regard IoT devices as embedded systems that send and receive information over a network.

Although many embedded systems can be well managed with less complex software, networked devices require more powerful systems.

The software for IoT devices should have:

  • Scalability: to adapt to various categories of devices

  • Modularity: to select the required components

  • Connectivity: to move data in and out of devices via Wi-Fi, Ethernet, USB, or Bluetooth.

  • Reliability: preferably with relevant security certification

1. Scalability

A scalable RTOS can help you improve development efficiency, reduce development costs, and shorten time to market.

Historically, embedded systems have been built around 8-bit and 16-bit MCUs, but the price of 32-bit MCUs has been rapidly decreasing, with sales growing quickly, making them the most popular MCUs.

Why IoT Devices Choose RTOS Over Linux

2. Modularity

Many RTOS manufacturers have continuously improved their RTOS ecosystem, with more and more middleware and components, but one characteristic is modularity.

Familiar RTOS like µC/OS, RT-Thread, FreeRTOS, etc., have expanded many components around RTOS.

Why IoT Devices Choose RTOS Over Linux

3. Connectivity

Network connectivity is very important for the Internet of Things, and the key point is “connection,” otherwise it’s just “things” and cannot be called the Internet of Things.

If the RTOS has a corresponding protocol stack, that’s best, as it can save development time. Also, if the chip comes with the required protocol stack, it’s even better, as it can save memory on the device and reduce costs.

4. Reliability

The reliability of this point, I believe, needs no explanation; anyone who has done development can understand how troublesome it is to encounter bugs after a product has been running for a while…

Therefore, not only the visible physical products need certification, but the “invisible” software also needs certification.

Embedded Column

2

Why not use Linux?
Linux is a powerful and developer-friendly operating system, and as a platform for IoT devices, it has gained attention; Linux has matured into a mainstream embedded operating system for many applications.

Linux has many uses in embedded devices, especially those that provide graphically rich user interfaces.

However, compared to real-time operating systems (RTOS), Linux has a “disadvantage”: memory usage. Even though Linux can be shrunk by removing unnecessary tools and system services for embedded systems, it is still very large (relative to RTOS).

It cannot run on 8-bit or 16-bit MCUs at all, and even many newer 32-bit MCUs do not have enough onboard RAM for the Linux kernel.

Why IoT Devices Choose RTOS Over Linux

ARM Cortex-M series is very suitable for IoT MCUs, with hundreds of MCUs based on the popular Cortex-M architecture, usually with only a few hundred KB of memory, and Linux basically cannot run on these chips.

So, why not use Linux? In summary, it’s that the hardware (resources, performance) of IoT devices is not suitable for Linux.
Disclaimer:This article is partially sourced from the internet, and the copyright belongs to the original author. If there are any copyright issues, please contact me for deletion.
———— END ————

Reply in the background with 『RTOS』『Internet of ThingsLinux to read more related articles.

Follow WeChat Public Account『Embedded Column』, check the bottom menu for more content, reply “Join Group” to join the technical exchange group as per the rules.

Why IoT Devices Choose RTOS Over Linux

Click “Read Original” to see more shares, welcome to share, collect, like, and view.

Leave a Comment

×