Changeset 8935
- Timestamp:
- 03/09/09 17:28:21 (4 years ago)
- Location:
- ossiedev/branches/hvolos/packetwfrm/components/RxTxManager
- Files:
-
- 5 modified
-
RxTxManager.cpp (modified) (5 diffs)
-
RxTxManager.h (modified) (1 diff)
-
RxTxManager.prf.xml (modified) (1 diff)
-
RxTxManager.spd.xml (modified) (1 diff)
-
documentation.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ossiedev/branches/hvolos/packetwfrm/components/RxTxManager/RxTxManager.cpp
r8841 r8935 33 33 34 34 35 36 const float RxTxManager_i::frs_channels[14] = {37 462.5625e+06f,38 462.5875e+06f,39 462.6125e+06f,40 462.6375e+06f,41 462.6625e+06f,42 462.6875e+06f,43 462.7125e+06f,44 467.5625e+06f,45 467.5875e+06f,46 467.6125e+06f,47 467.6375e+06f,48 467.6625e+06f,49 467.6875e+06f,50 467.7125e+06f};51 35 52 36 RxTxManager_i::RxTxManager_i(const char *uuid, omni_condition *condition) : … … 66 50 67 51 // Initialize RF properties 68 current_frs_channel = 1; 52 69 53 tx_interp = 512; 70 tx_freq = frs_channels[current_frs_channel-1];54 tx_freq = 462.5625e+06; 71 55 tx_gain = 1; // USRP tx gain, not RxTxManager gain_tx 72 56 tx_start = true; 73 57 rx_decim = 256; 74 58 rx_gain_max = 1; 75 rx_freq = frs_channels[current_frs_channel-1];59 rx_freq = 462.5625e+06; 76 60 rx_gain = 1; 77 61 rx_size = 2048; … … 82 66 rx_power_threshold_lo = 20.0f; 83 67 rx_power_threshold_hi = 35.0f; 68 conjugate_rx=false; 84 69 85 70 … … 284 269 { 285 270 std::cout << "Property id : " << props[i].id << std::endl; 271 272 if (strcmp(props[i].id, "DCE:c1fe96b4-52db-458a-bef8-ff0834548fc3") == 0) { 273 // RX Frequency 274 CORBA::Float F; 275 props[i].value >>= F; 276 DEBUG(3, RxTxManager, "RX Frequency property= " << F) 277 rx_freq = F; 278 RXControl->set_frequency(DEFAULT_USRP_RX_CHANNEL, rx_freq); 279 } else if (strcmp(props[i].id, "DCE:ddd746f5-a99f-414e-9d98-6470ecf75454") == 0) { 280 // TX Frequency 281 CORBA::Float F; 282 props[i].value >>= F; 283 DEBUG(3, RxTxManager, "TX Frequency property= " << F) 284 tx_freq = F; 285 TXControl->set_frequency(DEFAULT_USRP_TX_CHANNEL, tx_freq); 286 } else if (strcmp(props[i].id, "DCE:4ba6cb86-29fb-40c8-a90c-7e69b7e59d85") == 0) { 287 const char * prop_str; 288 props[i].value >>= prop_str; 289 if ( strcmp(prop_str, "True") == 0 ) { 290 conjugate_rx=true; 291 } else if ( strcmp(prop_str, "False") == 0 ){ 292 conjugate_rx=false; 293 } else { 294 std::cerr << "ERROR: Channel::configure() unknown envelope type" << std::endl; 295 throw CF::PropertySet::InvalidConfiguration(); 296 }; 297 } 286 298 287 299 } … … 355 367 I_out_rx.length(N_out); 356 368 Q_out_rx.length(N_out); 357 for (i=0; i<N_in; i++) { 358 // apply IIR pre-filter 359 lpf_i->do_work((*I_in_rx)[i], I_buf[i]); 360 lpf_q->do_work(-(*Q_in_rx)[i], Q_buf[i]); 369 370 if (conjugate_rx==true){ 371 for (i=0; i<N_in; i++) { 372 // apply IIR pre-filter 373 lpf_i->do_work((*I_in_rx)[i], I_buf[i]); 374 lpf_q->do_work(-(*Q_in_rx)[i], Q_buf[i]); 375 } 376 } else { 377 for (i=0; i<N_in; i++) { 378 // apply IIR pre-filter 379 lpf_i->do_work((*I_in_rx)[i], I_buf[i]); 380 lpf_q->do_work((*Q_in_rx)[i], Q_buf[i]); 381 } 361 382 } 362 363 383 364 384 -
ossiedev/branches/hvolos/packetwfrm/components/RxTxManager/RxTxManager.h
r8796 r8935 159 159 160 160 // RxTxManager RF properties 161 int current_frs_channel;162 int num_channels; 161 bool conjugate_rx; 162 163 163 float gain_tx; 164 164 float rx_power_threshold_lo; -
ossiedev/branches/hvolos/packetwfrm/components/RxTxManager/RxTxManager.prf.xml
r8795 r8935 4 4 <!--Powered by Python--> 5 5 <properties> 6 <simple id="DCE:89b1a5b3-0623-4d66-b436-6482a6aab765" mode="readonly" name="Conjugate Rx Data" type="string"> 7 <value>True</value> 8 <description>Might need to set to "True" for some USRP Daughterboards</description> 9 <kind kindtype="configure"/> 10 </simple> 11 <simple type="float" id="DCE:ddd746f5-a99f-414e-9d98-6470ecf75454" name="tx_freq" mode="readwrite"> 12 <description>Transmitter Frequency</description> 13 <value>465.5625e+06</value> 14 <kind kindtype="configure"/> 15 </simple> 16 <simple type="float" id="DCE:c1fe96b4-52db-458a-bef8-ff0834548fc3" name="rx_freq" mode="readwrite"> 17 <description>Receiver Frequency</description> 18 <value>465.5625e+06</value> 19 <kind kindtype="configure"/> 20 </simple> 6 21 </properties> -
ossiedev/branches/hvolos/packetwfrm/components/RxTxManager/RxTxManager.spd.xml
r8795 r8935 5 5 <softpkg id="DCE:8f1fa7f6-77cd-4d3e-885f-6a8118647237" name="RxTxManager"> 6 6 <title/> 7 <description> The main CIREN controlling entity</description>7 <description>Controls the RX and TX operation</description> 8 8 <author> 9 9 <name>OSSIE Project</name> -
ossiedev/branches/hvolos/packetwfrm/components/RxTxManager/documentation.txt
r5541 r8935 3 3 Copyright 2007 Virginia Polytechnic Institute and State University 4 4 5 This file is part of the OSSIE CIREN_SM.5 This file is part of the OSSIE RxTxManager. 6 6 7 OSSIE CIREN_SMis free software; you can redistribute it and/or modify7 OSSIE RxTxManager is free software; you can redistribute it and/or modify 8 8 it under the terms of the GNU General Public License as published by 9 9 the Free Software Foundation; either version 2 of the License, or 10 10 (at your option) any later version. 11 11 12 OSSIE CIREN_SMis distributed in the hope that it will be useful,12 OSSIE RxTxManager is distributed in the hope that it will be useful, 13 13 but WITHOUT ANY WARRANTY; without even the implied warranty of 14 14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the … … 16 16 17 17 You should have received a copy of the GNU General Public License 18 along with OSSIE CIREN_SM; if not, write to the Free Software18 along with OSSIE RxTxManager; if not, write to the Free Software 19 19 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 20 20 21 21 ****************************************************************************/ 22 22 23 /*! \mainpage CIREN_SM23 /*! \mainpage RxTxManager 24 24 25 25 \section description Basic description 26 This component implements the CIREN protocol and interfaces with the 27 physical-layer components. 26 28 27 29 28 \section properties Properties