当前位置:网站首页>Introduction to China Mobile oneos development board
Introduction to China Mobile oneos development board
2022-06-30 11:22:00 【CoderEnd】
Move middle OneOS Introduction to development board learning
( As a professional lighting enthusiast , Before learning any development board, you should find the learning materials first , And then learning OneOS The kernel part of , Peripheral part , System components, etc )
OneOS

OneOS It is a lightweight operating system launched by China Mobile in the field of Internet of things , With tailorable 、 Cross platform 、 low power consumption 、 High safety and other characteristics , Support ARM Cortex-A and Cortex-M、MIPS、RISC-V And other mainstream chip architectures , compatible POSIX、CMSIS And so on , Support Javascript、MicroPython And other high-level language development modes , Provide graphical development tools , Can effectively improve the development efficiency 、 Reduce development costs , Help users develop stable and reliable products quickly 、 Secure and easy-to-use Internet of things applications .
OneOS Online development document
OneOS framework
OneOS The overall architecture adopts hierarchical design , The main body is driven by 、 kernel 、 Components 、 The security framework consists of . Adopt the mode of one lightweight kernel and multiple system components , Plus the adaptation support of Shanghai's hardware , send OneOS Extremely scalable and easy to use . The overall architecture of the operating system is shown in the figure below :
kernel
Minimalist design ideas , It has excellent real-time response characteristics while reducing resource overhead , Support multi task management and scheduling , Provide a wealth of IPC Strategy , Such as semaphore 、 The mutex 、 Message queue 、 Mailbox, etc , Provides efficient and reliable RTOS Kernel support .
drive
Provide a wealth of BSP Plate level support , It is suitable for more than 1000 models MCU, Support ARM、RISC-V、MIPS、Xtensa、C-Sky And other mainstream architectures , Through abstract design , Manage all peripherals as devices , It greatly improves the convenience of application development .
Components
Provide including network protocol 、 Cloud platform access 、 Remote upgrade 、 file system 、 Log system 、 The test framework 、 Debugging tools and many other general service capabilities , It also includes complete solutions for professional application fields such as high-precision positioning . Due to the modular design , So the components are independent of each other , Low coupling , Easy to cut flexibly .
Safety management framework
The terminal side implements lightweight active detection and trust measurement based on trust root , Provide lightweight cryptographic algorithm library and lightweight key management and key agreement mechanism , Achieve end-to-end secure communication . The platform side is based on big data situation awareness technology , Help users create end-to-end security profiles , Make different security management policies according to the application scenarios .
OneOS characteristic
Flexible tailoring
Preemptive real-time multitasking RTOS kernel , Support multitasking 、 Software timer 、 Semaphore 、 The mutex 、 Message queue 、 Mailbox and real-time scheduling ,RAM and ROM Minimal resource footprint . Flexible cutting , With rich components , Adapt to different customer needs .
Cross chip platform
Applications can be seamlessly ported , Greatly improve the software reuse rate . The mainstream chip architectures supported are :ARM Cortex-A and Cortex-M、MIPS、RISC-V etc. . Support almost everything MCU And the mainstream NB-IOT、4G、WIFI、 Bluetooth communication chip .
Rich components
Provide rich component functions , Such as interconnection 、 End cloud integration 、 Remote upgrade 、 Indoor and outdoor positioning 、 Low power consumption control, etc . At the same time, it provides open third-party component management tools , Support to add various third-party components , So as to expand the system functions .
Easy to develop
One stop development tool OneOS Studio It can be used to configure the functions of the kernel and components , Support free cutting of components , Let the system be built as a building block on demand , At the same time, it can help users track and debug , Fast location problem .
Low power design
Support MCU And power management of peripheral devices , Users can select corresponding low-power schemes according to business scenarios , The system will automatically adopt the corresponding power consumption control strategy , Sleep and frequency and voltage regulation , Effectively reduce the overall power consumption of the equipment .
Safety design
For the limited resources of IOT devices 、 Massive connections 、 Network heterogeneity, etc , Reference equal protection 2.0 And 《GB/T 36951-2018 Information security technology Security technical requirements for Internet of things sensing terminal application 》 Other norms , In system security 、 Communication security 、 Data security and other aspects provide multidimensional security protection capabilities .
OpenCPU Development framework
Support communication SoC chip OpenCPU Development mode , It provides developers with an efficient development method to shield the differences of complex communication chips , Provide a unified development experience . meanwhile , Under the same business function , Reduce the additional equipment MCU Overhead and memory usage , Significantly reduce equipment costs .
license agreement
OneOS Code follows Apache 2.0 license Open source licenses .
Development board recommendation
Million coupling creation

