Skip to content

Instantly share code, notes, and snippets.

Avatar

Tom Dilatush SlightlyLoony

View GitHub Profile
@SlightlyLoony
SlightlyLoony / gpscfg.c
Created Oct 16, 2017
Utility for working with UBlox GPS on Raspberry Pi 3 running Jessie or later
View gpscfg.c
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <unistd.h>
#include <fcntl.h>
#include <termios.h>
#include <argp.h>
/*
Simple program to read configuration of U-Blox GPS serial port.
@SlightlyLoony
SlightlyLoony / port.c
Last active Feb 26, 2019
Raspbian program to set U-Blox GPS to stationary mode, and save configuration
View port.c
#include <stdio.h>
#include <unistd.h>
#include <fcntl.h>
#include <termios.h>
/*
Simple program that sets stationary mode in U-Blox GPS connected to serial 0 on a Raspberry Pi 3 running Jessie. This
was not tested on any other system. This program assumes the GPS is using its default 9600 baud, 8 data bits, 1 stop bit,
and no parity. I'm using the expansion board from Uputronics.
This program worked for me when I set up my Pi as a stratum 1 NTP server per the directions on this
You can’t perform that action at this time.