Skip to content

Raspberrypi 3 #3

Open
Open
@thijstriemstra

Description

@thijstriemstra

I followed your instructions and got them to work with an older B+ model but it didnt work on the raspberrypi 3. There I had to use the following (the jq installation is optional; it's used to get json data from the GPS):

Wire up device
--------------

========== ================
**uBlox**  **Raspberry Pi**
GND	       GND         
TX	       RX (GPIO 15)
RX	       TX (GPIO 14)
VCC	       3V3
========== ================

Installation
------------

Install some packages::

   sudo apt-get install gpsd-clients ntpdate

Compile and install jq (if you want json gps data)::

  wget https://github.com/stedolan/jq/releases/download/jq-1.5/jq-1.5.tar.gz
  tar xf jq-1.5.tar.gz
  cd jq-1.5
  ./configure
  make -j4
  sudo make install
  cd ..
  rm -rf jq*
  jq --version

Remove ``console=serial0,115200`` from ``/boot/cmdline.txt``.

Disable services::

  sudo systemctl stop [email protected]
  sudo systemctl disable [email protected]

Change ``/etc/default/gpsd`` and change the ``GPSD_OPTIONS`` setting to::

  GPSD_OPTIONS="/dev/serial0"

Make sure it's started during boot::

  sudo ln -s /lib/systemd/system/gpsd.service /etc/systemd/system/multi-user.target.wants/

Now reboot the device.

Test
----

Identify the device::

   gpsctl /dev/serial0

Output should be something like::

   /dev/serial0 identified as a u-blox 1.00 (59842) at 9600 baud.

Run gpsmon (Ctrl+c to exit)::

  gpsmon /dev/serial0

Show time packet. ``"mode": 1`` means the GPS sensor has not achieved satellite
lock yet::

  gpspipe -w -n 30 | grep -m 1 time | jq '.'

Show GPS packet::

  gpspipe -w -n 30 | grep -m 1 lat | jq '.'

Show device info::

  gpspipe -w -n 30 | grep -m 1 DEVICE | jq '.'

More in this thread: https://www.raspberrypi.org/forums/viewtopic.php?f=44&t=51788

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions