You are on page 1of 14

Technical internship

Global Positioning System

Global Positioning System GPS module Receive and Application

Member of group:

Ha Hoang-Viet Manh Nguyen-Tien Nhat Thai-Xuan-Hong Quy Vo-Mai-Duy

HCMUT, Faculty of Electrical and Electronics Engineering Department of Automatic Control

June 10, 2012


Abstract
This report present the overview of Global Positioning System (GPS) and how to find out the location using Sim908 module and save it by SD-card module. We develop applications include: positioning, data acquisition, distance measurement and Graphical User Interface (GUI) with more exact measurement. Keywords: Sim908, LM3s3749, GUI, measurement

Technical internship

Global Positioning System

Contents 1. Introduction..............................................................................................3
1.1 Sim908 module ........................................................................................... 3 1.2 SD-Card module .......................................................................................... 7 1.3 Micro-Controller Lm3s3749 ....................................................................... 7

2. Experimental ............................................................................................8
2.1 Algorithm Description ................................................................................ 8 2.2 Development Board..................................................................................... 10

3. Results ......................................................................................................13 4. Conclusion ...............................................................................................14

List of Figures
1. SIM 908 Diagram ........................................................................................ 4 2. Reference circuit of the 8-pin SIM Card holder ......................................... 6 3. CPU Block Diagram ................................................................................... 7 4. Algorithm Description 1 ............................................................................. 8 5. Algorithm Description 2 ............................................................................. 9 6. SD Card Module.......................................................................................... 10 7. PL 2303 ....................................................................................................... 10 8. J-tag Debug Ports ........................................................................................ 10 9. IO of LM3s3749 .......................................................................................... 10 10. Main CPU LM3s3749 ................................................................................. 11 11. Power Supply circuit ................................................................................... 12 12. SIM Card circuit .......................................................................................... 12 13. Serial Ports circuit ....................................................................................... 12 14. The way we went in the map....................................................................... 13 15. The way shown in Google map ................................................................... 13

List of Tables
1. Pin Description ............................................................................................ 5 2. AT Commands for GPS function ................................................................ 6 3. Pin Description of SIM Card ...................................................................... 7

Technical internship

Global Positioning System

1. Introduction
The Global Positioning System (GPS) is a space-based global navigation satellite system (GNSS) that provides location and time information in all weather, any-where on or near the Earth, where there is an unobstructed line of sight to four or more GPS satellites. It is maintained by the United States government and is freely accessible by anyone with a GPS receiver. In addition to GPS, other systems are in use or under development. The Russian Global Navigation Satellite System (GLONASS) was in use by only the Russian military, until it was made fully available to civilians in 2007. There are also the planned Chinese Compass navigation system and the European Union's Galileo positioning system. The current GPS consists of three major segments. These are the space segment (SS), a control segment (CS), and a user segment (U.S). The U.S. Air Force develops, maintains, and operates the space and control segments. GPS satellites broadcast signals from space, and each GPS receiver uses these signals to calculate its three-dimensional location: latitude, longitude, and altitude and the current time. The U.S. Government controls the export of some civilian receivers. All GPS receivers capable of functioning above 18 kilometers altitude and 515 meters per second are classed as munitions (weapons) for which U.S. State Department export licenses are required. These limits attempt to prevent use of a receiver in a ballistic missile. Specially, they would not prevent use in a cruise missile because their altitudes and speeds are similar to those of ordinary aircraft. Nowadays, GPS becomes the most popular system for positioning applications. It is used for tracking, mapping, navigation, measurement include military applications, civilian use. This report focuses on the way using Sim908 and LM3s3749 to find out position, assemble data and then draw them on Google Earth.

1.1

Sim908 Module

SIM 908 offers this information as a service to its customer, to support application and engineering efforts that use to the products design by SIM 908. The information provided is based upon requirements specifically provided to SIM 908 by customers. SIM 908 has not undertaken any independent search for additional relevant information, including any information that may be in the customer possession. Furthermore, system validation of this product designed by SIM 908 within a larger electronics system remains the responsibility of the customer of customers system integrator. All specification supplied here in are subject to change.

Technical internship
Pin out diagram

Global Positioning System

Fig 1: Sim908 diagram

Technical internship
Pin description

Global Positioning System

Table 1: Pin Description There are a lot of modes in this module, but we only focus on GPS mode. GPS Application Interface o Sim908 provide high-performance L1 GPS solution for cellular handset application. The solution offer best-in-class acquisition and tracking sensitivity, Time-To-First-Fix (TTFF) and accuracy. The GPS engine supports both fully-autonomous operation for use in handheld consumer navigation devices and other standalone navigation systems. o The GPS NMEA information is output by DEBUG port. The default baud rate is 115200bps.
5

Technical internship

Global Positioning System

o The GPS engine is controlled by GSM engine, so when it is necessary to rub GPS the GSM engine must be powered on and not in SLEEP mode. o All the GPS function is controlled by AT command via serial port. The GPS function AT commands are listed in the following table. Command
AT+CGPSPWR AT+CGPSRST AT+CGPSSTATUS AT+CGPSOUT AT+CGPSINF AT+CGPSIPR

