atmega16
基于GSM短信模块的定位跟踪系统设计实现
李 锐 周敏健 李文虎 黄 涛
(北京电子科技学院 电子信息工程系,北京 100070)
摘要:目前大多GPS设备只能接收GPS信息WhatsApp网页版,不能实现GPS信息转发。而本文介绍了一种基于GSM短信模块的定位跟踪系统,实现了通过GSM网络传输GPS信息功能。该系统主要由Atmega16单片机、GPS接收机GR-87、以及GSM短信模块TC35i组成。系统能够及时准确地将GPS获得的信息传送给GPS设备,在紧急情况下能够实现短信报警。 关键字:GPS定位 GSM短信
定位跟踪 串口通信
中图分类号:TN929.5文献标识码:A
Designed and Implementation of the Positioning and Tracking System based on GSM SMS
Module
Li Rui Zhou Minjian Li Wenhu Huang Tao
(Beijing Electronic Science & Technology Institute, Beijing 100070 China)
Abstract: Most of the GPS device can only get the information. The positioning and tracking system based on GSM SMS module
can transport the GPS information through the GSM network. Single-chip processor made up the processor, to achieve the adoption of the GSM network of GPS information transmission function. The system was composed by GR-87's GPS receiver module, single-chip control module made up by Atmege16 processor, TC35i-the GSM modules to send and receive text messages. After testing, the system could be able to timely and accurate access to the GPS information to GPS devices, in case of emergency this system can send special text messages to report to the police to carry out the operation.
Keywords: GPS Positioning; GSM Short message service; Location tracking; Serial Communication
GPS作为成熟实用的全球精密测时、测距、导
航、定位系统在诸多领域均有广泛的应用。目前市面多数
GPS设备只有单向通信能力,只能接收GPS信息,而不能将GPS信息转发。一旦持有GPS设
备的人员发生意外WhatsApp网页版,他人不能及时了解当事人状况。而本文设计实现的系统不仅能够定时接收全球
卫星定位信号,并且能通过GSM网络向未持有GPS设备的用户按需发送信息;同时在意外发生时能够及时将包含地理信息的报警短信发送到特定手机号码进行报警操作。
接口(SPI接口)传送给
MCU控制模块的从机部分;从机对信息进行编码;编码后的消息经过短信发送模块发送到指定的手机。
1 硬件系统设计
基于GSM短信模块的定位跟踪系统硬件系统主要有GPS信息接收机、单片机控制控制模块(主机、从机)、信息发送模块、手机接收测试部分及其他外围电路组成(见图1)。GPS信息接收机接收到的GPS信息经过串口发送到单片机控制模块中
的主机部分;主机将选择出来的信息通过同步串行
283
图1 系统硬件逻辑框图
1.1 定位跟踪模块
GPS 全球定位系统包括GPS网络和专业的地面接收设备。接收设备可以显示出当前地理信息、时间信息等;如果将当前的信息发送给信息管理中心WhatsApp网页版,便可以接受管理中心的统一调度。基于GSM短信模块的定位追踪系统便是基于后一种理论进行设计实现的。GPS模块接收来自GPS卫星系统的C/A码,单片机控制模块根据信息码计算得到当前