摘 要: 在环境监测中,相对于传统的设计方法,使用嵌入式实时操作系统(RTOS)可以更有效地实现模块和通信 管理。通过消息邮箱,数据实时采集与处理系统实现了传感器数据在不同任务之间的广播发送,对接收任务设置不同的 优先级,可以调整其接收数据的顺序。在实际开发中,使用基于ARM核的STM32F103VE微控制器实现了温湿度数据的 实时采集和广播发送,测试结果表明,任务的切换顺序取决于优先级,不同接收任务之间的时间延迟在11ms之内,满 足了数据处理系统的实时性和可靠性的要求。 |
关键词: RTOS;消息邮箱;数据采集;监测系统 |
中图分类号: TP368.1
文献标识码: A
|
|
The Real-time Data Acquisition and Processing System Based on the Broadcast Mode |
LI Songtao,TAO Bin
|
(School of Computer, Henan Institute of Engineering, Zhengzhou 451191, China)
|
Abstract: Compared with traditional design methods, the embedded real-time operating system (RTOS) can more effectively achieve the module management and the communication management in environment monitoring.With the message mailbox and real-time data acquisition and processing system,the sensor data can be broadcasted and transmitted among different tasks.By setting different priorities to the receiving task,the order of data reception can be adjusted.In practical development,the STM32F103VE microcontroller based on ARM core is used to implement the acquisition and the broadcast transmission of the humidity data.The test results show that task switching sequence is determined by the priority and time delay among different receiving tasks is within 10ms,which meets the requirements of the data processing system with real-time and reliability |
Keywords: RTOS;the message mailbox;data acquisition;the monitoring system |