From e08c045322a3ba7e53f7f018f082a4379e1d6e59 Mon Sep 17 00:00:00 2001 From: PrincessPi3 Date: Fri, 13 Jun 2025 13:16:34 -0600 Subject: [PATCH] 1749842195 --- CHANGELOG.txt | 8 +++++++ README.md | 22 ++++++++++-------- cable-delay-calc.xlsx | Bin 10825 -> 10822 bytes installer3.sh | 2 +- installer4.sh | 7 +++++- notes-scratch-todo.txt | 4 +--- .../50-tty.rules | 0 .../chrony.conf | 0 .../gpsd | 4 ++-- .../grafana.ini | 0 .../influxdb.conf | 0 .../telegraf.conf | 0 .../50-tty.rules | 0 .../chrony.conf | 0 .../gpsd | 0 .../grafana.ini | 0 .../influxdb.conf | 0 .../telegraf.conf | 0 .../50-tty.rules | 0 .../chrony.conf | 0 .../gpsd | 0 .../grafana.ini | 0 .../influxdb.conf | 0 .../telegraf.conf | 0 24 files changed, 30 insertions(+), 17 deletions(-) create mode 100644 CHANGELOG.txt rename {working-debug-level-conf => working-debug-level-conf-dev}/50-tty.rules (100%) rename {working-debug-level-conf => working-debug-level-conf-dev}/chrony.conf (100%) rename {working-warn-level-conf => working-debug-level-conf-dev}/gpsd (81%) rename {working-debug-level-conf => working-debug-level-conf-dev}/grafana.ini (100%) rename {working-debug-level-conf => working-debug-level-conf-dev}/influxdb.conf (100%) rename {working-debug-level-conf => working-debug-level-conf-dev}/telegraf.conf (100%) rename {working-normal-level-conf => working-normal-level-conf.unupdated}/50-tty.rules (100%) rename {working-normal-level-conf => working-normal-level-conf.unupdated}/chrony.conf (100%) rename {working-debug-level-conf => working-normal-level-conf.unupdated}/gpsd (100%) rename {working-normal-level-conf => working-normal-level-conf.unupdated}/grafana.ini (100%) rename {working-normal-level-conf => working-normal-level-conf.unupdated}/influxdb.conf (100%) rename {working-normal-level-conf => working-normal-level-conf.unupdated}/telegraf.conf (100%) rename {working-warn-level-conf => working-warn-level-conf.unupdated}/50-tty.rules (100%) rename {working-warn-level-conf => working-warn-level-conf.unupdated}/chrony.conf (100%) rename {working-normal-level-conf => working-warn-level-conf.unupdated}/gpsd (100%) rename {working-warn-level-conf => working-warn-level-conf.unupdated}/grafana.ini (100%) rename {working-warn-level-conf => working-warn-level-conf.unupdated}/influxdb.conf (100%) rename {working-warn-level-conf => working-warn-level-conf.unupdated}/telegraf.conf (100%) 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 778a112dafaf2a5f3a8d8cf8004c56c2465c29a6..8b36e6c043a36e2e27d576ef2eb8cb4fa2de7d8d 100644 GIT binary patch delta 914 zcmV;D18w}tRK`@G4GBuwP$t*|001hJ2@N5COOKl{5XbM8`W-CaiLoJR7KN;qWKs84 z^?7#85Ukjk+RkHD^}DZuCc9F4h*sh;jAwrT8GBgVpR_^;uuhsb$8-{71g$WYY_~c7 z@x6@Z7&*_|iYwDXj-SEd`{lBZ&xq!-#UmlJw=hgyO95*m_8MA0LM$lmL;bFiojcRCxCN)V-R-+b z7~KWLMk?u_2Pj5bWKY}HSiVuA?-NbAKqnh67VhLMGx)ERv=r7jQ~OCEld<{o2#okvEonBaf>=l;06E?fR`t7pWURF8&^H`Q^_87A$E=n4u z>vv3MI>!$*D_D%laxo0hPYFl&#zvlRzJUVa zA&5|n`uW@#v+Dz&f-4S4Hw5%ZF1$Rz3Y5xmL1$sce-A3X9VEy_n4z3af(A6xfMYE_OCINrTPQx%1ME6MiL*#wpJb2Yg zQVFWAS_z3F5If7hO(WumY(v_=$4S}{C<~VM%srmDaz5XSCinznYb6VmL@^3LGR13I z73g`h4DV229hICmN7Dy%7crxoBdj&HC4M>%yAcfe4OM07-QHX`+hX?g%>7#a{DoyAF%;BT)3 zBkZ38y)to%+8wm-bc{P?b2f;hdvEK}*tTudW_=8wKf$l-)l*+JtYx<=2B^$ABg_DG z%9IOe>W1!um6BDCCqlQxhFZ7w``*^T?+?Gc=ej=U_B94L@W2NnLyeR2l07UoOH`(D zdL70$VUlf@A0lAY-DO3T#lcOmk8_?A(t3?3- o0BHgM01*HH00000000000001yli?{o0S%KNDkBEWCIA2c01LgRTL1t6 delta 922 zcmV;L17-ZiRLNAJ4GFS}NMPIp001tN2@N5C+m72H5Qgt7^&JrR4mNSNSu4(JldRSB zs_OBY;Bkxs#szX%Rekr4?IycYdJ(PU0}TA%KV!zThm+Cd0M0AhHspL={yn>A zLS9JM_1}a^Qs&^Gx&wSc@wcUvOfD>c{sJ4n5q5Whb)U;+dsXK2_ft`<_*2ZIcu^!# zx|+t(VmW?{7K=1leOU6lVzT^0=d)7b33pWy2USiVlWf6b%I34afqp1B`d4ET#O5n# zkO9ynp``22jkUXO;~GOTB7MK1Lkbzx0hXY3PS+f3^}l+THBYinI7b_H@p(N?K6@5@ zUw?L_gi7pn_+pPAL2c`R=4mIFR^wiL5~I353mZzDhRjqM>YVbF61n%mnx8`;`6n9$ zm{Tvn_ir!6sYM&lcSyN*~W0kqq!{+iZWI*g2o^2M>#Lk;!WsjQrqN)W02_FcvV`dZ?VZyEW6Sm+ zsg1ltd2!bmNu7T`nhI;m-f0CmjpI3%;3%h#;tm+f{0V;Dte^U-p-|nf7@#ue zj4%V#HKtrbEo! 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