Wanlian development board , It is based on STM32,NXP Such as a series of chip development board , The utility model is composed of a core board with different processing cores and a universal coupling bottom board . The universal coupling backplane is universal , The core board currently has STM32L475VGT6、STM32F401VET6 And NXPLPC55S69 Three models , Users can select different core boards according to their needs .
Introduction to universal coupling Tiangong
Wanlian Tiangong STM32F103
Designed for beginners . It's actually a punctual atom STM32F103 Development board , To learn and use the tutorial, you can refer to the tutorial on the use of punctual atoms .
China Mobile OneOS Open the box evaluation of the development board
2022 Mid year shift and punctual atom introduction OneOS Study the tutorial .
OneOS Getting started with the kernel series
OneOS Introductory device driver series
OneOS Introductory component series
Ten thousand couples open things
The main control chip of wancoupler Qiwu development board is ( domestic ) Smart MM32F3277G8P, On board AHT20 Temperature and humidity sensor , On board ESP8266 WiFi modular , Convenient access to the Internet , On board USB-TTL Interface , Convenience and PC Connect for serial communication .
Specially designed for beginners , Provide comprehensive basic hardware capabilities , It also covers the manual operation instruction tutorial , It is convenient for developers to understand OneOS The charm of the system .
Hardware resources Interface is rich Easy to get started
Interface class
1.1 On board USB-TTL Interface : Qiwu development board Debug UART Output interface , The hardware interface is USB Type-C Female seat , The directly connected computer device is identified as CH340 A serial port , Can be used as 5V Power supply interface .
1.2 MCU USB0 Interface :MM32F3277 USB Interface , Support USB2.0 Full-Speed( Full speed ). The hardware interface is USB Type-C Female seat , Can be used as 5V Power supply interface .
1.3 Screen interface : This interface can use the TFT1.8 Inch screen , You can also use 114 Inch or 2.0 " IPS The screen , Or use OLED The screen , For the connection method, see the subsequent interface explanation .
1.4 Camera interface : This interface can be connected to camera photoelectric sensor , Small drill wind Hardware binary camera compatible with zhufei technology 、 Total drill wind global shutter grayscale camera .
1.5 SWD Debug interface : This interface connects MM32F3277 Chip SWD Debug pin , Which can directly use zhufei technology DAP Debug the downloader and ARM Debug the downloader to debug and download .
1.6 JTAG Debug interface : The standard JTAG Interface , You can use Jlink The debugging Downloader is directly connected to debug and download .
1.7 RTC The battery : Button battery snap , Button batteries can be used as chips RTC Power supply .
1.8 Power expansion interface : In order to facilitate the user's wiring test , Reserved 3V3、5V And GND Interface .
1.9 I0 Expand the interface :2.54mm Spaced double row pin connector , The part on the chip IO Pin , Contains some common functions such as ADC、PWM、UART And SPI etc. .
1.10 NRF2401 Interface :2.54mm Spaced double row seat interface , You can directly use the common SPI Interface NRF24L01 modular .
1.11 SD(TF) cassette :SD Card slot , You can use SD(TF) card .
Module class
2.1 Buzzer : Active buzzer , Using chip B5 Pin control , have access to PWM Mode tuning .
2.2 AHT20 Temperature and humidity sensor : The temperature and humidity sensor on the development board , Use IC Mode to drive the corresponding chip B10/B11 Pin .
2.3 ESP8266 WiFi modular : Wireless on the development board WiFi modular , Use UART Mode to drive the corresponding chip BO/B1 Pin .
Key class
3.1 User key : Connect to MCU Of D12/D140/15 Pin , When pressed, the corresponding pin is at low level .
3.2 Function buttons /RST Key : Connect to MCU Of RST Pin , When pressed, the chip reset pin level is pulled low to enter reset .
3.3 Function buttons /BOOTO Key : Connect to MCU Of H3 Pin , When MCU When entering the running state from the reset state , If this key is pressed , be MCU Get into ISP Boot mode .
Jumper class
Serial port selector switch : This jumper switch can select Debug UART Of Tog Information from SWD Debug the interface output from onboard USB-TTL Interface output .
Indicator lights
RGB Indicator light :RGB Lamp beads ,RED Corresponding chip A1 Pin ,GREEN Corresponding chip A2 Pin ,BLUE Corresponding chip A3 Pin , The corresponding pin can be used PWM perhaps IO Way driven .
Power indicator : On the motherboard 3V3 Power supply indicator , The normal yellow light indicates that the power supply is normal .
Learning materials of Wanlian Qiwu development board
MM32 Study
Smart microelectronics was founded in 2011 year , It is commonly used in China 32 position MCU Product and solution providers .
Smart microelectronics MCU Products with MM32 For the identity , be based on Arm Cortex-M Family kernel , Independent research and development of software and hardware and ecosystem .
Smart MM32 series MCU Manual routines Pack Package download guide
Smart microelectronics MM32 MCU Use sharing Video tutorial
Zhufei technology open source library
Wanlian Qiwu development board is an Internet of things development board designed and produced by zhufei technology . So when learning to use , You can find relevant open source materials
Flying technology MM32F327XG8P Open source library
Wanlian Qiwu development board routine data
Development board routine data collection Extraction code :8f9u
Development board support MDK-Keil Development
The Qiwu development board provides Keil Of Pack package , Use Keil Development 32 Bit chip , For most developers, there is a certain foundation , I can get started very quickly .
Engineering formwork
OneOS Official routine
/** *********************************************************************************************************************** * Copyright (c) 2020, China Mobile Communications Group Co.,Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. * * @file main.c * * @brief User application entry * * @revision * Date Author Notes * 2020-02-20 OneOS Team First Version *********************************************************************************************************************** */
#include <board.h>
#include <timer/clocksource.h>
static void user_task(void *parameter)
{
int i = 0;
for (i = 0; i < led_table_size; i++)
{
os_pin_mode(led_table[i].pin, PIN_MODE_OUTPUT);
}
while (1)
{
for (i = 0; i < led_table_size; i++)
{
os_pin_write(led_table[i].pin, led_table[i].active_level);
os_task_msleep(200);
os_pin_write(led_table[i].pin, !led_table[i].active_level);
os_task_msleep(200);
}
}
}
int main(void)
{
os_task_t *task;
task = os_task_create("user", user_task, NULL, 1024, 3);
OS_ASSERT(task);
os_task_startup(task);
return 0;
}
边栏推荐
- dplyr 中的filter报错:Can‘t transform a data frame with duplicate names
- 【leetcode 16】三数之和
- [STL source code analysis] container (to be supplemented)
- Rejuvenated Dell and apple hit each other, and the two old PC enterprises declined rapidly
- Iptables target tproxy
- Train an image classifier demo in pytorch [learning notes]
- What is erdma as illustrated by Coptic cartoon?
- [understanding of opportunity -34]: fate is within the light cone
- The life, working principle and application of electrochemical oxygen sensor
- 【小程序实战系列】小程序框架 页面注册 生命周期 介绍
猜你喜欢
![[STL source code analysis] iterator](/img/e8/7c69cf6e96ecfa053494397a21eff0.jpg)
[STL source code analysis] iterator

