From acc71ffb4b61b3354bbb2fa14981e4e6a46946e6 Mon Sep 17 00:00:00 2001 From: Andreas Eversberg Date: Tue, 5 Feb 2013 11:45:28 +0100 Subject: TRX: Introduce osmobts-trx, a layer 1 implementation for OpenBTS tranceivers The code is quite complete, TCH and PDCH channels are not yet tested. --- src/osmo-bts-trx/trx_if.h | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 src/osmo-bts-trx/trx_if.h (limited to 'src/osmo-bts-trx/trx_if.h') diff --git a/src/osmo-bts-trx/trx_if.h b/src/osmo-bts-trx/trx_if.h new file mode 100644 index 00000000..656bd6a7 --- /dev/null +++ b/src/osmo-bts-trx/trx_if.h @@ -0,0 +1,29 @@ +#ifndef TRX_IF_H +#define TRX_IF_H + +extern int tranceiver_available; +extern const char *tranceiver_ip; + +struct trx_ctrl_msg { + struct llist_head list; + char cmd[128]; + int cmd_len; +}; + +int trx_if_cmd_poweroff(struct trx_l1h *l1h); +int trx_if_cmd_poweron(struct trx_l1h *l1h); +int trx_if_cmd_settsc(struct trx_l1h *l1h, uint8_t tsc); +int trx_if_cmd_setbsic(struct trx_l1h *l1h, uint8_t bsic); +int trx_if_cmd_setrxgain(struct trx_l1h *l1h, int db); +int trx_if_cmd_setpower(struct trx_l1h *l1h, int db); +int trx_if_cmd_setmaxdly(struct trx_l1h *l1h, int dly); +int trx_if_cmd_setslot(struct trx_l1h *l1h, uint8_t tn, uint8_t type); +int trx_if_cmd_rxtune(struct trx_l1h *l1h, uint16_t arfcn); +int trx_if_cmd_txtune(struct trx_l1h *l1h, uint16_t arfcn); +int trx_if_data(struct trx_l1h *l1h, uint8_t tn, uint32_t fn, uint8_t pwr, + const ubit_t *bits); +int trx_if_open(struct trx_l1h *l1h); +void trx_if_flush(struct trx_l1h *l1h); +void trx_if_close(struct trx_l1h *l1h); + +#endif /* TRX_IF_H */ -- cgit v1.2.3 From cd0581d815f76dd159406a2e797ad554df82c761 Mon Sep 17 00:00:00 2001 From: Andreas Eversberg Date: Tue, 5 Feb 2013 13:46:03 +0100 Subject: TRX: On negative response of critical commands, shutdown BTS --- src/osmo-bts-trx/trx_if.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/osmo-bts-trx/trx_if.h') diff --git a/src/osmo-bts-trx/trx_if.h b/src/osmo-bts-trx/trx_if.h index 656bd6a7..8ec071fe 100644 --- a/src/osmo-bts-trx/trx_if.h +++ b/src/osmo-bts-trx/trx_if.h @@ -8,6 +8,7 @@ struct trx_ctrl_msg { struct llist_head list; char cmd[128]; int cmd_len; + int critical; }; int trx_if_cmd_poweroff(struct trx_l1h *l1h); -- cgit v1.2.3 From 2e4a26a0e942e227a96819271ea0ea2b03566928 Mon Sep 17 00:00:00 2001 From: Andreas Eversberg Date: Sun, 7 Apr 2013 12:49:52 +0200 Subject: TRX: Add VTY options to enable and disable SETTSC and SETBSIC --- src/osmo-bts-trx/trx_if.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/osmo-bts-trx/trx_if.h') diff --git a/src/osmo-bts-trx/trx_if.h b/src/osmo-bts-trx/trx_if.h index 8ec071fe..21812248 100644 --- a/src/osmo-bts-trx/trx_if.h +++ b/src/osmo-bts-trx/trx_if.h @@ -3,6 +3,9 @@ extern int tranceiver_available; extern const char *tranceiver_ip; +extern int settsc_enabled; +extern int setbsic_enabled; + struct trx_ctrl_msg { struct llist_head list; -- cgit v1.2.3 From 05597a7ddbf9e838caaeb36980cefaa728ab8eec Mon Sep 17 00:00:00 2001 From: Andreas Eversberg Date: Tue, 9 Apr 2013 10:55:37 +0200 Subject: TRX: Fixed typos tranceiver -> transceiver --- src/osmo-bts-trx/trx_if.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/osmo-bts-trx/trx_if.h') diff --git a/src/osmo-bts-trx/trx_if.h b/src/osmo-bts-trx/trx_if.h index 21812248..f041c933 100644 --- a/src/osmo-bts-trx/trx_if.h +++ b/src/osmo-bts-trx/trx_if.h @@ -1,8 +1,8 @@ #ifndef TRX_IF_H #define TRX_IF_H -extern int tranceiver_available; -extern const char *tranceiver_ip; +extern int transceiver_available; +extern const char *transceiver_ip; extern int settsc_enabled; extern int setbsic_enabled; -- cgit v1.2.3 From b9a917a13880f9d6274409b9d3c9b56de484125f Mon Sep 17 00:00:00 2001 From: Andreas Eversberg Date: Wed, 12 Jun 2013 09:12:04 +0200 Subject: TRX: Handover access burst support --- src/osmo-bts-trx/trx_if.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/osmo-bts-trx/trx_if.h') diff --git a/src/osmo-bts-trx/trx_if.h b/src/osmo-bts-trx/trx_if.h index f041c933..ac0ee42c 100644 --- a/src/osmo-bts-trx/trx_if.h +++ b/src/osmo-bts-trx/trx_if.h @@ -24,6 +24,8 @@ int trx_if_cmd_setmaxdly(struct trx_l1h *l1h, int dly); int trx_if_cmd_setslot(struct trx_l1h *l1h, uint8_t tn, uint8_t type); int trx_if_cmd_rxtune(struct trx_l1h *l1h, uint16_t arfcn); int trx_if_cmd_txtune(struct trx_l1h *l1h, uint16_t arfcn); +int trx_if_cmd_handover(struct trx_l1h *l1h, uint8_t tn, uint8_t ss); +int trx_if_cmd_nohandover(struct trx_l1h *l1h, uint8_t tn, uint8_t ss); int trx_if_data(struct trx_l1h *l1h, uint8_t tn, uint32_t fn, uint8_t pwr, const ubit_t *bits); int trx_if_open(struct trx_l1h *l1h); -- cgit v1.2.3