2007年6月12日 星期二

GPS data acquiring method

Mobile processing may be a bit difficult for you at this stage as it need you to setup many things like Wireless toolkits, etc.

You do it in Processing!

The step should be:
First, connect your bluetooth GPS device to your computer. The GPS device should be communicate with computer via COM port.

In processing, communicating with COM port is simple:
http://www.processing.org/reference/libraries/serial/index.html
It has good example. After you can connect GPS, you can then communicate with GPS and receive the data.

You no need to "request" the GPS to send you data, but it will keep sending you data. What you need to do is just analysis the data, and get the useful data.

Here is the link:
http://www.tigoe.net/pcomp/code/archives/processing/000766.shtml
It show you how to analysis the GPS data.

The GPS data format is NMEA 0183. It is one of the standard of GPS data. But there are different kind of format even in NMEA 0183: GGA, RMC, RMB.

This example is using GGA.

This example is very cool that even show which one is latitude and longitude .

You can get the whole data format here:
http://www.kh-gps.de/nmea-faq.htm

沒有留言: