• No se han encontrado resultados

The GPS (Global Positioning System) is a “constellation” of 24 well-spaced satellites that orbit the earth and make it possible for people with ground receivers to pinpoint their geographic location. The location accuracy is anywhere from 100 to 10 meters for most equipment. Accuracy can be pinpointed to within 1 meter with special military-approved equipment .GPS equipment is widely used in science and has now become sufficiently low-cost so that almost anyone can own a GPS receiver.

The GPS has three components namely:

1. The space segment: consisting of 24 satellites orbiting the earth at an altitude of 11000 nautical miles.

2. The user segment: consisting of a receiver, which is mounted on the unit whose location has to be determined?

3. The control segment: consists of various ground stations controlling the satellites.

The GPS is owned and operated by the U.S Department of Defense but is available for general use around the world. Briefly, here’s how it works:

1. 21 GPS satellites and 3 spare satellites are in orbit at 10,600 miles above the earth.

The satellites are spaced so that from any point on earth, 4 satellites will be above the horizon.

2. Each satellite contains a computer, an atomic clock and a radio. With an understanding of its own orbit and the clock, it continually broadcasts its changing position and time. (Once a day, each satellite checks its own sense of time and position with a ground station and makes any minor correction).

3. On the ground, any GPS receiver contains a computer that “triangulates” its own position by getting bearings from 3 or 4 satellites. The result is provided in the form of a geographic position- Longitude and latitude, for most of the receivers, within 100 meters.

4. If the receiver is also equipped with a display screen that shows a map, the position can be shown on the map.

5. If the 4th satellite can be received, the receiver/computer can figure out the altitude as well as the geographic position.

6. If you are moving, your receiver may also be able to calculate your speed and direction of travel and give the estimated times of arrival to specified destinations.

For a GPS receiver to function, it needs to lock onto satellite signals. Each satellite broadcasts two signals at 1.57542GHz and 1.2276GHz, denoted as L1 and L2, respectively. A satellite specific code, known as the course acquisition (C/A) code, is used

to discern satellites. Correlation of the transmitted codes against local codes is needed to locate satellites in frequency space. The 1023 bit C/A code modulates the L1 at 1.023MHz, repeating every millisecond. Accumulation of this 1000Hz data is required for a receiver to operate.

Once the GPS receiver made the calculation, it can tell the latitude, the longitude and the altitude of its’ current position. This doesn’t tell much to the average user. So in order to make use of the GPS receiver more user-friendly many receivers send this data to a program which displays a map and can show the position on it. Geographical Information System (GIS) is a computer-based software capable of handling maps and various details given on the map. Data generated by the GPS use spatial data referenced to the earth. In other words this data is the coordinates of its own position expressed in latitude and longitude. This data needs to be positioned on a map of the area for any useful analysis.

GPS is being used in science to provide data that has never been available before in the quantity and degree of accuracy that the GPS makes possible. GPS receivers are becoming consumer products. In addition to their outdoor use, receivers can be used in cars to relate the driver’s location with traffic and weather information.

THE GPS UNIT:

The GPS unit contains a GPS module along with a GPS receiver antenna. The module functions according to its built and the antenna receives the information from the GPS satellite in NMEA (National Marine Electronics Association) format. This data is then sent to the microcontroller wherein it is decoded to the required format and sent further.

GPS ANTENNA:

The AGA Series GPS antenna is a standard product for the GPS system. The circular polarization improves reception ability. The built-in low noise amplifier with very low DC

power consumption enhances an already high performance patch array. The antenna has the following features:

Low noise figure

High gain

Ceramic patch antenna

Water-tight housing

Temperature and vibration qualified

Compact size

Low cost GPS MODULE:

CPIT GPS module SA3618/SA3618P (patch on top) is a high sensitivity ULTRA LOW power consumption cost efficient, compact size; plug & play GPS module board designed for a broad spectrum of OEM system applications.

