blob: f73b5fd83d79883460a414c4af7c4ef07ad4d564 [file] [log] [blame]
Vadim Yanitskiy89fc14b2017-06-16 21:00:29 +07001<?xml version="1.0"?>
2<block>
Vadim Yanitskiy99be6252017-07-16 23:26:34 +07003 <name>TRX Interface</name>
Vadim Yanitskiy89fc14b2017-06-16 21:00:29 +07004 <key>grgsm_trx_interface</key>
5 <import>import grgsm</import>
6 <make>grgsm.trx($remote_addr, $base_port)</make>
7
8 <param>
9 <name>base_port</name>
10 <key>base_port</key>
11 <value>5700</value>
12 <type>string</type>
13 </param>
14
15 <param>
16 <name>remote_addr</name>
17 <key>remote_addr</key>
18 <value>127.0.0.1</value>
19 <type>string</type>
20 </param>
21
22 <sink>
23 <name>bursts</name>
24 <type>message</type>
25 </sink>
26
Vadim Yanitskiyac3a5272017-07-19 03:05:07 +070027 <source>
28 <name>bursts</name>
29 <type>message</type>
30 </source>
31
Vadim Yanitskiy89fc14b2017-06-16 21:00:29 +070032 <doc>
33 OsmoTRX like UDP interface for external applications.
34
35 There are three UDP sockets: CLCK, CTRL and DATA.
36 Give a base port B (5700 by default), the SCH clock
37 interface is at port P=B. The TRX-side control interface
38 is on port P=B+100+1 and the data interface is on an odd
39 numbered port P=B+100+2.
40
41 Indications on the SCH Clock Interface (CLCK)
42 The SCH clock interface is output only (from the radio).
43 CLOCK gives the current value of the BTS clock to
44 be used by external applications. The indications are
45 sent whenever a transmission packet arrives that is too
46 late or too early.
47
48 Commands on Control Interface (CTRL)
49 The control interface uses a command-response protocol.
50 Commands are NULL-terminated ASCII strings. Each command
51 has a corresponding response. This interface isn't handled
52 by this particular block, and should be implemented outside.
53
54 Messages on the Data Interface
55 Messages on the data interface carry one radio burst per
56 UDP message.
57
58 Received Data Burst:
59 1 byte timeslot index
60 4 bytes GSM frame number, big endian
61 1 byte RSSI in -dBm
62 2 bytes correlator timing offset in 1/256 symbol steps,
63 2's-comp, big endian
64 148 bytes soft symbol estimates, 0 -&gt; definite "0",
65 255 -&gt; definite "1"
66
67 Transmit Data Burst:
68 1 byte timeslot index
69 4 bytes GSM frame number, big endian
70 1 byte transmit level wrt ARFCN max, -dB (attenuation)
71 148 bytes output symbol values, 0 &amp; 1
72 </doc>
73</block>