摘要
针对传统嵌入式系统开发模式在环境监测系统中的不足,本文在虚拟仿真软件基础上设计实现了环境中温湿度监测系统。系统用Proteus与VSPD实现下位机的硬件仿真,用Keil和Proteus联调完成下位机的软件设计,上位机部分用MFC实现对串口SHT11的数据解析和记录。文章解决了SHT11数据的修正处理,Proteus与串口通讯,串口消息在MFC中的实时处理、数据库记录过程等关键问题。经测试,系统运行稳定高效,可以为后期实体系统应用和其他环境传感器数据监测开发提供基础。
In view of poor efficiency in the environmental monitoring system which uses traditional embedded system development mode, a temperature and humidity monitoring system based on the emulation software is designed and implemented. System uses Proteus and VSPD to emulate the lower computer's hardware, uses Keil and Proteus to implement lower computer's software, and designs the SHT11 data parsed and recorded by MFC in the host computer.This paper deals with many key problems such as correcting data of SHT11, communication between Proteus and COM, messages processing in real-time and recording in the database by MFC. After test, the system runs stable and efficient, so it can provide basis for entity system and other sensors' development.
出处
《电子设计工程》
2016年第7期58-62,共5页
Electronic Design Engineering