基于STM32的位置定位系统设计

2018-05-08 03:24:22范兵兵艾信友曾研胡凯旋任泽明
科技创新与应用 2018年12期

范兵兵 艾信友 曾研 胡凯旋 任泽明

摘 要:文章设计了基于STM32和SIM卡基站定位的位置定位系统。首先,在开机后,使用者需要向SIM900A模块的SIM卡发送短信,该短信的内容为使用者的手机号码。STM32单片机接收各传感器采集的数据并处理分析后,通过SIM900A短信、GSM、GPRS模块将位置信息以短信的方式发送到手机,同时操作者通过手机浏览器浏览http://gpsspg.com/bs.htm网站查询基站定位所获得位置的地图,从而知道具体位置。

关键词:SIM900A;基站定位;STM32F407;定位系统

中图分类号:TN967.1 文献标志码:A 文章编号:2095-2945(2018)12-0090-02

Abstract: A position location system based on STM32 and SIM card is designed in this paper. First, after the boot, the user needs to send a short message to the SIM card of the SIM900A module, the content of which is the mobile phone number of the user. After receiving and analyzing the data collected by each sensor, STM32 microcontroller sends the position information to the mobile phone by SMS, GSM and GPRS module. At the same time, the operator browses the http://gpsspg.com/bs.htm website through the mobile phone browser to query the map of the location of the base station, so as to know the specific location.

Keywords: SIM900A; base station positioning; STM32F407; positioning system

引言

随着社会老龄化越来越严重,越来越多的老人患老年痴呆症,越来越多的老人走丢,而老人的子女等监护人没有那么多的时间照看老人;而市面上的老人防走丢的定位系统售价很高。为了防止老人走丢和一定程度上解放老人的子女等监护人,让更多的普通家庭也能享受到科技进步带来的福利,设计出一个稳定、安全、可靠实用、便携、便宜的定位系统就具有很高的实用价值。

1 系统概述

该系统以STM32F407微控制器为核心,SIM900A为定位數据的采集端和信息发送端,Android手机为显示终端。总体设计如图1所示。

2 原理

2.1 基站定位原理

基站定位的原理为:不同基站测量移动电话的下行导频信号,得到不同基站下行导频的到达时刻或到达时间差,根据该测量结果和不同基站的坐标,采用相应的三角公式估计算法,就能够计算出移动电话的大致位置。实际的位置估计算法需要考虑多基站(3个或3个以上)定位的情况,因此算法相对复杂。……

登录APP查看全文