1、 毕业设计说明书 毕 业 设 计 题 目 基于GSM的门控及SMS报警系统软件设计 摘 要 本文详细介绍了本系统的选题背景,发展现状和未来发展前景,并且论述了系统设 计过程中所涉及的各项技术,包括:GSM技术,AT89S52单片机,SMS报警技术,TC35i通 信模块,常用AT指令等。同时,本文对系统采用的方案进行了详细的论证,在基于ARM 的嵌入式系统和51单片机与GSM模块构成的系统中,本设计选择了51单片机与GSM模块构 成的系统;在无线数据传输模块的选择上,本设计采用了GSMSMS模块实现无线数据传 输;在GSM Modem的选择上,本设计在MZ28模块、Q2406B GSM模块和TC
2、35i模块中选择使 用TC35i模块。系统软件设计采用模块化设计思想,主要分为单片机系统初始化模块、 通信模块初始化模块、用户身份验证模块、数据传输模块、数据采集模块、报警控制输 出模块等组成。在设计过程中,本文绘制了硬件原理框图,各个程序的流程图,包括短 信报警程序流程图,身份验证程序流程图,以及程序的总流程图,并对采用C语言对各 流程进行编程。 本文详细地叙述了基于西门子公司的TC35i 型GSM手机模块的门控及SMS报警系统 的软件设计过程。给出了采用 TC35i 模块和单片机构成的门控控制及 SMS 报警系统的设 计方案,并详细介绍了该系统的软件的工作流程。文章重点阐述了单片机和 TC
3、35i 模块 的通信过程、AT 指令的应用、短信 PDU 编解码在单片机上的实现,程序模块的构成等。 该系统单片机通过标准串口经电平变换与 TC35i 模块相连,完成对 TC35i 模块的初始化 和短消息的数据收发功能,完成单片机与 TC35i 模块的信息传递,根据传递的信息,去 驱动执行机构做出相应的动作。 关键词:TC35i 模块;SMS 报警;AT 指令;PDU 编解码 Abstract This paper describes the background and the current situation of this system, as well as its future d
4、evelopment prospects in detail, and discusses the technologies relate to the design of the system process, including GSM technology, AT89S52 microcontroller, SMS alarm technology, TC35i communication module, Commonly used instructions AT and so on. At the same time, this paper demonstrates the schem
5、e of this system in detail. We choose 51 SCM and GSM module system between the embedded system based on ARM and 51 SCM and GSM module system, in the choice of wireless data transmission modules, we choose GSM SMS module to realize the transmission of wireless date, in the choice of GSM module, we se
6、lect TC35i module between MZ28 module, Q2406B GSM module and TC35i module. In the design process of alarm system, we select the modularize method, including the SCM system initial module, communication module initialization module, user authentication module, data transmission module,data acquisition module and alarm control output module. In the process of this designation, this paper provides the functional block diagram of hardware, flowchart of every module, including Text messages alar