Project

General

Profile

Simulation » History » Version 5

laforge, 03/23/2018 12:58 PM

1 5 laforge
{{include(cellular-infrastructure:MacroLegacy)}}
2 1
3
4 4
h2. Running [[OpenBSC]] without a GSM Basestation
5
6
7 1
Holger Freyther has written a Software Basestation in Smalltalk. This software is used to re-produce defects but can be generally useful to people that want to understand the Abis protocol spoken between the BTS and the BSC. The Software BTS is implemented in Smalltalk, an modern object orientated scripting language, and there are Debian packages that make installing it easy.
8
9
10
11 4
h2. Installation on GNU/Debian 6.0
12
13
14
<pre>
15 1
# Become the superuser of your system
16
$ sudo -s
17
18
# Register the repository
19 3
$ echo 'deb http://download.opensuse.org/repositories/home:/zecke23/Debian_6.0/ ./' > /etc/apt/sources.list.d/osmocom.list
20 1
21
# Trust the repository key 
22
$ wget --quiet -O /dev/stdout http://download.opensuse.org/repositories/home:/zecke23/Debian_6.0/Release.key | apt-key add -
23
OK
24
25
# Update and install the packages
26
$ aptitude update; aptitude install gnu-smalltalk osmo-st-openbsc-test
27 4
</pre>
28 1
29 2
30 1
31 4
h2. Using the [[FakeBTS]]
32
33
34
<pre>
35 2
# Launching the GNU Smalltalk interpreter
36
$ gst
37 1
38 4
# Loading the [[FakeBTS]] package containing the software BTS
39
st> [[PackageLoader]] fileInPackage: #FakeBTS
40 1
41
# Creating a new bts, configuring it and connecting to a BSC/NITB
42 4
st> bts := [[FakeBTS]].BTS new.
43 2
st> bts btsId: '1/0/0'
44
st> bts connect: 'localhost'; waitForBTSReady.
45
46
# Using the Testcase class and request a channel
47 4
st> test :=  [[FakeBTS]].OpenBSCTest initWith: bts.
48 2
st> lchan := test requireAnyChannel
49 4
</pre>
50 2
51 4
52
h2. Looking at simple Tests
53
54 2
55
[http://cgit.osmocom.org/smalltalk/osmo-st-openbsc-test/tree/imsi_detach/IMSIDetach.st] contains an example test to do an IMSI detach.
Add picture from clipboard (Maximum size: 48.8 MB)