Re: ambe #ambeserver
Note: You may need to create the opendv user, if it doesn't exist
sudo useradd opendv
sudo usermod -G dialout opendv
Systemd Management of AMBEserver
A set of files for systemd management are located in the files section of the ambe subgroup on groups.io: ambesupport.tgz
Download this file to the target computer's filesystem and run
mv ambesupport.tgz /tmp && cd / && sudo tar -xzvf /tmp/ambesupport.tgz
From the Wiki -- https://nw-digital-radio.groups.io/g/ambe/wiki/AMBEserver-Addendum
Configuration File Location
The systemd configuration files for AMBEserver are located in /etc/opendv
If your device is at a different location, e.g. /dev/ttyUSB1 simply copy the similar file and give it a new name with the new device
sudo cp ambeserver-ttyUSB0.conf ambeserver-ttyUSB1.conf
Modifying the Configuration File
Use an editor like vi or nano to edit your configuration file
sudo vi /etc/opendv/ambeserver-ttyUSB0.conf
There are two environment variables that may be modified namely UDP_PORT and AMBESERVER_FLAGS
Here are the contents of the configuration file:
# # Configuration file for the AMBEserver program started by systemd. # Adding flags to AMBESERVER_FLAGS will pass this to the daemon. # For example, to change the speed to 460800, use the following line: # AMBESERVER_FLAGS="-s 460800" # UDP_PORT=2460 AMBESERVER_FLAGS=""
For example, on the newer ThumbDV™ (Rev. A) you would modify the AMBESERVER_FLAGS variable
To have AMBEserver listen on another UDP port, which is useful if you have more than one AMBEserver running on a single Raspberry Pi -- each with its own AMBE device.
Managing the AMBEserver
The commands for checking, starting, stopping, enabling, and disabling the AMBEserver are as follows:
sudo systemctl status ambeserver@... sudo systemctl start ambeserver@... sudo systemctl stop ambeserver@... sudo systemctl enable ambeserver@... sudo systemctl disable ambeserver@...
Modify the tty service name as appropriate by replacing ttyUSB0 with:
Enabling the service will allow the AMBEserver to automatically restart when the Raspberry Pi is restarted.
If using the command line to start ambeserver in a terminal shell, and you don't want it to go away when you disconnect or logout, use nohup before the command and an & after. For an explanation of nohup, issue the command:
John D. Hays