Topics

asl (hamvoip) bridge to DMR


John K1IF
 

Im trying to setup an asl<>dmr 

My allstar is working and have 2 nodes 1 public and one 1999.

How do I add dvswitch to the allstar rpi? The instx I have use apt-get (which doesnt work w hamvoip version..

Can I embed dvswitch to the asl rpi and assign 1dmr tg to the private node that will talk to analog and digital? I can then link to my asl transmitter node .  

Other thread I read was trying to use 1 asl rpi and one dvswitch rpi. Not what I'm trying to do


Steve N4IRS
 

The DVSwitch packages are built to be installed by apt to a Debian system. HAMVOIP is built on Arch. If I had to install DVSwitch on HAMVOIP, I would take the DVSwitch Server RPi image and copy the files over to Arch. It's a lot of work but doable.

Steve N4IRS

On 12/14/2020 1:05 PM, John K1IF via groups.io wrote:
Im trying to setup an asl<>dmr 

My allstar is working and have 2 nodes 1 public and one 1999.

How do I add dvswitch to the allstar rpi? The instx I have use apt-get (which doesnt work w hamvoip version..

Can I embed dvswitch to the asl rpi and assign 1dmr tg to the private node that will talk to analog and digital? I can then link to my asl transmitter node .  

Other thread I read was trying to use 1 asl rpi and one dvswitch rpi. Not what I'm trying to do


John K1IF
 

Thanks Steve
since the allstar is already up and running, what directory would the DVSwitch RPi files be put in? Is it all the image files or just the files in /opt? 


Thanks John


Steve N4IRS
 

Off the top off my head:
/opt
The systemd unit files for the DVSwitch programs in /lib/systemd/system
/usr/local/sbin
/usr/local/dvs
/var/lib/dvswitch
/var/lib/mmdvm
The logrotate files in /etc/logrotate for the dvswitch logs.
/etc/rc.local


On 12/14/2020 2:06 PM, John K1IF via groups.io wrote:
Thanks Steve
since the allstar is already up and running, what directory would the DVSwitch RPi files be put in? Is it all the image files or just the files in /opt? 


Thanks John


John K1IF
 

Thanks for the info Steve
I will attempt this in near future, for now I have installed Debian ASL on a spare pi and will add in the bridge to see if I can make it work. 
This thread will make good reference when I attempt it on arch version.
Thank You and Mike for doing so much for us!
You should open the tip jar for any amount.

73 K1IF 


Steve N4IRS
 

John,
You should not have a problem installing on ASL 1.01
1: MAKE SURE you pin the kernel / header (from the readme)

There may have been updates to the operating system and AllStarLink since this image was built.
Run the following commands after the first time you boot.

sudo apt-mark hold raspberrypi-kernel-headers raspberrypi-kernel
sudo apt-get update
sudo apt-get upgrade -y
sudo reboot

Then add the repo for DVSwitch Server (from <https://github.com/DVSwitch/DVSwitch-System-Builder>)

cd /tmp
wget http://dvswitch.org/buster
chmod +x buster
./buster
apt-get update -y
apt-get install dvswitch-server -y

Let me know if you have any problems.

Steve N4IRS


On 12/15/2020 9:58 AM, John K1IF via groups.io wrote:
Thanks for the info Steve
I will attempt this in near future, for now I have installed Debian ASL on a spare pi and will add in the bridge to see if I can make it work. 
This thread will make good reference when I attempt it on arch version.
Thank You and Mike for doing so much for us!
You should open the tip jar for any amount.

73 K1IF 


Steve N4IRS
 

Jon,
Sorry I forgot you had ASL installed.

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

apt-get install dvswitch-server

Steve N4IRS

On 12/15/20 5:46 PM, John K1IF via groups.io wrote:
Steve 
here is what I get ....


root@swansea:~# cd /tmp
root@swansea:/tmp# wget http://dvswitch.org/buster
--2020-12-15 16:41:06--  http://dvswitch.org/buster
Resolving dvswitch.org (dvswitch.org)... 44.103.34.4
Connecting to dvswitch.org (dvswitch.org)|44.103.34.4|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1882 (1.8K)
Saving to: ‘buster’
 
buster                   100%[==================================>]   1.84K  --.-KB/s    in 0s
 
2020-12-15 16:41:06 (50.9 MB/s) - ‘buster’ saved [1882/1882]
 
root@swansea:/tmp# chmod +x buster
root@swansea:/tmp# ./buster
The Repository file already exists, exiting
root@swansea:/tmp# apt-get update -y
Hit:1 http://dvswitch.org/ASL_Repository stretch InRelease
Get:2 http://archive.raspberrypi.org/debian stretch InRelease [25.4 kB]
Get:3 http://raspbian.raspberrypi.org/raspbian stretch InRelease [15.0 kB]
Fetched 40.3 kB in 1s (32.7 kB/s)
Reading package lists... Done
root@swansea:/tmp# apt-get install dvswitch-server -y
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package dvswitch-server
root@swansea:/tmp#


John K1IF
 

Is this a problem?

--2020-12-15 21:39:44--  http://dvswitch.org/DVSwitch_Repository/dvswitch.gpg.key
Resolving dvswitch.org (dvswitch.org)... 44.103.34.4
Connecting to dvswitch.org (dvswitch.org)|44.103.34.4|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1678 (1.6K) [application/pgp-keys]
Saving to: ‘STDOUT’
-                        100%[==================================>]   1.64K  --.-KB/s    in 0s
2020-12-15 21:39:45 (31.5 MB/s) - written to stdout [1678/1678]
OK
E: Malformed entry 2 in list file /etc/apt/sources.list.d/dvswitch.list (Component)
E: The list of sources could not be read.
root@repeater:/tmp#


Steve N4IRS
 

Show me /etc/apt/sources.list.d/dvswitch.list

On 12/15/20 10:43 PM, John K1IF via groups.io wrote:
Is this a problem?
--2020-12-15 21:39:44--  http://dvswitch.org/DVSwitch_Repository/dvswitch.gpg.key
Resolving dvswitch.org (dvswitch.org)... 44.103.34.4
Connecting to dvswitch.org (dvswitch.org)|44.103.34.4|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1678 (1.6K) [application/pgp-keys]
Saving to: ‘STDOUT’
-                        100%[==================================>]   1.64K  --.-KB/s    in 0s
2020-12-15 21:39:45 (31.5 MB/s) - written to stdout [1678/1678]
OK
E: Malformed entry 2 in list file /etc/apt/sources.list.d/dvswitch.list (Component)
E: The list of sources could not be read.
root@repeater:/tmp#


John K1IF
 

here ya go


Steve N4IRS
 

/etc/sources.list.d/dvswitch.list should look like this:

#
# Official DVSwitch repository
deb http://dvswitch.org/DVSwitch_Repository buster hamradio
#

then do a apt-get update

On 12/15/20 10:43 PM, John K1IF via groups.io wrote:
Is this a problem?
--2020-12-15 21:39:44--  http://dvswitch.org/DVSwitch_Repository/dvswitch.gpg.key
Resolving dvswitch.org (dvswitch.org)... 44.103.34.4
Connecting to dvswitch.org (dvswitch.org)|44.103.34.4|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1678 (1.6K) [application/pgp-keys]
Saving to: ‘STDOUT’
-                        100%[==================================>]   1.64K  --.-KB/s    in 0s
2020-12-15 21:39:45 (31.5 MB/s) - written to stdout [1678/1678]
OK
E: Malformed entry 2 in list file /etc/apt/sources.list.d/dvswitch.list (Component)
E: The list of sources could not be read.
root@repeater:/tmp#


Steve N4IRS
 

John,
Let me know in the morning and we will figure out what is going on.

Sent by smoke signal (AT&T)


From: Server@DVSwitch.groups.io <Server@DVSwitch.groups.io> on behalf of John K1IF via groups.io <izzy_y2k@...>
Sent: Tuesday, December 15, 2020 10:54:47 PM
To: Server@DVSwitch.groups.io <Server@DVSwitch.groups.io>
Subject: Re: [Server] asl (hamvoip) bridge to DMR
 
here ya go


John K1IF
 

i went into nano and edited dvswitch.list and saved but when i run ./add_buster from /tmp it's somehow changing back to original :

# Official DVSwitch repository
deb http://dvswitch.org/DVSwitch_Repository  hamradio
#

i did 2x and went back into nano to make sure the changes took but after running ./add_buster it had went back to orig.

sorry to be a pain


Steve N4IRS
 

John,
If once you edit the dvswitch.list file, there is no need to run add_buster again.
Just run apt-get update and then apt-get install dvswitch-server

Steve

On 12/15/20 11:24 PM, John K1IF via groups.io wrote:
i went into nano and edited dvswitch.list and saved but when i run ./add_buster from /tmp it's somehow changing back to original :

# Official DVSwitch repository
#

i did 2x and went back into nano to make sure the changes took but after running ./add_buster it had went back to orig.

sorry to be a pain


John K1IF
 

Thank you, i have now installed dvswitch server. I was using the asl to dmr pdf
so should I go back to it to carry on with further instructions on setting up?


Steve N4IRS
 

Not really, though some info is of value.
I would use the DVSwitch Server menu (dvs) to setup the components. run it as user dvswitch:
dvs
Go through the basic setup for callsign, dmrid etc.  When it asks for USRP port, just press enter.
Once that is configured, you will need to check the USRP ports for AB in /opt/Analog_Bridge/Analog_bridge.ini

[USRP]
address = 127.0.0.1                     ; IP address of USRP partner (Allstar/Asterisk or another Analog_Bridge)
txPort = 32001                          ; Transmit USRP frames on this port
rxPort = 34001                          ; Listen for USRP frames on this port
usrpAudio = AUDIO_UNITY                 ; Digital -> Analog (AUDIO_UNITY, AUDIO_USE_GAIN, AUDIO_USE_AGC)
usrpGain = 1.10                         ; 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)
tlvAudio = AUDIO_UNITY                  ; Analog -> Digital (AUDIO_UNITY, AUDIO_USE_GAIN, AUDIO_BPF)
tlvGain = 0.35                          ; Gain factor when tlvAudio = AUDIO_USE_GAIN (0.0 to 5.0) (1.0 = AUDIO_UNITY)

The above TX and RX port are the default and correctly match the values in rpt.conf If yours are now different, set them to the above values.

For AllStar, you need to use the chan_usrp channel driver. In rpt.conf:

Use the pdf as a reference guide. I can tell you very little needs to be changed to make DVSwitch Server work with AllStar (on purpose)

Steve


On 12/16/2020 8:36 AM, John K1IF via groups.io wrote:
Thank you, i have now installed dvswitch server. I was using the asl to dmr pdf
so should I go back to it to carry on with further instructions on setting up?


John K1IF
 

LOL ok thanks Steve!! 

I think I should be able to get going. 


Happy Holidays!

John


John K1IF
 

Steve

The bridge is working! But the audio on the server has become unacceptable. Even when 1999 is not connected to public node the incoming audio sounds all pinched and distorted on public node. When i connect to 1999, audio recieved from dmr is good but when talking from analog to dmr its pinched and sometimes lags and sometime doesnt even get sent. 

any thoughts? Only one public node and 1 private node on the Pi 


Steve N4IRS
 

How is the public node configured? pseudo?

On 12/18/2020 8:05 AM, John K1IF via groups.io wrote:
Steve

The bridge is working! But the audio on the server has become unacceptable. Even when 1999 is not connected to public node the incoming audio sounds all pinched and distorted on public node. When i connect to 1999, audio recieved from dmr is good but when talking from analog to dmr its pinched and sometimes lags and sometime doesnt even get sent. 

any thoughts? Only one public node and 1 private node on the Pi 


John K1IF
 

no using simple usb radio attached.