Skip to main content
Share Your Experience: Take the 2024 Developer Survey
13 votes
Accepted

Additional hardware needed for GPS receiver?

Have you tried it outdoor? GPS has very low to no reception indoors. Also you have to receive a signal from at least 4 GPS satellites. Smartphones overcome this issue by using the WiFi and cellular ...
kwasmich's user avatar
  • 2,702
7 votes
Accepted

How to use Arduino devices with Raspberry Pi?

"Arduino devices" are really just general purpose devices that operate on 5V logic and can be connected to a bus style supported on an Arduino, such as UART, SPI, or I2C, none of which originated with ...
goldilocks's user avatar
  • 59.1k
7 votes

How to copy the gps data from Raspberry Pi terminal to a text file?

Pipe the output from gpsmon into a file. (if the file exists already and is writable it will be wiped) gpsmon > gpsmon.txt Pipe the output from gpsmon to append to an existing file (provided ...
Charemer's user avatar
  • 645
5 votes

cgps : GPS timeout

my GPS module is based on L80-39 chip, I've installed gpsd and gpsd-clients packages to drive this module, and reboot my Raspberry Pi. you can try those command as following: sudo killall gpsd sudo ...
yoyojacky's user avatar
4 votes

set system clock to value received from GPS

I'm not sure if the script you have found is useful at all: parsing the output of gpspipe with a shell script is anything but fast. You'll most probably get worse clock accuracy using your script than ...
Dmitry Grigoryev's user avatar
4 votes

Chrony doesn't sync time with gpsd

My chrony.conf now looks like this, and chrony does synchronize with GPS: driftfile /var/lib/chrony/drift makestep 1 10 keyfile /etc/chrony/chrony.keys commandkey 1 allow # set larger delay to ...
Frank Kusters's user avatar
4 votes
Accepted

GPS (USB) with NTP has a consistantly large offset and high jitter from public NTP sources

So...a couple of things. Firstly, "why" you need the PPS... Let's back up a bit. In the ancient world of the 1970s and 1980s, when one spoke of "the system clock" or of a system's &...
Steven High's user avatar
3 votes
Accepted

Magnet on gps module - will it harm?

The short answer is no, a magnet will not interfere with your GPS module. The reason is that the electric field strength of the GPS signal will not be altered in any significant way by the relatively ...
Edward's user avatar
  • 961
3 votes

Chrony doesn't sync time with gpsd

Remove noselect from the refclock line, otherwise that refclock will not be taken into account.
beta-tester's user avatar
3 votes

GPSD Data Receiving Issues

I faced a similar issue, the way i solved it : 1) check GPS data stream cat /dev/ttyAMA0 => i was able to see the NMEA stream 2) check GPS data with gpsmon gpsmon /dev/ttyAMA0 => it was running ...
guimicmoc's user avatar
3 votes

connect Raspberry pi 3 to internet via GSM module

It is my belief that modules like the SIM900a are intended to enable a device (Pi in this case) to connect to a remote machine, pull or push some data over mobile networks (2G/3G etc). To do that the ...
Shreyas Murali's user avatar
3 votes

GSM/GPRS & GPS Expansion

The circuit quite clearly shows that it runs off 5V. It also appears to have provision for external power. The link is quite old (it was obviously designed for a Model B) and the Pi has changed since....
Milliways's user avatar
  • 60.3k
3 votes
Accepted

Running py script as service and interact via ssh. tmux or screen?

Modify /home/pi/serial_nmealog.py so that it logs to syslog. You can configure syslog so that serial_nmealog has its own log file, if you want. Then you can connect with ssh and tail that logfile. ...
Gerard H. Pille's user avatar
3 votes

Temperature variations affect NTP server accuracy

You have indeed hit on a variable worth controlling! The method that Gary Miller of the NTPsec project settled on was to deliberately add CPU load, automatically adjusted to the thermal readings, to ...
Royce Williams's user avatar
3 votes

Getting NMEA unknown msg*58 and other garbage from my NEO-6M-0-001 GPS module

The output you see from your GPS module is perfectly normal. What the NMEA messages tell you is that your GPS module does not (yet) have a fix, i.e. it does not have enough information to calculate ...
oh.dae.su's user avatar
  • 934
3 votes

Getting NMEA unknown msg*58 and other garbage from my NEO-6M-0-001 GPS module

What worked for me was stty -F /dev/ttyS0 -echo. Add it to your /etc/rc.local file so it applies on boot. Basically, the pi was echoing the message it was getting from the GPS back to it, and the GPS ...
ARitz Cracker's user avatar
3 votes
Accepted

gpxlogger not reading any data unless cgps runs

Another closer look into the gpxlogger's manpage revealed to use the -e <export-method> with -l listing all available export methods. So now I invoke gpxlogger this way and it gets the fixes ...
Max Spring's user avatar
3 votes

How can Rpi connect a GPS module?

Those UART GPS modules often have quite poor reception, so you will only get a fix with a clear sky view. Not inside your house, not just out of the window, not on a lawn right next to your house, not ...
Dmitry Grigoryev's user avatar
3 votes

Is there a way to split data stream from one serial port (ttyAMA0) to multiple virtual ports in Raspberry Pi?

There is a tool called ttybus created exactly for this purpose. Here's an example from their readme page: step 1: create a new tty bus called /tmp/ttyS0mux: tty_bus -s /tmp/ttyS0mux step 2: connect ...
Dmitry Grigoryev's user avatar
3 votes

Reading data from GPS module using Python on Raspberry PI

I tend to use the pynmea2 library to parse the GPS data: import serial,time,pynmea2 port = '/dev/serial0' baud = 9600 serialPort = serial.Serial(port, baudrate = baud, timeout = 0.5) while True: ...
CoderMike's user avatar
  • 6,997
2 votes

Correcting for GPS error

GPS has what is known as DOP or Dilution Of Precision. It means things aren't as accurate as you might want. There are 4 such values: TDOP, two HDOP values that are often merged, and VDOP. (Those ...
David G.'s user avatar
  • 225
2 votes

How to connect Rpi-3 and Microstack GPS

I finally found a solution. This article was very usefull for me http://spellfoundry.com/2016/05/29/configuring-gpio-serial-port-raspbian-jessie-including-pi-3/#comment-67160 and i recommand you to ...
jpherrenknecht's user avatar
2 votes
Accepted

Error occurred "unhandled signal 11, terminating" in executing code with PIGPIO

Two points. The crash is caused by attempting to write to unassigned memory. You declare errstr as a pointer to memory but don't point it anywhere and don't allocate any memory for where you would ...
joan's user avatar
  • 71.1k
2 votes

Can't get GPS to automatically work after reboot

I had a problem with this today with Raspbian Jesse, which may help some people. Solution for my set up to enable automatic start of GPS on bootup for NAVIT, was as follows: First set the following ...
Tim's user avatar
  • 21
2 votes
Accepted

How can I set up my G-Mouse USB GPS for use with Raspbian?

First thing is to make sure the tty port is set to the correct baud rate without Putty involved: stty speed 9600 /dev/ttyACM0 Next, install the daemon: sudo aptitude install gpsd gpsd-clients ...
SDsolar's user avatar
  • 2,348
2 votes

Need to get my RPi 3 to work with two UART devices

The Pi3 has only two accessible GPIO (14/15) which may be used as a UART and provide one serial link. You can use other GPIO as a software UART if you know how to write software and are pretty ...
joan's user avatar
  • 71.1k
2 votes
Accepted

Failing to read the /dev/ttyAMA0 port in CSHARP ()

Due to IoT running on many other boards other than a Rasbperry Pi, the names of the Serial Devices are currently named as in the drivers for that particulr chipset. Unfortunately.. this means ...
Piotr Kula's user avatar
  • 17.3k
2 votes

Unable to write to a file when reading a GPS serial port

The data is held in a memory buffer because memory is faster than disk i/o. Your data would be written to the file once you close the file, but I guess you want to read it wile you're writing it? To ...
Seamus's user avatar
  • 22.2k
2 votes
Accepted

Waveshare GSM/GPRS/GNSS HAT not connecting to Cellular network

I have this same HAT and I've just gotten it working. Here's an overview that may help. Ensure both jumpers are set to setting 'A' for USB operation Test connection to the device by connecting a ...
isaacparrot's user avatar
2 votes

Gps for raspberry pi, which one is better in term technical specification and compatibility?

There are many GPS modules on the market. Which one is better - depends on particular purposes and personal taste. Most of them are very similar. GPS modules typically have standard UART interface, ...
cyclone125's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible