Project

General

Profile

Usage » History » Version 1

ptrkrysik, 09/06/2018 09:53 AM

1 1 ptrkrysik
h1. Usage
2
3
First of all, please see [[SDR_PHY#Project-status|known limitations]].
4
5
h2. Hardware preparation
6
7
You need to have two antennas connected: one for RX, another for TX. Both antennas should be chosen for a proper frequency band, otherwise the distance will be limited. Also, it's strongly recommended to use a band-pass filter for TX in order to *avoid interference*.
8
9
_Note: There is a bug of USRP B2X0 hardware, which affects the burst transmission quality. It appears when both transmission and reception are performed of the same side of device. To mitigate this, please use an attenuator or antenna with some resistance between the active pin and ground._
10
11
Finally, connect your SDR hardware and make sure it's working.
12
13
h2. Transceiver
14
15
Check available configuration options:
16
17
<pre>
18
$ grgsm_trx --help
19
20
...
21
22
  TRX interface specific
23
   -i --remote-addr  Set remote address (default 127.0.0.1)
24
   -p --base-port    Set base port number (default 6700)
25
26
  Radio interface specific
27
   -a --device-args  Set device arguments
28
   -s --sample-rate  Set sample rate
29
   -g --rx-gain      Set RX gain (default 30)
30
   -G --tx-gain      Set TX gain (default 10)
31
      --rx-antenna   Set RX antenna (default RX2)
32
      --tx-antenna   Set TX antenna (default TX/RX)
33
      --ppm          Set frequency correction (default 0)
34
</pre>
35
36
If you already have another transceiver runing, e.g. [[OsmoTRX:]], choose a different TRX base port. Keep in mind that a single transceiver process occupies six UDP ports at the same time.
37
38
Choose proper RX / TX antennas and corresponding gain values depending on your device. TX gain requires more attention and should be set depending on your environment and antennas used. Feel free to use a spectrum browser, such as GQRX or osmocom_fft, for measuring the proper values.
39
40
PPM value is typically measured at runtime, so no need to specify it manually.
41
42
<pre>
43
$ grgsm_trx --rx-gain 30 --tx-gain 80
44
linux; GNU C++ version 4.8.5; Boost_105500; UHD_003.010.002.000-0-122bfae1
45
46
License GPLv2+: GNU GPL version 2 or later <http://gnu.org/licenses/gpl.html>
47
This is free software: you are free to change and redistribute it.
48
There is NO WARRANTY, to the extent permitted by law.
49
50
[i] Init Radio interface
51
-- Detected Device: B200
52
-- Operating over USB 3.
53
-- Initialize CODEC control...
54
-- Initialize Radio control...
55
-- Performing register loopback test... pass
56
-- Performing CODEC loopback test... pass
57
-- Setting master clock rate selection to 'automatic'.
58
-- Asking for clock rate 16.000000 MHz... 
59
-- Actually got clock rate 16.000000 MHz.
60
-- Performing timer loopback test... pass
61
-- Setting master clock rate selection to 'manual'.
62
-- Asking for clock rate 26.000000 MHz... 
63
-- Actually got clock rate 26.000000 MHz.
64
-- Performing timer loopback test... pass
65
-- Asking for clock rate 26.000000 MHz... OK
66
[i] Init CTRL interface
67
[i] Init complete
68
</pre>
69
70
At this step transceiver is ready.
71
72
h2. The trxcon application
73
74
As we don't use Calypso-based phones, the [[osmocon]] application is useless here. Instead, you need to run another application called trxcon. You should use the same TRX base port as specified to transceiver.
75
76
<pre>
77
$ cd osmocom-bb/src/
78
$ host/trxcon/trxcon
79
80
License GPLv2+: GNU GPL version 2 or later <http://gnu.org/licenses/gpl.html>
81
This is free software: you are free to change and redistribute it.
82
There is NO WARRANTY, to the extent permitted by law.
83
84
<0001> l1ctl_link.c:235 Init L1CTL link (/tmp/osmocom_l2)
85
<0003> trx_if.c:646 Init transceiver interface
86
<0005> sched_trx.c:112 Init scheduler
87
<0000> trxcon.c:277 Init complete
88
</pre>
89
90
See help details.
91
92
h2. L2&3 applications
93
94
At this step you should be able to run the higher layer applications.
95
96
For example, run [[ccch_scan]]:
97
98
<pre>
99
$ cd osmocom-bb/src/
100
$ cd host/layer23/src/misc/
101
$ ./ccch_scan -i 127.0.0.1 -a <ARFCN>
102
</pre>
103
104
It should synchronize with a BTS on specified ARFCN, and start decoding BCCH messages.
Add picture from clipboard (Maximum size: 48.8 MB)