DVSwitch Install
DVSwitch Install
Version 1.61
Table of Contents
Introduction................................................................................................................................................1
Getting Started...........................................................................................................................................2
How to install DVSwitch-Server on a Raspberry Pi..................................................................................3
DVSwitch Server Configuration................................................................................................................4
Main Menu............................................................................................................................................4
Initial Configuration..............................................................................................................................5
Advanced Configuration.......................................................................................................................7
Configure Other Stanzas...................................................................................................................7
TG/Ref DB Management.................................................................................................................8
Ad Hoc Menu & Macro....................................................................................................................9
Additional DMR Networks............................................................................................................10
DVS Tools Menu.................................................................................................................................11
Clone RPi SD Card.........................................................................................................................11
Configure ini. files..........................................................................................................................11
Update & Upgrade..........................................................................................................................11
Language........................................................................................................................................12
Restart DVSwitch Services............................................................................................................12
Shutdown RPi Server.....................................................................................................................12
Advanced Configuration.................................................................................................................B-10
Main Menu......................................................................................................................................B-10
DMR Server Selection................................................................................................................B-10
....................................................................................................................................................B-11
AUDIO GAIN Setup..................................................................................................................B-11
Manage TG/Ref DB....................................................................................................................B-12
Tools...........................................................................................................................................B-13
Appendix D: Dashboard........................................................................................................................D-1
D-Star Registration To register your Callsign with the D-Star network go to:
https://www.D-Stargateway.org/D-Star_Registration.html
.
Hardware Vocoder An external hardware Vocoder is not required. The software Vocoder
used in the DVSwitch-Server (i.e., MD-380-emulator) does a good
job but does not support D-Star. The software Vocoder can be used
for testing D-Star however it will not produce communications
quality audio in that format.
The DV3000/ThumbDV is one of the best Vocoder available
(http://nwdigitalradio.com/ ). If you have one available use it. It is
one of the best Vocoder to use for D-Star, DMR, YSF and NXDN.
Raspberry Pi The DVSwitch-Server has been tested with the Raspberry Pi Model
B Rev. 2, RPi3 Model B+ and RPi 4,
• RPi’s, particularly the RPi 4, run relatively hot. Consequently,
we advise a clear plastic vented case with a built-in fan. These
cases are inexpensive and many are even supplied with heat
sinks.
• Since the RPi does not have a power switch, we also
recommend a power cable with an On/Off switch.
MicroSD Card We recommend using a 16 GB or 32 GB class 10 MicroSD card.
Format the MicroSD card using any software available, such as .SD
Memory card Formatter The actual DVSwitch image is less than 3
GB so unless you are planning to install a lot of other software, the
smaller card is adequate.
DVSwitch-Server Image Download the DVSwitch-Server software. It will be a zip file.
Download the official image from
http://dvswitch.org/DVSwitch-Server-RPi.zip
Flash (write) the image onto the MicroSD. There are many good SD
card imaging tools. The option we recommend is balenaEtcher.
Etcher is cross-platform, open source, and easy to use. Etcher will
also flash the DVSwitch-Server image directly from the zip file.
Insert the MicroSD card flashed with the DVSwitch server image created above into the Raspberry
Pi, connect it to you home network, power it up and go through the configuration process. You
must have a network connection (either Ethernet or WiFi) in order to use DVS. You can connect
either via method 1 below or methods 2 and 3.
1 The easiest way to get the server connected is to use an Ethernet patch cable, plug it into your
home router or switch and connect from another computer using SSH.
2 PuTTY is a highly recommended free open source SSH client.
To connect using PuTTY you will need to find the DVSwitch-Server IP address.
In a web browser navigate to your routers IP address (e.g. 192.168.1.1) and
browse to the list of connected devices. Look for the IP of the Raspberry Pi
running dvswitch=server.
Another way to find the IP address of the Pi is to use an IP scanner such as
advanced ip scanner
The standard port for SSH is 22,
When using an SSH Telnet client, make sure the remote character translation is set to “UTF-8”,
If using the Windows PuTTY SSH client this setting can be accessed via the “Category”
window (i.e., Window > Translation > Remote character set - drop down list).
3 If you don’t want go the SSH route, simply connect a monitor and keyboard.
4 If your RPi server does not have an Ethernet connection to your home network (i.e., hardwired),
to enable wireless networking use the raspi-config tool.
From the command line, enter “sudo raspi-config” and select “Network Options”.
Select “Wireless LAN”, enter your country, network “SSID” identifier and
“passphrase”.
Select “Finish” and after a few seconds the RPi will be connected to your wireless home
network.
5 Once you are connected to the Raspberry Pi either via ssh or a monitor and keyboard, you will
see a command prompt. Enter “dvswitch” as your login(no quotes). The initial password is
also “dvswitch” (no quotes). You will then be required to change your password. After the
password is changed and you log back in, you will see another command prompt.
6 At the command prompt enter “dvs” to begin the configuration process.
You will see the DVS Main Menu
Main Menu
After the initial configuration is finished the DVSwitch server will be up and running in its basic
configuration and the user will be returned to the DVS Main Menu. When installing the server for the
first time, it is recommended that you test the server in its basic configuration prior to activating the
advanced macro configuration (see Appendix A, DVSwitch Mobile – Android Application, Basic
Configuration or Appendix B to use the pyUC client).
Configure Other Stanzas The Configure Other Stanzas option allows the
user to specify certain optional parameters. It is
not necessary to configure these in order to use
DVSwitch. However, some of these fields may
appear on certain dashboards and so the user may
want to configure these. The fields include TX
and RX frequencies (these are not used and are for
reference only), latitude and longitude, location
(city, state), and the name and URL of the
groups.io support group.
Dialer Screen Notes: This is the main window for the Android
app. Across the top of the screen find
the tab menu (Dialer, Status, Accounts
and Config).
2. From the main menu, select Accounts and then select the first profile and configure the
account.
Notes
• To access the Macros Window, from the
Dialer screen tap the Macros button
located below the keypad.
• To execute, simply tap the selection.
• Six of the selections (after Macros and
before Parrot Connect) can be edited via
the Config tab.
When Advanced Configuration has been enabled on the server, additional scripts and menus are
activated. These scripts and menus make it possible for the user to adjust the transmit and receive audio
gain, switch between different networks (i.e., TGIF, DMRPlus, Brandmeister and other networks),
manage talkgroups, unlink from an active talkgroup/reflector, restart service and reboot or shutdown
the server. All of this can be done from the client device with just a few button presses.
To activate the Main Menu, on the keypad the user presses *0 (i.e., star+zero).and then taps the Send
button. The Main Menu will be displayed. To access a sub-menu, simply tap the selection.
A long press on the star (*) key bring up the active menu/submenu.
Main Menu
AUDIO GAIN Setup Digital voice repeaters often bridge different modes
with various equipment. This complicates the audio
path. Consequently, digital voice repeaters can be
finicky when it comes to audio levels.
• The current value (DMR TXGain, YSF • The current value (RXGain) is displayed.
TXGain, etc.) is displayed. • To adjust the RXGain, select the button for
• Select the Plus or Minus button to add (+) the value you want.
or subtract (-) the TXGain level by the • After selection, the screen will refresh and
amount shown. display the new value.
• After selection, the screen will refresh and
display the new value.
Introduction
pyUC supports all features of the DVSwitch-Server. pyUC can be installed on virtually and platform
that supports the Python programming language. This section provides detailed instructions for
installing and configuring pyUC on Windows, Linux and Macintosh operation environments.
Features
The user can:
• Select digital network
• Select "talk group" or reflector from a list
• Transmit and receive to the network using the PC speakers and mic
• Record a list of stations received in the session
• See pictures of the hams from QRZ.com
4 Change Directory (cd) to the directory where you unzipped the installation files (c:\pyUC)
5 PyAudio is a key component needed for pyUC. You must install the correct version which
matches both your version of Python and your version of Windows. If you don’t know the
version of Python you have installed, you can enter the following command at any commend
prompt:
Python –V
If you don’t know the type of Windows you are running, you can find it in settings -> system -
>about.
You must download and then install (with pip) the version of pyaudio for your version of
Python and Windows.
https://www.lfd.uci.edu/~gohlke/pythonlibs/#pyaudio
Once you have downloaded the correct version of pyaudio, you install it using:
pip install PyAudio-0.2.11-cp38-cp38-win_amd64.whl (use the name of the file you
downloaded)
6 Once you have installed the correct PyAudio version, just enter the following commands one at
a time:
7 Now you must edit the pyUC.ini. You can use Notepad or any other text editor you choose. See
the section below entitled “Configuration” to configure the system. The minimum
configuration you must do is:
myCall = W8RIK ; You callsign
subscriberID = 3160129 ; Your DMR/CCS7 ID
repeaterID = 316012904 ; Your repeater ID
ipAddress = 192.168.1.110 ; IP address or hostname of DVSwitch Server
(AB)
usrpTxPort = 50415 ; Port on which AB is listening
usrpRxPort = 50415 ; Local port to listen for packets from AB
8 To execute pyUC make sure you are at a command prompt in the installation directory (c:\
pyUC) and enter:
python pyUC.py
9 You may wish to create a Shortcut to execute this commend. The following assumes you have
installed pyUC into c:\pyUC. Change the directory below if you have installed it to a different
location. On the desktop, right-click and select newshortcut. When prompted for the
location of the item, enter “python c:\pyUC\pyUC.py” (no quotes). Click Next. Give the
shortcut a name and click Finish. Double-click the shortcut to test. Note, this will bring up a
“dos” window in the background which will echo all activities of the client. If you would like
to eliminate this window, enter “pythonw” instead of “python” in the shortcut. See below (note
Windows command lines are not case–sensitive)
When you unzip the downloaded file, it will unzip to a sub directory called USRP_Client-
master. We want the individual files in this sub directory to be in the pyUC so move them
there. Your directory should look like this:
2 Open the Terminal application. It's located in the Utilities folder within the Applications folder
on your hard drive — choose Applications→Utilities.
5 To execute pyUC, in the Terminal application command line make sure you are in the
pyUC installation directory and then enter:
python3 pyUC.py
Configuration
To configure the pyUC client, open the pyUC.ini file. At a minimum, you must set your call (myCall),
7-digit Subscriber ID (DMR/CCS7), 9-digit Repeater ID ip address of the server and usrp ports (i.e.,
usrpTxPort and usrpRxPort).
[DEFAULTS]
myCall = W8RIK ; You callsign
subscriberID = 3160129 ; Your DMR/CCS7 ID
repeaterID = 316012904 ; Your repeater ID
ipAddress = 192.168.1.110 ; IP address or hostname of DVSwitch Server (AB)
usrpTxPort = 50415 ; Port on which AB is listening
usrpRxPort = 50415 ; Local port to listen for packets from AB
defaultServer = DMR ; Start up UI on this mode (AB will override)
slot = 2 ; Slot to transmit on for DMR
in_index = Default ; pyaudio index for input device (0-N or -1 to
disable)
out_index = Default ; pyaudio index for output device (0-N or Default)
loopback = 1 ; NOT USED
dongleMode = 1 ; NOT USED
micVol = 50 ; NOT USED
spVol = 50 ; NOT USED
voxEnable = 0 ; Enable = 1, disable = 0
voxThreshold = 200 ; This seems to be a good value for me
voxDelay = 50 ; 50 samples (which is 1 second)
aslMode = 0 ; For VERY limited use with chan_usrp (ASL
experimental).
backgroundColor = Default ; Use the color names (white, red, blue, etc.)
textColor = Default ; Use the color names (white, red, blue, etc.)
•
• The Activity area shows the network
activity and is displayed on all three tabs.
From the client, the user can now, with the touch
of a few buttons, identify favorite talkgroups and
have them placed at the top of a mode specific list.
Download (DBupdate+Favorite)
• Download your favorites from the server.
Initialize Favorite
ARE you sure?
YES
NO
• Select <YES>to delete all of your
talkgroup favorites.
• Select <NO>to return to the Main Menu.
Add/Del TG/Ref - Additions and deletions are
applied to the active mode favorites list.
AA Add bottom line
• Adds the connected TG to the bottom of
your favorites list.
A1 Add below line 1
• Adds the connected TG to line 2 of your
favorites list.
A2 Add below line 2
• Adds connected TG to line 3 of your
favorites. Other entries will be sequence down one
line.
DD Delete line
• Removes the current talkgroup from your
favorites list.
Actually, the dashboard was made available, just for fun, to pique your interest and curiosity. It does
have some useful features.
wget http://dvswitch.org/buster
sudo chmod +x buster
sudo ./buster
sudo apt-get update
sudo apt-get install dvswitch-server
Open a terminal window and enter "dvs" (no quotes) to start the dvswitch menu system. Proceed to
configure the system as described as described in the appropriate section of this document.