Vadim Yanitskiy | 89fc14b | 2017-06-16 21:00:29 +0700 | [diff] [blame] | 1 | <?xml version="1.0"?> |
| 2 | <block> |
Vadim Yanitskiy | 99be625 | 2017-07-16 23:26:34 +0700 | [diff] [blame] | 3 | <name>TRX Interface</name> |
Vadim Yanitskiy | 89fc14b | 2017-06-16 21:00:29 +0700 | [diff] [blame] | 4 | <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 Yanitskiy | ac3a527 | 2017-07-19 03:05:07 +0700 | [diff] [blame^] | 27 | <source> |
| 28 | <name>bursts</name> |
| 29 | <type>message</type> |
| 30 | </source> |
| 31 | |
Vadim Yanitskiy | 89fc14b | 2017-06-16 21:00:29 +0700 | [diff] [blame] | 32 | <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 -> definite "0", |
| 65 | 255 -> 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 & 1 |
| 72 | </doc> |
| 73 | </block> |