Project

General

Profile

OsmocomTETRA » History » Version 6

laforge, 02/19/2016 10:52 PM
link to faq

1 6 laforge
[[PageOutline]]
2 2 laforge
= Osmocom TETRA MAC/PHY layer experimentation code =
3 1
4 2 laforge
This code aims to implement the sending and receiving part of the
5
TETRA MAC/PHY layer.
6 1
7 2 laforge
If you read the ETSI EN 300 392-2 (TETRA V+D Air Interface), you will
8
find this code implementing the parts between the MAC-blocks (called
9
type-1 bits) and the bits that go to the DQPSK-modulator (type-5 bits).
10 1
11 3 laforge
It is most useful to look at Figure 8.5, 8.6, 9.3 and 19.12 of the
12
abovementioned specification in conjunction with this program.
13 1
14 3 laforge
15
== Source Code ==
16
The source code is available via read-only git access at
17
{{{
18
        git clone git://git.osmocom.org/osmo-tetra.git
19
}}}
20
21 5 laforge
You can also browse the source code at http://cgit.osmocom.org/
22 3 laforge
23 1
You will need [http://bb.osmocom.org/trac/wiki/libosmocore libosmocore] to link.
24 3 laforge
25
== Mailing List ==
26
There is a public mailing list regarding development of this project, you can
27
visit the subscription page at https://lists.osmocom.org/mailman/listinfo/tetra
28
29
This list is '''for discussion between software developers''' who intend to improve the
30
Osmocom TETRA software.  It is not a forum for individuals asking how they can tap
31
into police radio (which is encrypted anyway).
32 6 laforge
33
== FAQ ==
34
We now have a [wiki:FAQ] (Frequently asked Questions) page!
35 1
36 2 laforge
== Demodulator ==
37 1
38 2 laforge
src/demod/python/cpsk.py
39
        * contains a gnuradio based pi4/DQPSK demodulator, courtesy of KA1RBI
40
src/demod/python/tetra-demod.py
41
        * call demodulator on a 'cfile' containing complex baseband samples
42
src/demod/python/usrp1-tetra_demod.py
43
        * use demodulator in realtime with a USRP1 SDR
44
src/demod/python/usrp2-tetra_demod.py
45
        * use demodulator in realtime with a USRP2 SDR
46 1
47 2 laforge
The output of the demodulator is a file containing one float value for each symbol,
48
containing the phase shift (in units of pi/4) relative to the previous symbol.
49 1
50 2 laforge
You can use the "float_to_bits" program to convert the float values to unpacked
51
bits, i.e. 1-bit-per-byte
52 1
53
54 2 laforge
== PHY/MAC layer ==
55
56
=== library code ===
57
58
Specifically, it implements:
59
lower_mac/crc_simple.[ch]
60
        * CRC16-CCITT (currently defunct/broken as we need it for
61
          non-octet-aligned bitfields)
62
lower_mac/tetra_conv_enc.[ch]
63
        * 16-state Rate-Compatible Punctured Convolutional (RCPC) coder
64
lower_mac/tetra_interleave.[ch]
65
        * Block interleaving (over a single block only)
66
lower_mac/tetra_rm3014.[ch]
67
        * (30, 14) Reed-Muller code for the ACCH (broadcast block of
68
          each downlink burst)
69
lower_mac/tetra_scramb.[ch]
70
        * Scrambling
71
lower_mac/viterbi*.[ch]
72
        * Convolutional decoder for signalling and voice channels
73
phy/tetra_burst.[ch]
74
        * Routines to encode continuous normal and sync bursts
75
phy/tetra_burst_sync.[ch]
76
77
78
=== Receiver Program ===
79
80
The main receiver program 'tetra-rx' expects an input file containing a
81
stream of unpacked bits, i.e. 1-bit-per-byte.
82
83
84
=== Transmitter Program ===
85
86
The main program conv_enc_test.c generates a single continuous downlinc sync
87
burst (SB), contining:
88
        * a SYNC-PDU as block 1
89
        * a ACCESS-ASSIGN PDU as broadcast block
90
        * a SYSINFO-PDU as block 2
91
92
Scrambling is set to 0 (no scrambling) for all elements of the burst.
93
94
It does not actually modulate and/or transmit yet.
95
96
97
== Quick example ==
98
99
assuming you have generated a file samples.cfile at a sample rate of 195.312kHz (100MHz/512 == USRP2 at decimation 512)
100
101
{{{
102
./src/demod/python/tetra-demod.py -i /tmp/samples.cfile -o /tmp/out.float -s 195312 -c 0
103
./src/float_to_bits /tmp/out.float /tmp/out.bits
104
./src/tetra-rx /tmp/out.bits
105
}}}
106 1
107
For a complete list of local wiki pages, see TitleIndex.
Add picture from clipboard (Maximum size: 48.8 MB)