|
福州大学学报(自然科学版) 2015
消息邮箱机制在烟花仓库温湿度监控系统中的应用
|
Abstract:
烟花在存储过程中安全问题尤为重要. 对烟花温、湿度进行实时监测,须设置报警装置. 当超过上限时,能进行声光报警,并将数据传到服务器进行相应处理. 通过STM32控制器、nRF2401无线通信模块、LED灯以及蜂鸣器可以实现上述功能. 在STM32中移植μC/OS操作系统,对程序设计采用并行开发模式,简化程序结构,提高系统的实时性. 改进μC/OS中的消息邮箱机制,实现数据采集任务与多个报警任务的同步.
Fireworks need special caution in the storage process,it needs a real-time monitoring for temperature and humidity,it needs an alarm device,when the data is more than the upper limit,it can alarm by sound and light,and it also can send the data to the server for the corresponding treatment. Through STM32 controller,nRF2401 wireless communication module,LED lamp and the buzzer can realize the system. The program is transplanted μC/OS operating system in STM32,designing with the parallel model,it can simplified structure of program,improves the real-time property of the system. The program can synchronize data acquisition task and multiple alarm task by improving the mailbox mechanism in μC/OS