Git Product home page Git Product logo

raspberry-pi-itead-studio-gps-neo-6m's Issues

pps

To enable the GPS as a pps source. Do the following.

add "dtoverlay=pps-gpio,gpiopin=25" to a new line in /boot/config.txt

add "pps-gpio" to a new line in /etc/modules

install pps tools:

sudo apt-get install pps-tools

reboot

run ppstest /dev/pps0

your output should look like this:

$ sudo ppstest /dev/pps0
trying PPS source "/dev/pps0"
found PPS source "/dev/pps0"
ok, found 1 source(s), now start fetching data...
source 0 - assert 1427275430.004698032, sequence: 613 - clear 0.000000000, sequence: 0
source 0 - assert 1427275431.004698969, sequence: 614 - clear 0.000000000, sequence: 0
source 0 - assert 1427275432.004700114, sequence: 615 - clear 0.000000000, sequence: 0
source 0 - assert 1427275433.004703447, sequence: 616 - clear 0.000000000, sequence: 0
source 0 - assert 1427275434.004705218, sequence: 617 - clear 0.000000000, sequence: 0
source 0 - assert 1427275435.004708186, sequence: 618 - clear 0.000000000, sequence: 0
source 0 - assert 1427275436.004709644, sequence: 619 - clear 0.000000000, sequence: 0
^C

Raspberrypi 3

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

Working with Raspbian Jessie, Pi 3 v1.2

Working with Raspbian Jessie and a Pi 3, version 1.2 (printed on the mother board).

The core problem is that the GPS no longer attaches to ttyAMA0. With the introduction of Bluetooth, it got conflated with the serial port for performance reasons - this may be temporary on new versions. In any case, after installing Jessie, so apt-get update and the GPS should be available on ttyS0. The performance of ttyS0 is slighly less than AMA0, but since it actually works, it's probably a good thing. Still working out all the places, but wanted to record this for now.

Reference - http://spellfoundry.com/2016/05/29/configuring-gpio-serial-port-raspbian-jessie-including-pi-3/

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.