Main Page

From BI7JTA'S Wiki for MMDVM
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Contents

Welcome to BI7JTA'Wiki for MMDVM.

Begin December 1, 2019, I will continue update this WIKI page instead of Google blog, I am working on MMDVM just for my hobby, I am happy to share my knowledge and resources about MMDVM opensource project.

头像.png

Purchase your devices https://www.bi7jta.org/cart

500px

Cartpage2.png


Youtube https://www.youtube.com/winters_huang

YoutubePage.png


Contact me

E-Mail: bi7jta@gail.com

https://facebook.com/winters.cn,

https://twitter.com/winters_cn,

Telegram, WhatsApp +86-13927458201

73 DE BI7JTA

MMDVM Setting guide

Dashboard Login

http://pi-str or http://your_DHCP-IP-address

User: pi-star Pass: raspberry

Config WiFi (to Network)

Youtube https://www.youtube.com/wintershuang

Simplex HOTSPOT

PDF Download https://www.bi7jta.org/files/UserManuals/

Youtube Page https://www.youtube.com/wintershuang


Duplex HOTSPOT

PDF Download https://www.bi7jta.org/files/UserManuals/

Youtube Page https://www.youtube.com/wintershuang


Tutorials-for-Duplex-hotspot-2020.8 1080p.jpg


Configure Static Talkgroup for DMR

See also:

https://www.bi7jta.org/wiki/index.php?title=Main_Page#Advanced_Settings

BER(Bit Error Rate) adjust

Enter expert mode:

http://pi-star/admin/expert/edit_mmdvmhost.php


OffsetRadioAndHAT Duplex.JPG

  • Config radio

Troubleshooting

Download full logs file: http://pi-star/admin/download_modem_log.php

Make a DMR channel programming screenshot

EMail to: bi7jta@gmail.com

Repeater Board

Pi-Star settings http://pi-star/admin/configure.php

REP ControllerMode.png


RepeaterConfigure.png


Pi-Star Expert mode http://pi-star/admin/expert/edit_mmdvmhost.php

REP ExpertMode.png


Key words: Accessory connector Pinouts ,connection diagram, Data Jack,

Importance Process: Calibration Frequency Offset

Repeater board Sampling frequency bandwidth (MMDVM RX) :25KHz,
Your DMR/C4FM/P25/DSTAR/NXDN radio decode bandwidth (MMDVM TX):12.5KHz,

You will find it will easy to decode your radio RF signal in low BER%, but if your radio have big frequency offset, it will hard to decode voice and data in your Digital radio.
So Calibration Frequency Offset is very necessary , especially in old GM300 and Motorola digital radio.

Simplex and Repeater diagram (Motorola 16 Pins and 20 Pins)

Duplex/Repeater Mode Connection

GM338 RepeaterMode2.jpg

Simplex Mode(Hotspot) Connection

GM338 SimplexMode.jpg

Accessory Diagram, use GM340 for example, also reference for all Motorola 16 Pins and 20 Pins radio

GM340-Accessory.JPG

V3F4 Pinout define

V3F4接口定义 英文.JPG


GM950i Diagram VS GM3188.png


MotoCable 1080.JPG MotoCable OldVer.png


V3F4 ALL.jpg

COS LED bright means RX and TX work (in Duplex/repeater mode)

中继板转发状态COS.jpeg


FT-7900/7800/8900 YAESU

(1) Connection definition

V3F4接口定义 FT7800.PNG


(2) Radio settings

The forwarding station (eg. ft-7900) is set to Rx 9600bps. Please refer to the manual for the operation process

FT-7800-9600bps-Menu26.png

FT-7800 User manual https://www.bi7jta.org/files/radioCPS/ft7800/FT7800R-User-Manual.pdf

(3) Pi-Star setting

Keep the TXInvert = 1, RXInvert = 0, if RX(the repeater side) can not decode any data , try RXInvert = 1

FT-7900-PiStar-Expert.png


(4) Cases demo

FT-7900-two-radios.JPG

FT-817/991/857D

FTM-100D/FTM-350

FTM-100DR-to-V3F4M.png

DR-1X YAESU

Note: As testedd, NOT SUPPORT DR-2X,DR-1XFR, because Yaesu have locka and can not set RX 9600bps!

Main settings:Data jack,RX bps,Pi-Star RX/TXInvert

Spectrum test video https://www.youtube.com/watch?v=xtx1nRY0LbU

Data jack

DR-1X-to-MMDVM V3F4.JPG


Radio RX Setting bps: Packet Speed 9600bps

Packet-Speed-9600bps.png


The cable made by me

DR-1X-MMDVM-V3F4.JPG

GM3188/GM3688/CM140/CM340

GM3188-V3F4-ALL.JPG


GM3188 Program 02.jpeg

GM338-CDM1250-CDM1550-CDM750-MCX760

Youtube Tutorials https://www.youtube.com/wintershuang


Build-MMDVM-repeater-for-GM338-CDM1250-CDM1550-CDM750.JPG

GM340-Accessory.JPG

ICOM IC-208H

DATA Define

IC-ICOM-208H.png


GM300/M120 Motorola

GM300 M120 MMDVM Settings V3.JPG


SM50/SM120

NOTE:
1, SM50/SM120 TXLevel not same as GM300/GM340,
2, SM50/SM120 Data pinout order not same as GM300/GM340,
3, SM50/SM120 not have flat RX pin define in default,


SM120SM50AllSettingMMDVM.png


SM120SM50AllSettingMMDVM2.png

GM340/GM350/GM360

GM340 CPS Template.JPG

GM340 Expert Settings.JPG

GM950i Motorola

This guide also suit GM950 and GM950e, notice that GM950e Pinout RX(Pin11) NOT available, you need a little change Inner-Circuit.

GM950 Spectrum TXLevel.png


GM950i CPS.png

Warning!!! The GM950i TXLevel decode point not same as GM300 or GM3188/GM338, need adjust , reference the SDR# RTL-SDR, here is the Wrong Spectrum in 2.75KHz deviation.

GM950i Spectrum VS GM3188 2.75KHz.png

Kenwood TK8180

TK8180 SettingGuide.png


Facebook https://www.facebook.com/winters.cn/posts/3434636793300250

Facebook Group https://www.facebook.com/groups/v3f446

Kenwood TM-451E

TM-451E pinout(VS-FT-7900).png


Kenwood TKR750/850

TKR850-W5ZIT.png

I have not test and verify, information form internet and Google , please try yourself. If you have try , please discuss in my Facebook group , many thanks! Thanks W5ZIT blog sharing.

Facebook thread: https://www.facebook.com/groups/v3f446/permalink/461736281512778

XPR4550/M8268/XPR5550e DMR serial radio

MMDVM Jack.png Pinout Bottom.png


M8268-TXLevelRXLevel.JPG


XPR5550e TXInvert.png Pi-StarExpert2.png


RX/TX/PTT define/Timeout:

ProgrammingAccessories.png ProgrammingChannel.png ProgrammingTimeout.png


2.75KHz Deviation spectrum for Motorola XPR5550e

XPR5550e Spectrum.jpg]]

XiR M3188/XiR M3688 DMR radio

The pinout and data define same as GM338/CDM1250/1550

XiR M3188 XiR M3688-ALL.png

Data radio FC302

FC302 中继 1080p.JPG

FC 302接线图.png

MTR2000 Motorola

Share by @IW6BFE Arrio , verified by @BI7JTA 
Pi-Star settings:
[Modem] 
Port=/dev/ttyAMA0 
TXInvert=0
RXInvert=0
PTTInvert=0
TXDelay=100
RXOffset=0
TXOffset=0
DMRDelay=165
RXLevel=70
TXLevel=55
RXDCOffset=0
TXDCOffset=0
RFLevel=100
CWIdTXLevel=50
D-StarTXLevel=50
DMRTXLevel=50
YSFTXLevel=50
P25TXLevel=50
NXDNTXLevel=50
POCSAGTXLevel=50
RSSIMappingFile=/usr/local/etc/RSSI.dat
Trace=0
Debug=0


#/usr/local/etc/RSSI.dat
# RSSI Default Values for MMDVM_HS
#
3545         -50
3295         -55
3059         -60
2834         -65
2598         -70
2362         -75
2132         -80
1896         -85
1707         -90
1470         -95
1239         -100
1003         -105
770          -110
483          -115
171          -120
24           -125
15           -130

Radio settings: 
Reference "Programming an MTR2000 for the STM32-DVM-MTR2K"
http://ks-dmr.net/2019/04/30/programming-an-mtr2000-for-the-stm32-dvm-mtr2k/

Additional explanation

Repeater-Setting-PTT-Type.jpg

RebootIssue BG2FX.png

  • Fix the automatic reboot issue when press DMR radio PTT ,sharing by @BG2FX


Repeater-Settings-TX-Deviation.jpg


MTR2000-Pi-Star Expert TXinvert 0.png


MTR2000-2.JPG


I have made a cable for MMDVM repeater board , you can checkout in my shop https://www.bi7jta.org/cart/

MTR2000-DEMO.png


The programming cable work with Windows XP,

MTR2000-Programming cable by bi7jta.JPG


Resource: https://www.bi7jta.org/files/radioCPS/mtr2000/

MCS2000

I have made the TX work(MCS20000 MMDVM board Transmit), RX work,

MCS2000 All.jpg MCS2000 RX.jpg


MCS2000 Adapter2.jpg MCS2000 RXOnly.jpg


Follow my Facebook update https://www.facebook.com/hashtag/MCS2000/?__gid__=443231163363290

MCS2000 Wiki.png

RadioCPS DMR radio templates

https://www.bi7jta.org/files/radioCPS/

https://www.bi7jta.org/files/radioCPS_MMDVM/

FM Analog mode

See also the next segment "Upgrade firmware"

Flash FM firmware, Copy the follow commands to ssh dialog:

rpi-rw;  
curl -OL https://www.bi7jta.org/files/fm-patch/firmware/upgrade_repeater_FW_V3F4_12MHz.sh;     
chmod +x upgrade_repeater_FW_V3F4_12MHz.sh;     
./upgrade_repeater_FW_V3F4_12MHz.sh;

From Pi-Star V4.1x and update to the new, the FM configuration and MMDVMHost have FM feature.

Modify your config in expert mode , such as:

FM-Ananlog.png


More settings about FM mode and Discussion and Known Issue

https://groups.io/g/OpenDV/topic/the_new_mmdvm_fm_repeater/73281878?p=%2C%2C%2C20%2C0%2C0%2C0%3A%3Arecentpostdate%2Fsticky%2C%2C%2C20%2C2%2C40%2C73281878&fbclid=IwAR1bVOOuiEqymwx8fSiD5s8Qz-6aGzJqZd365oVU4RqxME01F1n40HWsf1s

Upgrade firmware

封面-UpgradeFW.jpg

The new firmware will synchronous with FM mode firmware , just support V3F4, Clip STM32F446

Flash FM firmware, Copy the follow commands to ssh dialog:

rpi-rw;  
curl -OL https://www.bi7jta.org/files/fm-patch/firmware/upgrade_repeater_FW_V3F4_12MHz.sh;     
chmod +x upgrade_repeater_FW_V3F4_12MHz.sh;     
./upgrade_repeater_FW_V3F4_12MHz.sh;

Youtebe demo: https://www.youtube.com/watch?v=VA8hKPlQOZQ&t=26s


Troubleshooting Possible Error

If still can not flash successful, you can try the follow methods:
(1) Forced it into Recovery Mode
Step_1, Plug out 5V2A Power supply,
Step_2, Short BOOTO and 3.3V Pins, then Power ON, let Repeater enter Recovery Mode, PWR, ACT, COS, DMR, POC light.
Step_3, execute ./v3f4_12MHz_flash.sh
BOOTO Mode副本.jpg


(2) Use USB port flash instead of GPIO,

Step by step,
1 Plug out Repeater Hat from Raspberry Pi ,
2 Short the BOOTO/3.3V (the upgrade control pin),
3 Connect MicroUSB port to Raspberry Pi, you will enter the RECOVER MODE(Flash Mode),
Note: the follow LED long light: PWR, ACT, COS, DMR, POC
4 Run the flash command:
sudo ~/stm32flashV5 -v -w ~/mmdvm_f4.hex -v /dev/ttyUSB0;
5 Done

ALL.jpg


(3) ST-Link tools
I will add it in future.

Compile firmware

The last version 20201214,
1, FM feature ,just support most of Motorola GMxx serial,
2, Fix the D-STAR mode data lost issue.

#Pull code from G4KLX github 
rpi-rw
sudo git clone https://github.com/g4klx/MMDVM.git
cd MMDVM
sudo nano Config.h
#See also https://www.bi7jta.org/files/fm-patch/firmware/Config.h
----------- Config.h start ------------
#define EXTERNAL_OSC 12000000
#define STM32F4_NUCLEO_MORPHO_HEADER
----------- Config.h end  --------------

#Add STM32F4XX_Lib directory
git clone https://github.com/juribeparada/STM32F4XX_Lib.git

#Compile for STM32F446
sudo make clean
sudo make dvm

#Flash use Raspberry Pi GIPO
#Download stm32flashV5
sudo curl -OL https://www.bi7jta.org/files/fm-patch/firmware/stm32flashV5;

sudo killall MMDVMHost >/dev/null 2>&1 ;
sudo ~/stm32flashV5 -v -w ~/mmdvm_f4.hex  -R  -i 20,-21,21:-20,-21,21 /dev/ttyAMA0;

Other reference provide by HAM https://republicaradio.com/mmdvm-version-repetidor-bi7jta/

Adjust TX Level with SDR

SDR# lite (Old version just for view the spectrum) https://www.bi7jta.org/files/RTL-SDR/

NOTE: FIRST YOU GOT THE BOARD ,KEEP THIS POT DEFAULT!

The purpose is make repeater radio side generate a best digital spectrum. If you not have RTL-SDR,SDR#,Spectrum Analysis meter(such as CMU200), I not suggest to turn TX Potentiometer.

Adjust-SDR Spectrum-2Mb.JPG


Other spectrum testers, eg. CMU200

Spectrum-CMU200.png

Click to view large image


SDRPlay + SDRuno adjust TXLevel

SDRPlayTXLevel.jpg

Adjust RX Level with MMDVMCal

NOTE: FIRST WHEN YOU GOT THE BOARD ,KEEP THIS POT DEFAULT! DO NOT ADJUST THE RV2 POT ON THE BOARD, UNLESS YOU HAVE RESEARCH ENOUGH KNOWNAGE ABOUT MMDVM PROJECT.

The purpose is make repeater radio generate side receive a best digital spectrum. If your BER% verylow ( less than 0.5), I not suggest to trun RX Potentiometer.

Hight BER% also cause by the BIG OFFSET of your REPEATER RADIO , or your Digital RADIO, consider this reason first.

To get the best value for the RXLevel, enter SSH mode

RXLevelRXPotAdjustment.png

Hat-Pot.png

Adjust RSSI Potentiometer

KEEP DEFAULT, UNLESS YOU HAVE RESEARCH ENOUGH KNOWNAGE ABOUT MMDVM PROJECT.

Youtube OH1E post a demo about RSSI adjustment.https://www.youtube.com/watch?v=DSWPLDOZk8s

Config TalkGroup WhiteList

1, Add attribute "Slot1TGWhiteList", "Slot2TGWhiteList" to file /etc/mmdvmhost ,

Enter ssh mode http://pi-star:2222  or use PuTTY.exe
rpi-rw
sudo nano /etc/mmdvmhost
[DMR]
Enable=1
Beacons=0
BeaconInterval=60
BeaconDuration=3
ColorCode=1
SelfOnly=0
EmbeddedLCOnly=0
DumpTAData=1
# Prefixes=234,235
Slot1TGWhiteList=
Slot2TGWhiteList=

2, Edit TalkGroup WhiteList in Pi-Star dashboard

http://pi-star/admin/expert/edit_mmdvmhost.php

RadioCPS (Programming software), templates

https://www.bi7jta.org/files/radioCPS/

https://www.bi7jta.org/files/radioCPS_MMDVM/

MMDVM_BAT(Battery inside)

Model BAT 3 S thumb.jpg


Config WiFi demo: https://www.youtube.com/channel/UC6Us7z_gkxNKc0PcCuS7fYQ

Config Radio demo:

Advanced Settings

Register DMRID

https://www.radioid.net/register#! DMRID/NXDNID/RADIOID 

Set Static Talkgroups

First, you must Register brandmeister.network

Second, set static talkgroup for your DMRID , support ESSID (the two number tail of your DMRID)

NOTE: The static talkgroup is closely related to your hotspot ESSID and BM Server!


Method 1: Config online

StaticTalkgroupOnline.png

Duplex mode, demo link https://brandmeister.network/?page=rep-edit&id=460072322 ,

Simplex mode, demo link https://brandmeister.network/?page=hotspot-edit&id=4600724 ,

Explain:

rep-edit: Duplex repeater mode , can use TS1,TS2 the same time.

hotspot-edit: Simplex mode, just can use TS2,

460072322: 4600723 is my DMRID, 22 is my duplex hotspot ESSID, corresponding to my hotspot DMR ESSID item

Method 2: Config in your Pi-Star

DMR设置静态守听组列表.png

Nextion and OLED display

Install NextionDriver for Model 8/Model 10

Youtube Video demo https://www.youtube.com/watch?v=8cWUE_0eywQ&t=195s

Just for Nextion Model 8/Model 10

Detail command (Ctrl +C, Ctrl +C )

#Make SD card writable
rpi-rw;  

#uninstall history NextionDriver
sudo rm -rf /usr/local/bin/NextionDriver;

cd /home/pi-star;

# clone github code, some unknow issue will cause NextionDriver service not communitication with MMDVMhost service,when use OD7LDS github new code, so this use offline zip code, the old version.
# sudo rm -rf NextionDriverInstaller;
# git clone https://github.com/on7lds/NextionDriverInstaller.git;


sudo rm -f on7lds-NextionDriverInstaller-Offline.zip*;
sudo rm -rf NextionDriver;
sudo rm -rf NextionDriverInstaller;

sudo wget https://www.bi7jta.org/files/MMDVM_Nextion/Driver/on7lds-NextionDriverInstaller-Offline.zip;   
sudo unzip on7lds-NextionDriverInstaller-Offline.zip;

# install Driver 
sudo chmod +x NextionDriverInstaller/install.sh;
sudo NextionDriverInstaller/install.sh;

echo "Done"

UnInstallAndInstallNextionDriver.png

Confirm the Display Type:

NextionDriverType.png


More: https://www.bi7jta.org/files/MMDVM_Nextion/Driver/install_NextionDriverScript.txt

Known problem

Update Pi-Star or Factory Reset will make Modem connect failed(Sometime, not always), I am not sure what have happened ,have submit issue in NextionDriver github page.
The temporary solution is remove the NextionDriver bin,
"rpi-rw; sudo rm /usr/local/bin/NextionDriver"
then re-install nextionDriver again.

Download Nextion file

Download directly: https://www.bi7jta.org/files/MMDVM_Nextion/

More information: https://mmdvm.bi7jta.org/search/label/Nextion_firmware


T043: T Serial 4.3",
tft: bin file for flash,
hmi: source file for edit,

eg.
NX4827T043_Model 10-4.3inch_DPLX_Basic_v1.05.HMI
NX4827T043_Model 10-4.3inch_DPLX_Basic_v1.05.tft

Nextion to Duplex Hotspot

Nextion RX <---> TX HAT /USBtoTTL

Nextion TX <---> RX HAT /USBtoTTL

Nextion GND <---> GND HAT /USBtoTTL

Nextion 5V <---> 5V HAT /USBtoTTL


Nextion显示类型选择.JPG

Nextion to Repeater V3F4

Nextion connect.png


Nextion to Bluetooth Model

BAT EXTRA BT02 NEXTION ALL.JPG


OLED Setting

Enter expert mode http://pi-star/admin/expert/edit_mmdvmhost.php


双工板ECS+OLED-GPIO-1080p.JPG


OLED-旋转180度 ALL.JPG

Radio for MMDVM

TYT-MD380-tools

TYT-MD760/GD77-MMDVM-HOTSPOT