mcauser / raspberry-pi-itead-studio-gps-neo-6m Goto Github PK
View Code? Open in Web Editor NEWExperiments with my ITead Studio RPI GPS Add On
Home Page: http://imall.iteadstudio.com/development-platform/raspi/raspberry-pi-gps-add-on.html
Experiments with my ITead Studio RPI GPS Add On
Home Page: http://imall.iteadstudio.com/development-platform/raspi/raspberry-pi-gps-add-on.html
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
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
On raspberry pi 2 model B, when I start previewing the video though the official Raspberry Pi module, signal from the GPS Add-On disappears. Here is a repro video clip, showing the output of "cgps -s" while streaming camera to a monitor: https://www.dropbox.com/sc/u0jk3bqsrbtth6g/AACnYh81zYfx9iTm7ECglJ3Wa
Same thing happened on Raspberry Pi A+.
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/
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.