MMDVM HotSpot: firmware for ZUMspot or MMDVM_HS based boards (D-Star, DMR, YSF, P25, NXDN and POCSAG)
Find a file
2017-10-09 22:42:22 -03:00
configs Adding quiet option behavior to mode leds 2017-08-20 20:51:33 -03:00
scripts Preparing release v1.0.1 2017-08-26 19:43:57 -03:00
.gitignore Add STM32F10X_Lib directory to .gitignore 2017-07-15 17:33:02 +01:00
ADF7021.cpp Optimizing ZUMspot debug messages 2017-08-26 18:55:37 -03:00
ADF7021.h Fix YSF +1 sym deviation to 900 Hz (according to standard), and fix deviation values for 12.288 MHz TCXO 2017-08-20 20:49:56 -03:00
BitRB.cpp Adapting original duplex DMR code to MMDVM_HS 2017-04-29 23:05:03 -03:00
BitRB.h Adding support for STM32F4 and STM32F7 (first part…) 2017-10-09 22:42:22 -03:00
bootloader.ld Adding USB bootloader support 2017-02-13 00:46:51 -03:00
BUILD.md Updating BUILD.md 2017-08-20 20:55:16 -03:00
Config.h Adding quiet option behavior to mode leds 2017-08-20 20:51:33 -03:00
Debug.h Optimizing ZUMspot debug messages 2017-08-26 18:55:37 -03:00
DMRDefines.h First commit 2017-02-01 01:33:31 -03:00
DMRDMORX.cpp Adding Jonathan G4KLX run-time debugging option 2017-06-26 11:10:15 -04:00
DMRDMORX.h Adding RSSI support for ADF7021, and RSSI for DStar and DMR 2017-02-10 14:03:14 -03:00
DMRDMOTX.cpp Increasing buffers (IO and DMR) for BlueDV compatibility 2017-09-23 11:42:30 -03:00
DMRDMOTX.h Reverting TX continuous mode in DMR DMO 2017-04-16 16:07:44 -03:00
DMRIdleRX.cpp Fix bits to bytes conversion in DMRIdle 2017-07-22 13:42:26 -04:00
DMRIdleRX.h Adapting original duplex DMR code to MMDVM_HS 2017-04-29 23:05:03 -03:00
DMRRX.cpp Changing 2 slot RX to 1 slot RX only in DMR duplex mode 2017-05-06 20:19:08 -03:00
DMRRX.h Changing 2 slot RX to 1 slot RX only in DMR duplex mode 2017-05-06 20:19:08 -03:00
DMRSlotRX.cpp Adding run-time debugging for duplex mode 2017-06-26 11:19:14 -04:00
DMRSlotRX.h Changing 2 slot RX to 1 slot RX only in DMR duplex mode 2017-05-06 20:19:08 -03:00
DMRSlotType.cpp First commit 2017-02-01 01:33:31 -03:00
DMRSlotType.h First commit 2017-02-01 01:33:31 -03:00
DMRTX.cpp Adding run-time debugging for duplex mode 2017-06-26 11:19:14 -04:00
DMRTX.h Adapting original duplex DMR code to MMDVM_HS 2017-04-29 23:05:03 -03:00
DStarDefines.h First commit 2017-02-01 01:33:31 -03:00
DStarRX.cpp Adding Jonathan G4KLX run-time debugging option 2017-06-26 11:10:15 -04:00
DStarRX.h Adding RSSI support for ADF7021, and RSSI for DStar and DMR 2017-02-10 14:03:14 -03:00
DStarTX.cpp Adding Jonathan G4KLX run-time debugging option 2017-06-26 11:10:15 -04:00
DStarTX.h Fix serial port bug and several small changes 2017-02-02 22:08:59 -03:00
Globals.h Adding support for STM32F4 and STM32F7 (first part…) 2017-10-09 22:42:22 -03:00
IO.cpp Adding quiet option behavior to mode leds 2017-08-20 20:51:33 -03:00
IO.h Optimizing ZUMspot debug messages 2017-08-26 18:55:37 -03:00
IOArduino.cpp Adding 12.5 kHz IF filtering for D-Star and P25, and IF fine auto-calibration 2017-08-12 17:02:31 -04:00
IOSTM.cpp Adding 12.5 kHz IF filtering for D-Star and P25, and IF fine auto-calibration 2017-08-12 17:02:31 -04:00
LICENCE First commit 2017-02-01 01:33:31 -03:00
Makefile Adding support for STM32F4 and STM32F7 (first part…) 2017-10-09 22:42:22 -03:00
MMDVM_HS.cpp Adding support for STM32F4 and STM32F7 (first part…) 2017-10-09 22:42:22 -03:00
MMDVM_HS.ino Fixing compilation error 2017-07-22 18:58:36 -04:00
normal.ld Adding USB bootloader support 2017-02-13 00:46:51 -03:00
P25Defines.h First commit 2017-02-01 01:33:31 -03:00
P25RX.cpp Adding Jonathan G4KLX run-time debugging option 2017-06-26 11:10:15 -04:00
P25RX.h Adding RSSI support for P25 2017-02-17 19:57:25 -03:00
P25TX.cpp Adding Jonathan G4KLX run-time debugging option 2017-06-26 11:10:15 -04:00
P25TX.h Fix serial port bug and several small changes 2017-02-02 22:08:59 -03:00
README.md Updating README 2017-08-20 14:54:46 -03:00
SerialArduino.cpp Adding support for USART1 LCD to STM32duino 2017-07-15 16:32:07 -04:00
SerialPort.cpp Preparing release v1.0.1 2017-08-26 19:43:57 -03:00
SerialPort.h Optimizing ZUMspot debug messages 2017-08-26 18:55:37 -03:00
SerialRB.cpp First commit 2017-02-01 01:33:31 -03:00
SerialRB.h Adding support for STM32F4 and STM32F7 (first part…) 2017-10-09 22:42:22 -03:00
SerialSTM.cpp Small changes 2017-07-15 15:21:21 -04:00
stm32f4xx_link.ld Adding support for STM32F4 and STM32F7 (first part…) 2017-10-09 22:42:22 -03:00
stm32f7xx_link.ld Adding support for STM32F4 and STM32F7 (first part…) 2017-10-09 22:42:22 -03:00
stm32f10x_link.ld Adding USB bootloader support 2017-02-13 00:46:51 -03:00
Utils.cpp Removing <cstddef> include for better toolchain compatibility (please update the LIB) 2017-09-23 12:29:15 -03:00
Utils.h Adding support for STM32F4 and STM32F7 (first part…) 2017-10-09 22:42:22 -03:00
YSFDefines.h First commit 2017-02-01 01:33:31 -03:00
YSFRX.cpp Adding Jonathan G4KLX run-time debugging option 2017-06-26 11:10:15 -04:00
YSFRX.h Adding RSSI support for YSF 2017-03-09 21:10:11 -03:00
YSFTX.cpp Adding Jonathan G4KLX run-time debugging option 2017-06-26 11:10:15 -04:00
YSFTX.h Fix serial port bug and several small changes 2017-02-02 22:08:59 -03:00

