Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

What is Hongmun OS? What are the characteristics?


May 30, 2021 Article blog


Table of contents


preface

Tip: In August 2019, Huawei launched Hongmun HarmonyOS and used it in Glory Smart Screen, HDC 2020, And Wang Chenglu, President of Huawei Consumer Business Software, will give a speech on "Together, Share HarmonyOS Ecology" on September 11th, which will share the new developments released by HarmonyOS 2.0 and the value it brings to people and the industry.

Tip: Here's the body of this article, and here are some examples to refer to

I. What is Hongmun OS?

Huawei's newly launched HarmonyOS operating system, which has been developed independently for more than a decade, is a fully scenario-distributed OS based on a microcore that scales on demand for broader system security. C urrently primarily used in the smart Internet of Things, it can be extended to smartphones when Android is not available in the future. HarmonyOS has the four advantages of distribution architecture, kernel security, ecological sharing, and smooth operation, and the two core elements of The OS ecosystem include its own micro-core structure and Ark compiler.

Second, the characteristics of HarmonyOS

1. HarmonyOS design and concept

Hongmun OS is the new micro-kernel-based distributed, full-scene-oriented operating system. T he microcore of Hongmun OS has evolved to sel4, as shown in the figure below (Figure 1). T he core of seL4 is very small, with less than 9000 lines of C code. F or micronnels, process space is isolated with memory snap-in MMU, and processes without authorization cannot access the space of other processes, preventing malicious programs from stealing data from other processes. T he Hon Mun OS Core retains only basic resource management such as processing time, memory, communications, and outages, and all other functions are managed by the application layer to provide functionality as a service. Interprocess communication IPC is used between services.  What is Hongmun OS? What are the characteristics?1
Hongmun OS achieves modular coupling for flexible deployment of different devices, the first time a distributed architecture has been used for end OS for a seamless, cross-terminal collaboration experience, the adoption of a defined delay engine and high-performance IPC technology to make the system smoother, its micro-core-based architecture can reshape end device security, and a unified IDE supports one-time development, multi-ended deployment for cross-terminal ecological sharing.

2. HarmonyOS Innovation

2.1 Internal decoupling In order to adapt to different hardware, Hongmun OS decoupling each layer internally, forming thousands of modules, each module's interface all written with the header file, labeled to explain what kind of equipment the module is. F lexible deployment for different devices, such as smart screens, wearables, locomotives, speakers, mobile phones, and more, while innovative distributed softbus allow hardware with different functions to work with each other. Such as traditional cameras, televisions, audio and other equipment originally independent of each other, the use of Hongmun's distributed soft bus, these devices can be virtualized into camera modules, display modules, external modules, and become an organic whole, users do not need to set up additional can call a variety of functions on demand, hardware terminals form a mutual collaboration.

2.2 Virtual hardware innovatively breaks the boundaries of traditional terminal hardware, so that physical hardware such as monitors, processor chips, memory, etc. in mobile phones can be combined into virtual hardware function modules in different hardware forms through software as needed.

2.3 Development of multi-ended deployments at once Through the abstraction and decoupling of user interface UI controls, the atomization of business logic, and the adaptation of different applications enable rapid development and multi-ended deployment. Hongmun OS from the beginning of the design for many, terminals, such as edge computing, IoT, servers and so on.

2.4 Distributed microcore The distributed characteristics of The Microcore of Hongmun OS facilitate the ecological synergy of IoT. E xisting operating systems only correspond to a certain kind of hardware, such as Windows only x86 PC, iOS corresponding to Apple mobile phone, can not meet the needs of many different kinds of terminals in the IoT era, can not develop an operating system or application for each hardware, resulting in different hardware terminal ecology can not share collaboration, development efficiency is low. As a result, the advantages of Hongmun OS in IoT applications are even more obvious.

3. Analysis of the characteristics of the Ark Compiler

Ark Compiler was announced by Huawei at the P30 series of mobile phone launches in April 2019 and is positioned in a multi-terminal system that will help the Hongmun operating system enter deeper layout edge computing, servers and other fields, greatly improving the operational efficiency of Android on the mobile phone side.

