Open ivogeorg opened 2 years ago
The setup instructions below are taken from here.
Chek if wiringpi
is installed:
gpio -v
If not, install the last public release as follows (link to post):
mkdir tmp
cd tmp
wget https://project-downloads.drogon.net/wiringpi-latest.deb
sudo dpkg -i wiringpi-latest.deb
gpio -v
Install Python libraries
sudo apt-get update
sudo apt-get install gpsd gpsd-clients gpsd-tools
sudo pip3 install gps3
Old instructions, which are a bit strange (e.g. installing another GPIO access library RPi.GPIO):
sudo apt-get update
sudo pip install RPi.GPIO
sudo apt-get install python-serial
sudo apt-get install gpsd-tools gpsd-clients
sudo -H pip3 install gps3
Is sudo apt-get install python-serial
needed here? Or has it been installed earlier?
Configure gpsd
# Open gpsd file
sudo nano /etc/default/gpsd
# Change the following lines in the file and save
USBAUTO="false"
DEVICES="/dev/ttyS0"
GPSD_OPTIONS="/dev/ttyUSB0"
Download demo code
mkdir ~/Documents/MAX-XXX_GNSS_HAT_Code
cd ~/Documents/MAX-XXX_GNSS_HAT_Code/
wget https://www.waveshare.com/w/upload/0/0f/MAX-XXX_GNSS_HAT_Code.zip
unzip MAX-XXX_GNSS_HAT_Code.zip
Python example
cd ~/Documents/MAX-XXX_GNSS_HAT_Code/RaspberryPi/python/coordinate_converter
sudo python3 main.py
gpsd
guide.
Knowledge
/dev/ttyUSB0
setup instructions. For example, the RockBLOCK library hardcodes/dev/ttyUSB0
and the MAX-M8Q setup instructions also hardcode it (though only as an option, as it is irrelevant when the device is on the HAT stack).