MMDVM Bridge: Difference between revisions

From WLPS Wiki
Jump to navigation Jump to search
Line 78: Line 78:
sudo cp /opt/Analog_Bridge/Analog_Bridge.ini  /opt/Analog_Bridge/Analog_Bridge_3345_p25.ini
sudo cp /opt/Analog_Bridge/Analog_Bridge.ini  /opt/Analog_Bridge/Analog_Bridge_3345_p25.ini
sudo nano /opt/Analog_Bridge/Analog_Bridge_3345_p25.ini
sudo nano /opt/Analog_Bridge/Analog_Bridge_3345_p25.ini
</pre>
<pre>
usrpAudio = AUDIO_UNITY                                ; Digital -> Analog (AUDIO_UNITY, AUDIO_USE_GAIN, AUDIO_USE_AGC)
usrpGain = 1.0                                                  ; Gain factor when usrpAudio = AUDIO_USE_GAIN (0.0 to 5.0) (1.0 = AUDIO_UNITY)
usrpAGC = -20,10,100                                    ; Set the agc threshold (db), slope (db) and decay (ms)
dmrAudio = AUDIO_UNITY                                  ; Audio from ASL (AUDIO_UNITY, AUDIO_USE_GAIN, AUDIO_BPF)
dmrGain = 0.35                                                  ; Gain factor of audio from ASL (0.0-1.0)
tlvAudio = AUDIO_UNITY                                  ; Analog -> Digital (AUDIO_UNITY, AUDIO_USE_GAIN, AUDIO_BPF)
tlvGain = 1.0                                                  ; Gain factor when tlvAudio = AUDIO_USE_GAIN (0.0 to 5.0) (1.0 = AUDIO_UNITY)
agcGain = 0.0                                                  ; Gain (in db) of the AGC filter
</pre>
</pre>



Revision as of 18:22, 28 February 2022

Esta es una guía para configurar un Bridge entre DMR y P25, el TG que se utiliza
como ejemplo es el 3345. Por favor no copies y pegues ciegamente,
debes cambiar los valores a los de tu TG, IDs, etc.

Este es un Work in progress...

Instalación MMDVM Bridge

Asegúrate de tener tu sistema actualizado.

sudo apt update
sudo apt upgrade

Una ves que se haya actualizado, re-inicia tu sistema.

sudo reboot

Agrega la distribución de DVSwitch:

 
cd /tmp
sudo wget http://dvswitch.org/buster
sudo chmod +x buster
sudo /tmp/buster

Asegúrate que se haya agregado la distribución:

sudo apt update

Busca "deb http://dvswitch.org/DVSwitch_Repository hamradio" en el historial de la pantalla.

Verifica que los programas se puedan instalar:

sudo apt install dvswitch-server --dry-run

¿Surgió algún error?

Instala el servidor DVSwitch:

sudo apt install dvswitch-server -y

¿Algún error? Entonces contacta a soporte técnico.

Configuración DV Switch MMDVM

Etapa 1, configura la conexión a un servidor DMR y al otro servicio, en este caso yo seleccioné P25.

sudo cp -r /opt/MMDVM_Bridge/ /opt/MMDVM_Bridge_3345
sudo nano /opt/MMDVM_Bridge_3345/DVSwitch.ini
sudo nano /opt/MMDVM_Bridge_3345/MMDVM_Bridge.ini

Etapa 2, configura el puente de DMR a análogo.

sudo cp /opt/Analog_Bridge/Analog_Bridge.ini  /opt/Analog_Bridge/Analog_Bridge_3345_dmr.ini
sudo nano /opt/Analog_Bridge/Analog_Bridge_3345_dmr.ini

Etapa 3, configura el puente de análogo al modo que seleccionaste (en mi caso fue P25).

sudo cp /opt/Analog_Bridge/Analog_Bridge.ini  /opt/Analog_Bridge/Analog_Bridge_3345_p25.ini
sudo nano /opt/Analog_Bridge/Analog_Bridge_3345_p25.ini
usrpAudio = AUDIO_UNITY                                 ; Digital -> Analog (AUDIO_UNITY, AUDIO_USE_GAIN, AUDIO_USE_AGC)
usrpGain = 1.0                                                  ; Gain factor when usrpAudio = AUDIO_USE_GAIN (0.0 to 5.0) (1.0 = AUDIO_UNITY)
usrpAGC = -20,10,100                                    ; Set the agc threshold (db), slope (db) and decay (ms)
dmrAudio = AUDIO_UNITY                                  ; Audio from ASL (AUDIO_UNITY, AUDIO_USE_GAIN, AUDIO_BPF)
dmrGain = 0.35                                                  ; Gain factor of audio from ASL (0.0-1.0)
tlvAudio = AUDIO_UNITY                                  ; Analog -> Digital (AUDIO_UNITY, AUDIO_USE_GAIN, AUDIO_BPF)
tlvGain = 1.0                                                   ; Gain factor when tlvAudio = AUDIO_USE_GAIN (0.0 to 5.0) (1.0 = AUDIO_UNITY)
agcGain = 0.0                                                   ; Gain (in db) of the AGC filter

Etapa 4, configura el gateway del modo al que vas a hacer el enlace (en mi caso fue P25).

sudo cp /opt/P25Gateway/P25Gateway.ini  /opt/P25Gateway/P25Gateway_3345.ini
sudo nano /opt/P25Gateway/P25Gateway_3345.ini

Si el reflector al que vas a conectarte no está en la lista de hosts.

