文档介绍:摘要
本文详细地叙述了基于西门子公司的TC35i型GSM手机模块的门控及SMS报警系统的软件设计过程。给出了采用TC35i模块和单片机构成的门控控制及SMS报警系统的设计方案,并详细介绍了该系统的软件的工作流程。文章重点阐述了单片机和TC35i模块的通信过程、AT指令的应用、短信PDU编解码在单片机上的实现,程序模块的构成等。该系统单片机通过标准串口经电平变换与TC35i模块相连,完成对TC35i模块的初始化和短消息的数据收发功能,完成单片机与TC35i模块的信息传递,根据传递的信息,去驱动执行机构做出相应的动作。
关键词:TC35i 模块,SMS报警,AT指令,PDU编解码
Gated based on the GSM and SMS alarm system design
Abstract
This paper describes the software design process of alarm system based on the Siemens TC35i module type GSM mobile phone and SMS gate in detail. The paper gives the gated single-chip control and SMS alarm system design and details of the system software workflow bying use of TC35i modules . The paper focuses on describing the correspond process betweet single-chip interface and TC35i modules, TC35i features and main functions, mand application, the realization of SMS PDU in the single-chip codec , such as program modules. The single-chip of system associated with the TC35i module through a standard serial port plete the TC35i module initialization and the function of sending and receiving short message,plete the impression of information betweet single-chip and TC35i module, according to the message, the system drive the implementation to do the corresponding action.
Key words: TC35i module, SMS alarm, mands, PDU codec
目录
1 引言 1
课题的背景及意义 1
课题的应用前景 2
未来发展方向展望 2
2 方案论证 2
总体方案选择 2
无线数据传输模块 3
GSM Modem的选择 3
3 系统总体设计要求 5
4 系统总体设计框图 5
5 端口分配 5
6 软件总体设计 6
GSM常用AT指令 6
下位机软件组成 7
各模块软件设计 8
初始化模块 8
单片机发送AT指令的程序设计 9
中文短信息的收发 10
PDU模式及中文短信息的编码 10
短信报警程序设计 11
GSM模块的接打电话程序设计 11
数据传输模块 11
系统调试软件使用 12
初期阶段的调试 12
程序设计阶段的调试 12
7 系统设计中出现的问题及解决办法 13
排除调试阶段出现无法监视的方法 13
排除仿真器总端上出现乱码的方法 13
8 小结 14
致谢 14
参考文献 15
附录1 系统程序 16
1 引言
课题的背景及意义
随着人们生活水平的提高和安全防范意识的增强,人们开始关心自己的生活和工作环境,不但要求周边环境的舒适化和人性化,对居住工作环境的安全化和智能化也提出了更高的要求。同时,人们的思想观念、行为方式也发生了很大的变化,家用电器也逐渐从单纯的电器化向自动化转变,现在家用的门锁已经从传统的机械锁向电磁锁转变,随着家用电子设备的普及,传统的机械锁将