Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[SOLVED] How to extract timing, latitude and longitude information from the GPS Module??

Status
Not open for further replies.

xpress_embedo

Advanced Member level 4
Joined
Jul 5, 2011
Messages
1,154
Helped
161
Reputation
396
Reaction score
189
Trophy points
1,353
Location
India
Activity points
10,591
Hello!! Few Days back i purchased the GPS Module from Local Market not having any part number and manufacturer id.

I asked the supplier he provide me the connection diagram.
After connecting it with the required connection, i am getting this response on Serial Port at 9600 Baud Rate, on powering on this module.

Code:
$PMTK011,MTKGPS*08
$PMTK010,001*2E
$GPGGA,235944.037,,,,,0,0,,,M,,M,,*41
$GPGSA,A,1,,,,,,,,,,,,,,,*1E
$GPGSV,1,1,00*79
$GPRMC,235944.037,V,,,,,0.00,0.00,050180,,,N*48

I am getting this data continuously on serial port.
Basically i need to obtain time, latitude and longitude information as required in my project.

Can anyone please help me how to do so.
 

hai ,
in that you could see the continues data . the time is also be there in the data stream .

I had written the packet above, i am not getting the Latitude and Longitude information.
Based on the above packet, please tell me what information is there and how to decode it.
 
Your data shows "No Satelites in View". Obviously your module is working, but another question for you:
Do you have any antenna attached?
In case of integrated antenna, you should have a clear view to the sky (unobstructed) untill the module locks to at least 3 satelites.
For message formats, google NMEA GPS messages format.
 
Hello!

Just in case, as a followup to ZASto: are you testing in open air or in the lab corner, in the
basement of your house? I'm asking that because many people who start saying that it does
not work are precisely not in open air.
Second thing: what is the cold start delay of your GPS and how long are you waiting before
getting this data? Depending on the conditions, you might have to wait about one minute
before you actually get data.

Dora.
 
Hello!

Just in case, as a followup to ZASto: are you testing in open air or in the lab corner, in the
basement of your house? I'm asking that because many people who start saying that it does
not work are precisely not in open air.
Second thing: what is the cold start delay of your GPS and how long are you waiting before
getting this data? Depending on the conditions, you might have to wait about one minute
before you actually get data.

Dora.

I am testing it in lab and at a distance of 5m(approx) there is a very big glass window, from there the sky is visible.
Its not working on my seat, but its working when i place my gps module near to that glass.

I don't know what is cold start, but wants to know.
My Module is sending data at an interval of 1sec continuously.

- - - Updated - - -

Your data shows "No Satelites in View". Obviously your module is working, but another question for you:
Do you have any antenna attached?
In case of integrated antenna, you should have a clear view to the sky (unobstructed) untill the module locks to at least 3 satelites.
For message formats, google NMEA GPS messages format.

I am not having any external antenna with this module, the antenna is integrated in this.

My Module is similar to this one
https://www.sparkfun.com/products/10702

On Start up it is sending 4 Sentences Continuously
$GPGGA
$GPGSA
$GPGSV
$GPRMC

I think i just need GPGGA, how to deactivate others, so that my module only transmit this Sentence and not others.

This is the Packet i got when put the GPS Module near to window
Code:
$GPGGA,114948.000,[B]2836.6518,N,07722.0835,E,[/B]1,5,3.58,195.9,M,-35.9,M,,*7B     [I]The Bold Letters are my Latitude and Longitude Values[/I]
$GPGSA,A,3,14,32,01,12,11,,,,,,,,3.70,3.58,0.92*05
$GPGSV,3,1,10,31,65,191,,22,55,094,,14,47,028,38,11,29,287,27*7B
$GPGSV,3,2,10,01,24,312,39,32,23,313,39,25,20,085,,12,07,053,17*73
$GPGSV,3,3,10,19,07,243,14,30,07,175,20*72
$GPRMC,[B]114948.000[/B],A,2836.6518,N,07722.0835,E,0.28,92.31,[B]020113[/B],,,A*56  [I]This one is my time[/I]

How to find the place with latitude and longitude, as i want to know whether it is correct or not.
And Date is correct.
What about time its in UTC as i read somewhere.
Can i get my place time with this module.

Thanks for your help guys.
I am reading manuals related to gps and lots of other things.
 
go through the following file i have a written a code for receiving data form GPS using 8051 microcontroller

i am receiving the Longitude and Latitude and display that on LCD

u will get the idea how take the data from GPS

for getting time just need to modify the code a little bit
 

Attachments

  • GPS_to_lcd.txt
    2.4 KB · Views: 131

Thanks for your all replies..

I am getting data from the gps module properly and also i am able to send commands to the gps module.

