FreeCalypso > hg > fc-rfcal-tools
changeset 70:e35da125c937
fc-cmu200d: CMU200 external att setting implemented in RF analyzer mode
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Fri, 14 Jul 2017 05:03:10 +0000 |
parents | 4e263849b064 |
children | 784ce9f3a80a |
files | cmu200/rfanalyzer.c |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/cmu200/rfanalyzer.c Fri Jul 14 04:52:03 2017 +0000 +++ b/cmu200/rfanalyzer.c Fri Jul 14 05:03:10 2017 +0000 @@ -24,7 +24,7 @@ { int rc; unsigned arfcn; - char cmdstr[32]; + char cmdstr[80]; if (client_cmd_nfields != 3) { send_socket_response("-Wrong number of arguments\n"); @@ -46,6 +46,10 @@ send_scpi_cmd(cmdstr); sprintf(cmdstr, "INP RF%d\n", cmu200_rf_port); send_scpi_cmd(cmdstr); + sprintf(cmdstr, "CORR:LOSS:INP%d %u.%u\n", cmu200_rf_port, + current_band->ul_cable_loss / 10, + current_band->ul_cable_loss % 10); + send_scpi_cmd(cmdstr); sprintf(cmdstr, "RFAN:CHAN %uCH\n", arfcn); send_scpi_cmd(cmdstr); send_scpi_cmd("RFAN:TSEQ GSM5\n");