Raspberry Pi 4 GPS Install - TheSmokinApe

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
all right folks what we have here is a GPS USB dongle made by you blocks the reason I bought this is I wanted to be able to have a real time clock on my Raspberry Pi for when I'm not connected to a wired or wireless network and this device will fit the bill for that additionally there may be a point where I need access to positional or location information but that's not my initial concern there's not much to this USB dongle there is an LED light on the side that will blink once when powered on and it will blink many times once it acquires a signal with with the satellite and the other thing I wanted to mention is that this GPS does need to download what is called an almanac when it's initially plugged in and that can take some time so here we are at the desktop of my Raspberry Pi and what we're gonna do is open up some notes that I put together for doing this installation now there's a couple tutorials on the internet and I kind of pulled this together from a couple of different sources but at the end of the day this guy Mike Richards g4w and C has done a fantastic job putting together a website that has a tutorial on it so that's where the bulk of my information comes from and then also other folks on YouTube have produced videos with a similar goal or objective what we're going to do is pull from this notes file which will be posted below and then we're gonna cut and paste that into a command prompt and you would just open up your terminal window in order to do that so one of the first things that we want to do is we want to update our repositories and this is kind of like syncing the App Store for lack of a better word to your Raspberry Pi to make sure that you have all the latest versions of your software and packages on your Raspberry Pi it just takes a few minutes to run and we'll speed this up once you update your repository information the next thing you want to do is you want to upgrade any installed packages or applications so let's go ahead and copy the command for that sudo Act - get upgrade we're going to paste that in and then we're gonna go ahead and we're gonna run that now unfortunately I got this message this error message and it's not a typical to get messages when you're doing an update and upgrade and basically what this is saying is is that my installation is not in sync with all of the repositories more or less and so we're just going to move on this happens sometimes you go back in a couple days through your at - get update and your app - get upgrade and it usually will correct itself in time so let's go ahead and clear the screen so we have the GPS plugged in and I want to use this command LS USB which will list my USB devices and I want to see if the Raspberry Pi has detected that the GSP is plugged in GPS I mean and here you go you can see that you blocks AG is in that list as well as everything else that is plugged in to my Raspberry Pi and I want to make a note that I do have an icon 7:03 ham radio connected to this work to this and we'll talk a little bit about potential conflicts there so the next thing I want to do is install the GPS software so I'm going to copy this command which does just that and again this command will be in the notes below and for this one we used a program called apt not apt-get I don't know if I type that in that way both are installation packages or if I cut and paste it from a different tutorial the next thing we need to do is we need to edit the GPS server software's configuration file and we do that by issuing this command sudo nano and then the location of the file nano is a command line text editor that we are going to use and I need to check these settings and then make sure they match the ones in the notes so I'm gonna have to add some information around the device and I'm gonna have to add some information around my GS GPS D options now one of the things is is that there is a set in here says USB auto equals true when I had it set that way I was getting a conflict with my ham radio that I mentioned earlier while having the GPS on so what I did is I changed that to false and I'll show you how I did that at the end of this video and that corrected my error all right once we make these changes we're gonna go ahead and we're gonna save this file and we're going to exit so you do control X to exit and then it will ask if you want to write the file to buffer and we will answer yes which will save the changes there we go and on to the next step now we're going to install an application called chrony and what chrony does it is a time synchronization tool that will allow you to easily manage the synchronization of time between a real-time clock network time servers that you may be getting time from and then the operating systems internal clock so sudo - app - I'm sorry sudo apt - get install chrony will install this application okay after we have installed crony it is best to reboot and restart your Raspberry Pi so that's what we've done now and that will allow your services to come up clean those services being crony and the GPS the GPS server so now we're going to go back to our notes file and we are going to use some commands that will allow us to check and see if gpsd and crony are running so we're gonna go ahead and were going to execute those again they'll be down below it's system CTL is active space service name and it tells us that it's active so let's do the same and check for crony and it's active cuz I have two commands that check your GPS output and the first one did not work for me and I did not attempt to troubleshoot it but the second one did and it certainly gave me a lot of GPS output so I know that it's working but I'm not going to show that here because I don't want to broadcast all my location information there's another command that you can issue called pseudo chrony see sources - V and that'll be included in the file below and when you run this it will come back and it will tell you your time servers the first one is NMEA which is the GPS device itself so this way we know that the GPS is working as a usable time source by chrony now like what we did with GPS D we need to edit our chrony configuration file so again we're going to use the Nano text editor to accomplish this so we're going to cut and paste our command into our terminal window and this will open our config file in Nano now what we want to do is at the end of this document we need to add a configuration line the main thing for this I believe is a sequencing and a formatting request for a chrony application so here we just copy and then we paste that into our document and once that's done we'll save this like we did last time with control X and then answering Y when it asked if we want to save the save the file now we're going to take a look at a command that will allow us to take a look at the output from chrony as well as our system time so we're gonna go ahead and we're going to pay sudo chrony see tracking and then you can take a look at your real-time clock you can take a look at your system time and you can see any deltas that may or may not exist and one of the things that we're going to do is we're going to use another command sudo crony C space make step and what that will allow us to do is a force of synchronization so there is no time drift and the reason we're doing this is um I like to use ham radios obviously if you look at my channel you'll see that for digital modes and I want to be able to make sure that my time on my Raspberry Pi is correct and that's why we're doing all this now what I'm gonna do is I'm gonna jump into another video where I had to correct a problem because when I would try to use ft8 what would happen is I would get an error message saying that my Raspberry Pi could not open the port to my 7300 and what I found was is that in the configuration file for gpsd I had to make an adjustment and you can see that edit or adjustment here I changed USB Alto from true to false once I did that I was able to fire up ft8 and everything worked just fine while the GPS was plugged into my Raspberry Pi and that's it folks so what I'd like to do is say thank you to everybody for watching if you have any questions or comments go ahead and post them below and I'll do my best to respond go ahead and click the thumbs up or even subscribe thanks I appreciate it
Info
Channel: TheSmokinApe
Views: 31,847
Rating: undefined out of 5
Keywords: Ublox, gps, rtc, raspberry pi, raspberry, How to install gps, ham radio, radio, pi4, raspberry pi 4, smokinape, thesmokinape, raspbian buster
Id: isVHkovZuSM
Channel Id: undefined
Length: 10min 20sec (620 seconds)
Published: Fri Jan 10 2020
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.