4、电车环境信息采集开发
4.1、HaaS EDU K1介绍与开发环境搭建
4.1.1、HaaS EDU K1介绍
4.1.2、开发环境搭建
注意点: Windows 系统下请以管理员身份 运行VS Code,避免因为python权限问题导致创建失败。
4.1.2.1、VSCode(Visual Studio Code)安装:
https://developer.aliyun.com/article/769744?spm=a2c6h.12873639.article-detail.7.137d18ffh0kGJh
①、安装Python
②、安装aos-cube
python换成国内源:
pip config set global.index-url http://mirrors.aliyun.com/pypi/simple/
pip install aos-cube
python -m pip install --upgrade pip
pip install aos-cube
③、安装Git
④、安装alios-studio或haas-studio插件
VS Code设置中文:
Ctrl+Shift+P
configure display language
4.1.2.2、AliOS Things源码:
4.1.2.3、USB转串口驱动 CH340 安装
4.1.2.4、helloworld示例工程烧录
aos create project -b <board> -t <solution> -d <destdir> <solution_name>
aos create project -b haaseduk1 -t helloworld_demo -d ./ helloworld
①、helloworld工程创建
②、helloworld工程编译
③、helloworld程序烧录
④、查看打印信息
4.2、AliOS Things操作系统介绍
4.2.1、系统框架介绍
系统概述:https://g.alicdn.com/alios-things-3.3/doc/index.html?spm=a2cti.24227744.0.0.5e5b5555jaS1ow
4.2.2、rhino内核介绍
内核编程:https://g.alicdn.com/alios-things-3.3/doc/aos_kernel.html?spm=a2c4g.11186623.0.0.1ff66f16DX2lHX
4.2.3、组件介绍
组件介绍:https://g.alicdn.com/alios-things-3.3/doc/component.html?spm=a2cti.24227744.0.0.c225ca7aV98Ree