Better answer is to use GPSD. It's already a well-defined standard with example source code available and it runs on the Empeg fine from what I hear. GPSApp supports GpsD as a source so you can run it and any programs you make at the same time without problem.