Introduction

This is the source code of ZUMspot, personal hotspot (ADF7021 version of the MMDVM firmware), based on Jonathan G4KLX's MMDVM software. This firmware supports D-Star, DMR, System Fusion and P25 digital modes.

This software is intended to be run on STM32F103 microcontroller. You can build this code using Arduino IDE with STM32duino package, or using "make" with ARM GCC tools. Also, Arduino with 3.3 V I/O (Arduino Due and Zero) and Teensy (3.1, 3.2, 3.5 or 3.6) are supported.

This software is licenced under the GPL v2 and is intended for amateur and educational use only. Use of this software for commercial purposes is strictly forbidden.

Features

  • Supported modes: D-Star, DMR, Yaesu Fusion and P25 Phase 1
  • Automatic mode detection (scanning)
  • G4KLX software suite: MMDVMHost, ircDDBGateway, YSFGateway, P25Gateway and DMRGateway
  • Bands: 144, 220, 430 and 900 MHz (VHF requires external inductor)
  • Status LEDs (PTT, COR and digital modes)
  • Serial repeater port for Nextion displays
  • Support for native USB port in STM32F103 CPU
  • RSSI support
  • Full duplex support with two ADF7021 (experimental)

Important notes

The ADF7021 (or RF7021SE module) must operate with a 14.7456 MHz TCXO and with at least 2 ppm of frequency stability. You could use also 12.2880 MHz TCXO, but this frequency configuration has less testing. Any other TCXO frequency is not supported.

The jumper wire to CLKOUT in RF7021SE module is not longer required for lastest MMDVM_HS firmware. But CE pin connection of ADF7021 is required for proper operation of ZUMspot.

Be aware that some Blue Pill STM32F103 board are defectives. If you have trouble with USB, please check this: http://wiki.stm32duino.com/index.php?title=Blue_Pill

