## **数据包格式**
数据包分为三段,分别是帧头、数据端、帧尾,其中数据端是可变长度的,根据要返回的数据决定。
### 帧头 (5 Byte)
<table>
<tr>
<th>字节</th>
<th>默认值</th>
<th>描述</th>
</tr>
<tr>
<td>3</td>
<td>0xAA</td>
<td>前导字符</td>
</tr>
<tr>
<td>1</td>
<td>XX</td>
<td>
数据包类型<br />
0x01: 传感器数据<br />
0x02: 传感器KeepAlive<br />
0x03: 无人机KeepAlive<br />
</td>
</tr>
<tr>
<td>1</td>
<td>XX</td>
<td>数据包总长</td>
</tr>
</table>
### 数据段 (传感器数据)
<table>
<tr>
<th>字节</th>
<th>默认值</th>
<th>描述</th>
</tr>
<tr>
<td>1</td>
<td>XX</td>
<td>温度整数</td>
</tr>
<tr>
<td>1</td>
<td>XX</td>
<td>温度小数</td>
</tr>
<tr>
<td>1</td>
<td>XX</td>
<td>湿度整数</td>
</tr>
<tr>
<td>1</td>
<td>XX</td>
<td>湿度小数</td>
</tr>
<tr>
<td rowspan="2">2</td>
<td>XX</td>
<td rowspan="2">CO2含量</td>
</tr>
<tr>
<td>XX</td>
</tr>
<tr>
<td rowspan="2">2</td>
<td>XX</td>
<td rowspan="2">CO含量</td>
</tr>
<tr>
<td>XX</td>
</tr>
<tr>
<td rowspan="2">2</td>
<td>XX</td>
<td rowspan="2">TSP指数</td>
</tr>
<tr>
<td>XX</td>
</tr>
</table>
### 数据段 (无人机KeepAlive)
<table>
<tr>
<th>字节</th>
<th>默认值</th>
<th>描述</th>
</tr>
<tr>
<td>1</td>
<td>XX</td>
<td>无人机编号</td>
</tr>
</table>
### 帧尾 (2 Byte)
<table>
<tr>
<th>字节</th>
<th>默认值</th>
<th>描述</th>
</tr>
<tr>
<td>Byte16</td>
<td>0xFF</td>
<td rowspan="2">帧尾</td>
</tr>
<tr>
<td>Byte17</td>
<td>0xFF</td>
</tr>
</table>
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
嵌入式优质项目,资源经过严格测试可直接运行成功且功能正常的情况才上传,可轻松copy复刻,拿到资料包后可轻松复现出一样的项目。 本人单片机开发经验充足,深耕嵌入式领域,有任何使用问题欢迎随时与我联系,我会及时为你解惑,提供帮助。 【资源内容】:包含完整源码+工程文件+说明,项目具体内容可查看下方的资源详情。 【附带帮助】: 若还需要嵌入式物联网单片机相关领域开发工具、学习资料等,我会提供帮助,提供资料,鼓励学习进步。 【本人专注嵌入式领域】: 有任何使用问题欢迎随时与我联系,我会及时解答,第一时间为你提供帮助,CSDN博客端可私信,为你解惑,欢迎交流。 【建议小白】: 在所有嵌入式开发中硬件部分若不会画PCB/电路,可选择根据引脚定义将其代替为面包板+杜邦线+外设模块的方式,只需轻松简单连线,下载源码烧录进去便可轻松复刻出一样的项目 【适合场景】: 相关项目设计中,皆可应用在项目开发、毕业设计、课程设计、期末/期中/大作业、工程实训、大创等学科竞赛比赛、初期项目立项、学习/练手等方面中 可借鉴此优质项目实现复刻,也可以基于此项目进行扩展来开发出更多功能
资源推荐
资源详情
资源评论
收起资源包目录
基于物联网技术的森林防火系统.zip(毕设/课设/竞赛/实训/项目开发) (185个子文件)
tasks.c 216KB
gd32f10x_enet.c 127KB
queue.c 118KB
gd32f10x_timer.c 83KB
stream_buffer.c 52KB
timers.c 50KB
gd32f10x_rcu.c 41KB
gd32f10x_can.c 41KB
gd32f10x_adc.c 36KB
system_gd32f10x.c 32KB
event_groups.c 30KB
gd32f10x_fmc.c 30KB
gd32f10x_exmc.c 29KB
port.c 29KB
gd32f10x_sdio.c 27KB
gd32f10x_dma.c 27KB
gd32f10x_usart.c 25KB
gd32f10x_i2c.c 24KB
gd32f10x_spi.c 24KB
heap_5.c 21KB
gd32f10x_gpio.c 20KB
heap_4.c 18KB
gd32f10x_dac.c 16KB
croutine.c 15KB
heap_2.c 12KB
list.c 9KB
gd32f10x_exti.c 8KB
gd32f10x_pmu.c 8KB
gd32f10x_rtc.c 8KB
gd32f10x_bkp.c 8KB
gd32f10x_misc.c 7KB
gd32f10x_dbg.c 6KB
heap_1.c 5KB
gd32f10x_fwdgt.c 5KB
gd32f10x_it.c 5KB
ec_01f.c 4KB
gd32f10x_wwdgt.c 4KB
uart_app.c 4KB
gd32f10x_it.c 4KB
gd32f10x_crc.c 4KB
wifi_app.c 4KB
heap_3.c 3KB
usart.c 2KB
tcp_client_app.c 2KB
main.c 1KB
main.c 1KB
mvnw.cmd 7KB
sdkconfig.esp32dev 37KB
.gitignore 408B
.gitignore 231B
.gitignore 189B
.gitignore 94B
task.h 133KB
gd32f10x_enet.h 122KB
core_cm3.h 96KB
gd32f10x_rcu.h 68KB
queue.h 64KB
timers.h 61KB
gd32f10x_timer.h 54KB
gd32f10x_can.h 52KB
semphr.h 47KB
FreeRTOS.h 45KB
stream_buffer.h 38KB
message_buffer.h 37KB
gd32f10x_gpio.h 35KB
gd32f10x_exmc.h 32KB
event_groups.h 31KB
gd32f10x_sdio.h 29KB
gd32f10x.h 29KB
croutine.h 27KB
gd32f10x_adc.h 26KB
gd32f10x_fmc.h 24KB
gd32f10x_i2c.h 22KB
gd32f10x_usart.h 22KB
gd32f10x_spi.h 22KB
core_cmInstr.h 20KB
gd32f10x_dma.h 19KB
list.h 19KB
gd32f10x_exti.h 18KB
mpu_prototypes.h 17KB
core_cmFunc.h 16KB
gd32f10x_bkp.h 14KB
gd32f10x_dac.h 14KB
FreeRTOSConfig.h 13KB
atomic.h 13KB
mpu_wrappers.h 12KB
portmacro.h 9KB
gd32f10x_dbg.h 9KB
portable.h 9KB
stack_macros.h 8KB
deprecated_definitions.h 7KB
gd32f10x_rtc.h 7KB
gd32f10x_pmu.h 6KB
projdefs.h 6KB
gd32f10x_fwdgt.h 6KB
gd32f10x_misc.h 5KB
gd32f10x_wwdgt.h 4KB
gd32f10x_crc.h 3KB
gd32f10x_it.h 3KB
gd32f10x_it.h 3KB
共 185 条
- 1
- 2
资源评论
阿齐Archie
- 粉丝: 1w+
- 资源: 2303
下载权益
C知道特权
VIP文章
课程特权
开通VIP
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功