3.1 Compilation point advance Ark compilers are able to compile Java code into machine language before application execution, freeing up a lot of hardware resources, which is especially important for multi-terminal, especially IoT edge computing. O vercomes the inefficiency of program execution caused by traditional compiler side translation and the long installation time of Android hypervisors. The Ark compiler advances the compilation process to the development stage, developers can optimize the code through the Ark preset algorithm, and develop their own code optimization algorithms, which may even migrate to the cloud in the future.

3.2 The development of environment-friendly development environment-friendly is an important factor for Hongmun to build a good ecology. C ompatible with Java and C, C, and other languages, enhance the performance of Hongmun OS, and with its own Kirin, Yipeng and other hardware architectures, forming a similar Microsoft and Intel alliance hardware and software landscape. Overcome the problem of inefficient execution across languages under traditional compilers when developing applications in a mix of Java and C/C+ and other languages.

 What is Hongmun OS? What are the characteristics?2

4. Research on the application of HarmonyOS

The emergence of Hon Mun OS will lead to a three-legged stand-off with iOS and Android. A lthough Huawei's Hongmun OS is currently only used as a spare for Android in 5G phones, according to publicly available information, Hongmun OS' UI design, system logic, and app installation interface are not significantly different from the EMUI on Huawei phones today, which allows existing EMUI users to get used to the new system as quickly as possible and reduce learning costs. In addition, because Hongmun OS is compatible with Android, the original application can also speed up by more than 60% through the Ark compilation system.

The application area of Hongmun OS is shown in Figure 2. Can be applied to mobile phone proprietary services, smart screen proprietary services, wearables proprietary services, locomotive proprietary services, speaker proprietary services and other fields, but also make these different devices work together to switch devices to achieve seamless integration.

Hongmun OS makes mobile phones, computers, automobiles, smart wear and other devices operating system compatible, is conducive to the Internet of Things upgrade management and compatibility, become the future towards the intelligent society of an operating system.

Combined with 5G with high speed, low latency and wide access, Hongmun OS provides new basic technology support for smartphone and smart wearables, smart self-driving cars, and Internet of Things systems.

Huawei HarmonyOS supports a mix of protocols to adapt different business scenarios, providing developers with the most extensive connectivity with more than 100 categories of control components. Since Huawei has been communicating for more than 30 years, connectivity is inherently a strength, which is to be expected.  What is Hongmun OS? What are the characteristics?3
It's intuitive to sum up Huawei's strategy with a "1 plus 8 plus N".

1: Mobile phone is a core entrance;

8 :P C, tablet, smart screen, locomotive, headphones, speakers, watches, glasses, these eight sizes of screen entrance;

N: Cameras, routers, refrigerators, air conditioners and other N kinds of pan-Internet of Things devices.

HarmonyOS virtualizes the capabilities of each terminal hardware into a pool of ability resources that can be shared, allowing applications to invoke their required hardware capabilities through the system. U nder this architecture, hardware capabilities, similar to a single-word mold in lithography, can be reused indefinitely. Simply put, the terminals implement hardware mutual assistance, resource sharing, the application has the ability to call remote terminals (as convenient as calling local terminals), and users harvest a multi-device super terminal.

end

At first glance, the Hongmun system is at an absolute disadvantage. B ut from the ups and downs of mobile operating systems over the past decade, The System is not without opportunities. In the second quarter of 2007, Saipan systems accounted for 63.75 percent of the market, while Windows Mobile and BlackBerry OS each accounted for about 10

Although the mainstream operating system is mostly monopolized by foreign countries, China's Huawei's HarmonyOS, although a short start, but has many unique advantages, its improved cross-platform functions, support multi-scenario applications, can be used on a variety of devices and platforms, can meet consumer demand for low latency and strong security characteristics, so that it has a broad application prospects.

Between hardware and software, China's industry has always been "hard and soft". A fter all, hardware is easier for consumers to perceive, with a camera, a big screen, users seeing it at a glance, and launches and marketing are good for gimmicks. H owever, the innovation of software, especially the basic software, has a great lag in user perception. Therefore, the investment of enterprises in basic software is often not understood, and even attracted cynicism, which is behind the Chinese industry generally impetuous, quick-made mentality.

From Huawei's history, it is a very lonely company. Farther away, the 80's at the beginning of the start-up agent switch is very profitable, Ren Zhengfei is biased to bet on everything to engage in such a high-risk independent research and development;

If you want to learn the basics of HarmonyOS app development, please stamp it.