检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
作 者:孟宇航 赵冬青[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[自动化与计算机技术—计算机系统结构]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:18.119.0.68