Modifications

Sauter à la navigation Sauter à la recherche
1 762 octets ajoutés ,  20 novembre 2015 à 13:36
Ligne 150 : Ligne 150 :     
{{ADFImage|ADAFRUIT-FONA-Arduino-Test-64.jpg}}
 
{{ADFImage|ADAFRUIT-FONA-Arduino-Test-64.jpg}}
 +
 +
The data is in a comma-seperated format:
 +
<nowiki>0,4043.576433,7400.316980,58.647405,20150601201258.000,64,12,0.548363,100.442406</nowiki>
 +
 +
Can  be parsed out to:
 +
* '''0''' - this is the mode (will be 0)
 +
* '''4043.576433''' - this is the longitude
 +
* '''7400.316980''' - this is the latitude
 +
 +
{{ambox|text=People often get confused because the GPS is working but is "5 miles off" - this is because they are not parsing the lat/long data correctly. Despite appearances, the geolocation data is NOT in decimal degrees. It is in degrees and minutes in the following format: Latitude: DDMM.MMMM (The first two characters are the degrees.) Longitude: DDDMM.MMMM (The first three characters are the degrees.) }}
 +
 +
* '''58.647405''' - this is the altitude in meters
 +
* '''20150601201258.000''' - this is the UTC time in yyymmddHHMMSS.ms format. E.g. this is year 2015, month 06, date 01, 20 hour, 12 minute, 58 seconds.  If you are not in UTC timezone you'll have to adjust this for your local time
 +
* '''64''' - is the ttff, time to first fix, in seconds
 +
* '''12''' - is the # of visible satelites
 +
* '''0.548363''' - is the speed (in knots)
 +
* '''100.442406''' - this is the best guess for 'course', e.g. which way you are heading, with 0 being 'north' and 180 being 'south' (we think)
 +
 +
If you want to get the 'raw NMEA' data for some reason, you can do that with '''E''' - you can send a number from 0-255 indicating which sentences you want emittted.
 +
 +
* 0 for disable output
 +
* +2 for $GPGGA
 +
* +4 for $GPGLL
 +
* +8 for $GPGSA
 +
* +16 for $GPGSV
 +
* +32 for $GPRMC
 +
* +64 for $GPVTG
 +
* +128 for GPZDA
 +
 +
e.g. if you want to see GPRMC and GPGGA, add +32 and +2 = 34 and put in that number. Then you'll see the data stream out at 1Hz
 +
 +
{{ADFImage|ADAFRUIT-FONA-Arduino-Test-70.jpg}}
 +
    
https://learn.adafruit.com/adafruit-fona-mini-gsm-gprs-cellular-phone-module/arduino-test#checking-network-registration
 
https://learn.adafruit.com/adafruit-fona-mini-gsm-gprs-cellular-phone-module/arduino-test#checking-network-registration
    
{{ADAFRUIT-FONA-TRAILER}}
 
{{ADAFRUIT-FONA-TRAILER}}
29 836

modifications

Menu de navigation