Hello, I seem to have a problem setting the Baud Rate of the HAT to 38400 for 10 Hz Update Rate use. The HAT was working around 12 hours ago at 38400/10Hz but now it seems to not run at those settings and not be responding to PMTK commands as of now. I've read other people having similar issues and followed some of the more likely solutions (resolder, pull power and battery) and tried to run it at 9600 Baud but the HAT seemed to be stuck at 38400 and was not accepting PMTK commands. After several tries, now the HAT has somehow been set to 9600 and still doesn't accept PMTK commands.
I am at a loss of what to do to resolve the issue.
Issue setting Baud Rate on Ultimate GPS Hat for RPi
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- cryptos9099
- Posts: 5
- Joined: Tue Jun 16, 2015 12:07 am
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: Issue setting Baud Rate on Ultimate GPS Hat for RPi
please post some pictures of both sides of the HAT
- cryptos9099
- Posts: 5
- Joined: Tue Jun 16, 2015 12:07 am
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: Issue setting Baud Rate on Ultimate GPS Hat for RPi
That all looks OK.
How are you sending the PMTK commands?
How are you sending the PMTK commands?
- cryptos9099
- Posts: 5
- Joined: Tue Jun 16, 2015 12:07 am
Re: Issue setting Baud Rate on Ultimate GPS Hat for RPi
Through an echo directed at /dev/ttyAMA0
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: Issue setting Baud Rate on Ultimate GPS Hat for RPi
Hmmm... Don't really know what to suggest. You're sure you're using the correct checksums on the PMTK commands?
This is a handy checksum calculator:
http://www.hhhh.org/wiml/proj/nmeaxor.html
This is a handy checksum calculator:
http://www.hhhh.org/wiml/proj/nmeaxor.html
- cryptos9099
- Posts: 5
- Joined: Tue Jun 16, 2015 12:07 am
Re: Issue setting Baud Rate on Ultimate GPS Hat for RPi
I have been using that very calculator for generating checksums.
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: Issue setting Baud Rate on Ultimate GPS Hat for RPi
This is strange. It must be accepting PMTK commands at least occasionally, since you've been able to change baud rates.
Is it still doing 10Hz, or has that been changed back to 1Hz? Really, the only thing it can be is a bad connection on the HAT's RX line. Can you try re-heating that joint again?
Is it still doing 10Hz, or has that been changed back to 1Hz? Really, the only thing it can be is a bad connection on the HAT's RX line. Can you try re-heating that joint again?
- cryptos9099
- Posts: 5
- Joined: Tue Jun 16, 2015 12:07 am
Re: Issue setting Baud Rate on Ultimate GPS Hat for RPi
It is doing 1Hz right now. I've reheated and doubled the solder and still the same behavior.
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: Issue setting Baud Rate on Ultimate GPS Hat for RPi
We can try replacing the HAT, although I'm not sure that will help.
Please email [email protected] with a link to this thread for a replacement
Please email [email protected] with a link to this thread for a replacement
- lkovacs
- Posts: 10
- Joined: Mon Jul 27, 2015 2:13 pm
Re: Issue setting Baud Rate on Ultimate GPS Hat for RPi
Hello,
I have the same problem, but I can't change the default parameters at all (never).
I resoldered the connections, and checked the +5V, gnd, RX and TX pins with a volt meter and the connections seems to be ok.
Resoldering doesn't solved my problem.
I have an ultimate gps v3 also, which works fine.
I sending the commands via echo from ssh. Gpsmon, cgps working fine, but I can't change the baud rate and the nmea freq at all.
the commands what I use:
echo -e '$PMTK220,100*2F\r\n' >/dev/ttyAMA0
echo -e '$PMTK251,38400*27\r\n' >/dev/ttyAMA0
cat /dev/ttyAMA0 correctly lis the nmea sentences.
Any help would be appreciated!
Thanks,
Laszlo
I have the same problem, but I can't change the default parameters at all (never).
I resoldered the connections, and checked the +5V, gnd, RX and TX pins with a volt meter and the connections seems to be ok.
Resoldering doesn't solved my problem.
I have an ultimate gps v3 also, which works fine.
I sending the commands via echo from ssh. Gpsmon, cgps working fine, but I can't change the baud rate and the nmea freq at all.
the commands what I use:
echo -e '$PMTK220,100*2F\r\n' >/dev/ttyAMA0
echo -e '$PMTK251,38400*27\r\n' >/dev/ttyAMA0
cat /dev/ttyAMA0 correctly lis the nmea sentences.
Any help would be appreciated!
Thanks,
Laszlo
- adafruit2
- Posts: 22148
- Joined: Fri Mar 11, 2005 7:36 pm
Re: Issue setting Baud Rate on Ultimate GPS Hat for RPi
huh you know we've never used command line to set up the GPS HAT - we do test both RX & TX so its *not* likely the hardware
perhaps minicom or a small python script would work for testing?
perhaps minicom or a small python script would work for testing?
- lkovacs
- Posts: 10
- Joined: Mon Jul 27, 2015 2:13 pm
Re: Issue setting Baud Rate on Ultimate GPS Hat for RPi
Yes, if you could post a python code, I can try it out. But, if you read back in this topic, the topic opener also uses echo commands.
The command line commands works fine with this board: https://learn.adafruit.com/adafruit-ult ... s/overview.
I also uses UART with ultimate board.
Please note: " Gpsmon, cgps working fine", so RX is OK, so something is wrong with accepting PMTK commands.
The command line commands works fine with this board: https://learn.adafruit.com/adafruit-ult ... s/overview.
I also uses UART with ultimate board.
Please note: " Gpsmon, cgps working fine", so RX is OK, so something is wrong with accepting PMTK commands.
- adafruit2
- Posts: 22148
- Joined: Fri Mar 11, 2005 7:36 pm
Re: Issue setting Baud Rate on Ultimate GPS Hat for RPi
we dont have any example code handy - you can check using an oscilloscope to make sure signal is making it out to the GPS
you can also try minicom, that is easier than writing code
you can also try minicom, that is easier than writing code
- lkovacs
- Posts: 10
- Joined: Mon Jul 27, 2015 2:13 pm
Re: Issue setting Baud Rate on Ultimate GPS Hat for RPi
Could you instruct me how could I test my board with minicom?
I can't have oscilloscope, so I can't test with oscilloscope.
I can't have oscilloscope, so I can't test with oscilloscope.
Please be positive and constructive with your questions and comments.