Tengo 3.
Los 3 los accedo por bluetooth y, ademas, con un cable USB en directo a un COM, a escoger.
Ademas el Haicon-CF, que es compac-flas, lo accedo por el puerto de comunicaciones que me da.
Tanto por bluetooth como puerto COM directo la comunicacion es a traves de un puerto serie. Es decir siempre es un COM.
El acceso es estar siempre a la "escucha".
El GPS manda cada segundo una sentencia NMEA del tipo $GPRMC.
Cada 5 segundos una de $GPGSA y $GPGSV que son del estado de los satelites.
Siempre has de estar a la escucha del puerto serie y cuando recibas un <CRLF> es el final de linea y lmandas la cadena al proceso pertinente.
Te sobra tiempo para procesar.
P.D.: Con el hyperterminal podras ver como actua al GPS. Pruebalo con el hyperterminal y veras como van saliendo las sentencias...
Code: Select all
$GPGGA,124049.960,4026.9348,N,00338.6065,W,1,06,1.4,766.7,M,51.7,M,0.0,0000*6E
$GPGSA,A,3,18,25,06,21,16,03,,,,,,,2.5,1.4,2.1*3C
$GPRMC,124049.960,A,4026.9348,N,00338.6065,W,0.13,10.96,130105,,*25
$GPGGA,124050.960,4026.9351,N,00338.6066,W,1,07,1.2,768.5,M,51.7,M,0.0,0000*66
$GPGSA,A,3,18,15,25,06,21,16,03,,,,,,2.1,1.2,1.8*30
$GPRMC,124050.960,A,4026.9351,N,00338.6066,W,0.15,33.62,130105,,*2A
$GPGGA,124051.960,4026.9353,N,00338.6066,W,1,07,1.2,769.6,M,51.7,M,0.0,0000*67
$GPGSA,A,3,18,15,25,06,21,16,03,,,,,,2.1,1.2,1.8*30
$GPRMC,124051.960,A,4026.9353,N,00338.6066,W,0.15,30.94,130105,,*23
$GPGGA,124052.960,4026.9356,N,00338.6066,W,1,07,1.2,769.3,M,51.7,M,0.0,0000*64
$GPGSA,A,3,18,15,25,06,21,16,03,,,,,,2.1,1.2,1.8*30
$GPGSV,3,1,09,16,71,320,34,21,61,071,35,15,57,184,33,03,31,274,33*7A
$GPGSV,3,2,09,25,28,203,30,06,23,071,41,18,19,122,46,22,07,151,37*7E
$GPGSV,3,3,09,19,06,261,00*4B
$GPRMC,124052.960,A,4026.9356,N,00338.6066,W,0.18,340.03,130105,,*12
$GPGGA,124053.960,4026.9359,N,00338.6067,W,1,07,1.2,767.9,M,51.7,M,0.0,0000*6F
$GPGSA,A,3,18,15,25,06,21,16,03,,,,,,2.1,1.2,1.8*30
$GPRMC,124053.960,A,4026.9359,N,00338.6067,W,0.08,355.42,130105,,*1D
$GPGGA,124054.960,4026.9363,N,00338.6068,W,1,07,1.2,765.6,M,51.7,M,0.0,0000*63
$GPGSA,A,3,18,15,25,06,21,16,03,,,,,,2.1,1.2,1.8*30
$GPRMC,124054.960,A,4026.9363,N,00338.6068,W,0.18,17.15,130105,,*2A
$GPGGA,124055.960,4026.9365,N,00338.6069,W,1,06,1.4,762.9,M,51.7,M,0.0,0000*6A
$GPGSA,A,3,18,15,06,21,16,03,,,,,,,2.3,1.4,1.8*33
$GPRMC,124055.960,A,4026.9365,N,00338.6069,W,0.06,16.10,130105,,*27
$GPGGA,124056.959,4026.9368,N,00338.6072,W,1,06,1.4,760.0,M,51.7,M,0.0,0000*6F
$GPGSA,A,3,18,15,06,21,16,03,,,,,,,2.3,1.4,1.8*33
$GPRMC,124056.959,A,4026.9368,N,00338.6072,W,0.18,344.17,130105,,*15
$GPGGA,124057.959,4026.9371,N,00338.6077,W,1,06,1.4,757.3,M,51.7,M,0.0,0000*64
$GPGSA,A,3,18,15,06,21,16,03,,,,,,,2.3,1.4,1.8*33
$GPGSV,3,1,09,16,71,320,32,21,61,071,34,15,57,184,32,03,31,274,32*7D
$GPGSV,3,2,09,25,28,203,25,06,23,071,39,18,19,122,46,22,07,151,37*75
$GPGSV,3,3,09,19,06,261,00*4B
$GPRMC,124057.959,A,4026.9371,N,00338.6077,W,0.16,357.85,130105,,*1E
$GPGGA,124058.959,4026.9373,N,00338.6081,W,1,06,1.4,755.1,M,51.7,M,0.0,0000*60
$GPGSA,A,3,18,15,06,21,16,03,,,,,,,2.3,1.4,1.8*33
$GPRMC,124058.959,A,4026.9373,N,00338.6081,W,0.14,5.12,130105,,*12
$GPGGA,124059.959,4026.9376,N,00338.6085,W,1,06,1.4,753.4,M,51.7,M,0.0,0000*63
$GPGSA,A,3,18,15,06,21,16,03,,,,,,,2.3,1.4,1.8*33
$GPRMC,124059.959,A,4026.9376,N,00338.6085,W,0.17,11.41,130105,,*22
$GPGGA,124100.959,4026.9378,N,00338.6089,W,1,06,1.4,752.1,M,51.7,M,0.0,0000*68
$GPGSA,A,3,18,15,06,21,16,03,,,,,,,2.3,1.4,1.8*33
$GPRMC,124100.959,A,4026.9378,N,00338.6089,W,0.14,5.75,130105,,*1C
$GPGGA,124101.959,4026.9381,N,00338.6092,W,1,05,2.0,750.8,M,51.7,M,0.0,0000*6A
$GPGSA,A,3,18,06,21,16,03,,,,,,,,2.9,2.0,2.1*30