From 2910bb9e73875c9831235356c1812559d736048f Mon Sep 17 00:00:00 2001 From: Dominic Reich Date: Mon, 29 Jan 2024 15:31:37 +0100 Subject: [PATCH] rename draft post (again, i know) --- .../index.md | 60 ++++++++++--------- .../setup_console.jpg | 0 .../thumb.jpg | 3 + 3 files changed, 36 insertions(+), 27 deletions(-) rename content/posts/2024/{62-mmdvm-dstar-hotspot-on-archlinux => 62-a-slim-dstar-gateway-on-a-raspberry-pi-2}/index.md (93%) rename content/posts/2024/{62-mmdvm-dstar-hotspot-on-archlinux => 62-a-slim-dstar-gateway-on-a-raspberry-pi-2}/setup_console.jpg (100%) create mode 100644 content/posts/2024/62-a-slim-dstar-gateway-on-a-raspberry-pi-2/thumb.jpg diff --git a/content/posts/2024/62-mmdvm-dstar-hotspot-on-archlinux/index.md b/content/posts/2024/62-a-slim-dstar-gateway-on-a-raspberry-pi-2/index.md similarity index 93% rename from content/posts/2024/62-mmdvm-dstar-hotspot-on-archlinux/index.md rename to content/posts/2024/62-a-slim-dstar-gateway-on-a-raspberry-pi-2/index.md index 99c8074..0f2f8cc 100644 --- a/content/posts/2024/62-mmdvm-dstar-hotspot-on-archlinux/index.md +++ b/content/posts/2024/62-a-slim-dstar-gateway-on-a-raspberry-pi-2/index.md @@ -1,5 +1,5 @@ --- -title: MMDVM D-STAR hotspot on Archlinux +title: A slim D-STAR gateway on a Raspberry Pi 2 summary: I wrote down the installation of a forked DStarGateway with a slim dashboard based on Javascript on a Raspberry Pi 2. date: 2024-01-29T13:01:26+0100 @@ -44,9 +44,10 @@ the [serial console](https://www.raspberrypi.com/documentation/computers/configu This procedure is taken from [archlinuxarm.org](https://archlinuxarm.org/platforms/armv7/broadcom/raspberry-pi-2) --- it is shown with more details there. +-- a more detailed tutorial is shown there. -![Raspi 2 with wires connected to GPIO Pins GND, RXD and TXD](setup_console.jpg "I haven't changed a thing of the initial configuration") +![Raspi 2 with wires connected to GPIO Pins GND, RXD and TXD](setup_console.jpg "I haven't changed a thing +of the initial configuration -- the serial console works just out of the box") ### Preparations (microSD card) @@ -112,7 +113,8 @@ So the first real thing is upgrading the system. We start as this: # pacman -Syu ~~~ -Some general system administration tasks as time setup network setup etc... +Some general system administration tasks, such as timezone setup network +setup etc... I'm using NetworkManager on the Raspi so I install it @@ -127,19 +129,6 @@ I had some problems with date and time, so a look at `systemd-timesyncd.service` `timedatectl status`, `timedatectl show-timesync` and `timedatectl timesync-status` could be useful. -At this time this is still not working and I think about running this within -a timer: - -~~~console -$ sudo ntpdate {ntp-host} -~~~ - -Needs the package _npt_: - -~~~console -$ sudo pacman -S ntp -~~~ - ## Installation of DStarGateway I prefer compiling as normal user so I login as _dominic_. We will need some packages. @@ -180,7 +169,7 @@ export DATA_DIR=/usr/local/share/dstargateway.d Then run `sudo make install` within the `Data` directory again and all should be fine. -Also install the hostfiles (will need the program _wget_). +Also install the hostfiles (this will need the program _wget_). ~~~console $ sudo make newhostfiles @@ -257,10 +246,18 @@ $ sudo systemctl enable mmdvmhost.service We can't start MMDVMHost right away (well, we can, but it will not work yet). +Enable the UART in `/boot/config.txt`: + +~~~ini +enable_uart=1 +~~~ + +Add this near the top or after `[All]`. + We need to disable the serial console because we need the UART at the GPIO pins for our modem hardware. -Disable the service, that accesses the serial console: +Disable the serial console service: ~~~console $ sudo systemctl disable serial-getty@ttyAMA0.service @@ -281,7 +278,7 @@ want this code here as small as possible without loosing too much of information ~~~ini [Gateway] type=hotspot -callsign=OE7DRT +callsign=CALLSIGN address=0.0.0.0 icomAddress=172.16.0.20 icomPort=20000 @@ -315,7 +312,7 @@ enabled=false [Repeater_1] enabled=true band=E -callsign=OE7DRT +callsign=CALLSIGN address= port=20011 type=hb @@ -366,7 +363,7 @@ fileLevel= displayLevel= [Paths] -data=/usr/local/share/dstargateway.d/ +data=/usr/local/share/dstargateway.d [DExtra] enabled=true @@ -470,7 +467,7 @@ TXLevel=50 RXDCOffset=0 TXDCOffset=0 RFLevel=100 -RSSIMappingFile=RSSI.dat +RSSIMappingFile=/usr/local/etc/RSSI.dat UseCOSAsLockout=0 Trace=0 Debug=0 @@ -559,11 +556,15 @@ Enable=0 # [...] ~~~ +~~~console +$ sudo cp /home/dominic/git/MMDVMHost/RSSI.dat /usr/local/etc/ +~~~ + ### dgwtimeserver ~~~ini [TimeServer] -callsign=OE7DRT +callsign=CALLSIGN address= format=voice language=english_us_2 @@ -729,7 +730,7 @@ Edit the file, because John uses different paths than we do. ~~~systemd {hl_lines="7 9"} [Unit] Description=D-STAR Gateway Dashboard -After=network.target,network-online.target +After=network.target network-online.target Wants=network-online.target [Service] @@ -756,11 +757,11 @@ $ sudo systemctl enable --now dsgwdashboard.service ## DSTAR Registration -A DSTAR registration is needed if you want your transmission to to +A DSTAR registration is needed if you want your transmission to be heard on original ICOM repeaters. Otherwise your transmission will not be forwarded and you may be searching for errors... -I registered in 2020 at but there +I registered at but there is one important thing to add to the webui there: do not choose long passwords (like those from a password manager) because it will get cut off somewhere and it took me quite a while to realize that. @@ -780,3 +781,8 @@ For your information: 12 characters work -- I couldn't bring me back up to test Many password-reset emails have been sent for this already so I couldn't be bothered to investigate even more into that. +## Final words + +So this note ends right here, hopefully this will be of any help to me in +the future or somebody that found it online. + diff --git a/content/posts/2024/62-mmdvm-dstar-hotspot-on-archlinux/setup_console.jpg b/content/posts/2024/62-a-slim-dstar-gateway-on-a-raspberry-pi-2/setup_console.jpg similarity index 100% rename from content/posts/2024/62-mmdvm-dstar-hotspot-on-archlinux/setup_console.jpg rename to content/posts/2024/62-a-slim-dstar-gateway-on-a-raspberry-pi-2/setup_console.jpg diff --git a/content/posts/2024/62-a-slim-dstar-gateway-on-a-raspberry-pi-2/thumb.jpg b/content/posts/2024/62-a-slim-dstar-gateway-on-a-raspberry-pi-2/thumb.jpg new file mode 100644 index 0000000..6666428 --- /dev/null +++ b/content/posts/2024/62-a-slim-dstar-gateway-on-a-raspberry-pi-2/thumb.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f65d76eb32e85cde0d08d8147e3b05d6c1ad4906a535253212aa78dfbe90384d +size 25511