diff --git a/CHANGELOG.txt b/CHANGELOG.txt new file mode 100644 index 0000000..1c11c58 --- /dev/null +++ b/CHANGELOG.txt @@ -0,0 +1,8 @@ +Added RTC (https://www.adafruit.com/product/3013) +NEO GPS Module + Wiring + Changed to 5v mode + U-Center-2 (https://www.u-blox.com/en/u-center-2) + Changed Baudrate UART1 to 921600 # 460800 + Time Pulse Mode + Antenna Cable Delay set to the calculated 14ns \ No newline at end of file diff --git a/README.md b/README.md index 7ac26f7..2b63b17 100644 --- a/README.md +++ b/README.md @@ -42,11 +42,16 @@ 2. SSH Access 3. sudo permissions 2. A timing specific GPS module, wired to the Raspberry Pi GPIOs: - 1. GPS GND to RPi pin 6 - 2. GPS VIN to RPi pin 2 or 4 - 3. GPS PPS to RPi pin 12 (GPIO 18) - 4. GPS RX to RPi pin 8 - 5. GPS TX to RPi pin 10 + 1. GPS GND to RPi Physical Pin 6 (GND) + 2. GPS RX to RPi Physical Pin 8 (GPIO 14 / TX (UART)) + 3. GPS TX to RPi Physical Pin 10 (GPIO 15 / RX (UART)) + 4. GPS PPS to RPi Physical Pin 12 (GPIO 18) + 5. GPS VIN to RPi Physical Physical 4 (5 volts) +3. I2C RTC Module + 1. RTC GND to Rpi Physical Pin 9 (GND) + 3. RTC SDA to RPi Physical Pin 3 (GPIO 2 / SDA1 (I2C)) + 4. RTC RCL to RPi Physical Pin 5 (GPIO 4 / SCL1 (I2C)) + 5. RTC VCC to RPi Physical Pin 1 (3.3 volts) ### Install Clone the repo @@ -99,16 +104,13 @@ Upload ~/Garfana-Visualization.json to create dashboard **todo** * case * gps sma antenna adaptor -* ntp server - * outside dial in - * cloudflare tunnel? * change gps settings + * use 5v + * adjust time delay to be closer to * higher baudrate 1. 230400 2. 460800 3. 921600 -* uninstall desktop/etc - * change boot target to cli * README * installer1-4.sh * sudo apt update && sudo apt install -y git diff --git a/cable-delay-calc.xlsx b/cable-delay-calc.xlsx index 778a112..8b36e6c 100644 Binary files a/cable-delay-calc.xlsx and b/cable-delay-calc.xlsx differ diff --git a/installer3.sh b/installer3.sh index f476a58..ceef6be 100644 --- a/installer3.sh +++ b/installer3.sh @@ -56,7 +56,7 @@ else sudo bash -c "echo '# the next 3 lines are for GPS PPS signals' >> /boot/firmware/config.txt" sudo bash -c "echo 'dtoverlay=pps-gpio,gpiopin=18' >> /boot/firmware/config.txt" sudo bash -c "echo 'enable_uart=1' >> /boot/firmware/config.txt" - sudo bash -c "echo 'init_uart_baud=115200' >> /boot/firmware/config.txt" # set baudrate here to + sudo bash -c "echo 'init_uart_baud=921600' >> /boot/firmware/config.txt" # set baudrate here to fi # check if pps-gpio is in /etc/modules already diff --git a/installer4.sh b/installer4.sh index 0600fed..6e5da1d 100644 --- a/installer4.sh +++ b/installer4.sh @@ -21,7 +21,12 @@ sudo usermod -aG dialout _chrony # reconfigure to normal mode echo "Starting configure script..." -bash ./reconfig_full.sh ./working-normal-level-conf +# quiet level +# bash ./reconfig_full.sh ./reconfig_full.sh ./working-normal-level-conf +# running (warn level) +# bash ./reconfig_full.sh ./working-warn-level-conf +# debug/dev mode +bash ./reconfig_full.sh ./working-debug-level-conf-dev # enable services echo "Enabling Services..." diff --git a/notes-scratch-todo.txt b/notes-scratch-todo.txt index 2e371d0..88e80e6 100644 --- a/notes-scratch-todo.txt +++ b/notes-scratch-todo.txt @@ -11,9 +11,7 @@ rtc module notes: https://serverfault.com/questions/1093101/chrony-hosting-time-with-rtc-as-authoritative-clock-on-an-air-gapped-isolated?__cf_chl_tk=G_sZX4ClltOv3fQJpH1q2a65tx4O2s_H_FObeBQ2UyU-1749831141-1.0.1.1-W0v5fl8cCrf0tIpB0pAqIb93L5MuoWeebiHm7iLGAlo https://stackoverflow.com/questions/49730407/how-to-do-one-shot-time-sync-using-chrony - add bat - wire up - do oneshot sync + do oneshot sync? script set every x seconds `sudo hwclock -r` change gps to use 5v if possible so rtc can use 3v diff --git a/working-debug-level-conf/50-tty.rules b/working-debug-level-conf-dev/50-tty.rules similarity index 100% rename from working-debug-level-conf/50-tty.rules rename to working-debug-level-conf-dev/50-tty.rules diff --git a/working-debug-level-conf/chrony.conf b/working-debug-level-conf-dev/chrony.conf similarity index 100% rename from working-debug-level-conf/chrony.conf rename to working-debug-level-conf-dev/chrony.conf diff --git a/working-warn-level-conf/gpsd b/working-debug-level-conf-dev/gpsd similarity index 81% rename from working-warn-level-conf/gpsd rename to working-debug-level-conf-dev/gpsd index afd5b95..896a0ce 100644 --- a/working-warn-level-conf/gpsd +++ b/working-debug-level-conf-dev/gpsd @@ -4,8 +4,8 @@ DEVICES="/dev/ttyS0 /dev/pps0" # -n means start without a client connection (i.e. at boot) -# -s 115200 is to set baud to 115200 -GPSD_OPTIONS="-n -s 115200" +# -s 115200 is to set baud to 921600 +GPSD_OPTIONS="-n -s 921600" # also start in general START_DAEMON="true" diff --git a/working-debug-level-conf/grafana.ini b/working-debug-level-conf-dev/grafana.ini similarity index 100% rename from working-debug-level-conf/grafana.ini rename to working-debug-level-conf-dev/grafana.ini diff --git a/working-debug-level-conf/influxdb.conf b/working-debug-level-conf-dev/influxdb.conf similarity index 100% rename from working-debug-level-conf/influxdb.conf rename to working-debug-level-conf-dev/influxdb.conf diff --git a/working-debug-level-conf/telegraf.conf b/working-debug-level-conf-dev/telegraf.conf similarity index 100% rename from working-debug-level-conf/telegraf.conf rename to working-debug-level-conf-dev/telegraf.conf diff --git a/working-normal-level-conf/50-tty.rules b/working-normal-level-conf.unupdated/50-tty.rules similarity index 100% rename from working-normal-level-conf/50-tty.rules rename to working-normal-level-conf.unupdated/50-tty.rules diff --git a/working-normal-level-conf/chrony.conf b/working-normal-level-conf.unupdated/chrony.conf similarity index 100% rename from working-normal-level-conf/chrony.conf rename to working-normal-level-conf.unupdated/chrony.conf diff --git a/working-debug-level-conf/gpsd b/working-normal-level-conf.unupdated/gpsd similarity index 100% rename from working-debug-level-conf/gpsd rename to working-normal-level-conf.unupdated/gpsd diff --git a/working-normal-level-conf/grafana.ini b/working-normal-level-conf.unupdated/grafana.ini similarity index 100% rename from working-normal-level-conf/grafana.ini rename to working-normal-level-conf.unupdated/grafana.ini diff --git a/working-normal-level-conf/influxdb.conf b/working-normal-level-conf.unupdated/influxdb.conf similarity index 100% rename from working-normal-level-conf/influxdb.conf rename to working-normal-level-conf.unupdated/influxdb.conf diff --git a/working-normal-level-conf/telegraf.conf b/working-normal-level-conf.unupdated/telegraf.conf similarity index 100% rename from working-normal-level-conf/telegraf.conf rename to working-normal-level-conf.unupdated/telegraf.conf diff --git a/working-warn-level-conf/50-tty.rules b/working-warn-level-conf.unupdated/50-tty.rules similarity index 100% rename from working-warn-level-conf/50-tty.rules rename to working-warn-level-conf.unupdated/50-tty.rules diff --git a/working-warn-level-conf/chrony.conf b/working-warn-level-conf.unupdated/chrony.conf similarity index 100% rename from working-warn-level-conf/chrony.conf rename to working-warn-level-conf.unupdated/chrony.conf diff --git a/working-normal-level-conf/gpsd b/working-warn-level-conf.unupdated/gpsd similarity index 100% rename from working-normal-level-conf/gpsd rename to working-warn-level-conf.unupdated/gpsd diff --git a/working-warn-level-conf/grafana.ini b/working-warn-level-conf.unupdated/grafana.ini similarity index 100% rename from working-warn-level-conf/grafana.ini rename to working-warn-level-conf.unupdated/grafana.ini diff --git a/working-warn-level-conf/influxdb.conf b/working-warn-level-conf.unupdated/influxdb.conf similarity index 100% rename from working-warn-level-conf/influxdb.conf rename to working-warn-level-conf.unupdated/influxdb.conf diff --git a/working-warn-level-conf/telegraf.conf b/working-warn-level-conf.unupdated/telegraf.conf similarity index 100% rename from working-warn-level-conf/telegraf.conf rename to working-warn-level-conf.unupdated/telegraf.conf