changeset 39:34c6fbe38daa

fc-cmu200d: implemented RF1/RF2 port selection
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 27 May 2017 02:17:00 +0000
parents 8877634feba5
children 2fb9768fc1e2
files cmu200/signalgen.c cmu200/vcxocal.c
diffstat 2 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/cmu200/signalgen.c	Sat May 27 02:10:29 2017 +0000
+++ b/cmu200/signalgen.c	Sat May 27 02:17:00 2017 +0000
@@ -45,6 +45,8 @@
 	}
 	sprintf(cmdstr, "*SEC %d\n", SECADDR_RF_NSIG);
 	send_scpi_cmd(cmdstr);
+	sprintf(cmdstr, "OUTP:%s RF%d\n", cmu200_tx_name, cmu200_rf_port);
+	send_scpi_cmd(cmdstr);
 	current_mode = OP_MODE_SIGNAL_GEN;
 	send_socket_response("+OK\n");
 	return(0);
--- a/cmu200/vcxocal.c	Sat May 27 02:10:29 2017 +0000
+++ b/cmu200/vcxocal.c	Sat May 27 02:17:00 2017 +0000
@@ -9,6 +9,8 @@
 #include "mode.h"
 #include "band.h"
 
+extern int cmu200_rf_port;
+
 extern char *client_cmd_fields[];
 extern int client_cmd_nfields;
 
@@ -41,6 +43,8 @@
 	}
 	sprintf(cmdstr, "*SEC %d\n", current_band->secaddr);
 	send_scpi_cmd(cmdstr);
+	sprintf(cmdstr, "INP RF%d\n", cmu200_rf_port);
+	send_scpi_cmd(cmdstr);
 	sprintf(cmdstr, "RFAN:CHAN %uCH\n", arfcn);
 	send_scpi_cmd(cmdstr);
 	send_scpi_cmd("RFAN:TSEQ GSM5\n");