Professional Documents
Culture Documents
Member of group:
Technical internship
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
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
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
Technical internship
Pin description
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
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
Technical internship
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.
Technical internship
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.
Technical internship
System_init
Mount SD Card
Sleep Interrupt
Log on/off
SD Card
Send to SD Card
Computer
Google Map
Technical internship
3v 3 + C1 10u
R15 33k
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
Fig 9. IO of Lm3s3749
10
Technical internship
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
GND 3V3
C11 0.01u
C12 0.01u
C13 0.1u
C14 0.1u
C15 1u
GND
GND
GND
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
VCC
ON/OFF GND FB
2 3 SW
5 4
CONTAC
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
SIM CARD
T2
SMF05C
SERIAL PORTS
12
Technical internship
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.
Technical internship
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