当前位置:网站首页>#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
边栏推荐
- Experiment record: the process of building a network
- 内网穿透工具ngrok使用教程
- 无需精子卵子子宫体外培育胚胎,Cell论文作者这番话让网友们炸了
- 曼城推出可检测情绪的智能围巾,把球迷给整迷惑了
- 【小程序】低代码+小游戏=小游戏可视化开发
- AQS同步组件-FutureTask解析和用例
- 中科院打脸谷歌:普通电脑追上量子优越性,几小时搞定原本要一万年的计算...
- JD.com architects tidy up: what are the core technical knowledge points of jvm and performance tuning
- buck型三相PFC
- 京东架构师呕心整理:jvm与性能调优有哪些核心技术知识点
猜你喜欢
随机推荐
标准C语言学习总结14
LeetCode热题(11.合并两个有序链表)
水能自发变成“消毒水”,83岁斯坦福教授:揭示冬天容易得流感的部分原因...
【无标题】
GPT-3组合DALL·E,60秒内搞定游戏设定和原型动画!网友看后:这游戏想玩
JS封装防抖(代码持续优化)
Batch大小不一定是2的n次幂!ML资深学者最新结论
MySQL中的锁
buck型三相PFC
问题来了:4GB物理内存的机器上申请8G内存能成功吗?
Shell正则表达式,三剑客之grep命令
[Microservice ~ Remote Call] Integrate RestTemplate, WebClient, Feign
GET请求和POST请求区别
世界第4疯狂的科学家,在103岁生日那天去世了
IDEA 关闭/开启引用提示Usages
在北极都可以穿短袖了,温度飙升至32.5℃
微信支付开发流程
1小时直播招募令:行业大咖干货分享,企业报名开启丨量子位·视点
ABP 6.0.0-rc.1的新特性
TIC2000调用API函数Flash擦除片上FLASH失败