This issue recommends a real-time operating system developed by Tencent for the Internet of Things——TencentOS-tiny。
TencentOS tiny is a real-time operating system developed by Tencent for the Internet of Things. It has the characteristics of low power consumption, low resource occupation, modularity, safety and reliability, which can effectively improve the development efficiency of Internet of Things terminal products. TencentOS tiny provides a streamlined RTOS kernel with tailor-made and configurable kernel components that can be quickly ported to a variety of mainstream MCUS (such as the full STM32 family) and module chips. And, based on RTOS kernel provides a rich IoT components, internal integration mainstream Internet protocol stack (such as CoAP/MQTT/TLS/DTLS/LoRaWAN/NB – IoT, etc.), can help the Internet of things terminal equipment and business fast access tencent IoT cloud platform.
TencentOS tiny overall structure
TencentOS tiny main architecture diagram, from bottom to top mainly includes:
- CPU library :TencentOS tiny supports CPU IP core architecture, currently mainly support ARM Cortex M0/3/4/7, Cortex A7, RISC-V, MSP430, AVR, STM8 and so on.
- Drive management :Including board level support package (BSP, mainly developed and maintained by MCU chip manufacturers), hardware abstraction layer (HAL, mainly provided by TencentOS tiny, to facilitate the adaptation and migration of different chips), device Drivers (such as Wi-Fi, GPRS, LoRa and other module drivers).
- core :TencentOS tiny real-time kernel includes task management, real-time scheduling, time management, interrupt management, memory management, exception handling, software timer, linked list, message queue, semaphore, mutex, event flag and other modules.
- IoT protocol stack:TencentOS tiny provides lwip, AT Adapter, SAL layers and supports different network hardware, such as Ethernet, serial Wi-Fi, GPRS, NB-IoT, 4G and other communication modules. The TCP/IP network protocol stack provides common iot protocol stacks, such as CoAP and MQTT, to support terminal services to quickly access Tencent Cloud.
- security framework:TencentOS tiny provides a complete security solution to ensure the security of iot terminal data transmission and device authentication. The DTLS and TLS security protocols provided by the security framework reinforce the transport layer of COAP and MQTT, which can ensure the security authentication and data encryption of the Internet of Things terminal when connecting with Tencent Cloud; In addition, for low-resource terminal hardware, the security framework also provides a key authentication scheme with Tencent Cloud IoTHub to ensure that resource-limited devices can also achieve device security authentication to a certain extent.
- Component framework:TencentOS tiny provides a series of components such as file system, KV storage, AD hoc networking, JS engine, low-power framework, device framework, OTA, debug toolchain, etc., for users to choose based on service scenarios.
- Open API (planning and development):TencentOS tiny will provide open API functions on the protocol middleware and framework layer, which is convenient for users to call middleware functions, so that users do not need to care too much about the specific implementation of the middleware, and quickly connect with Tencent Cloud to achieve the needs of the cloud on the terminal business, hoping to minimize the development cycle of terminal iot products and save development costs.
Advantages of TencentOS tiny
small size
- Minimum kernel:RAM 0.6KB,ROM 1.8KB。
- Typical LoraWAN and sensor applications:RAM 3.3KB,ROM 12KB。
low power consumption
- Minimum sleep power consumption as low as 2uA。
- Supports peripheral power management framework to help developers reduce device power consumption and extend device life.
Rich IoT components
- Integrate mainstream IoT protocol stacks (MQTT, CoAP, LoRaWAN, NB-IoT, etc.).
- A variety of communication modules SAL layer adaptation framework, reduce network hardware adaptation time cost.
- Support OTA upgrade.
- Provide easy-to-use end cloud API to accelerate user business access to Tencent Cloud.
A reliable security framework
- Diversified security grading schemes.
- Balance security needs with cost control.
Good portability
- The kernel and IoT components are highly decoupled, providing a standard adaptation layer.
- Provide automated migration tools to improve development efficiency.
Convenient debugging means
- Provides the cloud last screen debugging function.
- On-site fault information is automatically uploaded to the cloud platform to facilitate debugging and analysis by developers.
TencentOS tiny code directory description
TencentOS tiny Migration Guide
- TencentOS tiny Migration Guide (KEIL version)
doc/10.Porting_Manual_for_KEIL.md · Tencent Open Source/TencentOS-tiny – Gitee.com
- TencentOS tiny Port Guide (IAR version)
doc/11.Porting_Manual_for_IAR.md ·Tencent Open Source/TencentOS-tiny – Gitee.com
- TencentOS tiny Port Guide (GCC version)
doc/12.Porting_Manual_for_GCC.md ·Tencent Open Source/TencentOS-tiny – Gitee.com
- TencentOS tiny Migration Guide (based on MDK pack)
tools/mdk_pack/Documentation/README.md · Tencent Open Source/TencentOS-tiny – Gitee.com
- TencentOS tiny Port Guide (Based on STM32 CubeMx)
tools/STM32CubeMX_pack/Documentation/README.md · Tencent Open Source/TencentOS-tiny – Gitee.com
TencentOS tiny Development Guide
- TencentOS tiny kernel Development Guide
doc/04.Development_Manual.md · Tencent Open Source/TencentOS-tiny – Gitee.com
- TencentOS tiny API reference
doc/05.SDK_Manual.md · Tencent Open Source/TencentOS-tiny – Gitee.com
- TencentOS tiny Interconnects with Tencent Cloud IoTHub development Guide
doc/08.QCloud_IoTHub_Quick_Start.md · Tencent Open Source/TencentOS-tiny – Gitee.com
TencentOS tiny custom development board
- TencentOS-tiny Custom development board starter guide
doc/15.TencentOS_tiny_EVB_MX_Plus_Quick_Start.md ·Tencent Open Source/TencentOS-tiny – Gitee.com
You can read more on your own.