现有的ZigBee通信方法成本较高、结构复杂,而智能家居对软硬件成本比较敏感。针对此,本文基于开源开发语言MicroPython搭建了ESP32-C3 芯片网络传输性能的测试系统。该测试完成了PC与单台ESP32-C3下位机单数据包传输,PC与ESP32-C3的大数据传输,ESP32-C3AP与ESP32-C3下位机的网络传输特性测试,ESP32-C3作为AP,PC与ESP32-C3下位机网络传输特性测试。实验结果表明,ESP32-C3的单数据包传输时间主要变化范围为6~30 ms,基于ESP32-C3 AP的通信方案的传输时间最长为125 ms, 8~2 048k大数据的归一化传输时间的主要波动变化范围是3~5 ms,传输速度比较稳定。ESP32-C3单芯片网络传输系统的带宽为1.3~2.7 Mb/s,满足智能家居的开关信号及监控静态图像的传输速度要求。
Abstract
The existing ZigBee communication methods have high cost and complex structure,while smart home is more sensitive to the cost of software and hardware.In view of this,a test system for the network transmission performance of ESP32-C3 chips is built based on the MicroPython.This test completed the single data packet transmission between PC and a single ESP32-C3 slave computer,the big data transmission between PC and ESP32-C3,the network transmission characteristics test between ESP32-C3AP and ESP32-C3 slave computer,the network transmission characteristics test between ESP32-C3 as AP,and between PC and ESP32-C3 slave computer.The test results show that the main variation range of single packet transmission time of ESP32-C3 is 6~30 ms.The maximum transmission time of communication scheme based on ESP32-C3 AP is 125 ms.The main fluctuation range of normalized transmission time of 8~2 048k big data is 3~5 ms.The transmission speed is relatively stable.The bandwidth of the ESP32-C3 single chip network transmission system is 1.3~2.7 Mb/s,which meets the transmission speed requirements of the switch signal and monitoring static image of smart home.
关键词
MicroPython /
ESP32-C3 /
PC /
通信性能
Key words
MicroPython /
ESP32-C3 /
PC /
communication performance
{{custom_sec.title}}
{{custom_sec.title}}
{{custom_sec.content}}
参考文献
[1] Mahito S,Elisabetta G M,Felipe L L,et al.graphkernels: Rand Python Packages for Graph Comparison[J].Bioinformatics,2018,34(3):530-532.
[2] 王立华,邓健.基于 MicroPython的智能家居实验平台设计[J].实验科学与技术,2020,18(2):140-143.
[3] 邓健,王立华.基于MicroPython和CC3200的智能家居数据采集与控制系统设计[J].电子器件,2020,43(1):137-141.
[4] 林贤炼,方遒.MicroPython 语言在物联网中的运用[J].闽江学院学报,2017,38(2):28-37.
[5] 陈彦溱,钱璐遥,陈麒安,等.MicroPython用 于RISC-V微控制器的研究与设计[J].中国集成电路,2020(3):44-51.
[6] 徐帅驰,郑恭明.MicroPython与云平台在互联网应用领域的开发与应用[J].单片机与嵌入式系统应用,2021,21(9):33-35.
基金
*湖北科技学院校内科研项目(2022-23X08,2016-XB-046)。