没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
© 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页未读,继续阅读
资源评论
Codings
- 粉丝: 32
- 资源: 182
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功