This is merely a historical archive of years 2008-2021, before the migration to mailman3.
A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.
Harald Welte gerrit-no-reply at lists.osmocom.org
Review at https://gerrit.osmocom.org/6685
host/trxcon/trx_if.c: add ECHO command
This command should be used to check transceiver availability.
Change-Id: I6af2d5e413ff7ab751cb34e1659742b0f59b6cca
---
M src/host/trxcon/trx_if.c
M src/host/trxcon/trx_if.h
2 files changed, 10 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmocom-bb refs/changes/85/6685/1
diff --git a/src/host/trxcon/trx_if.c b/src/host/trxcon/trx_if.c
index 9ae4900..5b0b7b1 100644
--- a/src/host/trxcon/trx_if.c
+++ b/src/host/trxcon/trx_if.c
@@ -239,6 +239,10 @@
/*
* Power Control
*
+ * ECHO is used to check transceiver availability.
+ * CMD ECHO
+ * RSP ECHO <status>
+ *
* POWEROFF shuts off transmitter power and stops the demodulator.
* CMD POWEROFF
* RSP POWEROFF <status>
@@ -253,6 +257,11 @@
* RSP POWERON <status>
*/
+int trx_if_cmd_echo(struct trx_instance *trx)
+{
+ return trx_ctrl_cmd(trx, 1, "ECHO", "");
+}
+
int trx_if_cmd_poweroff(struct trx_instance *trx)
{
return trx_ctrl_cmd(trx, 1, "POWEROFF", "");
diff --git a/src/host/trxcon/trx_if.h b/src/host/trxcon/trx_if.h
index fadf604..6f54b3e 100644
--- a/src/host/trxcon/trx_if.h
+++ b/src/host/trxcon/trx_if.h
@@ -25,6 +25,7 @@
int trx_if_cmd_poweron(struct trx_instance *trx);
int trx_if_cmd_poweroff(struct trx_instance *trx);
+int trx_if_cmd_echo(struct trx_instance *trx);
int trx_if_cmd_setpower(struct trx_instance *trx, int db);
int trx_if_cmd_adjpower(struct trx_instance *trx, int db);
--
To view, visit https://gerrit.osmocom.org/6685
To unsubscribe, visit https://gerrit.osmocom.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I6af2d5e413ff7ab751cb34e1659742b0f59b6cca
Gerrit-PatchSet: 1
Gerrit-Project: osmocom-bb
Gerrit-Branch: master
Gerrit-Owner: Harald Welte <laforge at gnumonks.org>