Ultimate GPS

Moderators: adafruit_support_bill, adafruit

Forum rules
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/
divious1
 
Posts: 4
Joined: Wed Nov 28, 2012 11:42 pm

Re: Ultimate GPS

Post by divious1 »

Man if you throw that in a github, you will have a fan! I had a problem while running your code but I believe it has to do with ttyAMA0 being used. I will post more data when I'm in front of the py.

User avatar
abbadabbatech
 
Posts: 17
Joined: Mon Sep 17, 2012 2:42 pm

Re: Ultimate GPS

Post by abbadabbatech »

Yea you have to disable it following the directions on many forums, so that the code can utilize it. I can not remember the link, but I will see if I can find it. Make sure to use the code posted here you download and install pynmea as well as its not in the default build. The new code does not use it.

Thanks

User avatar
abbadabbatech
 
Posts: 17
Joined: Mon Sep 17, 2012 2:42 pm

Re: Ultimate GPS

Post by abbadabbatech »

https://bitbucket.org/dnetman99/gpstrackerpi

Here is the repository. Remember this is the full project for GPS tracking and posts to a webservice. It requires some config files and some log files if you want. I also have a init script that loads it on boot. It is running solid for about 14 straight days so far.

Adafruit, feel free to use this code as well to enhance the tutorial that only has arduino code right now.

Thanks and enjoy.

I will update more as I find any issues.

vva
 
Posts: 2
Joined: Fri Jan 25, 2013 8:32 am

Re: Ultimate GPS

Post by vva »

Hi all,

I am trying to build a GPS-logger from my raspberry pi and the ultimate gps module. I can get a serial connection and can read from the serial port. Since I am interested in 10hz logging I am now trying to change the update rate to 10hz. I ran the exact code as Abbadabbatech posted on Nov. 14 but the device seems not to react on the commands to increase the update rate and change the output line.

Does anyone have the same problem and/or did anybody solve this?

Thanks for replying,

vva

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: Ultimate GPS

Post by adafruit_support_rick »

Did you also issue PMTK_SET_NMEA_OUTPUT_RMCONLY? You need to reduce the amount data sent from the chip in order to realize the higher update rates.

You might also want to update to the code in Abbadabbatech's bitbucket, posted on Dec 10.

User avatar
abbadabbatech
 
Posts: 17
Joined: Mon Sep 17, 2012 2:42 pm

Re: Ultimate GPS

Post by abbadabbatech »

I should have posted to here as well the new repository. I made some significant changes related to the post for using GPSD as well.

https://bitbucket.org/dnetman99/raspberrypiprojects

It has not only the serial code I use, but also the mod for using GPSD and sending both via webservice and via UDP packet to a server. The UDP listener code is there as well.

vva
 
Posts: 2
Joined: Fri Jan 25, 2013 8:32 am

Re: Ultimate GPS

Post by vva »

Thanks for the quick replies!

I figured out that the checksum I was using wasn't right. Running the ser.write('$PMTK....') in the python shell returned the right checksum, changing the checksum fixed the problem!

For others with the same problem: for RMCAonly I used: '$PMTK314,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0*57\r\n'
and for the 10hz update rate: '$PMTK220,100*17\r\n'

Thanks again and I am definitely gonna get some inspiration from the codes in Abbadabbatech bitbucket! Great job!

Locked
Forum rules
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/

Return to “Adafruit Raspberry Pi® accessories”