Description
GPS power control GPS mode reset (hot/warm/cold) Get current GPS status GPS NMEA data output control Get current GPS location info Set GPS NMEA output uart bps

Table 2: AT Commands for GPS function GPS Operation Mode o Active mode: GPS is active as a GPS receiver. The GPS engine will automatically acquire and track GPS satellites. o Power down mode: The GPS engine will be set into this mode by sending AT commad AT+CGPSPWR=0. In this mode the internal power supply for GPS will be shutdown and the current consumption is very low. The last position, current time and ephemeris data will be stored in the GS host memory. Power on GPS engine : by sending AT command AT+CGPSPWR=1 Power down GPS engine: by sending AT command AT+CGPSPWR=0 GPS Antenna Interface : The RF interface has an impendence of 50 SIM Card Interface d

Fig 2: Reference circuit of the 8-pin SIM card holder

Technical internship

Global Positioning System

Table 3: Pin description of SIM card

1.2

SD-card Module

The SD-Card is a standardized flash memory storage device that is the mechanically compatible successor of the MMC-Card. SD stands for Secure Digital. For usage it needs to be plugged into a socket and can be used for any sort of data storage. Typically a file system like FAT16 will be applied to such a device. Alternate file systems are possible, e.g. the optimized Linux flash file systems, at the price of only being able to read the data in other common systems only with extra efforts.

1.3

Micro-Controller TI LM3S3749

The ARM Cortex-M3 processor provides a high-performance, low-cost platform that meets the system requirements of minimal memory implementation, reduced pin count, and low power consumption, while delivering outstanding computational performance and exceptional system response to interrupts.

Fig.3: CPU Block Diagram


7

Technical internship

Global Positioning System

2. Experimental
2.1 Algorithm Description
Module ARM: main processor, send AT command to module SIM908 (GPS), handle the data received then save them to memory of SD Card. Using Graphic User Interface to display location from the SD Card to computer by Google Earth service.

Fig 4. Algorithm Description 1

Technical internship

Global Positioning System

System_init

Sys_Clock: 50MHz(PLL) Init UARTS

Mount SD Card

Init SSI Init UARTS

Sleep Interrupt

Init SysTick Init IO Init Timers

Log on/off

Create new file Take GPS

SD Card

Read current file

Send to SD Card

Computer

Google Map

Fig 5. Algorithm Description 2

Technical internship

Global Positioning System

2.2 Development Board


Source Board: Provide the voltage and current SD-card:
SDI J1 3v 3 SD_CD SCK SDO GND 2 4 6 8 TO MCU 1 3 5 7 SD_WP SDI CS 3v 3 LED 1 2 3 4 5 6 7 8 9 CS/DAT3 SI/CMD GND1 VDD SCK/CLK GND2 SO/DAT0 RES/DAT1 RES/DAT2 U2 SD card R11 33k CD WP GND3 GND4 GND5 GND6 10 SD_CD 11 SD_WP R13 33k 12 13 14 15 D1 R8 CS 3v 3 SDO 1k SCK R12 33k 3v 3

3v 3 + C1 10u

3v 3 C2 100n 3v 3 R10 33k

R15 33k

GND

Fig 6. SD CARD Module Arm Cortex M3 LM3S3749


XT2
U01 RXD DTR

C21 10p GND

3V3

RTS TXD

R23 4k7

1 2 3 4 5 6 7 8 9 10 11 12 13 14

TXD DTR_N RTS_N VDD_232 RXD RI_N GND1 VDD DSR_N DCD_N CTS_N SHTD_N EE_CLK EE_DATA

OSC2 OSC1 PLL_TEST GND_PLL VDD_PLL LD_MODE TRI_STATE GND VDD1 RESET GND_3V3 VDD_3V3 DM DP

28 27 26 25 24 23 22 21 20 19 18 17 16 15

12M C22 10p R21 R22 220k 220k USB_5V GND USB_5V GND 3V3 C23 100n C25 100n

PL2303

R24 27 GND

R25 27

R26 1k5

C24 10u

GND

PL_DM PL_DP

GND

Fig 7. PL2303
3V3 P2 3V3 R01 R02 R03 R04 10k 10k 10k 10k TDI TMS TCK TDO nRST 1 3 5 7 9 11 13 15 17 19 2 4 6 8 10 12 14 16 18 20
3V3 R05 10k SW2 GND
1 2

P3 1 2 IOTEST D2

C_SW 100n R2 3V3 1k

JTAG 20 pin GND

Fig 8. J-tag Debug Port

Fig 9. IO of Lm3s3749

10

Technical internship

Global Positioning System

