Unable to Get a lock with GPS unit


hi everyone,

i'm working on creating reverse geocaching puzzle box 1 seen here ( arduiniana (dot) org /projects/the-reverse-geo-cache-puzzle/) girlfriend part of christmas present.  i have arduino uno hooked gps unit ( sparkfun (dot) com /products/465) via newsoftserial , tinygps libraries.  i seem unable sort of lock on after trying gps in different locations (right it's sitting on windowsill).  if run newsoftserialtest following:
code: [select]
$gprmc,141458.099,v,,,,,,,021106,,*26
$gpgga,141459.095,,,,,0,00,,,m,0.0,m,,0000*56
$gpgsa,a,1,,,,,,,,,,,,,,,*1e
$gprmc,141459.095,v,,,,,,,021106,,*2b
$gpgga,141500.097,,,,,0,00,,,m,0.0,m,,0000*59
$gpgsa,a,1,,,,,,,,,,,,,,,*1e
$gprmc,141500.097,v,,,,,,,021106,,*24
$gpgga,141501.101,,,,,0,00,,,m,0.0,m,,0000*56
$gpgsa,a,1,,,,,,,,,,,,,,,*1e
$gpgsv,3,1,12,20,00,000,,10,00,000,,31,00,000,,27,00,000,*7c
$gpgsv,3,2,12,19,00,000,,07,00,000,,04,00,000,,24,00,000,*76
$gpgsv,3,3,12,16,00,000,,28,00,000,,26,00,000,,29,00,000,*78
$gprmc,141501.101,v,,,,,,,021106,,*2b
$gpgga,141502.095,,,,,0,00,,,m,0.0,m,,0000*59
$gpgsa,a,1,,,,,,,,,,,,,,,*1e
$gprmc,141502.095,v,,,,,,,021106,,*24
$gpgga,141503.095,,,,,0,00,,,m,0.0,m,,0000*58
$gpgsa,a,1,,,,,,,,,,,,,,,*1e
$gprmc,141503.095,v,,,,,,,021106,,*25
$gpgga,141504.101,,,,,0,00,,,m,0.0,m,,0000*53
$gpgsa,a,1,,,,,,,,,,,,,,,*1e
$gprmc,141504.101,v,,,,,,,021106,,*2e
$gpgga,141505.097,,,,,0,00,,,m,0.0,m,,0000*5c
$gpgsa,a,1,,,,,,,,,,,,,,,*1e
$gprmc,141505.097,v,,,,,,,021106,,*21
$gpgga,141506.097,,,,,0,00,,,m,0.0,m,,0000*5f
$gpgsa,a,1,,,,,,,,,,,,,,,*1e
$gpgsv,3,1,12,20,00,000,,10,00,000,,31,00,000,,27,00,000,*7c
$gpgsv,3,2,12,19,00,000,,07,00,000,,04,00,000,,24,00,000,*76
$gpgsv,3,3,12,16,00,000,,28,00,000,,26,00,000,,29,00,000,*78


my test code tinygps library follows:
code: [select]
tinygps gps;
//newsoftserial nss(2, 3)
newsoftserial nss(9, 8);

void gpsdump(tinygps &gps);
bool feedgps();
void printfloat(double f, int digits = 2);

void setup()
{
 serial.begin(115200);
 nss.begin(4800);
 
 serial.print("testing tinygps library v. "); serial.println(tinygps::library_version());
 serial.println("by mikal hart");
 serial.println();
 serial.print("sizeof(gpsobject) = "); serial.println(sizeof(tinygps));
 serial.println();
}

void loop()
{
 
 bool newdata = false;
 unsigned long start = millis();
 
 serial.println("looping...");
 
 // every 5 seconds print update
 while (millis() - start < 5000)
 {
   if (feedgps())
   {
     newdata = true;
   }
   delay(1000);
 }
 serial.println("checking newdata");
 if (newdata)
 {
   serial.println("acquired data");
   serial.println("-------------");
   gpsdump(gps);
   serial.println("-------------");
   serial.println();
 }
 else
 {
   serial.println("no new data");
 }
}

bool feedgps()
{
 while (nss.available())
 {
   if (gps.encode(nss.read()))
     return true;
 }
 return false;
}



it never gets gpsdump() why didn't include bit of code (it's same code in test_with_gps_device.pde).

i've let run 20 minutes , still have no lock.  i know rx/tx ports define in newsoftserial correct, not issue.

any ideas? please help!

ps. sorry breaking url links.  since first post wouldn't let me include them.


Arduino Forum > Forum 2005-2010 (read only) > Software > Interfacing > Unable to Get a lock with GPS unit


arduino

Comments

Popular posts from this blog

CAN'T INSTALL MAMBELFISH 1.5 FROM DIRECTORY - Joomla! Forum - community, help and support

error: expected initializer before 'void'

CPU load monitoring using GPIO and leds - Raspberry Pi Forums