基于以太网的中央空调远程控制系统设计
详细信息    本馆镜像全文|  推荐本文 |  |   获取CNKI官网全文
摘要
社会的发展和人类生活水平的不断提高,使人类对居住环境的要求也越来越高,因此中央空调系统的应用也越来越广泛。中央空调系统改善了人们的居住环境,但同时也消耗了大量的能源。对于中央空调控制系统,目前的中央空调控制技术还以分散控制为主,每个控制器只能监控其所控制的中央空调机组的状态,这不仅不利于整个系统的智能管理,而且浪费能源。有少数中央空调控制器生产厂商进行了少量中央空调集中化,网络化控制的尝试,但采用的技术比较落后,大多数通信距离较短,所能集中监控的中央空调的数目也少。
     近几年网络技术越来越成熟,网络安全、实时性、可靠性进一步提高,这使我们已经逐渐能够将网络技术应用到控制领域;同时,单片机技术发展讯速,很多单片机已经具有多功能、高速度、低功耗、低价格、大存储容量和强I/O功能等特点,因此,我们完全可以设计出基于单片机的低成本远程控制系统,并把它应用于中央空调集中监控系统。
     本课题的主要任务是研制具有远程通讯功能的中央空调集中监控系统。它能通过Internet将数据转发给控制中心,使得控制中心能对楼宇内部甚至几栋楼宇的所有中央空调机组的运行状态进行监视与控制。通过这种新型的中央空调网络集中监控,能够提高中央空调机组的使用效率,使得楼宇内的所有中央空调,达到统一控制、统一管理、高效节能的目的。系统总体采用多级分布式控制结构,在与互联网连接的中间站中,基于ATmega128与Enc28j60设计了以太网传输方案,通过在ATmega128上移值TCP/IP协议,系统能够与远程电脑通讯,实现中央空调的远程实时监控;楼宇内扩展RS485总线,进行数据的传输,可以有效节约成本与减少设计难度。末端实现具体房间的空调机组的温度控制,并有RS485接口上传数据与接受上层传来的控制命令。远程电脑客户端利用可视化的编程工具Visual Basic及其Winsock控件开发网络应用程序,通过以太网实现了多栋楼宇的中央空调远程监控。文中概述了现阶段楼宇中央空调远程控制的情况,详细讨论了整个系统的设计方案选择与确定,介绍了其结构与功能,并分章节说明了各个部分的硬件设计方法与软件设计思路。硬件各部分分别以AVR高档MEGA系列单片机为核心,扩展以太网接口和RS485总线接口进行数据传输,配以部分按键显示模块及其它控制模块,实现适当的控制与显示。软件设计则重点介绍了在ATmega128上基于ENC28J60的Microchip TCP/IP协议栈移值实现方法、RS485通信程序设计及一部分键盘显示程序设计。论文中给出了大部分电路图与一些关键源程序或流程图,并对系统的可靠性与抗干扰性设计作了部分介绍。上位机部分详细说明了VB使用ADO对象访问ACCESS数据库的连接方法与应用,介绍了Winsock控件的各种重要属性与使用方法。
     系统完成后应用于实践工程,运行稳定可靠。该设计系统具有实现方法简单、成本较低、扩展性好等特点,具有一定的实用性和推广价值。文中最后对课题进行了总结,并指出了未来系统需要增强和改进的方向。
With the development of national economy and constant improvement of people's life, people's demands on the environment become higher and higher, so the application of central air conditioner grows to be abroad. The central air conditioner system improves people's living condition, but it also uses up a lot of energy sources. Actually, most of central air conditioners are controlled separately, each controller can only monitor and control one air conditioner's status, that not only makes against the intellective management, but also wastes of much energy. A few of controller product manufacturers of central air control conditioner tried to use network to control the whole system concentratively, however, mostly, the technology they applied was behindhand, the communication length was not very long, and the number of terminals they controlled was limited.
     In recent years, the technology of network has become more mature, its security, and reliability have future improved, so we can apply network technology to the control field gradually. In addition, the single-chip technology also develops rapidly, many single chips have the characteristics of multifunction, high speed, low power, low price, big memory and strong I/O, all that make us be able to design low cost remote control system based on single chips, and then apply it to central air conditioner.
     The main task of this thesis is to develop a concentrative control system about central air conditioner with long-range communication function, which can communicate with control center via Internet, and then we can monitor and control all terminals' status in one building or several buildings. The concentrative control and management can improve the efficiency of central air conditioner, and reduce energy consummation. The whole system uses multi-level distributed control architecture.In stage which connects to Internet, we develop an Ethernet transmit scheme based on ATmegal28 and Enc28j60. It transplants the Microchip TCP/IP protocol stack into ATmega128 to implement remote real time supervise and control by communicating with remote computer.The system expands RS485 bus for data transmission in building to save the cost and reduce the difficulty to design. The terminals aim to control the room's temperature directly, they transmit status data to its upper layer and receive control command by RS485 interface. We make use of visualized programming tools Visual Basic and its Winsock control to develop network application program for the client in remote computer. The paper summarizes the situation of remote control system about central air conditioner in brief, introduces its architectures and functions, and discusses the choice of the whole system scheme in detail, including transmission bus in building, remote transmission method, remote communication mode. The thesis concretely describes the hardware design method and the soft design ideal of each part. Hardware parts design the circuit based on AVR top grade MEGA series single chip, then expand Ethernet interface and RS485 bus interface to transmit data, with some key-display module and other control modules. The soft sections emphasize the method of embedding the TCP/IP protocol stack into ATmega128, design of RS485 communication program, and some keyboard display program. The thesis offers a majority of circuit diagram and some key source program or flow chart, the reliability and the capability of anti-jamming are also described in simple. The client segment describes how to use ADO object to connect and access ACCESS database at length, it also introduces some important properties of Winsock and its technique, so as to develop network program.
     The application shows that this system runs stably and accurately. The technology and methods adopted in the system are practical and worthy of using abroad, with the characteristics of low cost, good expansibility. Finally, the subject is briefly summaried, and some remarks on further improvement to the system are also presented.
引文
[1]展有杰.计算机远程监控系统在分布式中央空调系统中的应用[D].山东:山东大学,2006:5.
    [2]梅钰,吴耀先.建筑设备自动化系统(BA)之浅见[J].江苏建筑,2000年第2期:57.
    [3]Khomkrit,S&S,Vansan&T,Veera&S,Apirak.Remote terminal air-conditioner unit for power management[J].SICE-ICASE International Joint Conference,2006:2752-2755.
    [4]朱峰.嵌入式技术在中央空调集中控制系统中的应用研究[D].湖南:中南大学,2007:1-10.
    [5]中国工控网现场总线栏目[EB/EL],www.gongkong.com/sortgous/.
    [6]王建新,杨世凤等.远程监控技术的发展现状和趋势[J].国外电子测量技术.2005年第4期(总第122划):9-12.
    [7]曹军义,刘曙光.基于Internet的远程测控技术[J].2001,6:17-21.
    [8]彭道刚,张浩等.基于ADAM6000的以太网远程监控系统设计与实现[J].仪器仪表学报.2007年第28卷第8期增刊:811-813.
    [9]孙德明,何正嘉.快速构建基于Web的远程测控系统[J].计算机工程与应用.2003,23:160-162.
    [10]Dejing,Zh&X,Jianping&Ch,Gang&Q,Kai.Collaborative design of heterogeneous data integration communication gateway based on the embedded platform[J].The 2008International Conference on Embedded Software and Systems Symposia,ICESS Symposia,2008:248-252.
    [11]李长林编著.Visual Basic串口通信技术与典型实例{M}.北京:清华大学出版社,2006:5-9.
    [12]邢荣欣.具有远程通信功能的嵌入式控制器的研制[D].北京:北京航空航天大学,2004.
    [13]李正军编著.计算机测控系统设计与应用[M].北京:机械工作出版社,2004.
    [14]Park,I.G.The remote control system for the next generation air conditioners[J].IEEE Transactions on Consumer Electronics,February,2001:168-178.
    [15]Dong Sung,Kim&C,Gyeyoun&K,Wook Hyun&K,Yuh In&K,Yohee.Home network message specification for white goods and its applications[J].IEEE Transactions on Consumer Electronics,February 2002:1-9.
    [16]殷培强.基于网络的远程控制实验系统研究与开发[D].浙江:浙江工业大学,2007.
    [17]李镭.基于TCPIP协议的分布式网络测控系统的研究[D].南昌:南昌航空大学,2007.
    [18]郑小宁.基于因特网的远程控制技术研究[D],西北工业大学硕士学位论文,2002,7.
    [19]武苍林.Browser/Server与Client/Server结构的分析与比较[J],电脑技术信息,1999,(8): 35-36.
    [20]马潮编著.高档8位单片机ATmega128原理与开发应用指南[M].北京:北京航空航天大学出版社,2004.
    [21]郭连智.一种嵌入式远程数据采集系统的设计[D].太原:太原理工大学,2007.
    [22]张晓雷,陈相宁,郭剑.嵌入式Linux下基于SPI总线的网络设备驱动设计与实现[J].计算机工程与设计,2008(12):6003-6004.
    [23]周晓阳,程红,张晓媛.新型以太网控制器ENC28J60及其接口技术[J].单片机与嵌入式系统应用.2006(9):22-24.
    [24]Microchip Technology Inc.ENC28J60Datasheet[Z].2006.
    [25]路秋生编著.常用电子镇流器电路及应用[M].北京:人民邮电出版社2006
    [26]Atmel Technology Inc.ATmega162 Datasheet[Z].2007.
    [27][美]安格斯生编著.精英科技译.Serial Port Complete串行端口大全[M].北京:中国电力出版社,2001.
    [28]张欣等.RS485电路的匹配和保护性设计研究[J].航空计算技术,2007年第35卷第5期:80-82.
    [29]提高RS-485总线可靠性的几种方法及常见故障处理[EB/EL]http://www.leadzil.com/lead/ljs/automation/107262_3.asp.
    [30]http://www.zlgmcu.com.RS-485选型及应用指南[Z].2004.
    [31]何立明.单片机应用系统抗干扰技术[M].北京:北京航空航天大学出版社,2000.
    [32]Mazzoni Luca.Power Aware Design for Embedded systems[J].IEEE Electronics Systems and software.2003.1(5):12-17.
    [33]常金朝.应用于中央空调控制系统的嵌入式控制器的研究[D].河北:河北工业大学,2007:27-28.
    [34]马潮,詹卫前,耿德根编著.ATmega8原理及应用手册[M].北京:清华大学出版社,2003.
    [35]郝文化主编.ProtelDXP电路原理图与PCB设计[M].北京:机械工业出版社,2004.
    [36]高鹏等编著.电路设计与制版——Protel99入门与提高[M].北京:人民邮电出版社,2000,02.
    [37]黑人.四层电路板的PCB设计[EB/OL].http://www.globalpfc.com/.
    [38]周志敏,纪爱华编著.电磁兼容技术[M].北京:电子工业出版社2007
    [39](美)Behrouz A.Forouzan,Sophia Chung Fegan著.TCP/IP协议族[M].北京:清华大学出版社,2003.
    [40](美)Ramadas Shanmugam等著.TCP/IP详解[M].北京:电子工业出版社,2003.
    [41]Filman R.E.Embedded internet systems come home[J],Internet Computing,IEEE Volume5,Issuel,Jan-Feb.2001Page(5):52-53.
    [42]郝洁,王慕坤.嵌入式TCP/IP技术研究及应用[J].哈尔滨理工大学学报2004.9(2):100-102.
    [43]LeeB.H.Embedded Internet system:Poised for Takeoff[Embedded system].Internets Computing,IEEE Volume2,Issue3.May-June 1998Page(5):24-29.
    [44]沈刚.新型工业以太网介质访问协议[J].上海交通大学学报.2002.12(3):43-46.
    [45]Microchip Technology Inc.Microchip TCP/IP协议栈 Datasheet[Z].2006.
    [46]缑延军.基于ENC28J60的嵌入式异构网关与Web应用[J].同济大学学报(自然科学版),第36卷第2期2008(2):263-267.
    [47]www.bitcode.com.cn.HD7279A Datasheet[Z].
    [48]http://www.zlgmcu.com/.HT1621 Datasheet[Z].
    [49]张露编著.高级语言程序设计教程:Visual Basic 6.0(中文版)[M].北京:人民邮电出版社,2005.
    [50]汪晓平,钟军等编.Visual Basic网络通信协议分析与应用实现[M].北京:人民邮电出版社,2003:12-30.
    [51]张建栋.基于Winsock的局域网监控系统的设计与实现[D].北京:北京邮电大学,2008.28-30.
    [52]韩冰.一个远程监控系统的设计与实现[D].陕西:西北大学,2007.63-66.
    [53]刘文斐.基于三层C_S模式的电子电路辅助实验系统[D]。大连:大连海事大学,2007:18-24.
    [54]刘文涛编著.Visual Basic+Access数据库开发与实例[M].北京:清华大学出版社2006.
    [55]李敏业,王颖编著.Visual Basic+Access数据库应用实例完全解析[M].北京:人民邮电出版社,2006.

© 2004-2018 中国地质图书馆版权所有 京ICP备05064691号 京公网安备11010802017129号

地址:北京市海淀区学院路29号 邮编:100083

电话:办公室:(+86 10)66554848;文献借阅、咨询服务、科技查新:66554700