GPS

15 views
Skip to first unread message

josp

unread,
Feb 11, 2009, 5:51:43 AM2/11/09
to Twitxr API developers
I got a HTC 3300 Windows mobile, which has a GPS built in. Is it
ossible, to get the location data from the GPS?
joerg

caligari

unread,
Mar 27, 2009, 9:47:11 AM3/27/09
to Twitxr API developers


> I got a HTC 3300 Windows mobile, which has a GPS built in. Is it
> ossible, to get the location data from the GPS?


Of course! You must open GPS device via serial interface and read NMEA
structure:

<pre>

$GPGAA,hhmmss.ss,ddmm.mmmm,n,dddmm.mmmm,e,q,ss,y.y,a.a,z,g.g,z,t.t,iii*CC
| | | | | | | | | | | | |
| |
0 1 2 3 4 5 6
7

0123456789012345678901234567890123456789012345678901234567890123456789012

where:

GPGAA : GPS fixed data identifier
hhmmss.ss : Coordinated Universal Time (UTC), also known as GMT
ddmm.mmmm,n : Latitude in degrees, minutes and cardinal sign
dddmm.mmmm,e : Longitude in degrees, minutes and cardinal sign
q : Quality of fix. 1 = there is a fix
ss : Number of satellites being used
y.y : Horizontal dilution of precision
a.a,M : GPS antenna altitude in meters
g.g,M : geoidal separation in meters
t.t : Age of the defferential correction data
iiii : Deferential station's ID
*CC : checksum for the sentence

</pre>
Reply all
Reply to author
Forward
0 new messages