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/

Re: Ultimate GPS

by divious1 on Thu Nov 29, 2012 2:53 pm

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.
divious1
 
Posts: 4
Joined: Wed Nov 28, 2012 10:42 pm
Location: Miami, Florida

Re: Ultimate GPS

by Abbadabbatech on Thu Nov 29, 2012 3:19 pm

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
Abbadabbatech
 
Posts: 17
Joined: Mon Sep 17, 2012 1:42 pm

Re: Ultimate GPS

by Abbadabbatech on Mon Dec 10, 2012 8:32 am

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.
Abbadabbatech
 
Posts: 17
Joined: Mon Sep 17, 2012 1:42 pm

Re: Ultimate GPS

by vva on Wed Feb 06, 2013 9:53 am

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
vva
 
Posts: 2
Joined: Fri Jan 25, 2013 7:32 am

Re: Ultimate GPS

by adafruit_support_rick on Wed Feb 06, 2013 10:05 am

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
adafruit_support_rick
 
Posts: 8435
Joined: Tue Mar 15, 2011 10:42 am
Location: Buffalo, NY

Re: Ultimate GPS

by Abbadabbatech on Wed Feb 06, 2013 10:14 am

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.
Abbadabbatech
 
Posts: 17
Joined: Mon Sep 17, 2012 1:42 pm

Re: Ultimate GPS

by vva on Thu Feb 07, 2013 4:38 am

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!
vva
 
Posts: 2
Joined: Fri Jan 25, 2013 7:32 am