aboutsummaryrefslogtreecommitdiffstats
path: root/src/bs11_config.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2009-04-28 16:31:38 +0000
committerHarald Welte <laforge@gnumonks.org>2009-04-28 16:31:38 +0000
commite69f5fb411646798f23d5b77343ec06c748cff1b (patch)
treeac6c8955676240693b1cb547eb6d226001c3273f /src/bs11_config.c
parentb5c00f5587d7e01393e9ca7024a80cea2b2f6e7f (diff)
Add bs11_config commands to set the PLL mode from E1_LOCKED to STANDALONE
and vice-versa. This has not yet been tested yet.
Diffstat (limited to 'src/bs11_config.c')
-rw-r--r--src/bs11_config.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/bs11_config.c b/src/bs11_config.c
index b603e8bf1..7f759853c 100644
--- a/src/bs11_config.c
+++ b/src/bs11_config.c
@@ -459,6 +459,16 @@ static int handle_state_resp(enum abis_bs11_phase state)
sleep(1);
abis_nm_bs11_factory_logon(g_bts, 0);
command = NULL;
+ } else if (!strcmp(command, "pll-e1-locked")) {
+ abis_nm_bs11_set_pll_locked(g_bts, 1);
+ sleep(1);
+ abis_nm_bs11_factory_logon(g_bts, 0);
+ command = NULL;
+ } else if (!strcmp(command, "pll-standalone")) {
+ abis_nm_bs11_set_pll_locked(g_bts, 0);
+ sleep(1);
+ abis_nm_bs11_factory_logon(g_bts, 0);
+ command = NULL;
} else if (!strcmp(command, "oml-tei")) {
abis_nm_bs11_conn_oml_tei(g_bts, 0, 1, 0xff, TEI_OML);
command = NULL;
@@ -615,6 +625,8 @@ static void print_help(void)
printf("\tsoftware\tDownload Software (only in administrative state)\n");
printf("\tcreate-trx1\tCreate objects for TRX1 (Danger: Your BS-11 might overheat)\n");
printf("\tdelete-trx1\tDelete objects for TRX1\n");
+ printf("\tpll-e1-locked\tSet the PLL to be locked to E1 clock\n");
+ printf("\tpll-standalone\tSet the PLL to be in standalone mode\n");
printf("\toml-tei\tSet OML E1 TS and TEI\n");
}