DK1MI.radio

M17 with the TYT MD380 + OpenRTX + Pi-Star + MMDVM

In this post I will explain in detail how to become QRV on M17 with the following setup:

The process will be the following:

Disclaimer and Thanks

First of all: None of this is my work. It is just a documentation of how I implemented the work of others. Furthermore, I would not have come far without the help of multiple devs and users of the M17 and OpenRTX project. Some but not all of them are DL5SMB, IU2KWO, IU2KIN, IU5BON, tarxvf. Thank you!

Another thing: If you follow these instructions you might:

Furthermore, the MD380 will only be able to transmit audio and will not be able to transceive/decode yet. This will be added in future OpenRTX releases.

MD380 Mod

This is how the device looks opened but still unmodified:

-=DK1MI=-

The modification of the TYT MD380 is described here in great detail and would normally need no further explaination. If you compare the images on the linked website with how my modification looks like, you will notice some differences:

-=DK1MI=-

Difference 1: I don’t have any SMD components, which is why I performed the “Mic -> MCU” mod (upper part in the picture) with a regular resistor. Make sure that the resistance is positioned in such a way that it does not press against the display during / after assembly.

-=DK1MI=-

Difference 2: I messed up with the “RF -> MCU” mod (lower part in the picture) and damaged a solder pad:

-=DK1MI=-

The alternative is to take some wire and connect pin 1 of U101 with pin 18 of the STM32. I needed a microscope for this to solder…

-=DK1MI=-

Flashing OpenRTX to the MD380

Please follow the instructions of the OpenRTX user’s manual. I flashed the latest nightly build.

Patching Pi-Star

Connect to your Pi-Star via SSH and switch the filesystem to rw mode:

# rpi-rw

Now update the system to the latest version:

# sudo pistar-update
# sudo pistar-upgrade

Afterwards, use IU5BON’s patch script (Github) to path your Pi-Star installation with everything needed for M17:

# curl https://raw.githubusercontent.com/nolith/Pi-Star_Binaries_sbin/M17/pistar-install-m17 | sudo bash -

The following command starts the M17 Gateway service:

# sudo systemctl start m17gateway.service

Now enable M17 in your dashboard:

-=DK1MI=-

Afterwards, configure the M17 gateway service to your likings. You can find the settings under “Expert/M17 GW”. The URL is: http://<HOTSPOT_IP>/admin/expert/fulledit_m17gateway.php

-=DK1MI=-

Updating MMDVM

The following steps might vary depending on what MMDVM modem you are using. I am using the default Chinese eBay variant that can be plugged on eg. on a Raspberry Pi Zero and is often sold in combination with a metal enclosure and a OLED screen, the MMDVM_HS_HAT.

Connect to your Pi-Star via SSH and switch the filesystem to rw mode:

# rpi-rw

Install needed tools and libs:

# 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

Clone the source into the local file system:

# git clone https://github.com/juribeparada/MMDVM_HS

There is a library inside this repository linked as submodule. We need to take care that it will be available during compile time:

# cd MMDVM_HS/
# git submodule init
# git submodule update

Edit the file Config.h and adapt all parameters to your needs. I edited/checked the following params:

#define MMDVM_HS_HAT_REV12 //defines which board you use
#define ENABLE_ADF7021
#define ADF7021_14_7456 // use this if you have the 14MHz tcxo
#define STM32_USART1_HOST
#define ENABLE_SCAN_MODE

Now we need to stop some services since they will interfere with the flashing process:

# sudo pistar-watchdog.service stop
# sudo systemctl stop mmdvmhost.timer
# sudo systemctl stop mmdvmhost.service

We can now compile and flash the new firmware:

# make clean
# make
# sudo make mmdvm_hs_hat

Usage

Using the MD380

Before using the MD380, you need to set the following things:

Receiving Audio

Since this solution has so far only made it possible to send and not to receive M17 audio with the MD380, you also need an additional software like Droidstar. This way you can send with the MD380 and receive via Droidstar. Decoding M17 audio will be added in future releases of OpenRTX.

Switching the Reflector

You can switch to another reflector with the following command (Thanks DL5SMB!):

# echo "ReflectorM17-M17 C" | nc -u 127.0.0.1 6075

The following is a collection of links that are helpful and/or necessary to do the above described:

Thank you for reading! If you have any comments or questions, please send me an e-mail.

#Ham Radio #Modification #M17