基于CAN信息采集的温室环境控制系统设计
2020-11-06冀宇航苗凯武东升
冀宇航 苗凯 武东升



摘 要:CAN作为当今最流行的现场总线技术以其高可靠性,低成本和实时性等优点被广泛应用于自动控制领域。文章主要介绍了基于CAN总线的多机通信。使用基本模型设计了一个基于CAN信息采集的温室环境控制系统,采用BasicCAN模式,该系统智能节点通过AT89C51单片机作为中央控制芯片。通过CAN总线的智能节点作为载体而传输和控制,不仅可以实时采集外界数据,控制外部设备,而且可以通过CAN总线与上位机通信,拓展了系统的功能,使得该系统具有较高的稳定性和可靠性。
关键词:AT89C51单片机;CAN总线;多机通信;BasicCAN模式
中图分类号:TP273 文献标识码:A 文章编号:2096-4706(2020)13-0167-04
Abstract:As the most popular field bus technology,can is widely used in the field of automatic control because of its high reliability,low cost and real-time performance. This paper mainly introduces the multi-computer communication based on CAN bus. Using the basic model,a greenhouse environment control system based on can information collection is designed. The BasicCAN mode is adopted. The intelligent node of the system uses AT89C51microcontroller as the central control chip. The intelligent node of CAN bus is used as the carrier to transmit and control. It can not only collect the external data in real time and control the external equipment,but also communicate with the host computer through CAN bus,which enhances the function of the system. The system has high stability and reliability.
Keywords:AT89C51 single chip microcomputer;CAN bus;multi-machine communication;BasicCAN mode
0 引 言
随着自动检测技术和计算机技术的发展,温室的气体控制技术也得到了发展,随着我国温室的种植面积的迅速增加,在温室中引入智能管理系统将有效提高农作物的产量和质量。我国温室种植的技术水平及产业化程度都比发达国家落后程度较大,其中最明显的就是在温室环境的控制技术方面,因此需要一种适用于农业环境的低成本,高性能的通信系统。基于河北农业大学农业科研基地的优势,为了弥补现有温室环境控制系统的不足,本人结合相关所学知识,运用CAN信息采集,建立更适应数据收集管控、不会影响网络的工作,并且响应速度快、可靠性高的温室环境控制系统。本文从硬件、配置参数等方面,详细地介绍了用于温室环境控制的CAN信息采集系统的设计。
1 温室环境控制的CAN信息采集系统的网络拓扑结构设计……p>
