当前位置:网站首页>Live Q & A on harmonyos 2.0 source code framework analysis

Live Q & A on harmonyos 2.0 source code framework analysis

2020-12-08 14:12:59 Harmonyos technology community

problem 1: Hello Teacher , Characteristic ability of Hongmeng —— Can distribution allow free communication between light devices , Or must rely on smart phones as a bridge to achieve data exchange and processing ?

answer : At present, according to the information disclosed by Hongmeng , There is no mandatory requirement to use mobile phones as a bridge . That is to say, technically 、 In theory, it is possible to communicate directly between devices . But in fact, from the typical scene of Hongmeng , It is basically designed around the mobile phone as the central node . It's reasonable , There are the following reasons :

1、 Mobile phones are currently the closest device to people , People are used to doing all kinds of things through mobile phones .

2、 Mobile phones are the most convenient rich devices , It's very convenient to manage some light devices through mobile phones ( For example, through mobile phone Sports Health app To manage the data of watch bracelets 、 Program ).

3、 Huawei's core interests are still in mobile phones , The core advantage of Hongmeng in the early stage also lies in the hundreds of millions of existing users of Huawei mobile phones , So it's easy to deploy with mobile phones as the center .

 

problem 2: Andrew just came out , People who understand a little bit take off . For Hongmeng , Now developers should be able to do something to prepare , Including the current hot AI , What is the connection between the Internet of things and Hongmeng

answer : First of all, we can confirm , Hongmeng OS There will certainly be a wave of opportunity points and increments in the early days of , So there will be a group of people being taken to fly , This is also one of the advantages of Hongmeng's early entry .

secondly , Artificial intelligence 、 The connection between the Internet of things and Hongmeng is very close . Because we say Hongmeng is AIoTOS, there AIoT Namely AI( Artificial intelligence ) and IoT( The Internet of things ). therefore AI and IoT It will be a component of Hongmeng , It will also be the core ability of Hongmeng Yuansheng support ( The current release of Hongmeng is an early version , Maybe not yet , But there must be AI and IoT Of components of ).

 

problem 3: Hongmeng is relative to linux What are the advantages ? What is the value of Hongmeng operating system ?

answer : Hongmenghe linux Having different levels of .linux More of a os kernel, That's the kernel ,linux More attention is paid to the part of function and resource management , partial “ infrastructure ”. And Hongmeng is a complete operating system , To be complete , At least kernel+framework+ Application framework + development tool , So Hongmeng is benchmarking with Android in system architecture . I see some information saying , The kernel released later will use linux instead of liteos, From here, we can see Hongmeng and linux Different levels of .

The value of Hongmeng operating system is mainly for AIoT Of , Hongmeng's biggest innovation is to realize the virtual terminal of multiple devices through soft bus . This idea was actually first adopted in cloud computing platforms , So called device virtualization technology . But Huawei uses this idea in multiple physical devices , It can be said that it is a great innovation and challenge for the end-to-side equipment development system . So Hongmeng is relative to android and ios There are essential differences and innovations . You can go to see me at 51cto A large number of free courses released by Hongmeng community of the College , There are details about these .

 

problem 4: What is Hongmeng's compiler framework ; How to use the entire compiler framework to achieve simple MCU Platform migration , Such as STM32 ?
answer : Hongmeng OS The source code framework is more complex , The parts related to transplantation mainly include 2 large : One is kernel Inside , One is the driver and bsp.

If you want to transplant , First of all, we should understand the organization structure and configuration of Hongmeng source code , This is mainly about makefile、nijia、python Script and so on .

Then, in porting, the key is to pay attention to the differences between the target platform and the official support platform in Hongmeng source code , This has a great impact on the difficulty of transplantation . for example harmonyos2.0 At the start of the game, the default support was 3 The hardware of Hisilicon , The chips are arm cortex-A7 and riscv Of , So we're going to this for the moment 2 It's a lot easier to port on a chip with one kernel . But if you want to transplant it to chips with other cores, it will be much more difficult , Need to understand the underlying assembly part of the target platform .

 

author : Zhu Youpeng

Want to know more about , Please visit : 51CTO Hongmeng technology community built by Huawei official strategic cooperation https://harmonyos.51cto.com


版权声明
本文为[Harmonyos technology community]所创,转载请带上原文链接,感谢
https://chowdera.com/2020/12/20201208141208389i.html