AllStarLink for TETRA Setup: Difference between revisions

From WLPS Wiki
Jump to navigation Jump to search
(Created page with "TETRA for AllStarLink # Install sudo cpan install Switch Config::IniFiles Device::SerialPort IO::Socket::Timeout IO::Socket::Multicast JSON Ham::APRS::IS Term::ReadKey sudo apt-get install git-core sudo git clone https://github.com/WiringPi/WiringPi.git /opt/wiringpi cd /opt/wiringpi sudo ./build sudo cpan install RPi::Pin RPi::Const sudo apt install pigpio sudo systemctl start pigpiod sudo usermod -aG gpio asterisk # Service sudo cp /home/repeater/tetra_4_ASL/x_te...")
 
mNo edit summary
Line 1: Line 1:
TETRA for AllStarLink
= Overview =


TETRA for AllStarLink is a Perl application that allows use Motorola MTM5400 radios with AllStarLink, as MTM5400 have no DTMF tones and COS/COR GPO (VOX is not a reliable solution and there is no way to connect/disconnect without DTMF).


= Initial Setup =


== Install Perl libraries ==


# Install
<pre>
sudo cpan install Switch Config::IniFiles Device::SerialPort IO::Socket::Timeout IO::Socket::Multicast JSON Ham::APRS::IS Term::ReadKey
sudo cpan install Switch Config::IniFiles Device::SerialPort IO::Socket::Timeout IO::Socket::Multicast JSON Ham::APRS::IS Term::ReadKey
sudo apt-get install git-core
sudo apt-get install git-core
Line 14: Line 17:
sudo systemctl start pigpiod
sudo systemctl start pigpiod
sudo usermod -aG gpio asterisk
sudo usermod -aG gpio asterisk
</pre>


== Install TETRA for AllStarLink ==


# Service
<pre>
sudo gitclone https://github.com/Wodie/tetra_4_pttlink.git
sudo mv tetra_4_pttlink tetra_4_ASL
</pre>
 
== User configuration ==
 
Edit the config file with your callsign and node settings.
 
<pre>
cd home
cd tetra_4_ASL
sudo nano config.conf
</pre>
 
After making your changes type '''<CTRL> + <X>''' and then type '''<Y>''' followed by '''<Enter>'''.
 
== Test GPIO ==
 
To test your GPIO pins use:
 
<pre>
watch raspi-gpio get 2-26
</pre>
 
or
 
<pre>
gpio readall
</pre>
 
== Test ==
 
<pre>
sudo perl tetra_4_ASL.pl
</pre>
 
If succesfully working press '''"Q"''' to quit and continue.
 
 
== Install service ==
 
<pre>
sudo cp /home/repeater/tetra_4_ASL/x_tetra_4_ASL.service  /lib/systemd/system/tetra_4_ASL.service
sudo cp /home/repeater/tetra_4_ASL/x_tetra_4_ASL.service  /lib/systemd/system/tetra_4_ASL.service
</pre>


== Start the service ==
<pre>
sudo systemctl enable tetra_4_ASL
sudo systemctl enable tetra_4_ASL
sudo systemctl start tetra_4_ASL
sudo systemctl start tetra_4_ASL
<pre>
   
   
== Service status ==
If you wqant to see service status type:
<pre>
sudo systemctl status tetra_4_ASL
sudo systemctl status tetra_4_ASL
<pre>


== Stop Service ==
If for some reson you need to stop the service, type:
<pre>
sudo systemctl stop tetra_4_ASL
sudo systemctl stop tetra_4_ASL
sudo systemctl disable tetra_4_ASL
sudo systemctl disable tetra_4_ASL
 
</pre>
 
# Test
watch raspi-gpio get 2-26
gpio readall

Revision as of 21:24, 14 June 2025

Overview

TETRA for AllStarLink is a Perl application that allows use Motorola MTM5400 radios with AllStarLink, as MTM5400 have no DTMF tones and COS/COR GPO (VOX is not a reliable solution and there is no way to connect/disconnect without DTMF).

Initial Setup

Install Perl libraries

sudo cpan install Switch Config::IniFiles Device::SerialPort IO::Socket::Timeout IO::Socket::Multicast JSON Ham::APRS::IS Term::ReadKey
sudo apt-get install git-core
sudo git clone https://github.com/WiringPi/WiringPi.git /opt/wiringpi
cd /opt/wiringpi
sudo ./build
sudo cpan install RPi::Pin RPi::Const
sudo apt install pigpio
sudo systemctl start pigpiod
sudo usermod -aG gpio asterisk

Install TETRA for AllStarLink

sudo gitclone https://github.com/Wodie/tetra_4_pttlink.git
sudo mv tetra_4_pttlink tetra_4_ASL

User configuration

Edit the config file with your callsign and node settings.

cd home
cd tetra_4_ASL
sudo nano config.conf

After making your changes type <CTRL> + <X> and then type <Y> followed by <Enter>.

Test GPIO

To test your GPIO pins use:

watch raspi-gpio get 2-26

or

gpio readall

Test

sudo perl tetra_4_ASL.pl

If succesfully working press "Q" to quit and continue.


Install service

sudo cp /home/repeater/tetra_4_ASL/x_tetra_4_ASL.service   /lib/systemd/system/tetra_4_ASL.service

Start the service

sudo systemctl enable tetra_4_ASL
sudo systemctl start tetra_4_ASL
<pre>
 
== Service status ==

If you wqant to see service status type:

<pre>
sudo systemctl status tetra_4_ASL
<pre>

== Stop Service ==

If for some reson you need to stop the service, type:

<pre>
sudo systemctl stop tetra_4_ASL
sudo systemctl disable tetra_4_ASL