Project

General

Profile

SDR OsmoTRX network from scratch » History » Version 2

jolly, 02/19/2016 10:47 PM

1 1 jolly
[[PageOutline]]
2
= Installing a GSM network from scratch =
3
4
This document describes how to install, configure and run BTS transceiver, OsmoBTS, OpenBSC and LCR.
5
6
In order to use this quick howto, you must have basic knowledge about GIT and be familiar with compiling packages from source.
7
8
9
== Prerequisite ==
10
11
=== opencore-amr ===
12
13
This package installs GSM adaptive multirate codecs
14
15
It can downloaded at [http://sourceforge.net/projects/opencore-amr/files/opencore-amr/]
16
17
{{{
18
tar xvzf opencore-amr-x.x.x.tar.gz
19
cd opencore-amr-x.x.x
20
./configure
21
make
22
make install
23
ldconfig
24
cd ..
25
}}}
26
27
28
=== Sip-Sofia ===
29
30
This package installs the open source SIP stack of Nokia Research Center.
31
32
It can downloaded at [http://sourceforge.net/projects/sofia-sip/files/sofia-sip/].
33
34
{{{
35
tar xvzf sofia-sip-x.xx.xx.tar.gz
36
cd sofia-sip-x.xx.xx
37
./configure
38
make
39
make install
40
ldconfig
41
cd ..
42
}}}
43
44
45
=== oRTP ===
46
47
This package installs the open source RTP protocol required for libosmo-abis.
48
49
It can downloaded at [http://download.savannah.gnu.org/releases/linphone/ortp/sources/].
50
51
{{{
52
tar xvzf ortp-x.xx.x.tar.gz
53
cd ortp-x.xx.x
54
./configure
55
make
56
make install
57
ldconfig
58
cd ..
59
}}}
60
61
62
=== others ===
63
64
sqlite3 and libdbi should be available from your distribution.
65
66
67
68
== Installing  ==
69 2 jolly
70
=== Linux-Call-Router (LCR) ===
71
72
This package installs the open source PBX software to bridge ISDN (DSS1) / SIP / GSM (MNCC protocol)
73
74
The latest version can downloaded via git:
75
{{{
76
git clone git://git.misdn.eu/lcr.git/
77
}}}
78
79
{{{
80
cd lcr
81
autoreconf -i
82
./configure --with-sip --with-gsm-bs --with-gsm-ms --enable-gsm-hr
83
}}}
84
85
Sometimes it is necessary to point to different .../lib/pkgconfig/ path: PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/ ./configure .....)
86
87
result should include:
88
configure: Compiled with GSM network side support
89
configure: Compiled with GSM mobile side support
90
configure: Compiled with GSM half rate codec support
91
configure: Compiled with GSM AMR codec support
92
configure: Compiled with SIP support
93
94
make
95
make install
96
ldconfig
97
cd ..
98
99
100
101
libosmocore: (core utility library for various osmocom projects)
102
103
load via git: git clone git://git.osmocom.org/libosmocore.git
104
cd libosmocore
105
git checkout -b
106
autoreconf -i
107
./configure
108
make
109
make install
110
ldconfig
111
cd ..
112
113
114
115
libosmo-abis: (library for openbsc)
116
load via git: git clone git://git.osmocom.org/libosmo-abis.git
117
cd libosmo-abis
118
autoreconf -i
119
./configure
120
(sometimes it is necessary to point to different .../lib/pkgconfig/ path: PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/ ./configure .....)
121
make
122
make install
123
ldconfig
124
cd ..
125
126
127
128
openbsc: (GSM base station controller)
129
130
load via git: git clone git://git.osmocom.org/openbsc.git
131
cd openbsc/openbsc/
132
change repository: git checkout -b jolly/testing origin/jolly/testing
133
autoreconf -i
134
./configure
135
(sometimes it is necessary to point to different .../lib/pkgconfig/ path: PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/ ./configure .....)
136
make
137
make install
138
cd ../..
139
140
141
osmo-bts: (BTS software)
142
143
load via git: git clone git://git.osmocom.org/osmo-bts.git
144
cd osmo-bts
145
change repository: git checkout -b jolly/trx origin/jolly/trx
146
autoreconf -i
147
./configure --enable-trx
148
(sometimes it is necessary to point to different .../lib/pkgconfig/ path: PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/ ./configure .....)
149
make
150
make install
151
cd ..
152
153
154
configuration examples:
155
-----------------------
156
157
mkdir ~/.osmocom
158
159
~/.osmocom/osmo-bts.cfg
160
161
bts 0
162
 band DCS1800
163
 ipa unit-id 1801 0
164
 oml remote-ip 127.0.0.1
165
 rtp bind-ip 127.0.0.1
166
 rtp jitter-buffer 0
167
 paging lifetime 0
168
 radio-link-timeout 32
169
 gsmtap-sapi bcch
170
 gsmtap-sapi ccch
171
 gsmtap-sapi rach
172
 gsmtap-sapi agch
173
 gsmtap-sapi pch
174
 gsmtap-sapi sdcch
175
 gsmtap-sapi pacch
176
 gsmtap-sapi pdtch
177
 gsmtap-sapi sacch
178
 fn-advance 20
179
 ms-power-loop -10
180
 timing-advance-loop
181
 trx 0
182
  rxgain 0
183
  power 0
Add picture from clipboard (Maximum size: 48.8 MB)