Commit bad20fa2 authored by wf's avatar wf

dont' set gain

parent 0ebd8b7b
......@@ -99,15 +99,16 @@ int trx_dpdkrf_start(openair0_device *device) {
Dpdk_device_init(14, 15, 2, 2 , 50000, 1);
sleep(1);
sleep(1);
printf("FREQ NOT SET!!!!!!!\n\n\n\n\n\n\n\n\n\n\n\n");
printf("trx_dpdkrf_start FREQ NOT SET!!!!!!!\n\n\n\n\n\n\n\n\n\n\n\n");
// trx_dpdkrf_setFreq((int64_t)openair0_cfg->rx_freq[0], (int64_t)openair0_cfg->tx_freq[0]);
// printf("1freq = %ld %ld\n\n",(int64_t)(openair0_cfg->rx_freq[0]), (int64_t)(openair0_cfg->tx_freq[0]));
//sleep(1);
//trx_dpdkrf_setFreq(3747840000, 3747840000);
printf("trx_dpdkrf_start GAIN NOT SET!!!!!!!\n\n\n\n\n\n\n\n\n\n\n\n");
sleep(1);
trx_dpdkrf_gainTx(openair0_cfg->tx_gain[0], openair0_cfg->tx_gain[0], openair0_cfg->tx_gain[0], openair0_cfg->tx_gain[0]);
// trx_dpdkrf_gainTx(openair0_cfg->tx_gain[0], openair0_cfg->tx_gain[0], openair0_cfg->tx_gain[0], openair0_cfg->tx_gain[0]);
sleep(1);
trx_dpdkrf_gainRx(openair0_cfg->rx_gain[0], openair0_cfg->rx_gain[0], openair0_cfg->rx_gain[0], openair0_cfg->rx_gain[0]);
// trx_dpdkrf_gainRx(openair0_cfg->rx_gain[0], openair0_cfg->rx_gain[0], openair0_cfg->rx_gain[0], openair0_cfg->rx_gain[0]);
printf("txgains (0-30) %d, rxgains(30-0) %d\n", (int)(openair0_cfg->tx_gain[0]), (int)(openair0_cfg->rx_gain[0]));
......@@ -133,7 +134,7 @@ int trx_dpdkrf_set_freq(openair0_device* device, openair0_config_t *openair0_cfg
// trx_setMsgFreq(gTxCtrlBuf, (uint64_t)(openair0_cfg->rx_freq[0]),(uint64_t)(openair0_cfg->tx_freq[0]));
// txpCtrl[0] = (uint8_t *)gTxCtrlBuf;
// trx_dpdkrf_write_ctrl(txpCtrl);
printf("FREQ NOT SET!!!!!!!\n\n\n\n\n\n\n\n\n\n\n\n");
printf("trx_dpdkrf_set_freq FREQ NOT SET!!!!!!!\n\n\n\n\n\n\n\n\n\n\n\n");
//trx_dpdkrf_setFreq(openair0_cfg->rx_freq[0], openair0_cfg->tx_freq[0]);
return(0);
}
......@@ -153,6 +154,7 @@ int trx_dpdkrf_set_gains(openair0_device* device, openair0_config_t *openair0_cf
txpCtrl[0] = (uint8_t *)gTxCtrlBuf;
trx_dpdkrf_write_ctrl(txpCtrl);
#endif
printf("trx_dpdkrf_set_gains GAIN NOT SET!!!!!!!\n\n\n\n\n\n\n\n\n\n\n\n");
trx_dpdkrf_gainTx(openair0_cfg->tx_gain[0], openair0_cfg->tx_gain[0], openair0_cfg->tx_gain[0], openair0_cfg->tx_gain[0]);
sleep(1);
trx_dpdkrf_gainTx(openair0_cfg->rx_gain[0], openair0_cfg->rx_gain[0], openair0_cfg->rx_gain[0], openair0_cfg->rx_gain[0]);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment