From 8e6f03b5a638182306ff5196df6fd1fd10eb7bf9 Mon Sep 17 00:00:00 2001 From: Ryan Date: Mon, 6 Jul 2026 12:56:52 -0400 Subject: [PATCH] Initial commit - MMDVMHost D-Star split controller Name= support --- README.md | 66 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..72a20e5 --- /dev/null +++ b/README.md @@ -0,0 +1,66 @@ +# D-Star Site - MMDVMHost Split Controller + +MMDVMHost with D-Star split controller Name= registration support. +Connects Raspberry Pi 3 sites to cloud DStarRepeater split controller. + +## What this does + +Patches MMDVMHost to send a NETWORK_REGISTER packet with a site name +to the DStarRepeater split controller, allowing the controller to +identify each site by name rather than IP address only. + +## Sites + +| Site | Name | Gateway Port | Local Port | Description | +|-------|-------|-------------|------------|---------------------| +| ORNG | ORNG | 20013 | 20016 | Orange Portable | +| ORNG2 | ORNG2 | 20013 | 20017 | Orange TXRX | + +## Cloud Split Controller + +- IP: 10.121.15.78 +- DStarRepeater split controller +- ircDDBGateway / DStarGateway on cloud side + +## Fresh Install + +```bash +# On fresh Raspberry Pi OS Lite +git clone http://git.rdcclouds.com/ryan/dstar-site +cd dstar-site +sudo bash install.sh +``` + +Select site when prompted. Script handles everything: +- Dependencies +- Serial port configuration +- MMDVMHost compile with patches +- Config generation +- Systemd service + +## Update + +```bash +cd dstar-site +sudo bash update.sh +``` + +## Files Modified in MMDVMHost + +- `DStarNetwork.cpp` - Added writeRegister() sending 0x0B NETWORK_REGISTER packet +- `DStarNetwork.h` - Added m_name member and writeRegister() declaration +- `Conf.h` - Added m_dstarNetworkName member and getDStarNetworkName() +- `Conf.cpp` - Added Name= parser and getter (via patch script) +- `MMDVM-Host.cpp` - Pass name to CDStarNetwork constructor (via patch script) + +## Hardware + +- Raspberry Pi 3 +- MMDVM board on /dev/ttyAMA0 +- 115200 baud + +## Adding a New Site + +1. Create `sites/NEWSITE/site.conf` from existing template +2. Add TXName/RXName to cloud DStarRepeater split config +3. Run `sudo bash install.sh` on new Pi and select site