摘要本论文介绍了智能家居系统的软件设计,通过单片机和移动互联网技术实现窗户的自动开关、家电控制以及烟雾报警等功能。该智能家居系统主要通过VC编写网络聊天工具,从远程的客户端向家中待命的服务端以聊天形式发送控制信号,服务端在接收到命令后以无线形式将命令发送给单片机,再由单片机实现对家居的控制,最终服务端再将确认信息反馈给客户端。该系统的下位机编程主要通过编写C语言,结合了硬件设计的电路图。调试结果表明,此设计可靠安全,功能强大,各模块性能稳定,数据收发准确,将完全满足人们与智能家居“远程对话”的需求。单片机与因特网的完美结合实现了家居智能化的进步,是一种研究设计家居智能化的有效方法,本设计为以后设计出更好的智能家居系统提供了基础。50798
毕业论文关键词:智能家居,单片机,无线网络,互联网。
Abstract A kind of software design of the smart home system is introduced in this paper, can be achieved some functions by MCU and mobile internet technology such as the windows opening and shutting automatically ,home appliances controlling and smoke alarming. This system of smart home was mainly writing the instant message tool by VC, sent control signals by chat form from a remote client to the server in home that would be standby. After the server received the order, it would transmit to MCU in the form of wireless, then MCU controlled the home appliances. At last, confirmation message of the server would feed back to the client. The lower-computer programming of this system was mainly in C, it combined with the circuit diagram of the hardware design. The experiment results show that the design has safe and strong functions,each module has stable functions,receiving and sending an accurate data it will be completely satisfied with the“long—range dialogue”between humans and the smart home.It was a perfect combination of MCU and internet, made major advance in smart home, and it was a kind of effective method of research and design the smart home system. This design provided a better basis of smart home in the future.
Keywords: smart home; MCU; wireless; internet
目录
第一章 绪论 1
1.1课题背景 1
1.2 智能家居控制系统的概述 3
1.3 课题研究的目的和意义 4
1.4 系统设计的主要任务 4
第二章 系统总体方案设计 6
2.1 单片机控制部分及系统的工作流程 6
2.2 硬件电路简介 7
2.3上位机pc机软件功能 10
2.4 下位单片机软件功能 10
第三章 上位机(pc机)编程 12
3.1 开发软件介绍 12
3.2 聊天程序的设计以及用户界面的设计 12
3.3 串行通信的实现 15
第四章 下位机编程 17
4.1 开发软件介绍 17
4.2 主控单片机系统软件设计 17
4.3 控制程序与通信程序 20
第五章 系统制作和调试 25
5.1 软件调试基本方法