Jetpack Compose DropdownMenu跟随手指点击位置显示

Time complexity and space complexity

记一次ViewPager + RecyclerView的内存泄漏

Dickinson's soul chooses its companion

达梦数据冲刺科创板,或成A股市场“国产数据库第一股”

Oceanbase installation Yum source configuration error and Solutions

The jetpack compose dropdownmenu is displayed following the finger click position

启明星辰集团运维安全网关(堡垒机)再次夺得榜首!

10 reasons for system performance failure
随机推荐
LVGL 8.2 Checkboxes as radio buttons
暑假学习记录
第一届中国数字藏品大会即将召开
The precision problem of depth texture in unity shader - stepping pit - BRP pipeline (there is no solution, it is recommended to replace URP)
AMS源码解析
Oracle NetSuite 助力 TCM Bio,洞悉数据变化,让业务发展更灵活
从开源项目探讨“FPGA挖矿”的本质
Collectors. Tomap application
国产自研系统的用户突破4亿,打破美国企业的垄断,谷歌后悔不迭
【STL源码剖析】容器(待补充)
Train an image classifier demo in pytorch [learning notes]
ESP32-C3入门教程 IoT篇⑤——阿里云 物联网平台 EspAliYun RGB LED 实战之批量生产的解决方案
Oceanbase installation Yum source configuration error and Solutions
SQL必需掌握的100个重要知识点:分组数据
[机缘参悟-34]:光锥之内皆命运
Dickinson's soul chooses its companion
[STL source code analysis] iterator
100 important knowledge points that SQL must master: using subquery
The first China Digital Collection conference will be held soon
Esp32-c3 introductory tutorial question ⑨ - core 0 panic 'ed (load access fault) Exception was unhandled. vfprintf. c:1528