The GPS module receiver will track up to 16 satellites at a time while providing fast time-to-first-fix and 1Hz navigation updates. Its superior capability meets the sensitivity & accuracy requirements of car navigation as well as other location-based applications, such as AVL system. Handheld navigator, PDA, pocket PC, or any battery operated navigation system.

The module communicates with application system via RS232 (TTL level) with NMEA0183 protocol.

Main Features:

• Built-in high performance NMEX chipset.

• Average Cold Start in 60 seconds.

• Ultra Low power consumption.( SA3618 27mA typ @ 3.3V )

• 16 channels All-in-View tracking.

• On chip 4Mb flash memory.

• TTL level serial port for GPS receiver command message Interface.

• Compact Board Size Serial Interface

Communication to the SA3618 is provided via a serial interface. A 10-pin 1.27mm whole connector is used. Pin 6 (Reset) is the active-low reset input. The SA3618 always requires a reset at power-up, or it will not start properly. An optional onboard reset circuit can be provided. A reset forces the SA3618 processor to reboot, but will not influence other parameters such as hot or cold start. Pin 1 (GPIO [4]) and pin 10 (GPIO [0]) are spare pins that can be used e.g. to control power modes, to indicate SA3618 status, or to force a cold

start. They can be left unconnected if desired.

I/O voltage level is set to 2.7V.

GETTING GPS DATA:

After the GPS Module computes the positioning and other useful information, it then transmits the data in some standard format. With differential GPS signal input the accuracy ranges from 1 to 5 m; however, without differential input, the accuracy can be 25 m.

About 60 s after the GPS module is cold booted it begins to output a set of data (according to the NMEA format) though port C once every second at 9600 bps, 8 data bits, one stop bit, and no parity. NMEA GPS messages include six groups of data sets: GGA, GGL, GSA, GSV, RMC, and VTG. We use only the most useful RMC message- Recommended Minimum Specific GNSS Data-which contains all of the basic information required to build a navigation system.

We only need position and time data, so the UTC position, longitude with east west indicator, and latitude with north/south indicator are picked out from the RMC message.

All of this data will be formatted into a standard fixed length packet with some other helpful information. Next, this data packet will be transmitted to the control center and stored in the micro controller.

Here’s a sample of how the GPS receiver antenna receives information from the GPS satellite in NMEA format:

NMEA format sample:

The GPS module that we are using in this unit is SA3618 and the GPS receiving antenna used is G-501.

SA3618 NMEA Protocol

The SA3618 software is capable of supporting the following NMEA message Formats:

* (1): 1sec output 1msg, (3): 3sec output 1msg, 9600 baud rate (Standard output)

General NMEA Format:

The general NMEA (National Marine Electronics Association) format consists of an ASCII string commencing with a. $. Character and terminating with a <CR><LF>

sequence. NMEA standard messages commence with .GP. then a 3-letter message identifier. NemeriX specific messages commence with $PNMRX followed by a 3 digit number. The message header is followed by a comma delimited list of fields optionally terminated with a checksum consisting of an asterix .*. and a 2 digit hex value

representing the checksum. There is no comma preceding the checksum field. When present, the checksum is calculated as a bitwise exclusive of the characters between the. $.

and.*.. As an ASCII representation, the number of digits in each number will vary depending on the number and precision, hence the record length will vary. Certain fields may be omitted if they are not used, in which case the field position is reserved using commas to ensure correct interpretation of subsequent fields. The tables below indicate the maximum and minimum widths of the fields to allow for buffer size allocation.

GSM Modem:

GSM (Global System for Mobile Communications Spécial Mobile) is the most popular standard for

Its ubiquity enables international

operators, providing subscribers the use of their phones in many parts of the world. operators, who can choose equipment fro

pioneered low-cost implementation of the

messaging, which has since been supported on other mobile phone standards as well.

GSM networks operate in a number of different most 2G GSM networks operating in the 900

bands were already allocated, the 850