U1 RX0 TX0 PA0 PA1 PA2 PA3 PA4 PA5 PA6 PA7 PC0 PC1 PC2 PC3 PC4 PC5 PC6 PC7 PE0 PE1 PE2 PE3 PE4 PE5 PE6 PE7 PG0 PG1 PG2 PG3 PG4 PG5 PG6 PG7 26 27 28 29 30 31 34 35 80 79 78 77 25 24 23 22 74 75 95 96 6 5 2 1 19 18 17 16 41 40 37 36 48 49 C07 10p nWAKE nHIB GND GND 9 15 21 33 39 45 54 57 63 69 82 87 94 4 50 51 XOSC0 XOSC1 52 53 PA0/U0RX PA1/U0TX PA2/SSI0CLK PA3/SSI0FSS PA4/SSI0RX PA5/SSI0TX PA6/CCP1 PA7/CCP3 PC0/TCK/SWCLK PC1/TMS/SWDIO PC2/TDI PC3/TDO/SWO PC4/CCP5 PC5/C1+ PC6/PHB0 PC7/C1O PE0/SSI1CLK PE1/SSI1FSS PE2/SSI1RX PE3/SSI1TX PE4/ADC3 PE5/ADC2 PE6/ADC1 PE7/ADC0 PG0/I2C1SCL PG1/I2C1SDA PG2/FAULT0 PG3/FAULT2 PG4/FAULT1 PG5/IDX0 PG6/PWM6 PG7/PWM7 OSC0 OSC1 XOSC0 XOSC1 WAKEN HIBN GND GND GND GND GND GND GND GND GND GND GND GND GND GNDA RSTN VDD VDD VDD VDD VDD VDD VDD VDD VDDA VBAT VDD25 VDD25 VDD25 VDD25 LDO LM3S3749-IQC 64 8 20 32 44 56 68 81 93 3 55 14 38 62 88 7 C01 1u C02 0.01u C03 0.1u C04 0.1u C05 0.01u VBAT PB0/U1RX PB1/U1TX PB2/I2C0SCL PB3/I2C0SDA PB4/C0PB5/C1PB6/C0+ PB7/NMI PD0/U2RX PD1/U2TX PD2/CCP6 PD3/CCP0 PD4/ADC7 PD5/ADC6 PD6/ADC5 PD7/ADC4 PF0/PWM0 PF1/PWM1 PF2/PWM4 PF3/PWM5 PF4/C0O PF5/CCP2 PF6/PHA0 PF7/CCP4 PH0/PWM2 PH1/PWM3 PH2/FAULT3 PH3/USB0EPEN PH4/USB0PFLT 66 67 72 65 92 91 90 89 10 11 12 13 97 98 99 100 47 61 60 59 58 46 43 42 86 85 84 83 76 PB0 PB1 PB2 PB3 PB4 PB5 PB6 PB7 PD0 PD1 PD2 PD3 PD4 PD5 PD6 PD7 PF0 PF1 PF2 PF3 PF4 PF5 PF6 PF7 PH0 PH1 PH2 PH3 PH4 3V3 USB0DM USB0DP USB0RBIAS 70 71 73 USB0_DM USB0_DP R06 9.1k 1% nRST GND R07 10k SW1
1 2

TCK TMS TDI TDO

XT1 C06 10p 8MHz

GND 3V3

C11 0.01u

C12 0.01u

C13 0.1u

C14 0.1u

C15 1u

GND

GND

GND

Fig 10. Main CPU (LM3S3749)

11

Technical internship
SIM908 Power supply
DC IN 1 2 C1 + 1uF/50V + 100uF/50V LM2576ADJ/TO263 1N5822 C2 1 5 3 U1 L1 VIN OUT 2 100uH/3A

Global Positioning System

VCC

ON/OFF GND FB

1 4 D1 + C3 330uF/25V 10K VR C4 104 6

2 3 SW

5 4

CONTAC

Fig 11 Power supply circuit SIM Card

SIM_DATA

R8

22R

DATA

SIM_VDD C5 22 SIM_RST SIM_CLK R10 C6 104 R9 22R 22R RST CLK SIM 6 Pins 1 2 3 7 6 5

U2 T1 T3 T4 T5 T6 1 3 4 5 6 RST SIM_VDD DATA CLK

SIM CARD

T2

SMF05C

Fig 12. SIM Card circuit Serial Ports


JCOM PORT J_GPS/DEBUG PORT 1 2 GTXD GRXD 8 7 6 5 4 3 2 1 RTS CTS RI DCD DTR RXD TXD

Fig 13. Serial Ports Circuit

GPS/DEBUG PORT COM PORT

SERIAL PORTS

12

Technical internship

Global Positioning System

3. Results
We developed typical applications successful! Located the way we go with the application and saved it to SD card. Draw the way to Google map.

Fig 14. The way we went in the map

Fig 15. The way shown in Google map


13

Technical internship

Global Positioning System

4. Conclusion
GPS is a good measurement to locate the position exactly. With this project, we can develop more application such as: o Calculate area. o Determine the way gone of the vehicle. o Apply for black box to define position, speed of vehicles. Development : more intergrade o GPRS, GSM send information to web server in order to manage online.

14

You might also like