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.

КОМЕНТАРІ • 100

  • @Cris2Lin
    @Cris2Lin 5 років тому +4

    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.

    • @OH8STN
      @OH8STN  5 років тому

      Did you hear the desperation in my voice? 😀 I appreciate you helping to get the word out, and for the kindness. 👍👍👍

    • @Cris2Lin
      @Cris2Lin 5 років тому

      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.

  • @W4BTK
    @W4BTK Рік тому

    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.

  • @mazdaspeed69
    @mazdaspeed69 4 роки тому +1

    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!

  • @AZREDFERN
    @AZREDFERN 5 місяців тому +1

    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.

  • @aahicnow
    @aahicnow 4 роки тому

    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

  • @paulepruss
    @paulepruss 5 років тому +4

    Thanks Julian! Your off-grid tutorials are outstanding. I have two RPis collecting dust - project time!

    • @marceloterrance3532
      @marceloterrance3532 3 роки тому

      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.

    • @creeddax5132
      @creeddax5132 3 роки тому

      @Marcelo Terrance instablaster =)

    • @marceloterrance3532
      @marceloterrance3532 3 роки тому

      @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.

    • @marceloterrance3532
      @marceloterrance3532 3 роки тому

      @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!

    • @creeddax5132
      @creeddax5132 3 роки тому

      @Marcelo Terrance happy to help :)

  • @dtx149
    @dtx149 5 років тому +1

    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.

  • @coquisats3066
    @coquisats3066 5 років тому +6

    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

    • @OH8STN
      @OH8STN  5 років тому +2

      That's an excellent achievement. Looking forward to hearing more about your off-grid station

  • @STARKYMART
    @STARKYMART 5 років тому +2

    Another useful video !!! Thanks Julian to educate us about all those Raspberry PI things. I am waiting mine from Canakit.

  • @thuff3207
    @thuff3207 5 років тому

    I will admit this was more involved than I thought. Thank you for posting this video it will help me get my Pi going.

    • @OH8STN
      @OH8STN  5 років тому

      It only looks more involved because I explained all the steps in detail. It's pretty easy so you'll be fine.

  • @hawkeyeCH53E
    @hawkeyeCH53E 4 роки тому +1

    Julian your videos are great. Probably the best in regard to the subject matter.

  • @hamradio7389
    @hamradio7389 5 років тому +1

    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

  • @spldrong
    @spldrong 5 років тому +1

    This and the Pi Juice Hat are my next project. Thank you for this video!

    • @OH8STN
      @OH8STN  5 років тому +1

      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.

  • @rgp415
    @rgp415 5 років тому +2

    The awesome tutorial examples with quality information.......very nice!!
    Thank you Julian

    • @OH8STN
      @OH8STN  5 років тому

      Thanks for the kindness. 👍👍👍

  • @Millez
    @Millez 5 років тому +1

    I found this by complete chance, and I'm glad I did

    • @OH8STN
      @OH8STN  5 років тому

      Thanks Millez, glad it was useful to you 👍

    • @Millez
      @Millez 5 років тому +1

      @@OH8STN your whole channel is pretty cool

  • @aramb
    @aramb 3 роки тому

    Super easy to follow for this unix person. Many thanks!

  • @BorntoVenture
    @BorntoVenture 5 років тому

    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.

    • @OH8STN
      @OH8STN  5 років тому

      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?

  • @lonewolfhamradio
    @lonewolfhamradio 2 роки тому +1

    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.

  • @MichaelVorbeck
    @MichaelVorbeck 4 роки тому

    top instructions - i need it for a stand alone wspr-raspberry zero - thx a lot!!!

  • @john-r-edge
    @john-r-edge Рік тому

    Great content - clear thinking presented clearly - cannot ask for more...

    • @OH8STN
      @OH8STN  Рік тому

      Much appreciated!
      73
      Julian oh8stn

  • @robertchambers5821
    @robertchambers5821 5 років тому +2

    Darn it, you're killing it. Thanks. 8P6RC

    • @OH8STN
      @OH8STN  5 років тому

      Thanks. Learning and moving forward 👍

  • @baltakatei
    @baltakatei 3 роки тому

    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

  • @john-r-edge
    @john-r-edge 2 роки тому

    Good info. Clear and to the point.

  • @PilotAware
    @PilotAware 4 роки тому +1

    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.

    • @OH8STN
      @OH8STN  4 роки тому

      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. 👍

  • @mattcero1
    @mattcero1 4 роки тому

    Your videos are reliably great!

  • @oh2hqe
    @oh2hqe 5 років тому +2

    Master of Hamisphere ;)

    • @OH8STN
      @OH8STN  5 років тому

      Still got a long way to go for that designation 😀

  • @trevorbradleewest76
    @trevorbradleewest76 4 роки тому

    More setup videos!!! Only thing I've setup is GPS! Make more for how to videos on the Raspberry Pi!!!!

  • @NoThankYou541
    @NoThankYou541 5 років тому

    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

  • @aramb
    @aramb 2 роки тому +1

    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.

    • @OH8STN
      @OH8STN  2 роки тому +1

      Thanks for that tip. I think lots of people are pulling their hair out on this one

  • @rostyslavyablonskyy4134
    @rostyslavyablonskyy4134 5 років тому +2

    Perfect. Thanks. 73 !

  • @justinstarr9504
    @justinstarr9504 5 років тому +1

    Thank you Julian. Your videos and blog are an inspiration to start my own projects. 73 KG5DVS

    • @OH8STN
      @OH8STN  5 років тому

      Thanks for the kindness 👍👍👍

  • @revoland
    @revoland 4 роки тому

    Excellent tutorial !

  • @thed8229
    @thed8229 2 роки тому

    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.

  • @AndyL922
    @AndyL922 3 роки тому

    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!

  • @mariofulviocaramanico2906
    @mariofulviocaramanico2906 3 роки тому +1

    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

  • @koset
    @koset 3 роки тому

    Thanks to your idea, I built one! I have it as a backup NTP for my home network. Thanks! de KM4ZSB

  • @mvccaya30
    @mvccaya30 3 роки тому

    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

  • @africantwin173
    @africantwin173 3 роки тому

    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.

  • @JohnTarbox
    @JohnTarbox 5 років тому +1

    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?

    • @MadDawg91108
      @MadDawg91108 5 років тому +3

      Using this GPS dongle, you can get a 10 digit grid square by using the "xgps" in the terminal.

  • @drakkonov9
    @drakkonov9 2 роки тому

    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????

  • @hugorios6586
    @hugorios6586 Рік тому

    perfect!

  • @kf7dac
    @kf7dac 3 роки тому

    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?

  • @BHZAero
    @BHZAero 5 років тому

    you can know if radarcape work that same form in your built: ads-b + timpestamp gps: radarcape with beaglebone, made by modesbeast?

  • @nurulhannany6108
    @nurulhannany6108 2 роки тому

    Hai I have a an error saying “python-gps has no installation candidate”. How do I solve this?

  • @ronkline8726
    @ronkline8726 3 роки тому

    Success! Thank you !!

  • @averagejoe8183
    @averagejoe8183 3 роки тому +1

    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

    • @OH8STN
      @OH8STN  3 роки тому

      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.

  • @catalinalb1722
    @catalinalb1722 Рік тому +1

    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!

    • @OH8STN
      @OH8STN  Рік тому +2

      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

    • @catalinalb1722
      @catalinalb1722 Рік тому

      @@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!

    • @catalinalb1722
      @catalinalb1722 Рік тому

      Funny enough, now it started! and it works great, just have to find a way to bind that to wjst-x! :)

  • @hawkeyeCH53E
    @hawkeyeCH53E 4 роки тому

    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

  • @yashashreejadhav5984
    @yashashreejadhav5984 Рік тому +1

    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 .

    • @OH8STN
      @OH8STN  Рік тому

      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

    • @yashashreejadhav5984
      @yashashreejadhav5984 Рік тому +1

      @@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.

    • @yashashreejadhav5984
      @yashashreejadhav5984 Рік тому

      Thank you for suggestion and help I figured out how to do it :)

  • @hhampton
    @hhampton 4 роки тому +1

    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.

    • @OH8STN
      @OH8STN  4 роки тому

      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

    • @jimbo-dev
      @jimbo-dev 4 роки тому +2

      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

  • @hawkeyeCH53E
    @hawkeyeCH53E 4 роки тому +1

    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.

    • @OH8STN
      @OH8STN  4 роки тому

      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.

    • @hawkeyeCH53E
      @hawkeyeCH53E 4 роки тому +1

      Ok will do. I think that I just watched that. Thanks

  • @Marc-mp6lf
    @Marc-mp6lf 3 роки тому

    Will i need to force sync or it will automatically sync with small difference?

  • @chromexfz0991
    @chromexfz0991 3 роки тому

    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

    • @OH8STN
      @OH8STN  3 роки тому +1

      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.

  • @robertocarloscaruso6840
    @robertocarloscaruso6840 2 роки тому

    May i use this instructions with a gps made with ublox 6m?

    • @OH8STN
      @OH8STN  2 роки тому

      Possibly. The GPS used in this video was also based on u-blox

  • @brandonpace9566
    @brandonpace9566 4 роки тому

    Thanks Great Video - 73

  • @jimbo-dev
    @jimbo-dev 4 роки тому

    Luckily this u-blox gps module is dirt cheap, since I noticed after buying one that it doesn't support pps

    • @OH8STN
      @OH8STN  4 роки тому

      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

  • @leozitosantos
    @leozitosantos 4 роки тому

    Doesn't work. I'm using a GNSS M-8030. Have some different configuration? Thanks.

    • @OH8STN
      @OH8STN  4 роки тому

      sorry thats all ive got atm

  • @AndrzejSQ9PKW
    @AndrzejSQ9PKW 3 роки тому

    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.

    • @OH8STN
      @OH8STN  3 роки тому +1

      Try testing it outside for a while. The first fix can take quite a while.

    • @AndrzejSQ9PKW
      @AndrzejSQ9PKW 3 роки тому +1

      ​@@OH8STNThank you so much, i'm actually otside. i'm waiting for while and nothing changes. I will raport you any progress :)

    • @AndrzejSQ9PKW
      @AndrzejSQ9PKW 3 роки тому

      It works! After 638 sec of fixing process!
      probably i have really thick walls in my home XD

  • @user-xv1vm5xc1f
    @user-xv1vm5xc1f 2 роки тому

    why do I need a gps to tell time accurately. I have a watch

  • @freewill7549
    @freewill7549 5 років тому

    Total cost?

    • @OH8STN
      @OH8STN  5 років тому

      About 13$ for the GPS, and an hour of my time.