Re: GPS

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Al Johnson
Subject: Re: GPS
Date: Monday, July 7, 2008 - 7:37 am

On Monday 07 July 2008, Kai R=F6mer wrote:

=46irst stab uses the example perl functions from ublox for generating the=
=20
aid-ini data, replacing their hardcoded x,y,z with values for my location.=
=20
The copyright notice on the example code says you can't do anything with it=
=20
without permission so I can't give you the script, but I can tell you how t=
o=20
reproduce it ;-)

Get the AssistNow online client application note from:
http://people.openmoko.org/matt_hsu/ImplementationAssistNowServerAndClient(=
GPS.G4-SW-05017-C).pdf

Create a new script aid-ini.pl and start with:

#!/usr/bin/perl
print(clientdata_prepare());

Go to section B - Sample Server implementation and append subroutines=20
clientdata_prepare and ubx_checksum to aid-ini.pl

You need to replace the $posx, $posy and $posz values in clientdata_prepare=
=20
with some that match your location. These are ECEF coordinated in m. There'=
s=20
an explanation of the calculation method in:
http://www.u-blox.com/customersupport/docs/GPS.G1-X-00006.pdf

Alternatively you can use the attached spreadsheet if it survives the list.=
=20
Just replace the lat and lon with values for your location.

You probably want to change the time accuracy to reflect the accuracy of th=
e=20
=46reerunner clock, and possibly the accuracy of your location estimate.

Now copy the script to somewhere suitable on the Freerunner and make it=20
executable. I'm using /usr/local/bin. You need to install perl if you don't=
=20
have it already:
opkg install perl

Switch on the GPS then run the script:
/usr/local/bin/aid-ini.pl > /dev/ttySAC1

