My Ultimate GPS Breakout unit is also unresponsive to configuration commands. I am trying to change the update rate from 1Hz to 5Hz using the adafruit "echo" code with no success.
GPS.sendCommand(PMTK_SET_NMEA_UPDATE_5HZ);
The unit is also unresponsive to commands telling it which sentences to put out. I have scoped the RX pin (pin 10) on the gps chip to make sure it is receiving the commands at power up and the serial data looks good. It seems no matter which commands I change, the gps defaults to 1Hz, 9600 baud, and all sentences.
Here is some sample output for "GPS.sendCommand(PMTK_SET_NMEA_OUTPUT_RMCGGA);" and "GPS.sendCommand(PMTK_SET_NMEA_UPDATE_5HZ);".
From what I can gather in the PMTK command packet spec the "2" in $PMTK001,220,2*31 means ‘2’ = Valid command / packet, but action failed .
The actual data when the unit has satellite lock is accurate. Any ideas? Is this a bad unit?
Thanks.
Martin
Adafruit GPS library basic test!
$PMTK001,220,2*31
$GPGGA,003126.067,,,,,0,0,,,M,,M,,*4F
$GPGSA,A,1,,,,,,,,,,,,,,,*1E
$GPRMC,003126.067,V,,,,,0.00,0.00,060180,,,N*45
$GPVTG,0.00,T,,M,0.00,N,0.00,K,N*32
$GPGGA,003127.067,,,,,0,0,,,M,,M,,*4E
$GPGSA,A,1,,,,,,,,,,,,,,,*1E
$GPRMC,003127.067,V,,,,,0.00,0.00,060180,,,N*44
$GPVTG,0.00,T,,M,0.00,N,0.00,K,N*32
$GPGGA,003128.067,,,,,0,0,,,M,,M,,*41
$GPGSA,A,1,,,,,,,,,,,,,,,*1E
$GPGSV,1,1,00*79
$GPRMC,003128.067,V,,,,,0.00,0.00,060180,,,N*4B
$GPVTG,0.00,T,,M,0.00,N,0.00,K,N*32
Ultimate GPS Breakout not accepting commands
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- mauimart
- Posts: 5
- Joined: Wed Jul 18, 2012 3:36 pm
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: Ultimate GPS Breakout not accepting commands
Please post a photo of your wiring and soldering.
-
- Posts: 13
- Joined: Wed Nov 07, 2012 5:34 am
Re: Ultimate GPS Breakout not accepting commands
I, too, am having the problems that these two people report--gps.sendCommand does nothing. I get the same output that is shown above (all sentences), and my connections and soldering look just like the photos. I haven't used the MT3339 GPS PC Tool software. I'm using the basic echo sketch and simply changing the commenting:
Has there been any resolution of this issue?
Code: Select all
// You can adjust which sentences to have the module emit, below
// uncomment this line to turn on RMC (recommended minimum) and GGA (fix data) including altitude
//GPS.sendCommand(PMTK_SET_NMEA_OUTPUT_RMCGGA);
// uncomment this line to turn on only the "minimum recommended" data for high update rates!
GPS.sendCommand(PMTK_SET_NMEA_OUTPUT_RMCONLY);
// uncomment this line to turn on all the available data - for 9600 baud you'll want 1 Hz rate
//GPS.sendCommand(PMTK_SET_NMEA_OUTPUT_ALLDATA);
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: Ultimate GPS Breakout not accepting commands
Sounds like you are receiving data from the unit but it's not receiving data from you. Check your connection to GPS RX. Try different jumper wires, different breadboard slots, etc. Check the soldering on the GPS RX pin - reflow it.
Feel free to post a picture of your wiring and soldering.
Feel free to post a picture of your wiring and soldering.
-
- Posts: 13
- Joined: Wed Nov 07, 2012 5:34 am
Re: Ultimate GPS Breakout not accepting commands
I think I fixed the problem. I put a 1 sec delay after GPS.begin and after each GPS.sendCommand and now it works.
-
- Posts: 12151
- Joined: Thu Apr 06, 2006 4:21 pm
Re: Ultimate GPS Breakout not accepting commands
Sounds like it needs a little more 'boot' time?
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: Ultimate GPS Breakout not accepting commands
Weird. What kind of arduino are you using? Do you need the delay after every sendCommand? Can you see if it works if the delay is only before and/or after the GPS.begin?8bar wrote:I think I fixed the problem. I put a 1 sec delay after GPS.begin and after each GPS.sendCommand and now it works.
-
- Posts: 13
- Joined: Wed Nov 07, 2012 5:34 am
Re: Ultimate GPS Breakout not accepting commands
OK, I took out the delays after the sendCommands. It didn't work the first time I tried (I asked for RMC and GGA but got RMC only).
But after that, it worked every time, and I could switch between
GPS.sendCommand(PMTK_SET_NMEA_OUTPUT_RMCGGA),
GPS.sendCommand(PMTK_SET_NMEA_OUTPUT_RMCONLY), and
GPS.sendCommand("$PMTK314,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0*29") (GGA only)
arbitrarily with the correct output showing up.
Then I took the delay out after the GPS.begin, and I could no longer switch again.
But after that, it worked every time, and I could switch between
GPS.sendCommand(PMTK_SET_NMEA_OUTPUT_RMCGGA),
GPS.sendCommand(PMTK_SET_NMEA_OUTPUT_RMCONLY), and
GPS.sendCommand("$PMTK314,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0*29") (GGA only)
arbitrarily with the correct output showing up.
Then I took the delay out after the GPS.begin, and I could no longer switch again.
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: Ultimate GPS Breakout not accepting commands
OK - that makes some sense, I suppose. GPS.begin sends a baud-rate command, so maybe your GPS is not quite finished with that when the next command comes in.8bar wrote:Then I took the delay out after the GPS.begin, and I could no longer switch again.
Some questions:
Are you calling GPS.begin(9600), or are you setting some other baud rate?
Are you using hardware or software serial?
-
- Posts: 13
- Joined: Wed Nov 07, 2012 5:34 am
Re: Ultimate GPS Breakout not accepting commands
yesAre you calling GPS.begin(9600)
softwareAre you using hardware or software serial?
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: Ultimate GPS Breakout not accepting commands
Thanks. Looks like we'll have to update the library to include a delay.
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: Ultimate GPS Breakout not accepting commands
Hi - We've updated the library to add a delay after GPS.begin. If you get a chance, download it and see if it works for you.
Thanks!
Thanks!
-
- Posts: 1
- Joined: Tue Nov 27, 2012 1:12 am
Re: Ultimate GPS Breakout not accepting commands
Just received my Ultimate GPS breakout & was experiencing the same thing using your newest code. After fussing with it and even re-soldering the Rx pin as someone suggested, I realized that the Serial.println("Adafruit GPS library basic test!"); was never even printing. So I changed
//Serial.begin(115200); to
//Serial.begin(9600); and now its working.
Maybe you can tell me why this worked but I figured it has something to do with the delay in trying to read&write.
(Note that around 14400 is where it starts to get jittery.)
Best,
//Serial.begin(115200); to
//Serial.begin(9600); and now its working.
Maybe you can tell me why this worked but I figured it has something to do with the delay in trying to read&write.
(Note that around 14400 is where it starts to get jittery.)
Best,
-
- Posts: 13
- Joined: Wed Nov 07, 2012 5:34 am
Re: Ultimate GPS Breakout not accepting commands
You also need to change the speed of the serial monitor to 115200. Do that in the lower right-hand corner of the monitor. It is 9600 by default, which explains why it worked when you changed your code.
-
- Posts: 13
- Joined: Wed Nov 07, 2012 5:34 am
Re: Ultimate GPS Breakout not accepting commands
Yes, the new code with the delay works well! Thanks.driverblock wrote:Hi - We've updated the library to add a delay after GPS.begin. If you get a chance, download it and see if it works for you.
Thanks!
Please be positive and constructive with your questions and comments.