本论文介绍了基于 CAN 总线的温度监控系统,主要讲解家庭火灾监控系统的CAN适配卡设计和PC 机监控软件的软件。通用 PC机没有与CAN总线的接口电路,所以需要适配卡来沟通现场监控节点和 PC 机。PC 机监控软件负责对现场数据显示、处理,是人机交互的平台。 CAN 适配卡软件采用C语言编写,它作用是协调 CAN 总线和 RS232 的串口通信、数据缓存、控制数据发送或接收等,具有一定的健壮性和通用性。PC监控软件采用Visual Basic 6.0 开发,支持用户注册、火灾日志查询、主动查询现场监控节点、设置现场节点携带的传感器参数、数据异常时触发报警程序等。
关键词 CAN网络通信 CAN适配卡硬件及软件 PC机监控界面 RS232通信7991
Title Design of Adapter Card & PC Monitoring Softwares for a Temperature Detection System Based on CAN
Abstract
This article recommends a tiny temperature detection system based on CAN
bus and RS232 serial communication. It emphasizes the design of an adapter
card software for CAN bus & a PC monitoring interface. An adapter card
is designed to connect the CAN bus and the computer for there are no CAN
bus interface circuits built in commonly used computers. PC monitoring
software provides an interface between the system and certificated users.
The adapter card’s software is programmed by C and aims at coordinating
the communication between CAN bus and RS232.It can store data and control
data transmition and have certain robustness and universal. The PC
monitoring software is developed by Visual Basic 6.0 and support new
user’s register, fire log checking, alarm triggered when abnormal data
detected, the configuring of detectors’ parameters and so on.
Keywords CAN Net Communication PC Monitoring Interface
CAN Adapter Card Hardware& Softwares Design
目 次