??? 08/24/06 16:57 Read: times |
#122921 - Most GPS out multiple NEMA sensenances Responding to: ???'s previous message |
Hello Sankar Das,
Interfacing a 8051 to a GPS receiver is pretty easy. Most GPS receivers output multiple NEMA sentences such as the following at 4800 baud (8N1) in RS232 serial format. $GPGGA,,,,,,0,00,,,,,,,*66 $GPGSA,,,,,,*42 $GPRMC,000136,V,3648.4448,S,17444.5042,E,0.000,0.0,290697,19.5,E*42 $PRWIZCH,23,0,23,0,23,0,23,0,23,0,23,0,23,0,23,0,24,0,23,0,24,0,23,0*4D $GPGGA,,,,,,0,00,,,,,,,*66 $GPGSA,,,,,,*42 $GPRMC,000137,V,3648.4448,S,17444.5042,E,0.000,0.0,290697,19.5,E*43 $PRWIZCH,23,0,23,0,23,0,23,0,23,0,23,0,24,0,24,0,24,0,23,0,24,0,23,0*4D $GPGGA,,,,,,0,00,,,,,,,*66 $GPGSA,,,,,,*42 $GPRMC,000138,V,3648.4448,S,17444.5042,E,0.000,0.0,290697,19.5,E*4C $PRWIZCH,23,0,23,0,23,0,23,0,23,0,23,0,24,0,24,0,24,0,23,0,24,0,23,0*4D $GPGGA,,,,,,0,00,,,,,,,*66 Now you are one interested in one of these protocols you have to write software which only capture one of these such as the following $GPRMC,235947,V,3714.6284,N,12146.9181,W,0.000,0.0,280697,15.4,E*47 $GPRMC,235947,V,3714.6284,N,12146.9181,W,0.000,0.0,280697,15.4,E*47 $GPRMC,235947,V,3714.6284,N,12146.9181,W,0.000,0.0,280697,15.4,E*47 $GPRMC,235947,V,3714.6284,N,12146.9181,W,0.000,0.0,280697,15.4,E*47 $GPRMC,235947,V,3714.6284,N,12146.9181,W,0.000,0.0,280697,15.4,E*47 $GPRMC,235947,V,3714.6284,N,12146.9181,W,0.000,0.0,280697,15.4,E*47 $GPRMC,235947,V,3714.6284,N,12146.9181,W,0.000,0.0,280697,15.4,E*47 $GPRMC,235947,V,3714.6284,N,12146.9181,W,0.000,0.0,280697,15.4,E*47 $GPRMC,235947,V,3714.6284,N,12146.9181,W,0.000,0.0,280697,15.4,E*47 The software to do this is not difficult to write and BASECOM could do the job. Simply write code that starts looking for a $GPRMC (or whatever protocol you are using) and once is has found it simply capture the data into a buffer until a carriage return is detected (0x13 or 0x10). Once you have the data filtered it is pretty simple to extract the fields you are interested in. Regards, Charles Bannister |
Topic | Author | Date |
Interfacing 8051 with GPS Rcvr | 01/01/70 00:00 | |
Most GPS out multiple NEMA sensenances | 01/01/70 00:00 | |
you can use a simple statemachine | 01/01/70 00:00 | |
Assembly or Bascom? | 01/01/70 00:00 | |
GPS | 01/01/70 00:00 | |
Why doubt? | 01/01/70 00:00 | |
GPS Interface Protocols | 01/01/70 00:00 | |
okj | 01/01/70 00:00 | |
Switch to a high level language | 01/01/70 00:00 | |
Jumping the gun? | 01/01/70 00:00 | |
Language wars... | 01/01/70 00:00 | |
Hmmm | 01/01/70 00:00 | |
English grammar | 01/01/70 00:00 | |
Calm down, it\'s only a programming language! | 01/01/70 00:00 | |
Must laugh, life is too short! | 01/01/70 00:00 | |
Now there's an offer... | 01/01/70 00:00 | |
Extracting NEMA $GPRMC protocol with Qbasic![]() | 01/01/70 00:00 |