当前位置:网站首页>#Internet of Things essay#Xiaoxiong pie equipment development actual combat
#Internet of Things essay#Xiaoxiong pie equipment development actual combat
2022-08-09 13:02:00 【51CTO】
(1)Various compiler environment construction and installation
To extract the first small Xiong PaVMware镜像,Import open virtual machine,输入密码进入,打开终端查看IP地址,Then open the installationMobaXtermTool connection login,

Then the file usingRaiDriveTools to remotewindows上,添加ftpLogin for mapping success,

And then there are two ways to get the source code


(2)hello_world案例入门
Download the good code with theVS打开,然后在applications下sample创建my_app文件夹,在文件夹下创建hello_world.c文件和BUILD.gnAfter writing business source


Then compile the source of business,打开MobaXterm工具编译

The use of a serial port tools and code burn
(3)点亮ledLamp case introduction
To add lightled源码文件,包括led_example.c文件和BULID.gn文件,

然后编写业务代码,先添加头文件
Then the function,在函数中实现,先写初始化jpl,再添加ledLight up in chip pin number,设置gplReverse the output mode,The last set v.

然后编写BUILD.gn代码,Can copy on a case study combined with their relative path

然后在总的BUILD.gnNext add compiler module

Compilation is still useMobaXterm工具编译,Enter the source directory,进行编译


And then enter the development board,Because no development board so it doesn't know what code to run if wrong
1.编译模块:编译是通过BearPi-HM_Nano.json把.c文件编译成.a文件

最后把所有的.a文件打包成.bin二进制文件,Then put the binary file onto/development board
2.鸿蒙与CMSIS-RTOS2接口联系
鸿蒙在CMSIS-RTOS2接口中封装了LiteOS-m的内核代码,


鸿蒙内核开发——任务管理



强调重点理解任务ID、任务栈、任务切换

实现任务管理




出现这种连接超时的情况是因为IP地址改变了,需要在虚拟机上右键点击打开终端输入ifconfig复制新的IP地址,然后重新在Moba工具中建立SSH重新映射到Windows下
编译结果:

软件定时器




信号量





拓展实验修改信号量:


事件管理



修改代码实现多个事件同步一个任务

互斥锁



消息队列



GPIO-API接口介绍



GPIO中断API


PWM输出


ADC采样开发


I2C开发



UART读写


华为IOT平台
华为IoT平台



Through the device to butt the huaweiIoTPlatform mainly for the product to create.Then the device registration,Equipment after registration you will generate theclass ID和username,还有password,Then the code in thisclass ID,username,password给替换掉,And then compile the code,A case can realize the wisdom agriculture.
【This article is in iot prize the campaign】,活动链接: https://ost.51cto.com/posts/14758
边栏推荐
- [Microservice ~ Remote Call] Integrate RestTemplate, WebClient, Feign
- MySQL查询性能优化七种武器之索引潜水
- Programmer's Exclusive Romance - Use 3D Engine to Realize Fireworks in 5 Minutes
- web course design
- PM2 configuration file
- 太卷了... 腾讯一面被问到内存满了,会发生什么?
- 人体解析(Human Parse)开源数据集整理
- How should the acceptance criteria for R&D requirements be written?| Agile Practices
- WPF implements a MessageBox message prompt box with a mask
- 学长告诉我,大厂MySQL都是通过SSH连接的
猜你喜欢
Byte Qiu Zhao confused me on both sides, and asked me under what circumstances would the SYN message be discarded?

00后写个暑假作业,被监控成这笔样

两分钟录音就可秒变语言通!火山语音音色复刻技术如何修炼而成?

智驾科技完成C1轮融资,此前2轮已融4.5亿元

AQS同步组件-FutureTask解析和用例

国产抗新冠口服药每瓶不超300元/ 我国IPv6网络全面建成/ 谷歌入局折叠屏手机...今日更多新鲜事在此...

ARP协议原理

The latest interview summary in 20022 brought by Ali senior engineer is too fragrant

软件测试——金融测试类面试题,看完直接去面试了

《数字经济全景白皮书》银行业智能营销应用专题分析 发布
随机推荐
Apexsqlrecover无法连接数据库
Here comes the question: Can I successfully apply for 8G memory on a machine with 4GB physical memory?
F280049库函数API编程、直接寄存器控制编程和混合编程方法
The latest interview summary in 20022 brought by Ali senior engineer is too fragrant
LeetCode_单调栈_中等_456.132 模式
Shell正则表达式,三剑客之grep命令
C2000在线升级主程序下载kernel完成后跳转到kernel运行的过程记录
GET请求和POST请求区别
Fapi_StatusType Fapi_issueProgrammingCommand使用注意事项
electron 应用开发优秀实践
十分钟教会你如何使用VitePress搭建及部署个人博客站点
阿里云新增三大高性能计算解决方案,助力生命科学行业快速发展
win10右键文件,一直转圈
PM2之配置文件
水能自发变成“消毒水”,83岁斯坦福教授:揭示冬天容易得流感的部分原因...
防止数据冒用的方法
Batch大小不一定是2的n次幂!ML资深学者最新结论
Shell之常用小工具(sort、uniq、tr、cut)
proto3-2语法
API调用,API传参,面向对接开发,你真的会写接口文档吗?