Project

General

Profile

Mobile » History » Version 14

msuraev, 04/19/2017 01:01 PM
add example

1 13 laforge
'mobile' is the program implementing the behavior of a regular mobile phone,
2 10 ravisharan
extended in many ways with features interesting to researchers.
3 1 laforge
4 11 msuraev
5 10 ravisharan
* perform cell (re)selection according to TS 03.22
6 10 ravisharan
* MM procedures like location updating, authentication, encryption
7 10 ravisharan
* Establish MT and MO voice calls
8 10 ravisharan
* Send and receive SMS
9 10 ravisharan
* Perform supplementary services like USSD or call forwarding
10 10 ravisharan
* hook it up to a PBX
11 10 ravisharan
12 1 laforge
13 10 ravisharan
h2. Prerequirements
14 1 laforge
15 1 laforge
16 1 laforge
It is assumed that you have already obtained the [[OsmocomBB]] source code and compiled both the host programs as well as the firmware
17 10 ravisharan
(using a cross-compiler).  Please see the general [[OsmocomBB]] GettingStarted for guidance.
18 10 ravisharan
19 1 laforge
20 1 laforge
21 10 ravisharan
* prints the debug messages to stdout
22 10 ravisharan
* sends debug messages using [[GSMTAP]]
23 10 ravisharan
24 11 msuraev
25 10 ravisharan
<pre>
26 10 ravisharan
cd osmocom-bb/src/host/layer23/src/mobile/
27 10 ravisharan
./mobile -i 127.0.0.1
28 7 loretta
</pre>
29 1 laforge
30 1 laforge
Note: 
31 1 laforge
You should:
32 14 msuraev
* press the start button on your phone after starting L1 upload command:
33 14 msuraev
<pre>
34 14 msuraev
./osmocom-bb/src/host/osmocon/osmocon -p /dev/ttyUSB0 -m c123xor -c ./osmocom-bb/src/target/firmware/board/compal_e88/layer1.highram.bin  ./osmocom-bb/src/target/firmware/board/compal_e88/chainload.compalram.bin
35 14 msuraev
</pre>
36 11 msuraev
37 10 ravisharan
To capture sent and received packets:
38 7 loretta
* launch wireshark: $ nc -u -l -p 4729 > /dev/null & wireshark -k -i lo -f 'port 4729'
39 10 ravisharan
40 11 msuraev
41 10 ravisharan
<pre>
42 10 ravisharan
telnet localhost 4247
43 1 laforge
Trying 127.0.0.1...
44 7 loretta
Connected to localhost.
45 3 tsaitgaist
Escape character is '^]'.
46 12 msuraev
Welcome to the OsmocomBB Control interface
47 12 msuraev
OsmocomBB>
48 10 ravisharan
</pre>
49 10 ravisharan
50 10 ravisharan
51 8 jolly
h2. Command Reference
52 10 ravisharan
53 10 ravisharan
54 11 msuraev
55 10 ravisharan
<pre>
56 10 ravisharan
Usage: ./mobile
57 3 tsaitgaist
 Some help...
58 3 tsaitgaist
  -h --help		this text
59 3 tsaitgaist
  -i --gsmtap-ip	The destination IP used for GSMTAP.
60 3 tsaitgaist
  -v --vty-port		The VTY port number to telnet to. (default 4247)
61 3 tsaitgaist
  -d --debug		Change debug flags.
62 10 ravisharan
</pre>
63 3 tsaitgaist
64 11 msuraev
65 1 laforge
TODO
66 1 laforge
67 4 sylvain
68 10 ravisharan
h2. Missing features
69 1 laforge
70 10 ravisharan
71 10 ravisharan
* Handover support
72 10 ravisharan
73 10 ravisharan
74 10 ravisharan
75 10 ravisharan
h2. Authors
Add picture from clipboard (Maximum size: 48.8 MB)