diff options
author | Vadim Yanitskiy <vyanitskiy@sysmocom.de> | 2021-01-11 03:55:16 +0100 |
---|---|---|
committer | Vadim Yanitskiy <vyanitskiy@sysmocom.de> | 2021-01-22 15:37:02 +0100 |
commit | c7693b7acb238e21c3a17720f81084b9d5c3e238 (patch) | |
tree | 92a5210e5c8379d207a7884b93ff65068f834c25 | |
parent | d291ccb4dde78197c52a1a5aec17532d38327cce (diff) |
TRXD: describe general message format, reduce duplication
-rw-r--r-- | common/chapters/trx_if.adoc | 71 |
1 files changed, 44 insertions, 27 deletions
diff --git a/common/chapters/trx_if.adoc b/common/chapters/trx_if.adoc index c86e75e..703904f 100644 --- a/common/chapters/trx_if.adoc +++ b/common/chapters/trx_if.adoc @@ -341,7 +341,50 @@ before `POWERON`, but can be also done afterwards. === TRXD protocol -Messages on the data interface carry one radio burst per UDP message. +Messages on the data interface carry one radio burst per UDP message. Two +kinds of such messages exist: + +* `TRX -> L1` (from transceiver to the L1): Uplink messages received from the MS, +* `L1 -> TRX` (from the L1 to transceiver): Downlink messages sent to the MS. + +Regardless of the origin, all PDUs have the following common structure: + +.General message format +[packetdiag] +---- +{ + colwidth = 32 + node_height = 40 + + 0-3: VER + 4: RFU [rotate = 270] + 5-7: TN + 8-63: ... Specific fields ... + 64-95: Burst bits [colheight = 3] +} +---- + +VER: 4 bits:: +TRXD header version, common for both `TRX -> L1` and `L1 -> TRX` directions. + +TN: 3 bits:: +TDMA timeslot number. + +RFU: 1 bit:: +Reserved, shall be 0. It can be used in the future to extend the TDMA TN range +to (0..15), in case anybody would need to transfer UMTS bursts. + +FN: 32 bits (4 bytes):: +TDMA frame number, big endian. + +Specific fields: variable length:: +This part depends on the origin of a message and the header version. See below. + +Burst bits: variable length:: +The actual bit sequence of a burst, where each bit takes one octet. Depending on +the origin, all bits in the sequence are either _soft-bits_ (from demodulator) or +_hard-bits_ (to the modulator). Length of the sequence depends on modulation +type of the burst. ==== Uplink Data Burst @@ -404,19 +447,6 @@ padding existence is completely dropped. } ---- -VER: 4 bits:: -TRXD header version, v0 and v1 are specified so far. - -TN: 3 bits:: -Timeslot number. - -RES: 1 bit:: -Reserved, shall be 0. It can be used in the future to extend the TDMA TN range -to (0..15), in case anybody would need to transfer UMTS bursts. - -FN: 32 bits (4 bytes):: -GSM frame number, big endian. - RSSI: 8 bits (1 byte):: Received Signal Strength Indication in -dBm, encoded without the negative sign. @@ -529,19 +559,6 @@ a TS set indicated by the preceding bits. } ---- -VER: 4 bits:: -TRXD header version, v0 and v1 are specified so far. - -TN: 3 bits:: -Timeslot number. - -RES: 1 bit:: -Reserved, shall be 0. It can be used in the future to extend the TDMA TN range -to (0..15), in case anybody would need to transfer UMTS bursts. - -FN: 32 bits (4 bytes):: -GSM frame number, big endian. - PWR: 8 bits (1 byte):: Contains the relative (to the full-scale amplitude) transmit power *reduction* in dB. The absolute value is set on the control interface, so the resulting |