-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix for ppstest timeout #6
Comments
I am using PPS with |
I was following your guide using the latest Raspbian on a Pi 4B and at the point of running ppstest I was seeing timeout errors, the same issue as mentioned in this post - raspberrypi/linux#5430 which is what led me to the above solution which seems to work fine for me. |
Interesting! A kernel bug seems to be the cause: a patch intended for 32bit got wrongly applied to 64bit. Did you try the fix suggested in: raspberrypi/linux#5430 (comment) namely: sudo rpi-update pulls/5478 which pulls a new 64bit kernel patch? (so Edit: A simple Note however that kernel updates are not recommended for normal use, since there's always the probability that something else breaks. |
For me it didn't work. If you have any other ideas I'd be happy to try. Linux rpi3b 6.1.45-v8+ #1671 same situation. |
@OdessaEyes : You might be encountering a different problem, since you are running 32bit Raspbian.
then it might be best to open a separate bug report describing what you tried? |
after using |
The issue seems to be fixed with current (2023-12) bookworm release of Raspberry Pi OS. No more patches are needed. Please re-check, and let me know if there are still issues. |
Hello. I am running the Raspberry OS, I downloaded the current version (2023-12, 32-bit version) and then ran raspi-update. I am now running an updated version from Jan 22 of 2024. I followed all the instructions with a fresh install of the OS (before starting to run the suggested commands, I ran an apt update then apt upgrade), until I got the connection timeout error in the ppstest. I added the arm64bit line to /boot/config.txt, then rebooted, and nothing happened. I also tried with the raspi-update (as previously mentioned), and a reboot, and it is still not working. I am quite new to Raspberry Pis and don't know if there is something I am doing wrong, or if the issue is a bug in the OS, but I would appreciate any help available. |
@romm32 : Non of the fixes should be necessary anymore. Which model of Raspberry Pi are you using?
I should update the instructions once we figure out what happened with your installation. |
I just checked: there is still ongoing work on this bug here Raspberry kernel pps issue 5430 . |
I am using a Raspberry 4 Model B. I was first using it with Ubuntu 22, then switched to Raspberry OS and tried both for 32bit then for 64bit (versions from December 2023, following what was mentioned here). I tried the arm64bit change and it didn't work, nor did a raspi-update. The output was similar to yours, except I was getting the following line right after the "ok, found 1 source(s)...".
Given I am following this guide for my undergraduate final project, and this was one of many things left on my to-do list, I kept trying with different settings yesterday. I eventually switched to Raspberry OS for 64bit, an archive version from September 2022, and everything worked just fine (no need to try any fixes). I know it is not exactly a solution, but I guess this should be enough for the project I am working on. I was able to get chrony working, but I don't see the PPS as one of the sources. My GPS antenna is kind of bad, and I was working indoors, so I am planning on testing everything when I have a decent amount of GPS satellites available (about 10), and hopefully I will see the PPS as one of the sources. Thank you for your quick answer, I will continue following these issues just in case someone finds another fix I could try in the future. |
Hello, |
after I'm fully manuly upgrade to PiOS lite Bookworm (follow this guide: https://gist.github.com/jauderho/6b7d42030e264a135450ecc0ba521bd8) and i delete the now it work normally |
Thank you @Nebulosa-Cat for this information! I will update the guide. |
it shouldn`t be this hard. @Nebulosa-Cat , i thing ill wait for to get fixed with routine updates.. |
I'm having the same trouble. I have a RPi 3b with the Adafruit Ultimate GPS Hat, running Raspberry Pi OS Lite (32 bit, release 2024-03-15) - Bookworm release My /boot/firmware/config.txt changes are:
Still,
Clearly I'm doing something wrong, but I don't know what. |
@ZogKarndon
and my
and if you not get 3D-Lock yet you will recive |
Some additional checkpoints: Are you loading both required kernel modules (e.g. in
Please try: sudo dmesg | grep pps We can then compare the behavior of the kernel modules with this:
The the ls -la /dev/pps* Notice owner of
This was achieved via:
|
@domschl : I have loaded both kernel modules, and added the
One thing I'm not clear about: Does the pps signal not appear if the GPS does not have a lock? My Adafruit GPS doesn't have a lock, even with the external antenna (although I'm still trying to figure out if the GPS thinks the antenna is connected). |
You won't get PPS, until GPS has 3D lock with at least 3-4 satellites. That explains your timeouts. Before even trying to test PPS, you must first make sure that you have stable GPS reception and 'Lock'. For that you need an active GPS antenna (it should say something like 3-5V on the backside of the GPS receiver), passive antennas look similar but have way worse reception. The GPS antenna must have unobstructed line-of-sight to a good portion of the sky, the GPS signal doesn't penetrate walls. It's best to fix the GPS antenna to a window, or even try outside, if that's a possibility. Adafruit do a very good job documenting their hardware, have a look at their description of the test-procedure: |
I moved the active GPS antenna to a better location, and it's working now. (I still haven't figured out how to get the antenna status from the GPS, though; the listed instructions don't appear to work with minicom.) Now all I have to do is figure out a better mounting strategy for the Pi and its extremely fragile GPS antenna connector. |
Hello I want to use the GT-U7 GPS module, which I have used before on pi3 and pi4 without any problems, now with pi5. You know, there was a pps problem. With the updates, the pps problem was solved without me doing anything additional. But as you can see below, I cannot run GPSmon. I changed the bandwidth, I replaced the entire GPS module, but I still couldn't get it to work. When I connect the GPS module to the computer, I see GPS data coming. Has it happened to you? Is there something I missed? (pi5 has the latest updates for both operating system and firmware) In the new pi5 operating system, the directory and file name below is no longer valid( to add pps-gpio and pps-ldisc) ? What if we don't create a new file? so I added modules here; |
The problem seems to be already with GPS receive not working, and that needs to be fixed before even trying PPS. In Theory, there should not be any difference between connecting the GPS module to either Pi 4 or 5. How did you physically connect the the GT-U7 module to the Pi 5? The module seems to be a serial module, so which serial port did you use on the Raspberry? Did you try a The first step should be to verify that you are receiving the proper serial data. You can always compare that with your other Raspberries. |
The cat /dev/ttyAMA10 command does not give any output. Yes, I think it's GPS related, but I connected it the same way I connected the others. gps tx --> gpio15 and gps rx --> gpio14 and pps --> gpio18. I tried it with two different GPS modules. I didn't need to make any adjustments to the ones I bought before. I will connect it to the computer and check again. |
Did you remember to enable the serial port in
Go to 'Interface Options', 'Serial Port': You need to switch off 'login shell', and enable the Serial Port.
|
I've been trying to solve this issue for about 1 month. I suspected this when I didn't see ttyAMA10 in any documentation regarding GPS. I checked it with the command you mentioned 4-5 times, it looks as it should. Now I did it again anyway. When I check it still shows ttyAMA10. (By the way, I don't know if it's relevant, but as far as I understand from the documents I read, I set Bluetooth to be disabled at boot in /etc/firmware/config.txt.) |
I think this bug is related to my problem |
You are right! Things have changed with Raspberry Pi 5. That serial0/AMA10 port is now by default the new "Debug" connector that exists only on the Pi 5. You could connect your GPS to that new connector? Alternatively you can use the new config
I'm not quite sure how that works?! This video shows some information: |
I watched this video. But when I watched it from my current perspective, I realized that I needed to change my google search.
As a result of my searches, only the above command was found in /boot/firmware/config.txt. When you delete this and write it as follows, it says ttyAMA0 instead of ttyAMA10 in front of the serial port. GPSmon works now.
Thank you for guiding me on the right perspective or what I should focus on. |
I've updated the documentation, thanks for your research @aGGreSSiv ! |
Pi5 using: https://www.adafruit.com/product/4279 I can get a 3D lock but no PPS [ 5.158490] pps pps2: new PPS source usbserial0 Any ideas? |
Please provide the complete output of |
pi@pi250:~ $ sudo dmesg | grep pps |
This is on the latest Pi5.. connected via USB |
pi@pi250:~ $ sudo ppstest /dev/pps0 |
Just to make sure: You know that in addition to the USB connection, you need to solder a cable to Adafruit's PPS output pin and connect that to Raspberry GPIO Pin 4? (Sorry, I just want to make sure that connection is ok) |
Hello! I am too running into this issue on the Raspberry Pi 4 8GB model. I intend to perform separate tests on a 5 8GB and 3B+ 1GB if the former also fails. NOTE: I know I had this working roughly around 2/28/2022 as this is when I purchased the active antenna. To me, something has changed in the software, as I have replicated the EXACT hardware setup I had before. Hardware:
Software:
Thus, I am at a complete loss. |
So I am not quite sure what happened, debugging this has left me quite tired, but after scouring through various issues on the matter, I found the following command over at raspberrypi/linux#5430 which seems to have kicked the pps signal into gear: This "fix" has persisted even after a reboot to ensure the loop wasn't still feeding into the signal. I'll try to do some additional digging into exactly what made this work, but throwing it here in case it can save others some much frustrating debugging time on the matter. |
Is this still an issue for anyone? I am running a Raspberry Pi 3B+ with the Adafruit Ultimate GPS v3 Serial module. 64-bit OS. I have tried the fudged PPS trick by putting GPIO 17 & 18 together and running a loop. This works for me.. actually gives me a PPS reading on gpsmon. During intial setup/testing i was using a random old cable i had laying around and didn't realize that 2 of the pins were actually connected. So, this resulted in 5V going towards the PPS pin for about 1 hour. Could this have fried my PPS function on the Adafruit? I put a multimeter on the pin and can see 0.01V going up and down by .01 ish about every second. Assume the multimeter can't read the voltage fluctuations fast enough. Tried switching to mA and i can see spikes every second. Seems like i have a pulse.. just not sure if strong enough. I'm no expert here.. i'm a network guy. Does this sound like my Adafruit module is fried or is this some software issue? |
Any luck? I'm about at the same place as you. Different model Pi. Have you put any kind of multimeter on the Adafruit PPS pin? I did and it seems like i can't read the 3.3V fast enough.. but i do see a pulse of some sort with mA mode. Would be curious to hear any progress you made. |
With a recent update to Raspbian, it's necessary to add
arm_64bit=0
to /boot/config.txt and reboot in order to get the pps workingThe text was updated successfully, but these errors were encountered: