A big player in the HaaS technology community-a technical madman who focuses on RTOS measurement

Click to view event details: https://t.csdnimg.cn/L4B8

HaaS technology community

In the context of the diversification of IoT solutions and the fragmentation of scenes, based on the experience of hundreds of millions of devices on the Alibaba Cloud IoT, the Alibaba Cloud IoT team has launched HaaS, an innovative platform that accelerates AIoT small and medium developers. HaaS (Hardware as a service) hardware as a service. By providing users with standard hardware in IoT scenarios and software drivers and functional modules embedded in the hardware, it provides users with efficient development services for IoT devices. It is designed to help AIoT small and medium-sized developers focus on their business, so that they can quickly assemble software and hardware building blocks at a low threshold, realize the safe migration of equipment to the cloud, and accelerate the iteration of AIoT innovation.

The HaaS device is equipped with AliOS Things, a fully open source IoT operating system from the Ali IoT team. The operating system was released at the 2017 Hangzhou Yunqi Conference. It is a highly scalable IoT operating system in the HaaS family for the IoT field. It is currently open source to version 3.1.

The HaaS technology community aims to promote the IoT operating system AliOS Things and the HaaS cloud nail full-link solution. HaaS technology covers the IoT operating system AliOS Things, JS light application, HaaS UI and other software building blocks, as well as HaaS standard hardware and peripheral ecosystems and other hardware building blocks. HaaS provides developers with an efficient way to develop building blocks.

 

Community Star Recommendation

Yin Xin has been engaged in embedded related work. In the past two or three years, he has mainly researched embedded RTOS dimensional measurement related technologies, determined to develop a dimensional measurement tool based on RTOS suitable for embedded developers, and contributed a lot of code To the AliOS Things and HaaS technology communities. At the same time, I contributed a series of learning experiences about AliOS Things dimension testing in the HaaS technology community.

4116057641553710406.JPG

 

The road to technological growth

Like the technological growth path of the majority of embedded developers, I also started from Hello World to light up digital tube LEDs, drive sensor peripherals, operate LCD displays, and connect various devices via WIFI/BT. In this process, we need to continuously learn a series of knowledge of hardware circuits, computer architecture, compilation, operating systems, network protocols, etc., and deeply feel the breadth and depth of the embedded development stack.

During the last two or three years of project development, two things happened, which made me turn my attention to the design of the embedded RTOS dimension measurement tool.

The first thing is that I am still in Huawei's mobile phone department, working on the development of the underlying device drivers for mobile phones. Once there was a need to transplant the sensor driver on the large core of the mobile phone (running linux) to the small core (running embedded RTOS). The driver that has been verified to run very stably has been verified by a large number of times, and a problem occurred on the RTOS, and the system ran for a while Time is dead. After the painful constant printing-recompiling-burning chip positioning process, two or three days passed, and it was found that it was a typical memory leak problem. It was a new bug in the porting process and several lines of code were modified. After solving. At that time, I thought, although the operating scene on embedded RTOS is not as complicated as Linux, once a bug appears, we don't have a handy tool to quickly locate it. There is a huge gap between this and Linux. There is no need to say more about the power of Linux. Only in terms of tools, there are enough dimensional measurement tools to support. For example, memcheck in Valgrind can easily detect memory leaks and use after releasing memory. (Use-after-free) and so on. But on RTOS, we don’t have such a tool, and there is relatively little support on the Internet. However, I think the dimension measurement tool is also valuable for embedded development. At least it reduces the time for locating bugs, which is also a huge improvement in work efficiency. !

The second thing made me completely convinced of the value of RTOS measurement tools. In a smart speaker project, we encountered what may be the most complicated usage scenario in the history of RTOS-100+ threads, multi-core, joint development by dozens of people, WIFI/BT multi-protocol stack, cloud link, voice wake-up and recognition, Numerous interactive scenarios... In the process of product mass production testing, we constantly encountered a series of stability and performance problems such as crashes, memory steps, memory leaks, system freezes, and network throughput performance degradation. From the beginning, we can only rely on printing positioning problems, and then we can locate more than 80% of the problems in minutes. This huge improvement in work efficiency is based on a set of dimensions suitable for embedded RTOS developed from 0 to 1. Test tools. Based on AliOS Things, we can quickly locate the bug, locate the memory leak, and locate the memory point without connecting to the emulator, without printing. Without this set of dimensional measurement tools, the development difficulty of the entire project is unimaginable.

I think with the rapid popularity of the Internet of Things, embedded RTOS as the operating system of the Internet of Things will definitely receive more and more attention. This year, I was fortunate enough to encounter the HaaS platform of Alibaba Cloud, which provides developers with an efficient way to develop building blocks and represents the development direction of the Internet of Things. The RTOS used by HaaS is AliOS Things. Therefore, I also plan to contribute the code of the dimensional measurement tool and the article series of the RTOS dimensional measurement tool to the HaaS technology community, hoping to help the majority of IoT developers and enthusiasts in the HaaS technology community.

 

Developer's Message

We know that dimensional measurement tools can help embedded developers improve the efficiency of bug resolution, and then focus on their own affairs and improve work efficiency. At the same time, no matter how good a dimensional measurement tool, its scope of action is also limited, so I hope everyone ( (Including myself) continue to repair the internal code of the code, write beautiful code, no bugs is our pursuit!

Guess you like

Origin blog.csdn.net/HaaSTech/article/details/112592020