ANAN-G2 Manual Page 20 of 35
4 Linux Applications
ANAN-G2 is supplied with some linux applications that may be useful to you. These have been
developed by the open source developer community. You may install further programs as you need
them.
4.1 p2app
p2app is a command-line application that presents a “protocol 2” interface to PC client applications
such as Thetis. p2app is a “middleware” program: it reads samples from the receiver and sends then
to the remote client; it received transmit samples and sends then to the transmit hardware. It
provides audio in and out, and manages all of the register settings to control the radio hardware.
p2app is pre-installed. If you have an ANAN-G2 without front panel, it will be loaded automatically
after power up. That means you can simply power up the radio hardware, and once the operating
system is running you can run Thetis. Thetis will discover the connection to the radio across your
network automatically.
If you need to run p2app you need to use a linux command line. Note that this is case sensitive!
Open a command window giving you a linux prompt. Then type:
• cd github/Saturn/sw_projects/P2_app
• ./p2app
The program will start, and display the software and FPGA firmware version information.
4.1.1 p2app Command Line Options
To run for normal use:
./p2app
Or it can be run as ./p2app <optional arguments>
Where <optional arguments> can be:
-f <freq in Hz> Turns on DDC test frequency source for development
-i saturn Identifies board as “Saturn” (default)
-i orionmk2 Identified board as “Orion mk 2”
-m xlr selects XLR microphone input
-m jack selects 3.5mm microphone jack (default)
-s skip checking for “x” button to exit (used when run at startup)
To exit: type x<enter>
(note no text is displayed as you type; just do it!)
The most likely command line option is to select the balanced XLR input. Options to select this from
the client application have not yet been implemented. To run p2app with XLR selected, type
./p2app -m xlr