Raspberry Pi GPS Time Sync | Raspberry Pi Field Computer
Вставка
- Опубліковано 20 сер 2024
- Hello Operators
Continuing on with our Raspberry Pi field computer series, in todays video we're setting up raspberry pi gps time sync, for off grid raspberry pi projects or off grid commuications using a raspberry pi. For my project, my softare running on the raspberry pi, requires and accurate clock. Normally that would come from and NTP server when connected t the internet. When we don't have the internet, we need to find some other way to sync the raspberry pi clock, so that our communications applications JS8Call, WSPR and FT8, no when to start and when to stop.
I'll be running a Raspberry Pi 3B+ running Raspberry Pi Stretch, using a cheap USB GPS Dongle from Amazon. Although this tutorial can be used for many different applications. Mine is off grid communications eg ham radio with a rspberry pi.
Normally the time the comes from an ntp server on the internet. When I'm in a remote location operating from the field station, often there are no internet connections available. Naturally GPS coverage is available, so we can update the system click or the real-time clock if you have one.
I found a tutorial from Mike Richards entitled "Raspberry Pi Stretch - GPS Dongle as a time source with Chrony & Timedatectl" photobyte.org/...
You can find the complete instructions on Mikes website.
Enjoy the world of IOT the Internet of things.
U-Blox USB GPS Amazon USA: amzn.to/2yc1LSv
U-Blox USB GPS Amazon UK: amzn.to/2RGcvRm
Check out my Raspberry Pi list on Amazon: amzn.to/2ybFQew
More Raspberry Pi articles on my blog: oh8stn.org/?s=r...
Interesting videos & playlists
- Ham Radio with a Raspberry Pi:
• Ham Radio with a Raspb...
- Yaesu FT-891 Info & Tutorials:
• Yaesu FT-891 Info & Tu...
- DIY LiFePO4 10ah battery pack for Ham Radio:
• Ham Radio Battery Pack...
- PowerFilm FM16-7200:
• PowerFilm 120w FM16-72...
- Ham Radio Off Grid with OH8STN
• Off Grid Ham Radio wit...
- Better Power Distribution for Portable Ops
oh8stn.org/blo...
73
Julian oh8stn
#raspberrypi #oh8stn #gpstime
video url: • Raspberry Pi GPS Time ...
Support the channel
- Drop a buck in the tip-jar www.paypal.me/o...
- support the channel with Patreon / oh8stn
- Visit my Amazon influencer page www.amazon.com/... Disclosure: Some of the links above are affiliate links. This means that, at zero cost to you, I will earn an commission if you click through the link and finalize a purchase.
Julian, I have come to appreciate the quality and the usefulness of your video. You demonstrate stuff that we can use and applicable for the field. I will continues to share these link with other operators who havent take the hint that the need to sign up.
Did you hear the desperation in my voice? 😀 I appreciate you helping to get the word out, and for the kindness. 👍👍👍
I dont hear any desperation. I just genuinely feel that since you are putting out quality content it can only help the hobby if all do their part. I cant create content but i can share them. Specially since they are quality.
Searched your videos inside your channel and found this excellent video. Notes: I used a replacement package named "python3-gps" as it appears, "python-gps" is no longer available in the current repositories (November of 2022). I also want to point out that I have the same exact hardware: Radio, Rpi and GPS unit. NMEA = National Marine Electronics Association. -- Enough of notes! -- So, thank YOU for being a gentleman and being gifted with the power of teaching. Seems to come natural. 73 from Eduardo in VA US.
Just picked up a Pi4 and the same gps unit, found your video, helped me get it setup, thanks so much, love what your doing!
I have that same dongle. If it’s too bulky for your Pi, you can easily take the case off and wrap it in gaff tape or something like that. It’s mostly empty on the sides, and gets in the way of my USB keyer.
Again one of your videos saves the day , gps is now working on pi , sound card is working just waiting for Ce-19 to show up now
Thanks Julian! Your off-grid tutorials are outstanding. I have two RPis collecting dust - project time!
I dont mean to be so offtopic but does anybody know a method to get back into an Instagram account?
I was dumb forgot my account password. I love any help you can offer me.
@Marcelo Terrance instablaster =)
@Creed Dax I really appreciate your reply. I found the site through google and im waiting for the hacking stuff now.
Looks like it's gonna take quite some time so I will get back to you later when my account password hopefully is recovered.
@Creed Dax it worked and I finally got access to my account again. I'm so happy!
Thank you so much you really help me out!
@Marcelo Terrance happy to help :)
Didn't look through all the comments so apologies if this info is already here. For Windows users, I'm using BktTimeSync to pull the time off GPS module. Julian, appreciate all the information.
Very informative video Julian. I'm almost there, just need a few more tweaks and will be able to take my rig 100% off grid. Tnx for the videos. 73s
That's an excellent achievement. Looking forward to hearing more about your off-grid station
Another useful video !!! Thanks Julian to educate us about all those Raspberry PI things. I am waiting mine from Canakit.
I will admit this was more involved than I thought. Thank you for posting this video it will help me get my Pi going.
It only looks more involved because I explained all the steps in detail. It's pretty easy so you'll be fine.
Julian your videos are great. Probably the best in regard to the subject matter.
Finally got around to working on this. Great walk through Julian, I did have a issue with the time sync and gps not talking to one another. I ended up having to run "systemctl daemon-reload" and it started to work. Keep up the goo0d work!
73
David
This and the Pi Juice Hat are my next project. Thank you for this video!
There are aome other tutorials incoming. About the pijuice. The best place to get information about it is their GitHub page. It's all fragmented but there's a good search feature. It's easy to set up but there's a lot of reading to do.
The awesome tutorial examples with quality information.......very nice!!
Thank you Julian
Thanks for the kindness. 👍👍👍
I found this by complete chance, and I'm glad I did
Thanks Millez, glad it was useful to you 👍
@@OH8STN your whole channel is pretty cool
Super easy to follow for this unix person. Many thanks!
Excellent video and information Julian, much appreciated! I wanted to mention one additional setting some people may also be looking for. If you add the work "allowed" (without quotes) in the chrony.conf file the RaspberryPI can then act as an NTP server to provide time to other computers on the same network. I'm using this setup in May for a special event station where we won't have any internet access and I'll be using the PI to provide accurate time to the stations running digital modes. I'll be using Dimension3 on the Windows computers to receive time via NTP from the PI.
Thanks for the kindness and for the tip Brad. Maybe you want to tell a little bit about your upcoming special event Adventure here in the comments?
Useful and informative, I would have got it done quicker if I have plugged my power cable and my usb adapter into the correct sockets, but never mind.
top instructions - i need it for a stand alone wspr-raspberry zero - thx a lot!!!
Great content - clear thinking presented clearly - cannot ask for more...
Much appreciated!
73
Julian oh8stn
Darn it, you're killing it. Thanks. 8P6RC
Thanks. Learning and moving forward 👍
You can avoid needing to comment out the debian pool by going a step further and programming one of the GPIO pins to receive a PPS (pulse per second) signal. Some gps pi-hat's come with a PPS pin that you can use. A PPS signal can provide
Good info. Clear and to the point.
Clear and accurate video, one difference I had, was that I had to manually start the chrony Daemon
I have a very important question which is, what can I expect in terms of accuracy of the clock ?
Has anyone actually measured this, I need something which is less than 1ms - am I likely to get this performance, or do I need to look at using a GPS with a PPS hardwired to a GPIO line - once again many thanks.
Honestly I really don't know if one millisecond is possible. My target for communications has always been +/- 100ms. That's in the extreme. If you really need such high accuracy, I would definitely go with one of the PPS GPS hat modules.
Thanks for the comment, question and the kindness. It's very much appreciated. By the way let me know what you come up with. 👍
Your videos are reliably great!
Master of Hamisphere ;)
Still got a long way to go for that designation 😀
More setup videos!!! Only thing I've setup is GPS! Make more for how to videos on the Raspberry Pi!!!!
Wow Thanks Julian just what I was going to start looking into for my mobile ft8/js8. Love the work keep it up!
73
David
Decided to try and get the ublox running on a pizero2W. Nothing doing until I decided
to try a "power assist" for the USB... then the dongle powered up properly and started
getting a fix. Looks like the microusb on the pi zero can't deliver enough power to run
the ublox. Too bad.
Thanks for that tip. I think lots of people are pulling their hair out on this one
Perfect. Thanks. 73 !
Thank you Julian. Your videos and blog are an inspiration to start my own projects. 73 KG5DVS
Thanks for the kindness 👍👍👍
Excellent tutorial !
Exact same issue here. Seems to not be relevant anymore? The gpsd download doesn't go the same for me. Pi4 with latest Raspbian. My "GNU nano 5.4" comes up empty. 7:29 into the vid.
Thanks for this video. It has worked well on my regular microSD-card-driven system, but the satellite connections fail once the system is set up and moved to an SSD. I wonder if it has something to do with the firmware updates that happen, as the GPS dongle quits blinking after one of these changes, but before the system is running on the SSD. If you have any information about getting it to work in this setup, that would be awesome. I'm trying to get this to work with the Argon M.2 SATA case. Thanks again for making such great videos!
Thank you Julian, your video is very helpfull for people not so expert on RPi. Just a question. When I active the cgps or gpsmon command I obtain coordinate indication that toggle continuosly between the right value of my location and coordinate in a grid square KO02md. What does it mean? thank you de IU6KVP
Thanks to your idea, I built one! I have it as a backup NTP for my home network. Thanks! de KM4ZSB
I'm having an error. Please help
Error "cgps: no gpsd running or network error: -2, can't get host entry"
I tried to check the data in ttyACMO using the command
"sudo cat /dev/ttyACM0", and I'm getting data from the GPS
I tried this on the Pi-4 2GB with Pi-Star, but no succes. I hope there will be a updated vid on the latest version of Pi-Star.
Another great video Julian. To flesh out this use of the GPS on the PI, do you have an easy way of displaying Grid Square and or automatically passing it to JS8Call?
Using this GPS dongle, you can get a 10 digit grid square by using the "xgps" in the terminal.
So I see later you're using a RTC and canceling the fake system clock . How do you sync the RTC to the GPS for redundancy????
perfect!
Since you followed a guide maybe you can't help or maybe a viewer knows. I followed the instruction to the letter. when I chronyc source -v I get #? NMEA not #*. This meaning NMEA is unreachable, any ideas on how to fix this?
you can know if radarcape work that same form in your built: ads-b + timpestamp gps: radarcape with beaglebone, made by modesbeast?
Hai I have a an error saying “python-gps has no installation candidate”. How do I solve this?
Success! Thank you !!
So my go’s receiver is definitely not syncing the right time..followed everything the same as you but the time is still way off. Any thoughts?? Thanks in advance
Most common issue is no 3d satellite fix. Try outside, and give it enough time. Can take 15 minutes depending on your location and surrounding RF noise.
Hope this helps.
I have a similar dongle but with ublox8 chip GPS/BDS/GLONASS GNSS is written on it. I did follow your instructions but I can´t get it to work. The LED stays off. dmesg isn´t showing any red lines.... Help please! DE1CTL 73!
I've been so disappointed with the raspberry pie platform, i've moved over to a microsoft surface. Keeping up with the raspberry was so difficult, it was impossible to keep tutorials up to date.
ua-cam.com/video/xIrd2l8t4l8/v-deo.html
@@OH8STN Thank´s I oredered from amazon the same dongle that you have with 9€ hopefully it works. If not I have another one that speaks UART... I want to attach it and enable somehow my QTH automatically in wsjt-x. I am planning a trip to Romania and I want to take my Malahit DSP Radio with it´s small Dounat SW PCB antenna and the raspberry for deconding and reporting to psk-reporter. Big dreams... hopefully I will do a short video on my channel if successfull :) THank you my friend & Take Care 73!
Funny enough, now it started! and it works great, just have to find a way to bind that to wjst-x! :)
Julian my setup doesn't popluate the graph with data utilizing the cgps -s command until I remove the GPS unit and reinstall. Any suggestions on why it does that? Same result with gpsmon -n. Thanks
Hello How can I configured Raspberry Pi 4 with Ubuntu 22.04 OS + on-board Neo 6M GPS module Time Sync
I am trying but #?NMEA is status means synchronization not working. Kindly provide guidance on it. Thank you .
Unfortunately, I'm not familiar with that piece of hardware.
Perhaps reach out to the Neo 6M manufacturer for support or documentation. Most serial GPSs are setup the same way. If you can get teh NMEA sentences out of them, one can also use them to set the time like any other GPS.
Good luck
@@OH8STN Yes I check /dev/ttyAMA0 and receive NMEA string so in gpsd file instead of DEVICES=”/dev/ttyACM0″ of this I used DEVICES=”/dev/ttyAMA0″. But unfortunately synchronization is not working. It's bit urgent for me to do it. So, thank you for your time and consideration I'll definitely check NEO 6M gps module manual for details. Thank you.
Thank you for suggestion and help I figured out how to do it :)
I have edited the /etc/default/gpsd file several times and all the additions/changes are correct but when I reboot and run
systemctl is-active gpsd it keeps coming back inactive.
This is a little bit of an old video. When I did it I was running on raspbian stretch. Are you running on Buster? You can try to Type XGPS in the terminal window, to see what your GPS is doing
On my rpi I had to first enable the systemd service
"systemctl enable gpsd"
and then
"systemctl start gpsd"
and then systemctl is active should return active and systemctl status gpsd should return running
My GPS doesn't work at all with cgps - s. Works with gpsmon -n or xgps but I have to pull it out and reinsert it. Anyone have any suggestions?
It works find in my windows 10 laptop. Some kind of port conflict in my pi 3.
Configurations have changed a little bit with the different Raspberry Pi updates and operating systems. I would look at the script based GPS setup on my ultimate raspberry pi for Hsm radio video ua-cam.com/video/bD7McGV21jQ/v-deo.html 18:18 in the timeline.
Ok will do. I think that I just watched that. Thanks
Will i need to force sync or it will automatically sync with small difference?
why not use an app on your cellphone or tablet to share the internal gps data (nmea) over bluetooth to the raspberry pi? Cost less and one less dongle on the Raspberry pi
Definitely not a bad idea but, it does add complexity to the system. One of the goals is always to reduce the feeling with things if they go wrong. I'm sure though when it works, it will work well.
May i use this instructions with a gps made with ublox 6m?
Possibly. The GPS used in this video was also based on u-blox
Thanks Great Video - 73
Luckily this u-blox gps module is dirt cheap, since I noticed after buying one that it doesn't support pps
We choose this cheap one because for data communications it didn't need PPS. If I was building a time reference server I wouldn't choose this GPS
Doesn't work. I'm using a GNSS M-8030. Have some different configuration? Thanks.
sorry thats all ive got atm
Hey Julian! I have hope that we meet on Air.
But today i have problem. I pass trough configuration without any problem. But LED indicator on my device is still red. And i cant get any GPS position. When you typing cgps -s in console there is a short frame of window filled with n/a. On my device it isnt changes and only FIX clock moving on. Is it possible i have broken USB GPS? I have identical Dongle like yours.
Try testing it outside for a while. The first fix can take quite a while.
@@OH8STNThank you so much, i'm actually otside. i'm waiting for while and nothing changes. I will raport you any progress :)
It works! After 638 sec of fixing process!
probably i have really thick walls in my home XD
why do I need a gps to tell time accurately. I have a watch
Total cost?
About 13$ for the GPS, and an hour of my time.