Code:
$GPGGA,114948.000,2836.6518,N,07722.0835,E,1,5,3.58,195.9,M,-35.9,M,,*7B  
$GPGSA,A,3,14,32,01,12,11,,,,,,,,3.70,3.58,0.92*05
$GPGSV,3,1,10,31,65,191,,22,55,094,,14,47,028,38,11,29,287,27*7B
$GPGSV,3,2,10,01,24,312,39,32,23,313,39,25,20,085,,12,07,053,17*73
$GPGSV,3,3,10,19,07,243,14,30,07,175,20*72
$GPRMC,114948.000,A,2836.6518,N,07722.0835,E,0.28,92.31,020113,,,A*56

How to check my position on maps using 2836.6518,N,07722.0835,E latitude and longitude
I tried my sites but fails.
Also i am getting time as 11:49:48.000 This is not Indian time, is it possible that module gives me time as per my location
 

Thanks for your all replies..

I am getting data from the gps module properly and also i am able to send commands to the gps module.

Code:
$GPGGA,114948.000,2836.6518,N,07722.0835,E,1,5,3.58,195.9,M,-35.9,M,,*7B  
$GPGSA,A,3,14,32,01,12,11,,,,,,,,3.70,3.58,0.92*05
$GPGSV,3,1,10,31,65,191,,22,55,094,,14,47,028,38,11,29,287,27*7B
$GPGSV,3,2,10,01,24,312,39,32,23,313,39,25,20,085,,12,07,053,17*73
$GPGSV,3,3,10,19,07,243,14,30,07,175,20*72
$GPRMC,114948.000,A,2836.6518,N,07722.0835,E,0.28,92.31,020113,,,A*56

How to check my position on maps using 2836.6518,N,07722.0835,E latitude and longitude
I tried my sites but fails.
Also i am getting time as 11:49:48.000 This is not Indian time, is it possible that module gives me time as per my location

so how much time difference is there between real indian time and your gps time.
 

Its around 5:30 minutes.
As GPS time is UTC

I don't want to add this offset to my time.
But if there is any way to get proper time from gps..

And pls also tell me how to get map for my latitude and longitude value.
 

which microncontroller you are using............

if it is 8051 then go through my last post..........
 

which microncontroller you are using............

if it is 8051 then go through my last post..........

I had implement almost everything and i am using PIC18F8722 for this.
I want to know the implementation not the code.
I had write my code to fetch time and date from GPS Module and Displayed it on lcd, but the problem is that it in UTC means 5:30hr less than indian time.
I can retrieve the Indian time with the GPS Module without applying any offset.

And one of the Most Important question, how to find the location on google maps using the latitude and longitude values.

As i get latitude 28deg N and Longitude value of 77 deg E
how to know where i am location wise.

Please help this is most important part for me.
 

It'll give you the time of UTC 0:00 (Always)
search "Cockpit GPS " on google, download that software,
attach GPS with computer port, start cockpit and the picture will be clear to you.

For location details, latitude & longitude is the thing which you'll get from GPS (in addition to time & Altitude)
You have to search this data on google maps & then by using Google map software you'll find your location.

& regarding the decode format of all the GPS NMEA Standards please go through following pdf.

& regarding mapping! check the zip file, I've get that file from one of the thread on edaboard, you might get that thread if you search.
I've not remember the name of the member but he has done very nice development on GPS Project, so he could help you well.
Do search that thread.
 

Attachments

  • GPS manual.pdf
    661 KB · Views: 348
  • !!! GPS Logger.rar
    2 MB · Views: 132
Thanks for your information..
I had succesfully extracted time date and latitude and longitude

but how to.find location on google maps using this latitude Nd longitude

right now i.am.from thats wjy not able to check the attached file.

But will check.
 

OK, let me see, you are located in the Essel Shyam Communications Ltd. :)
Your coordinates are:
28 36.6518 N
77 22.0835 E

"28 36.6518 N 77 22.0835 E"

If you Copy/Paste the coordinates in quote (without quotes) in Google Earth, you will see exactly where you are located :) (SE from New Delhi, SW from Ghaziabad)
 
OK, let me see, you are located in the Essel Shyam Communications Ltd. :)
Your coordinates are:
28 36.6518 N
77 22.0835 E

"28 36.6518 N 77 22.0835 E"

If you Copy/Paste the coordinates in quote (without quotes) in Google Earth, you will see exactly where you are located :) (SE from New Delhi, SW from Ghaziabad)

Wow thats great..
Yes i an in essel shyam comm ltd at that time
means i have to ibstall google earth on my pc
what is this sw from new delhi and se from ghaziabad
soth west from.new delhi and soth east from ghaziabad
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top