Tencent's IoT operating system is officially open source, with a minimum size of only 1.8 KB

On September 18th, Tencent announced that it would open source TencentOS tiny, a lightweight real-time operating system for the Internet of Things independently developed. Compared with other systems on the market, Tencent TencentOS tiny is extremely competitive in terms of resource occupation, equipment cost, power consumption management, and security and stability. The open source of the system can greatly reduce the cost of IoT application development and improve development efficiency. At the same time, it supports one-click cloud access and docking with massive cloud resources.

In recent years, Tencent’s pace of open source has been accelerating. As of September, Tencent’s independent open source projects have reached 84 and the number of stars has exceeded 240,000. In the field of Internet of Things, Tencent not only continues to build a benign Internet of Things ecosystem through open source and openness, but also the Tencent Internet of Things team has made many targeted optimizations in terms of product ease of use and development efficiency.

The Tencent Internet of Things team stated: "Open source Tencent's self-developed Internet of Things operating system TencentOS Tiny, which not only can share Tencent’s technology and experience in the Internet of Things with global developers, but also can draw on outstanding achievements and innovations in the global Internet of Things. The concept ultimately promotes the prosperity of the overall IoT ecosystem and the arrival of the era of intelligent connection of all things."

For more introduction about Tencent TencentOS tiny, please refer to the following technical blog.

Introduction to TencentOS Tiny
640
TencentOS tiny is a real-time operating system developed by Tencent for the Internet of Things field. It has the characteristics of low power consumption, low resource consumption, modularity, safety and reliability, and can effectively improve the development efficiency of IoT terminal products. TencentOS tiny provides a streamlined RTOS kernel. The kernel components can be cut and configured, and can be quickly transplanted to a variety of mainstream MCUs (such as the full range of STM32) and module chips. Moreover, based on the RTOS kernel, it provides a wealth of IoT components, and integrates mainstream IoT protocol stacks (such as CoAP/MQTT/TLS/DTLS/LoRaWAN/NB-IoT, etc.), which can help IoT terminal devices and businesses quickly access Tencent Cloud IoT platform.

  1. TencentOS tiny overall architecture
    640

TencentOS tiny main architecture diagram, from bottom to top mainly includes:

CPU library: CPU IP core architecture supported by TencentOS tiny, currently mainly supports ARM Cortex M0/3/4/7.

Driver management layer: Including board support package (BSP, mainly developed and maintained by MCU chip manufacturers), hardware abstraction (HAL, mainly provided by TencentOS tiny to facilitate the adaptation and transplantation of different chips), device drivers (Drivers, such as Wi -Fi, GPRS, LORA and other module drivers).

Kernel: TencentOS tiny real-time kernel includes task management, real-time scheduling, time management, interrupt management, memory management, exception handling, software timers, linked lists, message queues, semaphores, mutex locks, event flags and other modules.

IoT protocol stack: TencentOS tiny provides lwip, AT Adapter, SAL layer, supports different network hardware, such as Ethernet, serial port Wi-Fi, GPRS, NB-IoT, 4G and other communication modules. The TCP/IP network protocol stack provides commonly used 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 in order to ensure the security of IoT terminal data transmission and device authentication security. The DTLS and TLS security protocols provided by the security framework strengthen the transmission layer of COAP and MQTT to ensure that IoT terminals realize security authentication and data encryption when they are connected to Tencent Cloud. In addition, for low-resource terminal hardware, the security framework also provides The key authentication scheme of Cloud IoTHub ensures that resource-constrained 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, self-organizing network, JS engine, low-power framework, device framework, OTA, debugging tool chain, etc., for users to choose according to business scenarios.

Open API (under planning and development): TencentOS tiny will provide open API functions on the protocol middleware and framework layer to facilitate users to call middleware functions, so that users do not need to care too much about the specific implementation of middleware, quickly docking with Tencent Cloud, and realizing terminal services The demand for going to the cloud is expected to minimize the development cycle of terminal IoT products and save development costs.

Sample application: sample code provided by TencentOS tiny, module test code, etc., for user reference.

  1. TencentOS tiny advantage
    (1) small size

Minimum core: RAM 0.6KB, ROM 1.8KB Typical LoraWAN and sensor applications: RAM 3.3KB, ROM 12KB

(2) Low power consumption

Lowest sleep power consumption as low as 2 uA Support peripheral power management framework

(3) Rich IoT components

Integrate mainstream IoT protocol stack and multiple communication module SAL layer adaptation framework; support OTA upgrade, provide simple and easy-to-use client cloud API, accelerate user business access to Tencent Cloud

(4) Reliable security framework

Diversified security classification schemes balance security requirements & cost control

(5) Good portability

The kernel and IoT components are highly decoupled, providing a standard adaptation layer, providing automated migration tools, and improving development efficiency

(6) Convenient debugging methods

Provide cloud-based last-screen debugging function. Fault site information is automatically uploaded to the cloud platform, which is convenient for developers to debug and analyze

  1. TencentOS tiny joins hands with partners to build IoT ecosystem
    640

TencentOS tiny currently supports mainstream MCUs such as STM32, NXP, Huada Semiconductor, National Technology, GD32, Nordic, and TI. Currently, two sets of official custom development board designs have been completed to support the kernel migration of the full range of STM32 NUCLEO official evaluation boards. TencentOS tiny will work with partners to provide better IoT terminal software solutions for IoT terminal manufacturers, facilitating various IoT devices to quickly access Tencent Cloud, jointly expanding the IoT ecosystem, and better supporting smart cities, smart water meters, and smart homes , Smart wear, car networking and other industry applications. https://blog.51cto.com/14830013/2549657
TencentOS tiny code directoryTencentOS
tiny code directory description

TencentOS tiny reference documentation

  1. Porting Guide
    TencentOS tiny Porting Guide (KEIL version)
    TencentOS tiny Porting Guide (IAR version)
    TencentOS tiny Porting Guide (GCC version)

  2. TencentOS tiny Development Guide
    TencentOS tiny Kernel Development Guide

TencentOS tiny API reference

TencentOS tiny docking Tencent Cloud IoTHub development guide

TencentOS tiny open source agreement
TencentOS tiny follows the BSD-3 open source license agreement

TencentOS tiny supported IoT platform
TencentOS tiny can support IoT terminal devices and businesses to quickly access Tencent Cloud IoT platform IoT Explorer.

TencentOS tiny combined with Tencent Cloud Internet of Things development platform IoT Explorer has built the ability to connect communication chips to cloud development. With the largest domestic LoRa network that has been built, Tencent has completely opened up the development of chip communications, network support services, and physical equipment. Defined management, data analysis, and multi-scenario application development and other full-chain IoT cloud development service capabilities, redefining the development model of the Internet of Things, and helping hundreds of millions of devices to access Tencent Cloud services in multiple ways, multiple modes and low thresholds. As a service provider of IoT infrastructure, Tencent will continue to build an open IoT ecosystem and promote the healthy development of the IoT ecosystem.

TencentOS tiny quick start reference
TencentOS tiny joint partners designed a custom development board, developers can quickly start learning based on the custom development board, click to download the reference document
TencentOS-tiny Custom Development Board Getting Started Guide

Contribute the code
in your own GitHub account, Fork TencentOS tiny open source project;

Clone a TencentOS tiny code locally according to your needs;

After you modify or add new features, push to the remote branch of your fork;

Create a pull request and submit a request for integration to the official development branch of TencentOS tiny;

The TencentOS tiny R&D team will review the code regularly and join it after passing the test.

640?wx_fmt=gif

Guess you like

Origin blog.51cto.com/14308903/2550978