没有合适的资源?快使用搜索试试~ 我知道了~
### 使用PIC32微控制器开发GSM/GPRS/GPS解决方案
#### 引言
随着物联网技术的发展,机器与机器之间的通信(M2M)成为连接物理世界与数字世界的桥梁。M2M技术允许设备捕获事件并通过网络传输到应用程序进行处理,从而实现信息的有效利用。本文将探讨如何使用Microchip的PIC32微控制器(MCU)配合M2M PICtail Plus Daughter Board以及Multimedia Expansion Board(MEB)来实现GSM/GPRS/GPS功能,并介绍其在不同场景中的应用。
#### M2M技术概述
M2M技术是使无线和有线系统能够与其他具有相同能力的设备进行通信的技术。它通过一个设备捕捉事件并将其通过网络发送至应用程序进行翻译处理,最终转化为有意义的信息。常见的M2M应用场景包括车队管理、智能计量等。
#### 智能计量应用
传统的计量方式通常需要人工上门抄表,而基于M2M技术的智能计量则可以远程读取数据并进行编程,极大地提高了操作效率。例如,在智能电表中,数据可以通过无线网络实时传输到数据中心,实现远程监控和管理。
#### 在车载GPS导航中的应用
随着M2M技术的发展,车载GPS导航系统变得越来越普及。消费者可以在车内拥有完整的GPS导航系统,该系统不仅可以跟踪驾驶员的当前位置,还可以提供路线指导。此外,用户还可以从同一设备上拨打紧急电话。企业也可以利用这项技术对停车场内的车辆停留时间进行监控,以便合理收费。
#### Microchip M2M PICtail Plus Daughter Board
Microchip推出的M2M PICtail Plus Daughter Board是由u-blox AG设计的,旨在与Multimedia Expansion Board(MEB)上的PICtail接口直接连接。然而,它也可以与其他任何PIC32微控制器一起使用。这块板载有多种功能,包括GSM、GPRS和GPS。
- **全球移动通信系统(GSM)**
- GSM是一种广泛采用的移动电话系统标准,支持数字信号和语音通道。
- 它被归类为第二代(2G)移动电话系统,促进了数据通信应用的大规模实施。
- GSM还支持短信服务(SMS),即文本消息功能。
- **通用分组无线服务(GPRS)**
- GPRS是一种用于GSM网络的数据承载技术,提供始终在线的互联网接入。
- 它允许用户同时进行语音通话和数据传输。
- GPRS为移动互联网服务提供了基础,如网页浏览、电子邮件等。
- **全球定位系统(GPS)**
- GPS是一种卫星导航系统,用于定位、导航和时间同步。
- 在M2M应用中,GPS可以帮助追踪资产位置、监控运输过程等。
#### 实施方案
Microchip提供的参考设计描述了如何使用PIC32 MCU、M2M Board和MEB实现GSM/GPRS/GPS连接性。这种设计方案不仅简化了开发过程,还使得开发者能够快速构建出功能强大的M2M解决方案。
使用Microchip的PIC32 MCU和其他配套硬件可以有效地实现GSM/GPRS/GPS功能,并应用于多种实际场景中,如智能计量、车队管理和车载导航等。这些技术的应用极大地提升了效率和服务质量,为现代社会带来了便利。
© 2011 Microchip Technology Inc. DS01373A-page 1
INTRODUCTION
Technologies that allow both wireless and wired
systems to communicate with other devices of the
same ability are referred to as Machine-to-Machine
(M2M). M2M uses a device to capture an event, which
is then relayed through a network to an application that
translates the event into meaningful information. A
common application of M2M is fleet management,
where vehicle tracking is wirelessly transmitted to a
central monitoring office over cellular networks.
There are many popular M2M applications, one of
which is a utility meter. One of the major benefits of a
M2M-based utility meter over a traditional one, is
immediate operational efficiency from reading and
programming meters remotely, which eliminates the
need to physically visit the meter.
Another application becoming more popular with M2M
technology is in-car GPS navigation. With this
technology, consumers now have a complete GPS
navigation system in their vehicles. This technology
can be used to track a driver’s current location, or
provide a map for directions. Also, the consumer can
make an emergency call from the same device that is
doing the tracking. Businesses can use this technology
for parking lots to know how long a vehicle has been
parked and to charge it accordingly.
The Microchip M2M PICtail™ Plus Daughter Board
(referred to as the M2M Board) developed by u-blox
AG, was designed to connect directly to the PICtail™
interface of the Multimedia Expansion Board (MEB),
but can also be used with any PIC32 microcontroller.
This application note describes a reference design that
enables the implementation of GSM/GPRS/GPS
connectivity using a PIC32 microcontroller (MCU), the
M2M Board, and the MEB.
Feature Overview
The M2M PICtail Plus Daughter Board contains many
features, including GSM, GPRS, and GPS.
• Global System for Mobile Communication (GSM)
GSM is a popular world-wide standard for mobile
telephone systems. GSM includes technologies in
both signaling and speech channels, which are
digital; therefore, GSM is considered a Second
Generation (i.e., 2G) mobile phone system. This
facilitates the wide-spread implementation of data
communication applications into the system. GSM
also implements a Short Message Service (SMS),
called text messaging.
• General Packet Radio Service (GPRS)
GPRS is a service on 2G and 3G cellular
communication systems (GSM). GPRS provides
data rates of 56-114 kbps, which provides users
with the capability to connect to the Internet.
• Global Positioning System (GPS)
GPS is a space-based navigation system that pro-
vides reliable location and time information in all
weather conditions and at all times, and anywhere
on or near the Earth when and where there is an
unobstructed line of sight to four or more GPS sat-
ellites. It is freely accessible by anyone with a GPS
receiver.
Functionality
The main functionality of the M2M Board is
accomplished using two communications modules from
u-blox A, which is a company that specializes in GSM/
GPS ICs. For more information, visit www.u-blox.com.
The M2M Board was designed to connect to
Microchip’s MEB. The MEB uses Microchip’s PIC32
starter kit collection as the primary controller source.
This suite makes it easy to start and implement
embedded controller projects due to its:
• Built-in debugger
• USB power source
• On-board header for easy attachment to PCBs
• PIC32 device with high-speed performance and
no peripheral loss
Authors: Adam Folts
Microchip Technology Inc.,
with contributions from u-blox AG
AN1373
Using PIC32 MCUs to Develop GSM/GPRS/GPS Solutions
AN1373
DS01373A-page 2 © 2011 Microchip Technology Inc.
HARDWARE DESCRIPTION
As previously mentioned, the M2M Board is built
around two controller modules, the LEON-G200 and
the NEO-6Q, which are available from u-blox AG.
The LEON-G200 is a Quad Band GSM/GPRS data
and voice module. Communications to the module
are through AT commands. The UART module on
the PIC32 device handles the AT commands. The
LEON-G200 handles the GPS communications to
the NEO-6Q module. The module also contains
1 MB of non-volatile memory that can be used for
storing local or Internet files.
The NEO-6Q GPS module uses the u-blox six-
positioning engine for its GPS positions support. In
this hardware setup, it acts as a slave to the LEON-
G200, but can be a stand-alone module with its own
set of AT commands. For more information on these
two modules and a list of AT commands, visit
www.u-blox.com.
A block diagram of the reference design is provided in
Figure 1.
The M2M Board connects to expansion slot header J5
of the MEB. Figure 1 illustrates the connector pins.
Descriptions of each pin are listed in Table 1.
FIGURE 1: SCHEMATIC OF
CONNECTOR TO MEB
FIGURE 2: REFERENCE DESIGN BLOCK DIAGRAM
+3.3V supplied
from the MEB
J2
R6
4.7k
R7
4.7k
VIN
SDA3
SCL3
PWR_ON
RESET_N
+3.3V
1
3
5
7
9
11
13
15
17
19
21
23
25
27
2
4
6
8
10
12
14
16
18
20
22
24
26
28
HDR-TH_0.1-2X14
RI
DTR
DSR
RXD
TXD
RTS
CTS
DCD
PIC32 MCU
UART
M2M PICtail™ Plus Daughter Board
LEON-G200 (u-blox) NEO-6Q (u-blox)
GSM/GPRS Module
GPS Module
© 2011 Microchip Technology Inc. DS01373A-page 3
AN1373
The M2M board also implements the following:
• SAW filter
The filter is located in front of the LNA to improve
the GPS interference immunity (outband interfer-
ence from collocation of near field Wireless com-
munication). The SAW-LNA-SAW chain is
implemented for best immunity and performance.
• SIM holder
The holder is used for the SIM card, which enables
GPRS/GSM communication evaluation.
• RF SMA Connector
The connector is located in front of antenna detec-
tion and switch circuitry, which allows automatic
hardware detection and connection onto a GPS
external antenna. Using an external GPS external
antenna is optional and allows for better GPS
performance under poor GPS conditions.
Figure 3 provides a detailed diagram of the M2M
Board.
FIGURE 3: M2M PICtail™ PLUS DAUGHTER BOARD BLOCK DIAGRM
GSM
Antenna
GPS
Antenna
LDO
SAW-
LNA-
SAW
SIM
Holder
LEON-G200
GPRS/GSM
Module
NEO-6Q
GPS
Module
RF Connector
UART
V
CC
AN1373
DS01373A-page 4 © 2011 Microchip Technology Inc.
TABLE 1: MEB CONNECTOR PIN
DESCRIPTIONS
As seen in Table 1, most of the communication to the
LEON-G200 is handled through the UART.
The MEB communicates to the M2M Board through the
UART. The baud rate can be an auto baud rate, and
most of the common baud rates are acceptable.
The PIC32 family of devices offer the same peripherals
as seen on previous Microchip devices.
See “References” for links to information on the
hardware and the PIC32 device used in this reference
design.
DEMONSTRATION DESCRIPTION
This section describes in detail what is contained in the
GSM/GPRS/GPS demonstration. Some of the images
may contain different graphics than those shown in this
application note, but the basic functionality of the
demonstration is still present.
The MEB contains a 3.2" QVGA touch screen display,
making the demonstration easy to follow, and shows
how each service is set up. The Debug output of the
PIC32 Starter Kit can be used to see which u-blox
commands are being used throughout the
demonstration.
The demonstration starts with the initialization of all
GSM/GPS/GPRS services. Notice in Figure 4 that
most buttons seem disabled except for HELP and
NEXT. Selecting NEXT initializes the M2M Board
setup. The M2M Board requires a SIM card with a data
plan to be inserted into the back of it in order for the
GSM/GPRS demonstrations to function. The
initialization step has three screens that initialize GPS,
GPRS, and GPS technologies, one at a time. Some
technologies require some time (10-30 seconds) for
their service provider to respond.
FIGURE 4: MAIN DEMO SCREEN
The GSM demonstration shows the current signal
strength and the service provider. With this
demonstration, the user can also send a text message
by selecting the SMS button, as shown in Figure 5.
Once SMS is selected, the user will be taken to a
screen where they can enter a phone number. Once
the number is entered and a SIM card is inserted into
the M2M Board, a message from the M2M Board will
be sent to that phone number.
By default, the M2M demonstration has SMS receiving
turned ON. This means that if a text message is sent to
the board, the demo will pause and show the number
and message received, and then return to the demo.
Connector
Pin Name
MEB Pin
Name
Description
RI WIFI_SDO UART ring indicator
DTR WIFI_SDI UART data terminal
ready
DSR WIFI_SCK UART data set ready
RXD SDI3A UART receive data
TXD SDO3A UART transmit data
RTS SCK3A UART ready to send
CTS SS3A/RF12 UART clear to send
DCD WIFI_CS UART data carrier detect
PWR_ON C2OUT/AN9 Turns the device on/off
RESET_N RA10 Holds the device in reset
© 2011 Microchip Technology Inc. DS01373A-page 5
AN1373
FIGURE 5: GSM DEMO SCREEN
The GPRS demo (see Figure 6) shows to which IP
address the device is connected. This screen initiates
the basic Internet connection needed to create
demonstrations, such as an e-mail service, simple Web
browsing, and any other 2G phone feature involving an
Internet connection.
FIGURE 6: GPRS DEMO SCREEN
The GPS demonstration shows the current longitude
and latitude coordinates, as shown in Figure 7.
The Email button will become enabled when an active
SIM card is present with data services available. By
selecting the Email button, the user will be sent to a
screen where an e-mail address can be entered, and if
an e-mail server has been set up correctly, an e-mail
can be sent. Refer to the BYTE acdEmailSetup()
function to change the email server name. The M2M
board does not support SSL-based SMTP servers. The
Map button will remain enabled until GPS data is
available.
FIGURE 7: GPS DEMO SCREEN
The map demo uses HTTP requests and the on-board
1 MB of memory to receive and store an image from
the Internet. The image is from Google Maps and
shows the current GPS location of the M2M Board. The
demo only shows a static image of the current location,
and is not configured for navigation. GSM, GPRS, and
GPS capabilities need to be active for this demo to be
enabled. Make sure the SIM card attached is active
and that data services are available.
FIGURE 8: MAP DEMO SCREEN
Note: GPS data is not ready until the LED
labeled TIMEPULSE on the M2M Board is
blinking green.
剩余33页未读,继续阅读
资源推荐
资源评论
2024-01-30 上传
111 浏览量
2010-08-17 上传
2019-09-13 上传
5星 · 资源好评率100%
2022-05-04 上传
2013-11-26 上传
174 浏览量
172 浏览量
182 浏览量
2024-10-02 上传
2022-10-29 上传
130 浏览量
5星 · 资源好评率100%
162 浏览量
120 浏览量
131 浏览量
153 浏览量
159 浏览量
2024-01-08 上传
135 浏览量
2021-08-09 上传
174 浏览量
189 浏览量
2024-09-05 上传
2011-04-04 上传
2021-10-02 上传
资源评论
Codings
- 粉丝: 35
- 资源: 182
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 永磁同步电机传统直接转矩控制仿真,功况波形很好
- Python Flask搭建基于TiDB的RESTful库存管理系统实现
- 面向计算机科学专业学生的作业五任务解析与指引
- 医学图像处理与评估:色调映射及去噪技术的应用
- 有限元方法中Sobolev范数误差估计与Matlab程序改进及应用作业解析
- MATLAB分步傅里叶法仿真光纤激光器锁模脉冲产生 解决了可饱和吸收镜导致的脉冲漂移问题
- 基于java的产业园区智慧公寓管理系统设计与实现.docx
- 基于java的大学生考勤系统设计与实现.docx
- 基于java的本科生交流培养管理平台设计与实现.docx
- 基于java的大学校园生活信息平台设计与实现.docx
- 基于java的党员学习交流平台设计与实现.docx
- 光伏发电三相并网模型 光伏加+Boost+三相并网逆变器 PLL锁相环 MPPT最大功率点跟踪控制(扰动观察法) dq解耦控制, 电流内环电压外环的并网控制策略 电压外环控制直流母线电压稳住750V
- 基于java的多媒体信息共享平台设计与实现.docx
- 基于java的公司资产网站设计与实现.docx
- 基于java的二手物品交易设计与实现.docx
- 基于java的供应商管理系统设计与实现.docx
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功