If you cat /dev/ttySAC1 you should be able to see it using the current time=
=20
according to your Freerunner. TangoGPS makes it easier to see what it's=20
doing. In the only test I've managed so far it got a fix with a poor view o=
f=20
the sky, while my Garmin Geko was still struggling to see 3 sats. It wasn't=
=20
quick, but it was better than the Garmin. It would be interesting if you=20
could try 2 units side by side, one with aid-ini and one without, to see if=
=20
it really makes a difference or if I was just lucky. I'll try to get some=20
more testing in, but the weather isn't good here, and I don't want to get m=
y=20
new toy wet ;-)
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
GPS, Yorick Matthys, (Mon Jun 23, 9:32 am)
Re: GPS, Joseph Reeves, (Mon Jun 23, 10:21 am)
Re: GPS, Peter Kraker, (Mon Jun 23, 2:15 pm)
Re: GPS, Kai Römer, (Fri Jul 4, 7:32 am)
Re: GPS, Al Johnson, (Sun Jul 6, 9:12 am)
Re: GPS, Kai Römer, (Mon Jul 7, 12:40 am)
Re: GPS, Kevin Zuber, (Mon Jul 7, 3:07 am)
Re: GPS, Al Johnson, (Mon Jul 7, 3:26 am)
Re: GPS, Al Johnson, (Mon Jul 7, 3:34 am)
Re: GPS, Kai Römer, (Mon Jul 7, 4:39 am)
Re: GPS, Federico Lorenzi, (Mon Jul 7, 5:06 am)
Re: GPS, Al Johnson, (Mon Jul 7, 7:37 am)
Re: GPS, Mathias Ballner, (Mon Jul 7, 9:24 am)
Re: GPS, Marcus Bauer, (Mon Jul 7, 10:04 am)
Re: GPS, Yogiz, (Mon Jul 7, 10:56 am)
Re: GPS, Francesco Cat, (Mon Jul 7, 11:47 am)
Re: GPS, Chris, (Mon Jul 7, 1:33 pm)
Re: GPS, Al Johnson, (Mon Jul 7, 2:40 pm)
Re: GPS, thomasg, (Mon Jul 7, 2:47 pm)
Re: GPS, Joerg Reisenweber, (Mon Jul 7, 4:35 pm)
Re: GPS, W.Kenworthy, (Mon Jul 7, 6:25 pm)
Re: GPS, W.Kenworthy, (Mon Jul 7, 7:02 pm)
Re: GPS, Francesco Cat, (Mon Jul 7, 11:50 pm)
Re: GPS, AVee, (Tue Jul 8, 2:11 am)
Re: GPS, Al Johnson, (Tue Jul 8, 2:37 am)
Re: GPS, Tilman Baumann, (Tue Jul 8, 3:05 am)
Re: GPS, flexd, (Tue Jul 8, 4:09 am)
Re: GPS, Neng-Yu Tu (Tony Tu), (Tue Jul 8, 4:17 am)
Re: GPS, Jay Vaughan, (Tue Jul 8, 4:19 am)
Re: GPS, flexd, (Tue Jul 8, 4:24 am)
Re: GPS, flexd, (Tue Jul 8, 4:36 am)
Re: GPS, Neng-Yu Tu (Tony Tu), (Tue Jul 8, 4:42 am)
Re: GPS, Marcus Bauer, (Tue Jul 8, 4:42 am)
Re: GPS, AVee, (Tue Jul 8, 4:42 am)
Re: GPS, matt joyce, (Tue Jul 8, 4:52 am)
Re: GPS, Al Johnson, (Tue Jul 8, 10:31 am)
Re: GPS, Chris, (Tue Jul 8, 10:58 am)
RE: GPS, steve, (Tue Jul 8, 12:57 pm)
Re: GPS, Chaosspawn23, (Tue Jul 8, 11:11 pm)
German getting started, simarillion, (Tue Jul 8, 11:56 pm)
Re: GPS, Jeffrey Ratcliffe, (Wed Jul 9, 10:57 pm)
Re: GPS, Thomas Gstädtner, (Thu Jul 10, 1:19 am)
Re: GPS, Alexander Paersch, (Fri Jul 11, 4:36 am)
Re: GPS, Jeffrey Ratcliffe, (Fri Jul 11, 4:50 am)
Re: GPS, Alexey Feldgendler, (Fri Jul 11, 5:07 am)
Re: GPS, Torfinn Ingolfsen, (Fri Jul 11, 6:02 am)
Re: GPS, Ole Kliemann, (Fri Jul 11, 10:57 am)
Re: GPS, Tobias Diedrich, (Fri Jul 11, 11:56 am)
Re: GPS, Russell Sears, (Fri Jul 11, 2:34 pm)
Re: GPS, Bumbl, (Fri Jul 11, 2:57 pm)
Re: GPS, andres, (Fri Jul 11, 3:43 pm)
Re: GPS, Russell Sears, (Fri Jul 11, 4:00 pm)
Re: GPS, Russell Sears, (Fri Jul 11, 10:56 pm)
Re: GPS, Jonathan Spooner, (Sat Jul 12, 2:25 am)
Re: GPS, William Kenworthy, (Sat Jul 12, 5:11 am)
Re: GPS, Al Johnson, (Sat Jul 12, 5:49 am)
Re: GPS, Ole Kliemann, (Sat Jul 12, 7:27 am)
Re: GPS, Jim Morris, (Sat Jul 12, 1:59 pm)
Re: GPS, Yorick Moko, (Sun Jul 13, 2:50 am)
Re: GPS, Russell Sears, (Sun Jul 13, 3:48 am)
Re: GPS, Mikko Rauhala, (Sun Jul 13, 4:05 am)
Re: GPS, Ole Kliemann, (Sun Jul 13, 6:00 am)
Re: GPS, arne anka, (Sun Jul 13, 6:39 am)
Re: GPS, BlueStar88, (Sun Jul 13, 10:14 am)
Re: GPS, Joerg Reisenweber, (Sun Jul 13, 10:21 am)
Re: GPS, Russell Sears, (Sun Jul 13, 3:36 pm)
Re: GPS, Timo Jyrinki, (Mon Jul 14, 1:18 am)
Re: GPS, thomasg, (Mon Jul 14, 1:34 am)
Re: GPS, Kalle Kärkkäinen, (Mon Jul 14, 1:45 am)
Re: GPS, Kai Römer, (Mon Jul 14, 2:08 am)
Re: GPS, BlueStar88, (Mon Jul 14, 4:22 am)
Re: GPS, Al Johnson, (Mon Jul 14, 5:41 am)
Re: GPS, thomasg, (Mon Jul 14, 6:05 am)
Re: GPS, Yorick Moko, (Mon Jul 14, 6:39 am)
Re: GPS, Timo Jyrinki, (Mon Jul 14, 6:49 am)
Re: GPS, Jay Vaughan, (Mon Jul 14, 7:23 am)
Re: GPS, thomasg, (Mon Jul 14, 9:20 am)
Re: GPS, C R McClenaghan, (Mon Jul 14, 9:26 am)
Re: GPS, arne anka, (Mon Jul 14, 9:42 am)
Re: GPS, Al Johnson, (Mon Jul 14, 10:06 am)
Re: GPS, thomasg, (Mon Jul 14, 10:06 am)
Re: GPS, C R McClenaghan, (Mon Jul 14, 10:46 am)
Re: GPS, arne anka, (Mon Jul 14, 10:54 am)
Re: GPS, C R McClenaghan, (Mon Jul 14, 11:26 am)