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
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.
The commands for checking, starting, stopping, enabling, and disabling the AMBEserver are as follows:
sudo systemctl status ambeserver@ttyUSB0.service sudo systemctl start ambeserver@ttyUSB0.service sudo systemctl stop ambeserver@ttyUSB0.service sudo systemctl enable ambeserver@ttyUSB0.service sudo systemctl disable ambeserver@ttyUSB0.service
Modify the tty service name as appropriate by replacing ttyUSB0 with:
- ttyAMA0 for a PiDV™ on on Raspberry Pi / Raspberry Pi 2
- ttyS0 for a PiDV™ on the Raspberry Pi 3
- ttyUSBx where x is a digit for the ThumbDV™ on all Linux based systems
Enabling the service will allow the AMBEserver to automatically restart when the Raspberry Pi is restarted.
Execute the script
If the script returns (repeatedly):
Server reply : a
You have an operating AMBEserver. Use control-C to escape/kill the test.
Under Compass Linux DummyRepeater can be installed with
sudo apt-get install dummyrepeater
Use address 127.0.0.1 if DummyRepeater is running on the same computer, or the IP address of the computer where AMBEserver is running.
Use address 127.0.0.1 if Buster is running on the same computer, or the IP address of the computer where AMBEserver is running.blog post at NW Digital Radio
If you cannot find an AMBEserver package for your architecture and distribution. Try this:
com/dl5di/OpenDV/master/ DummyRepeater/DV3000/ AMBEserver.c
gcc -o AMBEserver AMBEserver.c
NW Digital Radio is in the process of setting up various community groups at Groups.io Please create a personal account at Groups.io Join the main NW Digital group by sending an email from your registered email account to firstname.lastname@example.org and then send an email to email@example.com Please use the group for questions and to share your experiences, so that all ThumbDV™, PiDV™, AMBEserver users can benefit from the replies.