STM32的电动自行车信息采集上报系统  被引量:1

Electric Bicycle Information Collection and Reporting System Based on STM32

在线阅读下载全文

作  者:孟宇航 赵冬青[1] 单彦虎[1] Meng Yuhang;Zhao Dongqing;Shan Yanhu(Science and Technology on Electronic Test&Measurement Laboratory,North University of China,Taiyuan 030051,China)

机构地区:[1]中北大学电子测试技术国家重点实验室,太原030051

出  处:《单片机与嵌入式系统应用》2021年第11期79-82,85,共5页Microcontrollers & Embedded Systems

基  金:国家重点研发计划资助(项目编号:2018YFF01010500)。

摘  要:针对电动自行车实时监管不便的问题,设计了一种基于STM32的电动自行车信息采集系统,通过获取电池、位置和行驶状态信息并上报到服务器中,实现实时监管。为保证数据的实时获取,使用STM32单片机搭载实时操作系统RT-Thread,通过多路串口请求电池、行驶状态和位置信息,以并发方式进行数据接收、解析、模块控制和数据上报等操作;为方便系统软件升级,将系统存储器分为Bootloader区、APP区、Download区和数据区并设计了Bootloader,使系统具有在线升级功能;为防止进入系统网络盲区导致信息丢失,使用循环队列在网络盲区中保存200帧数据并在离开盲区后依次上报。经过长时间测试,系统可以稳定工作,实现了电动自行车的实时监管。Aiming at the inconvenience of real-time supervision of electric bicycle,an information acquisition system of electric bicycle based on STM32 is designed.By acquiring battery,location and vehicle information and reporting to the server,real-time supervision is realized.In order to ensure the real-time acquisition of data,STM32 is used with real-time operating system RT-thread to request battery,driving state and location information through multi-channel serial port,and perform data receiving,analysis,module control and data reporting in a concurrent manner.In order to facilitate system software upgrade,the system memory is divided into bootloader area,APP area,download area and data area,and the bootloader is designed to enable the system to upgrade online.In order to prevent information loss caused by entering the network blind area of the system,a circular queue is used to save 200 frames of data in the network blind area and report them in turn after leaving the blind area.After a long time test,the system can work stably and realize the real-time supervision of E-bike.

关 键 词:电动自行车 STM32 RT-THREAD 线程 BOOTLOADER 循环队列 

分 类 号:TP368.1[自动化与计算机技术—计算机系统结构]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象