<p>laforge <strong>merged</strong> this change.</p><p><a href="https://gerrit.osmocom.org/c/osmo-trx/+/14985">View Change</a></p><div style="white-space:pre-wrap">Approvals:
  laforge: Looks good to me, approved
  daniel: Looks good to me, but someone else must approve
  Jenkins Builder: Verified

</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">Drop old README information, provide new updated README<br><br>Previous content in README file is actually a description of the TRXD<br>and TRXC protocols, and it has already been moved to the User Manual<br>some time ago. INSTALLATION contained README related information, but it<br>was really out of date.<br><br>So this commit basically drops those two files and provides a new<br>README.md with content taken from Osmocom's OsmoTRX project wiki page.<br><br>Change-Id: I3df00799ce80aa4af43225e69a408ba2cbc444db<br>---<br>D INSTALLATION<br>M Makefile.am<br>D README<br>A README.md<br>4 files changed, 67 insertions(+), 137 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/INSTALLATION b/INSTALLATION</span><br><span>deleted file mode 100644</span><br><span>index f87b6cc..0000000</span><br><span>--- a/INSTALLATION</span><br><span>+++ /dev/null</span><br><span>@@ -1,19 +0,0 @@</span><br><span style="color: hsl(0, 100%, 40%);">-Installation Requirements</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-osmo-trx compiles to a simple Unix binary and does not require special</span><br><span style="color: hsl(0, 100%, 40%);">-installation.</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-One some systems (Ubuntu), you will need to define LIBS = -lpthread prior to</span><br><span style="color: hsl(0, 100%, 40%);">-running configure.</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-To run osmo-trx, the following should be installed:</span><br><span style="color: hsl(0, 100%, 40%);">- libuhd (https://gnuradio.org).</span><br><span style="color: hsl(0, 100%, 40%);">-  This is part of the GNURadio installation.</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-For information on specific executables, see tests/README.tests and</span><br><span style="color: hsl(0, 100%, 40%);">-apps/README.apps.</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-See https://osmocom.org/projects/osmotrx/wiki/OsmoTRX for more</span><br><span style="color: hsl(0, 100%, 40%);">-information.</span><br><span>diff --git a/Makefile.am b/Makefile.am</span><br><span>index 3e87200..8b55e79 100644</span><br><span>--- a/Makefile.am</span><br><span>+++ b/Makefile.am</span><br><span>@@ -36,10 +36,9 @@</span><br><span>       tests</span><br><span> </span><br><span> EXTRA_DIST = \</span><br><span style="color: hsl(0, 100%, 40%);">-     INSTALLATION \</span><br><span>       LEGAL \</span><br><span>      COPYING \</span><br><span style="color: hsl(0, 100%, 40%);">-       README</span><br><span style="color: hsl(120, 100%, 40%);">+        README.md</span><br><span> </span><br><span> AM_DISTCHECK_CONFIGURE_FLAGS = \</span><br><span>    --with-systemdsystemunitdir=$$dc_install_base/$(systemdsystemunitdir)</span><br><span>diff --git a/README b/README</span><br><span>deleted file mode 100644</span><br><span>index 502d661..0000000</span><br><span>--- a/README</span><br><span>+++ /dev/null</span><br><span>@@ -1,116 +0,0 @@</span><br><span style="color: hsl(0, 100%, 40%);">-This is the interface to the transcevier.</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-Each TRX Manager UDP socket interface represents a single ARFCN.</span><br><span style="color: hsl(0, 100%, 40%);">-Each of these per-ARFCN interfaces is a pair of UDP sockets, one for control and one for data.</span><br><span style="color: hsl(0, 100%, 40%);">-Give a base port B (5700), the master clock interface is at port P=B.</span><br><span style="color: hsl(0, 100%, 40%);">-The TRX-side control interface for C(N) is on  port P=B+2N+1 and the data interface is on an odd numbered port P=B+2N+2.</span><br><span style="color: hsl(0, 100%, 40%);">-The corresponding core-side interface for every socket is at P+100.</span><br><span style="color: hsl(0, 100%, 40%);">-For any given build, the number of ARFCN interfaces can be fixed.</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-Indications on the Master Clock Interface</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-The master clock interface is output only (from the radio).</span><br><span style="color: hsl(0, 100%, 40%);">-Messages are "indications".</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-CLOCK gives the current value of the transceiver clock to be used by the core.</span><br><span style="color: hsl(0, 100%, 40%);">-This message is sent whenever a trasmission packet arrives that is too late or too early.  The clock value is NOT the current transceiver time.  It is a time setting the the core should use to give better packet arrival times.</span><br><span style="color: hsl(0, 100%, 40%);">-IND CLOCK <totalFrames></span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-Commands on the Per-ARFCN Control Interface</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-The per-ARFCN control interface uses a command-reponse protocol.</span><br><span style="color: hsl(0, 100%, 40%);">-Commands are NULL-terminated ASCII strings, one per UDP socket.</span><br><span style="color: hsl(0, 100%, 40%);">-Each command has a corresponding response.</span><br><span style="color: hsl(0, 100%, 40%);">-Every command is of the form:</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-CMD <cmdtype> [params]</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-The <cmdtype> is the actual command.</span><br><span style="color: hsl(0, 100%, 40%);">-Parameters are optional depending on the commands type.</span><br><span style="color: hsl(0, 100%, 40%);">-Every response is of the form:</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-RSP <cmdtype> <status> [result]</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-The <status> is 0 for success and a non-zero error code for failure.</span><br><span style="color: hsl(0, 100%, 40%);">-Successful responses may include results, depending on the command type.</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-Power Control</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-POWEROFF shuts off transmitter power and stops the demodulator.</span><br><span style="color: hsl(0, 100%, 40%);">-CMD POWEROFF</span><br><span style="color: hsl(0, 100%, 40%);">-RSP POWEROFF <status></span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-POWERON starts the transmitter and starts the demodulator.  Initial power level is very low.</span><br><span style="color: hsl(0, 100%, 40%);">-This command fails if the transmitter and receiver are not yet tuned.</span><br><span style="color: hsl(0, 100%, 40%);">-This command fails if the transmit or receive frequency creates a conflict with another ARFCN that is already runnng.</span><br><span style="color: hsl(0, 100%, 40%);">-If the transceiver is already on, it response with success to this command.</span><br><span style="color: hsl(0, 100%, 40%);">-CMD POWERON</span><br><span style="color: hsl(0, 100%, 40%);">-RSP POWERON <status></span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-SETPOWER sets output power in dB wrt full scale.</span><br><span style="color: hsl(0, 100%, 40%);">-This command fails if the transmitter and receiver are not running.</span><br><span style="color: hsl(0, 100%, 40%);">-CMD SETPOWER <dB></span><br><span style="color: hsl(0, 100%, 40%);">-RSP SETPOWER <status> <dB></span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-ADJPOWER adjusts power by the given dB step.  Response returns resulting power level wrt full scale.</span><br><span style="color: hsl(0, 100%, 40%);">-This command fails if the transmitter and receiver are not running.</span><br><span style="color: hsl(0, 100%, 40%);">-CMD ADJPOWER <dBStep></span><br><span style="color: hsl(0, 100%, 40%);">-RSP ADJPOWER <status> <dBLevel></span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-Tuning Control</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-RXTUNE tunes the receiver to a given frequency in kHz.</span><br><span style="color: hsl(0, 100%, 40%);">-This command fails if the receiver is already running.</span><br><span style="color: hsl(0, 100%, 40%);">-(To re-tune you stop the radio, re-tune, and restart.)</span><br><span style="color: hsl(0, 100%, 40%);">-This command fails if the transmit or receive frequency creates a conflict with another ARFCN that is already runnng.</span><br><span style="color: hsl(0, 100%, 40%);">-CMD RXTUNE <kHz></span><br><span style="color: hsl(0, 100%, 40%);">-RSP RXTUNE <status> <kHz></span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-TXTUNE tunes the transmitter to a given frequency in kHz.</span><br><span style="color: hsl(0, 100%, 40%);">-This command fails if the transmitter is already running.</span><br><span style="color: hsl(0, 100%, 40%);">-(To re-tune you stop the radio, re-tune, and restart.)</span><br><span style="color: hsl(0, 100%, 40%);">-This command fails if the transmit or receive frequency creates a conflict with another ARFCN that is already runnng.</span><br><span style="color: hsl(0, 100%, 40%);">-CMD TXTUNE <kHz></span><br><span style="color: hsl(0, 100%, 40%);">-RSP TXTUNE <status> <kHz></span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-Timeslot Control</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-SETSLOT sets the format of the uplink timeslots in the ARFCN.</span><br><span style="color: hsl(0, 100%, 40%);">-The <timeslot> indicates the timeslot of interest.</span><br><span style="color: hsl(0, 100%, 40%);">-The <chantype> indicates the type of channel that occupies the timeslot.</span><br><span style="color: hsl(0, 100%, 40%);">-A chantype of zero indicates the timeslot is off.</span><br><span style="color: hsl(0, 100%, 40%);">-CMD SETSLOT <timeslot> <chantype></span><br><span style="color: hsl(0, 100%, 40%);">-RSP SETSLOT <status> <timeslot> <chantype></span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-Messages on the per-ARFCN Data Interface</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-Messages on the data interface carry one radio burst per UDP message.</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-Received Data Burst</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-1 byte timeslot index</span><br><span style="color: hsl(0, 100%, 40%);">-4 bytes GSM frame number, big endian</span><br><span style="color: hsl(0, 100%, 40%);">-1 byte RSSI in -dBm</span><br><span style="color: hsl(0, 100%, 40%);">-2 bytes correlator timing offset in 1/256 symbol steps, 2's-comp, big endian</span><br><span style="color: hsl(0, 100%, 40%);">-148 bytes soft symbol estimates, 0 -> definite "0", 255 -> definite "1"</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-Transmit Data Burst</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-1 byte timeslot index</span><br><span style="color: hsl(0, 100%, 40%);">-4 bytes GSM frame number, big endian</span><br><span style="color: hsl(0, 100%, 40%);">-1 byte transmit level wrt ARFCN max, -dB (attenuation)</span><br><span style="color: hsl(0, 100%, 40%);">-148 bytes output symbol values, 0 & 1</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span>diff --git a/README.md b/README.md</span><br><span>new file mode 100644</span><br><span>index 0000000..dc026e0</span><br><span>--- /dev/null</span><br><span>+++ b/README.md</span><br><span>@@ -0,0 +1,66 @@</span><br><span style="color: hsl(120, 100%, 40%);">+About OsmTRX</span><br><span style="color: hsl(120, 100%, 40%);">+============</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+OsmoTRX is a software-defined radio transceiver that implements the Layer 1</span><br><span style="color: hsl(120, 100%, 40%);">+physical layer of a BTS comprising the following 3GPP specifications:</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+* TS 05.01 "Physical layer on the radio path"</span><br><span style="color: hsl(120, 100%, 40%);">+* TS 05.02 "Multiplexing and Multiple Access on the Radio Path"</span><br><span style="color: hsl(120, 100%, 40%);">+* TS 05.04 "Modulation"</span><br><span style="color: hsl(120, 100%, 40%);">+* TS 05.10 "Radio subsystem synchronization"</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+OsmoTRX is based on the transceiver code from the</span><br><span style="color: hsl(120, 100%, 40%);">+[OpenBTS](https://osmocom.org/projects/osmobts/wiki/OpenBTS) project, but setup</span><br><span style="color: hsl(120, 100%, 40%);">+to operate independently with the purpose of using with non-OpenBTS software and</span><br><span style="color: hsl(120, 100%, 40%);">+projects, while still maintaining backwards compatibility with OpenBTS when</span><br><span style="color: hsl(120, 100%, 40%);">+possible. Currently there are numerous features contained in OsmoTRX that extend</span><br><span style="color: hsl(120, 100%, 40%);">+the functionality of the OpenBTS transceiver. These features include enhanced</span><br><span style="color: hsl(120, 100%, 40%);">+support for various embedded platforms - notably ARM - and dual channel</span><br><span style="color: hsl(120, 100%, 40%);">+diversity support for the Fairwaves umtrx.</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+Homepage</span><br><span style="color: hsl(120, 100%, 40%);">+--------</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+The official homepage of the project is</span><br><span style="color: hsl(120, 100%, 40%);">+<https://osmocom.org/projects/osmotrx/wiki/OsmoTRX></span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+GIT Repository</span><br><span style="color: hsl(120, 100%, 40%);">+--------------</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+You can clone from the official osmo-trx.git repository using</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+        git clone git://git.osmocom.org/osmo-trx.git</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+There is a cgit interface at <http://git.osmocom.org/osmo-trx/></span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+Documentation</span><br><span style="color: hsl(120, 100%, 40%);">+-------------</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+Doxygen-generated API documentation is generated during the build process, but</span><br><span style="color: hsl(120, 100%, 40%);">+also available online for each of the sub-libraries at User Manual for OsmoTRX</span><br><span style="color: hsl(120, 100%, 40%);">+can be generated during the build process, and is also available online at</span><br><span style="color: hsl(120, 100%, 40%);">+<http://ftp.osmocom.org/docs/latest/osmotrx-usermanual.pdf>.</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+Mailing List</span><br><span style="color: hsl(120, 100%, 40%);">+------------</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+Discussions related to OsmoTRX are happening on the openbsc@lists.osmocom.org</span><br><span style="color: hsl(120, 100%, 40%);">+mailing list, please see <https://lists.osmocom.org/mailman/listinfo/openbsc></span><br><span style="color: hsl(120, 100%, 40%);">+for subscription options and the list archive.</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+Please observe the [Osmocom Mailing List</span><br><span style="color: hsl(120, 100%, 40%);">+Rules](https://osmocom.org/projects/cellular-infrastructure/wiki/Mailing_List_Rules)</span><br><span style="color: hsl(120, 100%, 40%);">+when posting.</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+Contributing</span><br><span style="color: hsl(120, 100%, 40%);">+------------</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+Our coding standards are described at</span><br><span style="color: hsl(120, 100%, 40%);">+<https://osmocom.org/projects/cellular-infrastructure/wiki/Coding_standards></span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+We us a gerrit based patch submission/review process for managing contributions.</span><br><span style="color: hsl(120, 100%, 40%);">+Please see <https://osmocom.org/projects/cellular-infrastructure/wiki/Gerrit></span><br><span style="color: hsl(120, 100%, 40%);">+for more details</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+The current patch queue for OsmoTRX can be seen at</span><br><span style="color: hsl(120, 100%, 40%);">+<https://gerrit.osmocom.org/q/project:osmo-trx+status:open></span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-trx/+/14985">change 14985</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/c/osmo-trx/+/14985"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-trx </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I3df00799ce80aa4af43225e69a408ba2cbc444db </div>
<div style="display:none"> Gerrit-Change-Number: 14985 </div>
<div style="display:none"> Gerrit-PatchSet: 4 </div>
<div style="display:none"> Gerrit-Owner: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-Reviewer: Vadim Yanitskiy <axilirator@gmail.com> </div>
<div style="display:none"> Gerrit-Reviewer: daniel <dwillmann@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: laforge <laforge@gnumonks.org> </div>
<div style="display:none"> Gerrit-Reviewer: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: merged </div>