Project

General

Profile

OsmocomTETRA » History » Version 5

laforge, 02/19/2016 10:52 PM
cgit is http

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