当前位置:网站首页>#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
边栏推荐
猜你喜欢
随机推荐
在北京参加UI设计培训到底怎么样?
非科班AI小哥火了:他没有ML学位,却拿到DeepMind的offer
太卷了... 腾讯一面被问到内存满了,会发生什么?
ARP协议原理
AI篮球裁判火了,走步算得特别准,就问哈登慌不慌
微信小程序支付及退款整体流程
听声辨物,这是AI视觉该干的???|ECCV 2022
Adalvo收购其首个品牌产品Onsolis
索引index
基于CAP组件实现补偿事务与幂等性保障
#物联网征文#小熊派设备开发实战
Double pointer - the role of char **, int **
荣耀携手Blue Yonder,加快企业战略增长
专业人士使用的 11 种渗透测试工具
buck型三相PFC
PM2之配置文件
获取url地址中问号后参数(即使是iframe也可以)
微信支付开发流程
WeChat payment development process
Byte Qiu Zhao confused me on both sides, and asked me under what circumstances would the SYN message be discarded?









