摘 要
随着人们的生活水平日益提高,汽车的应用发展迅速,汽车越来越多的为普通家庭所使用,在汽车的普及应用为人们的生活带来方便的同时,一个问题也凸显出来,那就是汽车的防盗问题。由于传统的汽车防盗系统遥控传输距离短,不能对被盗的状态进行检测。因此研究开发出一个新型有效的车辆防盗系统是很有必要的。
大学论文网www.wnwu.com 论文论述了一个基于GSM网络SMS短消息功能的车辆防盗系统的设计,重点论述了系统的软件设计过程。在掌握了单片机、串口通信、VB的相关知识及其开发工具、通信协议的基础上来进行软件设计,设计了程序流程,进行了程序编码,通过向TC35写入不同的AT命令,能够实现网络登录、读取SIM卡上的信息、发送SMS短消息、接收SMS短消息、发送状态信息等多种功能。设计中,采用单片机直接外接TC35模块来接收信息,用外部中断来检测信息的到来。在实际的调试和应用过程中,采用的是PC机通过VB程序对串口进行操作。系统采用短信互动方式,实现了超距离遥控防盗功能。设计具有模式多样化、控制智能化、操作简单化等优点。大学论文网www.wnwu.com
关键词:汽车防盗,GSM模块, SMS短消息, AT应用开发
ABSTRACT大学论文网www.wnwu.com
With the rising living standard of people, and the rapid development of the automobile, more and more ordinary families use the automobile. While the popularization of the automobile brings much convenience to people, a problem also stands out, that is the problem of anti-theft of the automobile. As the remote control transmission distance of the traditional car anti-theft system is short, it can not test the state of the automobile. Therefore it is necessary to study and develop a new and effective vehicle anti-theft system.
The paper discusses the design of the vehicle anti-theft system based on the SMS function of the GSM network, and dissertates the process of the software design especially. After I mastered the relevant knowledge of the Single Chip Micyoco, serial communications, Visual Basic, exploitation tools and communication protocol, I designed the program flow, and programmed. By writing different AT command to TC35, it can realize the network landing, read the Informations in the SIM card, send SMS, receive SMS and send the status message and so on . While designing, I connect SCM to external TC35 module directly to receive information, and detect the arrival of information by external interrupt. In the actual process of debugging and application, the PC operate the serial port via the VB program. The system using the mode of interactive SMS, has realized the ultra-distance remote control anti-theft function. The design is diversiform in mode, intelligent in control, simple in operation and so on.
Keywords: Anti-theft vehicles,GSM engine module, SMS Short Message, AT Application Development
目 录
第1章 绪论大学论文网www.wnwu.com 3
1.1 GSM网络 3
1.1.1 GSM概述 3
1.1.2 GSM在设计中的应用 3
1.2设计的意义 4
1.3主要模块介绍 5
1.3.1单片机控制单元ECU 5
1.3.2 TC35 6
第2章 系统介绍 8
2.1 系统的结构设计 8
2.1.1传感器电路 8
2.1.2执行电路 8
2.1.3短消息检测与控制电路 8
2.1.4 ECU单片机最小系统 9
2.2 系统工作原理 10
2.2.1 工作及设置方式 10
2.2.2 主控系统 10
2.2.3 无线通讯 11
第3章 软件设计大学论文网www.wnwu.com 12
3.1软件设计的基础 12
3.1.1通信方式、协议 12
3.1.2移动通信的基本技术 13
3.1.3串行通信的基本技术 14
3.1.4 RS-232的引脚定义 16
3.1.5 通信参数的定义 18
3.1.6基于GSM通信的软件接口 19
3.1.7通信协议 19
3.2设计工具 22
3.2.1 Keil C uVision 2 22
3.2.2 Microsoft Visual Basic6.0 23
3.2.3 windows超级终端 23
3.3程序流程的设计 24
3.4编程实现 26
3.4.1 VB编程 26
3.4.2 PC机用串口控制单片机上的开关量信号 31
3.4.3 单片机控制TC35i模块发送短消息 33
第4章 软件调试 36
4.1 串口调试 36
4.2 在PC上调试短信息的VB程序界面 39
4.3 调试中数据的分析 42
结论 大学论文网www.wnwu.com47
参考文献 48
致 谢 49
附 录 50