文档介绍:摘要
本文详细地叙述了基于西门子公司的TC35i型GSM手机模块的无线库房报警系统的设计过程。文中探讨了利用GSM短消息作为数据传输媒介实现远程监视和控制库房的可行性,给出了采用TC35i模块和AT89S52单片机构成的能够远程监视和控制库房的无线报警系统的设计方案,给出了系统的硬件组成并着重介绍了软件的工作流程。文章重点阐述了AT89S52单片机和TC35i模块的接口、TC35i的特点和主要功能、AT指令的应用、短信PDU编解码在单片机上的实现,无线热释电红外探测器和无线门磁的工作原理等。
关键词:GSM模块;RS232串口;单片机;AT命令;无线探测器
Based on GSM security alarm system for the design of the Treasury-- Software Design
Abstract
This article describes in detail based on the Siemens TC35i module type GSM mobile phone wireless warehouse alarm system design process. The article discusses the use of GSM short message as a data transmission medium to achieve remote monitoring and control of the feasibility of the Treasury, TC35i given the use of single-chip modules and AT89S52 posed to remotely monitor and control the treasury of the wireless alarm system design, Given position of the system's hardware and software focused on workflow. AT89S52 article focuses on single-chip interface and TC35i modules, TC35i features and main functions, mand application, SMS PDU codec on the realization of the single-chip, wireless pyroelectric infrared detectors and the wireless door-ism such as the working principle.
Key words:GSM module;RS232 serial port;Single-chip;mand;Wireless detectors
目录
1 绪论 1
2 方案论证 1
控制器部分设计方案 1
GSM 模块的选择 2
3 系统结构框图 3
MCU中央控制部分 3
LED指示电路部分 4
4
GSM模块接口部分 4
报警输出控制部分 4
系统供电部分 4
4 系统软件设计 5
GSM常用AT指令 5
6
外部中断软件设计 7
各模块软件设计 8
初始化模块 8
GSM初始化模块 9
身份验证及授权模块 9
调试软件的使用 10
初期阶段的调试 10
程序设计阶段的调试 11
5 系统设计中出现的问题及解决办法 11
排除仿真终端上出现乱码的方法 11
排除调试阶段出现无法监视的方法 11
6 本设计的技术亮点 12
7 结论 12
谢辞 12
参考文献 13
附录程序清单 14
1 绪论
随着科学技术的迅猛进步、经济的飞速发展,社会生活、结构等各方面都发生了巨大变化,人们的思想观念、行为方式也发生了很大的变化;社会财富的日益丰富,既满足了人民群众提高物质生活水平的需要,同时也刺激了犯罪分子非法摄取钱财的恶欲。近些年,我国中小型企业发展迅速,数量有大幅度上升,为我国经济的快速发展贡献了巨大力量。库房作为企业的原材料基地和成品存放区也可以说是企业的大部分固定资金的存放区,往往引起不法分子的注意。对于一般小型企业,很多不会考虑安装价格比较昂贵的摄像监控系统,希望有价格合适又能随时监控库房的系统,本设计就是在此思想的指导下确立的。
全球移动通讯系统(Glo