# HG changeset patch # User Mychaela Falconia # Date 1495851420 0 # Node ID 34c6fbe38daa5b85f8e653cadf112a8bdff10ced # Parent 8877634feba5a26fd5b9d4a00138ce72affa9b8f fc-cmu200d: implemented RF1/RF2 port selection diff -r 8877634feba5 -r 34c6fbe38daa cmu200/signalgen.c --- 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); diff -r 8877634feba5 -r 34c6fbe38daa cmu200/vcxocal.c --- 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");