comparison cmu200/rfanalyzer.c @ 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 3f4221ef916a
children fbfbd813c9b4
comparison
equal deleted inserted replaced
69:4e263849b064 70:e35da125c937
22 22
23 cmd_rfan_setup() 23 cmd_rfan_setup()
24 { 24 {
25 int rc; 25 int rc;
26 unsigned arfcn; 26 unsigned arfcn;
27 char cmdstr[32]; 27 char cmdstr[80];
28 28
29 if (client_cmd_nfields != 3) { 29 if (client_cmd_nfields != 3) {
30 send_socket_response("-Wrong number of arguments\n"); 30 send_socket_response("-Wrong number of arguments\n");
31 return(0); 31 return(0);
32 } 32 }
43 return(0); 43 return(0);
44 } 44 }
45 sprintf(cmdstr, "*SEC %d\n", current_band->secaddr); 45 sprintf(cmdstr, "*SEC %d\n", current_band->secaddr);
46 send_scpi_cmd(cmdstr); 46 send_scpi_cmd(cmdstr);
47 sprintf(cmdstr, "INP RF%d\n", cmu200_rf_port); 47 sprintf(cmdstr, "INP RF%d\n", cmu200_rf_port);
48 send_scpi_cmd(cmdstr);
49 sprintf(cmdstr, "CORR:LOSS:INP%d %u.%u\n", cmu200_rf_port,
50 current_band->ul_cable_loss / 10,
51 current_band->ul_cable_loss % 10);
48 send_scpi_cmd(cmdstr); 52 send_scpi_cmd(cmdstr);
49 sprintf(cmdstr, "RFAN:CHAN %uCH\n", arfcn); 53 sprintf(cmdstr, "RFAN:CHAN %uCH\n", arfcn);
50 send_scpi_cmd(cmdstr); 54 send_scpi_cmd(cmdstr);
51 send_scpi_cmd("RFAN:TSEQ GSM5\n"); 55 send_scpi_cmd("RFAN:TSEQ GSM5\n");
52 current_mode = OP_MODE_GSM_RFAN; 56 current_mode = OP_MODE_GSM_RFAN;