Osmocom TETRA PHY/MAC implementation https://osmocom.org/projects/tetra
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Sylvain Munaut b33bc63042 Some quick DMO hacks 6 years ago
dmo-tests Some quick DMO hacks 6 years ago
etsi_codec-patches Fix ETSI reference codec's patch for building on 64 bit architectures. 6 years ago
src remove old gnuradio <= 3.6 demodulator code 6 years ago
AUTHORS add AUTHORS file 12 years ago
COPYING add COPYING (AGPLv3) and README file 12 years ago
README remove old gnuradio <= 3.6 demodulator code 6 years ago
TODO add TODO file 12 years ago


TETRA MAC/PHY layer experimentation code
(C) 2010-2016 by Harald Welte <laforge@gnumonks.org> and contributors

This code aims to implement the sending and receiving part of the

If you read the ETSI EN 300 392-2 (TETRA V+D Air Interface), you will
find this code implementing the parts between the MAC-blocks (called
type-1 bits) and the bits that go to the DQPSK-modulator (type-5 bits).

It is most useful to look at Figure 8.5, 8.6, 9.3 and 19.12 in conjunction
with this program.

You will need libosmocore (http://bb.osmocom.org/trac/wiki/libosmocore) to link.

== Demodulator ==

* contains a gnuradio based pi4/DQPSK demodulator, courtesy of KA1RBI
* call demodulator on any source supported by gr-osmosdr
(uhd, fcd, hackrf, blaerf, etc.)
* call demodulator on a 'cfile' containing complex baseband samples
* use demodulator directly with UHd or FCDP hadware (no gr-osmosdr)

The output of the demodulator is a file containing one float value for each symbol,
containing the phase shift (in units of pi/4) relative to the previous symbol.

You can use the "float_to_bits" program to convert the float values to unpacked
bits, i.e. 1-bit-per-byte

== PHY/MAC layer ==

=== library code ===

Specifically, it implements:
* CRC16-CCITT (currently defunct/broken as we need it for
non-octet-aligned bitfields)
* 16-state Rate-Compatible Punctured Convolutional (RCPC) coder
* Block interleaving (over a single block only)
* (30, 14) Reed-Muller code for the ACCH (broadcast block of
each downlink burst)
* Scrambling
* Convolutional decoder for signalling and voice channels
* Routines to encode continuous normal and sync bursts

=== Receiver Program ===

The main receiver program 'tetra-rx' expects an input file containing a
stream of unpacked bits, i.e. 1-bit-per-byte.

=== Transmitter Program ===

The main program conv_enc_test.c generates a single continuous downlinc sync
burst (SB), contining:
* a SYNC-PDU as block 1
* a ACCESS-ASSIGN PDU as broadcast block
* a SYSINFO-PDU as block 2

Scrambling is set to 0 (no scrambling) for all elements of the burst.

It does not actually modulate and/or transmit yet.

== Quick example ==

# assuming you have generated a file samples.cfile at a sample rate of
# 195.312kHz (100MHz/512 == USRP2 at decimation 512)
src/demod/python/tetra-demod.py -i /tmp/samples.cfile -o /tmp/out.float -s 195312 -c 0
src/float_to_bits /tmp/out.float /tmp/out.bits
src/tetra-rx /tmp/out.bits