当前位置:网站首页>#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
- 微信小程序支付及退款整体流程
- LeetCode #101. Symmetric Binary Tree
- [Interview high-frequency questions] Linked list high-frequency questions that can be gradually optimized
- ARP协议原理
- win10右键文件,一直转圈
- Nature:猪死亡1小时后,器官再次运转
- 修改VOT2018.json文件,去掉图片路径中的color
- 两分钟录音就可秒变语言通!火山语音音色复刻技术如何修炼而成?
- 在北京参加UI设计培训到底怎么样?
猜你喜欢
随机推荐
JS 封装节流(后期优化)
h264协议
#物联网征文#小熊派设备开发实战
web课程设计
【面试高频题】可逐步优化的链表高频题
IDEA close/open reference prompt Usages
报告:想学AI的学生数量已涨200%,老师都不够用了
Byte Qiu Zhao confused me on both sides, and asked me under what circumstances would the SYN message be discarded?
Programmer's Exclusive Romance - Use 3D Engine to Realize Fireworks in 5 Minutes
IDEA 关闭/开启引用提示Usages
超越CLIP的多模态模型,只需不到1%的训练数据!南加大最新研究来了
金融业“限薪令”出台/ 软银出售过半阿里持仓/ DeepMind新实验室成立... 今日更多新鲜事在此...
Gumbel_Softmax 概要
GPT-3组合DALL·E,60秒内搞定游戏设定和原型动画!网友看后:这游戏想玩
WeChat payment development process
你没见过的《老友记》镜头,AI给补出来了|ECCV 2022
HAproxy:负载均衡
Shell正则表达式,三剑客之grep命令
Information system project managers must memorize the core test sites (63) The main process of project portfolio management & DIPP analysis
FFmpeg在win10上编译安装(配置libx264)