
-51-
v4.9
GPS
To get the GPS data in stand alone and MS-based mode use the function
getGPSinfo()
. The GPS data from MS_assisted mode
are stored in
buffer_3G
.
Example of use:
{
// Gets GPS data and shows it:
_3G.getGPSinfo();
USB.println(_3G.buffer_3G);
}
These functions returns:
•
‘1’ on success
•
‘0’ if error
•
‘-2’ if info it’s not available
10.4. Stopping the GPS
To stop the GPS use the function
stopGPS()
;
Example of use:
{
// Stops GPS:
_3G.stopGPS();
}
These functions returns:
•
‘1’ on success
•
‘0’ if error
10.5. Managing GPS data
The GPS data given by the 3G/GPRS module has 2 formats. The function
getGPSinfo()
(stand-alone and MS-based) returns
the GPS info in specific variables with this units:
Variable
Format
Example
latitude
±ddmm.=north and -= south
d: degree; m: minute
4140.831527
longitude
±dddmm.=east and -= west
d: degree; m: minute
-00053.173495
date
ddmmyy
d: day; m: month; y: year
020812
UTC_time
hhmmss.s
h: hour; m: minute; s: seconds
083418.0
altitude
meters
257.00
speedOG
Knots (1knot = 1852m/s)
0
course
degrees
0
Figure: Format and example of GPS variables in stand- alone and MS-based modes
Содержание Waspmote 3G Plus GPS
Страница 1: ...Waspmote 3G GPS Networking Guide ...