sudo nano /var/lib/mmdvm/P25Hosts.txt

Deberás agregarlo en una línea con el Talk Group, la URL o IP del Reflector y el Puerto del Reflector, todo esto separado por tabuladores (no usar espacios) en el archivo:

sudo nano /var/lib/mmdvm/private_P25Hosts.txt

Quedando la línea similar a:

3345    p25.link        41009

Auto Start configuration

  • Para MMDVM_Bridge_3345:
sudo cp /lib/systemd/system/mmdvm_bridge.service /lib/systemd/system/mmdvm_bridge_3345.service
sudo nano /lib/systemd/system/mmdvm_bridge_3345.service

Edita las líneas WorkingDirectory y ExecStart agregando el número de TG como este ejemplo:

WorkingDirectory=/opt/MMDVM_Bridge_3345
ExecStart=/opt/MMDVM_Bridge_3345/MMDVM_Bridge /opt/MMDVM_Bridge_3345/MMDVM_Bridge.ini
  • Para P25Gateway_3345
sudo cp /lib/systemd/system/p25gateway.service /lib/systemd/system/p25gateway_3345.service
sudo nano /lib/systemd/system/p25gateway_3345.service

Edita la línea ExecStart agregando el número de TG como este ejemplo:

ExecStart=/opt/P25Gateway/P25Gateway /opt/P25Gateway/P25Gateway_3345.ini
  • Para Analog_Bridge_3345_DMR
sudo cp /lib/systemd/system/analog_bridge.service /lib/systemd/system/analog_bridge_3345_dmr.service
sudo nano /lib/systemd/system/analog_bridge_3345_dmr.service

Edita la línea ExecStart agregando el número de TG como este ejemplo:

ExecStart=/opt/Analog_Bridge/Analog_Bridge /opt/Analog_Bridge/Analog_Bridge_3345_dmr.ini
  • Para Analog_Bridge_3345_P25
sudo cp /lib/systemd/system/analog_bridge.service /lib/systemd/system/analog_bridge_3345_p25.service
sudo nano /lib/systemd/system/analog_bridge_3345_p25.service

Edita la línea ExecStart agregando el número de TG como este ejemplo:

ExecStart=/opt/Analog_Bridge/Analog_Bridge /opt/Analog_Bridge/Analog_Bridge_3345_p25.ini
  • Para MD380-emu
sudo nano /lib/systemd/system/md380-emu.service


Desactivar Auto Start pre-configurado

sudo systemctl stop analog_bridge
sudo systemctl disable analog_bridge
sudo systemctl stop mmdvm_bridge
sudo systemctl disable mmdvm_bridge
sudo systemctl stop p25gateway
sudo systemctl disable p25gateway
sudo systemctl stop p25parrot
sudo systemctl disable p25parrot

sudo systemctl stop ysfgateway
sudo systemctl disable ysfgateway
sudo systemctl stop ysfparrot
sudo systemctl disable ysfparrot

sudo systemctl stop nxdngateway
sudo systemctl disable nxdngateway
sudo systemctl stop nxdnparrot
sudo systemctl disable nxdnparrot

Activar Auto Start

sudo systemctl enable md380-emu
sudo systemctl start  md380-emu

sudo systemctl enable p25gateway_3345
sudo systemctl start  p25gateway_3345

sudo systemctl enable analog_bridge_3345_dmr
sudo systemctl start  analog_bridge_3345_dmr

sudo systemctl enable analog_bridge_3345_p25
sudo systemctl start  analog_bridge_3345_p25

sudo systemctl enable mmdvm_bridge_3345
sudo systemctl start  mmdvm_bridge_3345
sudo systemctl enable p25gateway_334
sudo systemctl start  p25gateway_334

sudo systemctl enable analog_bridge_334_dmr
sudo systemctl start  analog_bridge_334_dmr

sudo systemctl enable analog_bridge_334_p25
sudo systemctl start  analog_bridge_334_p25

sudo systemctl enable mmdvm_bridge_334
sudo systemctl start  mmdvm_bridge_334

Reiniciar Bridge

sudo systemctl restart md380-emu
sudo systemctl restart mmdvm_bridge_3345
sudo systemctl restart p25gateway_3345
sudo systemctl restart analog_bridge_3345_p25
sudo systemctl restart analog_bridge_3345_dmr
sudo systemctl restart mmdvm_bridge_334
sudo systemctl restart p25gateway_334
sudo systemctl restart analog_bridge_334_p25
sudo systemctl restart analog_bridge_334_dmr

Desactivar Auto Start

sudo systemctl stop    analog_bridge_3345_p25
sudo systemctl disable analog_bridge_3345_p25

sudo systemctl stop    analog_bridge_3345_dmr
sudo systemctl disable analog_bridge_3345_dmr

sudo systemctl stop    p25gateway_3345
sudo systemctl disable p25gateway_3345

sudo systemctl stop    mmdvm_bridge_3345
sudo systemctl disable mmdvm_bridge_3345

sudo systemctl stop    md380-emu
sudo systemctl disable md380-emu
sudo systemctl stop    analog_bridge_334_p25
sudo systemctl disable analog_bridge_334_p25

sudo systemctl stop    analog_bridge_334_dmr
sudo systemctl disable analog_bridge_334_dmr

sudo systemctl stop    p25gateway_334
sudo systemctl disable p25gateway_334

sudo systemctl stop    mmdvm_bridge_334
sudo systemctl disable mmdvm_bridge_334


Regresar a Radioafición en Español