|
|
3 years ago | |
|---|---|---|
| codec2 | 4 years ago | |
| config | 3 years ago | |
| .gitignore | 3 years ago | |
| Configure.cpp | 3 years ago | |
| Configure.h | 3 years ago | |
| Controller.cpp | 3 years ago | |
| Controller.h | 3 years ago | |
| DV3000.cpp | 3 years ago | |
| DV3000.h | 3 years ago | |
| DV3003.cpp | 3 years ago | |
| DV3003.h | 3 years ago | |
| DVSIDevice.cpp | 3 years ago | |
| DVSIDevice.h | 3 years ago | |
| DVSIPacket.h | 4 years ago | |
| LICENSE | 4 years ago | |
| Main.cpp | 3 years ago | |
| Makefile | 3 years ago | |
| PacketQueue.h | 3 years ago | |
| README.md | 3 years ago | |
| TCPacketDef.h | 4 years ago | |
| Timer.h | 4 years ago | |
| TranscoderPacket.cpp | 3 years ago | |
| TranscoderPacket.h | 3 years ago | |
| UnixDgramSocket.cpp | 4 years ago | |
| UnixDgramSocket.h | 4 years ago | |
| WinTypes.h | 4 years ago | |
| ftd2xx.h | 4 years ago | |
README.md
tcd
tcd is a hybrid digital voice transcoder for ham radio used by the new URF reflector.
Introduction
This will build a new kind of hybrid transcoder that uses AMBE DVSI-based hardware for vocoding digital voice streams used in DStar/DMR/YSF and David Rowe's open-source Codec2 used in M17 as well as the open-source P25 vocoder, IMBE.
This is the only transcoder that will work with the URF reflector.
This software is loosely based on LX3JL's ambed, but is easily different enough to be considered an entirely original work. Here are some major differences with ambed:
- tcd uses both hardware-based and software-based vocoders, providing a bridge between the closed source vocoders used in DStar, DMR and YSF and open-source vocoders used in M17 (Codec2) and P25 (IMBE).
- UNIX Sockets are used to communicate between the reflector and this transcoder. This greatly simplifies the code and significantly improves transcoding performance.
- Each configured module has a dedicated encoding and decoding instance running on a different thread. This prevents overloading when processing multiple voice streams and provides the best possible performance for the reflector's clients.
Constraints and Requirements
This branch uses only one 300x device for the AMBE+(DStar) codec.
Currently, this program must be run locally with its paired URF reflector. Remote transcoding is not yet supported.
Only systemd-based operating systems are supported. Debian or Ubuntu is recommended. If you want to install this on a non-systemd based OS, you are on your own. Also, by default, tcd is built without gdb support.
The P25 IMBE software vocoder library is available here. See its README.md file for instructions for compiling and installating this library.
If you are running tcd on an ARM-base processor, you can opt to use a software-based vocoder library available here. This library is used for the AMBE+2 (DMR/YSF/NXDN) codec. If you are going to use this library, tcd must run on an ARM platform like a RPi.
The DVSI devices need an FTDI driver which is available here. It's important to know that this driver will only work if the normal Linux kernel ftdi_sio and usbserial drivers are removed. This is automatically done by the system service file used for starting tcd.
Download the repository
In the parent directory of you urfd repository:
git clone https://github.com/nostar/tcd.git
cd tcd
To be perfectly clear, the urfd reflector repository clone and this clone must be in the same directory.
Compiling and configuring tcd
Copy the three configuration files to the working directory:
cp config/* .
Use your favorite text editor to edit the following files:
- tcd.mk defines some compile time options. If you want to use the md380 vocoder, or change the installation directory, specify it here. Once you've set these options, do
maketo compile tcd. - tcd.ini defines run-time options. It is especially imporant that the
Transcodedline for the tcd.ini file is exactly the same as the same line in the urfd.ini file! Suggested values for vocoder gains are provided. - tcd.service is the systemd service file. be sure the
ExecStartline will successfully start tcd by specifying the path to your tcd executable and your tcd.ini file.
Installing tcd
It is easiest to install and uninstall tcd using the ./radmin scripts in your urfd repo. If you want to do this manually:
sudo make install
sudo make uninstall