[maemo-developers] VS: How can I test a GPS application without using the device?

From: Julius Luukko julle.luukko at quicknet.inet.fi
Date: Thu Feb 7 22:01:13 EET 2008
Andrea Grandi wrote:
> Hi,
> 
>> You can use gpsfake on your host machine (comes with gpsd). I noticed
>> that it works with scratchbox, I don't know how, but it does. I was about to try to run it inside scratchbox, but there is no need.
> 
> I noticed it but I wasn't able to make it work, because I couldn't
> find any gps log file to use with it. Where can I get one? Or how can
> I generate it?
> 
> Thanks for your support.
> 

Hi Andrea,

I generated a log file by driving around with my laptop and a bluetooth 
gps. I don't remember exactly, which program I used to output the NMEA 
data to a file, probably gpsd itself by starting it in debug mode with

/usr/sbin/gpsd -N -D 2 /dev/rfcomm0

I noticed that gpsfeed that you mentioned in your first mail includes a 
sample NMEA data file. Look for gps.txt. I have used that also.

Note that gpsfake starts gpsd. gpsd might be located in /usr/sbin that 
is not in path for non-root users. Add /usr/sbin to path before starting 
gpsfake.

-- 
Julius

More information about the maemo-developers mailing list