rare cases the 400 and 450 MHz frequency bands are assigned in so

GSM modem

Global System for Mobile Communications: originally from

) is the most popular standard for mobile telephony systems in the world.

Its ubiquity enables international roaming arrangements between

operators, providing subscribers the use of their phones in many parts of the world.

ffers from its predecessor technologies in that both signaling and speech digital, and thus GSM is considered a second generation

phone system. This also facilitates the wide-spread implementation of data communication applications into the system. The ubiquity of implementation of the GSM standard has been an advantage to both consumers, who may benefit from the ability to roam and switch carriers without replacing phones, and also to network operators, who can choose equipment from many GSM equipment vendors. GSM also cost implementation of the short message service (SMS), also called text messaging, which has since been supported on other mobile phone standards as well.

GSM networks operate in a number of different carrier frequency ranges. With GSM networks operating in the 900 MHz or 1800 MHz bands. Where these bands were already allocated, the 850 MHz and 1900 MHz bands were used instead. In MHz frequency bands are assigned in some countries because : originally from Groupe systems in the world.

arrangements between mobile phone operators, providing subscribers the use of their phones in many parts of the world.

ffers from its predecessor technologies in that both signaling and speech second generation (2G) mobile spread implementation of data into the system. The ubiquity of implementation of the GSM standard has been an advantage to both consumers, who may benefit from the ability to roam and switch carriers without replacing phones, and also to network m many GSM equipment vendors. GSM also (SMS), also called text messaging, which has since been supported on other mobile phone standards as well.

carrier frequency ranges. With MHz bands. Where these MHz bands were used instead. In me countries because

they were previously used for first-generation systems. Most 3G networks in Europe operate in the 2100 MHz frequency band. Regardless of the frequency selected by an operator, it is divided into timeslots for individual phones to use. This allows eight full-rate or sixteen half-full-rate speech channels per radio frequency. These eight radio timeslots (or eight burst periods) are grouped into a TDMA frame. Half rate channels use alternate frames in the same timeslot. The channel data rate for all 8 channels is 270.833 kbit/s, and the frame duration is 4.615 ms. The transmission power in the handset is limited to a maximum of 2 watts in GSM850/900 and 1 watt in GSM1800/1900. One of the key features of GSM is the Subscriber Identity Module, commonly known as a SIM card.

The SIM is a detachable smart card containing the user's subscription information and phone book. This allows the user to retain his or her information after switching handsets. Alternatively, the user can also change operators while retaining the handset simply by changing the SIM.

GSM was designed with a moderate level of service security. The system was designed to authenticate the subscriber using a pre-shared key and challenge-response.

Communications between the subscriber and the base station can be encrypted. The development of UMTS introduces an optional Universal Subscriber Identity Module (USIM), that uses a longer authentication key to give greater security, as well as mutually authenticating the network and the user - whereas GSM only authenticates the user to the network (and not vice versa). The security model therefore offers confidentiality and authentication, but limited authorization capabilities, and no non-repudiation.

Initial setup AT commands

: We are ready now to start working with AT commands to setup and check the status of the GSM modem.

AT Returns a "OK" to confirm that modem is working AT+CPIN="xxxx" To enter the PIN for your SIM ( if enabled )

AT+CREG? A "0,1" reply confirms your modem is connected to GSM network

AT+CSQ Indicates the signal strength, 31.99 is maximum.

Sending SMS using AT commands

: We suggest try sending a few SMS using the Control Tool above to make sure your GSM modem can send SMS before proceeding.

Let's look at the AT commands involved

AT+CMGF=1 To format SMS as a TEXT message

AT+CSCA="+xxxxx" Set your SMS center's number. Check with your provider.

To send a SMS, the AT command to use is:

AT+CMGS

AT+CMGS="+yyyyy"<Enter> Your SMS text message here<Ctrl-Z>

The "+yyyyy" is your recipient’s mobile number. Next, we will look at receiving SMS via AT commands.

Documento similar