VHF (144-148 MHz) support for ZUMSpot is added by an external 18 nH inductor between L1 and L2 pins of ADF7021. This will enable dual band (VHF/UHF) operation.

Dual ADF7021 for full duplex operation (#define DUPLEX in Config.h) will work only with a big RX/TX frequency separation (5 MHz or more in UHF band for example) and proper antenna filtering. At the moment #define ADF7021_CARRIER_BOARD (Config.h) with STM32F103 platform is supported. Please see BUILD.md for pinout details.

If you can't decode any 4FSK modulation (DMR, YSF and P25) with your ZUMspot, the common solution is to adjust RX frequency offset (RXOffset) in your MMDVM.ini file. Please try with steps of +-100 Hz until you get low BER. If you don't have test equipment, the only procedure is trial and error. In some cases TXOffset adjustment is also required for proper radio decoding.

Quick start

Please see BUILD.md for more details, and also MMDVM Yahoo Groups. You also can check at MMDVM_HS/scripts folder for some automatic tasks.

Binary firmware installation

Please check the latest firmware:

https://github.com/juribeparada/MMDVM_HS/releases

Windows

Download the ZUMspotFW firmware upgrade utility (ZUMspotFW_setup.exe) from the releases section:

https://github.com/juribeparada/MMDVM_HS/releases/download/v1.0.0/ZUMSpotFW_setup.exe

This utility includes firmwares binaries and USB drivers for Windows 7/8/10. If you have problems with the installer, you can download ZUMspotFW.zip for a manual installation.

Linux or macOS

Download the script (*.sh) that matches with your ZUMspot board:

  • install_fw_rpi.sh: only for ZUMspot RPi board
  • install_fw_librekit.sh: only for ZUMspot Libre Kit board or generic ZUMspot board
  • install_fw_usb.sh: only for ZUMspot USB dongle
  • install_fw_duplex.sh: only for ZUMspot with dual ADF7021

make the script executable (for example for ZUMspot RPi):

chmod +x install_fw_rpi.sh

stop your MMDVMHost process and run (you will need the root password):

./install_fw_rpi.sh

and wait to complete the upgrading process.

Build from the sources

You could check at MMDVM_HS/configs for common Config.h examples, using different ZUMspot boards.

ZUMspot Libre Kit (under Linux Raspbian)

Install the necessary software tools:

sudo apt-get update
sudo apt-get install gcc-arm-none-eabi gdb-arm-none-eabi libstdc++-arm-none-eabi-newlib libnewlib-arm-none-eabi

Download the sources:

cd ~
git clone https://github.com/juribeparada/MMDVM_HS
cd MMDVM_HS/
git clone https://github.com/juribeparada/STM32F10X_Lib

Build the firmware with USB bootloader support (the default Config.h is OK for Libre Kit):

make bl

Upload the firmware to ZUMspot Libre Kit using the USB port (your Libre Kit has the bootloader already installed):

sudo make dfu devser=/dev/ttyACM0

ZUMspot RPi

Enable serial port in Raspberry Pi 3 or Pi Zero W

This this necessary only if you are installing a fresh copy of Raspbian OS.

Edit /boot/cmdline.txt:

sudo nano /boot/cmdline.txt
(remove the text: console=serial0,115200)

Disable services:

sudo systemctl disable serial-getty@ttyAMA0.service
sudo systemctl disable bluetooth.service

Edit /boot/config.txt

sudo nano /boot/config.txt

and add the following lines at the end of /boot/config.txt:

enable_uart=1
dtoverlay=pi3-disable-bt

Reboot your RPi:

sudo reboot

Build de firmware and upload to ZUMspot RPi

Install the necessary software tools:

sudo apt-get update
sudo apt-get install gcc-arm-none-eabi gdb-arm-none-eabi libstdc++-arm-none-eabi-newlib libnewlib-arm-none-eabi

cd ~
git clone https://git.code.sf.net/p/stm32flash/code stm32flash
cd stm32flash
make
sudo make install

Download the firmware sources:

cd ~
git clone https://github.com/juribeparada/MMDVM_HS
cd MMDVM_HS/
git clone https://github.com/juribeparada/STM32F10X_Lib

Edit Config.h

nano Config.h

and enable:

#define PI_HAT_7021_REV_03
#define ENABLE_ADF7021
#define ADF7021_14_7456
#define STM32_USART1_HOST
#define ENABLE_SCAN_MODE

Build the firmware:

make

Upload the firmware to ZUMspot RPi board:

sudo make zumspot-pi