Re: TinyGPS.h get Latitude and Longitude data when no fix is available.

LAT,LON =23.614660,121.318542 SAT=0 LAT,LON =23.614669,121.318511 SAT=0 LAT,LON =23.614669,121.318496 SAT=0 LAT,LON =23.614679,121.318511 SAT=0 LAT,LON =23.614679,121.318511 SAT=0 LAT,LON =23.614679,121.318519 SAT=0 LAT,LON =23.614679,121.318519 SAT=0 LAT,LON =23.614679,121.318527 SAT=0 LAT,LON =23.614679,121.318527 SAT=0 LAT,LON =23.614679,121.318542 SAT=0 LAT,LON =23.614679,121.318542 SAT=0

I use the program above to run the arduino, but always return with "0" SAT..

Any suggestion ??

fingsen: I use the program above to run the arduino, but always return with "0" SAT..

Any suggestion ??

The number of satellites is returned in the GGA sentence whereas the lat/lon data come in both GGA and RMC. You probably don't have GGA sentence output enabled in your GPS. Look at the raw NMEA output strings and you will see.

01:38:04 $GPGSV,3,3,12,17,64,074,23,20,10,041,16,23,21,068,17,28,28,177,15*72 01:38:04 $GPGLL,2336.88138,N,12119.11377,E,013804.00,A,A*60 01:38:05 $GPRMC,013805.00,A,2336.88071,N,12119.11450,E,2.866,,051214,,,A*7F 01:38:05 $GPVTG,,T,,M,2.866,N,5.309,K,A*26 01:38:05 $GPGGA,013805.00,2336.88071,N,12119.11450,E,1,08,1.06,30.9,M,17.9,M,,*60 01:38:05 $GPGSA,A,3,10,17,06,09,02,28,23,20,,,,,1.87,1.06,1.54*08 01:38:05 $GPGSV,3,1,12,02,29,294,15,03,01,039,07,05,19,222,,06,49,342,19*7C 01:38:05 $GPGSV,3,2,12,09,33,101,21,10,74,230,26,12,15,316,18,13,08,178,*78 01:38:05 $GPGSV,3,3,12,17,64,074,23,20,10,041,15,23,21,068,17,28,28,177,15*71 01:38:05 $GPGLL,2336.88071,N,12119.11450,E,013805.00,A,A*6F 01:38:06 $GPRMC,013806.00,A,2336.88014,N,12119.11436,E,1.999,,051214,,,A*7D

My gps show these information ....

I fed the strings you posted above into the TinyGPS example "test_with_gps_device" and here is what it output:

Testing TinyGPS library v. 13 by Mikal Hart

Sats HDOP Latitude  Longitude  Fix  Date       Time     Date Alt    Course Speed Card  Distance Course Card  Chars Sentences Checksum
          (deg)     (deg)      Age                      Age  (m)    --- from GPS ----  ---- to London  ----  RX    RX        Fail
-------------------------------------------------------------------------------------------------------------------------------------
**** 106  23.614667 121.318572 1    12/05/2014 01:38:06 5    30.90  0.00   3.69  N     9908     327.92 NNW   790   3         0        
8    106  23.614667 121.318572 1011 12/05/2014 01:38:06 1014 30.90  0.00   3.69  N     9908     327.92 NNW   790   3         0        
8    106  23.614667 121.318572 2020 12/05/2014 01:38:06 2023 30.90  0.00   3.69  N     9908     327.92 NNW   790   3         0        
8    106  23.614667 121.318572 3029 12/05/2014 01:38:06 3033 30.90  0.00   3.69  N     9908     327.92 NNW   790   3         0        
8    106  23.614667 121.318572 4039 12/05/2014 01:38:06 4042 30.90  0.00   3.69  N     9908     327.92 NNW   790   3         0        
8    106  23.614667 121.318572 5048 12/05/2014 01:38:06 5051 30.90  0.00   3.69  N     9908     327.92 NNW   790   3         0        
8    106  23.614667 121.318572 6057 12/05/2014 01:38:06 6060 30.90  0.00   3.69  N     9908     327.92 NNW   790   3         0        
8    106  23.614667 121.318572 7067 12/05/2014 01:38:06 7070 30.90  0.00   3.69  N     9908     327.92 NNW   790   3         0        
8    106  23.614667 121.318572 8076 12/05/2014 01:38:06 8079 30.90  0.00   3.69  N     9908     327.92 NNW   790   3         0        
8    106  23.614667 121.318572 9085 12/05/2014 01:38:06 9088 30.90  0.00   3.69  N     9908     327.92 NNW   790   3         0        
8    106  23.614667 121.318572 1009 12/05/2014 01:38:06 1009 30.90  0.00   3.69  N     9908     327.92 NNW   790   3         0        
8    106  23.614667 121.318572 1110 12/05/2014 01:38:06 1110 30.90  0.00   3.69  N     9908     327.92 NNW   790   3         0        
8    106  23.614667 121.318572 1211 12/05/2014 01:38:06 1211 30.90  0.00   3.69  N     9908     327.92 NNW   790   3         0        
8    106  23.614667 121.318572 1312 12/05/2014 01:38:06 1312 30.90  0.00   3.69  N     9908     327.92 NNW   790   3         0        
8    106  23.614667 121.318572 1413 12/05/2014 01:38:06 1413 30.90  0.00   3.69  N     9908     327.92 NNW   790   3         0

So probably something else is wrong in your sketch.

If I use these code , the first two columns shows “" "*” …

Cant figure it out till now !